AWS::ApiGatewayV2::VpcLinkThe `AWS::ApiGatewayV2::VpcLink` resource creates a VPC link. Supported only for HTTP APIs. The VPC link status must transition from `PENDING` to `AVAILABLE` to successfully create a VPC link, which can take up to 10 minutes. To learn more, see [Working with VPC Links for HTTP APIs](https://docs.aws.amazon.com/apigateway/latest/developerguide/http-api-vpc-links.html) in the *API Gateway Developer Guide* .
import { CfnVpcLink } from 'aws-cdk-lib/aws-apigatewayv2';Or use the module namespace:
import * as apigatewayv2 from 'aws-cdk-lib/aws-apigatewayv2';
// apigatewayv2.CfnVpcLinkConfiguration passed to the constructor as CfnVpcLinkProps.
nameRequiredstringThe name of the VPC link.
subnetIdsRequiredstring | ISubnetRef[]A list of subnet IDs to include in the VPC link.
securityGroupIdsOptionalstring | ISecurityGroupRef[]A list of security group IDs for the VPC link.
tagsOptional{ [key: string]: string }The collection of tags. Each tag element is associated with a given resource.
This L1 construct maps directly to the following CloudFormation resource type.
Our bi-weekly newsletter teaches hands-on AWS fundamentals. No certification fluff - just practical knowledge.
Subscribe to Newsletteraws-apigatewayv2AWS::ApiGatewayV2::VpcLink