@aws-sdk/client-resource-groups-tagging-api 3.312.0 → 3.316.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.
@@ -1,6 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.ResourceGroupsTaggingAPI = void 0;
4
+ const smithy_client_1 = require("@aws-sdk/smithy-client");
4
5
  const DescribeReportCreationCommand_1 = require("./commands/DescribeReportCreationCommand");
5
6
  const GetComplianceSummaryCommand_1 = require("./commands/GetComplianceSummaryCommand");
6
7
  const GetResourcesCommand_1 = require("./commands/GetResourcesCommand");
@@ -10,118 +11,17 @@ const StartReportCreationCommand_1 = require("./commands/StartReportCreationComm
10
11
  const TagResourcesCommand_1 = require("./commands/TagResourcesCommand");
11
12
  const UntagResourcesCommand_1 = require("./commands/UntagResourcesCommand");
12
13
  const ResourceGroupsTaggingAPIClient_1 = require("./ResourceGroupsTaggingAPIClient");
14
+ const commands = {
15
+ DescribeReportCreationCommand: DescribeReportCreationCommand_1.DescribeReportCreationCommand,
16
+ GetComplianceSummaryCommand: GetComplianceSummaryCommand_1.GetComplianceSummaryCommand,
17
+ GetResourcesCommand: GetResourcesCommand_1.GetResourcesCommand,
18
+ GetTagKeysCommand: GetTagKeysCommand_1.GetTagKeysCommand,
19
+ GetTagValuesCommand: GetTagValuesCommand_1.GetTagValuesCommand,
20
+ StartReportCreationCommand: StartReportCreationCommand_1.StartReportCreationCommand,
21
+ TagResourcesCommand: TagResourcesCommand_1.TagResourcesCommand,
22
+ UntagResourcesCommand: UntagResourcesCommand_1.UntagResourcesCommand,
23
+ };
13
24
  class ResourceGroupsTaggingAPI extends ResourceGroupsTaggingAPIClient_1.ResourceGroupsTaggingAPIClient {
14
- describeReportCreation(args, optionsOrCb, cb) {
15
- const command = new DescribeReportCreationCommand_1.DescribeReportCreationCommand(args);
16
- if (typeof optionsOrCb === "function") {
17
- this.send(command, optionsOrCb);
18
- }
19
- else if (typeof cb === "function") {
20
- if (typeof optionsOrCb !== "object")
21
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
22
- this.send(command, optionsOrCb || {}, cb);
23
- }
24
- else {
25
- return this.send(command, optionsOrCb);
26
- }
27
- }
28
- getComplianceSummary(args, optionsOrCb, cb) {
29
- const command = new GetComplianceSummaryCommand_1.GetComplianceSummaryCommand(args);
30
- if (typeof optionsOrCb === "function") {
31
- this.send(command, optionsOrCb);
32
- }
33
- else if (typeof cb === "function") {
34
- if (typeof optionsOrCb !== "object")
35
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
36
- this.send(command, optionsOrCb || {}, cb);
37
- }
38
- else {
39
- return this.send(command, optionsOrCb);
40
- }
41
- }
42
- getResources(args, optionsOrCb, cb) {
43
- const command = new GetResourcesCommand_1.GetResourcesCommand(args);
44
- if (typeof optionsOrCb === "function") {
45
- this.send(command, optionsOrCb);
46
- }
47
- else if (typeof cb === "function") {
48
- if (typeof optionsOrCb !== "object")
49
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
50
- this.send(command, optionsOrCb || {}, cb);
51
- }
52
- else {
53
- return this.send(command, optionsOrCb);
54
- }
55
- }
56
- getTagKeys(args, optionsOrCb, cb) {
57
- const command = new GetTagKeysCommand_1.GetTagKeysCommand(args);
58
- if (typeof optionsOrCb === "function") {
59
- this.send(command, optionsOrCb);
60
- }
61
- else if (typeof cb === "function") {
62
- if (typeof optionsOrCb !== "object")
63
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
64
- this.send(command, optionsOrCb || {}, cb);
65
- }
66
- else {
67
- return this.send(command, optionsOrCb);
68
- }
69
- }
70
- getTagValues(args, optionsOrCb, cb) {
71
- const command = new GetTagValuesCommand_1.GetTagValuesCommand(args);
72
- if (typeof optionsOrCb === "function") {
73
- this.send(command, optionsOrCb);
74
- }
75
- else if (typeof cb === "function") {
76
- if (typeof optionsOrCb !== "object")
77
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
78
- this.send(command, optionsOrCb || {}, cb);
79
- }
80
- else {
81
- return this.send(command, optionsOrCb);
82
- }
83
- }
84
- startReportCreation(args, optionsOrCb, cb) {
85
- const command = new StartReportCreationCommand_1.StartReportCreationCommand(args);
86
- if (typeof optionsOrCb === "function") {
87
- this.send(command, optionsOrCb);
88
- }
89
- else if (typeof cb === "function") {
90
- if (typeof optionsOrCb !== "object")
91
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
92
- this.send(command, optionsOrCb || {}, cb);
93
- }
94
- else {
95
- return this.send(command, optionsOrCb);
96
- }
97
- }
98
- tagResources(args, optionsOrCb, cb) {
99
- const command = new TagResourcesCommand_1.TagResourcesCommand(args);
100
- if (typeof optionsOrCb === "function") {
101
- this.send(command, optionsOrCb);
102
- }
103
- else if (typeof cb === "function") {
104
- if (typeof optionsOrCb !== "object")
105
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
106
- this.send(command, optionsOrCb || {}, cb);
107
- }
108
- else {
109
- return this.send(command, optionsOrCb);
110
- }
111
- }
112
- untagResources(args, optionsOrCb, cb) {
113
- const command = new UntagResourcesCommand_1.UntagResourcesCommand(args);
114
- if (typeof optionsOrCb === "function") {
115
- this.send(command, optionsOrCb);
116
- }
117
- else if (typeof cb === "function") {
118
- if (typeof optionsOrCb !== "object")
119
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
120
- this.send(command, optionsOrCb || {}, cb);
121
- }
122
- else {
123
- return this.send(command, optionsOrCb);
124
- }
125
- }
126
25
  }
127
26
  exports.ResourceGroupsTaggingAPI = ResourceGroupsTaggingAPI;
27
+ (0, smithy_client_1.createAggregatedClient)(commands, ResourceGroupsTaggingAPI);