@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 { PutManagedInsightRulesInputFilterSensitiveLog, PutManagedInsightRulesOutputFilterSensitiveLog, } from "../models/models_0";
5
4
  import { deserializeAws_queryPutManagedInsightRulesCommand, serializeAws_queryPutManagedInsightRulesCommand, } from "../protocols/Aws_query";
6
- var PutManagedInsightRulesCommand = (function (_super) {
7
- __extends(PutManagedInsightRulesCommand, _super);
8
- function PutManagedInsightRulesCommand(input) {
9
- var _this = _super.call(this) || this;
10
- _this.input = input;
11
- return _this;
5
+ export class PutManagedInsightRulesCommand extends $Command {
6
+ constructor(input) {
7
+ super();
8
+ this.input = input;
12
9
  }
13
- PutManagedInsightRulesCommand.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 = "PutManagedInsightRulesCommand";
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 = "PutManagedInsightRulesCommand";
16
+ const handlerExecutionContext = {
17
+ logger,
18
+ clientName,
19
+ commandName,
23
20
  inputFilterSensitiveLog: PutManagedInsightRulesInputFilterSensitiveLog,
24
21
  outputFilterSensitiveLog: PutManagedInsightRulesOutputFilterSensitiveLog,
25
22
  };
26
- var requestHandler = configuration.requestHandler;
27
- return stack.resolve(function (request) {
28
- return requestHandler.handle(request.request, options || {});
29
- }, handlerExecutionContext);
30
- };
31
- PutManagedInsightRulesCommand.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_queryPutManagedInsightRulesCommand(input, context);
33
- };
34
- PutManagedInsightRulesCommand.prototype.deserialize = function (output, context) {
28
+ }
29
+ deserialize(output, context) {
35
30
  return deserializeAws_queryPutManagedInsightRulesCommand(output, context);
36
- };
37
- return PutManagedInsightRulesCommand;
38
- }($Command));
39
- export { PutManagedInsightRulesCommand };
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 { PutMetricAlarmInputFilterSensitiveLog } from "../models/models_0";
5
4
  import { deserializeAws_queryPutMetricAlarmCommand, serializeAws_queryPutMetricAlarmCommand, } from "../protocols/Aws_query";
6
- var PutMetricAlarmCommand = (function (_super) {
7
- __extends(PutMetricAlarmCommand, _super);
8
- function PutMetricAlarmCommand(input) {
9
- var _this = _super.call(this) || this;
10
- _this.input = input;
11
- return _this;
5
+ export class PutMetricAlarmCommand extends $Command {
6
+ constructor(input) {
7
+ super();
8
+ this.input = input;
12
9
  }
13
- PutMetricAlarmCommand.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 = "PutMetricAlarmCommand";
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 = "PutMetricAlarmCommand";
16
+ const handlerExecutionContext = {
17
+ logger,
18
+ clientName,
19
+ commandName,
23
20
  inputFilterSensitiveLog: PutMetricAlarmInputFilterSensitiveLog,
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
- PutMetricAlarmCommand.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_queryPutMetricAlarmCommand(input, context);
33
- };
34
- PutMetricAlarmCommand.prototype.deserialize = function (output, context) {
28
+ }
29
+ deserialize(output, context) {
35
30
  return deserializeAws_queryPutMetricAlarmCommand(output, context);
36
- };
37
- return PutMetricAlarmCommand;
38
- }($Command));
39
- export { PutMetricAlarmCommand };
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 { PutMetricDataInputFilterSensitiveLog } from "../models/models_0";
5
4
  import { deserializeAws_queryPutMetricDataCommand, serializeAws_queryPutMetricDataCommand, } from "../protocols/Aws_query";
6
- var PutMetricDataCommand = (function (_super) {
7
- __extends(PutMetricDataCommand, _super);
8
- function PutMetricDataCommand(input) {
9
- var _this = _super.call(this) || this;
10
- _this.input = input;
11
- return _this;
5
+ export class PutMetricDataCommand extends $Command {
6
+ constructor(input) {
7
+ super();
8
+ this.input = input;
12
9
  }
13
- PutMetricDataCommand.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 = "PutMetricDataCommand";
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 = "PutMetricDataCommand";
16
+ const handlerExecutionContext = {
17
+ logger,
18
+ clientName,
19
+ commandName,
23
20
  inputFilterSensitiveLog: PutMetricDataInputFilterSensitiveLog,
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
- PutMetricDataCommand.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_queryPutMetricDataCommand(input, context);
33
- };
34
- PutMetricDataCommand.prototype.deserialize = function (output, context) {
28
+ }
29
+ deserialize(output, context) {
35
30
  return deserializeAws_queryPutMetricDataCommand(output, context);
36
- };
37
- return PutMetricDataCommand;
38
- }($Command));
39
- export { PutMetricDataCommand };
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 { PutMetricStreamInputFilterSensitiveLog, PutMetricStreamOutputFilterSensitiveLog, } from "../models/models_0";
5
4
  import { deserializeAws_queryPutMetricStreamCommand, serializeAws_queryPutMetricStreamCommand, } from "../protocols/Aws_query";
6
- var PutMetricStreamCommand = (function (_super) {
7
- __extends(PutMetricStreamCommand, _super);
8
- function PutMetricStreamCommand(input) {
9
- var _this = _super.call(this) || this;
10
- _this.input = input;
11
- return _this;
5
+ export class PutMetricStreamCommand extends $Command {
6
+ constructor(input) {
7
+ super();
8
+ this.input = input;
12
9
  }
13
- PutMetricStreamCommand.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 = "PutMetricStreamCommand";
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 = "PutMetricStreamCommand";
16
+ const handlerExecutionContext = {
17
+ logger,
18
+ clientName,
19
+ commandName,
23
20
  inputFilterSensitiveLog: PutMetricStreamInputFilterSensitiveLog,
24
21
  outputFilterSensitiveLog: PutMetricStreamOutputFilterSensitiveLog,
25
22
  };
26
- var requestHandler = configuration.requestHandler;
27
- return stack.resolve(function (request) {
28
- return requestHandler.handle(request.request, options || {});
29
- }, handlerExecutionContext);
30
- };
31
- PutMetricStreamCommand.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_queryPutMetricStreamCommand(input, context);
33
- };
34
- PutMetricStreamCommand.prototype.deserialize = function (output, context) {
28
+ }
29
+ deserialize(output, context) {
35
30
  return deserializeAws_queryPutMetricStreamCommand(output, context);
36
- };
37
- return PutMetricStreamCommand;
38
- }($Command));
39
- export { PutMetricStreamCommand };
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 { SetAlarmStateInputFilterSensitiveLog } from "../models/models_0";
5
4
  import { deserializeAws_querySetAlarmStateCommand, serializeAws_querySetAlarmStateCommand, } from "../protocols/Aws_query";
6
- var SetAlarmStateCommand = (function (_super) {
7
- __extends(SetAlarmStateCommand, _super);
8
- function SetAlarmStateCommand(input) {
9
- var _this = _super.call(this) || this;
10
- _this.input = input;
11
- return _this;
5
+ export class SetAlarmStateCommand extends $Command {
6
+ constructor(input) {
7
+ super();
8
+ this.input = input;
12
9
  }
13
- SetAlarmStateCommand.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 = "SetAlarmStateCommand";
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 = "SetAlarmStateCommand";
16
+ const handlerExecutionContext = {
17
+ logger,
18
+ clientName,
19
+ commandName,
23
20
  inputFilterSensitiveLog: SetAlarmStateInputFilterSensitiveLog,
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
- SetAlarmStateCommand.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_querySetAlarmStateCommand(input, context);
33
- };
34
- SetAlarmStateCommand.prototype.deserialize = function (output, context) {
28
+ }
29
+ deserialize(output, context) {
35
30
  return deserializeAws_querySetAlarmStateCommand(output, context);
36
- };
37
- return SetAlarmStateCommand;
38
- }($Command));
39
- export { SetAlarmStateCommand };
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 { StartMetricStreamsInputFilterSensitiveLog, StartMetricStreamsOutputFilterSensitiveLog, } from "../models/models_0";
5
4
  import { deserializeAws_queryStartMetricStreamsCommand, serializeAws_queryStartMetricStreamsCommand, } from "../protocols/Aws_query";
6
- var StartMetricStreamsCommand = (function (_super) {
7
- __extends(StartMetricStreamsCommand, _super);
8
- function StartMetricStreamsCommand(input) {
9
- var _this = _super.call(this) || this;
10
- _this.input = input;
11
- return _this;
5
+ export class StartMetricStreamsCommand extends $Command {
6
+ constructor(input) {
7
+ super();
8
+ this.input = input;
12
9
  }
13
- StartMetricStreamsCommand.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 = "StartMetricStreamsCommand";
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 = "StartMetricStreamsCommand";
16
+ const handlerExecutionContext = {
17
+ logger,
18
+ clientName,
19
+ commandName,
23
20
  inputFilterSensitiveLog: StartMetricStreamsInputFilterSensitiveLog,
24
21
  outputFilterSensitiveLog: StartMetricStreamsOutputFilterSensitiveLog,
25
22
  };
26
- var requestHandler = configuration.requestHandler;
27
- return stack.resolve(function (request) {
28
- return requestHandler.handle(request.request, options || {});
29
- }, handlerExecutionContext);
30
- };
31
- StartMetricStreamsCommand.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_queryStartMetricStreamsCommand(input, context);
33
- };
34
- StartMetricStreamsCommand.prototype.deserialize = function (output, context) {
28
+ }
29
+ deserialize(output, context) {
35
30
  return deserializeAws_queryStartMetricStreamsCommand(output, context);
36
- };
37
- return StartMetricStreamsCommand;
38
- }($Command));
39
- export { StartMetricStreamsCommand };
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 { StopMetricStreamsInputFilterSensitiveLog, StopMetricStreamsOutputFilterSensitiveLog, } from "../models/models_0";
5
4
  import { deserializeAws_queryStopMetricStreamsCommand, serializeAws_queryStopMetricStreamsCommand, } from "../protocols/Aws_query";
6
- var StopMetricStreamsCommand = (function (_super) {
7
- __extends(StopMetricStreamsCommand, _super);
8
- function StopMetricStreamsCommand(input) {
9
- var _this = _super.call(this) || this;
10
- _this.input = input;
11
- return _this;
5
+ export class StopMetricStreamsCommand extends $Command {
6
+ constructor(input) {
7
+ super();
8
+ this.input = input;
12
9
  }
13
- StopMetricStreamsCommand.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 = "StopMetricStreamsCommand";
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 = "StopMetricStreamsCommand";
16
+ const handlerExecutionContext = {
17
+ logger,
18
+ clientName,
19
+ commandName,
23
20
  inputFilterSensitiveLog: StopMetricStreamsInputFilterSensitiveLog,
24
21
  outputFilterSensitiveLog: StopMetricStreamsOutputFilterSensitiveLog,
25
22
  };
26
- var requestHandler = configuration.requestHandler;
27
- return stack.resolve(function (request) {
28
- return requestHandler.handle(request.request, options || {});
29
- }, handlerExecutionContext);
30
- };
31
- StopMetricStreamsCommand.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_queryStopMetricStreamsCommand(input, context);
33
- };
34
- StopMetricStreamsCommand.prototype.deserialize = function (output, context) {
28
+ }
29
+ deserialize(output, context) {
35
30
  return deserializeAws_queryStopMetricStreamsCommand(output, context);
36
- };
37
- return StopMetricStreamsCommand;
38
- }($Command));
39
- export { StopMetricStreamsCommand };
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 { TagResourceInputFilterSensitiveLog, TagResourceOutputFilterSensitiveLog, } from "../models/models_0";
5
4
  import { deserializeAws_queryTagResourceCommand, serializeAws_queryTagResourceCommand } from "../protocols/Aws_query";
6
- var TagResourceCommand = (function (_super) {
7
- __extends(TagResourceCommand, _super);
8
- function TagResourceCommand(input) {
9
- var _this = _super.call(this) || this;
10
- _this.input = input;
11
- return _this;
5
+ export class TagResourceCommand extends $Command {
6
+ constructor(input) {
7
+ super();
8
+ this.input = input;
12
9
  }
13
- TagResourceCommand.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 = "TagResourceCommand";
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 = "TagResourceCommand";
16
+ const handlerExecutionContext = {
17
+ logger,
18
+ clientName,
19
+ commandName,
23
20
  inputFilterSensitiveLog: TagResourceInputFilterSensitiveLog,
24
21
  outputFilterSensitiveLog: TagResourceOutputFilterSensitiveLog,
25
22
  };
26
- var requestHandler = configuration.requestHandler;
27
- return stack.resolve(function (request) {
28
- return requestHandler.handle(request.request, options || {});
29
- }, handlerExecutionContext);
30
- };
31
- TagResourceCommand.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_queryTagResourceCommand(input, context);
33
- };
34
- TagResourceCommand.prototype.deserialize = function (output, context) {
28
+ }
29
+ deserialize(output, context) {
35
30
  return deserializeAws_queryTagResourceCommand(output, context);
36
- };
37
- return TagResourceCommand;
38
- }($Command));
39
- export { TagResourceCommand };
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 { UntagResourceInputFilterSensitiveLog, UntagResourceOutputFilterSensitiveLog, } from "../models/models_0";
5
4
  import { deserializeAws_queryUntagResourceCommand, serializeAws_queryUntagResourceCommand, } from "../protocols/Aws_query";
6
- var UntagResourceCommand = (function (_super) {
7
- __extends(UntagResourceCommand, _super);
8
- function UntagResourceCommand(input) {
9
- var _this = _super.call(this) || this;
10
- _this.input = input;
11
- return _this;
5
+ export class UntagResourceCommand extends $Command {
6
+ constructor(input) {
7
+ super();
8
+ this.input = input;
12
9
  }
13
- UntagResourceCommand.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 = "UntagResourceCommand";
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 = "UntagResourceCommand";
16
+ const handlerExecutionContext = {
17
+ logger,
18
+ clientName,
19
+ commandName,
23
20
  inputFilterSensitiveLog: UntagResourceInputFilterSensitiveLog,
24
21
  outputFilterSensitiveLog: UntagResourceOutputFilterSensitiveLog,
25
22
  };
26
- var requestHandler = configuration.requestHandler;
27
- return stack.resolve(function (request) {
28
- return requestHandler.handle(request.request, options || {});
29
- }, handlerExecutionContext);
30
- };
31
- UntagResourceCommand.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_queryUntagResourceCommand(input, context);
33
- };
34
- UntagResourceCommand.prototype.deserialize = function (output, context) {
28
+ }
29
+ deserialize(output, context) {
35
30
  return deserializeAws_queryUntagResourceCommand(output, context);
36
- };
37
- return UntagResourceCommand;
38
- }($Command));
39
- export { UntagResourceCommand };
31
+ }
32
+ }
@@ -1,6 +1,5 @@
1
- import { __assign, __awaiter, __generator } from "tslib";
2
1
  import { getRegionInfo } from "@aws-sdk/config-resolver";
3
- var regionHash = {
2
+ const regionHash = {
4
3
  "us-east-1": {
5
4
  variants: [
6
5
  {
@@ -50,7 +49,7 @@ var regionHash = {
50
49
  ],
51
50
  },
52
51
  };
53
- var partitionHash = {
52
+ const partitionHash = {
54
53
  aws: {
55
54
  regions: [
56
55
  "af-south-1",
@@ -174,8 +173,9 @@ var partitionHash = {
174
173
  ],
175
174
  },
176
175
  };
177
- export var defaultRegionInfoProvider = function (region, options) { return __awaiter(void 0, void 0, void 0, function () {
178
- return __generator(this, function (_a) {
179
- return [2, getRegionInfo(region, __assign(__assign({}, options), { signingService: "monitoring", regionHash: regionHash, partitionHash: partitionHash }))];
180
- });
181
- }); };
176
+ export const defaultRegionInfoProvider = async (region, options) => getRegionInfo(region, {
177
+ ...options,
178
+ signingService: "monitoring",
179
+ regionHash,
180
+ partitionHash,
181
+ });
@@ -1,12 +1,7 @@
1
- import { __extends } from "tslib";
2
1
  import { ServiceException as __ServiceException, } from "@aws-sdk/smithy-client";
3
- var CloudWatchServiceException = (function (_super) {
4
- __extends(CloudWatchServiceException, _super);
5
- function CloudWatchServiceException(options) {
6
- var _this = _super.call(this, options) || this;
7
- Object.setPrototypeOf(_this, CloudWatchServiceException.prototype);
8
- return _this;
2
+ export class CloudWatchServiceException extends __ServiceException {
3
+ constructor(options) {
4
+ super(options);
5
+ Object.setPrototypeOf(this, CloudWatchServiceException.prototype);
9
6
  }
10
- return CloudWatchServiceException;
11
- }(__ServiceException));
12
- export { CloudWatchServiceException };
7
+ }