Safety Rule
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
Routing controls that are part of transactions that are evaluated to determine if a request to change a routing control state is allowed.
ARN of the control panel in which this safety rule will reside.
Gating controls for the new gating rule. That is, routing controls that are evaluated by the rule configuration that you specify.
Configuration block for safety rule criteria. See below.
Routing controls that can only be set or unset if the specified rule_config
evaluates to true for the specified gating_controls
.
Evaluation period, in milliseconds (ms), during which any request against the target routing controls will fail. The following arguments are optional: