Struct aws_sdk_cloudfront::types::QueryStringCacheKeys
source · #[non_exhaustive]pub struct QueryStringCacheKeys {
pub quantity: i32,
pub items: Option<Vec<String>>,
}
Expand description
This field is deprecated. We recommend that you use a cache policy or an origin request policy instead of this field.
If you want to include query strings in the cache key, use QueryStringsConfig
in a cache policy. See CachePolicy
.
If you want to send query strings to the origin but not include them in the cache key, use QueryStringsConfig
in an origin request policy. See OriginRequestPolicy
.
A complex type that contains information about the query string parameters that you want CloudFront to use for caching for a cache behavior.
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.quantity: i32
The number of whitelisted
query string parameters for a cache behavior.
items: Option<Vec<String>>
A list that contains the query string parameters that you want CloudFront to use as a basis for caching for a cache behavior. If Quantity
is 0, you can omit Items
.
Implementations§
source§impl QueryStringCacheKeys
impl QueryStringCacheKeys
sourcepub fn quantity(&self) -> i32
pub fn quantity(&self) -> i32
The number of whitelisted
query string parameters for a cache behavior.
sourcepub fn items(&self) -> &[String]
pub fn items(&self) -> &[String]
A list that contains the query string parameters that you want CloudFront to use as a basis for caching for a cache behavior. If Quantity
is 0, you can omit Items
.
If no value was sent for this field, a default will be set. If you want to determine if no value was sent, use .items.is_none()
.
source§impl QueryStringCacheKeys
impl QueryStringCacheKeys
sourcepub fn builder() -> QueryStringCacheKeysBuilder
pub fn builder() -> QueryStringCacheKeysBuilder
Creates a new builder-style object to manufacture QueryStringCacheKeys
.
Trait Implementations§
source§impl Clone for QueryStringCacheKeys
impl Clone for QueryStringCacheKeys
source§fn clone(&self) -> QueryStringCacheKeys
fn clone(&self) -> QueryStringCacheKeys
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for QueryStringCacheKeys
impl Debug for QueryStringCacheKeys
source§impl PartialEq for QueryStringCacheKeys
impl PartialEq for QueryStringCacheKeys
source§fn eq(&self, other: &QueryStringCacheKeys) -> bool
fn eq(&self, other: &QueryStringCacheKeys) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for QueryStringCacheKeys
Auto Trait Implementations§
impl Freeze for QueryStringCacheKeys
impl RefUnwindSafe for QueryStringCacheKeys
impl Send for QueryStringCacheKeys
impl Sync for QueryStringCacheKeys
impl Unpin for QueryStringCacheKeys
impl UnwindSafe for QueryStringCacheKeys
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