http://iotevents.{region}.amazonaws.com/alarm-models/{alarmModelName}Updates an alarm model. Any alarms that were created based on the previous version are deleted and then created again as new data arrives.
The name of the alarm model.
The ARN of the IAM role that allows the alarm to perform actions and access AWS resources. For more information, see <a href="https://docs.aws.amazon.com/general/latest/gr/aws-arns-and-namespaces.html">Amazon Resource Names (ARNs)</a> in the <i>AWS General Reference</i>.
A non-negative integer that reflects the severity level of the alarm.
Defines when your alarm is invoked.
Contains the configuration information of alarm state changes.
Contains information about one or more alarm actions.
Contains information about one or more notification actions.
The description of the alarm model.
{
"success": true,
"data": {
"id": "abc123",
"created_at": "2025-01-01T00:00:00Z"
}
}{
"success": false,
"error": {
"code": "VALIDATION_ERROR",
"message": "Invalid request parameters"
}
}1curl --request POST \2 --url 'http://iotevents.{region}.amazonaws.com/alarm-models/{alarmModelName}' \3 --header 'accept: application/json' \4 --header 'content-type: application/json'1{2 "success": true,3 "data": {4 "id": "abc123",5 "created_at": "2025-01-01T00:00:00Z"6 }7}http://iotevents.{region}.amazonaws.com/alarm-models/{alarmModelName}Updates an alarm model. Any alarms that were created based on the previous version are deleted and then created again as new data arrives.
The name of the alarm model.
The ARN of the IAM role that allows the alarm to perform actions and access AWS resources. For more information, see <a href="https://docs.aws.amazon.com/general/latest/gr/aws-arns-and-namespaces.html">Amazon Resource Names (ARNs)</a> in the <i>AWS General Reference</i>.
A non-negative integer that reflects the severity level of the alarm.
Defines when your alarm is invoked.
Contains the configuration information of alarm state changes.
Contains information about one or more alarm actions.
Contains information about one or more notification actions.
The description of the alarm model.
{
"success": true,
"data": {
"id": "abc123",
"created_at": "2025-01-01T00:00:00Z"
}
}{
"success": false,
"error": {
"code": "VALIDATION_ERROR",
"message": "Invalid request parameters"
}
}1curl --request POST \2 --url 'http://iotevents.{region}.amazonaws.com/alarm-models/{alarmModelName}' \3 --header 'accept: application/json' \4 --header 'content-type: application/json'1{2 "success": true,3 "data": {4 "id": "abc123",5 "created_at": "2025-01-01T00:00:00Z"6 }7}