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

com.pulumi.aws.cloudformation.kotlin.outputs.StackInstancesOperationPreferences.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: 6.57.0.0
Show newest version
@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.aws.cloudformation.kotlin.outputs

import kotlin.Int
import kotlin.String
import kotlin.Suppress
import kotlin.collections.List

/**
 *
 * @property concurrencyMode 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 CloudFormation stops the operation in that region.
 * @property failureTolerancePercentage Percentage of accounts, per region, for which this stack operation can fail before 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 stack sets 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 where you want to perform the stack operation.
 */
public data class StackInstancesOperationPreferences(
    public val concurrencyMode: String? = null,
    public val failureToleranceCount: Int? = null,
    public val failureTolerancePercentage: Int? = null,
    public val maxConcurrentCount: Int? = null,
    public val maxConcurrentPercentage: Int? = null,
    public val regionConcurrencyType: String? = null,
    public val regionOrders: List? = null,
) {
    public companion object {
        public fun toKotlin(javaType: com.pulumi.aws.cloudformation.outputs.StackInstancesOperationPreferences): StackInstancesOperationPreferences = StackInstancesOperationPreferences(
            concurrencyMode = javaType.concurrencyMode().map({ args0 -> args0 }).orElse(null),
            failureToleranceCount = javaType.failureToleranceCount().map({ args0 -> args0 }).orElse(null),
            failureTolerancePercentage = javaType.failureTolerancePercentage().map({ args0 ->
                args0
            }).orElse(null),
            maxConcurrentCount = javaType.maxConcurrentCount().map({ args0 -> args0 }).orElse(null),
            maxConcurrentPercentage = javaType.maxConcurrentPercentage().map({ args0 -> args0 }).orElse(null),
            regionConcurrencyType = javaType.regionConcurrencyType().map({ args0 -> args0 }).orElse(null),
            regionOrders = javaType.regionOrders().map({ args0 -> args0 }),
        )
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy