Resource: awsDxPublicVirtualInterface
Provides a Direct Connect public virtual interface resource.
Example Usage
/*Provider bindings are generated by running cdktf get.
See https://cdk.tf/provider-generation for more details.*/
import * as aws from "./.gen/providers/aws";
new aws.dxPublicVirtualInterface.DxPublicVirtualInterface(this, "foo", {
addressFamily: "ipv4",
amazonAddress: "175.45.176.2/30",
bgpAsn: 65352,
connectionId: "dxcon-zzzzzzzz",
customerAddress: "175.45.176.1/30",
name: "vif-foo",
routeFilterPrefixes: ["210.52.109.0/24", "175.45.176.0/22"],
vlan: 4094,
});
Argument Reference
The following arguments are supported:
addressFamily
- (Required) The address family for the BGP peer.ipv4
oripv6
.bgpAsn
- (Required) The autonomous system (AS) number for Border Gateway Protocol (BGP) configuration.connectionId
- (Required) The ID of the Direct Connect connection (or LAG) on which to create the virtual interface.name
- (Required) The name for the virtual interface.vlan
- (Required) The VLAN ID.amazonAddress
- (Optional) The IPv4 CIDR address to use to send traffic to Amazon. Required for IPv4 BGP peers.bgpAuthKey
- (Optional) The authentication key for BGP configuration.customerAddress
- (Optional) The IPv4 CIDR destination address to which Amazon should send traffic. Required for IPv4 BGP peers.routeFilterPrefixes
- (Required) A list of routes to be advertised to the AWS network in this region.tags
- (Optional) A map of tags to assign to the resource. If configured with a providerdefaultTags
configuration block present, tags with matching keys will overwrite those defined at the provider-level.
Attributes Reference
In addition to all arguments above, the following attributes are exported:
id
- The ID of the virtual interface.arn
- The ARN of the virtual interface.awsDevice
- The Direct Connect endpoint on which the virtual interface terminates.tagsAll
- A map of tags assigned to the resource, including those inherited from the providerdefaultTags
configuration block.
Timeouts
create
- (Default10M
)delete
- (Default10M
)
Import
Direct Connect public virtual interfaces can be imported using the vifId
, e.g.,