Struct aws_sdk_cloudfront::model::CachePolicyHeadersConfig
source · [−]#[non_exhaustive]pub struct CachePolicyHeadersConfig { /* private fields */ }
Expand description
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.
Implementations
sourceimpl CachePolicyHeadersConfig
impl CachePolicyHeadersConfig
sourcepub fn header_behavior(&self) -> Option<&CachePolicyHeaderBehavior>
pub fn header_behavior(&self) -> Option<&CachePolicyHeaderBehavior>
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.
sourceimpl CachePolicyHeadersConfig
impl CachePolicyHeadersConfig
sourcepub fn builder() -> Builder
pub fn builder() -> Builder
Creates a new builder-style object to manufacture CachePolicyHeadersConfig
.
Trait Implementations
sourceimpl Clone for CachePolicyHeadersConfig
impl Clone for CachePolicyHeadersConfig
sourcefn clone(&self) -> CachePolicyHeadersConfig
fn clone(&self) -> CachePolicyHeadersConfig
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read more