Class CachingConfig
(experimental) CachingConfig for AppSync resolvers.
Inheritance
System.Object
CachingConfig
Implements
Namespace: Amazon.CDK.AWS.AppSync
Assembly: Amazon.CDK.AWS.AppSync.dll
Syntax (csharp)
public class CachingConfig : Object, ICachingConfig
Syntax (vb)
Public Class CachingConfig
Inherits Object
Implements 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
Constructors
CachingConfig() |
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. |
Constructors
CachingConfig()
public CachingConfig()
Properties
CachingKeys
(experimental) The caching keys for a resolver that has caching enabled.
public string[] CachingKeys { get; set; }
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.
public Duration Ttl { get; set; }
Property Value
Remarks
Valid values are between 1 and 3600 seconds.
Stability: Experimental