Enum ClientRoutingPolicy

java.lang.Object
java.lang.Enum<ClientRoutingPolicy>
software.amazon.awscdk.services.elasticloadbalancingv2.ClientRoutingPolicy
All Implemented Interfaces:
Serializable, Comparable<ClientRoutingPolicy>, java.lang.constant.Constable

@Generated(value="jsii-pacmak/1.106.0 (build e852934)", date="2025-02-06T22:15:54.461Z") @Stability(Stable) public enum ClientRoutingPolicy extends Enum<ClientRoutingPolicy>
Indicates how traffic is distributed among the load balancer Availability Zones.

Example:

 Vpc vpc;
 NetworkLoadBalancer lb = NetworkLoadBalancer.Builder.create(this, "LB")
         .vpc(vpc)
         // Whether deletion protection is enabled.
         .deletionProtection(true)
         // Whether cross-zone load balancing is enabled.
         .crossZoneEnabled(true)
         // Whether the load balancer blocks traffic through the Internet Gateway (IGW).
         .denyAllIgwTraffic(false)
         // Indicates how traffic is distributed among the load balancer Availability Zones.
         .clientRoutingPolicy(ClientRoutingPolicy.AVAILABILITY_ZONE_AFFINITY)
         // Indicates whether zonal shift is enabled.
         .zonalShift(true)
         .build();
 

See Also:
  • Enum Constant Details

    • AVAILABILITY_ZONE_AFFINITY

      @Stability(Stable) public static final ClientRoutingPolicy AVAILABILITY_ZONE_AFFINITY
      100 percent zonal affinity.
    • PARTIAL_AVAILABILITY_ZONE_AFFINITY

      @Stability(Stable) public static final ClientRoutingPolicy PARTIAL_AVAILABILITY_ZONE_AFFINITY
      85 percent zonal affinity.
    • ANY_AVAILABILITY_ZONE

      @Stability(Stable) public static final ClientRoutingPolicy ANY_AVAILABILITY_ZONE
      No zonal affinity.
  • Method Details

    • values

      public static ClientRoutingPolicy[] values()
      Returns an array containing the constants of this enum type, in the order they are declared.
      Returns:
      an array containing the constants of this enum type, in the order they are declared
    • valueOf

      public static ClientRoutingPolicy valueOf(String name)
      Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)
      Parameters:
      name - the name of the enum constant to be returned.
      Returns:
      the enum constant with the specified name
      Throws:
      IllegalArgumentException - if this enum type has no constant with the specified name
      NullPointerException - if the argument is null