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