aws-cdk-lib.aws_elasticloadbalancing.CfnLoadBalancer.LBCookieStickinessPolicyProperty

interface LBCookieStickinessPolicyProperty

LanguageType name
.NETAmazon.CDK.AWS.ElasticLoadBalancing.CfnLoadBalancer.LBCookieStickinessPolicyProperty
Gogithub.com/aws/aws-cdk-go/awscdk/v2/awselasticloadbalancing#CfnLoadBalancer_LBCookieStickinessPolicyProperty
Javasoftware.amazon.awscdk.services.elasticloadbalancing.CfnLoadBalancer.LBCookieStickinessPolicyProperty
Pythonaws_cdk.aws_elasticloadbalancing.CfnLoadBalancer.LBCookieStickinessPolicyProperty
TypeScript aws-cdk-lib » aws_elasticloadbalancing » CfnLoadBalancer » LBCookieStickinessPolicyProperty

Specifies a policy for duration-based session stickiness for your Classic Load Balancer.

To associate a policy with a listener, use the PolicyNames property for the listener.

Example

// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_elasticloadbalancing as elb } from 'aws-cdk-lib';
const lBCookieStickinessPolicyProperty: elb.CfnLoadBalancer.LBCookieStickinessPolicyProperty = {
  cookieExpirationPeriod: 'cookieExpirationPeriod',
  policyName: 'policyName',
};

Properties

NameTypeDescription
cookieExpirationPeriod?stringThe time period, in seconds, after which the cookie should be considered stale.
policyName?stringThe name of the policy.

cookieExpirationPeriod?

Type: string (optional)

The time period, in seconds, after which the cookie should be considered stale.

If this parameter is not specified, the stickiness session lasts for the duration of the browser session.


policyName?

Type: string (optional)

The name of the policy.

This name must be unique within the set of policies for this load balancer.