Show / Hide Table of Contents

Class CachingConfig

CachingConfig for AppSync resolvers.

Inheritance
object
CachingConfig
Implements
ICachingConfig
Inherited Members
object.GetType()
object.MemberwiseClone()
object.ToString()
object.Equals(object)
object.Equals(object, object)
object.ReferenceEquals(object, object)
object.GetHashCode()
Namespace: Amazon.CDK.AWS.AppSync
Assembly: Amazon.CDK.Lib.dll
Syntax (csharp)
public class CachingConfig : ICachingConfig
Syntax (vb)
Public Class CachingConfig Implements 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

Constructors

CachingConfig()

CachingConfig for AppSync resolvers.

Properties

CachingKeys

The caching keys for a resolver that has caching enabled.

Ttl

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

Constructors

CachingConfig()

CachingConfig for AppSync resolvers.

public CachingConfig()
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" }
            };

Properties

CachingKeys

The caching keys for a resolver that has caching enabled.

public string[]? CachingKeys { get; set; }
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.

public Duration Ttl { get; set; }
Property Value

Duration

Remarks

Valid values are between 1 and 3600 seconds.

Implements

ICachingConfig
Back to top Generated by DocFX