Skip to content
v2.274.0

WeightedTargetGroup Struct ​

A Target Group and weight combination.

Example ​

ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_elasticloadbalancingv2 as elbv2 } from 'aws-cdk-lib';

declare const applicationTargetGroup: elbv2.ApplicationTargetGroup;
const weightedTargetGroup: elbv2.WeightedTargetGroup = {
  targetGroup: applicationTargetGroup,

  // the properties below are optional
  weight: 123,
};

Properties ​

The target group.
weightoptionalnumberweightoptionalint | floatweightoptionalNumberWeightoptionaldoubleWeightoptional*float64= 1#
The target group's weight.

Range is [0..1000).