Amazon IoT Events · Schema

TransitionEvents

TransitionEvents schema

Event DetectionIoTState MachineAutomation
View JSON Schema on GitHub

JSON Schema

iot-events-transition-events-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-transition-events-schema.json",
  "title": "TransitionEvents",
  "description": "TransitionEvents schema",
  "type": "array",
  "items": {
    "type": "object",
    "required": [
      "eventName",
      "condition",
      "nextState"
    ],
    "properties": {
      "eventName": {
        "allOf": [
          {
            "$ref": "#/components/schemas/EventName"
          },
          {
            "description": "The name of the transition event."
          }
        ]
      },
      "condition": {
        "allOf": [
          {
            "$ref": "#/components/schemas/Condition"
          },
          {
            "description": "Required. A Boolean expression that when TRUE causes the actions to be performed and the <code>nextState</code> to be entered."
          }
        ]
      },
      "actions": {
        "allOf": [
          {
            "$ref": "#/components/schemas/Actions"
          },
          {
            "description": "The actions to be performed."
          }
        ]
      },
      "nextState": {
        "allOf": [
          {
            "$ref": "#/components/schemas/StateName"
          },
          {
            "description": "The next state to enter."
          }
        ]
      }
    },
    "description": "Specifies the actions performed and the next state entered when a <code>condition</code> evaluates to TRUE."
  }
}