AWS::CloudFront::OriginRequestPolicy HeadersConfig
An object that determines whether any HTTP headers (and if so, which headers) are included in requests that CloudFront sends to the origin.
Syntax
To declare this entity in your Amazon CloudFormation template, use the following syntax:
JSON
{ "HeaderBehavior" :
String
, "Headers" :[ String, ... ]
}
YAML
HeaderBehavior:
String
Headers:- String
Properties
HeaderBehavior
-
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 tonone
, any headers that are listed in aCachePolicy
are included in origin requests. -
whitelist
– Only the HTTP headers that are listed in theHeaders
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 theHeaders
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 theHeaders
type, which are not included.
Required: Yes
Type: String
Allowed values:
allExcept | allViewer | allViewerAndWhitelistCloudFront | none | whitelist
Update requires: No interruption
-
Headers
-
Contains a list of HTTP header names.
Required: No
Type: List of String
Update requires: No interruption