--- # generated by https://github.com/hashicorp/terraform-plugin-docs page_title: "awscc_route53recoverycontrol_safety_rule Data Source - terraform-provider-awscc" subcategory: "" description: |- Data Source schema for AWS::Route53RecoveryControl::SafetyRule --- # awscc_route53recoverycontrol_safety_rule (Data Source) Data Source schema for AWS::Route53RecoveryControl::SafetyRule ## Schema ### Required - `id` (String) Uniquely identifies the resource. ### Read-Only - `assertion_rule` (Attributes) An assertion rule enforces that, when a routing control state is changed, that the criteria set by the rule configuration is met. Otherwise, the change to the routing control is not accepted. (see [below for nested schema](#nestedatt--assertion_rule)) - `control_panel_arn` (String) The Amazon Resource Name (ARN) of the control panel. - `gating_rule` (Attributes) A gating rule verifies that a set of gating controls evaluates as true, based on a rule configuration that you specify. If the gating rule evaluates to true, Amazon Route 53 Application Recovery Controller allows a set of routing control state changes to run and complete against the set of target controls. (see [below for nested schema](#nestedatt--gating_rule)) - `name` (String) The name for the safety rule. - `rule_config` (Attributes) The rule configuration for an assertion rule or gating rule. This is the criteria that you set for specific assertion controls (routing controls) or gating controls. This configuration specifies how many controls must be enabled after a transaction completes. (see [below for nested schema](#nestedatt--rule_config)) - `safety_rule_arn` (String) The Amazon Resource Name (ARN) of the safety rule. - `status` (String) The deployment status of the routing control. Status can be one of the following: PENDING, DEPLOYED, PENDING_DELETION. - `tags` (Attributes List) A collection of tags associated with a resource (see [below for nested schema](#nestedatt--tags)) ### Nested Schema for `assertion_rule` Read-Only: - `asserted_controls` (List of String) The routing controls that are part of transactions that are evaluated to determine if a request to change a routing control state is allowed. For example, you might include three routing controls, one for each of three AWS Regions. - `wait_period_ms` (Number) An evaluation period, in milliseconds (ms), during which any request against the target routing controls will fail. This helps prevent "flapping" of state. The wait period is 5000 ms by default, but you can choose a custom value. ### Nested Schema for `gating_rule` Read-Only: - `gating_controls` (List of String) The gating controls for the gating rule. That is, routing controls that are evaluated by the rule configuration that you specify. - `target_controls` (List of String) Routing controls that can only be set or unset if the specified RuleConfig evaluates to true for the specified GatingControls. For example, say you have three gating controls, one for each of three AWS Regions. Now you specify AtLeast 2 as your RuleConfig. With these settings, you can only change (set or unset) the routing controls that you have specified as TargetControls if that rule evaluates to true. In other words, your ability to change the routing controls that you have specified as TargetControls is gated by the rule that you set for the routing controls in GatingControls. - `wait_period_ms` (Number) An evaluation period, in milliseconds (ms), during which any request against the target routing controls will fail. This helps prevent "flapping" of state. The wait period is 5000 ms by default, but you can choose a custom value. ### Nested Schema for `rule_config` Read-Only: - `inverted` (Boolean) Logical negation of the rule. If the rule would usually evaluate true, it's evaluated as false, and vice versa. - `threshold` (Number) The value of N, when you specify an ATLEAST rule type. That is, Threshold is the number of controls that must be set when you specify an ATLEAST type. - `type` (String) A rule can be one of the following: ATLEAST, AND, or OR. ### Nested Schema for `tags` Read-Only: - `key` (String) - `value` (String)