@@ -9,6 +9,11 @@ import type {
99import type { WaiterResult } from "@smithy/util-waiter" ;
1010
1111import { CloudWatchClient } from "./CloudWatchClient" ;
12+ import {
13+ DeleteAlarmMuteRuleCommand ,
14+ DeleteAlarmMuteRuleCommandInput ,
15+ DeleteAlarmMuteRuleCommandOutput ,
16+ } from "./commands/DeleteAlarmMuteRuleCommand" ;
1217import {
1318 DeleteAlarmsCommand ,
1419 DeleteAlarmsCommandInput ,
@@ -84,6 +89,11 @@ import {
8489 EnableInsightRulesCommandInput ,
8590 EnableInsightRulesCommandOutput ,
8691} from "./commands/EnableInsightRulesCommand" ;
92+ import {
93+ GetAlarmMuteRuleCommand ,
94+ GetAlarmMuteRuleCommandInput ,
95+ GetAlarmMuteRuleCommandOutput ,
96+ } from "./commands/GetAlarmMuteRuleCommand" ;
8797import {
8898 GetDashboardCommand ,
8999 GetDashboardCommandInput ,
@@ -114,6 +124,11 @@ import {
114124 GetMetricWidgetImageCommandInput ,
115125 GetMetricWidgetImageCommandOutput ,
116126} from "./commands/GetMetricWidgetImageCommand" ;
127+ import {
128+ ListAlarmMuteRulesCommand ,
129+ ListAlarmMuteRulesCommandInput ,
130+ ListAlarmMuteRulesCommandOutput ,
131+ } from "./commands/ListAlarmMuteRulesCommand" ;
117132import {
118133 ListDashboardsCommand ,
119134 ListDashboardsCommandInput ,
@@ -135,6 +150,11 @@ import {
135150 ListTagsForResourceCommandInput ,
136151 ListTagsForResourceCommandOutput ,
137152} from "./commands/ListTagsForResourceCommand" ;
153+ import {
154+ PutAlarmMuteRuleCommand ,
155+ PutAlarmMuteRuleCommandInput ,
156+ PutAlarmMuteRuleCommandOutput ,
157+ } from "./commands/PutAlarmMuteRuleCommand" ;
138158import {
139159 PutAnomalyDetectorCommand ,
140160 PutAnomalyDetectorCommandInput ,
@@ -201,14 +221,17 @@ import { paginateDescribeAlarms } from "./pagination/DescribeAlarmsPaginator";
201221import { paginateDescribeAnomalyDetectors } from "./pagination/DescribeAnomalyDetectorsPaginator" ;
202222import { paginateDescribeInsightRules } from "./pagination/DescribeInsightRulesPaginator" ;
203223import { paginateGetMetricData } from "./pagination/GetMetricDataPaginator" ;
224+ import { paginateListAlarmMuteRules } from "./pagination/ListAlarmMuteRulesPaginator" ;
204225import { paginateListDashboards } from "./pagination/ListDashboardsPaginator" ;
205226import { paginateListManagedInsightRules } from "./pagination/ListManagedInsightRulesPaginator" ;
206227import { paginateListMetrics } from "./pagination/ListMetricsPaginator" ;
207228import { paginateListMetricStreams } from "./pagination/ListMetricStreamsPaginator" ;
208229import { waitUntilAlarmExists } from "./waiters/waitForAlarmExists" ;
230+ import { waitUntilAlarmMuteRuleExists } from "./waiters/waitForAlarmMuteRuleExists" ;
209231import { waitUntilCompositeAlarmExists } from "./waiters/waitForCompositeAlarmExists" ;
210232
211233const commands = {
234+ DeleteAlarmMuteRuleCommand,
212235 DeleteAlarmsCommand,
213236 DeleteAnomalyDetectorCommand,
214237 DeleteDashboardsCommand,
@@ -224,17 +247,20 @@ const commands = {
224247 DisableInsightRulesCommand,
225248 EnableAlarmActionsCommand,
226249 EnableInsightRulesCommand,
250+ GetAlarmMuteRuleCommand,
227251 GetDashboardCommand,
228252 GetInsightRuleReportCommand,
229253 GetMetricDataCommand,
230254 GetMetricStatisticsCommand,
231255 GetMetricStreamCommand,
232256 GetMetricWidgetImageCommand,
257+ ListAlarmMuteRulesCommand,
233258 ListDashboardsCommand,
234259 ListManagedInsightRulesCommand,
235260 ListMetricsCommand,
236261 ListMetricStreamsCommand,
237262 ListTagsForResourceCommand,
263+ PutAlarmMuteRuleCommand,
238264 PutAnomalyDetectorCommand,
239265 PutCompositeAlarmCommand,
240266 PutDashboardCommand,
@@ -255,6 +281,7 @@ const paginators = {
255281 paginateDescribeAnomalyDetectors,
256282 paginateDescribeInsightRules,
257283 paginateGetMetricData,
284+ paginateListAlarmMuteRules,
258285 paginateListDashboards,
259286 paginateListManagedInsightRules,
260287 paginateListMetrics,
@@ -263,9 +290,27 @@ const paginators = {
263290const waiters = {
264291 waitUntilAlarmExists,
265292 waitUntilCompositeAlarmExists,
293+ waitUntilAlarmMuteRuleExists,
266294} ;
267295
268296export interface CloudWatch {
297+ /**
298+ * @see {@link DeleteAlarmMuteRuleCommand }
299+ */
300+ deleteAlarmMuteRule (
301+ args : DeleteAlarmMuteRuleCommandInput ,
302+ options ?: __HttpHandlerOptions
303+ ) : Promise < DeleteAlarmMuteRuleCommandOutput > ;
304+ deleteAlarmMuteRule (
305+ args : DeleteAlarmMuteRuleCommandInput ,
306+ cb : ( err : any , data ?: DeleteAlarmMuteRuleCommandOutput ) => void
307+ ) : void ;
308+ deleteAlarmMuteRule (
309+ args : DeleteAlarmMuteRuleCommandInput ,
310+ options : __HttpHandlerOptions ,
311+ cb : ( err : any , data ?: DeleteAlarmMuteRuleCommandOutput ) => void
312+ ) : void ;
313+
269314 /**
270315 * @see {@link DeleteAlarmsCommand }
271316 */
@@ -526,6 +571,23 @@ export interface CloudWatch {
526571 cb : ( err : any , data ?: EnableInsightRulesCommandOutput ) => void
527572 ) : void ;
528573
574+ /**
575+ * @see {@link GetAlarmMuteRuleCommand }
576+ */
577+ getAlarmMuteRule (
578+ args : GetAlarmMuteRuleCommandInput ,
579+ options ?: __HttpHandlerOptions
580+ ) : Promise < GetAlarmMuteRuleCommandOutput > ;
581+ getAlarmMuteRule (
582+ args : GetAlarmMuteRuleCommandInput ,
583+ cb : ( err : any , data ?: GetAlarmMuteRuleCommandOutput ) => void
584+ ) : void ;
585+ getAlarmMuteRule (
586+ args : GetAlarmMuteRuleCommandInput ,
587+ options : __HttpHandlerOptions ,
588+ cb : ( err : any , data ?: GetAlarmMuteRuleCommandOutput ) => void
589+ ) : void ;
590+
529591 /**
530592 * @see {@link GetDashboardCommand }
531593 */
@@ -628,6 +690,24 @@ export interface CloudWatch {
628690 cb : ( err : any , data ?: GetMetricWidgetImageCommandOutput ) => void
629691 ) : void ;
630692
693+ /**
694+ * @see {@link ListAlarmMuteRulesCommand }
695+ */
696+ listAlarmMuteRules ( ) : Promise < ListAlarmMuteRulesCommandOutput > ;
697+ listAlarmMuteRules (
698+ args : ListAlarmMuteRulesCommandInput ,
699+ options ?: __HttpHandlerOptions
700+ ) : Promise < ListAlarmMuteRulesCommandOutput > ;
701+ listAlarmMuteRules (
702+ args : ListAlarmMuteRulesCommandInput ,
703+ cb : ( err : any , data ?: ListAlarmMuteRulesCommandOutput ) => void
704+ ) : void ;
705+ listAlarmMuteRules (
706+ args : ListAlarmMuteRulesCommandInput ,
707+ options : __HttpHandlerOptions ,
708+ cb : ( err : any , data ?: ListAlarmMuteRulesCommandOutput ) => void
709+ ) : void ;
710+
631711 /**
632712 * @see {@link ListDashboardsCommand }
633713 */
@@ -716,6 +796,23 @@ export interface CloudWatch {
716796 cb : ( err : any , data ?: ListTagsForResourceCommandOutput ) => void
717797 ) : void ;
718798
799+ /**
800+ * @see {@link PutAlarmMuteRuleCommand }
801+ */
802+ putAlarmMuteRule (
803+ args : PutAlarmMuteRuleCommandInput ,
804+ options ?: __HttpHandlerOptions
805+ ) : Promise < PutAlarmMuteRuleCommandOutput > ;
806+ putAlarmMuteRule (
807+ args : PutAlarmMuteRuleCommandInput ,
808+ cb : ( err : any , data ?: PutAlarmMuteRuleCommandOutput ) => void
809+ ) : void ;
810+ putAlarmMuteRule (
811+ args : PutAlarmMuteRuleCommandInput ,
812+ options : __HttpHandlerOptions ,
813+ cb : ( err : any , data ?: PutAlarmMuteRuleCommandOutput ) => void
814+ ) : void ;
815+
719816 /**
720817 * @see {@link PutAnomalyDetectorCommand }
721818 */
@@ -993,6 +1090,17 @@ export interface CloudWatch {
9931090 paginationConfig ?: Omit < PaginationConfiguration , "client" >
9941091 ) : Paginator < GetMetricDataCommandOutput > ;
9951092
1093+ /**
1094+ * @see {@link ListAlarmMuteRulesCommand }
1095+ * @param args - command input.
1096+ * @param paginationConfig - optional pagination config.
1097+ * @returns AsyncIterable of {@link ListAlarmMuteRulesCommandOutput}.
1098+ */
1099+ paginateListAlarmMuteRules (
1100+ args ?: ListAlarmMuteRulesCommandInput ,
1101+ paginationConfig ?: Omit < PaginationConfiguration , "client" >
1102+ ) : Paginator < ListAlarmMuteRulesCommandOutput > ;
1103+
9961104 /**
9971105 * @see {@link ListDashboardsCommand }
9981106 * @param args - command input.
@@ -1056,6 +1164,16 @@ export interface CloudWatch {
10561164 args : DescribeAlarmsCommandInput ,
10571165 waiterConfig : number | Omit < WaiterConfiguration < CloudWatch > , "client" >
10581166 ) : Promise < WaiterResult > ;
1167+
1168+ /**
1169+ * @see {@link GetAlarmMuteRuleCommand }
1170+ * @param args - command input.
1171+ * @param waiterConfig - `maxWaitTime` in seconds or waiter config object.
1172+ */
1173+ waitUntilAlarmMuteRuleExists (
1174+ args : GetAlarmMuteRuleCommandInput ,
1175+ waiterConfig : number | Omit < WaiterConfiguration < CloudWatch > , "client" >
1176+ ) : Promise < WaiterResult > ;
10591177}
10601178
10611179/**
0 commit comments