Interface CfnListenerRule.IForwardConfigProperty
Information for creating an action that distributes requests among one or more target groups.
Namespace: Amazon.CDK.AWS.ElasticLoadBalancingV2
Assembly: Amazon.CDK.AWS.ElasticLoadBalancingV2.dll
Syntax (csharp)
public interface IForwardConfigProperty
Syntax (vb)
Public Interface IForwardConfigProperty
Remarks
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
.
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.ElasticLoadBalancingV2;
var forwardConfigProperty = new ForwardConfigProperty {
TargetGroups = new [] { new TargetGroupTupleProperty {
TargetGroupArn = "targetGroupArn",
Weight = 123
} },
TargetGroupStickinessConfig = new TargetGroupStickinessConfigProperty {
DurationSeconds = 123,
Enabled = false
}
};
Synopsis
Properties
TargetGroups | Information about how traffic will be distributed between multiple target groups in a forward rule. |
TargetGroupStickinessConfig | Information about the target group stickiness for a rule. |
Properties
TargetGroups
Information about how traffic will be distributed between multiple target groups in a forward rule.
virtual object TargetGroups { get; }
Property Value
System.Object
Remarks
TargetGroupStickinessConfig
Information about the target group stickiness for a rule.
virtual object TargetGroupStickinessConfig { get; }
Property Value
System.Object