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

Description

 
Synopsis

Documentation

data OriginRequestPolicyHeadersConfig Source #

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

See: newOriginRequestPolicyHeadersConfig smart constructor.

Constructors

OriginRequestPolicyHeadersConfig' 

Fields

  • headers :: Maybe Headers
     
  • headerBehavior :: OriginRequestPolicyHeaderBehavior

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

    • none – HTTP headers are not included in requests that CloudFront sends to the origin. Even when this field is set to none, any headers that are listed in a CachePolicy are included in origin requests.
    • whitelist – The HTTP headers that are listed in the Headers type are included in requests that CloudFront sends to the origin.
    • allViewer – All HTTP headers in viewer requests are included in requests that CloudFront sends to the origin.
    • allViewerAndWhitelistCloudFront – All HTTP headers in viewer requests and the additional CloudFront headers that are listed in the Headers type are included in requests that CloudFront sends to the origin. The additional headers are added by CloudFront.

Instances

Instances details
Eq OriginRequestPolicyHeadersConfig Source # 
Instance details

Defined in Amazonka.CloudFront.Types.OriginRequestPolicyHeadersConfig

Read OriginRequestPolicyHeadersConfig Source # 
Instance details

Defined in Amazonka.CloudFront.Types.OriginRequestPolicyHeadersConfig

Show OriginRequestPolicyHeadersConfig Source # 
Instance details

Defined in Amazonka.CloudFront.Types.OriginRequestPolicyHeadersConfig

Generic OriginRequestPolicyHeadersConfig Source # 
Instance details

Defined in Amazonka.CloudFront.Types.OriginRequestPolicyHeadersConfig

Associated Types

type Rep OriginRequestPolicyHeadersConfig :: Type -> Type #

NFData OriginRequestPolicyHeadersConfig Source # 
Instance details

Defined in Amazonka.CloudFront.Types.OriginRequestPolicyHeadersConfig

Hashable OriginRequestPolicyHeadersConfig Source # 
Instance details

Defined in Amazonka.CloudFront.Types.OriginRequestPolicyHeadersConfig

FromXML OriginRequestPolicyHeadersConfig Source # 
Instance details

Defined in Amazonka.CloudFront.Types.OriginRequestPolicyHeadersConfig

ToXML OriginRequestPolicyHeadersConfig Source # 
Instance details

Defined in Amazonka.CloudFront.Types.OriginRequestPolicyHeadersConfig

type Rep OriginRequestPolicyHeadersConfig Source # 
Instance details

Defined in Amazonka.CloudFront.Types.OriginRequestPolicyHeadersConfig

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

newOriginRequestPolicyHeadersConfig Source #

Create a value of OriginRequestPolicyHeadersConfig 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:OriginRequestPolicyHeadersConfig', originRequestPolicyHeadersConfig_headers - Undocumented member.

$sel:headerBehavior:OriginRequestPolicyHeadersConfig', originRequestPolicyHeadersConfig_headerBehavior - Determines whether any HTTP headers are included in requests that CloudFront sends to the origin. Valid values are:

  • none – HTTP headers are not included in requests that CloudFront sends to the origin. Even when this field is set to none, any headers that are listed in a CachePolicy are included in origin requests.
  • whitelist – The HTTP headers that are listed in the Headers type are included in requests that CloudFront sends to the origin.
  • allViewer – All HTTP headers in viewer requests are included in requests that CloudFront sends to the origin.
  • allViewerAndWhitelistCloudFront – All HTTP headers in viewer requests and the additional CloudFront headers that are listed in the Headers type are included in requests that CloudFront sends to the origin. The additional headers are added by CloudFront.

originRequestPolicyHeadersConfig_headerBehavior :: Lens' OriginRequestPolicyHeadersConfig OriginRequestPolicyHeaderBehavior Source #

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

  • none – HTTP headers are not included in requests that CloudFront sends to the origin. Even when this field is set to none, any headers that are listed in a CachePolicy are included in origin requests.
  • whitelist – The HTTP headers that are listed in the Headers type are included in requests that CloudFront sends to the origin.
  • allViewer – All HTTP headers in viewer requests are included in requests that CloudFront sends to the origin.
  • allViewerAndWhitelistCloudFront – All HTTP headers in viewer requests and the additional CloudFront headers that are listed in the Headers type are included in requests that CloudFront sends to the origin. The additional headers are added by CloudFront.