Class: Aws::CloudFront::Types::OriginRequestPolicyHeadersConfig
- Inherits:
-
Struct
- Object
- Struct
- Aws::CloudFront::Types::OriginRequestPolicyHeadersConfig
- Includes:
- Structure
- Defined in:
- lib/aws-sdk-cloudfront/types.rb
Overview
When making an API call, you may pass OriginRequestPolicyHeadersConfig data as a 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.
Constant Summary collapse
- SENSITIVE =
[]
Instance Attribute Summary collapse
-
#header_behavior ⇒ String
Determines whether any HTTP headers are 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 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.
9808 9809 9810 9811 9812 9813 |
# File 'lib/aws-sdk-cloudfront/types.rb', line 9808 class OriginRequestPolicyHeadersConfig < Struct.new( :header_behavior, :headers) SENSITIVE = [] include Aws::Structure end |
#headers ⇒ Types::Headers
Contains a list of HTTP header names.
9808 9809 9810 9811 9812 9813 |
# File 'lib/aws-sdk-cloudfront/types.rb', line 9808 class OriginRequestPolicyHeadersConfig < Struct.new( :header_behavior, :headers) SENSITIVE = [] include Aws::Structure end |