aws-cdk-lib.aws_elasticloadbalancingv2.CfnListener.ForwardConfigProperty

interface ForwardConfigProperty

LanguageType name
.NETAmazon.CDK.AWS.ElasticLoadBalancingV2.CfnListener.ForwardConfigProperty
Gogithub.com/aws/aws-cdk-go/awscdk/v2/awselasticloadbalancingv2#CfnListener_ForwardConfigProperty
Javasoftware.amazon.awscdk.services.elasticloadbalancingv2.CfnListener.ForwardConfigProperty
Pythonaws_cdk.aws_elasticloadbalancingv2.CfnListener.ForwardConfigProperty
TypeScript aws-cdk-lib » aws_elasticloadbalancingv2 » CfnListener » 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.CfnListener.ForwardConfigProperty = {
  targetGroups: [{
    targetGroupArn: 'targetGroupArn',
    weight: 123,
  }],
  targetGroupStickinessConfig: {
    durationSeconds: 123,
    enabled: false,
  },
};

Properties

NameTypeDescription
targetGroupStickinessConfig?IResolvable | TargetGroupStickinessConfigPropertyInformation about the target group stickiness for a rule.
targetGroups?IResolvable | IResolvable | TargetGroupTupleProperty[]Information about how traffic will be distributed between multiple target groups in a forward rule.

targetGroupStickinessConfig?

Type: IResolvable | TargetGroupStickinessConfigProperty (optional)

Information about the target group stickiness for a rule.


targetGroups?

Type: IResolvable | IResolvable | TargetGroupTupleProperty[] (optional)

Information about how traffic will be distributed between multiple target groups in a forward rule.