amazonka-elb-2.0: Amazon Elastic Load Balancing SDK.
Copyright(c) 2013-2023 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellSafe-Inferred
LanguageHaskell2010

Amazonka.ELB.CreateAppCookieStickinessPolicy

Description

Generates a stickiness policy with sticky session lifetimes that follow that of an application-generated cookie. This policy can be associated only with HTTP/HTTPS listeners.

This policy is similar to the policy created by CreateLBCookieStickinessPolicy, except that the lifetime of the special Elastic Load Balancing cookie, AWSELB, follows the lifetime of the application-generated cookie specified in the policy configuration. The load balancer only inserts a new stickiness cookie when the application response includes a new application cookie.

If the application cookie is explicitly removed or expires, the session stops being sticky until a new application cookie is issued.

For more information, see Application-Controlled Session Stickiness in the Classic Load Balancers Guide.

Synopsis

Creating a Request

data CreateAppCookieStickinessPolicy Source #

Contains the parameters for CreateAppCookieStickinessPolicy.

See: newCreateAppCookieStickinessPolicy smart constructor.

Constructors

CreateAppCookieStickinessPolicy' 

Fields

  • loadBalancerName :: Text

    The name of the load balancer.

  • policyName :: Text

    The name of the policy being created. Policy names must consist of alphanumeric characters and dashes (-). This name must be unique within the set of policies for this load balancer.

  • cookieName :: Text

    The name of the application cookie used for stickiness.

Instances

Instances details
ToHeaders CreateAppCookieStickinessPolicy Source # 
Instance details

Defined in Amazonka.ELB.CreateAppCookieStickinessPolicy

ToPath CreateAppCookieStickinessPolicy Source # 
Instance details

Defined in Amazonka.ELB.CreateAppCookieStickinessPolicy

ToQuery CreateAppCookieStickinessPolicy Source # 
Instance details

Defined in Amazonka.ELB.CreateAppCookieStickinessPolicy

AWSRequest CreateAppCookieStickinessPolicy Source # 
Instance details

Defined in Amazonka.ELB.CreateAppCookieStickinessPolicy

Generic CreateAppCookieStickinessPolicy Source # 
Instance details

Defined in Amazonka.ELB.CreateAppCookieStickinessPolicy

Associated Types

type Rep CreateAppCookieStickinessPolicy :: Type -> Type #

Read CreateAppCookieStickinessPolicy Source # 
Instance details

Defined in Amazonka.ELB.CreateAppCookieStickinessPolicy

Show CreateAppCookieStickinessPolicy Source # 
Instance details

Defined in Amazonka.ELB.CreateAppCookieStickinessPolicy

NFData CreateAppCookieStickinessPolicy Source # 
Instance details

Defined in Amazonka.ELB.CreateAppCookieStickinessPolicy

Eq CreateAppCookieStickinessPolicy Source # 
Instance details

Defined in Amazonka.ELB.CreateAppCookieStickinessPolicy

Hashable CreateAppCookieStickinessPolicy Source # 
Instance details

Defined in Amazonka.ELB.CreateAppCookieStickinessPolicy

type AWSResponse CreateAppCookieStickinessPolicy Source # 
Instance details

Defined in Amazonka.ELB.CreateAppCookieStickinessPolicy

type Rep CreateAppCookieStickinessPolicy Source # 
Instance details

Defined in Amazonka.ELB.CreateAppCookieStickinessPolicy

type Rep CreateAppCookieStickinessPolicy = D1 ('MetaData "CreateAppCookieStickinessPolicy" "Amazonka.ELB.CreateAppCookieStickinessPolicy" "amazonka-elb-2.0-9cSN5cNCwnD5ZanKSOxHTf" 'False) (C1 ('MetaCons "CreateAppCookieStickinessPolicy'" 'PrefixI 'True) (S1 ('MetaSel ('Just "loadBalancerName") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text) :*: (S1 ('MetaSel ('Just "policyName") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text) :*: S1 ('MetaSel ('Just "cookieName") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text))))

newCreateAppCookieStickinessPolicy Source #

Create a value of CreateAppCookieStickinessPolicy with all optional fields omitted.

Use generic-lens or optics to modify other optional fields.

The following record fields are available, with the corresponding lenses provided for backwards compatibility:

CreateAppCookieStickinessPolicy, createAppCookieStickinessPolicy_loadBalancerName - The name of the load balancer.

CreateAppCookieStickinessPolicy, createAppCookieStickinessPolicy_policyName - The name of the policy being created. Policy names must consist of alphanumeric characters and dashes (-). This name must be unique within the set of policies for this load balancer.

CreateAppCookieStickinessPolicy, createAppCookieStickinessPolicy_cookieName - The name of the application cookie used for stickiness.

Request Lenses

createAppCookieStickinessPolicy_policyName :: Lens' CreateAppCookieStickinessPolicy Text Source #

The name of the policy being created. Policy names must consist of alphanumeric characters and dashes (-). This name must be unique within the set of policies for this load balancer.

createAppCookieStickinessPolicy_cookieName :: Lens' CreateAppCookieStickinessPolicy Text Source #

The name of the application cookie used for stickiness.

Destructuring the Response

data CreateAppCookieStickinessPolicyResponse Source #

Contains the output for CreateAppCookieStickinessPolicy.

See: newCreateAppCookieStickinessPolicyResponse smart constructor.

Constructors

CreateAppCookieStickinessPolicyResponse' 

Fields

Instances

Instances details
Generic CreateAppCookieStickinessPolicyResponse Source # 
Instance details

Defined in Amazonka.ELB.CreateAppCookieStickinessPolicy

Read CreateAppCookieStickinessPolicyResponse Source # 
Instance details

Defined in Amazonka.ELB.CreateAppCookieStickinessPolicy

Show CreateAppCookieStickinessPolicyResponse Source # 
Instance details

Defined in Amazonka.ELB.CreateAppCookieStickinessPolicy

NFData CreateAppCookieStickinessPolicyResponse Source # 
Instance details

Defined in Amazonka.ELB.CreateAppCookieStickinessPolicy

Eq CreateAppCookieStickinessPolicyResponse Source # 
Instance details

Defined in Amazonka.ELB.CreateAppCookieStickinessPolicy

type Rep CreateAppCookieStickinessPolicyResponse Source # 
Instance details

Defined in Amazonka.ELB.CreateAppCookieStickinessPolicy

type Rep CreateAppCookieStickinessPolicyResponse = D1 ('MetaData "CreateAppCookieStickinessPolicyResponse" "Amazonka.ELB.CreateAppCookieStickinessPolicy" "amazonka-elb-2.0-9cSN5cNCwnD5ZanKSOxHTf" 'False) (C1 ('MetaCons "CreateAppCookieStickinessPolicyResponse'" 'PrefixI 'True) (S1 ('MetaSel ('Just "httpStatus") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Int)))

newCreateAppCookieStickinessPolicyResponse Source #

Create a value of CreateAppCookieStickinessPolicyResponse with all optional fields omitted.

Use generic-lens or optics to modify other optional fields.

The following record fields are available, with the corresponding lenses provided for backwards compatibility:

$sel:httpStatus:CreateAppCookieStickinessPolicyResponse', createAppCookieStickinessPolicyResponse_httpStatus - The response's http status code.

Response Lenses