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:
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionNo zonal affinity.100 percent zonal affinity.85 percent zonal affinity. -
Method Summary
Modifier and TypeMethodDescriptionstatic ClientRoutingPolicy
Returns the enum constant of this type with the specified name.static ClientRoutingPolicy[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
AVAILABILITY_ZONE_AFFINITY
100 percent zonal affinity. -
PARTIAL_AVAILABILITY_ZONE_AFFINITY
85 percent zonal affinity. -
ANY_AVAILABILITY_ZONE
No zonal affinity.
-
-
Method Details
-
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
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 nameNullPointerException
- if the argument is null
-