interface CachingConfigProperty
Language | Type name |
---|---|
.NET | Amazon.CDK.AWS.AppSync.CfnResolver.CachingConfigProperty |
Java | software.amazon.awscdk.services.appsync.CfnResolver.CachingConfigProperty |
Python | aws_cdk.aws_appsync.CfnResolver.CachingConfigProperty |
TypeScript | @aws-cdk/aws-appsync » CfnResolver » CachingConfigProperty |
The caching configuration for a resolver that has caching activated.
Example
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import * as appsync from '@aws-cdk/aws-appsync';
const cachingConfigProperty: appsync.CfnResolver.CachingConfigProperty = {
ttl: 123,
// the properties below are optional
cachingKeys: ['cachingKeys'],
};
Properties
Name | Type | Description |
---|---|---|
ttl | number | The TTL in seconds for a resolver that has caching activated. |
caching | string[] | The caching keys for a resolver that has caching activated. |
ttl
Type:
number
The TTL in seconds for a resolver that has caching activated.
Valid values are 1–3,600 seconds.
cachingKeys?
Type:
string[]
(optional)
The caching keys for a resolver that has caching activated.
Valid values are entries from the $context.arguments
, $context.source
, and $context.identity
maps.