UpdateAlertInput
¶
Source code in docs_src/capo_cloudwatchomni/types/update_alert_input.py
description
instance-attribute
¶
description: NotRequired[str]
A new description of the alert. Omit to leave unchanged.
name
instance-attribute
¶
name: NotRequired[str]
A new display name for the alert. Omit to leave the name unchanged (apply-if-present / PATCH). Same constraints as CreateAlert.name; the name is not the alert's identity, so a rename never changes the alertId.
notification_rules
instance-attribute
¶
notification_rules: NotRequired[NotificationRuleList]
Replaces the entire notification rule list when present; full-replace, not merge. Omitted = leave existing rules unchanged. An empty list clears all rules (the alert keeps evaluating; only notifications stop).
notifications_enabled
instance-attribute
¶
notifications_enabled: NotRequired[bool]
Whether actions (notifications) are enabled for this alert. Omitted = leave existing value unchanged.
profile_id
instance-attribute
¶
profile_id: NotRequired[ProfileId]
The ID of the access profile associated with the alert.
rule
instance-attribute
¶
rule: NotRequired[Rule]
The rule that defines how the alert is evaluated. Omit to leave unchanged. For a telemetryRule, each of {@code query}, {@code condition}, {@code evaluation} and {@code noData} is replaced whole when present. For an sloRule, each of {@code sloId}, {@code condition}, {@code evaluation} and {@code noData} is applied only when supplied; omitted members keep their stored value, and a supplied block is replaced whole. Within any supplied block, an omitted optional member is cleared to unset (null/absent), not preserved from the stored alert or defaulted. The rule kind cannot change: supplying a sloRule for a telemetry alert, or a telemetryRule for an SLO alert, is a validation error.