CreateLBCookieStickinessPolicy

GET /?Action=CreateLBCookieStickinessPolicy
Description

Creates a stickiness policy with sticky session lifetimes defined by the browser lifetime or by a specified expiration period.
The created policy can be used with HTTP or HTTPS listeners only.
If this policy is implemented by a load balancer, this load balancer uses this cookie in all incoming requests to direct them to the specified back-end server instance. If this cookie is not present, the load balancer sends the request to any other server according to its load-balancing algorithm.

Body parameter

Required: false
Name: CreateLBCookieStickinessPolicyInput

Name Description Required Schema Default Example

CookieExpirationPeriod

The lifetime of the cookie, in seconds. If not specified, the default value of this parameter is 1, which means that the sticky session lasts for the duration of the browser session.

false

integer

LoadBalancerName

The name of the load balancer.

true

string

PolicyName

The name of the policy. This name must be unique and consist of alphanumeric characters and dashes (-).

true

string

Responses
HTTP Code 200
HTTP Code Description Schema

200

CreateLBCookieStickinessPolicyOutput

Response 200

Response 200

Name Description Required Schema Default Example

ResponseMetadata

Information about the response.

false

ResponseMetadata