interface ForwardConfigProperty
Language | Type name |
---|---|
![]() | Amazon.CDK.AWS.ElasticLoadBalancingV2.CfnListenerRule.ForwardConfigProperty |
![]() | github.com/aws/aws-cdk-go/awscdk/v2/awselasticloadbalancingv2#CfnListenerRule_ForwardConfigProperty |
![]() | software.amazon.awscdk.services.elasticloadbalancingv2.CfnListenerRule.ForwardConfigProperty |
![]() | aws_cdk.aws_elasticloadbalancingv2.CfnListenerRule.ForwardConfigProperty |
![]() | aws-cdk-lib » 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 { aws_elasticloadbalancingv2 as elbv2 } from 'aws-cdk-lib';
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.