interface ForwardConfigProperty
| Language | Type name |
|---|---|
.NET | Amazon.CDK.AWS.ElasticLoadBalancingV2.CfnListener.ForwardConfigProperty |
Go | github.com/aws/aws-cdk-go/awscdk/v2/awselasticloadbalancingv2#CfnListener_ForwardConfigProperty |
Java | software.amazon.awscdk.services.elasticloadbalancingv2.CfnListener.ForwardConfigProperty |
Python | aws_cdk.aws_elasticloadbalancingv2.CfnListener.ForwardConfigProperty |
TypeScript | aws-cdk-lib » aws_elasticloadbalancingv2 » CfnListener » ForwardConfigProperty |
Information for creating an action that distributes requests among multiple target groups. 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 { aws_elasticloadbalancingv2 as elbv2 } from 'aws-cdk-lib';
const forwardConfigProperty: elbv2.CfnListener.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
Go
Java
Python
TypeScript