libZSservicesZSamazonka-elbZSamazonka-elb
Copyright(c) 2013-2021 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay <brendan.g.hay+amazonka@gmail.com>
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellNone

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
Eq CreateAppCookieStickinessPolicy Source # 
Instance details

Defined in Amazonka.ELB.CreateAppCookieStickinessPolicy

Read CreateAppCookieStickinessPolicy Source # 
Instance details

Defined in Amazonka.ELB.CreateAppCookieStickinessPolicy

Show 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 #

NFData CreateAppCookieStickinessPolicy Source # 
Instance details

Defined in Amazonka.ELB.CreateAppCookieStickinessPolicy

Hashable CreateAppCookieStickinessPolicy Source # 
Instance details

Defined in Amazonka.ELB.CreateAppCookieStickinessPolicy

AWSRequest CreateAppCookieStickinessPolicy Source # 
Instance details

Defined in Amazonka.ELB.CreateAppCookieStickinessPolicy

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

type Rep CreateAppCookieStickinessPolicy Source # 
Instance details

Defined in Amazonka.ELB.CreateAppCookieStickinessPolicy

type Rep CreateAppCookieStickinessPolicy = D1 ('MetaData "CreateAppCookieStickinessPolicy" "Amazonka.ELB.CreateAppCookieStickinessPolicy" "libZSservicesZSamazonka-elbZSamazonka-elb" '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))))
type AWSResponse CreateAppCookieStickinessPolicy Source # 
Instance details

Defined in Amazonka.ELB.CreateAppCookieStickinessPolicy

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:

$sel:loadBalancerName:CreateAppCookieStickinessPolicy', createAppCookieStickinessPolicy_loadBalancerName - The name of the load balancer.

$sel:policyName: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.

$sel:cookieName: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
Eq 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

Generic CreateAppCookieStickinessPolicyResponse Source # 
Instance details

Defined in Amazonka.ELB.CreateAppCookieStickinessPolicy

NFData 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" "libZSservicesZSamazonka-elbZSamazonka-elb" '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