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

com.pulumi.awsnative.cloudformation.kotlin.inputs.StackSetStackInstancesArgs.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.StackSetStackInstancesArgs.builder
import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiNullFieldException
import com.pulumi.kotlin.PulumiTagMarker
import com.pulumi.kotlin.applySuspend
import kotlin.String
import kotlin.Suppress
import kotlin.Unit
import kotlin.collections.List
import kotlin.jvm.JvmName

/**
 * Stack instances in some specific accounts and Regions.
 * @property deploymentTargets The AWS `OrganizationalUnitIds` or `Accounts` for which to create stack instances in the specified Regions.
 * @property parameterOverrides A list of stack set parameters whose values you want to override in the selected stack instances.
 * @property regions The names of one or more Regions where you want to create stack instances using the specified AWS account(s).
 */
public data class StackSetStackInstancesArgs(
    public val deploymentTargets: Output,
    public val parameterOverrides: Output>? = null,
    public val regions: Output>,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.awsnative.cloudformation.inputs.StackSetStackInstancesArgs =
        com.pulumi.awsnative.cloudformation.inputs.StackSetStackInstancesArgs.builder()
            .deploymentTargets(deploymentTargets.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
            .parameterOverrides(
                parameterOverrides?.applyValue({ args0 ->
                    args0.map({ args0 ->
                        args0.let({ args0 -> args0.toJava() })
                    })
                }),
            )
            .regions(regions.applyValue({ args0 -> args0.map({ args0 -> args0 }) })).build()
}

/**
 * Builder for [StackSetStackInstancesArgs].
 */
@PulumiTagMarker
public class StackSetStackInstancesArgsBuilder internal constructor() {
    private var deploymentTargets: Output? = null

    private var parameterOverrides: Output>? = null

    private var regions: Output>? = null

    /**
     * @param value The AWS `OrganizationalUnitIds` or `Accounts` for which to create stack instances in the specified Regions.
     */
    @JvmName("qbrpeqsoyvttfyup")
    public suspend fun deploymentTargets(`value`: Output) {
        this.deploymentTargets = value
    }

    /**
     * @param value A list of stack set parameters whose values you want to override in the selected stack instances.
     */
    @JvmName("foharyxqwykckqgy")
    public suspend fun parameterOverrides(`value`: Output>) {
        this.parameterOverrides = value
    }

    @JvmName("ctasrntenmprqkmy")
    public suspend fun parameterOverrides(vararg values: Output) {
        this.parameterOverrides = Output.all(values.asList())
    }

    /**
     * @param values A list of stack set parameters whose values you want to override in the selected stack instances.
     */
    @JvmName("teuggikbiorlnwxa")
    public suspend fun parameterOverrides(values: List>) {
        this.parameterOverrides = Output.all(values)
    }

    /**
     * @param value The names of one or more Regions where you want to create stack instances using the specified AWS account(s).
     */
    @JvmName("ihkwocgelgkivetw")
    public suspend fun regions(`value`: Output>) {
        this.regions = value
    }

    @JvmName("pqxfuhkfykwcmvve")
    public suspend fun regions(vararg values: Output) {
        this.regions = Output.all(values.asList())
    }

    /**
     * @param values The names of one or more Regions where you want to create stack instances using the specified AWS account(s).
     */
    @JvmName("vdevwffmbyncovse")
    public suspend fun regions(values: List>) {
        this.regions = Output.all(values)
    }

    /**
     * @param value The AWS `OrganizationalUnitIds` or `Accounts` for which to create stack instances in the specified Regions.
     */
    @JvmName("nqgrqiandrqbxlcj")
    public suspend fun deploymentTargets(`value`: StackSetDeploymentTargetsArgs) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.deploymentTargets = mapped
    }

    /**
     * @param argument The AWS `OrganizationalUnitIds` or `Accounts` for which to create stack instances in the specified Regions.
     */
    @JvmName("xdopbeciljnwueuj")
    public suspend fun deploymentTargets(argument: suspend StackSetDeploymentTargetsArgsBuilder.() -> Unit) {
        val toBeMapped = StackSetDeploymentTargetsArgsBuilder().applySuspend { argument() }.build()
        val mapped = of(toBeMapped)
        this.deploymentTargets = mapped
    }

    /**
     * @param value A list of stack set parameters whose values you want to override in the selected stack instances.
     */
    @JvmName("piuimuqihycffehf")
    public suspend fun parameterOverrides(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.parameterOverrides = mapped
    }

    /**
     * @param argument A list of stack set parameters whose values you want to override in the selected stack instances.
     */
    @JvmName("polddereufgobomo")
    public suspend fun parameterOverrides(argument: List Unit>) {
        val toBeMapped = argument.toList().map {
            StackSetParameterArgsBuilder().applySuspend {
                it()
            }.build()
        }
        val mapped = of(toBeMapped)
        this.parameterOverrides = mapped
    }

    /**
     * @param argument A list of stack set parameters whose values you want to override in the selected stack instances.
     */
    @JvmName("yddompbbjsdcjabl")
    public suspend fun parameterOverrides(vararg argument: suspend StackSetParameterArgsBuilder.() -> Unit) {
        val toBeMapped = argument.toList().map {
            StackSetParameterArgsBuilder().applySuspend {
                it()
            }.build()
        }
        val mapped = of(toBeMapped)
        this.parameterOverrides = mapped
    }

    /**
     * @param argument A list of stack set parameters whose values you want to override in the selected stack instances.
     */
    @JvmName("akqgmsnojuxqxivi")
    public suspend fun parameterOverrides(argument: suspend StackSetParameterArgsBuilder.() -> Unit) {
        val toBeMapped = listOf(StackSetParameterArgsBuilder().applySuspend { argument() }.build())
        val mapped = of(toBeMapped)
        this.parameterOverrides = mapped
    }

    /**
     * @param values A list of stack set parameters whose values you want to override in the selected stack instances.
     */
    @JvmName("kvmjxoynuravgbcx")
    public suspend fun parameterOverrides(vararg values: StackSetParameterArgs) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.parameterOverrides = mapped
    }

    /**
     * @param value The names of one or more Regions where you want to create stack instances using the specified AWS account(s).
     */
    @JvmName("lwbvcumywfjabyxd")
    public suspend fun regions(`value`: List) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.regions = mapped
    }

    /**
     * @param values The names of one or more Regions where you want to create stack instances using the specified AWS account(s).
     */
    @JvmName("ikncasakgsqhusse")
    public suspend fun regions(vararg values: String) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.regions = mapped
    }

    internal fun build(): StackSetStackInstancesArgs = StackSetStackInstancesArgs(
        deploymentTargets = deploymentTargets ?: throw PulumiNullFieldException("deploymentTargets"),
        parameterOverrides = parameterOverrides,
        regions = regions ?: throw PulumiNullFieldException("regions"),
    )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy