VpcLinkAttributes

class aws_cdk.aws_apigatewayv2.VpcLinkAttributes(*, vpc, vpc_link_id)

Bases: object

Attributes when importing a new VpcLink.

Parameters:
  • vpc (IVpc) – The VPC to which this VPC link is associated with.

  • vpc_link_id (str) – The VPC Link id.

ExampleMetadata:

infused

Example:

import aws_cdk.aws_ec2 as ec2

# vpc: ec2.Vpc

awesome_link = apigwv2.VpcLink.from_vpc_link_attributes(self, "awesome-vpc-link",
    vpc_link_id="us-east-1_oiuR12Abd",
    vpc=vpc
)

Attributes

vpc

The VPC to which this VPC link is associated with.

The VPC Link id.