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