AWS::ElasticLoadBalancing::LoadBalancer LBCookieStickinessPolicy - Amazon CloudFormation
Services or capabilities described in Amazon Web Services documentation might vary by Region. To see the differences applicable to the China Regions, see Getting Started with Amazon Web Services in China (PDF).

AWS::ElasticLoadBalancing::LoadBalancer LBCookieStickinessPolicy

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.


To declare this entity in your Amazon CloudFormation template, use the following syntax:


{ "CookieExpirationPeriod" : String, "PolicyName" : String }


CookieExpirationPeriod: String PolicyName: String



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.

Required: No

Type: String

Update requires: No interruption


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

Required: No

Type: String

Update requires: No interruption

See also