

This is the new *Amazon CloudFormation Template Reference Guide*. Please update your bookmarks and links. For help getting started with CloudFormation, see the [Amazon CloudFormation User Guide](https://docs.amazonaws.cn/AWSCloudFormation/latest/UserGuide/Welcome.html).

# AWS::Route53RecoveryControl::SafetyRule RuleConfig
<a name="aws-properties-route53recoverycontrol-safetyrule-ruleconfig"></a>

The rule configuration for an assertion rule. That is, the criteria that you set for specific assertion controls (routing controls) that specify how many controls must be enabled after a transaction completes.

## Syntax
<a name="aws-properties-route53recoverycontrol-safetyrule-ruleconfig-syntax"></a>

To declare this entity in your Amazon CloudFormation template, use the following syntax:

### JSON
<a name="aws-properties-route53recoverycontrol-safetyrule-ruleconfig-syntax.json"></a>

```
{
  "[Inverted](#cfn-route53recoverycontrol-safetyrule-ruleconfig-inverted)" : Boolean,
  "[Threshold](#cfn-route53recoverycontrol-safetyrule-ruleconfig-threshold)" : Integer,
  "[Type](#cfn-route53recoverycontrol-safetyrule-ruleconfig-type)" : String
}
```

### YAML
<a name="aws-properties-route53recoverycontrol-safetyrule-ruleconfig-syntax.yaml"></a>

```
  [Inverted](#cfn-route53recoverycontrol-safetyrule-ruleconfig-inverted): Boolean
  [Threshold](#cfn-route53recoverycontrol-safetyrule-ruleconfig-threshold): Integer
  [Type](#cfn-route53recoverycontrol-safetyrule-ruleconfig-type): String
```

## Properties
<a name="aws-properties-route53recoverycontrol-safetyrule-ruleconfig-properties"></a>

`Inverted`  <a name="cfn-route53recoverycontrol-safetyrule-ruleconfig-inverted"></a>
Logical negation of the rule. If the rule would usually evaluate true, it's evaluated as false, and vice versa.  
*Required*: Yes  
*Type*: Boolean  
*Update requires*: [Some interruptions](https://docs.amazonaws.cn/AWSCloudFormation/latest/UserGuide/using-cfn-updating-stacks-update-behaviors.html#update-some-interrupt)

`Threshold`  <a name="cfn-route53recoverycontrol-safetyrule-ruleconfig-threshold"></a>
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.  
*Required*: Yes  
*Type*: Integer  
*Update requires*: [Some interruptions](https://docs.amazonaws.cn/AWSCloudFormation/latest/UserGuide/using-cfn-updating-stacks-update-behaviors.html#update-some-interrupt)

`Type`  <a name="cfn-route53recoverycontrol-safetyrule-ruleconfig-type"></a>
A rule can be one of the following: `ATLEAST`, `AND`, or `OR`.  
*Required*: Yes  
*Type*: String  
*Allowed values*: `AND | OR | ATLEAST`  
*Update requires*: [Some interruptions](https://docs.amazonaws.cn/AWSCloudFormation/latest/UserGuide/using-cfn-updating-stacks-update-behaviors.html#update-some-interrupt)