Skip to content
v2.276.0

Experimental

@aws-cdk/aws-amplify-alpha is an experimental (alpha) package: its API may change in any release, without a major version bump.

CacheConfigType Enum ​

The type of cache configuration to use for an Amplify app.

Example ​

ts
const amplifyApp = new amplify.App(this, 'MyApp', {
  cacheConfigType: amplify.CacheConfigType.AMPLIFY_MANAGED_NO_COOKIES,
});
python
amplify_app = amplify.App(self, "MyApp",
    cache_config_type=amplify.CacheConfigType.AMPLIFY_MANAGED_NO_COOKIES
)
java
App amplifyApp = App.Builder.create(this, "MyApp")
        .cacheConfigType(CacheConfigType.AMPLIFY_MANAGED_NO_COOKIES)
        .build();
csharp
// Install: dotnet add package Amazon.CDK.AWS.Amplify.Alpha
var amplifyApp = new App(this, "MyApp", new AppProps {
    CacheConfigType = CacheConfigType.AMPLIFY_MANAGED_NO_COOKIES
});
go
// Install: go get github.com/aws/aws-cdk-go/awscdkamplifyalpha/v2
amplifyApp := amplify.NewApp(this, jsii.String("MyApp"), &AppProps{
	CacheConfigType: amplify.CacheConfigType_AMPLIFY_MANAGED_NO_COOKIES,
})

Members ​

MemberDescription
AMPLIFY_MANAGEDAMPLIFY_MANAGED - Automatically applies an optimized cache configuration for your app based on its platform, routing rules, and rewrite rules.
AMPLIFY_MANAGED_NO_COOKIESAMPLIFY_MANAGED_NO_COOKIES - The same as AMPLIFY_MANAGED, except that it excludes all cookies from the cache key.

Referenced by ​

  • AppProps.cacheConfigTypecache_config_typecacheConfigTypeCacheConfigTypeCacheConfigType