@Generated(value="jsii-pacmak/1.50.0 (build d1830a4)", date="2022-01-04T15:39:03.005Z") @Stability(value=Experimental) public interface CachingConfig extends software.amazon.jsii.JsiiSerializable
Example:
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.core.*;
import software.amazon.awscdk.services.appsync.*;
Duration duration;
CachingConfig cachingConfig = CachingConfig.builder()
.ttl(duration)
// the properties below are optional
.cachingKeys(List.of("cachingKeys"))
.build();
| Modifier and Type | Interface and Description |
|---|---|
static class |
CachingConfig.Builder
A builder for
CachingConfig |
static class |
CachingConfig.Jsii$Proxy
An implementation for
CachingConfig |
| Modifier and Type | Method and Description |
|---|---|
static CachingConfig.Builder |
builder() |
default List<String> |
getCachingKeys()
(experimental) The caching keys for a resolver that has caching enabled.
|
Duration |
getTtl()
(experimental) The TTL in seconds for a resolver that has caching enabled.
|
@Stability(value=Experimental) @NotNull Duration getTtl()
Valid values are between 1 and 3600 seconds.
@Stability(value=Experimental) @Nullable default List<String> getCachingKeys()
Valid values are entries from the $context.arguments, $context.source, and $context.identity maps.
Default: - No caching keys
@Stability(value=Experimental) static CachingConfig.Builder builder()
CachingConfig.Builder of CachingConfigCopyright © 2022. All rights reserved.