update_alarm_model
¶
update_alarm_model(
alarm_model_name: AlarmModelName,
role_arn: AmazonResourceName,
alarm_rule: AlarmRule,
*,
config_overrides: Optional[IoTEventsClientConfig] = None,
alarm_model_description: Optional[AlarmModelDescription] = None,
severity: Optional[Severity] = None,
alarm_notification: Optional[AlarmNotification] = None,
alarm_event_actions: Optional[AlarmEventActions] = None,
alarm_capabilities: Optional[AlarmCapabilities] = None,
) -> UpdateAlarmModelResponse
Updates an alarm model. Any alarms that were created based on the previous version are deleted and then created again as new data arrives.
Parameters:
-
alarm_model_name(AlarmModelName) –The name of the alarm model.
-
alarm_model_description(Optional[AlarmModelDescription], default:None) –The description of the alarm model.
-
role_arn(AmazonResourceName) –The ARN of the IAM role that allows the alarm to perform actions and access AWS resources. For more information, see Amazon Resource Names (ARNs) in the AWS General Reference.
-
severity(Optional[Severity], default:None) –A non-negative integer that reflects the severity level of the alarm.
-
alarm_rule(AlarmRule) –Defines when your alarm is invoked.
-
alarm_notification(Optional[AlarmNotification], default:None) –Contains information about one or more notification actions.
-
alarm_event_actions(Optional[AlarmEventActions], default:None) –Contains information about one or more alarm actions.
-
alarm_capabilities(Optional[AlarmCapabilities], default:None) –Contains the configuration information of alarm state changes.
Raises:
-
InternalFailureException–An internal failure occurred.
-
InvalidRequestException–The request was invalid.
-
ResourceInUseException–The resource is in use.
-
ResourceNotFoundException–The resource was not found.
-
ServiceUnavailableException–The service is currently unavailable.
-
ThrottlingException–The request could not be completed due to throttling.
-
UnknownServiceError–The service returned an error code this client does not model.
Source code in docs_src/capo_iot_events/_services/io_t_events.py
1494 1495 1496 1497 1498 1499 1500 1501 1502 1503 1504 1505 1506 1507 1508 1509 1510 1511 1512 1513 1514 1515 1516 1517 1518 1519 1520 1521 1522 1523 1524 1525 1526 1527 1528 1529 1530 1531 1532 1533 1534 1535 1536 1537 1538 1539 1540 1541 1542 1543 1544 1545 1546 1547 1548 1549 1550 1551 1552 1553 1554 1555 1556 1557 1558 1559 1560 1561 1562 1563 1564 1565 1566 1567 1568 1569 1570 1571 1572 1573 1574 1575 1576 | |