interface CfnPublicVirtualInterfaceProps
| Language | Type name |
|---|---|
.NET | Amazon.CDK.AWS.DirectConnect.CfnPublicVirtualInterfaceProps |
Go | github.com/aws/aws-cdk-go/awscdk/v2/awsdirectconnect#CfnPublicVirtualInterfaceProps |
Java | software.amazon.awscdk.services.directconnect.CfnPublicVirtualInterfaceProps |
Python | aws_cdk.aws_directconnect.CfnPublicVirtualInterfaceProps |
TypeScript | aws-cdk-lib » aws_directconnect » CfnPublicVirtualInterfaceProps |
Properties for defining a CfnPublicVirtualInterface.
Example
// 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',
routeFilterPrefixes: ['routeFilterPrefixes'],
tags: [{
key: 'key',
value: 'value',
}],
};
Properties
| Name | Type | Description |
|---|---|---|
| bgp | IResolvable | (IResolvable | Bgp)[] | The BGP peers configured on this virtual interface. |
| connection | string | IConnection | ILag | |
| virtual | string | The name of the virtual interface assigned by the customer network. |
| vlan | number | The ID of the VLAN. |
| allocate | string | The Amazon Resource Name (ARN) of the role to allocate the public virtual interface. |
| route | string[] | The routes to be advertised to the AWS network in this region. |
| tags? | Cfn[] | The tags associated with the public virtual interface. |
bgpPeers
Type:
IResolvable | (IResolvable | Bgp)[]
The BGP peers configured on this virtual interface.
connectionId
Type:
string | IConnection | ILag
virtualInterfaceName
Type:
string
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 (-).
vlan
Type:
number
The ID of the VLAN.
allocatePublicVirtualInterfaceRoleArn?
Type:
string
(optional)
The Amazon Resource Name (ARN) of the role to allocate the public virtual interface.
Needs directconnect:AllocatePublicVirtualInterface permissions and tag permissions if applicable.
routeFilterPrefixes?
Type:
string[]
(optional)
The routes to be advertised to the AWS network in this region.
tags?
Type:
Cfn[]
(optional)
The tags associated with the public virtual interface.

.NET
Go
Java
Python
TypeScript