Interface CfnRule.IForwardProperty
The forward action.
Namespace: Amazon.CDK.AWS.VpcLattice
Assembly: Amazon.CDK.Lib.dll
Syntax (csharp)
public interface IForwardProperty
Syntax (vb)
Public Interface IForwardProperty
Remarks
Traffic that matches the rule is forwarded to the specified target groups.
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 forwardProperty = new ForwardProperty {
TargetGroups = new [] { new WeightedTargetGroupProperty {
TargetGroupIdentifier = "targetGroupIdentifier",
// the properties below are optional
Weight = 123
} }
};
Synopsis
Properties
Target |
The target groups. |
Properties
TargetGroups
The target groups.
object TargetGroups { get; }
Property Value
System.
Remarks
Traffic matching the rule is forwarded to the specified target groups. With forward actions, you can assign a weight that controls the prioritization and selection of each target group. This means that requests are distributed to individual target groups based on their weights. For example, if two target groups have the same weight, each target group receives half of the traffic.
The default value is 1. This means that if only one target group is provided, there is no need to set the weight; 100% of the traffic goes to that target group.