A rule that compares an input property value to a threshold value with a comparison operator.
Type: objectProperties: 3Required: 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.
{
"$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"
]
}
Discovery needs no key. Ratings and market analysis are Pro.
Get an API key
Free tier, no form to fill in. Signing in shares your email address with us — we
store it to create your key and to recognise you if you sign in with another
provider. See our Privacy Policy and
Terms.