Skip to content
v2.278.0

CfnPublicVirtualInterfaceProps Struct ​

Properties for defining a CfnPublicVirtualInterface.

Example ​

ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_directconnect as directconnect } from 'aws-cdk-lib';
const cfnPublicVirtualInterfaceProps: directconnect.CfnPublicVirtualInterfaceProps = {
  bgpPeers: [{
    addressFamily: 'addressFamily',
    asn: 'asn',

    // the properties below are optional
    amazonAddress: 'amazonAddress',
    authKey: 'authKey',
    bgpPeerId: 'bgpPeerId',
    customerAddress: 'customerAddress',
  }],
  connectionId: 'connectionId',
  virtualInterfaceName: 'virtualInterfaceName',
  vlan: 123,

  // the properties below are optional
  allocatePublicVirtualInterfaceRoleArn: 'allocatePublicVirtualInterfaceRoleArn',
  rateLimit: 'rateLimit',
  routeFilterPrefixes: ['routeFilterPrefixes'],
  tags: [{
    key: 'key',
    value: 'value',
  }],
};
python
from aws_cdk import CfnTag
# The code below shows an example of how to instantiate this type.
# The values are placeholders you should change.
from aws_cdk import aws_directconnect as directconnect

cfn_public_virtual_interface_props = directconnect.CfnPublicVirtualInterfaceProps(
    bgp_peers=[directconnect.CfnPublicVirtualInterface.BgpPeerProperty(
        address_family="addressFamily",
        asn="asn",

        # the properties below are optional
        amazon_address="amazonAddress",
        auth_key="authKey",
        bgp_peer_id="bgpPeerId",
        customer_address="customerAddress"
    )],
    connection_id="connectionId",
    virtual_interface_name="virtualInterfaceName",
    vlan=123,

    # the properties below are optional
    allocate_public_virtual_interface_role_arn="allocatePublicVirtualInterfaceRoleArn",
    rate_limit="rateLimit",
    route_filter_prefixes=["routeFilterPrefixes"],
    tags=[CfnTag(
        key="key",
        value="value"
    )]
)
java
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.services.directconnect.*;

CfnPublicVirtualInterfaceProps cfnPublicVirtualInterfaceProps = CfnPublicVirtualInterfaceProps.builder()
        .bgpPeers(List.of(BgpPeerProperty.builder()
                .addressFamily("addressFamily")
                .asn("asn")

                // the properties below are optional
                .amazonAddress("amazonAddress")
                .authKey("authKey")
                .bgpPeerId("bgpPeerId")
                .customerAddress("customerAddress")
                .build()))
        .connectionId("connectionId")
        .virtualInterfaceName("virtualInterfaceName")
        .vlan(123)

        // the properties below are optional
        .allocatePublicVirtualInterfaceRoleArn("allocatePublicVirtualInterfaceRoleArn")
        .rateLimit("rateLimit")
        .routeFilterPrefixes(List.of("routeFilterPrefixes"))
        .tags(List.of(CfnTag.builder()
                .key("key")
                .value("value")
                .build()))
        .build();
csharp
// Install: dotnet add package Amazon.CDK.Lib
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.AWS.DirectConnect;

var cfnPublicVirtualInterfaceProps = new CfnPublicVirtualInterfaceProps {
    BgpPeers = new [] { new BgpPeerProperty {
        AddressFamily = "addressFamily",
        Asn = "asn",

        // the properties below are optional
        AmazonAddress = "amazonAddress",
        AuthKey = "authKey",
        BgpPeerId = "bgpPeerId",
        CustomerAddress = "customerAddress"
    } },
    ConnectionId = "connectionId",
    VirtualInterfaceName = "virtualInterfaceName",
    Vlan = 123,

    // the properties below are optional
    AllocatePublicVirtualInterfaceRoleArn = "allocatePublicVirtualInterfaceRoleArn",
    RateLimit = "rateLimit",
    RouteFilterPrefixes = new [] { "routeFilterPrefixes" },
    Tags = new [] { new CfnTag {
        Key = "key",
        Value = "value"
    } }
};
go
// Install: go get github.com/aws/aws-cdk-go/awscdk/v2
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import "github.com/aws/aws-cdk-go/awscdk"

cfnPublicVirtualInterfaceProps := &CfnPublicVirtualInterfaceProps{
	BgpPeers: []interface{}{
		&BgpPeerProperty{
			AddressFamily: jsii.String("addressFamily"),
			Asn: jsii.String("asn"),

			// the properties below are optional
			AmazonAddress: jsii.String("amazonAddress"),
			AuthKey: jsii.String("authKey"),
			BgpPeerId: jsii.String("bgpPeerId"),
			CustomerAddress: jsii.String("customerAddress"),
		},
	},
	ConnectionId: jsii.String("connectionId"),
	VirtualInterfaceName: jsii.String("virtualInterfaceName"),
	Vlan: jsii.Number(123),

	// the properties below are optional
	AllocatePublicVirtualInterfaceRoleArn: jsii.String("allocatePublicVirtualInterfaceRoleArn"),
	RateLimit: jsii.String("rateLimit"),
	RouteFilterPrefixes: []*string{
		jsii.String("routeFilterPrefixes"),
	},
	Tags: []CfnTag{
		&CfnTag{
			Key: jsii.String("key"),
			Value: jsii.String("value"),
		},
	},
}

Properties ​

allocatePublicVirtualInterfaceRoleArnoptionalstringallocate_public_virtual_interface_role_arnoptionalstrallocatePublicVirtualInterfaceRoleArnoptionalStringAllocatePublicVirtualInterfaceRoleArnoptionalstringAllocatePublicVirtualInterfaceRoleArnoptional*string #
The Amazon Resource Name (ARN) of the role to allocate the public virtual interface.

Needs directconnect:AllocatePublicVirtualInterface permissions and tag permissions if applicable.

bgpPeersIResolvable | IResolvable | CfnPublicVirtualInterface.BgpPeerProperty[]bgp_peerstyping.Union[IResolvable, typing.List[typing.Union[IResolvable, BgpPeerProperty]]]bgpPeersIResolvableBgpPeersIResolvableBgpPeersinterface{} required #
The BGP peers configured on this virtual interface.
connectionIdstring | IConnectionRef | ILagRefconnection_idtyping.Union[str, IConnectionRef, ILagRef]connectionIdStringConnectionIdstringConnectionIdinterface{} required #
rateLimitoptionalstringrate_limitoptionalstrrateLimitoptionalStringRateLimitoptionalstringRateLimitoptional*string #
The rate limit (bandwidth allocation) for the virtual interface.

The value must be one of the supported bandwidth values (e.g., 50Mbps, 1Gbps, 10Gbps) and cannot exceed the bandwidth of the parent connection or LAG.

routeFilterPrefixesoptionalstring[]route_filter_prefixesoptionaltyping.List[str]routeFilterPrefixesoptionalList<String>RouteFilterPrefixesoptionalstring[]RouteFilterPrefixesoptional*[]*string #
The routes to be advertised to the AWS network in this region.
tagsoptionalCfnTag[]tagsoptionaltyping.List[CfnTag]tagsoptionalList<CfnTag>TagsoptionalCfnTag[]Tagsoptional*[]CfnTag #
The tags associated with the public virtual interface.
virtualInterfaceNamestringvirtual_interface_namestrvirtualInterfaceNameStringVirtualInterfaceNamestringVirtualInterfaceName*string required #
The name of the virtual interface assigned by the customer network.

The name has a maximum of 100 characters. The following are valid characters: a-z, 0-9 and a hyphen (-).

vlannumbervlanint | floatvlanNumberVlandoubleVlan*float64 required #
The ID of the VLAN.