Struct aws_sdk_cloudfront::model::OriginRequestPolicyHeadersConfig [−][src]
#[non_exhaustive]pub struct OriginRequestPolicyHeadersConfig {
pub header_behavior: Option<OriginRequestPolicyHeaderBehavior>,
pub headers: Option<Headers>,
}
Expand description
An object that determines whether any HTTP headers (and if so, which headers) are included in requests that CloudFront sends to the origin.
Fields (Non-exhaustive)
This struct is marked as non-exhaustive
Struct { .. }
syntax; cannot be matched against without a wildcard ..
; and struct update syntax will not work.header_behavior: Option<OriginRequestPolicyHeaderBehavior>
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 tonone
, any headers that are listed in aCachePolicy
are included in origin requests. -
whitelist
– 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.
headers: Option<Headers>
Contains a list of HTTP header names.
Implementations
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 tonone
, any headers that are listed in aCachePolicy
are included in origin requests. -
whitelist
– 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.
Creates a new builder-style object to manufacture OriginRequestPolicyHeadersConfig
Trait Implementations
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
This method tests for !=
.
Auto Trait Implementations
impl Send for OriginRequestPolicyHeadersConfig
impl Sync for OriginRequestPolicyHeadersConfig
impl Unpin for OriginRequestPolicyHeadersConfig
Blanket Implementations
Mutably borrows from an owned value. Read more
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more