Interface CfnListenerRule.ForwardConfigProperty
- All Superinterfaces:
software.amazon.jsii.JsiiSerializable
- All Known Implementing Classes:
CfnListenerRule.ForwardConfigProperty.Jsii$Proxy
- Enclosing class:
CfnListenerRule
@Stability(Stable)
public static interface CfnListenerRule.ForwardConfigProperty
extends software.amazon.jsii.JsiiSerializable
Information for creating an action that distributes requests among one or more target groups.
For Network Load Balancers, you can specify a single target group. Specify only when Type
is forward
. If you specify both ForwardConfig
and TargetGroupArn
, you can specify only one target group using ForwardConfig
and it must be the same target group specified in TargetGroupArn
.
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.elasticloadbalancingv2.*; ForwardConfigProperty forwardConfigProperty = ForwardConfigProperty.builder() .targetGroups(List.of(TargetGroupTupleProperty.builder() .targetGroupArn("targetGroupArn") .weight(123) .build())) .targetGroupStickinessConfig(TargetGroupStickinessConfigProperty.builder() .durationSeconds(123) .enabled(false) .build()) .build();
- See Also:
-
Nested Class Summary
Modifier and TypeInterfaceDescriptionstatic final class
A builder forCfnListenerRule.ForwardConfigProperty
static final class
An implementation forCfnListenerRule.ForwardConfigProperty
-
Method Summary
Methods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Method Details
-
getTargetGroups
Information about how traffic will be distributed between multiple target groups in a forward rule.- See Also:
-
getTargetGroupStickinessConfig
Information about the target group stickiness for a rule.- See Also:
-
builder
-