@aws-sdk/client-iam 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.
package/dist-es/IAM.js CHANGED
@@ -1,3 +1,4 @@
1
+ import { createAggregatedClient } from "@aws-sdk/smithy-client";
1
2
  import { AddClientIDToOpenIDConnectProviderCommand, } from "./commands/AddClientIDToOpenIDConnectProviderCommand";
2
3
  import { AddRoleToInstanceProfileCommand, } from "./commands/AddRoleToInstanceProfileCommand";
3
4
  import { AddUserToGroupCommand, } from "./commands/AddUserToGroupCommand";
@@ -157,2217 +158,166 @@ import { UploadServerCertificateCommand, } from "./commands/UploadServerCertific
157
158
  import { UploadSigningCertificateCommand, } from "./commands/UploadSigningCertificateCommand";
158
159
  import { UploadSSHPublicKeyCommand, } from "./commands/UploadSSHPublicKeyCommand";
159
160
  import { IAMClient } from "./IAMClient";
161
+ const commands = {
162
+ AddClientIDToOpenIDConnectProviderCommand,
163
+ AddRoleToInstanceProfileCommand,
164
+ AddUserToGroupCommand,
165
+ AttachGroupPolicyCommand,
166
+ AttachRolePolicyCommand,
167
+ AttachUserPolicyCommand,
168
+ ChangePasswordCommand,
169
+ CreateAccessKeyCommand,
170
+ CreateAccountAliasCommand,
171
+ CreateGroupCommand,
172
+ CreateInstanceProfileCommand,
173
+ CreateLoginProfileCommand,
174
+ CreateOpenIDConnectProviderCommand,
175
+ CreatePolicyCommand,
176
+ CreatePolicyVersionCommand,
177
+ CreateRoleCommand,
178
+ CreateSAMLProviderCommand,
179
+ CreateServiceLinkedRoleCommand,
180
+ CreateServiceSpecificCredentialCommand,
181
+ CreateUserCommand,
182
+ CreateVirtualMFADeviceCommand,
183
+ DeactivateMFADeviceCommand,
184
+ DeleteAccessKeyCommand,
185
+ DeleteAccountAliasCommand,
186
+ DeleteAccountPasswordPolicyCommand,
187
+ DeleteGroupCommand,
188
+ DeleteGroupPolicyCommand,
189
+ DeleteInstanceProfileCommand,
190
+ DeleteLoginProfileCommand,
191
+ DeleteOpenIDConnectProviderCommand,
192
+ DeletePolicyCommand,
193
+ DeletePolicyVersionCommand,
194
+ DeleteRoleCommand,
195
+ DeleteRolePermissionsBoundaryCommand,
196
+ DeleteRolePolicyCommand,
197
+ DeleteSAMLProviderCommand,
198
+ DeleteServerCertificateCommand,
199
+ DeleteServiceLinkedRoleCommand,
200
+ DeleteServiceSpecificCredentialCommand,
201
+ DeleteSigningCertificateCommand,
202
+ DeleteSSHPublicKeyCommand,
203
+ DeleteUserCommand,
204
+ DeleteUserPermissionsBoundaryCommand,
205
+ DeleteUserPolicyCommand,
206
+ DeleteVirtualMFADeviceCommand,
207
+ DetachGroupPolicyCommand,
208
+ DetachRolePolicyCommand,
209
+ DetachUserPolicyCommand,
210
+ EnableMFADeviceCommand,
211
+ GenerateCredentialReportCommand,
212
+ GenerateOrganizationsAccessReportCommand,
213
+ GenerateServiceLastAccessedDetailsCommand,
214
+ GetAccessKeyLastUsedCommand,
215
+ GetAccountAuthorizationDetailsCommand,
216
+ GetAccountPasswordPolicyCommand,
217
+ GetAccountSummaryCommand,
218
+ GetContextKeysForCustomPolicyCommand,
219
+ GetContextKeysForPrincipalPolicyCommand,
220
+ GetCredentialReportCommand,
221
+ GetGroupCommand,
222
+ GetGroupPolicyCommand,
223
+ GetInstanceProfileCommand,
224
+ GetLoginProfileCommand,
225
+ GetOpenIDConnectProviderCommand,
226
+ GetOrganizationsAccessReportCommand,
227
+ GetPolicyCommand,
228
+ GetPolicyVersionCommand,
229
+ GetRoleCommand,
230
+ GetRolePolicyCommand,
231
+ GetSAMLProviderCommand,
232
+ GetServerCertificateCommand,
233
+ GetServiceLastAccessedDetailsCommand,
234
+ GetServiceLastAccessedDetailsWithEntitiesCommand,
235
+ GetServiceLinkedRoleDeletionStatusCommand,
236
+ GetSSHPublicKeyCommand,
237
+ GetUserCommand,
238
+ GetUserPolicyCommand,
239
+ ListAccessKeysCommand,
240
+ ListAccountAliasesCommand,
241
+ ListAttachedGroupPoliciesCommand,
242
+ ListAttachedRolePoliciesCommand,
243
+ ListAttachedUserPoliciesCommand,
244
+ ListEntitiesForPolicyCommand,
245
+ ListGroupPoliciesCommand,
246
+ ListGroupsCommand,
247
+ ListGroupsForUserCommand,
248
+ ListInstanceProfilesCommand,
249
+ ListInstanceProfilesForRoleCommand,
250
+ ListInstanceProfileTagsCommand,
251
+ ListMFADevicesCommand,
252
+ ListMFADeviceTagsCommand,
253
+ ListOpenIDConnectProvidersCommand,
254
+ ListOpenIDConnectProviderTagsCommand,
255
+ ListPoliciesCommand,
256
+ ListPoliciesGrantingServiceAccessCommand,
257
+ ListPolicyTagsCommand,
258
+ ListPolicyVersionsCommand,
259
+ ListRolePoliciesCommand,
260
+ ListRolesCommand,
261
+ ListRoleTagsCommand,
262
+ ListSAMLProvidersCommand,
263
+ ListSAMLProviderTagsCommand,
264
+ ListServerCertificatesCommand,
265
+ ListServerCertificateTagsCommand,
266
+ ListServiceSpecificCredentialsCommand,
267
+ ListSigningCertificatesCommand,
268
+ ListSSHPublicKeysCommand,
269
+ ListUserPoliciesCommand,
270
+ ListUsersCommand,
271
+ ListUserTagsCommand,
272
+ ListVirtualMFADevicesCommand,
273
+ PutGroupPolicyCommand,
274
+ PutRolePermissionsBoundaryCommand,
275
+ PutRolePolicyCommand,
276
+ PutUserPermissionsBoundaryCommand,
277
+ PutUserPolicyCommand,
278
+ RemoveClientIDFromOpenIDConnectProviderCommand,
279
+ RemoveRoleFromInstanceProfileCommand,
280
+ RemoveUserFromGroupCommand,
281
+ ResetServiceSpecificCredentialCommand,
282
+ ResyncMFADeviceCommand,
283
+ SetDefaultPolicyVersionCommand,
284
+ SetSecurityTokenServicePreferencesCommand,
285
+ SimulateCustomPolicyCommand,
286
+ SimulatePrincipalPolicyCommand,
287
+ TagInstanceProfileCommand,
288
+ TagMFADeviceCommand,
289
+ TagOpenIDConnectProviderCommand,
290
+ TagPolicyCommand,
291
+ TagRoleCommand,
292
+ TagSAMLProviderCommand,
293
+ TagServerCertificateCommand,
294
+ TagUserCommand,
295
+ UntagInstanceProfileCommand,
296
+ UntagMFADeviceCommand,
297
+ UntagOpenIDConnectProviderCommand,
298
+ UntagPolicyCommand,
299
+ UntagRoleCommand,
300
+ UntagSAMLProviderCommand,
301
+ UntagServerCertificateCommand,
302
+ UntagUserCommand,
303
+ UpdateAccessKeyCommand,
304
+ UpdateAccountPasswordPolicyCommand,
305
+ UpdateAssumeRolePolicyCommand,
306
+ UpdateGroupCommand,
307
+ UpdateLoginProfileCommand,
308
+ UpdateOpenIDConnectProviderThumbprintCommand,
309
+ UpdateRoleCommand,
310
+ UpdateRoleDescriptionCommand,
311
+ UpdateSAMLProviderCommand,
312
+ UpdateServerCertificateCommand,
313
+ UpdateServiceSpecificCredentialCommand,
314
+ UpdateSigningCertificateCommand,
315
+ UpdateSSHPublicKeyCommand,
316
+ UpdateUserCommand,
317
+ UploadServerCertificateCommand,
318
+ UploadSigningCertificateCommand,
319
+ UploadSSHPublicKeyCommand,
320
+ };
160
321
  export class IAM extends IAMClient {
161
- addClientIDToOpenIDConnectProvider(args, optionsOrCb, cb) {
162
- const command = new AddClientIDToOpenIDConnectProviderCommand(args);
163
- if (typeof optionsOrCb === "function") {
164
- this.send(command, optionsOrCb);
165
- }
166
- else if (typeof cb === "function") {
167
- if (typeof optionsOrCb !== "object")
168
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
169
- this.send(command, optionsOrCb || {}, cb);
170
- }
171
- else {
172
- return this.send(command, optionsOrCb);
173
- }
174
- }
175
- addRoleToInstanceProfile(args, optionsOrCb, cb) {
176
- const command = new AddRoleToInstanceProfileCommand(args);
177
- if (typeof optionsOrCb === "function") {
178
- this.send(command, optionsOrCb);
179
- }
180
- else if (typeof cb === "function") {
181
- if (typeof optionsOrCb !== "object")
182
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
183
- this.send(command, optionsOrCb || {}, cb);
184
- }
185
- else {
186
- return this.send(command, optionsOrCb);
187
- }
188
- }
189
- addUserToGroup(args, optionsOrCb, cb) {
190
- const command = new AddUserToGroupCommand(args);
191
- if (typeof optionsOrCb === "function") {
192
- this.send(command, optionsOrCb);
193
- }
194
- else if (typeof cb === "function") {
195
- if (typeof optionsOrCb !== "object")
196
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
197
- this.send(command, optionsOrCb || {}, cb);
198
- }
199
- else {
200
- return this.send(command, optionsOrCb);
201
- }
202
- }
203
- attachGroupPolicy(args, optionsOrCb, cb) {
204
- const command = new AttachGroupPolicyCommand(args);
205
- if (typeof optionsOrCb === "function") {
206
- this.send(command, optionsOrCb);
207
- }
208
- else if (typeof cb === "function") {
209
- if (typeof optionsOrCb !== "object")
210
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
211
- this.send(command, optionsOrCb || {}, cb);
212
- }
213
- else {
214
- return this.send(command, optionsOrCb);
215
- }
216
- }
217
- attachRolePolicy(args, optionsOrCb, cb) {
218
- const command = new AttachRolePolicyCommand(args);
219
- if (typeof optionsOrCb === "function") {
220
- this.send(command, optionsOrCb);
221
- }
222
- else if (typeof cb === "function") {
223
- if (typeof optionsOrCb !== "object")
224
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
225
- this.send(command, optionsOrCb || {}, cb);
226
- }
227
- else {
228
- return this.send(command, optionsOrCb);
229
- }
230
- }
231
- attachUserPolicy(args, optionsOrCb, cb) {
232
- const command = new AttachUserPolicyCommand(args);
233
- if (typeof optionsOrCb === "function") {
234
- this.send(command, optionsOrCb);
235
- }
236
- else if (typeof cb === "function") {
237
- if (typeof optionsOrCb !== "object")
238
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
239
- this.send(command, optionsOrCb || {}, cb);
240
- }
241
- else {
242
- return this.send(command, optionsOrCb);
243
- }
244
- }
245
- changePassword(args, optionsOrCb, cb) {
246
- const command = new ChangePasswordCommand(args);
247
- if (typeof optionsOrCb === "function") {
248
- this.send(command, optionsOrCb);
249
- }
250
- else if (typeof cb === "function") {
251
- if (typeof optionsOrCb !== "object")
252
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
253
- this.send(command, optionsOrCb || {}, cb);
254
- }
255
- else {
256
- return this.send(command, optionsOrCb);
257
- }
258
- }
259
- createAccessKey(args, optionsOrCb, cb) {
260
- const command = new CreateAccessKeyCommand(args);
261
- if (typeof optionsOrCb === "function") {
262
- this.send(command, optionsOrCb);
263
- }
264
- else if (typeof cb === "function") {
265
- if (typeof optionsOrCb !== "object")
266
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
267
- this.send(command, optionsOrCb || {}, cb);
268
- }
269
- else {
270
- return this.send(command, optionsOrCb);
271
- }
272
- }
273
- createAccountAlias(args, optionsOrCb, cb) {
274
- const command = new CreateAccountAliasCommand(args);
275
- if (typeof optionsOrCb === "function") {
276
- this.send(command, optionsOrCb);
277
- }
278
- else if (typeof cb === "function") {
279
- if (typeof optionsOrCb !== "object")
280
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
281
- this.send(command, optionsOrCb || {}, cb);
282
- }
283
- else {
284
- return this.send(command, optionsOrCb);
285
- }
286
- }
287
- createGroup(args, optionsOrCb, cb) {
288
- const command = new CreateGroupCommand(args);
289
- if (typeof optionsOrCb === "function") {
290
- this.send(command, optionsOrCb);
291
- }
292
- else if (typeof cb === "function") {
293
- if (typeof optionsOrCb !== "object")
294
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
295
- this.send(command, optionsOrCb || {}, cb);
296
- }
297
- else {
298
- return this.send(command, optionsOrCb);
299
- }
300
- }
301
- createInstanceProfile(args, optionsOrCb, cb) {
302
- const command = new CreateInstanceProfileCommand(args);
303
- if (typeof optionsOrCb === "function") {
304
- this.send(command, optionsOrCb);
305
- }
306
- else if (typeof cb === "function") {
307
- if (typeof optionsOrCb !== "object")
308
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
309
- this.send(command, optionsOrCb || {}, cb);
310
- }
311
- else {
312
- return this.send(command, optionsOrCb);
313
- }
314
- }
315
- createLoginProfile(args, optionsOrCb, cb) {
316
- const command = new CreateLoginProfileCommand(args);
317
- if (typeof optionsOrCb === "function") {
318
- this.send(command, optionsOrCb);
319
- }
320
- else if (typeof cb === "function") {
321
- if (typeof optionsOrCb !== "object")
322
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
323
- this.send(command, optionsOrCb || {}, cb);
324
- }
325
- else {
326
- return this.send(command, optionsOrCb);
327
- }
328
- }
329
- createOpenIDConnectProvider(args, optionsOrCb, cb) {
330
- const command = new CreateOpenIDConnectProviderCommand(args);
331
- if (typeof optionsOrCb === "function") {
332
- this.send(command, optionsOrCb);
333
- }
334
- else if (typeof cb === "function") {
335
- if (typeof optionsOrCb !== "object")
336
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
337
- this.send(command, optionsOrCb || {}, cb);
338
- }
339
- else {
340
- return this.send(command, optionsOrCb);
341
- }
342
- }
343
- createPolicy(args, optionsOrCb, cb) {
344
- const command = new CreatePolicyCommand(args);
345
- if (typeof optionsOrCb === "function") {
346
- this.send(command, optionsOrCb);
347
- }
348
- else if (typeof cb === "function") {
349
- if (typeof optionsOrCb !== "object")
350
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
351
- this.send(command, optionsOrCb || {}, cb);
352
- }
353
- else {
354
- return this.send(command, optionsOrCb);
355
- }
356
- }
357
- createPolicyVersion(args, optionsOrCb, cb) {
358
- const command = new CreatePolicyVersionCommand(args);
359
- if (typeof optionsOrCb === "function") {
360
- this.send(command, optionsOrCb);
361
- }
362
- else if (typeof cb === "function") {
363
- if (typeof optionsOrCb !== "object")
364
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
365
- this.send(command, optionsOrCb || {}, cb);
366
- }
367
- else {
368
- return this.send(command, optionsOrCb);
369
- }
370
- }
371
- createRole(args, optionsOrCb, cb) {
372
- const command = new CreateRoleCommand(args);
373
- if (typeof optionsOrCb === "function") {
374
- this.send(command, optionsOrCb);
375
- }
376
- else if (typeof cb === "function") {
377
- if (typeof optionsOrCb !== "object")
378
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
379
- this.send(command, optionsOrCb || {}, cb);
380
- }
381
- else {
382
- return this.send(command, optionsOrCb);
383
- }
384
- }
385
- createSAMLProvider(args, optionsOrCb, cb) {
386
- const command = new CreateSAMLProviderCommand(args);
387
- if (typeof optionsOrCb === "function") {
388
- this.send(command, optionsOrCb);
389
- }
390
- else if (typeof cb === "function") {
391
- if (typeof optionsOrCb !== "object")
392
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
393
- this.send(command, optionsOrCb || {}, cb);
394
- }
395
- else {
396
- return this.send(command, optionsOrCb);
397
- }
398
- }
399
- createServiceLinkedRole(args, optionsOrCb, cb) {
400
- const command = new CreateServiceLinkedRoleCommand(args);
401
- if (typeof optionsOrCb === "function") {
402
- this.send(command, optionsOrCb);
403
- }
404
- else if (typeof cb === "function") {
405
- if (typeof optionsOrCb !== "object")
406
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
407
- this.send(command, optionsOrCb || {}, cb);
408
- }
409
- else {
410
- return this.send(command, optionsOrCb);
411
- }
412
- }
413
- createServiceSpecificCredential(args, optionsOrCb, cb) {
414
- const command = new CreateServiceSpecificCredentialCommand(args);
415
- if (typeof optionsOrCb === "function") {
416
- this.send(command, optionsOrCb);
417
- }
418
- else if (typeof cb === "function") {
419
- if (typeof optionsOrCb !== "object")
420
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
421
- this.send(command, optionsOrCb || {}, cb);
422
- }
423
- else {
424
- return this.send(command, optionsOrCb);
425
- }
426
- }
427
- createUser(args, optionsOrCb, cb) {
428
- const command = new CreateUserCommand(args);
429
- if (typeof optionsOrCb === "function") {
430
- this.send(command, optionsOrCb);
431
- }
432
- else if (typeof cb === "function") {
433
- if (typeof optionsOrCb !== "object")
434
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
435
- this.send(command, optionsOrCb || {}, cb);
436
- }
437
- else {
438
- return this.send(command, optionsOrCb);
439
- }
440
- }
441
- createVirtualMFADevice(args, optionsOrCb, cb) {
442
- const command = new CreateVirtualMFADeviceCommand(args);
443
- if (typeof optionsOrCb === "function") {
444
- this.send(command, optionsOrCb);
445
- }
446
- else if (typeof cb === "function") {
447
- if (typeof optionsOrCb !== "object")
448
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
449
- this.send(command, optionsOrCb || {}, cb);
450
- }
451
- else {
452
- return this.send(command, optionsOrCb);
453
- }
454
- }
455
- deactivateMFADevice(args, optionsOrCb, cb) {
456
- const command = new DeactivateMFADeviceCommand(args);
457
- if (typeof optionsOrCb === "function") {
458
- this.send(command, optionsOrCb);
459
- }
460
- else if (typeof cb === "function") {
461
- if (typeof optionsOrCb !== "object")
462
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
463
- this.send(command, optionsOrCb || {}, cb);
464
- }
465
- else {
466
- return this.send(command, optionsOrCb);
467
- }
468
- }
469
- deleteAccessKey(args, optionsOrCb, cb) {
470
- const command = new DeleteAccessKeyCommand(args);
471
- if (typeof optionsOrCb === "function") {
472
- this.send(command, optionsOrCb);
473
- }
474
- else if (typeof cb === "function") {
475
- if (typeof optionsOrCb !== "object")
476
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
477
- this.send(command, optionsOrCb || {}, cb);
478
- }
479
- else {
480
- return this.send(command, optionsOrCb);
481
- }
482
- }
483
- deleteAccountAlias(args, optionsOrCb, cb) {
484
- const command = new DeleteAccountAliasCommand(args);
485
- if (typeof optionsOrCb === "function") {
486
- this.send(command, optionsOrCb);
487
- }
488
- else if (typeof cb === "function") {
489
- if (typeof optionsOrCb !== "object")
490
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
491
- this.send(command, optionsOrCb || {}, cb);
492
- }
493
- else {
494
- return this.send(command, optionsOrCb);
495
- }
496
- }
497
- deleteAccountPasswordPolicy(args, optionsOrCb, cb) {
498
- const command = new DeleteAccountPasswordPolicyCommand(args);
499
- if (typeof optionsOrCb === "function") {
500
- this.send(command, optionsOrCb);
501
- }
502
- else if (typeof cb === "function") {
503
- if (typeof optionsOrCb !== "object")
504
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
505
- this.send(command, optionsOrCb || {}, cb);
506
- }
507
- else {
508
- return this.send(command, optionsOrCb);
509
- }
510
- }
511
- deleteGroup(args, optionsOrCb, cb) {
512
- const command = new DeleteGroupCommand(args);
513
- if (typeof optionsOrCb === "function") {
514
- this.send(command, optionsOrCb);
515
- }
516
- else if (typeof cb === "function") {
517
- if (typeof optionsOrCb !== "object")
518
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
519
- this.send(command, optionsOrCb || {}, cb);
520
- }
521
- else {
522
- return this.send(command, optionsOrCb);
523
- }
524
- }
525
- deleteGroupPolicy(args, optionsOrCb, cb) {
526
- const command = new DeleteGroupPolicyCommand(args);
527
- if (typeof optionsOrCb === "function") {
528
- this.send(command, optionsOrCb);
529
- }
530
- else if (typeof cb === "function") {
531
- if (typeof optionsOrCb !== "object")
532
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
533
- this.send(command, optionsOrCb || {}, cb);
534
- }
535
- else {
536
- return this.send(command, optionsOrCb);
537
- }
538
- }
539
- deleteInstanceProfile(args, optionsOrCb, cb) {
540
- const command = new DeleteInstanceProfileCommand(args);
541
- if (typeof optionsOrCb === "function") {
542
- this.send(command, optionsOrCb);
543
- }
544
- else if (typeof cb === "function") {
545
- if (typeof optionsOrCb !== "object")
546
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
547
- this.send(command, optionsOrCb || {}, cb);
548
- }
549
- else {
550
- return this.send(command, optionsOrCb);
551
- }
552
- }
553
- deleteLoginProfile(args, optionsOrCb, cb) {
554
- const command = new DeleteLoginProfileCommand(args);
555
- if (typeof optionsOrCb === "function") {
556
- this.send(command, optionsOrCb);
557
- }
558
- else if (typeof cb === "function") {
559
- if (typeof optionsOrCb !== "object")
560
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
561
- this.send(command, optionsOrCb || {}, cb);
562
- }
563
- else {
564
- return this.send(command, optionsOrCb);
565
- }
566
- }
567
- deleteOpenIDConnectProvider(args, optionsOrCb, cb) {
568
- const command = new DeleteOpenIDConnectProviderCommand(args);
569
- if (typeof optionsOrCb === "function") {
570
- this.send(command, optionsOrCb);
571
- }
572
- else if (typeof cb === "function") {
573
- if (typeof optionsOrCb !== "object")
574
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
575
- this.send(command, optionsOrCb || {}, cb);
576
- }
577
- else {
578
- return this.send(command, optionsOrCb);
579
- }
580
- }
581
- deletePolicy(args, optionsOrCb, cb) {
582
- const command = new DeletePolicyCommand(args);
583
- if (typeof optionsOrCb === "function") {
584
- this.send(command, optionsOrCb);
585
- }
586
- else if (typeof cb === "function") {
587
- if (typeof optionsOrCb !== "object")
588
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
589
- this.send(command, optionsOrCb || {}, cb);
590
- }
591
- else {
592
- return this.send(command, optionsOrCb);
593
- }
594
- }
595
- deletePolicyVersion(args, optionsOrCb, cb) {
596
- const command = new DeletePolicyVersionCommand(args);
597
- if (typeof optionsOrCb === "function") {
598
- this.send(command, optionsOrCb);
599
- }
600
- else if (typeof cb === "function") {
601
- if (typeof optionsOrCb !== "object")
602
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
603
- this.send(command, optionsOrCb || {}, cb);
604
- }
605
- else {
606
- return this.send(command, optionsOrCb);
607
- }
608
- }
609
- deleteRole(args, optionsOrCb, cb) {
610
- const command = new DeleteRoleCommand(args);
611
- if (typeof optionsOrCb === "function") {
612
- this.send(command, optionsOrCb);
613
- }
614
- else if (typeof cb === "function") {
615
- if (typeof optionsOrCb !== "object")
616
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
617
- this.send(command, optionsOrCb || {}, cb);
618
- }
619
- else {
620
- return this.send(command, optionsOrCb);
621
- }
622
- }
623
- deleteRolePermissionsBoundary(args, optionsOrCb, cb) {
624
- const command = new DeleteRolePermissionsBoundaryCommand(args);
625
- if (typeof optionsOrCb === "function") {
626
- this.send(command, optionsOrCb);
627
- }
628
- else if (typeof cb === "function") {
629
- if (typeof optionsOrCb !== "object")
630
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
631
- this.send(command, optionsOrCb || {}, cb);
632
- }
633
- else {
634
- return this.send(command, optionsOrCb);
635
- }
636
- }
637
- deleteRolePolicy(args, optionsOrCb, cb) {
638
- const command = new DeleteRolePolicyCommand(args);
639
- if (typeof optionsOrCb === "function") {
640
- this.send(command, optionsOrCb);
641
- }
642
- else if (typeof cb === "function") {
643
- if (typeof optionsOrCb !== "object")
644
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
645
- this.send(command, optionsOrCb || {}, cb);
646
- }
647
- else {
648
- return this.send(command, optionsOrCb);
649
- }
650
- }
651
- deleteSAMLProvider(args, optionsOrCb, cb) {
652
- const command = new DeleteSAMLProviderCommand(args);
653
- if (typeof optionsOrCb === "function") {
654
- this.send(command, optionsOrCb);
655
- }
656
- else if (typeof cb === "function") {
657
- if (typeof optionsOrCb !== "object")
658
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
659
- this.send(command, optionsOrCb || {}, cb);
660
- }
661
- else {
662
- return this.send(command, optionsOrCb);
663
- }
664
- }
665
- deleteServerCertificate(args, optionsOrCb, cb) {
666
- const command = new DeleteServerCertificateCommand(args);
667
- if (typeof optionsOrCb === "function") {
668
- this.send(command, optionsOrCb);
669
- }
670
- else if (typeof cb === "function") {
671
- if (typeof optionsOrCb !== "object")
672
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
673
- this.send(command, optionsOrCb || {}, cb);
674
- }
675
- else {
676
- return this.send(command, optionsOrCb);
677
- }
678
- }
679
- deleteServiceLinkedRole(args, optionsOrCb, cb) {
680
- const command = new DeleteServiceLinkedRoleCommand(args);
681
- if (typeof optionsOrCb === "function") {
682
- this.send(command, optionsOrCb);
683
- }
684
- else if (typeof cb === "function") {
685
- if (typeof optionsOrCb !== "object")
686
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
687
- this.send(command, optionsOrCb || {}, cb);
688
- }
689
- else {
690
- return this.send(command, optionsOrCb);
691
- }
692
- }
693
- deleteServiceSpecificCredential(args, optionsOrCb, cb) {
694
- const command = new DeleteServiceSpecificCredentialCommand(args);
695
- if (typeof optionsOrCb === "function") {
696
- this.send(command, optionsOrCb);
697
- }
698
- else if (typeof cb === "function") {
699
- if (typeof optionsOrCb !== "object")
700
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
701
- this.send(command, optionsOrCb || {}, cb);
702
- }
703
- else {
704
- return this.send(command, optionsOrCb);
705
- }
706
- }
707
- deleteSigningCertificate(args, optionsOrCb, cb) {
708
- const command = new DeleteSigningCertificateCommand(args);
709
- if (typeof optionsOrCb === "function") {
710
- this.send(command, optionsOrCb);
711
- }
712
- else if (typeof cb === "function") {
713
- if (typeof optionsOrCb !== "object")
714
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
715
- this.send(command, optionsOrCb || {}, cb);
716
- }
717
- else {
718
- return this.send(command, optionsOrCb);
719
- }
720
- }
721
- deleteSSHPublicKey(args, optionsOrCb, cb) {
722
- const command = new DeleteSSHPublicKeyCommand(args);
723
- if (typeof optionsOrCb === "function") {
724
- this.send(command, optionsOrCb);
725
- }
726
- else if (typeof cb === "function") {
727
- if (typeof optionsOrCb !== "object")
728
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
729
- this.send(command, optionsOrCb || {}, cb);
730
- }
731
- else {
732
- return this.send(command, optionsOrCb);
733
- }
734
- }
735
- deleteUser(args, optionsOrCb, cb) {
736
- const command = new DeleteUserCommand(args);
737
- if (typeof optionsOrCb === "function") {
738
- this.send(command, optionsOrCb);
739
- }
740
- else if (typeof cb === "function") {
741
- if (typeof optionsOrCb !== "object")
742
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
743
- this.send(command, optionsOrCb || {}, cb);
744
- }
745
- else {
746
- return this.send(command, optionsOrCb);
747
- }
748
- }
749
- deleteUserPermissionsBoundary(args, optionsOrCb, cb) {
750
- const command = new DeleteUserPermissionsBoundaryCommand(args);
751
- if (typeof optionsOrCb === "function") {
752
- this.send(command, optionsOrCb);
753
- }
754
- else if (typeof cb === "function") {
755
- if (typeof optionsOrCb !== "object")
756
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
757
- this.send(command, optionsOrCb || {}, cb);
758
- }
759
- else {
760
- return this.send(command, optionsOrCb);
761
- }
762
- }
763
- deleteUserPolicy(args, optionsOrCb, cb) {
764
- const command = new DeleteUserPolicyCommand(args);
765
- if (typeof optionsOrCb === "function") {
766
- this.send(command, optionsOrCb);
767
- }
768
- else if (typeof cb === "function") {
769
- if (typeof optionsOrCb !== "object")
770
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
771
- this.send(command, optionsOrCb || {}, cb);
772
- }
773
- else {
774
- return this.send(command, optionsOrCb);
775
- }
776
- }
777
- deleteVirtualMFADevice(args, optionsOrCb, cb) {
778
- const command = new DeleteVirtualMFADeviceCommand(args);
779
- if (typeof optionsOrCb === "function") {
780
- this.send(command, optionsOrCb);
781
- }
782
- else if (typeof cb === "function") {
783
- if (typeof optionsOrCb !== "object")
784
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
785
- this.send(command, optionsOrCb || {}, cb);
786
- }
787
- else {
788
- return this.send(command, optionsOrCb);
789
- }
790
- }
791
- detachGroupPolicy(args, optionsOrCb, cb) {
792
- const command = new DetachGroupPolicyCommand(args);
793
- if (typeof optionsOrCb === "function") {
794
- this.send(command, optionsOrCb);
795
- }
796
- else if (typeof cb === "function") {
797
- if (typeof optionsOrCb !== "object")
798
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
799
- this.send(command, optionsOrCb || {}, cb);
800
- }
801
- else {
802
- return this.send(command, optionsOrCb);
803
- }
804
- }
805
- detachRolePolicy(args, optionsOrCb, cb) {
806
- const command = new DetachRolePolicyCommand(args);
807
- if (typeof optionsOrCb === "function") {
808
- this.send(command, optionsOrCb);
809
- }
810
- else if (typeof cb === "function") {
811
- if (typeof optionsOrCb !== "object")
812
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
813
- this.send(command, optionsOrCb || {}, cb);
814
- }
815
- else {
816
- return this.send(command, optionsOrCb);
817
- }
818
- }
819
- detachUserPolicy(args, optionsOrCb, cb) {
820
- const command = new DetachUserPolicyCommand(args);
821
- if (typeof optionsOrCb === "function") {
822
- this.send(command, optionsOrCb);
823
- }
824
- else if (typeof cb === "function") {
825
- if (typeof optionsOrCb !== "object")
826
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
827
- this.send(command, optionsOrCb || {}, cb);
828
- }
829
- else {
830
- return this.send(command, optionsOrCb);
831
- }
832
- }
833
- enableMFADevice(args, optionsOrCb, cb) {
834
- const command = new EnableMFADeviceCommand(args);
835
- if (typeof optionsOrCb === "function") {
836
- this.send(command, optionsOrCb);
837
- }
838
- else if (typeof cb === "function") {
839
- if (typeof optionsOrCb !== "object")
840
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
841
- this.send(command, optionsOrCb || {}, cb);
842
- }
843
- else {
844
- return this.send(command, optionsOrCb);
845
- }
846
- }
847
- generateCredentialReport(args, optionsOrCb, cb) {
848
- const command = new GenerateCredentialReportCommand(args);
849
- if (typeof optionsOrCb === "function") {
850
- this.send(command, optionsOrCb);
851
- }
852
- else if (typeof cb === "function") {
853
- if (typeof optionsOrCb !== "object")
854
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
855
- this.send(command, optionsOrCb || {}, cb);
856
- }
857
- else {
858
- return this.send(command, optionsOrCb);
859
- }
860
- }
861
- generateOrganizationsAccessReport(args, optionsOrCb, cb) {
862
- const command = new GenerateOrganizationsAccessReportCommand(args);
863
- if (typeof optionsOrCb === "function") {
864
- this.send(command, optionsOrCb);
865
- }
866
- else if (typeof cb === "function") {
867
- if (typeof optionsOrCb !== "object")
868
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
869
- this.send(command, optionsOrCb || {}, cb);
870
- }
871
- else {
872
- return this.send(command, optionsOrCb);
873
- }
874
- }
875
- generateServiceLastAccessedDetails(args, optionsOrCb, cb) {
876
- const command = new GenerateServiceLastAccessedDetailsCommand(args);
877
- if (typeof optionsOrCb === "function") {
878
- this.send(command, optionsOrCb);
879
- }
880
- else if (typeof cb === "function") {
881
- if (typeof optionsOrCb !== "object")
882
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
883
- this.send(command, optionsOrCb || {}, cb);
884
- }
885
- else {
886
- return this.send(command, optionsOrCb);
887
- }
888
- }
889
- getAccessKeyLastUsed(args, optionsOrCb, cb) {
890
- const command = new GetAccessKeyLastUsedCommand(args);
891
- if (typeof optionsOrCb === "function") {
892
- this.send(command, optionsOrCb);
893
- }
894
- else if (typeof cb === "function") {
895
- if (typeof optionsOrCb !== "object")
896
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
897
- this.send(command, optionsOrCb || {}, cb);
898
- }
899
- else {
900
- return this.send(command, optionsOrCb);
901
- }
902
- }
903
- getAccountAuthorizationDetails(args, optionsOrCb, cb) {
904
- const command = new GetAccountAuthorizationDetailsCommand(args);
905
- if (typeof optionsOrCb === "function") {
906
- this.send(command, optionsOrCb);
907
- }
908
- else if (typeof cb === "function") {
909
- if (typeof optionsOrCb !== "object")
910
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
911
- this.send(command, optionsOrCb || {}, cb);
912
- }
913
- else {
914
- return this.send(command, optionsOrCb);
915
- }
916
- }
917
- getAccountPasswordPolicy(args, optionsOrCb, cb) {
918
- const command = new GetAccountPasswordPolicyCommand(args);
919
- if (typeof optionsOrCb === "function") {
920
- this.send(command, optionsOrCb);
921
- }
922
- else if (typeof cb === "function") {
923
- if (typeof optionsOrCb !== "object")
924
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
925
- this.send(command, optionsOrCb || {}, cb);
926
- }
927
- else {
928
- return this.send(command, optionsOrCb);
929
- }
930
- }
931
- getAccountSummary(args, optionsOrCb, cb) {
932
- const command = new GetAccountSummaryCommand(args);
933
- if (typeof optionsOrCb === "function") {
934
- this.send(command, optionsOrCb);
935
- }
936
- else if (typeof cb === "function") {
937
- if (typeof optionsOrCb !== "object")
938
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
939
- this.send(command, optionsOrCb || {}, cb);
940
- }
941
- else {
942
- return this.send(command, optionsOrCb);
943
- }
944
- }
945
- getContextKeysForCustomPolicy(args, optionsOrCb, cb) {
946
- const command = new GetContextKeysForCustomPolicyCommand(args);
947
- if (typeof optionsOrCb === "function") {
948
- this.send(command, optionsOrCb);
949
- }
950
- else if (typeof cb === "function") {
951
- if (typeof optionsOrCb !== "object")
952
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
953
- this.send(command, optionsOrCb || {}, cb);
954
- }
955
- else {
956
- return this.send(command, optionsOrCb);
957
- }
958
- }
959
- getContextKeysForPrincipalPolicy(args, optionsOrCb, cb) {
960
- const command = new GetContextKeysForPrincipalPolicyCommand(args);
961
- if (typeof optionsOrCb === "function") {
962
- this.send(command, optionsOrCb);
963
- }
964
- else if (typeof cb === "function") {
965
- if (typeof optionsOrCb !== "object")
966
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
967
- this.send(command, optionsOrCb || {}, cb);
968
- }
969
- else {
970
- return this.send(command, optionsOrCb);
971
- }
972
- }
973
- getCredentialReport(args, optionsOrCb, cb) {
974
- const command = new GetCredentialReportCommand(args);
975
- if (typeof optionsOrCb === "function") {
976
- this.send(command, optionsOrCb);
977
- }
978
- else if (typeof cb === "function") {
979
- if (typeof optionsOrCb !== "object")
980
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
981
- this.send(command, optionsOrCb || {}, cb);
982
- }
983
- else {
984
- return this.send(command, optionsOrCb);
985
- }
986
- }
987
- getGroup(args, optionsOrCb, cb) {
988
- const command = new GetGroupCommand(args);
989
- if (typeof optionsOrCb === "function") {
990
- this.send(command, optionsOrCb);
991
- }
992
- else if (typeof cb === "function") {
993
- if (typeof optionsOrCb !== "object")
994
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
995
- this.send(command, optionsOrCb || {}, cb);
996
- }
997
- else {
998
- return this.send(command, optionsOrCb);
999
- }
1000
- }
1001
- getGroupPolicy(args, optionsOrCb, cb) {
1002
- const command = new GetGroupPolicyCommand(args);
1003
- if (typeof optionsOrCb === "function") {
1004
- this.send(command, optionsOrCb);
1005
- }
1006
- else if (typeof cb === "function") {
1007
- if (typeof optionsOrCb !== "object")
1008
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
1009
- this.send(command, optionsOrCb || {}, cb);
1010
- }
1011
- else {
1012
- return this.send(command, optionsOrCb);
1013
- }
1014
- }
1015
- getInstanceProfile(args, optionsOrCb, cb) {
1016
- const command = new GetInstanceProfileCommand(args);
1017
- if (typeof optionsOrCb === "function") {
1018
- this.send(command, optionsOrCb);
1019
- }
1020
- else if (typeof cb === "function") {
1021
- if (typeof optionsOrCb !== "object")
1022
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
1023
- this.send(command, optionsOrCb || {}, cb);
1024
- }
1025
- else {
1026
- return this.send(command, optionsOrCb);
1027
- }
1028
- }
1029
- getLoginProfile(args, optionsOrCb, cb) {
1030
- const command = new GetLoginProfileCommand(args);
1031
- if (typeof optionsOrCb === "function") {
1032
- this.send(command, optionsOrCb);
1033
- }
1034
- else if (typeof cb === "function") {
1035
- if (typeof optionsOrCb !== "object")
1036
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
1037
- this.send(command, optionsOrCb || {}, cb);
1038
- }
1039
- else {
1040
- return this.send(command, optionsOrCb);
1041
- }
1042
- }
1043
- getOpenIDConnectProvider(args, optionsOrCb, cb) {
1044
- const command = new GetOpenIDConnectProviderCommand(args);
1045
- if (typeof optionsOrCb === "function") {
1046
- this.send(command, optionsOrCb);
1047
- }
1048
- else if (typeof cb === "function") {
1049
- if (typeof optionsOrCb !== "object")
1050
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
1051
- this.send(command, optionsOrCb || {}, cb);
1052
- }
1053
- else {
1054
- return this.send(command, optionsOrCb);
1055
- }
1056
- }
1057
- getOrganizationsAccessReport(args, optionsOrCb, cb) {
1058
- const command = new GetOrganizationsAccessReportCommand(args);
1059
- if (typeof optionsOrCb === "function") {
1060
- this.send(command, optionsOrCb);
1061
- }
1062
- else if (typeof cb === "function") {
1063
- if (typeof optionsOrCb !== "object")
1064
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
1065
- this.send(command, optionsOrCb || {}, cb);
1066
- }
1067
- else {
1068
- return this.send(command, optionsOrCb);
1069
- }
1070
- }
1071
- getPolicy(args, optionsOrCb, cb) {
1072
- const command = new GetPolicyCommand(args);
1073
- if (typeof optionsOrCb === "function") {
1074
- this.send(command, optionsOrCb);
1075
- }
1076
- else if (typeof cb === "function") {
1077
- if (typeof optionsOrCb !== "object")
1078
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
1079
- this.send(command, optionsOrCb || {}, cb);
1080
- }
1081
- else {
1082
- return this.send(command, optionsOrCb);
1083
- }
1084
- }
1085
- getPolicyVersion(args, optionsOrCb, cb) {
1086
- const command = new GetPolicyVersionCommand(args);
1087
- if (typeof optionsOrCb === "function") {
1088
- this.send(command, optionsOrCb);
1089
- }
1090
- else if (typeof cb === "function") {
1091
- if (typeof optionsOrCb !== "object")
1092
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
1093
- this.send(command, optionsOrCb || {}, cb);
1094
- }
1095
- else {
1096
- return this.send(command, optionsOrCb);
1097
- }
1098
- }
1099
- getRole(args, optionsOrCb, cb) {
1100
- const command = new GetRoleCommand(args);
1101
- if (typeof optionsOrCb === "function") {
1102
- this.send(command, optionsOrCb);
1103
- }
1104
- else if (typeof cb === "function") {
1105
- if (typeof optionsOrCb !== "object")
1106
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
1107
- this.send(command, optionsOrCb || {}, cb);
1108
- }
1109
- else {
1110
- return this.send(command, optionsOrCb);
1111
- }
1112
- }
1113
- getRolePolicy(args, optionsOrCb, cb) {
1114
- const command = new GetRolePolicyCommand(args);
1115
- if (typeof optionsOrCb === "function") {
1116
- this.send(command, optionsOrCb);
1117
- }
1118
- else if (typeof cb === "function") {
1119
- if (typeof optionsOrCb !== "object")
1120
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
1121
- this.send(command, optionsOrCb || {}, cb);
1122
- }
1123
- else {
1124
- return this.send(command, optionsOrCb);
1125
- }
1126
- }
1127
- getSAMLProvider(args, optionsOrCb, cb) {
1128
- const command = new GetSAMLProviderCommand(args);
1129
- if (typeof optionsOrCb === "function") {
1130
- this.send(command, optionsOrCb);
1131
- }
1132
- else if (typeof cb === "function") {
1133
- if (typeof optionsOrCb !== "object")
1134
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
1135
- this.send(command, optionsOrCb || {}, cb);
1136
- }
1137
- else {
1138
- return this.send(command, optionsOrCb);
1139
- }
1140
- }
1141
- getServerCertificate(args, optionsOrCb, cb) {
1142
- const command = new GetServerCertificateCommand(args);
1143
- if (typeof optionsOrCb === "function") {
1144
- this.send(command, optionsOrCb);
1145
- }
1146
- else if (typeof cb === "function") {
1147
- if (typeof optionsOrCb !== "object")
1148
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
1149
- this.send(command, optionsOrCb || {}, cb);
1150
- }
1151
- else {
1152
- return this.send(command, optionsOrCb);
1153
- }
1154
- }
1155
- getServiceLastAccessedDetails(args, optionsOrCb, cb) {
1156
- const command = new GetServiceLastAccessedDetailsCommand(args);
1157
- if (typeof optionsOrCb === "function") {
1158
- this.send(command, optionsOrCb);
1159
- }
1160
- else if (typeof cb === "function") {
1161
- if (typeof optionsOrCb !== "object")
1162
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
1163
- this.send(command, optionsOrCb || {}, cb);
1164
- }
1165
- else {
1166
- return this.send(command, optionsOrCb);
1167
- }
1168
- }
1169
- getServiceLastAccessedDetailsWithEntities(args, optionsOrCb, cb) {
1170
- const command = new GetServiceLastAccessedDetailsWithEntitiesCommand(args);
1171
- if (typeof optionsOrCb === "function") {
1172
- this.send(command, optionsOrCb);
1173
- }
1174
- else if (typeof cb === "function") {
1175
- if (typeof optionsOrCb !== "object")
1176
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
1177
- this.send(command, optionsOrCb || {}, cb);
1178
- }
1179
- else {
1180
- return this.send(command, optionsOrCb);
1181
- }
1182
- }
1183
- getServiceLinkedRoleDeletionStatus(args, optionsOrCb, cb) {
1184
- const command = new GetServiceLinkedRoleDeletionStatusCommand(args);
1185
- if (typeof optionsOrCb === "function") {
1186
- this.send(command, optionsOrCb);
1187
- }
1188
- else if (typeof cb === "function") {
1189
- if (typeof optionsOrCb !== "object")
1190
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
1191
- this.send(command, optionsOrCb || {}, cb);
1192
- }
1193
- else {
1194
- return this.send(command, optionsOrCb);
1195
- }
1196
- }
1197
- getSSHPublicKey(args, optionsOrCb, cb) {
1198
- const command = new GetSSHPublicKeyCommand(args);
1199
- if (typeof optionsOrCb === "function") {
1200
- this.send(command, optionsOrCb);
1201
- }
1202
- else if (typeof cb === "function") {
1203
- if (typeof optionsOrCb !== "object")
1204
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
1205
- this.send(command, optionsOrCb || {}, cb);
1206
- }
1207
- else {
1208
- return this.send(command, optionsOrCb);
1209
- }
1210
- }
1211
- getUser(args, optionsOrCb, cb) {
1212
- const command = new GetUserCommand(args);
1213
- if (typeof optionsOrCb === "function") {
1214
- this.send(command, optionsOrCb);
1215
- }
1216
- else if (typeof cb === "function") {
1217
- if (typeof optionsOrCb !== "object")
1218
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
1219
- this.send(command, optionsOrCb || {}, cb);
1220
- }
1221
- else {
1222
- return this.send(command, optionsOrCb);
1223
- }
1224
- }
1225
- getUserPolicy(args, optionsOrCb, cb) {
1226
- const command = new GetUserPolicyCommand(args);
1227
- if (typeof optionsOrCb === "function") {
1228
- this.send(command, optionsOrCb);
1229
- }
1230
- else if (typeof cb === "function") {
1231
- if (typeof optionsOrCb !== "object")
1232
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
1233
- this.send(command, optionsOrCb || {}, cb);
1234
- }
1235
- else {
1236
- return this.send(command, optionsOrCb);
1237
- }
1238
- }
1239
- listAccessKeys(args, optionsOrCb, cb) {
1240
- const command = new ListAccessKeysCommand(args);
1241
- if (typeof optionsOrCb === "function") {
1242
- this.send(command, optionsOrCb);
1243
- }
1244
- else if (typeof cb === "function") {
1245
- if (typeof optionsOrCb !== "object")
1246
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
1247
- this.send(command, optionsOrCb || {}, cb);
1248
- }
1249
- else {
1250
- return this.send(command, optionsOrCb);
1251
- }
1252
- }
1253
- listAccountAliases(args, optionsOrCb, cb) {
1254
- const command = new ListAccountAliasesCommand(args);
1255
- if (typeof optionsOrCb === "function") {
1256
- this.send(command, optionsOrCb);
1257
- }
1258
- else if (typeof cb === "function") {
1259
- if (typeof optionsOrCb !== "object")
1260
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
1261
- this.send(command, optionsOrCb || {}, cb);
1262
- }
1263
- else {
1264
- return this.send(command, optionsOrCb);
1265
- }
1266
- }
1267
- listAttachedGroupPolicies(args, optionsOrCb, cb) {
1268
- const command = new ListAttachedGroupPoliciesCommand(args);
1269
- if (typeof optionsOrCb === "function") {
1270
- this.send(command, optionsOrCb);
1271
- }
1272
- else if (typeof cb === "function") {
1273
- if (typeof optionsOrCb !== "object")
1274
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
1275
- this.send(command, optionsOrCb || {}, cb);
1276
- }
1277
- else {
1278
- return this.send(command, optionsOrCb);
1279
- }
1280
- }
1281
- listAttachedRolePolicies(args, optionsOrCb, cb) {
1282
- const command = new ListAttachedRolePoliciesCommand(args);
1283
- if (typeof optionsOrCb === "function") {
1284
- this.send(command, optionsOrCb);
1285
- }
1286
- else if (typeof cb === "function") {
1287
- if (typeof optionsOrCb !== "object")
1288
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
1289
- this.send(command, optionsOrCb || {}, cb);
1290
- }
1291
- else {
1292
- return this.send(command, optionsOrCb);
1293
- }
1294
- }
1295
- listAttachedUserPolicies(args, optionsOrCb, cb) {
1296
- const command = new ListAttachedUserPoliciesCommand(args);
1297
- if (typeof optionsOrCb === "function") {
1298
- this.send(command, optionsOrCb);
1299
- }
1300
- else if (typeof cb === "function") {
1301
- if (typeof optionsOrCb !== "object")
1302
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
1303
- this.send(command, optionsOrCb || {}, cb);
1304
- }
1305
- else {
1306
- return this.send(command, optionsOrCb);
1307
- }
1308
- }
1309
- listEntitiesForPolicy(args, optionsOrCb, cb) {
1310
- const command = new ListEntitiesForPolicyCommand(args);
1311
- if (typeof optionsOrCb === "function") {
1312
- this.send(command, optionsOrCb);
1313
- }
1314
- else if (typeof cb === "function") {
1315
- if (typeof optionsOrCb !== "object")
1316
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
1317
- this.send(command, optionsOrCb || {}, cb);
1318
- }
1319
- else {
1320
- return this.send(command, optionsOrCb);
1321
- }
1322
- }
1323
- listGroupPolicies(args, optionsOrCb, cb) {
1324
- const command = new ListGroupPoliciesCommand(args);
1325
- if (typeof optionsOrCb === "function") {
1326
- this.send(command, optionsOrCb);
1327
- }
1328
- else if (typeof cb === "function") {
1329
- if (typeof optionsOrCb !== "object")
1330
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
1331
- this.send(command, optionsOrCb || {}, cb);
1332
- }
1333
- else {
1334
- return this.send(command, optionsOrCb);
1335
- }
1336
- }
1337
- listGroups(args, optionsOrCb, cb) {
1338
- const command = new ListGroupsCommand(args);
1339
- if (typeof optionsOrCb === "function") {
1340
- this.send(command, optionsOrCb);
1341
- }
1342
- else if (typeof cb === "function") {
1343
- if (typeof optionsOrCb !== "object")
1344
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
1345
- this.send(command, optionsOrCb || {}, cb);
1346
- }
1347
- else {
1348
- return this.send(command, optionsOrCb);
1349
- }
1350
- }
1351
- listGroupsForUser(args, optionsOrCb, cb) {
1352
- const command = new ListGroupsForUserCommand(args);
1353
- if (typeof optionsOrCb === "function") {
1354
- this.send(command, optionsOrCb);
1355
- }
1356
- else if (typeof cb === "function") {
1357
- if (typeof optionsOrCb !== "object")
1358
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
1359
- this.send(command, optionsOrCb || {}, cb);
1360
- }
1361
- else {
1362
- return this.send(command, optionsOrCb);
1363
- }
1364
- }
1365
- listInstanceProfiles(args, optionsOrCb, cb) {
1366
- const command = new ListInstanceProfilesCommand(args);
1367
- if (typeof optionsOrCb === "function") {
1368
- this.send(command, optionsOrCb);
1369
- }
1370
- else if (typeof cb === "function") {
1371
- if (typeof optionsOrCb !== "object")
1372
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
1373
- this.send(command, optionsOrCb || {}, cb);
1374
- }
1375
- else {
1376
- return this.send(command, optionsOrCb);
1377
- }
1378
- }
1379
- listInstanceProfilesForRole(args, optionsOrCb, cb) {
1380
- const command = new ListInstanceProfilesForRoleCommand(args);
1381
- if (typeof optionsOrCb === "function") {
1382
- this.send(command, optionsOrCb);
1383
- }
1384
- else if (typeof cb === "function") {
1385
- if (typeof optionsOrCb !== "object")
1386
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
1387
- this.send(command, optionsOrCb || {}, cb);
1388
- }
1389
- else {
1390
- return this.send(command, optionsOrCb);
1391
- }
1392
- }
1393
- listInstanceProfileTags(args, optionsOrCb, cb) {
1394
- const command = new ListInstanceProfileTagsCommand(args);
1395
- if (typeof optionsOrCb === "function") {
1396
- this.send(command, optionsOrCb);
1397
- }
1398
- else if (typeof cb === "function") {
1399
- if (typeof optionsOrCb !== "object")
1400
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
1401
- this.send(command, optionsOrCb || {}, cb);
1402
- }
1403
- else {
1404
- return this.send(command, optionsOrCb);
1405
- }
1406
- }
1407
- listMFADevices(args, optionsOrCb, cb) {
1408
- const command = new ListMFADevicesCommand(args);
1409
- if (typeof optionsOrCb === "function") {
1410
- this.send(command, optionsOrCb);
1411
- }
1412
- else if (typeof cb === "function") {
1413
- if (typeof optionsOrCb !== "object")
1414
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
1415
- this.send(command, optionsOrCb || {}, cb);
1416
- }
1417
- else {
1418
- return this.send(command, optionsOrCb);
1419
- }
1420
- }
1421
- listMFADeviceTags(args, optionsOrCb, cb) {
1422
- const command = new ListMFADeviceTagsCommand(args);
1423
- if (typeof optionsOrCb === "function") {
1424
- this.send(command, optionsOrCb);
1425
- }
1426
- else if (typeof cb === "function") {
1427
- if (typeof optionsOrCb !== "object")
1428
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
1429
- this.send(command, optionsOrCb || {}, cb);
1430
- }
1431
- else {
1432
- return this.send(command, optionsOrCb);
1433
- }
1434
- }
1435
- listOpenIDConnectProviders(args, optionsOrCb, cb) {
1436
- const command = new ListOpenIDConnectProvidersCommand(args);
1437
- if (typeof optionsOrCb === "function") {
1438
- this.send(command, optionsOrCb);
1439
- }
1440
- else if (typeof cb === "function") {
1441
- if (typeof optionsOrCb !== "object")
1442
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
1443
- this.send(command, optionsOrCb || {}, cb);
1444
- }
1445
- else {
1446
- return this.send(command, optionsOrCb);
1447
- }
1448
- }
1449
- listOpenIDConnectProviderTags(args, optionsOrCb, cb) {
1450
- const command = new ListOpenIDConnectProviderTagsCommand(args);
1451
- if (typeof optionsOrCb === "function") {
1452
- this.send(command, optionsOrCb);
1453
- }
1454
- else if (typeof cb === "function") {
1455
- if (typeof optionsOrCb !== "object")
1456
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
1457
- this.send(command, optionsOrCb || {}, cb);
1458
- }
1459
- else {
1460
- return this.send(command, optionsOrCb);
1461
- }
1462
- }
1463
- listPolicies(args, optionsOrCb, cb) {
1464
- const command = new ListPoliciesCommand(args);
1465
- if (typeof optionsOrCb === "function") {
1466
- this.send(command, optionsOrCb);
1467
- }
1468
- else if (typeof cb === "function") {
1469
- if (typeof optionsOrCb !== "object")
1470
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
1471
- this.send(command, optionsOrCb || {}, cb);
1472
- }
1473
- else {
1474
- return this.send(command, optionsOrCb);
1475
- }
1476
- }
1477
- listPoliciesGrantingServiceAccess(args, optionsOrCb, cb) {
1478
- const command = new ListPoliciesGrantingServiceAccessCommand(args);
1479
- if (typeof optionsOrCb === "function") {
1480
- this.send(command, optionsOrCb);
1481
- }
1482
- else if (typeof cb === "function") {
1483
- if (typeof optionsOrCb !== "object")
1484
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
1485
- this.send(command, optionsOrCb || {}, cb);
1486
- }
1487
- else {
1488
- return this.send(command, optionsOrCb);
1489
- }
1490
- }
1491
- listPolicyTags(args, optionsOrCb, cb) {
1492
- const command = new ListPolicyTagsCommand(args);
1493
- if (typeof optionsOrCb === "function") {
1494
- this.send(command, optionsOrCb);
1495
- }
1496
- else if (typeof cb === "function") {
1497
- if (typeof optionsOrCb !== "object")
1498
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
1499
- this.send(command, optionsOrCb || {}, cb);
1500
- }
1501
- else {
1502
- return this.send(command, optionsOrCb);
1503
- }
1504
- }
1505
- listPolicyVersions(args, optionsOrCb, cb) {
1506
- const command = new ListPolicyVersionsCommand(args);
1507
- if (typeof optionsOrCb === "function") {
1508
- this.send(command, optionsOrCb);
1509
- }
1510
- else if (typeof cb === "function") {
1511
- if (typeof optionsOrCb !== "object")
1512
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
1513
- this.send(command, optionsOrCb || {}, cb);
1514
- }
1515
- else {
1516
- return this.send(command, optionsOrCb);
1517
- }
1518
- }
1519
- listRolePolicies(args, optionsOrCb, cb) {
1520
- const command = new ListRolePoliciesCommand(args);
1521
- if (typeof optionsOrCb === "function") {
1522
- this.send(command, optionsOrCb);
1523
- }
1524
- else if (typeof cb === "function") {
1525
- if (typeof optionsOrCb !== "object")
1526
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
1527
- this.send(command, optionsOrCb || {}, cb);
1528
- }
1529
- else {
1530
- return this.send(command, optionsOrCb);
1531
- }
1532
- }
1533
- listRoles(args, optionsOrCb, cb) {
1534
- const command = new ListRolesCommand(args);
1535
- if (typeof optionsOrCb === "function") {
1536
- this.send(command, optionsOrCb);
1537
- }
1538
- else if (typeof cb === "function") {
1539
- if (typeof optionsOrCb !== "object")
1540
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
1541
- this.send(command, optionsOrCb || {}, cb);
1542
- }
1543
- else {
1544
- return this.send(command, optionsOrCb);
1545
- }
1546
- }
1547
- listRoleTags(args, optionsOrCb, cb) {
1548
- const command = new ListRoleTagsCommand(args);
1549
- if (typeof optionsOrCb === "function") {
1550
- this.send(command, optionsOrCb);
1551
- }
1552
- else if (typeof cb === "function") {
1553
- if (typeof optionsOrCb !== "object")
1554
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
1555
- this.send(command, optionsOrCb || {}, cb);
1556
- }
1557
- else {
1558
- return this.send(command, optionsOrCb);
1559
- }
1560
- }
1561
- listSAMLProviders(args, optionsOrCb, cb) {
1562
- const command = new ListSAMLProvidersCommand(args);
1563
- if (typeof optionsOrCb === "function") {
1564
- this.send(command, optionsOrCb);
1565
- }
1566
- else if (typeof cb === "function") {
1567
- if (typeof optionsOrCb !== "object")
1568
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
1569
- this.send(command, optionsOrCb || {}, cb);
1570
- }
1571
- else {
1572
- return this.send(command, optionsOrCb);
1573
- }
1574
- }
1575
- listSAMLProviderTags(args, optionsOrCb, cb) {
1576
- const command = new ListSAMLProviderTagsCommand(args);
1577
- if (typeof optionsOrCb === "function") {
1578
- this.send(command, optionsOrCb);
1579
- }
1580
- else if (typeof cb === "function") {
1581
- if (typeof optionsOrCb !== "object")
1582
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
1583
- this.send(command, optionsOrCb || {}, cb);
1584
- }
1585
- else {
1586
- return this.send(command, optionsOrCb);
1587
- }
1588
- }
1589
- listServerCertificates(args, optionsOrCb, cb) {
1590
- const command = new ListServerCertificatesCommand(args);
1591
- if (typeof optionsOrCb === "function") {
1592
- this.send(command, optionsOrCb);
1593
- }
1594
- else if (typeof cb === "function") {
1595
- if (typeof optionsOrCb !== "object")
1596
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
1597
- this.send(command, optionsOrCb || {}, cb);
1598
- }
1599
- else {
1600
- return this.send(command, optionsOrCb);
1601
- }
1602
- }
1603
- listServerCertificateTags(args, optionsOrCb, cb) {
1604
- const command = new ListServerCertificateTagsCommand(args);
1605
- if (typeof optionsOrCb === "function") {
1606
- this.send(command, optionsOrCb);
1607
- }
1608
- else if (typeof cb === "function") {
1609
- if (typeof optionsOrCb !== "object")
1610
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
1611
- this.send(command, optionsOrCb || {}, cb);
1612
- }
1613
- else {
1614
- return this.send(command, optionsOrCb);
1615
- }
1616
- }
1617
- listServiceSpecificCredentials(args, optionsOrCb, cb) {
1618
- const command = new ListServiceSpecificCredentialsCommand(args);
1619
- if (typeof optionsOrCb === "function") {
1620
- this.send(command, optionsOrCb);
1621
- }
1622
- else if (typeof cb === "function") {
1623
- if (typeof optionsOrCb !== "object")
1624
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
1625
- this.send(command, optionsOrCb || {}, cb);
1626
- }
1627
- else {
1628
- return this.send(command, optionsOrCb);
1629
- }
1630
- }
1631
- listSigningCertificates(args, optionsOrCb, cb) {
1632
- const command = new ListSigningCertificatesCommand(args);
1633
- if (typeof optionsOrCb === "function") {
1634
- this.send(command, optionsOrCb);
1635
- }
1636
- else if (typeof cb === "function") {
1637
- if (typeof optionsOrCb !== "object")
1638
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
1639
- this.send(command, optionsOrCb || {}, cb);
1640
- }
1641
- else {
1642
- return this.send(command, optionsOrCb);
1643
- }
1644
- }
1645
- listSSHPublicKeys(args, optionsOrCb, cb) {
1646
- const command = new ListSSHPublicKeysCommand(args);
1647
- if (typeof optionsOrCb === "function") {
1648
- this.send(command, optionsOrCb);
1649
- }
1650
- else if (typeof cb === "function") {
1651
- if (typeof optionsOrCb !== "object")
1652
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
1653
- this.send(command, optionsOrCb || {}, cb);
1654
- }
1655
- else {
1656
- return this.send(command, optionsOrCb);
1657
- }
1658
- }
1659
- listUserPolicies(args, optionsOrCb, cb) {
1660
- const command = new ListUserPoliciesCommand(args);
1661
- if (typeof optionsOrCb === "function") {
1662
- this.send(command, optionsOrCb);
1663
- }
1664
- else if (typeof cb === "function") {
1665
- if (typeof optionsOrCb !== "object")
1666
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
1667
- this.send(command, optionsOrCb || {}, cb);
1668
- }
1669
- else {
1670
- return this.send(command, optionsOrCb);
1671
- }
1672
- }
1673
- listUsers(args, optionsOrCb, cb) {
1674
- const command = new ListUsersCommand(args);
1675
- if (typeof optionsOrCb === "function") {
1676
- this.send(command, optionsOrCb);
1677
- }
1678
- else if (typeof cb === "function") {
1679
- if (typeof optionsOrCb !== "object")
1680
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
1681
- this.send(command, optionsOrCb || {}, cb);
1682
- }
1683
- else {
1684
- return this.send(command, optionsOrCb);
1685
- }
1686
- }
1687
- listUserTags(args, optionsOrCb, cb) {
1688
- const command = new ListUserTagsCommand(args);
1689
- if (typeof optionsOrCb === "function") {
1690
- this.send(command, optionsOrCb);
1691
- }
1692
- else if (typeof cb === "function") {
1693
- if (typeof optionsOrCb !== "object")
1694
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
1695
- this.send(command, optionsOrCb || {}, cb);
1696
- }
1697
- else {
1698
- return this.send(command, optionsOrCb);
1699
- }
1700
- }
1701
- listVirtualMFADevices(args, optionsOrCb, cb) {
1702
- const command = new ListVirtualMFADevicesCommand(args);
1703
- if (typeof optionsOrCb === "function") {
1704
- this.send(command, optionsOrCb);
1705
- }
1706
- else if (typeof cb === "function") {
1707
- if (typeof optionsOrCb !== "object")
1708
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
1709
- this.send(command, optionsOrCb || {}, cb);
1710
- }
1711
- else {
1712
- return this.send(command, optionsOrCb);
1713
- }
1714
- }
1715
- putGroupPolicy(args, optionsOrCb, cb) {
1716
- const command = new PutGroupPolicyCommand(args);
1717
- if (typeof optionsOrCb === "function") {
1718
- this.send(command, optionsOrCb);
1719
- }
1720
- else if (typeof cb === "function") {
1721
- if (typeof optionsOrCb !== "object")
1722
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
1723
- this.send(command, optionsOrCb || {}, cb);
1724
- }
1725
- else {
1726
- return this.send(command, optionsOrCb);
1727
- }
1728
- }
1729
- putRolePermissionsBoundary(args, optionsOrCb, cb) {
1730
- const command = new PutRolePermissionsBoundaryCommand(args);
1731
- if (typeof optionsOrCb === "function") {
1732
- this.send(command, optionsOrCb);
1733
- }
1734
- else if (typeof cb === "function") {
1735
- if (typeof optionsOrCb !== "object")
1736
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
1737
- this.send(command, optionsOrCb || {}, cb);
1738
- }
1739
- else {
1740
- return this.send(command, optionsOrCb);
1741
- }
1742
- }
1743
- putRolePolicy(args, optionsOrCb, cb) {
1744
- const command = new PutRolePolicyCommand(args);
1745
- if (typeof optionsOrCb === "function") {
1746
- this.send(command, optionsOrCb);
1747
- }
1748
- else if (typeof cb === "function") {
1749
- if (typeof optionsOrCb !== "object")
1750
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
1751
- this.send(command, optionsOrCb || {}, cb);
1752
- }
1753
- else {
1754
- return this.send(command, optionsOrCb);
1755
- }
1756
- }
1757
- putUserPermissionsBoundary(args, optionsOrCb, cb) {
1758
- const command = new PutUserPermissionsBoundaryCommand(args);
1759
- if (typeof optionsOrCb === "function") {
1760
- this.send(command, optionsOrCb);
1761
- }
1762
- else if (typeof cb === "function") {
1763
- if (typeof optionsOrCb !== "object")
1764
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
1765
- this.send(command, optionsOrCb || {}, cb);
1766
- }
1767
- else {
1768
- return this.send(command, optionsOrCb);
1769
- }
1770
- }
1771
- putUserPolicy(args, optionsOrCb, cb) {
1772
- const command = new PutUserPolicyCommand(args);
1773
- if (typeof optionsOrCb === "function") {
1774
- this.send(command, optionsOrCb);
1775
- }
1776
- else if (typeof cb === "function") {
1777
- if (typeof optionsOrCb !== "object")
1778
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
1779
- this.send(command, optionsOrCb || {}, cb);
1780
- }
1781
- else {
1782
- return this.send(command, optionsOrCb);
1783
- }
1784
- }
1785
- removeClientIDFromOpenIDConnectProvider(args, optionsOrCb, cb) {
1786
- const command = new RemoveClientIDFromOpenIDConnectProviderCommand(args);
1787
- if (typeof optionsOrCb === "function") {
1788
- this.send(command, optionsOrCb);
1789
- }
1790
- else if (typeof cb === "function") {
1791
- if (typeof optionsOrCb !== "object")
1792
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
1793
- this.send(command, optionsOrCb || {}, cb);
1794
- }
1795
- else {
1796
- return this.send(command, optionsOrCb);
1797
- }
1798
- }
1799
- removeRoleFromInstanceProfile(args, optionsOrCb, cb) {
1800
- const command = new RemoveRoleFromInstanceProfileCommand(args);
1801
- if (typeof optionsOrCb === "function") {
1802
- this.send(command, optionsOrCb);
1803
- }
1804
- else if (typeof cb === "function") {
1805
- if (typeof optionsOrCb !== "object")
1806
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
1807
- this.send(command, optionsOrCb || {}, cb);
1808
- }
1809
- else {
1810
- return this.send(command, optionsOrCb);
1811
- }
1812
- }
1813
- removeUserFromGroup(args, optionsOrCb, cb) {
1814
- const command = new RemoveUserFromGroupCommand(args);
1815
- if (typeof optionsOrCb === "function") {
1816
- this.send(command, optionsOrCb);
1817
- }
1818
- else if (typeof cb === "function") {
1819
- if (typeof optionsOrCb !== "object")
1820
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
1821
- this.send(command, optionsOrCb || {}, cb);
1822
- }
1823
- else {
1824
- return this.send(command, optionsOrCb);
1825
- }
1826
- }
1827
- resetServiceSpecificCredential(args, optionsOrCb, cb) {
1828
- const command = new ResetServiceSpecificCredentialCommand(args);
1829
- if (typeof optionsOrCb === "function") {
1830
- this.send(command, optionsOrCb);
1831
- }
1832
- else if (typeof cb === "function") {
1833
- if (typeof optionsOrCb !== "object")
1834
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
1835
- this.send(command, optionsOrCb || {}, cb);
1836
- }
1837
- else {
1838
- return this.send(command, optionsOrCb);
1839
- }
1840
- }
1841
- resyncMFADevice(args, optionsOrCb, cb) {
1842
- const command = new ResyncMFADeviceCommand(args);
1843
- if (typeof optionsOrCb === "function") {
1844
- this.send(command, optionsOrCb);
1845
- }
1846
- else if (typeof cb === "function") {
1847
- if (typeof optionsOrCb !== "object")
1848
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
1849
- this.send(command, optionsOrCb || {}, cb);
1850
- }
1851
- else {
1852
- return this.send(command, optionsOrCb);
1853
- }
1854
- }
1855
- setDefaultPolicyVersion(args, optionsOrCb, cb) {
1856
- const command = new SetDefaultPolicyVersionCommand(args);
1857
- if (typeof optionsOrCb === "function") {
1858
- this.send(command, optionsOrCb);
1859
- }
1860
- else if (typeof cb === "function") {
1861
- if (typeof optionsOrCb !== "object")
1862
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
1863
- this.send(command, optionsOrCb || {}, cb);
1864
- }
1865
- else {
1866
- return this.send(command, optionsOrCb);
1867
- }
1868
- }
1869
- setSecurityTokenServicePreferences(args, optionsOrCb, cb) {
1870
- const command = new SetSecurityTokenServicePreferencesCommand(args);
1871
- if (typeof optionsOrCb === "function") {
1872
- this.send(command, optionsOrCb);
1873
- }
1874
- else if (typeof cb === "function") {
1875
- if (typeof optionsOrCb !== "object")
1876
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
1877
- this.send(command, optionsOrCb || {}, cb);
1878
- }
1879
- else {
1880
- return this.send(command, optionsOrCb);
1881
- }
1882
- }
1883
- simulateCustomPolicy(args, optionsOrCb, cb) {
1884
- const command = new SimulateCustomPolicyCommand(args);
1885
- if (typeof optionsOrCb === "function") {
1886
- this.send(command, optionsOrCb);
1887
- }
1888
- else if (typeof cb === "function") {
1889
- if (typeof optionsOrCb !== "object")
1890
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
1891
- this.send(command, optionsOrCb || {}, cb);
1892
- }
1893
- else {
1894
- return this.send(command, optionsOrCb);
1895
- }
1896
- }
1897
- simulatePrincipalPolicy(args, optionsOrCb, cb) {
1898
- const command = new SimulatePrincipalPolicyCommand(args);
1899
- if (typeof optionsOrCb === "function") {
1900
- this.send(command, optionsOrCb);
1901
- }
1902
- else if (typeof cb === "function") {
1903
- if (typeof optionsOrCb !== "object")
1904
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
1905
- this.send(command, optionsOrCb || {}, cb);
1906
- }
1907
- else {
1908
- return this.send(command, optionsOrCb);
1909
- }
1910
- }
1911
- tagInstanceProfile(args, optionsOrCb, cb) {
1912
- const command = new TagInstanceProfileCommand(args);
1913
- if (typeof optionsOrCb === "function") {
1914
- this.send(command, optionsOrCb);
1915
- }
1916
- else if (typeof cb === "function") {
1917
- if (typeof optionsOrCb !== "object")
1918
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
1919
- this.send(command, optionsOrCb || {}, cb);
1920
- }
1921
- else {
1922
- return this.send(command, optionsOrCb);
1923
- }
1924
- }
1925
- tagMFADevice(args, optionsOrCb, cb) {
1926
- const command = new TagMFADeviceCommand(args);
1927
- if (typeof optionsOrCb === "function") {
1928
- this.send(command, optionsOrCb);
1929
- }
1930
- else if (typeof cb === "function") {
1931
- if (typeof optionsOrCb !== "object")
1932
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
1933
- this.send(command, optionsOrCb || {}, cb);
1934
- }
1935
- else {
1936
- return this.send(command, optionsOrCb);
1937
- }
1938
- }
1939
- tagOpenIDConnectProvider(args, optionsOrCb, cb) {
1940
- const command = new TagOpenIDConnectProviderCommand(args);
1941
- if (typeof optionsOrCb === "function") {
1942
- this.send(command, optionsOrCb);
1943
- }
1944
- else if (typeof cb === "function") {
1945
- if (typeof optionsOrCb !== "object")
1946
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
1947
- this.send(command, optionsOrCb || {}, cb);
1948
- }
1949
- else {
1950
- return this.send(command, optionsOrCb);
1951
- }
1952
- }
1953
- tagPolicy(args, optionsOrCb, cb) {
1954
- const command = new TagPolicyCommand(args);
1955
- if (typeof optionsOrCb === "function") {
1956
- this.send(command, optionsOrCb);
1957
- }
1958
- else if (typeof cb === "function") {
1959
- if (typeof optionsOrCb !== "object")
1960
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
1961
- this.send(command, optionsOrCb || {}, cb);
1962
- }
1963
- else {
1964
- return this.send(command, optionsOrCb);
1965
- }
1966
- }
1967
- tagRole(args, optionsOrCb, cb) {
1968
- const command = new TagRoleCommand(args);
1969
- if (typeof optionsOrCb === "function") {
1970
- this.send(command, optionsOrCb);
1971
- }
1972
- else if (typeof cb === "function") {
1973
- if (typeof optionsOrCb !== "object")
1974
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
1975
- this.send(command, optionsOrCb || {}, cb);
1976
- }
1977
- else {
1978
- return this.send(command, optionsOrCb);
1979
- }
1980
- }
1981
- tagSAMLProvider(args, optionsOrCb, cb) {
1982
- const command = new TagSAMLProviderCommand(args);
1983
- if (typeof optionsOrCb === "function") {
1984
- this.send(command, optionsOrCb);
1985
- }
1986
- else if (typeof cb === "function") {
1987
- if (typeof optionsOrCb !== "object")
1988
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
1989
- this.send(command, optionsOrCb || {}, cb);
1990
- }
1991
- else {
1992
- return this.send(command, optionsOrCb);
1993
- }
1994
- }
1995
- tagServerCertificate(args, optionsOrCb, cb) {
1996
- const command = new TagServerCertificateCommand(args);
1997
- if (typeof optionsOrCb === "function") {
1998
- this.send(command, optionsOrCb);
1999
- }
2000
- else if (typeof cb === "function") {
2001
- if (typeof optionsOrCb !== "object")
2002
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
2003
- this.send(command, optionsOrCb || {}, cb);
2004
- }
2005
- else {
2006
- return this.send(command, optionsOrCb);
2007
- }
2008
- }
2009
- tagUser(args, optionsOrCb, cb) {
2010
- const command = new TagUserCommand(args);
2011
- if (typeof optionsOrCb === "function") {
2012
- this.send(command, optionsOrCb);
2013
- }
2014
- else if (typeof cb === "function") {
2015
- if (typeof optionsOrCb !== "object")
2016
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
2017
- this.send(command, optionsOrCb || {}, cb);
2018
- }
2019
- else {
2020
- return this.send(command, optionsOrCb);
2021
- }
2022
- }
2023
- untagInstanceProfile(args, optionsOrCb, cb) {
2024
- const command = new UntagInstanceProfileCommand(args);
2025
- if (typeof optionsOrCb === "function") {
2026
- this.send(command, optionsOrCb);
2027
- }
2028
- else if (typeof cb === "function") {
2029
- if (typeof optionsOrCb !== "object")
2030
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
2031
- this.send(command, optionsOrCb || {}, cb);
2032
- }
2033
- else {
2034
- return this.send(command, optionsOrCb);
2035
- }
2036
- }
2037
- untagMFADevice(args, optionsOrCb, cb) {
2038
- const command = new UntagMFADeviceCommand(args);
2039
- if (typeof optionsOrCb === "function") {
2040
- this.send(command, optionsOrCb);
2041
- }
2042
- else if (typeof cb === "function") {
2043
- if (typeof optionsOrCb !== "object")
2044
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
2045
- this.send(command, optionsOrCb || {}, cb);
2046
- }
2047
- else {
2048
- return this.send(command, optionsOrCb);
2049
- }
2050
- }
2051
- untagOpenIDConnectProvider(args, optionsOrCb, cb) {
2052
- const command = new UntagOpenIDConnectProviderCommand(args);
2053
- if (typeof optionsOrCb === "function") {
2054
- this.send(command, optionsOrCb);
2055
- }
2056
- else if (typeof cb === "function") {
2057
- if (typeof optionsOrCb !== "object")
2058
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
2059
- this.send(command, optionsOrCb || {}, cb);
2060
- }
2061
- else {
2062
- return this.send(command, optionsOrCb);
2063
- }
2064
- }
2065
- untagPolicy(args, optionsOrCb, cb) {
2066
- const command = new UntagPolicyCommand(args);
2067
- if (typeof optionsOrCb === "function") {
2068
- this.send(command, optionsOrCb);
2069
- }
2070
- else if (typeof cb === "function") {
2071
- if (typeof optionsOrCb !== "object")
2072
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
2073
- this.send(command, optionsOrCb || {}, cb);
2074
- }
2075
- else {
2076
- return this.send(command, optionsOrCb);
2077
- }
2078
- }
2079
- untagRole(args, optionsOrCb, cb) {
2080
- const command = new UntagRoleCommand(args);
2081
- if (typeof optionsOrCb === "function") {
2082
- this.send(command, optionsOrCb);
2083
- }
2084
- else if (typeof cb === "function") {
2085
- if (typeof optionsOrCb !== "object")
2086
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
2087
- this.send(command, optionsOrCb || {}, cb);
2088
- }
2089
- else {
2090
- return this.send(command, optionsOrCb);
2091
- }
2092
- }
2093
- untagSAMLProvider(args, optionsOrCb, cb) {
2094
- const command = new UntagSAMLProviderCommand(args);
2095
- if (typeof optionsOrCb === "function") {
2096
- this.send(command, optionsOrCb);
2097
- }
2098
- else if (typeof cb === "function") {
2099
- if (typeof optionsOrCb !== "object")
2100
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
2101
- this.send(command, optionsOrCb || {}, cb);
2102
- }
2103
- else {
2104
- return this.send(command, optionsOrCb);
2105
- }
2106
- }
2107
- untagServerCertificate(args, optionsOrCb, cb) {
2108
- const command = new UntagServerCertificateCommand(args);
2109
- if (typeof optionsOrCb === "function") {
2110
- this.send(command, optionsOrCb);
2111
- }
2112
- else if (typeof cb === "function") {
2113
- if (typeof optionsOrCb !== "object")
2114
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
2115
- this.send(command, optionsOrCb || {}, cb);
2116
- }
2117
- else {
2118
- return this.send(command, optionsOrCb);
2119
- }
2120
- }
2121
- untagUser(args, optionsOrCb, cb) {
2122
- const command = new UntagUserCommand(args);
2123
- if (typeof optionsOrCb === "function") {
2124
- this.send(command, optionsOrCb);
2125
- }
2126
- else if (typeof cb === "function") {
2127
- if (typeof optionsOrCb !== "object")
2128
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
2129
- this.send(command, optionsOrCb || {}, cb);
2130
- }
2131
- else {
2132
- return this.send(command, optionsOrCb);
2133
- }
2134
- }
2135
- updateAccessKey(args, optionsOrCb, cb) {
2136
- const command = new UpdateAccessKeyCommand(args);
2137
- if (typeof optionsOrCb === "function") {
2138
- this.send(command, optionsOrCb);
2139
- }
2140
- else if (typeof cb === "function") {
2141
- if (typeof optionsOrCb !== "object")
2142
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
2143
- this.send(command, optionsOrCb || {}, cb);
2144
- }
2145
- else {
2146
- return this.send(command, optionsOrCb);
2147
- }
2148
- }
2149
- updateAccountPasswordPolicy(args, optionsOrCb, cb) {
2150
- const command = new UpdateAccountPasswordPolicyCommand(args);
2151
- if (typeof optionsOrCb === "function") {
2152
- this.send(command, optionsOrCb);
2153
- }
2154
- else if (typeof cb === "function") {
2155
- if (typeof optionsOrCb !== "object")
2156
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
2157
- this.send(command, optionsOrCb || {}, cb);
2158
- }
2159
- else {
2160
- return this.send(command, optionsOrCb);
2161
- }
2162
- }
2163
- updateAssumeRolePolicy(args, optionsOrCb, cb) {
2164
- const command = new UpdateAssumeRolePolicyCommand(args);
2165
- if (typeof optionsOrCb === "function") {
2166
- this.send(command, optionsOrCb);
2167
- }
2168
- else if (typeof cb === "function") {
2169
- if (typeof optionsOrCb !== "object")
2170
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
2171
- this.send(command, optionsOrCb || {}, cb);
2172
- }
2173
- else {
2174
- return this.send(command, optionsOrCb);
2175
- }
2176
- }
2177
- updateGroup(args, optionsOrCb, cb) {
2178
- const command = new UpdateGroupCommand(args);
2179
- if (typeof optionsOrCb === "function") {
2180
- this.send(command, optionsOrCb);
2181
- }
2182
- else if (typeof cb === "function") {
2183
- if (typeof optionsOrCb !== "object")
2184
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
2185
- this.send(command, optionsOrCb || {}, cb);
2186
- }
2187
- else {
2188
- return this.send(command, optionsOrCb);
2189
- }
2190
- }
2191
- updateLoginProfile(args, optionsOrCb, cb) {
2192
- const command = new UpdateLoginProfileCommand(args);
2193
- if (typeof optionsOrCb === "function") {
2194
- this.send(command, optionsOrCb);
2195
- }
2196
- else if (typeof cb === "function") {
2197
- if (typeof optionsOrCb !== "object")
2198
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
2199
- this.send(command, optionsOrCb || {}, cb);
2200
- }
2201
- else {
2202
- return this.send(command, optionsOrCb);
2203
- }
2204
- }
2205
- updateOpenIDConnectProviderThumbprint(args, optionsOrCb, cb) {
2206
- const command = new UpdateOpenIDConnectProviderThumbprintCommand(args);
2207
- if (typeof optionsOrCb === "function") {
2208
- this.send(command, optionsOrCb);
2209
- }
2210
- else if (typeof cb === "function") {
2211
- if (typeof optionsOrCb !== "object")
2212
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
2213
- this.send(command, optionsOrCb || {}, cb);
2214
- }
2215
- else {
2216
- return this.send(command, optionsOrCb);
2217
- }
2218
- }
2219
- updateRole(args, optionsOrCb, cb) {
2220
- const command = new UpdateRoleCommand(args);
2221
- if (typeof optionsOrCb === "function") {
2222
- this.send(command, optionsOrCb);
2223
- }
2224
- else if (typeof cb === "function") {
2225
- if (typeof optionsOrCb !== "object")
2226
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
2227
- this.send(command, optionsOrCb || {}, cb);
2228
- }
2229
- else {
2230
- return this.send(command, optionsOrCb);
2231
- }
2232
- }
2233
- updateRoleDescription(args, optionsOrCb, cb) {
2234
- const command = new UpdateRoleDescriptionCommand(args);
2235
- if (typeof optionsOrCb === "function") {
2236
- this.send(command, optionsOrCb);
2237
- }
2238
- else if (typeof cb === "function") {
2239
- if (typeof optionsOrCb !== "object")
2240
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
2241
- this.send(command, optionsOrCb || {}, cb);
2242
- }
2243
- else {
2244
- return this.send(command, optionsOrCb);
2245
- }
2246
- }
2247
- updateSAMLProvider(args, optionsOrCb, cb) {
2248
- const command = new UpdateSAMLProviderCommand(args);
2249
- if (typeof optionsOrCb === "function") {
2250
- this.send(command, optionsOrCb);
2251
- }
2252
- else if (typeof cb === "function") {
2253
- if (typeof optionsOrCb !== "object")
2254
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
2255
- this.send(command, optionsOrCb || {}, cb);
2256
- }
2257
- else {
2258
- return this.send(command, optionsOrCb);
2259
- }
2260
- }
2261
- updateServerCertificate(args, optionsOrCb, cb) {
2262
- const command = new UpdateServerCertificateCommand(args);
2263
- if (typeof optionsOrCb === "function") {
2264
- this.send(command, optionsOrCb);
2265
- }
2266
- else if (typeof cb === "function") {
2267
- if (typeof optionsOrCb !== "object")
2268
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
2269
- this.send(command, optionsOrCb || {}, cb);
2270
- }
2271
- else {
2272
- return this.send(command, optionsOrCb);
2273
- }
2274
- }
2275
- updateServiceSpecificCredential(args, optionsOrCb, cb) {
2276
- const command = new UpdateServiceSpecificCredentialCommand(args);
2277
- if (typeof optionsOrCb === "function") {
2278
- this.send(command, optionsOrCb);
2279
- }
2280
- else if (typeof cb === "function") {
2281
- if (typeof optionsOrCb !== "object")
2282
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
2283
- this.send(command, optionsOrCb || {}, cb);
2284
- }
2285
- else {
2286
- return this.send(command, optionsOrCb);
2287
- }
2288
- }
2289
- updateSigningCertificate(args, optionsOrCb, cb) {
2290
- const command = new UpdateSigningCertificateCommand(args);
2291
- if (typeof optionsOrCb === "function") {
2292
- this.send(command, optionsOrCb);
2293
- }
2294
- else if (typeof cb === "function") {
2295
- if (typeof optionsOrCb !== "object")
2296
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
2297
- this.send(command, optionsOrCb || {}, cb);
2298
- }
2299
- else {
2300
- return this.send(command, optionsOrCb);
2301
- }
2302
- }
2303
- updateSSHPublicKey(args, optionsOrCb, cb) {
2304
- const command = new UpdateSSHPublicKeyCommand(args);
2305
- if (typeof optionsOrCb === "function") {
2306
- this.send(command, optionsOrCb);
2307
- }
2308
- else if (typeof cb === "function") {
2309
- if (typeof optionsOrCb !== "object")
2310
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
2311
- this.send(command, optionsOrCb || {}, cb);
2312
- }
2313
- else {
2314
- return this.send(command, optionsOrCb);
2315
- }
2316
- }
2317
- updateUser(args, optionsOrCb, cb) {
2318
- const command = new UpdateUserCommand(args);
2319
- if (typeof optionsOrCb === "function") {
2320
- this.send(command, optionsOrCb);
2321
- }
2322
- else if (typeof cb === "function") {
2323
- if (typeof optionsOrCb !== "object")
2324
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
2325
- this.send(command, optionsOrCb || {}, cb);
2326
- }
2327
- else {
2328
- return this.send(command, optionsOrCb);
2329
- }
2330
- }
2331
- uploadServerCertificate(args, optionsOrCb, cb) {
2332
- const command = new UploadServerCertificateCommand(args);
2333
- if (typeof optionsOrCb === "function") {
2334
- this.send(command, optionsOrCb);
2335
- }
2336
- else if (typeof cb === "function") {
2337
- if (typeof optionsOrCb !== "object")
2338
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
2339
- this.send(command, optionsOrCb || {}, cb);
2340
- }
2341
- else {
2342
- return this.send(command, optionsOrCb);
2343
- }
2344
- }
2345
- uploadSigningCertificate(args, optionsOrCb, cb) {
2346
- const command = new UploadSigningCertificateCommand(args);
2347
- if (typeof optionsOrCb === "function") {
2348
- this.send(command, optionsOrCb);
2349
- }
2350
- else if (typeof cb === "function") {
2351
- if (typeof optionsOrCb !== "object")
2352
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
2353
- this.send(command, optionsOrCb || {}, cb);
2354
- }
2355
- else {
2356
- return this.send(command, optionsOrCb);
2357
- }
2358
- }
2359
- uploadSSHPublicKey(args, optionsOrCb, cb) {
2360
- const command = new UploadSSHPublicKeyCommand(args);
2361
- if (typeof optionsOrCb === "function") {
2362
- this.send(command, optionsOrCb);
2363
- }
2364
- else if (typeof cb === "function") {
2365
- if (typeof optionsOrCb !== "object")
2366
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
2367
- this.send(command, optionsOrCb || {}, cb);
2368
- }
2369
- else {
2370
- return this.send(command, optionsOrCb);
2371
- }
2372
- }
2373
322
  }
323
+ createAggregatedClient(commands, IAM);