@aws-sdk/client-identitystore 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 +39 -630
- package/dist-es/protocols/Aws_json1_1.js +31 -622
- package/package.json +3 -3
package/dist-cjs/index.js
CHANGED
|
@@ -638,7 +638,7 @@ var se_UpdateUserCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
|
638
638
|
}, "se_UpdateUserCommand");
|
|
639
639
|
var de_CreateGroupCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
640
640
|
if (output.statusCode >= 300) {
|
|
641
|
-
return
|
|
641
|
+
return de_CommandError(output, context);
|
|
642
642
|
}
|
|
643
643
|
const data = await parseBody(output.body, context);
|
|
644
644
|
let contents = {};
|
|
@@ -649,46 +649,9 @@ var de_CreateGroupCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
649
649
|
};
|
|
650
650
|
return response;
|
|
651
651
|
}, "de_CreateGroupCommand");
|
|
652
|
-
var de_CreateGroupCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
653
|
-
const parsedOutput = {
|
|
654
|
-
...output,
|
|
655
|
-
body: await parseErrorBody(output.body, context)
|
|
656
|
-
};
|
|
657
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
658
|
-
switch (errorCode) {
|
|
659
|
-
case "AccessDeniedException":
|
|
660
|
-
case "com.amazonaws.identitystore#AccessDeniedException":
|
|
661
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
662
|
-
case "ConflictException":
|
|
663
|
-
case "com.amazonaws.identitystore#ConflictException":
|
|
664
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
665
|
-
case "InternalServerException":
|
|
666
|
-
case "com.amazonaws.identitystore#InternalServerException":
|
|
667
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
668
|
-
case "ResourceNotFoundException":
|
|
669
|
-
case "com.amazonaws.identitystore#ResourceNotFoundException":
|
|
670
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
671
|
-
case "ServiceQuotaExceededException":
|
|
672
|
-
case "com.amazonaws.identitystore#ServiceQuotaExceededException":
|
|
673
|
-
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
674
|
-
case "ThrottlingException":
|
|
675
|
-
case "com.amazonaws.identitystore#ThrottlingException":
|
|
676
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
677
|
-
case "ValidationException":
|
|
678
|
-
case "com.amazonaws.identitystore#ValidationException":
|
|
679
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
680
|
-
default:
|
|
681
|
-
const parsedBody = parsedOutput.body;
|
|
682
|
-
return throwDefaultError({
|
|
683
|
-
output,
|
|
684
|
-
parsedBody,
|
|
685
|
-
errorCode
|
|
686
|
-
});
|
|
687
|
-
}
|
|
688
|
-
}, "de_CreateGroupCommandError");
|
|
689
652
|
var de_CreateGroupMembershipCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
690
653
|
if (output.statusCode >= 300) {
|
|
691
|
-
return
|
|
654
|
+
return de_CommandError(output, context);
|
|
692
655
|
}
|
|
693
656
|
const data = await parseBody(output.body, context);
|
|
694
657
|
let contents = {};
|
|
@@ -699,46 +662,9 @@ var de_CreateGroupMembershipCommand = /* @__PURE__ */ __name(async (output, cont
|
|
|
699
662
|
};
|
|
700
663
|
return response;
|
|
701
664
|
}, "de_CreateGroupMembershipCommand");
|
|
702
|
-
var de_CreateGroupMembershipCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
703
|
-
const parsedOutput = {
|
|
704
|
-
...output,
|
|
705
|
-
body: await parseErrorBody(output.body, context)
|
|
706
|
-
};
|
|
707
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
708
|
-
switch (errorCode) {
|
|
709
|
-
case "AccessDeniedException":
|
|
710
|
-
case "com.amazonaws.identitystore#AccessDeniedException":
|
|
711
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
712
|
-
case "ConflictException":
|
|
713
|
-
case "com.amazonaws.identitystore#ConflictException":
|
|
714
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
715
|
-
case "InternalServerException":
|
|
716
|
-
case "com.amazonaws.identitystore#InternalServerException":
|
|
717
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
718
|
-
case "ResourceNotFoundException":
|
|
719
|
-
case "com.amazonaws.identitystore#ResourceNotFoundException":
|
|
720
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
721
|
-
case "ServiceQuotaExceededException":
|
|
722
|
-
case "com.amazonaws.identitystore#ServiceQuotaExceededException":
|
|
723
|
-
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
724
|
-
case "ThrottlingException":
|
|
725
|
-
case "com.amazonaws.identitystore#ThrottlingException":
|
|
726
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
727
|
-
case "ValidationException":
|
|
728
|
-
case "com.amazonaws.identitystore#ValidationException":
|
|
729
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
730
|
-
default:
|
|
731
|
-
const parsedBody = parsedOutput.body;
|
|
732
|
-
return throwDefaultError({
|
|
733
|
-
output,
|
|
734
|
-
parsedBody,
|
|
735
|
-
errorCode
|
|
736
|
-
});
|
|
737
|
-
}
|
|
738
|
-
}, "de_CreateGroupMembershipCommandError");
|
|
739
665
|
var de_CreateUserCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
740
666
|
if (output.statusCode >= 300) {
|
|
741
|
-
return
|
|
667
|
+
return de_CommandError(output, context);
|
|
742
668
|
}
|
|
743
669
|
const data = await parseBody(output.body, context);
|
|
744
670
|
let contents = {};
|
|
@@ -749,46 +675,9 @@ var de_CreateUserCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
749
675
|
};
|
|
750
676
|
return response;
|
|
751
677
|
}, "de_CreateUserCommand");
|
|
752
|
-
var de_CreateUserCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
753
|
-
const parsedOutput = {
|
|
754
|
-
...output,
|
|
755
|
-
body: await parseErrorBody(output.body, context)
|
|
756
|
-
};
|
|
757
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
758
|
-
switch (errorCode) {
|
|
759
|
-
case "AccessDeniedException":
|
|
760
|
-
case "com.amazonaws.identitystore#AccessDeniedException":
|
|
761
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
762
|
-
case "ConflictException":
|
|
763
|
-
case "com.amazonaws.identitystore#ConflictException":
|
|
764
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
765
|
-
case "InternalServerException":
|
|
766
|
-
case "com.amazonaws.identitystore#InternalServerException":
|
|
767
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
768
|
-
case "ResourceNotFoundException":
|
|
769
|
-
case "com.amazonaws.identitystore#ResourceNotFoundException":
|
|
770
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
771
|
-
case "ServiceQuotaExceededException":
|
|
772
|
-
case "com.amazonaws.identitystore#ServiceQuotaExceededException":
|
|
773
|
-
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
774
|
-
case "ThrottlingException":
|
|
775
|
-
case "com.amazonaws.identitystore#ThrottlingException":
|
|
776
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
777
|
-
case "ValidationException":
|
|
778
|
-
case "com.amazonaws.identitystore#ValidationException":
|
|
779
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
780
|
-
default:
|
|
781
|
-
const parsedBody = parsedOutput.body;
|
|
782
|
-
return throwDefaultError({
|
|
783
|
-
output,
|
|
784
|
-
parsedBody,
|
|
785
|
-
errorCode
|
|
786
|
-
});
|
|
787
|
-
}
|
|
788
|
-
}, "de_CreateUserCommandError");
|
|
789
678
|
var de_DeleteGroupCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
790
679
|
if (output.statusCode >= 300) {
|
|
791
|
-
return
|
|
680
|
+
return de_CommandError(output, context);
|
|
792
681
|
}
|
|
793
682
|
const data = await parseBody(output.body, context);
|
|
794
683
|
let contents = {};
|
|
@@ -799,43 +688,9 @@ var de_DeleteGroupCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
799
688
|
};
|
|
800
689
|
return response;
|
|
801
690
|
}, "de_DeleteGroupCommand");
|
|
802
|
-
var de_DeleteGroupCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
803
|
-
const parsedOutput = {
|
|
804
|
-
...output,
|
|
805
|
-
body: await parseErrorBody(output.body, context)
|
|
806
|
-
};
|
|
807
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
808
|
-
switch (errorCode) {
|
|
809
|
-
case "AccessDeniedException":
|
|
810
|
-
case "com.amazonaws.identitystore#AccessDeniedException":
|
|
811
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
812
|
-
case "ConflictException":
|
|
813
|
-
case "com.amazonaws.identitystore#ConflictException":
|
|
814
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
815
|
-
case "InternalServerException":
|
|
816
|
-
case "com.amazonaws.identitystore#InternalServerException":
|
|
817
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
818
|
-
case "ResourceNotFoundException":
|
|
819
|
-
case "com.amazonaws.identitystore#ResourceNotFoundException":
|
|
820
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
821
|
-
case "ThrottlingException":
|
|
822
|
-
case "com.amazonaws.identitystore#ThrottlingException":
|
|
823
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
824
|
-
case "ValidationException":
|
|
825
|
-
case "com.amazonaws.identitystore#ValidationException":
|
|
826
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
827
|
-
default:
|
|
828
|
-
const parsedBody = parsedOutput.body;
|
|
829
|
-
return throwDefaultError({
|
|
830
|
-
output,
|
|
831
|
-
parsedBody,
|
|
832
|
-
errorCode
|
|
833
|
-
});
|
|
834
|
-
}
|
|
835
|
-
}, "de_DeleteGroupCommandError");
|
|
836
691
|
var de_DeleteGroupMembershipCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
837
692
|
if (output.statusCode >= 300) {
|
|
838
|
-
return
|
|
693
|
+
return de_CommandError(output, context);
|
|
839
694
|
}
|
|
840
695
|
const data = await parseBody(output.body, context);
|
|
841
696
|
let contents = {};
|
|
@@ -846,43 +701,9 @@ var de_DeleteGroupMembershipCommand = /* @__PURE__ */ __name(async (output, cont
|
|
|
846
701
|
};
|
|
847
702
|
return response;
|
|
848
703
|
}, "de_DeleteGroupMembershipCommand");
|
|
849
|
-
var de_DeleteGroupMembershipCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
850
|
-
const parsedOutput = {
|
|
851
|
-
...output,
|
|
852
|
-
body: await parseErrorBody(output.body, context)
|
|
853
|
-
};
|
|
854
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
855
|
-
switch (errorCode) {
|
|
856
|
-
case "AccessDeniedException":
|
|
857
|
-
case "com.amazonaws.identitystore#AccessDeniedException":
|
|
858
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
859
|
-
case "ConflictException":
|
|
860
|
-
case "com.amazonaws.identitystore#ConflictException":
|
|
861
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
862
|
-
case "InternalServerException":
|
|
863
|
-
case "com.amazonaws.identitystore#InternalServerException":
|
|
864
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
865
|
-
case "ResourceNotFoundException":
|
|
866
|
-
case "com.amazonaws.identitystore#ResourceNotFoundException":
|
|
867
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
868
|
-
case "ThrottlingException":
|
|
869
|
-
case "com.amazonaws.identitystore#ThrottlingException":
|
|
870
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
871
|
-
case "ValidationException":
|
|
872
|
-
case "com.amazonaws.identitystore#ValidationException":
|
|
873
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
874
|
-
default:
|
|
875
|
-
const parsedBody = parsedOutput.body;
|
|
876
|
-
return throwDefaultError({
|
|
877
|
-
output,
|
|
878
|
-
parsedBody,
|
|
879
|
-
errorCode
|
|
880
|
-
});
|
|
881
|
-
}
|
|
882
|
-
}, "de_DeleteGroupMembershipCommandError");
|
|
883
704
|
var de_DeleteUserCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
884
705
|
if (output.statusCode >= 300) {
|
|
885
|
-
return
|
|
706
|
+
return de_CommandError(output, context);
|
|
886
707
|
}
|
|
887
708
|
const data = await parseBody(output.body, context);
|
|
888
709
|
let contents = {};
|
|
@@ -893,43 +714,9 @@ var de_DeleteUserCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
893
714
|
};
|
|
894
715
|
return response;
|
|
895
716
|
}, "de_DeleteUserCommand");
|
|
896
|
-
var de_DeleteUserCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
897
|
-
const parsedOutput = {
|
|
898
|
-
...output,
|
|
899
|
-
body: await parseErrorBody(output.body, context)
|
|
900
|
-
};
|
|
901
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
902
|
-
switch (errorCode) {
|
|
903
|
-
case "AccessDeniedException":
|
|
904
|
-
case "com.amazonaws.identitystore#AccessDeniedException":
|
|
905
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
906
|
-
case "ConflictException":
|
|
907
|
-
case "com.amazonaws.identitystore#ConflictException":
|
|
908
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
909
|
-
case "InternalServerException":
|
|
910
|
-
case "com.amazonaws.identitystore#InternalServerException":
|
|
911
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
912
|
-
case "ResourceNotFoundException":
|
|
913
|
-
case "com.amazonaws.identitystore#ResourceNotFoundException":
|
|
914
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
915
|
-
case "ThrottlingException":
|
|
916
|
-
case "com.amazonaws.identitystore#ThrottlingException":
|
|
917
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
918
|
-
case "ValidationException":
|
|
919
|
-
case "com.amazonaws.identitystore#ValidationException":
|
|
920
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
921
|
-
default:
|
|
922
|
-
const parsedBody = parsedOutput.body;
|
|
923
|
-
return throwDefaultError({
|
|
924
|
-
output,
|
|
925
|
-
parsedBody,
|
|
926
|
-
errorCode
|
|
927
|
-
});
|
|
928
|
-
}
|
|
929
|
-
}, "de_DeleteUserCommandError");
|
|
930
717
|
var de_DescribeGroupCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
931
718
|
if (output.statusCode >= 300) {
|
|
932
|
-
return
|
|
719
|
+
return de_CommandError(output, context);
|
|
933
720
|
}
|
|
934
721
|
const data = await parseBody(output.body, context);
|
|
935
722
|
let contents = {};
|
|
@@ -940,40 +727,9 @@ var de_DescribeGroupCommand = /* @__PURE__ */ __name(async (output, context) =>
|
|
|
940
727
|
};
|
|
941
728
|
return response;
|
|
942
729
|
}, "de_DescribeGroupCommand");
|
|
943
|
-
var de_DescribeGroupCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
944
|
-
const parsedOutput = {
|
|
945
|
-
...output,
|
|
946
|
-
body: await parseErrorBody(output.body, context)
|
|
947
|
-
};
|
|
948
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
949
|
-
switch (errorCode) {
|
|
950
|
-
case "AccessDeniedException":
|
|
951
|
-
case "com.amazonaws.identitystore#AccessDeniedException":
|
|
952
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
953
|
-
case "InternalServerException":
|
|
954
|
-
case "com.amazonaws.identitystore#InternalServerException":
|
|
955
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
956
|
-
case "ResourceNotFoundException":
|
|
957
|
-
case "com.amazonaws.identitystore#ResourceNotFoundException":
|
|
958
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
959
|
-
case "ThrottlingException":
|
|
960
|
-
case "com.amazonaws.identitystore#ThrottlingException":
|
|
961
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
962
|
-
case "ValidationException":
|
|
963
|
-
case "com.amazonaws.identitystore#ValidationException":
|
|
964
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
965
|
-
default:
|
|
966
|
-
const parsedBody = parsedOutput.body;
|
|
967
|
-
return throwDefaultError({
|
|
968
|
-
output,
|
|
969
|
-
parsedBody,
|
|
970
|
-
errorCode
|
|
971
|
-
});
|
|
972
|
-
}
|
|
973
|
-
}, "de_DescribeGroupCommandError");
|
|
974
730
|
var de_DescribeGroupMembershipCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
975
731
|
if (output.statusCode >= 300) {
|
|
976
|
-
return
|
|
732
|
+
return de_CommandError(output, context);
|
|
977
733
|
}
|
|
978
734
|
const data = await parseBody(output.body, context);
|
|
979
735
|
let contents = {};
|
|
@@ -984,128 +740,35 @@ var de_DescribeGroupMembershipCommand = /* @__PURE__ */ __name(async (output, co
|
|
|
984
740
|
};
|
|
985
741
|
return response;
|
|
986
742
|
}, "de_DescribeGroupMembershipCommand");
|
|
987
|
-
var de_DescribeGroupMembershipCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
988
|
-
const parsedOutput = {
|
|
989
|
-
...output,
|
|
990
|
-
body: await parseErrorBody(output.body, context)
|
|
991
|
-
};
|
|
992
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
993
|
-
switch (errorCode) {
|
|
994
|
-
case "AccessDeniedException":
|
|
995
|
-
case "com.amazonaws.identitystore#AccessDeniedException":
|
|
996
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
997
|
-
case "InternalServerException":
|
|
998
|
-
case "com.amazonaws.identitystore#InternalServerException":
|
|
999
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1000
|
-
case "ResourceNotFoundException":
|
|
1001
|
-
case "com.amazonaws.identitystore#ResourceNotFoundException":
|
|
1002
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1003
|
-
case "ThrottlingException":
|
|
1004
|
-
case "com.amazonaws.identitystore#ThrottlingException":
|
|
1005
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1006
|
-
case "ValidationException":
|
|
1007
|
-
case "com.amazonaws.identitystore#ValidationException":
|
|
1008
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1009
|
-
default:
|
|
1010
|
-
const parsedBody = parsedOutput.body;
|
|
1011
|
-
return throwDefaultError({
|
|
1012
|
-
output,
|
|
1013
|
-
parsedBody,
|
|
1014
|
-
errorCode
|
|
1015
|
-
});
|
|
1016
|
-
}
|
|
1017
|
-
}, "de_DescribeGroupMembershipCommandError");
|
|
1018
743
|
var de_DescribeUserCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1019
744
|
if (output.statusCode >= 300) {
|
|
1020
|
-
return
|
|
745
|
+
return de_CommandError(output, context);
|
|
1021
746
|
}
|
|
1022
747
|
const data = await parseBody(output.body, context);
|
|
1023
748
|
let contents = {};
|
|
1024
|
-
contents = (0, import_smithy_client._json)(data);
|
|
1025
|
-
const response = {
|
|
1026
|
-
$metadata: deserializeMetadata(output),
|
|
1027
|
-
...contents
|
|
1028
|
-
};
|
|
1029
|
-
return response;
|
|
1030
|
-
}, "de_DescribeUserCommand");
|
|
1031
|
-
var
|
|
1032
|
-
|
|
1033
|
-
|
|
1034
|
-
body: await parseErrorBody(output.body, context)
|
|
1035
|
-
};
|
|
1036
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1037
|
-
switch (errorCode) {
|
|
1038
|
-
case "AccessDeniedException":
|
|
1039
|
-
case "com.amazonaws.identitystore#AccessDeniedException":
|
|
1040
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1041
|
-
case "InternalServerException":
|
|
1042
|
-
case "com.amazonaws.identitystore#InternalServerException":
|
|
1043
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1044
|
-
case "ResourceNotFoundException":
|
|
1045
|
-
case "com.amazonaws.identitystore#ResourceNotFoundException":
|
|
1046
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1047
|
-
case "ThrottlingException":
|
|
1048
|
-
case "com.amazonaws.identitystore#ThrottlingException":
|
|
1049
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1050
|
-
case "ValidationException":
|
|
1051
|
-
case "com.amazonaws.identitystore#ValidationException":
|
|
1052
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1053
|
-
default:
|
|
1054
|
-
const parsedBody = parsedOutput.body;
|
|
1055
|
-
return throwDefaultError({
|
|
1056
|
-
output,
|
|
1057
|
-
parsedBody,
|
|
1058
|
-
errorCode
|
|
1059
|
-
});
|
|
1060
|
-
}
|
|
1061
|
-
}, "de_DescribeUserCommandError");
|
|
1062
|
-
var de_GetGroupIdCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1063
|
-
if (output.statusCode >= 300) {
|
|
1064
|
-
return de_GetGroupIdCommandError(output, context);
|
|
1065
|
-
}
|
|
1066
|
-
const data = await parseBody(output.body, context);
|
|
1067
|
-
let contents = {};
|
|
1068
|
-
contents = (0, import_smithy_client._json)(data);
|
|
1069
|
-
const response = {
|
|
1070
|
-
$metadata: deserializeMetadata(output),
|
|
1071
|
-
...contents
|
|
1072
|
-
};
|
|
1073
|
-
return response;
|
|
1074
|
-
}, "de_GetGroupIdCommand");
|
|
1075
|
-
var de_GetGroupIdCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1076
|
-
const parsedOutput = {
|
|
1077
|
-
...output,
|
|
1078
|
-
body: await parseErrorBody(output.body, context)
|
|
1079
|
-
};
|
|
1080
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1081
|
-
switch (errorCode) {
|
|
1082
|
-
case "AccessDeniedException":
|
|
1083
|
-
case "com.amazonaws.identitystore#AccessDeniedException":
|
|
1084
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1085
|
-
case "InternalServerException":
|
|
1086
|
-
case "com.amazonaws.identitystore#InternalServerException":
|
|
1087
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1088
|
-
case "ResourceNotFoundException":
|
|
1089
|
-
case "com.amazonaws.identitystore#ResourceNotFoundException":
|
|
1090
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1091
|
-
case "ThrottlingException":
|
|
1092
|
-
case "com.amazonaws.identitystore#ThrottlingException":
|
|
1093
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1094
|
-
case "ValidationException":
|
|
1095
|
-
case "com.amazonaws.identitystore#ValidationException":
|
|
1096
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1097
|
-
default:
|
|
1098
|
-
const parsedBody = parsedOutput.body;
|
|
1099
|
-
return throwDefaultError({
|
|
1100
|
-
output,
|
|
1101
|
-
parsedBody,
|
|
1102
|
-
errorCode
|
|
1103
|
-
});
|
|
749
|
+
contents = (0, import_smithy_client._json)(data);
|
|
750
|
+
const response = {
|
|
751
|
+
$metadata: deserializeMetadata(output),
|
|
752
|
+
...contents
|
|
753
|
+
};
|
|
754
|
+
return response;
|
|
755
|
+
}, "de_DescribeUserCommand");
|
|
756
|
+
var de_GetGroupIdCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
757
|
+
if (output.statusCode >= 300) {
|
|
758
|
+
return de_CommandError(output, context);
|
|
1104
759
|
}
|
|
1105
|
-
|
|
760
|
+
const data = await parseBody(output.body, context);
|
|
761
|
+
let contents = {};
|
|
762
|
+
contents = (0, import_smithy_client._json)(data);
|
|
763
|
+
const response = {
|
|
764
|
+
$metadata: deserializeMetadata(output),
|
|
765
|
+
...contents
|
|
766
|
+
};
|
|
767
|
+
return response;
|
|
768
|
+
}, "de_GetGroupIdCommand");
|
|
1106
769
|
var de_GetGroupMembershipIdCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1107
770
|
if (output.statusCode >= 300) {
|
|
1108
|
-
return
|
|
771
|
+
return de_CommandError(output, context);
|
|
1109
772
|
}
|
|
1110
773
|
const data = await parseBody(output.body, context);
|
|
1111
774
|
let contents = {};
|
|
@@ -1116,40 +779,9 @@ var de_GetGroupMembershipIdCommand = /* @__PURE__ */ __name(async (output, conte
|
|
|
1116
779
|
};
|
|
1117
780
|
return response;
|
|
1118
781
|
}, "de_GetGroupMembershipIdCommand");
|
|
1119
|
-
var de_GetGroupMembershipIdCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1120
|
-
const parsedOutput = {
|
|
1121
|
-
...output,
|
|
1122
|
-
body: await parseErrorBody(output.body, context)
|
|
1123
|
-
};
|
|
1124
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1125
|
-
switch (errorCode) {
|
|
1126
|
-
case "AccessDeniedException":
|
|
1127
|
-
case "com.amazonaws.identitystore#AccessDeniedException":
|
|
1128
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1129
|
-
case "InternalServerException":
|
|
1130
|
-
case "com.amazonaws.identitystore#InternalServerException":
|
|
1131
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1132
|
-
case "ResourceNotFoundException":
|
|
1133
|
-
case "com.amazonaws.identitystore#ResourceNotFoundException":
|
|
1134
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1135
|
-
case "ThrottlingException":
|
|
1136
|
-
case "com.amazonaws.identitystore#ThrottlingException":
|
|
1137
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1138
|
-
case "ValidationException":
|
|
1139
|
-
case "com.amazonaws.identitystore#ValidationException":
|
|
1140
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1141
|
-
default:
|
|
1142
|
-
const parsedBody = parsedOutput.body;
|
|
1143
|
-
return throwDefaultError({
|
|
1144
|
-
output,
|
|
1145
|
-
parsedBody,
|
|
1146
|
-
errorCode
|
|
1147
|
-
});
|
|
1148
|
-
}
|
|
1149
|
-
}, "de_GetGroupMembershipIdCommandError");
|
|
1150
782
|
var de_GetUserIdCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1151
783
|
if (output.statusCode >= 300) {
|
|
1152
|
-
return
|
|
784
|
+
return de_CommandError(output, context);
|
|
1153
785
|
}
|
|
1154
786
|
const data = await parseBody(output.body, context);
|
|
1155
787
|
let contents = {};
|
|
@@ -1160,40 +792,9 @@ var de_GetUserIdCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
1160
792
|
};
|
|
1161
793
|
return response;
|
|
1162
794
|
}, "de_GetUserIdCommand");
|
|
1163
|
-
var de_GetUserIdCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1164
|
-
const parsedOutput = {
|
|
1165
|
-
...output,
|
|
1166
|
-
body: await parseErrorBody(output.body, context)
|
|
1167
|
-
};
|
|
1168
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1169
|
-
switch (errorCode) {
|
|
1170
|
-
case "AccessDeniedException":
|
|
1171
|
-
case "com.amazonaws.identitystore#AccessDeniedException":
|
|
1172
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1173
|
-
case "InternalServerException":
|
|
1174
|
-
case "com.amazonaws.identitystore#InternalServerException":
|
|
1175
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1176
|
-
case "ResourceNotFoundException":
|
|
1177
|
-
case "com.amazonaws.identitystore#ResourceNotFoundException":
|
|
1178
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1179
|
-
case "ThrottlingException":
|
|
1180
|
-
case "com.amazonaws.identitystore#ThrottlingException":
|
|
1181
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1182
|
-
case "ValidationException":
|
|
1183
|
-
case "com.amazonaws.identitystore#ValidationException":
|
|
1184
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1185
|
-
default:
|
|
1186
|
-
const parsedBody = parsedOutput.body;
|
|
1187
|
-
return throwDefaultError({
|
|
1188
|
-
output,
|
|
1189
|
-
parsedBody,
|
|
1190
|
-
errorCode
|
|
1191
|
-
});
|
|
1192
|
-
}
|
|
1193
|
-
}, "de_GetUserIdCommandError");
|
|
1194
795
|
var de_IsMemberInGroupsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1195
796
|
if (output.statusCode >= 300) {
|
|
1196
|
-
return
|
|
797
|
+
return de_CommandError(output, context);
|
|
1197
798
|
}
|
|
1198
799
|
const data = await parseBody(output.body, context);
|
|
1199
800
|
let contents = {};
|
|
@@ -1204,40 +805,9 @@ var de_IsMemberInGroupsCommand = /* @__PURE__ */ __name(async (output, context)
|
|
|
1204
805
|
};
|
|
1205
806
|
return response;
|
|
1206
807
|
}, "de_IsMemberInGroupsCommand");
|
|
1207
|
-
var de_IsMemberInGroupsCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1208
|
-
const parsedOutput = {
|
|
1209
|
-
...output,
|
|
1210
|
-
body: await parseErrorBody(output.body, context)
|
|
1211
|
-
};
|
|
1212
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1213
|
-
switch (errorCode) {
|
|
1214
|
-
case "AccessDeniedException":
|
|
1215
|
-
case "com.amazonaws.identitystore#AccessDeniedException":
|
|
1216
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1217
|
-
case "InternalServerException":
|
|
1218
|
-
case "com.amazonaws.identitystore#InternalServerException":
|
|
1219
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1220
|
-
case "ResourceNotFoundException":
|
|
1221
|
-
case "com.amazonaws.identitystore#ResourceNotFoundException":
|
|
1222
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1223
|
-
case "ThrottlingException":
|
|
1224
|
-
case "com.amazonaws.identitystore#ThrottlingException":
|
|
1225
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1226
|
-
case "ValidationException":
|
|
1227
|
-
case "com.amazonaws.identitystore#ValidationException":
|
|
1228
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1229
|
-
default:
|
|
1230
|
-
const parsedBody = parsedOutput.body;
|
|
1231
|
-
return throwDefaultError({
|
|
1232
|
-
output,
|
|
1233
|
-
parsedBody,
|
|
1234
|
-
errorCode
|
|
1235
|
-
});
|
|
1236
|
-
}
|
|
1237
|
-
}, "de_IsMemberInGroupsCommandError");
|
|
1238
808
|
var de_ListGroupMembershipsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1239
809
|
if (output.statusCode >= 300) {
|
|
1240
|
-
return
|
|
810
|
+
return de_CommandError(output, context);
|
|
1241
811
|
}
|
|
1242
812
|
const data = await parseBody(output.body, context);
|
|
1243
813
|
let contents = {};
|
|
@@ -1248,40 +818,9 @@ var de_ListGroupMembershipsCommand = /* @__PURE__ */ __name(async (output, conte
|
|
|
1248
818
|
};
|
|
1249
819
|
return response;
|
|
1250
820
|
}, "de_ListGroupMembershipsCommand");
|
|
1251
|
-
var de_ListGroupMembershipsCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1252
|
-
const parsedOutput = {
|
|
1253
|
-
...output,
|
|
1254
|
-
body: await parseErrorBody(output.body, context)
|
|
1255
|
-
};
|
|
1256
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1257
|
-
switch (errorCode) {
|
|
1258
|
-
case "AccessDeniedException":
|
|
1259
|
-
case "com.amazonaws.identitystore#AccessDeniedException":
|
|
1260
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1261
|
-
case "InternalServerException":
|
|
1262
|
-
case "com.amazonaws.identitystore#InternalServerException":
|
|
1263
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1264
|
-
case "ResourceNotFoundException":
|
|
1265
|
-
case "com.amazonaws.identitystore#ResourceNotFoundException":
|
|
1266
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1267
|
-
case "ThrottlingException":
|
|
1268
|
-
case "com.amazonaws.identitystore#ThrottlingException":
|
|
1269
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1270
|
-
case "ValidationException":
|
|
1271
|
-
case "com.amazonaws.identitystore#ValidationException":
|
|
1272
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1273
|
-
default:
|
|
1274
|
-
const parsedBody = parsedOutput.body;
|
|
1275
|
-
return throwDefaultError({
|
|
1276
|
-
output,
|
|
1277
|
-
parsedBody,
|
|
1278
|
-
errorCode
|
|
1279
|
-
});
|
|
1280
|
-
}
|
|
1281
|
-
}, "de_ListGroupMembershipsCommandError");
|
|
1282
821
|
var de_ListGroupMembershipsForMemberCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1283
822
|
if (output.statusCode >= 300) {
|
|
1284
|
-
return
|
|
823
|
+
return de_CommandError(output, context);
|
|
1285
824
|
}
|
|
1286
825
|
const data = await parseBody(output.body, context);
|
|
1287
826
|
let contents = {};
|
|
@@ -1292,40 +831,9 @@ var de_ListGroupMembershipsForMemberCommand = /* @__PURE__ */ __name(async (outp
|
|
|
1292
831
|
};
|
|
1293
832
|
return response;
|
|
1294
833
|
}, "de_ListGroupMembershipsForMemberCommand");
|
|
1295
|
-
var de_ListGroupMembershipsForMemberCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1296
|
-
const parsedOutput = {
|
|
1297
|
-
...output,
|
|
1298
|
-
body: await parseErrorBody(output.body, context)
|
|
1299
|
-
};
|
|
1300
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1301
|
-
switch (errorCode) {
|
|
1302
|
-
case "AccessDeniedException":
|
|
1303
|
-
case "com.amazonaws.identitystore#AccessDeniedException":
|
|
1304
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1305
|
-
case "InternalServerException":
|
|
1306
|
-
case "com.amazonaws.identitystore#InternalServerException":
|
|
1307
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1308
|
-
case "ResourceNotFoundException":
|
|
1309
|
-
case "com.amazonaws.identitystore#ResourceNotFoundException":
|
|
1310
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1311
|
-
case "ThrottlingException":
|
|
1312
|
-
case "com.amazonaws.identitystore#ThrottlingException":
|
|
1313
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1314
|
-
case "ValidationException":
|
|
1315
|
-
case "com.amazonaws.identitystore#ValidationException":
|
|
1316
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1317
|
-
default:
|
|
1318
|
-
const parsedBody = parsedOutput.body;
|
|
1319
|
-
return throwDefaultError({
|
|
1320
|
-
output,
|
|
1321
|
-
parsedBody,
|
|
1322
|
-
errorCode
|
|
1323
|
-
});
|
|
1324
|
-
}
|
|
1325
|
-
}, "de_ListGroupMembershipsForMemberCommandError");
|
|
1326
834
|
var de_ListGroupsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1327
835
|
if (output.statusCode >= 300) {
|
|
1328
|
-
return
|
|
836
|
+
return de_CommandError(output, context);
|
|
1329
837
|
}
|
|
1330
838
|
const data = await parseBody(output.body, context);
|
|
1331
839
|
let contents = {};
|
|
@@ -1336,40 +844,9 @@ var de_ListGroupsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
1336
844
|
};
|
|
1337
845
|
return response;
|
|
1338
846
|
}, "de_ListGroupsCommand");
|
|
1339
|
-
var de_ListGroupsCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1340
|
-
const parsedOutput = {
|
|
1341
|
-
...output,
|
|
1342
|
-
body: await parseErrorBody(output.body, context)
|
|
1343
|
-
};
|
|
1344
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1345
|
-
switch (errorCode) {
|
|
1346
|
-
case "AccessDeniedException":
|
|
1347
|
-
case "com.amazonaws.identitystore#AccessDeniedException":
|
|
1348
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1349
|
-
case "InternalServerException":
|
|
1350
|
-
case "com.amazonaws.identitystore#InternalServerException":
|
|
1351
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1352
|
-
case "ResourceNotFoundException":
|
|
1353
|
-
case "com.amazonaws.identitystore#ResourceNotFoundException":
|
|
1354
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1355
|
-
case "ThrottlingException":
|
|
1356
|
-
case "com.amazonaws.identitystore#ThrottlingException":
|
|
1357
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1358
|
-
case "ValidationException":
|
|
1359
|
-
case "com.amazonaws.identitystore#ValidationException":
|
|
1360
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1361
|
-
default:
|
|
1362
|
-
const parsedBody = parsedOutput.body;
|
|
1363
|
-
return throwDefaultError({
|
|
1364
|
-
output,
|
|
1365
|
-
parsedBody,
|
|
1366
|
-
errorCode
|
|
1367
|
-
});
|
|
1368
|
-
}
|
|
1369
|
-
}, "de_ListGroupsCommandError");
|
|
1370
847
|
var de_ListUsersCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1371
848
|
if (output.statusCode >= 300) {
|
|
1372
|
-
return
|
|
849
|
+
return de_CommandError(output, context);
|
|
1373
850
|
}
|
|
1374
851
|
const data = await parseBody(output.body, context);
|
|
1375
852
|
let contents = {};
|
|
@@ -1380,40 +857,9 @@ var de_ListUsersCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
1380
857
|
};
|
|
1381
858
|
return response;
|
|
1382
859
|
}, "de_ListUsersCommand");
|
|
1383
|
-
var de_ListUsersCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1384
|
-
const parsedOutput = {
|
|
1385
|
-
...output,
|
|
1386
|
-
body: await parseErrorBody(output.body, context)
|
|
1387
|
-
};
|
|
1388
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1389
|
-
switch (errorCode) {
|
|
1390
|
-
case "AccessDeniedException":
|
|
1391
|
-
case "com.amazonaws.identitystore#AccessDeniedException":
|
|
1392
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1393
|
-
case "InternalServerException":
|
|
1394
|
-
case "com.amazonaws.identitystore#InternalServerException":
|
|
1395
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1396
|
-
case "ResourceNotFoundException":
|
|
1397
|
-
case "com.amazonaws.identitystore#ResourceNotFoundException":
|
|
1398
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1399
|
-
case "ThrottlingException":
|
|
1400
|
-
case "com.amazonaws.identitystore#ThrottlingException":
|
|
1401
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1402
|
-
case "ValidationException":
|
|
1403
|
-
case "com.amazonaws.identitystore#ValidationException":
|
|
1404
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1405
|
-
default:
|
|
1406
|
-
const parsedBody = parsedOutput.body;
|
|
1407
|
-
return throwDefaultError({
|
|
1408
|
-
output,
|
|
1409
|
-
parsedBody,
|
|
1410
|
-
errorCode
|
|
1411
|
-
});
|
|
1412
|
-
}
|
|
1413
|
-
}, "de_ListUsersCommandError");
|
|
1414
860
|
var de_UpdateGroupCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1415
861
|
if (output.statusCode >= 300) {
|
|
1416
|
-
return
|
|
862
|
+
return de_CommandError(output, context);
|
|
1417
863
|
}
|
|
1418
864
|
const data = await parseBody(output.body, context);
|
|
1419
865
|
let contents = {};
|
|
@@ -1424,46 +870,9 @@ var de_UpdateGroupCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
1424
870
|
};
|
|
1425
871
|
return response;
|
|
1426
872
|
}, "de_UpdateGroupCommand");
|
|
1427
|
-
var de_UpdateGroupCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1428
|
-
const parsedOutput = {
|
|
1429
|
-
...output,
|
|
1430
|
-
body: await parseErrorBody(output.body, context)
|
|
1431
|
-
};
|
|
1432
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1433
|
-
switch (errorCode) {
|
|
1434
|
-
case "AccessDeniedException":
|
|
1435
|
-
case "com.amazonaws.identitystore#AccessDeniedException":
|
|
1436
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1437
|
-
case "ConflictException":
|
|
1438
|
-
case "com.amazonaws.identitystore#ConflictException":
|
|
1439
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1440
|
-
case "InternalServerException":
|
|
1441
|
-
case "com.amazonaws.identitystore#InternalServerException":
|
|
1442
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1443
|
-
case "ResourceNotFoundException":
|
|
1444
|
-
case "com.amazonaws.identitystore#ResourceNotFoundException":
|
|
1445
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1446
|
-
case "ServiceQuotaExceededException":
|
|
1447
|
-
case "com.amazonaws.identitystore#ServiceQuotaExceededException":
|
|
1448
|
-
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
1449
|
-
case "ThrottlingException":
|
|
1450
|
-
case "com.amazonaws.identitystore#ThrottlingException":
|
|
1451
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1452
|
-
case "ValidationException":
|
|
1453
|
-
case "com.amazonaws.identitystore#ValidationException":
|
|
1454
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1455
|
-
default:
|
|
1456
|
-
const parsedBody = parsedOutput.body;
|
|
1457
|
-
return throwDefaultError({
|
|
1458
|
-
output,
|
|
1459
|
-
parsedBody,
|
|
1460
|
-
errorCode
|
|
1461
|
-
});
|
|
1462
|
-
}
|
|
1463
|
-
}, "de_UpdateGroupCommandError");
|
|
1464
873
|
var de_UpdateUserCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1465
874
|
if (output.statusCode >= 300) {
|
|
1466
|
-
return
|
|
875
|
+
return de_CommandError(output, context);
|
|
1467
876
|
}
|
|
1468
877
|
const data = await parseBody(output.body, context);
|
|
1469
878
|
let contents = {};
|
|
@@ -1474,7 +883,7 @@ var de_UpdateUserCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
1474
883
|
};
|
|
1475
884
|
return response;
|
|
1476
885
|
}, "de_UpdateUserCommand");
|
|
1477
|
-
var
|
|
886
|
+
var de_CommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1478
887
|
const parsedOutput = {
|
|
1479
888
|
...output,
|
|
1480
889
|
body: await parseErrorBody(output.body, context)
|
|
@@ -1510,7 +919,7 @@ var de_UpdateUserCommandError = /* @__PURE__ */ __name(async (output, context) =
|
|
|
1510
919
|
errorCode
|
|
1511
920
|
});
|
|
1512
921
|
}
|
|
1513
|
-
}, "
|
|
922
|
+
}, "de_CommandError");
|
|
1514
923
|
var de_AccessDeniedExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
|
|
1515
924
|
const body = parsedOutput.body;
|
|
1516
925
|
const deserialized = (0, import_smithy_client._json)(body);
|