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

com.pulumi.awsnative.route53recoverycontrol.kotlin.outputs.SafetyRuleAssertionRule.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.route53recoverycontrol.kotlin.outputs

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

/**
 * An assertion rule enforces that, when a routing control state is changed, that the criteria set by the rule configuration is met. Otherwise, the change to the routing control is not accepted.
 * @property assertedControls The routing controls that are part of transactions that are evaluated to determine if a request to change a routing control state is allowed. For example, you might include three routing controls, one for each of three AWS Regions.
 * @property waitPeriodMs An evaluation period, in milliseconds (ms), during which any request against the target routing controls will fail. This helps prevent "flapping" of state. The wait period is 5000 ms by default, but you can choose a custom value.
 */
public data class SafetyRuleAssertionRule(
    public val assertedControls: List,
    public val waitPeriodMs: Int,
) {
    public companion object {
        public fun toKotlin(javaType: com.pulumi.awsnative.route53recoverycontrol.outputs.SafetyRuleAssertionRule): SafetyRuleAssertionRule = SafetyRuleAssertionRule(
            assertedControls = javaType.assertedControls().map({ args0 -> args0 }),
            waitPeriodMs = javaType.waitPeriodMs(),
        )
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy