SafetyRuleArgs

data class SafetyRuleArgs(val assertedControls: Output<List<String>>? = null, val controlPanelArn: Output<String>? = null, val gatingControls: Output<List<String>>? = null, val name: Output<String>? = null, val ruleConfig: Output<SafetyRuleRuleConfigArgs>? = null, val targetControls: Output<List<String>>? = null, val waitPeriodMs: Output<Int>? = null) : ConvertibleToJava<SafetyRuleArgs>

Provides an AWS Route 53 Recovery Control Config Safety Rule

Example Usage

package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.aws.route53recoverycontrol.SafetyRule;
import com.pulumi.aws.route53recoverycontrol.SafetyRuleArgs;
import com.pulumi.aws.route53recoverycontrol.inputs.SafetyRuleRuleConfigArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
public static void main(String[] args) {
Pulumi.run(App::stack);
}
public static void stack(Context ctx) {
var example = new SafetyRule("example", SafetyRuleArgs.builder()
.assertedControls(aws_route53recoverycontrolconfig_routing_control.example().arn())
.controlPanelArn("arn:aws:route53-recovery-control::313517334327:controlpanel/abd5fbfc052d4844a082dbf400f61da8")
.waitPeriodMs(5000)
.ruleConfig(SafetyRuleRuleConfigArgs.builder()
.inverted(false)
.threshold(1)
.type("ATLEAST")
.build())
.build());
}
}

Import

Route53 Recovery Control Config Safety Rule can be imported via the safety rule ARN, e.g.,

$ pulumi import aws:route53recoverycontrol/safetyRule:SafetyRule myrule arn:aws:route53-recovery-control::313517334327:controlpanel/1bfba17df8684f5dab0467b71424f7e8/safetyrule/3bacc77003364c0f

Constructors

Link copied to clipboard
constructor(assertedControls: Output<List<String>>? = null, controlPanelArn: Output<String>? = null, gatingControls: Output<List<String>>? = null, name: Output<String>? = null, ruleConfig: Output<SafetyRuleRuleConfigArgs>? = null, targetControls: Output<List<String>>? = null, waitPeriodMs: Output<Int>? = null)

Properties

Link copied to clipboard
val assertedControls: Output<List<String>>? = null

Routing controls that are part of transactions that are evaluated to determine if a request to change a routing control state is allowed.

Link copied to clipboard
val controlPanelArn: Output<String>? = null

ARN of the control panel in which this safety rule will reside.

Link copied to clipboard
val gatingControls: Output<List<String>>? = null

Gating controls for the new gating rule. That is, routing controls that are evaluated by the rule configuration that you specify.

Link copied to clipboard
val name: Output<String>? = null

Name describing the safety rule.

Link copied to clipboard

Configuration block for safety rule criteria. See below.

Link copied to clipboard
val targetControls: Output<List<String>>? = null

Routing controls that can only be set or unset if the specified rule_config evaluates to true for the specified gating_controls.

Link copied to clipboard
val waitPeriodMs: Output<Int>? = null

Evaluation period, in milliseconds (ms), during which any request against the target routing controls will fail. The following arguments are optional:

Functions

Link copied to clipboard
open override fun toJava(): SafetyRuleArgs