You are viewing documentation for version 2 of the AWS SDK for Ruby. Version 3 documentation can be found here.
Class: Aws::CloudFront::Types::CachePolicyHeadersConfig
- Inherits:
-
Struct
- Object
- Struct
- Aws::CloudFront::Types::CachePolicyHeadersConfig
- Defined in:
- (unknown)
Overview
When passing CachePolicyHeadersConfig as input to an Aws::Client method, you can use a vanilla 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.
Returned by:
Instance Attribute Summary collapse
-
#header_behavior ⇒ String
Determines whether any HTTP headers are included in the cache key and automatically included in requests that CloudFront sends to the origin.
-
#headers ⇒ Types::Headers
Contains a list of HTTP header names.
.
Instance Attribute Details
#header_behavior ⇒ String
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 tonone
, any headers that are listed in anOriginRequestPolicy
are included in origin requests.whitelist
– The HTTP headers that are listed in theHeaders
type are included in the cache key and are automatically included in requests that CloudFront sends to the origin.Possible values:
- none
- whitelist
#headers ⇒ Types::Headers
Contains a list of HTTP header names.