@aws-sdk/client-memorydb 3.315.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.MemoryDB = void 0;
4
+ const smithy_client_1 = require("@aws-sdk/smithy-client");
4
5
  const BatchUpdateClusterCommand_1 = require("./commands/BatchUpdateClusterCommand");
5
6
  const CopySnapshotCommand_1 = require("./commands/CopySnapshotCommand");
6
7
  const CreateACLCommand_1 = require("./commands/CreateACLCommand");
@@ -40,538 +41,47 @@ const UpdateParameterGroupCommand_1 = require("./commands/UpdateParameterGroupCo
40
41
  const UpdateSubnetGroupCommand_1 = require("./commands/UpdateSubnetGroupCommand");
41
42
  const UpdateUserCommand_1 = require("./commands/UpdateUserCommand");
42
43
  const MemoryDBClient_1 = require("./MemoryDBClient");
44
+ const commands = {
45
+ BatchUpdateClusterCommand: BatchUpdateClusterCommand_1.BatchUpdateClusterCommand,
46
+ CopySnapshotCommand: CopySnapshotCommand_1.CopySnapshotCommand,
47
+ CreateACLCommand: CreateACLCommand_1.CreateACLCommand,
48
+ CreateClusterCommand: CreateClusterCommand_1.CreateClusterCommand,
49
+ CreateParameterGroupCommand: CreateParameterGroupCommand_1.CreateParameterGroupCommand,
50
+ CreateSnapshotCommand: CreateSnapshotCommand_1.CreateSnapshotCommand,
51
+ CreateSubnetGroupCommand: CreateSubnetGroupCommand_1.CreateSubnetGroupCommand,
52
+ CreateUserCommand: CreateUserCommand_1.CreateUserCommand,
53
+ DeleteACLCommand: DeleteACLCommand_1.DeleteACLCommand,
54
+ DeleteClusterCommand: DeleteClusterCommand_1.DeleteClusterCommand,
55
+ DeleteParameterGroupCommand: DeleteParameterGroupCommand_1.DeleteParameterGroupCommand,
56
+ DeleteSnapshotCommand: DeleteSnapshotCommand_1.DeleteSnapshotCommand,
57
+ DeleteSubnetGroupCommand: DeleteSubnetGroupCommand_1.DeleteSubnetGroupCommand,
58
+ DeleteUserCommand: DeleteUserCommand_1.DeleteUserCommand,
59
+ DescribeACLsCommand: DescribeACLsCommand_1.DescribeACLsCommand,
60
+ DescribeClustersCommand: DescribeClustersCommand_1.DescribeClustersCommand,
61
+ DescribeEngineVersionsCommand: DescribeEngineVersionsCommand_1.DescribeEngineVersionsCommand,
62
+ DescribeEventsCommand: DescribeEventsCommand_1.DescribeEventsCommand,
63
+ DescribeParameterGroupsCommand: DescribeParameterGroupsCommand_1.DescribeParameterGroupsCommand,
64
+ DescribeParametersCommand: DescribeParametersCommand_1.DescribeParametersCommand,
65
+ DescribeReservedNodesCommand: DescribeReservedNodesCommand_1.DescribeReservedNodesCommand,
66
+ DescribeReservedNodesOfferingsCommand: DescribeReservedNodesOfferingsCommand_1.DescribeReservedNodesOfferingsCommand,
67
+ DescribeServiceUpdatesCommand: DescribeServiceUpdatesCommand_1.DescribeServiceUpdatesCommand,
68
+ DescribeSnapshotsCommand: DescribeSnapshotsCommand_1.DescribeSnapshotsCommand,
69
+ DescribeSubnetGroupsCommand: DescribeSubnetGroupsCommand_1.DescribeSubnetGroupsCommand,
70
+ DescribeUsersCommand: DescribeUsersCommand_1.DescribeUsersCommand,
71
+ FailoverShardCommand: FailoverShardCommand_1.FailoverShardCommand,
72
+ ListAllowedNodeTypeUpdatesCommand: ListAllowedNodeTypeUpdatesCommand_1.ListAllowedNodeTypeUpdatesCommand,
73
+ ListTagsCommand: ListTagsCommand_1.ListTagsCommand,
74
+ PurchaseReservedNodesOfferingCommand: PurchaseReservedNodesOfferingCommand_1.PurchaseReservedNodesOfferingCommand,
75
+ ResetParameterGroupCommand: ResetParameterGroupCommand_1.ResetParameterGroupCommand,
76
+ TagResourceCommand: TagResourceCommand_1.TagResourceCommand,
77
+ UntagResourceCommand: UntagResourceCommand_1.UntagResourceCommand,
78
+ UpdateACLCommand: UpdateACLCommand_1.UpdateACLCommand,
79
+ UpdateClusterCommand: UpdateClusterCommand_1.UpdateClusterCommand,
80
+ UpdateParameterGroupCommand: UpdateParameterGroupCommand_1.UpdateParameterGroupCommand,
81
+ UpdateSubnetGroupCommand: UpdateSubnetGroupCommand_1.UpdateSubnetGroupCommand,
82
+ UpdateUserCommand: UpdateUserCommand_1.UpdateUserCommand,
83
+ };
43
84
  class MemoryDB extends MemoryDBClient_1.MemoryDBClient {
44
- batchUpdateCluster(args, optionsOrCb, cb) {
45
- const command = new BatchUpdateClusterCommand_1.BatchUpdateClusterCommand(args);
46
- if (typeof optionsOrCb === "function") {
47
- this.send(command, optionsOrCb);
48
- }
49
- else if (typeof cb === "function") {
50
- if (typeof optionsOrCb !== "object")
51
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
52
- this.send(command, optionsOrCb || {}, cb);
53
- }
54
- else {
55
- return this.send(command, optionsOrCb);
56
- }
57
- }
58
- copySnapshot(args, optionsOrCb, cb) {
59
- const command = new CopySnapshotCommand_1.CopySnapshotCommand(args);
60
- if (typeof optionsOrCb === "function") {
61
- this.send(command, optionsOrCb);
62
- }
63
- else if (typeof cb === "function") {
64
- if (typeof optionsOrCb !== "object")
65
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
66
- this.send(command, optionsOrCb || {}, cb);
67
- }
68
- else {
69
- return this.send(command, optionsOrCb);
70
- }
71
- }
72
- createACL(args, optionsOrCb, cb) {
73
- const command = new CreateACLCommand_1.CreateACLCommand(args);
74
- if (typeof optionsOrCb === "function") {
75
- this.send(command, optionsOrCb);
76
- }
77
- else if (typeof cb === "function") {
78
- if (typeof optionsOrCb !== "object")
79
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
80
- this.send(command, optionsOrCb || {}, cb);
81
- }
82
- else {
83
- return this.send(command, optionsOrCb);
84
- }
85
- }
86
- createCluster(args, optionsOrCb, cb) {
87
- const command = new CreateClusterCommand_1.CreateClusterCommand(args);
88
- if (typeof optionsOrCb === "function") {
89
- this.send(command, optionsOrCb);
90
- }
91
- else if (typeof cb === "function") {
92
- if (typeof optionsOrCb !== "object")
93
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
94
- this.send(command, optionsOrCb || {}, cb);
95
- }
96
- else {
97
- return this.send(command, optionsOrCb);
98
- }
99
- }
100
- createParameterGroup(args, optionsOrCb, cb) {
101
- const command = new CreateParameterGroupCommand_1.CreateParameterGroupCommand(args);
102
- if (typeof optionsOrCb === "function") {
103
- this.send(command, optionsOrCb);
104
- }
105
- else if (typeof cb === "function") {
106
- if (typeof optionsOrCb !== "object")
107
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
108
- this.send(command, optionsOrCb || {}, cb);
109
- }
110
- else {
111
- return this.send(command, optionsOrCb);
112
- }
113
- }
114
- createSnapshot(args, optionsOrCb, cb) {
115
- const command = new CreateSnapshotCommand_1.CreateSnapshotCommand(args);
116
- if (typeof optionsOrCb === "function") {
117
- this.send(command, optionsOrCb);
118
- }
119
- else if (typeof cb === "function") {
120
- if (typeof optionsOrCb !== "object")
121
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
122
- this.send(command, optionsOrCb || {}, cb);
123
- }
124
- else {
125
- return this.send(command, optionsOrCb);
126
- }
127
- }
128
- createSubnetGroup(args, optionsOrCb, cb) {
129
- const command = new CreateSubnetGroupCommand_1.CreateSubnetGroupCommand(args);
130
- if (typeof optionsOrCb === "function") {
131
- this.send(command, optionsOrCb);
132
- }
133
- else if (typeof cb === "function") {
134
- if (typeof optionsOrCb !== "object")
135
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
136
- this.send(command, optionsOrCb || {}, cb);
137
- }
138
- else {
139
- return this.send(command, optionsOrCb);
140
- }
141
- }
142
- createUser(args, optionsOrCb, cb) {
143
- const command = new CreateUserCommand_1.CreateUserCommand(args);
144
- if (typeof optionsOrCb === "function") {
145
- this.send(command, optionsOrCb);
146
- }
147
- else if (typeof cb === "function") {
148
- if (typeof optionsOrCb !== "object")
149
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
150
- this.send(command, optionsOrCb || {}, cb);
151
- }
152
- else {
153
- return this.send(command, optionsOrCb);
154
- }
155
- }
156
- deleteACL(args, optionsOrCb, cb) {
157
- const command = new DeleteACLCommand_1.DeleteACLCommand(args);
158
- if (typeof optionsOrCb === "function") {
159
- this.send(command, optionsOrCb);
160
- }
161
- else if (typeof cb === "function") {
162
- if (typeof optionsOrCb !== "object")
163
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
164
- this.send(command, optionsOrCb || {}, cb);
165
- }
166
- else {
167
- return this.send(command, optionsOrCb);
168
- }
169
- }
170
- deleteCluster(args, optionsOrCb, cb) {
171
- const command = new DeleteClusterCommand_1.DeleteClusterCommand(args);
172
- if (typeof optionsOrCb === "function") {
173
- this.send(command, optionsOrCb);
174
- }
175
- else if (typeof cb === "function") {
176
- if (typeof optionsOrCb !== "object")
177
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
178
- this.send(command, optionsOrCb || {}, cb);
179
- }
180
- else {
181
- return this.send(command, optionsOrCb);
182
- }
183
- }
184
- deleteParameterGroup(args, optionsOrCb, cb) {
185
- const command = new DeleteParameterGroupCommand_1.DeleteParameterGroupCommand(args);
186
- if (typeof optionsOrCb === "function") {
187
- this.send(command, optionsOrCb);
188
- }
189
- else if (typeof cb === "function") {
190
- if (typeof optionsOrCb !== "object")
191
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
192
- this.send(command, optionsOrCb || {}, cb);
193
- }
194
- else {
195
- return this.send(command, optionsOrCb);
196
- }
197
- }
198
- deleteSnapshot(args, optionsOrCb, cb) {
199
- const command = new DeleteSnapshotCommand_1.DeleteSnapshotCommand(args);
200
- if (typeof optionsOrCb === "function") {
201
- this.send(command, optionsOrCb);
202
- }
203
- else if (typeof cb === "function") {
204
- if (typeof optionsOrCb !== "object")
205
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
206
- this.send(command, optionsOrCb || {}, cb);
207
- }
208
- else {
209
- return this.send(command, optionsOrCb);
210
- }
211
- }
212
- deleteSubnetGroup(args, optionsOrCb, cb) {
213
- const command = new DeleteSubnetGroupCommand_1.DeleteSubnetGroupCommand(args);
214
- if (typeof optionsOrCb === "function") {
215
- this.send(command, optionsOrCb);
216
- }
217
- else if (typeof cb === "function") {
218
- if (typeof optionsOrCb !== "object")
219
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
220
- this.send(command, optionsOrCb || {}, cb);
221
- }
222
- else {
223
- return this.send(command, optionsOrCb);
224
- }
225
- }
226
- deleteUser(args, optionsOrCb, cb) {
227
- const command = new DeleteUserCommand_1.DeleteUserCommand(args);
228
- if (typeof optionsOrCb === "function") {
229
- this.send(command, optionsOrCb);
230
- }
231
- else if (typeof cb === "function") {
232
- if (typeof optionsOrCb !== "object")
233
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
234
- this.send(command, optionsOrCb || {}, cb);
235
- }
236
- else {
237
- return this.send(command, optionsOrCb);
238
- }
239
- }
240
- describeACLs(args, optionsOrCb, cb) {
241
- const command = new DescribeACLsCommand_1.DescribeACLsCommand(args);
242
- if (typeof optionsOrCb === "function") {
243
- this.send(command, optionsOrCb);
244
- }
245
- else if (typeof cb === "function") {
246
- if (typeof optionsOrCb !== "object")
247
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
248
- this.send(command, optionsOrCb || {}, cb);
249
- }
250
- else {
251
- return this.send(command, optionsOrCb);
252
- }
253
- }
254
- describeClusters(args, optionsOrCb, cb) {
255
- const command = new DescribeClustersCommand_1.DescribeClustersCommand(args);
256
- if (typeof optionsOrCb === "function") {
257
- this.send(command, optionsOrCb);
258
- }
259
- else if (typeof cb === "function") {
260
- if (typeof optionsOrCb !== "object")
261
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
262
- this.send(command, optionsOrCb || {}, cb);
263
- }
264
- else {
265
- return this.send(command, optionsOrCb);
266
- }
267
- }
268
- describeEngineVersions(args, optionsOrCb, cb) {
269
- const command = new DescribeEngineVersionsCommand_1.DescribeEngineVersionsCommand(args);
270
- if (typeof optionsOrCb === "function") {
271
- this.send(command, optionsOrCb);
272
- }
273
- else if (typeof cb === "function") {
274
- if (typeof optionsOrCb !== "object")
275
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
276
- this.send(command, optionsOrCb || {}, cb);
277
- }
278
- else {
279
- return this.send(command, optionsOrCb);
280
- }
281
- }
282
- describeEvents(args, optionsOrCb, cb) {
283
- const command = new DescribeEventsCommand_1.DescribeEventsCommand(args);
284
- if (typeof optionsOrCb === "function") {
285
- this.send(command, optionsOrCb);
286
- }
287
- else if (typeof cb === "function") {
288
- if (typeof optionsOrCb !== "object")
289
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
290
- this.send(command, optionsOrCb || {}, cb);
291
- }
292
- else {
293
- return this.send(command, optionsOrCb);
294
- }
295
- }
296
- describeParameterGroups(args, optionsOrCb, cb) {
297
- const command = new DescribeParameterGroupsCommand_1.DescribeParameterGroupsCommand(args);
298
- if (typeof optionsOrCb === "function") {
299
- this.send(command, optionsOrCb);
300
- }
301
- else if (typeof cb === "function") {
302
- if (typeof optionsOrCb !== "object")
303
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
304
- this.send(command, optionsOrCb || {}, cb);
305
- }
306
- else {
307
- return this.send(command, optionsOrCb);
308
- }
309
- }
310
- describeParameters(args, optionsOrCb, cb) {
311
- const command = new DescribeParametersCommand_1.DescribeParametersCommand(args);
312
- if (typeof optionsOrCb === "function") {
313
- this.send(command, optionsOrCb);
314
- }
315
- else if (typeof cb === "function") {
316
- if (typeof optionsOrCb !== "object")
317
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
318
- this.send(command, optionsOrCb || {}, cb);
319
- }
320
- else {
321
- return this.send(command, optionsOrCb);
322
- }
323
- }
324
- describeReservedNodes(args, optionsOrCb, cb) {
325
- const command = new DescribeReservedNodesCommand_1.DescribeReservedNodesCommand(args);
326
- if (typeof optionsOrCb === "function") {
327
- this.send(command, optionsOrCb);
328
- }
329
- else if (typeof cb === "function") {
330
- if (typeof optionsOrCb !== "object")
331
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
332
- this.send(command, optionsOrCb || {}, cb);
333
- }
334
- else {
335
- return this.send(command, optionsOrCb);
336
- }
337
- }
338
- describeReservedNodesOfferings(args, optionsOrCb, cb) {
339
- const command = new DescribeReservedNodesOfferingsCommand_1.DescribeReservedNodesOfferingsCommand(args);
340
- if (typeof optionsOrCb === "function") {
341
- this.send(command, optionsOrCb);
342
- }
343
- else if (typeof cb === "function") {
344
- if (typeof optionsOrCb !== "object")
345
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
346
- this.send(command, optionsOrCb || {}, cb);
347
- }
348
- else {
349
- return this.send(command, optionsOrCb);
350
- }
351
- }
352
- describeServiceUpdates(args, optionsOrCb, cb) {
353
- const command = new DescribeServiceUpdatesCommand_1.DescribeServiceUpdatesCommand(args);
354
- if (typeof optionsOrCb === "function") {
355
- this.send(command, optionsOrCb);
356
- }
357
- else if (typeof cb === "function") {
358
- if (typeof optionsOrCb !== "object")
359
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
360
- this.send(command, optionsOrCb || {}, cb);
361
- }
362
- else {
363
- return this.send(command, optionsOrCb);
364
- }
365
- }
366
- describeSnapshots(args, optionsOrCb, cb) {
367
- const command = new DescribeSnapshotsCommand_1.DescribeSnapshotsCommand(args);
368
- if (typeof optionsOrCb === "function") {
369
- this.send(command, optionsOrCb);
370
- }
371
- else if (typeof cb === "function") {
372
- if (typeof optionsOrCb !== "object")
373
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
374
- this.send(command, optionsOrCb || {}, cb);
375
- }
376
- else {
377
- return this.send(command, optionsOrCb);
378
- }
379
- }
380
- describeSubnetGroups(args, optionsOrCb, cb) {
381
- const command = new DescribeSubnetGroupsCommand_1.DescribeSubnetGroupsCommand(args);
382
- if (typeof optionsOrCb === "function") {
383
- this.send(command, optionsOrCb);
384
- }
385
- else if (typeof cb === "function") {
386
- if (typeof optionsOrCb !== "object")
387
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
388
- this.send(command, optionsOrCb || {}, cb);
389
- }
390
- else {
391
- return this.send(command, optionsOrCb);
392
- }
393
- }
394
- describeUsers(args, optionsOrCb, cb) {
395
- const command = new DescribeUsersCommand_1.DescribeUsersCommand(args);
396
- if (typeof optionsOrCb === "function") {
397
- this.send(command, optionsOrCb);
398
- }
399
- else if (typeof cb === "function") {
400
- if (typeof optionsOrCb !== "object")
401
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
402
- this.send(command, optionsOrCb || {}, cb);
403
- }
404
- else {
405
- return this.send(command, optionsOrCb);
406
- }
407
- }
408
- failoverShard(args, optionsOrCb, cb) {
409
- const command = new FailoverShardCommand_1.FailoverShardCommand(args);
410
- if (typeof optionsOrCb === "function") {
411
- this.send(command, optionsOrCb);
412
- }
413
- else if (typeof cb === "function") {
414
- if (typeof optionsOrCb !== "object")
415
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
416
- this.send(command, optionsOrCb || {}, cb);
417
- }
418
- else {
419
- return this.send(command, optionsOrCb);
420
- }
421
- }
422
- listAllowedNodeTypeUpdates(args, optionsOrCb, cb) {
423
- const command = new ListAllowedNodeTypeUpdatesCommand_1.ListAllowedNodeTypeUpdatesCommand(args);
424
- if (typeof optionsOrCb === "function") {
425
- this.send(command, optionsOrCb);
426
- }
427
- else if (typeof cb === "function") {
428
- if (typeof optionsOrCb !== "object")
429
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
430
- this.send(command, optionsOrCb || {}, cb);
431
- }
432
- else {
433
- return this.send(command, optionsOrCb);
434
- }
435
- }
436
- listTags(args, optionsOrCb, cb) {
437
- const command = new ListTagsCommand_1.ListTagsCommand(args);
438
- if (typeof optionsOrCb === "function") {
439
- this.send(command, optionsOrCb);
440
- }
441
- else if (typeof cb === "function") {
442
- if (typeof optionsOrCb !== "object")
443
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
444
- this.send(command, optionsOrCb || {}, cb);
445
- }
446
- else {
447
- return this.send(command, optionsOrCb);
448
- }
449
- }
450
- purchaseReservedNodesOffering(args, optionsOrCb, cb) {
451
- const command = new PurchaseReservedNodesOfferingCommand_1.PurchaseReservedNodesOfferingCommand(args);
452
- if (typeof optionsOrCb === "function") {
453
- this.send(command, optionsOrCb);
454
- }
455
- else if (typeof cb === "function") {
456
- if (typeof optionsOrCb !== "object")
457
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
458
- this.send(command, optionsOrCb || {}, cb);
459
- }
460
- else {
461
- return this.send(command, optionsOrCb);
462
- }
463
- }
464
- resetParameterGroup(args, optionsOrCb, cb) {
465
- const command = new ResetParameterGroupCommand_1.ResetParameterGroupCommand(args);
466
- if (typeof optionsOrCb === "function") {
467
- this.send(command, optionsOrCb);
468
- }
469
- else if (typeof cb === "function") {
470
- if (typeof optionsOrCb !== "object")
471
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
472
- this.send(command, optionsOrCb || {}, cb);
473
- }
474
- else {
475
- return this.send(command, optionsOrCb);
476
- }
477
- }
478
- tagResource(args, optionsOrCb, cb) {
479
- const command = new TagResourceCommand_1.TagResourceCommand(args);
480
- if (typeof optionsOrCb === "function") {
481
- this.send(command, optionsOrCb);
482
- }
483
- else if (typeof cb === "function") {
484
- if (typeof optionsOrCb !== "object")
485
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
486
- this.send(command, optionsOrCb || {}, cb);
487
- }
488
- else {
489
- return this.send(command, optionsOrCb);
490
- }
491
- }
492
- untagResource(args, optionsOrCb, cb) {
493
- const command = new UntagResourceCommand_1.UntagResourceCommand(args);
494
- if (typeof optionsOrCb === "function") {
495
- this.send(command, optionsOrCb);
496
- }
497
- else if (typeof cb === "function") {
498
- if (typeof optionsOrCb !== "object")
499
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
500
- this.send(command, optionsOrCb || {}, cb);
501
- }
502
- else {
503
- return this.send(command, optionsOrCb);
504
- }
505
- }
506
- updateACL(args, optionsOrCb, cb) {
507
- const command = new UpdateACLCommand_1.UpdateACLCommand(args);
508
- if (typeof optionsOrCb === "function") {
509
- this.send(command, optionsOrCb);
510
- }
511
- else if (typeof cb === "function") {
512
- if (typeof optionsOrCb !== "object")
513
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
514
- this.send(command, optionsOrCb || {}, cb);
515
- }
516
- else {
517
- return this.send(command, optionsOrCb);
518
- }
519
- }
520
- updateCluster(args, optionsOrCb, cb) {
521
- const command = new UpdateClusterCommand_1.UpdateClusterCommand(args);
522
- if (typeof optionsOrCb === "function") {
523
- this.send(command, optionsOrCb);
524
- }
525
- else if (typeof cb === "function") {
526
- if (typeof optionsOrCb !== "object")
527
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
528
- this.send(command, optionsOrCb || {}, cb);
529
- }
530
- else {
531
- return this.send(command, optionsOrCb);
532
- }
533
- }
534
- updateParameterGroup(args, optionsOrCb, cb) {
535
- const command = new UpdateParameterGroupCommand_1.UpdateParameterGroupCommand(args);
536
- if (typeof optionsOrCb === "function") {
537
- this.send(command, optionsOrCb);
538
- }
539
- else if (typeof cb === "function") {
540
- if (typeof optionsOrCb !== "object")
541
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
542
- this.send(command, optionsOrCb || {}, cb);
543
- }
544
- else {
545
- return this.send(command, optionsOrCb);
546
- }
547
- }
548
- updateSubnetGroup(args, optionsOrCb, cb) {
549
- const command = new UpdateSubnetGroupCommand_1.UpdateSubnetGroupCommand(args);
550
- if (typeof optionsOrCb === "function") {
551
- this.send(command, optionsOrCb);
552
- }
553
- else if (typeof cb === "function") {
554
- if (typeof optionsOrCb !== "object")
555
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
556
- this.send(command, optionsOrCb || {}, cb);
557
- }
558
- else {
559
- return this.send(command, optionsOrCb);
560
- }
561
- }
562
- updateUser(args, optionsOrCb, cb) {
563
- const command = new UpdateUserCommand_1.UpdateUserCommand(args);
564
- if (typeof optionsOrCb === "function") {
565
- this.send(command, optionsOrCb);
566
- }
567
- else if (typeof cb === "function") {
568
- if (typeof optionsOrCb !== "object")
569
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
570
- this.send(command, optionsOrCb || {}, cb);
571
- }
572
- else {
573
- return this.send(command, optionsOrCb);
574
- }
575
- }
576
85
  }
577
86
  exports.MemoryDB = MemoryDB;
87
+ (0, smithy_client_1.createAggregatedClient)(commands, MemoryDB);