# TargetGroupStickinessConfigProperty

Information about the target group stickiness for a rule.

- Source: Generated code
- Type last changed: v2.93.0 · 23 Aug 2023

## Example

```ts
// 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

- `durationSeconds`: number — [Application Load Balancers] 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). You must specify this value when enabling target group stickiness.

- `enabled`: boolean | [IResolvable](/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) — Indicates whether target group stickiness is enabled.
