Skip to content
v2.273.0

VpcLinkAttributes Struct ​

Attributes when importing a new VpcLink.

Example ​

ts
import * as ec2 from 'aws-cdk-lib/aws-ec2';

declare const vpc: ec2.Vpc;
const awesomeLink = apigwv2.VpcLink.fromVpcLinkAttributes(this, 'awesome-vpc-link', {
  vpcLinkId: 'us-east-1_oiuR12Abd',
  vpc,
});

Properties ​

vpcIVpcvpcIVpcvpcIVpcVpcIVpcVpcIVpcrequired#
The VPC to which this VPC link is associated with.
vpcLinkIdstringvpc_link_idstrvpcLinkIdStringVpcLinkIdstringVpcLinkId*stringrequired#
The VPC Link id.