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

Inherits:
Struct
  • Object
show all
Includes:
Structure
Defined in:
lib/aws-sdk-cloudfront/types.rb

Overview

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

Constant Summary collapse

SENSITIVE =
[]

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` – No HTTP headers in viewer requests are 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` – Only 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.

  • ‘allExcept` – All HTTP headers in viewer requests are included in requests that CloudFront sends to the origin, except for those listed in the `Headers` type, which are not included.

Returns:

  • (String)


9371
9372
9373
9374
9375
9376
# File 'lib/aws-sdk-cloudfront/types.rb', line 9371

class OriginRequestPolicyHeadersConfig < Struct.new(
  :header_behavior,
  :headers)
  SENSITIVE = []
  include Aws::Structure
end

#headersTypes::Headers

Contains a list of HTTP header names.

Returns:



9371
9372
9373
9374
9375
9376
# File 'lib/aws-sdk-cloudfront/types.rb', line 9371

class OriginRequestPolicyHeadersConfig < Struct.new(
  :header_behavior,
  :headers)
  SENSITIVE = []
  include Aws::Structure
end