interface SessionStickinessConfigProperty
| Language | Type name |
|---|---|
.NET | Amazon.CDK.Mixins.Preview.AWS.CloudFront.Mixins.CfnContinuousDeploymentPolicyPropsMixin.SessionStickinessConfigProperty |
Go | github.com/aws/aws-cdk-go/awscdkmixinspreview/v2/awscloudfront/mixins#CfnContinuousDeploymentPolicyPropsMixin_SessionStickinessConfigProperty |
Java | software.amazon.awscdk.mixins.preview.services.cloudfront.mixins.CfnContinuousDeploymentPolicyPropsMixin.SessionStickinessConfigProperty |
Python | aws_cdk.mixins_preview.aws_cloudfront.mixins.CfnContinuousDeploymentPolicyPropsMixin.SessionStickinessConfigProperty |
TypeScript | @aws-cdk/mixins-preview » aws_cloudfront » mixins » CfnContinuousDeploymentPolicyPropsMixin » SessionStickinessConfigProperty |
Session stickiness provides the ability to define multiple requests from a single viewer as a single session.
This prevents the potentially inconsistent experience of sending some of a given user's requests to your staging distribution, while others are sent to your primary distribution. Define the session duration using TTL values.
Example
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { mixins as cloudfront_mixins } from '@aws-cdk/mixins-preview/aws-cloudfront';
const sessionStickinessConfigProperty: cloudfront_mixins.CfnContinuousDeploymentPolicyPropsMixin.SessionStickinessConfigProperty = {
idleTtl: 123,
maximumTtl: 123,
};
Properties
| Name | Type | Description |
|---|---|---|
| idle | number | The amount of time after which you want sessions to cease if no requests are received. |
| maximum | number | The maximum amount of time to consider requests from the viewer as being part of the same session. |
idleTtl?
Type:
number
(optional)
The amount of time after which you want sessions to cease if no requests are received.
Allowed values are 300–3600 seconds (5–60 minutes).
maximumTtl?
Type:
number
(optional)
The maximum amount of time to consider requests from the viewer as being part of the same session.
Allowed values are 300–3600 seconds (5–60 minutes).

.NET
Go
Java
Python
TypeScript