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.CachePolicyHeadersConfig

Description

 
Synopsis

Documentation

data CachePolicyHeadersConfig Source #

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

See: newCachePolicyHeadersConfig smart constructor.

Constructors

CachePolicyHeadersConfig' 

Fields

  • headers :: Maybe Headers
     
  • headerBehavior :: CachePolicyHeaderBehavior

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

    • none – HTTP headers 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 headers that are listed in an OriginRequestPolicy are included in origin requests.
    • whitelist – The HTTP headers that are listed in the Headers type are included in the cache key and are automatically included in requests that CloudFront sends to the origin.

Instances

Instances details
Eq CachePolicyHeadersConfig Source # 
Instance details

Defined in Amazonka.CloudFront.Types.CachePolicyHeadersConfig

Read CachePolicyHeadersConfig Source # 
Instance details

Defined in Amazonka.CloudFront.Types.CachePolicyHeadersConfig

Show CachePolicyHeadersConfig Source # 
Instance details

Defined in Amazonka.CloudFront.Types.CachePolicyHeadersConfig

Generic CachePolicyHeadersConfig Source # 
Instance details

Defined in Amazonka.CloudFront.Types.CachePolicyHeadersConfig

Associated Types

type Rep CachePolicyHeadersConfig :: Type -> Type #

NFData CachePolicyHeadersConfig Source # 
Instance details

Defined in Amazonka.CloudFront.Types.CachePolicyHeadersConfig

Hashable CachePolicyHeadersConfig Source # 
Instance details

Defined in Amazonka.CloudFront.Types.CachePolicyHeadersConfig

FromXML CachePolicyHeadersConfig Source # 
Instance details

Defined in Amazonka.CloudFront.Types.CachePolicyHeadersConfig

ToXML CachePolicyHeadersConfig Source # 
Instance details

Defined in Amazonka.CloudFront.Types.CachePolicyHeadersConfig

type Rep CachePolicyHeadersConfig Source # 
Instance details

Defined in Amazonka.CloudFront.Types.CachePolicyHeadersConfig

type Rep CachePolicyHeadersConfig = D1 ('MetaData "CachePolicyHeadersConfig" "Amazonka.CloudFront.Types.CachePolicyHeadersConfig" "libZSservicesZSamazonka-cloudfrontZSamazonka-cloudfront" 'False) (C1 ('MetaCons "CachePolicyHeadersConfig'" 'PrefixI 'True) (S1 ('MetaSel ('Just "headers") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Headers)) :*: S1 ('MetaSel ('Just "headerBehavior") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 CachePolicyHeaderBehavior)))

newCachePolicyHeadersConfig Source #

Create a value of CachePolicyHeadersConfig 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:headers:CachePolicyHeadersConfig', cachePolicyHeadersConfig_headers - Undocumented member.

$sel:headerBehavior:CachePolicyHeadersConfig', cachePolicyHeadersConfig_headerBehavior - Determines whether any HTTP headers are included in the cache key and automatically included in requests that CloudFront sends to the origin. Valid values are:

  • none – HTTP headers 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 headers that are listed in an OriginRequestPolicy are included in origin requests.
  • whitelist – The HTTP headers that are listed in the Headers type are included in the cache key and are automatically included in requests that CloudFront sends to the origin.

cachePolicyHeadersConfig_headerBehavior :: Lens' CachePolicyHeadersConfig CachePolicyHeaderBehavior Source #

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

  • none – HTTP headers 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 headers that are listed in an OriginRequestPolicy are included in origin requests.
  • whitelist – The HTTP headers that are listed in the Headers type are included in the cache key and are automatically included in requests that CloudFront sends to the origin.