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.

Platform Enum ​

Available hosting platforms to use on the App.

Example ​

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

Members ​

MemberDescription
WEBWEB - Used to indicate that the app is hosted using only static assets.
WEB_COMPUTEWEB_COMPUTE - Used to indicate the app is hosted using a combination of server side rendered and static assets.
WEB_DYNAMICWEB_DYNAMIC - Used to indicate the app is hosted using a fully dynamic architecture, where requests are processed at runtime by backend compute services.

Referenced by ​

  • App.platformplatformplatformPlatformPlatform
  • AppProps.platformplatformplatformPlatformPlatform