@aws-sdk/client-chime 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/Chime.js CHANGED
@@ -1,3 +1,4 @@
1
+ import { createAggregatedClient } from "@aws-sdk/smithy-client";
1
2
  import { ChimeClient } from "./ChimeClient";
2
3
  import { AssociatePhoneNumbersWithVoiceConnectorCommand, } from "./commands/AssociatePhoneNumbersWithVoiceConnectorCommand";
3
4
  import { AssociatePhoneNumbersWithVoiceConnectorGroupCommand, } from "./commands/AssociatePhoneNumbersWithVoiceConnectorGroupCommand";
@@ -190,2679 +191,199 @@ import { UpdateUserSettingsCommand, } from "./commands/UpdateUserSettingsCommand
190
191
  import { UpdateVoiceConnectorCommand, } from "./commands/UpdateVoiceConnectorCommand";
191
192
  import { UpdateVoiceConnectorGroupCommand, } from "./commands/UpdateVoiceConnectorGroupCommand";
192
193
  import { ValidateE911AddressCommand, } from "./commands/ValidateE911AddressCommand";
194
+ const commands = {
195
+ AssociatePhoneNumbersWithVoiceConnectorCommand,
196
+ AssociatePhoneNumbersWithVoiceConnectorGroupCommand,
197
+ AssociatePhoneNumberWithUserCommand,
198
+ AssociateSigninDelegateGroupsWithAccountCommand,
199
+ BatchCreateAttendeeCommand,
200
+ BatchCreateChannelMembershipCommand,
201
+ BatchCreateRoomMembershipCommand,
202
+ BatchDeletePhoneNumberCommand,
203
+ BatchSuspendUserCommand,
204
+ BatchUnsuspendUserCommand,
205
+ BatchUpdatePhoneNumberCommand,
206
+ BatchUpdateUserCommand,
207
+ CreateAccountCommand,
208
+ CreateAppInstanceCommand,
209
+ CreateAppInstanceAdminCommand,
210
+ CreateAppInstanceUserCommand,
211
+ CreateAttendeeCommand,
212
+ CreateBotCommand,
213
+ CreateChannelCommand,
214
+ CreateChannelBanCommand,
215
+ CreateChannelMembershipCommand,
216
+ CreateChannelModeratorCommand,
217
+ CreateMediaCapturePipelineCommand,
218
+ CreateMeetingCommand,
219
+ CreateMeetingDialOutCommand,
220
+ CreateMeetingWithAttendeesCommand,
221
+ CreatePhoneNumberOrderCommand,
222
+ CreateProxySessionCommand,
223
+ CreateRoomCommand,
224
+ CreateRoomMembershipCommand,
225
+ CreateSipMediaApplicationCommand,
226
+ CreateSipMediaApplicationCallCommand,
227
+ CreateSipRuleCommand,
228
+ CreateUserCommand,
229
+ CreateVoiceConnectorCommand,
230
+ CreateVoiceConnectorGroupCommand,
231
+ DeleteAccountCommand,
232
+ DeleteAppInstanceCommand,
233
+ DeleteAppInstanceAdminCommand,
234
+ DeleteAppInstanceStreamingConfigurationsCommand,
235
+ DeleteAppInstanceUserCommand,
236
+ DeleteAttendeeCommand,
237
+ DeleteChannelCommand,
238
+ DeleteChannelBanCommand,
239
+ DeleteChannelMembershipCommand,
240
+ DeleteChannelMessageCommand,
241
+ DeleteChannelModeratorCommand,
242
+ DeleteEventsConfigurationCommand,
243
+ DeleteMediaCapturePipelineCommand,
244
+ DeleteMeetingCommand,
245
+ DeletePhoneNumberCommand,
246
+ DeleteProxySessionCommand,
247
+ DeleteRoomCommand,
248
+ DeleteRoomMembershipCommand,
249
+ DeleteSipMediaApplicationCommand,
250
+ DeleteSipRuleCommand,
251
+ DeleteVoiceConnectorCommand,
252
+ DeleteVoiceConnectorEmergencyCallingConfigurationCommand,
253
+ DeleteVoiceConnectorGroupCommand,
254
+ DeleteVoiceConnectorOriginationCommand,
255
+ DeleteVoiceConnectorProxyCommand,
256
+ DeleteVoiceConnectorStreamingConfigurationCommand,
257
+ DeleteVoiceConnectorTerminationCommand,
258
+ DeleteVoiceConnectorTerminationCredentialsCommand,
259
+ DescribeAppInstanceCommand,
260
+ DescribeAppInstanceAdminCommand,
261
+ DescribeAppInstanceUserCommand,
262
+ DescribeChannelCommand,
263
+ DescribeChannelBanCommand,
264
+ DescribeChannelMembershipCommand,
265
+ DescribeChannelMembershipForAppInstanceUserCommand,
266
+ DescribeChannelModeratedByAppInstanceUserCommand,
267
+ DescribeChannelModeratorCommand,
268
+ DisassociatePhoneNumberFromUserCommand,
269
+ DisassociatePhoneNumbersFromVoiceConnectorCommand,
270
+ DisassociatePhoneNumbersFromVoiceConnectorGroupCommand,
271
+ DisassociateSigninDelegateGroupsFromAccountCommand,
272
+ GetAccountCommand,
273
+ GetAccountSettingsCommand,
274
+ GetAppInstanceRetentionSettingsCommand,
275
+ GetAppInstanceStreamingConfigurationsCommand,
276
+ GetAttendeeCommand,
277
+ GetBotCommand,
278
+ GetChannelMessageCommand,
279
+ GetEventsConfigurationCommand,
280
+ GetGlobalSettingsCommand,
281
+ GetMediaCapturePipelineCommand,
282
+ GetMeetingCommand,
283
+ GetMessagingSessionEndpointCommand,
284
+ GetPhoneNumberCommand,
285
+ GetPhoneNumberOrderCommand,
286
+ GetPhoneNumberSettingsCommand,
287
+ GetProxySessionCommand,
288
+ GetRetentionSettingsCommand,
289
+ GetRoomCommand,
290
+ GetSipMediaApplicationCommand,
291
+ GetSipMediaApplicationLoggingConfigurationCommand,
292
+ GetSipRuleCommand,
293
+ GetUserCommand,
294
+ GetUserSettingsCommand,
295
+ GetVoiceConnectorCommand,
296
+ GetVoiceConnectorEmergencyCallingConfigurationCommand,
297
+ GetVoiceConnectorGroupCommand,
298
+ GetVoiceConnectorLoggingConfigurationCommand,
299
+ GetVoiceConnectorOriginationCommand,
300
+ GetVoiceConnectorProxyCommand,
301
+ GetVoiceConnectorStreamingConfigurationCommand,
302
+ GetVoiceConnectorTerminationCommand,
303
+ GetVoiceConnectorTerminationHealthCommand,
304
+ InviteUsersCommand,
305
+ ListAccountsCommand,
306
+ ListAppInstanceAdminsCommand,
307
+ ListAppInstancesCommand,
308
+ ListAppInstanceUsersCommand,
309
+ ListAttendeesCommand,
310
+ ListAttendeeTagsCommand,
311
+ ListBotsCommand,
312
+ ListChannelBansCommand,
313
+ ListChannelMembershipsCommand,
314
+ ListChannelMembershipsForAppInstanceUserCommand,
315
+ ListChannelMessagesCommand,
316
+ ListChannelModeratorsCommand,
317
+ ListChannelsCommand,
318
+ ListChannelsModeratedByAppInstanceUserCommand,
319
+ ListMediaCapturePipelinesCommand,
320
+ ListMeetingsCommand,
321
+ ListMeetingTagsCommand,
322
+ ListPhoneNumberOrdersCommand,
323
+ ListPhoneNumbersCommand,
324
+ ListProxySessionsCommand,
325
+ ListRoomMembershipsCommand,
326
+ ListRoomsCommand,
327
+ ListSipMediaApplicationsCommand,
328
+ ListSipRulesCommand,
329
+ ListSupportedPhoneNumberCountriesCommand,
330
+ ListTagsForResourceCommand,
331
+ ListUsersCommand,
332
+ ListVoiceConnectorGroupsCommand,
333
+ ListVoiceConnectorsCommand,
334
+ ListVoiceConnectorTerminationCredentialsCommand,
335
+ LogoutUserCommand,
336
+ PutAppInstanceRetentionSettingsCommand,
337
+ PutAppInstanceStreamingConfigurationsCommand,
338
+ PutEventsConfigurationCommand,
339
+ PutRetentionSettingsCommand,
340
+ PutSipMediaApplicationLoggingConfigurationCommand,
341
+ PutVoiceConnectorEmergencyCallingConfigurationCommand,
342
+ PutVoiceConnectorLoggingConfigurationCommand,
343
+ PutVoiceConnectorOriginationCommand,
344
+ PutVoiceConnectorProxyCommand,
345
+ PutVoiceConnectorStreamingConfigurationCommand,
346
+ PutVoiceConnectorTerminationCommand,
347
+ PutVoiceConnectorTerminationCredentialsCommand,
348
+ RedactChannelMessageCommand,
349
+ RedactConversationMessageCommand,
350
+ RedactRoomMessageCommand,
351
+ RegenerateSecurityTokenCommand,
352
+ ResetPersonalPINCommand,
353
+ RestorePhoneNumberCommand,
354
+ SearchAvailablePhoneNumbersCommand,
355
+ SendChannelMessageCommand,
356
+ StartMeetingTranscriptionCommand,
357
+ StopMeetingTranscriptionCommand,
358
+ TagAttendeeCommand,
359
+ TagMeetingCommand,
360
+ TagResourceCommand,
361
+ UntagAttendeeCommand,
362
+ UntagMeetingCommand,
363
+ UntagResourceCommand,
364
+ UpdateAccountCommand,
365
+ UpdateAccountSettingsCommand,
366
+ UpdateAppInstanceCommand,
367
+ UpdateAppInstanceUserCommand,
368
+ UpdateBotCommand,
369
+ UpdateChannelCommand,
370
+ UpdateChannelMessageCommand,
371
+ UpdateChannelReadMarkerCommand,
372
+ UpdateGlobalSettingsCommand,
373
+ UpdatePhoneNumberCommand,
374
+ UpdatePhoneNumberSettingsCommand,
375
+ UpdateProxySessionCommand,
376
+ UpdateRoomCommand,
377
+ UpdateRoomMembershipCommand,
378
+ UpdateSipMediaApplicationCommand,
379
+ UpdateSipMediaApplicationCallCommand,
380
+ UpdateSipRuleCommand,
381
+ UpdateUserCommand,
382
+ UpdateUserSettingsCommand,
383
+ UpdateVoiceConnectorCommand,
384
+ UpdateVoiceConnectorGroupCommand,
385
+ ValidateE911AddressCommand,
386
+ };
193
387
  export class Chime extends ChimeClient {
194
- associatePhoneNumbersWithVoiceConnector(args, optionsOrCb, cb) {
195
- const command = new AssociatePhoneNumbersWithVoiceConnectorCommand(args);
196
- if (typeof optionsOrCb === "function") {
197
- this.send(command, optionsOrCb);
198
- }
199
- else if (typeof cb === "function") {
200
- if (typeof optionsOrCb !== "object")
201
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
202
- this.send(command, optionsOrCb || {}, cb);
203
- }
204
- else {
205
- return this.send(command, optionsOrCb);
206
- }
207
- }
208
- associatePhoneNumbersWithVoiceConnectorGroup(args, optionsOrCb, cb) {
209
- const command = new AssociatePhoneNumbersWithVoiceConnectorGroupCommand(args);
210
- if (typeof optionsOrCb === "function") {
211
- this.send(command, optionsOrCb);
212
- }
213
- else if (typeof cb === "function") {
214
- if (typeof optionsOrCb !== "object")
215
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
216
- this.send(command, optionsOrCb || {}, cb);
217
- }
218
- else {
219
- return this.send(command, optionsOrCb);
220
- }
221
- }
222
- associatePhoneNumberWithUser(args, optionsOrCb, cb) {
223
- const command = new AssociatePhoneNumberWithUserCommand(args);
224
- if (typeof optionsOrCb === "function") {
225
- this.send(command, optionsOrCb);
226
- }
227
- else if (typeof cb === "function") {
228
- if (typeof optionsOrCb !== "object")
229
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
230
- this.send(command, optionsOrCb || {}, cb);
231
- }
232
- else {
233
- return this.send(command, optionsOrCb);
234
- }
235
- }
236
- associateSigninDelegateGroupsWithAccount(args, optionsOrCb, cb) {
237
- const command = new AssociateSigninDelegateGroupsWithAccountCommand(args);
238
- if (typeof optionsOrCb === "function") {
239
- this.send(command, optionsOrCb);
240
- }
241
- else if (typeof cb === "function") {
242
- if (typeof optionsOrCb !== "object")
243
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
244
- this.send(command, optionsOrCb || {}, cb);
245
- }
246
- else {
247
- return this.send(command, optionsOrCb);
248
- }
249
- }
250
- batchCreateAttendee(args, optionsOrCb, cb) {
251
- const command = new BatchCreateAttendeeCommand(args);
252
- if (typeof optionsOrCb === "function") {
253
- this.send(command, optionsOrCb);
254
- }
255
- else if (typeof cb === "function") {
256
- if (typeof optionsOrCb !== "object")
257
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
258
- this.send(command, optionsOrCb || {}, cb);
259
- }
260
- else {
261
- return this.send(command, optionsOrCb);
262
- }
263
- }
264
- batchCreateChannelMembership(args, optionsOrCb, cb) {
265
- const command = new BatchCreateChannelMembershipCommand(args);
266
- if (typeof optionsOrCb === "function") {
267
- this.send(command, optionsOrCb);
268
- }
269
- else if (typeof cb === "function") {
270
- if (typeof optionsOrCb !== "object")
271
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
272
- this.send(command, optionsOrCb || {}, cb);
273
- }
274
- else {
275
- return this.send(command, optionsOrCb);
276
- }
277
- }
278
- batchCreateRoomMembership(args, optionsOrCb, cb) {
279
- const command = new BatchCreateRoomMembershipCommand(args);
280
- if (typeof optionsOrCb === "function") {
281
- this.send(command, optionsOrCb);
282
- }
283
- else if (typeof cb === "function") {
284
- if (typeof optionsOrCb !== "object")
285
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
286
- this.send(command, optionsOrCb || {}, cb);
287
- }
288
- else {
289
- return this.send(command, optionsOrCb);
290
- }
291
- }
292
- batchDeletePhoneNumber(args, optionsOrCb, cb) {
293
- const command = new BatchDeletePhoneNumberCommand(args);
294
- if (typeof optionsOrCb === "function") {
295
- this.send(command, optionsOrCb);
296
- }
297
- else if (typeof cb === "function") {
298
- if (typeof optionsOrCb !== "object")
299
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
300
- this.send(command, optionsOrCb || {}, cb);
301
- }
302
- else {
303
- return this.send(command, optionsOrCb);
304
- }
305
- }
306
- batchSuspendUser(args, optionsOrCb, cb) {
307
- const command = new BatchSuspendUserCommand(args);
308
- if (typeof optionsOrCb === "function") {
309
- this.send(command, optionsOrCb);
310
- }
311
- else if (typeof cb === "function") {
312
- if (typeof optionsOrCb !== "object")
313
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
314
- this.send(command, optionsOrCb || {}, cb);
315
- }
316
- else {
317
- return this.send(command, optionsOrCb);
318
- }
319
- }
320
- batchUnsuspendUser(args, optionsOrCb, cb) {
321
- const command = new BatchUnsuspendUserCommand(args);
322
- if (typeof optionsOrCb === "function") {
323
- this.send(command, optionsOrCb);
324
- }
325
- else if (typeof cb === "function") {
326
- if (typeof optionsOrCb !== "object")
327
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
328
- this.send(command, optionsOrCb || {}, cb);
329
- }
330
- else {
331
- return this.send(command, optionsOrCb);
332
- }
333
- }
334
- batchUpdatePhoneNumber(args, optionsOrCb, cb) {
335
- const command = new BatchUpdatePhoneNumberCommand(args);
336
- if (typeof optionsOrCb === "function") {
337
- this.send(command, optionsOrCb);
338
- }
339
- else if (typeof cb === "function") {
340
- if (typeof optionsOrCb !== "object")
341
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
342
- this.send(command, optionsOrCb || {}, cb);
343
- }
344
- else {
345
- return this.send(command, optionsOrCb);
346
- }
347
- }
348
- batchUpdateUser(args, optionsOrCb, cb) {
349
- const command = new BatchUpdateUserCommand(args);
350
- if (typeof optionsOrCb === "function") {
351
- this.send(command, optionsOrCb);
352
- }
353
- else if (typeof cb === "function") {
354
- if (typeof optionsOrCb !== "object")
355
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
356
- this.send(command, optionsOrCb || {}, cb);
357
- }
358
- else {
359
- return this.send(command, optionsOrCb);
360
- }
361
- }
362
- createAccount(args, optionsOrCb, cb) {
363
- const command = new CreateAccountCommand(args);
364
- if (typeof optionsOrCb === "function") {
365
- this.send(command, optionsOrCb);
366
- }
367
- else if (typeof cb === "function") {
368
- if (typeof optionsOrCb !== "object")
369
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
370
- this.send(command, optionsOrCb || {}, cb);
371
- }
372
- else {
373
- return this.send(command, optionsOrCb);
374
- }
375
- }
376
- createAppInstance(args, optionsOrCb, cb) {
377
- const command = new CreateAppInstanceCommand(args);
378
- if (typeof optionsOrCb === "function") {
379
- this.send(command, optionsOrCb);
380
- }
381
- else if (typeof cb === "function") {
382
- if (typeof optionsOrCb !== "object")
383
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
384
- this.send(command, optionsOrCb || {}, cb);
385
- }
386
- else {
387
- return this.send(command, optionsOrCb);
388
- }
389
- }
390
- createAppInstanceAdmin(args, optionsOrCb, cb) {
391
- const command = new CreateAppInstanceAdminCommand(args);
392
- if (typeof optionsOrCb === "function") {
393
- this.send(command, optionsOrCb);
394
- }
395
- else if (typeof cb === "function") {
396
- if (typeof optionsOrCb !== "object")
397
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
398
- this.send(command, optionsOrCb || {}, cb);
399
- }
400
- else {
401
- return this.send(command, optionsOrCb);
402
- }
403
- }
404
- createAppInstanceUser(args, optionsOrCb, cb) {
405
- const command = new CreateAppInstanceUserCommand(args);
406
- if (typeof optionsOrCb === "function") {
407
- this.send(command, optionsOrCb);
408
- }
409
- else if (typeof cb === "function") {
410
- if (typeof optionsOrCb !== "object")
411
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
412
- this.send(command, optionsOrCb || {}, cb);
413
- }
414
- else {
415
- return this.send(command, optionsOrCb);
416
- }
417
- }
418
- createAttendee(args, optionsOrCb, cb) {
419
- const command = new CreateAttendeeCommand(args);
420
- if (typeof optionsOrCb === "function") {
421
- this.send(command, optionsOrCb);
422
- }
423
- else if (typeof cb === "function") {
424
- if (typeof optionsOrCb !== "object")
425
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
426
- this.send(command, optionsOrCb || {}, cb);
427
- }
428
- else {
429
- return this.send(command, optionsOrCb);
430
- }
431
- }
432
- createBot(args, optionsOrCb, cb) {
433
- const command = new CreateBotCommand(args);
434
- if (typeof optionsOrCb === "function") {
435
- this.send(command, optionsOrCb);
436
- }
437
- else if (typeof cb === "function") {
438
- if (typeof optionsOrCb !== "object")
439
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
440
- this.send(command, optionsOrCb || {}, cb);
441
- }
442
- else {
443
- return this.send(command, optionsOrCb);
444
- }
445
- }
446
- createChannel(args, optionsOrCb, cb) {
447
- const command = new CreateChannelCommand(args);
448
- if (typeof optionsOrCb === "function") {
449
- this.send(command, optionsOrCb);
450
- }
451
- else if (typeof cb === "function") {
452
- if (typeof optionsOrCb !== "object")
453
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
454
- this.send(command, optionsOrCb || {}, cb);
455
- }
456
- else {
457
- return this.send(command, optionsOrCb);
458
- }
459
- }
460
- createChannelBan(args, optionsOrCb, cb) {
461
- const command = new CreateChannelBanCommand(args);
462
- if (typeof optionsOrCb === "function") {
463
- this.send(command, optionsOrCb);
464
- }
465
- else if (typeof cb === "function") {
466
- if (typeof optionsOrCb !== "object")
467
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
468
- this.send(command, optionsOrCb || {}, cb);
469
- }
470
- else {
471
- return this.send(command, optionsOrCb);
472
- }
473
- }
474
- createChannelMembership(args, optionsOrCb, cb) {
475
- const command = new CreateChannelMembershipCommand(args);
476
- if (typeof optionsOrCb === "function") {
477
- this.send(command, optionsOrCb);
478
- }
479
- else if (typeof cb === "function") {
480
- if (typeof optionsOrCb !== "object")
481
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
482
- this.send(command, optionsOrCb || {}, cb);
483
- }
484
- else {
485
- return this.send(command, optionsOrCb);
486
- }
487
- }
488
- createChannelModerator(args, optionsOrCb, cb) {
489
- const command = new CreateChannelModeratorCommand(args);
490
- if (typeof optionsOrCb === "function") {
491
- this.send(command, optionsOrCb);
492
- }
493
- else if (typeof cb === "function") {
494
- if (typeof optionsOrCb !== "object")
495
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
496
- this.send(command, optionsOrCb || {}, cb);
497
- }
498
- else {
499
- return this.send(command, optionsOrCb);
500
- }
501
- }
502
- createMediaCapturePipeline(args, optionsOrCb, cb) {
503
- const command = new CreateMediaCapturePipelineCommand(args);
504
- if (typeof optionsOrCb === "function") {
505
- this.send(command, optionsOrCb);
506
- }
507
- else if (typeof cb === "function") {
508
- if (typeof optionsOrCb !== "object")
509
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
510
- this.send(command, optionsOrCb || {}, cb);
511
- }
512
- else {
513
- return this.send(command, optionsOrCb);
514
- }
515
- }
516
- createMeeting(args, optionsOrCb, cb) {
517
- const command = new CreateMeetingCommand(args);
518
- if (typeof optionsOrCb === "function") {
519
- this.send(command, optionsOrCb);
520
- }
521
- else if (typeof cb === "function") {
522
- if (typeof optionsOrCb !== "object")
523
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
524
- this.send(command, optionsOrCb || {}, cb);
525
- }
526
- else {
527
- return this.send(command, optionsOrCb);
528
- }
529
- }
530
- createMeetingDialOut(args, optionsOrCb, cb) {
531
- const command = new CreateMeetingDialOutCommand(args);
532
- if (typeof optionsOrCb === "function") {
533
- this.send(command, optionsOrCb);
534
- }
535
- else if (typeof cb === "function") {
536
- if (typeof optionsOrCb !== "object")
537
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
538
- this.send(command, optionsOrCb || {}, cb);
539
- }
540
- else {
541
- return this.send(command, optionsOrCb);
542
- }
543
- }
544
- createMeetingWithAttendees(args, optionsOrCb, cb) {
545
- const command = new CreateMeetingWithAttendeesCommand(args);
546
- if (typeof optionsOrCb === "function") {
547
- this.send(command, optionsOrCb);
548
- }
549
- else if (typeof cb === "function") {
550
- if (typeof optionsOrCb !== "object")
551
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
552
- this.send(command, optionsOrCb || {}, cb);
553
- }
554
- else {
555
- return this.send(command, optionsOrCb);
556
- }
557
- }
558
- createPhoneNumberOrder(args, optionsOrCb, cb) {
559
- const command = new CreatePhoneNumberOrderCommand(args);
560
- if (typeof optionsOrCb === "function") {
561
- this.send(command, optionsOrCb);
562
- }
563
- else if (typeof cb === "function") {
564
- if (typeof optionsOrCb !== "object")
565
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
566
- this.send(command, optionsOrCb || {}, cb);
567
- }
568
- else {
569
- return this.send(command, optionsOrCb);
570
- }
571
- }
572
- createProxySession(args, optionsOrCb, cb) {
573
- const command = new CreateProxySessionCommand(args);
574
- if (typeof optionsOrCb === "function") {
575
- this.send(command, optionsOrCb);
576
- }
577
- else if (typeof cb === "function") {
578
- if (typeof optionsOrCb !== "object")
579
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
580
- this.send(command, optionsOrCb || {}, cb);
581
- }
582
- else {
583
- return this.send(command, optionsOrCb);
584
- }
585
- }
586
- createRoom(args, optionsOrCb, cb) {
587
- const command = new CreateRoomCommand(args);
588
- if (typeof optionsOrCb === "function") {
589
- this.send(command, optionsOrCb);
590
- }
591
- else if (typeof cb === "function") {
592
- if (typeof optionsOrCb !== "object")
593
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
594
- this.send(command, optionsOrCb || {}, cb);
595
- }
596
- else {
597
- return this.send(command, optionsOrCb);
598
- }
599
- }
600
- createRoomMembership(args, optionsOrCb, cb) {
601
- const command = new CreateRoomMembershipCommand(args);
602
- if (typeof optionsOrCb === "function") {
603
- this.send(command, optionsOrCb);
604
- }
605
- else if (typeof cb === "function") {
606
- if (typeof optionsOrCb !== "object")
607
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
608
- this.send(command, optionsOrCb || {}, cb);
609
- }
610
- else {
611
- return this.send(command, optionsOrCb);
612
- }
613
- }
614
- createSipMediaApplication(args, optionsOrCb, cb) {
615
- const command = new CreateSipMediaApplicationCommand(args);
616
- if (typeof optionsOrCb === "function") {
617
- this.send(command, optionsOrCb);
618
- }
619
- else if (typeof cb === "function") {
620
- if (typeof optionsOrCb !== "object")
621
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
622
- this.send(command, optionsOrCb || {}, cb);
623
- }
624
- else {
625
- return this.send(command, optionsOrCb);
626
- }
627
- }
628
- createSipMediaApplicationCall(args, optionsOrCb, cb) {
629
- const command = new CreateSipMediaApplicationCallCommand(args);
630
- if (typeof optionsOrCb === "function") {
631
- this.send(command, optionsOrCb);
632
- }
633
- else if (typeof cb === "function") {
634
- if (typeof optionsOrCb !== "object")
635
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
636
- this.send(command, optionsOrCb || {}, cb);
637
- }
638
- else {
639
- return this.send(command, optionsOrCb);
640
- }
641
- }
642
- createSipRule(args, optionsOrCb, cb) {
643
- const command = new CreateSipRuleCommand(args);
644
- if (typeof optionsOrCb === "function") {
645
- this.send(command, optionsOrCb);
646
- }
647
- else if (typeof cb === "function") {
648
- if (typeof optionsOrCb !== "object")
649
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
650
- this.send(command, optionsOrCb || {}, cb);
651
- }
652
- else {
653
- return this.send(command, optionsOrCb);
654
- }
655
- }
656
- createUser(args, optionsOrCb, cb) {
657
- const command = new CreateUserCommand(args);
658
- if (typeof optionsOrCb === "function") {
659
- this.send(command, optionsOrCb);
660
- }
661
- else if (typeof cb === "function") {
662
- if (typeof optionsOrCb !== "object")
663
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
664
- this.send(command, optionsOrCb || {}, cb);
665
- }
666
- else {
667
- return this.send(command, optionsOrCb);
668
- }
669
- }
670
- createVoiceConnector(args, optionsOrCb, cb) {
671
- const command = new CreateVoiceConnectorCommand(args);
672
- if (typeof optionsOrCb === "function") {
673
- this.send(command, optionsOrCb);
674
- }
675
- else if (typeof cb === "function") {
676
- if (typeof optionsOrCb !== "object")
677
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
678
- this.send(command, optionsOrCb || {}, cb);
679
- }
680
- else {
681
- return this.send(command, optionsOrCb);
682
- }
683
- }
684
- createVoiceConnectorGroup(args, optionsOrCb, cb) {
685
- const command = new CreateVoiceConnectorGroupCommand(args);
686
- if (typeof optionsOrCb === "function") {
687
- this.send(command, optionsOrCb);
688
- }
689
- else if (typeof cb === "function") {
690
- if (typeof optionsOrCb !== "object")
691
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
692
- this.send(command, optionsOrCb || {}, cb);
693
- }
694
- else {
695
- return this.send(command, optionsOrCb);
696
- }
697
- }
698
- deleteAccount(args, optionsOrCb, cb) {
699
- const command = new DeleteAccountCommand(args);
700
- if (typeof optionsOrCb === "function") {
701
- this.send(command, optionsOrCb);
702
- }
703
- else if (typeof cb === "function") {
704
- if (typeof optionsOrCb !== "object")
705
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
706
- this.send(command, optionsOrCb || {}, cb);
707
- }
708
- else {
709
- return this.send(command, optionsOrCb);
710
- }
711
- }
712
- deleteAppInstance(args, optionsOrCb, cb) {
713
- const command = new DeleteAppInstanceCommand(args);
714
- if (typeof optionsOrCb === "function") {
715
- this.send(command, optionsOrCb);
716
- }
717
- else if (typeof cb === "function") {
718
- if (typeof optionsOrCb !== "object")
719
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
720
- this.send(command, optionsOrCb || {}, cb);
721
- }
722
- else {
723
- return this.send(command, optionsOrCb);
724
- }
725
- }
726
- deleteAppInstanceAdmin(args, optionsOrCb, cb) {
727
- const command = new DeleteAppInstanceAdminCommand(args);
728
- if (typeof optionsOrCb === "function") {
729
- this.send(command, optionsOrCb);
730
- }
731
- else if (typeof cb === "function") {
732
- if (typeof optionsOrCb !== "object")
733
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
734
- this.send(command, optionsOrCb || {}, cb);
735
- }
736
- else {
737
- return this.send(command, optionsOrCb);
738
- }
739
- }
740
- deleteAppInstanceStreamingConfigurations(args, optionsOrCb, cb) {
741
- const command = new DeleteAppInstanceStreamingConfigurationsCommand(args);
742
- if (typeof optionsOrCb === "function") {
743
- this.send(command, optionsOrCb);
744
- }
745
- else if (typeof cb === "function") {
746
- if (typeof optionsOrCb !== "object")
747
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
748
- this.send(command, optionsOrCb || {}, cb);
749
- }
750
- else {
751
- return this.send(command, optionsOrCb);
752
- }
753
- }
754
- deleteAppInstanceUser(args, optionsOrCb, cb) {
755
- const command = new DeleteAppInstanceUserCommand(args);
756
- if (typeof optionsOrCb === "function") {
757
- this.send(command, optionsOrCb);
758
- }
759
- else if (typeof cb === "function") {
760
- if (typeof optionsOrCb !== "object")
761
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
762
- this.send(command, optionsOrCb || {}, cb);
763
- }
764
- else {
765
- return this.send(command, optionsOrCb);
766
- }
767
- }
768
- deleteAttendee(args, optionsOrCb, cb) {
769
- const command = new DeleteAttendeeCommand(args);
770
- if (typeof optionsOrCb === "function") {
771
- this.send(command, optionsOrCb);
772
- }
773
- else if (typeof cb === "function") {
774
- if (typeof optionsOrCb !== "object")
775
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
776
- this.send(command, optionsOrCb || {}, cb);
777
- }
778
- else {
779
- return this.send(command, optionsOrCb);
780
- }
781
- }
782
- deleteChannel(args, optionsOrCb, cb) {
783
- const command = new DeleteChannelCommand(args);
784
- if (typeof optionsOrCb === "function") {
785
- this.send(command, optionsOrCb);
786
- }
787
- else if (typeof cb === "function") {
788
- if (typeof optionsOrCb !== "object")
789
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
790
- this.send(command, optionsOrCb || {}, cb);
791
- }
792
- else {
793
- return this.send(command, optionsOrCb);
794
- }
795
- }
796
- deleteChannelBan(args, optionsOrCb, cb) {
797
- const command = new DeleteChannelBanCommand(args);
798
- if (typeof optionsOrCb === "function") {
799
- this.send(command, optionsOrCb);
800
- }
801
- else if (typeof cb === "function") {
802
- if (typeof optionsOrCb !== "object")
803
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
804
- this.send(command, optionsOrCb || {}, cb);
805
- }
806
- else {
807
- return this.send(command, optionsOrCb);
808
- }
809
- }
810
- deleteChannelMembership(args, optionsOrCb, cb) {
811
- const command = new DeleteChannelMembershipCommand(args);
812
- if (typeof optionsOrCb === "function") {
813
- this.send(command, optionsOrCb);
814
- }
815
- else if (typeof cb === "function") {
816
- if (typeof optionsOrCb !== "object")
817
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
818
- this.send(command, optionsOrCb || {}, cb);
819
- }
820
- else {
821
- return this.send(command, optionsOrCb);
822
- }
823
- }
824
- deleteChannelMessage(args, optionsOrCb, cb) {
825
- const command = new DeleteChannelMessageCommand(args);
826
- if (typeof optionsOrCb === "function") {
827
- this.send(command, optionsOrCb);
828
- }
829
- else if (typeof cb === "function") {
830
- if (typeof optionsOrCb !== "object")
831
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
832
- this.send(command, optionsOrCb || {}, cb);
833
- }
834
- else {
835
- return this.send(command, optionsOrCb);
836
- }
837
- }
838
- deleteChannelModerator(args, optionsOrCb, cb) {
839
- const command = new DeleteChannelModeratorCommand(args);
840
- if (typeof optionsOrCb === "function") {
841
- this.send(command, optionsOrCb);
842
- }
843
- else if (typeof cb === "function") {
844
- if (typeof optionsOrCb !== "object")
845
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
846
- this.send(command, optionsOrCb || {}, cb);
847
- }
848
- else {
849
- return this.send(command, optionsOrCb);
850
- }
851
- }
852
- deleteEventsConfiguration(args, optionsOrCb, cb) {
853
- const command = new DeleteEventsConfigurationCommand(args);
854
- if (typeof optionsOrCb === "function") {
855
- this.send(command, optionsOrCb);
856
- }
857
- else if (typeof cb === "function") {
858
- if (typeof optionsOrCb !== "object")
859
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
860
- this.send(command, optionsOrCb || {}, cb);
861
- }
862
- else {
863
- return this.send(command, optionsOrCb);
864
- }
865
- }
866
- deleteMediaCapturePipeline(args, optionsOrCb, cb) {
867
- const command = new DeleteMediaCapturePipelineCommand(args);
868
- if (typeof optionsOrCb === "function") {
869
- this.send(command, optionsOrCb);
870
- }
871
- else if (typeof cb === "function") {
872
- if (typeof optionsOrCb !== "object")
873
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
874
- this.send(command, optionsOrCb || {}, cb);
875
- }
876
- else {
877
- return this.send(command, optionsOrCb);
878
- }
879
- }
880
- deleteMeeting(args, optionsOrCb, cb) {
881
- const command = new DeleteMeetingCommand(args);
882
- if (typeof optionsOrCb === "function") {
883
- this.send(command, optionsOrCb);
884
- }
885
- else if (typeof cb === "function") {
886
- if (typeof optionsOrCb !== "object")
887
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
888
- this.send(command, optionsOrCb || {}, cb);
889
- }
890
- else {
891
- return this.send(command, optionsOrCb);
892
- }
893
- }
894
- deletePhoneNumber(args, optionsOrCb, cb) {
895
- const command = new DeletePhoneNumberCommand(args);
896
- if (typeof optionsOrCb === "function") {
897
- this.send(command, optionsOrCb);
898
- }
899
- else if (typeof cb === "function") {
900
- if (typeof optionsOrCb !== "object")
901
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
902
- this.send(command, optionsOrCb || {}, cb);
903
- }
904
- else {
905
- return this.send(command, optionsOrCb);
906
- }
907
- }
908
- deleteProxySession(args, optionsOrCb, cb) {
909
- const command = new DeleteProxySessionCommand(args);
910
- if (typeof optionsOrCb === "function") {
911
- this.send(command, optionsOrCb);
912
- }
913
- else if (typeof cb === "function") {
914
- if (typeof optionsOrCb !== "object")
915
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
916
- this.send(command, optionsOrCb || {}, cb);
917
- }
918
- else {
919
- return this.send(command, optionsOrCb);
920
- }
921
- }
922
- deleteRoom(args, optionsOrCb, cb) {
923
- const command = new DeleteRoomCommand(args);
924
- if (typeof optionsOrCb === "function") {
925
- this.send(command, optionsOrCb);
926
- }
927
- else if (typeof cb === "function") {
928
- if (typeof optionsOrCb !== "object")
929
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
930
- this.send(command, optionsOrCb || {}, cb);
931
- }
932
- else {
933
- return this.send(command, optionsOrCb);
934
- }
935
- }
936
- deleteRoomMembership(args, optionsOrCb, cb) {
937
- const command = new DeleteRoomMembershipCommand(args);
938
- if (typeof optionsOrCb === "function") {
939
- this.send(command, optionsOrCb);
940
- }
941
- else if (typeof cb === "function") {
942
- if (typeof optionsOrCb !== "object")
943
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
944
- this.send(command, optionsOrCb || {}, cb);
945
- }
946
- else {
947
- return this.send(command, optionsOrCb);
948
- }
949
- }
950
- deleteSipMediaApplication(args, optionsOrCb, cb) {
951
- const command = new DeleteSipMediaApplicationCommand(args);
952
- if (typeof optionsOrCb === "function") {
953
- this.send(command, optionsOrCb);
954
- }
955
- else if (typeof cb === "function") {
956
- if (typeof optionsOrCb !== "object")
957
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
958
- this.send(command, optionsOrCb || {}, cb);
959
- }
960
- else {
961
- return this.send(command, optionsOrCb);
962
- }
963
- }
964
- deleteSipRule(args, optionsOrCb, cb) {
965
- const command = new DeleteSipRuleCommand(args);
966
- if (typeof optionsOrCb === "function") {
967
- this.send(command, optionsOrCb);
968
- }
969
- else if (typeof cb === "function") {
970
- if (typeof optionsOrCb !== "object")
971
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
972
- this.send(command, optionsOrCb || {}, cb);
973
- }
974
- else {
975
- return this.send(command, optionsOrCb);
976
- }
977
- }
978
- deleteVoiceConnector(args, optionsOrCb, cb) {
979
- const command = new DeleteVoiceConnectorCommand(args);
980
- if (typeof optionsOrCb === "function") {
981
- this.send(command, optionsOrCb);
982
- }
983
- else if (typeof cb === "function") {
984
- if (typeof optionsOrCb !== "object")
985
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
986
- this.send(command, optionsOrCb || {}, cb);
987
- }
988
- else {
989
- return this.send(command, optionsOrCb);
990
- }
991
- }
992
- deleteVoiceConnectorEmergencyCallingConfiguration(args, optionsOrCb, cb) {
993
- const command = new DeleteVoiceConnectorEmergencyCallingConfigurationCommand(args);
994
- if (typeof optionsOrCb === "function") {
995
- this.send(command, optionsOrCb);
996
- }
997
- else if (typeof cb === "function") {
998
- if (typeof optionsOrCb !== "object")
999
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
1000
- this.send(command, optionsOrCb || {}, cb);
1001
- }
1002
- else {
1003
- return this.send(command, optionsOrCb);
1004
- }
1005
- }
1006
- deleteVoiceConnectorGroup(args, optionsOrCb, cb) {
1007
- const command = new DeleteVoiceConnectorGroupCommand(args);
1008
- if (typeof optionsOrCb === "function") {
1009
- this.send(command, optionsOrCb);
1010
- }
1011
- else if (typeof cb === "function") {
1012
- if (typeof optionsOrCb !== "object")
1013
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
1014
- this.send(command, optionsOrCb || {}, cb);
1015
- }
1016
- else {
1017
- return this.send(command, optionsOrCb);
1018
- }
1019
- }
1020
- deleteVoiceConnectorOrigination(args, optionsOrCb, cb) {
1021
- const command = new DeleteVoiceConnectorOriginationCommand(args);
1022
- if (typeof optionsOrCb === "function") {
1023
- this.send(command, optionsOrCb);
1024
- }
1025
- else if (typeof cb === "function") {
1026
- if (typeof optionsOrCb !== "object")
1027
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
1028
- this.send(command, optionsOrCb || {}, cb);
1029
- }
1030
- else {
1031
- return this.send(command, optionsOrCb);
1032
- }
1033
- }
1034
- deleteVoiceConnectorProxy(args, optionsOrCb, cb) {
1035
- const command = new DeleteVoiceConnectorProxyCommand(args);
1036
- if (typeof optionsOrCb === "function") {
1037
- this.send(command, optionsOrCb);
1038
- }
1039
- else if (typeof cb === "function") {
1040
- if (typeof optionsOrCb !== "object")
1041
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
1042
- this.send(command, optionsOrCb || {}, cb);
1043
- }
1044
- else {
1045
- return this.send(command, optionsOrCb);
1046
- }
1047
- }
1048
- deleteVoiceConnectorStreamingConfiguration(args, optionsOrCb, cb) {
1049
- const command = new DeleteVoiceConnectorStreamingConfigurationCommand(args);
1050
- if (typeof optionsOrCb === "function") {
1051
- this.send(command, optionsOrCb);
1052
- }
1053
- else if (typeof cb === "function") {
1054
- if (typeof optionsOrCb !== "object")
1055
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
1056
- this.send(command, optionsOrCb || {}, cb);
1057
- }
1058
- else {
1059
- return this.send(command, optionsOrCb);
1060
- }
1061
- }
1062
- deleteVoiceConnectorTermination(args, optionsOrCb, cb) {
1063
- const command = new DeleteVoiceConnectorTerminationCommand(args);
1064
- if (typeof optionsOrCb === "function") {
1065
- this.send(command, optionsOrCb);
1066
- }
1067
- else if (typeof cb === "function") {
1068
- if (typeof optionsOrCb !== "object")
1069
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
1070
- this.send(command, optionsOrCb || {}, cb);
1071
- }
1072
- else {
1073
- return this.send(command, optionsOrCb);
1074
- }
1075
- }
1076
- deleteVoiceConnectorTerminationCredentials(args, optionsOrCb, cb) {
1077
- const command = new DeleteVoiceConnectorTerminationCredentialsCommand(args);
1078
- if (typeof optionsOrCb === "function") {
1079
- this.send(command, optionsOrCb);
1080
- }
1081
- else if (typeof cb === "function") {
1082
- if (typeof optionsOrCb !== "object")
1083
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
1084
- this.send(command, optionsOrCb || {}, cb);
1085
- }
1086
- else {
1087
- return this.send(command, optionsOrCb);
1088
- }
1089
- }
1090
- describeAppInstance(args, optionsOrCb, cb) {
1091
- const command = new DescribeAppInstanceCommand(args);
1092
- if (typeof optionsOrCb === "function") {
1093
- this.send(command, optionsOrCb);
1094
- }
1095
- else if (typeof cb === "function") {
1096
- if (typeof optionsOrCb !== "object")
1097
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
1098
- this.send(command, optionsOrCb || {}, cb);
1099
- }
1100
- else {
1101
- return this.send(command, optionsOrCb);
1102
- }
1103
- }
1104
- describeAppInstanceAdmin(args, optionsOrCb, cb) {
1105
- const command = new DescribeAppInstanceAdminCommand(args);
1106
- if (typeof optionsOrCb === "function") {
1107
- this.send(command, optionsOrCb);
1108
- }
1109
- else if (typeof cb === "function") {
1110
- if (typeof optionsOrCb !== "object")
1111
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
1112
- this.send(command, optionsOrCb || {}, cb);
1113
- }
1114
- else {
1115
- return this.send(command, optionsOrCb);
1116
- }
1117
- }
1118
- describeAppInstanceUser(args, optionsOrCb, cb) {
1119
- const command = new DescribeAppInstanceUserCommand(args);
1120
- if (typeof optionsOrCb === "function") {
1121
- this.send(command, optionsOrCb);
1122
- }
1123
- else if (typeof cb === "function") {
1124
- if (typeof optionsOrCb !== "object")
1125
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
1126
- this.send(command, optionsOrCb || {}, cb);
1127
- }
1128
- else {
1129
- return this.send(command, optionsOrCb);
1130
- }
1131
- }
1132
- describeChannel(args, optionsOrCb, cb) {
1133
- const command = new DescribeChannelCommand(args);
1134
- if (typeof optionsOrCb === "function") {
1135
- this.send(command, optionsOrCb);
1136
- }
1137
- else if (typeof cb === "function") {
1138
- if (typeof optionsOrCb !== "object")
1139
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
1140
- this.send(command, optionsOrCb || {}, cb);
1141
- }
1142
- else {
1143
- return this.send(command, optionsOrCb);
1144
- }
1145
- }
1146
- describeChannelBan(args, optionsOrCb, cb) {
1147
- const command = new DescribeChannelBanCommand(args);
1148
- if (typeof optionsOrCb === "function") {
1149
- this.send(command, optionsOrCb);
1150
- }
1151
- else if (typeof cb === "function") {
1152
- if (typeof optionsOrCb !== "object")
1153
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
1154
- this.send(command, optionsOrCb || {}, cb);
1155
- }
1156
- else {
1157
- return this.send(command, optionsOrCb);
1158
- }
1159
- }
1160
- describeChannelMembership(args, optionsOrCb, cb) {
1161
- const command = new DescribeChannelMembershipCommand(args);
1162
- if (typeof optionsOrCb === "function") {
1163
- this.send(command, optionsOrCb);
1164
- }
1165
- else if (typeof cb === "function") {
1166
- if (typeof optionsOrCb !== "object")
1167
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
1168
- this.send(command, optionsOrCb || {}, cb);
1169
- }
1170
- else {
1171
- return this.send(command, optionsOrCb);
1172
- }
1173
- }
1174
- describeChannelMembershipForAppInstanceUser(args, optionsOrCb, cb) {
1175
- const command = new DescribeChannelMembershipForAppInstanceUserCommand(args);
1176
- if (typeof optionsOrCb === "function") {
1177
- this.send(command, optionsOrCb);
1178
- }
1179
- else if (typeof cb === "function") {
1180
- if (typeof optionsOrCb !== "object")
1181
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
1182
- this.send(command, optionsOrCb || {}, cb);
1183
- }
1184
- else {
1185
- return this.send(command, optionsOrCb);
1186
- }
1187
- }
1188
- describeChannelModeratedByAppInstanceUser(args, optionsOrCb, cb) {
1189
- const command = new DescribeChannelModeratedByAppInstanceUserCommand(args);
1190
- if (typeof optionsOrCb === "function") {
1191
- this.send(command, optionsOrCb);
1192
- }
1193
- else if (typeof cb === "function") {
1194
- if (typeof optionsOrCb !== "object")
1195
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
1196
- this.send(command, optionsOrCb || {}, cb);
1197
- }
1198
- else {
1199
- return this.send(command, optionsOrCb);
1200
- }
1201
- }
1202
- describeChannelModerator(args, optionsOrCb, cb) {
1203
- const command = new DescribeChannelModeratorCommand(args);
1204
- if (typeof optionsOrCb === "function") {
1205
- this.send(command, optionsOrCb);
1206
- }
1207
- else if (typeof cb === "function") {
1208
- if (typeof optionsOrCb !== "object")
1209
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
1210
- this.send(command, optionsOrCb || {}, cb);
1211
- }
1212
- else {
1213
- return this.send(command, optionsOrCb);
1214
- }
1215
- }
1216
- disassociatePhoneNumberFromUser(args, optionsOrCb, cb) {
1217
- const command = new DisassociatePhoneNumberFromUserCommand(args);
1218
- if (typeof optionsOrCb === "function") {
1219
- this.send(command, optionsOrCb);
1220
- }
1221
- else if (typeof cb === "function") {
1222
- if (typeof optionsOrCb !== "object")
1223
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
1224
- this.send(command, optionsOrCb || {}, cb);
1225
- }
1226
- else {
1227
- return this.send(command, optionsOrCb);
1228
- }
1229
- }
1230
- disassociatePhoneNumbersFromVoiceConnector(args, optionsOrCb, cb) {
1231
- const command = new DisassociatePhoneNumbersFromVoiceConnectorCommand(args);
1232
- if (typeof optionsOrCb === "function") {
1233
- this.send(command, optionsOrCb);
1234
- }
1235
- else if (typeof cb === "function") {
1236
- if (typeof optionsOrCb !== "object")
1237
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
1238
- this.send(command, optionsOrCb || {}, cb);
1239
- }
1240
- else {
1241
- return this.send(command, optionsOrCb);
1242
- }
1243
- }
1244
- disassociatePhoneNumbersFromVoiceConnectorGroup(args, optionsOrCb, cb) {
1245
- const command = new DisassociatePhoneNumbersFromVoiceConnectorGroupCommand(args);
1246
- if (typeof optionsOrCb === "function") {
1247
- this.send(command, optionsOrCb);
1248
- }
1249
- else if (typeof cb === "function") {
1250
- if (typeof optionsOrCb !== "object")
1251
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
1252
- this.send(command, optionsOrCb || {}, cb);
1253
- }
1254
- else {
1255
- return this.send(command, optionsOrCb);
1256
- }
1257
- }
1258
- disassociateSigninDelegateGroupsFromAccount(args, optionsOrCb, cb) {
1259
- const command = new DisassociateSigninDelegateGroupsFromAccountCommand(args);
1260
- if (typeof optionsOrCb === "function") {
1261
- this.send(command, optionsOrCb);
1262
- }
1263
- else if (typeof cb === "function") {
1264
- if (typeof optionsOrCb !== "object")
1265
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
1266
- this.send(command, optionsOrCb || {}, cb);
1267
- }
1268
- else {
1269
- return this.send(command, optionsOrCb);
1270
- }
1271
- }
1272
- getAccount(args, optionsOrCb, cb) {
1273
- const command = new GetAccountCommand(args);
1274
- if (typeof optionsOrCb === "function") {
1275
- this.send(command, optionsOrCb);
1276
- }
1277
- else if (typeof cb === "function") {
1278
- if (typeof optionsOrCb !== "object")
1279
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
1280
- this.send(command, optionsOrCb || {}, cb);
1281
- }
1282
- else {
1283
- return this.send(command, optionsOrCb);
1284
- }
1285
- }
1286
- getAccountSettings(args, optionsOrCb, cb) {
1287
- const command = new GetAccountSettingsCommand(args);
1288
- if (typeof optionsOrCb === "function") {
1289
- this.send(command, optionsOrCb);
1290
- }
1291
- else if (typeof cb === "function") {
1292
- if (typeof optionsOrCb !== "object")
1293
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
1294
- this.send(command, optionsOrCb || {}, cb);
1295
- }
1296
- else {
1297
- return this.send(command, optionsOrCb);
1298
- }
1299
- }
1300
- getAppInstanceRetentionSettings(args, optionsOrCb, cb) {
1301
- const command = new GetAppInstanceRetentionSettingsCommand(args);
1302
- if (typeof optionsOrCb === "function") {
1303
- this.send(command, optionsOrCb);
1304
- }
1305
- else if (typeof cb === "function") {
1306
- if (typeof optionsOrCb !== "object")
1307
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
1308
- this.send(command, optionsOrCb || {}, cb);
1309
- }
1310
- else {
1311
- return this.send(command, optionsOrCb);
1312
- }
1313
- }
1314
- getAppInstanceStreamingConfigurations(args, optionsOrCb, cb) {
1315
- const command = new GetAppInstanceStreamingConfigurationsCommand(args);
1316
- if (typeof optionsOrCb === "function") {
1317
- this.send(command, optionsOrCb);
1318
- }
1319
- else if (typeof cb === "function") {
1320
- if (typeof optionsOrCb !== "object")
1321
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
1322
- this.send(command, optionsOrCb || {}, cb);
1323
- }
1324
- else {
1325
- return this.send(command, optionsOrCb);
1326
- }
1327
- }
1328
- getAttendee(args, optionsOrCb, cb) {
1329
- const command = new GetAttendeeCommand(args);
1330
- if (typeof optionsOrCb === "function") {
1331
- this.send(command, optionsOrCb);
1332
- }
1333
- else if (typeof cb === "function") {
1334
- if (typeof optionsOrCb !== "object")
1335
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
1336
- this.send(command, optionsOrCb || {}, cb);
1337
- }
1338
- else {
1339
- return this.send(command, optionsOrCb);
1340
- }
1341
- }
1342
- getBot(args, optionsOrCb, cb) {
1343
- const command = new GetBotCommand(args);
1344
- if (typeof optionsOrCb === "function") {
1345
- this.send(command, optionsOrCb);
1346
- }
1347
- else if (typeof cb === "function") {
1348
- if (typeof optionsOrCb !== "object")
1349
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
1350
- this.send(command, optionsOrCb || {}, cb);
1351
- }
1352
- else {
1353
- return this.send(command, optionsOrCb);
1354
- }
1355
- }
1356
- getChannelMessage(args, optionsOrCb, cb) {
1357
- const command = new GetChannelMessageCommand(args);
1358
- if (typeof optionsOrCb === "function") {
1359
- this.send(command, optionsOrCb);
1360
- }
1361
- else if (typeof cb === "function") {
1362
- if (typeof optionsOrCb !== "object")
1363
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
1364
- this.send(command, optionsOrCb || {}, cb);
1365
- }
1366
- else {
1367
- return this.send(command, optionsOrCb);
1368
- }
1369
- }
1370
- getEventsConfiguration(args, optionsOrCb, cb) {
1371
- const command = new GetEventsConfigurationCommand(args);
1372
- if (typeof optionsOrCb === "function") {
1373
- this.send(command, optionsOrCb);
1374
- }
1375
- else if (typeof cb === "function") {
1376
- if (typeof optionsOrCb !== "object")
1377
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
1378
- this.send(command, optionsOrCb || {}, cb);
1379
- }
1380
- else {
1381
- return this.send(command, optionsOrCb);
1382
- }
1383
- }
1384
- getGlobalSettings(args, optionsOrCb, cb) {
1385
- const command = new GetGlobalSettingsCommand(args);
1386
- if (typeof optionsOrCb === "function") {
1387
- this.send(command, optionsOrCb);
1388
- }
1389
- else if (typeof cb === "function") {
1390
- if (typeof optionsOrCb !== "object")
1391
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
1392
- this.send(command, optionsOrCb || {}, cb);
1393
- }
1394
- else {
1395
- return this.send(command, optionsOrCb);
1396
- }
1397
- }
1398
- getMediaCapturePipeline(args, optionsOrCb, cb) {
1399
- const command = new GetMediaCapturePipelineCommand(args);
1400
- if (typeof optionsOrCb === "function") {
1401
- this.send(command, optionsOrCb);
1402
- }
1403
- else if (typeof cb === "function") {
1404
- if (typeof optionsOrCb !== "object")
1405
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
1406
- this.send(command, optionsOrCb || {}, cb);
1407
- }
1408
- else {
1409
- return this.send(command, optionsOrCb);
1410
- }
1411
- }
1412
- getMeeting(args, optionsOrCb, cb) {
1413
- const command = new GetMeetingCommand(args);
1414
- if (typeof optionsOrCb === "function") {
1415
- this.send(command, optionsOrCb);
1416
- }
1417
- else if (typeof cb === "function") {
1418
- if (typeof optionsOrCb !== "object")
1419
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
1420
- this.send(command, optionsOrCb || {}, cb);
1421
- }
1422
- else {
1423
- return this.send(command, optionsOrCb);
1424
- }
1425
- }
1426
- getMessagingSessionEndpoint(args, optionsOrCb, cb) {
1427
- const command = new GetMessagingSessionEndpointCommand(args);
1428
- if (typeof optionsOrCb === "function") {
1429
- this.send(command, optionsOrCb);
1430
- }
1431
- else if (typeof cb === "function") {
1432
- if (typeof optionsOrCb !== "object")
1433
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
1434
- this.send(command, optionsOrCb || {}, cb);
1435
- }
1436
- else {
1437
- return this.send(command, optionsOrCb);
1438
- }
1439
- }
1440
- getPhoneNumber(args, optionsOrCb, cb) {
1441
- const command = new GetPhoneNumberCommand(args);
1442
- if (typeof optionsOrCb === "function") {
1443
- this.send(command, optionsOrCb);
1444
- }
1445
- else if (typeof cb === "function") {
1446
- if (typeof optionsOrCb !== "object")
1447
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
1448
- this.send(command, optionsOrCb || {}, cb);
1449
- }
1450
- else {
1451
- return this.send(command, optionsOrCb);
1452
- }
1453
- }
1454
- getPhoneNumberOrder(args, optionsOrCb, cb) {
1455
- const command = new GetPhoneNumberOrderCommand(args);
1456
- if (typeof optionsOrCb === "function") {
1457
- this.send(command, optionsOrCb);
1458
- }
1459
- else if (typeof cb === "function") {
1460
- if (typeof optionsOrCb !== "object")
1461
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
1462
- this.send(command, optionsOrCb || {}, cb);
1463
- }
1464
- else {
1465
- return this.send(command, optionsOrCb);
1466
- }
1467
- }
1468
- getPhoneNumberSettings(args, optionsOrCb, cb) {
1469
- const command = new GetPhoneNumberSettingsCommand(args);
1470
- if (typeof optionsOrCb === "function") {
1471
- this.send(command, optionsOrCb);
1472
- }
1473
- else if (typeof cb === "function") {
1474
- if (typeof optionsOrCb !== "object")
1475
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
1476
- this.send(command, optionsOrCb || {}, cb);
1477
- }
1478
- else {
1479
- return this.send(command, optionsOrCb);
1480
- }
1481
- }
1482
- getProxySession(args, optionsOrCb, cb) {
1483
- const command = new GetProxySessionCommand(args);
1484
- if (typeof optionsOrCb === "function") {
1485
- this.send(command, optionsOrCb);
1486
- }
1487
- else if (typeof cb === "function") {
1488
- if (typeof optionsOrCb !== "object")
1489
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
1490
- this.send(command, optionsOrCb || {}, cb);
1491
- }
1492
- else {
1493
- return this.send(command, optionsOrCb);
1494
- }
1495
- }
1496
- getRetentionSettings(args, optionsOrCb, cb) {
1497
- const command = new GetRetentionSettingsCommand(args);
1498
- if (typeof optionsOrCb === "function") {
1499
- this.send(command, optionsOrCb);
1500
- }
1501
- else if (typeof cb === "function") {
1502
- if (typeof optionsOrCb !== "object")
1503
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
1504
- this.send(command, optionsOrCb || {}, cb);
1505
- }
1506
- else {
1507
- return this.send(command, optionsOrCb);
1508
- }
1509
- }
1510
- getRoom(args, optionsOrCb, cb) {
1511
- const command = new GetRoomCommand(args);
1512
- if (typeof optionsOrCb === "function") {
1513
- this.send(command, optionsOrCb);
1514
- }
1515
- else if (typeof cb === "function") {
1516
- if (typeof optionsOrCb !== "object")
1517
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
1518
- this.send(command, optionsOrCb || {}, cb);
1519
- }
1520
- else {
1521
- return this.send(command, optionsOrCb);
1522
- }
1523
- }
1524
- getSipMediaApplication(args, optionsOrCb, cb) {
1525
- const command = new GetSipMediaApplicationCommand(args);
1526
- if (typeof optionsOrCb === "function") {
1527
- this.send(command, optionsOrCb);
1528
- }
1529
- else if (typeof cb === "function") {
1530
- if (typeof optionsOrCb !== "object")
1531
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
1532
- this.send(command, optionsOrCb || {}, cb);
1533
- }
1534
- else {
1535
- return this.send(command, optionsOrCb);
1536
- }
1537
- }
1538
- getSipMediaApplicationLoggingConfiguration(args, optionsOrCb, cb) {
1539
- const command = new GetSipMediaApplicationLoggingConfigurationCommand(args);
1540
- if (typeof optionsOrCb === "function") {
1541
- this.send(command, optionsOrCb);
1542
- }
1543
- else if (typeof cb === "function") {
1544
- if (typeof optionsOrCb !== "object")
1545
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
1546
- this.send(command, optionsOrCb || {}, cb);
1547
- }
1548
- else {
1549
- return this.send(command, optionsOrCb);
1550
- }
1551
- }
1552
- getSipRule(args, optionsOrCb, cb) {
1553
- const command = new GetSipRuleCommand(args);
1554
- if (typeof optionsOrCb === "function") {
1555
- this.send(command, optionsOrCb);
1556
- }
1557
- else if (typeof cb === "function") {
1558
- if (typeof optionsOrCb !== "object")
1559
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
1560
- this.send(command, optionsOrCb || {}, cb);
1561
- }
1562
- else {
1563
- return this.send(command, optionsOrCb);
1564
- }
1565
- }
1566
- getUser(args, optionsOrCb, cb) {
1567
- const command = new GetUserCommand(args);
1568
- if (typeof optionsOrCb === "function") {
1569
- this.send(command, optionsOrCb);
1570
- }
1571
- else if (typeof cb === "function") {
1572
- if (typeof optionsOrCb !== "object")
1573
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
1574
- this.send(command, optionsOrCb || {}, cb);
1575
- }
1576
- else {
1577
- return this.send(command, optionsOrCb);
1578
- }
1579
- }
1580
- getUserSettings(args, optionsOrCb, cb) {
1581
- const command = new GetUserSettingsCommand(args);
1582
- if (typeof optionsOrCb === "function") {
1583
- this.send(command, optionsOrCb);
1584
- }
1585
- else if (typeof cb === "function") {
1586
- if (typeof optionsOrCb !== "object")
1587
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
1588
- this.send(command, optionsOrCb || {}, cb);
1589
- }
1590
- else {
1591
- return this.send(command, optionsOrCb);
1592
- }
1593
- }
1594
- getVoiceConnector(args, optionsOrCb, cb) {
1595
- const command = new GetVoiceConnectorCommand(args);
1596
- if (typeof optionsOrCb === "function") {
1597
- this.send(command, optionsOrCb);
1598
- }
1599
- else if (typeof cb === "function") {
1600
- if (typeof optionsOrCb !== "object")
1601
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
1602
- this.send(command, optionsOrCb || {}, cb);
1603
- }
1604
- else {
1605
- return this.send(command, optionsOrCb);
1606
- }
1607
- }
1608
- getVoiceConnectorEmergencyCallingConfiguration(args, optionsOrCb, cb) {
1609
- const command = new GetVoiceConnectorEmergencyCallingConfigurationCommand(args);
1610
- if (typeof optionsOrCb === "function") {
1611
- this.send(command, optionsOrCb);
1612
- }
1613
- else if (typeof cb === "function") {
1614
- if (typeof optionsOrCb !== "object")
1615
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
1616
- this.send(command, optionsOrCb || {}, cb);
1617
- }
1618
- else {
1619
- return this.send(command, optionsOrCb);
1620
- }
1621
- }
1622
- getVoiceConnectorGroup(args, optionsOrCb, cb) {
1623
- const command = new GetVoiceConnectorGroupCommand(args);
1624
- if (typeof optionsOrCb === "function") {
1625
- this.send(command, optionsOrCb);
1626
- }
1627
- else if (typeof cb === "function") {
1628
- if (typeof optionsOrCb !== "object")
1629
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
1630
- this.send(command, optionsOrCb || {}, cb);
1631
- }
1632
- else {
1633
- return this.send(command, optionsOrCb);
1634
- }
1635
- }
1636
- getVoiceConnectorLoggingConfiguration(args, optionsOrCb, cb) {
1637
- const command = new GetVoiceConnectorLoggingConfigurationCommand(args);
1638
- if (typeof optionsOrCb === "function") {
1639
- this.send(command, optionsOrCb);
1640
- }
1641
- else if (typeof cb === "function") {
1642
- if (typeof optionsOrCb !== "object")
1643
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
1644
- this.send(command, optionsOrCb || {}, cb);
1645
- }
1646
- else {
1647
- return this.send(command, optionsOrCb);
1648
- }
1649
- }
1650
- getVoiceConnectorOrigination(args, optionsOrCb, cb) {
1651
- const command = new GetVoiceConnectorOriginationCommand(args);
1652
- if (typeof optionsOrCb === "function") {
1653
- this.send(command, optionsOrCb);
1654
- }
1655
- else if (typeof cb === "function") {
1656
- if (typeof optionsOrCb !== "object")
1657
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
1658
- this.send(command, optionsOrCb || {}, cb);
1659
- }
1660
- else {
1661
- return this.send(command, optionsOrCb);
1662
- }
1663
- }
1664
- getVoiceConnectorProxy(args, optionsOrCb, cb) {
1665
- const command = new GetVoiceConnectorProxyCommand(args);
1666
- if (typeof optionsOrCb === "function") {
1667
- this.send(command, optionsOrCb);
1668
- }
1669
- else if (typeof cb === "function") {
1670
- if (typeof optionsOrCb !== "object")
1671
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
1672
- this.send(command, optionsOrCb || {}, cb);
1673
- }
1674
- else {
1675
- return this.send(command, optionsOrCb);
1676
- }
1677
- }
1678
- getVoiceConnectorStreamingConfiguration(args, optionsOrCb, cb) {
1679
- const command = new GetVoiceConnectorStreamingConfigurationCommand(args);
1680
- if (typeof optionsOrCb === "function") {
1681
- this.send(command, optionsOrCb);
1682
- }
1683
- else if (typeof cb === "function") {
1684
- if (typeof optionsOrCb !== "object")
1685
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
1686
- this.send(command, optionsOrCb || {}, cb);
1687
- }
1688
- else {
1689
- return this.send(command, optionsOrCb);
1690
- }
1691
- }
1692
- getVoiceConnectorTermination(args, optionsOrCb, cb) {
1693
- const command = new GetVoiceConnectorTerminationCommand(args);
1694
- if (typeof optionsOrCb === "function") {
1695
- this.send(command, optionsOrCb);
1696
- }
1697
- else if (typeof cb === "function") {
1698
- if (typeof optionsOrCb !== "object")
1699
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
1700
- this.send(command, optionsOrCb || {}, cb);
1701
- }
1702
- else {
1703
- return this.send(command, optionsOrCb);
1704
- }
1705
- }
1706
- getVoiceConnectorTerminationHealth(args, optionsOrCb, cb) {
1707
- const command = new GetVoiceConnectorTerminationHealthCommand(args);
1708
- if (typeof optionsOrCb === "function") {
1709
- this.send(command, optionsOrCb);
1710
- }
1711
- else if (typeof cb === "function") {
1712
- if (typeof optionsOrCb !== "object")
1713
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
1714
- this.send(command, optionsOrCb || {}, cb);
1715
- }
1716
- else {
1717
- return this.send(command, optionsOrCb);
1718
- }
1719
- }
1720
- inviteUsers(args, optionsOrCb, cb) {
1721
- const command = new InviteUsersCommand(args);
1722
- if (typeof optionsOrCb === "function") {
1723
- this.send(command, optionsOrCb);
1724
- }
1725
- else if (typeof cb === "function") {
1726
- if (typeof optionsOrCb !== "object")
1727
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
1728
- this.send(command, optionsOrCb || {}, cb);
1729
- }
1730
- else {
1731
- return this.send(command, optionsOrCb);
1732
- }
1733
- }
1734
- listAccounts(args, optionsOrCb, cb) {
1735
- const command = new ListAccountsCommand(args);
1736
- if (typeof optionsOrCb === "function") {
1737
- this.send(command, optionsOrCb);
1738
- }
1739
- else if (typeof cb === "function") {
1740
- if (typeof optionsOrCb !== "object")
1741
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
1742
- this.send(command, optionsOrCb || {}, cb);
1743
- }
1744
- else {
1745
- return this.send(command, optionsOrCb);
1746
- }
1747
- }
1748
- listAppInstanceAdmins(args, optionsOrCb, cb) {
1749
- const command = new ListAppInstanceAdminsCommand(args);
1750
- if (typeof optionsOrCb === "function") {
1751
- this.send(command, optionsOrCb);
1752
- }
1753
- else if (typeof cb === "function") {
1754
- if (typeof optionsOrCb !== "object")
1755
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
1756
- this.send(command, optionsOrCb || {}, cb);
1757
- }
1758
- else {
1759
- return this.send(command, optionsOrCb);
1760
- }
1761
- }
1762
- listAppInstances(args, optionsOrCb, cb) {
1763
- const command = new ListAppInstancesCommand(args);
1764
- if (typeof optionsOrCb === "function") {
1765
- this.send(command, optionsOrCb);
1766
- }
1767
- else if (typeof cb === "function") {
1768
- if (typeof optionsOrCb !== "object")
1769
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
1770
- this.send(command, optionsOrCb || {}, cb);
1771
- }
1772
- else {
1773
- return this.send(command, optionsOrCb);
1774
- }
1775
- }
1776
- listAppInstanceUsers(args, optionsOrCb, cb) {
1777
- const command = new ListAppInstanceUsersCommand(args);
1778
- if (typeof optionsOrCb === "function") {
1779
- this.send(command, optionsOrCb);
1780
- }
1781
- else if (typeof cb === "function") {
1782
- if (typeof optionsOrCb !== "object")
1783
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
1784
- this.send(command, optionsOrCb || {}, cb);
1785
- }
1786
- else {
1787
- return this.send(command, optionsOrCb);
1788
- }
1789
- }
1790
- listAttendees(args, optionsOrCb, cb) {
1791
- const command = new ListAttendeesCommand(args);
1792
- if (typeof optionsOrCb === "function") {
1793
- this.send(command, optionsOrCb);
1794
- }
1795
- else if (typeof cb === "function") {
1796
- if (typeof optionsOrCb !== "object")
1797
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
1798
- this.send(command, optionsOrCb || {}, cb);
1799
- }
1800
- else {
1801
- return this.send(command, optionsOrCb);
1802
- }
1803
- }
1804
- listAttendeeTags(args, optionsOrCb, cb) {
1805
- const command = new ListAttendeeTagsCommand(args);
1806
- if (typeof optionsOrCb === "function") {
1807
- this.send(command, optionsOrCb);
1808
- }
1809
- else if (typeof cb === "function") {
1810
- if (typeof optionsOrCb !== "object")
1811
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
1812
- this.send(command, optionsOrCb || {}, cb);
1813
- }
1814
- else {
1815
- return this.send(command, optionsOrCb);
1816
- }
1817
- }
1818
- listBots(args, optionsOrCb, cb) {
1819
- const command = new ListBotsCommand(args);
1820
- if (typeof optionsOrCb === "function") {
1821
- this.send(command, optionsOrCb);
1822
- }
1823
- else if (typeof cb === "function") {
1824
- if (typeof optionsOrCb !== "object")
1825
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
1826
- this.send(command, optionsOrCb || {}, cb);
1827
- }
1828
- else {
1829
- return this.send(command, optionsOrCb);
1830
- }
1831
- }
1832
- listChannelBans(args, optionsOrCb, cb) {
1833
- const command = new ListChannelBansCommand(args);
1834
- if (typeof optionsOrCb === "function") {
1835
- this.send(command, optionsOrCb);
1836
- }
1837
- else if (typeof cb === "function") {
1838
- if (typeof optionsOrCb !== "object")
1839
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
1840
- this.send(command, optionsOrCb || {}, cb);
1841
- }
1842
- else {
1843
- return this.send(command, optionsOrCb);
1844
- }
1845
- }
1846
- listChannelMemberships(args, optionsOrCb, cb) {
1847
- const command = new ListChannelMembershipsCommand(args);
1848
- if (typeof optionsOrCb === "function") {
1849
- this.send(command, optionsOrCb);
1850
- }
1851
- else if (typeof cb === "function") {
1852
- if (typeof optionsOrCb !== "object")
1853
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
1854
- this.send(command, optionsOrCb || {}, cb);
1855
- }
1856
- else {
1857
- return this.send(command, optionsOrCb);
1858
- }
1859
- }
1860
- listChannelMembershipsForAppInstanceUser(args, optionsOrCb, cb) {
1861
- const command = new ListChannelMembershipsForAppInstanceUserCommand(args);
1862
- if (typeof optionsOrCb === "function") {
1863
- this.send(command, optionsOrCb);
1864
- }
1865
- else if (typeof cb === "function") {
1866
- if (typeof optionsOrCb !== "object")
1867
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
1868
- this.send(command, optionsOrCb || {}, cb);
1869
- }
1870
- else {
1871
- return this.send(command, optionsOrCb);
1872
- }
1873
- }
1874
- listChannelMessages(args, optionsOrCb, cb) {
1875
- const command = new ListChannelMessagesCommand(args);
1876
- if (typeof optionsOrCb === "function") {
1877
- this.send(command, optionsOrCb);
1878
- }
1879
- else if (typeof cb === "function") {
1880
- if (typeof optionsOrCb !== "object")
1881
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
1882
- this.send(command, optionsOrCb || {}, cb);
1883
- }
1884
- else {
1885
- return this.send(command, optionsOrCb);
1886
- }
1887
- }
1888
- listChannelModerators(args, optionsOrCb, cb) {
1889
- const command = new ListChannelModeratorsCommand(args);
1890
- if (typeof optionsOrCb === "function") {
1891
- this.send(command, optionsOrCb);
1892
- }
1893
- else if (typeof cb === "function") {
1894
- if (typeof optionsOrCb !== "object")
1895
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
1896
- this.send(command, optionsOrCb || {}, cb);
1897
- }
1898
- else {
1899
- return this.send(command, optionsOrCb);
1900
- }
1901
- }
1902
- listChannels(args, optionsOrCb, cb) {
1903
- const command = new ListChannelsCommand(args);
1904
- if (typeof optionsOrCb === "function") {
1905
- this.send(command, optionsOrCb);
1906
- }
1907
- else if (typeof cb === "function") {
1908
- if (typeof optionsOrCb !== "object")
1909
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
1910
- this.send(command, optionsOrCb || {}, cb);
1911
- }
1912
- else {
1913
- return this.send(command, optionsOrCb);
1914
- }
1915
- }
1916
- listChannelsModeratedByAppInstanceUser(args, optionsOrCb, cb) {
1917
- const command = new ListChannelsModeratedByAppInstanceUserCommand(args);
1918
- if (typeof optionsOrCb === "function") {
1919
- this.send(command, optionsOrCb);
1920
- }
1921
- else if (typeof cb === "function") {
1922
- if (typeof optionsOrCb !== "object")
1923
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
1924
- this.send(command, optionsOrCb || {}, cb);
1925
- }
1926
- else {
1927
- return this.send(command, optionsOrCb);
1928
- }
1929
- }
1930
- listMediaCapturePipelines(args, optionsOrCb, cb) {
1931
- const command = new ListMediaCapturePipelinesCommand(args);
1932
- if (typeof optionsOrCb === "function") {
1933
- this.send(command, optionsOrCb);
1934
- }
1935
- else if (typeof cb === "function") {
1936
- if (typeof optionsOrCb !== "object")
1937
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
1938
- this.send(command, optionsOrCb || {}, cb);
1939
- }
1940
- else {
1941
- return this.send(command, optionsOrCb);
1942
- }
1943
- }
1944
- listMeetings(args, optionsOrCb, cb) {
1945
- const command = new ListMeetingsCommand(args);
1946
- if (typeof optionsOrCb === "function") {
1947
- this.send(command, optionsOrCb);
1948
- }
1949
- else if (typeof cb === "function") {
1950
- if (typeof optionsOrCb !== "object")
1951
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
1952
- this.send(command, optionsOrCb || {}, cb);
1953
- }
1954
- else {
1955
- return this.send(command, optionsOrCb);
1956
- }
1957
- }
1958
- listMeetingTags(args, optionsOrCb, cb) {
1959
- const command = new ListMeetingTagsCommand(args);
1960
- if (typeof optionsOrCb === "function") {
1961
- this.send(command, optionsOrCb);
1962
- }
1963
- else if (typeof cb === "function") {
1964
- if (typeof optionsOrCb !== "object")
1965
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
1966
- this.send(command, optionsOrCb || {}, cb);
1967
- }
1968
- else {
1969
- return this.send(command, optionsOrCb);
1970
- }
1971
- }
1972
- listPhoneNumberOrders(args, optionsOrCb, cb) {
1973
- const command = new ListPhoneNumberOrdersCommand(args);
1974
- if (typeof optionsOrCb === "function") {
1975
- this.send(command, optionsOrCb);
1976
- }
1977
- else if (typeof cb === "function") {
1978
- if (typeof optionsOrCb !== "object")
1979
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
1980
- this.send(command, optionsOrCb || {}, cb);
1981
- }
1982
- else {
1983
- return this.send(command, optionsOrCb);
1984
- }
1985
- }
1986
- listPhoneNumbers(args, optionsOrCb, cb) {
1987
- const command = new ListPhoneNumbersCommand(args);
1988
- if (typeof optionsOrCb === "function") {
1989
- this.send(command, optionsOrCb);
1990
- }
1991
- else if (typeof cb === "function") {
1992
- if (typeof optionsOrCb !== "object")
1993
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
1994
- this.send(command, optionsOrCb || {}, cb);
1995
- }
1996
- else {
1997
- return this.send(command, optionsOrCb);
1998
- }
1999
- }
2000
- listProxySessions(args, optionsOrCb, cb) {
2001
- const command = new ListProxySessionsCommand(args);
2002
- if (typeof optionsOrCb === "function") {
2003
- this.send(command, optionsOrCb);
2004
- }
2005
- else if (typeof cb === "function") {
2006
- if (typeof optionsOrCb !== "object")
2007
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
2008
- this.send(command, optionsOrCb || {}, cb);
2009
- }
2010
- else {
2011
- return this.send(command, optionsOrCb);
2012
- }
2013
- }
2014
- listRoomMemberships(args, optionsOrCb, cb) {
2015
- const command = new ListRoomMembershipsCommand(args);
2016
- if (typeof optionsOrCb === "function") {
2017
- this.send(command, optionsOrCb);
2018
- }
2019
- else if (typeof cb === "function") {
2020
- if (typeof optionsOrCb !== "object")
2021
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
2022
- this.send(command, optionsOrCb || {}, cb);
2023
- }
2024
- else {
2025
- return this.send(command, optionsOrCb);
2026
- }
2027
- }
2028
- listRooms(args, optionsOrCb, cb) {
2029
- const command = new ListRoomsCommand(args);
2030
- if (typeof optionsOrCb === "function") {
2031
- this.send(command, optionsOrCb);
2032
- }
2033
- else if (typeof cb === "function") {
2034
- if (typeof optionsOrCb !== "object")
2035
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
2036
- this.send(command, optionsOrCb || {}, cb);
2037
- }
2038
- else {
2039
- return this.send(command, optionsOrCb);
2040
- }
2041
- }
2042
- listSipMediaApplications(args, optionsOrCb, cb) {
2043
- const command = new ListSipMediaApplicationsCommand(args);
2044
- if (typeof optionsOrCb === "function") {
2045
- this.send(command, optionsOrCb);
2046
- }
2047
- else if (typeof cb === "function") {
2048
- if (typeof optionsOrCb !== "object")
2049
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
2050
- this.send(command, optionsOrCb || {}, cb);
2051
- }
2052
- else {
2053
- return this.send(command, optionsOrCb);
2054
- }
2055
- }
2056
- listSipRules(args, optionsOrCb, cb) {
2057
- const command = new ListSipRulesCommand(args);
2058
- if (typeof optionsOrCb === "function") {
2059
- this.send(command, optionsOrCb);
2060
- }
2061
- else if (typeof cb === "function") {
2062
- if (typeof optionsOrCb !== "object")
2063
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
2064
- this.send(command, optionsOrCb || {}, cb);
2065
- }
2066
- else {
2067
- return this.send(command, optionsOrCb);
2068
- }
2069
- }
2070
- listSupportedPhoneNumberCountries(args, optionsOrCb, cb) {
2071
- const command = new ListSupportedPhoneNumberCountriesCommand(args);
2072
- if (typeof optionsOrCb === "function") {
2073
- this.send(command, optionsOrCb);
2074
- }
2075
- else if (typeof cb === "function") {
2076
- if (typeof optionsOrCb !== "object")
2077
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
2078
- this.send(command, optionsOrCb || {}, cb);
2079
- }
2080
- else {
2081
- return this.send(command, optionsOrCb);
2082
- }
2083
- }
2084
- listTagsForResource(args, optionsOrCb, cb) {
2085
- const command = new ListTagsForResourceCommand(args);
2086
- if (typeof optionsOrCb === "function") {
2087
- this.send(command, optionsOrCb);
2088
- }
2089
- else if (typeof cb === "function") {
2090
- if (typeof optionsOrCb !== "object")
2091
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
2092
- this.send(command, optionsOrCb || {}, cb);
2093
- }
2094
- else {
2095
- return this.send(command, optionsOrCb);
2096
- }
2097
- }
2098
- listUsers(args, optionsOrCb, cb) {
2099
- const command = new ListUsersCommand(args);
2100
- if (typeof optionsOrCb === "function") {
2101
- this.send(command, optionsOrCb);
2102
- }
2103
- else if (typeof cb === "function") {
2104
- if (typeof optionsOrCb !== "object")
2105
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
2106
- this.send(command, optionsOrCb || {}, cb);
2107
- }
2108
- else {
2109
- return this.send(command, optionsOrCb);
2110
- }
2111
- }
2112
- listVoiceConnectorGroups(args, optionsOrCb, cb) {
2113
- const command = new ListVoiceConnectorGroupsCommand(args);
2114
- if (typeof optionsOrCb === "function") {
2115
- this.send(command, optionsOrCb);
2116
- }
2117
- else if (typeof cb === "function") {
2118
- if (typeof optionsOrCb !== "object")
2119
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
2120
- this.send(command, optionsOrCb || {}, cb);
2121
- }
2122
- else {
2123
- return this.send(command, optionsOrCb);
2124
- }
2125
- }
2126
- listVoiceConnectors(args, optionsOrCb, cb) {
2127
- const command = new ListVoiceConnectorsCommand(args);
2128
- if (typeof optionsOrCb === "function") {
2129
- this.send(command, optionsOrCb);
2130
- }
2131
- else if (typeof cb === "function") {
2132
- if (typeof optionsOrCb !== "object")
2133
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
2134
- this.send(command, optionsOrCb || {}, cb);
2135
- }
2136
- else {
2137
- return this.send(command, optionsOrCb);
2138
- }
2139
- }
2140
- listVoiceConnectorTerminationCredentials(args, optionsOrCb, cb) {
2141
- const command = new ListVoiceConnectorTerminationCredentialsCommand(args);
2142
- if (typeof optionsOrCb === "function") {
2143
- this.send(command, optionsOrCb);
2144
- }
2145
- else if (typeof cb === "function") {
2146
- if (typeof optionsOrCb !== "object")
2147
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
2148
- this.send(command, optionsOrCb || {}, cb);
2149
- }
2150
- else {
2151
- return this.send(command, optionsOrCb);
2152
- }
2153
- }
2154
- logoutUser(args, optionsOrCb, cb) {
2155
- const command = new LogoutUserCommand(args);
2156
- if (typeof optionsOrCb === "function") {
2157
- this.send(command, optionsOrCb);
2158
- }
2159
- else if (typeof cb === "function") {
2160
- if (typeof optionsOrCb !== "object")
2161
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
2162
- this.send(command, optionsOrCb || {}, cb);
2163
- }
2164
- else {
2165
- return this.send(command, optionsOrCb);
2166
- }
2167
- }
2168
- putAppInstanceRetentionSettings(args, optionsOrCb, cb) {
2169
- const command = new PutAppInstanceRetentionSettingsCommand(args);
2170
- if (typeof optionsOrCb === "function") {
2171
- this.send(command, optionsOrCb);
2172
- }
2173
- else if (typeof cb === "function") {
2174
- if (typeof optionsOrCb !== "object")
2175
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
2176
- this.send(command, optionsOrCb || {}, cb);
2177
- }
2178
- else {
2179
- return this.send(command, optionsOrCb);
2180
- }
2181
- }
2182
- putAppInstanceStreamingConfigurations(args, optionsOrCb, cb) {
2183
- const command = new PutAppInstanceStreamingConfigurationsCommand(args);
2184
- if (typeof optionsOrCb === "function") {
2185
- this.send(command, optionsOrCb);
2186
- }
2187
- else if (typeof cb === "function") {
2188
- if (typeof optionsOrCb !== "object")
2189
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
2190
- this.send(command, optionsOrCb || {}, cb);
2191
- }
2192
- else {
2193
- return this.send(command, optionsOrCb);
2194
- }
2195
- }
2196
- putEventsConfiguration(args, optionsOrCb, cb) {
2197
- const command = new PutEventsConfigurationCommand(args);
2198
- if (typeof optionsOrCb === "function") {
2199
- this.send(command, optionsOrCb);
2200
- }
2201
- else if (typeof cb === "function") {
2202
- if (typeof optionsOrCb !== "object")
2203
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
2204
- this.send(command, optionsOrCb || {}, cb);
2205
- }
2206
- else {
2207
- return this.send(command, optionsOrCb);
2208
- }
2209
- }
2210
- putRetentionSettings(args, optionsOrCb, cb) {
2211
- const command = new PutRetentionSettingsCommand(args);
2212
- if (typeof optionsOrCb === "function") {
2213
- this.send(command, optionsOrCb);
2214
- }
2215
- else if (typeof cb === "function") {
2216
- if (typeof optionsOrCb !== "object")
2217
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
2218
- this.send(command, optionsOrCb || {}, cb);
2219
- }
2220
- else {
2221
- return this.send(command, optionsOrCb);
2222
- }
2223
- }
2224
- putSipMediaApplicationLoggingConfiguration(args, optionsOrCb, cb) {
2225
- const command = new PutSipMediaApplicationLoggingConfigurationCommand(args);
2226
- if (typeof optionsOrCb === "function") {
2227
- this.send(command, optionsOrCb);
2228
- }
2229
- else if (typeof cb === "function") {
2230
- if (typeof optionsOrCb !== "object")
2231
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
2232
- this.send(command, optionsOrCb || {}, cb);
2233
- }
2234
- else {
2235
- return this.send(command, optionsOrCb);
2236
- }
2237
- }
2238
- putVoiceConnectorEmergencyCallingConfiguration(args, optionsOrCb, cb) {
2239
- const command = new PutVoiceConnectorEmergencyCallingConfigurationCommand(args);
2240
- if (typeof optionsOrCb === "function") {
2241
- this.send(command, optionsOrCb);
2242
- }
2243
- else if (typeof cb === "function") {
2244
- if (typeof optionsOrCb !== "object")
2245
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
2246
- this.send(command, optionsOrCb || {}, cb);
2247
- }
2248
- else {
2249
- return this.send(command, optionsOrCb);
2250
- }
2251
- }
2252
- putVoiceConnectorLoggingConfiguration(args, optionsOrCb, cb) {
2253
- const command = new PutVoiceConnectorLoggingConfigurationCommand(args);
2254
- if (typeof optionsOrCb === "function") {
2255
- this.send(command, optionsOrCb);
2256
- }
2257
- else if (typeof cb === "function") {
2258
- if (typeof optionsOrCb !== "object")
2259
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
2260
- this.send(command, optionsOrCb || {}, cb);
2261
- }
2262
- else {
2263
- return this.send(command, optionsOrCb);
2264
- }
2265
- }
2266
- putVoiceConnectorOrigination(args, optionsOrCb, cb) {
2267
- const command = new PutVoiceConnectorOriginationCommand(args);
2268
- if (typeof optionsOrCb === "function") {
2269
- this.send(command, optionsOrCb);
2270
- }
2271
- else if (typeof cb === "function") {
2272
- if (typeof optionsOrCb !== "object")
2273
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
2274
- this.send(command, optionsOrCb || {}, cb);
2275
- }
2276
- else {
2277
- return this.send(command, optionsOrCb);
2278
- }
2279
- }
2280
- putVoiceConnectorProxy(args, optionsOrCb, cb) {
2281
- const command = new PutVoiceConnectorProxyCommand(args);
2282
- if (typeof optionsOrCb === "function") {
2283
- this.send(command, optionsOrCb);
2284
- }
2285
- else if (typeof cb === "function") {
2286
- if (typeof optionsOrCb !== "object")
2287
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
2288
- this.send(command, optionsOrCb || {}, cb);
2289
- }
2290
- else {
2291
- return this.send(command, optionsOrCb);
2292
- }
2293
- }
2294
- putVoiceConnectorStreamingConfiguration(args, optionsOrCb, cb) {
2295
- const command = new PutVoiceConnectorStreamingConfigurationCommand(args);
2296
- if (typeof optionsOrCb === "function") {
2297
- this.send(command, optionsOrCb);
2298
- }
2299
- else if (typeof cb === "function") {
2300
- if (typeof optionsOrCb !== "object")
2301
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
2302
- this.send(command, optionsOrCb || {}, cb);
2303
- }
2304
- else {
2305
- return this.send(command, optionsOrCb);
2306
- }
2307
- }
2308
- putVoiceConnectorTermination(args, optionsOrCb, cb) {
2309
- const command = new PutVoiceConnectorTerminationCommand(args);
2310
- if (typeof optionsOrCb === "function") {
2311
- this.send(command, optionsOrCb);
2312
- }
2313
- else if (typeof cb === "function") {
2314
- if (typeof optionsOrCb !== "object")
2315
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
2316
- this.send(command, optionsOrCb || {}, cb);
2317
- }
2318
- else {
2319
- return this.send(command, optionsOrCb);
2320
- }
2321
- }
2322
- putVoiceConnectorTerminationCredentials(args, optionsOrCb, cb) {
2323
- const command = new PutVoiceConnectorTerminationCredentialsCommand(args);
2324
- if (typeof optionsOrCb === "function") {
2325
- this.send(command, optionsOrCb);
2326
- }
2327
- else if (typeof cb === "function") {
2328
- if (typeof optionsOrCb !== "object")
2329
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
2330
- this.send(command, optionsOrCb || {}, cb);
2331
- }
2332
- else {
2333
- return this.send(command, optionsOrCb);
2334
- }
2335
- }
2336
- redactChannelMessage(args, optionsOrCb, cb) {
2337
- const command = new RedactChannelMessageCommand(args);
2338
- if (typeof optionsOrCb === "function") {
2339
- this.send(command, optionsOrCb);
2340
- }
2341
- else if (typeof cb === "function") {
2342
- if (typeof optionsOrCb !== "object")
2343
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
2344
- this.send(command, optionsOrCb || {}, cb);
2345
- }
2346
- else {
2347
- return this.send(command, optionsOrCb);
2348
- }
2349
- }
2350
- redactConversationMessage(args, optionsOrCb, cb) {
2351
- const command = new RedactConversationMessageCommand(args);
2352
- if (typeof optionsOrCb === "function") {
2353
- this.send(command, optionsOrCb);
2354
- }
2355
- else if (typeof cb === "function") {
2356
- if (typeof optionsOrCb !== "object")
2357
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
2358
- this.send(command, optionsOrCb || {}, cb);
2359
- }
2360
- else {
2361
- return this.send(command, optionsOrCb);
2362
- }
2363
- }
2364
- redactRoomMessage(args, optionsOrCb, cb) {
2365
- const command = new RedactRoomMessageCommand(args);
2366
- if (typeof optionsOrCb === "function") {
2367
- this.send(command, optionsOrCb);
2368
- }
2369
- else if (typeof cb === "function") {
2370
- if (typeof optionsOrCb !== "object")
2371
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
2372
- this.send(command, optionsOrCb || {}, cb);
2373
- }
2374
- else {
2375
- return this.send(command, optionsOrCb);
2376
- }
2377
- }
2378
- regenerateSecurityToken(args, optionsOrCb, cb) {
2379
- const command = new RegenerateSecurityTokenCommand(args);
2380
- if (typeof optionsOrCb === "function") {
2381
- this.send(command, optionsOrCb);
2382
- }
2383
- else if (typeof cb === "function") {
2384
- if (typeof optionsOrCb !== "object")
2385
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
2386
- this.send(command, optionsOrCb || {}, cb);
2387
- }
2388
- else {
2389
- return this.send(command, optionsOrCb);
2390
- }
2391
- }
2392
- resetPersonalPIN(args, optionsOrCb, cb) {
2393
- const command = new ResetPersonalPINCommand(args);
2394
- if (typeof optionsOrCb === "function") {
2395
- this.send(command, optionsOrCb);
2396
- }
2397
- else if (typeof cb === "function") {
2398
- if (typeof optionsOrCb !== "object")
2399
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
2400
- this.send(command, optionsOrCb || {}, cb);
2401
- }
2402
- else {
2403
- return this.send(command, optionsOrCb);
2404
- }
2405
- }
2406
- restorePhoneNumber(args, optionsOrCb, cb) {
2407
- const command = new RestorePhoneNumberCommand(args);
2408
- if (typeof optionsOrCb === "function") {
2409
- this.send(command, optionsOrCb);
2410
- }
2411
- else if (typeof cb === "function") {
2412
- if (typeof optionsOrCb !== "object")
2413
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
2414
- this.send(command, optionsOrCb || {}, cb);
2415
- }
2416
- else {
2417
- return this.send(command, optionsOrCb);
2418
- }
2419
- }
2420
- searchAvailablePhoneNumbers(args, optionsOrCb, cb) {
2421
- const command = new SearchAvailablePhoneNumbersCommand(args);
2422
- if (typeof optionsOrCb === "function") {
2423
- this.send(command, optionsOrCb);
2424
- }
2425
- else if (typeof cb === "function") {
2426
- if (typeof optionsOrCb !== "object")
2427
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
2428
- this.send(command, optionsOrCb || {}, cb);
2429
- }
2430
- else {
2431
- return this.send(command, optionsOrCb);
2432
- }
2433
- }
2434
- sendChannelMessage(args, optionsOrCb, cb) {
2435
- const command = new SendChannelMessageCommand(args);
2436
- if (typeof optionsOrCb === "function") {
2437
- this.send(command, optionsOrCb);
2438
- }
2439
- else if (typeof cb === "function") {
2440
- if (typeof optionsOrCb !== "object")
2441
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
2442
- this.send(command, optionsOrCb || {}, cb);
2443
- }
2444
- else {
2445
- return this.send(command, optionsOrCb);
2446
- }
2447
- }
2448
- startMeetingTranscription(args, optionsOrCb, cb) {
2449
- const command = new StartMeetingTranscriptionCommand(args);
2450
- if (typeof optionsOrCb === "function") {
2451
- this.send(command, optionsOrCb);
2452
- }
2453
- else if (typeof cb === "function") {
2454
- if (typeof optionsOrCb !== "object")
2455
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
2456
- this.send(command, optionsOrCb || {}, cb);
2457
- }
2458
- else {
2459
- return this.send(command, optionsOrCb);
2460
- }
2461
- }
2462
- stopMeetingTranscription(args, optionsOrCb, cb) {
2463
- const command = new StopMeetingTranscriptionCommand(args);
2464
- if (typeof optionsOrCb === "function") {
2465
- this.send(command, optionsOrCb);
2466
- }
2467
- else if (typeof cb === "function") {
2468
- if (typeof optionsOrCb !== "object")
2469
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
2470
- this.send(command, optionsOrCb || {}, cb);
2471
- }
2472
- else {
2473
- return this.send(command, optionsOrCb);
2474
- }
2475
- }
2476
- tagAttendee(args, optionsOrCb, cb) {
2477
- const command = new TagAttendeeCommand(args);
2478
- if (typeof optionsOrCb === "function") {
2479
- this.send(command, optionsOrCb);
2480
- }
2481
- else if (typeof cb === "function") {
2482
- if (typeof optionsOrCb !== "object")
2483
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
2484
- this.send(command, optionsOrCb || {}, cb);
2485
- }
2486
- else {
2487
- return this.send(command, optionsOrCb);
2488
- }
2489
- }
2490
- tagMeeting(args, optionsOrCb, cb) {
2491
- const command = new TagMeetingCommand(args);
2492
- if (typeof optionsOrCb === "function") {
2493
- this.send(command, optionsOrCb);
2494
- }
2495
- else if (typeof cb === "function") {
2496
- if (typeof optionsOrCb !== "object")
2497
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
2498
- this.send(command, optionsOrCb || {}, cb);
2499
- }
2500
- else {
2501
- return this.send(command, optionsOrCb);
2502
- }
2503
- }
2504
- tagResource(args, optionsOrCb, cb) {
2505
- const command = new TagResourceCommand(args);
2506
- if (typeof optionsOrCb === "function") {
2507
- this.send(command, optionsOrCb);
2508
- }
2509
- else if (typeof cb === "function") {
2510
- if (typeof optionsOrCb !== "object")
2511
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
2512
- this.send(command, optionsOrCb || {}, cb);
2513
- }
2514
- else {
2515
- return this.send(command, optionsOrCb);
2516
- }
2517
- }
2518
- untagAttendee(args, optionsOrCb, cb) {
2519
- const command = new UntagAttendeeCommand(args);
2520
- if (typeof optionsOrCb === "function") {
2521
- this.send(command, optionsOrCb);
2522
- }
2523
- else if (typeof cb === "function") {
2524
- if (typeof optionsOrCb !== "object")
2525
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
2526
- this.send(command, optionsOrCb || {}, cb);
2527
- }
2528
- else {
2529
- return this.send(command, optionsOrCb);
2530
- }
2531
- }
2532
- untagMeeting(args, optionsOrCb, cb) {
2533
- const command = new UntagMeetingCommand(args);
2534
- if (typeof optionsOrCb === "function") {
2535
- this.send(command, optionsOrCb);
2536
- }
2537
- else if (typeof cb === "function") {
2538
- if (typeof optionsOrCb !== "object")
2539
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
2540
- this.send(command, optionsOrCb || {}, cb);
2541
- }
2542
- else {
2543
- return this.send(command, optionsOrCb);
2544
- }
2545
- }
2546
- untagResource(args, optionsOrCb, cb) {
2547
- const command = new UntagResourceCommand(args);
2548
- if (typeof optionsOrCb === "function") {
2549
- this.send(command, optionsOrCb);
2550
- }
2551
- else if (typeof cb === "function") {
2552
- if (typeof optionsOrCb !== "object")
2553
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
2554
- this.send(command, optionsOrCb || {}, cb);
2555
- }
2556
- else {
2557
- return this.send(command, optionsOrCb);
2558
- }
2559
- }
2560
- updateAccount(args, optionsOrCb, cb) {
2561
- const command = new UpdateAccountCommand(args);
2562
- if (typeof optionsOrCb === "function") {
2563
- this.send(command, optionsOrCb);
2564
- }
2565
- else if (typeof cb === "function") {
2566
- if (typeof optionsOrCb !== "object")
2567
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
2568
- this.send(command, optionsOrCb || {}, cb);
2569
- }
2570
- else {
2571
- return this.send(command, optionsOrCb);
2572
- }
2573
- }
2574
- updateAccountSettings(args, optionsOrCb, cb) {
2575
- const command = new UpdateAccountSettingsCommand(args);
2576
- if (typeof optionsOrCb === "function") {
2577
- this.send(command, optionsOrCb);
2578
- }
2579
- else if (typeof cb === "function") {
2580
- if (typeof optionsOrCb !== "object")
2581
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
2582
- this.send(command, optionsOrCb || {}, cb);
2583
- }
2584
- else {
2585
- return this.send(command, optionsOrCb);
2586
- }
2587
- }
2588
- updateAppInstance(args, optionsOrCb, cb) {
2589
- const command = new UpdateAppInstanceCommand(args);
2590
- if (typeof optionsOrCb === "function") {
2591
- this.send(command, optionsOrCb);
2592
- }
2593
- else if (typeof cb === "function") {
2594
- if (typeof optionsOrCb !== "object")
2595
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
2596
- this.send(command, optionsOrCb || {}, cb);
2597
- }
2598
- else {
2599
- return this.send(command, optionsOrCb);
2600
- }
2601
- }
2602
- updateAppInstanceUser(args, optionsOrCb, cb) {
2603
- const command = new UpdateAppInstanceUserCommand(args);
2604
- if (typeof optionsOrCb === "function") {
2605
- this.send(command, optionsOrCb);
2606
- }
2607
- else if (typeof cb === "function") {
2608
- if (typeof optionsOrCb !== "object")
2609
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
2610
- this.send(command, optionsOrCb || {}, cb);
2611
- }
2612
- else {
2613
- return this.send(command, optionsOrCb);
2614
- }
2615
- }
2616
- updateBot(args, optionsOrCb, cb) {
2617
- const command = new UpdateBotCommand(args);
2618
- if (typeof optionsOrCb === "function") {
2619
- this.send(command, optionsOrCb);
2620
- }
2621
- else if (typeof cb === "function") {
2622
- if (typeof optionsOrCb !== "object")
2623
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
2624
- this.send(command, optionsOrCb || {}, cb);
2625
- }
2626
- else {
2627
- return this.send(command, optionsOrCb);
2628
- }
2629
- }
2630
- updateChannel(args, optionsOrCb, cb) {
2631
- const command = new UpdateChannelCommand(args);
2632
- if (typeof optionsOrCb === "function") {
2633
- this.send(command, optionsOrCb);
2634
- }
2635
- else if (typeof cb === "function") {
2636
- if (typeof optionsOrCb !== "object")
2637
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
2638
- this.send(command, optionsOrCb || {}, cb);
2639
- }
2640
- else {
2641
- return this.send(command, optionsOrCb);
2642
- }
2643
- }
2644
- updateChannelMessage(args, optionsOrCb, cb) {
2645
- const command = new UpdateChannelMessageCommand(args);
2646
- if (typeof optionsOrCb === "function") {
2647
- this.send(command, optionsOrCb);
2648
- }
2649
- else if (typeof cb === "function") {
2650
- if (typeof optionsOrCb !== "object")
2651
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
2652
- this.send(command, optionsOrCb || {}, cb);
2653
- }
2654
- else {
2655
- return this.send(command, optionsOrCb);
2656
- }
2657
- }
2658
- updateChannelReadMarker(args, optionsOrCb, cb) {
2659
- const command = new UpdateChannelReadMarkerCommand(args);
2660
- if (typeof optionsOrCb === "function") {
2661
- this.send(command, optionsOrCb);
2662
- }
2663
- else if (typeof cb === "function") {
2664
- if (typeof optionsOrCb !== "object")
2665
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
2666
- this.send(command, optionsOrCb || {}, cb);
2667
- }
2668
- else {
2669
- return this.send(command, optionsOrCb);
2670
- }
2671
- }
2672
- updateGlobalSettings(args, optionsOrCb, cb) {
2673
- const command = new UpdateGlobalSettingsCommand(args);
2674
- if (typeof optionsOrCb === "function") {
2675
- this.send(command, optionsOrCb);
2676
- }
2677
- else if (typeof cb === "function") {
2678
- if (typeof optionsOrCb !== "object")
2679
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
2680
- this.send(command, optionsOrCb || {}, cb);
2681
- }
2682
- else {
2683
- return this.send(command, optionsOrCb);
2684
- }
2685
- }
2686
- updatePhoneNumber(args, optionsOrCb, cb) {
2687
- const command = new UpdatePhoneNumberCommand(args);
2688
- if (typeof optionsOrCb === "function") {
2689
- this.send(command, optionsOrCb);
2690
- }
2691
- else if (typeof cb === "function") {
2692
- if (typeof optionsOrCb !== "object")
2693
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
2694
- this.send(command, optionsOrCb || {}, cb);
2695
- }
2696
- else {
2697
- return this.send(command, optionsOrCb);
2698
- }
2699
- }
2700
- updatePhoneNumberSettings(args, optionsOrCb, cb) {
2701
- const command = new UpdatePhoneNumberSettingsCommand(args);
2702
- if (typeof optionsOrCb === "function") {
2703
- this.send(command, optionsOrCb);
2704
- }
2705
- else if (typeof cb === "function") {
2706
- if (typeof optionsOrCb !== "object")
2707
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
2708
- this.send(command, optionsOrCb || {}, cb);
2709
- }
2710
- else {
2711
- return this.send(command, optionsOrCb);
2712
- }
2713
- }
2714
- updateProxySession(args, optionsOrCb, cb) {
2715
- const command = new UpdateProxySessionCommand(args);
2716
- if (typeof optionsOrCb === "function") {
2717
- this.send(command, optionsOrCb);
2718
- }
2719
- else if (typeof cb === "function") {
2720
- if (typeof optionsOrCb !== "object")
2721
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
2722
- this.send(command, optionsOrCb || {}, cb);
2723
- }
2724
- else {
2725
- return this.send(command, optionsOrCb);
2726
- }
2727
- }
2728
- updateRoom(args, optionsOrCb, cb) {
2729
- const command = new UpdateRoomCommand(args);
2730
- if (typeof optionsOrCb === "function") {
2731
- this.send(command, optionsOrCb);
2732
- }
2733
- else if (typeof cb === "function") {
2734
- if (typeof optionsOrCb !== "object")
2735
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
2736
- this.send(command, optionsOrCb || {}, cb);
2737
- }
2738
- else {
2739
- return this.send(command, optionsOrCb);
2740
- }
2741
- }
2742
- updateRoomMembership(args, optionsOrCb, cb) {
2743
- const command = new UpdateRoomMembershipCommand(args);
2744
- if (typeof optionsOrCb === "function") {
2745
- this.send(command, optionsOrCb);
2746
- }
2747
- else if (typeof cb === "function") {
2748
- if (typeof optionsOrCb !== "object")
2749
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
2750
- this.send(command, optionsOrCb || {}, cb);
2751
- }
2752
- else {
2753
- return this.send(command, optionsOrCb);
2754
- }
2755
- }
2756
- updateSipMediaApplication(args, optionsOrCb, cb) {
2757
- const command = new UpdateSipMediaApplicationCommand(args);
2758
- if (typeof optionsOrCb === "function") {
2759
- this.send(command, optionsOrCb);
2760
- }
2761
- else if (typeof cb === "function") {
2762
- if (typeof optionsOrCb !== "object")
2763
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
2764
- this.send(command, optionsOrCb || {}, cb);
2765
- }
2766
- else {
2767
- return this.send(command, optionsOrCb);
2768
- }
2769
- }
2770
- updateSipMediaApplicationCall(args, optionsOrCb, cb) {
2771
- const command = new UpdateSipMediaApplicationCallCommand(args);
2772
- if (typeof optionsOrCb === "function") {
2773
- this.send(command, optionsOrCb);
2774
- }
2775
- else if (typeof cb === "function") {
2776
- if (typeof optionsOrCb !== "object")
2777
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
2778
- this.send(command, optionsOrCb || {}, cb);
2779
- }
2780
- else {
2781
- return this.send(command, optionsOrCb);
2782
- }
2783
- }
2784
- updateSipRule(args, optionsOrCb, cb) {
2785
- const command = new UpdateSipRuleCommand(args);
2786
- if (typeof optionsOrCb === "function") {
2787
- this.send(command, optionsOrCb);
2788
- }
2789
- else if (typeof cb === "function") {
2790
- if (typeof optionsOrCb !== "object")
2791
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
2792
- this.send(command, optionsOrCb || {}, cb);
2793
- }
2794
- else {
2795
- return this.send(command, optionsOrCb);
2796
- }
2797
- }
2798
- updateUser(args, optionsOrCb, cb) {
2799
- const command = new UpdateUserCommand(args);
2800
- if (typeof optionsOrCb === "function") {
2801
- this.send(command, optionsOrCb);
2802
- }
2803
- else if (typeof cb === "function") {
2804
- if (typeof optionsOrCb !== "object")
2805
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
2806
- this.send(command, optionsOrCb || {}, cb);
2807
- }
2808
- else {
2809
- return this.send(command, optionsOrCb);
2810
- }
2811
- }
2812
- updateUserSettings(args, optionsOrCb, cb) {
2813
- const command = new UpdateUserSettingsCommand(args);
2814
- if (typeof optionsOrCb === "function") {
2815
- this.send(command, optionsOrCb);
2816
- }
2817
- else if (typeof cb === "function") {
2818
- if (typeof optionsOrCb !== "object")
2819
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
2820
- this.send(command, optionsOrCb || {}, cb);
2821
- }
2822
- else {
2823
- return this.send(command, optionsOrCb);
2824
- }
2825
- }
2826
- updateVoiceConnector(args, optionsOrCb, cb) {
2827
- const command = new UpdateVoiceConnectorCommand(args);
2828
- if (typeof optionsOrCb === "function") {
2829
- this.send(command, optionsOrCb);
2830
- }
2831
- else if (typeof cb === "function") {
2832
- if (typeof optionsOrCb !== "object")
2833
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
2834
- this.send(command, optionsOrCb || {}, cb);
2835
- }
2836
- else {
2837
- return this.send(command, optionsOrCb);
2838
- }
2839
- }
2840
- updateVoiceConnectorGroup(args, optionsOrCb, cb) {
2841
- const command = new UpdateVoiceConnectorGroupCommand(args);
2842
- if (typeof optionsOrCb === "function") {
2843
- this.send(command, optionsOrCb);
2844
- }
2845
- else if (typeof cb === "function") {
2846
- if (typeof optionsOrCb !== "object")
2847
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
2848
- this.send(command, optionsOrCb || {}, cb);
2849
- }
2850
- else {
2851
- return this.send(command, optionsOrCb);
2852
- }
2853
- }
2854
- validateE911Address(args, optionsOrCb, cb) {
2855
- const command = new ValidateE911AddressCommand(args);
2856
- if (typeof optionsOrCb === "function") {
2857
- this.send(command, optionsOrCb);
2858
- }
2859
- else if (typeof cb === "function") {
2860
- if (typeof optionsOrCb !== "object")
2861
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
2862
- this.send(command, optionsOrCb || {}, cb);
2863
- }
2864
- else {
2865
- return this.send(command, optionsOrCb);
2866
- }
2867
- }
2868
388
  }
389
+ createAggregatedClient(commands, Chime);