libZSservicesZSamazonka-cloudfrontZSamazonka-cloudfront
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.CloudFront.Types.CachePolicyCookiesConfig

Description

 
Synopsis

Documentation

data CachePolicyCookiesConfig Source #

An object that determines whether any cookies in viewer requests (and if so, which cookies) are included in the cache key and automatically included in requests that CloudFront sends to the origin.

See: newCachePolicyCookiesConfig smart constructor.

Constructors

CachePolicyCookiesConfig' 

Fields

  • cookies :: Maybe CookieNames
     
  • cookieBehavior :: CachePolicyCookieBehavior

    Determines whether any cookies in viewer requests are included in the cache key and automatically included in requests that CloudFront sends to the origin. Valid values are:

    • none – Cookies in viewer requests are not included in the cache key and are not automatically included in requests that CloudFront sends to the origin. Even when this field is set to none, any cookies that are listed in an OriginRequestPolicy are included in origin requests.
    • whitelist – The cookies in viewer requests that are listed in the CookieNames type are included in the cache key and automatically included in requests that CloudFront sends to the origin.
    • allExcept – All cookies in viewer requests that are not listed in the CookieNames type are included in the cache key and automatically included in requests that CloudFront sends to the origin.
    • all – All cookies in viewer requests are included in the cache key and are automatically included in requests that CloudFront sends to the origin.

Instances

Instances details
Eq CachePolicyCookiesConfig Source # 
Instance details

Defined in Amazonka.CloudFront.Types.CachePolicyCookiesConfig

Read CachePolicyCookiesConfig Source # 
Instance details

Defined in Amazonka.CloudFront.Types.CachePolicyCookiesConfig

Show CachePolicyCookiesConfig Source # 
Instance details

Defined in Amazonka.CloudFront.Types.CachePolicyCookiesConfig

Generic CachePolicyCookiesConfig Source # 
Instance details

Defined in Amazonka.CloudFront.Types.CachePolicyCookiesConfig

Associated Types

type Rep CachePolicyCookiesConfig :: Type -> Type #

NFData CachePolicyCookiesConfig Source # 
Instance details

Defined in Amazonka.CloudFront.Types.CachePolicyCookiesConfig

Hashable CachePolicyCookiesConfig Source # 
Instance details

Defined in Amazonka.CloudFront.Types.CachePolicyCookiesConfig

FromXML CachePolicyCookiesConfig Source # 
Instance details

Defined in Amazonka.CloudFront.Types.CachePolicyCookiesConfig

ToXML CachePolicyCookiesConfig Source # 
Instance details

Defined in Amazonka.CloudFront.Types.CachePolicyCookiesConfig

type Rep CachePolicyCookiesConfig Source # 
Instance details

Defined in Amazonka.CloudFront.Types.CachePolicyCookiesConfig

type Rep CachePolicyCookiesConfig = D1 ('MetaData "CachePolicyCookiesConfig" "Amazonka.CloudFront.Types.CachePolicyCookiesConfig" "libZSservicesZSamazonka-cloudfrontZSamazonka-cloudfront" 'False) (C1 ('MetaCons "CachePolicyCookiesConfig'" 'PrefixI 'True) (S1 ('MetaSel ('Just "cookies") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe CookieNames)) :*: S1 ('MetaSel ('Just "cookieBehavior") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 CachePolicyCookieBehavior)))

newCachePolicyCookiesConfig Source #

Create a value of CachePolicyCookiesConfig 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:cookies:CachePolicyCookiesConfig', cachePolicyCookiesConfig_cookies - Undocumented member.

$sel:cookieBehavior:CachePolicyCookiesConfig', cachePolicyCookiesConfig_cookieBehavior - Determines whether any cookies in viewer requests are included in the cache key and automatically included in requests that CloudFront sends to the origin. Valid values are:

  • none – Cookies in viewer requests are not included in the cache key and are not automatically included in requests that CloudFront sends to the origin. Even when this field is set to none, any cookies that are listed in an OriginRequestPolicy are included in origin requests.
  • whitelist – The cookies in viewer requests that are listed in the CookieNames type are included in the cache key and automatically included in requests that CloudFront sends to the origin.
  • allExcept – All cookies in viewer requests that are not listed in the CookieNames type are included in the cache key and automatically included in requests that CloudFront sends to the origin.
  • all – All cookies in viewer requests are included in the cache key and are automatically included in requests that CloudFront sends to the origin.

cachePolicyCookiesConfig_cookieBehavior :: Lens' CachePolicyCookiesConfig CachePolicyCookieBehavior Source #

Determines whether any cookies in viewer requests are included in the cache key and automatically included in requests that CloudFront sends to the origin. Valid values are:

  • none – Cookies in viewer requests are not included in the cache key and are not automatically included in requests that CloudFront sends to the origin. Even when this field is set to none, any cookies that are listed in an OriginRequestPolicy are included in origin requests.
  • whitelist – The cookies in viewer requests that are listed in the CookieNames type are included in the cache key and automatically included in requests that CloudFront sends to the origin.
  • allExcept – All cookies in viewer requests that are not listed in the CookieNames type are included in the cache key and automatically included in requests that CloudFront sends to the origin.
  • all – All cookies in viewer requests are included in the cache key and are automatically included in requests that CloudFront sends to the origin.