Interface VpcLinkProps
- All Superinterfaces:
software.amazon.jsii.JsiiSerializable
- All Known Implementing Classes:
VpcLinkProps.Jsii$Proxy
@Generated(value="jsii-pacmak/1.103.1 (build bef2dea)",
date="2024-10-05T03:43:38.041Z")
@Stability(Stable)
public interface VpcLinkProps
extends software.amazon.jsii.JsiiSerializable
Properties for a VpcLink.
Example:
import software.amazon.awscdk.services.elasticloadbalancingv2.*; Vpc vpc = new Vpc(this, "VPC"); NetworkLoadBalancer nlb = NetworkLoadBalancer.Builder.create(this, "NLB") .vpc(vpc) .build(); VpcLink link = VpcLink.Builder.create(this, "link") .targets(List.of(nlb)) .build(); Integration integration = Integration.Builder.create() .type(IntegrationType.HTTP_PROXY) .integrationHttpMethod("ANY") .options(IntegrationOptions.builder() .connectionType(ConnectionType.VPC_LINK) .vpcLink(link) .build()) .build();
-
Nested Class Summary
Modifier and TypeInterfaceDescriptionstatic final class
A builder forVpcLinkProps
static final class
An implementation forVpcLinkProps
-
Method Summary
Modifier and TypeMethodDescriptionstatic VpcLinkProps.Builder
builder()
default String
The description of the VPC link.default List<INetworkLoadBalancer>
The network load balancers of the VPC targeted by the VPC link.default String
The name used to label and identify the VPC link.Methods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Method Details
-
getDescription
The description of the VPC link.Default: no description
-
getTargets
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
-
getVpcLinkName
The name used to label and identify the VPC link.Default: - automatically generated name
-
builder
- Returns:
- a
VpcLinkProps.Builder
ofVpcLinkProps
-