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