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