@aws-sdk/client-cloudwatch 3.996.0 → 3.998.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (44) hide show
  1. package/README.md +28 -0
  2. package/dist-cjs/index.js +96 -2
  3. package/dist-cjs/schemas/schemas_0.js +119 -28
  4. package/dist-es/CloudWatch.js +12 -0
  5. package/dist-es/commands/DeleteAlarmMuteRuleCommand.js +16 -0
  6. package/dist-es/commands/GetAlarmMuteRuleCommand.js +16 -0
  7. package/dist-es/commands/ListAlarmMuteRulesCommand.js +16 -0
  8. package/dist-es/commands/PutAlarmMuteRuleCommand.js +16 -0
  9. package/dist-es/commands/index.js +4 -0
  10. package/dist-es/models/enums.js +5 -0
  11. package/dist-es/pagination/ListAlarmMuteRulesPaginator.js +4 -0
  12. package/dist-es/pagination/index.js +1 -0
  13. package/dist-es/schemas/schemas_0.js +115 -24
  14. package/dist-es/waiters/index.js +1 -0
  15. package/dist-es/waiters/waitForAlarmMuteRuleExists.js +26 -0
  16. package/dist-types/CloudWatch.d.ts +42 -0
  17. package/dist-types/CloudWatchClient.d.ts +6 -2
  18. package/dist-types/commands/DeleteAlarmMuteRuleCommand.d.ts +78 -0
  19. package/dist-types/commands/GetAlarmMuteRuleCommand.d.ts +116 -0
  20. package/dist-types/commands/ListAlarmMuteRulesCommand.d.ts +100 -0
  21. package/dist-types/commands/PutAlarmMuteRuleCommand.d.ts +105 -0
  22. package/dist-types/commands/index.d.ts +4 -0
  23. package/dist-types/models/enums.d.ts +13 -0
  24. package/dist-types/models/models_0.d.ts +332 -1
  25. package/dist-types/pagination/ListAlarmMuteRulesPaginator.d.ts +7 -0
  26. package/dist-types/pagination/index.d.ts +1 -0
  27. package/dist-types/schemas/schemas_0.d.ts +14 -0
  28. package/dist-types/ts3.4/CloudWatch.d.ts +85 -0
  29. package/dist-types/ts3.4/CloudWatchClient.d.ts +24 -0
  30. package/dist-types/ts3.4/commands/DeleteAlarmMuteRuleCommand.d.ts +46 -0
  31. package/dist-types/ts3.4/commands/GetAlarmMuteRuleCommand.d.ts +50 -0
  32. package/dist-types/ts3.4/commands/ListAlarmMuteRulesCommand.d.ts +51 -0
  33. package/dist-types/ts3.4/commands/PutAlarmMuteRuleCommand.d.ts +45 -0
  34. package/dist-types/ts3.4/commands/index.d.ts +4 -0
  35. package/dist-types/ts3.4/models/enums.d.ts +7 -0
  36. package/dist-types/ts3.4/models/models_0.d.ts +56 -0
  37. package/dist-types/ts3.4/pagination/ListAlarmMuteRulesPaginator.d.ts +11 -0
  38. package/dist-types/ts3.4/pagination/index.d.ts +1 -0
  39. package/dist-types/ts3.4/schemas/schemas_0.d.ts +14 -0
  40. package/dist-types/ts3.4/waiters/index.d.ts +1 -0
  41. package/dist-types/ts3.4/waiters/waitForAlarmMuteRuleExists.d.ts +11 -0
  42. package/dist-types/waiters/index.d.ts +1 -0
  43. package/dist-types/waiters/waitForAlarmMuteRuleExists.d.ts +14 -0
  44. package/package.json +39 -39
package/README.md CHANGED
@@ -211,6 +211,13 @@ see LICENSE for more information.
211
211
 
212
212
  ## Client Commands (Operations List)
213
213
 
214
+ <details>
215
+ <summary>
216
+ DeleteAlarmMuteRule
217
+ </summary>
218
+
219
+ [Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/cloudwatch/command/DeleteAlarmMuteRuleCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-cloudwatch/Interface/DeleteAlarmMuteRuleCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-cloudwatch/Interface/DeleteAlarmMuteRuleCommandOutput/)
220
+ </details>
214
221
  <details>
215
222
  <summary>
216
223
  DeleteAlarms
@@ -318,6 +325,13 @@ EnableInsightRules
318
325
  </details>
319
326
  <details>
320
327
  <summary>
328
+ GetAlarmMuteRule
329
+ </summary>
330
+
331
+ [Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/cloudwatch/command/GetAlarmMuteRuleCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-cloudwatch/Interface/GetAlarmMuteRuleCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-cloudwatch/Interface/GetAlarmMuteRuleCommandOutput/)
332
+ </details>
333
+ <details>
334
+ <summary>
321
335
  GetDashboard
322
336
  </summary>
323
337
 
@@ -360,6 +374,13 @@ GetMetricWidgetImage
360
374
  </details>
361
375
  <details>
362
376
  <summary>
377
+ ListAlarmMuteRules
378
+ </summary>
379
+
380
+ [Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/cloudwatch/command/ListAlarmMuteRulesCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-cloudwatch/Interface/ListAlarmMuteRulesCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-cloudwatch/Interface/ListAlarmMuteRulesCommandOutput/)
381
+ </details>
382
+ <details>
383
+ <summary>
363
384
  ListDashboards
364
385
  </summary>
365
386
 
@@ -395,6 +416,13 @@ ListTagsForResource
395
416
  </details>
396
417
  <details>
397
418
  <summary>
419
+ PutAlarmMuteRule
420
+ </summary>
421
+
422
+ [Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/cloudwatch/command/PutAlarmMuteRuleCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-cloudwatch/Interface/PutAlarmMuteRuleCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-cloudwatch/Interface/PutAlarmMuteRuleCommandOutput/)
423
+ </details>
424
+ <details>
425
+ <summary>
398
426
  PutAnomalyDetector
399
427
  </summary>
400
428
 
package/dist-cjs/index.js CHANGED
@@ -116,6 +116,18 @@ class CloudWatchClient extends smithyClient.Client {
116
116
  }
117
117
  }
118
118
 
119
+ class DeleteAlarmMuteRuleCommand extends smithyClient.Command
120
+ .classBuilder()
121
+ .ep(commonParams)
122
+ .m(function (Command, cs, config, o) {
123
+ return [middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
124
+ })
125
+ .s("GraniteServiceVersion20100801", "DeleteAlarmMuteRule", {})
126
+ .n("CloudWatchClient", "DeleteAlarmMuteRuleCommand")
127
+ .sc(schemas_0.DeleteAlarmMuteRule$)
128
+ .build() {
129
+ }
130
+
119
131
  class DeleteAlarmsCommand extends smithyClient.Command
120
132
  .classBuilder()
121
133
  .ep(commonParams)
@@ -296,6 +308,18 @@ class EnableInsightRulesCommand extends smithyClient.Command
296
308
  .build() {
297
309
  }
298
310
 
311
+ class GetAlarmMuteRuleCommand extends smithyClient.Command
312
+ .classBuilder()
313
+ .ep(commonParams)
314
+ .m(function (Command, cs, config, o) {
315
+ return [middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
316
+ })
317
+ .s("GraniteServiceVersion20100801", "GetAlarmMuteRule", {})
318
+ .n("CloudWatchClient", "GetAlarmMuteRuleCommand")
319
+ .sc(schemas_0.GetAlarmMuteRule$)
320
+ .build() {
321
+ }
322
+
299
323
  class GetDashboardCommand extends smithyClient.Command
300
324
  .classBuilder()
301
325
  .ep(commonParams)
@@ -368,6 +392,18 @@ class GetMetricWidgetImageCommand extends smithyClient.Command
368
392
  .build() {
369
393
  }
370
394
 
395
+ class ListAlarmMuteRulesCommand extends smithyClient.Command
396
+ .classBuilder()
397
+ .ep(commonParams)
398
+ .m(function (Command, cs, config, o) {
399
+ return [middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
400
+ })
401
+ .s("GraniteServiceVersion20100801", "ListAlarmMuteRules", {})
402
+ .n("CloudWatchClient", "ListAlarmMuteRulesCommand")
403
+ .sc(schemas_0.ListAlarmMuteRules$)
404
+ .build() {
405
+ }
406
+
371
407
  class ListDashboardsCommand extends smithyClient.Command
372
408
  .classBuilder()
373
409
  .ep(commonParams)
@@ -428,6 +464,18 @@ class ListTagsForResourceCommand extends smithyClient.Command
428
464
  .build() {
429
465
  }
430
466
 
467
+ class PutAlarmMuteRuleCommand extends smithyClient.Command
468
+ .classBuilder()
469
+ .ep(commonParams)
470
+ .m(function (Command, cs, config, o) {
471
+ return [middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
472
+ })
473
+ .s("GraniteServiceVersion20100801", "PutAlarmMuteRule", {})
474
+ .n("CloudWatchClient", "PutAlarmMuteRuleCommand")
475
+ .sc(schemas_0.PutAlarmMuteRule$)
476
+ .build() {
477
+ }
478
+
431
479
  class PutAnomalyDetectorCommand extends smithyClient.Command
432
480
  .classBuilder()
433
481
  .ep(commonParams)
@@ -599,6 +647,8 @@ const paginateDescribeInsightRules = core.createPaginator(CloudWatchClient, Desc
599
647
 
600
648
  const paginateGetMetricData = core.createPaginator(CloudWatchClient, GetMetricDataCommand, "NextToken", "NextToken", "MaxDatapoints");
601
649
 
650
+ const paginateListAlarmMuteRules = core.createPaginator(CloudWatchClient, ListAlarmMuteRulesCommand, "NextToken", "NextToken", "MaxRecords");
651
+
602
652
  const paginateListDashboards = core.createPaginator(CloudWatchClient, ListDashboardsCommand, "NextToken", "NextToken", "");
603
653
 
604
654
  const paginateListManagedInsightRules = core.createPaginator(CloudWatchClient, ListManagedInsightRulesCommand, "NextToken", "NextToken", "MaxResults");
@@ -607,7 +657,7 @@ const paginateListMetrics = core.createPaginator(CloudWatchClient, ListMetricsCo
607
657
 
608
658
  const paginateListMetricStreams = core.createPaginator(CloudWatchClient, ListMetricStreamsCommand, "NextToken", "NextToken", "MaxResults");
609
659
 
610
- const checkState$1 = async (client, input) => {
660
+ const checkState$2 = async (client, input) => {
611
661
  let reason;
612
662
  try {
613
663
  let result = await client.send(new DescribeAlarmsCommand(input));
@@ -630,9 +680,34 @@ const checkState$1 = async (client, input) => {
630
680
  };
631
681
  const waitForAlarmExists = async (params, input) => {
632
682
  const serviceDefaults = { minDelay: 5, maxDelay: 120 };
633
- return utilWaiter.createWaiter({ ...serviceDefaults, ...params }, input, checkState$1);
683
+ return utilWaiter.createWaiter({ ...serviceDefaults, ...params }, input, checkState$2);
634
684
  };
635
685
  const waitUntilAlarmExists = async (params, input) => {
686
+ const serviceDefaults = { minDelay: 5, maxDelay: 120 };
687
+ const result = await utilWaiter.createWaiter({ ...serviceDefaults, ...params }, input, checkState$2);
688
+ return utilWaiter.checkExceptions(result);
689
+ };
690
+
691
+ const checkState$1 = async (client, input) => {
692
+ let reason;
693
+ try {
694
+ let result = await client.send(new GetAlarmMuteRuleCommand(input));
695
+ reason = result;
696
+ return { state: utilWaiter.WaiterState.SUCCESS, reason };
697
+ }
698
+ catch (exception) {
699
+ reason = exception;
700
+ if (exception.name && exception.name == "ResourceNotFoundException") {
701
+ return { state: utilWaiter.WaiterState.RETRY, reason };
702
+ }
703
+ }
704
+ return { state: utilWaiter.WaiterState.RETRY, reason };
705
+ };
706
+ const waitForAlarmMuteRuleExists = async (params, input) => {
707
+ const serviceDefaults = { minDelay: 5, maxDelay: 120 };
708
+ return utilWaiter.createWaiter({ ...serviceDefaults, ...params }, input, checkState$1);
709
+ };
710
+ const waitUntilAlarmMuteRuleExists = async (params, input) => {
636
711
  const serviceDefaults = { minDelay: 5, maxDelay: 120 };
637
712
  const result = await utilWaiter.createWaiter({ ...serviceDefaults, ...params }, input, checkState$1);
638
713
  return utilWaiter.checkExceptions(result);
@@ -670,6 +745,7 @@ const waitUntilCompositeAlarmExists = async (params, input) => {
670
745
  };
671
746
 
672
747
  const commands = {
748
+ DeleteAlarmMuteRuleCommand,
673
749
  DeleteAlarmsCommand,
674
750
  DeleteAnomalyDetectorCommand,
675
751
  DeleteDashboardsCommand,
@@ -685,17 +761,20 @@ const commands = {
685
761
  DisableInsightRulesCommand,
686
762
  EnableAlarmActionsCommand,
687
763
  EnableInsightRulesCommand,
764
+ GetAlarmMuteRuleCommand,
688
765
  GetDashboardCommand,
689
766
  GetInsightRuleReportCommand,
690
767
  GetMetricDataCommand,
691
768
  GetMetricStatisticsCommand,
692
769
  GetMetricStreamCommand,
693
770
  GetMetricWidgetImageCommand,
771
+ ListAlarmMuteRulesCommand,
694
772
  ListDashboardsCommand,
695
773
  ListManagedInsightRulesCommand,
696
774
  ListMetricsCommand,
697
775
  ListMetricStreamsCommand,
698
776
  ListTagsForResourceCommand,
777
+ PutAlarmMuteRuleCommand,
699
778
  PutAnomalyDetectorCommand,
700
779
  PutCompositeAlarmCommand,
701
780
  PutDashboardCommand,
@@ -716,6 +795,7 @@ const paginators = {
716
795
  paginateDescribeAnomalyDetectors,
717
796
  paginateDescribeInsightRules,
718
797
  paginateGetMetricData,
798
+ paginateListAlarmMuteRules,
719
799
  paginateListDashboards,
720
800
  paginateListManagedInsightRules,
721
801
  paginateListMetrics,
@@ -724,6 +804,7 @@ const paginators = {
724
804
  const waiters = {
725
805
  waitUntilAlarmExists,
726
806
  waitUntilCompositeAlarmExists,
807
+ waitUntilAlarmMuteRuleExists,
727
808
  };
728
809
  class CloudWatch extends CloudWatchClient {
729
810
  }
@@ -745,6 +826,11 @@ const HistoryItemType = {
745
826
  ConfigurationUpdate: "ConfigurationUpdate",
746
827
  StateUpdate: "StateUpdate",
747
828
  };
829
+ const AlarmMuteRuleStatus = {
830
+ ACTIVE: "ACTIVE",
831
+ EXPIRED: "EXPIRED",
832
+ SCHEDULED: "SCHEDULED",
833
+ };
748
834
  const StandardUnit = {
749
835
  Bits: "Bits",
750
836
  Bits_Second: "Bits/Second",
@@ -832,12 +918,14 @@ exports.$Command = smithyClient.Command;
832
918
  exports.__Client = smithyClient.Client;
833
919
  exports.CloudWatchServiceException = CloudWatchServiceException.CloudWatchServiceException;
834
920
  exports.ActionsSuppressedBy = ActionsSuppressedBy;
921
+ exports.AlarmMuteRuleStatus = AlarmMuteRuleStatus;
835
922
  exports.AlarmType = AlarmType;
836
923
  exports.AnomalyDetectorStateValue = AnomalyDetectorStateValue;
837
924
  exports.AnomalyDetectorType = AnomalyDetectorType;
838
925
  exports.CloudWatch = CloudWatch;
839
926
  exports.CloudWatchClient = CloudWatchClient;
840
927
  exports.ComparisonOperator = ComparisonOperator;
928
+ exports.DeleteAlarmMuteRuleCommand = DeleteAlarmMuteRuleCommand;
841
929
  exports.DeleteAlarmsCommand = DeleteAlarmsCommand;
842
930
  exports.DeleteAnomalyDetectorCommand = DeleteAnomalyDetectorCommand;
843
931
  exports.DeleteDashboardsCommand = DeleteDashboardsCommand;
@@ -854,6 +942,7 @@ exports.DisableInsightRulesCommand = DisableInsightRulesCommand;
854
942
  exports.EnableAlarmActionsCommand = EnableAlarmActionsCommand;
855
943
  exports.EnableInsightRulesCommand = EnableInsightRulesCommand;
856
944
  exports.EvaluationState = EvaluationState;
945
+ exports.GetAlarmMuteRuleCommand = GetAlarmMuteRuleCommand;
857
946
  exports.GetDashboardCommand = GetDashboardCommand;
858
947
  exports.GetInsightRuleReportCommand = GetInsightRuleReportCommand;
859
948
  exports.GetMetricDataCommand = GetMetricDataCommand;
@@ -861,12 +950,14 @@ exports.GetMetricStatisticsCommand = GetMetricStatisticsCommand;
861
950
  exports.GetMetricStreamCommand = GetMetricStreamCommand;
862
951
  exports.GetMetricWidgetImageCommand = GetMetricWidgetImageCommand;
863
952
  exports.HistoryItemType = HistoryItemType;
953
+ exports.ListAlarmMuteRulesCommand = ListAlarmMuteRulesCommand;
864
954
  exports.ListDashboardsCommand = ListDashboardsCommand;
865
955
  exports.ListManagedInsightRulesCommand = ListManagedInsightRulesCommand;
866
956
  exports.ListMetricStreamsCommand = ListMetricStreamsCommand;
867
957
  exports.ListMetricsCommand = ListMetricsCommand;
868
958
  exports.ListTagsForResourceCommand = ListTagsForResourceCommand;
869
959
  exports.MetricStreamOutputFormat = MetricStreamOutputFormat;
960
+ exports.PutAlarmMuteRuleCommand = PutAlarmMuteRuleCommand;
870
961
  exports.PutAnomalyDetectorCommand = PutAnomalyDetectorCommand;
871
962
  exports.PutCompositeAlarmCommand = PutCompositeAlarmCommand;
872
963
  exports.PutDashboardCommand = PutDashboardCommand;
@@ -891,13 +982,16 @@ exports.paginateDescribeAlarms = paginateDescribeAlarms;
891
982
  exports.paginateDescribeAnomalyDetectors = paginateDescribeAnomalyDetectors;
892
983
  exports.paginateDescribeInsightRules = paginateDescribeInsightRules;
893
984
  exports.paginateGetMetricData = paginateGetMetricData;
985
+ exports.paginateListAlarmMuteRules = paginateListAlarmMuteRules;
894
986
  exports.paginateListDashboards = paginateListDashboards;
895
987
  exports.paginateListManagedInsightRules = paginateListManagedInsightRules;
896
988
  exports.paginateListMetricStreams = paginateListMetricStreams;
897
989
  exports.paginateListMetrics = paginateListMetrics;
898
990
  exports.waitForAlarmExists = waitForAlarmExists;
991
+ exports.waitForAlarmMuteRuleExists = waitForAlarmMuteRuleExists;
899
992
  exports.waitForCompositeAlarmExists = waitForCompositeAlarmExists;
900
993
  exports.waitUntilAlarmExists = waitUntilAlarmExists;
994
+ exports.waitUntilAlarmMuteRuleExists = waitUntilAlarmMuteRuleExists;
901
995
  exports.waitUntilCompositeAlarmExists = waitUntilCompositeAlarmExists;
902
996
  Object.prototype.hasOwnProperty.call(schemas_0, '__proto__') &&
903
997
  !Object.prototype.hasOwnProperty.call(exports, '__proto__') &&