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

com.pulumi.aws.amplify.kotlin.inputs.AppAutoBranchCreationConfigArgs.kt Maven / Gradle / Ivy

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

package com.pulumi.aws.amplify.kotlin.inputs

import com.pulumi.aws.amplify.inputs.AppAutoBranchCreationConfigArgs.builder
import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiTagMarker
import kotlin.Boolean
import kotlin.Pair
import kotlin.String
import kotlin.Suppress
import kotlin.collections.Map
import kotlin.jvm.JvmName

/**
 *
 * @property basicAuthCredentials Basic authorization credentials for the autocreated branch.
 * @property buildSpec Build specification (build spec) for the autocreated branch.
 * @property enableAutoBuild Enables auto building for the autocreated branch.
 * @property enableBasicAuth Enables basic authorization for the autocreated branch.
 * @property enablePerformanceMode Enables performance mode for the branch.
 * @property enablePullRequestPreview Enables pull request previews for the autocreated branch.
 * @property environmentVariables Environment variables for the autocreated branch.
 * @property framework Framework for the autocreated branch.
 * @property pullRequestEnvironmentName Amplify environment name for the pull request.
 * @property stage Describes the current stage for the autocreated branch. Valid values: `PRODUCTION`, `BETA`, `DEVELOPMENT`, `EXPERIMENTAL`, `PULL_REQUEST`.
 */
public data class AppAutoBranchCreationConfigArgs(
    public val basicAuthCredentials: Output? = null,
    public val buildSpec: Output? = null,
    public val enableAutoBuild: Output? = null,
    public val enableBasicAuth: Output? = null,
    public val enablePerformanceMode: Output? = null,
    public val enablePullRequestPreview: Output? = null,
    public val environmentVariables: Output>? = null,
    public val framework: Output? = null,
    public val pullRequestEnvironmentName: Output? = null,
    public val stage: Output? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.aws.amplify.inputs.AppAutoBranchCreationConfigArgs =
        com.pulumi.aws.amplify.inputs.AppAutoBranchCreationConfigArgs.builder()
            .basicAuthCredentials(basicAuthCredentials?.applyValue({ args0 -> args0 }))
            .buildSpec(buildSpec?.applyValue({ args0 -> args0 }))
            .enableAutoBuild(enableAutoBuild?.applyValue({ args0 -> args0 }))
            .enableBasicAuth(enableBasicAuth?.applyValue({ args0 -> args0 }))
            .enablePerformanceMode(enablePerformanceMode?.applyValue({ args0 -> args0 }))
            .enablePullRequestPreview(enablePullRequestPreview?.applyValue({ args0 -> args0 }))
            .environmentVariables(
                environmentVariables?.applyValue({ args0 ->
                    args0.map({ args0 ->
                        args0.key.to(args0.value)
                    }).toMap()
                }),
            )
            .framework(framework?.applyValue({ args0 -> args0 }))
            .pullRequestEnvironmentName(pullRequestEnvironmentName?.applyValue({ args0 -> args0 }))
            .stage(stage?.applyValue({ args0 -> args0 })).build()
}

/**
 * Builder for [AppAutoBranchCreationConfigArgs].
 */
@PulumiTagMarker
public class AppAutoBranchCreationConfigArgsBuilder internal constructor() {
    private var basicAuthCredentials: Output? = null

    private var buildSpec: Output? = null

    private var enableAutoBuild: Output? = null

    private var enableBasicAuth: Output? = null

    private var enablePerformanceMode: Output? = null

    private var enablePullRequestPreview: Output? = null

    private var environmentVariables: Output>? = null

    private var framework: Output? = null

    private var pullRequestEnvironmentName: Output? = null

    private var stage: Output? = null

    /**
     * @param value Basic authorization credentials for the autocreated branch.
     */
    @JvmName("myffftjsrpcyajsr")
    public suspend fun basicAuthCredentials(`value`: Output) {
        this.basicAuthCredentials = value
    }

    /**
     * @param value Build specification (build spec) for the autocreated branch.
     */
    @JvmName("ypwabfogujmrvvgi")
    public suspend fun buildSpec(`value`: Output) {
        this.buildSpec = value
    }

    /**
     * @param value Enables auto building for the autocreated branch.
     */
    @JvmName("doftspfkujgcsijs")
    public suspend fun enableAutoBuild(`value`: Output) {
        this.enableAutoBuild = value
    }

    /**
     * @param value Enables basic authorization for the autocreated branch.
     */
    @JvmName("cnlynqtcxbtfgnhl")
    public suspend fun enableBasicAuth(`value`: Output) {
        this.enableBasicAuth = value
    }

    /**
     * @param value Enables performance mode for the branch.
     */
    @JvmName("djpdsbonmouxsegc")
    public suspend fun enablePerformanceMode(`value`: Output) {
        this.enablePerformanceMode = value
    }

    /**
     * @param value Enables pull request previews for the autocreated branch.
     */
    @JvmName("gxhchfwnefjwytrl")
    public suspend fun enablePullRequestPreview(`value`: Output) {
        this.enablePullRequestPreview = value
    }

    /**
     * @param value Environment variables for the autocreated branch.
     */
    @JvmName("xmjdbwycmkpbqisb")
    public suspend fun environmentVariables(`value`: Output>) {
        this.environmentVariables = value
    }

    /**
     * @param value Framework for the autocreated branch.
     */
    @JvmName("lmlihkyerbwaxotn")
    public suspend fun framework(`value`: Output) {
        this.framework = value
    }

    /**
     * @param value Amplify environment name for the pull request.
     */
    @JvmName("dxrefwbsogbkkmvg")
    public suspend fun pullRequestEnvironmentName(`value`: Output) {
        this.pullRequestEnvironmentName = value
    }

    /**
     * @param value Describes the current stage for the autocreated branch. Valid values: `PRODUCTION`, `BETA`, `DEVELOPMENT`, `EXPERIMENTAL`, `PULL_REQUEST`.
     */
    @JvmName("cwdwmxelqlicukao")
    public suspend fun stage(`value`: Output) {
        this.stage = value
    }

    /**
     * @param value Basic authorization credentials for the autocreated branch.
     */
    @JvmName("pnpdmoxgmhpuyxwp")
    public suspend fun basicAuthCredentials(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.basicAuthCredentials = mapped
    }

    /**
     * @param value Build specification (build spec) for the autocreated branch.
     */
    @JvmName("gkdugpmhxegenvku")
    public suspend fun buildSpec(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.buildSpec = mapped
    }

    /**
     * @param value Enables auto building for the autocreated branch.
     */
    @JvmName("qvlfsgjfgxpwriah")
    public suspend fun enableAutoBuild(`value`: Boolean?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.enableAutoBuild = mapped
    }

    /**
     * @param value Enables basic authorization for the autocreated branch.
     */
    @JvmName("kuvrvtbgsvvoygpd")
    public suspend fun enableBasicAuth(`value`: Boolean?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.enableBasicAuth = mapped
    }

    /**
     * @param value Enables performance mode for the branch.
     */
    @JvmName("adruihpqnprjosno")
    public suspend fun enablePerformanceMode(`value`: Boolean?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.enablePerformanceMode = mapped
    }

    /**
     * @param value Enables pull request previews for the autocreated branch.
     */
    @JvmName("ykldsbnljapqtsgb")
    public suspend fun enablePullRequestPreview(`value`: Boolean?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.enablePullRequestPreview = mapped
    }

    /**
     * @param value Environment variables for the autocreated branch.
     */
    @JvmName("qkuhbaekabqvowcy")
    public suspend fun environmentVariables(`value`: Map?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.environmentVariables = mapped
    }

    /**
     * @param values Environment variables for the autocreated branch.
     */
    @JvmName("aeqvhfhjbaawcqgv")
    public fun environmentVariables(vararg values: Pair) {
        val toBeMapped = values.toMap()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.environmentVariables = mapped
    }

    /**
     * @param value Framework for the autocreated branch.
     */
    @JvmName("klxfkoslflfthtrt")
    public suspend fun framework(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.framework = mapped
    }

    /**
     * @param value Amplify environment name for the pull request.
     */
    @JvmName("rocqadbwcfilxprp")
    public suspend fun pullRequestEnvironmentName(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.pullRequestEnvironmentName = mapped
    }

    /**
     * @param value Describes the current stage for the autocreated branch. Valid values: `PRODUCTION`, `BETA`, `DEVELOPMENT`, `EXPERIMENTAL`, `PULL_REQUEST`.
     */
    @JvmName("masxxfmcjcptclwk")
    public suspend fun stage(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.stage = mapped
    }

    internal fun build(): AppAutoBranchCreationConfigArgs = AppAutoBranchCreationConfigArgs(
        basicAuthCredentials = basicAuthCredentials,
        buildSpec = buildSpec,
        enableAutoBuild = enableAutoBuild,
        enableBasicAuth = enableBasicAuth,
        enablePerformanceMode = enablePerformanceMode,
        enablePullRequestPreview = enablePullRequestPreview,
        environmentVariables = environmentVariables,
        framework = framework,
        pullRequestEnvironmentName = pullRequestEnvironmentName,
        stage = stage,
    )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy