@aws-sdk/client-cloudwatch 3.181.0 → 3.183.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 (61) hide show
  1. package/CHANGELOG.md +8 -0
  2. package/dist-es/CloudWatch.js +154 -161
  3. package/dist-es/CloudWatchClient.js +22 -28
  4. package/dist-es/commands/DeleteAlarmsCommand.js +22 -29
  5. package/dist-es/commands/DeleteAnomalyDetectorCommand.js +21 -28
  6. package/dist-es/commands/DeleteDashboardsCommand.js +21 -28
  7. package/dist-es/commands/DeleteInsightRulesCommand.js +21 -28
  8. package/dist-es/commands/DeleteMetricStreamCommand.js +21 -28
  9. package/dist-es/commands/DescribeAlarmHistoryCommand.js +21 -28
  10. package/dist-es/commands/DescribeAlarmsCommand.js +21 -28
  11. package/dist-es/commands/DescribeAlarmsForMetricCommand.js +21 -28
  12. package/dist-es/commands/DescribeAnomalyDetectorsCommand.js +21 -28
  13. package/dist-es/commands/DescribeInsightRulesCommand.js +21 -28
  14. package/dist-es/commands/DisableAlarmActionsCommand.js +22 -29
  15. package/dist-es/commands/DisableInsightRulesCommand.js +21 -28
  16. package/dist-es/commands/EnableAlarmActionsCommand.js +22 -29
  17. package/dist-es/commands/EnableInsightRulesCommand.js +21 -28
  18. package/dist-es/commands/GetDashboardCommand.js +21 -28
  19. package/dist-es/commands/GetInsightRuleReportCommand.js +21 -28
  20. package/dist-es/commands/GetMetricDataCommand.js +21 -28
  21. package/dist-es/commands/GetMetricStatisticsCommand.js +21 -28
  22. package/dist-es/commands/GetMetricStreamCommand.js +21 -28
  23. package/dist-es/commands/GetMetricWidgetImageCommand.js +21 -28
  24. package/dist-es/commands/ListDashboardsCommand.js +21 -28
  25. package/dist-es/commands/ListManagedInsightRulesCommand.js +21 -28
  26. package/dist-es/commands/ListMetricStreamsCommand.js +21 -28
  27. package/dist-es/commands/ListMetricsCommand.js +21 -28
  28. package/dist-es/commands/ListTagsForResourceCommand.js +21 -28
  29. package/dist-es/commands/PutAnomalyDetectorCommand.js +21 -28
  30. package/dist-es/commands/PutCompositeAlarmCommand.js +22 -29
  31. package/dist-es/commands/PutDashboardCommand.js +21 -28
  32. package/dist-es/commands/PutInsightRuleCommand.js +21 -28
  33. package/dist-es/commands/PutManagedInsightRulesCommand.js +21 -28
  34. package/dist-es/commands/PutMetricAlarmCommand.js +22 -29
  35. package/dist-es/commands/PutMetricDataCommand.js +22 -29
  36. package/dist-es/commands/PutMetricStreamCommand.js +21 -28
  37. package/dist-es/commands/SetAlarmStateCommand.js +22 -29
  38. package/dist-es/commands/StartMetricStreamsCommand.js +21 -28
  39. package/dist-es/commands/StopMetricStreamsCommand.js +21 -28
  40. package/dist-es/commands/TagResourceCommand.js +21 -28
  41. package/dist-es/commands/UntagResourceCommand.js +21 -28
  42. package/dist-es/endpoints.js +8 -8
  43. package/dist-es/models/CloudWatchServiceException.js +5 -10
  44. package/dist-es/models/models_0.js +459 -254
  45. package/dist-es/pagination/DescribeAlarmHistoryPaginator.js +25 -68
  46. package/dist-es/pagination/DescribeAlarmsPaginator.js +25 -68
  47. package/dist-es/pagination/DescribeAnomalyDetectorsPaginator.js +25 -68
  48. package/dist-es/pagination/DescribeInsightRulesPaginator.js +25 -68
  49. package/dist-es/pagination/GetMetricDataPaginator.js +25 -68
  50. package/dist-es/pagination/ListDashboardsPaginator.js +24 -67
  51. package/dist-es/pagination/ListManagedInsightRulesPaginator.js +25 -68
  52. package/dist-es/pagination/ListMetricStreamsPaginator.js +25 -68
  53. package/dist-es/pagination/ListMetricsPaginator.js +24 -67
  54. package/dist-es/protocols/Aws_query.js +2741 -3777
  55. package/dist-es/runtimeConfig.browser.js +26 -12
  56. package/dist-es/runtimeConfig.js +30 -12
  57. package/dist-es/runtimeConfig.native.js +8 -5
  58. package/dist-es/runtimeConfig.shared.js +8 -11
  59. package/dist-es/waiters/waitForAlarmExists.js +29 -49
  60. package/dist-es/waiters/waitForCompositeAlarmExists.js +29 -49
  61. package/package.json +34 -34
@@ -1,4 +1,3 @@
1
- import { __extends } from "tslib";
2
1
  import { resolveEndpointsConfig, resolveRegionConfig, } from "@aws-sdk/config-resolver";
3
2
  import { getContentLengthPlugin } from "@aws-sdk/middleware-content-length";
4
3
  import { getHostHeaderPlugin, resolveHostHeaderConfig, } from "@aws-sdk/middleware-host-header";
@@ -9,31 +8,26 @@ import { getAwsAuthPlugin, resolveAwsAuthConfig, } from "@aws-sdk/middleware-sig
9
8
  import { getUserAgentPlugin, resolveUserAgentConfig, } from "@aws-sdk/middleware-user-agent";
10
9
  import { Client as __Client, } from "@aws-sdk/smithy-client";
11
10
  import { getRuntimeConfig as __getRuntimeConfig } from "./runtimeConfig";
12
- var CloudWatchClient = (function (_super) {
13
- __extends(CloudWatchClient, _super);
14
- function CloudWatchClient(configuration) {
15
- var _this = this;
16
- var _config_0 = __getRuntimeConfig(configuration);
17
- var _config_1 = resolveRegionConfig(_config_0);
18
- var _config_2 = resolveEndpointsConfig(_config_1);
19
- var _config_3 = resolveRetryConfig(_config_2);
20
- var _config_4 = resolveHostHeaderConfig(_config_3);
21
- var _config_5 = resolveAwsAuthConfig(_config_4);
22
- var _config_6 = resolveUserAgentConfig(_config_5);
23
- _this = _super.call(this, _config_6) || this;
24
- _this.config = _config_6;
25
- _this.middlewareStack.use(getRetryPlugin(_this.config));
26
- _this.middlewareStack.use(getContentLengthPlugin(_this.config));
27
- _this.middlewareStack.use(getHostHeaderPlugin(_this.config));
28
- _this.middlewareStack.use(getLoggerPlugin(_this.config));
29
- _this.middlewareStack.use(getRecursionDetectionPlugin(_this.config));
30
- _this.middlewareStack.use(getAwsAuthPlugin(_this.config));
31
- _this.middlewareStack.use(getUserAgentPlugin(_this.config));
32
- return _this;
11
+ export class CloudWatchClient extends __Client {
12
+ constructor(configuration) {
13
+ const _config_0 = __getRuntimeConfig(configuration);
14
+ const _config_1 = resolveRegionConfig(_config_0);
15
+ const _config_2 = resolveEndpointsConfig(_config_1);
16
+ const _config_3 = resolveRetryConfig(_config_2);
17
+ const _config_4 = resolveHostHeaderConfig(_config_3);
18
+ const _config_5 = resolveAwsAuthConfig(_config_4);
19
+ const _config_6 = resolveUserAgentConfig(_config_5);
20
+ super(_config_6);
21
+ this.config = _config_6;
22
+ this.middlewareStack.use(getRetryPlugin(this.config));
23
+ this.middlewareStack.use(getContentLengthPlugin(this.config));
24
+ this.middlewareStack.use(getHostHeaderPlugin(this.config));
25
+ this.middlewareStack.use(getLoggerPlugin(this.config));
26
+ this.middlewareStack.use(getRecursionDetectionPlugin(this.config));
27
+ this.middlewareStack.use(getAwsAuthPlugin(this.config));
28
+ this.middlewareStack.use(getUserAgentPlugin(this.config));
33
29
  }
34
- CloudWatchClient.prototype.destroy = function () {
35
- _super.prototype.destroy.call(this);
36
- };
37
- return CloudWatchClient;
38
- }(__Client));
39
- export { CloudWatchClient };
30
+ destroy() {
31
+ super.destroy();
32
+ }
33
+ }
@@ -1,39 +1,32 @@
1
- import { __extends } from "tslib";
2
1
  import { getSerdePlugin } from "@aws-sdk/middleware-serde";
3
2
  import { Command as $Command } from "@aws-sdk/smithy-client";
4
3
  import { DeleteAlarmsInputFilterSensitiveLog } from "../models/models_0";
5
4
  import { deserializeAws_queryDeleteAlarmsCommand, serializeAws_queryDeleteAlarmsCommand } from "../protocols/Aws_query";
6
- var DeleteAlarmsCommand = (function (_super) {
7
- __extends(DeleteAlarmsCommand, _super);
8
- function DeleteAlarmsCommand(input) {
9
- var _this = _super.call(this) || this;
10
- _this.input = input;
11
- return _this;
5
+ export class DeleteAlarmsCommand extends $Command {
6
+ constructor(input) {
7
+ super();
8
+ this.input = input;
12
9
  }
13
- DeleteAlarmsCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
10
+ resolveMiddleware(clientStack, configuration, options) {
14
11
  this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
15
- var stack = clientStack.concat(this.middlewareStack);
16
- var logger = configuration.logger;
17
- var clientName = "CloudWatchClient";
18
- var commandName = "DeleteAlarmsCommand";
19
- var handlerExecutionContext = {
20
- logger: logger,
21
- clientName: clientName,
22
- commandName: commandName,
12
+ const stack = clientStack.concat(this.middlewareStack);
13
+ const { logger } = configuration;
14
+ const clientName = "CloudWatchClient";
15
+ const commandName = "DeleteAlarmsCommand";
16
+ const handlerExecutionContext = {
17
+ logger,
18
+ clientName,
19
+ commandName,
23
20
  inputFilterSensitiveLog: DeleteAlarmsInputFilterSensitiveLog,
24
- outputFilterSensitiveLog: function (output) { return output; },
21
+ outputFilterSensitiveLog: (output) => output,
25
22
  };
26
- var requestHandler = configuration.requestHandler;
27
- return stack.resolve(function (request) {
28
- return requestHandler.handle(request.request, options || {});
29
- }, handlerExecutionContext);
30
- };
31
- DeleteAlarmsCommand.prototype.serialize = function (input, context) {
23
+ const { requestHandler } = configuration;
24
+ return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
25
+ }
26
+ serialize(input, context) {
32
27
  return serializeAws_queryDeleteAlarmsCommand(input, context);
33
- };
34
- DeleteAlarmsCommand.prototype.deserialize = function (output, context) {
28
+ }
29
+ deserialize(output, context) {
35
30
  return deserializeAws_queryDeleteAlarmsCommand(output, context);
36
- };
37
- return DeleteAlarmsCommand;
38
- }($Command));
39
- export { DeleteAlarmsCommand };
31
+ }
32
+ }
@@ -1,39 +1,32 @@
1
- import { __extends } from "tslib";
2
1
  import { getSerdePlugin } from "@aws-sdk/middleware-serde";
3
2
  import { Command as $Command } from "@aws-sdk/smithy-client";
4
3
  import { DeleteAnomalyDetectorInputFilterSensitiveLog, DeleteAnomalyDetectorOutputFilterSensitiveLog, } from "../models/models_0";
5
4
  import { deserializeAws_queryDeleteAnomalyDetectorCommand, serializeAws_queryDeleteAnomalyDetectorCommand, } from "../protocols/Aws_query";
6
- var DeleteAnomalyDetectorCommand = (function (_super) {
7
- __extends(DeleteAnomalyDetectorCommand, _super);
8
- function DeleteAnomalyDetectorCommand(input) {
9
- var _this = _super.call(this) || this;
10
- _this.input = input;
11
- return _this;
5
+ export class DeleteAnomalyDetectorCommand extends $Command {
6
+ constructor(input) {
7
+ super();
8
+ this.input = input;
12
9
  }
13
- DeleteAnomalyDetectorCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
10
+ resolveMiddleware(clientStack, configuration, options) {
14
11
  this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
15
- var stack = clientStack.concat(this.middlewareStack);
16
- var logger = configuration.logger;
17
- var clientName = "CloudWatchClient";
18
- var commandName = "DeleteAnomalyDetectorCommand";
19
- var handlerExecutionContext = {
20
- logger: logger,
21
- clientName: clientName,
22
- commandName: commandName,
12
+ const stack = clientStack.concat(this.middlewareStack);
13
+ const { logger } = configuration;
14
+ const clientName = "CloudWatchClient";
15
+ const commandName = "DeleteAnomalyDetectorCommand";
16
+ const handlerExecutionContext = {
17
+ logger,
18
+ clientName,
19
+ commandName,
23
20
  inputFilterSensitiveLog: DeleteAnomalyDetectorInputFilterSensitiveLog,
24
21
  outputFilterSensitiveLog: DeleteAnomalyDetectorOutputFilterSensitiveLog,
25
22
  };
26
- var requestHandler = configuration.requestHandler;
27
- return stack.resolve(function (request) {
28
- return requestHandler.handle(request.request, options || {});
29
- }, handlerExecutionContext);
30
- };
31
- DeleteAnomalyDetectorCommand.prototype.serialize = function (input, context) {
23
+ const { requestHandler } = configuration;
24
+ return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
25
+ }
26
+ serialize(input, context) {
32
27
  return serializeAws_queryDeleteAnomalyDetectorCommand(input, context);
33
- };
34
- DeleteAnomalyDetectorCommand.prototype.deserialize = function (output, context) {
28
+ }
29
+ deserialize(output, context) {
35
30
  return deserializeAws_queryDeleteAnomalyDetectorCommand(output, context);
36
- };
37
- return DeleteAnomalyDetectorCommand;
38
- }($Command));
39
- export { DeleteAnomalyDetectorCommand };
31
+ }
32
+ }
@@ -1,39 +1,32 @@
1
- import { __extends } from "tslib";
2
1
  import { getSerdePlugin } from "@aws-sdk/middleware-serde";
3
2
  import { Command as $Command } from "@aws-sdk/smithy-client";
4
3
  import { DeleteDashboardsInputFilterSensitiveLog, DeleteDashboardsOutputFilterSensitiveLog, } from "../models/models_0";
5
4
  import { deserializeAws_queryDeleteDashboardsCommand, serializeAws_queryDeleteDashboardsCommand, } from "../protocols/Aws_query";
6
- var DeleteDashboardsCommand = (function (_super) {
7
- __extends(DeleteDashboardsCommand, _super);
8
- function DeleteDashboardsCommand(input) {
9
- var _this = _super.call(this) || this;
10
- _this.input = input;
11
- return _this;
5
+ export class DeleteDashboardsCommand extends $Command {
6
+ constructor(input) {
7
+ super();
8
+ this.input = input;
12
9
  }
13
- DeleteDashboardsCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
10
+ resolveMiddleware(clientStack, configuration, options) {
14
11
  this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
15
- var stack = clientStack.concat(this.middlewareStack);
16
- var logger = configuration.logger;
17
- var clientName = "CloudWatchClient";
18
- var commandName = "DeleteDashboardsCommand";
19
- var handlerExecutionContext = {
20
- logger: logger,
21
- clientName: clientName,
22
- commandName: commandName,
12
+ const stack = clientStack.concat(this.middlewareStack);
13
+ const { logger } = configuration;
14
+ const clientName = "CloudWatchClient";
15
+ const commandName = "DeleteDashboardsCommand";
16
+ const handlerExecutionContext = {
17
+ logger,
18
+ clientName,
19
+ commandName,
23
20
  inputFilterSensitiveLog: DeleteDashboardsInputFilterSensitiveLog,
24
21
  outputFilterSensitiveLog: DeleteDashboardsOutputFilterSensitiveLog,
25
22
  };
26
- var requestHandler = configuration.requestHandler;
27
- return stack.resolve(function (request) {
28
- return requestHandler.handle(request.request, options || {});
29
- }, handlerExecutionContext);
30
- };
31
- DeleteDashboardsCommand.prototype.serialize = function (input, context) {
23
+ const { requestHandler } = configuration;
24
+ return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
25
+ }
26
+ serialize(input, context) {
32
27
  return serializeAws_queryDeleteDashboardsCommand(input, context);
33
- };
34
- DeleteDashboardsCommand.prototype.deserialize = function (output, context) {
28
+ }
29
+ deserialize(output, context) {
35
30
  return deserializeAws_queryDeleteDashboardsCommand(output, context);
36
- };
37
- return DeleteDashboardsCommand;
38
- }($Command));
39
- export { DeleteDashboardsCommand };
31
+ }
32
+ }
@@ -1,39 +1,32 @@
1
- import { __extends } from "tslib";
2
1
  import { getSerdePlugin } from "@aws-sdk/middleware-serde";
3
2
  import { Command as $Command } from "@aws-sdk/smithy-client";
4
3
  import { DeleteInsightRulesInputFilterSensitiveLog, DeleteInsightRulesOutputFilterSensitiveLog, } from "../models/models_0";
5
4
  import { deserializeAws_queryDeleteInsightRulesCommand, serializeAws_queryDeleteInsightRulesCommand, } from "../protocols/Aws_query";
6
- var DeleteInsightRulesCommand = (function (_super) {
7
- __extends(DeleteInsightRulesCommand, _super);
8
- function DeleteInsightRulesCommand(input) {
9
- var _this = _super.call(this) || this;
10
- _this.input = input;
11
- return _this;
5
+ export class DeleteInsightRulesCommand extends $Command {
6
+ constructor(input) {
7
+ super();
8
+ this.input = input;
12
9
  }
13
- DeleteInsightRulesCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
10
+ resolveMiddleware(clientStack, configuration, options) {
14
11
  this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
15
- var stack = clientStack.concat(this.middlewareStack);
16
- var logger = configuration.logger;
17
- var clientName = "CloudWatchClient";
18
- var commandName = "DeleteInsightRulesCommand";
19
- var handlerExecutionContext = {
20
- logger: logger,
21
- clientName: clientName,
22
- commandName: commandName,
12
+ const stack = clientStack.concat(this.middlewareStack);
13
+ const { logger } = configuration;
14
+ const clientName = "CloudWatchClient";
15
+ const commandName = "DeleteInsightRulesCommand";
16
+ const handlerExecutionContext = {
17
+ logger,
18
+ clientName,
19
+ commandName,
23
20
  inputFilterSensitiveLog: DeleteInsightRulesInputFilterSensitiveLog,
24
21
  outputFilterSensitiveLog: DeleteInsightRulesOutputFilterSensitiveLog,
25
22
  };
26
- var requestHandler = configuration.requestHandler;
27
- return stack.resolve(function (request) {
28
- return requestHandler.handle(request.request, options || {});
29
- }, handlerExecutionContext);
30
- };
31
- DeleteInsightRulesCommand.prototype.serialize = function (input, context) {
23
+ const { requestHandler } = configuration;
24
+ return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
25
+ }
26
+ serialize(input, context) {
32
27
  return serializeAws_queryDeleteInsightRulesCommand(input, context);
33
- };
34
- DeleteInsightRulesCommand.prototype.deserialize = function (output, context) {
28
+ }
29
+ deserialize(output, context) {
35
30
  return deserializeAws_queryDeleteInsightRulesCommand(output, context);
36
- };
37
- return DeleteInsightRulesCommand;
38
- }($Command));
39
- export { DeleteInsightRulesCommand };
31
+ }
32
+ }
@@ -1,39 +1,32 @@
1
- import { __extends } from "tslib";
2
1
  import { getSerdePlugin } from "@aws-sdk/middleware-serde";
3
2
  import { Command as $Command } from "@aws-sdk/smithy-client";
4
3
  import { DeleteMetricStreamInputFilterSensitiveLog, DeleteMetricStreamOutputFilterSensitiveLog, } from "../models/models_0";
5
4
  import { deserializeAws_queryDeleteMetricStreamCommand, serializeAws_queryDeleteMetricStreamCommand, } from "../protocols/Aws_query";
6
- var DeleteMetricStreamCommand = (function (_super) {
7
- __extends(DeleteMetricStreamCommand, _super);
8
- function DeleteMetricStreamCommand(input) {
9
- var _this = _super.call(this) || this;
10
- _this.input = input;
11
- return _this;
5
+ export class DeleteMetricStreamCommand extends $Command {
6
+ constructor(input) {
7
+ super();
8
+ this.input = input;
12
9
  }
13
- DeleteMetricStreamCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
10
+ resolveMiddleware(clientStack, configuration, options) {
14
11
  this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
15
- var stack = clientStack.concat(this.middlewareStack);
16
- var logger = configuration.logger;
17
- var clientName = "CloudWatchClient";
18
- var commandName = "DeleteMetricStreamCommand";
19
- var handlerExecutionContext = {
20
- logger: logger,
21
- clientName: clientName,
22
- commandName: commandName,
12
+ const stack = clientStack.concat(this.middlewareStack);
13
+ const { logger } = configuration;
14
+ const clientName = "CloudWatchClient";
15
+ const commandName = "DeleteMetricStreamCommand";
16
+ const handlerExecutionContext = {
17
+ logger,
18
+ clientName,
19
+ commandName,
23
20
  inputFilterSensitiveLog: DeleteMetricStreamInputFilterSensitiveLog,
24
21
  outputFilterSensitiveLog: DeleteMetricStreamOutputFilterSensitiveLog,
25
22
  };
26
- var requestHandler = configuration.requestHandler;
27
- return stack.resolve(function (request) {
28
- return requestHandler.handle(request.request, options || {});
29
- }, handlerExecutionContext);
30
- };
31
- DeleteMetricStreamCommand.prototype.serialize = function (input, context) {
23
+ const { requestHandler } = configuration;
24
+ return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
25
+ }
26
+ serialize(input, context) {
32
27
  return serializeAws_queryDeleteMetricStreamCommand(input, context);
33
- };
34
- DeleteMetricStreamCommand.prototype.deserialize = function (output, context) {
28
+ }
29
+ deserialize(output, context) {
35
30
  return deserializeAws_queryDeleteMetricStreamCommand(output, context);
36
- };
37
- return DeleteMetricStreamCommand;
38
- }($Command));
39
- export { DeleteMetricStreamCommand };
31
+ }
32
+ }
@@ -1,39 +1,32 @@
1
- import { __extends } from "tslib";
2
1
  import { getSerdePlugin } from "@aws-sdk/middleware-serde";
3
2
  import { Command as $Command } from "@aws-sdk/smithy-client";
4
3
  import { DescribeAlarmHistoryInputFilterSensitiveLog, DescribeAlarmHistoryOutputFilterSensitiveLog, } from "../models/models_0";
5
4
  import { deserializeAws_queryDescribeAlarmHistoryCommand, serializeAws_queryDescribeAlarmHistoryCommand, } from "../protocols/Aws_query";
6
- var DescribeAlarmHistoryCommand = (function (_super) {
7
- __extends(DescribeAlarmHistoryCommand, _super);
8
- function DescribeAlarmHistoryCommand(input) {
9
- var _this = _super.call(this) || this;
10
- _this.input = input;
11
- return _this;
5
+ export class DescribeAlarmHistoryCommand extends $Command {
6
+ constructor(input) {
7
+ super();
8
+ this.input = input;
12
9
  }
13
- DescribeAlarmHistoryCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
10
+ resolveMiddleware(clientStack, configuration, options) {
14
11
  this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
15
- var stack = clientStack.concat(this.middlewareStack);
16
- var logger = configuration.logger;
17
- var clientName = "CloudWatchClient";
18
- var commandName = "DescribeAlarmHistoryCommand";
19
- var handlerExecutionContext = {
20
- logger: logger,
21
- clientName: clientName,
22
- commandName: commandName,
12
+ const stack = clientStack.concat(this.middlewareStack);
13
+ const { logger } = configuration;
14
+ const clientName = "CloudWatchClient";
15
+ const commandName = "DescribeAlarmHistoryCommand";
16
+ const handlerExecutionContext = {
17
+ logger,
18
+ clientName,
19
+ commandName,
23
20
  inputFilterSensitiveLog: DescribeAlarmHistoryInputFilterSensitiveLog,
24
21
  outputFilterSensitiveLog: DescribeAlarmHistoryOutputFilterSensitiveLog,
25
22
  };
26
- var requestHandler = configuration.requestHandler;
27
- return stack.resolve(function (request) {
28
- return requestHandler.handle(request.request, options || {});
29
- }, handlerExecutionContext);
30
- };
31
- DescribeAlarmHistoryCommand.prototype.serialize = function (input, context) {
23
+ const { requestHandler } = configuration;
24
+ return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
25
+ }
26
+ serialize(input, context) {
32
27
  return serializeAws_queryDescribeAlarmHistoryCommand(input, context);
33
- };
34
- DescribeAlarmHistoryCommand.prototype.deserialize = function (output, context) {
28
+ }
29
+ deserialize(output, context) {
35
30
  return deserializeAws_queryDescribeAlarmHistoryCommand(output, context);
36
- };
37
- return DescribeAlarmHistoryCommand;
38
- }($Command));
39
- export { DescribeAlarmHistoryCommand };
31
+ }
32
+ }
@@ -1,39 +1,32 @@
1
- import { __extends } from "tslib";
2
1
  import { getSerdePlugin } from "@aws-sdk/middleware-serde";
3
2
  import { Command as $Command } from "@aws-sdk/smithy-client";
4
3
  import { DescribeAlarmsInputFilterSensitiveLog, DescribeAlarmsOutputFilterSensitiveLog, } from "../models/models_0";
5
4
  import { deserializeAws_queryDescribeAlarmsCommand, serializeAws_queryDescribeAlarmsCommand, } from "../protocols/Aws_query";
6
- var DescribeAlarmsCommand = (function (_super) {
7
- __extends(DescribeAlarmsCommand, _super);
8
- function DescribeAlarmsCommand(input) {
9
- var _this = _super.call(this) || this;
10
- _this.input = input;
11
- return _this;
5
+ export class DescribeAlarmsCommand extends $Command {
6
+ constructor(input) {
7
+ super();
8
+ this.input = input;
12
9
  }
13
- DescribeAlarmsCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
10
+ resolveMiddleware(clientStack, configuration, options) {
14
11
  this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
15
- var stack = clientStack.concat(this.middlewareStack);
16
- var logger = configuration.logger;
17
- var clientName = "CloudWatchClient";
18
- var commandName = "DescribeAlarmsCommand";
19
- var handlerExecutionContext = {
20
- logger: logger,
21
- clientName: clientName,
22
- commandName: commandName,
12
+ const stack = clientStack.concat(this.middlewareStack);
13
+ const { logger } = configuration;
14
+ const clientName = "CloudWatchClient";
15
+ const commandName = "DescribeAlarmsCommand";
16
+ const handlerExecutionContext = {
17
+ logger,
18
+ clientName,
19
+ commandName,
23
20
  inputFilterSensitiveLog: DescribeAlarmsInputFilterSensitiveLog,
24
21
  outputFilterSensitiveLog: DescribeAlarmsOutputFilterSensitiveLog,
25
22
  };
26
- var requestHandler = configuration.requestHandler;
27
- return stack.resolve(function (request) {
28
- return requestHandler.handle(request.request, options || {});
29
- }, handlerExecutionContext);
30
- };
31
- DescribeAlarmsCommand.prototype.serialize = function (input, context) {
23
+ const { requestHandler } = configuration;
24
+ return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
25
+ }
26
+ serialize(input, context) {
32
27
  return serializeAws_queryDescribeAlarmsCommand(input, context);
33
- };
34
- DescribeAlarmsCommand.prototype.deserialize = function (output, context) {
28
+ }
29
+ deserialize(output, context) {
35
30
  return deserializeAws_queryDescribeAlarmsCommand(output, context);
36
- };
37
- return DescribeAlarmsCommand;
38
- }($Command));
39
- export { DescribeAlarmsCommand };
31
+ }
32
+ }
@@ -1,39 +1,32 @@
1
- import { __extends } from "tslib";
2
1
  import { getSerdePlugin } from "@aws-sdk/middleware-serde";
3
2
  import { Command as $Command } from "@aws-sdk/smithy-client";
4
3
  import { DescribeAlarmsForMetricInputFilterSensitiveLog, DescribeAlarmsForMetricOutputFilterSensitiveLog, } from "../models/models_0";
5
4
  import { deserializeAws_queryDescribeAlarmsForMetricCommand, serializeAws_queryDescribeAlarmsForMetricCommand, } from "../protocols/Aws_query";
6
- var DescribeAlarmsForMetricCommand = (function (_super) {
7
- __extends(DescribeAlarmsForMetricCommand, _super);
8
- function DescribeAlarmsForMetricCommand(input) {
9
- var _this = _super.call(this) || this;
10
- _this.input = input;
11
- return _this;
5
+ export class DescribeAlarmsForMetricCommand extends $Command {
6
+ constructor(input) {
7
+ super();
8
+ this.input = input;
12
9
  }
13
- DescribeAlarmsForMetricCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
10
+ resolveMiddleware(clientStack, configuration, options) {
14
11
  this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
15
- var stack = clientStack.concat(this.middlewareStack);
16
- var logger = configuration.logger;
17
- var clientName = "CloudWatchClient";
18
- var commandName = "DescribeAlarmsForMetricCommand";
19
- var handlerExecutionContext = {
20
- logger: logger,
21
- clientName: clientName,
22
- commandName: commandName,
12
+ const stack = clientStack.concat(this.middlewareStack);
13
+ const { logger } = configuration;
14
+ const clientName = "CloudWatchClient";
15
+ const commandName = "DescribeAlarmsForMetricCommand";
16
+ const handlerExecutionContext = {
17
+ logger,
18
+ clientName,
19
+ commandName,
23
20
  inputFilterSensitiveLog: DescribeAlarmsForMetricInputFilterSensitiveLog,
24
21
  outputFilterSensitiveLog: DescribeAlarmsForMetricOutputFilterSensitiveLog,
25
22
  };
26
- var requestHandler = configuration.requestHandler;
27
- return stack.resolve(function (request) {
28
- return requestHandler.handle(request.request, options || {});
29
- }, handlerExecutionContext);
30
- };
31
- DescribeAlarmsForMetricCommand.prototype.serialize = function (input, context) {
23
+ const { requestHandler } = configuration;
24
+ return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
25
+ }
26
+ serialize(input, context) {
32
27
  return serializeAws_queryDescribeAlarmsForMetricCommand(input, context);
33
- };
34
- DescribeAlarmsForMetricCommand.prototype.deserialize = function (output, context) {
28
+ }
29
+ deserialize(output, context) {
35
30
  return deserializeAws_queryDescribeAlarmsForMetricCommand(output, context);
36
- };
37
- return DescribeAlarmsForMetricCommand;
38
- }($Command));
39
- export { DescribeAlarmsForMetricCommand };
31
+ }
32
+ }
@@ -1,39 +1,32 @@
1
- import { __extends } from "tslib";
2
1
  import { getSerdePlugin } from "@aws-sdk/middleware-serde";
3
2
  import { Command as $Command } from "@aws-sdk/smithy-client";
4
3
  import { DescribeAnomalyDetectorsInputFilterSensitiveLog, DescribeAnomalyDetectorsOutputFilterSensitiveLog, } from "../models/models_0";
5
4
  import { deserializeAws_queryDescribeAnomalyDetectorsCommand, serializeAws_queryDescribeAnomalyDetectorsCommand, } from "../protocols/Aws_query";
6
- var DescribeAnomalyDetectorsCommand = (function (_super) {
7
- __extends(DescribeAnomalyDetectorsCommand, _super);
8
- function DescribeAnomalyDetectorsCommand(input) {
9
- var _this = _super.call(this) || this;
10
- _this.input = input;
11
- return _this;
5
+ export class DescribeAnomalyDetectorsCommand extends $Command {
6
+ constructor(input) {
7
+ super();
8
+ this.input = input;
12
9
  }
13
- DescribeAnomalyDetectorsCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
10
+ resolveMiddleware(clientStack, configuration, options) {
14
11
  this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
15
- var stack = clientStack.concat(this.middlewareStack);
16
- var logger = configuration.logger;
17
- var clientName = "CloudWatchClient";
18
- var commandName = "DescribeAnomalyDetectorsCommand";
19
- var handlerExecutionContext = {
20
- logger: logger,
21
- clientName: clientName,
22
- commandName: commandName,
12
+ const stack = clientStack.concat(this.middlewareStack);
13
+ const { logger } = configuration;
14
+ const clientName = "CloudWatchClient";
15
+ const commandName = "DescribeAnomalyDetectorsCommand";
16
+ const handlerExecutionContext = {
17
+ logger,
18
+ clientName,
19
+ commandName,
23
20
  inputFilterSensitiveLog: DescribeAnomalyDetectorsInputFilterSensitiveLog,
24
21
  outputFilterSensitiveLog: DescribeAnomalyDetectorsOutputFilterSensitiveLog,
25
22
  };
26
- var requestHandler = configuration.requestHandler;
27
- return stack.resolve(function (request) {
28
- return requestHandler.handle(request.request, options || {});
29
- }, handlerExecutionContext);
30
- };
31
- DescribeAnomalyDetectorsCommand.prototype.serialize = function (input, context) {
23
+ const { requestHandler } = configuration;
24
+ return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
25
+ }
26
+ serialize(input, context) {
32
27
  return serializeAws_queryDescribeAnomalyDetectorsCommand(input, context);
33
- };
34
- DescribeAnomalyDetectorsCommand.prototype.deserialize = function (output, context) {
28
+ }
29
+ deserialize(output, context) {
35
30
  return deserializeAws_queryDescribeAnomalyDetectorsCommand(output, context);
36
- };
37
- return DescribeAnomalyDetectorsCommand;
38
- }($Command));
39
- export { DescribeAnomalyDetectorsCommand };
31
+ }
32
+ }