Amazon IoT Events · Schema

SimpleRule

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

Event DetectionIoTState MachineAutomation

Properties

Name Type Description
inputProperty object
comparisonOperator object
threshold object
View JSON Schema on GitHub

JSON Schema

iot-events-simple-rule-schema.json Raw ↑
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://raw.githubusercontent.com/api-evangelist/amazon-iot-events/refs/heads/main/json-schema/iot-events-simple-rule-schema.json",
  "title": "SimpleRule",
  "description": "A rule that compares an input property value to a threshold value with a comparison operator.",
  "type": "object",
  "properties": {
    "inputProperty": {
      "allOf": [
        {
          "$ref": "#/components/schemas/InputProperty"
        },
        {
          "description": "The value on the left side of the comparison operator. You can specify an AWS IoT Events input attribute as an input property."
        }
      ]
    },
    "comparisonOperator": {
      "allOf": [
        {
          "$ref": "#/components/schemas/ComparisonOperator"
        },
        {
          "description": "The comparison operator."
        }
      ]
    },
    "threshold": {
      "allOf": [
        {
          "$ref": "#/components/schemas/Threshold"
        },
        {
          "description": "The value on the right side of the comparison operator. You can enter a number or specify an AWS IoT Events input attribute."
        }
      ]
    }
  },
  "required": [
    "inputProperty",
    "comparisonOperator",
    "threshold"
  ]
}