enum ClientRoutingPolicy
| Language | Type name |
|---|---|
.NET | Amazon.CDK.AWS.ElasticLoadBalancingV2.ClientRoutingPolicy |
Go | github.com/aws/aws-cdk-go/awscdk/v2/awselasticloadbalancingv2#ClientRoutingPolicy |
Java | software.amazon.awscdk.services.elasticloadbalancingv2.ClientRoutingPolicy |
Python | aws_cdk.aws_elasticloadbalancingv2.ClientRoutingPolicy |
TypeScript (source) | aws-cdk-lib » aws_elasticloadbalancingv2 » ClientRoutingPolicy |
Indicates how traffic is distributed among the load balancer Availability Zones.
Example
declare const vpc: ec2.Vpc;
const lb = new elbv2.NetworkLoadBalancer(this, 'LB', {
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: elbv2.ClientRoutingPolicy.AVAILABILITY_ZONE_AFFINITY,
// Indicates whether zonal shift is enabled.
zonalShift: true,
});
Members
| Name | Description |
|---|---|
| AVAILABILITY_ZONE_AFFINITY | 100 percent zonal affinity. |
| PARTIAL_AVAILABILITY_ZONE_AFFINITY | 85 percent zonal affinity. |
| ANY_AVAILABILITY_ZONE | No zonal affinity. |
AVAILABILITY_ZONE_AFFINITY
100 percent zonal affinity.
PARTIAL_AVAILABILITY_ZONE_AFFINITY
85 percent zonal affinity.
ANY_AVAILABILITY_ZONE
No zonal affinity.

.NET
Go
Java
Python
TypeScript (