Skip to content
v2.274.0

CachingConfigProperty Struct ​

The caching configuration for a resolver that has caching activated.

Example ​

ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_appsync as appsync } from 'aws-cdk-lib';
const cachingConfigProperty: appsync.CfnResolver.CachingConfigProperty = {
  ttl: 123,

  // the properties below are optional
  cachingKeys: ['cachingKeys'],
};

Properties ​

cachingKeysoptionalstring[]caching_keysoptionaltyping.List[str]cachingKeysoptionalList<String>CachingKeysoptionalstring[]CachingKeysoptional*[]*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.

ttlnumberttlint | floatttlNumberTtldoubleTtl*float64required#
The TTL in seconds for a resolver that has caching activated.

Valid values are 1–3,600 seconds.