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*.
4 configurable properties. 2 required. Click a row to see details.
| Property | Type | Flags |
|---|---|---|
Name | string | Required |
SubnetIds | Array<string> | RequiredCreate-only |
SecurityGroupIds | Array<string> | Create-only |
Tags | object |
Values returned after the resource is created. Access these with Fn::GetAtt.
| Attribute | Type | Description |
|---|---|---|
VpcLinkId | string | - |
A minimal template with required properties and common optional ones.
AWSTemplateFormatVersion: "2010-09-09"
Description: Sample template for AWS::ApiGatewayV2::VpcLink
Resources:
MyResource:
Type: AWS::ApiGatewayV2::VpcLink
Properties:
SubnetIds: "my-subnetids"
Name: "my-name"
Tags:
- Key: Environment
Value: ProductionPermissions CloudFormation needs in your IAM role to manage this resource.
apigateway:POSTapigateway:GETapigateway:TagResourceiam:CreateServiceLinkedRoleiam:DeleteServiceLinkedRoleiam:GetServiceLinkedRoleDeletionStatusapigateway:PATCHapigateway:GETapigateway:TagResourceapigateway:unTagResourceiam:CreateServiceLinkedRoleiam:DeleteServiceLinkedRoleiam:GetServiceLinkedRoleDeletionStatusapigateway:GETiam:CreateServiceLinkedRoleiam:DeleteServiceLinkedRoleiam:GetServiceLinkedRoleDeletionStatusapigateway:GETapigateway:DELETEiam:CreateServiceLinkedRoleiam:DeleteServiceLinkedRoleiam:GetServiceLinkedRoleDeletionStatusapigateway:GETiam:CreateServiceLinkedRoleiam:DeleteServiceLinkedRoleiam:GetServiceLinkedRoleDeletionStatusOur bi-weekly newsletter teaches hands-on AWS fundamentals. No certification fluff - just practical knowledge.
Subscribe to NewsletterVpcLinkIdThese properties cannot be changed after the resource is created. Updating them triggers a replacement.
SecurityGroupIdsSubnetIds