#[non_exhaustive]pub struct OriginRequestPolicyQueryStringsConfig { /* private fields */ }
Expand description
An object that determines whether any URL query strings in viewer requests (and if so, which query strings) are included in requests that CloudFront sends to the origin.
Implementations§
source§impl OriginRequestPolicyQueryStringsConfig
impl OriginRequestPolicyQueryStringsConfig
sourcepub fn query_string_behavior(
&self
) -> Option<&OriginRequestPolicyQueryStringBehavior>
pub fn query_string_behavior(
&self
) -> Option<&OriginRequestPolicyQueryStringBehavior>
Determines whether any URL query strings in viewer requests are included in requests that CloudFront sends to the origin. Valid values are:
-
none
– Query strings in viewer requests are not included in requests that CloudFront sends to the origin. Even when this field is set tonone
, any query strings that are listed in aCachePolicy
are included in origin requests. -
whitelist
– The query strings in viewer requests that are listed in theQueryStringNames
type are included in requests that CloudFront sends to the origin. -
all
– All query strings in viewer requests are included in requests that CloudFront sends to the origin.
sourcepub fn query_strings(&self) -> Option<&QueryStringNames>
pub fn query_strings(&self) -> Option<&QueryStringNames>
Contains a list of the query strings in viewer requests that are included in requests that CloudFront sends to the origin.
source§impl OriginRequestPolicyQueryStringsConfig
impl OriginRequestPolicyQueryStringsConfig
sourcepub fn builder() -> Builder
pub fn builder() -> Builder
Creates a new builder-style object to manufacture OriginRequestPolicyQueryStringsConfig
.
Examples found in repository?
10463 10464 10465 10466 10467 10468 10469 10470 10471 10472 10473 10474 10475 10476 10477 10478 10479 10480 10481 10482 10483 10484 10485 10486 10487 10488 10489 10490 10491 10492 10493 10494 10495 10496 10497 10498 10499 10500 10501
pub fn deser_structure_crate_model_origin_request_policy_query_strings_config(
decoder: &mut aws_smithy_xml::decode::ScopedDecoder,
) -> Result<
crate::model::OriginRequestPolicyQueryStringsConfig,
aws_smithy_xml::decode::XmlDecodeError,
> {
#[allow(unused_mut)]
let mut builder = crate::model::OriginRequestPolicyQueryStringsConfig::builder();
while let Some(mut tag) = decoder.next_tag() {
match tag.start_el() {
s if s.matches("QueryStringBehavior") /* QueryStringBehavior com.amazonaws.cloudfront#OriginRequestPolicyQueryStringsConfig$QueryStringBehavior */ => {
let var_416 =
Some(
Result::<crate::model::OriginRequestPolicyQueryStringBehavior, aws_smithy_xml::decode::XmlDecodeError>::Ok(
crate::model::OriginRequestPolicyQueryStringBehavior::from(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
)
)
?
)
;
builder = builder.set_query_string_behavior(var_416);
}
,
s if s.matches("QueryStrings") /* QueryStrings com.amazonaws.cloudfront#OriginRequestPolicyQueryStringsConfig$QueryStrings */ => {
let var_417 =
Some(
crate::xml_deser::deser_structure_crate_model_query_string_names(&mut tag)
?
)
;
builder = builder.set_query_strings(var_417);
}
,
_ => {}
}
}
Ok(builder.build())
}
Trait Implementations§
source§impl Clone for OriginRequestPolicyQueryStringsConfig
impl Clone for OriginRequestPolicyQueryStringsConfig
source§fn clone(&self) -> OriginRequestPolicyQueryStringsConfig
fn clone(&self) -> OriginRequestPolicyQueryStringsConfig
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read more