![JAR search and dependency download from the Maven repository](/logo.png)
com.pulumi.awsnative.amplify.kotlin.outputs.AppAutoBranchCreationConfig.kt Maven / Gradle / Ivy
@file:Suppress("NAME_SHADOWING", "DEPRECATION")
package com.pulumi.awsnative.amplify.kotlin.outputs
import com.pulumi.awsnative.amplify.kotlin.enums.AppAutoBranchCreationConfigStage
import kotlin.Boolean
import kotlin.String
import kotlin.Suppress
import kotlin.collections.List
/**
*
* @property autoBranchCreationPatterns Automated branch creation glob patterns for the Amplify app.
* @property basicAuthConfig Sets password protection for your auto created branch.
* @property buildSpec The build specification (build spec) for the autocreated branch.
* @property enableAutoBranchCreation Enables automated branch creation for the Amplify app.
* @property enableAutoBuild Enables auto building for the auto created branch.
* @property enablePerformanceMode Enables performance mode for the branch.
* Performance mode optimizes for faster hosting performance by keeping content cached at the edge for a longer interval. When performance mode is enabled, hosting configuration or code changes can take up to 10 minutes to roll out.
* @property enablePullRequestPreview Sets whether pull request previews are enabled for each branch that Amplify Hosting automatically creates for your app. Amplify creates previews by deploying your app to a unique URL whenever a pull request is opened for the branch. Development and QA teams can use this preview to test the pull request before it's merged into a production or integration branch.
* To provide backend support for your preview, Amplify Hosting automatically provisions a temporary backend environment that it deletes when the pull request is closed. If you want to specify a dedicated backend environment for your previews, use the `PullRequestEnvironmentName` property.
* For more information, see [Web Previews](https://docs.aws.amazon.com/amplify/latest/userguide/pr-previews.html) in the *AWS Amplify Hosting User Guide* .
* @property environmentVariables The environment variables for the autocreated branch.
* @property framework The framework for the autocreated branch.
* @property pullRequestEnvironmentName If pull request previews are enabled, you can use this property to specify a dedicated backend environment for your previews. For example, you could specify an environment named `prod` , `test` , or `dev` that you initialized with the Amplify CLI.
* To enable pull request previews, set the `EnablePullRequestPreview` property to `true` .
* If you don't specify an environment, Amplify Hosting provides backend support for each preview by automatically provisioning a temporary backend environment. Amplify deletes this environment when the pull request is closed.
* For more information about creating backend environments, see [Feature Branch Deployments and Team Workflows](https://docs.aws.amazon.com/amplify/latest/userguide/multi-environments.html) in the *AWS Amplify Hosting User Guide* .
* @property stage Stage for the auto created branch.
*/
public data class AppAutoBranchCreationConfig(
public val autoBranchCreationPatterns: List? = null,
public val basicAuthConfig: AppBasicAuthConfig? = null,
public val buildSpec: String? = null,
public val enableAutoBranchCreation: Boolean? = null,
public val enableAutoBuild: Boolean? = null,
public val enablePerformanceMode: Boolean? = null,
public val enablePullRequestPreview: Boolean? = null,
public val environmentVariables: List? = null,
public val framework: String? = null,
public val pullRequestEnvironmentName: String? = null,
public val stage: AppAutoBranchCreationConfigStage? = null,
) {
public companion object {
public fun toKotlin(javaType: com.pulumi.awsnative.amplify.outputs.AppAutoBranchCreationConfig): AppAutoBranchCreationConfig = AppAutoBranchCreationConfig(
autoBranchCreationPatterns = javaType.autoBranchCreationPatterns().map({ args0 -> args0 }),
basicAuthConfig = javaType.basicAuthConfig().map({ args0 ->
args0.let({ args0 ->
com.pulumi.awsnative.amplify.kotlin.outputs.AppBasicAuthConfig.Companion.toKotlin(args0)
})
}).orElse(null),
buildSpec = javaType.buildSpec().map({ args0 -> args0 }).orElse(null),
enableAutoBranchCreation = javaType.enableAutoBranchCreation().map({ args0 -> args0 }).orElse(null),
enableAutoBuild = javaType.enableAutoBuild().map({ args0 -> args0 }).orElse(null),
enablePerformanceMode = javaType.enablePerformanceMode().map({ args0 -> args0 }).orElse(null),
enablePullRequestPreview = javaType.enablePullRequestPreview().map({ args0 -> args0 }).orElse(null),
environmentVariables = javaType.environmentVariables().map({ args0 ->
args0.let({ args0 ->
com.pulumi.awsnative.amplify.kotlin.outputs.AppEnvironmentVariable.Companion.toKotlin(args0)
})
}),
framework = javaType.framework().map({ args0 -> args0 }).orElse(null),
pullRequestEnvironmentName = javaType.pullRequestEnvironmentName().map({ args0 ->
args0
}).orElse(null),
stage = javaType.stage().map({ args0 ->
args0.let({ args0 ->
com.pulumi.awsnative.amplify.kotlin.enums.AppAutoBranchCreationConfigStage.Companion.toKotlin(args0)
})
}).orElse(null),
)
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy