aws-cdk-lib.aws_appsync.CfnResolver.CachingConfigProperty

interface CachingConfigProperty

LanguageType name
.NETAmazon.CDK.AWS.AppSync.CfnResolver.CachingConfigProperty
Gogithub.com/aws/aws-cdk-go/awscdk/v2/awsappsync#CfnResolver_CachingConfigProperty
Javasoftware.amazon.awscdk.services.appsync.CfnResolver.CachingConfigProperty
Pythonaws_cdk.aws_appsync.CfnResolver.CachingConfigProperty
TypeScript aws-cdk-lib » 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 { aws_appsync as appsync } from 'aws-cdk-lib';
const cachingConfigProperty: appsync.CfnResolver.CachingConfigProperty = {
  ttl: 123,

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

Properties

NameTypeDescription
ttlnumberThe TTL in seconds for a resolver that has caching activated.
cachingKeys?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.