Skip to main content

Vpc Link

Manages an Api Gateway Vpc Link.

Sample code

exports.createResources = () => [
{
type: "VpcLink",
group: "ApiGatewayV2",
properties: () => ({
Name: "APIGWVpcLinkToPrivateHTTPEndpoint",
}),
dependencies: () => ({
subnets: [
"vpclink-ex-subnet-private1-us-east-1a",
"vpclink-ex-subnet-private2-us-east-1b",
],
}),
},
];

Properties

Dependencies

Full Examples

List

The voc links can be filtered with the ApiGatewayV2::VpcLink type:

gc l -t ApiGatewayV2::VpcLink
Listing resources on 1 provider: aws
✓ aws
✓ Initialising
✓ Listing 1/1
┌──────────────────────────────────────────────────────────────────────┐
│ 1 ApiGatewayV2::VpcLink from aws │
├──────────────────────────────────────────────────────────────────────┤
│ name: APIGWVpcLinkToPrivateHTTPEndpoint │
│ managedByUs: Yes │
│ live: │
│ CreatedDate: 2022-04-05T22:13:41.000Z │
│ Name: APIGWVpcLinkToPrivateHTTPEndpoint │
│ SecurityGroupIds: [] │
│ SubnetIds: │
│ - "subnet-0ac827558cf456898" │
│ - "subnet-02f1c00b0494f7c24" │
│ Tags: │
│ VpcLinkId: 6pbmwg │
│ VpcLinkStatus: AVAILABLE │
│ VpcLinkStatusMessage: VPC link is ready to route traffic │
│ VpcLinkVersion: V2 │
│ │
└──────────────────────────────────────────────────────────────────────┘


List Summary:
Provider: aws
┌─────────────────────────────────────────────────────────────────────┐
│ aws │
├───────────────────────┬─────────────────────────────────────────────┤
│ ApiGatewayV2::VpcLink │ APIGWVpcLinkToPrivateHTTPEndpoint │
└───────────────────────┴─────────────────────────────────────────────┘
1 resource, 1 type, 1 provider
Command "gc l -t VpcLink" executed in 5s, 184 MB