TransitVirtualInterface
Provides a Direct Connect transit virtual interface resource. A transit virtual interface is a VLAN that transports traffic from a Direct Connect gateway to one or more transit gateways.
Example Usage
using Pulumi;
using Aws = Pulumi.Aws;
class MyStack : Stack
{
public MyStack()
{
var exampleGateway = new Aws.DirectConnect.Gateway("exampleGateway", new Aws.DirectConnect.GatewayArgs
{
AmazonSideAsn = "64512",
});
var exampleTransitVirtualInterface = new Aws.DirectConnect.TransitVirtualInterface("exampleTransitVirtualInterface", new Aws.DirectConnect.TransitVirtualInterfaceArgs
{
AddressFamily = "ipv4",
BgpAsn = 65352,
ConnectionId = aws_dx_connection.Example.Id,
DxGatewayId = exampleGateway.Id,
Vlan = 4094,
});
}
}
package main
import (
"github.com/pulumi/pulumi-aws/sdk/v2/go/aws/directconnect"
"github.com/pulumi/pulumi/sdk/v2/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
exampleGateway, err := directconnect.NewGateway(ctx, "exampleGateway", &directconnect.GatewayArgs{
AmazonSideAsn: pulumi.String("64512"),
})
if err != nil {
return err
}
_, err = directconnect.NewTransitVirtualInterface(ctx, "exampleTransitVirtualInterface", &directconnect.TransitVirtualInterfaceArgs{
AddressFamily: pulumi.String("ipv4"),
BgpAsn: pulumi.Int(65352),
ConnectionId: pulumi.String(aws_dx_connection.Example.Id),
DxGatewayId: exampleGateway.ID(),
Vlan: pulumi.Int(4094),
})
if err != nil {
return err
}
return nil
})
}import pulumi
import pulumi_aws as aws
example_gateway = aws.directconnect.Gateway("exampleGateway", amazon_side_asn=64512)
example_transit_virtual_interface = aws.directconnect.TransitVirtualInterface("exampleTransitVirtualInterface",
address_family="ipv4",
bgp_asn=65352,
connection_id=aws_dx_connection["example"]["id"],
dx_gateway_id=example_gateway.id,
vlan=4094)import * as pulumi from "@pulumi/pulumi";
import * as aws from "@pulumi/aws";
const exampleGateway = new aws.directconnect.Gateway("example", {
amazonSideAsn: "64512",
});
const exampleTransitVirtualInterface = new aws.directconnect.TransitVirtualInterface("example", {
addressFamily: "ipv4",
bgpAsn: 65352,
connectionId: aws_dx_connection_example.id,
dxGatewayId: exampleGateway.id,
vlan: 4094,
});Create a TransitVirtualInterface Resource
new TransitVirtualInterface(name: string, args: TransitVirtualInterfaceArgs, opts?: CustomResourceOptions);def TransitVirtualInterface(resource_name, opts=None, address_family=None, amazon_address=None, bgp_asn=None, bgp_auth_key=None, connection_id=None, customer_address=None, dx_gateway_id=None, mtu=None, name=None, tags=None, vlan=None, __props__=None);func NewTransitVirtualInterface(ctx *Context, name string, args TransitVirtualInterfaceArgs, opts ...ResourceOption) (*TransitVirtualInterface, error)public TransitVirtualInterface(string name, TransitVirtualInterfaceArgs args, CustomResourceOptions? opts = null)- name string
- The unique name of the resource.
- args TransitVirtualInterfaceArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- resource_name str
- The unique name of the resource.
- opts ResourceOptions
- A bag of options that control this resource's behavior.
- ctx Context
- Context object for the current deployment.
- name string
- The unique name of the resource.
- args TransitVirtualInterfaceArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args TransitVirtualInterfaceArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
TransitVirtualInterface Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Programming Model docs.
Inputs
The TransitVirtualInterface resource accepts the following input properties:
- Address
Family string The address family for the BGP peer.
ipv4oripv6.- Bgp
Asn int The autonomous system (AS) number for Border Gateway Protocol (BGP) configuration.
- Connection
Id string The ID of the Direct Connect connection (or LAG) on which to create the virtual interface.
- Dx
Gateway stringId The ID of the Direct Connect gateway to which to connect the virtual interface.
- Vlan int
The VLAN ID.
- Amazon
Address string The IPv4 CIDR address to use to send traffic to Amazon. Required for IPv4 BGP peers.
- Bgp
Auth stringKey The authentication key for BGP configuration.
- Customer
Address string The IPv4 CIDR destination address to which Amazon should send traffic. Required for IPv4 BGP peers.
- Mtu int
The maximum transmission unit (MTU) is the size, in bytes, of the largest permissible packet that can be passed over the connection. The MTU of a virtual transit interface can be either
1500or8500(jumbo frames). Default is1500.- Name string
The name for the virtual interface.
- Dictionary<string, string>
A map of tags to assign to the resource.
- Address
Family string The address family for the BGP peer.
ipv4oripv6.- Bgp
Asn int The autonomous system (AS) number for Border Gateway Protocol (BGP) configuration.
- Connection
Id string The ID of the Direct Connect connection (or LAG) on which to create the virtual interface.
- Dx
Gateway stringId The ID of the Direct Connect gateway to which to connect the virtual interface.
- Vlan int
The VLAN ID.
- Amazon
Address string The IPv4 CIDR address to use to send traffic to Amazon. Required for IPv4 BGP peers.
- Bgp
Auth stringKey The authentication key for BGP configuration.
- Customer
Address string The IPv4 CIDR destination address to which Amazon should send traffic. Required for IPv4 BGP peers.
- Mtu int
The maximum transmission unit (MTU) is the size, in bytes, of the largest permissible packet that can be passed over the connection. The MTU of a virtual transit interface can be either
1500or8500(jumbo frames). Default is1500.- Name string
The name for the virtual interface.
- map[string]string
A map of tags to assign to the resource.
- address
Family string The address family for the BGP peer.
ipv4oripv6.- bgp
Asn number The autonomous system (AS) number for Border Gateway Protocol (BGP) configuration.
- connection
Id string The ID of the Direct Connect connection (or LAG) on which to create the virtual interface.
- dx
Gateway stringId The ID of the Direct Connect gateway to which to connect the virtual interface.
- vlan number
The VLAN ID.
- amazon
Address string The IPv4 CIDR address to use to send traffic to Amazon. Required for IPv4 BGP peers.
- bgp
Auth stringKey The authentication key for BGP configuration.
- customer
Address string The IPv4 CIDR destination address to which Amazon should send traffic. Required for IPv4 BGP peers.
- mtu number
The maximum transmission unit (MTU) is the size, in bytes, of the largest permissible packet that can be passed over the connection. The MTU of a virtual transit interface can be either
1500or8500(jumbo frames). Default is1500.- name string
The name for the virtual interface.
- {[key: string]: string}
A map of tags to assign to the resource.
- address_
family str The address family for the BGP peer.
ipv4oripv6.- bgp_
asn float The autonomous system (AS) number for Border Gateway Protocol (BGP) configuration.
- connection_
id str The ID of the Direct Connect connection (or LAG) on which to create the virtual interface.
- dx_
gateway_ strid The ID of the Direct Connect gateway to which to connect the virtual interface.
- vlan float
The VLAN ID.
- amazon_
address str The IPv4 CIDR address to use to send traffic to Amazon. Required for IPv4 BGP peers.
- bgp_
auth_ strkey The authentication key for BGP configuration.
- customer_
address str The IPv4 CIDR destination address to which Amazon should send traffic. Required for IPv4 BGP peers.
- mtu float
The maximum transmission unit (MTU) is the size, in bytes, of the largest permissible packet that can be passed over the connection. The MTU of a virtual transit interface can be either
1500or8500(jumbo frames). Default is1500.- name str
The name for the virtual interface.
- Dict[str, str]
A map of tags to assign to the resource.
Outputs
All input properties are implicitly available as output properties. Additionally, the TransitVirtualInterface resource produces the following output properties:
- Amazon
Side stringAsn - Arn string
The ARN of the virtual interface.
- Aws
Device string The Direct Connect endpoint on which the virtual interface terminates.
- Id string
- The provider-assigned unique ID for this managed resource.
- Jumbo
Frame boolCapable Indicates whether jumbo frames (8500 MTU) are supported.
- Amazon
Side stringAsn - Arn string
The ARN of the virtual interface.
- Aws
Device string The Direct Connect endpoint on which the virtual interface terminates.
- Id string
- The provider-assigned unique ID for this managed resource.
- Jumbo
Frame boolCapable Indicates whether jumbo frames (8500 MTU) are supported.
- amazon
Side stringAsn - arn string
The ARN of the virtual interface.
- aws
Device string The Direct Connect endpoint on which the virtual interface terminates.
- id string
- The provider-assigned unique ID for this managed resource.
- jumbo
Frame booleanCapable Indicates whether jumbo frames (8500 MTU) are supported.
- amazon_
side_ strasn - arn str
The ARN of the virtual interface.
- aws_
device str The Direct Connect endpoint on which the virtual interface terminates.
- id str
- The provider-assigned unique ID for this managed resource.
- jumbo_
frame_ boolcapable Indicates whether jumbo frames (8500 MTU) are supported.
Look up an Existing TransitVirtualInterface Resource
Get an existing TransitVirtualInterface resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.
public static get(name: string, id: Input<ID>, state?: TransitVirtualInterfaceState, opts?: CustomResourceOptions): TransitVirtualInterfacestatic get(resource_name, id, opts=None, address_family=None, amazon_address=None, amazon_side_asn=None, arn=None, aws_device=None, bgp_asn=None, bgp_auth_key=None, connection_id=None, customer_address=None, dx_gateway_id=None, jumbo_frame_capable=None, mtu=None, name=None, tags=None, vlan=None, __props__=None);func GetTransitVirtualInterface(ctx *Context, name string, id IDInput, state *TransitVirtualInterfaceState, opts ...ResourceOption) (*TransitVirtualInterface, error)public static TransitVirtualInterface Get(string name, Input<string> id, TransitVirtualInterfaceState? state, CustomResourceOptions? opts = null)- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- resource_name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
The following state arguments are supported:
- Address
Family string The address family for the BGP peer.
ipv4oripv6.- Amazon
Address string The IPv4 CIDR address to use to send traffic to Amazon. Required for IPv4 BGP peers.
- Amazon
Side stringAsn - Arn string
The ARN of the virtual interface.
- Aws
Device string The Direct Connect endpoint on which the virtual interface terminates.
- Bgp
Asn int The autonomous system (AS) number for Border Gateway Protocol (BGP) configuration.
- Bgp
Auth stringKey The authentication key for BGP configuration.
- Connection
Id string The ID of the Direct Connect connection (or LAG) on which to create the virtual interface.
- Customer
Address string The IPv4 CIDR destination address to which Amazon should send traffic. Required for IPv4 BGP peers.
- Dx
Gateway stringId The ID of the Direct Connect gateway to which to connect the virtual interface.
- Jumbo
Frame boolCapable Indicates whether jumbo frames (8500 MTU) are supported.
- Mtu int
The maximum transmission unit (MTU) is the size, in bytes, of the largest permissible packet that can be passed over the connection. The MTU of a virtual transit interface can be either
1500or8500(jumbo frames). Default is1500.- Name string
The name for the virtual interface.
- Dictionary<string, string>
A map of tags to assign to the resource.
- Vlan int
The VLAN ID.
- Address
Family string The address family for the BGP peer.
ipv4oripv6.- Amazon
Address string The IPv4 CIDR address to use to send traffic to Amazon. Required for IPv4 BGP peers.
- Amazon
Side stringAsn - Arn string
The ARN of the virtual interface.
- Aws
Device string The Direct Connect endpoint on which the virtual interface terminates.
- Bgp
Asn int The autonomous system (AS) number for Border Gateway Protocol (BGP) configuration.
- Bgp
Auth stringKey The authentication key for BGP configuration.
- Connection
Id string The ID of the Direct Connect connection (or LAG) on which to create the virtual interface.
- Customer
Address string The IPv4 CIDR destination address to which Amazon should send traffic. Required for IPv4 BGP peers.
- Dx
Gateway stringId The ID of the Direct Connect gateway to which to connect the virtual interface.
- Jumbo
Frame boolCapable Indicates whether jumbo frames (8500 MTU) are supported.
- Mtu int
The maximum transmission unit (MTU) is the size, in bytes, of the largest permissible packet that can be passed over the connection. The MTU of a virtual transit interface can be either
1500or8500(jumbo frames). Default is1500.- Name string
The name for the virtual interface.
- map[string]string
A map of tags to assign to the resource.
- Vlan int
The VLAN ID.
- address
Family string The address family for the BGP peer.
ipv4oripv6.- amazon
Address string The IPv4 CIDR address to use to send traffic to Amazon. Required for IPv4 BGP peers.
- amazon
Side stringAsn - arn string
The ARN of the virtual interface.
- aws
Device string The Direct Connect endpoint on which the virtual interface terminates.
- bgp
Asn number The autonomous system (AS) number for Border Gateway Protocol (BGP) configuration.
- bgp
Auth stringKey The authentication key for BGP configuration.
- connection
Id string The ID of the Direct Connect connection (or LAG) on which to create the virtual interface.
- customer
Address string The IPv4 CIDR destination address to which Amazon should send traffic. Required for IPv4 BGP peers.
- dx
Gateway stringId The ID of the Direct Connect gateway to which to connect the virtual interface.
- jumbo
Frame booleanCapable Indicates whether jumbo frames (8500 MTU) are supported.
- mtu number
The maximum transmission unit (MTU) is the size, in bytes, of the largest permissible packet that can be passed over the connection. The MTU of a virtual transit interface can be either
1500or8500(jumbo frames). Default is1500.- name string
The name for the virtual interface.
- {[key: string]: string}
A map of tags to assign to the resource.
- vlan number
The VLAN ID.
- address_
family str The address family for the BGP peer.
ipv4oripv6.- amazon_
address str The IPv4 CIDR address to use to send traffic to Amazon. Required for IPv4 BGP peers.
- amazon_
side_ strasn - arn str
The ARN of the virtual interface.
- aws_
device str The Direct Connect endpoint on which the virtual interface terminates.
- bgp_
asn float The autonomous system (AS) number for Border Gateway Protocol (BGP) configuration.
- bgp_
auth_ strkey The authentication key for BGP configuration.
- connection_
id str The ID of the Direct Connect connection (or LAG) on which to create the virtual interface.
- customer_
address str The IPv4 CIDR destination address to which Amazon should send traffic. Required for IPv4 BGP peers.
- dx_
gateway_ strid The ID of the Direct Connect gateway to which to connect the virtual interface.
- jumbo_
frame_ boolcapable Indicates whether jumbo frames (8500 MTU) are supported.
- mtu float
The maximum transmission unit (MTU) is the size, in bytes, of the largest permissible packet that can be passed over the connection. The MTU of a virtual transit interface can be either
1500or8500(jumbo frames). Default is1500.- name str
The name for the virtual interface.
- Dict[str, str]
A map of tags to assign to the resource.
- vlan float
The VLAN ID.
Package Details
- Repository
- https://github.com/pulumi/pulumi-aws
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
awsTerraform Provider.