aws-cdk-lib.aws_elasticloadbalancingv2.CfnListener.TargetGroupTupleProperty

interface TargetGroupTupleProperty

LanguageType name
.NETAmazon.CDK.AWS.ElasticLoadBalancingV2.CfnListener.TargetGroupTupleProperty
Gogithub.com/aws/aws-cdk-go/awscdk/v2/awselasticloadbalancingv2#CfnListener_TargetGroupTupleProperty
Javasoftware.amazon.awscdk.services.elasticloadbalancingv2.CfnListener.TargetGroupTupleProperty
Pythonaws_cdk.aws_elasticloadbalancingv2.CfnListener.TargetGroupTupleProperty
TypeScript aws-cdk-lib » aws_elasticloadbalancingv2 » CfnListener » TargetGroupTupleProperty

Information about how traffic will be distributed between multiple target groups in a forward rule.

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';
const targetGroupTupleProperty: elbv2.CfnListener.TargetGroupTupleProperty = {
  targetGroupArn: 'targetGroupArn',
  weight: 123,
};

Properties

NameTypeDescription
targetGroupArn?stringThe Amazon Resource Name (ARN) of the target group.
weight?numberThe weight.

targetGroupArn?

Type: string (optional)

The Amazon Resource Name (ARN) of the target group.


weight?

Type: number (optional)

The weight.

The range is 0 to 999.