Interface CfnListener.ForwardProperty
- All Superinterfaces:
software.amazon.jsii.JsiiSerializable
- All Known Implementing Classes:
CfnListener.ForwardProperty.Jsii$Proxy
- Enclosing class:
CfnListener
@Stability(Stable)
public static interface CfnListener.ForwardProperty
extends software.amazon.jsii.JsiiSerializable
The forward action.
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
Modifier and TypeInterfaceDescriptionstatic final class
A builder forCfnListener.ForwardProperty
static final class
An implementation forCfnListener.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.
- See Also:
-
builder
-