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
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
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) -> Option<&[String]>
pub fn caching_keys(&self) -> Option<&[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.
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
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for CachingConfig
impl Debug for CachingConfig
source§impl PartialEq<CachingConfig> for CachingConfig
impl PartialEq<CachingConfig> for CachingConfig
source§fn eq(&self, other: &CachingConfig) -> bool
fn eq(&self, other: &CachingConfig) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for CachingConfig
Auto Trait Implementations§
impl RefUnwindSafe for CachingConfig
impl Send for CachingConfig
impl Sync for CachingConfig
impl Unpin for CachingConfig
impl UnwindSafe for CachingConfig
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
Mutably borrows from an owned value. Read more