@aws-sdk/client-rolesanywhere 3.504.0 → 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 -654
- package/dist-es/protocols/Aws_restJson1.js +35 -650
- package/package.json +3 -3
package/dist-cjs/index.js
CHANGED
|
@@ -667,7 +667,7 @@ var se_UpdateTrustAnchorCommand = /* @__PURE__ */ __name(async (input, context)
|
|
|
667
667
|
}, "se_UpdateTrustAnchorCommand");
|
|
668
668
|
var de_CreateProfileCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
669
669
|
if (output.statusCode !== 201 && output.statusCode >= 300) {
|
|
670
|
-
return
|
|
670
|
+
return de_CommandError(output, context);
|
|
671
671
|
}
|
|
672
672
|
const contents = (0, import_smithy_client.map)({
|
|
673
673
|
$metadata: deserializeMetadata(output)
|
|
@@ -679,31 +679,9 @@ var de_CreateProfileCommand = /* @__PURE__ */ __name(async (output, context) =>
|
|
|
679
679
|
Object.assign(contents, doc);
|
|
680
680
|
return contents;
|
|
681
681
|
}, "de_CreateProfileCommand");
|
|
682
|
-
var de_CreateProfileCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
683
|
-
const parsedOutput = {
|
|
684
|
-
...output,
|
|
685
|
-
body: await parseErrorBody(output.body, context)
|
|
686
|
-
};
|
|
687
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
688
|
-
switch (errorCode) {
|
|
689
|
-
case "AccessDeniedException":
|
|
690
|
-
case "com.amazonaws.rolesanywhere#AccessDeniedException":
|
|
691
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
692
|
-
case "ValidationException":
|
|
693
|
-
case "com.amazonaws.rolesanywhere#ValidationException":
|
|
694
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
695
|
-
default:
|
|
696
|
-
const parsedBody = parsedOutput.body;
|
|
697
|
-
return throwDefaultError({
|
|
698
|
-
output,
|
|
699
|
-
parsedBody,
|
|
700
|
-
errorCode
|
|
701
|
-
});
|
|
702
|
-
}
|
|
703
|
-
}, "de_CreateProfileCommandError");
|
|
704
682
|
var de_CreateTrustAnchorCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
705
683
|
if (output.statusCode !== 201 && output.statusCode >= 300) {
|
|
706
|
-
return
|
|
684
|
+
return de_CommandError(output, context);
|
|
707
685
|
}
|
|
708
686
|
const contents = (0, import_smithy_client.map)({
|
|
709
687
|
$metadata: deserializeMetadata(output)
|
|
@@ -715,31 +693,9 @@ var de_CreateTrustAnchorCommand = /* @__PURE__ */ __name(async (output, context)
|
|
|
715
693
|
Object.assign(contents, doc);
|
|
716
694
|
return contents;
|
|
717
695
|
}, "de_CreateTrustAnchorCommand");
|
|
718
|
-
var de_CreateTrustAnchorCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
719
|
-
const parsedOutput = {
|
|
720
|
-
...output,
|
|
721
|
-
body: await parseErrorBody(output.body, context)
|
|
722
|
-
};
|
|
723
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
724
|
-
switch (errorCode) {
|
|
725
|
-
case "AccessDeniedException":
|
|
726
|
-
case "com.amazonaws.rolesanywhere#AccessDeniedException":
|
|
727
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
728
|
-
case "ValidationException":
|
|
729
|
-
case "com.amazonaws.rolesanywhere#ValidationException":
|
|
730
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
731
|
-
default:
|
|
732
|
-
const parsedBody = parsedOutput.body;
|
|
733
|
-
return throwDefaultError({
|
|
734
|
-
output,
|
|
735
|
-
parsedBody,
|
|
736
|
-
errorCode
|
|
737
|
-
});
|
|
738
|
-
}
|
|
739
|
-
}, "de_CreateTrustAnchorCommandError");
|
|
740
696
|
var de_DeleteCrlCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
741
697
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
742
|
-
return
|
|
698
|
+
return de_CommandError(output, context);
|
|
743
699
|
}
|
|
744
700
|
const contents = (0, import_smithy_client.map)({
|
|
745
701
|
$metadata: deserializeMetadata(output)
|
|
@@ -751,31 +707,9 @@ var de_DeleteCrlCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
751
707
|
Object.assign(contents, doc);
|
|
752
708
|
return contents;
|
|
753
709
|
}, "de_DeleteCrlCommand");
|
|
754
|
-
var de_DeleteCrlCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
755
|
-
const parsedOutput = {
|
|
756
|
-
...output,
|
|
757
|
-
body: await parseErrorBody(output.body, context)
|
|
758
|
-
};
|
|
759
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
760
|
-
switch (errorCode) {
|
|
761
|
-
case "AccessDeniedException":
|
|
762
|
-
case "com.amazonaws.rolesanywhere#AccessDeniedException":
|
|
763
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
764
|
-
case "ResourceNotFoundException":
|
|
765
|
-
case "com.amazonaws.rolesanywhere#ResourceNotFoundException":
|
|
766
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
767
|
-
default:
|
|
768
|
-
const parsedBody = parsedOutput.body;
|
|
769
|
-
return throwDefaultError({
|
|
770
|
-
output,
|
|
771
|
-
parsedBody,
|
|
772
|
-
errorCode
|
|
773
|
-
});
|
|
774
|
-
}
|
|
775
|
-
}, "de_DeleteCrlCommandError");
|
|
776
710
|
var de_DeleteProfileCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
777
711
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
778
|
-
return
|
|
712
|
+
return de_CommandError(output, context);
|
|
779
713
|
}
|
|
780
714
|
const contents = (0, import_smithy_client.map)({
|
|
781
715
|
$metadata: deserializeMetadata(output)
|
|
@@ -787,31 +721,9 @@ var de_DeleteProfileCommand = /* @__PURE__ */ __name(async (output, context) =>
|
|
|
787
721
|
Object.assign(contents, doc);
|
|
788
722
|
return contents;
|
|
789
723
|
}, "de_DeleteProfileCommand");
|
|
790
|
-
var de_DeleteProfileCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
791
|
-
const parsedOutput = {
|
|
792
|
-
...output,
|
|
793
|
-
body: await parseErrorBody(output.body, context)
|
|
794
|
-
};
|
|
795
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
796
|
-
switch (errorCode) {
|
|
797
|
-
case "AccessDeniedException":
|
|
798
|
-
case "com.amazonaws.rolesanywhere#AccessDeniedException":
|
|
799
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
800
|
-
case "ResourceNotFoundException":
|
|
801
|
-
case "com.amazonaws.rolesanywhere#ResourceNotFoundException":
|
|
802
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
803
|
-
default:
|
|
804
|
-
const parsedBody = parsedOutput.body;
|
|
805
|
-
return throwDefaultError({
|
|
806
|
-
output,
|
|
807
|
-
parsedBody,
|
|
808
|
-
errorCode
|
|
809
|
-
});
|
|
810
|
-
}
|
|
811
|
-
}, "de_DeleteProfileCommandError");
|
|
812
724
|
var de_DeleteTrustAnchorCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
813
725
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
814
|
-
return
|
|
726
|
+
return de_CommandError(output, context);
|
|
815
727
|
}
|
|
816
728
|
const contents = (0, import_smithy_client.map)({
|
|
817
729
|
$metadata: deserializeMetadata(output)
|
|
@@ -823,31 +735,9 @@ var de_DeleteTrustAnchorCommand = /* @__PURE__ */ __name(async (output, context)
|
|
|
823
735
|
Object.assign(contents, doc);
|
|
824
736
|
return contents;
|
|
825
737
|
}, "de_DeleteTrustAnchorCommand");
|
|
826
|
-
var de_DeleteTrustAnchorCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
827
|
-
const parsedOutput = {
|
|
828
|
-
...output,
|
|
829
|
-
body: await parseErrorBody(output.body, context)
|
|
830
|
-
};
|
|
831
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
832
|
-
switch (errorCode) {
|
|
833
|
-
case "AccessDeniedException":
|
|
834
|
-
case "com.amazonaws.rolesanywhere#AccessDeniedException":
|
|
835
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
836
|
-
case "ResourceNotFoundException":
|
|
837
|
-
case "com.amazonaws.rolesanywhere#ResourceNotFoundException":
|
|
838
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
839
|
-
default:
|
|
840
|
-
const parsedBody = parsedOutput.body;
|
|
841
|
-
return throwDefaultError({
|
|
842
|
-
output,
|
|
843
|
-
parsedBody,
|
|
844
|
-
errorCode
|
|
845
|
-
});
|
|
846
|
-
}
|
|
847
|
-
}, "de_DeleteTrustAnchorCommandError");
|
|
848
738
|
var de_DisableCrlCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
849
739
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
850
|
-
return
|
|
740
|
+
return de_CommandError(output, context);
|
|
851
741
|
}
|
|
852
742
|
const contents = (0, import_smithy_client.map)({
|
|
853
743
|
$metadata: deserializeMetadata(output)
|
|
@@ -859,31 +749,9 @@ var de_DisableCrlCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
859
749
|
Object.assign(contents, doc);
|
|
860
750
|
return contents;
|
|
861
751
|
}, "de_DisableCrlCommand");
|
|
862
|
-
var de_DisableCrlCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
863
|
-
const parsedOutput = {
|
|
864
|
-
...output,
|
|
865
|
-
body: await parseErrorBody(output.body, context)
|
|
866
|
-
};
|
|
867
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
868
|
-
switch (errorCode) {
|
|
869
|
-
case "AccessDeniedException":
|
|
870
|
-
case "com.amazonaws.rolesanywhere#AccessDeniedException":
|
|
871
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
872
|
-
case "ResourceNotFoundException":
|
|
873
|
-
case "com.amazonaws.rolesanywhere#ResourceNotFoundException":
|
|
874
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
875
|
-
default:
|
|
876
|
-
const parsedBody = parsedOutput.body;
|
|
877
|
-
return throwDefaultError({
|
|
878
|
-
output,
|
|
879
|
-
parsedBody,
|
|
880
|
-
errorCode
|
|
881
|
-
});
|
|
882
|
-
}
|
|
883
|
-
}, "de_DisableCrlCommandError");
|
|
884
752
|
var de_DisableProfileCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
885
753
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
886
|
-
return
|
|
754
|
+
return de_CommandError(output, context);
|
|
887
755
|
}
|
|
888
756
|
const contents = (0, import_smithy_client.map)({
|
|
889
757
|
$metadata: deserializeMetadata(output)
|
|
@@ -895,31 +763,9 @@ var de_DisableProfileCommand = /* @__PURE__ */ __name(async (output, context) =>
|
|
|
895
763
|
Object.assign(contents, doc);
|
|
896
764
|
return contents;
|
|
897
765
|
}, "de_DisableProfileCommand");
|
|
898
|
-
var de_DisableProfileCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
899
|
-
const parsedOutput = {
|
|
900
|
-
...output,
|
|
901
|
-
body: await parseErrorBody(output.body, context)
|
|
902
|
-
};
|
|
903
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
904
|
-
switch (errorCode) {
|
|
905
|
-
case "AccessDeniedException":
|
|
906
|
-
case "com.amazonaws.rolesanywhere#AccessDeniedException":
|
|
907
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
908
|
-
case "ResourceNotFoundException":
|
|
909
|
-
case "com.amazonaws.rolesanywhere#ResourceNotFoundException":
|
|
910
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
911
|
-
default:
|
|
912
|
-
const parsedBody = parsedOutput.body;
|
|
913
|
-
return throwDefaultError({
|
|
914
|
-
output,
|
|
915
|
-
parsedBody,
|
|
916
|
-
errorCode
|
|
917
|
-
});
|
|
918
|
-
}
|
|
919
|
-
}, "de_DisableProfileCommandError");
|
|
920
766
|
var de_DisableTrustAnchorCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
921
767
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
922
|
-
return
|
|
768
|
+
return de_CommandError(output, context);
|
|
923
769
|
}
|
|
924
770
|
const contents = (0, import_smithy_client.map)({
|
|
925
771
|
$metadata: deserializeMetadata(output)
|
|
@@ -931,31 +777,9 @@ var de_DisableTrustAnchorCommand = /* @__PURE__ */ __name(async (output, context
|
|
|
931
777
|
Object.assign(contents, doc);
|
|
932
778
|
return contents;
|
|
933
779
|
}, "de_DisableTrustAnchorCommand");
|
|
934
|
-
var de_DisableTrustAnchorCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
935
|
-
const parsedOutput = {
|
|
936
|
-
...output,
|
|
937
|
-
body: await parseErrorBody(output.body, context)
|
|
938
|
-
};
|
|
939
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
940
|
-
switch (errorCode) {
|
|
941
|
-
case "AccessDeniedException":
|
|
942
|
-
case "com.amazonaws.rolesanywhere#AccessDeniedException":
|
|
943
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
944
|
-
case "ResourceNotFoundException":
|
|
945
|
-
case "com.amazonaws.rolesanywhere#ResourceNotFoundException":
|
|
946
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
947
|
-
default:
|
|
948
|
-
const parsedBody = parsedOutput.body;
|
|
949
|
-
return throwDefaultError({
|
|
950
|
-
output,
|
|
951
|
-
parsedBody,
|
|
952
|
-
errorCode
|
|
953
|
-
});
|
|
954
|
-
}
|
|
955
|
-
}, "de_DisableTrustAnchorCommandError");
|
|
956
780
|
var de_EnableCrlCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
957
781
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
958
|
-
return
|
|
782
|
+
return de_CommandError(output, context);
|
|
959
783
|
}
|
|
960
784
|
const contents = (0, import_smithy_client.map)({
|
|
961
785
|
$metadata: deserializeMetadata(output)
|
|
@@ -967,31 +791,9 @@ var de_EnableCrlCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
967
791
|
Object.assign(contents, doc);
|
|
968
792
|
return contents;
|
|
969
793
|
}, "de_EnableCrlCommand");
|
|
970
|
-
var de_EnableCrlCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
971
|
-
const parsedOutput = {
|
|
972
|
-
...output,
|
|
973
|
-
body: await parseErrorBody(output.body, context)
|
|
974
|
-
};
|
|
975
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
976
|
-
switch (errorCode) {
|
|
977
|
-
case "AccessDeniedException":
|
|
978
|
-
case "com.amazonaws.rolesanywhere#AccessDeniedException":
|
|
979
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
980
|
-
case "ResourceNotFoundException":
|
|
981
|
-
case "com.amazonaws.rolesanywhere#ResourceNotFoundException":
|
|
982
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
983
|
-
default:
|
|
984
|
-
const parsedBody = parsedOutput.body;
|
|
985
|
-
return throwDefaultError({
|
|
986
|
-
output,
|
|
987
|
-
parsedBody,
|
|
988
|
-
errorCode
|
|
989
|
-
});
|
|
990
|
-
}
|
|
991
|
-
}, "de_EnableCrlCommandError");
|
|
992
794
|
var de_EnableProfileCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
993
795
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
994
|
-
return
|
|
796
|
+
return de_CommandError(output, context);
|
|
995
797
|
}
|
|
996
798
|
const contents = (0, import_smithy_client.map)({
|
|
997
799
|
$metadata: deserializeMetadata(output)
|
|
@@ -1003,31 +805,9 @@ var de_EnableProfileCommand = /* @__PURE__ */ __name(async (output, context) =>
|
|
|
1003
805
|
Object.assign(contents, doc);
|
|
1004
806
|
return contents;
|
|
1005
807
|
}, "de_EnableProfileCommand");
|
|
1006
|
-
var de_EnableProfileCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1007
|
-
const parsedOutput = {
|
|
1008
|
-
...output,
|
|
1009
|
-
body: await parseErrorBody(output.body, context)
|
|
1010
|
-
};
|
|
1011
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1012
|
-
switch (errorCode) {
|
|
1013
|
-
case "AccessDeniedException":
|
|
1014
|
-
case "com.amazonaws.rolesanywhere#AccessDeniedException":
|
|
1015
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1016
|
-
case "ResourceNotFoundException":
|
|
1017
|
-
case "com.amazonaws.rolesanywhere#ResourceNotFoundException":
|
|
1018
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1019
|
-
default:
|
|
1020
|
-
const parsedBody = parsedOutput.body;
|
|
1021
|
-
return throwDefaultError({
|
|
1022
|
-
output,
|
|
1023
|
-
parsedBody,
|
|
1024
|
-
errorCode
|
|
1025
|
-
});
|
|
1026
|
-
}
|
|
1027
|
-
}, "de_EnableProfileCommandError");
|
|
1028
808
|
var de_EnableTrustAnchorCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1029
809
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1030
|
-
return
|
|
810
|
+
return de_CommandError(output, context);
|
|
1031
811
|
}
|
|
1032
812
|
const contents = (0, import_smithy_client.map)({
|
|
1033
813
|
$metadata: deserializeMetadata(output)
|
|
@@ -1039,31 +819,9 @@ var de_EnableTrustAnchorCommand = /* @__PURE__ */ __name(async (output, context)
|
|
|
1039
819
|
Object.assign(contents, doc);
|
|
1040
820
|
return contents;
|
|
1041
821
|
}, "de_EnableTrustAnchorCommand");
|
|
1042
|
-
var de_EnableTrustAnchorCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1043
|
-
const parsedOutput = {
|
|
1044
|
-
...output,
|
|
1045
|
-
body: await parseErrorBody(output.body, context)
|
|
1046
|
-
};
|
|
1047
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1048
|
-
switch (errorCode) {
|
|
1049
|
-
case "AccessDeniedException":
|
|
1050
|
-
case "com.amazonaws.rolesanywhere#AccessDeniedException":
|
|
1051
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1052
|
-
case "ResourceNotFoundException":
|
|
1053
|
-
case "com.amazonaws.rolesanywhere#ResourceNotFoundException":
|
|
1054
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1055
|
-
default:
|
|
1056
|
-
const parsedBody = parsedOutput.body;
|
|
1057
|
-
return throwDefaultError({
|
|
1058
|
-
output,
|
|
1059
|
-
parsedBody,
|
|
1060
|
-
errorCode
|
|
1061
|
-
});
|
|
1062
|
-
}
|
|
1063
|
-
}, "de_EnableTrustAnchorCommandError");
|
|
1064
822
|
var de_GetCrlCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1065
823
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1066
|
-
return
|
|
824
|
+
return de_CommandError(output, context);
|
|
1067
825
|
}
|
|
1068
826
|
const contents = (0, import_smithy_client.map)({
|
|
1069
827
|
$metadata: deserializeMetadata(output)
|
|
@@ -1075,28 +833,9 @@ var de_GetCrlCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
1075
833
|
Object.assign(contents, doc);
|
|
1076
834
|
return contents;
|
|
1077
835
|
}, "de_GetCrlCommand");
|
|
1078
|
-
var de_GetCrlCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1079
|
-
const parsedOutput = {
|
|
1080
|
-
...output,
|
|
1081
|
-
body: await parseErrorBody(output.body, context)
|
|
1082
|
-
};
|
|
1083
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1084
|
-
switch (errorCode) {
|
|
1085
|
-
case "ResourceNotFoundException":
|
|
1086
|
-
case "com.amazonaws.rolesanywhere#ResourceNotFoundException":
|
|
1087
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1088
|
-
default:
|
|
1089
|
-
const parsedBody = parsedOutput.body;
|
|
1090
|
-
return throwDefaultError({
|
|
1091
|
-
output,
|
|
1092
|
-
parsedBody,
|
|
1093
|
-
errorCode
|
|
1094
|
-
});
|
|
1095
|
-
}
|
|
1096
|
-
}, "de_GetCrlCommandError");
|
|
1097
836
|
var de_GetProfileCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1098
837
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1099
|
-
return
|
|
838
|
+
return de_CommandError(output, context);
|
|
1100
839
|
}
|
|
1101
840
|
const contents = (0, import_smithy_client.map)({
|
|
1102
841
|
$metadata: deserializeMetadata(output)
|
|
@@ -1108,31 +847,9 @@ var de_GetProfileCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
1108
847
|
Object.assign(contents, doc);
|
|
1109
848
|
return contents;
|
|
1110
849
|
}, "de_GetProfileCommand");
|
|
1111
|
-
var de_GetProfileCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1112
|
-
const parsedOutput = {
|
|
1113
|
-
...output,
|
|
1114
|
-
body: await parseErrorBody(output.body, context)
|
|
1115
|
-
};
|
|
1116
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1117
|
-
switch (errorCode) {
|
|
1118
|
-
case "AccessDeniedException":
|
|
1119
|
-
case "com.amazonaws.rolesanywhere#AccessDeniedException":
|
|
1120
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1121
|
-
case "ResourceNotFoundException":
|
|
1122
|
-
case "com.amazonaws.rolesanywhere#ResourceNotFoundException":
|
|
1123
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1124
|
-
default:
|
|
1125
|
-
const parsedBody = parsedOutput.body;
|
|
1126
|
-
return throwDefaultError({
|
|
1127
|
-
output,
|
|
1128
|
-
parsedBody,
|
|
1129
|
-
errorCode
|
|
1130
|
-
});
|
|
1131
|
-
}
|
|
1132
|
-
}, "de_GetProfileCommandError");
|
|
1133
850
|
var de_GetSubjectCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1134
851
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1135
|
-
return
|
|
852
|
+
return de_CommandError(output, context);
|
|
1136
853
|
}
|
|
1137
854
|
const contents = (0, import_smithy_client.map)({
|
|
1138
855
|
$metadata: deserializeMetadata(output)
|
|
@@ -1144,31 +861,9 @@ var de_GetSubjectCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
1144
861
|
Object.assign(contents, doc);
|
|
1145
862
|
return contents;
|
|
1146
863
|
}, "de_GetSubjectCommand");
|
|
1147
|
-
var de_GetSubjectCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1148
|
-
const parsedOutput = {
|
|
1149
|
-
...output,
|
|
1150
|
-
body: await parseErrorBody(output.body, context)
|
|
1151
|
-
};
|
|
1152
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1153
|
-
switch (errorCode) {
|
|
1154
|
-
case "AccessDeniedException":
|
|
1155
|
-
case "com.amazonaws.rolesanywhere#AccessDeniedException":
|
|
1156
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1157
|
-
case "ResourceNotFoundException":
|
|
1158
|
-
case "com.amazonaws.rolesanywhere#ResourceNotFoundException":
|
|
1159
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1160
|
-
default:
|
|
1161
|
-
const parsedBody = parsedOutput.body;
|
|
1162
|
-
return throwDefaultError({
|
|
1163
|
-
output,
|
|
1164
|
-
parsedBody,
|
|
1165
|
-
errorCode
|
|
1166
|
-
});
|
|
1167
|
-
}
|
|
1168
|
-
}, "de_GetSubjectCommandError");
|
|
1169
864
|
var de_GetTrustAnchorCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1170
865
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1171
|
-
return
|
|
866
|
+
return de_CommandError(output, context);
|
|
1172
867
|
}
|
|
1173
868
|
const contents = (0, import_smithy_client.map)({
|
|
1174
869
|
$metadata: deserializeMetadata(output)
|
|
@@ -1180,34 +875,9 @@ var de_GetTrustAnchorCommand = /* @__PURE__ */ __name(async (output, context) =>
|
|
|
1180
875
|
Object.assign(contents, doc);
|
|
1181
876
|
return contents;
|
|
1182
877
|
}, "de_GetTrustAnchorCommand");
|
|
1183
|
-
var de_GetTrustAnchorCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1184
|
-
const parsedOutput = {
|
|
1185
|
-
...output,
|
|
1186
|
-
body: await parseErrorBody(output.body, context)
|
|
1187
|
-
};
|
|
1188
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1189
|
-
switch (errorCode) {
|
|
1190
|
-
case "AccessDeniedException":
|
|
1191
|
-
case "com.amazonaws.rolesanywhere#AccessDeniedException":
|
|
1192
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1193
|
-
case "ResourceNotFoundException":
|
|
1194
|
-
case "com.amazonaws.rolesanywhere#ResourceNotFoundException":
|
|
1195
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1196
|
-
case "ValidationException":
|
|
1197
|
-
case "com.amazonaws.rolesanywhere#ValidationException":
|
|
1198
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1199
|
-
default:
|
|
1200
|
-
const parsedBody = parsedOutput.body;
|
|
1201
|
-
return throwDefaultError({
|
|
1202
|
-
output,
|
|
1203
|
-
parsedBody,
|
|
1204
|
-
errorCode
|
|
1205
|
-
});
|
|
1206
|
-
}
|
|
1207
|
-
}, "de_GetTrustAnchorCommandError");
|
|
1208
878
|
var de_ImportCrlCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1209
879
|
if (output.statusCode !== 201 && output.statusCode >= 300) {
|
|
1210
|
-
return
|
|
880
|
+
return de_CommandError(output, context);
|
|
1211
881
|
}
|
|
1212
882
|
const contents = (0, import_smithy_client.map)({
|
|
1213
883
|
$metadata: deserializeMetadata(output)
|
|
@@ -1216,34 +886,12 @@ var de_ImportCrlCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
1216
886
|
const doc = (0, import_smithy_client.take)(data, {
|
|
1217
887
|
crl: (_) => de_CrlDetail(_, context)
|
|
1218
888
|
});
|
|
1219
|
-
Object.assign(contents, doc);
|
|
1220
|
-
return contents;
|
|
1221
|
-
}, "de_ImportCrlCommand");
|
|
1222
|
-
var de_ImportCrlCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1223
|
-
const parsedOutput = {
|
|
1224
|
-
...output,
|
|
1225
|
-
body: await parseErrorBody(output.body, context)
|
|
1226
|
-
};
|
|
1227
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1228
|
-
switch (errorCode) {
|
|
1229
|
-
case "AccessDeniedException":
|
|
1230
|
-
case "com.amazonaws.rolesanywhere#AccessDeniedException":
|
|
1231
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1232
|
-
case "ValidationException":
|
|
1233
|
-
case "com.amazonaws.rolesanywhere#ValidationException":
|
|
1234
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1235
|
-
default:
|
|
1236
|
-
const parsedBody = parsedOutput.body;
|
|
1237
|
-
return throwDefaultError({
|
|
1238
|
-
output,
|
|
1239
|
-
parsedBody,
|
|
1240
|
-
errorCode
|
|
1241
|
-
});
|
|
1242
|
-
}
|
|
1243
|
-
}, "de_ImportCrlCommandError");
|
|
889
|
+
Object.assign(contents, doc);
|
|
890
|
+
return contents;
|
|
891
|
+
}, "de_ImportCrlCommand");
|
|
1244
892
|
var de_ListCrlsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1245
893
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1246
|
-
return
|
|
894
|
+
return de_CommandError(output, context);
|
|
1247
895
|
}
|
|
1248
896
|
const contents = (0, import_smithy_client.map)({
|
|
1249
897
|
$metadata: deserializeMetadata(output)
|
|
@@ -1256,31 +904,9 @@ var de_ListCrlsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
1256
904
|
Object.assign(contents, doc);
|
|
1257
905
|
return contents;
|
|
1258
906
|
}, "de_ListCrlsCommand");
|
|
1259
|
-
var de_ListCrlsCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1260
|
-
const parsedOutput = {
|
|
1261
|
-
...output,
|
|
1262
|
-
body: await parseErrorBody(output.body, context)
|
|
1263
|
-
};
|
|
1264
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1265
|
-
switch (errorCode) {
|
|
1266
|
-
case "AccessDeniedException":
|
|
1267
|
-
case "com.amazonaws.rolesanywhere#AccessDeniedException":
|
|
1268
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1269
|
-
case "ValidationException":
|
|
1270
|
-
case "com.amazonaws.rolesanywhere#ValidationException":
|
|
1271
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1272
|
-
default:
|
|
1273
|
-
const parsedBody = parsedOutput.body;
|
|
1274
|
-
return throwDefaultError({
|
|
1275
|
-
output,
|
|
1276
|
-
parsedBody,
|
|
1277
|
-
errorCode
|
|
1278
|
-
});
|
|
1279
|
-
}
|
|
1280
|
-
}, "de_ListCrlsCommandError");
|
|
1281
907
|
var de_ListProfilesCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1282
908
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1283
|
-
return
|
|
909
|
+
return de_CommandError(output, context);
|
|
1284
910
|
}
|
|
1285
911
|
const contents = (0, import_smithy_client.map)({
|
|
1286
912
|
$metadata: deserializeMetadata(output)
|
|
@@ -1293,31 +919,9 @@ var de_ListProfilesCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
1293
919
|
Object.assign(contents, doc);
|
|
1294
920
|
return contents;
|
|
1295
921
|
}, "de_ListProfilesCommand");
|
|
1296
|
-
var de_ListProfilesCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1297
|
-
const parsedOutput = {
|
|
1298
|
-
...output,
|
|
1299
|
-
body: await parseErrorBody(output.body, context)
|
|
1300
|
-
};
|
|
1301
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1302
|
-
switch (errorCode) {
|
|
1303
|
-
case "AccessDeniedException":
|
|
1304
|
-
case "com.amazonaws.rolesanywhere#AccessDeniedException":
|
|
1305
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1306
|
-
case "ValidationException":
|
|
1307
|
-
case "com.amazonaws.rolesanywhere#ValidationException":
|
|
1308
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1309
|
-
default:
|
|
1310
|
-
const parsedBody = parsedOutput.body;
|
|
1311
|
-
return throwDefaultError({
|
|
1312
|
-
output,
|
|
1313
|
-
parsedBody,
|
|
1314
|
-
errorCode
|
|
1315
|
-
});
|
|
1316
|
-
}
|
|
1317
|
-
}, "de_ListProfilesCommandError");
|
|
1318
922
|
var de_ListSubjectsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1319
923
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1320
|
-
return
|
|
924
|
+
return de_CommandError(output, context);
|
|
1321
925
|
}
|
|
1322
926
|
const contents = (0, import_smithy_client.map)({
|
|
1323
927
|
$metadata: deserializeMetadata(output)
|
|
@@ -1330,31 +934,9 @@ var de_ListSubjectsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
1330
934
|
Object.assign(contents, doc);
|
|
1331
935
|
return contents;
|
|
1332
936
|
}, "de_ListSubjectsCommand");
|
|
1333
|
-
var de_ListSubjectsCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1334
|
-
const parsedOutput = {
|
|
1335
|
-
...output,
|
|
1336
|
-
body: await parseErrorBody(output.body, context)
|
|
1337
|
-
};
|
|
1338
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1339
|
-
switch (errorCode) {
|
|
1340
|
-
case "AccessDeniedException":
|
|
1341
|
-
case "com.amazonaws.rolesanywhere#AccessDeniedException":
|
|
1342
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1343
|
-
case "ValidationException":
|
|
1344
|
-
case "com.amazonaws.rolesanywhere#ValidationException":
|
|
1345
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1346
|
-
default:
|
|
1347
|
-
const parsedBody = parsedOutput.body;
|
|
1348
|
-
return throwDefaultError({
|
|
1349
|
-
output,
|
|
1350
|
-
parsedBody,
|
|
1351
|
-
errorCode
|
|
1352
|
-
});
|
|
1353
|
-
}
|
|
1354
|
-
}, "de_ListSubjectsCommandError");
|
|
1355
937
|
var de_ListTagsForResourceCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1356
938
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1357
|
-
return
|
|
939
|
+
return de_CommandError(output, context);
|
|
1358
940
|
}
|
|
1359
941
|
const contents = (0, import_smithy_client.map)({
|
|
1360
942
|
$metadata: deserializeMetadata(output)
|
|
@@ -1366,34 +948,9 @@ var de_ListTagsForResourceCommand = /* @__PURE__ */ __name(async (output, contex
|
|
|
1366
948
|
Object.assign(contents, doc);
|
|
1367
949
|
return contents;
|
|
1368
950
|
}, "de_ListTagsForResourceCommand");
|
|
1369
|
-
var de_ListTagsForResourceCommandError = /* @__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 "AccessDeniedException":
|
|
1377
|
-
case "com.amazonaws.rolesanywhere#AccessDeniedException":
|
|
1378
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1379
|
-
case "ResourceNotFoundException":
|
|
1380
|
-
case "com.amazonaws.rolesanywhere#ResourceNotFoundException":
|
|
1381
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1382
|
-
case "ValidationException":
|
|
1383
|
-
case "com.amazonaws.rolesanywhere#ValidationException":
|
|
1384
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1385
|
-
default:
|
|
1386
|
-
const parsedBody = parsedOutput.body;
|
|
1387
|
-
return throwDefaultError({
|
|
1388
|
-
output,
|
|
1389
|
-
parsedBody,
|
|
1390
|
-
errorCode
|
|
1391
|
-
});
|
|
1392
|
-
}
|
|
1393
|
-
}, "de_ListTagsForResourceCommandError");
|
|
1394
951
|
var de_ListTrustAnchorsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1395
952
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1396
|
-
return
|
|
953
|
+
return de_CommandError(output, context);
|
|
1397
954
|
}
|
|
1398
955
|
const contents = (0, import_smithy_client.map)({
|
|
1399
956
|
$metadata: deserializeMetadata(output)
|
|
@@ -1406,31 +963,9 @@ var de_ListTrustAnchorsCommand = /* @__PURE__ */ __name(async (output, context)
|
|
|
1406
963
|
Object.assign(contents, doc);
|
|
1407
964
|
return contents;
|
|
1408
965
|
}, "de_ListTrustAnchorsCommand");
|
|
1409
|
-
var de_ListTrustAnchorsCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1410
|
-
const parsedOutput = {
|
|
1411
|
-
...output,
|
|
1412
|
-
body: await parseErrorBody(output.body, context)
|
|
1413
|
-
};
|
|
1414
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1415
|
-
switch (errorCode) {
|
|
1416
|
-
case "AccessDeniedException":
|
|
1417
|
-
case "com.amazonaws.rolesanywhere#AccessDeniedException":
|
|
1418
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1419
|
-
case "ValidationException":
|
|
1420
|
-
case "com.amazonaws.rolesanywhere#ValidationException":
|
|
1421
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1422
|
-
default:
|
|
1423
|
-
const parsedBody = parsedOutput.body;
|
|
1424
|
-
return throwDefaultError({
|
|
1425
|
-
output,
|
|
1426
|
-
parsedBody,
|
|
1427
|
-
errorCode
|
|
1428
|
-
});
|
|
1429
|
-
}
|
|
1430
|
-
}, "de_ListTrustAnchorsCommandError");
|
|
1431
966
|
var de_PutNotificationSettingsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1432
967
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1433
|
-
return
|
|
968
|
+
return de_CommandError(output, context);
|
|
1434
969
|
}
|
|
1435
970
|
const contents = (0, import_smithy_client.map)({
|
|
1436
971
|
$metadata: deserializeMetadata(output)
|
|
@@ -1442,34 +977,9 @@ var de_PutNotificationSettingsCommand = /* @__PURE__ */ __name(async (output, co
|
|
|
1442
977
|
Object.assign(contents, doc);
|
|
1443
978
|
return contents;
|
|
1444
979
|
}, "de_PutNotificationSettingsCommand");
|
|
1445
|
-
var de_PutNotificationSettingsCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1446
|
-
const parsedOutput = {
|
|
1447
|
-
...output,
|
|
1448
|
-
body: await parseErrorBody(output.body, context)
|
|
1449
|
-
};
|
|
1450
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1451
|
-
switch (errorCode) {
|
|
1452
|
-
case "AccessDeniedException":
|
|
1453
|
-
case "com.amazonaws.rolesanywhere#AccessDeniedException":
|
|
1454
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1455
|
-
case "ResourceNotFoundException":
|
|
1456
|
-
case "com.amazonaws.rolesanywhere#ResourceNotFoundException":
|
|
1457
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1458
|
-
case "ValidationException":
|
|
1459
|
-
case "com.amazonaws.rolesanywhere#ValidationException":
|
|
1460
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1461
|
-
default:
|
|
1462
|
-
const parsedBody = parsedOutput.body;
|
|
1463
|
-
return throwDefaultError({
|
|
1464
|
-
output,
|
|
1465
|
-
parsedBody,
|
|
1466
|
-
errorCode
|
|
1467
|
-
});
|
|
1468
|
-
}
|
|
1469
|
-
}, "de_PutNotificationSettingsCommandError");
|
|
1470
980
|
var de_ResetNotificationSettingsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1471
981
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1472
|
-
return
|
|
982
|
+
return de_CommandError(output, context);
|
|
1473
983
|
}
|
|
1474
984
|
const contents = (0, import_smithy_client.map)({
|
|
1475
985
|
$metadata: deserializeMetadata(output)
|
|
@@ -1481,34 +991,9 @@ var de_ResetNotificationSettingsCommand = /* @__PURE__ */ __name(async (output,
|
|
|
1481
991
|
Object.assign(contents, doc);
|
|
1482
992
|
return contents;
|
|
1483
993
|
}, "de_ResetNotificationSettingsCommand");
|
|
1484
|
-
var de_ResetNotificationSettingsCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1485
|
-
const parsedOutput = {
|
|
1486
|
-
...output,
|
|
1487
|
-
body: await parseErrorBody(output.body, context)
|
|
1488
|
-
};
|
|
1489
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1490
|
-
switch (errorCode) {
|
|
1491
|
-
case "AccessDeniedException":
|
|
1492
|
-
case "com.amazonaws.rolesanywhere#AccessDeniedException":
|
|
1493
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1494
|
-
case "ResourceNotFoundException":
|
|
1495
|
-
case "com.amazonaws.rolesanywhere#ResourceNotFoundException":
|
|
1496
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1497
|
-
case "ValidationException":
|
|
1498
|
-
case "com.amazonaws.rolesanywhere#ValidationException":
|
|
1499
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1500
|
-
default:
|
|
1501
|
-
const parsedBody = parsedOutput.body;
|
|
1502
|
-
return throwDefaultError({
|
|
1503
|
-
output,
|
|
1504
|
-
parsedBody,
|
|
1505
|
-
errorCode
|
|
1506
|
-
});
|
|
1507
|
-
}
|
|
1508
|
-
}, "de_ResetNotificationSettingsCommandError");
|
|
1509
994
|
var de_TagResourceCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1510
995
|
if (output.statusCode !== 201 && output.statusCode >= 300) {
|
|
1511
|
-
return
|
|
996
|
+
return de_CommandError(output, context);
|
|
1512
997
|
}
|
|
1513
998
|
const contents = (0, import_smithy_client.map)({
|
|
1514
999
|
$metadata: deserializeMetadata(output)
|
|
@@ -1516,37 +1001,9 @@ var de_TagResourceCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
1516
1001
|
await (0, import_smithy_client.collectBody)(output.body, context);
|
|
1517
1002
|
return contents;
|
|
1518
1003
|
}, "de_TagResourceCommand");
|
|
1519
|
-
var de_TagResourceCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1520
|
-
const parsedOutput = {
|
|
1521
|
-
...output,
|
|
1522
|
-
body: await parseErrorBody(output.body, context)
|
|
1523
|
-
};
|
|
1524
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1525
|
-
switch (errorCode) {
|
|
1526
|
-
case "AccessDeniedException":
|
|
1527
|
-
case "com.amazonaws.rolesanywhere#AccessDeniedException":
|
|
1528
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1529
|
-
case "ResourceNotFoundException":
|
|
1530
|
-
case "com.amazonaws.rolesanywhere#ResourceNotFoundException":
|
|
1531
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1532
|
-
case "TooManyTagsException":
|
|
1533
|
-
case "com.amazonaws.rolesanywhere#TooManyTagsException":
|
|
1534
|
-
throw await de_TooManyTagsExceptionRes(parsedOutput, context);
|
|
1535
|
-
case "ValidationException":
|
|
1536
|
-
case "com.amazonaws.rolesanywhere#ValidationException":
|
|
1537
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1538
|
-
default:
|
|
1539
|
-
const parsedBody = parsedOutput.body;
|
|
1540
|
-
return throwDefaultError({
|
|
1541
|
-
output,
|
|
1542
|
-
parsedBody,
|
|
1543
|
-
errorCode
|
|
1544
|
-
});
|
|
1545
|
-
}
|
|
1546
|
-
}, "de_TagResourceCommandError");
|
|
1547
1004
|
var de_UntagResourceCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1548
1005
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1549
|
-
return
|
|
1006
|
+
return de_CommandError(output, context);
|
|
1550
1007
|
}
|
|
1551
1008
|
const contents = (0, import_smithy_client.map)({
|
|
1552
1009
|
$metadata: deserializeMetadata(output)
|
|
@@ -1554,34 +1011,9 @@ var de_UntagResourceCommand = /* @__PURE__ */ __name(async (output, context) =>
|
|
|
1554
1011
|
await (0, import_smithy_client.collectBody)(output.body, context);
|
|
1555
1012
|
return contents;
|
|
1556
1013
|
}, "de_UntagResourceCommand");
|
|
1557
|
-
var de_UntagResourceCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1558
|
-
const parsedOutput = {
|
|
1559
|
-
...output,
|
|
1560
|
-
body: await parseErrorBody(output.body, context)
|
|
1561
|
-
};
|
|
1562
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1563
|
-
switch (errorCode) {
|
|
1564
|
-
case "AccessDeniedException":
|
|
1565
|
-
case "com.amazonaws.rolesanywhere#AccessDeniedException":
|
|
1566
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1567
|
-
case "ResourceNotFoundException":
|
|
1568
|
-
case "com.amazonaws.rolesanywhere#ResourceNotFoundException":
|
|
1569
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1570
|
-
case "ValidationException":
|
|
1571
|
-
case "com.amazonaws.rolesanywhere#ValidationException":
|
|
1572
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1573
|
-
default:
|
|
1574
|
-
const parsedBody = parsedOutput.body;
|
|
1575
|
-
return throwDefaultError({
|
|
1576
|
-
output,
|
|
1577
|
-
parsedBody,
|
|
1578
|
-
errorCode
|
|
1579
|
-
});
|
|
1580
|
-
}
|
|
1581
|
-
}, "de_UntagResourceCommandError");
|
|
1582
1014
|
var de_UpdateCrlCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1583
1015
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1584
|
-
return
|
|
1016
|
+
return de_CommandError(output, context);
|
|
1585
1017
|
}
|
|
1586
1018
|
const contents = (0, import_smithy_client.map)({
|
|
1587
1019
|
$metadata: deserializeMetadata(output)
|
|
@@ -1593,34 +1025,9 @@ var de_UpdateCrlCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
1593
1025
|
Object.assign(contents, doc);
|
|
1594
1026
|
return contents;
|
|
1595
1027
|
}, "de_UpdateCrlCommand");
|
|
1596
|
-
var de_UpdateCrlCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1597
|
-
const parsedOutput = {
|
|
1598
|
-
...output,
|
|
1599
|
-
body: await parseErrorBody(output.body, context)
|
|
1600
|
-
};
|
|
1601
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1602
|
-
switch (errorCode) {
|
|
1603
|
-
case "AccessDeniedException":
|
|
1604
|
-
case "com.amazonaws.rolesanywhere#AccessDeniedException":
|
|
1605
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1606
|
-
case "ResourceNotFoundException":
|
|
1607
|
-
case "com.amazonaws.rolesanywhere#ResourceNotFoundException":
|
|
1608
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1609
|
-
case "ValidationException":
|
|
1610
|
-
case "com.amazonaws.rolesanywhere#ValidationException":
|
|
1611
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1612
|
-
default:
|
|
1613
|
-
const parsedBody = parsedOutput.body;
|
|
1614
|
-
return throwDefaultError({
|
|
1615
|
-
output,
|
|
1616
|
-
parsedBody,
|
|
1617
|
-
errorCode
|
|
1618
|
-
});
|
|
1619
|
-
}
|
|
1620
|
-
}, "de_UpdateCrlCommandError");
|
|
1621
1028
|
var de_UpdateProfileCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1622
1029
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1623
|
-
return
|
|
1030
|
+
return de_CommandError(output, context);
|
|
1624
1031
|
}
|
|
1625
1032
|
const contents = (0, import_smithy_client.map)({
|
|
1626
1033
|
$metadata: deserializeMetadata(output)
|
|
@@ -1632,34 +1039,9 @@ var de_UpdateProfileCommand = /* @__PURE__ */ __name(async (output, context) =>
|
|
|
1632
1039
|
Object.assign(contents, doc);
|
|
1633
1040
|
return contents;
|
|
1634
1041
|
}, "de_UpdateProfileCommand");
|
|
1635
|
-
var de_UpdateProfileCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1636
|
-
const parsedOutput = {
|
|
1637
|
-
...output,
|
|
1638
|
-
body: await parseErrorBody(output.body, context)
|
|
1639
|
-
};
|
|
1640
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1641
|
-
switch (errorCode) {
|
|
1642
|
-
case "AccessDeniedException":
|
|
1643
|
-
case "com.amazonaws.rolesanywhere#AccessDeniedException":
|
|
1644
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1645
|
-
case "ResourceNotFoundException":
|
|
1646
|
-
case "com.amazonaws.rolesanywhere#ResourceNotFoundException":
|
|
1647
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1648
|
-
case "ValidationException":
|
|
1649
|
-
case "com.amazonaws.rolesanywhere#ValidationException":
|
|
1650
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1651
|
-
default:
|
|
1652
|
-
const parsedBody = parsedOutput.body;
|
|
1653
|
-
return throwDefaultError({
|
|
1654
|
-
output,
|
|
1655
|
-
parsedBody,
|
|
1656
|
-
errorCode
|
|
1657
|
-
});
|
|
1658
|
-
}
|
|
1659
|
-
}, "de_UpdateProfileCommandError");
|
|
1660
1042
|
var de_UpdateTrustAnchorCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1661
1043
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1662
|
-
return
|
|
1044
|
+
return de_CommandError(output, context);
|
|
1663
1045
|
}
|
|
1664
1046
|
const contents = (0, import_smithy_client.map)({
|
|
1665
1047
|
$metadata: deserializeMetadata(output)
|
|
@@ -1671,7 +1053,7 @@ var de_UpdateTrustAnchorCommand = /* @__PURE__ */ __name(async (output, context)
|
|
|
1671
1053
|
Object.assign(contents, doc);
|
|
1672
1054
|
return contents;
|
|
1673
1055
|
}, "de_UpdateTrustAnchorCommand");
|
|
1674
|
-
var
|
|
1056
|
+
var de_CommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1675
1057
|
const parsedOutput = {
|
|
1676
1058
|
...output,
|
|
1677
1059
|
body: await parseErrorBody(output.body, context)
|
|
@@ -1681,12 +1063,15 @@ var de_UpdateTrustAnchorCommandError = /* @__PURE__ */ __name(async (output, con
|
|
|
1681
1063
|
case "AccessDeniedException":
|
|
1682
1064
|
case "com.amazonaws.rolesanywhere#AccessDeniedException":
|
|
1683
1065
|
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1684
|
-
case "ResourceNotFoundException":
|
|
1685
|
-
case "com.amazonaws.rolesanywhere#ResourceNotFoundException":
|
|
1686
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1687
1066
|
case "ValidationException":
|
|
1688
1067
|
case "com.amazonaws.rolesanywhere#ValidationException":
|
|
1689
1068
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1069
|
+
case "ResourceNotFoundException":
|
|
1070
|
+
case "com.amazonaws.rolesanywhere#ResourceNotFoundException":
|
|
1071
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1072
|
+
case "TooManyTagsException":
|
|
1073
|
+
case "com.amazonaws.rolesanywhere#TooManyTagsException":
|
|
1074
|
+
throw await de_TooManyTagsExceptionRes(parsedOutput, context);
|
|
1690
1075
|
default:
|
|
1691
1076
|
const parsedBody = parsedOutput.body;
|
|
1692
1077
|
return throwDefaultError({
|
|
@@ -1695,7 +1080,7 @@ var de_UpdateTrustAnchorCommandError = /* @__PURE__ */ __name(async (output, con
|
|
|
1695
1080
|
errorCode
|
|
1696
1081
|
});
|
|
1697
1082
|
}
|
|
1698
|
-
}, "
|
|
1083
|
+
}, "de_CommandError");
|
|
1699
1084
|
var throwDefaultError = (0, import_smithy_client.withBaseException)(RolesAnywhereServiceException);
|
|
1700
1085
|
var de_AccessDeniedExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
|
|
1701
1086
|
const contents = (0, import_smithy_client.map)({});
|