amazonka-elb-1.6.0: Amazon Elastic Load Balancing SDK.

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

Network.AWS.ELB.CreateLBCookieStickinessPolicy

Contents

Description

Generates a stickiness policy with sticky session lifetimes controlled by the lifetime of the browser (user-agent) or a specified expiration period. This policy can be associated only with HTTP/HTTPS listeners.

When a load balancer implements this policy, the load balancer uses a special cookie to track the instance for each request. When the load balancer receives a request, it first checks to see if this cookie is present in the request. If so, the load balancer sends the request to the application server specified in the cookie. If not, the load balancer sends the request to a server that is chosen based on the existing load-balancing algorithm.

A cookie is inserted into the response for binding subsequent requests from the same user to that server. The validity of the cookie is based on the cookie expiration time, which is specified in the policy configuration.

For more information, see Duration-Based Session Stickiness in the Classic Load Balancer Guide .

Synopsis

Creating a Request

createLBCookieStickinessPolicy Source #

Creates a value of CreateLBCookieStickinessPolicy with the minimum fields required to make a request.

Use one of the following lenses to modify other fields as desired:

  • clbcspCookieExpirationPeriod - The time period, in seconds, after which the cookie should be considered stale. If you do not specify this parameter, the default value is 0, which indicates that the sticky session should last for the duration of the browser session.
  • clbcspLoadBalancerName - The name of the load balancer.
  • clbcspPolicyName - 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.

data CreateLBCookieStickinessPolicy Source #

Contains the parameters for CreateLBCookieStickinessPolicy.

See: createLBCookieStickinessPolicy smart constructor.

Instances

Eq CreateLBCookieStickinessPolicy Source # 
Data CreateLBCookieStickinessPolicy Source # 

Methods

gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> CreateLBCookieStickinessPolicy -> c CreateLBCookieStickinessPolicy #

gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c CreateLBCookieStickinessPolicy #

toConstr :: CreateLBCookieStickinessPolicy -> Constr #

dataTypeOf :: CreateLBCookieStickinessPolicy -> DataType #

dataCast1 :: Typeable (* -> *) t => (forall d. Data d => c (t d)) -> Maybe (c CreateLBCookieStickinessPolicy) #

dataCast2 :: Typeable (* -> * -> *) t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c CreateLBCookieStickinessPolicy) #

gmapT :: (forall b. Data b => b -> b) -> CreateLBCookieStickinessPolicy -> CreateLBCookieStickinessPolicy #

gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> CreateLBCookieStickinessPolicy -> r #

gmapQr :: (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> CreateLBCookieStickinessPolicy -> r #

gmapQ :: (forall d. Data d => d -> u) -> CreateLBCookieStickinessPolicy -> [u] #

gmapQi :: Int -> (forall d. Data d => d -> u) -> CreateLBCookieStickinessPolicy -> u #

gmapM :: Monad m => (forall d. Data d => d -> m d) -> CreateLBCookieStickinessPolicy -> m CreateLBCookieStickinessPolicy #

gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> CreateLBCookieStickinessPolicy -> m CreateLBCookieStickinessPolicy #

gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> CreateLBCookieStickinessPolicy -> m CreateLBCookieStickinessPolicy #

Read CreateLBCookieStickinessPolicy Source # 
Show CreateLBCookieStickinessPolicy Source # 
Generic CreateLBCookieStickinessPolicy Source # 
Hashable CreateLBCookieStickinessPolicy Source # 
NFData CreateLBCookieStickinessPolicy Source # 
AWSRequest CreateLBCookieStickinessPolicy Source # 
ToHeaders CreateLBCookieStickinessPolicy Source # 
ToPath CreateLBCookieStickinessPolicy Source # 
ToQuery CreateLBCookieStickinessPolicy Source # 
type Rep CreateLBCookieStickinessPolicy Source # 
type Rep CreateLBCookieStickinessPolicy = D1 * (MetaData "CreateLBCookieStickinessPolicy" "Network.AWS.ELB.CreateLBCookieStickinessPolicy" "amazonka-elb-1.6.0-5C3p91bx7mZHA7FQsncbL" False) (C1 * (MetaCons "CreateLBCookieStickinessPolicy'" PrefixI True) ((:*:) * (S1 * (MetaSel (Just Symbol "_clbcspCookieExpirationPeriod") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 * (Maybe Integer))) ((:*:) * (S1 * (MetaSel (Just Symbol "_clbcspLoadBalancerName") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 * Text)) (S1 * (MetaSel (Just Symbol "_clbcspPolicyName") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 * Text)))))
type Rs CreateLBCookieStickinessPolicy Source # 

Request Lenses

clbcspCookieExpirationPeriod :: Lens' CreateLBCookieStickinessPolicy (Maybe Integer) Source #

The time period, in seconds, after which the cookie should be considered stale. If you do not specify this parameter, the default value is 0, which indicates that the sticky session should last for the duration of the browser session.

clbcspPolicyName :: Lens' CreateLBCookieStickinessPolicy 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.

Destructuring the Response

createLBCookieStickinessPolicyResponse Source #

Creates a value of CreateLBCookieStickinessPolicyResponse with the minimum fields required to make a request.

Use one of the following lenses to modify other fields as desired:

data CreateLBCookieStickinessPolicyResponse Source #

Contains the output for CreateLBCookieStickinessPolicy.

See: createLBCookieStickinessPolicyResponse smart constructor.

Instances

Eq CreateLBCookieStickinessPolicyResponse Source # 
Data CreateLBCookieStickinessPolicyResponse Source # 

Methods

gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> CreateLBCookieStickinessPolicyResponse -> c CreateLBCookieStickinessPolicyResponse #

gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c CreateLBCookieStickinessPolicyResponse #

toConstr :: CreateLBCookieStickinessPolicyResponse -> Constr #

dataTypeOf :: CreateLBCookieStickinessPolicyResponse -> DataType #

dataCast1 :: Typeable (* -> *) t => (forall d. Data d => c (t d)) -> Maybe (c CreateLBCookieStickinessPolicyResponse) #

dataCast2 :: Typeable (* -> * -> *) t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c CreateLBCookieStickinessPolicyResponse) #

gmapT :: (forall b. Data b => b -> b) -> CreateLBCookieStickinessPolicyResponse -> CreateLBCookieStickinessPolicyResponse #

gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> CreateLBCookieStickinessPolicyResponse -> r #

gmapQr :: (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> CreateLBCookieStickinessPolicyResponse -> r #

gmapQ :: (forall d. Data d => d -> u) -> CreateLBCookieStickinessPolicyResponse -> [u] #

gmapQi :: Int -> (forall d. Data d => d -> u) -> CreateLBCookieStickinessPolicyResponse -> u #

gmapM :: Monad m => (forall d. Data d => d -> m d) -> CreateLBCookieStickinessPolicyResponse -> m CreateLBCookieStickinessPolicyResponse #

gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> CreateLBCookieStickinessPolicyResponse -> m CreateLBCookieStickinessPolicyResponse #

gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> CreateLBCookieStickinessPolicyResponse -> m CreateLBCookieStickinessPolicyResponse #

Read CreateLBCookieStickinessPolicyResponse Source # 
Show CreateLBCookieStickinessPolicyResponse Source # 
Generic CreateLBCookieStickinessPolicyResponse Source # 
NFData CreateLBCookieStickinessPolicyResponse Source # 
type Rep CreateLBCookieStickinessPolicyResponse Source # 
type Rep CreateLBCookieStickinessPolicyResponse = D1 * (MetaData "CreateLBCookieStickinessPolicyResponse" "Network.AWS.ELB.CreateLBCookieStickinessPolicy" "amazonka-elb-1.6.0-5C3p91bx7mZHA7FQsncbL" True) (C1 * (MetaCons "CreateLBCookieStickinessPolicyResponse'" PrefixI True) (S1 * (MetaSel (Just Symbol "_clbcsprsResponseStatus") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 * Int)))

Response Lenses