@aws-sdk/client-cloudwatch 3.36.0 → 3.39.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 (118) hide show
  1. package/CHANGELOG.md +42 -0
  2. package/dist-cjs/CloudWatch.js +0 -17
  3. package/dist-cjs/CloudWatchClient.js +0 -22
  4. package/dist-cjs/commands/DeleteAlarmsCommand.js +0 -39
  5. package/dist-cjs/commands/DeleteAnomalyDetectorCommand.js +0 -24
  6. package/dist-cjs/commands/DeleteDashboardsCommand.js +0 -26
  7. package/dist-cjs/commands/DeleteInsightRulesCommand.js +0 -27
  8. package/dist-cjs/commands/DeleteMetricStreamCommand.js +0 -24
  9. package/dist-cjs/commands/DescribeAlarmHistoryCommand.js +0 -26
  10. package/dist-cjs/commands/DescribeAlarmsCommand.js +0 -25
  11. package/dist-cjs/commands/DescribeAlarmsForMetricCommand.js +0 -28
  12. package/dist-cjs/commands/DescribeAnomalyDetectorsCommand.js +0 -26
  13. package/dist-cjs/commands/DescribeInsightRulesCommand.js +0 -27
  14. package/dist-cjs/commands/DisableAlarmActionsCommand.js +0 -25
  15. package/dist-cjs/commands/DisableInsightRulesCommand.js +0 -25
  16. package/dist-cjs/commands/EnableAlarmActionsCommand.js +0 -24
  17. package/dist-cjs/commands/EnableInsightRulesCommand.js +0 -24
  18. package/dist-cjs/commands/GetDashboardCommand.js +0 -27
  19. package/dist-cjs/commands/GetInsightRuleReportCommand.js +0 -60
  20. package/dist-cjs/commands/GetMetricDataCommand.js +0 -59
  21. package/dist-cjs/commands/GetMetricStatisticsCommand.js +0 -75
  22. package/dist-cjs/commands/GetMetricStreamCommand.js +0 -24
  23. package/dist-cjs/commands/GetMetricWidgetImageCommand.js +0 -41
  24. package/dist-cjs/commands/ListDashboardsCommand.js +0 -32
  25. package/dist-cjs/commands/ListMetricStreamsCommand.js +0 -24
  26. package/dist-cjs/commands/ListMetricsCommand.js +0 -37
  27. package/dist-cjs/commands/ListTagsForResourceCommand.js +0 -25
  28. package/dist-cjs/commands/PutAnomalyDetectorCommand.js +0 -26
  29. package/dist-cjs/commands/PutCompositeAlarmCommand.js +0 -59
  30. package/dist-cjs/commands/PutDashboardCommand.js +0 -37
  31. package/dist-cjs/commands/PutInsightRuleCommand.js +0 -28
  32. package/dist-cjs/commands/PutMetricAlarmCommand.js +0 -87
  33. package/dist-cjs/commands/PutMetricDataCommand.js +0 -68
  34. package/dist-cjs/commands/PutMetricStreamCommand.js +0 -51
  35. package/dist-cjs/commands/SetAlarmStateCommand.js +0 -39
  36. package/dist-cjs/commands/StartMetricStreamsCommand.js +0 -24
  37. package/dist-cjs/commands/StopMetricStreamsCommand.js +0 -24
  38. package/dist-cjs/commands/TagResourceCommand.js +0 -34
  39. package/dist-cjs/commands/UntagResourceCommand.js +0 -24
  40. package/dist-cjs/commands/index.js +39 -0
  41. package/dist-cjs/endpoints.js +6 -1
  42. package/dist-cjs/index.js +5 -48
  43. package/dist-cjs/models/models_0.js +0 -315
  44. package/dist-cjs/pagination/DescribeAlarmHistoryPaginator.js +0 -10
  45. package/dist-cjs/pagination/DescribeAlarmsPaginator.js +0 -10
  46. package/dist-cjs/pagination/DescribeInsightRulesPaginator.js +0 -10
  47. package/dist-cjs/pagination/GetMetricDataPaginator.js +0 -10
  48. package/dist-cjs/pagination/ListDashboardsPaginator.js +0 -10
  49. package/dist-cjs/pagination/ListMetricStreamsPaginator.js +0 -10
  50. package/dist-cjs/pagination/ListMetricsPaginator.js +0 -10
  51. package/dist-cjs/pagination/index.js +11 -0
  52. package/dist-cjs/protocols/Aws_query.js +0 -2
  53. package/dist-cjs/runtimeConfig.browser.js +1 -5
  54. package/dist-cjs/runtimeConfig.js +1 -5
  55. package/dist-cjs/runtimeConfig.native.js +0 -3
  56. package/dist-cjs/runtimeConfig.shared.js +0 -3
  57. package/dist-cjs/waiters/index.js +5 -0
  58. package/dist-cjs/waiters/waitForAlarmExists.js +0 -9
  59. package/dist-cjs/waiters/waitForCompositeAlarmExists.js +0 -9
  60. package/dist-es/commands/index.js +36 -0
  61. package/dist-es/endpoints.js +6 -1
  62. package/dist-es/index.js +5 -48
  63. package/dist-es/pagination/index.js +8 -0
  64. package/dist-es/waiters/index.js +2 -0
  65. package/dist-types/commands/index.d.ts +36 -0
  66. package/dist-types/index.d.ts +5 -48
  67. package/dist-types/pagination/index.d.ts +8 -0
  68. package/dist-types/ts3.4/CloudWatch.d.ts +37 -536
  69. package/dist-types/ts3.4/CloudWatchClient.d.ts +24 -103
  70. package/dist-types/ts3.4/commands/DeleteAlarmsCommand.d.ts +2 -35
  71. package/dist-types/ts3.4/commands/DeleteAnomalyDetectorCommand.d.ts +2 -20
  72. package/dist-types/ts3.4/commands/DeleteDashboardsCommand.d.ts +2 -22
  73. package/dist-types/ts3.4/commands/DeleteInsightRulesCommand.d.ts +2 -23
  74. package/dist-types/ts3.4/commands/DeleteMetricStreamCommand.d.ts +2 -20
  75. package/dist-types/ts3.4/commands/DescribeAlarmHistoryCommand.d.ts +2 -22
  76. package/dist-types/ts3.4/commands/DescribeAlarmsCommand.d.ts +2 -21
  77. package/dist-types/ts3.4/commands/DescribeAlarmsForMetricCommand.d.ts +2 -24
  78. package/dist-types/ts3.4/commands/DescribeAnomalyDetectorsCommand.d.ts +2 -22
  79. package/dist-types/ts3.4/commands/DescribeInsightRulesCommand.d.ts +2 -23
  80. package/dist-types/ts3.4/commands/DisableAlarmActionsCommand.d.ts +2 -21
  81. package/dist-types/ts3.4/commands/DisableInsightRulesCommand.d.ts +2 -21
  82. package/dist-types/ts3.4/commands/EnableAlarmActionsCommand.d.ts +2 -20
  83. package/dist-types/ts3.4/commands/EnableInsightRulesCommand.d.ts +2 -20
  84. package/dist-types/ts3.4/commands/GetDashboardCommand.d.ts +2 -23
  85. package/dist-types/ts3.4/commands/GetInsightRuleReportCommand.d.ts +2 -56
  86. package/dist-types/ts3.4/commands/GetMetricDataCommand.d.ts +2 -55
  87. package/dist-types/ts3.4/commands/GetMetricStatisticsCommand.d.ts +2 -71
  88. package/dist-types/ts3.4/commands/GetMetricStreamCommand.d.ts +2 -20
  89. package/dist-types/ts3.4/commands/GetMetricWidgetImageCommand.d.ts +2 -37
  90. package/dist-types/ts3.4/commands/ListDashboardsCommand.d.ts +2 -28
  91. package/dist-types/ts3.4/commands/ListMetricStreamsCommand.d.ts +2 -20
  92. package/dist-types/ts3.4/commands/ListMetricsCommand.d.ts +2 -33
  93. package/dist-types/ts3.4/commands/ListTagsForResourceCommand.d.ts +2 -21
  94. package/dist-types/ts3.4/commands/PutAnomalyDetectorCommand.d.ts +2 -22
  95. package/dist-types/ts3.4/commands/PutCompositeAlarmCommand.d.ts +2 -55
  96. package/dist-types/ts3.4/commands/PutDashboardCommand.d.ts +2 -33
  97. package/dist-types/ts3.4/commands/PutInsightRuleCommand.d.ts +2 -24
  98. package/dist-types/ts3.4/commands/PutMetricAlarmCommand.d.ts +2 -83
  99. package/dist-types/ts3.4/commands/PutMetricDataCommand.d.ts +2 -64
  100. package/dist-types/ts3.4/commands/PutMetricStreamCommand.d.ts +2 -47
  101. package/dist-types/ts3.4/commands/SetAlarmStateCommand.d.ts +2 -35
  102. package/dist-types/ts3.4/commands/StartMetricStreamsCommand.d.ts +2 -20
  103. package/dist-types/ts3.4/commands/StopMetricStreamsCommand.d.ts +2 -20
  104. package/dist-types/ts3.4/commands/TagResourceCommand.d.ts +2 -30
  105. package/dist-types/ts3.4/commands/UntagResourceCommand.d.ts +2 -20
  106. package/dist-types/ts3.4/commands/index.d.ts +36 -0
  107. package/dist-types/ts3.4/index.d.ts +5 -48
  108. package/dist-types/ts3.4/models/models_0.d.ts +481 -2223
  109. package/dist-types/ts3.4/pagination/index.d.ts +8 -0
  110. package/dist-types/ts3.4/runtimeConfig.browser.d.ts +1 -3
  111. package/dist-types/ts3.4/runtimeConfig.d.ts +1 -3
  112. package/dist-types/ts3.4/runtimeConfig.native.d.ts +1 -3
  113. package/dist-types/ts3.4/runtimeConfig.shared.d.ts +1 -3
  114. package/dist-types/ts3.4/waiters/index.d.ts +2 -0
  115. package/dist-types/ts3.4/waiters/waitForAlarmExists.d.ts +2 -9
  116. package/dist-types/ts3.4/waiters/waitForCompositeAlarmExists.d.ts +2 -9
  117. package/dist-types/waiters/index.d.ts +2 -0
  118. package/package.json +33 -33
package/CHANGELOG.md CHANGED
@@ -3,6 +3,48 @@
3
3
  All notable changes to this project will be documented in this file.
4
4
  See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5
5
 
6
+ # [3.39.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.38.0...v3.39.0) (2021-10-29)
7
+
8
+ **Note:** Version bump only for package @aws-sdk/client-cloudwatch
9
+
10
+
11
+
12
+
13
+
14
+ # [3.38.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.37.0...v3.38.0) (2021-10-22)
15
+
16
+
17
+ ### Features
18
+
19
+ * **client-documentation-generator:** rename package ([#2916](https://github.com/aws/aws-sdk-js-v3/issues/2916)) ([1a80bfd](https://github.com/aws/aws-sdk-js-v3/commit/1a80bfd2dfc583001ddb4a21b6432eaaad699aa7))
20
+ * **clients:** export folder from index.ts ([#2912](https://github.com/aws/aws-sdk-js-v3/issues/2912)) ([183b46d](https://github.com/aws/aws-sdk-js-v3/commit/183b46dde7f5613128038bf1c076f3c0b693203b))
21
+
22
+
23
+
24
+
25
+
26
+ # [3.37.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.36.1...v3.37.0) (2021-10-15)
27
+
28
+
29
+ ### Features
30
+
31
+ * **clients:** update clients as of 10/15/2021 ([#2902](https://github.com/aws/aws-sdk-js-v3/issues/2902)) ([2730b54](https://github.com/aws/aws-sdk-js-v3/commit/2730b5424377944a5a2ad5e1ad7d3ca4135dae1c))
32
+
33
+
34
+
35
+
36
+
37
+ ## [3.36.1](https://github.com/aws/aws-sdk-js-v3/compare/v3.36.0...v3.36.1) (2021-10-12)
38
+
39
+
40
+ ### Bug Fixes
41
+
42
+ * **clients:** emitDeclarationOnly in tsconfig.types.json ([#2893](https://github.com/aws/aws-sdk-js-v3/issues/2893)) ([6dc3d56](https://github.com/aws/aws-sdk-js-v3/commit/6dc3d56c20809c90cbdc4dd48627eeebc64af99d))
43
+
44
+
45
+
46
+
47
+
6
48
  # [3.36.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.35.0...v3.36.0) (2021-10-08)
7
49
 
8
50
 
@@ -38,23 +38,6 @@ const StartMetricStreamsCommand_1 = require("./commands/StartMetricStreamsComman
38
38
  const StopMetricStreamsCommand_1 = require("./commands/StopMetricStreamsCommand");
39
39
  const TagResourceCommand_1 = require("./commands/TagResourceCommand");
40
40
  const UntagResourceCommand_1 = require("./commands/UntagResourceCommand");
41
- /**
42
- * <p>Amazon CloudWatch monitors your Amazon Web Services (Amazon Web Services) resources and the
43
- * applications you run on Amazon Web Services in real time. You can use CloudWatch to collect and track
44
- * metrics, which are the variables you want to measure for your resources and
45
- * applications.</p>
46
- *
47
- * <p>CloudWatch alarms send notifications or automatically change the resources you are monitoring based on rules
48
- * that you define. For example, you can monitor the CPU usage and disk reads and writes of your Amazon EC2
49
- * instances. Then, use this data to determine whether you should launch
50
- * additional instances to handle increased load. You can also use this data to stop
51
- * under-used instances to save
52
- * money.</p>
53
- *
54
- * <p>In addition to monitoring the built-in metrics that come with Amazon Web Services, you can monitor
55
- * your own custom metrics. With CloudWatch, you gain system-wide visibility into resource
56
- * utilization, application performance, and operational health.</p>
57
- */
58
41
  class CloudWatch extends CloudWatchClient_1.CloudWatchClient {
59
42
  deleteAlarms(args, optionsOrCb, cb) {
60
43
  const command = new DeleteAlarmsCommand_1.DeleteAlarmsCommand(args);
@@ -10,23 +10,6 @@ const middleware_signing_1 = require("@aws-sdk/middleware-signing");
10
10
  const middleware_user_agent_1 = require("@aws-sdk/middleware-user-agent");
11
11
  const smithy_client_1 = require("@aws-sdk/smithy-client");
12
12
  const runtimeConfig_1 = require("./runtimeConfig");
13
- /**
14
- * <p>Amazon CloudWatch monitors your Amazon Web Services (Amazon Web Services) resources and the
15
- * applications you run on Amazon Web Services in real time. You can use CloudWatch to collect and track
16
- * metrics, which are the variables you want to measure for your resources and
17
- * applications.</p>
18
- *
19
- * <p>CloudWatch alarms send notifications or automatically change the resources you are monitoring based on rules
20
- * that you define. For example, you can monitor the CPU usage and disk reads and writes of your Amazon EC2
21
- * instances. Then, use this data to determine whether you should launch
22
- * additional instances to handle increased load. You can also use this data to stop
23
- * under-used instances to save
24
- * money.</p>
25
- *
26
- * <p>In addition to monitoring the built-in metrics that come with Amazon Web Services, you can monitor
27
- * your own custom metrics. With CloudWatch, you gain system-wide visibility into resource
28
- * utilization, application performance, and operational health.</p>
29
- */
30
13
  class CloudWatchClient extends smithy_client_1.Client {
31
14
  constructor(configuration) {
32
15
  const _config_0 = runtimeConfig_1.getRuntimeConfig(configuration);
@@ -45,11 +28,6 @@ class CloudWatchClient extends smithy_client_1.Client {
45
28
  this.middlewareStack.use(middleware_signing_1.getAwsAuthPlugin(this.config));
46
29
  this.middlewareStack.use(middleware_user_agent_1.getUserAgentPlugin(this.config));
47
30
  }
48
- /**
49
- * Destroy underlying resources, like sockets. It's usually not necessary to do this.
50
- * However in Node.js, it's best to explicitly shut down the client's agent when it is no longer needed.
51
- * Otherwise, sockets might stay open for quite a long time before the server terminates them.
52
- */
53
31
  destroy() {
54
32
  super.destroy();
55
33
  }
@@ -5,50 +5,11 @@ const middleware_serde_1 = require("@aws-sdk/middleware-serde");
5
5
  const smithy_client_1 = require("@aws-sdk/smithy-client");
6
6
  const models_0_1 = require("../models/models_0");
7
7
  const Aws_query_1 = require("../protocols/Aws_query");
8
- /**
9
- * <p>Deletes the specified alarms. You can delete up to 100 alarms in one operation. However, this total can include no more
10
- * than one composite alarm. For example, you could delete 99 metric alarms and one composite alarms with one operation, but you can't
11
- * delete two composite alarms with one operation.</p>
12
- * <p>
13
- * In the event of an error, no alarms are
14
- * deleted.</p>
15
- * <note>
16
- * <p>It is possible to create a loop or cycle of composite alarms, where composite alarm A depends on composite alarm B, and
17
- * composite alarm B also depends on composite alarm A. In this scenario, you can't delete any composite alarm that is part of the cycle
18
- * because there is always still a composite alarm that depends on that alarm that you want to delete.</p>
19
- * <p>To get out of such a situation, you must
20
- * break the cycle by changing the rule of one of the composite alarms in the cycle to remove a dependency that creates the cycle. The simplest
21
- * change to make to break a cycle is to change the <code>AlarmRule</code> of one of the alarms to <code>False</code>. </p>
22
- * <p>Additionally, the evaluation of composite alarms stops if CloudWatch detects a cycle in the evaluation path.
23
- * </p>
24
- * </note>
25
- * @example
26
- * Use a bare-bones client and the command you need to make an API call.
27
- * ```javascript
28
- * import { CloudWatchClient, DeleteAlarmsCommand } from "@aws-sdk/client-cloudwatch"; // ES Modules import
29
- * // const { CloudWatchClient, DeleteAlarmsCommand } = require("@aws-sdk/client-cloudwatch"); // CommonJS import
30
- * const client = new CloudWatchClient(config);
31
- * const command = new DeleteAlarmsCommand(input);
32
- * const response = await client.send(command);
33
- * ```
34
- *
35
- * @see {@link DeleteAlarmsCommandInput} for command's `input` shape.
36
- * @see {@link DeleteAlarmsCommandOutput} for command's `response` shape.
37
- * @see {@link CloudWatchClientResolvedConfig | config} for command's `input` shape.
38
- *
39
- */
40
8
  class DeleteAlarmsCommand extends smithy_client_1.Command {
41
- // Start section: command_properties
42
- // End section: command_properties
43
9
  constructor(input) {
44
- // Start section: command_constructor
45
10
  super();
46
11
  this.input = input;
47
- // End section: command_constructor
48
12
  }
49
- /**
50
- * @internal
51
- */
52
13
  resolveMiddleware(clientStack, configuration, options) {
53
14
  this.middlewareStack.use(middleware_serde_1.getSerdePlugin(configuration, this.serialize, this.deserialize));
54
15
  const stack = clientStack.concat(this.middlewareStack);
@@ -5,35 +5,11 @@ const middleware_serde_1 = require("@aws-sdk/middleware-serde");
5
5
  const smithy_client_1 = require("@aws-sdk/smithy-client");
6
6
  const models_0_1 = require("../models/models_0");
7
7
  const Aws_query_1 = require("../protocols/Aws_query");
8
- /**
9
- * <p>Deletes the specified anomaly detection model from your account.</p>
10
- * @example
11
- * Use a bare-bones client and the command you need to make an API call.
12
- * ```javascript
13
- * import { CloudWatchClient, DeleteAnomalyDetectorCommand } from "@aws-sdk/client-cloudwatch"; // ES Modules import
14
- * // const { CloudWatchClient, DeleteAnomalyDetectorCommand } = require("@aws-sdk/client-cloudwatch"); // CommonJS import
15
- * const client = new CloudWatchClient(config);
16
- * const command = new DeleteAnomalyDetectorCommand(input);
17
- * const response = await client.send(command);
18
- * ```
19
- *
20
- * @see {@link DeleteAnomalyDetectorCommandInput} for command's `input` shape.
21
- * @see {@link DeleteAnomalyDetectorCommandOutput} for command's `response` shape.
22
- * @see {@link CloudWatchClientResolvedConfig | config} for command's `input` shape.
23
- *
24
- */
25
8
  class DeleteAnomalyDetectorCommand extends smithy_client_1.Command {
26
- // Start section: command_properties
27
- // End section: command_properties
28
9
  constructor(input) {
29
- // Start section: command_constructor
30
10
  super();
31
11
  this.input = input;
32
- // End section: command_constructor
33
12
  }
34
- /**
35
- * @internal
36
- */
37
13
  resolveMiddleware(clientStack, configuration, options) {
38
14
  this.middlewareStack.use(middleware_serde_1.getSerdePlugin(configuration, this.serialize, this.deserialize));
39
15
  const stack = clientStack.concat(this.middlewareStack);
@@ -5,37 +5,11 @@ const middleware_serde_1 = require("@aws-sdk/middleware-serde");
5
5
  const smithy_client_1 = require("@aws-sdk/smithy-client");
6
6
  const models_0_1 = require("../models/models_0");
7
7
  const Aws_query_1 = require("../protocols/Aws_query");
8
- /**
9
- * <p>Deletes all dashboards that you specify. You
10
- * can specify up to 100 dashboards to delete. If there is an error during this call, no dashboards are
11
- * deleted.</p>
12
- * @example
13
- * Use a bare-bones client and the command you need to make an API call.
14
- * ```javascript
15
- * import { CloudWatchClient, DeleteDashboardsCommand } from "@aws-sdk/client-cloudwatch"; // ES Modules import
16
- * // const { CloudWatchClient, DeleteDashboardsCommand } = require("@aws-sdk/client-cloudwatch"); // CommonJS import
17
- * const client = new CloudWatchClient(config);
18
- * const command = new DeleteDashboardsCommand(input);
19
- * const response = await client.send(command);
20
- * ```
21
- *
22
- * @see {@link DeleteDashboardsCommandInput} for command's `input` shape.
23
- * @see {@link DeleteDashboardsCommandOutput} for command's `response` shape.
24
- * @see {@link CloudWatchClientResolvedConfig | config} for command's `input` shape.
25
- *
26
- */
27
8
  class DeleteDashboardsCommand extends smithy_client_1.Command {
28
- // Start section: command_properties
29
- // End section: command_properties
30
9
  constructor(input) {
31
- // Start section: command_constructor
32
10
  super();
33
11
  this.input = input;
34
- // End section: command_constructor
35
12
  }
36
- /**
37
- * @internal
38
- */
39
13
  resolveMiddleware(clientStack, configuration, options) {
40
14
  this.middlewareStack.use(middleware_serde_1.getSerdePlugin(configuration, this.serialize, this.deserialize));
41
15
  const stack = clientStack.concat(this.middlewareStack);
@@ -5,38 +5,11 @@ const middleware_serde_1 = require("@aws-sdk/middleware-serde");
5
5
  const smithy_client_1 = require("@aws-sdk/smithy-client");
6
6
  const models_0_1 = require("../models/models_0");
7
7
  const Aws_query_1 = require("../protocols/Aws_query");
8
- /**
9
- * <p>Permanently deletes the specified Contributor Insights rules.</p>
10
- * <p>If you create a rule, delete it, and then re-create it with the same name, historical data from the first time
11
- * the rule was created might
12
- * not be available.</p>
13
- * @example
14
- * Use a bare-bones client and the command you need to make an API call.
15
- * ```javascript
16
- * import { CloudWatchClient, DeleteInsightRulesCommand } from "@aws-sdk/client-cloudwatch"; // ES Modules import
17
- * // const { CloudWatchClient, DeleteInsightRulesCommand } = require("@aws-sdk/client-cloudwatch"); // CommonJS import
18
- * const client = new CloudWatchClient(config);
19
- * const command = new DeleteInsightRulesCommand(input);
20
- * const response = await client.send(command);
21
- * ```
22
- *
23
- * @see {@link DeleteInsightRulesCommandInput} for command's `input` shape.
24
- * @see {@link DeleteInsightRulesCommandOutput} for command's `response` shape.
25
- * @see {@link CloudWatchClientResolvedConfig | config} for command's `input` shape.
26
- *
27
- */
28
8
  class DeleteInsightRulesCommand extends smithy_client_1.Command {
29
- // Start section: command_properties
30
- // End section: command_properties
31
9
  constructor(input) {
32
- // Start section: command_constructor
33
10
  super();
34
11
  this.input = input;
35
- // End section: command_constructor
36
12
  }
37
- /**
38
- * @internal
39
- */
40
13
  resolveMiddleware(clientStack, configuration, options) {
41
14
  this.middlewareStack.use(middleware_serde_1.getSerdePlugin(configuration, this.serialize, this.deserialize));
42
15
  const stack = clientStack.concat(this.middlewareStack);
@@ -5,35 +5,11 @@ const middleware_serde_1 = require("@aws-sdk/middleware-serde");
5
5
  const smithy_client_1 = require("@aws-sdk/smithy-client");
6
6
  const models_0_1 = require("../models/models_0");
7
7
  const Aws_query_1 = require("../protocols/Aws_query");
8
- /**
9
- * <p>Permanently deletes the metric stream that you specify.</p>
10
- * @example
11
- * Use a bare-bones client and the command you need to make an API call.
12
- * ```javascript
13
- * import { CloudWatchClient, DeleteMetricStreamCommand } from "@aws-sdk/client-cloudwatch"; // ES Modules import
14
- * // const { CloudWatchClient, DeleteMetricStreamCommand } = require("@aws-sdk/client-cloudwatch"); // CommonJS import
15
- * const client = new CloudWatchClient(config);
16
- * const command = new DeleteMetricStreamCommand(input);
17
- * const response = await client.send(command);
18
- * ```
19
- *
20
- * @see {@link DeleteMetricStreamCommandInput} for command's `input` shape.
21
- * @see {@link DeleteMetricStreamCommandOutput} for command's `response` shape.
22
- * @see {@link CloudWatchClientResolvedConfig | config} for command's `input` shape.
23
- *
24
- */
25
8
  class DeleteMetricStreamCommand extends smithy_client_1.Command {
26
- // Start section: command_properties
27
- // End section: command_properties
28
9
  constructor(input) {
29
- // Start section: command_constructor
30
10
  super();
31
11
  this.input = input;
32
- // End section: command_constructor
33
12
  }
34
- /**
35
- * @internal
36
- */
37
13
  resolveMiddleware(clientStack, configuration, options) {
38
14
  this.middlewareStack.use(middleware_serde_1.getSerdePlugin(configuration, this.serialize, this.deserialize));
39
15
  const stack = clientStack.concat(this.middlewareStack);
@@ -5,37 +5,11 @@ const middleware_serde_1 = require("@aws-sdk/middleware-serde");
5
5
  const smithy_client_1 = require("@aws-sdk/smithy-client");
6
6
  const models_0_1 = require("../models/models_0");
7
7
  const Aws_query_1 = require("../protocols/Aws_query");
8
- /**
9
- * <p>Retrieves the history for the specified alarm. You can filter the results by date range or item type.
10
- * If an alarm name is not specified, the histories for either all metric alarms or all composite alarms are returned.</p>
11
- * <p>CloudWatch retains the history of an alarm even if you delete the alarm.</p>
12
- * @example
13
- * Use a bare-bones client and the command you need to make an API call.
14
- * ```javascript
15
- * import { CloudWatchClient, DescribeAlarmHistoryCommand } from "@aws-sdk/client-cloudwatch"; // ES Modules import
16
- * // const { CloudWatchClient, DescribeAlarmHistoryCommand } = require("@aws-sdk/client-cloudwatch"); // CommonJS import
17
- * const client = new CloudWatchClient(config);
18
- * const command = new DescribeAlarmHistoryCommand(input);
19
- * const response = await client.send(command);
20
- * ```
21
- *
22
- * @see {@link DescribeAlarmHistoryCommandInput} for command's `input` shape.
23
- * @see {@link DescribeAlarmHistoryCommandOutput} for command's `response` shape.
24
- * @see {@link CloudWatchClientResolvedConfig | config} for command's `input` shape.
25
- *
26
- */
27
8
  class DescribeAlarmHistoryCommand extends smithy_client_1.Command {
28
- // Start section: command_properties
29
- // End section: command_properties
30
9
  constructor(input) {
31
- // Start section: command_constructor
32
10
  super();
33
11
  this.input = input;
34
- // End section: command_constructor
35
12
  }
36
- /**
37
- * @internal
38
- */
39
13
  resolveMiddleware(clientStack, configuration, options) {
40
14
  this.middlewareStack.use(middleware_serde_1.getSerdePlugin(configuration, this.serialize, this.deserialize));
41
15
  const stack = clientStack.concat(this.middlewareStack);
@@ -5,36 +5,11 @@ const middleware_serde_1 = require("@aws-sdk/middleware-serde");
5
5
  const smithy_client_1 = require("@aws-sdk/smithy-client");
6
6
  const models_0_1 = require("../models/models_0");
7
7
  const Aws_query_1 = require("../protocols/Aws_query");
8
- /**
9
- * <p>Retrieves the specified alarms. You can filter the results by specifying a prefix for the alarm
10
- * name, the alarm state, or a prefix for any action.</p>
11
- * @example
12
- * Use a bare-bones client and the command you need to make an API call.
13
- * ```javascript
14
- * import { CloudWatchClient, DescribeAlarmsCommand } from "@aws-sdk/client-cloudwatch"; // ES Modules import
15
- * // const { CloudWatchClient, DescribeAlarmsCommand } = require("@aws-sdk/client-cloudwatch"); // CommonJS import
16
- * const client = new CloudWatchClient(config);
17
- * const command = new DescribeAlarmsCommand(input);
18
- * const response = await client.send(command);
19
- * ```
20
- *
21
- * @see {@link DescribeAlarmsCommandInput} for command's `input` shape.
22
- * @see {@link DescribeAlarmsCommandOutput} for command's `response` shape.
23
- * @see {@link CloudWatchClientResolvedConfig | config} for command's `input` shape.
24
- *
25
- */
26
8
  class DescribeAlarmsCommand extends smithy_client_1.Command {
27
- // Start section: command_properties
28
- // End section: command_properties
29
9
  constructor(input) {
30
- // Start section: command_constructor
31
10
  super();
32
11
  this.input = input;
33
- // End section: command_constructor
34
12
  }
35
- /**
36
- * @internal
37
- */
38
13
  resolveMiddleware(clientStack, configuration, options) {
39
14
  this.middlewareStack.use(middleware_serde_1.getSerdePlugin(configuration, this.serialize, this.deserialize));
40
15
  const stack = clientStack.concat(this.middlewareStack);
@@ -5,39 +5,11 @@ const middleware_serde_1 = require("@aws-sdk/middleware-serde");
5
5
  const smithy_client_1 = require("@aws-sdk/smithy-client");
6
6
  const models_0_1 = require("../models/models_0");
7
7
  const Aws_query_1 = require("../protocols/Aws_query");
8
- /**
9
- * <p>Retrieves the alarms for the specified metric. To
10
- * filter the results, specify a statistic, period, or unit.</p>
11
- * <p>This operation retrieves only standard alarms that are based on
12
- * the specified metric. It does not return alarms based on math expressions that
13
- * use the specified metric, or composite alarms that use the specified metric.</p>
14
- * @example
15
- * Use a bare-bones client and the command you need to make an API call.
16
- * ```javascript
17
- * import { CloudWatchClient, DescribeAlarmsForMetricCommand } from "@aws-sdk/client-cloudwatch"; // ES Modules import
18
- * // const { CloudWatchClient, DescribeAlarmsForMetricCommand } = require("@aws-sdk/client-cloudwatch"); // CommonJS import
19
- * const client = new CloudWatchClient(config);
20
- * const command = new DescribeAlarmsForMetricCommand(input);
21
- * const response = await client.send(command);
22
- * ```
23
- *
24
- * @see {@link DescribeAlarmsForMetricCommandInput} for command's `input` shape.
25
- * @see {@link DescribeAlarmsForMetricCommandOutput} for command's `response` shape.
26
- * @see {@link CloudWatchClientResolvedConfig | config} for command's `input` shape.
27
- *
28
- */
29
8
  class DescribeAlarmsForMetricCommand extends smithy_client_1.Command {
30
- // Start section: command_properties
31
- // End section: command_properties
32
9
  constructor(input) {
33
- // Start section: command_constructor
34
10
  super();
35
11
  this.input = input;
36
- // End section: command_constructor
37
12
  }
38
- /**
39
- * @internal
40
- */
41
13
  resolveMiddleware(clientStack, configuration, options) {
42
14
  this.middlewareStack.use(middleware_serde_1.getSerdePlugin(configuration, this.serialize, this.deserialize));
43
15
  const stack = clientStack.concat(this.middlewareStack);
@@ -5,37 +5,11 @@ const middleware_serde_1 = require("@aws-sdk/middleware-serde");
5
5
  const smithy_client_1 = require("@aws-sdk/smithy-client");
6
6
  const models_0_1 = require("../models/models_0");
7
7
  const Aws_query_1 = require("../protocols/Aws_query");
8
- /**
9
- * <p>Lists the anomaly detection models that you have created in your account. You can list all
10
- * models in your account or filter the results to only the models that are related to a
11
- * certain namespace, metric name, or metric dimension.</p>
12
- * @example
13
- * Use a bare-bones client and the command you need to make an API call.
14
- * ```javascript
15
- * import { CloudWatchClient, DescribeAnomalyDetectorsCommand } from "@aws-sdk/client-cloudwatch"; // ES Modules import
16
- * // const { CloudWatchClient, DescribeAnomalyDetectorsCommand } = require("@aws-sdk/client-cloudwatch"); // CommonJS import
17
- * const client = new CloudWatchClient(config);
18
- * const command = new DescribeAnomalyDetectorsCommand(input);
19
- * const response = await client.send(command);
20
- * ```
21
- *
22
- * @see {@link DescribeAnomalyDetectorsCommandInput} for command's `input` shape.
23
- * @see {@link DescribeAnomalyDetectorsCommandOutput} for command's `response` shape.
24
- * @see {@link CloudWatchClientResolvedConfig | config} for command's `input` shape.
25
- *
26
- */
27
8
  class DescribeAnomalyDetectorsCommand extends smithy_client_1.Command {
28
- // Start section: command_properties
29
- // End section: command_properties
30
9
  constructor(input) {
31
- // Start section: command_constructor
32
10
  super();
33
11
  this.input = input;
34
- // End section: command_constructor
35
12
  }
36
- /**
37
- * @internal
38
- */
39
13
  resolveMiddleware(clientStack, configuration, options) {
40
14
  this.middlewareStack.use(middleware_serde_1.getSerdePlugin(configuration, this.serialize, this.deserialize));
41
15
  const stack = clientStack.concat(this.middlewareStack);
@@ -5,38 +5,11 @@ const middleware_serde_1 = require("@aws-sdk/middleware-serde");
5
5
  const smithy_client_1 = require("@aws-sdk/smithy-client");
6
6
  const models_0_1 = require("../models/models_0");
7
7
  const Aws_query_1 = require("../protocols/Aws_query");
8
- /**
9
- * <p>Returns a list of all the Contributor Insights rules in your account.</p>
10
- *
11
- * <p>For more information about Contributor Insights, see
12
- * <a href="https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/ContributorInsights.html">Using Contributor Insights to Analyze High-Cardinality Data</a>.</p>
13
- * @example
14
- * Use a bare-bones client and the command you need to make an API call.
15
- * ```javascript
16
- * import { CloudWatchClient, DescribeInsightRulesCommand } from "@aws-sdk/client-cloudwatch"; // ES Modules import
17
- * // const { CloudWatchClient, DescribeInsightRulesCommand } = require("@aws-sdk/client-cloudwatch"); // CommonJS import
18
- * const client = new CloudWatchClient(config);
19
- * const command = new DescribeInsightRulesCommand(input);
20
- * const response = await client.send(command);
21
- * ```
22
- *
23
- * @see {@link DescribeInsightRulesCommandInput} for command's `input` shape.
24
- * @see {@link DescribeInsightRulesCommandOutput} for command's `response` shape.
25
- * @see {@link CloudWatchClientResolvedConfig | config} for command's `input` shape.
26
- *
27
- */
28
8
  class DescribeInsightRulesCommand extends smithy_client_1.Command {
29
- // Start section: command_properties
30
- // End section: command_properties
31
9
  constructor(input) {
32
- // Start section: command_constructor
33
10
  super();
34
11
  this.input = input;
35
- // End section: command_constructor
36
12
  }
37
- /**
38
- * @internal
39
- */
40
13
  resolveMiddleware(clientStack, configuration, options) {
41
14
  this.middlewareStack.use(middleware_serde_1.getSerdePlugin(configuration, this.serialize, this.deserialize));
42
15
  const stack = clientStack.concat(this.middlewareStack);
@@ -5,36 +5,11 @@ const middleware_serde_1 = require("@aws-sdk/middleware-serde");
5
5
  const smithy_client_1 = require("@aws-sdk/smithy-client");
6
6
  const models_0_1 = require("../models/models_0");
7
7
  const Aws_query_1 = require("../protocols/Aws_query");
8
- /**
9
- * <p>Disables the actions for the specified alarms. When an alarm's actions are disabled, the
10
- * alarm actions do not execute when the alarm state changes.</p>
11
- * @example
12
- * Use a bare-bones client and the command you need to make an API call.
13
- * ```javascript
14
- * import { CloudWatchClient, DisableAlarmActionsCommand } from "@aws-sdk/client-cloudwatch"; // ES Modules import
15
- * // const { CloudWatchClient, DisableAlarmActionsCommand } = require("@aws-sdk/client-cloudwatch"); // CommonJS import
16
- * const client = new CloudWatchClient(config);
17
- * const command = new DisableAlarmActionsCommand(input);
18
- * const response = await client.send(command);
19
- * ```
20
- *
21
- * @see {@link DisableAlarmActionsCommandInput} for command's `input` shape.
22
- * @see {@link DisableAlarmActionsCommandOutput} for command's `response` shape.
23
- * @see {@link CloudWatchClientResolvedConfig | config} for command's `input` shape.
24
- *
25
- */
26
8
  class DisableAlarmActionsCommand extends smithy_client_1.Command {
27
- // Start section: command_properties
28
- // End section: command_properties
29
9
  constructor(input) {
30
- // Start section: command_constructor
31
10
  super();
32
11
  this.input = input;
33
- // End section: command_constructor
34
12
  }
35
- /**
36
- * @internal
37
- */
38
13
  resolveMiddleware(clientStack, configuration, options) {
39
14
  this.middlewareStack.use(middleware_serde_1.getSerdePlugin(configuration, this.serialize, this.deserialize));
40
15
  const stack = clientStack.concat(this.middlewareStack);
@@ -5,36 +5,11 @@ const middleware_serde_1 = require("@aws-sdk/middleware-serde");
5
5
  const smithy_client_1 = require("@aws-sdk/smithy-client");
6
6
  const models_0_1 = require("../models/models_0");
7
7
  const Aws_query_1 = require("../protocols/Aws_query");
8
- /**
9
- * <p>Disables the specified Contributor Insights rules. When rules are disabled, they do not analyze log groups and do
10
- * not incur costs.</p>
11
- * @example
12
- * Use a bare-bones client and the command you need to make an API call.
13
- * ```javascript
14
- * import { CloudWatchClient, DisableInsightRulesCommand } from "@aws-sdk/client-cloudwatch"; // ES Modules import
15
- * // const { CloudWatchClient, DisableInsightRulesCommand } = require("@aws-sdk/client-cloudwatch"); // CommonJS import
16
- * const client = new CloudWatchClient(config);
17
- * const command = new DisableInsightRulesCommand(input);
18
- * const response = await client.send(command);
19
- * ```
20
- *
21
- * @see {@link DisableInsightRulesCommandInput} for command's `input` shape.
22
- * @see {@link DisableInsightRulesCommandOutput} for command's `response` shape.
23
- * @see {@link CloudWatchClientResolvedConfig | config} for command's `input` shape.
24
- *
25
- */
26
8
  class DisableInsightRulesCommand extends smithy_client_1.Command {
27
- // Start section: command_properties
28
- // End section: command_properties
29
9
  constructor(input) {
30
- // Start section: command_constructor
31
10
  super();
32
11
  this.input = input;
33
- // End section: command_constructor
34
12
  }
35
- /**
36
- * @internal
37
- */
38
13
  resolveMiddleware(clientStack, configuration, options) {
39
14
  this.middlewareStack.use(middleware_serde_1.getSerdePlugin(configuration, this.serialize, this.deserialize));
40
15
  const stack = clientStack.concat(this.middlewareStack);
@@ -5,35 +5,11 @@ const middleware_serde_1 = require("@aws-sdk/middleware-serde");
5
5
  const smithy_client_1 = require("@aws-sdk/smithy-client");
6
6
  const models_0_1 = require("../models/models_0");
7
7
  const Aws_query_1 = require("../protocols/Aws_query");
8
- /**
9
- * <p>Enables the actions for the specified alarms.</p>
10
- * @example
11
- * Use a bare-bones client and the command you need to make an API call.
12
- * ```javascript
13
- * import { CloudWatchClient, EnableAlarmActionsCommand } from "@aws-sdk/client-cloudwatch"; // ES Modules import
14
- * // const { CloudWatchClient, EnableAlarmActionsCommand } = require("@aws-sdk/client-cloudwatch"); // CommonJS import
15
- * const client = new CloudWatchClient(config);
16
- * const command = new EnableAlarmActionsCommand(input);
17
- * const response = await client.send(command);
18
- * ```
19
- *
20
- * @see {@link EnableAlarmActionsCommandInput} for command's `input` shape.
21
- * @see {@link EnableAlarmActionsCommandOutput} for command's `response` shape.
22
- * @see {@link CloudWatchClientResolvedConfig | config} for command's `input` shape.
23
- *
24
- */
25
8
  class EnableAlarmActionsCommand extends smithy_client_1.Command {
26
- // Start section: command_properties
27
- // End section: command_properties
28
9
  constructor(input) {
29
- // Start section: command_constructor
30
10
  super();
31
11
  this.input = input;
32
- // End section: command_constructor
33
12
  }
34
- /**
35
- * @internal
36
- */
37
13
  resolveMiddleware(clientStack, configuration, options) {
38
14
  this.middlewareStack.use(middleware_serde_1.getSerdePlugin(configuration, this.serialize, this.deserialize));
39
15
  const stack = clientStack.concat(this.middlewareStack);
@@ -5,35 +5,11 @@ const middleware_serde_1 = require("@aws-sdk/middleware-serde");
5
5
  const smithy_client_1 = require("@aws-sdk/smithy-client");
6
6
  const models_0_1 = require("../models/models_0");
7
7
  const Aws_query_1 = require("../protocols/Aws_query");
8
- /**
9
- * <p>Enables the specified Contributor Insights rules. When rules are enabled, they immediately begin analyzing log data.</p>
10
- * @example
11
- * Use a bare-bones client and the command you need to make an API call.
12
- * ```javascript
13
- * import { CloudWatchClient, EnableInsightRulesCommand } from "@aws-sdk/client-cloudwatch"; // ES Modules import
14
- * // const { CloudWatchClient, EnableInsightRulesCommand } = require("@aws-sdk/client-cloudwatch"); // CommonJS import
15
- * const client = new CloudWatchClient(config);
16
- * const command = new EnableInsightRulesCommand(input);
17
- * const response = await client.send(command);
18
- * ```
19
- *
20
- * @see {@link EnableInsightRulesCommandInput} for command's `input` shape.
21
- * @see {@link EnableInsightRulesCommandOutput} for command's `response` shape.
22
- * @see {@link CloudWatchClientResolvedConfig | config} for command's `input` shape.
23
- *
24
- */
25
8
  class EnableInsightRulesCommand extends smithy_client_1.Command {
26
- // Start section: command_properties
27
- // End section: command_properties
28
9
  constructor(input) {
29
- // Start section: command_constructor
30
10
  super();
31
11
  this.input = input;
32
- // End section: command_constructor
33
12
  }
34
- /**
35
- * @internal
36
- */
37
13
  resolveMiddleware(clientStack, configuration, options) {
38
14
  this.middlewareStack.use(middleware_serde_1.getSerdePlugin(configuration, this.serialize, this.deserialize));
39
15
  const stack = clientStack.concat(this.middlewareStack);