AWS Fundamentals Logo
AWS Fundamentals
L1 ConstructAWS::DirectConnect::PublicVirtualInterface

CfnPublicVirtualInterface

Resource Type definition for AWS::DirectConnect::PublicVirtualInterface.

Import

import { CfnPublicVirtualInterface } from 'aws-cdk-lib/aws-directconnect';

Or use the module namespace:

import * as directconnect from 'aws-cdk-lib/aws-directconnect';
// directconnect.CfnPublicVirtualInterface

Properties

Configuration passed to the constructor as CfnPublicVirtualInterfaceProps.

bgpPeersRequired
IResolvable | IResolvable | BgpPeerProperty[]

The BGP peers configured on this virtual interface.

connectionIdRequired
string | IConnectionRef | ILagRef
virtualInterfaceNameRequired
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 (-).

vlanRequired
number

The ID of the VLAN.

allocatePublicVirtualInterfaceRoleArnOptional
string

The Amazon Resource Name (ARN) of the role to allocate the public virtual interface. Needs directconnect:AllocatePublicVirtualInterface permissions and tag permissions if applicable.

routeFilterPrefixesOptional
string[]

The routes to be advertised to the AWS network in this region.

tagsOptional
CfnTag[]

The tags associated with the public virtual interface.

CloudFormation Resource

This L1 construct maps directly to the following CloudFormation resource type.

Learn AWS the Practical Way

Our bi-weekly newsletter teaches hands-on AWS fundamentals. No certification fluff - just practical knowledge.

Subscribe to Newsletter