@aws-sdk/client-cognito-identity 3.504.0 → 3.509.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 CHANGED
@@ -527,7 +527,7 @@ var se_UpdateIdentityPoolCommand = /* @__PURE__ */ __name(async (input, context)
527
527
  }, "se_UpdateIdentityPoolCommand");
528
528
  var de_CreateIdentityPoolCommand = /* @__PURE__ */ __name(async (output, context) => {
529
529
  if (output.statusCode >= 300) {
530
- return de_CreateIdentityPoolCommandError(output, context);
530
+ return de_CommandError(output, context);
531
531
  }
532
532
  const data = await parseBody(output.body, context);
533
533
  let contents = {};
@@ -538,43 +538,9 @@ var de_CreateIdentityPoolCommand = /* @__PURE__ */ __name(async (output, context
538
538
  };
539
539
  return response;
540
540
  }, "de_CreateIdentityPoolCommand");
541
- var de_CreateIdentityPoolCommandError = /* @__PURE__ */ __name(async (output, context) => {
542
- const parsedOutput = {
543
- ...output,
544
- body: await parseErrorBody(output.body, context)
545
- };
546
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
547
- switch (errorCode) {
548
- case "InternalErrorException":
549
- case "com.amazonaws.cognitoidentity#InternalErrorException":
550
- throw await de_InternalErrorExceptionRes(parsedOutput, context);
551
- case "InvalidParameterException":
552
- case "com.amazonaws.cognitoidentity#InvalidParameterException":
553
- throw await de_InvalidParameterExceptionRes(parsedOutput, context);
554
- case "LimitExceededException":
555
- case "com.amazonaws.cognitoidentity#LimitExceededException":
556
- throw await de_LimitExceededExceptionRes(parsedOutput, context);
557
- case "NotAuthorizedException":
558
- case "com.amazonaws.cognitoidentity#NotAuthorizedException":
559
- throw await de_NotAuthorizedExceptionRes(parsedOutput, context);
560
- case "ResourceConflictException":
561
- case "com.amazonaws.cognitoidentity#ResourceConflictException":
562
- throw await de_ResourceConflictExceptionRes(parsedOutput, context);
563
- case "TooManyRequestsException":
564
- case "com.amazonaws.cognitoidentity#TooManyRequestsException":
565
- throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
566
- default:
567
- const parsedBody = parsedOutput.body;
568
- return throwDefaultError({
569
- output,
570
- parsedBody,
571
- errorCode
572
- });
573
- }
574
- }, "de_CreateIdentityPoolCommandError");
575
541
  var de_DeleteIdentitiesCommand = /* @__PURE__ */ __name(async (output, context) => {
576
542
  if (output.statusCode >= 300) {
577
- return de_DeleteIdentitiesCommandError(output, context);
543
+ return de_CommandError(output, context);
578
544
  }
579
545
  const data = await parseBody(output.body, context);
580
546
  let contents = {};
@@ -585,34 +551,9 @@ var de_DeleteIdentitiesCommand = /* @__PURE__ */ __name(async (output, context)
585
551
  };
586
552
  return response;
587
553
  }, "de_DeleteIdentitiesCommand");
588
- var de_DeleteIdentitiesCommandError = /* @__PURE__ */ __name(async (output, context) => {
589
- const parsedOutput = {
590
- ...output,
591
- body: await parseErrorBody(output.body, context)
592
- };
593
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
594
- switch (errorCode) {
595
- case "InternalErrorException":
596
- case "com.amazonaws.cognitoidentity#InternalErrorException":
597
- throw await de_InternalErrorExceptionRes(parsedOutput, context);
598
- case "InvalidParameterException":
599
- case "com.amazonaws.cognitoidentity#InvalidParameterException":
600
- throw await de_InvalidParameterExceptionRes(parsedOutput, context);
601
- case "TooManyRequestsException":
602
- case "com.amazonaws.cognitoidentity#TooManyRequestsException":
603
- throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
604
- default:
605
- const parsedBody = parsedOutput.body;
606
- return throwDefaultError({
607
- output,
608
- parsedBody,
609
- errorCode
610
- });
611
- }
612
- }, "de_DeleteIdentitiesCommandError");
613
554
  var de_DeleteIdentityPoolCommand = /* @__PURE__ */ __name(async (output, context) => {
614
555
  if (output.statusCode >= 300) {
615
- return de_DeleteIdentityPoolCommandError(output, context);
556
+ return de_CommandError(output, context);
616
557
  }
617
558
  await (0, import_smithy_client.collectBody)(output.body, context);
618
559
  const response = {
@@ -620,40 +561,9 @@ var de_DeleteIdentityPoolCommand = /* @__PURE__ */ __name(async (output, context
620
561
  };
621
562
  return response;
622
563
  }, "de_DeleteIdentityPoolCommand");
623
- var de_DeleteIdentityPoolCommandError = /* @__PURE__ */ __name(async (output, context) => {
624
- const parsedOutput = {
625
- ...output,
626
- body: await parseErrorBody(output.body, context)
627
- };
628
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
629
- switch (errorCode) {
630
- case "InternalErrorException":
631
- case "com.amazonaws.cognitoidentity#InternalErrorException":
632
- throw await de_InternalErrorExceptionRes(parsedOutput, context);
633
- case "InvalidParameterException":
634
- case "com.amazonaws.cognitoidentity#InvalidParameterException":
635
- throw await de_InvalidParameterExceptionRes(parsedOutput, context);
636
- case "NotAuthorizedException":
637
- case "com.amazonaws.cognitoidentity#NotAuthorizedException":
638
- throw await de_NotAuthorizedExceptionRes(parsedOutput, context);
639
- case "ResourceNotFoundException":
640
- case "com.amazonaws.cognitoidentity#ResourceNotFoundException":
641
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
642
- case "TooManyRequestsException":
643
- case "com.amazonaws.cognitoidentity#TooManyRequestsException":
644
- throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
645
- default:
646
- const parsedBody = parsedOutput.body;
647
- return throwDefaultError({
648
- output,
649
- parsedBody,
650
- errorCode
651
- });
652
- }
653
- }, "de_DeleteIdentityPoolCommandError");
654
564
  var de_DescribeIdentityCommand = /* @__PURE__ */ __name(async (output, context) => {
655
565
  if (output.statusCode >= 300) {
656
- return de_DescribeIdentityCommandError(output, context);
566
+ return de_CommandError(output, context);
657
567
  }
658
568
  const data = await parseBody(output.body, context);
659
569
  let contents = {};
@@ -664,40 +574,9 @@ var de_DescribeIdentityCommand = /* @__PURE__ */ __name(async (output, context)
664
574
  };
665
575
  return response;
666
576
  }, "de_DescribeIdentityCommand");
667
- var de_DescribeIdentityCommandError = /* @__PURE__ */ __name(async (output, context) => {
668
- const parsedOutput = {
669
- ...output,
670
- body: await parseErrorBody(output.body, context)
671
- };
672
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
673
- switch (errorCode) {
674
- case "InternalErrorException":
675
- case "com.amazonaws.cognitoidentity#InternalErrorException":
676
- throw await de_InternalErrorExceptionRes(parsedOutput, context);
677
- case "InvalidParameterException":
678
- case "com.amazonaws.cognitoidentity#InvalidParameterException":
679
- throw await de_InvalidParameterExceptionRes(parsedOutput, context);
680
- case "NotAuthorizedException":
681
- case "com.amazonaws.cognitoidentity#NotAuthorizedException":
682
- throw await de_NotAuthorizedExceptionRes(parsedOutput, context);
683
- case "ResourceNotFoundException":
684
- case "com.amazonaws.cognitoidentity#ResourceNotFoundException":
685
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
686
- case "TooManyRequestsException":
687
- case "com.amazonaws.cognitoidentity#TooManyRequestsException":
688
- throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
689
- default:
690
- const parsedBody = parsedOutput.body;
691
- return throwDefaultError({
692
- output,
693
- parsedBody,
694
- errorCode
695
- });
696
- }
697
- }, "de_DescribeIdentityCommandError");
698
577
  var de_DescribeIdentityPoolCommand = /* @__PURE__ */ __name(async (output, context) => {
699
578
  if (output.statusCode >= 300) {
700
- return de_DescribeIdentityPoolCommandError(output, context);
579
+ return de_CommandError(output, context);
701
580
  }
702
581
  const data = await parseBody(output.body, context);
703
582
  let contents = {};
@@ -708,40 +587,9 @@ var de_DescribeIdentityPoolCommand = /* @__PURE__ */ __name(async (output, conte
708
587
  };
709
588
  return response;
710
589
  }, "de_DescribeIdentityPoolCommand");
711
- var de_DescribeIdentityPoolCommandError = /* @__PURE__ */ __name(async (output, context) => {
712
- const parsedOutput = {
713
- ...output,
714
- body: await parseErrorBody(output.body, context)
715
- };
716
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
717
- switch (errorCode) {
718
- case "InternalErrorException":
719
- case "com.amazonaws.cognitoidentity#InternalErrorException":
720
- throw await de_InternalErrorExceptionRes(parsedOutput, context);
721
- case "InvalidParameterException":
722
- case "com.amazonaws.cognitoidentity#InvalidParameterException":
723
- throw await de_InvalidParameterExceptionRes(parsedOutput, context);
724
- case "NotAuthorizedException":
725
- case "com.amazonaws.cognitoidentity#NotAuthorizedException":
726
- throw await de_NotAuthorizedExceptionRes(parsedOutput, context);
727
- case "ResourceNotFoundException":
728
- case "com.amazonaws.cognitoidentity#ResourceNotFoundException":
729
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
730
- case "TooManyRequestsException":
731
- case "com.amazonaws.cognitoidentity#TooManyRequestsException":
732
- throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
733
- default:
734
- const parsedBody = parsedOutput.body;
735
- return throwDefaultError({
736
- output,
737
- parsedBody,
738
- errorCode
739
- });
740
- }
741
- }, "de_DescribeIdentityPoolCommandError");
742
590
  var de_GetCredentialsForIdentityCommand = /* @__PURE__ */ __name(async (output, context) => {
743
591
  if (output.statusCode >= 300) {
744
- return de_GetCredentialsForIdentityCommandError(output, context);
592
+ return de_CommandError(output, context);
745
593
  }
746
594
  const data = await parseBody(output.body, context);
747
595
  let contents = {};
@@ -752,49 +600,9 @@ var de_GetCredentialsForIdentityCommand = /* @__PURE__ */ __name(async (output,
752
600
  };
753
601
  return response;
754
602
  }, "de_GetCredentialsForIdentityCommand");
755
- var de_GetCredentialsForIdentityCommandError = /* @__PURE__ */ __name(async (output, context) => {
756
- const parsedOutput = {
757
- ...output,
758
- body: await parseErrorBody(output.body, context)
759
- };
760
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
761
- switch (errorCode) {
762
- case "ExternalServiceException":
763
- case "com.amazonaws.cognitoidentity#ExternalServiceException":
764
- throw await de_ExternalServiceExceptionRes(parsedOutput, context);
765
- case "InternalErrorException":
766
- case "com.amazonaws.cognitoidentity#InternalErrorException":
767
- throw await de_InternalErrorExceptionRes(parsedOutput, context);
768
- case "InvalidIdentityPoolConfigurationException":
769
- case "com.amazonaws.cognitoidentity#InvalidIdentityPoolConfigurationException":
770
- throw await de_InvalidIdentityPoolConfigurationExceptionRes(parsedOutput, context);
771
- case "InvalidParameterException":
772
- case "com.amazonaws.cognitoidentity#InvalidParameterException":
773
- throw await de_InvalidParameterExceptionRes(parsedOutput, context);
774
- case "NotAuthorizedException":
775
- case "com.amazonaws.cognitoidentity#NotAuthorizedException":
776
- throw await de_NotAuthorizedExceptionRes(parsedOutput, context);
777
- case "ResourceConflictException":
778
- case "com.amazonaws.cognitoidentity#ResourceConflictException":
779
- throw await de_ResourceConflictExceptionRes(parsedOutput, context);
780
- case "ResourceNotFoundException":
781
- case "com.amazonaws.cognitoidentity#ResourceNotFoundException":
782
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
783
- case "TooManyRequestsException":
784
- case "com.amazonaws.cognitoidentity#TooManyRequestsException":
785
- throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
786
- default:
787
- const parsedBody = parsedOutput.body;
788
- return throwDefaultError({
789
- output,
790
- parsedBody,
791
- errorCode
792
- });
793
- }
794
- }, "de_GetCredentialsForIdentityCommandError");
795
603
  var de_GetIdCommand = /* @__PURE__ */ __name(async (output, context) => {
796
604
  if (output.statusCode >= 300) {
797
- return de_GetIdCommandError(output, context);
605
+ return de_CommandError(output, context);
798
606
  }
799
607
  const data = await parseBody(output.body, context);
800
608
  let contents = {};
@@ -805,49 +613,9 @@ var de_GetIdCommand = /* @__PURE__ */ __name(async (output, context) => {
805
613
  };
806
614
  return response;
807
615
  }, "de_GetIdCommand");
808
- var de_GetIdCommandError = /* @__PURE__ */ __name(async (output, context) => {
809
- const parsedOutput = {
810
- ...output,
811
- body: await parseErrorBody(output.body, context)
812
- };
813
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
814
- switch (errorCode) {
815
- case "ExternalServiceException":
816
- case "com.amazonaws.cognitoidentity#ExternalServiceException":
817
- throw await de_ExternalServiceExceptionRes(parsedOutput, context);
818
- case "InternalErrorException":
819
- case "com.amazonaws.cognitoidentity#InternalErrorException":
820
- throw await de_InternalErrorExceptionRes(parsedOutput, context);
821
- case "InvalidParameterException":
822
- case "com.amazonaws.cognitoidentity#InvalidParameterException":
823
- throw await de_InvalidParameterExceptionRes(parsedOutput, context);
824
- case "LimitExceededException":
825
- case "com.amazonaws.cognitoidentity#LimitExceededException":
826
- throw await de_LimitExceededExceptionRes(parsedOutput, context);
827
- case "NotAuthorizedException":
828
- case "com.amazonaws.cognitoidentity#NotAuthorizedException":
829
- throw await de_NotAuthorizedExceptionRes(parsedOutput, context);
830
- case "ResourceConflictException":
831
- case "com.amazonaws.cognitoidentity#ResourceConflictException":
832
- throw await de_ResourceConflictExceptionRes(parsedOutput, context);
833
- case "ResourceNotFoundException":
834
- case "com.amazonaws.cognitoidentity#ResourceNotFoundException":
835
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
836
- case "TooManyRequestsException":
837
- case "com.amazonaws.cognitoidentity#TooManyRequestsException":
838
- throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
839
- default:
840
- const parsedBody = parsedOutput.body;
841
- return throwDefaultError({
842
- output,
843
- parsedBody,
844
- errorCode
845
- });
846
- }
847
- }, "de_GetIdCommandError");
848
616
  var de_GetIdentityPoolRolesCommand = /* @__PURE__ */ __name(async (output, context) => {
849
617
  if (output.statusCode >= 300) {
850
- return de_GetIdentityPoolRolesCommandError(output, context);
618
+ return de_CommandError(output, context);
851
619
  }
852
620
  const data = await parseBody(output.body, context);
853
621
  let contents = {};
@@ -858,43 +626,9 @@ var de_GetIdentityPoolRolesCommand = /* @__PURE__ */ __name(async (output, conte
858
626
  };
859
627
  return response;
860
628
  }, "de_GetIdentityPoolRolesCommand");
861
- var de_GetIdentityPoolRolesCommandError = /* @__PURE__ */ __name(async (output, context) => {
862
- const parsedOutput = {
863
- ...output,
864
- body: await parseErrorBody(output.body, context)
865
- };
866
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
867
- switch (errorCode) {
868
- case "InternalErrorException":
869
- case "com.amazonaws.cognitoidentity#InternalErrorException":
870
- throw await de_InternalErrorExceptionRes(parsedOutput, context);
871
- case "InvalidParameterException":
872
- case "com.amazonaws.cognitoidentity#InvalidParameterException":
873
- throw await de_InvalidParameterExceptionRes(parsedOutput, context);
874
- case "NotAuthorizedException":
875
- case "com.amazonaws.cognitoidentity#NotAuthorizedException":
876
- throw await de_NotAuthorizedExceptionRes(parsedOutput, context);
877
- case "ResourceConflictException":
878
- case "com.amazonaws.cognitoidentity#ResourceConflictException":
879
- throw await de_ResourceConflictExceptionRes(parsedOutput, context);
880
- case "ResourceNotFoundException":
881
- case "com.amazonaws.cognitoidentity#ResourceNotFoundException":
882
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
883
- case "TooManyRequestsException":
884
- case "com.amazonaws.cognitoidentity#TooManyRequestsException":
885
- throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
886
- default:
887
- const parsedBody = parsedOutput.body;
888
- return throwDefaultError({
889
- output,
890
- parsedBody,
891
- errorCode
892
- });
893
- }
894
- }, "de_GetIdentityPoolRolesCommandError");
895
629
  var de_GetOpenIdTokenCommand = /* @__PURE__ */ __name(async (output, context) => {
896
630
  if (output.statusCode >= 300) {
897
- return de_GetOpenIdTokenCommandError(output, context);
631
+ return de_CommandError(output, context);
898
632
  }
899
633
  const data = await parseBody(output.body, context);
900
634
  let contents = {};
@@ -905,46 +639,9 @@ var de_GetOpenIdTokenCommand = /* @__PURE__ */ __name(async (output, context) =>
905
639
  };
906
640
  return response;
907
641
  }, "de_GetOpenIdTokenCommand");
908
- var de_GetOpenIdTokenCommandError = /* @__PURE__ */ __name(async (output, context) => {
909
- const parsedOutput = {
910
- ...output,
911
- body: await parseErrorBody(output.body, context)
912
- };
913
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
914
- switch (errorCode) {
915
- case "ExternalServiceException":
916
- case "com.amazonaws.cognitoidentity#ExternalServiceException":
917
- throw await de_ExternalServiceExceptionRes(parsedOutput, context);
918
- case "InternalErrorException":
919
- case "com.amazonaws.cognitoidentity#InternalErrorException":
920
- throw await de_InternalErrorExceptionRes(parsedOutput, context);
921
- case "InvalidParameterException":
922
- case "com.amazonaws.cognitoidentity#InvalidParameterException":
923
- throw await de_InvalidParameterExceptionRes(parsedOutput, context);
924
- case "NotAuthorizedException":
925
- case "com.amazonaws.cognitoidentity#NotAuthorizedException":
926
- throw await de_NotAuthorizedExceptionRes(parsedOutput, context);
927
- case "ResourceConflictException":
928
- case "com.amazonaws.cognitoidentity#ResourceConflictException":
929
- throw await de_ResourceConflictExceptionRes(parsedOutput, context);
930
- case "ResourceNotFoundException":
931
- case "com.amazonaws.cognitoidentity#ResourceNotFoundException":
932
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
933
- case "TooManyRequestsException":
934
- case "com.amazonaws.cognitoidentity#TooManyRequestsException":
935
- throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
936
- default:
937
- const parsedBody = parsedOutput.body;
938
- return throwDefaultError({
939
- output,
940
- parsedBody,
941
- errorCode
942
- });
943
- }
944
- }, "de_GetOpenIdTokenCommandError");
945
642
  var de_GetOpenIdTokenForDeveloperIdentityCommand = /* @__PURE__ */ __name(async (output, context) => {
946
643
  if (output.statusCode >= 300) {
947
- return de_GetOpenIdTokenForDeveloperIdentityCommandError(output, context);
644
+ return de_CommandError(output, context);
948
645
  }
949
646
  const data = await parseBody(output.body, context);
950
647
  let contents = {};
@@ -955,46 +652,9 @@ var de_GetOpenIdTokenForDeveloperIdentityCommand = /* @__PURE__ */ __name(async
955
652
  };
956
653
  return response;
957
654
  }, "de_GetOpenIdTokenForDeveloperIdentityCommand");
958
- var de_GetOpenIdTokenForDeveloperIdentityCommandError = /* @__PURE__ */ __name(async (output, context) => {
959
- const parsedOutput = {
960
- ...output,
961
- body: await parseErrorBody(output.body, context)
962
- };
963
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
964
- switch (errorCode) {
965
- case "DeveloperUserAlreadyRegisteredException":
966
- case "com.amazonaws.cognitoidentity#DeveloperUserAlreadyRegisteredException":
967
- throw await de_DeveloperUserAlreadyRegisteredExceptionRes(parsedOutput, context);
968
- case "InternalErrorException":
969
- case "com.amazonaws.cognitoidentity#InternalErrorException":
970
- throw await de_InternalErrorExceptionRes(parsedOutput, context);
971
- case "InvalidParameterException":
972
- case "com.amazonaws.cognitoidentity#InvalidParameterException":
973
- throw await de_InvalidParameterExceptionRes(parsedOutput, context);
974
- case "NotAuthorizedException":
975
- case "com.amazonaws.cognitoidentity#NotAuthorizedException":
976
- throw await de_NotAuthorizedExceptionRes(parsedOutput, context);
977
- case "ResourceConflictException":
978
- case "com.amazonaws.cognitoidentity#ResourceConflictException":
979
- throw await de_ResourceConflictExceptionRes(parsedOutput, context);
980
- case "ResourceNotFoundException":
981
- case "com.amazonaws.cognitoidentity#ResourceNotFoundException":
982
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
983
- case "TooManyRequestsException":
984
- case "com.amazonaws.cognitoidentity#TooManyRequestsException":
985
- throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
986
- default:
987
- const parsedBody = parsedOutput.body;
988
- return throwDefaultError({
989
- output,
990
- parsedBody,
991
- errorCode
992
- });
993
- }
994
- }, "de_GetOpenIdTokenForDeveloperIdentityCommandError");
995
655
  var de_GetPrincipalTagAttributeMapCommand = /* @__PURE__ */ __name(async (output, context) => {
996
656
  if (output.statusCode >= 300) {
997
- return de_GetPrincipalTagAttributeMapCommandError(output, context);
657
+ return de_CommandError(output, context);
998
658
  }
999
659
  const data = await parseBody(output.body, context);
1000
660
  let contents = {};
@@ -1005,40 +665,9 @@ var de_GetPrincipalTagAttributeMapCommand = /* @__PURE__ */ __name(async (output
1005
665
  };
1006
666
  return response;
1007
667
  }, "de_GetPrincipalTagAttributeMapCommand");
1008
- var de_GetPrincipalTagAttributeMapCommandError = /* @__PURE__ */ __name(async (output, context) => {
1009
- const parsedOutput = {
1010
- ...output,
1011
- body: await parseErrorBody(output.body, context)
1012
- };
1013
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1014
- switch (errorCode) {
1015
- case "InternalErrorException":
1016
- case "com.amazonaws.cognitoidentity#InternalErrorException":
1017
- throw await de_InternalErrorExceptionRes(parsedOutput, context);
1018
- case "InvalidParameterException":
1019
- case "com.amazonaws.cognitoidentity#InvalidParameterException":
1020
- throw await de_InvalidParameterExceptionRes(parsedOutput, context);
1021
- case "NotAuthorizedException":
1022
- case "com.amazonaws.cognitoidentity#NotAuthorizedException":
1023
- throw await de_NotAuthorizedExceptionRes(parsedOutput, context);
1024
- case "ResourceNotFoundException":
1025
- case "com.amazonaws.cognitoidentity#ResourceNotFoundException":
1026
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1027
- case "TooManyRequestsException":
1028
- case "com.amazonaws.cognitoidentity#TooManyRequestsException":
1029
- throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
1030
- default:
1031
- const parsedBody = parsedOutput.body;
1032
- return throwDefaultError({
1033
- output,
1034
- parsedBody,
1035
- errorCode
1036
- });
1037
- }
1038
- }, "de_GetPrincipalTagAttributeMapCommandError");
1039
668
  var de_ListIdentitiesCommand = /* @__PURE__ */ __name(async (output, context) => {
1040
669
  if (output.statusCode >= 300) {
1041
- return de_ListIdentitiesCommandError(output, context);
670
+ return de_CommandError(output, context);
1042
671
  }
1043
672
  const data = await parseBody(output.body, context);
1044
673
  let contents = {};
@@ -1049,40 +678,9 @@ var de_ListIdentitiesCommand = /* @__PURE__ */ __name(async (output, context) =>
1049
678
  };
1050
679
  return response;
1051
680
  }, "de_ListIdentitiesCommand");
1052
- var de_ListIdentitiesCommandError = /* @__PURE__ */ __name(async (output, context) => {
1053
- const parsedOutput = {
1054
- ...output,
1055
- body: await parseErrorBody(output.body, context)
1056
- };
1057
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1058
- switch (errorCode) {
1059
- case "InternalErrorException":
1060
- case "com.amazonaws.cognitoidentity#InternalErrorException":
1061
- throw await de_InternalErrorExceptionRes(parsedOutput, context);
1062
- case "InvalidParameterException":
1063
- case "com.amazonaws.cognitoidentity#InvalidParameterException":
1064
- throw await de_InvalidParameterExceptionRes(parsedOutput, context);
1065
- case "NotAuthorizedException":
1066
- case "com.amazonaws.cognitoidentity#NotAuthorizedException":
1067
- throw await de_NotAuthorizedExceptionRes(parsedOutput, context);
1068
- case "ResourceNotFoundException":
1069
- case "com.amazonaws.cognitoidentity#ResourceNotFoundException":
1070
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1071
- case "TooManyRequestsException":
1072
- case "com.amazonaws.cognitoidentity#TooManyRequestsException":
1073
- throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
1074
- default:
1075
- const parsedBody = parsedOutput.body;
1076
- return throwDefaultError({
1077
- output,
1078
- parsedBody,
1079
- errorCode
1080
- });
1081
- }
1082
- }, "de_ListIdentitiesCommandError");
1083
681
  var de_ListIdentityPoolsCommand = /* @__PURE__ */ __name(async (output, context) => {
1084
682
  if (output.statusCode >= 300) {
1085
- return de_ListIdentityPoolsCommandError(output, context);
683
+ return de_CommandError(output, context);
1086
684
  }
1087
685
  const data = await parseBody(output.body, context);
1088
686
  let contents = {};
@@ -1093,84 +691,9 @@ var de_ListIdentityPoolsCommand = /* @__PURE__ */ __name(async (output, context)
1093
691
  };
1094
692
  return response;
1095
693
  }, "de_ListIdentityPoolsCommand");
1096
- var de_ListIdentityPoolsCommandError = /* @__PURE__ */ __name(async (output, context) => {
1097
- const parsedOutput = {
1098
- ...output,
1099
- body: await parseErrorBody(output.body, context)
1100
- };
1101
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1102
- switch (errorCode) {
1103
- case "InternalErrorException":
1104
- case "com.amazonaws.cognitoidentity#InternalErrorException":
1105
- throw await de_InternalErrorExceptionRes(parsedOutput, context);
1106
- case "InvalidParameterException":
1107
- case "com.amazonaws.cognitoidentity#InvalidParameterException":
1108
- throw await de_InvalidParameterExceptionRes(parsedOutput, context);
1109
- case "NotAuthorizedException":
1110
- case "com.amazonaws.cognitoidentity#NotAuthorizedException":
1111
- throw await de_NotAuthorizedExceptionRes(parsedOutput, context);
1112
- case "ResourceNotFoundException":
1113
- case "com.amazonaws.cognitoidentity#ResourceNotFoundException":
1114
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1115
- case "TooManyRequestsException":
1116
- case "com.amazonaws.cognitoidentity#TooManyRequestsException":
1117
- throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
1118
- default:
1119
- const parsedBody = parsedOutput.body;
1120
- return throwDefaultError({
1121
- output,
1122
- parsedBody,
1123
- errorCode
1124
- });
1125
- }
1126
- }, "de_ListIdentityPoolsCommandError");
1127
694
  var de_ListTagsForResourceCommand = /* @__PURE__ */ __name(async (output, context) => {
1128
695
  if (output.statusCode >= 300) {
1129
- return de_ListTagsForResourceCommandError(output, context);
1130
- }
1131
- const data = await parseBody(output.body, context);
1132
- let contents = {};
1133
- contents = (0, import_smithy_client._json)(data);
1134
- const response = {
1135
- $metadata: deserializeMetadata(output),
1136
- ...contents
1137
- };
1138
- return response;
1139
- }, "de_ListTagsForResourceCommand");
1140
- var de_ListTagsForResourceCommandError = /* @__PURE__ */ __name(async (output, context) => {
1141
- const parsedOutput = {
1142
- ...output,
1143
- body: await parseErrorBody(output.body, context)
1144
- };
1145
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1146
- switch (errorCode) {
1147
- case "InternalErrorException":
1148
- case "com.amazonaws.cognitoidentity#InternalErrorException":
1149
- throw await de_InternalErrorExceptionRes(parsedOutput, context);
1150
- case "InvalidParameterException":
1151
- case "com.amazonaws.cognitoidentity#InvalidParameterException":
1152
- throw await de_InvalidParameterExceptionRes(parsedOutput, context);
1153
- case "NotAuthorizedException":
1154
- case "com.amazonaws.cognitoidentity#NotAuthorizedException":
1155
- throw await de_NotAuthorizedExceptionRes(parsedOutput, context);
1156
- case "ResourceNotFoundException":
1157
- case "com.amazonaws.cognitoidentity#ResourceNotFoundException":
1158
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1159
- case "TooManyRequestsException":
1160
- case "com.amazonaws.cognitoidentity#TooManyRequestsException":
1161
- throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
1162
- default:
1163
- const parsedBody = parsedOutput.body;
1164
- return throwDefaultError({
1165
- output,
1166
- parsedBody,
1167
- errorCode
1168
- });
1169
- }
1170
- }, "de_ListTagsForResourceCommandError");
1171
- var de_LookupDeveloperIdentityCommand = /* @__PURE__ */ __name(async (output, context) => {
1172
- if (output.statusCode >= 300) {
1173
- return de_LookupDeveloperIdentityCommandError(output, context);
696
+ return de_CommandError(output, context);
1174
697
  }
1175
698
  const data = await parseBody(output.body, context);
1176
699
  let contents = {};
@@ -1178,46 +701,25 @@ var de_LookupDeveloperIdentityCommand = /* @__PURE__ */ __name(async (output, co
1178
701
  const response = {
1179
702
  $metadata: deserializeMetadata(output),
1180
703
  ...contents
1181
- };
1182
- return response;
1183
- }, "de_LookupDeveloperIdentityCommand");
1184
- var de_LookupDeveloperIdentityCommandError = /* @__PURE__ */ __name(async (output, context) => {
1185
- const parsedOutput = {
1186
- ...output,
1187
- body: await parseErrorBody(output.body, context)
1188
- };
1189
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1190
- switch (errorCode) {
1191
- case "InternalErrorException":
1192
- case "com.amazonaws.cognitoidentity#InternalErrorException":
1193
- throw await de_InternalErrorExceptionRes(parsedOutput, context);
1194
- case "InvalidParameterException":
1195
- case "com.amazonaws.cognitoidentity#InvalidParameterException":
1196
- throw await de_InvalidParameterExceptionRes(parsedOutput, context);
1197
- case "NotAuthorizedException":
1198
- case "com.amazonaws.cognitoidentity#NotAuthorizedException":
1199
- throw await de_NotAuthorizedExceptionRes(parsedOutput, context);
1200
- case "ResourceConflictException":
1201
- case "com.amazonaws.cognitoidentity#ResourceConflictException":
1202
- throw await de_ResourceConflictExceptionRes(parsedOutput, context);
1203
- case "ResourceNotFoundException":
1204
- case "com.amazonaws.cognitoidentity#ResourceNotFoundException":
1205
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1206
- case "TooManyRequestsException":
1207
- case "com.amazonaws.cognitoidentity#TooManyRequestsException":
1208
- throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
1209
- default:
1210
- const parsedBody = parsedOutput.body;
1211
- return throwDefaultError({
1212
- output,
1213
- parsedBody,
1214
- errorCode
1215
- });
704
+ };
705
+ return response;
706
+ }, "de_ListTagsForResourceCommand");
707
+ var de_LookupDeveloperIdentityCommand = /* @__PURE__ */ __name(async (output, context) => {
708
+ if (output.statusCode >= 300) {
709
+ return de_CommandError(output, context);
1216
710
  }
1217
- }, "de_LookupDeveloperIdentityCommandError");
711
+ const data = await parseBody(output.body, context);
712
+ let contents = {};
713
+ contents = (0, import_smithy_client._json)(data);
714
+ const response = {
715
+ $metadata: deserializeMetadata(output),
716
+ ...contents
717
+ };
718
+ return response;
719
+ }, "de_LookupDeveloperIdentityCommand");
1218
720
  var de_MergeDeveloperIdentitiesCommand = /* @__PURE__ */ __name(async (output, context) => {
1219
721
  if (output.statusCode >= 300) {
1220
- return de_MergeDeveloperIdentitiesCommandError(output, context);
722
+ return de_CommandError(output, context);
1221
723
  }
1222
724
  const data = await parseBody(output.body, context);
1223
725
  let contents = {};
@@ -1228,43 +730,9 @@ var de_MergeDeveloperIdentitiesCommand = /* @__PURE__ */ __name(async (output, c
1228
730
  };
1229
731
  return response;
1230
732
  }, "de_MergeDeveloperIdentitiesCommand");
1231
- var de_MergeDeveloperIdentitiesCommandError = /* @__PURE__ */ __name(async (output, context) => {
1232
- const parsedOutput = {
1233
- ...output,
1234
- body: await parseErrorBody(output.body, context)
1235
- };
1236
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1237
- switch (errorCode) {
1238
- case "InternalErrorException":
1239
- case "com.amazonaws.cognitoidentity#InternalErrorException":
1240
- throw await de_InternalErrorExceptionRes(parsedOutput, context);
1241
- case "InvalidParameterException":
1242
- case "com.amazonaws.cognitoidentity#InvalidParameterException":
1243
- throw await de_InvalidParameterExceptionRes(parsedOutput, context);
1244
- case "NotAuthorizedException":
1245
- case "com.amazonaws.cognitoidentity#NotAuthorizedException":
1246
- throw await de_NotAuthorizedExceptionRes(parsedOutput, context);
1247
- case "ResourceConflictException":
1248
- case "com.amazonaws.cognitoidentity#ResourceConflictException":
1249
- throw await de_ResourceConflictExceptionRes(parsedOutput, context);
1250
- case "ResourceNotFoundException":
1251
- case "com.amazonaws.cognitoidentity#ResourceNotFoundException":
1252
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1253
- case "TooManyRequestsException":
1254
- case "com.amazonaws.cognitoidentity#TooManyRequestsException":
1255
- throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
1256
- default:
1257
- const parsedBody = parsedOutput.body;
1258
- return throwDefaultError({
1259
- output,
1260
- parsedBody,
1261
- errorCode
1262
- });
1263
- }
1264
- }, "de_MergeDeveloperIdentitiesCommandError");
1265
733
  var de_SetIdentityPoolRolesCommand = /* @__PURE__ */ __name(async (output, context) => {
1266
734
  if (output.statusCode >= 300) {
1267
- return de_SetIdentityPoolRolesCommandError(output, context);
735
+ return de_CommandError(output, context);
1268
736
  }
1269
737
  await (0, import_smithy_client.collectBody)(output.body, context);
1270
738
  const response = {
@@ -1272,46 +740,9 @@ var de_SetIdentityPoolRolesCommand = /* @__PURE__ */ __name(async (output, conte
1272
740
  };
1273
741
  return response;
1274
742
  }, "de_SetIdentityPoolRolesCommand");
1275
- var de_SetIdentityPoolRolesCommandError = /* @__PURE__ */ __name(async (output, context) => {
1276
- const parsedOutput = {
1277
- ...output,
1278
- body: await parseErrorBody(output.body, context)
1279
- };
1280
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1281
- switch (errorCode) {
1282
- case "ConcurrentModificationException":
1283
- case "com.amazonaws.cognitoidentity#ConcurrentModificationException":
1284
- throw await de_ConcurrentModificationExceptionRes(parsedOutput, context);
1285
- case "InternalErrorException":
1286
- case "com.amazonaws.cognitoidentity#InternalErrorException":
1287
- throw await de_InternalErrorExceptionRes(parsedOutput, context);
1288
- case "InvalidParameterException":
1289
- case "com.amazonaws.cognitoidentity#InvalidParameterException":
1290
- throw await de_InvalidParameterExceptionRes(parsedOutput, context);
1291
- case "NotAuthorizedException":
1292
- case "com.amazonaws.cognitoidentity#NotAuthorizedException":
1293
- throw await de_NotAuthorizedExceptionRes(parsedOutput, context);
1294
- case "ResourceConflictException":
1295
- case "com.amazonaws.cognitoidentity#ResourceConflictException":
1296
- throw await de_ResourceConflictExceptionRes(parsedOutput, context);
1297
- case "ResourceNotFoundException":
1298
- case "com.amazonaws.cognitoidentity#ResourceNotFoundException":
1299
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1300
- case "TooManyRequestsException":
1301
- case "com.amazonaws.cognitoidentity#TooManyRequestsException":
1302
- throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
1303
- default:
1304
- const parsedBody = parsedOutput.body;
1305
- return throwDefaultError({
1306
- output,
1307
- parsedBody,
1308
- errorCode
1309
- });
1310
- }
1311
- }, "de_SetIdentityPoolRolesCommandError");
1312
743
  var de_SetPrincipalTagAttributeMapCommand = /* @__PURE__ */ __name(async (output, context) => {
1313
744
  if (output.statusCode >= 300) {
1314
- return de_SetPrincipalTagAttributeMapCommandError(output, context);
745
+ return de_CommandError(output, context);
1315
746
  }
1316
747
  const data = await parseBody(output.body, context);
1317
748
  let contents = {};
@@ -1322,40 +753,9 @@ var de_SetPrincipalTagAttributeMapCommand = /* @__PURE__ */ __name(async (output
1322
753
  };
1323
754
  return response;
1324
755
  }, "de_SetPrincipalTagAttributeMapCommand");
1325
- var de_SetPrincipalTagAttributeMapCommandError = /* @__PURE__ */ __name(async (output, context) => {
1326
- const parsedOutput = {
1327
- ...output,
1328
- body: await parseErrorBody(output.body, context)
1329
- };
1330
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1331
- switch (errorCode) {
1332
- case "InternalErrorException":
1333
- case "com.amazonaws.cognitoidentity#InternalErrorException":
1334
- throw await de_InternalErrorExceptionRes(parsedOutput, context);
1335
- case "InvalidParameterException":
1336
- case "com.amazonaws.cognitoidentity#InvalidParameterException":
1337
- throw await de_InvalidParameterExceptionRes(parsedOutput, context);
1338
- case "NotAuthorizedException":
1339
- case "com.amazonaws.cognitoidentity#NotAuthorizedException":
1340
- throw await de_NotAuthorizedExceptionRes(parsedOutput, context);
1341
- case "ResourceNotFoundException":
1342
- case "com.amazonaws.cognitoidentity#ResourceNotFoundException":
1343
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1344
- case "TooManyRequestsException":
1345
- case "com.amazonaws.cognitoidentity#TooManyRequestsException":
1346
- throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
1347
- default:
1348
- const parsedBody = parsedOutput.body;
1349
- return throwDefaultError({
1350
- output,
1351
- parsedBody,
1352
- errorCode
1353
- });
1354
- }
1355
- }, "de_SetPrincipalTagAttributeMapCommandError");
1356
756
  var de_TagResourceCommand = /* @__PURE__ */ __name(async (output, context) => {
1357
757
  if (output.statusCode >= 300) {
1358
- return de_TagResourceCommandError(output, context);
758
+ return de_CommandError(output, context);
1359
759
  }
1360
760
  const data = await parseBody(output.body, context);
1361
761
  let contents = {};
@@ -1366,40 +766,9 @@ var de_TagResourceCommand = /* @__PURE__ */ __name(async (output, context) => {
1366
766
  };
1367
767
  return response;
1368
768
  }, "de_TagResourceCommand");
1369
- var de_TagResourceCommandError = /* @__PURE__ */ __name(async (output, context) => {
1370
- const parsedOutput = {
1371
- ...output,
1372
- body: await parseErrorBody(output.body, context)
1373
- };
1374
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1375
- switch (errorCode) {
1376
- case "InternalErrorException":
1377
- case "com.amazonaws.cognitoidentity#InternalErrorException":
1378
- throw await de_InternalErrorExceptionRes(parsedOutput, context);
1379
- case "InvalidParameterException":
1380
- case "com.amazonaws.cognitoidentity#InvalidParameterException":
1381
- throw await de_InvalidParameterExceptionRes(parsedOutput, context);
1382
- case "NotAuthorizedException":
1383
- case "com.amazonaws.cognitoidentity#NotAuthorizedException":
1384
- throw await de_NotAuthorizedExceptionRes(parsedOutput, context);
1385
- case "ResourceNotFoundException":
1386
- case "com.amazonaws.cognitoidentity#ResourceNotFoundException":
1387
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1388
- case "TooManyRequestsException":
1389
- case "com.amazonaws.cognitoidentity#TooManyRequestsException":
1390
- throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
1391
- default:
1392
- const parsedBody = parsedOutput.body;
1393
- return throwDefaultError({
1394
- output,
1395
- parsedBody,
1396
- errorCode
1397
- });
1398
- }
1399
- }, "de_TagResourceCommandError");
1400
769
  var de_UnlinkDeveloperIdentityCommand = /* @__PURE__ */ __name(async (output, context) => {
1401
770
  if (output.statusCode >= 300) {
1402
- return de_UnlinkDeveloperIdentityCommandError(output, context);
771
+ return de_CommandError(output, context);
1403
772
  }
1404
773
  await (0, import_smithy_client.collectBody)(output.body, context);
1405
774
  const response = {
@@ -1407,43 +776,9 @@ var de_UnlinkDeveloperIdentityCommand = /* @__PURE__ */ __name(async (output, co
1407
776
  };
1408
777
  return response;
1409
778
  }, "de_UnlinkDeveloperIdentityCommand");
1410
- var de_UnlinkDeveloperIdentityCommandError = /* @__PURE__ */ __name(async (output, context) => {
1411
- const parsedOutput = {
1412
- ...output,
1413
- body: await parseErrorBody(output.body, context)
1414
- };
1415
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1416
- switch (errorCode) {
1417
- case "InternalErrorException":
1418
- case "com.amazonaws.cognitoidentity#InternalErrorException":
1419
- throw await de_InternalErrorExceptionRes(parsedOutput, context);
1420
- case "InvalidParameterException":
1421
- case "com.amazonaws.cognitoidentity#InvalidParameterException":
1422
- throw await de_InvalidParameterExceptionRes(parsedOutput, context);
1423
- case "NotAuthorizedException":
1424
- case "com.amazonaws.cognitoidentity#NotAuthorizedException":
1425
- throw await de_NotAuthorizedExceptionRes(parsedOutput, context);
1426
- case "ResourceConflictException":
1427
- case "com.amazonaws.cognitoidentity#ResourceConflictException":
1428
- throw await de_ResourceConflictExceptionRes(parsedOutput, context);
1429
- case "ResourceNotFoundException":
1430
- case "com.amazonaws.cognitoidentity#ResourceNotFoundException":
1431
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1432
- case "TooManyRequestsException":
1433
- case "com.amazonaws.cognitoidentity#TooManyRequestsException":
1434
- throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
1435
- default:
1436
- const parsedBody = parsedOutput.body;
1437
- return throwDefaultError({
1438
- output,
1439
- parsedBody,
1440
- errorCode
1441
- });
1442
- }
1443
- }, "de_UnlinkDeveloperIdentityCommandError");
1444
779
  var de_UnlinkIdentityCommand = /* @__PURE__ */ __name(async (output, context) => {
1445
780
  if (output.statusCode >= 300) {
1446
- return de_UnlinkIdentityCommandError(output, context);
781
+ return de_CommandError(output, context);
1447
782
  }
1448
783
  await (0, import_smithy_client.collectBody)(output.body, context);
1449
784
  const response = {
@@ -1451,46 +786,9 @@ var de_UnlinkIdentityCommand = /* @__PURE__ */ __name(async (output, context) =>
1451
786
  };
1452
787
  return response;
1453
788
  }, "de_UnlinkIdentityCommand");
1454
- var de_UnlinkIdentityCommandError = /* @__PURE__ */ __name(async (output, context) => {
1455
- const parsedOutput = {
1456
- ...output,
1457
- body: await parseErrorBody(output.body, context)
1458
- };
1459
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1460
- switch (errorCode) {
1461
- case "ExternalServiceException":
1462
- case "com.amazonaws.cognitoidentity#ExternalServiceException":
1463
- throw await de_ExternalServiceExceptionRes(parsedOutput, context);
1464
- case "InternalErrorException":
1465
- case "com.amazonaws.cognitoidentity#InternalErrorException":
1466
- throw await de_InternalErrorExceptionRes(parsedOutput, context);
1467
- case "InvalidParameterException":
1468
- case "com.amazonaws.cognitoidentity#InvalidParameterException":
1469
- throw await de_InvalidParameterExceptionRes(parsedOutput, context);
1470
- case "NotAuthorizedException":
1471
- case "com.amazonaws.cognitoidentity#NotAuthorizedException":
1472
- throw await de_NotAuthorizedExceptionRes(parsedOutput, context);
1473
- case "ResourceConflictException":
1474
- case "com.amazonaws.cognitoidentity#ResourceConflictException":
1475
- throw await de_ResourceConflictExceptionRes(parsedOutput, context);
1476
- case "ResourceNotFoundException":
1477
- case "com.amazonaws.cognitoidentity#ResourceNotFoundException":
1478
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1479
- case "TooManyRequestsException":
1480
- case "com.amazonaws.cognitoidentity#TooManyRequestsException":
1481
- throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
1482
- default:
1483
- const parsedBody = parsedOutput.body;
1484
- return throwDefaultError({
1485
- output,
1486
- parsedBody,
1487
- errorCode
1488
- });
1489
- }
1490
- }, "de_UnlinkIdentityCommandError");
1491
789
  var de_UntagResourceCommand = /* @__PURE__ */ __name(async (output, context) => {
1492
790
  if (output.statusCode >= 300) {
1493
- return de_UntagResourceCommandError(output, context);
791
+ return de_CommandError(output, context);
1494
792
  }
1495
793
  const data = await parseBody(output.body, context);
1496
794
  let contents = {};
@@ -1501,40 +799,9 @@ var de_UntagResourceCommand = /* @__PURE__ */ __name(async (output, context) =>
1501
799
  };
1502
800
  return response;
1503
801
  }, "de_UntagResourceCommand");
1504
- var de_UntagResourceCommandError = /* @__PURE__ */ __name(async (output, context) => {
1505
- const parsedOutput = {
1506
- ...output,
1507
- body: await parseErrorBody(output.body, context)
1508
- };
1509
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1510
- switch (errorCode) {
1511
- case "InternalErrorException":
1512
- case "com.amazonaws.cognitoidentity#InternalErrorException":
1513
- throw await de_InternalErrorExceptionRes(parsedOutput, context);
1514
- case "InvalidParameterException":
1515
- case "com.amazonaws.cognitoidentity#InvalidParameterException":
1516
- throw await de_InvalidParameterExceptionRes(parsedOutput, context);
1517
- case "NotAuthorizedException":
1518
- case "com.amazonaws.cognitoidentity#NotAuthorizedException":
1519
- throw await de_NotAuthorizedExceptionRes(parsedOutput, context);
1520
- case "ResourceNotFoundException":
1521
- case "com.amazonaws.cognitoidentity#ResourceNotFoundException":
1522
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1523
- case "TooManyRequestsException":
1524
- case "com.amazonaws.cognitoidentity#TooManyRequestsException":
1525
- throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
1526
- default:
1527
- const parsedBody = parsedOutput.body;
1528
- return throwDefaultError({
1529
- output,
1530
- parsedBody,
1531
- errorCode
1532
- });
1533
- }
1534
- }, "de_UntagResourceCommandError");
1535
802
  var de_UpdateIdentityPoolCommand = /* @__PURE__ */ __name(async (output, context) => {
1536
803
  if (output.statusCode >= 300) {
1537
- return de_UpdateIdentityPoolCommandError(output, context);
804
+ return de_CommandError(output, context);
1538
805
  }
1539
806
  const data = await parseBody(output.body, context);
1540
807
  let contents = {};
@@ -1545,16 +812,13 @@ var de_UpdateIdentityPoolCommand = /* @__PURE__ */ __name(async (output, context
1545
812
  };
1546
813
  return response;
1547
814
  }, "de_UpdateIdentityPoolCommand");
1548
- var de_UpdateIdentityPoolCommandError = /* @__PURE__ */ __name(async (output, context) => {
815
+ var de_CommandError = /* @__PURE__ */ __name(async (output, context) => {
1549
816
  const parsedOutput = {
1550
817
  ...output,
1551
818
  body: await parseErrorBody(output.body, context)
1552
819
  };
1553
820
  const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1554
821
  switch (errorCode) {
1555
- case "ConcurrentModificationException":
1556
- case "com.amazonaws.cognitoidentity#ConcurrentModificationException":
1557
- throw await de_ConcurrentModificationExceptionRes(parsedOutput, context);
1558
822
  case "InternalErrorException":
1559
823
  case "com.amazonaws.cognitoidentity#InternalErrorException":
1560
824
  throw await de_InternalErrorExceptionRes(parsedOutput, context);
@@ -1570,12 +834,24 @@ var de_UpdateIdentityPoolCommandError = /* @__PURE__ */ __name(async (output, co
1570
834
  case "ResourceConflictException":
1571
835
  case "com.amazonaws.cognitoidentity#ResourceConflictException":
1572
836
  throw await de_ResourceConflictExceptionRes(parsedOutput, context);
1573
- case "ResourceNotFoundException":
1574
- case "com.amazonaws.cognitoidentity#ResourceNotFoundException":
1575
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1576
837
  case "TooManyRequestsException":
1577
838
  case "com.amazonaws.cognitoidentity#TooManyRequestsException":
1578
839
  throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
840
+ case "ResourceNotFoundException":
841
+ case "com.amazonaws.cognitoidentity#ResourceNotFoundException":
842
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
843
+ case "ExternalServiceException":
844
+ case "com.amazonaws.cognitoidentity#ExternalServiceException":
845
+ throw await de_ExternalServiceExceptionRes(parsedOutput, context);
846
+ case "InvalidIdentityPoolConfigurationException":
847
+ case "com.amazonaws.cognitoidentity#InvalidIdentityPoolConfigurationException":
848
+ throw await de_InvalidIdentityPoolConfigurationExceptionRes(parsedOutput, context);
849
+ case "DeveloperUserAlreadyRegisteredException":
850
+ case "com.amazonaws.cognitoidentity#DeveloperUserAlreadyRegisteredException":
851
+ throw await de_DeveloperUserAlreadyRegisteredExceptionRes(parsedOutput, context);
852
+ case "ConcurrentModificationException":
853
+ case "com.amazonaws.cognitoidentity#ConcurrentModificationException":
854
+ throw await de_ConcurrentModificationExceptionRes(parsedOutput, context);
1579
855
  default:
1580
856
  const parsedBody = parsedOutput.body;
1581
857
  return throwDefaultError({
@@ -1584,7 +860,7 @@ var de_UpdateIdentityPoolCommandError = /* @__PURE__ */ __name(async (output, co
1584
860
  errorCode
1585
861
  });
1586
862
  }
1587
- }, "de_UpdateIdentityPoolCommandError");
863
+ }, "de_CommandError");
1588
864
  var de_ConcurrentModificationExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
1589
865
  const body = parsedOutput.body;
1590
866
  const deserialized = (0, import_smithy_client._json)(body);