Copyright | (c) 2013-2023 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay |
Stability | auto-generated |
Portability | non-portable (GHC extensions) |
Safe Haskell | Safe-Inferred |
Language | Haskell2010 |
Amazonka.AppSync.Types.CachingConfig
Description
Synopsis
- data CachingConfig = CachingConfig' {
- cachingKeys :: Maybe [Text]
- ttl :: Integer
- newCachingConfig :: Integer -> CachingConfig
- cachingConfig_cachingKeys :: Lens' CachingConfig (Maybe [Text])
- cachingConfig_ttl :: Lens' CachingConfig Integer
Documentation
data CachingConfig Source #
The caching configuration for a resolver that has caching activated.
See: newCachingConfig
smart constructor.
Constructors
CachingConfig' | |
Fields
|
Instances
Arguments
:: Integer | |
-> CachingConfig |
Create a value of CachingConfig
with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.
The following record fields are available, with the corresponding lenses provided for backwards compatibility:
$sel:cachingKeys:CachingConfig'
, cachingConfig_cachingKeys
- The caching keys for a resolver that has caching activated.
Valid values are entries from the $context.arguments
,
$context.source
, and $context.identity
maps.
$sel:ttl:CachingConfig'
, cachingConfig_ttl
- The TTL in seconds for a resolver that has caching activated.
Valid values are 1–3,600 seconds.
cachingConfig_cachingKeys :: Lens' CachingConfig (Maybe [Text]) Source #
The caching keys for a resolver that has caching activated.
Valid values are entries from the $context.arguments
,
$context.source
, and $context.identity
maps.
cachingConfig_ttl :: Lens' CachingConfig Integer Source #
The TTL in seconds for a resolver that has caching activated.
Valid values are 1–3,600 seconds.