CachingConfig
- class aws_cdk.aws_appsync.CachingConfig(*, ttl, caching_keys=None)
Bases:
object
(experimental) CachingConfig for AppSync resolvers.
- Parameters:
ttl (
Duration
) – (experimental) The TTL in seconds for a resolver that has caching enabled. Valid values are between 1 and 3600 seconds.caching_keys (
Optional
[Sequence
[str
]]) – (experimental) The caching keys for a resolver that has caching enabled. Valid values are entries from the $context.arguments, $context.source, and $context.identity maps. Default: - No caching keys
- Stability:
experimental
- ExampleMetadata:
fixture=_generated
Example:
# The code below shows an example of how to instantiate this type. # The values are placeholders you should change. import aws_cdk.aws_appsync as appsync import aws_cdk.core as cdk caching_config = appsync.CachingConfig( ttl=cdk.Duration.minutes(30), # the properties below are optional caching_keys=["cachingKeys"] )
Attributes
- caching_keys
(experimental) The caching keys for a resolver that has caching enabled.
Valid values are entries from the $context.arguments, $context.source, and $context.identity maps.
- Default:
No caching keys
- Stability:
experimental
- ttl
(experimental) The TTL in seconds for a resolver that has caching enabled.
Valid values are between 1 and 3600 seconds.
- Stability:
experimental