SafetyRule

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

Properties

Link copied to clipboard
val arn: Output<String>

ARN of the safety rule.

Link copied to clipboard

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>

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

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

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 id: Output<String>
Link copied to clipboard
val name: Output<String>

Name describing the safety rule.

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard

Configuration block for safety rule criteria. See below.

Link copied to clipboard
val status: Output<String>

Status of the safety rule. PENDING when it is being created/updated, PENDING_DELETION when it is being deleted, and DEPLOYED otherwise.

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

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 urn: Output<String>
Link copied to clipboard
val waitPeriodMs: Output<Int>

Evaluation period, in milliseconds (ms), during which any request against the target routing controls will fail.