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
impl StructuralPartialEq for CachingConfig
Auto Trait Implementations§
impl Freeze for CachingConfig
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit
)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