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

com.pulumi.awsnative.cloudformation.kotlin.inputs.StackSetAutoDeploymentArgs.kt Maven / Gradle / Ivy

Go to download

Build cloud applications and infrastructure by combining the safety and reliability of infrastructure as code with the power of the Kotlin programming language.

There is a newer version: 1.24.0.0
Show newest version
@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.awsnative.cloudformation.kotlin.inputs

import com.pulumi.awsnative.cloudformation.inputs.StackSetAutoDeploymentArgs.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.Suppress
import kotlin.jvm.JvmName

/**
 *
 * @property enabled If set to true, StackSets automatically deploys additional stack instances to AWS Organizations accounts that are added to a target organization or organizational unit (OU) in the specified Regions. If an account is removed from a target organization or OU, StackSets deletes stack instances from the account in the specified Regions.
 * @property retainStacksOnAccountRemoval If set to true, stack resources are retained when an account is removed from a target organization or OU. If set to false, stack resources are deleted. Specify only if Enabled is set to True.
 */
public data class StackSetAutoDeploymentArgs(
    public val enabled: Output? = null,
    public val retainStacksOnAccountRemoval: Output? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.awsnative.cloudformation.inputs.StackSetAutoDeploymentArgs =
        com.pulumi.awsnative.cloudformation.inputs.StackSetAutoDeploymentArgs.builder()
            .enabled(enabled?.applyValue({ args0 -> args0 }))
            .retainStacksOnAccountRemoval(retainStacksOnAccountRemoval?.applyValue({ args0 -> args0 })).build()
}

/**
 * Builder for [StackSetAutoDeploymentArgs].
 */
@PulumiTagMarker
public class StackSetAutoDeploymentArgsBuilder internal constructor() {
    private var enabled: Output? = null

    private var retainStacksOnAccountRemoval: Output? = null

    /**
     * @param value If set to true, StackSets automatically deploys additional stack instances to AWS Organizations accounts that are added to a target organization or organizational unit (OU) in the specified Regions. If an account is removed from a target organization or OU, StackSets deletes stack instances from the account in the specified Regions.
     */
    @JvmName("ofqjmkrofvfyawqb")
    public suspend fun enabled(`value`: Output) {
        this.enabled = value
    }

    /**
     * @param value If set to true, stack resources are retained when an account is removed from a target organization or OU. If set to false, stack resources are deleted. Specify only if Enabled is set to True.
     */
    @JvmName("mnmutxuqqwhxuihr")
    public suspend fun retainStacksOnAccountRemoval(`value`: Output) {
        this.retainStacksOnAccountRemoval = value
    }

    /**
     * @param value If set to true, StackSets automatically deploys additional stack instances to AWS Organizations accounts that are added to a target organization or organizational unit (OU) in the specified Regions. If an account is removed from a target organization or OU, StackSets deletes stack instances from the account in the specified Regions.
     */
    @JvmName("uddxrhsjtcclytee")
    public suspend fun enabled(`value`: Boolean?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.enabled = mapped
    }

    /**
     * @param value If set to true, stack resources are retained when an account is removed from a target organization or OU. If set to false, stack resources are deleted. Specify only if Enabled is set to True.
     */
    @JvmName("binjubtfiaxtywol")
    public suspend fun retainStacksOnAccountRemoval(`value`: Boolean?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.retainStacksOnAccountRemoval = mapped
    }

    internal fun build(): StackSetAutoDeploymentArgs = StackSetAutoDeploymentArgs(
        enabled = enabled,
        retainStacksOnAccountRemoval = retainStacksOnAccountRemoval,
    )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy