aws-cdk-lib.aws_elasticloadbalancingv2.WeightedTargetGroup

interface WeightedTargetGroup

LanguageType name
.NETAmazon.CDK.AWS.ElasticLoadBalancingV2.WeightedTargetGroup
Gogithub.com/aws/aws-cdk-go/awscdk/v2/awselasticloadbalancingv2#WeightedTargetGroup
Javasoftware.amazon.awscdk.services.elasticloadbalancingv2.WeightedTargetGroup
Pythonaws_cdk.aws_elasticloadbalancingv2.WeightedTargetGroup
TypeScript (source)aws-cdk-lib » aws_elasticloadbalancingv2 » WeightedTargetGroup

A Target Group and weight combination.

Example

// 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

NameTypeDescription
targetGroupIApplicationTargetGroupThe target group.
weight?numberThe target group's weight.

targetGroup

Type: IApplicationTargetGroup

The target group.


weight?

Type: number (optional, default: 1)

The target group's weight.

Range is [0..1000).