Amazon IoT Events · JSON Structure

Iot Events Simple Rule Structure

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

Type: object Properties: 3 Required: 3
Event DetectionIoTState MachineAutomation

SimpleRule is a JSON Structure definition published by Amazon IoT Events, describing 3 properties, of which 3 are required. It conforms to the https://json-structure.org/meta/core/v0/# meta-schema.

Properties

inputProperty comparisonOperator threshold

Meta-schema: https://json-structure.org/meta/core/v0/#

JSON Structure

Raw ↑
{
  "$schema": "https://json-structure.org/meta/core/v0/#",
  "$id": "https://raw.githubusercontent.com/api-evangelist/amazon-iot-events/refs/heads/main/json-structure/iot-events-simple-rule-structure.json",
  "name": "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"
  ]
}