You are viewing documentation for version 2 of the AWS SDK for Ruby. Version 3 documentation can be found here.

Class: Aws::CloudFront::Types::OriginRequestPolicyHeadersConfig

Inherits:
Struct
  • Object
show all
Defined in:
(unknown)

Overview

Note:

When passing OriginRequestPolicyHeadersConfig as input to an Aws::Client method, you can use a vanilla Hash:

{
  header_behavior: "none", # required, accepts none, whitelist, allViewer, allViewerAndWhitelistCloudFront
  headers: {
    quantity: 1, # required
    items: ["string"],
  },
}

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

Returned by:

Instance Attribute Summary collapse

Instance Attribute Details

#header_behaviorString

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.

    Possible values:

    • none
    • whitelist
    • allViewer
    • allViewerAndWhitelistCloudFront

Returns:

  • (String)

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

#headersTypes::Headers

Contains a list of HTTP header names.

Returns: