Class CfnApp.CacheConfigProperty.Builder

java.lang.Object
software.amazon.awscdk.services.amplify.CfnApp.CacheConfigProperty.Builder
All Implemented Interfaces:
software.amazon.jsii.Builder<CfnApp.CacheConfigProperty>
Enclosing interface:
CfnApp.CacheConfigProperty

@Stability(Stable) public static final class CfnApp.CacheConfigProperty.Builder extends Object implements software.amazon.jsii.Builder<CfnApp.CacheConfigProperty>
  • Constructor Details

    • Builder

      public Builder()
  • Method Details

    • type

      @Stability(Stable) public CfnApp.CacheConfigProperty.Builder type(String type)
      Parameters:
      type - The type of cache configuration to use for an Amplify app. The AMPLIFY_MANAGED cache configuration automatically applies an optimized cache configuration for your app based on its platform, routing rules, and rewrite rules. This is the default setting.

      The AMPLIFY_MANAGED_NO_COOKIES cache configuration type is the same as AMPLIFY_MANAGED , except that it excludes all cookies from the cache key.

      Returns:
      this
    • build

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