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

    Nested Classes
    Modifier and Type
    Interface
    Description
    static final class 
    A builder for CachingConfig
    static final class 
    An implementation for CachingConfig
  • Method Summary

    Modifier and Type
    Method
    Description
     
    default List<String>
    (experimental) The caching keys for a resolver that has caching enabled.
    (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

      @Stability(Experimental) @NotNull Duration getTtl()
      (experimental) The TTL in seconds for a resolver that has caching enabled.

      Valid values are between 1 and 3600 seconds.

    • getCachingKeys

      @Stability(Experimental) @Nullable default List<String> 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

      @Stability(Experimental) static CachingConfig.Builder builder()
      Returns:
      a CachingConfig.Builder of CachingConfig