Interface CfnRule.ForwardProperty
- All Superinterfaces:
software.amazon.jsii.JsiiSerializable
- All Known Implementing Classes:
CfnRule.ForwardProperty.Jsii$Proxy
- Enclosing class:
CfnRule
Traffic that matches the rule is forwarded to the specified target groups.
Example:
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.services.vpclattice.*;
ForwardProperty forwardProperty = ForwardProperty.builder()
.targetGroups(List.of(WeightedTargetGroupProperty.builder()
.targetGroupIdentifier("targetGroupIdentifier")
// the properties below are optional
.weight(123)
.build()))
.build();
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic final classA builder forCfnRule.ForwardPropertystatic final classAn implementation forCfnRule.ForwardProperty -
Method Summary
Methods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Method Details
-
getTargetGroups
The target groups.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.
Returns union: either
IResolvableor Listinvalid input: '<'eitherIResolvableorCfnRule.WeightedTargetGroupProperty>- See Also:
-
builder
- Returns:
- a
CfnRule.ForwardProperty.BuilderofCfnRule.ForwardProperty
-