Interface NetworkLoadBalancerProps

All Superinterfaces:
BaseLoadBalancerProps, software.amazon.jsii.JsiiSerializable
All Known Implementing Classes:
NetworkLoadBalancerProps.Jsii$Proxy

@Generated(value="jsii-pacmak/1.93.0 (build 1706ca5)", date="2024-01-03T18:29:26.543Z") @Stability(Stable) public interface NetworkLoadBalancerProps extends software.amazon.jsii.JsiiSerializable, BaseLoadBalancerProps
Properties for a network load balancer.

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();
 
  • Method Details

    • getCrossZoneEnabled

      @Stability(Stable) @Nullable default Boolean getCrossZoneEnabled()
      Indicates whether cross-zone load balancing is enabled.

      Default: false

    • getIpAddressType

      @Stability(Stable) @Nullable default IpAddressType getIpAddressType()
      The type of IP addresses to use.

      If you want to add a UDP or TCP_UDP listener to the load balancer, you must choose IPv4.

      Default: IpAddressType.IPV4

    • getSecurityGroups

      @Stability(Stable) @Nullable default List<ISecurityGroup> getSecurityGroups()
      Security groups to associate with this load balancer.

      Default: - No security groups associated with the load balancer.

    • builder

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