class VpcLink (construct)
Define a new VPC Link Specifies an API Gateway VPC link for a RestApi to access resources in an Amazon Virtual Private Cloud (VPC).
new VpcLink(scope: Construct, id: string, props?: VpcLinkProps)
|description?||The description of the VPC link.|
|targets?||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.|
|vpc||The name used to label and identify the VPC link.|
(optional, default: no description)
The description of the VPC link.
(optional, default: no targets. Use
addTargets to add targets)
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.
(optional, default: automatically generated name)
The name used to label and identify the VPC link.
|node||Construct tree node which offers APIs for interacting with the construct tree.|
|stack||The stack in which this resource is defined.|
|vpc||Physical ID of the VpcLink resource.|
Construct tree node which offers APIs for interacting with the construct tree.
The stack in which this resource is defined.
Physical ID of the VpcLink resource.
|to||Returns a string representation of this construct.|
|protected validate()||Validate the current construct.|
public addTargets(...targets: INetworkLoadBalancer): void
public toString(): string
Returns a string representation of this construct.
protected validate(): Array<string>
Validate the current construct.
This method can be implemented by derived constructs in order to perform validation logic. It is called on all constructs before synthesis.