VpcLinkProps
- class aws_cdk.aws_apigatewayv2.VpcLinkProps(*, vpc, security_groups=None, subnets=None, vpc_link_name=None)
Bases:
object
(experimental) Properties for a VpcLink.
- Parameters:
vpc (
IVpc
) – (experimental) The VPC in which the private resources reside.security_groups (
Optional
[Sequence
[ISecurityGroup
]]) – (experimental) A list of security groups for the VPC link. Default: - no security groups. UseaddSecurityGroups
to add security groupssubnets (
Union
[SubnetSelection
,Dict
[str
,Any
],None
]) – (experimental) A list of subnets for the VPC link. Default: - private subnets of the provided VPC. UseaddSubnets
to add more subnetsvpc_link_name (
Optional
[str
]) – (experimental) The name used to label and identify the VPC link. Default: - automatically generated name
- Stability:
experimental
- ExampleMetadata:
infused
Example:
import aws_cdk.aws_ec2 as ec2 vpc = ec2.Vpc(self, "VPC") vpc_link = apigwv2.VpcLink(self, "VpcLink", vpc=vpc)
Attributes
- security_groups
(experimental) A list of security groups for the VPC link.
- Default:
no security groups. Use
addSecurityGroups
to add security groups
- Stability:
experimental
- subnets
(experimental) A list of subnets for the VPC link.
- Default:
private subnets of the provided VPC. Use
addSubnets
to add more subnets
- Stability:
experimental
- vpc
(experimental) The VPC in which the private resources reside.
- Stability:
experimental
- vpc_link_name
(experimental) The name used to label and identify the VPC link.
- Default:
automatically generated name
- Stability:
experimental