SetTimerAction is a JSON Structure definition published by Amazon IoT Events, describing 3 properties, of which 1 is 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-set-timer-action-structure.json",
"name": "SetTimerAction",
"description": "Information needed to set the timer.",
"type": "object",
"properties": {
"timerName": {
"allOf": [
{
"$ref": "#/components/schemas/TimerName"
},
{
"description": "The name of the timer."
}
]
},
"seconds": {
"allOf": [
{
"$ref": "#/components/schemas/Seconds"
},
{
"deprecated": true,
"description": "The number of seconds until the timer expires. The minimum value is 60 seconds to ensure accuracy. The maximum value is 31622400 seconds. seconds is deprecated. You can use durationExpression for SetTimerAction. The value of seconds can be used as a string expression for durationExpression."
}
]
},
"durationExpression": {
"allOf": [
{
"$ref": "#/components/schemas/VariableValue"
},
{
"description": "The duration of the timer, in seconds. You can use a string expression that includes numbers, variables (<code>$variable.<variable-name></code>), and input values (<code>$input.<input-name>.<path-to-datum></code>) as the duration. The range of the duration is 1-31622400 seconds. To ensure accuracy, the minimum duration is 60 seconds. The evaluated result of the duration is rounded down to the nearest whole number. "
}
]
}
},
"required": [
"timerName"
]
}
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.