Interface CachingConfig
- All Superinterfaces:
software.amazon.jsii.JsiiSerializable
- All Known Implementing Classes:
CachingConfig.Jsii$Proxy
@Generated(value="jsii-pacmak/1.84.0 (build 5404dcf)",
date="2023-06-19T16:30:49.374Z")
@Stability(Experimental)
public interface CachingConfig
extends software.amazon.jsii.JsiiSerializable
(experimental) CachingConfig for AppSync resolvers.
Example:
// The code below shows an example of how to instantiate this type. // The values are placeholders you should change. import software.amazon.awscdk.services.appsync.*; import software.amazon.awscdk.core.*; CachingConfig cachingConfig = CachingConfig.builder() .ttl(Duration.minutes(30)) // the properties below are optional .cachingKeys(List.of("cachingKeys")) .build();
-
Nested Class Summary
Modifier and TypeInterfaceDescriptionstatic final class
A builder forCachingConfig
static final class
An implementation forCachingConfig
-
Method Summary
Modifier and TypeMethodDescriptionstatic CachingConfig.Builder
builder()
(experimental) The caching keys for a resolver that has caching enabled.getTtl()
(experimental) The TTL in seconds for a resolver that has caching enabled.Methods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Method Details
-
getTtl
(experimental) The TTL in seconds for a resolver that has caching enabled.Valid values are between 1 and 3600 seconds.
-
getCachingKeys
(experimental) The caching keys for a resolver that has caching enabled.Valid values are entries from the $context.arguments, $context.source, and $context.identity maps.
Default: - No caching keys
-
builder
- Returns:
- a
CachingConfig.Builder
ofCachingConfig
-