amazonka-cloudfront-2.0: Amazon CloudFront 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.CloudFront.Types.SessionStickinessConfig

Description

 
Synopsis

Documentation

data SessionStickinessConfig Source #

Session stickiness provides the ability to define multiple requests from a single viewer as a single session. This prevents the potentially inconsistent experience of sending some of a given user's requests to your staging distribution, while others are sent to your primary distribution. Define the session duration using TTL values.

See: newSessionStickinessConfig smart constructor.

Constructors

SessionStickinessConfig' 

Fields

  • idleTTL :: Int

    The amount of time after which you want sessions to cease if no requests are received. Allowed values are 300–3600 seconds (5–60 minutes).

    The value must be less than or equal to MaximumTTL.

  • maximumTTL :: Int

    The maximum amount of time to consider requests from the viewer as being part of the same session. Allowed values are 300–3600 seconds (5–60 minutes).

    The value must be less than or equal to IdleTTL.

Instances

Instances details
FromXML SessionStickinessConfig Source # 
Instance details

Defined in Amazonka.CloudFront.Types.SessionStickinessConfig

ToXML SessionStickinessConfig Source # 
Instance details

Defined in Amazonka.CloudFront.Types.SessionStickinessConfig

Generic SessionStickinessConfig Source # 
Instance details

Defined in Amazonka.CloudFront.Types.SessionStickinessConfig

Associated Types

type Rep SessionStickinessConfig :: Type -> Type #

Read SessionStickinessConfig Source # 
Instance details

Defined in Amazonka.CloudFront.Types.SessionStickinessConfig

Show SessionStickinessConfig Source # 
Instance details

Defined in Amazonka.CloudFront.Types.SessionStickinessConfig

NFData SessionStickinessConfig Source # 
Instance details

Defined in Amazonka.CloudFront.Types.SessionStickinessConfig

Methods

rnf :: SessionStickinessConfig -> () #

Eq SessionStickinessConfig Source # 
Instance details

Defined in Amazonka.CloudFront.Types.SessionStickinessConfig

Hashable SessionStickinessConfig Source # 
Instance details

Defined in Amazonka.CloudFront.Types.SessionStickinessConfig

type Rep SessionStickinessConfig Source # 
Instance details

Defined in Amazonka.CloudFront.Types.SessionStickinessConfig

type Rep SessionStickinessConfig = D1 ('MetaData "SessionStickinessConfig" "Amazonka.CloudFront.Types.SessionStickinessConfig" "amazonka-cloudfront-2.0-8Jb7luniAuUfLdUxCxW4K" 'False) (C1 ('MetaCons "SessionStickinessConfig'" 'PrefixI 'True) (S1 ('MetaSel ('Just "idleTTL") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Int) :*: S1 ('MetaSel ('Just "maximumTTL") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Int)))

newSessionStickinessConfig Source #

Create a value of SessionStickinessConfig 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:idleTTL:SessionStickinessConfig', sessionStickinessConfig_idleTTL - The amount of time after which you want sessions to cease if no requests are received. Allowed values are 300–3600 seconds (5–60 minutes).

The value must be less than or equal to MaximumTTL.

$sel:maximumTTL:SessionStickinessConfig', sessionStickinessConfig_maximumTTL - The maximum amount of time to consider requests from the viewer as being part of the same session. Allowed values are 300–3600 seconds (5–60 minutes).

The value must be less than or equal to IdleTTL.

sessionStickinessConfig_idleTTL :: Lens' SessionStickinessConfig Int Source #

The amount of time after which you want sessions to cease if no requests are received. Allowed values are 300–3600 seconds (5–60 minutes).

The value must be less than or equal to MaximumTTL.

sessionStickinessConfig_maximumTTL :: Lens' SessionStickinessConfig Int Source #

The maximum amount of time to consider requests from the viewer as being part of the same session. Allowed values are 300–3600 seconds (5–60 minutes).

The value must be less than or equal to IdleTTL.