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: i32The 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 ==.