Class CachingConfig.Builder

java.lang.Object
software.amazon.awscdk.services.appsync.CachingConfig.Builder
All Implemented Interfaces:
software.amazon.jsii.Builder<CachingConfig>
Enclosing interface:
CachingConfig

@Stability(Experimental) public static final class CachingConfig.Builder extends Object implements software.amazon.jsii.Builder<CachingConfig>
A builder for CachingConfig
  • Constructor Details

    • Builder

      public Builder()
  • Method Details

    • ttl

      @Stability(Experimental) public CachingConfig.Builder ttl(Duration ttl)
      Sets the value of CachingConfig.getTtl()
      Parameters:
      ttl - The TTL in seconds for a resolver that has caching enabled. This parameter is required. Valid values are between 1 and 3600 seconds.
      Returns:
      this
    • cachingKeys

      @Stability(Experimental) public CachingConfig.Builder cachingKeys(List<String> cachingKeys)
      Parameters:
      cachingKeys - The caching keys for a resolver that has caching enabled. Valid values are entries from the $context.arguments, $context.source, and $context.identity maps.
      Returns:
      this
    • build

      @Stability(Experimental) public CachingConfig build()
      Builds the configured instance.
      Specified by:
      build in interface software.amazon.jsii.Builder<CachingConfig>
      Returns:
      a new instance of CachingConfig
      Throws:
      NullPointerException - if any required attribute was not provided