CloudWatchClient.list_alarm_mute_rules
rboto-cloudwatch==0.4.0 · Service index · Types
Model summary (excerpt): Lists alarm mute rules in your Amazon Web Services account and region. You can filter the results by alarm name to find all mute rules targeting a specific alarm, or by status to find rules that are scheduled, active, or expired. This operation supports pagination for accounts with many mute rules. Use the MaxRecords and NextToken parameters to retrieve results in multiple calls. Permissions...
Install and imports
from rboto import CloudWatchClient
from collections.abc import Sequence
from rboto_cloudwatch.types import (
AlarmMuteRuleStatus,
ListAlarmMuteRulesOutput,
)
Signature
async def list_alarm_mute_rules(
*,
alarm_name: str | None = None,
statuses: Sequence[AlarmMuteRuleStatus] | None = None,
max_records: int | None = None,
next_token: str | None = None,
) -> ListAlarmMuteRulesOutput: ...
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) |
|---|---|---|
alarm_name |
No | Filter results to show only mute rules that target the specified alarm name. |
statuses |
No | Filter results to show only mute rules with the specified statuses. Valid values are SCHEDULED , ACTIVE , or EXPIRED . |
max_records |
No | The maximum number of mute rules to return in one call. The default is 50. |
next_token |
No | The token returned from a previous call to indicate where to continue retrieving results. |
Output
ListAlarmMuteRulesOutput.
Read-only native attributes, accessed as response.field. Collection getters materialize Python values; to_dict() recursively materializes a mapping. Streams are consumed once.
| Field | Type | Presence | References |
|---|---|---|---|
alarm_mute_rule_summaries |
list[AlarmMuteRuleSummaryOutput] | None |
Always present | AlarmMuteRuleSummaryOutput |
next_token |
str | None |
Always present | — |
| 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
AlarmMuteRuleStatus, ListAlarmMuteRulesOutput
Follow these links for nested inputs and outputs; recursive types link back to the same type page.
Pagination and streaming
client.paginators.list_alarm_mute_rules(...) accepts the same arguments and returns AsyncIterator[ListAlarmMuteRulesOutput]. Direct calls return one page. Pages preserve the Output representation above.
Input cursors: next_token. Page-size argument: max_records.
No output stream.
Errors
Import from rboto_cloudwatch.exceptions:
InvalidNextTokenError, ResourceNotFoundExceptionError.
Other service failures use the service base error; credential, transport and timeout failures use shared errors.