Class CfnRule.WeightedTargetGroupProperty
Describes the weight of a target group.
Inheritance
Implements
Namespace: Amazon.CDK.AWS.VpcLattice
Assembly: Amazon.CDK.AWS.VpcLattice.dll
Syntax (csharp)
public class WeightedTargetGroupProperty : Object, CfnRule.IWeightedTargetGroupProperty
Syntax (vb)
Public Class WeightedTargetGroupProperty
Inherits Object
Implements CfnRule.IWeightedTargetGroupProperty
Remarks
ExampleMetadata: fixture=_generated
Examples
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.AWS.VpcLattice;
var weightedTargetGroupProperty = new WeightedTargetGroupProperty {
TargetGroupIdentifier = "targetGroupIdentifier",
// the properties below are optional
Weight = 123
};
Synopsis
Constructors
WeightedTargetGroupProperty() |
Properties
TargetGroupIdentifier | The ID of the target group. |
Weight | Only required if you specify multiple target groups for a forward action. |
Constructors
WeightedTargetGroupProperty()
public WeightedTargetGroupProperty()
Properties
TargetGroupIdentifier
The ID of the target group.
public string TargetGroupIdentifier { get; set; }
Property Value
System.String
Remarks
Weight
Only required if you specify multiple target groups for a forward action.
public Nullable<double> Weight { get; set; }
Property Value
System.Nullable<System.Double>
Remarks
The "weight" determines how requests are distributed to the target group. For example, if you specify two target groups, each with a weight of 10, each target group receives half the requests. If you specify two target groups, one with a weight of 10 and the other with a weight of 20, the target group with a weight of 20 receives twice as many requests as the other target group. If there's only one target group specified, then the default value is 100.