Define a new VPC Link Specifies an API Gateway VPC link for a RestApi to access resources in an Amazon Virtual Private Cloud (VPC).
import { VpcLink } from 'aws-cdk-lib/aws-apigateway';Or use the module namespace:
import * as apigateway from 'aws-cdk-lib/aws-apigateway';
// apigateway.VpcLinkConfiguration passed to the constructor as VpcLinkProps.
descriptionOptionalstringThe description of the VPC link.
Default: no description
targetsOptionalINetworkLoadBalancer[]The network load balancers of the VPC targeted by the VPC link. The network load balancers must be owned by the same AWS account of the API owner.
Default: - no targets. Use `addTargets` to add targets
vpcLinkNameOptionalstringThe name used to label and identify the VPC link.
Default: - automatically generated name
Everything you need to know about Amazon API Gateway on one page. HD quality, print-friendly.
Download Free Infographicaws-apigateway