CloudWatchClient.put_alarm_mute_rule
rboto-cloudwatch==0.4.0 · Service index · Types
Model summary (excerpt): Creates or updates an alarm mute rule. Alarm mute rules automatically mute alarm actions during predefined time windows. When a mute rule is active, targeted alarms continue to evaluate metrics and transition between states, but their configured actions (such as Amazon SNS notifications or Auto Scaling actions) are muted. You can create mute rules with recurring schedules using cron...
Install and imports
from rboto import CloudWatchClient
from collections.abc import Sequence
from rboto_cloudwatch.types import (
MuteTargets,
Rule,
Tag,
)
Signature
async def put_alarm_mute_rule(
*,
name: str,
rule: Rule,
description: str | None = None,
mute_targets: MuteTargets | None = None,
tags: Sequence[Tag] | None = None,
start_date: str | None = None,
expire_date: str | None = None,
) -> None: ...
Arguments without defaults are required. None omits an optional request argument. Static types do not validate resource existence, permissions, lengths, ranges, or conditional service requirements.
Arguments
| Argument | Required | Model notes (excerpt) |
|---|---|---|
name |
Yes | The name of the alarm mute rule. This name must be unique within your Amazon Web Services account and region. |
rule |
Yes | The configuration that defines when and how long alarms should be muted. |
description |
No | A description of the alarm mute rule that helps you identify its purpose. |
mute_targets |
No | Specifies which alarms this rule applies to. |
tags |
No | A list of key-value pairs to associate with the alarm mute rule. You can use tags to categorize and manage your mute rules. |
start_date |
No | The date and time after which the mute rule takes effect, specified as a timestamp in ISO 8601 format (for example, 2026-04-15T08:00:00Z ). If not specified, the mute rule takes effect immediately upon creation and the mutes are applied as per the schedule expression. |
expire_date |
No | The date and time when the mute rule expires and is no longer evaluated, specified as a timestamp in ISO 8601 format (for example, 2026-12-31T23:59:59Z ). After this time, the rule status becomes EXPIRED and will no longer mute the targeted alarms. |
Output
None.
| None means a value can be absent. Output mappings include every declared key; optional input keys may be omitted. Unknown output enum/union variants are not automatically valid inputs.
Related types
Follow these links for nested inputs and outputs; recursive types link back to the same type page.
Pagination and streaming
No generated paginator for this operation.
No output stream.
Errors
Import from rboto_cloudwatch.exceptions:
Other service failures use the service base error; credential, transport and timeout failures use shared errors.