CachingConfig
- class aws_cdk.aws_appsync.CachingConfig(*, ttl, caching_keys=None)
Bases:
object
CachingConfig for AppSync resolvers.
- Parameters:
ttl (
Duration
) – The TTL in seconds for a resolver that has caching enabled. Valid values are between 1 and 3600 seconds.caching_keys (
Optional
[Sequence
[str
]]) – 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
- 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 as cdk from aws_cdk import aws_appsync as appsync caching_config = appsync.CachingConfig( ttl=cdk.Duration.minutes(30), # the properties below are optional caching_keys=["cachingKeys"] )
Attributes
- caching_keys
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
- ttl
The TTL in seconds for a resolver that has caching enabled.
Valid values are between 1 and 3600 seconds.