interface ForwardConfigProperty
| Language | Type name |
|---|---|
.NET | Amazon.CDK.AWS.ElasticLoadBalancingV2.CfnListenerRule.ForwardConfigProperty |
Java | software.amazon.awscdk.services.elasticloadbalancingv2.CfnListenerRule.ForwardConfigProperty |
Python | aws_cdk.aws_elasticloadbalancingv2.CfnListenerRule.ForwardConfigProperty |
TypeScript | @aws-cdk/aws-elasticloadbalancingv2 » CfnListenerRule » ForwardConfigProperty |
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 * as elbv2 from '@aws-cdk/aws-elasticloadbalancingv2';
const forwardConfigProperty: elbv2.CfnListenerRule.ForwardConfigProperty = {
targetGroups: [{
targetGroupArn: 'targetGroupArn',
weight: 123,
}],
targetGroupStickinessConfig: {
durationSeconds: 123,
enabled: false,
},
};
Properties
| Name | Type | Description |
|---|---|---|
| target | IResolvable | Target | Information about the target group stickiness for a rule. |
| target | IResolvable | IResolvable | Target[] | Information about how traffic will be distributed between multiple target groups in a forward rule. |
targetGroupStickinessConfig?
Type:
IResolvable | Target
(optional)
Information about the target group stickiness for a rule.
targetGroups?
Type:
IResolvable | IResolvable | Target[]
(optional)
Information about how traffic will be distributed between multiple target groups in a forward rule.

.NET
Java
Python
TypeScript