aws-cdk-lib.aws_elasticloadbalancingv2.CfnListener.TargetGroupStickinessConfigProperty

interface TargetGroupStickinessConfigProperty

LanguageType name
.NETAmazon.CDK.AWS.ElasticLoadBalancingV2.CfnListener.TargetGroupStickinessConfigProperty
Gogithub.com/aws/aws-cdk-go/awscdk/v2/awselasticloadbalancingv2#CfnListener_TargetGroupStickinessConfigProperty
Javasoftware.amazon.awscdk.services.elasticloadbalancingv2.CfnListener.TargetGroupStickinessConfigProperty
Pythonaws_cdk.aws_elasticloadbalancingv2.CfnListener.TargetGroupStickinessConfigProperty
TypeScript aws-cdk-lib » aws_elasticloadbalancingv2 » CfnListener » TargetGroupStickinessConfigProperty

Information about the target group stickiness for a rule.

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 targetGroupStickinessConfigProperty: elbv2.CfnListener.TargetGroupStickinessConfigProperty = {
  durationSeconds: 123,
  enabled: false,
};

Properties

NameTypeDescription
durationSeconds?numberThe time period, in seconds, during which requests from a client should be routed to the same target group.
enabled?boolean | IResolvableIndicates whether target group stickiness is enabled.

durationSeconds?

Type: number (optional)

The time period, in seconds, during which requests from a client should be routed to the same target group.

The range is 1-604800 seconds (7 days).


enabled?

Type: boolean | IResolvable (optional)

Indicates whether target group stickiness is enabled.