@aws-sdk/client-chime-sdk-identity 3.503.1 → 3.507.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist-cjs/index.js +72 -1133
- package/dist-es/protocols/Aws_restJson1.js +125 -1186
- package/package.json +3 -3
|
@@ -393,7 +393,7 @@ export const se_UpdateAppInstanceUserEndpointCommand = async (input, context) =>
|
|
|
393
393
|
};
|
|
394
394
|
export const de_CreateAppInstanceCommand = async (output, context) => {
|
|
395
395
|
if (output.statusCode !== 201 && output.statusCode >= 300) {
|
|
396
|
-
return
|
|
396
|
+
return de_CommandError(output, context);
|
|
397
397
|
}
|
|
398
398
|
const contents = map({
|
|
399
399
|
$metadata: deserializeMetadata(output),
|
|
@@ -405,49 +405,9 @@ export const de_CreateAppInstanceCommand = async (output, context) => {
|
|
|
405
405
|
Object.assign(contents, doc);
|
|
406
406
|
return contents;
|
|
407
407
|
};
|
|
408
|
-
const de_CreateAppInstanceCommandError = async (output, context) => {
|
|
409
|
-
const parsedOutput = {
|
|
410
|
-
...output,
|
|
411
|
-
body: await parseErrorBody(output.body, context),
|
|
412
|
-
};
|
|
413
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
414
|
-
switch (errorCode) {
|
|
415
|
-
case "BadRequestException":
|
|
416
|
-
case "com.amazonaws.chimesdkidentity#BadRequestException":
|
|
417
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
418
|
-
case "ConflictException":
|
|
419
|
-
case "com.amazonaws.chimesdkidentity#ConflictException":
|
|
420
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
421
|
-
case "ForbiddenException":
|
|
422
|
-
case "com.amazonaws.chimesdkidentity#ForbiddenException":
|
|
423
|
-
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
424
|
-
case "ResourceLimitExceededException":
|
|
425
|
-
case "com.amazonaws.chimesdkidentity#ResourceLimitExceededException":
|
|
426
|
-
throw await de_ResourceLimitExceededExceptionRes(parsedOutput, context);
|
|
427
|
-
case "ServiceFailureException":
|
|
428
|
-
case "com.amazonaws.chimesdkidentity#ServiceFailureException":
|
|
429
|
-
throw await de_ServiceFailureExceptionRes(parsedOutput, context);
|
|
430
|
-
case "ServiceUnavailableException":
|
|
431
|
-
case "com.amazonaws.chimesdkidentity#ServiceUnavailableException":
|
|
432
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
433
|
-
case "ThrottledClientException":
|
|
434
|
-
case "com.amazonaws.chimesdkidentity#ThrottledClientException":
|
|
435
|
-
throw await de_ThrottledClientExceptionRes(parsedOutput, context);
|
|
436
|
-
case "UnauthorizedClientException":
|
|
437
|
-
case "com.amazonaws.chimesdkidentity#UnauthorizedClientException":
|
|
438
|
-
throw await de_UnauthorizedClientExceptionRes(parsedOutput, context);
|
|
439
|
-
default:
|
|
440
|
-
const parsedBody = parsedOutput.body;
|
|
441
|
-
return throwDefaultError({
|
|
442
|
-
output,
|
|
443
|
-
parsedBody,
|
|
444
|
-
errorCode,
|
|
445
|
-
});
|
|
446
|
-
}
|
|
447
|
-
};
|
|
448
408
|
export const de_CreateAppInstanceAdminCommand = async (output, context) => {
|
|
449
409
|
if (output.statusCode !== 201 && output.statusCode >= 300) {
|
|
450
|
-
return
|
|
410
|
+
return de_CommandError(output, context);
|
|
451
411
|
}
|
|
452
412
|
const contents = map({
|
|
453
413
|
$metadata: deserializeMetadata(output),
|
|
@@ -460,49 +420,9 @@ export const de_CreateAppInstanceAdminCommand = async (output, context) => {
|
|
|
460
420
|
Object.assign(contents, doc);
|
|
461
421
|
return contents;
|
|
462
422
|
};
|
|
463
|
-
const de_CreateAppInstanceAdminCommandError = async (output, context) => {
|
|
464
|
-
const parsedOutput = {
|
|
465
|
-
...output,
|
|
466
|
-
body: await parseErrorBody(output.body, context),
|
|
467
|
-
};
|
|
468
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
469
|
-
switch (errorCode) {
|
|
470
|
-
case "BadRequestException":
|
|
471
|
-
case "com.amazonaws.chimesdkidentity#BadRequestException":
|
|
472
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
473
|
-
case "ConflictException":
|
|
474
|
-
case "com.amazonaws.chimesdkidentity#ConflictException":
|
|
475
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
476
|
-
case "ForbiddenException":
|
|
477
|
-
case "com.amazonaws.chimesdkidentity#ForbiddenException":
|
|
478
|
-
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
479
|
-
case "ResourceLimitExceededException":
|
|
480
|
-
case "com.amazonaws.chimesdkidentity#ResourceLimitExceededException":
|
|
481
|
-
throw await de_ResourceLimitExceededExceptionRes(parsedOutput, context);
|
|
482
|
-
case "ServiceFailureException":
|
|
483
|
-
case "com.amazonaws.chimesdkidentity#ServiceFailureException":
|
|
484
|
-
throw await de_ServiceFailureExceptionRes(parsedOutput, context);
|
|
485
|
-
case "ServiceUnavailableException":
|
|
486
|
-
case "com.amazonaws.chimesdkidentity#ServiceUnavailableException":
|
|
487
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
488
|
-
case "ThrottledClientException":
|
|
489
|
-
case "com.amazonaws.chimesdkidentity#ThrottledClientException":
|
|
490
|
-
throw await de_ThrottledClientExceptionRes(parsedOutput, context);
|
|
491
|
-
case "UnauthorizedClientException":
|
|
492
|
-
case "com.amazonaws.chimesdkidentity#UnauthorizedClientException":
|
|
493
|
-
throw await de_UnauthorizedClientExceptionRes(parsedOutput, context);
|
|
494
|
-
default:
|
|
495
|
-
const parsedBody = parsedOutput.body;
|
|
496
|
-
return throwDefaultError({
|
|
497
|
-
output,
|
|
498
|
-
parsedBody,
|
|
499
|
-
errorCode,
|
|
500
|
-
});
|
|
501
|
-
}
|
|
502
|
-
};
|
|
503
423
|
export const de_CreateAppInstanceBotCommand = async (output, context) => {
|
|
504
424
|
if (output.statusCode !== 201 && output.statusCode >= 300) {
|
|
505
|
-
return
|
|
425
|
+
return de_CommandError(output, context);
|
|
506
426
|
}
|
|
507
427
|
const contents = map({
|
|
508
428
|
$metadata: deserializeMetadata(output),
|
|
@@ -514,49 +434,9 @@ export const de_CreateAppInstanceBotCommand = async (output, context) => {
|
|
|
514
434
|
Object.assign(contents, doc);
|
|
515
435
|
return contents;
|
|
516
436
|
};
|
|
517
|
-
const de_CreateAppInstanceBotCommandError = async (output, context) => {
|
|
518
|
-
const parsedOutput = {
|
|
519
|
-
...output,
|
|
520
|
-
body: await parseErrorBody(output.body, context),
|
|
521
|
-
};
|
|
522
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
523
|
-
switch (errorCode) {
|
|
524
|
-
case "BadRequestException":
|
|
525
|
-
case "com.amazonaws.chimesdkidentity#BadRequestException":
|
|
526
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
527
|
-
case "ConflictException":
|
|
528
|
-
case "com.amazonaws.chimesdkidentity#ConflictException":
|
|
529
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
530
|
-
case "ForbiddenException":
|
|
531
|
-
case "com.amazonaws.chimesdkidentity#ForbiddenException":
|
|
532
|
-
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
533
|
-
case "ResourceLimitExceededException":
|
|
534
|
-
case "com.amazonaws.chimesdkidentity#ResourceLimitExceededException":
|
|
535
|
-
throw await de_ResourceLimitExceededExceptionRes(parsedOutput, context);
|
|
536
|
-
case "ServiceFailureException":
|
|
537
|
-
case "com.amazonaws.chimesdkidentity#ServiceFailureException":
|
|
538
|
-
throw await de_ServiceFailureExceptionRes(parsedOutput, context);
|
|
539
|
-
case "ServiceUnavailableException":
|
|
540
|
-
case "com.amazonaws.chimesdkidentity#ServiceUnavailableException":
|
|
541
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
542
|
-
case "ThrottledClientException":
|
|
543
|
-
case "com.amazonaws.chimesdkidentity#ThrottledClientException":
|
|
544
|
-
throw await de_ThrottledClientExceptionRes(parsedOutput, context);
|
|
545
|
-
case "UnauthorizedClientException":
|
|
546
|
-
case "com.amazonaws.chimesdkidentity#UnauthorizedClientException":
|
|
547
|
-
throw await de_UnauthorizedClientExceptionRes(parsedOutput, context);
|
|
548
|
-
default:
|
|
549
|
-
const parsedBody = parsedOutput.body;
|
|
550
|
-
return throwDefaultError({
|
|
551
|
-
output,
|
|
552
|
-
parsedBody,
|
|
553
|
-
errorCode,
|
|
554
|
-
});
|
|
555
|
-
}
|
|
556
|
-
};
|
|
557
437
|
export const de_CreateAppInstanceUserCommand = async (output, context) => {
|
|
558
438
|
if (output.statusCode !== 201 && output.statusCode >= 300) {
|
|
559
|
-
return
|
|
439
|
+
return de_CommandError(output, context);
|
|
560
440
|
}
|
|
561
441
|
const contents = map({
|
|
562
442
|
$metadata: deserializeMetadata(output),
|
|
@@ -568,49 +448,9 @@ export const de_CreateAppInstanceUserCommand = async (output, context) => {
|
|
|
568
448
|
Object.assign(contents, doc);
|
|
569
449
|
return contents;
|
|
570
450
|
};
|
|
571
|
-
const de_CreateAppInstanceUserCommandError = async (output, context) => {
|
|
572
|
-
const parsedOutput = {
|
|
573
|
-
...output,
|
|
574
|
-
body: await parseErrorBody(output.body, context),
|
|
575
|
-
};
|
|
576
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
577
|
-
switch (errorCode) {
|
|
578
|
-
case "BadRequestException":
|
|
579
|
-
case "com.amazonaws.chimesdkidentity#BadRequestException":
|
|
580
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
581
|
-
case "ConflictException":
|
|
582
|
-
case "com.amazonaws.chimesdkidentity#ConflictException":
|
|
583
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
584
|
-
case "ForbiddenException":
|
|
585
|
-
case "com.amazonaws.chimesdkidentity#ForbiddenException":
|
|
586
|
-
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
587
|
-
case "ResourceLimitExceededException":
|
|
588
|
-
case "com.amazonaws.chimesdkidentity#ResourceLimitExceededException":
|
|
589
|
-
throw await de_ResourceLimitExceededExceptionRes(parsedOutput, context);
|
|
590
|
-
case "ServiceFailureException":
|
|
591
|
-
case "com.amazonaws.chimesdkidentity#ServiceFailureException":
|
|
592
|
-
throw await de_ServiceFailureExceptionRes(parsedOutput, context);
|
|
593
|
-
case "ServiceUnavailableException":
|
|
594
|
-
case "com.amazonaws.chimesdkidentity#ServiceUnavailableException":
|
|
595
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
596
|
-
case "ThrottledClientException":
|
|
597
|
-
case "com.amazonaws.chimesdkidentity#ThrottledClientException":
|
|
598
|
-
throw await de_ThrottledClientExceptionRes(parsedOutput, context);
|
|
599
|
-
case "UnauthorizedClientException":
|
|
600
|
-
case "com.amazonaws.chimesdkidentity#UnauthorizedClientException":
|
|
601
|
-
throw await de_UnauthorizedClientExceptionRes(parsedOutput, context);
|
|
602
|
-
default:
|
|
603
|
-
const parsedBody = parsedOutput.body;
|
|
604
|
-
return throwDefaultError({
|
|
605
|
-
output,
|
|
606
|
-
parsedBody,
|
|
607
|
-
errorCode,
|
|
608
|
-
});
|
|
609
|
-
}
|
|
610
|
-
};
|
|
611
451
|
export const de_DeleteAppInstanceCommand = async (output, context) => {
|
|
612
452
|
if (output.statusCode !== 204 && output.statusCode >= 300) {
|
|
613
|
-
return
|
|
453
|
+
return de_CommandError(output, context);
|
|
614
454
|
}
|
|
615
455
|
const contents = map({
|
|
616
456
|
$metadata: deserializeMetadata(output),
|
|
@@ -618,46 +458,19 @@ export const de_DeleteAppInstanceCommand = async (output, context) => {
|
|
|
618
458
|
await collectBody(output.body, context);
|
|
619
459
|
return contents;
|
|
620
460
|
};
|
|
621
|
-
const
|
|
622
|
-
|
|
623
|
-
|
|
624
|
-
body: await parseErrorBody(output.body, context),
|
|
625
|
-
};
|
|
626
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
627
|
-
switch (errorCode) {
|
|
628
|
-
case "BadRequestException":
|
|
629
|
-
case "com.amazonaws.chimesdkidentity#BadRequestException":
|
|
630
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
631
|
-
case "ForbiddenException":
|
|
632
|
-
case "com.amazonaws.chimesdkidentity#ForbiddenException":
|
|
633
|
-
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
634
|
-
case "ResourceLimitExceededException":
|
|
635
|
-
case "com.amazonaws.chimesdkidentity#ResourceLimitExceededException":
|
|
636
|
-
throw await de_ResourceLimitExceededExceptionRes(parsedOutput, context);
|
|
637
|
-
case "ServiceFailureException":
|
|
638
|
-
case "com.amazonaws.chimesdkidentity#ServiceFailureException":
|
|
639
|
-
throw await de_ServiceFailureExceptionRes(parsedOutput, context);
|
|
640
|
-
case "ServiceUnavailableException":
|
|
641
|
-
case "com.amazonaws.chimesdkidentity#ServiceUnavailableException":
|
|
642
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
643
|
-
case "ThrottledClientException":
|
|
644
|
-
case "com.amazonaws.chimesdkidentity#ThrottledClientException":
|
|
645
|
-
throw await de_ThrottledClientExceptionRes(parsedOutput, context);
|
|
646
|
-
case "UnauthorizedClientException":
|
|
647
|
-
case "com.amazonaws.chimesdkidentity#UnauthorizedClientException":
|
|
648
|
-
throw await de_UnauthorizedClientExceptionRes(parsedOutput, context);
|
|
649
|
-
default:
|
|
650
|
-
const parsedBody = parsedOutput.body;
|
|
651
|
-
return throwDefaultError({
|
|
652
|
-
output,
|
|
653
|
-
parsedBody,
|
|
654
|
-
errorCode,
|
|
655
|
-
});
|
|
461
|
+
export const de_DeleteAppInstanceAdminCommand = async (output, context) => {
|
|
462
|
+
if (output.statusCode !== 204 && output.statusCode >= 300) {
|
|
463
|
+
return de_CommandError(output, context);
|
|
656
464
|
}
|
|
465
|
+
const contents = map({
|
|
466
|
+
$metadata: deserializeMetadata(output),
|
|
467
|
+
});
|
|
468
|
+
await collectBody(output.body, context);
|
|
469
|
+
return contents;
|
|
657
470
|
};
|
|
658
|
-
export const
|
|
471
|
+
export const de_DeleteAppInstanceBotCommand = async (output, context) => {
|
|
659
472
|
if (output.statusCode !== 204 && output.statusCode >= 300) {
|
|
660
|
-
return
|
|
473
|
+
return de_CommandError(output, context);
|
|
661
474
|
}
|
|
662
475
|
const contents = map({
|
|
663
476
|
$metadata: deserializeMetadata(output),
|
|
@@ -665,49 +478,19 @@ export const de_DeleteAppInstanceAdminCommand = async (output, context) => {
|
|
|
665
478
|
await collectBody(output.body, context);
|
|
666
479
|
return contents;
|
|
667
480
|
};
|
|
668
|
-
const
|
|
669
|
-
|
|
670
|
-
|
|
671
|
-
body: await parseErrorBody(output.body, context),
|
|
672
|
-
};
|
|
673
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
674
|
-
switch (errorCode) {
|
|
675
|
-
case "BadRequestException":
|
|
676
|
-
case "com.amazonaws.chimesdkidentity#BadRequestException":
|
|
677
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
678
|
-
case "ConflictException":
|
|
679
|
-
case "com.amazonaws.chimesdkidentity#ConflictException":
|
|
680
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
681
|
-
case "ForbiddenException":
|
|
682
|
-
case "com.amazonaws.chimesdkidentity#ForbiddenException":
|
|
683
|
-
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
684
|
-
case "ResourceLimitExceededException":
|
|
685
|
-
case "com.amazonaws.chimesdkidentity#ResourceLimitExceededException":
|
|
686
|
-
throw await de_ResourceLimitExceededExceptionRes(parsedOutput, context);
|
|
687
|
-
case "ServiceFailureException":
|
|
688
|
-
case "com.amazonaws.chimesdkidentity#ServiceFailureException":
|
|
689
|
-
throw await de_ServiceFailureExceptionRes(parsedOutput, context);
|
|
690
|
-
case "ServiceUnavailableException":
|
|
691
|
-
case "com.amazonaws.chimesdkidentity#ServiceUnavailableException":
|
|
692
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
693
|
-
case "ThrottledClientException":
|
|
694
|
-
case "com.amazonaws.chimesdkidentity#ThrottledClientException":
|
|
695
|
-
throw await de_ThrottledClientExceptionRes(parsedOutput, context);
|
|
696
|
-
case "UnauthorizedClientException":
|
|
697
|
-
case "com.amazonaws.chimesdkidentity#UnauthorizedClientException":
|
|
698
|
-
throw await de_UnauthorizedClientExceptionRes(parsedOutput, context);
|
|
699
|
-
default:
|
|
700
|
-
const parsedBody = parsedOutput.body;
|
|
701
|
-
return throwDefaultError({
|
|
702
|
-
output,
|
|
703
|
-
parsedBody,
|
|
704
|
-
errorCode,
|
|
705
|
-
});
|
|
481
|
+
export const de_DeleteAppInstanceUserCommand = async (output, context) => {
|
|
482
|
+
if (output.statusCode !== 204 && output.statusCode >= 300) {
|
|
483
|
+
return de_CommandError(output, context);
|
|
706
484
|
}
|
|
485
|
+
const contents = map({
|
|
486
|
+
$metadata: deserializeMetadata(output),
|
|
487
|
+
});
|
|
488
|
+
await collectBody(output.body, context);
|
|
489
|
+
return contents;
|
|
707
490
|
};
|
|
708
|
-
export const
|
|
491
|
+
export const de_DeregisterAppInstanceUserEndpointCommand = async (output, context) => {
|
|
709
492
|
if (output.statusCode !== 204 && output.statusCode >= 300) {
|
|
710
|
-
return
|
|
493
|
+
return de_CommandError(output, context);
|
|
711
494
|
}
|
|
712
495
|
const contents = map({
|
|
713
496
|
$metadata: deserializeMetadata(output),
|
|
@@ -715,143 +498,9 @@ export const de_DeleteAppInstanceBotCommand = async (output, context) => {
|
|
|
715
498
|
await collectBody(output.body, context);
|
|
716
499
|
return contents;
|
|
717
500
|
};
|
|
718
|
-
const de_DeleteAppInstanceBotCommandError = async (output, context) => {
|
|
719
|
-
const parsedOutput = {
|
|
720
|
-
...output,
|
|
721
|
-
body: await parseErrorBody(output.body, context),
|
|
722
|
-
};
|
|
723
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
724
|
-
switch (errorCode) {
|
|
725
|
-
case "BadRequestException":
|
|
726
|
-
case "com.amazonaws.chimesdkidentity#BadRequestException":
|
|
727
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
728
|
-
case "ConflictException":
|
|
729
|
-
case "com.amazonaws.chimesdkidentity#ConflictException":
|
|
730
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
731
|
-
case "ForbiddenException":
|
|
732
|
-
case "com.amazonaws.chimesdkidentity#ForbiddenException":
|
|
733
|
-
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
734
|
-
case "ResourceLimitExceededException":
|
|
735
|
-
case "com.amazonaws.chimesdkidentity#ResourceLimitExceededException":
|
|
736
|
-
throw await de_ResourceLimitExceededExceptionRes(parsedOutput, context);
|
|
737
|
-
case "ServiceFailureException":
|
|
738
|
-
case "com.amazonaws.chimesdkidentity#ServiceFailureException":
|
|
739
|
-
throw await de_ServiceFailureExceptionRes(parsedOutput, context);
|
|
740
|
-
case "ServiceUnavailableException":
|
|
741
|
-
case "com.amazonaws.chimesdkidentity#ServiceUnavailableException":
|
|
742
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
743
|
-
case "ThrottledClientException":
|
|
744
|
-
case "com.amazonaws.chimesdkidentity#ThrottledClientException":
|
|
745
|
-
throw await de_ThrottledClientExceptionRes(parsedOutput, context);
|
|
746
|
-
case "UnauthorizedClientException":
|
|
747
|
-
case "com.amazonaws.chimesdkidentity#UnauthorizedClientException":
|
|
748
|
-
throw await de_UnauthorizedClientExceptionRes(parsedOutput, context);
|
|
749
|
-
default:
|
|
750
|
-
const parsedBody = parsedOutput.body;
|
|
751
|
-
return throwDefaultError({
|
|
752
|
-
output,
|
|
753
|
-
parsedBody,
|
|
754
|
-
errorCode,
|
|
755
|
-
});
|
|
756
|
-
}
|
|
757
|
-
};
|
|
758
|
-
export const de_DeleteAppInstanceUserCommand = async (output, context) => {
|
|
759
|
-
if (output.statusCode !== 204 && output.statusCode >= 300) {
|
|
760
|
-
return de_DeleteAppInstanceUserCommandError(output, context);
|
|
761
|
-
}
|
|
762
|
-
const contents = map({
|
|
763
|
-
$metadata: deserializeMetadata(output),
|
|
764
|
-
});
|
|
765
|
-
await collectBody(output.body, context);
|
|
766
|
-
return contents;
|
|
767
|
-
};
|
|
768
|
-
const de_DeleteAppInstanceUserCommandError = async (output, context) => {
|
|
769
|
-
const parsedOutput = {
|
|
770
|
-
...output,
|
|
771
|
-
body: await parseErrorBody(output.body, context),
|
|
772
|
-
};
|
|
773
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
774
|
-
switch (errorCode) {
|
|
775
|
-
case "BadRequestException":
|
|
776
|
-
case "com.amazonaws.chimesdkidentity#BadRequestException":
|
|
777
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
778
|
-
case "ConflictException":
|
|
779
|
-
case "com.amazonaws.chimesdkidentity#ConflictException":
|
|
780
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
781
|
-
case "ForbiddenException":
|
|
782
|
-
case "com.amazonaws.chimesdkidentity#ForbiddenException":
|
|
783
|
-
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
784
|
-
case "ResourceLimitExceededException":
|
|
785
|
-
case "com.amazonaws.chimesdkidentity#ResourceLimitExceededException":
|
|
786
|
-
throw await de_ResourceLimitExceededExceptionRes(parsedOutput, context);
|
|
787
|
-
case "ServiceFailureException":
|
|
788
|
-
case "com.amazonaws.chimesdkidentity#ServiceFailureException":
|
|
789
|
-
throw await de_ServiceFailureExceptionRes(parsedOutput, context);
|
|
790
|
-
case "ServiceUnavailableException":
|
|
791
|
-
case "com.amazonaws.chimesdkidentity#ServiceUnavailableException":
|
|
792
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
793
|
-
case "ThrottledClientException":
|
|
794
|
-
case "com.amazonaws.chimesdkidentity#ThrottledClientException":
|
|
795
|
-
throw await de_ThrottledClientExceptionRes(parsedOutput, context);
|
|
796
|
-
case "UnauthorizedClientException":
|
|
797
|
-
case "com.amazonaws.chimesdkidentity#UnauthorizedClientException":
|
|
798
|
-
throw await de_UnauthorizedClientExceptionRes(parsedOutput, context);
|
|
799
|
-
default:
|
|
800
|
-
const parsedBody = parsedOutput.body;
|
|
801
|
-
return throwDefaultError({
|
|
802
|
-
output,
|
|
803
|
-
parsedBody,
|
|
804
|
-
errorCode,
|
|
805
|
-
});
|
|
806
|
-
}
|
|
807
|
-
};
|
|
808
|
-
export const de_DeregisterAppInstanceUserEndpointCommand = async (output, context) => {
|
|
809
|
-
if (output.statusCode !== 204 && output.statusCode >= 300) {
|
|
810
|
-
return de_DeregisterAppInstanceUserEndpointCommandError(output, context);
|
|
811
|
-
}
|
|
812
|
-
const contents = map({
|
|
813
|
-
$metadata: deserializeMetadata(output),
|
|
814
|
-
});
|
|
815
|
-
await collectBody(output.body, context);
|
|
816
|
-
return contents;
|
|
817
|
-
};
|
|
818
|
-
const de_DeregisterAppInstanceUserEndpointCommandError = async (output, context) => {
|
|
819
|
-
const parsedOutput = {
|
|
820
|
-
...output,
|
|
821
|
-
body: await parseErrorBody(output.body, context),
|
|
822
|
-
};
|
|
823
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
824
|
-
switch (errorCode) {
|
|
825
|
-
case "BadRequestException":
|
|
826
|
-
case "com.amazonaws.chimesdkidentity#BadRequestException":
|
|
827
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
828
|
-
case "ForbiddenException":
|
|
829
|
-
case "com.amazonaws.chimesdkidentity#ForbiddenException":
|
|
830
|
-
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
831
|
-
case "ServiceFailureException":
|
|
832
|
-
case "com.amazonaws.chimesdkidentity#ServiceFailureException":
|
|
833
|
-
throw await de_ServiceFailureExceptionRes(parsedOutput, context);
|
|
834
|
-
case "ServiceUnavailableException":
|
|
835
|
-
case "com.amazonaws.chimesdkidentity#ServiceUnavailableException":
|
|
836
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
837
|
-
case "ThrottledClientException":
|
|
838
|
-
case "com.amazonaws.chimesdkidentity#ThrottledClientException":
|
|
839
|
-
throw await de_ThrottledClientExceptionRes(parsedOutput, context);
|
|
840
|
-
case "UnauthorizedClientException":
|
|
841
|
-
case "com.amazonaws.chimesdkidentity#UnauthorizedClientException":
|
|
842
|
-
throw await de_UnauthorizedClientExceptionRes(parsedOutput, context);
|
|
843
|
-
default:
|
|
844
|
-
const parsedBody = parsedOutput.body;
|
|
845
|
-
return throwDefaultError({
|
|
846
|
-
output,
|
|
847
|
-
parsedBody,
|
|
848
|
-
errorCode,
|
|
849
|
-
});
|
|
850
|
-
}
|
|
851
|
-
};
|
|
852
501
|
export const de_DescribeAppInstanceCommand = async (output, context) => {
|
|
853
502
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
854
|
-
return
|
|
503
|
+
return de_CommandError(output, context);
|
|
855
504
|
}
|
|
856
505
|
const contents = map({
|
|
857
506
|
$metadata: deserializeMetadata(output),
|
|
@@ -863,43 +512,9 @@ export const de_DescribeAppInstanceCommand = async (output, context) => {
|
|
|
863
512
|
Object.assign(contents, doc);
|
|
864
513
|
return contents;
|
|
865
514
|
};
|
|
866
|
-
const de_DescribeAppInstanceCommandError = async (output, context) => {
|
|
867
|
-
const parsedOutput = {
|
|
868
|
-
...output,
|
|
869
|
-
body: await parseErrorBody(output.body, context),
|
|
870
|
-
};
|
|
871
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
872
|
-
switch (errorCode) {
|
|
873
|
-
case "BadRequestException":
|
|
874
|
-
case "com.amazonaws.chimesdkidentity#BadRequestException":
|
|
875
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
876
|
-
case "ForbiddenException":
|
|
877
|
-
case "com.amazonaws.chimesdkidentity#ForbiddenException":
|
|
878
|
-
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
879
|
-
case "ServiceFailureException":
|
|
880
|
-
case "com.amazonaws.chimesdkidentity#ServiceFailureException":
|
|
881
|
-
throw await de_ServiceFailureExceptionRes(parsedOutput, context);
|
|
882
|
-
case "ServiceUnavailableException":
|
|
883
|
-
case "com.amazonaws.chimesdkidentity#ServiceUnavailableException":
|
|
884
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
885
|
-
case "ThrottledClientException":
|
|
886
|
-
case "com.amazonaws.chimesdkidentity#ThrottledClientException":
|
|
887
|
-
throw await de_ThrottledClientExceptionRes(parsedOutput, context);
|
|
888
|
-
case "UnauthorizedClientException":
|
|
889
|
-
case "com.amazonaws.chimesdkidentity#UnauthorizedClientException":
|
|
890
|
-
throw await de_UnauthorizedClientExceptionRes(parsedOutput, context);
|
|
891
|
-
default:
|
|
892
|
-
const parsedBody = parsedOutput.body;
|
|
893
|
-
return throwDefaultError({
|
|
894
|
-
output,
|
|
895
|
-
parsedBody,
|
|
896
|
-
errorCode,
|
|
897
|
-
});
|
|
898
|
-
}
|
|
899
|
-
};
|
|
900
515
|
export const de_DescribeAppInstanceAdminCommand = async (output, context) => {
|
|
901
516
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
902
|
-
return
|
|
517
|
+
return de_CommandError(output, context);
|
|
903
518
|
}
|
|
904
519
|
const contents = map({
|
|
905
520
|
$metadata: deserializeMetadata(output),
|
|
@@ -911,43 +526,9 @@ export const de_DescribeAppInstanceAdminCommand = async (output, context) => {
|
|
|
911
526
|
Object.assign(contents, doc);
|
|
912
527
|
return contents;
|
|
913
528
|
};
|
|
914
|
-
const de_DescribeAppInstanceAdminCommandError = async (output, context) => {
|
|
915
|
-
const parsedOutput = {
|
|
916
|
-
...output,
|
|
917
|
-
body: await parseErrorBody(output.body, context),
|
|
918
|
-
};
|
|
919
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
920
|
-
switch (errorCode) {
|
|
921
|
-
case "BadRequestException":
|
|
922
|
-
case "com.amazonaws.chimesdkidentity#BadRequestException":
|
|
923
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
924
|
-
case "ForbiddenException":
|
|
925
|
-
case "com.amazonaws.chimesdkidentity#ForbiddenException":
|
|
926
|
-
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
927
|
-
case "ServiceFailureException":
|
|
928
|
-
case "com.amazonaws.chimesdkidentity#ServiceFailureException":
|
|
929
|
-
throw await de_ServiceFailureExceptionRes(parsedOutput, context);
|
|
930
|
-
case "ServiceUnavailableException":
|
|
931
|
-
case "com.amazonaws.chimesdkidentity#ServiceUnavailableException":
|
|
932
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
933
|
-
case "ThrottledClientException":
|
|
934
|
-
case "com.amazonaws.chimesdkidentity#ThrottledClientException":
|
|
935
|
-
throw await de_ThrottledClientExceptionRes(parsedOutput, context);
|
|
936
|
-
case "UnauthorizedClientException":
|
|
937
|
-
case "com.amazonaws.chimesdkidentity#UnauthorizedClientException":
|
|
938
|
-
throw await de_UnauthorizedClientExceptionRes(parsedOutput, context);
|
|
939
|
-
default:
|
|
940
|
-
const parsedBody = parsedOutput.body;
|
|
941
|
-
return throwDefaultError({
|
|
942
|
-
output,
|
|
943
|
-
parsedBody,
|
|
944
|
-
errorCode,
|
|
945
|
-
});
|
|
946
|
-
}
|
|
947
|
-
};
|
|
948
529
|
export const de_DescribeAppInstanceBotCommand = async (output, context) => {
|
|
949
530
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
950
|
-
return
|
|
531
|
+
return de_CommandError(output, context);
|
|
951
532
|
}
|
|
952
533
|
const contents = map({
|
|
953
534
|
$metadata: deserializeMetadata(output),
|
|
@@ -959,395 +540,68 @@ export const de_DescribeAppInstanceBotCommand = async (output, context) => {
|
|
|
959
540
|
Object.assign(contents, doc);
|
|
960
541
|
return contents;
|
|
961
542
|
};
|
|
962
|
-
const de_DescribeAppInstanceBotCommandError = async (output, context) => {
|
|
963
|
-
const parsedOutput = {
|
|
964
|
-
...output,
|
|
965
|
-
body: await parseErrorBody(output.body, context),
|
|
966
|
-
};
|
|
967
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
968
|
-
switch (errorCode) {
|
|
969
|
-
case "BadRequestException":
|
|
970
|
-
case "com.amazonaws.chimesdkidentity#BadRequestException":
|
|
971
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
972
|
-
case "ForbiddenException":
|
|
973
|
-
case "com.amazonaws.chimesdkidentity#ForbiddenException":
|
|
974
|
-
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
975
|
-
case "NotFoundException":
|
|
976
|
-
case "com.amazonaws.chimesdkidentity#NotFoundException":
|
|
977
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
978
|
-
case "ServiceFailureException":
|
|
979
|
-
case "com.amazonaws.chimesdkidentity#ServiceFailureException":
|
|
980
|
-
throw await de_ServiceFailureExceptionRes(parsedOutput, context);
|
|
981
|
-
case "ServiceUnavailableException":
|
|
982
|
-
case "com.amazonaws.chimesdkidentity#ServiceUnavailableException":
|
|
983
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
984
|
-
case "ThrottledClientException":
|
|
985
|
-
case "com.amazonaws.chimesdkidentity#ThrottledClientException":
|
|
986
|
-
throw await de_ThrottledClientExceptionRes(parsedOutput, context);
|
|
987
|
-
case "UnauthorizedClientException":
|
|
988
|
-
case "com.amazonaws.chimesdkidentity#UnauthorizedClientException":
|
|
989
|
-
throw await de_UnauthorizedClientExceptionRes(parsedOutput, context);
|
|
990
|
-
default:
|
|
991
|
-
const parsedBody = parsedOutput.body;
|
|
992
|
-
return throwDefaultError({
|
|
993
|
-
output,
|
|
994
|
-
parsedBody,
|
|
995
|
-
errorCode,
|
|
996
|
-
});
|
|
997
|
-
}
|
|
998
|
-
};
|
|
999
543
|
export const de_DescribeAppInstanceUserCommand = async (output, context) => {
|
|
1000
544
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1001
|
-
return
|
|
1002
|
-
}
|
|
1003
|
-
const contents = map({
|
|
1004
|
-
$metadata: deserializeMetadata(output),
|
|
1005
|
-
});
|
|
1006
|
-
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
1007
|
-
const doc = take(data, {
|
|
1008
|
-
AppInstanceUser: (_) => de_AppInstanceUser(_, context),
|
|
1009
|
-
});
|
|
1010
|
-
Object.assign(contents, doc);
|
|
1011
|
-
return contents;
|
|
1012
|
-
};
|
|
1013
|
-
const de_DescribeAppInstanceUserCommandError = async (output, context) => {
|
|
1014
|
-
const parsedOutput = {
|
|
1015
|
-
...output,
|
|
1016
|
-
body: await parseErrorBody(output.body, context),
|
|
1017
|
-
};
|
|
1018
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1019
|
-
switch (errorCode) {
|
|
1020
|
-
case "BadRequestException":
|
|
1021
|
-
case "com.amazonaws.chimesdkidentity#BadRequestException":
|
|
1022
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
1023
|
-
case "ForbiddenException":
|
|
1024
|
-
case "com.amazonaws.chimesdkidentity#ForbiddenException":
|
|
1025
|
-
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
1026
|
-
case "ServiceFailureException":
|
|
1027
|
-
case "com.amazonaws.chimesdkidentity#ServiceFailureException":
|
|
1028
|
-
throw await de_ServiceFailureExceptionRes(parsedOutput, context);
|
|
1029
|
-
case "ServiceUnavailableException":
|
|
1030
|
-
case "com.amazonaws.chimesdkidentity#ServiceUnavailableException":
|
|
1031
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
1032
|
-
case "ThrottledClientException":
|
|
1033
|
-
case "com.amazonaws.chimesdkidentity#ThrottledClientException":
|
|
1034
|
-
throw await de_ThrottledClientExceptionRes(parsedOutput, context);
|
|
1035
|
-
case "UnauthorizedClientException":
|
|
1036
|
-
case "com.amazonaws.chimesdkidentity#UnauthorizedClientException":
|
|
1037
|
-
throw await de_UnauthorizedClientExceptionRes(parsedOutput, context);
|
|
1038
|
-
default:
|
|
1039
|
-
const parsedBody = parsedOutput.body;
|
|
1040
|
-
return throwDefaultError({
|
|
1041
|
-
output,
|
|
1042
|
-
parsedBody,
|
|
1043
|
-
errorCode,
|
|
1044
|
-
});
|
|
1045
|
-
}
|
|
1046
|
-
};
|
|
1047
|
-
export const de_DescribeAppInstanceUserEndpointCommand = async (output, context) => {
|
|
1048
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1049
|
-
return de_DescribeAppInstanceUserEndpointCommandError(output, context);
|
|
1050
|
-
}
|
|
1051
|
-
const contents = map({
|
|
1052
|
-
$metadata: deserializeMetadata(output),
|
|
1053
|
-
});
|
|
1054
|
-
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
1055
|
-
const doc = take(data, {
|
|
1056
|
-
AppInstanceUserEndpoint: (_) => de_AppInstanceUserEndpoint(_, context),
|
|
1057
|
-
});
|
|
1058
|
-
Object.assign(contents, doc);
|
|
1059
|
-
return contents;
|
|
1060
|
-
};
|
|
1061
|
-
const de_DescribeAppInstanceUserEndpointCommandError = async (output, context) => {
|
|
1062
|
-
const parsedOutput = {
|
|
1063
|
-
...output,
|
|
1064
|
-
body: await parseErrorBody(output.body, context),
|
|
1065
|
-
};
|
|
1066
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1067
|
-
switch (errorCode) {
|
|
1068
|
-
case "BadRequestException":
|
|
1069
|
-
case "com.amazonaws.chimesdkidentity#BadRequestException":
|
|
1070
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
1071
|
-
case "ForbiddenException":
|
|
1072
|
-
case "com.amazonaws.chimesdkidentity#ForbiddenException":
|
|
1073
|
-
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
1074
|
-
case "ServiceFailureException":
|
|
1075
|
-
case "com.amazonaws.chimesdkidentity#ServiceFailureException":
|
|
1076
|
-
throw await de_ServiceFailureExceptionRes(parsedOutput, context);
|
|
1077
|
-
case "ServiceUnavailableException":
|
|
1078
|
-
case "com.amazonaws.chimesdkidentity#ServiceUnavailableException":
|
|
1079
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
1080
|
-
case "ThrottledClientException":
|
|
1081
|
-
case "com.amazonaws.chimesdkidentity#ThrottledClientException":
|
|
1082
|
-
throw await de_ThrottledClientExceptionRes(parsedOutput, context);
|
|
1083
|
-
case "UnauthorizedClientException":
|
|
1084
|
-
case "com.amazonaws.chimesdkidentity#UnauthorizedClientException":
|
|
1085
|
-
throw await de_UnauthorizedClientExceptionRes(parsedOutput, context);
|
|
1086
|
-
default:
|
|
1087
|
-
const parsedBody = parsedOutput.body;
|
|
1088
|
-
return throwDefaultError({
|
|
1089
|
-
output,
|
|
1090
|
-
parsedBody,
|
|
1091
|
-
errorCode,
|
|
1092
|
-
});
|
|
1093
|
-
}
|
|
1094
|
-
};
|
|
1095
|
-
export const de_GetAppInstanceRetentionSettingsCommand = async (output, context) => {
|
|
1096
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1097
|
-
return de_GetAppInstanceRetentionSettingsCommandError(output, context);
|
|
1098
|
-
}
|
|
1099
|
-
const contents = map({
|
|
1100
|
-
$metadata: deserializeMetadata(output),
|
|
1101
|
-
});
|
|
1102
|
-
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
1103
|
-
const doc = take(data, {
|
|
1104
|
-
AppInstanceRetentionSettings: _json,
|
|
1105
|
-
InitiateDeletionTimestamp: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
1106
|
-
});
|
|
1107
|
-
Object.assign(contents, doc);
|
|
1108
|
-
return contents;
|
|
1109
|
-
};
|
|
1110
|
-
const de_GetAppInstanceRetentionSettingsCommandError = async (output, context) => {
|
|
1111
|
-
const parsedOutput = {
|
|
1112
|
-
...output,
|
|
1113
|
-
body: await parseErrorBody(output.body, context),
|
|
1114
|
-
};
|
|
1115
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1116
|
-
switch (errorCode) {
|
|
1117
|
-
case "BadRequestException":
|
|
1118
|
-
case "com.amazonaws.chimesdkidentity#BadRequestException":
|
|
1119
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
1120
|
-
case "ForbiddenException":
|
|
1121
|
-
case "com.amazonaws.chimesdkidentity#ForbiddenException":
|
|
1122
|
-
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
1123
|
-
case "ServiceFailureException":
|
|
1124
|
-
case "com.amazonaws.chimesdkidentity#ServiceFailureException":
|
|
1125
|
-
throw await de_ServiceFailureExceptionRes(parsedOutput, context);
|
|
1126
|
-
case "ServiceUnavailableException":
|
|
1127
|
-
case "com.amazonaws.chimesdkidentity#ServiceUnavailableException":
|
|
1128
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
1129
|
-
case "ThrottledClientException":
|
|
1130
|
-
case "com.amazonaws.chimesdkidentity#ThrottledClientException":
|
|
1131
|
-
throw await de_ThrottledClientExceptionRes(parsedOutput, context);
|
|
1132
|
-
case "UnauthorizedClientException":
|
|
1133
|
-
case "com.amazonaws.chimesdkidentity#UnauthorizedClientException":
|
|
1134
|
-
throw await de_UnauthorizedClientExceptionRes(parsedOutput, context);
|
|
1135
|
-
default:
|
|
1136
|
-
const parsedBody = parsedOutput.body;
|
|
1137
|
-
return throwDefaultError({
|
|
1138
|
-
output,
|
|
1139
|
-
parsedBody,
|
|
1140
|
-
errorCode,
|
|
1141
|
-
});
|
|
1142
|
-
}
|
|
1143
|
-
};
|
|
1144
|
-
export const de_ListAppInstanceAdminsCommand = async (output, context) => {
|
|
1145
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1146
|
-
return de_ListAppInstanceAdminsCommandError(output, context);
|
|
545
|
+
return de_CommandError(output, context);
|
|
1147
546
|
}
|
|
1148
547
|
const contents = map({
|
|
1149
548
|
$metadata: deserializeMetadata(output),
|
|
1150
549
|
});
|
|
1151
550
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
1152
551
|
const doc = take(data, {
|
|
1153
|
-
|
|
1154
|
-
|
|
1155
|
-
|
|
1156
|
-
|
|
1157
|
-
Object.assign(contents, doc);
|
|
1158
|
-
return contents;
|
|
1159
|
-
};
|
|
1160
|
-
const de_ListAppInstanceAdminsCommandError = async (output, context) => {
|
|
1161
|
-
const parsedOutput = {
|
|
1162
|
-
...output,
|
|
1163
|
-
body: await parseErrorBody(output.body, context),
|
|
1164
|
-
};
|
|
1165
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1166
|
-
switch (errorCode) {
|
|
1167
|
-
case "BadRequestException":
|
|
1168
|
-
case "com.amazonaws.chimesdkidentity#BadRequestException":
|
|
1169
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
1170
|
-
case "ForbiddenException":
|
|
1171
|
-
case "com.amazonaws.chimesdkidentity#ForbiddenException":
|
|
1172
|
-
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
1173
|
-
case "ResourceLimitExceededException":
|
|
1174
|
-
case "com.amazonaws.chimesdkidentity#ResourceLimitExceededException":
|
|
1175
|
-
throw await de_ResourceLimitExceededExceptionRes(parsedOutput, context);
|
|
1176
|
-
case "ServiceFailureException":
|
|
1177
|
-
case "com.amazonaws.chimesdkidentity#ServiceFailureException":
|
|
1178
|
-
throw await de_ServiceFailureExceptionRes(parsedOutput, context);
|
|
1179
|
-
case "ServiceUnavailableException":
|
|
1180
|
-
case "com.amazonaws.chimesdkidentity#ServiceUnavailableException":
|
|
1181
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
1182
|
-
case "ThrottledClientException":
|
|
1183
|
-
case "com.amazonaws.chimesdkidentity#ThrottledClientException":
|
|
1184
|
-
throw await de_ThrottledClientExceptionRes(parsedOutput, context);
|
|
1185
|
-
case "UnauthorizedClientException":
|
|
1186
|
-
case "com.amazonaws.chimesdkidentity#UnauthorizedClientException":
|
|
1187
|
-
throw await de_UnauthorizedClientExceptionRes(parsedOutput, context);
|
|
1188
|
-
default:
|
|
1189
|
-
const parsedBody = parsedOutput.body;
|
|
1190
|
-
return throwDefaultError({
|
|
1191
|
-
output,
|
|
1192
|
-
parsedBody,
|
|
1193
|
-
errorCode,
|
|
1194
|
-
});
|
|
1195
|
-
}
|
|
1196
|
-
};
|
|
1197
|
-
export const de_ListAppInstanceBotsCommand = async (output, context) => {
|
|
1198
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1199
|
-
return de_ListAppInstanceBotsCommandError(output, context);
|
|
1200
|
-
}
|
|
1201
|
-
const contents = map({
|
|
1202
|
-
$metadata: deserializeMetadata(output),
|
|
1203
|
-
});
|
|
1204
|
-
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
1205
|
-
const doc = take(data, {
|
|
1206
|
-
AppInstanceArn: __expectString,
|
|
1207
|
-
AppInstanceBots: _json,
|
|
1208
|
-
NextToken: __expectString,
|
|
1209
|
-
});
|
|
1210
|
-
Object.assign(contents, doc);
|
|
1211
|
-
return contents;
|
|
1212
|
-
};
|
|
1213
|
-
const de_ListAppInstanceBotsCommandError = async (output, context) => {
|
|
1214
|
-
const parsedOutput = {
|
|
1215
|
-
...output,
|
|
1216
|
-
body: await parseErrorBody(output.body, context),
|
|
1217
|
-
};
|
|
1218
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1219
|
-
switch (errorCode) {
|
|
1220
|
-
case "BadRequestException":
|
|
1221
|
-
case "com.amazonaws.chimesdkidentity#BadRequestException":
|
|
1222
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
1223
|
-
case "ForbiddenException":
|
|
1224
|
-
case "com.amazonaws.chimesdkidentity#ForbiddenException":
|
|
1225
|
-
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
1226
|
-
case "ResourceLimitExceededException":
|
|
1227
|
-
case "com.amazonaws.chimesdkidentity#ResourceLimitExceededException":
|
|
1228
|
-
throw await de_ResourceLimitExceededExceptionRes(parsedOutput, context);
|
|
1229
|
-
case "ServiceFailureException":
|
|
1230
|
-
case "com.amazonaws.chimesdkidentity#ServiceFailureException":
|
|
1231
|
-
throw await de_ServiceFailureExceptionRes(parsedOutput, context);
|
|
1232
|
-
case "ServiceUnavailableException":
|
|
1233
|
-
case "com.amazonaws.chimesdkidentity#ServiceUnavailableException":
|
|
1234
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
1235
|
-
case "ThrottledClientException":
|
|
1236
|
-
case "com.amazonaws.chimesdkidentity#ThrottledClientException":
|
|
1237
|
-
throw await de_ThrottledClientExceptionRes(parsedOutput, context);
|
|
1238
|
-
case "UnauthorizedClientException":
|
|
1239
|
-
case "com.amazonaws.chimesdkidentity#UnauthorizedClientException":
|
|
1240
|
-
throw await de_UnauthorizedClientExceptionRes(parsedOutput, context);
|
|
1241
|
-
default:
|
|
1242
|
-
const parsedBody = parsedOutput.body;
|
|
1243
|
-
return throwDefaultError({
|
|
1244
|
-
output,
|
|
1245
|
-
parsedBody,
|
|
1246
|
-
errorCode,
|
|
1247
|
-
});
|
|
1248
|
-
}
|
|
552
|
+
AppInstanceUser: (_) => de_AppInstanceUser(_, context),
|
|
553
|
+
});
|
|
554
|
+
Object.assign(contents, doc);
|
|
555
|
+
return contents;
|
|
1249
556
|
};
|
|
1250
|
-
export const
|
|
557
|
+
export const de_DescribeAppInstanceUserEndpointCommand = async (output, context) => {
|
|
1251
558
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1252
|
-
return
|
|
559
|
+
return de_CommandError(output, context);
|
|
1253
560
|
}
|
|
1254
561
|
const contents = map({
|
|
1255
562
|
$metadata: deserializeMetadata(output),
|
|
1256
563
|
});
|
|
1257
564
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
1258
565
|
const doc = take(data, {
|
|
1259
|
-
|
|
1260
|
-
NextToken: __expectString,
|
|
566
|
+
AppInstanceUserEndpoint: (_) => de_AppInstanceUserEndpoint(_, context),
|
|
1261
567
|
});
|
|
1262
568
|
Object.assign(contents, doc);
|
|
1263
569
|
return contents;
|
|
1264
570
|
};
|
|
1265
|
-
const
|
|
1266
|
-
|
|
1267
|
-
|
|
1268
|
-
body: await parseErrorBody(output.body, context),
|
|
1269
|
-
};
|
|
1270
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1271
|
-
switch (errorCode) {
|
|
1272
|
-
case "BadRequestException":
|
|
1273
|
-
case "com.amazonaws.chimesdkidentity#BadRequestException":
|
|
1274
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
1275
|
-
case "ForbiddenException":
|
|
1276
|
-
case "com.amazonaws.chimesdkidentity#ForbiddenException":
|
|
1277
|
-
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
1278
|
-
case "ServiceFailureException":
|
|
1279
|
-
case "com.amazonaws.chimesdkidentity#ServiceFailureException":
|
|
1280
|
-
throw await de_ServiceFailureExceptionRes(parsedOutput, context);
|
|
1281
|
-
case "ServiceUnavailableException":
|
|
1282
|
-
case "com.amazonaws.chimesdkidentity#ServiceUnavailableException":
|
|
1283
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
1284
|
-
case "ThrottledClientException":
|
|
1285
|
-
case "com.amazonaws.chimesdkidentity#ThrottledClientException":
|
|
1286
|
-
throw await de_ThrottledClientExceptionRes(parsedOutput, context);
|
|
1287
|
-
case "UnauthorizedClientException":
|
|
1288
|
-
case "com.amazonaws.chimesdkidentity#UnauthorizedClientException":
|
|
1289
|
-
throw await de_UnauthorizedClientExceptionRes(parsedOutput, context);
|
|
1290
|
-
default:
|
|
1291
|
-
const parsedBody = parsedOutput.body;
|
|
1292
|
-
return throwDefaultError({
|
|
1293
|
-
output,
|
|
1294
|
-
parsedBody,
|
|
1295
|
-
errorCode,
|
|
1296
|
-
});
|
|
571
|
+
export const de_GetAppInstanceRetentionSettingsCommand = async (output, context) => {
|
|
572
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
573
|
+
return de_CommandError(output, context);
|
|
1297
574
|
}
|
|
575
|
+
const contents = map({
|
|
576
|
+
$metadata: deserializeMetadata(output),
|
|
577
|
+
});
|
|
578
|
+
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
579
|
+
const doc = take(data, {
|
|
580
|
+
AppInstanceRetentionSettings: _json,
|
|
581
|
+
InitiateDeletionTimestamp: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
582
|
+
});
|
|
583
|
+
Object.assign(contents, doc);
|
|
584
|
+
return contents;
|
|
1298
585
|
};
|
|
1299
|
-
export const
|
|
586
|
+
export const de_ListAppInstanceAdminsCommand = async (output, context) => {
|
|
1300
587
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1301
|
-
return
|
|
588
|
+
return de_CommandError(output, context);
|
|
1302
589
|
}
|
|
1303
590
|
const contents = map({
|
|
1304
591
|
$metadata: deserializeMetadata(output),
|
|
1305
592
|
});
|
|
1306
593
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
1307
594
|
const doc = take(data, {
|
|
1308
|
-
|
|
595
|
+
AppInstanceAdmins: _json,
|
|
596
|
+
AppInstanceArn: __expectString,
|
|
1309
597
|
NextToken: __expectString,
|
|
1310
598
|
});
|
|
1311
599
|
Object.assign(contents, doc);
|
|
1312
600
|
return contents;
|
|
1313
601
|
};
|
|
1314
|
-
const
|
|
1315
|
-
const parsedOutput = {
|
|
1316
|
-
...output,
|
|
1317
|
-
body: await parseErrorBody(output.body, context),
|
|
1318
|
-
};
|
|
1319
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1320
|
-
switch (errorCode) {
|
|
1321
|
-
case "BadRequestException":
|
|
1322
|
-
case "com.amazonaws.chimesdkidentity#BadRequestException":
|
|
1323
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
1324
|
-
case "ForbiddenException":
|
|
1325
|
-
case "com.amazonaws.chimesdkidentity#ForbiddenException":
|
|
1326
|
-
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
1327
|
-
case "ServiceFailureException":
|
|
1328
|
-
case "com.amazonaws.chimesdkidentity#ServiceFailureException":
|
|
1329
|
-
throw await de_ServiceFailureExceptionRes(parsedOutput, context);
|
|
1330
|
-
case "ServiceUnavailableException":
|
|
1331
|
-
case "com.amazonaws.chimesdkidentity#ServiceUnavailableException":
|
|
1332
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
1333
|
-
case "ThrottledClientException":
|
|
1334
|
-
case "com.amazonaws.chimesdkidentity#ThrottledClientException":
|
|
1335
|
-
throw await de_ThrottledClientExceptionRes(parsedOutput, context);
|
|
1336
|
-
case "UnauthorizedClientException":
|
|
1337
|
-
case "com.amazonaws.chimesdkidentity#UnauthorizedClientException":
|
|
1338
|
-
throw await de_UnauthorizedClientExceptionRes(parsedOutput, context);
|
|
1339
|
-
default:
|
|
1340
|
-
const parsedBody = parsedOutput.body;
|
|
1341
|
-
return throwDefaultError({
|
|
1342
|
-
output,
|
|
1343
|
-
parsedBody,
|
|
1344
|
-
errorCode,
|
|
1345
|
-
});
|
|
1346
|
-
}
|
|
1347
|
-
};
|
|
1348
|
-
export const de_ListAppInstanceUsersCommand = async (output, context) => {
|
|
602
|
+
export const de_ListAppInstanceBotsCommand = async (output, context) => {
|
|
1349
603
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1350
|
-
return
|
|
604
|
+
return de_CommandError(output, context);
|
|
1351
605
|
}
|
|
1352
606
|
const contents = map({
|
|
1353
607
|
$metadata: deserializeMetadata(output),
|
|
@@ -1355,198 +609,105 @@ export const de_ListAppInstanceUsersCommand = async (output, context) => {
|
|
|
1355
609
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
1356
610
|
const doc = take(data, {
|
|
1357
611
|
AppInstanceArn: __expectString,
|
|
1358
|
-
|
|
612
|
+
AppInstanceBots: _json,
|
|
1359
613
|
NextToken: __expectString,
|
|
1360
614
|
});
|
|
1361
615
|
Object.assign(contents, doc);
|
|
1362
616
|
return contents;
|
|
1363
617
|
};
|
|
1364
|
-
const
|
|
1365
|
-
const parsedOutput = {
|
|
1366
|
-
...output,
|
|
1367
|
-
body: await parseErrorBody(output.body, context),
|
|
1368
|
-
};
|
|
1369
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1370
|
-
switch (errorCode) {
|
|
1371
|
-
case "BadRequestException":
|
|
1372
|
-
case "com.amazonaws.chimesdkidentity#BadRequestException":
|
|
1373
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
1374
|
-
case "ForbiddenException":
|
|
1375
|
-
case "com.amazonaws.chimesdkidentity#ForbiddenException":
|
|
1376
|
-
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
1377
|
-
case "ServiceFailureException":
|
|
1378
|
-
case "com.amazonaws.chimesdkidentity#ServiceFailureException":
|
|
1379
|
-
throw await de_ServiceFailureExceptionRes(parsedOutput, context);
|
|
1380
|
-
case "ServiceUnavailableException":
|
|
1381
|
-
case "com.amazonaws.chimesdkidentity#ServiceUnavailableException":
|
|
1382
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
1383
|
-
case "ThrottledClientException":
|
|
1384
|
-
case "com.amazonaws.chimesdkidentity#ThrottledClientException":
|
|
1385
|
-
throw await de_ThrottledClientExceptionRes(parsedOutput, context);
|
|
1386
|
-
case "UnauthorizedClientException":
|
|
1387
|
-
case "com.amazonaws.chimesdkidentity#UnauthorizedClientException":
|
|
1388
|
-
throw await de_UnauthorizedClientExceptionRes(parsedOutput, context);
|
|
1389
|
-
default:
|
|
1390
|
-
const parsedBody = parsedOutput.body;
|
|
1391
|
-
return throwDefaultError({
|
|
1392
|
-
output,
|
|
1393
|
-
parsedBody,
|
|
1394
|
-
errorCode,
|
|
1395
|
-
});
|
|
1396
|
-
}
|
|
1397
|
-
};
|
|
1398
|
-
export const de_ListTagsForResourceCommand = async (output, context) => {
|
|
618
|
+
export const de_ListAppInstancesCommand = async (output, context) => {
|
|
1399
619
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1400
|
-
return
|
|
620
|
+
return de_CommandError(output, context);
|
|
1401
621
|
}
|
|
1402
622
|
const contents = map({
|
|
1403
623
|
$metadata: deserializeMetadata(output),
|
|
1404
624
|
});
|
|
1405
625
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
1406
626
|
const doc = take(data, {
|
|
1407
|
-
|
|
627
|
+
AppInstances: _json,
|
|
628
|
+
NextToken: __expectString,
|
|
1408
629
|
});
|
|
1409
630
|
Object.assign(contents, doc);
|
|
1410
631
|
return contents;
|
|
1411
632
|
};
|
|
1412
|
-
const
|
|
1413
|
-
const parsedOutput = {
|
|
1414
|
-
...output,
|
|
1415
|
-
body: await parseErrorBody(output.body, context),
|
|
1416
|
-
};
|
|
1417
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1418
|
-
switch (errorCode) {
|
|
1419
|
-
case "BadRequestException":
|
|
1420
|
-
case "com.amazonaws.chimesdkidentity#BadRequestException":
|
|
1421
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
1422
|
-
case "ForbiddenException":
|
|
1423
|
-
case "com.amazonaws.chimesdkidentity#ForbiddenException":
|
|
1424
|
-
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
1425
|
-
case "ServiceFailureException":
|
|
1426
|
-
case "com.amazonaws.chimesdkidentity#ServiceFailureException":
|
|
1427
|
-
throw await de_ServiceFailureExceptionRes(parsedOutput, context);
|
|
1428
|
-
case "ServiceUnavailableException":
|
|
1429
|
-
case "com.amazonaws.chimesdkidentity#ServiceUnavailableException":
|
|
1430
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
1431
|
-
case "ThrottledClientException":
|
|
1432
|
-
case "com.amazonaws.chimesdkidentity#ThrottledClientException":
|
|
1433
|
-
throw await de_ThrottledClientExceptionRes(parsedOutput, context);
|
|
1434
|
-
case "UnauthorizedClientException":
|
|
1435
|
-
case "com.amazonaws.chimesdkidentity#UnauthorizedClientException":
|
|
1436
|
-
throw await de_UnauthorizedClientExceptionRes(parsedOutput, context);
|
|
1437
|
-
default:
|
|
1438
|
-
const parsedBody = parsedOutput.body;
|
|
1439
|
-
return throwDefaultError({
|
|
1440
|
-
output,
|
|
1441
|
-
parsedBody,
|
|
1442
|
-
errorCode,
|
|
1443
|
-
});
|
|
1444
|
-
}
|
|
1445
|
-
};
|
|
1446
|
-
export const de_PutAppInstanceRetentionSettingsCommand = async (output, context) => {
|
|
633
|
+
export const de_ListAppInstanceUserEndpointsCommand = async (output, context) => {
|
|
1447
634
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1448
|
-
return
|
|
635
|
+
return de_CommandError(output, context);
|
|
1449
636
|
}
|
|
1450
637
|
const contents = map({
|
|
1451
638
|
$metadata: deserializeMetadata(output),
|
|
1452
639
|
});
|
|
1453
640
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
1454
641
|
const doc = take(data, {
|
|
1455
|
-
|
|
1456
|
-
|
|
642
|
+
AppInstanceUserEndpoints: _json,
|
|
643
|
+
NextToken: __expectString,
|
|
1457
644
|
});
|
|
1458
645
|
Object.assign(contents, doc);
|
|
1459
646
|
return contents;
|
|
1460
647
|
};
|
|
1461
|
-
const
|
|
1462
|
-
const parsedOutput = {
|
|
1463
|
-
...output,
|
|
1464
|
-
body: await parseErrorBody(output.body, context),
|
|
1465
|
-
};
|
|
1466
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1467
|
-
switch (errorCode) {
|
|
1468
|
-
case "BadRequestException":
|
|
1469
|
-
case "com.amazonaws.chimesdkidentity#BadRequestException":
|
|
1470
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
1471
|
-
case "ForbiddenException":
|
|
1472
|
-
case "com.amazonaws.chimesdkidentity#ForbiddenException":
|
|
1473
|
-
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
1474
|
-
case "ServiceFailureException":
|
|
1475
|
-
case "com.amazonaws.chimesdkidentity#ServiceFailureException":
|
|
1476
|
-
throw await de_ServiceFailureExceptionRes(parsedOutput, context);
|
|
1477
|
-
case "ServiceUnavailableException":
|
|
1478
|
-
case "com.amazonaws.chimesdkidentity#ServiceUnavailableException":
|
|
1479
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
1480
|
-
case "ThrottledClientException":
|
|
1481
|
-
case "com.amazonaws.chimesdkidentity#ThrottledClientException":
|
|
1482
|
-
throw await de_ThrottledClientExceptionRes(parsedOutput, context);
|
|
1483
|
-
case "UnauthorizedClientException":
|
|
1484
|
-
case "com.amazonaws.chimesdkidentity#UnauthorizedClientException":
|
|
1485
|
-
throw await de_UnauthorizedClientExceptionRes(parsedOutput, context);
|
|
1486
|
-
default:
|
|
1487
|
-
const parsedBody = parsedOutput.body;
|
|
1488
|
-
return throwDefaultError({
|
|
1489
|
-
output,
|
|
1490
|
-
parsedBody,
|
|
1491
|
-
errorCode,
|
|
1492
|
-
});
|
|
1493
|
-
}
|
|
1494
|
-
};
|
|
1495
|
-
export const de_PutAppInstanceUserExpirationSettingsCommand = async (output, context) => {
|
|
648
|
+
export const de_ListAppInstanceUsersCommand = async (output, context) => {
|
|
1496
649
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1497
|
-
return
|
|
650
|
+
return de_CommandError(output, context);
|
|
1498
651
|
}
|
|
1499
652
|
const contents = map({
|
|
1500
653
|
$metadata: deserializeMetadata(output),
|
|
1501
654
|
});
|
|
1502
655
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
1503
656
|
const doc = take(data, {
|
|
1504
|
-
|
|
1505
|
-
|
|
657
|
+
AppInstanceArn: __expectString,
|
|
658
|
+
AppInstanceUsers: _json,
|
|
659
|
+
NextToken: __expectString,
|
|
1506
660
|
});
|
|
1507
661
|
Object.assign(contents, doc);
|
|
1508
662
|
return contents;
|
|
1509
663
|
};
|
|
1510
|
-
const
|
|
1511
|
-
|
|
1512
|
-
|
|
1513
|
-
|
|
1514
|
-
|
|
1515
|
-
|
|
1516
|
-
|
|
1517
|
-
|
|
1518
|
-
|
|
1519
|
-
|
|
1520
|
-
|
|
1521
|
-
|
|
1522
|
-
|
|
1523
|
-
|
|
1524
|
-
|
|
1525
|
-
|
|
1526
|
-
|
|
1527
|
-
|
|
1528
|
-
|
|
1529
|
-
|
|
1530
|
-
|
|
1531
|
-
|
|
1532
|
-
|
|
1533
|
-
|
|
1534
|
-
|
|
1535
|
-
|
|
1536
|
-
|
|
1537
|
-
|
|
1538
|
-
|
|
1539
|
-
|
|
1540
|
-
|
|
1541
|
-
|
|
1542
|
-
parsedBody,
|
|
1543
|
-
errorCode,
|
|
1544
|
-
});
|
|
664
|
+
export const de_ListTagsForResourceCommand = async (output, context) => {
|
|
665
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
666
|
+
return de_CommandError(output, context);
|
|
667
|
+
}
|
|
668
|
+
const contents = map({
|
|
669
|
+
$metadata: deserializeMetadata(output),
|
|
670
|
+
});
|
|
671
|
+
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
672
|
+
const doc = take(data, {
|
|
673
|
+
Tags: _json,
|
|
674
|
+
});
|
|
675
|
+
Object.assign(contents, doc);
|
|
676
|
+
return contents;
|
|
677
|
+
};
|
|
678
|
+
export const de_PutAppInstanceRetentionSettingsCommand = async (output, context) => {
|
|
679
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
680
|
+
return de_CommandError(output, context);
|
|
681
|
+
}
|
|
682
|
+
const contents = map({
|
|
683
|
+
$metadata: deserializeMetadata(output),
|
|
684
|
+
});
|
|
685
|
+
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
686
|
+
const doc = take(data, {
|
|
687
|
+
AppInstanceRetentionSettings: _json,
|
|
688
|
+
InitiateDeletionTimestamp: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
689
|
+
});
|
|
690
|
+
Object.assign(contents, doc);
|
|
691
|
+
return contents;
|
|
692
|
+
};
|
|
693
|
+
export const de_PutAppInstanceUserExpirationSettingsCommand = async (output, context) => {
|
|
694
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
695
|
+
return de_CommandError(output, context);
|
|
1545
696
|
}
|
|
697
|
+
const contents = map({
|
|
698
|
+
$metadata: deserializeMetadata(output),
|
|
699
|
+
});
|
|
700
|
+
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
701
|
+
const doc = take(data, {
|
|
702
|
+
AppInstanceUserArn: __expectString,
|
|
703
|
+
ExpirationSettings: _json,
|
|
704
|
+
});
|
|
705
|
+
Object.assign(contents, doc);
|
|
706
|
+
return contents;
|
|
1546
707
|
};
|
|
1547
708
|
export const de_RegisterAppInstanceUserEndpointCommand = async (output, context) => {
|
|
1548
709
|
if (output.statusCode !== 201 && output.statusCode >= 300) {
|
|
1549
|
-
return
|
|
710
|
+
return de_CommandError(output, context);
|
|
1550
711
|
}
|
|
1551
712
|
const contents = map({
|
|
1552
713
|
$metadata: deserializeMetadata(output),
|
|
@@ -1559,49 +720,9 @@ export const de_RegisterAppInstanceUserEndpointCommand = async (output, context)
|
|
|
1559
720
|
Object.assign(contents, doc);
|
|
1560
721
|
return contents;
|
|
1561
722
|
};
|
|
1562
|
-
const de_RegisterAppInstanceUserEndpointCommandError = async (output, context) => {
|
|
1563
|
-
const parsedOutput = {
|
|
1564
|
-
...output,
|
|
1565
|
-
body: await parseErrorBody(output.body, context),
|
|
1566
|
-
};
|
|
1567
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1568
|
-
switch (errorCode) {
|
|
1569
|
-
case "BadRequestException":
|
|
1570
|
-
case "com.amazonaws.chimesdkidentity#BadRequestException":
|
|
1571
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
1572
|
-
case "ConflictException":
|
|
1573
|
-
case "com.amazonaws.chimesdkidentity#ConflictException":
|
|
1574
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1575
|
-
case "ForbiddenException":
|
|
1576
|
-
case "com.amazonaws.chimesdkidentity#ForbiddenException":
|
|
1577
|
-
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
1578
|
-
case "ResourceLimitExceededException":
|
|
1579
|
-
case "com.amazonaws.chimesdkidentity#ResourceLimitExceededException":
|
|
1580
|
-
throw await de_ResourceLimitExceededExceptionRes(parsedOutput, context);
|
|
1581
|
-
case "ServiceFailureException":
|
|
1582
|
-
case "com.amazonaws.chimesdkidentity#ServiceFailureException":
|
|
1583
|
-
throw await de_ServiceFailureExceptionRes(parsedOutput, context);
|
|
1584
|
-
case "ServiceUnavailableException":
|
|
1585
|
-
case "com.amazonaws.chimesdkidentity#ServiceUnavailableException":
|
|
1586
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
1587
|
-
case "ThrottledClientException":
|
|
1588
|
-
case "com.amazonaws.chimesdkidentity#ThrottledClientException":
|
|
1589
|
-
throw await de_ThrottledClientExceptionRes(parsedOutput, context);
|
|
1590
|
-
case "UnauthorizedClientException":
|
|
1591
|
-
case "com.amazonaws.chimesdkidentity#UnauthorizedClientException":
|
|
1592
|
-
throw await de_UnauthorizedClientExceptionRes(parsedOutput, context);
|
|
1593
|
-
default:
|
|
1594
|
-
const parsedBody = parsedOutput.body;
|
|
1595
|
-
return throwDefaultError({
|
|
1596
|
-
output,
|
|
1597
|
-
parsedBody,
|
|
1598
|
-
errorCode,
|
|
1599
|
-
});
|
|
1600
|
-
}
|
|
1601
|
-
};
|
|
1602
723
|
export const de_TagResourceCommand = async (output, context) => {
|
|
1603
724
|
if (output.statusCode !== 204 && output.statusCode >= 300) {
|
|
1604
|
-
return
|
|
725
|
+
return de_CommandError(output, context);
|
|
1605
726
|
}
|
|
1606
727
|
const contents = map({
|
|
1607
728
|
$metadata: deserializeMetadata(output),
|
|
@@ -1609,46 +730,9 @@ export const de_TagResourceCommand = async (output, context) => {
|
|
|
1609
730
|
await collectBody(output.body, context);
|
|
1610
731
|
return contents;
|
|
1611
732
|
};
|
|
1612
|
-
const de_TagResourceCommandError = async (output, context) => {
|
|
1613
|
-
const parsedOutput = {
|
|
1614
|
-
...output,
|
|
1615
|
-
body: await parseErrorBody(output.body, context),
|
|
1616
|
-
};
|
|
1617
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1618
|
-
switch (errorCode) {
|
|
1619
|
-
case "BadRequestException":
|
|
1620
|
-
case "com.amazonaws.chimesdkidentity#BadRequestException":
|
|
1621
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
1622
|
-
case "ForbiddenException":
|
|
1623
|
-
case "com.amazonaws.chimesdkidentity#ForbiddenException":
|
|
1624
|
-
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
1625
|
-
case "ResourceLimitExceededException":
|
|
1626
|
-
case "com.amazonaws.chimesdkidentity#ResourceLimitExceededException":
|
|
1627
|
-
throw await de_ResourceLimitExceededExceptionRes(parsedOutput, context);
|
|
1628
|
-
case "ServiceFailureException":
|
|
1629
|
-
case "com.amazonaws.chimesdkidentity#ServiceFailureException":
|
|
1630
|
-
throw await de_ServiceFailureExceptionRes(parsedOutput, context);
|
|
1631
|
-
case "ServiceUnavailableException":
|
|
1632
|
-
case "com.amazonaws.chimesdkidentity#ServiceUnavailableException":
|
|
1633
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
1634
|
-
case "ThrottledClientException":
|
|
1635
|
-
case "com.amazonaws.chimesdkidentity#ThrottledClientException":
|
|
1636
|
-
throw await de_ThrottledClientExceptionRes(parsedOutput, context);
|
|
1637
|
-
case "UnauthorizedClientException":
|
|
1638
|
-
case "com.amazonaws.chimesdkidentity#UnauthorizedClientException":
|
|
1639
|
-
throw await de_UnauthorizedClientExceptionRes(parsedOutput, context);
|
|
1640
|
-
default:
|
|
1641
|
-
const parsedBody = parsedOutput.body;
|
|
1642
|
-
return throwDefaultError({
|
|
1643
|
-
output,
|
|
1644
|
-
parsedBody,
|
|
1645
|
-
errorCode,
|
|
1646
|
-
});
|
|
1647
|
-
}
|
|
1648
|
-
};
|
|
1649
733
|
export const de_UntagResourceCommand = async (output, context) => {
|
|
1650
734
|
if (output.statusCode !== 204 && output.statusCode >= 300) {
|
|
1651
|
-
return
|
|
735
|
+
return de_CommandError(output, context);
|
|
1652
736
|
}
|
|
1653
737
|
const contents = map({
|
|
1654
738
|
$metadata: deserializeMetadata(output),
|
|
@@ -1656,43 +740,9 @@ export const de_UntagResourceCommand = async (output, context) => {
|
|
|
1656
740
|
await collectBody(output.body, context);
|
|
1657
741
|
return contents;
|
|
1658
742
|
};
|
|
1659
|
-
const de_UntagResourceCommandError = async (output, context) => {
|
|
1660
|
-
const parsedOutput = {
|
|
1661
|
-
...output,
|
|
1662
|
-
body: await parseErrorBody(output.body, context),
|
|
1663
|
-
};
|
|
1664
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1665
|
-
switch (errorCode) {
|
|
1666
|
-
case "BadRequestException":
|
|
1667
|
-
case "com.amazonaws.chimesdkidentity#BadRequestException":
|
|
1668
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
1669
|
-
case "ForbiddenException":
|
|
1670
|
-
case "com.amazonaws.chimesdkidentity#ForbiddenException":
|
|
1671
|
-
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
1672
|
-
case "ServiceFailureException":
|
|
1673
|
-
case "com.amazonaws.chimesdkidentity#ServiceFailureException":
|
|
1674
|
-
throw await de_ServiceFailureExceptionRes(parsedOutput, context);
|
|
1675
|
-
case "ServiceUnavailableException":
|
|
1676
|
-
case "com.amazonaws.chimesdkidentity#ServiceUnavailableException":
|
|
1677
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
1678
|
-
case "ThrottledClientException":
|
|
1679
|
-
case "com.amazonaws.chimesdkidentity#ThrottledClientException":
|
|
1680
|
-
throw await de_ThrottledClientExceptionRes(parsedOutput, context);
|
|
1681
|
-
case "UnauthorizedClientException":
|
|
1682
|
-
case "com.amazonaws.chimesdkidentity#UnauthorizedClientException":
|
|
1683
|
-
throw await de_UnauthorizedClientExceptionRes(parsedOutput, context);
|
|
1684
|
-
default:
|
|
1685
|
-
const parsedBody = parsedOutput.body;
|
|
1686
|
-
return throwDefaultError({
|
|
1687
|
-
output,
|
|
1688
|
-
parsedBody,
|
|
1689
|
-
errorCode,
|
|
1690
|
-
});
|
|
1691
|
-
}
|
|
1692
|
-
};
|
|
1693
743
|
export const de_UpdateAppInstanceCommand = async (output, context) => {
|
|
1694
744
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1695
|
-
return
|
|
745
|
+
return de_CommandError(output, context);
|
|
1696
746
|
}
|
|
1697
747
|
const contents = map({
|
|
1698
748
|
$metadata: deserializeMetadata(output),
|
|
@@ -1704,46 +754,9 @@ export const de_UpdateAppInstanceCommand = async (output, context) => {
|
|
|
1704
754
|
Object.assign(contents, doc);
|
|
1705
755
|
return contents;
|
|
1706
756
|
};
|
|
1707
|
-
const de_UpdateAppInstanceCommandError = async (output, context) => {
|
|
1708
|
-
const parsedOutput = {
|
|
1709
|
-
...output,
|
|
1710
|
-
body: await parseErrorBody(output.body, context),
|
|
1711
|
-
};
|
|
1712
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1713
|
-
switch (errorCode) {
|
|
1714
|
-
case "BadRequestException":
|
|
1715
|
-
case "com.amazonaws.chimesdkidentity#BadRequestException":
|
|
1716
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
1717
|
-
case "ConflictException":
|
|
1718
|
-
case "com.amazonaws.chimesdkidentity#ConflictException":
|
|
1719
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1720
|
-
case "ForbiddenException":
|
|
1721
|
-
case "com.amazonaws.chimesdkidentity#ForbiddenException":
|
|
1722
|
-
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
1723
|
-
case "ServiceFailureException":
|
|
1724
|
-
case "com.amazonaws.chimesdkidentity#ServiceFailureException":
|
|
1725
|
-
throw await de_ServiceFailureExceptionRes(parsedOutput, context);
|
|
1726
|
-
case "ServiceUnavailableException":
|
|
1727
|
-
case "com.amazonaws.chimesdkidentity#ServiceUnavailableException":
|
|
1728
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
1729
|
-
case "ThrottledClientException":
|
|
1730
|
-
case "com.amazonaws.chimesdkidentity#ThrottledClientException":
|
|
1731
|
-
throw await de_ThrottledClientExceptionRes(parsedOutput, context);
|
|
1732
|
-
case "UnauthorizedClientException":
|
|
1733
|
-
case "com.amazonaws.chimesdkidentity#UnauthorizedClientException":
|
|
1734
|
-
throw await de_UnauthorizedClientExceptionRes(parsedOutput, context);
|
|
1735
|
-
default:
|
|
1736
|
-
const parsedBody = parsedOutput.body;
|
|
1737
|
-
return throwDefaultError({
|
|
1738
|
-
output,
|
|
1739
|
-
parsedBody,
|
|
1740
|
-
errorCode,
|
|
1741
|
-
});
|
|
1742
|
-
}
|
|
1743
|
-
};
|
|
1744
757
|
export const de_UpdateAppInstanceBotCommand = async (output, context) => {
|
|
1745
758
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1746
|
-
return
|
|
759
|
+
return de_CommandError(output, context);
|
|
1747
760
|
}
|
|
1748
761
|
const contents = map({
|
|
1749
762
|
$metadata: deserializeMetadata(output),
|
|
@@ -1755,49 +768,9 @@ export const de_UpdateAppInstanceBotCommand = async (output, context) => {
|
|
|
1755
768
|
Object.assign(contents, doc);
|
|
1756
769
|
return contents;
|
|
1757
770
|
};
|
|
1758
|
-
const de_UpdateAppInstanceBotCommandError = async (output, context) => {
|
|
1759
|
-
const parsedOutput = {
|
|
1760
|
-
...output,
|
|
1761
|
-
body: await parseErrorBody(output.body, context),
|
|
1762
|
-
};
|
|
1763
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1764
|
-
switch (errorCode) {
|
|
1765
|
-
case "BadRequestException":
|
|
1766
|
-
case "com.amazonaws.chimesdkidentity#BadRequestException":
|
|
1767
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
1768
|
-
case "ConflictException":
|
|
1769
|
-
case "com.amazonaws.chimesdkidentity#ConflictException":
|
|
1770
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1771
|
-
case "ForbiddenException":
|
|
1772
|
-
case "com.amazonaws.chimesdkidentity#ForbiddenException":
|
|
1773
|
-
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
1774
|
-
case "ResourceLimitExceededException":
|
|
1775
|
-
case "com.amazonaws.chimesdkidentity#ResourceLimitExceededException":
|
|
1776
|
-
throw await de_ResourceLimitExceededExceptionRes(parsedOutput, context);
|
|
1777
|
-
case "ServiceFailureException":
|
|
1778
|
-
case "com.amazonaws.chimesdkidentity#ServiceFailureException":
|
|
1779
|
-
throw await de_ServiceFailureExceptionRes(parsedOutput, context);
|
|
1780
|
-
case "ServiceUnavailableException":
|
|
1781
|
-
case "com.amazonaws.chimesdkidentity#ServiceUnavailableException":
|
|
1782
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
1783
|
-
case "ThrottledClientException":
|
|
1784
|
-
case "com.amazonaws.chimesdkidentity#ThrottledClientException":
|
|
1785
|
-
throw await de_ThrottledClientExceptionRes(parsedOutput, context);
|
|
1786
|
-
case "UnauthorizedClientException":
|
|
1787
|
-
case "com.amazonaws.chimesdkidentity#UnauthorizedClientException":
|
|
1788
|
-
throw await de_UnauthorizedClientExceptionRes(parsedOutput, context);
|
|
1789
|
-
default:
|
|
1790
|
-
const parsedBody = parsedOutput.body;
|
|
1791
|
-
return throwDefaultError({
|
|
1792
|
-
output,
|
|
1793
|
-
parsedBody,
|
|
1794
|
-
errorCode,
|
|
1795
|
-
});
|
|
1796
|
-
}
|
|
1797
|
-
};
|
|
1798
771
|
export const de_UpdateAppInstanceUserCommand = async (output, context) => {
|
|
1799
772
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1800
|
-
return
|
|
773
|
+
return de_CommandError(output, context);
|
|
1801
774
|
}
|
|
1802
775
|
const contents = map({
|
|
1803
776
|
$metadata: deserializeMetadata(output),
|
|
@@ -1809,49 +782,9 @@ export const de_UpdateAppInstanceUserCommand = async (output, context) => {
|
|
|
1809
782
|
Object.assign(contents, doc);
|
|
1810
783
|
return contents;
|
|
1811
784
|
};
|
|
1812
|
-
const de_UpdateAppInstanceUserCommandError = async (output, context) => {
|
|
1813
|
-
const parsedOutput = {
|
|
1814
|
-
...output,
|
|
1815
|
-
body: await parseErrorBody(output.body, context),
|
|
1816
|
-
};
|
|
1817
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1818
|
-
switch (errorCode) {
|
|
1819
|
-
case "BadRequestException":
|
|
1820
|
-
case "com.amazonaws.chimesdkidentity#BadRequestException":
|
|
1821
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
1822
|
-
case "ConflictException":
|
|
1823
|
-
case "com.amazonaws.chimesdkidentity#ConflictException":
|
|
1824
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1825
|
-
case "ForbiddenException":
|
|
1826
|
-
case "com.amazonaws.chimesdkidentity#ForbiddenException":
|
|
1827
|
-
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
1828
|
-
case "ResourceLimitExceededException":
|
|
1829
|
-
case "com.amazonaws.chimesdkidentity#ResourceLimitExceededException":
|
|
1830
|
-
throw await de_ResourceLimitExceededExceptionRes(parsedOutput, context);
|
|
1831
|
-
case "ServiceFailureException":
|
|
1832
|
-
case "com.amazonaws.chimesdkidentity#ServiceFailureException":
|
|
1833
|
-
throw await de_ServiceFailureExceptionRes(parsedOutput, context);
|
|
1834
|
-
case "ServiceUnavailableException":
|
|
1835
|
-
case "com.amazonaws.chimesdkidentity#ServiceUnavailableException":
|
|
1836
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
1837
|
-
case "ThrottledClientException":
|
|
1838
|
-
case "com.amazonaws.chimesdkidentity#ThrottledClientException":
|
|
1839
|
-
throw await de_ThrottledClientExceptionRes(parsedOutput, context);
|
|
1840
|
-
case "UnauthorizedClientException":
|
|
1841
|
-
case "com.amazonaws.chimesdkidentity#UnauthorizedClientException":
|
|
1842
|
-
throw await de_UnauthorizedClientExceptionRes(parsedOutput, context);
|
|
1843
|
-
default:
|
|
1844
|
-
const parsedBody = parsedOutput.body;
|
|
1845
|
-
return throwDefaultError({
|
|
1846
|
-
output,
|
|
1847
|
-
parsedBody,
|
|
1848
|
-
errorCode,
|
|
1849
|
-
});
|
|
1850
|
-
}
|
|
1851
|
-
};
|
|
1852
785
|
export const de_UpdateAppInstanceUserEndpointCommand = async (output, context) => {
|
|
1853
786
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1854
|
-
return
|
|
787
|
+
return de_CommandError(output, context);
|
|
1855
788
|
}
|
|
1856
789
|
const contents = map({
|
|
1857
790
|
$metadata: deserializeMetadata(output),
|
|
@@ -1864,7 +797,7 @@ export const de_UpdateAppInstanceUserEndpointCommand = async (output, context) =
|
|
|
1864
797
|
Object.assign(contents, doc);
|
|
1865
798
|
return contents;
|
|
1866
799
|
};
|
|
1867
|
-
const
|
|
800
|
+
const de_CommandError = async (output, context) => {
|
|
1868
801
|
const parsedOutput = {
|
|
1869
802
|
...output,
|
|
1870
803
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1880,6 +813,9 @@ const de_UpdateAppInstanceUserEndpointCommandError = async (output, context) =>
|
|
|
1880
813
|
case "ForbiddenException":
|
|
1881
814
|
case "com.amazonaws.chimesdkidentity#ForbiddenException":
|
|
1882
815
|
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
816
|
+
case "ResourceLimitExceededException":
|
|
817
|
+
case "com.amazonaws.chimesdkidentity#ResourceLimitExceededException":
|
|
818
|
+
throw await de_ResourceLimitExceededExceptionRes(parsedOutput, context);
|
|
1883
819
|
case "ServiceFailureException":
|
|
1884
820
|
case "com.amazonaws.chimesdkidentity#ServiceFailureException":
|
|
1885
821
|
throw await de_ServiceFailureExceptionRes(parsedOutput, context);
|
|
@@ -1892,6 +828,9 @@ const de_UpdateAppInstanceUserEndpointCommandError = async (output, context) =>
|
|
|
1892
828
|
case "UnauthorizedClientException":
|
|
1893
829
|
case "com.amazonaws.chimesdkidentity#UnauthorizedClientException":
|
|
1894
830
|
throw await de_UnauthorizedClientExceptionRes(parsedOutput, context);
|
|
831
|
+
case "NotFoundException":
|
|
832
|
+
case "com.amazonaws.chimesdkidentity#NotFoundException":
|
|
833
|
+
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
1895
834
|
default:
|
|
1896
835
|
const parsedBody = parsedOutput.body;
|
|
1897
836
|
return throwDefaultError({
|