@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 { GetMetricWidgetImageInputFilterSensitiveLog, GetMetricWidgetImageOutputFilterSensitiveLog, } from "../models/models_0";
5
4
  import { deserializeAws_queryGetMetricWidgetImageCommand, serializeAws_queryGetMetricWidgetImageCommand, } from "../protocols/Aws_query";
6
- var GetMetricWidgetImageCommand = (function (_super) {
7
- __extends(GetMetricWidgetImageCommand, _super);
8
- function GetMetricWidgetImageCommand(input) {
9
- var _this = _super.call(this) || this;
10
- _this.input = input;
11
- return _this;
5
+ export class GetMetricWidgetImageCommand extends $Command {
6
+ constructor(input) {
7
+ super();
8
+ this.input = input;
12
9
  }
13
- GetMetricWidgetImageCommand.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 = "GetMetricWidgetImageCommand";
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 = "GetMetricWidgetImageCommand";
16
+ const handlerExecutionContext = {
17
+ logger,
18
+ clientName,
19
+ commandName,
23
20
  inputFilterSensitiveLog: GetMetricWidgetImageInputFilterSensitiveLog,
24
21
  outputFilterSensitiveLog: GetMetricWidgetImageOutputFilterSensitiveLog,
25
22
  };
26
- var requestHandler = configuration.requestHandler;
27
- return stack.resolve(function (request) {
28
- return requestHandler.handle(request.request, options || {});
29
- }, handlerExecutionContext);
30
- };
31
- GetMetricWidgetImageCommand.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_queryGetMetricWidgetImageCommand(input, context);
33
- };
34
- GetMetricWidgetImageCommand.prototype.deserialize = function (output, context) {
28
+ }
29
+ deserialize(output, context) {
35
30
  return deserializeAws_queryGetMetricWidgetImageCommand(output, context);
36
- };
37
- return GetMetricWidgetImageCommand;
38
- }($Command));
39
- export { GetMetricWidgetImageCommand };
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 { ListDashboardsInputFilterSensitiveLog, ListDashboardsOutputFilterSensitiveLog, } from "../models/models_0";
5
4
  import { deserializeAws_queryListDashboardsCommand, serializeAws_queryListDashboardsCommand, } from "../protocols/Aws_query";
6
- var ListDashboardsCommand = (function (_super) {
7
- __extends(ListDashboardsCommand, _super);
8
- function ListDashboardsCommand(input) {
9
- var _this = _super.call(this) || this;
10
- _this.input = input;
11
- return _this;
5
+ export class ListDashboardsCommand extends $Command {
6
+ constructor(input) {
7
+ super();
8
+ this.input = input;
12
9
  }
13
- ListDashboardsCommand.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 = "ListDashboardsCommand";
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 = "ListDashboardsCommand";
16
+ const handlerExecutionContext = {
17
+ logger,
18
+ clientName,
19
+ commandName,
23
20
  inputFilterSensitiveLog: ListDashboardsInputFilterSensitiveLog,
24
21
  outputFilterSensitiveLog: ListDashboardsOutputFilterSensitiveLog,
25
22
  };
26
- var requestHandler = configuration.requestHandler;
27
- return stack.resolve(function (request) {
28
- return requestHandler.handle(request.request, options || {});
29
- }, handlerExecutionContext);
30
- };
31
- ListDashboardsCommand.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_queryListDashboardsCommand(input, context);
33
- };
34
- ListDashboardsCommand.prototype.deserialize = function (output, context) {
28
+ }
29
+ deserialize(output, context) {
35
30
  return deserializeAws_queryListDashboardsCommand(output, context);
36
- };
37
- return ListDashboardsCommand;
38
- }($Command));
39
- export { ListDashboardsCommand };
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 { ListManagedInsightRulesInputFilterSensitiveLog, ListManagedInsightRulesOutputFilterSensitiveLog, } from "../models/models_0";
5
4
  import { deserializeAws_queryListManagedInsightRulesCommand, serializeAws_queryListManagedInsightRulesCommand, } from "../protocols/Aws_query";
6
- var ListManagedInsightRulesCommand = (function (_super) {
7
- __extends(ListManagedInsightRulesCommand, _super);
8
- function ListManagedInsightRulesCommand(input) {
9
- var _this = _super.call(this) || this;
10
- _this.input = input;
11
- return _this;
5
+ export class ListManagedInsightRulesCommand extends $Command {
6
+ constructor(input) {
7
+ super();
8
+ this.input = input;
12
9
  }
13
- ListManagedInsightRulesCommand.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 = "ListManagedInsightRulesCommand";
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 = "ListManagedInsightRulesCommand";
16
+ const handlerExecutionContext = {
17
+ logger,
18
+ clientName,
19
+ commandName,
23
20
  inputFilterSensitiveLog: ListManagedInsightRulesInputFilterSensitiveLog,
24
21
  outputFilterSensitiveLog: ListManagedInsightRulesOutputFilterSensitiveLog,
25
22
  };
26
- var requestHandler = configuration.requestHandler;
27
- return stack.resolve(function (request) {
28
- return requestHandler.handle(request.request, options || {});
29
- }, handlerExecutionContext);
30
- };
31
- ListManagedInsightRulesCommand.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_queryListManagedInsightRulesCommand(input, context);
33
- };
34
- ListManagedInsightRulesCommand.prototype.deserialize = function (output, context) {
28
+ }
29
+ deserialize(output, context) {
35
30
  return deserializeAws_queryListManagedInsightRulesCommand(output, context);
36
- };
37
- return ListManagedInsightRulesCommand;
38
- }($Command));
39
- export { ListManagedInsightRulesCommand };
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 { ListMetricStreamsInputFilterSensitiveLog, ListMetricStreamsOutputFilterSensitiveLog, } from "../models/models_0";
5
4
  import { deserializeAws_queryListMetricStreamsCommand, serializeAws_queryListMetricStreamsCommand, } from "../protocols/Aws_query";
6
- var ListMetricStreamsCommand = (function (_super) {
7
- __extends(ListMetricStreamsCommand, _super);
8
- function ListMetricStreamsCommand(input) {
9
- var _this = _super.call(this) || this;
10
- _this.input = input;
11
- return _this;
5
+ export class ListMetricStreamsCommand extends $Command {
6
+ constructor(input) {
7
+ super();
8
+ this.input = input;
12
9
  }
13
- ListMetricStreamsCommand.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 = "ListMetricStreamsCommand";
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 = "ListMetricStreamsCommand";
16
+ const handlerExecutionContext = {
17
+ logger,
18
+ clientName,
19
+ commandName,
23
20
  inputFilterSensitiveLog: ListMetricStreamsInputFilterSensitiveLog,
24
21
  outputFilterSensitiveLog: ListMetricStreamsOutputFilterSensitiveLog,
25
22
  };
26
- var requestHandler = configuration.requestHandler;
27
- return stack.resolve(function (request) {
28
- return requestHandler.handle(request.request, options || {});
29
- }, handlerExecutionContext);
30
- };
31
- ListMetricStreamsCommand.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_queryListMetricStreamsCommand(input, context);
33
- };
34
- ListMetricStreamsCommand.prototype.deserialize = function (output, context) {
28
+ }
29
+ deserialize(output, context) {
35
30
  return deserializeAws_queryListMetricStreamsCommand(output, context);
36
- };
37
- return ListMetricStreamsCommand;
38
- }($Command));
39
- export { ListMetricStreamsCommand };
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 { ListMetricsInputFilterSensitiveLog, ListMetricsOutputFilterSensitiveLog, } from "../models/models_0";
5
4
  import { deserializeAws_queryListMetricsCommand, serializeAws_queryListMetricsCommand } from "../protocols/Aws_query";
6
- var ListMetricsCommand = (function (_super) {
7
- __extends(ListMetricsCommand, _super);
8
- function ListMetricsCommand(input) {
9
- var _this = _super.call(this) || this;
10
- _this.input = input;
11
- return _this;
5
+ export class ListMetricsCommand extends $Command {
6
+ constructor(input) {
7
+ super();
8
+ this.input = input;
12
9
  }
13
- ListMetricsCommand.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 = "ListMetricsCommand";
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 = "ListMetricsCommand";
16
+ const handlerExecutionContext = {
17
+ logger,
18
+ clientName,
19
+ commandName,
23
20
  inputFilterSensitiveLog: ListMetricsInputFilterSensitiveLog,
24
21
  outputFilterSensitiveLog: ListMetricsOutputFilterSensitiveLog,
25
22
  };
26
- var requestHandler = configuration.requestHandler;
27
- return stack.resolve(function (request) {
28
- return requestHandler.handle(request.request, options || {});
29
- }, handlerExecutionContext);
30
- };
31
- ListMetricsCommand.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_queryListMetricsCommand(input, context);
33
- };
34
- ListMetricsCommand.prototype.deserialize = function (output, context) {
28
+ }
29
+ deserialize(output, context) {
35
30
  return deserializeAws_queryListMetricsCommand(output, context);
36
- };
37
- return ListMetricsCommand;
38
- }($Command));
39
- export { ListMetricsCommand };
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 { ListTagsForResourceInputFilterSensitiveLog, ListTagsForResourceOutputFilterSensitiveLog, } from "../models/models_0";
5
4
  import { deserializeAws_queryListTagsForResourceCommand, serializeAws_queryListTagsForResourceCommand, } from "../protocols/Aws_query";
6
- var ListTagsForResourceCommand = (function (_super) {
7
- __extends(ListTagsForResourceCommand, _super);
8
- function ListTagsForResourceCommand(input) {
9
- var _this = _super.call(this) || this;
10
- _this.input = input;
11
- return _this;
5
+ export class ListTagsForResourceCommand extends $Command {
6
+ constructor(input) {
7
+ super();
8
+ this.input = input;
12
9
  }
13
- ListTagsForResourceCommand.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 = "ListTagsForResourceCommand";
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 = "ListTagsForResourceCommand";
16
+ const handlerExecutionContext = {
17
+ logger,
18
+ clientName,
19
+ commandName,
23
20
  inputFilterSensitiveLog: ListTagsForResourceInputFilterSensitiveLog,
24
21
  outputFilterSensitiveLog: ListTagsForResourceOutputFilterSensitiveLog,
25
22
  };
26
- var requestHandler = configuration.requestHandler;
27
- return stack.resolve(function (request) {
28
- return requestHandler.handle(request.request, options || {});
29
- }, handlerExecutionContext);
30
- };
31
- ListTagsForResourceCommand.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_queryListTagsForResourceCommand(input, context);
33
- };
34
- ListTagsForResourceCommand.prototype.deserialize = function (output, context) {
28
+ }
29
+ deserialize(output, context) {
35
30
  return deserializeAws_queryListTagsForResourceCommand(output, context);
36
- };
37
- return ListTagsForResourceCommand;
38
- }($Command));
39
- export { ListTagsForResourceCommand };
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 { PutAnomalyDetectorInputFilterSensitiveLog, PutAnomalyDetectorOutputFilterSensitiveLog, } from "../models/models_0";
5
4
  import { deserializeAws_queryPutAnomalyDetectorCommand, serializeAws_queryPutAnomalyDetectorCommand, } from "../protocols/Aws_query";
6
- var PutAnomalyDetectorCommand = (function (_super) {
7
- __extends(PutAnomalyDetectorCommand, _super);
8
- function PutAnomalyDetectorCommand(input) {
9
- var _this = _super.call(this) || this;
10
- _this.input = input;
11
- return _this;
5
+ export class PutAnomalyDetectorCommand extends $Command {
6
+ constructor(input) {
7
+ super();
8
+ this.input = input;
12
9
  }
13
- PutAnomalyDetectorCommand.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 = "PutAnomalyDetectorCommand";
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 = "PutAnomalyDetectorCommand";
16
+ const handlerExecutionContext = {
17
+ logger,
18
+ clientName,
19
+ commandName,
23
20
  inputFilterSensitiveLog: PutAnomalyDetectorInputFilterSensitiveLog,
24
21
  outputFilterSensitiveLog: PutAnomalyDetectorOutputFilterSensitiveLog,
25
22
  };
26
- var requestHandler = configuration.requestHandler;
27
- return stack.resolve(function (request) {
28
- return requestHandler.handle(request.request, options || {});
29
- }, handlerExecutionContext);
30
- };
31
- PutAnomalyDetectorCommand.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_queryPutAnomalyDetectorCommand(input, context);
33
- };
34
- PutAnomalyDetectorCommand.prototype.deserialize = function (output, context) {
28
+ }
29
+ deserialize(output, context) {
35
30
  return deserializeAws_queryPutAnomalyDetectorCommand(output, context);
36
- };
37
- return PutAnomalyDetectorCommand;
38
- }($Command));
39
- export { PutAnomalyDetectorCommand };
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 { PutCompositeAlarmInputFilterSensitiveLog } from "../models/models_0";
5
4
  import { deserializeAws_queryPutCompositeAlarmCommand, serializeAws_queryPutCompositeAlarmCommand, } from "../protocols/Aws_query";
6
- var PutCompositeAlarmCommand = (function (_super) {
7
- __extends(PutCompositeAlarmCommand, _super);
8
- function PutCompositeAlarmCommand(input) {
9
- var _this = _super.call(this) || this;
10
- _this.input = input;
11
- return _this;
5
+ export class PutCompositeAlarmCommand extends $Command {
6
+ constructor(input) {
7
+ super();
8
+ this.input = input;
12
9
  }
13
- PutCompositeAlarmCommand.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 = "PutCompositeAlarmCommand";
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 = "PutCompositeAlarmCommand";
16
+ const handlerExecutionContext = {
17
+ logger,
18
+ clientName,
19
+ commandName,
23
20
  inputFilterSensitiveLog: PutCompositeAlarmInputFilterSensitiveLog,
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
- PutCompositeAlarmCommand.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_queryPutCompositeAlarmCommand(input, context);
33
- };
34
- PutCompositeAlarmCommand.prototype.deserialize = function (output, context) {
28
+ }
29
+ deserialize(output, context) {
35
30
  return deserializeAws_queryPutCompositeAlarmCommand(output, context);
36
- };
37
- return PutCompositeAlarmCommand;
38
- }($Command));
39
- export { PutCompositeAlarmCommand };
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 { PutDashboardInputFilterSensitiveLog, PutDashboardOutputFilterSensitiveLog, } from "../models/models_0";
5
4
  import { deserializeAws_queryPutDashboardCommand, serializeAws_queryPutDashboardCommand } from "../protocols/Aws_query";
6
- var PutDashboardCommand = (function (_super) {
7
- __extends(PutDashboardCommand, _super);
8
- function PutDashboardCommand(input) {
9
- var _this = _super.call(this) || this;
10
- _this.input = input;
11
- return _this;
5
+ export class PutDashboardCommand extends $Command {
6
+ constructor(input) {
7
+ super();
8
+ this.input = input;
12
9
  }
13
- PutDashboardCommand.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 = "PutDashboardCommand";
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 = "PutDashboardCommand";
16
+ const handlerExecutionContext = {
17
+ logger,
18
+ clientName,
19
+ commandName,
23
20
  inputFilterSensitiveLog: PutDashboardInputFilterSensitiveLog,
24
21
  outputFilterSensitiveLog: PutDashboardOutputFilterSensitiveLog,
25
22
  };
26
- var requestHandler = configuration.requestHandler;
27
- return stack.resolve(function (request) {
28
- return requestHandler.handle(request.request, options || {});
29
- }, handlerExecutionContext);
30
- };
31
- PutDashboardCommand.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_queryPutDashboardCommand(input, context);
33
- };
34
- PutDashboardCommand.prototype.deserialize = function (output, context) {
28
+ }
29
+ deserialize(output, context) {
35
30
  return deserializeAws_queryPutDashboardCommand(output, context);
36
- };
37
- return PutDashboardCommand;
38
- }($Command));
39
- export { PutDashboardCommand };
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 { PutInsightRuleInputFilterSensitiveLog, PutInsightRuleOutputFilterSensitiveLog, } from "../models/models_0";
5
4
  import { deserializeAws_queryPutInsightRuleCommand, serializeAws_queryPutInsightRuleCommand, } from "../protocols/Aws_query";
6
- var PutInsightRuleCommand = (function (_super) {
7
- __extends(PutInsightRuleCommand, _super);
8
- function PutInsightRuleCommand(input) {
9
- var _this = _super.call(this) || this;
10
- _this.input = input;
11
- return _this;
5
+ export class PutInsightRuleCommand extends $Command {
6
+ constructor(input) {
7
+ super();
8
+ this.input = input;
12
9
  }
13
- PutInsightRuleCommand.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 = "PutInsightRuleCommand";
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 = "PutInsightRuleCommand";
16
+ const handlerExecutionContext = {
17
+ logger,
18
+ clientName,
19
+ commandName,
23
20
  inputFilterSensitiveLog: PutInsightRuleInputFilterSensitiveLog,
24
21
  outputFilterSensitiveLog: PutInsightRuleOutputFilterSensitiveLog,
25
22
  };
26
- var requestHandler = configuration.requestHandler;
27
- return stack.resolve(function (request) {
28
- return requestHandler.handle(request.request, options || {});
29
- }, handlerExecutionContext);
30
- };
31
- PutInsightRuleCommand.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_queryPutInsightRuleCommand(input, context);
33
- };
34
- PutInsightRuleCommand.prototype.deserialize = function (output, context) {
28
+ }
29
+ deserialize(output, context) {
35
30
  return deserializeAws_queryPutInsightRuleCommand(output, context);
36
- };
37
- return PutInsightRuleCommand;
38
- }($Command));
39
- export { PutInsightRuleCommand };
31
+ }
32
+ }