@aws-sdk/client-connect 3.312.0 → 3.316.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,3 +1,4 @@
1
+ import { createAggregatedClient } from "@aws-sdk/smithy-client";
1
2
  import { AssociateApprovedOriginCommand, } from "./commands/AssociateApprovedOriginCommand";
2
3
  import { AssociateBotCommand, } from "./commands/AssociateBotCommand";
3
4
  import { AssociateDefaultVocabularyCommand, } from "./commands/AssociateDefaultVocabularyCommand";
@@ -169,2385 +170,178 @@ import { UpdateUserPhoneConfigCommand, } from "./commands/UpdateUserPhoneConfigC
169
170
  import { UpdateUserRoutingProfileCommand, } from "./commands/UpdateUserRoutingProfileCommand";
170
171
  import { UpdateUserSecurityProfilesCommand, } from "./commands/UpdateUserSecurityProfilesCommand";
171
172
  import { ConnectClient } from "./ConnectClient";
173
+ const commands = {
174
+ AssociateApprovedOriginCommand,
175
+ AssociateBotCommand,
176
+ AssociateDefaultVocabularyCommand,
177
+ AssociateInstanceStorageConfigCommand,
178
+ AssociateLambdaFunctionCommand,
179
+ AssociateLexBotCommand,
180
+ AssociatePhoneNumberContactFlowCommand,
181
+ AssociateQueueQuickConnectsCommand,
182
+ AssociateRoutingProfileQueuesCommand,
183
+ AssociateSecurityKeyCommand,
184
+ ClaimPhoneNumberCommand,
185
+ CreateAgentStatusCommand,
186
+ CreateContactFlowCommand,
187
+ CreateContactFlowModuleCommand,
188
+ CreateHoursOfOperationCommand,
189
+ CreateInstanceCommand,
190
+ CreateIntegrationAssociationCommand,
191
+ CreateQueueCommand,
192
+ CreateQuickConnectCommand,
193
+ CreateRoutingProfileCommand,
194
+ CreateRuleCommand,
195
+ CreateSecurityProfileCommand,
196
+ CreateTaskTemplateCommand,
197
+ CreateTrafficDistributionGroupCommand,
198
+ CreateUseCaseCommand,
199
+ CreateUserCommand,
200
+ CreateUserHierarchyGroupCommand,
201
+ CreateVocabularyCommand,
202
+ DeleteContactFlowCommand,
203
+ DeleteContactFlowModuleCommand,
204
+ DeleteHoursOfOperationCommand,
205
+ DeleteInstanceCommand,
206
+ DeleteIntegrationAssociationCommand,
207
+ DeleteQuickConnectCommand,
208
+ DeleteRuleCommand,
209
+ DeleteSecurityProfileCommand,
210
+ DeleteTaskTemplateCommand,
211
+ DeleteTrafficDistributionGroupCommand,
212
+ DeleteUseCaseCommand,
213
+ DeleteUserCommand,
214
+ DeleteUserHierarchyGroupCommand,
215
+ DeleteVocabularyCommand,
216
+ DescribeAgentStatusCommand,
217
+ DescribeContactCommand,
218
+ DescribeContactFlowCommand,
219
+ DescribeContactFlowModuleCommand,
220
+ DescribeHoursOfOperationCommand,
221
+ DescribeInstanceCommand,
222
+ DescribeInstanceAttributeCommand,
223
+ DescribeInstanceStorageConfigCommand,
224
+ DescribePhoneNumberCommand,
225
+ DescribeQueueCommand,
226
+ DescribeQuickConnectCommand,
227
+ DescribeRoutingProfileCommand,
228
+ DescribeRuleCommand,
229
+ DescribeSecurityProfileCommand,
230
+ DescribeTrafficDistributionGroupCommand,
231
+ DescribeUserCommand,
232
+ DescribeUserHierarchyGroupCommand,
233
+ DescribeUserHierarchyStructureCommand,
234
+ DescribeVocabularyCommand,
235
+ DisassociateApprovedOriginCommand,
236
+ DisassociateBotCommand,
237
+ DisassociateInstanceStorageConfigCommand,
238
+ DisassociateLambdaFunctionCommand,
239
+ DisassociateLexBotCommand,
240
+ DisassociatePhoneNumberContactFlowCommand,
241
+ DisassociateQueueQuickConnectsCommand,
242
+ DisassociateRoutingProfileQueuesCommand,
243
+ DisassociateSecurityKeyCommand,
244
+ DismissUserContactCommand,
245
+ GetContactAttributesCommand,
246
+ GetCurrentMetricDataCommand,
247
+ GetCurrentUserDataCommand,
248
+ GetFederationTokenCommand,
249
+ GetMetricDataCommand,
250
+ GetMetricDataV2Command,
251
+ GetTaskTemplateCommand,
252
+ GetTrafficDistributionCommand,
253
+ ListAgentStatusesCommand,
254
+ ListApprovedOriginsCommand,
255
+ ListBotsCommand,
256
+ ListContactFlowModulesCommand,
257
+ ListContactFlowsCommand,
258
+ ListContactReferencesCommand,
259
+ ListDefaultVocabulariesCommand,
260
+ ListHoursOfOperationsCommand,
261
+ ListInstanceAttributesCommand,
262
+ ListInstancesCommand,
263
+ ListInstanceStorageConfigsCommand,
264
+ ListIntegrationAssociationsCommand,
265
+ ListLambdaFunctionsCommand,
266
+ ListLexBotsCommand,
267
+ ListPhoneNumbersCommand,
268
+ ListPhoneNumbersV2Command,
269
+ ListPromptsCommand,
270
+ ListQueueQuickConnectsCommand,
271
+ ListQueuesCommand,
272
+ ListQuickConnectsCommand,
273
+ ListRoutingProfileQueuesCommand,
274
+ ListRoutingProfilesCommand,
275
+ ListRulesCommand,
276
+ ListSecurityKeysCommand,
277
+ ListSecurityProfilePermissionsCommand,
278
+ ListSecurityProfilesCommand,
279
+ ListTagsForResourceCommand,
280
+ ListTaskTemplatesCommand,
281
+ ListTrafficDistributionGroupsCommand,
282
+ ListUseCasesCommand,
283
+ ListUserHierarchyGroupsCommand,
284
+ ListUsersCommand,
285
+ MonitorContactCommand,
286
+ PutUserStatusCommand,
287
+ ReleasePhoneNumberCommand,
288
+ ReplicateInstanceCommand,
289
+ ResumeContactRecordingCommand,
290
+ SearchAvailablePhoneNumbersCommand,
291
+ SearchQueuesCommand,
292
+ SearchRoutingProfilesCommand,
293
+ SearchSecurityProfilesCommand,
294
+ SearchUsersCommand,
295
+ SearchVocabulariesCommand,
296
+ StartChatContactCommand,
297
+ StartContactRecordingCommand,
298
+ StartContactStreamingCommand,
299
+ StartOutboundVoiceContactCommand,
300
+ StartTaskContactCommand,
301
+ StopContactCommand,
302
+ StopContactRecordingCommand,
303
+ StopContactStreamingCommand,
304
+ SuspendContactRecordingCommand,
305
+ TagResourceCommand,
306
+ TransferContactCommand,
307
+ UntagResourceCommand,
308
+ UpdateAgentStatusCommand,
309
+ UpdateContactCommand,
310
+ UpdateContactAttributesCommand,
311
+ UpdateContactFlowContentCommand,
312
+ UpdateContactFlowMetadataCommand,
313
+ UpdateContactFlowModuleContentCommand,
314
+ UpdateContactFlowModuleMetadataCommand,
315
+ UpdateContactFlowNameCommand,
316
+ UpdateContactScheduleCommand,
317
+ UpdateHoursOfOperationCommand,
318
+ UpdateInstanceAttributeCommand,
319
+ UpdateInstanceStorageConfigCommand,
320
+ UpdateParticipantRoleConfigCommand,
321
+ UpdatePhoneNumberCommand,
322
+ UpdateQueueHoursOfOperationCommand,
323
+ UpdateQueueMaxContactsCommand,
324
+ UpdateQueueNameCommand,
325
+ UpdateQueueOutboundCallerConfigCommand,
326
+ UpdateQueueStatusCommand,
327
+ UpdateQuickConnectConfigCommand,
328
+ UpdateQuickConnectNameCommand,
329
+ UpdateRoutingProfileConcurrencyCommand,
330
+ UpdateRoutingProfileDefaultOutboundQueueCommand,
331
+ UpdateRoutingProfileNameCommand,
332
+ UpdateRoutingProfileQueuesCommand,
333
+ UpdateRuleCommand,
334
+ UpdateSecurityProfileCommand,
335
+ UpdateTaskTemplateCommand,
336
+ UpdateTrafficDistributionCommand,
337
+ UpdateUserHierarchyCommand,
338
+ UpdateUserHierarchyGroupNameCommand,
339
+ UpdateUserHierarchyStructureCommand,
340
+ UpdateUserIdentityInfoCommand,
341
+ UpdateUserPhoneConfigCommand,
342
+ UpdateUserRoutingProfileCommand,
343
+ UpdateUserSecurityProfilesCommand,
344
+ };
172
345
  export class Connect extends ConnectClient {
173
- associateApprovedOrigin(args, optionsOrCb, cb) {
174
- const command = new AssociateApprovedOriginCommand(args);
175
- if (typeof optionsOrCb === "function") {
176
- this.send(command, optionsOrCb);
177
- }
178
- else if (typeof cb === "function") {
179
- if (typeof optionsOrCb !== "object")
180
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
181
- this.send(command, optionsOrCb || {}, cb);
182
- }
183
- else {
184
- return this.send(command, optionsOrCb);
185
- }
186
- }
187
- associateBot(args, optionsOrCb, cb) {
188
- const command = new AssociateBotCommand(args);
189
- if (typeof optionsOrCb === "function") {
190
- this.send(command, optionsOrCb);
191
- }
192
- else if (typeof cb === "function") {
193
- if (typeof optionsOrCb !== "object")
194
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
195
- this.send(command, optionsOrCb || {}, cb);
196
- }
197
- else {
198
- return this.send(command, optionsOrCb);
199
- }
200
- }
201
- associateDefaultVocabulary(args, optionsOrCb, cb) {
202
- const command = new AssociateDefaultVocabularyCommand(args);
203
- if (typeof optionsOrCb === "function") {
204
- this.send(command, optionsOrCb);
205
- }
206
- else if (typeof cb === "function") {
207
- if (typeof optionsOrCb !== "object")
208
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
209
- this.send(command, optionsOrCb || {}, cb);
210
- }
211
- else {
212
- return this.send(command, optionsOrCb);
213
- }
214
- }
215
- associateInstanceStorageConfig(args, optionsOrCb, cb) {
216
- const command = new AssociateInstanceStorageConfigCommand(args);
217
- if (typeof optionsOrCb === "function") {
218
- this.send(command, optionsOrCb);
219
- }
220
- else if (typeof cb === "function") {
221
- if (typeof optionsOrCb !== "object")
222
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
223
- this.send(command, optionsOrCb || {}, cb);
224
- }
225
- else {
226
- return this.send(command, optionsOrCb);
227
- }
228
- }
229
- associateLambdaFunction(args, optionsOrCb, cb) {
230
- const command = new AssociateLambdaFunctionCommand(args);
231
- if (typeof optionsOrCb === "function") {
232
- this.send(command, optionsOrCb);
233
- }
234
- else if (typeof cb === "function") {
235
- if (typeof optionsOrCb !== "object")
236
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
237
- this.send(command, optionsOrCb || {}, cb);
238
- }
239
- else {
240
- return this.send(command, optionsOrCb);
241
- }
242
- }
243
- associateLexBot(args, optionsOrCb, cb) {
244
- const command = new AssociateLexBotCommand(args);
245
- if (typeof optionsOrCb === "function") {
246
- this.send(command, optionsOrCb);
247
- }
248
- else if (typeof cb === "function") {
249
- if (typeof optionsOrCb !== "object")
250
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
251
- this.send(command, optionsOrCb || {}, cb);
252
- }
253
- else {
254
- return this.send(command, optionsOrCb);
255
- }
256
- }
257
- associatePhoneNumberContactFlow(args, optionsOrCb, cb) {
258
- const command = new AssociatePhoneNumberContactFlowCommand(args);
259
- if (typeof optionsOrCb === "function") {
260
- this.send(command, optionsOrCb);
261
- }
262
- else if (typeof cb === "function") {
263
- if (typeof optionsOrCb !== "object")
264
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
265
- this.send(command, optionsOrCb || {}, cb);
266
- }
267
- else {
268
- return this.send(command, optionsOrCb);
269
- }
270
- }
271
- associateQueueQuickConnects(args, optionsOrCb, cb) {
272
- const command = new AssociateQueueQuickConnectsCommand(args);
273
- if (typeof optionsOrCb === "function") {
274
- this.send(command, optionsOrCb);
275
- }
276
- else if (typeof cb === "function") {
277
- if (typeof optionsOrCb !== "object")
278
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
279
- this.send(command, optionsOrCb || {}, cb);
280
- }
281
- else {
282
- return this.send(command, optionsOrCb);
283
- }
284
- }
285
- associateRoutingProfileQueues(args, optionsOrCb, cb) {
286
- const command = new AssociateRoutingProfileQueuesCommand(args);
287
- if (typeof optionsOrCb === "function") {
288
- this.send(command, optionsOrCb);
289
- }
290
- else if (typeof cb === "function") {
291
- if (typeof optionsOrCb !== "object")
292
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
293
- this.send(command, optionsOrCb || {}, cb);
294
- }
295
- else {
296
- return this.send(command, optionsOrCb);
297
- }
298
- }
299
- associateSecurityKey(args, optionsOrCb, cb) {
300
- const command = new AssociateSecurityKeyCommand(args);
301
- if (typeof optionsOrCb === "function") {
302
- this.send(command, optionsOrCb);
303
- }
304
- else if (typeof cb === "function") {
305
- if (typeof optionsOrCb !== "object")
306
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
307
- this.send(command, optionsOrCb || {}, cb);
308
- }
309
- else {
310
- return this.send(command, optionsOrCb);
311
- }
312
- }
313
- claimPhoneNumber(args, optionsOrCb, cb) {
314
- const command = new ClaimPhoneNumberCommand(args);
315
- if (typeof optionsOrCb === "function") {
316
- this.send(command, optionsOrCb);
317
- }
318
- else if (typeof cb === "function") {
319
- if (typeof optionsOrCb !== "object")
320
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
321
- this.send(command, optionsOrCb || {}, cb);
322
- }
323
- else {
324
- return this.send(command, optionsOrCb);
325
- }
326
- }
327
- createAgentStatus(args, optionsOrCb, cb) {
328
- const command = new CreateAgentStatusCommand(args);
329
- if (typeof optionsOrCb === "function") {
330
- this.send(command, optionsOrCb);
331
- }
332
- else if (typeof cb === "function") {
333
- if (typeof optionsOrCb !== "object")
334
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
335
- this.send(command, optionsOrCb || {}, cb);
336
- }
337
- else {
338
- return this.send(command, optionsOrCb);
339
- }
340
- }
341
- createContactFlow(args, optionsOrCb, cb) {
342
- const command = new CreateContactFlowCommand(args);
343
- if (typeof optionsOrCb === "function") {
344
- this.send(command, optionsOrCb);
345
- }
346
- else if (typeof cb === "function") {
347
- if (typeof optionsOrCb !== "object")
348
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
349
- this.send(command, optionsOrCb || {}, cb);
350
- }
351
- else {
352
- return this.send(command, optionsOrCb);
353
- }
354
- }
355
- createContactFlowModule(args, optionsOrCb, cb) {
356
- const command = new CreateContactFlowModuleCommand(args);
357
- if (typeof optionsOrCb === "function") {
358
- this.send(command, optionsOrCb);
359
- }
360
- else if (typeof cb === "function") {
361
- if (typeof optionsOrCb !== "object")
362
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
363
- this.send(command, optionsOrCb || {}, cb);
364
- }
365
- else {
366
- return this.send(command, optionsOrCb);
367
- }
368
- }
369
- createHoursOfOperation(args, optionsOrCb, cb) {
370
- const command = new CreateHoursOfOperationCommand(args);
371
- if (typeof optionsOrCb === "function") {
372
- this.send(command, optionsOrCb);
373
- }
374
- else if (typeof cb === "function") {
375
- if (typeof optionsOrCb !== "object")
376
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
377
- this.send(command, optionsOrCb || {}, cb);
378
- }
379
- else {
380
- return this.send(command, optionsOrCb);
381
- }
382
- }
383
- createInstance(args, optionsOrCb, cb) {
384
- const command = new CreateInstanceCommand(args);
385
- if (typeof optionsOrCb === "function") {
386
- this.send(command, optionsOrCb);
387
- }
388
- else if (typeof cb === "function") {
389
- if (typeof optionsOrCb !== "object")
390
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
391
- this.send(command, optionsOrCb || {}, cb);
392
- }
393
- else {
394
- return this.send(command, optionsOrCb);
395
- }
396
- }
397
- createIntegrationAssociation(args, optionsOrCb, cb) {
398
- const command = new CreateIntegrationAssociationCommand(args);
399
- if (typeof optionsOrCb === "function") {
400
- this.send(command, optionsOrCb);
401
- }
402
- else if (typeof cb === "function") {
403
- if (typeof optionsOrCb !== "object")
404
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
405
- this.send(command, optionsOrCb || {}, cb);
406
- }
407
- else {
408
- return this.send(command, optionsOrCb);
409
- }
410
- }
411
- createQueue(args, optionsOrCb, cb) {
412
- const command = new CreateQueueCommand(args);
413
- if (typeof optionsOrCb === "function") {
414
- this.send(command, optionsOrCb);
415
- }
416
- else if (typeof cb === "function") {
417
- if (typeof optionsOrCb !== "object")
418
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
419
- this.send(command, optionsOrCb || {}, cb);
420
- }
421
- else {
422
- return this.send(command, optionsOrCb);
423
- }
424
- }
425
- createQuickConnect(args, optionsOrCb, cb) {
426
- const command = new CreateQuickConnectCommand(args);
427
- if (typeof optionsOrCb === "function") {
428
- this.send(command, optionsOrCb);
429
- }
430
- else if (typeof cb === "function") {
431
- if (typeof optionsOrCb !== "object")
432
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
433
- this.send(command, optionsOrCb || {}, cb);
434
- }
435
- else {
436
- return this.send(command, optionsOrCb);
437
- }
438
- }
439
- createRoutingProfile(args, optionsOrCb, cb) {
440
- const command = new CreateRoutingProfileCommand(args);
441
- if (typeof optionsOrCb === "function") {
442
- this.send(command, optionsOrCb);
443
- }
444
- else if (typeof cb === "function") {
445
- if (typeof optionsOrCb !== "object")
446
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
447
- this.send(command, optionsOrCb || {}, cb);
448
- }
449
- else {
450
- return this.send(command, optionsOrCb);
451
- }
452
- }
453
- createRule(args, optionsOrCb, cb) {
454
- const command = new CreateRuleCommand(args);
455
- if (typeof optionsOrCb === "function") {
456
- this.send(command, optionsOrCb);
457
- }
458
- else if (typeof cb === "function") {
459
- if (typeof optionsOrCb !== "object")
460
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
461
- this.send(command, optionsOrCb || {}, cb);
462
- }
463
- else {
464
- return this.send(command, optionsOrCb);
465
- }
466
- }
467
- createSecurityProfile(args, optionsOrCb, cb) {
468
- const command = new CreateSecurityProfileCommand(args);
469
- if (typeof optionsOrCb === "function") {
470
- this.send(command, optionsOrCb);
471
- }
472
- else if (typeof cb === "function") {
473
- if (typeof optionsOrCb !== "object")
474
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
475
- this.send(command, optionsOrCb || {}, cb);
476
- }
477
- else {
478
- return this.send(command, optionsOrCb);
479
- }
480
- }
481
- createTaskTemplate(args, optionsOrCb, cb) {
482
- const command = new CreateTaskTemplateCommand(args);
483
- if (typeof optionsOrCb === "function") {
484
- this.send(command, optionsOrCb);
485
- }
486
- else if (typeof cb === "function") {
487
- if (typeof optionsOrCb !== "object")
488
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
489
- this.send(command, optionsOrCb || {}, cb);
490
- }
491
- else {
492
- return this.send(command, optionsOrCb);
493
- }
494
- }
495
- createTrafficDistributionGroup(args, optionsOrCb, cb) {
496
- const command = new CreateTrafficDistributionGroupCommand(args);
497
- if (typeof optionsOrCb === "function") {
498
- this.send(command, optionsOrCb);
499
- }
500
- else if (typeof cb === "function") {
501
- if (typeof optionsOrCb !== "object")
502
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
503
- this.send(command, optionsOrCb || {}, cb);
504
- }
505
- else {
506
- return this.send(command, optionsOrCb);
507
- }
508
- }
509
- createUseCase(args, optionsOrCb, cb) {
510
- const command = new CreateUseCaseCommand(args);
511
- if (typeof optionsOrCb === "function") {
512
- this.send(command, optionsOrCb);
513
- }
514
- else if (typeof cb === "function") {
515
- if (typeof optionsOrCb !== "object")
516
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
517
- this.send(command, optionsOrCb || {}, cb);
518
- }
519
- else {
520
- return this.send(command, optionsOrCb);
521
- }
522
- }
523
- createUser(args, optionsOrCb, cb) {
524
- const command = new CreateUserCommand(args);
525
- if (typeof optionsOrCb === "function") {
526
- this.send(command, optionsOrCb);
527
- }
528
- else if (typeof cb === "function") {
529
- if (typeof optionsOrCb !== "object")
530
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
531
- this.send(command, optionsOrCb || {}, cb);
532
- }
533
- else {
534
- return this.send(command, optionsOrCb);
535
- }
536
- }
537
- createUserHierarchyGroup(args, optionsOrCb, cb) {
538
- const command = new CreateUserHierarchyGroupCommand(args);
539
- if (typeof optionsOrCb === "function") {
540
- this.send(command, optionsOrCb);
541
- }
542
- else if (typeof cb === "function") {
543
- if (typeof optionsOrCb !== "object")
544
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
545
- this.send(command, optionsOrCb || {}, cb);
546
- }
547
- else {
548
- return this.send(command, optionsOrCb);
549
- }
550
- }
551
- createVocabulary(args, optionsOrCb, cb) {
552
- const command = new CreateVocabularyCommand(args);
553
- if (typeof optionsOrCb === "function") {
554
- this.send(command, optionsOrCb);
555
- }
556
- else if (typeof cb === "function") {
557
- if (typeof optionsOrCb !== "object")
558
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
559
- this.send(command, optionsOrCb || {}, cb);
560
- }
561
- else {
562
- return this.send(command, optionsOrCb);
563
- }
564
- }
565
- deleteContactFlow(args, optionsOrCb, cb) {
566
- const command = new DeleteContactFlowCommand(args);
567
- if (typeof optionsOrCb === "function") {
568
- this.send(command, optionsOrCb);
569
- }
570
- else if (typeof cb === "function") {
571
- if (typeof optionsOrCb !== "object")
572
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
573
- this.send(command, optionsOrCb || {}, cb);
574
- }
575
- else {
576
- return this.send(command, optionsOrCb);
577
- }
578
- }
579
- deleteContactFlowModule(args, optionsOrCb, cb) {
580
- const command = new DeleteContactFlowModuleCommand(args);
581
- if (typeof optionsOrCb === "function") {
582
- this.send(command, optionsOrCb);
583
- }
584
- else if (typeof cb === "function") {
585
- if (typeof optionsOrCb !== "object")
586
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
587
- this.send(command, optionsOrCb || {}, cb);
588
- }
589
- else {
590
- return this.send(command, optionsOrCb);
591
- }
592
- }
593
- deleteHoursOfOperation(args, optionsOrCb, cb) {
594
- const command = new DeleteHoursOfOperationCommand(args);
595
- if (typeof optionsOrCb === "function") {
596
- this.send(command, optionsOrCb);
597
- }
598
- else if (typeof cb === "function") {
599
- if (typeof optionsOrCb !== "object")
600
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
601
- this.send(command, optionsOrCb || {}, cb);
602
- }
603
- else {
604
- return this.send(command, optionsOrCb);
605
- }
606
- }
607
- deleteInstance(args, optionsOrCb, cb) {
608
- const command = new DeleteInstanceCommand(args);
609
- if (typeof optionsOrCb === "function") {
610
- this.send(command, optionsOrCb);
611
- }
612
- else if (typeof cb === "function") {
613
- if (typeof optionsOrCb !== "object")
614
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
615
- this.send(command, optionsOrCb || {}, cb);
616
- }
617
- else {
618
- return this.send(command, optionsOrCb);
619
- }
620
- }
621
- deleteIntegrationAssociation(args, optionsOrCb, cb) {
622
- const command = new DeleteIntegrationAssociationCommand(args);
623
- if (typeof optionsOrCb === "function") {
624
- this.send(command, optionsOrCb);
625
- }
626
- else if (typeof cb === "function") {
627
- if (typeof optionsOrCb !== "object")
628
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
629
- this.send(command, optionsOrCb || {}, cb);
630
- }
631
- else {
632
- return this.send(command, optionsOrCb);
633
- }
634
- }
635
- deleteQuickConnect(args, optionsOrCb, cb) {
636
- const command = new DeleteQuickConnectCommand(args);
637
- if (typeof optionsOrCb === "function") {
638
- this.send(command, optionsOrCb);
639
- }
640
- else if (typeof cb === "function") {
641
- if (typeof optionsOrCb !== "object")
642
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
643
- this.send(command, optionsOrCb || {}, cb);
644
- }
645
- else {
646
- return this.send(command, optionsOrCb);
647
- }
648
- }
649
- deleteRule(args, optionsOrCb, cb) {
650
- const command = new DeleteRuleCommand(args);
651
- if (typeof optionsOrCb === "function") {
652
- this.send(command, optionsOrCb);
653
- }
654
- else if (typeof cb === "function") {
655
- if (typeof optionsOrCb !== "object")
656
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
657
- this.send(command, optionsOrCb || {}, cb);
658
- }
659
- else {
660
- return this.send(command, optionsOrCb);
661
- }
662
- }
663
- deleteSecurityProfile(args, optionsOrCb, cb) {
664
- const command = new DeleteSecurityProfileCommand(args);
665
- if (typeof optionsOrCb === "function") {
666
- this.send(command, optionsOrCb);
667
- }
668
- else if (typeof cb === "function") {
669
- if (typeof optionsOrCb !== "object")
670
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
671
- this.send(command, optionsOrCb || {}, cb);
672
- }
673
- else {
674
- return this.send(command, optionsOrCb);
675
- }
676
- }
677
- deleteTaskTemplate(args, optionsOrCb, cb) {
678
- const command = new DeleteTaskTemplateCommand(args);
679
- if (typeof optionsOrCb === "function") {
680
- this.send(command, optionsOrCb);
681
- }
682
- else if (typeof cb === "function") {
683
- if (typeof optionsOrCb !== "object")
684
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
685
- this.send(command, optionsOrCb || {}, cb);
686
- }
687
- else {
688
- return this.send(command, optionsOrCb);
689
- }
690
- }
691
- deleteTrafficDistributionGroup(args, optionsOrCb, cb) {
692
- const command = new DeleteTrafficDistributionGroupCommand(args);
693
- if (typeof optionsOrCb === "function") {
694
- this.send(command, optionsOrCb);
695
- }
696
- else if (typeof cb === "function") {
697
- if (typeof optionsOrCb !== "object")
698
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
699
- this.send(command, optionsOrCb || {}, cb);
700
- }
701
- else {
702
- return this.send(command, optionsOrCb);
703
- }
704
- }
705
- deleteUseCase(args, optionsOrCb, cb) {
706
- const command = new DeleteUseCaseCommand(args);
707
- if (typeof optionsOrCb === "function") {
708
- this.send(command, optionsOrCb);
709
- }
710
- else if (typeof cb === "function") {
711
- if (typeof optionsOrCb !== "object")
712
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
713
- this.send(command, optionsOrCb || {}, cb);
714
- }
715
- else {
716
- return this.send(command, optionsOrCb);
717
- }
718
- }
719
- deleteUser(args, optionsOrCb, cb) {
720
- const command = new DeleteUserCommand(args);
721
- if (typeof optionsOrCb === "function") {
722
- this.send(command, optionsOrCb);
723
- }
724
- else if (typeof cb === "function") {
725
- if (typeof optionsOrCb !== "object")
726
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
727
- this.send(command, optionsOrCb || {}, cb);
728
- }
729
- else {
730
- return this.send(command, optionsOrCb);
731
- }
732
- }
733
- deleteUserHierarchyGroup(args, optionsOrCb, cb) {
734
- const command = new DeleteUserHierarchyGroupCommand(args);
735
- if (typeof optionsOrCb === "function") {
736
- this.send(command, optionsOrCb);
737
- }
738
- else if (typeof cb === "function") {
739
- if (typeof optionsOrCb !== "object")
740
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
741
- this.send(command, optionsOrCb || {}, cb);
742
- }
743
- else {
744
- return this.send(command, optionsOrCb);
745
- }
746
- }
747
- deleteVocabulary(args, optionsOrCb, cb) {
748
- const command = new DeleteVocabularyCommand(args);
749
- if (typeof optionsOrCb === "function") {
750
- this.send(command, optionsOrCb);
751
- }
752
- else if (typeof cb === "function") {
753
- if (typeof optionsOrCb !== "object")
754
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
755
- this.send(command, optionsOrCb || {}, cb);
756
- }
757
- else {
758
- return this.send(command, optionsOrCb);
759
- }
760
- }
761
- describeAgentStatus(args, optionsOrCb, cb) {
762
- const command = new DescribeAgentStatusCommand(args);
763
- if (typeof optionsOrCb === "function") {
764
- this.send(command, optionsOrCb);
765
- }
766
- else if (typeof cb === "function") {
767
- if (typeof optionsOrCb !== "object")
768
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
769
- this.send(command, optionsOrCb || {}, cb);
770
- }
771
- else {
772
- return this.send(command, optionsOrCb);
773
- }
774
- }
775
- describeContact(args, optionsOrCb, cb) {
776
- const command = new DescribeContactCommand(args);
777
- if (typeof optionsOrCb === "function") {
778
- this.send(command, optionsOrCb);
779
- }
780
- else if (typeof cb === "function") {
781
- if (typeof optionsOrCb !== "object")
782
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
783
- this.send(command, optionsOrCb || {}, cb);
784
- }
785
- else {
786
- return this.send(command, optionsOrCb);
787
- }
788
- }
789
- describeContactFlow(args, optionsOrCb, cb) {
790
- const command = new DescribeContactFlowCommand(args);
791
- if (typeof optionsOrCb === "function") {
792
- this.send(command, optionsOrCb);
793
- }
794
- else if (typeof cb === "function") {
795
- if (typeof optionsOrCb !== "object")
796
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
797
- this.send(command, optionsOrCb || {}, cb);
798
- }
799
- else {
800
- return this.send(command, optionsOrCb);
801
- }
802
- }
803
- describeContactFlowModule(args, optionsOrCb, cb) {
804
- const command = new DescribeContactFlowModuleCommand(args);
805
- if (typeof optionsOrCb === "function") {
806
- this.send(command, optionsOrCb);
807
- }
808
- else if (typeof cb === "function") {
809
- if (typeof optionsOrCb !== "object")
810
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
811
- this.send(command, optionsOrCb || {}, cb);
812
- }
813
- else {
814
- return this.send(command, optionsOrCb);
815
- }
816
- }
817
- describeHoursOfOperation(args, optionsOrCb, cb) {
818
- const command = new DescribeHoursOfOperationCommand(args);
819
- if (typeof optionsOrCb === "function") {
820
- this.send(command, optionsOrCb);
821
- }
822
- else if (typeof cb === "function") {
823
- if (typeof optionsOrCb !== "object")
824
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
825
- this.send(command, optionsOrCb || {}, cb);
826
- }
827
- else {
828
- return this.send(command, optionsOrCb);
829
- }
830
- }
831
- describeInstance(args, optionsOrCb, cb) {
832
- const command = new DescribeInstanceCommand(args);
833
- if (typeof optionsOrCb === "function") {
834
- this.send(command, optionsOrCb);
835
- }
836
- else if (typeof cb === "function") {
837
- if (typeof optionsOrCb !== "object")
838
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
839
- this.send(command, optionsOrCb || {}, cb);
840
- }
841
- else {
842
- return this.send(command, optionsOrCb);
843
- }
844
- }
845
- describeInstanceAttribute(args, optionsOrCb, cb) {
846
- const command = new DescribeInstanceAttributeCommand(args);
847
- if (typeof optionsOrCb === "function") {
848
- this.send(command, optionsOrCb);
849
- }
850
- else if (typeof cb === "function") {
851
- if (typeof optionsOrCb !== "object")
852
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
853
- this.send(command, optionsOrCb || {}, cb);
854
- }
855
- else {
856
- return this.send(command, optionsOrCb);
857
- }
858
- }
859
- describeInstanceStorageConfig(args, optionsOrCb, cb) {
860
- const command = new DescribeInstanceStorageConfigCommand(args);
861
- if (typeof optionsOrCb === "function") {
862
- this.send(command, optionsOrCb);
863
- }
864
- else if (typeof cb === "function") {
865
- if (typeof optionsOrCb !== "object")
866
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
867
- this.send(command, optionsOrCb || {}, cb);
868
- }
869
- else {
870
- return this.send(command, optionsOrCb);
871
- }
872
- }
873
- describePhoneNumber(args, optionsOrCb, cb) {
874
- const command = new DescribePhoneNumberCommand(args);
875
- if (typeof optionsOrCb === "function") {
876
- this.send(command, optionsOrCb);
877
- }
878
- else if (typeof cb === "function") {
879
- if (typeof optionsOrCb !== "object")
880
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
881
- this.send(command, optionsOrCb || {}, cb);
882
- }
883
- else {
884
- return this.send(command, optionsOrCb);
885
- }
886
- }
887
- describeQueue(args, optionsOrCb, cb) {
888
- const command = new DescribeQueueCommand(args);
889
- if (typeof optionsOrCb === "function") {
890
- this.send(command, optionsOrCb);
891
- }
892
- else if (typeof cb === "function") {
893
- if (typeof optionsOrCb !== "object")
894
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
895
- this.send(command, optionsOrCb || {}, cb);
896
- }
897
- else {
898
- return this.send(command, optionsOrCb);
899
- }
900
- }
901
- describeQuickConnect(args, optionsOrCb, cb) {
902
- const command = new DescribeQuickConnectCommand(args);
903
- if (typeof optionsOrCb === "function") {
904
- this.send(command, optionsOrCb);
905
- }
906
- else if (typeof cb === "function") {
907
- if (typeof optionsOrCb !== "object")
908
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
909
- this.send(command, optionsOrCb || {}, cb);
910
- }
911
- else {
912
- return this.send(command, optionsOrCb);
913
- }
914
- }
915
- describeRoutingProfile(args, optionsOrCb, cb) {
916
- const command = new DescribeRoutingProfileCommand(args);
917
- if (typeof optionsOrCb === "function") {
918
- this.send(command, optionsOrCb);
919
- }
920
- else if (typeof cb === "function") {
921
- if (typeof optionsOrCb !== "object")
922
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
923
- this.send(command, optionsOrCb || {}, cb);
924
- }
925
- else {
926
- return this.send(command, optionsOrCb);
927
- }
928
- }
929
- describeRule(args, optionsOrCb, cb) {
930
- const command = new DescribeRuleCommand(args);
931
- if (typeof optionsOrCb === "function") {
932
- this.send(command, optionsOrCb);
933
- }
934
- else if (typeof cb === "function") {
935
- if (typeof optionsOrCb !== "object")
936
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
937
- this.send(command, optionsOrCb || {}, cb);
938
- }
939
- else {
940
- return this.send(command, optionsOrCb);
941
- }
942
- }
943
- describeSecurityProfile(args, optionsOrCb, cb) {
944
- const command = new DescribeSecurityProfileCommand(args);
945
- if (typeof optionsOrCb === "function") {
946
- this.send(command, optionsOrCb);
947
- }
948
- else if (typeof cb === "function") {
949
- if (typeof optionsOrCb !== "object")
950
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
951
- this.send(command, optionsOrCb || {}, cb);
952
- }
953
- else {
954
- return this.send(command, optionsOrCb);
955
- }
956
- }
957
- describeTrafficDistributionGroup(args, optionsOrCb, cb) {
958
- const command = new DescribeTrafficDistributionGroupCommand(args);
959
- if (typeof optionsOrCb === "function") {
960
- this.send(command, optionsOrCb);
961
- }
962
- else if (typeof cb === "function") {
963
- if (typeof optionsOrCb !== "object")
964
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
965
- this.send(command, optionsOrCb || {}, cb);
966
- }
967
- else {
968
- return this.send(command, optionsOrCb);
969
- }
970
- }
971
- describeUser(args, optionsOrCb, cb) {
972
- const command = new DescribeUserCommand(args);
973
- if (typeof optionsOrCb === "function") {
974
- this.send(command, optionsOrCb);
975
- }
976
- else if (typeof cb === "function") {
977
- if (typeof optionsOrCb !== "object")
978
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
979
- this.send(command, optionsOrCb || {}, cb);
980
- }
981
- else {
982
- return this.send(command, optionsOrCb);
983
- }
984
- }
985
- describeUserHierarchyGroup(args, optionsOrCb, cb) {
986
- const command = new DescribeUserHierarchyGroupCommand(args);
987
- if (typeof optionsOrCb === "function") {
988
- this.send(command, optionsOrCb);
989
- }
990
- else if (typeof cb === "function") {
991
- if (typeof optionsOrCb !== "object")
992
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
993
- this.send(command, optionsOrCb || {}, cb);
994
- }
995
- else {
996
- return this.send(command, optionsOrCb);
997
- }
998
- }
999
- describeUserHierarchyStructure(args, optionsOrCb, cb) {
1000
- const command = new DescribeUserHierarchyStructureCommand(args);
1001
- if (typeof optionsOrCb === "function") {
1002
- this.send(command, optionsOrCb);
1003
- }
1004
- else if (typeof cb === "function") {
1005
- if (typeof optionsOrCb !== "object")
1006
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
1007
- this.send(command, optionsOrCb || {}, cb);
1008
- }
1009
- else {
1010
- return this.send(command, optionsOrCb);
1011
- }
1012
- }
1013
- describeVocabulary(args, optionsOrCb, cb) {
1014
- const command = new DescribeVocabularyCommand(args);
1015
- if (typeof optionsOrCb === "function") {
1016
- this.send(command, optionsOrCb);
1017
- }
1018
- else if (typeof cb === "function") {
1019
- if (typeof optionsOrCb !== "object")
1020
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
1021
- this.send(command, optionsOrCb || {}, cb);
1022
- }
1023
- else {
1024
- return this.send(command, optionsOrCb);
1025
- }
1026
- }
1027
- disassociateApprovedOrigin(args, optionsOrCb, cb) {
1028
- const command = new DisassociateApprovedOriginCommand(args);
1029
- if (typeof optionsOrCb === "function") {
1030
- this.send(command, optionsOrCb);
1031
- }
1032
- else if (typeof cb === "function") {
1033
- if (typeof optionsOrCb !== "object")
1034
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
1035
- this.send(command, optionsOrCb || {}, cb);
1036
- }
1037
- else {
1038
- return this.send(command, optionsOrCb);
1039
- }
1040
- }
1041
- disassociateBot(args, optionsOrCb, cb) {
1042
- const command = new DisassociateBotCommand(args);
1043
- if (typeof optionsOrCb === "function") {
1044
- this.send(command, optionsOrCb);
1045
- }
1046
- else if (typeof cb === "function") {
1047
- if (typeof optionsOrCb !== "object")
1048
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
1049
- this.send(command, optionsOrCb || {}, cb);
1050
- }
1051
- else {
1052
- return this.send(command, optionsOrCb);
1053
- }
1054
- }
1055
- disassociateInstanceStorageConfig(args, optionsOrCb, cb) {
1056
- const command = new DisassociateInstanceStorageConfigCommand(args);
1057
- if (typeof optionsOrCb === "function") {
1058
- this.send(command, optionsOrCb);
1059
- }
1060
- else if (typeof cb === "function") {
1061
- if (typeof optionsOrCb !== "object")
1062
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
1063
- this.send(command, optionsOrCb || {}, cb);
1064
- }
1065
- else {
1066
- return this.send(command, optionsOrCb);
1067
- }
1068
- }
1069
- disassociateLambdaFunction(args, optionsOrCb, cb) {
1070
- const command = new DisassociateLambdaFunctionCommand(args);
1071
- if (typeof optionsOrCb === "function") {
1072
- this.send(command, optionsOrCb);
1073
- }
1074
- else if (typeof cb === "function") {
1075
- if (typeof optionsOrCb !== "object")
1076
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
1077
- this.send(command, optionsOrCb || {}, cb);
1078
- }
1079
- else {
1080
- return this.send(command, optionsOrCb);
1081
- }
1082
- }
1083
- disassociateLexBot(args, optionsOrCb, cb) {
1084
- const command = new DisassociateLexBotCommand(args);
1085
- if (typeof optionsOrCb === "function") {
1086
- this.send(command, optionsOrCb);
1087
- }
1088
- else if (typeof cb === "function") {
1089
- if (typeof optionsOrCb !== "object")
1090
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
1091
- this.send(command, optionsOrCb || {}, cb);
1092
- }
1093
- else {
1094
- return this.send(command, optionsOrCb);
1095
- }
1096
- }
1097
- disassociatePhoneNumberContactFlow(args, optionsOrCb, cb) {
1098
- const command = new DisassociatePhoneNumberContactFlowCommand(args);
1099
- if (typeof optionsOrCb === "function") {
1100
- this.send(command, optionsOrCb);
1101
- }
1102
- else if (typeof cb === "function") {
1103
- if (typeof optionsOrCb !== "object")
1104
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
1105
- this.send(command, optionsOrCb || {}, cb);
1106
- }
1107
- else {
1108
- return this.send(command, optionsOrCb);
1109
- }
1110
- }
1111
- disassociateQueueQuickConnects(args, optionsOrCb, cb) {
1112
- const command = new DisassociateQueueQuickConnectsCommand(args);
1113
- if (typeof optionsOrCb === "function") {
1114
- this.send(command, optionsOrCb);
1115
- }
1116
- else if (typeof cb === "function") {
1117
- if (typeof optionsOrCb !== "object")
1118
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
1119
- this.send(command, optionsOrCb || {}, cb);
1120
- }
1121
- else {
1122
- return this.send(command, optionsOrCb);
1123
- }
1124
- }
1125
- disassociateRoutingProfileQueues(args, optionsOrCb, cb) {
1126
- const command = new DisassociateRoutingProfileQueuesCommand(args);
1127
- if (typeof optionsOrCb === "function") {
1128
- this.send(command, optionsOrCb);
1129
- }
1130
- else if (typeof cb === "function") {
1131
- if (typeof optionsOrCb !== "object")
1132
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
1133
- this.send(command, optionsOrCb || {}, cb);
1134
- }
1135
- else {
1136
- return this.send(command, optionsOrCb);
1137
- }
1138
- }
1139
- disassociateSecurityKey(args, optionsOrCb, cb) {
1140
- const command = new DisassociateSecurityKeyCommand(args);
1141
- if (typeof optionsOrCb === "function") {
1142
- this.send(command, optionsOrCb);
1143
- }
1144
- else if (typeof cb === "function") {
1145
- if (typeof optionsOrCb !== "object")
1146
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
1147
- this.send(command, optionsOrCb || {}, cb);
1148
- }
1149
- else {
1150
- return this.send(command, optionsOrCb);
1151
- }
1152
- }
1153
- dismissUserContact(args, optionsOrCb, cb) {
1154
- const command = new DismissUserContactCommand(args);
1155
- if (typeof optionsOrCb === "function") {
1156
- this.send(command, optionsOrCb);
1157
- }
1158
- else if (typeof cb === "function") {
1159
- if (typeof optionsOrCb !== "object")
1160
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
1161
- this.send(command, optionsOrCb || {}, cb);
1162
- }
1163
- else {
1164
- return this.send(command, optionsOrCb);
1165
- }
1166
- }
1167
- getContactAttributes(args, optionsOrCb, cb) {
1168
- const command = new GetContactAttributesCommand(args);
1169
- if (typeof optionsOrCb === "function") {
1170
- this.send(command, optionsOrCb);
1171
- }
1172
- else if (typeof cb === "function") {
1173
- if (typeof optionsOrCb !== "object")
1174
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
1175
- this.send(command, optionsOrCb || {}, cb);
1176
- }
1177
- else {
1178
- return this.send(command, optionsOrCb);
1179
- }
1180
- }
1181
- getCurrentMetricData(args, optionsOrCb, cb) {
1182
- const command = new GetCurrentMetricDataCommand(args);
1183
- if (typeof optionsOrCb === "function") {
1184
- this.send(command, optionsOrCb);
1185
- }
1186
- else if (typeof cb === "function") {
1187
- if (typeof optionsOrCb !== "object")
1188
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
1189
- this.send(command, optionsOrCb || {}, cb);
1190
- }
1191
- else {
1192
- return this.send(command, optionsOrCb);
1193
- }
1194
- }
1195
- getCurrentUserData(args, optionsOrCb, cb) {
1196
- const command = new GetCurrentUserDataCommand(args);
1197
- if (typeof optionsOrCb === "function") {
1198
- this.send(command, optionsOrCb);
1199
- }
1200
- else if (typeof cb === "function") {
1201
- if (typeof optionsOrCb !== "object")
1202
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
1203
- this.send(command, optionsOrCb || {}, cb);
1204
- }
1205
- else {
1206
- return this.send(command, optionsOrCb);
1207
- }
1208
- }
1209
- getFederationToken(args, optionsOrCb, cb) {
1210
- const command = new GetFederationTokenCommand(args);
1211
- if (typeof optionsOrCb === "function") {
1212
- this.send(command, optionsOrCb);
1213
- }
1214
- else if (typeof cb === "function") {
1215
- if (typeof optionsOrCb !== "object")
1216
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
1217
- this.send(command, optionsOrCb || {}, cb);
1218
- }
1219
- else {
1220
- return this.send(command, optionsOrCb);
1221
- }
1222
- }
1223
- getMetricData(args, optionsOrCb, cb) {
1224
- const command = new GetMetricDataCommand(args);
1225
- if (typeof optionsOrCb === "function") {
1226
- this.send(command, optionsOrCb);
1227
- }
1228
- else if (typeof cb === "function") {
1229
- if (typeof optionsOrCb !== "object")
1230
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
1231
- this.send(command, optionsOrCb || {}, cb);
1232
- }
1233
- else {
1234
- return this.send(command, optionsOrCb);
1235
- }
1236
- }
1237
- getMetricDataV2(args, optionsOrCb, cb) {
1238
- const command = new GetMetricDataV2Command(args);
1239
- if (typeof optionsOrCb === "function") {
1240
- this.send(command, optionsOrCb);
1241
- }
1242
- else if (typeof cb === "function") {
1243
- if (typeof optionsOrCb !== "object")
1244
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
1245
- this.send(command, optionsOrCb || {}, cb);
1246
- }
1247
- else {
1248
- return this.send(command, optionsOrCb);
1249
- }
1250
- }
1251
- getTaskTemplate(args, optionsOrCb, cb) {
1252
- const command = new GetTaskTemplateCommand(args);
1253
- if (typeof optionsOrCb === "function") {
1254
- this.send(command, optionsOrCb);
1255
- }
1256
- else if (typeof cb === "function") {
1257
- if (typeof optionsOrCb !== "object")
1258
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
1259
- this.send(command, optionsOrCb || {}, cb);
1260
- }
1261
- else {
1262
- return this.send(command, optionsOrCb);
1263
- }
1264
- }
1265
- getTrafficDistribution(args, optionsOrCb, cb) {
1266
- const command = new GetTrafficDistributionCommand(args);
1267
- if (typeof optionsOrCb === "function") {
1268
- this.send(command, optionsOrCb);
1269
- }
1270
- else if (typeof cb === "function") {
1271
- if (typeof optionsOrCb !== "object")
1272
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
1273
- this.send(command, optionsOrCb || {}, cb);
1274
- }
1275
- else {
1276
- return this.send(command, optionsOrCb);
1277
- }
1278
- }
1279
- listAgentStatuses(args, optionsOrCb, cb) {
1280
- const command = new ListAgentStatusesCommand(args);
1281
- if (typeof optionsOrCb === "function") {
1282
- this.send(command, optionsOrCb);
1283
- }
1284
- else if (typeof cb === "function") {
1285
- if (typeof optionsOrCb !== "object")
1286
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
1287
- this.send(command, optionsOrCb || {}, cb);
1288
- }
1289
- else {
1290
- return this.send(command, optionsOrCb);
1291
- }
1292
- }
1293
- listApprovedOrigins(args, optionsOrCb, cb) {
1294
- const command = new ListApprovedOriginsCommand(args);
1295
- if (typeof optionsOrCb === "function") {
1296
- this.send(command, optionsOrCb);
1297
- }
1298
- else if (typeof cb === "function") {
1299
- if (typeof optionsOrCb !== "object")
1300
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
1301
- this.send(command, optionsOrCb || {}, cb);
1302
- }
1303
- else {
1304
- return this.send(command, optionsOrCb);
1305
- }
1306
- }
1307
- listBots(args, optionsOrCb, cb) {
1308
- const command = new ListBotsCommand(args);
1309
- if (typeof optionsOrCb === "function") {
1310
- this.send(command, optionsOrCb);
1311
- }
1312
- else if (typeof cb === "function") {
1313
- if (typeof optionsOrCb !== "object")
1314
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
1315
- this.send(command, optionsOrCb || {}, cb);
1316
- }
1317
- else {
1318
- return this.send(command, optionsOrCb);
1319
- }
1320
- }
1321
- listContactFlowModules(args, optionsOrCb, cb) {
1322
- const command = new ListContactFlowModulesCommand(args);
1323
- if (typeof optionsOrCb === "function") {
1324
- this.send(command, optionsOrCb);
1325
- }
1326
- else if (typeof cb === "function") {
1327
- if (typeof optionsOrCb !== "object")
1328
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
1329
- this.send(command, optionsOrCb || {}, cb);
1330
- }
1331
- else {
1332
- return this.send(command, optionsOrCb);
1333
- }
1334
- }
1335
- listContactFlows(args, optionsOrCb, cb) {
1336
- const command = new ListContactFlowsCommand(args);
1337
- if (typeof optionsOrCb === "function") {
1338
- this.send(command, optionsOrCb);
1339
- }
1340
- else if (typeof cb === "function") {
1341
- if (typeof optionsOrCb !== "object")
1342
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
1343
- this.send(command, optionsOrCb || {}, cb);
1344
- }
1345
- else {
1346
- return this.send(command, optionsOrCb);
1347
- }
1348
- }
1349
- listContactReferences(args, optionsOrCb, cb) {
1350
- const command = new ListContactReferencesCommand(args);
1351
- if (typeof optionsOrCb === "function") {
1352
- this.send(command, optionsOrCb);
1353
- }
1354
- else if (typeof cb === "function") {
1355
- if (typeof optionsOrCb !== "object")
1356
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
1357
- this.send(command, optionsOrCb || {}, cb);
1358
- }
1359
- else {
1360
- return this.send(command, optionsOrCb);
1361
- }
1362
- }
1363
- listDefaultVocabularies(args, optionsOrCb, cb) {
1364
- const command = new ListDefaultVocabulariesCommand(args);
1365
- if (typeof optionsOrCb === "function") {
1366
- this.send(command, optionsOrCb);
1367
- }
1368
- else if (typeof cb === "function") {
1369
- if (typeof optionsOrCb !== "object")
1370
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
1371
- this.send(command, optionsOrCb || {}, cb);
1372
- }
1373
- else {
1374
- return this.send(command, optionsOrCb);
1375
- }
1376
- }
1377
- listHoursOfOperations(args, optionsOrCb, cb) {
1378
- const command = new ListHoursOfOperationsCommand(args);
1379
- if (typeof optionsOrCb === "function") {
1380
- this.send(command, optionsOrCb);
1381
- }
1382
- else if (typeof cb === "function") {
1383
- if (typeof optionsOrCb !== "object")
1384
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
1385
- this.send(command, optionsOrCb || {}, cb);
1386
- }
1387
- else {
1388
- return this.send(command, optionsOrCb);
1389
- }
1390
- }
1391
- listInstanceAttributes(args, optionsOrCb, cb) {
1392
- const command = new ListInstanceAttributesCommand(args);
1393
- if (typeof optionsOrCb === "function") {
1394
- this.send(command, optionsOrCb);
1395
- }
1396
- else if (typeof cb === "function") {
1397
- if (typeof optionsOrCb !== "object")
1398
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
1399
- this.send(command, optionsOrCb || {}, cb);
1400
- }
1401
- else {
1402
- return this.send(command, optionsOrCb);
1403
- }
1404
- }
1405
- listInstances(args, optionsOrCb, cb) {
1406
- const command = new ListInstancesCommand(args);
1407
- if (typeof optionsOrCb === "function") {
1408
- this.send(command, optionsOrCb);
1409
- }
1410
- else if (typeof cb === "function") {
1411
- if (typeof optionsOrCb !== "object")
1412
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
1413
- this.send(command, optionsOrCb || {}, cb);
1414
- }
1415
- else {
1416
- return this.send(command, optionsOrCb);
1417
- }
1418
- }
1419
- listInstanceStorageConfigs(args, optionsOrCb, cb) {
1420
- const command = new ListInstanceStorageConfigsCommand(args);
1421
- if (typeof optionsOrCb === "function") {
1422
- this.send(command, optionsOrCb);
1423
- }
1424
- else if (typeof cb === "function") {
1425
- if (typeof optionsOrCb !== "object")
1426
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
1427
- this.send(command, optionsOrCb || {}, cb);
1428
- }
1429
- else {
1430
- return this.send(command, optionsOrCb);
1431
- }
1432
- }
1433
- listIntegrationAssociations(args, optionsOrCb, cb) {
1434
- const command = new ListIntegrationAssociationsCommand(args);
1435
- if (typeof optionsOrCb === "function") {
1436
- this.send(command, optionsOrCb);
1437
- }
1438
- else if (typeof cb === "function") {
1439
- if (typeof optionsOrCb !== "object")
1440
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
1441
- this.send(command, optionsOrCb || {}, cb);
1442
- }
1443
- else {
1444
- return this.send(command, optionsOrCb);
1445
- }
1446
- }
1447
- listLambdaFunctions(args, optionsOrCb, cb) {
1448
- const command = new ListLambdaFunctionsCommand(args);
1449
- if (typeof optionsOrCb === "function") {
1450
- this.send(command, optionsOrCb);
1451
- }
1452
- else if (typeof cb === "function") {
1453
- if (typeof optionsOrCb !== "object")
1454
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
1455
- this.send(command, optionsOrCb || {}, cb);
1456
- }
1457
- else {
1458
- return this.send(command, optionsOrCb);
1459
- }
1460
- }
1461
- listLexBots(args, optionsOrCb, cb) {
1462
- const command = new ListLexBotsCommand(args);
1463
- if (typeof optionsOrCb === "function") {
1464
- this.send(command, optionsOrCb);
1465
- }
1466
- else if (typeof cb === "function") {
1467
- if (typeof optionsOrCb !== "object")
1468
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
1469
- this.send(command, optionsOrCb || {}, cb);
1470
- }
1471
- else {
1472
- return this.send(command, optionsOrCb);
1473
- }
1474
- }
1475
- listPhoneNumbers(args, optionsOrCb, cb) {
1476
- const command = new ListPhoneNumbersCommand(args);
1477
- if (typeof optionsOrCb === "function") {
1478
- this.send(command, optionsOrCb);
1479
- }
1480
- else if (typeof cb === "function") {
1481
- if (typeof optionsOrCb !== "object")
1482
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
1483
- this.send(command, optionsOrCb || {}, cb);
1484
- }
1485
- else {
1486
- return this.send(command, optionsOrCb);
1487
- }
1488
- }
1489
- listPhoneNumbersV2(args, optionsOrCb, cb) {
1490
- const command = new ListPhoneNumbersV2Command(args);
1491
- if (typeof optionsOrCb === "function") {
1492
- this.send(command, optionsOrCb);
1493
- }
1494
- else if (typeof cb === "function") {
1495
- if (typeof optionsOrCb !== "object")
1496
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
1497
- this.send(command, optionsOrCb || {}, cb);
1498
- }
1499
- else {
1500
- return this.send(command, optionsOrCb);
1501
- }
1502
- }
1503
- listPrompts(args, optionsOrCb, cb) {
1504
- const command = new ListPromptsCommand(args);
1505
- if (typeof optionsOrCb === "function") {
1506
- this.send(command, optionsOrCb);
1507
- }
1508
- else if (typeof cb === "function") {
1509
- if (typeof optionsOrCb !== "object")
1510
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
1511
- this.send(command, optionsOrCb || {}, cb);
1512
- }
1513
- else {
1514
- return this.send(command, optionsOrCb);
1515
- }
1516
- }
1517
- listQueueQuickConnects(args, optionsOrCb, cb) {
1518
- const command = new ListQueueQuickConnectsCommand(args);
1519
- if (typeof optionsOrCb === "function") {
1520
- this.send(command, optionsOrCb);
1521
- }
1522
- else if (typeof cb === "function") {
1523
- if (typeof optionsOrCb !== "object")
1524
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
1525
- this.send(command, optionsOrCb || {}, cb);
1526
- }
1527
- else {
1528
- return this.send(command, optionsOrCb);
1529
- }
1530
- }
1531
- listQueues(args, optionsOrCb, cb) {
1532
- const command = new ListQueuesCommand(args);
1533
- if (typeof optionsOrCb === "function") {
1534
- this.send(command, optionsOrCb);
1535
- }
1536
- else if (typeof cb === "function") {
1537
- if (typeof optionsOrCb !== "object")
1538
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
1539
- this.send(command, optionsOrCb || {}, cb);
1540
- }
1541
- else {
1542
- return this.send(command, optionsOrCb);
1543
- }
1544
- }
1545
- listQuickConnects(args, optionsOrCb, cb) {
1546
- const command = new ListQuickConnectsCommand(args);
1547
- if (typeof optionsOrCb === "function") {
1548
- this.send(command, optionsOrCb);
1549
- }
1550
- else if (typeof cb === "function") {
1551
- if (typeof optionsOrCb !== "object")
1552
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
1553
- this.send(command, optionsOrCb || {}, cb);
1554
- }
1555
- else {
1556
- return this.send(command, optionsOrCb);
1557
- }
1558
- }
1559
- listRoutingProfileQueues(args, optionsOrCb, cb) {
1560
- const command = new ListRoutingProfileQueuesCommand(args);
1561
- if (typeof optionsOrCb === "function") {
1562
- this.send(command, optionsOrCb);
1563
- }
1564
- else if (typeof cb === "function") {
1565
- if (typeof optionsOrCb !== "object")
1566
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
1567
- this.send(command, optionsOrCb || {}, cb);
1568
- }
1569
- else {
1570
- return this.send(command, optionsOrCb);
1571
- }
1572
- }
1573
- listRoutingProfiles(args, optionsOrCb, cb) {
1574
- const command = new ListRoutingProfilesCommand(args);
1575
- if (typeof optionsOrCb === "function") {
1576
- this.send(command, optionsOrCb);
1577
- }
1578
- else if (typeof cb === "function") {
1579
- if (typeof optionsOrCb !== "object")
1580
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
1581
- this.send(command, optionsOrCb || {}, cb);
1582
- }
1583
- else {
1584
- return this.send(command, optionsOrCb);
1585
- }
1586
- }
1587
- listRules(args, optionsOrCb, cb) {
1588
- const command = new ListRulesCommand(args);
1589
- if (typeof optionsOrCb === "function") {
1590
- this.send(command, optionsOrCb);
1591
- }
1592
- else if (typeof cb === "function") {
1593
- if (typeof optionsOrCb !== "object")
1594
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
1595
- this.send(command, optionsOrCb || {}, cb);
1596
- }
1597
- else {
1598
- return this.send(command, optionsOrCb);
1599
- }
1600
- }
1601
- listSecurityKeys(args, optionsOrCb, cb) {
1602
- const command = new ListSecurityKeysCommand(args);
1603
- if (typeof optionsOrCb === "function") {
1604
- this.send(command, optionsOrCb);
1605
- }
1606
- else if (typeof cb === "function") {
1607
- if (typeof optionsOrCb !== "object")
1608
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
1609
- this.send(command, optionsOrCb || {}, cb);
1610
- }
1611
- else {
1612
- return this.send(command, optionsOrCb);
1613
- }
1614
- }
1615
- listSecurityProfilePermissions(args, optionsOrCb, cb) {
1616
- const command = new ListSecurityProfilePermissionsCommand(args);
1617
- if (typeof optionsOrCb === "function") {
1618
- this.send(command, optionsOrCb);
1619
- }
1620
- else if (typeof cb === "function") {
1621
- if (typeof optionsOrCb !== "object")
1622
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
1623
- this.send(command, optionsOrCb || {}, cb);
1624
- }
1625
- else {
1626
- return this.send(command, optionsOrCb);
1627
- }
1628
- }
1629
- listSecurityProfiles(args, optionsOrCb, cb) {
1630
- const command = new ListSecurityProfilesCommand(args);
1631
- if (typeof optionsOrCb === "function") {
1632
- this.send(command, optionsOrCb);
1633
- }
1634
- else if (typeof cb === "function") {
1635
- if (typeof optionsOrCb !== "object")
1636
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
1637
- this.send(command, optionsOrCb || {}, cb);
1638
- }
1639
- else {
1640
- return this.send(command, optionsOrCb);
1641
- }
1642
- }
1643
- listTagsForResource(args, optionsOrCb, cb) {
1644
- const command = new ListTagsForResourceCommand(args);
1645
- if (typeof optionsOrCb === "function") {
1646
- this.send(command, optionsOrCb);
1647
- }
1648
- else if (typeof cb === "function") {
1649
- if (typeof optionsOrCb !== "object")
1650
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
1651
- this.send(command, optionsOrCb || {}, cb);
1652
- }
1653
- else {
1654
- return this.send(command, optionsOrCb);
1655
- }
1656
- }
1657
- listTaskTemplates(args, optionsOrCb, cb) {
1658
- const command = new ListTaskTemplatesCommand(args);
1659
- if (typeof optionsOrCb === "function") {
1660
- this.send(command, optionsOrCb);
1661
- }
1662
- else if (typeof cb === "function") {
1663
- if (typeof optionsOrCb !== "object")
1664
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
1665
- this.send(command, optionsOrCb || {}, cb);
1666
- }
1667
- else {
1668
- return this.send(command, optionsOrCb);
1669
- }
1670
- }
1671
- listTrafficDistributionGroups(args, optionsOrCb, cb) {
1672
- const command = new ListTrafficDistributionGroupsCommand(args);
1673
- if (typeof optionsOrCb === "function") {
1674
- this.send(command, optionsOrCb);
1675
- }
1676
- else if (typeof cb === "function") {
1677
- if (typeof optionsOrCb !== "object")
1678
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
1679
- this.send(command, optionsOrCb || {}, cb);
1680
- }
1681
- else {
1682
- return this.send(command, optionsOrCb);
1683
- }
1684
- }
1685
- listUseCases(args, optionsOrCb, cb) {
1686
- const command = new ListUseCasesCommand(args);
1687
- if (typeof optionsOrCb === "function") {
1688
- this.send(command, optionsOrCb);
1689
- }
1690
- else if (typeof cb === "function") {
1691
- if (typeof optionsOrCb !== "object")
1692
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
1693
- this.send(command, optionsOrCb || {}, cb);
1694
- }
1695
- else {
1696
- return this.send(command, optionsOrCb);
1697
- }
1698
- }
1699
- listUserHierarchyGroups(args, optionsOrCb, cb) {
1700
- const command = new ListUserHierarchyGroupsCommand(args);
1701
- if (typeof optionsOrCb === "function") {
1702
- this.send(command, optionsOrCb);
1703
- }
1704
- else if (typeof cb === "function") {
1705
- if (typeof optionsOrCb !== "object")
1706
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
1707
- this.send(command, optionsOrCb || {}, cb);
1708
- }
1709
- else {
1710
- return this.send(command, optionsOrCb);
1711
- }
1712
- }
1713
- listUsers(args, optionsOrCb, cb) {
1714
- const command = new ListUsersCommand(args);
1715
- if (typeof optionsOrCb === "function") {
1716
- this.send(command, optionsOrCb);
1717
- }
1718
- else if (typeof cb === "function") {
1719
- if (typeof optionsOrCb !== "object")
1720
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
1721
- this.send(command, optionsOrCb || {}, cb);
1722
- }
1723
- else {
1724
- return this.send(command, optionsOrCb);
1725
- }
1726
- }
1727
- monitorContact(args, optionsOrCb, cb) {
1728
- const command = new MonitorContactCommand(args);
1729
- if (typeof optionsOrCb === "function") {
1730
- this.send(command, optionsOrCb);
1731
- }
1732
- else if (typeof cb === "function") {
1733
- if (typeof optionsOrCb !== "object")
1734
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
1735
- this.send(command, optionsOrCb || {}, cb);
1736
- }
1737
- else {
1738
- return this.send(command, optionsOrCb);
1739
- }
1740
- }
1741
- putUserStatus(args, optionsOrCb, cb) {
1742
- const command = new PutUserStatusCommand(args);
1743
- if (typeof optionsOrCb === "function") {
1744
- this.send(command, optionsOrCb);
1745
- }
1746
- else if (typeof cb === "function") {
1747
- if (typeof optionsOrCb !== "object")
1748
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
1749
- this.send(command, optionsOrCb || {}, cb);
1750
- }
1751
- else {
1752
- return this.send(command, optionsOrCb);
1753
- }
1754
- }
1755
- releasePhoneNumber(args, optionsOrCb, cb) {
1756
- const command = new ReleasePhoneNumberCommand(args);
1757
- if (typeof optionsOrCb === "function") {
1758
- this.send(command, optionsOrCb);
1759
- }
1760
- else if (typeof cb === "function") {
1761
- if (typeof optionsOrCb !== "object")
1762
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
1763
- this.send(command, optionsOrCb || {}, cb);
1764
- }
1765
- else {
1766
- return this.send(command, optionsOrCb);
1767
- }
1768
- }
1769
- replicateInstance(args, optionsOrCb, cb) {
1770
- const command = new ReplicateInstanceCommand(args);
1771
- if (typeof optionsOrCb === "function") {
1772
- this.send(command, optionsOrCb);
1773
- }
1774
- else if (typeof cb === "function") {
1775
- if (typeof optionsOrCb !== "object")
1776
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
1777
- this.send(command, optionsOrCb || {}, cb);
1778
- }
1779
- else {
1780
- return this.send(command, optionsOrCb);
1781
- }
1782
- }
1783
- resumeContactRecording(args, optionsOrCb, cb) {
1784
- const command = new ResumeContactRecordingCommand(args);
1785
- if (typeof optionsOrCb === "function") {
1786
- this.send(command, optionsOrCb);
1787
- }
1788
- else if (typeof cb === "function") {
1789
- if (typeof optionsOrCb !== "object")
1790
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
1791
- this.send(command, optionsOrCb || {}, cb);
1792
- }
1793
- else {
1794
- return this.send(command, optionsOrCb);
1795
- }
1796
- }
1797
- searchAvailablePhoneNumbers(args, optionsOrCb, cb) {
1798
- const command = new SearchAvailablePhoneNumbersCommand(args);
1799
- if (typeof optionsOrCb === "function") {
1800
- this.send(command, optionsOrCb);
1801
- }
1802
- else if (typeof cb === "function") {
1803
- if (typeof optionsOrCb !== "object")
1804
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
1805
- this.send(command, optionsOrCb || {}, cb);
1806
- }
1807
- else {
1808
- return this.send(command, optionsOrCb);
1809
- }
1810
- }
1811
- searchQueues(args, optionsOrCb, cb) {
1812
- const command = new SearchQueuesCommand(args);
1813
- if (typeof optionsOrCb === "function") {
1814
- this.send(command, optionsOrCb);
1815
- }
1816
- else if (typeof cb === "function") {
1817
- if (typeof optionsOrCb !== "object")
1818
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
1819
- this.send(command, optionsOrCb || {}, cb);
1820
- }
1821
- else {
1822
- return this.send(command, optionsOrCb);
1823
- }
1824
- }
1825
- searchRoutingProfiles(args, optionsOrCb, cb) {
1826
- const command = new SearchRoutingProfilesCommand(args);
1827
- if (typeof optionsOrCb === "function") {
1828
- this.send(command, optionsOrCb);
1829
- }
1830
- else if (typeof cb === "function") {
1831
- if (typeof optionsOrCb !== "object")
1832
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
1833
- this.send(command, optionsOrCb || {}, cb);
1834
- }
1835
- else {
1836
- return this.send(command, optionsOrCb);
1837
- }
1838
- }
1839
- searchSecurityProfiles(args, optionsOrCb, cb) {
1840
- const command = new SearchSecurityProfilesCommand(args);
1841
- if (typeof optionsOrCb === "function") {
1842
- this.send(command, optionsOrCb);
1843
- }
1844
- else if (typeof cb === "function") {
1845
- if (typeof optionsOrCb !== "object")
1846
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
1847
- this.send(command, optionsOrCb || {}, cb);
1848
- }
1849
- else {
1850
- return this.send(command, optionsOrCb);
1851
- }
1852
- }
1853
- searchUsers(args, optionsOrCb, cb) {
1854
- const command = new SearchUsersCommand(args);
1855
- if (typeof optionsOrCb === "function") {
1856
- this.send(command, optionsOrCb);
1857
- }
1858
- else if (typeof cb === "function") {
1859
- if (typeof optionsOrCb !== "object")
1860
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
1861
- this.send(command, optionsOrCb || {}, cb);
1862
- }
1863
- else {
1864
- return this.send(command, optionsOrCb);
1865
- }
1866
- }
1867
- searchVocabularies(args, optionsOrCb, cb) {
1868
- const command = new SearchVocabulariesCommand(args);
1869
- if (typeof optionsOrCb === "function") {
1870
- this.send(command, optionsOrCb);
1871
- }
1872
- else if (typeof cb === "function") {
1873
- if (typeof optionsOrCb !== "object")
1874
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
1875
- this.send(command, optionsOrCb || {}, cb);
1876
- }
1877
- else {
1878
- return this.send(command, optionsOrCb);
1879
- }
1880
- }
1881
- startChatContact(args, optionsOrCb, cb) {
1882
- const command = new StartChatContactCommand(args);
1883
- if (typeof optionsOrCb === "function") {
1884
- this.send(command, optionsOrCb);
1885
- }
1886
- else if (typeof cb === "function") {
1887
- if (typeof optionsOrCb !== "object")
1888
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
1889
- this.send(command, optionsOrCb || {}, cb);
1890
- }
1891
- else {
1892
- return this.send(command, optionsOrCb);
1893
- }
1894
- }
1895
- startContactRecording(args, optionsOrCb, cb) {
1896
- const command = new StartContactRecordingCommand(args);
1897
- if (typeof optionsOrCb === "function") {
1898
- this.send(command, optionsOrCb);
1899
- }
1900
- else if (typeof cb === "function") {
1901
- if (typeof optionsOrCb !== "object")
1902
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
1903
- this.send(command, optionsOrCb || {}, cb);
1904
- }
1905
- else {
1906
- return this.send(command, optionsOrCb);
1907
- }
1908
- }
1909
- startContactStreaming(args, optionsOrCb, cb) {
1910
- const command = new StartContactStreamingCommand(args);
1911
- if (typeof optionsOrCb === "function") {
1912
- this.send(command, optionsOrCb);
1913
- }
1914
- else if (typeof cb === "function") {
1915
- if (typeof optionsOrCb !== "object")
1916
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
1917
- this.send(command, optionsOrCb || {}, cb);
1918
- }
1919
- else {
1920
- return this.send(command, optionsOrCb);
1921
- }
1922
- }
1923
- startOutboundVoiceContact(args, optionsOrCb, cb) {
1924
- const command = new StartOutboundVoiceContactCommand(args);
1925
- if (typeof optionsOrCb === "function") {
1926
- this.send(command, optionsOrCb);
1927
- }
1928
- else if (typeof cb === "function") {
1929
- if (typeof optionsOrCb !== "object")
1930
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
1931
- this.send(command, optionsOrCb || {}, cb);
1932
- }
1933
- else {
1934
- return this.send(command, optionsOrCb);
1935
- }
1936
- }
1937
- startTaskContact(args, optionsOrCb, cb) {
1938
- const command = new StartTaskContactCommand(args);
1939
- if (typeof optionsOrCb === "function") {
1940
- this.send(command, optionsOrCb);
1941
- }
1942
- else if (typeof cb === "function") {
1943
- if (typeof optionsOrCb !== "object")
1944
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
1945
- this.send(command, optionsOrCb || {}, cb);
1946
- }
1947
- else {
1948
- return this.send(command, optionsOrCb);
1949
- }
1950
- }
1951
- stopContact(args, optionsOrCb, cb) {
1952
- const command = new StopContactCommand(args);
1953
- if (typeof optionsOrCb === "function") {
1954
- this.send(command, optionsOrCb);
1955
- }
1956
- else if (typeof cb === "function") {
1957
- if (typeof optionsOrCb !== "object")
1958
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
1959
- this.send(command, optionsOrCb || {}, cb);
1960
- }
1961
- else {
1962
- return this.send(command, optionsOrCb);
1963
- }
1964
- }
1965
- stopContactRecording(args, optionsOrCb, cb) {
1966
- const command = new StopContactRecordingCommand(args);
1967
- if (typeof optionsOrCb === "function") {
1968
- this.send(command, optionsOrCb);
1969
- }
1970
- else if (typeof cb === "function") {
1971
- if (typeof optionsOrCb !== "object")
1972
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
1973
- this.send(command, optionsOrCb || {}, cb);
1974
- }
1975
- else {
1976
- return this.send(command, optionsOrCb);
1977
- }
1978
- }
1979
- stopContactStreaming(args, optionsOrCb, cb) {
1980
- const command = new StopContactStreamingCommand(args);
1981
- if (typeof optionsOrCb === "function") {
1982
- this.send(command, optionsOrCb);
1983
- }
1984
- else if (typeof cb === "function") {
1985
- if (typeof optionsOrCb !== "object")
1986
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
1987
- this.send(command, optionsOrCb || {}, cb);
1988
- }
1989
- else {
1990
- return this.send(command, optionsOrCb);
1991
- }
1992
- }
1993
- suspendContactRecording(args, optionsOrCb, cb) {
1994
- const command = new SuspendContactRecordingCommand(args);
1995
- if (typeof optionsOrCb === "function") {
1996
- this.send(command, optionsOrCb);
1997
- }
1998
- else if (typeof cb === "function") {
1999
- if (typeof optionsOrCb !== "object")
2000
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
2001
- this.send(command, optionsOrCb || {}, cb);
2002
- }
2003
- else {
2004
- return this.send(command, optionsOrCb);
2005
- }
2006
- }
2007
- tagResource(args, optionsOrCb, cb) {
2008
- const command = new TagResourceCommand(args);
2009
- if (typeof optionsOrCb === "function") {
2010
- this.send(command, optionsOrCb);
2011
- }
2012
- else if (typeof cb === "function") {
2013
- if (typeof optionsOrCb !== "object")
2014
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
2015
- this.send(command, optionsOrCb || {}, cb);
2016
- }
2017
- else {
2018
- return this.send(command, optionsOrCb);
2019
- }
2020
- }
2021
- transferContact(args, optionsOrCb, cb) {
2022
- const command = new TransferContactCommand(args);
2023
- if (typeof optionsOrCb === "function") {
2024
- this.send(command, optionsOrCb);
2025
- }
2026
- else if (typeof cb === "function") {
2027
- if (typeof optionsOrCb !== "object")
2028
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
2029
- this.send(command, optionsOrCb || {}, cb);
2030
- }
2031
- else {
2032
- return this.send(command, optionsOrCb);
2033
- }
2034
- }
2035
- untagResource(args, optionsOrCb, cb) {
2036
- const command = new UntagResourceCommand(args);
2037
- if (typeof optionsOrCb === "function") {
2038
- this.send(command, optionsOrCb);
2039
- }
2040
- else if (typeof cb === "function") {
2041
- if (typeof optionsOrCb !== "object")
2042
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
2043
- this.send(command, optionsOrCb || {}, cb);
2044
- }
2045
- else {
2046
- return this.send(command, optionsOrCb);
2047
- }
2048
- }
2049
- updateAgentStatus(args, optionsOrCb, cb) {
2050
- const command = new UpdateAgentStatusCommand(args);
2051
- if (typeof optionsOrCb === "function") {
2052
- this.send(command, optionsOrCb);
2053
- }
2054
- else if (typeof cb === "function") {
2055
- if (typeof optionsOrCb !== "object")
2056
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
2057
- this.send(command, optionsOrCb || {}, cb);
2058
- }
2059
- else {
2060
- return this.send(command, optionsOrCb);
2061
- }
2062
- }
2063
- updateContact(args, optionsOrCb, cb) {
2064
- const command = new UpdateContactCommand(args);
2065
- if (typeof optionsOrCb === "function") {
2066
- this.send(command, optionsOrCb);
2067
- }
2068
- else if (typeof cb === "function") {
2069
- if (typeof optionsOrCb !== "object")
2070
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
2071
- this.send(command, optionsOrCb || {}, cb);
2072
- }
2073
- else {
2074
- return this.send(command, optionsOrCb);
2075
- }
2076
- }
2077
- updateContactAttributes(args, optionsOrCb, cb) {
2078
- const command = new UpdateContactAttributesCommand(args);
2079
- if (typeof optionsOrCb === "function") {
2080
- this.send(command, optionsOrCb);
2081
- }
2082
- else if (typeof cb === "function") {
2083
- if (typeof optionsOrCb !== "object")
2084
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
2085
- this.send(command, optionsOrCb || {}, cb);
2086
- }
2087
- else {
2088
- return this.send(command, optionsOrCb);
2089
- }
2090
- }
2091
- updateContactFlowContent(args, optionsOrCb, cb) {
2092
- const command = new UpdateContactFlowContentCommand(args);
2093
- if (typeof optionsOrCb === "function") {
2094
- this.send(command, optionsOrCb);
2095
- }
2096
- else if (typeof cb === "function") {
2097
- if (typeof optionsOrCb !== "object")
2098
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
2099
- this.send(command, optionsOrCb || {}, cb);
2100
- }
2101
- else {
2102
- return this.send(command, optionsOrCb);
2103
- }
2104
- }
2105
- updateContactFlowMetadata(args, optionsOrCb, cb) {
2106
- const command = new UpdateContactFlowMetadataCommand(args);
2107
- if (typeof optionsOrCb === "function") {
2108
- this.send(command, optionsOrCb);
2109
- }
2110
- else if (typeof cb === "function") {
2111
- if (typeof optionsOrCb !== "object")
2112
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
2113
- this.send(command, optionsOrCb || {}, cb);
2114
- }
2115
- else {
2116
- return this.send(command, optionsOrCb);
2117
- }
2118
- }
2119
- updateContactFlowModuleContent(args, optionsOrCb, cb) {
2120
- const command = new UpdateContactFlowModuleContentCommand(args);
2121
- if (typeof optionsOrCb === "function") {
2122
- this.send(command, optionsOrCb);
2123
- }
2124
- else if (typeof cb === "function") {
2125
- if (typeof optionsOrCb !== "object")
2126
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
2127
- this.send(command, optionsOrCb || {}, cb);
2128
- }
2129
- else {
2130
- return this.send(command, optionsOrCb);
2131
- }
2132
- }
2133
- updateContactFlowModuleMetadata(args, optionsOrCb, cb) {
2134
- const command = new UpdateContactFlowModuleMetadataCommand(args);
2135
- if (typeof optionsOrCb === "function") {
2136
- this.send(command, optionsOrCb);
2137
- }
2138
- else if (typeof cb === "function") {
2139
- if (typeof optionsOrCb !== "object")
2140
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
2141
- this.send(command, optionsOrCb || {}, cb);
2142
- }
2143
- else {
2144
- return this.send(command, optionsOrCb);
2145
- }
2146
- }
2147
- updateContactFlowName(args, optionsOrCb, cb) {
2148
- const command = new UpdateContactFlowNameCommand(args);
2149
- if (typeof optionsOrCb === "function") {
2150
- this.send(command, optionsOrCb);
2151
- }
2152
- else if (typeof cb === "function") {
2153
- if (typeof optionsOrCb !== "object")
2154
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
2155
- this.send(command, optionsOrCb || {}, cb);
2156
- }
2157
- else {
2158
- return this.send(command, optionsOrCb);
2159
- }
2160
- }
2161
- updateContactSchedule(args, optionsOrCb, cb) {
2162
- const command = new UpdateContactScheduleCommand(args);
2163
- if (typeof optionsOrCb === "function") {
2164
- this.send(command, optionsOrCb);
2165
- }
2166
- else if (typeof cb === "function") {
2167
- if (typeof optionsOrCb !== "object")
2168
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
2169
- this.send(command, optionsOrCb || {}, cb);
2170
- }
2171
- else {
2172
- return this.send(command, optionsOrCb);
2173
- }
2174
- }
2175
- updateHoursOfOperation(args, optionsOrCb, cb) {
2176
- const command = new UpdateHoursOfOperationCommand(args);
2177
- if (typeof optionsOrCb === "function") {
2178
- this.send(command, optionsOrCb);
2179
- }
2180
- else if (typeof cb === "function") {
2181
- if (typeof optionsOrCb !== "object")
2182
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
2183
- this.send(command, optionsOrCb || {}, cb);
2184
- }
2185
- else {
2186
- return this.send(command, optionsOrCb);
2187
- }
2188
- }
2189
- updateInstanceAttribute(args, optionsOrCb, cb) {
2190
- const command = new UpdateInstanceAttributeCommand(args);
2191
- if (typeof optionsOrCb === "function") {
2192
- this.send(command, optionsOrCb);
2193
- }
2194
- else if (typeof cb === "function") {
2195
- if (typeof optionsOrCb !== "object")
2196
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
2197
- this.send(command, optionsOrCb || {}, cb);
2198
- }
2199
- else {
2200
- return this.send(command, optionsOrCb);
2201
- }
2202
- }
2203
- updateInstanceStorageConfig(args, optionsOrCb, cb) {
2204
- const command = new UpdateInstanceStorageConfigCommand(args);
2205
- if (typeof optionsOrCb === "function") {
2206
- this.send(command, optionsOrCb);
2207
- }
2208
- else if (typeof cb === "function") {
2209
- if (typeof optionsOrCb !== "object")
2210
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
2211
- this.send(command, optionsOrCb || {}, cb);
2212
- }
2213
- else {
2214
- return this.send(command, optionsOrCb);
2215
- }
2216
- }
2217
- updateParticipantRoleConfig(args, optionsOrCb, cb) {
2218
- const command = new UpdateParticipantRoleConfigCommand(args);
2219
- if (typeof optionsOrCb === "function") {
2220
- this.send(command, optionsOrCb);
2221
- }
2222
- else if (typeof cb === "function") {
2223
- if (typeof optionsOrCb !== "object")
2224
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
2225
- this.send(command, optionsOrCb || {}, cb);
2226
- }
2227
- else {
2228
- return this.send(command, optionsOrCb);
2229
- }
2230
- }
2231
- updatePhoneNumber(args, optionsOrCb, cb) {
2232
- const command = new UpdatePhoneNumberCommand(args);
2233
- if (typeof optionsOrCb === "function") {
2234
- this.send(command, optionsOrCb);
2235
- }
2236
- else if (typeof cb === "function") {
2237
- if (typeof optionsOrCb !== "object")
2238
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
2239
- this.send(command, optionsOrCb || {}, cb);
2240
- }
2241
- else {
2242
- return this.send(command, optionsOrCb);
2243
- }
2244
- }
2245
- updateQueueHoursOfOperation(args, optionsOrCb, cb) {
2246
- const command = new UpdateQueueHoursOfOperationCommand(args);
2247
- if (typeof optionsOrCb === "function") {
2248
- this.send(command, optionsOrCb);
2249
- }
2250
- else if (typeof cb === "function") {
2251
- if (typeof optionsOrCb !== "object")
2252
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
2253
- this.send(command, optionsOrCb || {}, cb);
2254
- }
2255
- else {
2256
- return this.send(command, optionsOrCb);
2257
- }
2258
- }
2259
- updateQueueMaxContacts(args, optionsOrCb, cb) {
2260
- const command = new UpdateQueueMaxContactsCommand(args);
2261
- if (typeof optionsOrCb === "function") {
2262
- this.send(command, optionsOrCb);
2263
- }
2264
- else if (typeof cb === "function") {
2265
- if (typeof optionsOrCb !== "object")
2266
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
2267
- this.send(command, optionsOrCb || {}, cb);
2268
- }
2269
- else {
2270
- return this.send(command, optionsOrCb);
2271
- }
2272
- }
2273
- updateQueueName(args, optionsOrCb, cb) {
2274
- const command = new UpdateQueueNameCommand(args);
2275
- if (typeof optionsOrCb === "function") {
2276
- this.send(command, optionsOrCb);
2277
- }
2278
- else if (typeof cb === "function") {
2279
- if (typeof optionsOrCb !== "object")
2280
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
2281
- this.send(command, optionsOrCb || {}, cb);
2282
- }
2283
- else {
2284
- return this.send(command, optionsOrCb);
2285
- }
2286
- }
2287
- updateQueueOutboundCallerConfig(args, optionsOrCb, cb) {
2288
- const command = new UpdateQueueOutboundCallerConfigCommand(args);
2289
- if (typeof optionsOrCb === "function") {
2290
- this.send(command, optionsOrCb);
2291
- }
2292
- else if (typeof cb === "function") {
2293
- if (typeof optionsOrCb !== "object")
2294
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
2295
- this.send(command, optionsOrCb || {}, cb);
2296
- }
2297
- else {
2298
- return this.send(command, optionsOrCb);
2299
- }
2300
- }
2301
- updateQueueStatus(args, optionsOrCb, cb) {
2302
- const command = new UpdateQueueStatusCommand(args);
2303
- if (typeof optionsOrCb === "function") {
2304
- this.send(command, optionsOrCb);
2305
- }
2306
- else if (typeof cb === "function") {
2307
- if (typeof optionsOrCb !== "object")
2308
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
2309
- this.send(command, optionsOrCb || {}, cb);
2310
- }
2311
- else {
2312
- return this.send(command, optionsOrCb);
2313
- }
2314
- }
2315
- updateQuickConnectConfig(args, optionsOrCb, cb) {
2316
- const command = new UpdateQuickConnectConfigCommand(args);
2317
- if (typeof optionsOrCb === "function") {
2318
- this.send(command, optionsOrCb);
2319
- }
2320
- else if (typeof cb === "function") {
2321
- if (typeof optionsOrCb !== "object")
2322
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
2323
- this.send(command, optionsOrCb || {}, cb);
2324
- }
2325
- else {
2326
- return this.send(command, optionsOrCb);
2327
- }
2328
- }
2329
- updateQuickConnectName(args, optionsOrCb, cb) {
2330
- const command = new UpdateQuickConnectNameCommand(args);
2331
- if (typeof optionsOrCb === "function") {
2332
- this.send(command, optionsOrCb);
2333
- }
2334
- else if (typeof cb === "function") {
2335
- if (typeof optionsOrCb !== "object")
2336
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
2337
- this.send(command, optionsOrCb || {}, cb);
2338
- }
2339
- else {
2340
- return this.send(command, optionsOrCb);
2341
- }
2342
- }
2343
- updateRoutingProfileConcurrency(args, optionsOrCb, cb) {
2344
- const command = new UpdateRoutingProfileConcurrencyCommand(args);
2345
- if (typeof optionsOrCb === "function") {
2346
- this.send(command, optionsOrCb);
2347
- }
2348
- else if (typeof cb === "function") {
2349
- if (typeof optionsOrCb !== "object")
2350
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
2351
- this.send(command, optionsOrCb || {}, cb);
2352
- }
2353
- else {
2354
- return this.send(command, optionsOrCb);
2355
- }
2356
- }
2357
- updateRoutingProfileDefaultOutboundQueue(args, optionsOrCb, cb) {
2358
- const command = new UpdateRoutingProfileDefaultOutboundQueueCommand(args);
2359
- if (typeof optionsOrCb === "function") {
2360
- this.send(command, optionsOrCb);
2361
- }
2362
- else if (typeof cb === "function") {
2363
- if (typeof optionsOrCb !== "object")
2364
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
2365
- this.send(command, optionsOrCb || {}, cb);
2366
- }
2367
- else {
2368
- return this.send(command, optionsOrCb);
2369
- }
2370
- }
2371
- updateRoutingProfileName(args, optionsOrCb, cb) {
2372
- const command = new UpdateRoutingProfileNameCommand(args);
2373
- if (typeof optionsOrCb === "function") {
2374
- this.send(command, optionsOrCb);
2375
- }
2376
- else if (typeof cb === "function") {
2377
- if (typeof optionsOrCb !== "object")
2378
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
2379
- this.send(command, optionsOrCb || {}, cb);
2380
- }
2381
- else {
2382
- return this.send(command, optionsOrCb);
2383
- }
2384
- }
2385
- updateRoutingProfileQueues(args, optionsOrCb, cb) {
2386
- const command = new UpdateRoutingProfileQueuesCommand(args);
2387
- if (typeof optionsOrCb === "function") {
2388
- this.send(command, optionsOrCb);
2389
- }
2390
- else if (typeof cb === "function") {
2391
- if (typeof optionsOrCb !== "object")
2392
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
2393
- this.send(command, optionsOrCb || {}, cb);
2394
- }
2395
- else {
2396
- return this.send(command, optionsOrCb);
2397
- }
2398
- }
2399
- updateRule(args, optionsOrCb, cb) {
2400
- const command = new UpdateRuleCommand(args);
2401
- if (typeof optionsOrCb === "function") {
2402
- this.send(command, optionsOrCb);
2403
- }
2404
- else if (typeof cb === "function") {
2405
- if (typeof optionsOrCb !== "object")
2406
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
2407
- this.send(command, optionsOrCb || {}, cb);
2408
- }
2409
- else {
2410
- return this.send(command, optionsOrCb);
2411
- }
2412
- }
2413
- updateSecurityProfile(args, optionsOrCb, cb) {
2414
- const command = new UpdateSecurityProfileCommand(args);
2415
- if (typeof optionsOrCb === "function") {
2416
- this.send(command, optionsOrCb);
2417
- }
2418
- else if (typeof cb === "function") {
2419
- if (typeof optionsOrCb !== "object")
2420
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
2421
- this.send(command, optionsOrCb || {}, cb);
2422
- }
2423
- else {
2424
- return this.send(command, optionsOrCb);
2425
- }
2426
- }
2427
- updateTaskTemplate(args, optionsOrCb, cb) {
2428
- const command = new UpdateTaskTemplateCommand(args);
2429
- if (typeof optionsOrCb === "function") {
2430
- this.send(command, optionsOrCb);
2431
- }
2432
- else if (typeof cb === "function") {
2433
- if (typeof optionsOrCb !== "object")
2434
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
2435
- this.send(command, optionsOrCb || {}, cb);
2436
- }
2437
- else {
2438
- return this.send(command, optionsOrCb);
2439
- }
2440
- }
2441
- updateTrafficDistribution(args, optionsOrCb, cb) {
2442
- const command = new UpdateTrafficDistributionCommand(args);
2443
- if (typeof optionsOrCb === "function") {
2444
- this.send(command, optionsOrCb);
2445
- }
2446
- else if (typeof cb === "function") {
2447
- if (typeof optionsOrCb !== "object")
2448
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
2449
- this.send(command, optionsOrCb || {}, cb);
2450
- }
2451
- else {
2452
- return this.send(command, optionsOrCb);
2453
- }
2454
- }
2455
- updateUserHierarchy(args, optionsOrCb, cb) {
2456
- const command = new UpdateUserHierarchyCommand(args);
2457
- if (typeof optionsOrCb === "function") {
2458
- this.send(command, optionsOrCb);
2459
- }
2460
- else if (typeof cb === "function") {
2461
- if (typeof optionsOrCb !== "object")
2462
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
2463
- this.send(command, optionsOrCb || {}, cb);
2464
- }
2465
- else {
2466
- return this.send(command, optionsOrCb);
2467
- }
2468
- }
2469
- updateUserHierarchyGroupName(args, optionsOrCb, cb) {
2470
- const command = new UpdateUserHierarchyGroupNameCommand(args);
2471
- if (typeof optionsOrCb === "function") {
2472
- this.send(command, optionsOrCb);
2473
- }
2474
- else if (typeof cb === "function") {
2475
- if (typeof optionsOrCb !== "object")
2476
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
2477
- this.send(command, optionsOrCb || {}, cb);
2478
- }
2479
- else {
2480
- return this.send(command, optionsOrCb);
2481
- }
2482
- }
2483
- updateUserHierarchyStructure(args, optionsOrCb, cb) {
2484
- const command = new UpdateUserHierarchyStructureCommand(args);
2485
- if (typeof optionsOrCb === "function") {
2486
- this.send(command, optionsOrCb);
2487
- }
2488
- else if (typeof cb === "function") {
2489
- if (typeof optionsOrCb !== "object")
2490
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
2491
- this.send(command, optionsOrCb || {}, cb);
2492
- }
2493
- else {
2494
- return this.send(command, optionsOrCb);
2495
- }
2496
- }
2497
- updateUserIdentityInfo(args, optionsOrCb, cb) {
2498
- const command = new UpdateUserIdentityInfoCommand(args);
2499
- if (typeof optionsOrCb === "function") {
2500
- this.send(command, optionsOrCb);
2501
- }
2502
- else if (typeof cb === "function") {
2503
- if (typeof optionsOrCb !== "object")
2504
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
2505
- this.send(command, optionsOrCb || {}, cb);
2506
- }
2507
- else {
2508
- return this.send(command, optionsOrCb);
2509
- }
2510
- }
2511
- updateUserPhoneConfig(args, optionsOrCb, cb) {
2512
- const command = new UpdateUserPhoneConfigCommand(args);
2513
- if (typeof optionsOrCb === "function") {
2514
- this.send(command, optionsOrCb);
2515
- }
2516
- else if (typeof cb === "function") {
2517
- if (typeof optionsOrCb !== "object")
2518
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
2519
- this.send(command, optionsOrCb || {}, cb);
2520
- }
2521
- else {
2522
- return this.send(command, optionsOrCb);
2523
- }
2524
- }
2525
- updateUserRoutingProfile(args, optionsOrCb, cb) {
2526
- const command = new UpdateUserRoutingProfileCommand(args);
2527
- if (typeof optionsOrCb === "function") {
2528
- this.send(command, optionsOrCb);
2529
- }
2530
- else if (typeof cb === "function") {
2531
- if (typeof optionsOrCb !== "object")
2532
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
2533
- this.send(command, optionsOrCb || {}, cb);
2534
- }
2535
- else {
2536
- return this.send(command, optionsOrCb);
2537
- }
2538
- }
2539
- updateUserSecurityProfiles(args, optionsOrCb, cb) {
2540
- const command = new UpdateUserSecurityProfilesCommand(args);
2541
- if (typeof optionsOrCb === "function") {
2542
- this.send(command, optionsOrCb);
2543
- }
2544
- else if (typeof cb === "function") {
2545
- if (typeof optionsOrCb !== "object")
2546
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
2547
- this.send(command, optionsOrCb || {}, cb);
2548
- }
2549
- else {
2550
- return this.send(command, optionsOrCb);
2551
- }
2552
- }
2553
346
  }
347
+ createAggregatedClient(commands, Connect);