Class CfnListener.ForwardConfigProperty
Information for creating an action that distributes requests among one or more target groups.
Inheritance
Implements
Namespace: Amazon.CDK.AWS.ElasticLoadBalancingV2
Assembly: Amazon.CDK.AWS.ElasticLoadBalancingV2.dll
Syntax (csharp)
public class ForwardConfigProperty : Object, CfnListener.IForwardConfigProperty
Syntax (vb)
Public Class ForwardConfigProperty
Inherits Object
Implements CfnListener.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
Constructors
ForwardConfigProperty() |
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. |
Constructors
ForwardConfigProperty()
public ForwardConfigProperty()
Properties
TargetGroups
Information about how traffic will be distributed between multiple target groups in a forward rule.
public object TargetGroups { get; set; }
Property Value
System.Object
Remarks
TargetGroupStickinessConfig
Information about the target group stickiness for a rule.
public object TargetGroupStickinessConfig { get; set; }
Property Value
System.Object