Interface VpcLinkProps

All Superinterfaces:
software.amazon.jsii.JsiiSerializable
All Known Implementing Classes:
VpcLinkProps.Jsii$Proxy

@Generated(value="jsii-pacmak/1.84.0 (build 5404dcf)", date="2023-06-19T16:30:45.136Z") @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)
         .options(IntegrationOptions.builder()
                 .connectionType(ConnectionType.VPC_LINK)
                 .vpcLink(link)
                 .build())
         .build();
 
  • Method Details

    • getDescription

      @Stability(Stable) @Nullable default String getDescription()
      The description of the VPC link.

      Default: no description

    • getTargets

      @Stability(Stable) @Nullable default List<INetworkLoadBalancer> 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

      @Stability(Stable) @Nullable default String getVpcLinkName()
      The name used to label and identify the VPC link.

      Default: - automatically generated name

    • builder

      @Stability(Stable) static VpcLinkProps.Builder builder()
      Returns:
      a VpcLinkProps.Builder of VpcLinkProps