{
"$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-event-schema.json",
"title": "TransitionEvent",
"description": "Specifies the actions performed and the next state entered when a condition evaluates to TRUE.",
"type": "object",
"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 nextState 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."
}
]
}
},
"required": [
"eventName",
"condition",
"nextState"
]
}