#[non_exhaustive]pub struct CachePolicyHeadersConfigBuilder { /* private fields */ }
Expand description
A builder for CachePolicyHeadersConfig
.
Implementations§
source§impl CachePolicyHeadersConfigBuilder
impl CachePolicyHeadersConfigBuilder
sourcepub fn header_behavior(self, input: CachePolicyHeaderBehavior) -> Self
pub fn header_behavior(self, input: CachePolicyHeaderBehavior) -> Self
Determines whether any HTTP headers are included in the cache key and in requests that CloudFront sends to the origin. Valid values are:
-
none
– No HTTP headers are included in the cache key or 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
– Only the HTTP headers that are listed in theHeaders
type are included in the cache key and in requests that CloudFront sends to the origin.
sourcepub fn set_header_behavior(
self,
input: Option<CachePolicyHeaderBehavior>
) -> Self
pub fn set_header_behavior( self, input: Option<CachePolicyHeaderBehavior> ) -> Self
Determines whether any HTTP headers are included in the cache key and in requests that CloudFront sends to the origin. Valid values are:
-
none
– No HTTP headers are included in the cache key or 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
– Only the HTTP headers that are listed in theHeaders
type are included in the cache key and in requests that CloudFront sends to the origin.
sourcepub fn set_headers(self, input: Option<Headers>) -> Self
pub fn set_headers(self, input: Option<Headers>) -> Self
Contains a list of HTTP header names.
sourcepub fn build(self) -> CachePolicyHeadersConfig
pub fn build(self) -> CachePolicyHeadersConfig
Consumes the builder and constructs a CachePolicyHeadersConfig
.
Trait Implementations§
source§impl Clone for CachePolicyHeadersConfigBuilder
impl Clone for CachePolicyHeadersConfigBuilder
source§fn clone(&self) -> CachePolicyHeadersConfigBuilder
fn clone(&self) -> CachePolicyHeadersConfigBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Default for CachePolicyHeadersConfigBuilder
impl Default for CachePolicyHeadersConfigBuilder
source§fn default() -> CachePolicyHeadersConfigBuilder
fn default() -> CachePolicyHeadersConfigBuilder
source§impl PartialEq<CachePolicyHeadersConfigBuilder> for CachePolicyHeadersConfigBuilder
impl PartialEq<CachePolicyHeadersConfigBuilder> for CachePolicyHeadersConfigBuilder
source§fn eq(&self, other: &CachePolicyHeadersConfigBuilder) -> bool
fn eq(&self, other: &CachePolicyHeadersConfigBuilder) -> bool
self
and other
values to be equal, and is used
by ==
.