TargetGroupTupleProperty Struct
Information about how traffic will be distributed between multiple target groups in a forward rule.
| Source | |
|---|---|
| Type last changed |
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';
const targetGroupTupleProperty: elbv2.CfnListenerRule.TargetGroupTupleProperty = {
targetGroupArn: 'targetGroupArn',
weight: 123,
};
python
# The code below shows an example of how to instantiate this type.
# The values are placeholders you should change.
from aws_cdk import aws_elasticloadbalancingv2 as elbv2
target_group_tuple_property = elbv2.CfnListenerRule.TargetGroupTupleProperty(
target_group_arn="targetGroupArn",
weight=123
)
java
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.services.elasticloadbalancingv2.*;
TargetGroupTupleProperty targetGroupTupleProperty = TargetGroupTupleProperty.builder()
.targetGroupArn("targetGroupArn")
.weight(123)
.build();
csharp
// Install: dotnet add package Amazon.CDK.Lib
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.AWS.ElasticLoadBalancingV2;
var targetGroupTupleProperty = new TargetGroupTupleProperty {
TargetGroupArn = "targetGroupArn",
Weight = 123
};
go
// Install: go get github.com/aws/aws-cdk-go/awscdk/v2
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import "github.com/aws/aws-cdk-go/awscdk"
targetGroupTupleProperty := &TargetGroupTupleProperty{
TargetGroupArn: jsii.String("targetGroupArn"),
Weight: jsii.Number(123),
}
Properties
targetGroupArnoptionalstringtarget_group_arnoptionalstrtargetGroupArnoptionalStringTargetGroupArnoptionalstringTargetGroupArnoptional*string #The Amazon Resource Name (ARN) of the target group.
weightoptionalnumberweightoptionalint | floatweightoptionalNumberWeightoptionaldoubleWeightoptional*float64 #The weight.
The range is 0 to 999.