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

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

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

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

import com.pulumi.awsnative.cloudformation.inputs.StackSetDeploymentTargetsArgs.builder
import com.pulumi.awsnative.cloudformation.kotlin.enums.StackSetDeploymentTargetsAccountFilterType
import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiTagMarker
import kotlin.String
import kotlin.Suppress
import kotlin.collections.List
import kotlin.jvm.JvmName

/**
 *  The AWS OrganizationalUnitIds or Accounts for which to create stack instances in the specified Regions.
 * @property accountFilterType The filter type you want to apply on organizational units and accounts.
 * @property accounts AWS accounts that you want to create stack instances in the specified Region(s) for.
 * @property accountsUrl Returns the value of the AccountsUrl property.
 * @property organizationalUnitIds The organization root ID or organizational unit (OU) IDs to which StackSets deploys.
 */
public data class StackSetDeploymentTargetsArgs(
    public val accountFilterType: Output? = null,
    public val accounts: Output>? = null,
    public val accountsUrl: Output? = null,
    public val organizationalUnitIds: Output>? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.awsnative.cloudformation.inputs.StackSetDeploymentTargetsArgs =
        com.pulumi.awsnative.cloudformation.inputs.StackSetDeploymentTargetsArgs.builder()
            .accountFilterType(accountFilterType?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
            .accounts(accounts?.applyValue({ args0 -> args0.map({ args0 -> args0 }) }))
            .accountsUrl(accountsUrl?.applyValue({ args0 -> args0 }))
            .organizationalUnitIds(
                organizationalUnitIds?.applyValue({ args0 ->
                    args0.map({ args0 ->
                        args0
                    })
                }),
            ).build()
}

/**
 * Builder for [StackSetDeploymentTargetsArgs].
 */
@PulumiTagMarker
public class StackSetDeploymentTargetsArgsBuilder internal constructor() {
    private var accountFilterType: Output? = null

    private var accounts: Output>? = null

    private var accountsUrl: Output? = null

    private var organizationalUnitIds: Output>? = null

    /**
     * @param value The filter type you want to apply on organizational units and accounts.
     */
    @JvmName("afrjscopkowdvgow")
    public suspend fun accountFilterType(`value`: Output) {
        this.accountFilterType = value
    }

    /**
     * @param value AWS accounts that you want to create stack instances in the specified Region(s) for.
     */
    @JvmName("kvscteafvxmxhhxl")
    public suspend fun accounts(`value`: Output>) {
        this.accounts = value
    }

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

    /**
     * @param values AWS accounts that you want to create stack instances in the specified Region(s) for.
     */
    @JvmName("pitipyuuelyqjsjb")
    public suspend fun accounts(values: List>) {
        this.accounts = Output.all(values)
    }

    /**
     * @param value Returns the value of the AccountsUrl property.
     */
    @JvmName("hiuxnkvubdbckqne")
    public suspend fun accountsUrl(`value`: Output) {
        this.accountsUrl = value
    }

    /**
     * @param value The organization root ID or organizational unit (OU) IDs to which StackSets deploys.
     */
    @JvmName("tlainqypmsjfrjba")
    public suspend fun organizationalUnitIds(`value`: Output>) {
        this.organizationalUnitIds = value
    }

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

    /**
     * @param values The organization root ID or organizational unit (OU) IDs to which StackSets deploys.
     */
    @JvmName("mjtuwxxuxnryjoac")
    public suspend fun organizationalUnitIds(values: List>) {
        this.organizationalUnitIds = Output.all(values)
    }

    /**
     * @param value The filter type you want to apply on organizational units and accounts.
     */
    @JvmName("nifklfcdpdtlfwxy")
    public suspend fun accountFilterType(`value`: StackSetDeploymentTargetsAccountFilterType?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.accountFilterType = mapped
    }

    /**
     * @param value AWS accounts that you want to create stack instances in the specified Region(s) for.
     */
    @JvmName("nkkqygfrjxmmddwt")
    public suspend fun accounts(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.accounts = mapped
    }

    /**
     * @param values AWS accounts that you want to create stack instances in the specified Region(s) for.
     */
    @JvmName("jnlboyeyaddphhmg")
    public suspend fun accounts(vararg values: String) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.accounts = mapped
    }

    /**
     * @param value Returns the value of the AccountsUrl property.
     */
    @JvmName("mevgwnxvhcexfovw")
    public suspend fun accountsUrl(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.accountsUrl = mapped
    }

    /**
     * @param value The organization root ID or organizational unit (OU) IDs to which StackSets deploys.
     */
    @JvmName("upbwhdgvnyrfvhcc")
    public suspend fun organizationalUnitIds(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.organizationalUnitIds = mapped
    }

    /**
     * @param values The organization root ID or organizational unit (OU) IDs to which StackSets deploys.
     */
    @JvmName("yjncwlmrshevimxs")
    public suspend fun organizationalUnitIds(vararg values: String) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.organizationalUnitIds = mapped
    }

    internal fun build(): StackSetDeploymentTargetsArgs = StackSetDeploymentTargetsArgs(
        accountFilterType = accountFilterType,
        accounts = accounts,
        accountsUrl = accountsUrl,
        organizationalUnitIds = organizationalUnitIds,
    )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy