#[non_exhaustive]pub struct OriginRequestPolicyQueryStringsConfigBuilder { /* private fields */ }
Expand description
A builder for OriginRequestPolicyQueryStringsConfig
.
Implementations§
source§impl OriginRequestPolicyQueryStringsConfigBuilder
impl OriginRequestPolicyQueryStringsConfigBuilder
sourcepub fn query_string_behavior(
self,
input: OriginRequestPolicyQueryStringBehavior
) -> Self
pub fn query_string_behavior( self, input: OriginRequestPolicyQueryStringBehavior ) -> Self
Determines whether any URL query strings in viewer requests are included in requests that CloudFront sends to the origin. Valid values are:
-
none
– No query strings in viewer requests are 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
– Only 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. -
allExcept
– All query strings in viewer requests are included in requests that CloudFront sends to the origin, except for those listed in theQueryStringNames
type, which are not included.
sourcepub fn set_query_string_behavior(
self,
input: Option<OriginRequestPolicyQueryStringBehavior>
) -> Self
pub fn set_query_string_behavior( self, input: Option<OriginRequestPolicyQueryStringBehavior> ) -> Self
Determines whether any URL query strings in viewer requests are included in requests that CloudFront sends to the origin. Valid values are:
-
none
– No query strings in viewer requests are 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
– Only 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. -
allExcept
– All query strings in viewer requests are included in requests that CloudFront sends to the origin, except for those listed in theQueryStringNames
type, which are not included.
sourcepub fn get_query_string_behavior(
&self
) -> &Option<OriginRequestPolicyQueryStringBehavior>
pub fn get_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
– No query strings in viewer requests are 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
– Only 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. -
allExcept
– All query strings in viewer requests are included in requests that CloudFront sends to the origin, except for those listed in theQueryStringNames
type, which are not included.
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 requests that CloudFront sends to the origin. The behavior depends on whether the QueryStringBehavior
field in the OriginRequestPolicyQueryStringsConfig
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 requests that CloudFront sends to the origin. The behavior depends on whether the QueryStringBehavior
field in the OriginRequestPolicyQueryStringsConfig
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 requests that CloudFront sends to the origin. The behavior depends on whether the QueryStringBehavior
field in the OriginRequestPolicyQueryStringsConfig
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) -> Result<OriginRequestPolicyQueryStringsConfig, BuildError>
pub fn build(self) -> Result<OriginRequestPolicyQueryStringsConfig, BuildError>
Consumes the builder and constructs a OriginRequestPolicyQueryStringsConfig
.
This method will fail if any of the following fields are not set:
Trait Implementations§
source§impl Clone for OriginRequestPolicyQueryStringsConfigBuilder
impl Clone for OriginRequestPolicyQueryStringsConfigBuilder
source§fn clone(&self) -> OriginRequestPolicyQueryStringsConfigBuilder
fn clone(&self) -> OriginRequestPolicyQueryStringsConfigBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Default for OriginRequestPolicyQueryStringsConfigBuilder
impl Default for OriginRequestPolicyQueryStringsConfigBuilder
source§fn default() -> OriginRequestPolicyQueryStringsConfigBuilder
fn default() -> OriginRequestPolicyQueryStringsConfigBuilder
source§impl PartialEq for OriginRequestPolicyQueryStringsConfigBuilder
impl PartialEq for OriginRequestPolicyQueryStringsConfigBuilder
source§fn eq(&self, other: &OriginRequestPolicyQueryStringsConfigBuilder) -> bool
fn eq(&self, other: &OriginRequestPolicyQueryStringsConfigBuilder) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for OriginRequestPolicyQueryStringsConfigBuilder
Auto Trait Implementations§
impl Freeze for OriginRequestPolicyQueryStringsConfigBuilder
impl RefUnwindSafe for OriginRequestPolicyQueryStringsConfigBuilder
impl Send for OriginRequestPolicyQueryStringsConfigBuilder
impl Sync for OriginRequestPolicyQueryStringsConfigBuilder
impl Unpin for OriginRequestPolicyQueryStringsConfigBuilder
impl UnwindSafe for OriginRequestPolicyQueryStringsConfigBuilder
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more