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

com.pulumi.awsnative.route53recoverycontrol.kotlin.outputs.SafetyRuleRuleConfig.kt Maven / Gradle / Ivy

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

package com.pulumi.awsnative.route53recoverycontrol.kotlin.outputs

import com.pulumi.awsnative.route53recoverycontrol.kotlin.enums.SafetyRuleRuleType
import kotlin.Boolean
import kotlin.Int
import kotlin.Suppress

/**
 * The rule configuration for an assertion rule or gating rule. This is the criteria that you set for specific assertion controls (routing controls) or gating controls. This configuration specifies how many controls must be enabled after a transaction completes.
 * @property inverted Logical negation of the rule. If the rule would usually evaluate true, it's evaluated as false, and vice versa.
 * @property threshold The value of N, when you specify an ATLEAST rule type. That is, Threshold is the number of controls that must be set when you specify an ATLEAST type.
 * @property type A rule can be one of the following: `ATLEAST` , `AND` , or `OR` .
 */
public data class SafetyRuleRuleConfig(
    public val inverted: Boolean,
    public val threshold: Int,
    public val type: SafetyRuleRuleType,
) {
    public companion object {
        public fun toKotlin(javaType: com.pulumi.awsnative.route53recoverycontrol.outputs.SafetyRuleRuleConfig): SafetyRuleRuleConfig = SafetyRuleRuleConfig(
            inverted = javaType.inverted(),
            threshold = javaType.threshold(),
            type = javaType.type().let({ args0 ->
                com.pulumi.awsnative.route53recoverycontrol.kotlin.enums.SafetyRuleRuleType.Companion.toKotlin(args0)
            }),
        )
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy