Show / Hide Table of Contents

Interface ICachingConfig

CachingConfig for AppSync resolvers.

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

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;
            using Amazon.CDK.AWS.AppSync;

            var cachingConfig = new CachingConfig {
                Ttl = Duration.Minutes(30),

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

Synopsis

Properties

CachingKeys

The caching keys for a resolver that has caching enabled.

Ttl

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

Properties

CachingKeys

The caching keys for a resolver that has caching enabled.

string[]? CachingKeys { get; }
Property Value

string[]

Remarks

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.

Duration Ttl { get; }
Property Value

Duration

Remarks

Valid values are between 1 and 3600 seconds.

Back to top Generated by DocFX