@Stability(value=Stable)
public static interface CfnListener.ForwardConfigProperty
extends software.amazon.jsii.JsiiSerializable
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();
Modifier and Type | Interface and Description |
---|---|
static class |
CfnListener.ForwardConfigProperty.Builder
A builder for
CfnListener.ForwardConfigProperty |
static class |
CfnListener.ForwardConfigProperty.Jsii$Proxy
An implementation for
CfnListener.ForwardConfigProperty |
Modifier and Type | Method and Description |
---|---|
static CfnListener.ForwardConfigProperty.Builder |
builder() |
default Object |
getTargetGroups()
Information about how traffic will be distributed between multiple target groups in a forward rule.
|
default Object |
getTargetGroupStickinessConfig()
Information about the target group stickiness for a rule.
|
@Stability(value=Stable) @Nullable default Object getTargetGroups()
@Stability(value=Stable) @Nullable default Object getTargetGroupStickinessConfig()
@Stability(value=Stable) static CfnListener.ForwardConfigProperty.Builder builder()
Copyright © 2023. All rights reserved.