Class: Aws::CloudFront::Types::CachePolicyHeadersConfig

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

Overview

Note:

When making an API call, you may pass CachePolicyHeadersConfig data as a hash:

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

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.

Constant Summary collapse

SENSITIVE =
[]

Instance Attribute Summary collapse

Instance Attribute Details

#header_behaviorString

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.

Returns:

  • (String)


1066
1067
1068
1069
1070
1071
# File 'lib/aws-sdk-cloudfront/types.rb', line 1066

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

#headersTypes::Headers

Contains a list of HTTP header names.

Returns:



1066
1067
1068
1069
1070
1071
# File 'lib/aws-sdk-cloudfront/types.rb', line 1066

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