#[non_exhaustive]pub struct CachePolicyCookiesConfig { /* private fields */ }Expand description
An object that determines whether any cookies in viewer requests (and if so, which cookies) are included in the cache key and automatically included in requests that CloudFront sends to the origin.
Implementations§
source§impl CachePolicyCookiesConfig
impl CachePolicyCookiesConfig
Determines whether any cookies in viewer requests are included in the cache key and automatically included in requests that CloudFront sends to the origin. Valid values are:
-
none– Cookies in viewer requests 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 cookies that are listed in anOriginRequestPolicyare included in origin requests. -
whitelist– The cookies in viewer requests that are listed in theCookieNamestype are included in the cache key and automatically included in requests that CloudFront sends to the origin. -
allExcept– All cookies in viewer requests that are not listed in theCookieNamestype are included in the cache key and automatically included in requests that CloudFront sends to the origin. -
all– All cookies in viewer requests are included in the cache key and are automatically included in requests that CloudFront sends to the origin.
Contains a list of cookie names.
source§impl CachePolicyCookiesConfig
impl CachePolicyCookiesConfig
sourcepub fn builder() -> Builder
pub fn builder() -> Builder
Creates a new builder-style object to manufacture CachePolicyCookiesConfig.
Examples found in repository?
11472 11473 11474 11475 11476 11477 11478 11479 11480 11481 11482 11483 11484 11485 11486 11487 11488 11489 11490 11491 11492 11493 11494 11495 11496 11497 11498 11499 11500 11501 11502 11503 11504 11505 11506 11507
pub fn deser_structure_crate_model_cache_policy_cookies_config(
decoder: &mut aws_smithy_xml::decode::ScopedDecoder,
) -> Result<crate::model::CachePolicyCookiesConfig, aws_smithy_xml::decode::XmlDecodeError> {
#[allow(unused_mut)]
let mut builder = crate::model::CachePolicyCookiesConfig::builder();
while let Some(mut tag) = decoder.next_tag() {
match tag.start_el() {
s if s.matches("CookieBehavior") /* CookieBehavior com.amazonaws.cloudfront#CachePolicyCookiesConfig$CookieBehavior */ => {
let var_451 =
Some(
Result::<crate::model::CachePolicyCookieBehavior, aws_smithy_xml::decode::XmlDecodeError>::Ok(
crate::model::CachePolicyCookieBehavior::from(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
)
)
?
)
;
builder = builder.set_cookie_behavior(var_451);
}
,
s if s.matches("Cookies") /* Cookies com.amazonaws.cloudfront#CachePolicyCookiesConfig$Cookies */ => {
let var_452 =
Some(
crate::xml_deser::deser_structure_crate_model_cookie_names(&mut tag)
?
)
;
builder = builder.set_cookies(var_452);
}
,
_ => {}
}
}
Ok(builder.build())
}Trait Implementations§
source§impl Clone for CachePolicyCookiesConfig
impl Clone for CachePolicyCookiesConfig
source§fn clone(&self) -> CachePolicyCookiesConfig
fn clone(&self) -> CachePolicyCookiesConfig
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more