@aws-sdk/client-resource-groups 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.ResourceGroups = void 0;
4
+ const smithy_client_1 = require("@aws-sdk/smithy-client");
4
5
  const CreateGroupCommand_1 = require("./commands/CreateGroupCommand");
5
6
  const DeleteGroupCommand_1 = require("./commands/DeleteGroupCommand");
6
7
  const GetAccountSettingsCommand_1 = require("./commands/GetAccountSettingsCommand");
@@ -20,258 +21,27 @@ const UpdateAccountSettingsCommand_1 = require("./commands/UpdateAccountSettings
20
21
  const UpdateGroupCommand_1 = require("./commands/UpdateGroupCommand");
21
22
  const UpdateGroupQueryCommand_1 = require("./commands/UpdateGroupQueryCommand");
22
23
  const ResourceGroupsClient_1 = require("./ResourceGroupsClient");
24
+ const commands = {
25
+ CreateGroupCommand: CreateGroupCommand_1.CreateGroupCommand,
26
+ DeleteGroupCommand: DeleteGroupCommand_1.DeleteGroupCommand,
27
+ GetAccountSettingsCommand: GetAccountSettingsCommand_1.GetAccountSettingsCommand,
28
+ GetGroupCommand: GetGroupCommand_1.GetGroupCommand,
29
+ GetGroupConfigurationCommand: GetGroupConfigurationCommand_1.GetGroupConfigurationCommand,
30
+ GetGroupQueryCommand: GetGroupQueryCommand_1.GetGroupQueryCommand,
31
+ GetTagsCommand: GetTagsCommand_1.GetTagsCommand,
32
+ GroupResourcesCommand: GroupResourcesCommand_1.GroupResourcesCommand,
33
+ ListGroupResourcesCommand: ListGroupResourcesCommand_1.ListGroupResourcesCommand,
34
+ ListGroupsCommand: ListGroupsCommand_1.ListGroupsCommand,
35
+ PutGroupConfigurationCommand: PutGroupConfigurationCommand_1.PutGroupConfigurationCommand,
36
+ SearchResourcesCommand: SearchResourcesCommand_1.SearchResourcesCommand,
37
+ TagCommand: TagCommand_1.TagCommand,
38
+ UngroupResourcesCommand: UngroupResourcesCommand_1.UngroupResourcesCommand,
39
+ UntagCommand: UntagCommand_1.UntagCommand,
40
+ UpdateAccountSettingsCommand: UpdateAccountSettingsCommand_1.UpdateAccountSettingsCommand,
41
+ UpdateGroupCommand: UpdateGroupCommand_1.UpdateGroupCommand,
42
+ UpdateGroupQueryCommand: UpdateGroupQueryCommand_1.UpdateGroupQueryCommand,
43
+ };
23
44
  class ResourceGroups extends ResourceGroupsClient_1.ResourceGroupsClient {
24
- createGroup(args, optionsOrCb, cb) {
25
- const command = new CreateGroupCommand_1.CreateGroupCommand(args);
26
- if (typeof optionsOrCb === "function") {
27
- this.send(command, optionsOrCb);
28
- }
29
- else if (typeof cb === "function") {
30
- if (typeof optionsOrCb !== "object")
31
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
32
- this.send(command, optionsOrCb || {}, cb);
33
- }
34
- else {
35
- return this.send(command, optionsOrCb);
36
- }
37
- }
38
- deleteGroup(args, optionsOrCb, cb) {
39
- const command = new DeleteGroupCommand_1.DeleteGroupCommand(args);
40
- if (typeof optionsOrCb === "function") {
41
- this.send(command, optionsOrCb);
42
- }
43
- else if (typeof cb === "function") {
44
- if (typeof optionsOrCb !== "object")
45
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
46
- this.send(command, optionsOrCb || {}, cb);
47
- }
48
- else {
49
- return this.send(command, optionsOrCb);
50
- }
51
- }
52
- getAccountSettings(args, optionsOrCb, cb) {
53
- const command = new GetAccountSettingsCommand_1.GetAccountSettingsCommand(args);
54
- if (typeof optionsOrCb === "function") {
55
- this.send(command, optionsOrCb);
56
- }
57
- else if (typeof cb === "function") {
58
- if (typeof optionsOrCb !== "object")
59
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
60
- this.send(command, optionsOrCb || {}, cb);
61
- }
62
- else {
63
- return this.send(command, optionsOrCb);
64
- }
65
- }
66
- getGroup(args, optionsOrCb, cb) {
67
- const command = new GetGroupCommand_1.GetGroupCommand(args);
68
- if (typeof optionsOrCb === "function") {
69
- this.send(command, optionsOrCb);
70
- }
71
- else if (typeof cb === "function") {
72
- if (typeof optionsOrCb !== "object")
73
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
74
- this.send(command, optionsOrCb || {}, cb);
75
- }
76
- else {
77
- return this.send(command, optionsOrCb);
78
- }
79
- }
80
- getGroupConfiguration(args, optionsOrCb, cb) {
81
- const command = new GetGroupConfigurationCommand_1.GetGroupConfigurationCommand(args);
82
- if (typeof optionsOrCb === "function") {
83
- this.send(command, optionsOrCb);
84
- }
85
- else if (typeof cb === "function") {
86
- if (typeof optionsOrCb !== "object")
87
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
88
- this.send(command, optionsOrCb || {}, cb);
89
- }
90
- else {
91
- return this.send(command, optionsOrCb);
92
- }
93
- }
94
- getGroupQuery(args, optionsOrCb, cb) {
95
- const command = new GetGroupQueryCommand_1.GetGroupQueryCommand(args);
96
- if (typeof optionsOrCb === "function") {
97
- this.send(command, optionsOrCb);
98
- }
99
- else if (typeof cb === "function") {
100
- if (typeof optionsOrCb !== "object")
101
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
102
- this.send(command, optionsOrCb || {}, cb);
103
- }
104
- else {
105
- return this.send(command, optionsOrCb);
106
- }
107
- }
108
- getTags(args, optionsOrCb, cb) {
109
- const command = new GetTagsCommand_1.GetTagsCommand(args);
110
- if (typeof optionsOrCb === "function") {
111
- this.send(command, optionsOrCb);
112
- }
113
- else if (typeof cb === "function") {
114
- if (typeof optionsOrCb !== "object")
115
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
116
- this.send(command, optionsOrCb || {}, cb);
117
- }
118
- else {
119
- return this.send(command, optionsOrCb);
120
- }
121
- }
122
- groupResources(args, optionsOrCb, cb) {
123
- const command = new GroupResourcesCommand_1.GroupResourcesCommand(args);
124
- if (typeof optionsOrCb === "function") {
125
- this.send(command, optionsOrCb);
126
- }
127
- else if (typeof cb === "function") {
128
- if (typeof optionsOrCb !== "object")
129
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
130
- this.send(command, optionsOrCb || {}, cb);
131
- }
132
- else {
133
- return this.send(command, optionsOrCb);
134
- }
135
- }
136
- listGroupResources(args, optionsOrCb, cb) {
137
- const command = new ListGroupResourcesCommand_1.ListGroupResourcesCommand(args);
138
- if (typeof optionsOrCb === "function") {
139
- this.send(command, optionsOrCb);
140
- }
141
- else if (typeof cb === "function") {
142
- if (typeof optionsOrCb !== "object")
143
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
144
- this.send(command, optionsOrCb || {}, cb);
145
- }
146
- else {
147
- return this.send(command, optionsOrCb);
148
- }
149
- }
150
- listGroups(args, optionsOrCb, cb) {
151
- const command = new ListGroupsCommand_1.ListGroupsCommand(args);
152
- if (typeof optionsOrCb === "function") {
153
- this.send(command, optionsOrCb);
154
- }
155
- else if (typeof cb === "function") {
156
- if (typeof optionsOrCb !== "object")
157
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
158
- this.send(command, optionsOrCb || {}, cb);
159
- }
160
- else {
161
- return this.send(command, optionsOrCb);
162
- }
163
- }
164
- putGroupConfiguration(args, optionsOrCb, cb) {
165
- const command = new PutGroupConfigurationCommand_1.PutGroupConfigurationCommand(args);
166
- if (typeof optionsOrCb === "function") {
167
- this.send(command, optionsOrCb);
168
- }
169
- else if (typeof cb === "function") {
170
- if (typeof optionsOrCb !== "object")
171
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
172
- this.send(command, optionsOrCb || {}, cb);
173
- }
174
- else {
175
- return this.send(command, optionsOrCb);
176
- }
177
- }
178
- searchResources(args, optionsOrCb, cb) {
179
- const command = new SearchResourcesCommand_1.SearchResourcesCommand(args);
180
- if (typeof optionsOrCb === "function") {
181
- this.send(command, optionsOrCb);
182
- }
183
- else if (typeof cb === "function") {
184
- if (typeof optionsOrCb !== "object")
185
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
186
- this.send(command, optionsOrCb || {}, cb);
187
- }
188
- else {
189
- return this.send(command, optionsOrCb);
190
- }
191
- }
192
- tag(args, optionsOrCb, cb) {
193
- const command = new TagCommand_1.TagCommand(args);
194
- if (typeof optionsOrCb === "function") {
195
- this.send(command, optionsOrCb);
196
- }
197
- else if (typeof cb === "function") {
198
- if (typeof optionsOrCb !== "object")
199
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
200
- this.send(command, optionsOrCb || {}, cb);
201
- }
202
- else {
203
- return this.send(command, optionsOrCb);
204
- }
205
- }
206
- ungroupResources(args, optionsOrCb, cb) {
207
- const command = new UngroupResourcesCommand_1.UngroupResourcesCommand(args);
208
- if (typeof optionsOrCb === "function") {
209
- this.send(command, optionsOrCb);
210
- }
211
- else if (typeof cb === "function") {
212
- if (typeof optionsOrCb !== "object")
213
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
214
- this.send(command, optionsOrCb || {}, cb);
215
- }
216
- else {
217
- return this.send(command, optionsOrCb);
218
- }
219
- }
220
- untag(args, optionsOrCb, cb) {
221
- const command = new UntagCommand_1.UntagCommand(args);
222
- if (typeof optionsOrCb === "function") {
223
- this.send(command, optionsOrCb);
224
- }
225
- else if (typeof cb === "function") {
226
- if (typeof optionsOrCb !== "object")
227
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
228
- this.send(command, optionsOrCb || {}, cb);
229
- }
230
- else {
231
- return this.send(command, optionsOrCb);
232
- }
233
- }
234
- updateAccountSettings(args, optionsOrCb, cb) {
235
- const command = new UpdateAccountSettingsCommand_1.UpdateAccountSettingsCommand(args);
236
- if (typeof optionsOrCb === "function") {
237
- this.send(command, optionsOrCb);
238
- }
239
- else if (typeof cb === "function") {
240
- if (typeof optionsOrCb !== "object")
241
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
242
- this.send(command, optionsOrCb || {}, cb);
243
- }
244
- else {
245
- return this.send(command, optionsOrCb);
246
- }
247
- }
248
- updateGroup(args, optionsOrCb, cb) {
249
- const command = new UpdateGroupCommand_1.UpdateGroupCommand(args);
250
- if (typeof optionsOrCb === "function") {
251
- this.send(command, optionsOrCb);
252
- }
253
- else if (typeof cb === "function") {
254
- if (typeof optionsOrCb !== "object")
255
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
256
- this.send(command, optionsOrCb || {}, cb);
257
- }
258
- else {
259
- return this.send(command, optionsOrCb);
260
- }
261
- }
262
- updateGroupQuery(args, optionsOrCb, cb) {
263
- const command = new UpdateGroupQueryCommand_1.UpdateGroupQueryCommand(args);
264
- if (typeof optionsOrCb === "function") {
265
- this.send(command, optionsOrCb);
266
- }
267
- else if (typeof cb === "function") {
268
- if (typeof optionsOrCb !== "object")
269
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
270
- this.send(command, optionsOrCb || {}, cb);
271
- }
272
- else {
273
- return this.send(command, optionsOrCb);
274
- }
275
- }
276
45
  }
277
46
  exports.ResourceGroups = ResourceGroups;
47
+ (0, smithy_client_1.createAggregatedClient)(commands, ResourceGroups);