Struct aws_sdk_appsync::types::CachingConfig
source · #[non_exhaustive]pub struct CachingConfig {
pub ttl: i64,
pub caching_keys: Option<Vec<String>>,
}
Expand description
The caching configuration for a resolver that has caching activated.
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.ttl: i64
The TTL in seconds for a resolver that has caching activated.
Valid values are 1–3,600 seconds.
caching_keys: Option<Vec<String>>
The caching keys for a resolver that has caching activated.
Valid values are entries from the $context.arguments
, $context.source
, and $context.identity
maps.
Implementations§
source§impl CachingConfig
impl CachingConfig
sourcepub fn ttl(&self) -> i64
pub fn ttl(&self) -> i64
The TTL in seconds for a resolver that has caching activated.
Valid values are 1–3,600 seconds.
sourcepub fn caching_keys(&self) -> &[String]
pub fn caching_keys(&self) -> &[String]
The caching keys for a resolver that has caching activated.
Valid values are entries from the $context.arguments
, $context.source
, and $context.identity
maps.
If no value was sent for this field, a default will be set. If you want to determine if no value was sent, use .caching_keys.is_none()
.
source§impl CachingConfig
impl CachingConfig
sourcepub fn builder() -> CachingConfigBuilder
pub fn builder() -> CachingConfigBuilder
Creates a new builder-style object to manufacture CachingConfig
.
Trait Implementations§
source§impl Clone for CachingConfig
impl Clone for CachingConfig
source§fn clone(&self) -> CachingConfig
fn clone(&self) -> CachingConfig
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for CachingConfig
impl Debug for CachingConfig
source§impl PartialEq for CachingConfig
impl PartialEq for CachingConfig
source§fn eq(&self, other: &CachingConfig) -> bool
fn eq(&self, other: &CachingConfig) -> bool
self
and other
values to be equal, and is used
by ==
.