All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.pulumi.awsnative.amplify.kotlin.enums.AppPlatform.kt Maven / Gradle / Ivy

@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.awsnative.amplify.kotlin.enums

import com.pulumi.kotlin.ConvertibleToJava
import kotlin.Suppress

/**
 * The platform for the Amplify app. For a static app, set the platform type to `WEB` . For a dynamic server-side rendered (SSR) app, set the platform type to `WEB_COMPUTE` . For an app requiring Amplify Hosting's original SSR support only, set the platform type to `WEB_DYNAMIC` .
 * If you are deploying an SSG only app with Next.js version 14 or later, you must set the platform type to `WEB_COMPUTE` and set the artifacts `baseDirectory` to `.next` in the application's build settings. For an example of the build specification settings, see [Amplify build settings for a Next.js 14 SSG application](https://docs.aws.amazon.com/amplify/latest/userguide/deploy-nextjs-app.html#build-setting-detection-ssg-14) in the *Amplify Hosting User Guide* .
 */
public enum class AppPlatform(
    public val javaValue: com.pulumi.awsnative.amplify.enums.AppPlatform,
) : ConvertibleToJava {
    Web(com.pulumi.awsnative.amplify.enums.AppPlatform.Web),
    WebDynamic(com.pulumi.awsnative.amplify.enums.AppPlatform.WebDynamic),
    WebCompute(com.pulumi.awsnative.amplify.enums.AppPlatform.WebCompute),
    ;

    override fun toJava(): com.pulumi.awsnative.amplify.enums.AppPlatform = javaValue

    public companion object {
        public fun toKotlin(javaType: com.pulumi.awsnative.amplify.enums.AppPlatform): AppPlatform =
            AppPlatform.values().first { it.javaValue == javaType }
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy