

# SimpleRule
<a name="API_SimpleRule"></a>

A rule that compares an input property value to a threshold value with a comparison operator.

## Contents
<a name="API_SimpleRule_Contents"></a>

 ** comparisonOperator **   <a name="iotevents-Type-SimpleRule-comparisonOperator"></a>
The comparison operator.  
Type: String  
Valid Values: `GREATER | GREATER_OR_EQUAL | LESS | LESS_OR_EQUAL | EQUAL | NOT_EQUAL`   
Required: Yes

 ** inputProperty **   <a name="iotevents-Type-SimpleRule-inputProperty"></a>
The value on the left side of the comparison operator. You can specify an AWS IoT Events input attribute as an input property.  
Type: String  
Length Constraints: Minimum length of 1. Maximum length of 512.  
Required: Yes

 ** threshold **   <a name="iotevents-Type-SimpleRule-threshold"></a>
The value on the right side of the comparison operator. You can enter a number or specify an AWS IoT Events input attribute.  
Type: String  
Length Constraints: Minimum length of 1. Maximum length of 512.  
Required: Yes

## See Also
<a name="API_SimpleRule_SeeAlso"></a>

For more information about using this API in one of the language-specific AWS SDKs, see the following:
+  [AWS SDK for C\$1\$1](https://docs.aws.amazon.com/goto/SdkForCpp/iotevents-2018-07-27/SimpleRule) 
+  [AWS SDK for Java V2](https://docs.aws.amazon.com/goto/SdkForJavaV2/iotevents-2018-07-27/SimpleRule) 
+  [AWS SDK for Ruby V3](https://docs.aws.amazon.com/goto/SdkForRubyV3/iotevents-2018-07-27/SimpleRule) 