@aws-sdk/client-cloudwatch 3.928.0 → 3.930.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 (60) hide show
  1. package/dist-cjs/index.js +1379 -4670
  2. package/dist-cjs/runtimeConfig.shared.js +7 -0
  3. package/dist-es/CloudWatchClient.js +2 -0
  4. package/dist-es/commands/DeleteAlarmsCommand.js +3 -9
  5. package/dist-es/commands/DeleteAnomalyDetectorCommand.js +3 -9
  6. package/dist-es/commands/DeleteDashboardsCommand.js +3 -9
  7. package/dist-es/commands/DeleteInsightRulesCommand.js +3 -9
  8. package/dist-es/commands/DeleteMetricStreamCommand.js +3 -9
  9. package/dist-es/commands/DescribeAlarmContributorsCommand.js +3 -9
  10. package/dist-es/commands/DescribeAlarmHistoryCommand.js +3 -9
  11. package/dist-es/commands/DescribeAlarmsCommand.js +3 -9
  12. package/dist-es/commands/DescribeAlarmsForMetricCommand.js +3 -9
  13. package/dist-es/commands/DescribeAnomalyDetectorsCommand.js +3 -9
  14. package/dist-es/commands/DescribeInsightRulesCommand.js +3 -9
  15. package/dist-es/commands/DisableAlarmActionsCommand.js +3 -9
  16. package/dist-es/commands/DisableInsightRulesCommand.js +3 -9
  17. package/dist-es/commands/EnableAlarmActionsCommand.js +3 -9
  18. package/dist-es/commands/EnableInsightRulesCommand.js +3 -9
  19. package/dist-es/commands/GetDashboardCommand.js +3 -9
  20. package/dist-es/commands/GetInsightRuleReportCommand.js +3 -9
  21. package/dist-es/commands/GetMetricDataCommand.js +3 -9
  22. package/dist-es/commands/GetMetricStatisticsCommand.js +3 -9
  23. package/dist-es/commands/GetMetricStreamCommand.js +3 -9
  24. package/dist-es/commands/GetMetricWidgetImageCommand.js +3 -9
  25. package/dist-es/commands/ListDashboardsCommand.js +3 -9
  26. package/dist-es/commands/ListManagedInsightRulesCommand.js +3 -9
  27. package/dist-es/commands/ListMetricStreamsCommand.js +3 -9
  28. package/dist-es/commands/ListMetricsCommand.js +3 -9
  29. package/dist-es/commands/ListTagsForResourceCommand.js +3 -9
  30. package/dist-es/commands/PutAnomalyDetectorCommand.js +3 -9
  31. package/dist-es/commands/PutCompositeAlarmCommand.js +3 -9
  32. package/dist-es/commands/PutDashboardCommand.js +3 -9
  33. package/dist-es/commands/PutInsightRuleCommand.js +3 -9
  34. package/dist-es/commands/PutManagedInsightRulesCommand.js +3 -9
  35. package/dist-es/commands/PutMetricAlarmCommand.js +3 -9
  36. package/dist-es/commands/PutMetricDataCommand.js +2 -6
  37. package/dist-es/commands/PutMetricStreamCommand.js +3 -9
  38. package/dist-es/commands/SetAlarmStateCommand.js +3 -9
  39. package/dist-es/commands/StartMetricStreamsCommand.js +3 -9
  40. package/dist-es/commands/StopMetricStreamsCommand.js +3 -9
  41. package/dist-es/commands/TagResourceCommand.js +3 -9
  42. package/dist-es/commands/UntagResourceCommand.js +3 -9
  43. package/dist-es/runtimeConfig.shared.js +7 -0
  44. package/dist-es/schemas/schemas_0.js +1345 -0
  45. package/dist-types/CloudWatchClient.d.ts +10 -1
  46. package/dist-types/runtimeConfig.browser.d.ts +1 -0
  47. package/dist-types/runtimeConfig.d.ts +1 -0
  48. package/dist-types/runtimeConfig.native.d.ts +1 -0
  49. package/dist-types/runtimeConfig.shared.d.ts +1 -0
  50. package/dist-types/schemas/schemas_0.d.ts +218 -0
  51. package/dist-types/ts3.4/CloudWatchClient.d.ts +4 -0
  52. package/dist-types/ts3.4/runtimeConfig.browser.d.ts +4 -0
  53. package/dist-types/ts3.4/runtimeConfig.d.ts +4 -0
  54. package/dist-types/ts3.4/runtimeConfig.native.d.ts +4 -0
  55. package/dist-types/ts3.4/runtimeConfig.shared.d.ts +4 -0
  56. package/dist-types/ts3.4/schemas/schemas_0.d.ts +223 -0
  57. package/package.json +35 -35
  58. package/dist-es/protocols/Aws_query.js +0 -4425
  59. package/dist-types/protocols/Aws_query.d.ts +0 -353
  60. package/dist-types/ts3.4/protocols/Aws_query.d.ts +0 -473
@@ -1,22 +1,16 @@
1
1
  import { getEndpointPlugin } from "@smithy/middleware-endpoint";
2
- import { getSerdePlugin } from "@smithy/middleware-serde";
3
2
  import { Command as $Command } from "@smithy/smithy-client";
4
3
  import { commonParams } from "../endpoint/EndpointParameters";
5
- import { de_ListManagedInsightRulesCommand, se_ListManagedInsightRulesCommand } from "../protocols/Aws_query";
4
+ import { ListManagedInsightRules } from "../schemas/schemas_0";
6
5
  export { $Command };
7
6
  export class ListManagedInsightRulesCommand extends $Command
8
7
  .classBuilder()
9
8
  .ep(commonParams)
10
9
  .m(function (Command, cs, config, o) {
11
- return [
12
- getSerdePlugin(config, this.serialize, this.deserialize),
13
- getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
14
- ];
10
+ return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
15
11
  })
16
12
  .s("GraniteServiceVersion20100801", "ListManagedInsightRules", {})
17
13
  .n("CloudWatchClient", "ListManagedInsightRulesCommand")
18
- .f(void 0, void 0)
19
- .ser(se_ListManagedInsightRulesCommand)
20
- .de(de_ListManagedInsightRulesCommand)
14
+ .sc(ListManagedInsightRules)
21
15
  .build() {
22
16
  }
@@ -1,22 +1,16 @@
1
1
  import { getEndpointPlugin } from "@smithy/middleware-endpoint";
2
- import { getSerdePlugin } from "@smithy/middleware-serde";
3
2
  import { Command as $Command } from "@smithy/smithy-client";
4
3
  import { commonParams } from "../endpoint/EndpointParameters";
5
- import { de_ListMetricStreamsCommand, se_ListMetricStreamsCommand } from "../protocols/Aws_query";
4
+ import { ListMetricStreams } from "../schemas/schemas_0";
6
5
  export { $Command };
7
6
  export class ListMetricStreamsCommand extends $Command
8
7
  .classBuilder()
9
8
  .ep(commonParams)
10
9
  .m(function (Command, cs, config, o) {
11
- return [
12
- getSerdePlugin(config, this.serialize, this.deserialize),
13
- getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
14
- ];
10
+ return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
15
11
  })
16
12
  .s("GraniteServiceVersion20100801", "ListMetricStreams", {})
17
13
  .n("CloudWatchClient", "ListMetricStreamsCommand")
18
- .f(void 0, void 0)
19
- .ser(se_ListMetricStreamsCommand)
20
- .de(de_ListMetricStreamsCommand)
14
+ .sc(ListMetricStreams)
21
15
  .build() {
22
16
  }
@@ -1,22 +1,16 @@
1
1
  import { getEndpointPlugin } from "@smithy/middleware-endpoint";
2
- import { getSerdePlugin } from "@smithy/middleware-serde";
3
2
  import { Command as $Command } from "@smithy/smithy-client";
4
3
  import { commonParams } from "../endpoint/EndpointParameters";
5
- import { de_ListMetricsCommand, se_ListMetricsCommand } from "../protocols/Aws_query";
4
+ import { ListMetrics } from "../schemas/schemas_0";
6
5
  export { $Command };
7
6
  export class ListMetricsCommand extends $Command
8
7
  .classBuilder()
9
8
  .ep(commonParams)
10
9
  .m(function (Command, cs, config, o) {
11
- return [
12
- getSerdePlugin(config, this.serialize, this.deserialize),
13
- getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
14
- ];
10
+ return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
15
11
  })
16
12
  .s("GraniteServiceVersion20100801", "ListMetrics", {})
17
13
  .n("CloudWatchClient", "ListMetricsCommand")
18
- .f(void 0, void 0)
19
- .ser(se_ListMetricsCommand)
20
- .de(de_ListMetricsCommand)
14
+ .sc(ListMetrics)
21
15
  .build() {
22
16
  }
@@ -1,22 +1,16 @@
1
1
  import { getEndpointPlugin } from "@smithy/middleware-endpoint";
2
- import { getSerdePlugin } from "@smithy/middleware-serde";
3
2
  import { Command as $Command } from "@smithy/smithy-client";
4
3
  import { commonParams } from "../endpoint/EndpointParameters";
5
- import { de_ListTagsForResourceCommand, se_ListTagsForResourceCommand } from "../protocols/Aws_query";
4
+ import { ListTagsForResource } from "../schemas/schemas_0";
6
5
  export { $Command };
7
6
  export class ListTagsForResourceCommand extends $Command
8
7
  .classBuilder()
9
8
  .ep(commonParams)
10
9
  .m(function (Command, cs, config, o) {
11
- return [
12
- getSerdePlugin(config, this.serialize, this.deserialize),
13
- getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
14
- ];
10
+ return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
15
11
  })
16
12
  .s("GraniteServiceVersion20100801", "ListTagsForResource", {})
17
13
  .n("CloudWatchClient", "ListTagsForResourceCommand")
18
- .f(void 0, void 0)
19
- .ser(se_ListTagsForResourceCommand)
20
- .de(de_ListTagsForResourceCommand)
14
+ .sc(ListTagsForResource)
21
15
  .build() {
22
16
  }
@@ -1,22 +1,16 @@
1
1
  import { getEndpointPlugin } from "@smithy/middleware-endpoint";
2
- import { getSerdePlugin } from "@smithy/middleware-serde";
3
2
  import { Command as $Command } from "@smithy/smithy-client";
4
3
  import { commonParams } from "../endpoint/EndpointParameters";
5
- import { de_PutAnomalyDetectorCommand, se_PutAnomalyDetectorCommand } from "../protocols/Aws_query";
4
+ import { PutAnomalyDetector } from "../schemas/schemas_0";
6
5
  export { $Command };
7
6
  export class PutAnomalyDetectorCommand extends $Command
8
7
  .classBuilder()
9
8
  .ep(commonParams)
10
9
  .m(function (Command, cs, config, o) {
11
- return [
12
- getSerdePlugin(config, this.serialize, this.deserialize),
13
- getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
14
- ];
10
+ return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
15
11
  })
16
12
  .s("GraniteServiceVersion20100801", "PutAnomalyDetector", {})
17
13
  .n("CloudWatchClient", "PutAnomalyDetectorCommand")
18
- .f(void 0, void 0)
19
- .ser(se_PutAnomalyDetectorCommand)
20
- .de(de_PutAnomalyDetectorCommand)
14
+ .sc(PutAnomalyDetector)
21
15
  .build() {
22
16
  }
@@ -1,22 +1,16 @@
1
1
  import { getEndpointPlugin } from "@smithy/middleware-endpoint";
2
- import { getSerdePlugin } from "@smithy/middleware-serde";
3
2
  import { Command as $Command } from "@smithy/smithy-client";
4
3
  import { commonParams } from "../endpoint/EndpointParameters";
5
- import { de_PutCompositeAlarmCommand, se_PutCompositeAlarmCommand } from "../protocols/Aws_query";
4
+ import { PutCompositeAlarm } from "../schemas/schemas_0";
6
5
  export { $Command };
7
6
  export class PutCompositeAlarmCommand extends $Command
8
7
  .classBuilder()
9
8
  .ep(commonParams)
10
9
  .m(function (Command, cs, config, o) {
11
- return [
12
- getSerdePlugin(config, this.serialize, this.deserialize),
13
- getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
14
- ];
10
+ return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
15
11
  })
16
12
  .s("GraniteServiceVersion20100801", "PutCompositeAlarm", {})
17
13
  .n("CloudWatchClient", "PutCompositeAlarmCommand")
18
- .f(void 0, void 0)
19
- .ser(se_PutCompositeAlarmCommand)
20
- .de(de_PutCompositeAlarmCommand)
14
+ .sc(PutCompositeAlarm)
21
15
  .build() {
22
16
  }
@@ -1,22 +1,16 @@
1
1
  import { getEndpointPlugin } from "@smithy/middleware-endpoint";
2
- import { getSerdePlugin } from "@smithy/middleware-serde";
3
2
  import { Command as $Command } from "@smithy/smithy-client";
4
3
  import { commonParams } from "../endpoint/EndpointParameters";
5
- import { de_PutDashboardCommand, se_PutDashboardCommand } from "../protocols/Aws_query";
4
+ import { PutDashboard } from "../schemas/schemas_0";
6
5
  export { $Command };
7
6
  export class PutDashboardCommand extends $Command
8
7
  .classBuilder()
9
8
  .ep(commonParams)
10
9
  .m(function (Command, cs, config, o) {
11
- return [
12
- getSerdePlugin(config, this.serialize, this.deserialize),
13
- getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
14
- ];
10
+ return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
15
11
  })
16
12
  .s("GraniteServiceVersion20100801", "PutDashboard", {})
17
13
  .n("CloudWatchClient", "PutDashboardCommand")
18
- .f(void 0, void 0)
19
- .ser(se_PutDashboardCommand)
20
- .de(de_PutDashboardCommand)
14
+ .sc(PutDashboard)
21
15
  .build() {
22
16
  }
@@ -1,22 +1,16 @@
1
1
  import { getEndpointPlugin } from "@smithy/middleware-endpoint";
2
- import { getSerdePlugin } from "@smithy/middleware-serde";
3
2
  import { Command as $Command } from "@smithy/smithy-client";
4
3
  import { commonParams } from "../endpoint/EndpointParameters";
5
- import { de_PutInsightRuleCommand, se_PutInsightRuleCommand } from "../protocols/Aws_query";
4
+ import { PutInsightRule } from "../schemas/schemas_0";
6
5
  export { $Command };
7
6
  export class PutInsightRuleCommand extends $Command
8
7
  .classBuilder()
9
8
  .ep(commonParams)
10
9
  .m(function (Command, cs, config, o) {
11
- return [
12
- getSerdePlugin(config, this.serialize, this.deserialize),
13
- getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
14
- ];
10
+ return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
15
11
  })
16
12
  .s("GraniteServiceVersion20100801", "PutInsightRule", {})
17
13
  .n("CloudWatchClient", "PutInsightRuleCommand")
18
- .f(void 0, void 0)
19
- .ser(se_PutInsightRuleCommand)
20
- .de(de_PutInsightRuleCommand)
14
+ .sc(PutInsightRule)
21
15
  .build() {
22
16
  }
@@ -1,22 +1,16 @@
1
1
  import { getEndpointPlugin } from "@smithy/middleware-endpoint";
2
- import { getSerdePlugin } from "@smithy/middleware-serde";
3
2
  import { Command as $Command } from "@smithy/smithy-client";
4
3
  import { commonParams } from "../endpoint/EndpointParameters";
5
- import { de_PutManagedInsightRulesCommand, se_PutManagedInsightRulesCommand } from "../protocols/Aws_query";
4
+ import { PutManagedInsightRules } from "../schemas/schemas_0";
6
5
  export { $Command };
7
6
  export class PutManagedInsightRulesCommand extends $Command
8
7
  .classBuilder()
9
8
  .ep(commonParams)
10
9
  .m(function (Command, cs, config, o) {
11
- return [
12
- getSerdePlugin(config, this.serialize, this.deserialize),
13
- getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
14
- ];
10
+ return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
15
11
  })
16
12
  .s("GraniteServiceVersion20100801", "PutManagedInsightRules", {})
17
13
  .n("CloudWatchClient", "PutManagedInsightRulesCommand")
18
- .f(void 0, void 0)
19
- .ser(se_PutManagedInsightRulesCommand)
20
- .de(de_PutManagedInsightRulesCommand)
14
+ .sc(PutManagedInsightRules)
21
15
  .build() {
22
16
  }
@@ -1,22 +1,16 @@
1
1
  import { getEndpointPlugin } from "@smithy/middleware-endpoint";
2
- import { getSerdePlugin } from "@smithy/middleware-serde";
3
2
  import { Command as $Command } from "@smithy/smithy-client";
4
3
  import { commonParams } from "../endpoint/EndpointParameters";
5
- import { de_PutMetricAlarmCommand, se_PutMetricAlarmCommand } from "../protocols/Aws_query";
4
+ import { PutMetricAlarm } from "../schemas/schemas_0";
6
5
  export { $Command };
7
6
  export class PutMetricAlarmCommand extends $Command
8
7
  .classBuilder()
9
8
  .ep(commonParams)
10
9
  .m(function (Command, cs, config, o) {
11
- return [
12
- getSerdePlugin(config, this.serialize, this.deserialize),
13
- getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
14
- ];
10
+ return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
15
11
  })
16
12
  .s("GraniteServiceVersion20100801", "PutMetricAlarm", {})
17
13
  .n("CloudWatchClient", "PutMetricAlarmCommand")
18
- .f(void 0, void 0)
19
- .ser(se_PutMetricAlarmCommand)
20
- .de(de_PutMetricAlarmCommand)
14
+ .sc(PutMetricAlarm)
21
15
  .build() {
22
16
  }
@@ -1,16 +1,14 @@
1
1
  import { getCompressionPlugin } from "@smithy/middleware-compression";
2
2
  import { getEndpointPlugin } from "@smithy/middleware-endpoint";
3
- import { getSerdePlugin } from "@smithy/middleware-serde";
4
3
  import { Command as $Command } from "@smithy/smithy-client";
5
4
  import { commonParams } from "../endpoint/EndpointParameters";
6
- import { de_PutMetricDataCommand, se_PutMetricDataCommand } from "../protocols/Aws_query";
5
+ import { PutMetricData } from "../schemas/schemas_0";
7
6
  export { $Command };
8
7
  export class PutMetricDataCommand extends $Command
9
8
  .classBuilder()
10
9
  .ep(commonParams)
11
10
  .m(function (Command, cs, config, o) {
12
11
  return [
13
- getSerdePlugin(config, this.serialize, this.deserialize),
14
12
  getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
15
13
  getCompressionPlugin(config, {
16
14
  encodings: ["gzip"],
@@ -19,8 +17,6 @@ export class PutMetricDataCommand extends $Command
19
17
  })
20
18
  .s("GraniteServiceVersion20100801", "PutMetricData", {})
21
19
  .n("CloudWatchClient", "PutMetricDataCommand")
22
- .f(void 0, void 0)
23
- .ser(se_PutMetricDataCommand)
24
- .de(de_PutMetricDataCommand)
20
+ .sc(PutMetricData)
25
21
  .build() {
26
22
  }
@@ -1,22 +1,16 @@
1
1
  import { getEndpointPlugin } from "@smithy/middleware-endpoint";
2
- import { getSerdePlugin } from "@smithy/middleware-serde";
3
2
  import { Command as $Command } from "@smithy/smithy-client";
4
3
  import { commonParams } from "../endpoint/EndpointParameters";
5
- import { de_PutMetricStreamCommand, se_PutMetricStreamCommand } from "../protocols/Aws_query";
4
+ import { PutMetricStream } from "../schemas/schemas_0";
6
5
  export { $Command };
7
6
  export class PutMetricStreamCommand extends $Command
8
7
  .classBuilder()
9
8
  .ep(commonParams)
10
9
  .m(function (Command, cs, config, o) {
11
- return [
12
- getSerdePlugin(config, this.serialize, this.deserialize),
13
- getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
14
- ];
10
+ return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
15
11
  })
16
12
  .s("GraniteServiceVersion20100801", "PutMetricStream", {})
17
13
  .n("CloudWatchClient", "PutMetricStreamCommand")
18
- .f(void 0, void 0)
19
- .ser(se_PutMetricStreamCommand)
20
- .de(de_PutMetricStreamCommand)
14
+ .sc(PutMetricStream)
21
15
  .build() {
22
16
  }
@@ -1,22 +1,16 @@
1
1
  import { getEndpointPlugin } from "@smithy/middleware-endpoint";
2
- import { getSerdePlugin } from "@smithy/middleware-serde";
3
2
  import { Command as $Command } from "@smithy/smithy-client";
4
3
  import { commonParams } from "../endpoint/EndpointParameters";
5
- import { de_SetAlarmStateCommand, se_SetAlarmStateCommand } from "../protocols/Aws_query";
4
+ import { SetAlarmState } from "../schemas/schemas_0";
6
5
  export { $Command };
7
6
  export class SetAlarmStateCommand extends $Command
8
7
  .classBuilder()
9
8
  .ep(commonParams)
10
9
  .m(function (Command, cs, config, o) {
11
- return [
12
- getSerdePlugin(config, this.serialize, this.deserialize),
13
- getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
14
- ];
10
+ return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
15
11
  })
16
12
  .s("GraniteServiceVersion20100801", "SetAlarmState", {})
17
13
  .n("CloudWatchClient", "SetAlarmStateCommand")
18
- .f(void 0, void 0)
19
- .ser(se_SetAlarmStateCommand)
20
- .de(de_SetAlarmStateCommand)
14
+ .sc(SetAlarmState)
21
15
  .build() {
22
16
  }
@@ -1,22 +1,16 @@
1
1
  import { getEndpointPlugin } from "@smithy/middleware-endpoint";
2
- import { getSerdePlugin } from "@smithy/middleware-serde";
3
2
  import { Command as $Command } from "@smithy/smithy-client";
4
3
  import { commonParams } from "../endpoint/EndpointParameters";
5
- import { de_StartMetricStreamsCommand, se_StartMetricStreamsCommand } from "../protocols/Aws_query";
4
+ import { StartMetricStreams } from "../schemas/schemas_0";
6
5
  export { $Command };
7
6
  export class StartMetricStreamsCommand extends $Command
8
7
  .classBuilder()
9
8
  .ep(commonParams)
10
9
  .m(function (Command, cs, config, o) {
11
- return [
12
- getSerdePlugin(config, this.serialize, this.deserialize),
13
- getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
14
- ];
10
+ return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
15
11
  })
16
12
  .s("GraniteServiceVersion20100801", "StartMetricStreams", {})
17
13
  .n("CloudWatchClient", "StartMetricStreamsCommand")
18
- .f(void 0, void 0)
19
- .ser(se_StartMetricStreamsCommand)
20
- .de(de_StartMetricStreamsCommand)
14
+ .sc(StartMetricStreams)
21
15
  .build() {
22
16
  }
@@ -1,22 +1,16 @@
1
1
  import { getEndpointPlugin } from "@smithy/middleware-endpoint";
2
- import { getSerdePlugin } from "@smithy/middleware-serde";
3
2
  import { Command as $Command } from "@smithy/smithy-client";
4
3
  import { commonParams } from "../endpoint/EndpointParameters";
5
- import { de_StopMetricStreamsCommand, se_StopMetricStreamsCommand } from "../protocols/Aws_query";
4
+ import { StopMetricStreams } from "../schemas/schemas_0";
6
5
  export { $Command };
7
6
  export class StopMetricStreamsCommand extends $Command
8
7
  .classBuilder()
9
8
  .ep(commonParams)
10
9
  .m(function (Command, cs, config, o) {
11
- return [
12
- getSerdePlugin(config, this.serialize, this.deserialize),
13
- getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
14
- ];
10
+ return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
15
11
  })
16
12
  .s("GraniteServiceVersion20100801", "StopMetricStreams", {})
17
13
  .n("CloudWatchClient", "StopMetricStreamsCommand")
18
- .f(void 0, void 0)
19
- .ser(se_StopMetricStreamsCommand)
20
- .de(de_StopMetricStreamsCommand)
14
+ .sc(StopMetricStreams)
21
15
  .build() {
22
16
  }
@@ -1,22 +1,16 @@
1
1
  import { getEndpointPlugin } from "@smithy/middleware-endpoint";
2
- import { getSerdePlugin } from "@smithy/middleware-serde";
3
2
  import { Command as $Command } from "@smithy/smithy-client";
4
3
  import { commonParams } from "../endpoint/EndpointParameters";
5
- import { de_TagResourceCommand, se_TagResourceCommand } from "../protocols/Aws_query";
4
+ import { TagResource } from "../schemas/schemas_0";
6
5
  export { $Command };
7
6
  export class TagResourceCommand extends $Command
8
7
  .classBuilder()
9
8
  .ep(commonParams)
10
9
  .m(function (Command, cs, config, o) {
11
- return [
12
- getSerdePlugin(config, this.serialize, this.deserialize),
13
- getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
14
- ];
10
+ return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
15
11
  })
16
12
  .s("GraniteServiceVersion20100801", "TagResource", {})
17
13
  .n("CloudWatchClient", "TagResourceCommand")
18
- .f(void 0, void 0)
19
- .ser(se_TagResourceCommand)
20
- .de(de_TagResourceCommand)
14
+ .sc(TagResource)
21
15
  .build() {
22
16
  }
@@ -1,22 +1,16 @@
1
1
  import { getEndpointPlugin } from "@smithy/middleware-endpoint";
2
- import { getSerdePlugin } from "@smithy/middleware-serde";
3
2
  import { Command as $Command } from "@smithy/smithy-client";
4
3
  import { commonParams } from "../endpoint/EndpointParameters";
5
- import { de_UntagResourceCommand, se_UntagResourceCommand } from "../protocols/Aws_query";
4
+ import { UntagResource } from "../schemas/schemas_0";
6
5
  export { $Command };
7
6
  export class UntagResourceCommand extends $Command
8
7
  .classBuilder()
9
8
  .ep(commonParams)
10
9
  .m(function (Command, cs, config, o) {
11
- return [
12
- getSerdePlugin(config, this.serialize, this.deserialize),
13
- getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
14
- ];
10
+ return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
15
11
  })
16
12
  .s("GraniteServiceVersion20100801", "UntagResource", {})
17
13
  .n("CloudWatchClient", "UntagResourceCommand")
18
- .f(void 0, void 0)
19
- .ser(se_UntagResourceCommand)
20
- .de(de_UntagResourceCommand)
14
+ .sc(UntagResource)
21
15
  .build() {
22
16
  }
@@ -1,4 +1,5 @@
1
1
  import { AwsSdkSigV4Signer } from "@aws-sdk/core";
2
+ import { AwsQueryProtocol } from "@aws-sdk/core/protocols";
2
3
  import { NoOpLogger } from "@smithy/smithy-client";
3
4
  import { parseUrl } from "@smithy/url-parser";
4
5
  import { fromBase64, toBase64 } from "@smithy/util-base64";
@@ -22,6 +23,12 @@ export const getRuntimeConfig = (config) => {
22
23
  },
23
24
  ],
24
25
  logger: config?.logger ?? new NoOpLogger(),
26
+ protocol: config?.protocol ??
27
+ new AwsQueryProtocol({
28
+ defaultNamespace: "com.amazonaws.cloudwatch",
29
+ xmlNamespace: "http://monitoring.amazonaws.com/doc/2010-08-01/",
30
+ version: "2010-08-01",
31
+ }),
25
32
  serviceId: config?.serviceId ?? "CloudWatch",
26
33
  urlParser: config?.urlParser ?? parseUrl,
27
34
  utf8Decoder: config?.utf8Decoder ?? fromUtf8,