Skip to main content

safety_rules

Creates, updates, deletes, gets or lists a safety_rules resource.

Overview

Namesafety_rules
TypeResource
Idaws.route53_recovery_control_config.safety_rules

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
assertion_ruleobjectThe assertion rule in the response.
gating_ruleobjectThe gating rule in the response.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
describe_safety_ruleselectsafety_rule_arn, regionReturns information about a safety rule.
list_safety_rulesselectcontrol_panel_arn, regionMaxResults, NextTokenList the safety rules (the assertion rules and gating rules) that you've defined for the routing controls in a control panel.
create_safety_ruleinsertregionCreates a safety rule in a control panel. Safety rules let you add safeguards around changing routing control states, and for enabling and disabling routing controls, to help prevent unexpected outcomes. There are two types of safety rules: assertion rules and gating rules. Assertion rule: An assertion rule enforces that, when you change a routing control state, that a certain criteria is met. 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. Gating rule: A gating rule lets you configure a gating routing control as an overall "on/off" switch for a group of routing controls. Or, you can configure more complex gating scenarios, for example by configuring multiple gating routing controls. For more information, see Safety rules in the Amazon Route 53 Application Recovery Controller Developer Guide.
update_safety_ruleupdateregionUpdate a safety rule (an assertion rule or gating rule). You can only update the name and the waiting period for a safety rule. To make other updates, delete the safety rule and create a new one.
delete_safety_ruledeletesafety_rule_arn, regionDeletes a safety rule. />

Parameters

Parameters can be passed in the WHERE clause of a query. Check the Methods section to see which parameters are required or optional for each operation.

NameDatatypeDescription
control_panel_arnstringThe Amazon Resource Name (ARN) of the control panel.
regionstringAWS region (default: us-east-1)
safety_rule_arnstringThe ARN of the safety rule.
MaxResultsintegerThe number of objects that you want to return with this call.
NextTokenstringThe token that identifies which batch of results you want to see.

SELECT examples

Returns information about a safety rule.

SELECT
assertion_rule,
gating_rule
FROM aws.route53_recovery_control_config.safety_rules
WHERE safety_rule_arn = '{{ safety_rule_arn }}' -- required
AND region = '{{ region }}' -- required
;

INSERT examples

Creates a safety rule in a control panel. Safety rules let you add safeguards around changing routing control states, and for enabling and disabling routing controls, to help prevent unexpected outcomes. There are two types of safety rules: assertion rules and gating rules. Assertion rule: An assertion rule enforces that, when you change a routing control state, that a certain criteria is met. 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. Gating rule: A gating rule lets you configure a gating routing control as an overall "on/off" switch for a group of routing controls. Or, you can configure more complex gating scenarios, for example by configuring multiple gating routing controls. For more information, see Safety rules in the Amazon Route 53 Application Recovery Controller Developer Guide.

INSERT INTO aws.route53_recovery_control_config.safety_rules (
AssertionRule,
ClientToken,
GatingRule,
Tags,
region
)
SELECT
'{{ AssertionRule }}',
'{{ ClientToken }}',
'{{ GatingRule }}',
'{{ Tags }}',
'{{ region }}'
RETURNING
assertion_rule,
gating_rule
;

UPDATE examples

Update a safety rule (an assertion rule or gating rule). You can only update the name and the waiting period for a safety rule. To make other updates, delete the safety rule and create a new one.

UPDATE aws.route53_recovery_control_config.safety_rules
SET
AssertionRuleUpdate = '{{ AssertionRuleUpdate }}',
GatingRuleUpdate = '{{ GatingRuleUpdate }}'
WHERE
region = '{{ region }}' --required
RETURNING
assertion_rule,
gating_rule;

DELETE examples

Deletes a safety rule. />

DELETE FROM aws.route53_recovery_control_config.safety_rules
WHERE safety_rule_arn = '{{ safety_rule_arn }}' --required
AND region = '{{ region }}' --required
;