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

com.pulumi.aws.cloudformation.kotlin.inputs.StackSetInstanceOperationPreferencesArgs.kt Maven / Gradle / Ivy

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

package com.pulumi.aws.cloudformation.kotlin.inputs

import com.pulumi.aws.cloudformation.inputs.StackSetInstanceOperationPreferencesArgs.builder
import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiTagMarker
import kotlin.Int
import kotlin.String
import kotlin.Suppress
import kotlin.collections.List
import kotlin.jvm.JvmName

/**
 *
 * @property concurrencyMode Specifies how the concurrency level behaves during the operation execution. Valid values are `STRICT_FAILURE_TOLERANCE` and `SOFT_FAILURE_TOLERANCE`.
 * @property failureToleranceCount Number of accounts, per Region, for which this operation can fail before AWS CloudFormation stops the operation in that Region.
 * @property failureTolerancePercentage Percentage of accounts, per Region, for which this stack operation can fail before AWS CloudFormation stops the operation in that Region.
 * @property maxConcurrentCount Maximum number of accounts in which to perform this operation at one time.
 * @property maxConcurrentPercentage Maximum percentage of accounts in which to perform this operation at one time.
 * @property regionConcurrencyType Concurrency type of deploying StackSets operations in Regions, could be in parallel or one Region at a time. Valid values are `SEQUENTIAL` and `PARALLEL`.
 * @property regionOrders Order of the Regions in where you want to perform the stack operation.
 */
public data class StackSetInstanceOperationPreferencesArgs(
    public val concurrencyMode: Output? = null,
    public val failureToleranceCount: Output? = null,
    public val failureTolerancePercentage: Output? = null,
    public val maxConcurrentCount: Output? = null,
    public val maxConcurrentPercentage: Output? = null,
    public val regionConcurrencyType: Output? = null,
    public val regionOrders: Output>? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.aws.cloudformation.inputs.StackSetInstanceOperationPreferencesArgs =
        com.pulumi.aws.cloudformation.inputs.StackSetInstanceOperationPreferencesArgs.builder()
            .concurrencyMode(concurrencyMode?.applyValue({ args0 -> args0 }))
            .failureToleranceCount(failureToleranceCount?.applyValue({ args0 -> args0 }))
            .failureTolerancePercentage(failureTolerancePercentage?.applyValue({ args0 -> args0 }))
            .maxConcurrentCount(maxConcurrentCount?.applyValue({ args0 -> args0 }))
            .maxConcurrentPercentage(maxConcurrentPercentage?.applyValue({ args0 -> args0 }))
            .regionConcurrencyType(regionConcurrencyType?.applyValue({ args0 -> args0 }))
            .regionOrders(regionOrders?.applyValue({ args0 -> args0.map({ args0 -> args0 }) })).build()
}

/**
 * Builder for [StackSetInstanceOperationPreferencesArgs].
 */
@PulumiTagMarker
public class StackSetInstanceOperationPreferencesArgsBuilder internal constructor() {
    private var concurrencyMode: Output? = null

    private var failureToleranceCount: Output? = null

    private var failureTolerancePercentage: Output? = null

    private var maxConcurrentCount: Output? = null

    private var maxConcurrentPercentage: Output? = null

    private var regionConcurrencyType: Output? = null

    private var regionOrders: Output>? = null

    /**
     * @param value Specifies how the concurrency level behaves during the operation execution. Valid values are `STRICT_FAILURE_TOLERANCE` and `SOFT_FAILURE_TOLERANCE`.
     */
    @JvmName("fkaeqxcostwgrqym")
    public suspend fun concurrencyMode(`value`: Output) {
        this.concurrencyMode = value
    }

    /**
     * @param value Number of accounts, per Region, for which this operation can fail before AWS CloudFormation stops the operation in that Region.
     */
    @JvmName("emgomegdlwmjnxac")
    public suspend fun failureToleranceCount(`value`: Output) {
        this.failureToleranceCount = value
    }

    /**
     * @param value Percentage of accounts, per Region, for which this stack operation can fail before AWS CloudFormation stops the operation in that Region.
     */
    @JvmName("mkvjmeejcaqshuow")
    public suspend fun failureTolerancePercentage(`value`: Output) {
        this.failureTolerancePercentage = value
    }

    /**
     * @param value Maximum number of accounts in which to perform this operation at one time.
     */
    @JvmName("umxklbxfprfmfign")
    public suspend fun maxConcurrentCount(`value`: Output) {
        this.maxConcurrentCount = value
    }

    /**
     * @param value Maximum percentage of accounts in which to perform this operation at one time.
     */
    @JvmName("sesqqtdqyauiooeq")
    public suspend fun maxConcurrentPercentage(`value`: Output) {
        this.maxConcurrentPercentage = value
    }

    /**
     * @param value Concurrency type of deploying StackSets operations in Regions, could be in parallel or one Region at a time. Valid values are `SEQUENTIAL` and `PARALLEL`.
     */
    @JvmName("rgknplwpqoucbiwk")
    public suspend fun regionConcurrencyType(`value`: Output) {
        this.regionConcurrencyType = value
    }

    /**
     * @param value Order of the Regions in where you want to perform the stack operation.
     */
    @JvmName("tramlxlcxyvhmtpo")
    public suspend fun regionOrders(`value`: Output>) {
        this.regionOrders = value
    }

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

    /**
     * @param values Order of the Regions in where you want to perform the stack operation.
     */
    @JvmName("scpjtcskibbnmtdt")
    public suspend fun regionOrders(values: List>) {
        this.regionOrders = Output.all(values)
    }

    /**
     * @param value Specifies how the concurrency level behaves during the operation execution. Valid values are `STRICT_FAILURE_TOLERANCE` and `SOFT_FAILURE_TOLERANCE`.
     */
    @JvmName("ikcenxmauuxmejsl")
    public suspend fun concurrencyMode(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.concurrencyMode = mapped
    }

    /**
     * @param value Number of accounts, per Region, for which this operation can fail before AWS CloudFormation stops the operation in that Region.
     */
    @JvmName("iyvnqviuxnunehrw")
    public suspend fun failureToleranceCount(`value`: Int?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.failureToleranceCount = mapped
    }

    /**
     * @param value Percentage of accounts, per Region, for which this stack operation can fail before AWS CloudFormation stops the operation in that Region.
     */
    @JvmName("ihqihefwtsbrrtwg")
    public suspend fun failureTolerancePercentage(`value`: Int?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.failureTolerancePercentage = mapped
    }

    /**
     * @param value Maximum number of accounts in which to perform this operation at one time.
     */
    @JvmName("amrdisccxqnyurvh")
    public suspend fun maxConcurrentCount(`value`: Int?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.maxConcurrentCount = mapped
    }

    /**
     * @param value Maximum percentage of accounts in which to perform this operation at one time.
     */
    @JvmName("chmidunuafieyqdv")
    public suspend fun maxConcurrentPercentage(`value`: Int?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.maxConcurrentPercentage = mapped
    }

    /**
     * @param value Concurrency type of deploying StackSets operations in Regions, could be in parallel or one Region at a time. Valid values are `SEQUENTIAL` and `PARALLEL`.
     */
    @JvmName("wdbfctxqtmbmbtph")
    public suspend fun regionConcurrencyType(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.regionConcurrencyType = mapped
    }

    /**
     * @param value Order of the Regions in where you want to perform the stack operation.
     */
    @JvmName("agsgjesymssqtdtd")
    public suspend fun regionOrders(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.regionOrders = mapped
    }

    /**
     * @param values Order of the Regions in where you want to perform the stack operation.
     */
    @JvmName("rnggqddaauiuwnar")
    public suspend fun regionOrders(vararg values: String) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.regionOrders = mapped
    }

    internal fun build(): StackSetInstanceOperationPreferencesArgs =
        StackSetInstanceOperationPreferencesArgs(
            concurrencyMode = concurrencyMode,
            failureToleranceCount = failureToleranceCount,
            failureTolerancePercentage = failureTolerancePercentage,
            maxConcurrentCount = maxConcurrentCount,
            maxConcurrentPercentage = maxConcurrentPercentage,
            regionConcurrencyType = regionConcurrencyType,
            regionOrders = regionOrders,
        )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy