#[non_exhaustive]pub struct CachePolicyQueryStringsConfigBuilder { /* private fields */ }Expand description
A builder for CachePolicyQueryStringsConfig.
Implementations§
source§impl CachePolicyQueryStringsConfigBuilder
impl CachePolicyQueryStringsConfigBuilder
sourcepub fn query_string_behavior(
self,
input: CachePolicyQueryStringBehavior
) -> Self
pub fn query_string_behavior( self, input: CachePolicyQueryStringBehavior ) -> Self
Determines whether any URL query strings in viewer requests are included in the cache key and in requests that CloudFront sends to the origin. Valid values are:
-
none– No query strings in viewer requests are included in the cache key or in requests that CloudFront sends to the origin. Even when this field is set tonone, any query strings that are listed in anOriginRequestPolicyare included in origin requests. -
whitelist– Only the query strings in viewer requests that are listed in theQueryStringNamestype are included in the cache key and in requests that CloudFront sends to the origin. -
allExcept– All query strings in viewer requests are included in the cache key and in requests that CloudFront sends to the origin, except those that are listed in theQueryStringNamestype, which are not included. -
all– All query strings in viewer requests are included in the cache key and in requests that CloudFront sends to the origin.
sourcepub fn set_query_string_behavior(
self,
input: Option<CachePolicyQueryStringBehavior>
) -> Self
pub fn set_query_string_behavior( self, input: Option<CachePolicyQueryStringBehavior> ) -> Self
Determines whether any URL query strings in viewer requests are included in the cache key and in requests that CloudFront sends to the origin. Valid values are:
-
none– No query strings in viewer requests are included in the cache key or in requests that CloudFront sends to the origin. Even when this field is set tonone, any query strings that are listed in anOriginRequestPolicyare included in origin requests. -
whitelist– Only the query strings in viewer requests that are listed in theQueryStringNamestype are included in the cache key and in requests that CloudFront sends to the origin. -
allExcept– All query strings in viewer requests are included in the cache key and in requests that CloudFront sends to the origin, except those that are listed in theQueryStringNamestype, which are not included. -
all– All query strings in viewer requests are included in the cache key and in requests that CloudFront sends to the origin.
sourcepub fn get_query_string_behavior(
&self
) -> &Option<CachePolicyQueryStringBehavior>
pub fn get_query_string_behavior( &self ) -> &Option<CachePolicyQueryStringBehavior>
Determines whether any URL query strings in viewer requests are included in the cache key and in requests that CloudFront sends to the origin. Valid values are:
-
none– No query strings in viewer requests are included in the cache key or in requests that CloudFront sends to the origin. Even when this field is set tonone, any query strings that are listed in anOriginRequestPolicyare included in origin requests. -
whitelist– Only the query strings in viewer requests that are listed in theQueryStringNamestype are included in the cache key and in requests that CloudFront sends to the origin. -
allExcept– All query strings in viewer requests are included in the cache key and in requests that CloudFront sends to the origin, except those that are listed in theQueryStringNamestype, which are not included. -
all– All query strings in viewer requests are included in the cache key and in requests that CloudFront sends to the origin.
sourcepub fn query_strings(self, input: QueryStringNames) -> Self
pub fn query_strings(self, input: QueryStringNames) -> Self
Contains the specific query strings in viewer requests that either are or are not included in the cache key and in requests that CloudFront sends to the origin. The behavior depends on whether the QueryStringBehavior field in the CachePolicyQueryStringsConfig type is set to whitelist (the listed query strings are included) or allExcept (the listed query strings are not included, but all other query strings are).
sourcepub fn set_query_strings(self, input: Option<QueryStringNames>) -> Self
pub fn set_query_strings(self, input: Option<QueryStringNames>) -> Self
Contains the specific query strings in viewer requests that either are or are not included in the cache key and in requests that CloudFront sends to the origin. The behavior depends on whether the QueryStringBehavior field in the CachePolicyQueryStringsConfig type is set to whitelist (the listed query strings are included) or allExcept (the listed query strings are not included, but all other query strings are).
sourcepub fn get_query_strings(&self) -> &Option<QueryStringNames>
pub fn get_query_strings(&self) -> &Option<QueryStringNames>
Contains the specific query strings in viewer requests that either are or are not included in the cache key and in requests that CloudFront sends to the origin. The behavior depends on whether the QueryStringBehavior field in the CachePolicyQueryStringsConfig type is set to whitelist (the listed query strings are included) or allExcept (the listed query strings are not included, but all other query strings are).
sourcepub fn build(self) -> CachePolicyQueryStringsConfig
pub fn build(self) -> CachePolicyQueryStringsConfig
Consumes the builder and constructs a CachePolicyQueryStringsConfig.
Trait Implementations§
source§impl Clone for CachePolicyQueryStringsConfigBuilder
impl Clone for CachePolicyQueryStringsConfigBuilder
source§fn clone(&self) -> CachePolicyQueryStringsConfigBuilder
fn clone(&self) -> CachePolicyQueryStringsConfigBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moresource§impl Default for CachePolicyQueryStringsConfigBuilder
impl Default for CachePolicyQueryStringsConfigBuilder
source§fn default() -> CachePolicyQueryStringsConfigBuilder
fn default() -> CachePolicyQueryStringsConfigBuilder
source§impl PartialEq<CachePolicyQueryStringsConfigBuilder> for CachePolicyQueryStringsConfigBuilder
impl PartialEq<CachePolicyQueryStringsConfigBuilder> for CachePolicyQueryStringsConfigBuilder
source§fn eq(&self, other: &CachePolicyQueryStringsConfigBuilder) -> bool
fn eq(&self, other: &CachePolicyQueryStringsConfigBuilder) -> bool
self and other values to be equal, and is used
by ==.