@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,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 { DescribeInsightRulesInputFilterSensitiveLog, DescribeInsightRulesOutputFilterSensitiveLog, } from "../models/models_0";
4
5
  import { deserializeAws_queryDescribeInsightRulesCommand, serializeAws_queryDescribeInsightRulesCommand, } from "../protocols/Aws_query";
5
- export class DescribeInsightRulesCommand extends $Command {
6
- constructor(input) {
7
- super();
8
- this.input = input;
6
+ var DescribeInsightRulesCommand = (function (_super) {
7
+ __extends(DescribeInsightRulesCommand, _super);
8
+ function DescribeInsightRulesCommand(input) {
9
+ var _this = _super.call(this) || this;
10
+ _this.input = input;
11
+ return _this;
9
12
  }
10
- resolveMiddleware(clientStack, configuration, options) {
13
+ DescribeInsightRulesCommand.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 = "DescribeInsightRulesCommand";
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 = "DescribeInsightRulesCommand";
19
+ var handlerExecutionContext = {
20
+ logger: logger,
21
+ clientName: clientName,
22
+ commandName: commandName,
20
23
  inputFilterSensitiveLog: DescribeInsightRulesInputFilterSensitiveLog,
21
24
  outputFilterSensitiveLog: DescribeInsightRulesOutputFilterSensitiveLog,
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
+ DescribeInsightRulesCommand.prototype.serialize = function (input, context) {
27
32
  return serializeAws_queryDescribeInsightRulesCommand(input, context);
28
- }
29
- deserialize(output, context) {
33
+ };
34
+ DescribeInsightRulesCommand.prototype.deserialize = function (output, context) {
30
35
  return deserializeAws_queryDescribeInsightRulesCommand(output, context);
31
- }
32
- }
36
+ };
37
+ return DescribeInsightRulesCommand;
38
+ }($Command));
39
+ export { DescribeInsightRulesCommand };
@@ -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 { DisableAlarmActionsInputFilterSensitiveLog } from "../models/models_0";
4
5
  import { deserializeAws_queryDisableAlarmActionsCommand, serializeAws_queryDisableAlarmActionsCommand, } from "../protocols/Aws_query";
5
- export class DisableAlarmActionsCommand extends $Command {
6
- constructor(input) {
7
- super();
8
- this.input = input;
6
+ var DisableAlarmActionsCommand = (function (_super) {
7
+ __extends(DisableAlarmActionsCommand, _super);
8
+ function DisableAlarmActionsCommand(input) {
9
+ var _this = _super.call(this) || this;
10
+ _this.input = input;
11
+ return _this;
9
12
  }
10
- resolveMiddleware(clientStack, configuration, options) {
13
+ DisableAlarmActionsCommand.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 = "DisableAlarmActionsCommand";
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 = "DisableAlarmActionsCommand";
19
+ var handlerExecutionContext = {
20
+ logger: logger,
21
+ clientName: clientName,
22
+ commandName: commandName,
20
23
  inputFilterSensitiveLog: DisableAlarmActionsInputFilterSensitiveLog,
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
+ DisableAlarmActionsCommand.prototype.serialize = function (input, context) {
27
32
  return serializeAws_queryDisableAlarmActionsCommand(input, context);
28
- }
29
- deserialize(output, context) {
33
+ };
34
+ DisableAlarmActionsCommand.prototype.deserialize = function (output, context) {
30
35
  return deserializeAws_queryDisableAlarmActionsCommand(output, context);
31
- }
32
- }
36
+ };
37
+ return DisableAlarmActionsCommand;
38
+ }($Command));
39
+ export { DisableAlarmActionsCommand };
@@ -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 { DisableInsightRulesInputFilterSensitiveLog, DisableInsightRulesOutputFilterSensitiveLog, } from "../models/models_0";
4
5
  import { deserializeAws_queryDisableInsightRulesCommand, serializeAws_queryDisableInsightRulesCommand, } from "../protocols/Aws_query";
5
- export class DisableInsightRulesCommand extends $Command {
6
- constructor(input) {
7
- super();
8
- this.input = input;
6
+ var DisableInsightRulesCommand = (function (_super) {
7
+ __extends(DisableInsightRulesCommand, _super);
8
+ function DisableInsightRulesCommand(input) {
9
+ var _this = _super.call(this) || this;
10
+ _this.input = input;
11
+ return _this;
9
12
  }
10
- resolveMiddleware(clientStack, configuration, options) {
13
+ DisableInsightRulesCommand.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 = "DisableInsightRulesCommand";
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 = "DisableInsightRulesCommand";
19
+ var handlerExecutionContext = {
20
+ logger: logger,
21
+ clientName: clientName,
22
+ commandName: commandName,
20
23
  inputFilterSensitiveLog: DisableInsightRulesInputFilterSensitiveLog,
21
24
  outputFilterSensitiveLog: DisableInsightRulesOutputFilterSensitiveLog,
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
+ DisableInsightRulesCommand.prototype.serialize = function (input, context) {
27
32
  return serializeAws_queryDisableInsightRulesCommand(input, context);
28
- }
29
- deserialize(output, context) {
33
+ };
34
+ DisableInsightRulesCommand.prototype.deserialize = function (output, context) {
30
35
  return deserializeAws_queryDisableInsightRulesCommand(output, context);
31
- }
32
- }
36
+ };
37
+ return DisableInsightRulesCommand;
38
+ }($Command));
39
+ export { DisableInsightRulesCommand };
@@ -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 { EnableAlarmActionsInputFilterSensitiveLog } from "../models/models_0";
4
5
  import { deserializeAws_queryEnableAlarmActionsCommand, serializeAws_queryEnableAlarmActionsCommand, } from "../protocols/Aws_query";
5
- export class EnableAlarmActionsCommand extends $Command {
6
- constructor(input) {
7
- super();
8
- this.input = input;
6
+ var EnableAlarmActionsCommand = (function (_super) {
7
+ __extends(EnableAlarmActionsCommand, _super);
8
+ function EnableAlarmActionsCommand(input) {
9
+ var _this = _super.call(this) || this;
10
+ _this.input = input;
11
+ return _this;
9
12
  }
10
- resolveMiddleware(clientStack, configuration, options) {
13
+ EnableAlarmActionsCommand.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 = "EnableAlarmActionsCommand";
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 = "EnableAlarmActionsCommand";
19
+ var handlerExecutionContext = {
20
+ logger: logger,
21
+ clientName: clientName,
22
+ commandName: commandName,
20
23
  inputFilterSensitiveLog: EnableAlarmActionsInputFilterSensitiveLog,
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
+ EnableAlarmActionsCommand.prototype.serialize = function (input, context) {
27
32
  return serializeAws_queryEnableAlarmActionsCommand(input, context);
28
- }
29
- deserialize(output, context) {
33
+ };
34
+ EnableAlarmActionsCommand.prototype.deserialize = function (output, context) {
30
35
  return deserializeAws_queryEnableAlarmActionsCommand(output, context);
31
- }
32
- }
36
+ };
37
+ return EnableAlarmActionsCommand;
38
+ }($Command));
39
+ export { EnableAlarmActionsCommand };
@@ -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 { EnableInsightRulesInputFilterSensitiveLog, EnableInsightRulesOutputFilterSensitiveLog, } from "../models/models_0";
4
5
  import { deserializeAws_queryEnableInsightRulesCommand, serializeAws_queryEnableInsightRulesCommand, } from "../protocols/Aws_query";
5
- export class EnableInsightRulesCommand extends $Command {
6
- constructor(input) {
7
- super();
8
- this.input = input;
6
+ var EnableInsightRulesCommand = (function (_super) {
7
+ __extends(EnableInsightRulesCommand, _super);
8
+ function EnableInsightRulesCommand(input) {
9
+ var _this = _super.call(this) || this;
10
+ _this.input = input;
11
+ return _this;
9
12
  }
10
- resolveMiddleware(clientStack, configuration, options) {
13
+ EnableInsightRulesCommand.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 = "EnableInsightRulesCommand";
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 = "EnableInsightRulesCommand";
19
+ var handlerExecutionContext = {
20
+ logger: logger,
21
+ clientName: clientName,
22
+ commandName: commandName,
20
23
  inputFilterSensitiveLog: EnableInsightRulesInputFilterSensitiveLog,
21
24
  outputFilterSensitiveLog: EnableInsightRulesOutputFilterSensitiveLog,
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
+ EnableInsightRulesCommand.prototype.serialize = function (input, context) {
27
32
  return serializeAws_queryEnableInsightRulesCommand(input, context);
28
- }
29
- deserialize(output, context) {
33
+ };
34
+ EnableInsightRulesCommand.prototype.deserialize = function (output, context) {
30
35
  return deserializeAws_queryEnableInsightRulesCommand(output, context);
31
- }
32
- }
36
+ };
37
+ return EnableInsightRulesCommand;
38
+ }($Command));
39
+ export { EnableInsightRulesCommand };
@@ -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 { GetDashboardInputFilterSensitiveLog, GetDashboardOutputFilterSensitiveLog, } from "../models/models_0";
4
5
  import { deserializeAws_queryGetDashboardCommand, serializeAws_queryGetDashboardCommand } from "../protocols/Aws_query";
5
- export class GetDashboardCommand extends $Command {
6
- constructor(input) {
7
- super();
8
- this.input = input;
6
+ var GetDashboardCommand = (function (_super) {
7
+ __extends(GetDashboardCommand, _super);
8
+ function GetDashboardCommand(input) {
9
+ var _this = _super.call(this) || this;
10
+ _this.input = input;
11
+ return _this;
9
12
  }
10
- resolveMiddleware(clientStack, configuration, options) {
13
+ GetDashboardCommand.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 = "GetDashboardCommand";
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 = "GetDashboardCommand";
19
+ var handlerExecutionContext = {
20
+ logger: logger,
21
+ clientName: clientName,
22
+ commandName: commandName,
20
23
  inputFilterSensitiveLog: GetDashboardInputFilterSensitiveLog,
21
24
  outputFilterSensitiveLog: GetDashboardOutputFilterSensitiveLog,
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
+ GetDashboardCommand.prototype.serialize = function (input, context) {
27
32
  return serializeAws_queryGetDashboardCommand(input, context);
28
- }
29
- deserialize(output, context) {
33
+ };
34
+ GetDashboardCommand.prototype.deserialize = function (output, context) {
30
35
  return deserializeAws_queryGetDashboardCommand(output, context);
31
- }
32
- }
36
+ };
37
+ return GetDashboardCommand;
38
+ }($Command));
39
+ export { GetDashboardCommand };
@@ -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 { GetInsightRuleReportInputFilterSensitiveLog, GetInsightRuleReportOutputFilterSensitiveLog, } from "../models/models_0";
4
5
  import { deserializeAws_queryGetInsightRuleReportCommand, serializeAws_queryGetInsightRuleReportCommand, } from "../protocols/Aws_query";
5
- export class GetInsightRuleReportCommand extends $Command {
6
- constructor(input) {
7
- super();
8
- this.input = input;
6
+ var GetInsightRuleReportCommand = (function (_super) {
7
+ __extends(GetInsightRuleReportCommand, _super);
8
+ function GetInsightRuleReportCommand(input) {
9
+ var _this = _super.call(this) || this;
10
+ _this.input = input;
11
+ return _this;
9
12
  }
10
- resolveMiddleware(clientStack, configuration, options) {
13
+ GetInsightRuleReportCommand.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 = "GetInsightRuleReportCommand";
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 = "GetInsightRuleReportCommand";
19
+ var handlerExecutionContext = {
20
+ logger: logger,
21
+ clientName: clientName,
22
+ commandName: commandName,
20
23
  inputFilterSensitiveLog: GetInsightRuleReportInputFilterSensitiveLog,
21
24
  outputFilterSensitiveLog: GetInsightRuleReportOutputFilterSensitiveLog,
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
+ GetInsightRuleReportCommand.prototype.serialize = function (input, context) {
27
32
  return serializeAws_queryGetInsightRuleReportCommand(input, context);
28
- }
29
- deserialize(output, context) {
33
+ };
34
+ GetInsightRuleReportCommand.prototype.deserialize = function (output, context) {
30
35
  return deserializeAws_queryGetInsightRuleReportCommand(output, context);
31
- }
32
- }
36
+ };
37
+ return GetInsightRuleReportCommand;
38
+ }($Command));
39
+ export { GetInsightRuleReportCommand };
@@ -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 { GetMetricDataInputFilterSensitiveLog, GetMetricDataOutputFilterSensitiveLog, } from "../models/models_0";
4
5
  import { deserializeAws_queryGetMetricDataCommand, serializeAws_queryGetMetricDataCommand, } from "../protocols/Aws_query";
5
- export class GetMetricDataCommand extends $Command {
6
- constructor(input) {
7
- super();
8
- this.input = input;
6
+ var GetMetricDataCommand = (function (_super) {
7
+ __extends(GetMetricDataCommand, _super);
8
+ function GetMetricDataCommand(input) {
9
+ var _this = _super.call(this) || this;
10
+ _this.input = input;
11
+ return _this;
9
12
  }
10
- resolveMiddleware(clientStack, configuration, options) {
13
+ GetMetricDataCommand.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 = "GetMetricDataCommand";
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 = "GetMetricDataCommand";
19
+ var handlerExecutionContext = {
20
+ logger: logger,
21
+ clientName: clientName,
22
+ commandName: commandName,
20
23
  inputFilterSensitiveLog: GetMetricDataInputFilterSensitiveLog,
21
24
  outputFilterSensitiveLog: GetMetricDataOutputFilterSensitiveLog,
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
+ GetMetricDataCommand.prototype.serialize = function (input, context) {
27
32
  return serializeAws_queryGetMetricDataCommand(input, context);
28
- }
29
- deserialize(output, context) {
33
+ };
34
+ GetMetricDataCommand.prototype.deserialize = function (output, context) {
30
35
  return deserializeAws_queryGetMetricDataCommand(output, context);
31
- }
32
- }
36
+ };
37
+ return GetMetricDataCommand;
38
+ }($Command));
39
+ export { GetMetricDataCommand };
@@ -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 { GetMetricStatisticsInputFilterSensitiveLog, GetMetricStatisticsOutputFilterSensitiveLog, } from "../models/models_0";
4
5
  import { deserializeAws_queryGetMetricStatisticsCommand, serializeAws_queryGetMetricStatisticsCommand, } from "../protocols/Aws_query";
5
- export class GetMetricStatisticsCommand extends $Command {
6
- constructor(input) {
7
- super();
8
- this.input = input;
6
+ var GetMetricStatisticsCommand = (function (_super) {
7
+ __extends(GetMetricStatisticsCommand, _super);
8
+ function GetMetricStatisticsCommand(input) {
9
+ var _this = _super.call(this) || this;
10
+ _this.input = input;
11
+ return _this;
9
12
  }
10
- resolveMiddleware(clientStack, configuration, options) {
13
+ GetMetricStatisticsCommand.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 = "GetMetricStatisticsCommand";
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 = "GetMetricStatisticsCommand";
19
+ var handlerExecutionContext = {
20
+ logger: logger,
21
+ clientName: clientName,
22
+ commandName: commandName,
20
23
  inputFilterSensitiveLog: GetMetricStatisticsInputFilterSensitiveLog,
21
24
  outputFilterSensitiveLog: GetMetricStatisticsOutputFilterSensitiveLog,
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
+ GetMetricStatisticsCommand.prototype.serialize = function (input, context) {
27
32
  return serializeAws_queryGetMetricStatisticsCommand(input, context);
28
- }
29
- deserialize(output, context) {
33
+ };
34
+ GetMetricStatisticsCommand.prototype.deserialize = function (output, context) {
30
35
  return deserializeAws_queryGetMetricStatisticsCommand(output, context);
31
- }
32
- }
36
+ };
37
+ return GetMetricStatisticsCommand;
38
+ }($Command));
39
+ export { GetMetricStatisticsCommand };
@@ -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 { GetMetricStreamInputFilterSensitiveLog, GetMetricStreamOutputFilterSensitiveLog, } from "../models/models_0";
4
5
  import { deserializeAws_queryGetMetricStreamCommand, serializeAws_queryGetMetricStreamCommand, } from "../protocols/Aws_query";
5
- export class GetMetricStreamCommand extends $Command {
6
- constructor(input) {
7
- super();
8
- this.input = input;
6
+ var GetMetricStreamCommand = (function (_super) {
7
+ __extends(GetMetricStreamCommand, _super);
8
+ function GetMetricStreamCommand(input) {
9
+ var _this = _super.call(this) || this;
10
+ _this.input = input;
11
+ return _this;
9
12
  }
10
- resolveMiddleware(clientStack, configuration, options) {
13
+ GetMetricStreamCommand.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 = "GetMetricStreamCommand";
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 = "GetMetricStreamCommand";
19
+ var handlerExecutionContext = {
20
+ logger: logger,
21
+ clientName: clientName,
22
+ commandName: commandName,
20
23
  inputFilterSensitiveLog: GetMetricStreamInputFilterSensitiveLog,
21
24
  outputFilterSensitiveLog: GetMetricStreamOutputFilterSensitiveLog,
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
+ GetMetricStreamCommand.prototype.serialize = function (input, context) {
27
32
  return serializeAws_queryGetMetricStreamCommand(input, context);
28
- }
29
- deserialize(output, context) {
33
+ };
34
+ GetMetricStreamCommand.prototype.deserialize = function (output, context) {
30
35
  return deserializeAws_queryGetMetricStreamCommand(output, context);
31
- }
32
- }
36
+ };
37
+ return GetMetricStreamCommand;
38
+ }($Command));
39
+ export { GetMetricStreamCommand };