Struct aws_sdk_lightsail::types::QueryStringObject
source · #[non_exhaustive]pub struct QueryStringObject {
pub option: Option<bool>,
pub query_strings_allow_list: Option<Vec<String>>,
}
Expand description
Describes the query string parameters that an Amazon Lightsail content delivery network (CDN) distribution to bases caching on.
For the query strings that you specify, your distribution caches separate versions of the specified content based on the query string values in viewer requests.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Struct { .. }
syntax; cannot be matched against without a wildcard ..
; and struct update syntax will not work.option: Option<bool>
Indicates whether the distribution forwards and caches based on query strings.
query_strings_allow_list: Option<Vec<String>>
The specific query strings that the distribution forwards to the origin.
Your distribution will cache content based on the specified query strings.
If the option
parameter is true, then your distribution forwards all query strings, regardless of what you specify using the queryStringsAllowList
parameter.
Implementations§
source§impl QueryStringObject
impl QueryStringObject
sourcepub fn option(&self) -> Option<bool>
pub fn option(&self) -> Option<bool>
Indicates whether the distribution forwards and caches based on query strings.
sourcepub fn query_strings_allow_list(&self) -> &[String]
pub fn query_strings_allow_list(&self) -> &[String]
The specific query strings that the distribution forwards to the origin.
Your distribution will cache content based on the specified query strings.
If the option
parameter is true, then your distribution forwards all query strings, regardless of what you specify using the queryStringsAllowList
parameter.
If no value was sent for this field, a default will be set. If you want to determine if no value was sent, use .query_strings_allow_list.is_none()
.
source§impl QueryStringObject
impl QueryStringObject
sourcepub fn builder() -> QueryStringObjectBuilder
pub fn builder() -> QueryStringObjectBuilder
Creates a new builder-style object to manufacture QueryStringObject
.
Trait Implementations§
source§impl Clone for QueryStringObject
impl Clone for QueryStringObject
source§fn clone(&self) -> QueryStringObject
fn clone(&self) -> QueryStringObject
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for QueryStringObject
impl Debug for QueryStringObject
source§impl PartialEq for QueryStringObject
impl PartialEq for QueryStringObject
source§fn eq(&self, other: &QueryStringObject) -> bool
fn eq(&self, other: &QueryStringObject) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for QueryStringObject
Auto Trait Implementations§
impl Freeze for QueryStringObject
impl RefUnwindSafe for QueryStringObject
impl Send for QueryStringObject
impl Sync for QueryStringObject
impl Unpin for QueryStringObject
impl UnwindSafe for QueryStringObject
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