Show / Hide Table of Contents

Interface ICachingConfig

(experimental) CachingConfig for AppSync resolvers.

Namespace: Amazon.CDK.AWS.AppSync
Assembly: Amazon.CDK.AWS.AppSync.dll
Syntax (csharp)
public interface ICachingConfig
Syntax (vb)
Public Interface ICachingConfig
Remarks

Stability: Experimental

ExampleMetadata: fixture=_generated

Examples
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.AWS.AppSync;
using Amazon.CDK;
var cachingConfig = new CachingConfig {
    Ttl = Duration.Minutes(30),

    // the properties below are optional
    CachingKeys = new [] { "cachingKeys" }
};

Synopsis

Properties

CachingKeys

(experimental) The caching keys for a resolver that has caching enabled.

Ttl

(experimental) The TTL in seconds for a resolver that has caching enabled.

Properties

CachingKeys

(experimental) The caching keys for a resolver that has caching enabled.

virtual string[] CachingKeys { get; }
Property Value

System.String[]

Remarks

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.

Duration Ttl { get; }
Property Value

Duration

Remarks

Valid values are between 1 and 3600 seconds.

Stability: Experimental

Back to top Generated by DocFX