Skip to content
v2.273.0

TargetGroupLoadBalancingAlgorithmType Enum ​

Load balancing algorithmm type for target groups.

Example ​

ts
declare const vpc: ec2.Vpc;

const tg = new elbv2.ApplicationTargetGroup(this, 'TargetGroup', {
  vpc,
  loadBalancingAlgorithmType: elbv2.TargetGroupLoadBalancingAlgorithmType.WEIGHTED_RANDOM,
  enableAnomalyMitigation: true,
});

Members ​

MemberDescription
ROUND_ROBINround_robin.
LEAST_OUTSTANDING_REQUESTSleast_outstanding_requests.
WEIGHTED_RANDOMweighted_random.

Referenced by ​

  • AddApplicationTargetsProps.loadBalancingAlgorithmTypeload_balancing_algorithm_typeloadBalancingAlgorithmTypeLoadBalancingAlgorithmTypeLoadBalancingAlgorithmType
  • ApplicationTargetGroupProps.loadBalancingAlgorithmTypeload_balancing_algorithm_typeloadBalancingAlgorithmTypeLoadBalancingAlgorithmTypeLoadBalancingAlgorithmType