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

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

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

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

import com.pulumi.awsnative.route53recoverycontrol.kotlin.enums.SafetyRuleStatus
import kotlin.String
import kotlin.Suppress

/**
 *
 * @property assertionRule An assertion rule enforces that, when you change a routing control state, that the criteria that you set in the rule configuration is met. Otherwise, the change to the routing control is not accepted. For example, the criteria might be that at least one routing control state is `On` after the transaction so that traffic continues to flow to at least one cell for the application. This ensures that you avoid a fail-open scenario.
 * @property controlPanelArn The Amazon Resource Name (ARN) of the control panel.
 * @property gatingRule A gating rule verifies that a gating routing control or set of gating routing controls, evaluates as true, based on a rule configuration that you specify, which allows a set of routing control state changes to complete.
 * For example, if you specify one gating routing control and you set the `Type` in the rule configuration to `OR` , that indicates that you must set the gating routing control to `On` for the rule to evaluate as true; that is, for the gating control switch to be On. When you do that, then you can update the routing control states for the target routing controls that you specify in the gating rule.
 * @property name The name of the assertion rule. The name must be unique within a control panel. You can use any non-white space character in the name except the following: & > < ' (single quote) " (double quote) ; (semicolon)
 * @property ruleConfig The criteria that you set for specific assertion controls (routing controls) that designate how many control states must be `ON` as the result of a transaction. For example, if you have three assertion controls, you might specify `ATLEAST 2` for your rule configuration. This means that at least two assertion controls must be `ON` , so that at least two AWS Regions have traffic flowing to them.
 * @property safetyRuleArn The Amazon Resource Name (ARN) of the safety rule.
 * @property status The deployment status of the routing control. Status can be one of the following: PENDING, DEPLOYED, PENDING_DELETION.
 */
public data class GetSafetyRuleResult(
    public val assertionRule: SafetyRuleAssertionRule? = null,
    public val controlPanelArn: String? = null,
    public val gatingRule: SafetyRuleGatingRule? = null,
    public val name: String? = null,
    public val ruleConfig: SafetyRuleRuleConfig? = null,
    public val safetyRuleArn: String? = null,
    public val status: SafetyRuleStatus? = null,
) {
    public companion object {
        public fun toKotlin(javaType: com.pulumi.awsnative.route53recoverycontrol.outputs.GetSafetyRuleResult): GetSafetyRuleResult = GetSafetyRuleResult(
            assertionRule = javaType.assertionRule().map({ args0 ->
                args0.let({ args0 ->
                    com.pulumi.awsnative.route53recoverycontrol.kotlin.outputs.SafetyRuleAssertionRule.Companion.toKotlin(args0)
                })
            }).orElse(null),
            controlPanelArn = javaType.controlPanelArn().map({ args0 -> args0 }).orElse(null),
            gatingRule = javaType.gatingRule().map({ args0 ->
                args0.let({ args0 ->
                    com.pulumi.awsnative.route53recoverycontrol.kotlin.outputs.SafetyRuleGatingRule.Companion.toKotlin(args0)
                })
            }).orElse(null),
            name = javaType.name().map({ args0 -> args0 }).orElse(null),
            ruleConfig = javaType.ruleConfig().map({ args0 ->
                args0.let({ args0 ->
                    com.pulumi.awsnative.route53recoverycontrol.kotlin.outputs.SafetyRuleRuleConfig.Companion.toKotlin(args0)
                })
            }).orElse(null),
            safetyRuleArn = javaType.safetyRuleArn().map({ args0 -> args0 }).orElse(null),
            status = javaType.status().map({ args0 ->
                args0.let({ args0 ->
                    com.pulumi.awsnative.route53recoverycontrol.kotlin.enums.SafetyRuleStatus.Companion.toKotlin(args0)
                })
            }).orElse(null),
        )
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy