@aws-sdk/client-signer 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 +45 -564
- package/dist-es/protocols/Aws_restJson1.js +44 -563
- package/package.json +3 -3
package/dist-cjs/index.js
CHANGED
|
@@ -700,7 +700,7 @@ var se_UntagResourceCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
|
700
700
|
}, "se_UntagResourceCommand");
|
|
701
701
|
var de_AddProfilePermissionCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
702
702
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
703
|
-
return
|
|
703
|
+
return de_CommandError(output, context);
|
|
704
704
|
}
|
|
705
705
|
const contents = (0, import_smithy_client.map)({
|
|
706
706
|
$metadata: deserializeMetadata(output)
|
|
@@ -712,46 +712,9 @@ var de_AddProfilePermissionCommand = /* @__PURE__ */ __name(async (output, conte
|
|
|
712
712
|
Object.assign(contents, doc);
|
|
713
713
|
return contents;
|
|
714
714
|
}, "de_AddProfilePermissionCommand");
|
|
715
|
-
var de_AddProfilePermissionCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
716
|
-
const parsedOutput = {
|
|
717
|
-
...output,
|
|
718
|
-
body: await parseErrorBody(output.body, context)
|
|
719
|
-
};
|
|
720
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
721
|
-
switch (errorCode) {
|
|
722
|
-
case "AccessDeniedException":
|
|
723
|
-
case "com.amazonaws.signer#AccessDeniedException":
|
|
724
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
725
|
-
case "ConflictException":
|
|
726
|
-
case "com.amazonaws.signer#ConflictException":
|
|
727
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
728
|
-
case "InternalServiceErrorException":
|
|
729
|
-
case "com.amazonaws.signer#InternalServiceErrorException":
|
|
730
|
-
throw await de_InternalServiceErrorExceptionRes(parsedOutput, context);
|
|
731
|
-
case "ResourceNotFoundException":
|
|
732
|
-
case "com.amazonaws.signer#ResourceNotFoundException":
|
|
733
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
734
|
-
case "ServiceLimitExceededException":
|
|
735
|
-
case "com.amazonaws.signer#ServiceLimitExceededException":
|
|
736
|
-
throw await de_ServiceLimitExceededExceptionRes(parsedOutput, context);
|
|
737
|
-
case "TooManyRequestsException":
|
|
738
|
-
case "com.amazonaws.signer#TooManyRequestsException":
|
|
739
|
-
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
740
|
-
case "ValidationException":
|
|
741
|
-
case "com.amazonaws.signer#ValidationException":
|
|
742
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
743
|
-
default:
|
|
744
|
-
const parsedBody = parsedOutput.body;
|
|
745
|
-
return throwDefaultError({
|
|
746
|
-
output,
|
|
747
|
-
parsedBody,
|
|
748
|
-
errorCode
|
|
749
|
-
});
|
|
750
|
-
}
|
|
751
|
-
}, "de_AddProfilePermissionCommandError");
|
|
752
715
|
var de_CancelSigningProfileCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
753
716
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
754
|
-
return
|
|
717
|
+
return de_CommandError(output, context);
|
|
755
718
|
}
|
|
756
719
|
const contents = (0, import_smithy_client.map)({
|
|
757
720
|
$metadata: deserializeMetadata(output)
|
|
@@ -759,37 +722,9 @@ var de_CancelSigningProfileCommand = /* @__PURE__ */ __name(async (output, conte
|
|
|
759
722
|
await (0, import_smithy_client.collectBody)(output.body, context);
|
|
760
723
|
return contents;
|
|
761
724
|
}, "de_CancelSigningProfileCommand");
|
|
762
|
-
var de_CancelSigningProfileCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
763
|
-
const parsedOutput = {
|
|
764
|
-
...output,
|
|
765
|
-
body: await parseErrorBody(output.body, context)
|
|
766
|
-
};
|
|
767
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
768
|
-
switch (errorCode) {
|
|
769
|
-
case "AccessDeniedException":
|
|
770
|
-
case "com.amazonaws.signer#AccessDeniedException":
|
|
771
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
772
|
-
case "InternalServiceErrorException":
|
|
773
|
-
case "com.amazonaws.signer#InternalServiceErrorException":
|
|
774
|
-
throw await de_InternalServiceErrorExceptionRes(parsedOutput, context);
|
|
775
|
-
case "ResourceNotFoundException":
|
|
776
|
-
case "com.amazonaws.signer#ResourceNotFoundException":
|
|
777
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
778
|
-
case "TooManyRequestsException":
|
|
779
|
-
case "com.amazonaws.signer#TooManyRequestsException":
|
|
780
|
-
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
781
|
-
default:
|
|
782
|
-
const parsedBody = parsedOutput.body;
|
|
783
|
-
return throwDefaultError({
|
|
784
|
-
output,
|
|
785
|
-
parsedBody,
|
|
786
|
-
errorCode
|
|
787
|
-
});
|
|
788
|
-
}
|
|
789
|
-
}, "de_CancelSigningProfileCommandError");
|
|
790
725
|
var de_DescribeSigningJobCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
791
726
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
792
|
-
return
|
|
727
|
+
return de_CommandError(output, context);
|
|
793
728
|
}
|
|
794
729
|
const contents = (0, import_smithy_client.map)({
|
|
795
730
|
$metadata: deserializeMetadata(output)
|
|
@@ -819,37 +754,9 @@ var de_DescribeSigningJobCommand = /* @__PURE__ */ __name(async (output, context
|
|
|
819
754
|
Object.assign(contents, doc);
|
|
820
755
|
return contents;
|
|
821
756
|
}, "de_DescribeSigningJobCommand");
|
|
822
|
-
var de_DescribeSigningJobCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
823
|
-
const parsedOutput = {
|
|
824
|
-
...output,
|
|
825
|
-
body: await parseErrorBody(output.body, context)
|
|
826
|
-
};
|
|
827
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
828
|
-
switch (errorCode) {
|
|
829
|
-
case "AccessDeniedException":
|
|
830
|
-
case "com.amazonaws.signer#AccessDeniedException":
|
|
831
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
832
|
-
case "InternalServiceErrorException":
|
|
833
|
-
case "com.amazonaws.signer#InternalServiceErrorException":
|
|
834
|
-
throw await de_InternalServiceErrorExceptionRes(parsedOutput, context);
|
|
835
|
-
case "ResourceNotFoundException":
|
|
836
|
-
case "com.amazonaws.signer#ResourceNotFoundException":
|
|
837
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
838
|
-
case "TooManyRequestsException":
|
|
839
|
-
case "com.amazonaws.signer#TooManyRequestsException":
|
|
840
|
-
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
841
|
-
default:
|
|
842
|
-
const parsedBody = parsedOutput.body;
|
|
843
|
-
return throwDefaultError({
|
|
844
|
-
output,
|
|
845
|
-
parsedBody,
|
|
846
|
-
errorCode
|
|
847
|
-
});
|
|
848
|
-
}
|
|
849
|
-
}, "de_DescribeSigningJobCommandError");
|
|
850
757
|
var de_GetRevocationStatusCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
851
758
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
852
|
-
return
|
|
759
|
+
return de_CommandError(output, context);
|
|
853
760
|
}
|
|
854
761
|
const contents = (0, import_smithy_client.map)({
|
|
855
762
|
$metadata: deserializeMetadata(output)
|
|
@@ -861,37 +768,9 @@ var de_GetRevocationStatusCommand = /* @__PURE__ */ __name(async (output, contex
|
|
|
861
768
|
Object.assign(contents, doc);
|
|
862
769
|
return contents;
|
|
863
770
|
}, "de_GetRevocationStatusCommand");
|
|
864
|
-
var de_GetRevocationStatusCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
865
|
-
const parsedOutput = {
|
|
866
|
-
...output,
|
|
867
|
-
body: await parseErrorBody(output.body, context)
|
|
868
|
-
};
|
|
869
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
870
|
-
switch (errorCode) {
|
|
871
|
-
case "AccessDeniedException":
|
|
872
|
-
case "com.amazonaws.signer#AccessDeniedException":
|
|
873
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
874
|
-
case "InternalServiceErrorException":
|
|
875
|
-
case "com.amazonaws.signer#InternalServiceErrorException":
|
|
876
|
-
throw await de_InternalServiceErrorExceptionRes(parsedOutput, context);
|
|
877
|
-
case "TooManyRequestsException":
|
|
878
|
-
case "com.amazonaws.signer#TooManyRequestsException":
|
|
879
|
-
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
880
|
-
case "ValidationException":
|
|
881
|
-
case "com.amazonaws.signer#ValidationException":
|
|
882
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
883
|
-
default:
|
|
884
|
-
const parsedBody = parsedOutput.body;
|
|
885
|
-
return throwDefaultError({
|
|
886
|
-
output,
|
|
887
|
-
parsedBody,
|
|
888
|
-
errorCode
|
|
889
|
-
});
|
|
890
|
-
}
|
|
891
|
-
}, "de_GetRevocationStatusCommandError");
|
|
892
771
|
var de_GetSigningPlatformCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
893
772
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
894
|
-
return
|
|
773
|
+
return de_CommandError(output, context);
|
|
895
774
|
}
|
|
896
775
|
const contents = (0, import_smithy_client.map)({
|
|
897
776
|
$metadata: deserializeMetadata(output)
|
|
@@ -911,37 +790,9 @@ var de_GetSigningPlatformCommand = /* @__PURE__ */ __name(async (output, context
|
|
|
911
790
|
Object.assign(contents, doc);
|
|
912
791
|
return contents;
|
|
913
792
|
}, "de_GetSigningPlatformCommand");
|
|
914
|
-
var de_GetSigningPlatformCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
915
|
-
const parsedOutput = {
|
|
916
|
-
...output,
|
|
917
|
-
body: await parseErrorBody(output.body, context)
|
|
918
|
-
};
|
|
919
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
920
|
-
switch (errorCode) {
|
|
921
|
-
case "AccessDeniedException":
|
|
922
|
-
case "com.amazonaws.signer#AccessDeniedException":
|
|
923
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
924
|
-
case "InternalServiceErrorException":
|
|
925
|
-
case "com.amazonaws.signer#InternalServiceErrorException":
|
|
926
|
-
throw await de_InternalServiceErrorExceptionRes(parsedOutput, context);
|
|
927
|
-
case "ResourceNotFoundException":
|
|
928
|
-
case "com.amazonaws.signer#ResourceNotFoundException":
|
|
929
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
930
|
-
case "TooManyRequestsException":
|
|
931
|
-
case "com.amazonaws.signer#TooManyRequestsException":
|
|
932
|
-
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
933
|
-
default:
|
|
934
|
-
const parsedBody = parsedOutput.body;
|
|
935
|
-
return throwDefaultError({
|
|
936
|
-
output,
|
|
937
|
-
parsedBody,
|
|
938
|
-
errorCode
|
|
939
|
-
});
|
|
940
|
-
}
|
|
941
|
-
}, "de_GetSigningPlatformCommandError");
|
|
942
793
|
var de_GetSigningProfileCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
943
794
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
944
|
-
return
|
|
795
|
+
return de_CommandError(output, context);
|
|
945
796
|
}
|
|
946
797
|
const contents = (0, import_smithy_client.map)({
|
|
947
798
|
$metadata: deserializeMetadata(output)
|
|
@@ -966,37 +817,9 @@ var de_GetSigningProfileCommand = /* @__PURE__ */ __name(async (output, context)
|
|
|
966
817
|
Object.assign(contents, doc);
|
|
967
818
|
return contents;
|
|
968
819
|
}, "de_GetSigningProfileCommand");
|
|
969
|
-
var de_GetSigningProfileCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
970
|
-
const parsedOutput = {
|
|
971
|
-
...output,
|
|
972
|
-
body: await parseErrorBody(output.body, context)
|
|
973
|
-
};
|
|
974
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
975
|
-
switch (errorCode) {
|
|
976
|
-
case "AccessDeniedException":
|
|
977
|
-
case "com.amazonaws.signer#AccessDeniedException":
|
|
978
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
979
|
-
case "InternalServiceErrorException":
|
|
980
|
-
case "com.amazonaws.signer#InternalServiceErrorException":
|
|
981
|
-
throw await de_InternalServiceErrorExceptionRes(parsedOutput, context);
|
|
982
|
-
case "ResourceNotFoundException":
|
|
983
|
-
case "com.amazonaws.signer#ResourceNotFoundException":
|
|
984
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
985
|
-
case "TooManyRequestsException":
|
|
986
|
-
case "com.amazonaws.signer#TooManyRequestsException":
|
|
987
|
-
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
988
|
-
default:
|
|
989
|
-
const parsedBody = parsedOutput.body;
|
|
990
|
-
return throwDefaultError({
|
|
991
|
-
output,
|
|
992
|
-
parsedBody,
|
|
993
|
-
errorCode
|
|
994
|
-
});
|
|
995
|
-
}
|
|
996
|
-
}, "de_GetSigningProfileCommandError");
|
|
997
820
|
var de_ListProfilePermissionsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
998
821
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
999
|
-
return
|
|
822
|
+
return de_CommandError(output, context);
|
|
1000
823
|
}
|
|
1001
824
|
const contents = (0, import_smithy_client.map)({
|
|
1002
825
|
$metadata: deserializeMetadata(output)
|
|
@@ -1011,40 +834,9 @@ var de_ListProfilePermissionsCommand = /* @__PURE__ */ __name(async (output, con
|
|
|
1011
834
|
Object.assign(contents, doc);
|
|
1012
835
|
return contents;
|
|
1013
836
|
}, "de_ListProfilePermissionsCommand");
|
|
1014
|
-
var de_ListProfilePermissionsCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1015
|
-
const parsedOutput = {
|
|
1016
|
-
...output,
|
|
1017
|
-
body: await parseErrorBody(output.body, context)
|
|
1018
|
-
};
|
|
1019
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1020
|
-
switch (errorCode) {
|
|
1021
|
-
case "AccessDeniedException":
|
|
1022
|
-
case "com.amazonaws.signer#AccessDeniedException":
|
|
1023
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1024
|
-
case "InternalServiceErrorException":
|
|
1025
|
-
case "com.amazonaws.signer#InternalServiceErrorException":
|
|
1026
|
-
throw await de_InternalServiceErrorExceptionRes(parsedOutput, context);
|
|
1027
|
-
case "ResourceNotFoundException":
|
|
1028
|
-
case "com.amazonaws.signer#ResourceNotFoundException":
|
|
1029
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1030
|
-
case "TooManyRequestsException":
|
|
1031
|
-
case "com.amazonaws.signer#TooManyRequestsException":
|
|
1032
|
-
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
1033
|
-
case "ValidationException":
|
|
1034
|
-
case "com.amazonaws.signer#ValidationException":
|
|
1035
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1036
|
-
default:
|
|
1037
|
-
const parsedBody = parsedOutput.body;
|
|
1038
|
-
return throwDefaultError({
|
|
1039
|
-
output,
|
|
1040
|
-
parsedBody,
|
|
1041
|
-
errorCode
|
|
1042
|
-
});
|
|
1043
|
-
}
|
|
1044
|
-
}, "de_ListProfilePermissionsCommandError");
|
|
1045
837
|
var de_ListSigningJobsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1046
838
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1047
|
-
return
|
|
839
|
+
return de_CommandError(output, context);
|
|
1048
840
|
}
|
|
1049
841
|
const contents = (0, import_smithy_client.map)({
|
|
1050
842
|
$metadata: deserializeMetadata(output)
|
|
@@ -1057,37 +849,9 @@ var de_ListSigningJobsCommand = /* @__PURE__ */ __name(async (output, context) =
|
|
|
1057
849
|
Object.assign(contents, doc);
|
|
1058
850
|
return contents;
|
|
1059
851
|
}, "de_ListSigningJobsCommand");
|
|
1060
|
-
var de_ListSigningJobsCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1061
|
-
const parsedOutput = {
|
|
1062
|
-
...output,
|
|
1063
|
-
body: await parseErrorBody(output.body, context)
|
|
1064
|
-
};
|
|
1065
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1066
|
-
switch (errorCode) {
|
|
1067
|
-
case "AccessDeniedException":
|
|
1068
|
-
case "com.amazonaws.signer#AccessDeniedException":
|
|
1069
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1070
|
-
case "InternalServiceErrorException":
|
|
1071
|
-
case "com.amazonaws.signer#InternalServiceErrorException":
|
|
1072
|
-
throw await de_InternalServiceErrorExceptionRes(parsedOutput, context);
|
|
1073
|
-
case "TooManyRequestsException":
|
|
1074
|
-
case "com.amazonaws.signer#TooManyRequestsException":
|
|
1075
|
-
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
1076
|
-
case "ValidationException":
|
|
1077
|
-
case "com.amazonaws.signer#ValidationException":
|
|
1078
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1079
|
-
default:
|
|
1080
|
-
const parsedBody = parsedOutput.body;
|
|
1081
|
-
return throwDefaultError({
|
|
1082
|
-
output,
|
|
1083
|
-
parsedBody,
|
|
1084
|
-
errorCode
|
|
1085
|
-
});
|
|
1086
|
-
}
|
|
1087
|
-
}, "de_ListSigningJobsCommandError");
|
|
1088
852
|
var de_ListSigningPlatformsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1089
853
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1090
|
-
return
|
|
854
|
+
return de_CommandError(output, context);
|
|
1091
855
|
}
|
|
1092
856
|
const contents = (0, import_smithy_client.map)({
|
|
1093
857
|
$metadata: deserializeMetadata(output)
|
|
@@ -1100,37 +864,9 @@ var de_ListSigningPlatformsCommand = /* @__PURE__ */ __name(async (output, conte
|
|
|
1100
864
|
Object.assign(contents, doc);
|
|
1101
865
|
return contents;
|
|
1102
866
|
}, "de_ListSigningPlatformsCommand");
|
|
1103
|
-
var de_ListSigningPlatformsCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1104
|
-
const parsedOutput = {
|
|
1105
|
-
...output,
|
|
1106
|
-
body: await parseErrorBody(output.body, context)
|
|
1107
|
-
};
|
|
1108
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1109
|
-
switch (errorCode) {
|
|
1110
|
-
case "AccessDeniedException":
|
|
1111
|
-
case "com.amazonaws.signer#AccessDeniedException":
|
|
1112
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1113
|
-
case "InternalServiceErrorException":
|
|
1114
|
-
case "com.amazonaws.signer#InternalServiceErrorException":
|
|
1115
|
-
throw await de_InternalServiceErrorExceptionRes(parsedOutput, context);
|
|
1116
|
-
case "TooManyRequestsException":
|
|
1117
|
-
case "com.amazonaws.signer#TooManyRequestsException":
|
|
1118
|
-
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
1119
|
-
case "ValidationException":
|
|
1120
|
-
case "com.amazonaws.signer#ValidationException":
|
|
1121
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1122
|
-
default:
|
|
1123
|
-
const parsedBody = parsedOutput.body;
|
|
1124
|
-
return throwDefaultError({
|
|
1125
|
-
output,
|
|
1126
|
-
parsedBody,
|
|
1127
|
-
errorCode
|
|
1128
|
-
});
|
|
1129
|
-
}
|
|
1130
|
-
}, "de_ListSigningPlatformsCommandError");
|
|
1131
867
|
var de_ListSigningProfilesCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1132
868
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1133
|
-
return
|
|
869
|
+
return de_CommandError(output, context);
|
|
1134
870
|
}
|
|
1135
871
|
const contents = (0, import_smithy_client.map)({
|
|
1136
872
|
$metadata: deserializeMetadata(output)
|
|
@@ -1143,34 +879,9 @@ var de_ListSigningProfilesCommand = /* @__PURE__ */ __name(async (output, contex
|
|
|
1143
879
|
Object.assign(contents, doc);
|
|
1144
880
|
return contents;
|
|
1145
881
|
}, "de_ListSigningProfilesCommand");
|
|
1146
|
-
var de_ListSigningProfilesCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1147
|
-
const parsedOutput = {
|
|
1148
|
-
...output,
|
|
1149
|
-
body: await parseErrorBody(output.body, context)
|
|
1150
|
-
};
|
|
1151
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1152
|
-
switch (errorCode) {
|
|
1153
|
-
case "AccessDeniedException":
|
|
1154
|
-
case "com.amazonaws.signer#AccessDeniedException":
|
|
1155
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1156
|
-
case "InternalServiceErrorException":
|
|
1157
|
-
case "com.amazonaws.signer#InternalServiceErrorException":
|
|
1158
|
-
throw await de_InternalServiceErrorExceptionRes(parsedOutput, context);
|
|
1159
|
-
case "TooManyRequestsException":
|
|
1160
|
-
case "com.amazonaws.signer#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_ListSigningProfilesCommandError");
|
|
1171
882
|
var de_ListTagsForResourceCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1172
883
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1173
|
-
return
|
|
884
|
+
return de_CommandError(output, context);
|
|
1174
885
|
}
|
|
1175
886
|
const contents = (0, import_smithy_client.map)({
|
|
1176
887
|
$metadata: deserializeMetadata(output)
|
|
@@ -1182,37 +893,9 @@ var de_ListTagsForResourceCommand = /* @__PURE__ */ __name(async (output, contex
|
|
|
1182
893
|
Object.assign(contents, doc);
|
|
1183
894
|
return contents;
|
|
1184
895
|
}, "de_ListTagsForResourceCommand");
|
|
1185
|
-
var de_ListTagsForResourceCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1186
|
-
const parsedOutput = {
|
|
1187
|
-
...output,
|
|
1188
|
-
body: await parseErrorBody(output.body, context)
|
|
1189
|
-
};
|
|
1190
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1191
|
-
switch (errorCode) {
|
|
1192
|
-
case "BadRequestException":
|
|
1193
|
-
case "com.amazonaws.signer#BadRequestException":
|
|
1194
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
1195
|
-
case "InternalServiceErrorException":
|
|
1196
|
-
case "com.amazonaws.signer#InternalServiceErrorException":
|
|
1197
|
-
throw await de_InternalServiceErrorExceptionRes(parsedOutput, context);
|
|
1198
|
-
case "NotFoundException":
|
|
1199
|
-
case "com.amazonaws.signer#NotFoundException":
|
|
1200
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
1201
|
-
case "TooManyRequestsException":
|
|
1202
|
-
case "com.amazonaws.signer#TooManyRequestsException":
|
|
1203
|
-
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
1204
|
-
default:
|
|
1205
|
-
const parsedBody = parsedOutput.body;
|
|
1206
|
-
return throwDefaultError({
|
|
1207
|
-
output,
|
|
1208
|
-
parsedBody,
|
|
1209
|
-
errorCode
|
|
1210
|
-
});
|
|
1211
|
-
}
|
|
1212
|
-
}, "de_ListTagsForResourceCommandError");
|
|
1213
896
|
var de_PutSigningProfileCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1214
897
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1215
|
-
return
|
|
898
|
+
return de_CommandError(output, context);
|
|
1216
899
|
}
|
|
1217
900
|
const contents = (0, import_smithy_client.map)({
|
|
1218
901
|
$metadata: deserializeMetadata(output)
|
|
@@ -1226,40 +909,9 @@ var de_PutSigningProfileCommand = /* @__PURE__ */ __name(async (output, context)
|
|
|
1226
909
|
Object.assign(contents, doc);
|
|
1227
910
|
return contents;
|
|
1228
911
|
}, "de_PutSigningProfileCommand");
|
|
1229
|
-
var de_PutSigningProfileCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1230
|
-
const parsedOutput = {
|
|
1231
|
-
...output,
|
|
1232
|
-
body: await parseErrorBody(output.body, context)
|
|
1233
|
-
};
|
|
1234
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1235
|
-
switch (errorCode) {
|
|
1236
|
-
case "AccessDeniedException":
|
|
1237
|
-
case "com.amazonaws.signer#AccessDeniedException":
|
|
1238
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1239
|
-
case "InternalServiceErrorException":
|
|
1240
|
-
case "com.amazonaws.signer#InternalServiceErrorException":
|
|
1241
|
-
throw await de_InternalServiceErrorExceptionRes(parsedOutput, context);
|
|
1242
|
-
case "ResourceNotFoundException":
|
|
1243
|
-
case "com.amazonaws.signer#ResourceNotFoundException":
|
|
1244
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1245
|
-
case "TooManyRequestsException":
|
|
1246
|
-
case "com.amazonaws.signer#TooManyRequestsException":
|
|
1247
|
-
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
1248
|
-
case "ValidationException":
|
|
1249
|
-
case "com.amazonaws.signer#ValidationException":
|
|
1250
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1251
|
-
default:
|
|
1252
|
-
const parsedBody = parsedOutput.body;
|
|
1253
|
-
return throwDefaultError({
|
|
1254
|
-
output,
|
|
1255
|
-
parsedBody,
|
|
1256
|
-
errorCode
|
|
1257
|
-
});
|
|
1258
|
-
}
|
|
1259
|
-
}, "de_PutSigningProfileCommandError");
|
|
1260
912
|
var de_RemoveProfilePermissionCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1261
913
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1262
|
-
return
|
|
914
|
+
return de_CommandError(output, context);
|
|
1263
915
|
}
|
|
1264
916
|
const contents = (0, import_smithy_client.map)({
|
|
1265
917
|
$metadata: deserializeMetadata(output)
|
|
@@ -1271,43 +923,9 @@ var de_RemoveProfilePermissionCommand = /* @__PURE__ */ __name(async (output, co
|
|
|
1271
923
|
Object.assign(contents, doc);
|
|
1272
924
|
return contents;
|
|
1273
925
|
}, "de_RemoveProfilePermissionCommand");
|
|
1274
|
-
var de_RemoveProfilePermissionCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1275
|
-
const parsedOutput = {
|
|
1276
|
-
...output,
|
|
1277
|
-
body: await parseErrorBody(output.body, context)
|
|
1278
|
-
};
|
|
1279
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1280
|
-
switch (errorCode) {
|
|
1281
|
-
case "AccessDeniedException":
|
|
1282
|
-
case "com.amazonaws.signer#AccessDeniedException":
|
|
1283
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1284
|
-
case "ConflictException":
|
|
1285
|
-
case "com.amazonaws.signer#ConflictException":
|
|
1286
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1287
|
-
case "InternalServiceErrorException":
|
|
1288
|
-
case "com.amazonaws.signer#InternalServiceErrorException":
|
|
1289
|
-
throw await de_InternalServiceErrorExceptionRes(parsedOutput, context);
|
|
1290
|
-
case "ResourceNotFoundException":
|
|
1291
|
-
case "com.amazonaws.signer#ResourceNotFoundException":
|
|
1292
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1293
|
-
case "TooManyRequestsException":
|
|
1294
|
-
case "com.amazonaws.signer#TooManyRequestsException":
|
|
1295
|
-
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
1296
|
-
case "ValidationException":
|
|
1297
|
-
case "com.amazonaws.signer#ValidationException":
|
|
1298
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1299
|
-
default:
|
|
1300
|
-
const parsedBody = parsedOutput.body;
|
|
1301
|
-
return throwDefaultError({
|
|
1302
|
-
output,
|
|
1303
|
-
parsedBody,
|
|
1304
|
-
errorCode
|
|
1305
|
-
});
|
|
1306
|
-
}
|
|
1307
|
-
}, "de_RemoveProfilePermissionCommandError");
|
|
1308
926
|
var de_RevokeSignatureCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1309
927
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1310
|
-
return
|
|
928
|
+
return de_CommandError(output, context);
|
|
1311
929
|
}
|
|
1312
930
|
const contents = (0, import_smithy_client.map)({
|
|
1313
931
|
$metadata: deserializeMetadata(output)
|
|
@@ -1315,40 +933,9 @@ var de_RevokeSignatureCommand = /* @__PURE__ */ __name(async (output, context) =
|
|
|
1315
933
|
await (0, import_smithy_client.collectBody)(output.body, context);
|
|
1316
934
|
return contents;
|
|
1317
935
|
}, "de_RevokeSignatureCommand");
|
|
1318
|
-
var de_RevokeSignatureCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1319
|
-
const parsedOutput = {
|
|
1320
|
-
...output,
|
|
1321
|
-
body: await parseErrorBody(output.body, context)
|
|
1322
|
-
};
|
|
1323
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1324
|
-
switch (errorCode) {
|
|
1325
|
-
case "AccessDeniedException":
|
|
1326
|
-
case "com.amazonaws.signer#AccessDeniedException":
|
|
1327
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1328
|
-
case "InternalServiceErrorException":
|
|
1329
|
-
case "com.amazonaws.signer#InternalServiceErrorException":
|
|
1330
|
-
throw await de_InternalServiceErrorExceptionRes(parsedOutput, context);
|
|
1331
|
-
case "ResourceNotFoundException":
|
|
1332
|
-
case "com.amazonaws.signer#ResourceNotFoundException":
|
|
1333
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1334
|
-
case "TooManyRequestsException":
|
|
1335
|
-
case "com.amazonaws.signer#TooManyRequestsException":
|
|
1336
|
-
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
1337
|
-
case "ValidationException":
|
|
1338
|
-
case "com.amazonaws.signer#ValidationException":
|
|
1339
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1340
|
-
default:
|
|
1341
|
-
const parsedBody = parsedOutput.body;
|
|
1342
|
-
return throwDefaultError({
|
|
1343
|
-
output,
|
|
1344
|
-
parsedBody,
|
|
1345
|
-
errorCode
|
|
1346
|
-
});
|
|
1347
|
-
}
|
|
1348
|
-
}, "de_RevokeSignatureCommandError");
|
|
1349
936
|
var de_RevokeSigningProfileCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1350
937
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1351
|
-
return
|
|
938
|
+
return de_CommandError(output, context);
|
|
1352
939
|
}
|
|
1353
940
|
const contents = (0, import_smithy_client.map)({
|
|
1354
941
|
$metadata: deserializeMetadata(output)
|
|
@@ -1356,40 +943,9 @@ var de_RevokeSigningProfileCommand = /* @__PURE__ */ __name(async (output, conte
|
|
|
1356
943
|
await (0, import_smithy_client.collectBody)(output.body, context);
|
|
1357
944
|
return contents;
|
|
1358
945
|
}, "de_RevokeSigningProfileCommand");
|
|
1359
|
-
var de_RevokeSigningProfileCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1360
|
-
const parsedOutput = {
|
|
1361
|
-
...output,
|
|
1362
|
-
body: await parseErrorBody(output.body, context)
|
|
1363
|
-
};
|
|
1364
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1365
|
-
switch (errorCode) {
|
|
1366
|
-
case "AccessDeniedException":
|
|
1367
|
-
case "com.amazonaws.signer#AccessDeniedException":
|
|
1368
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1369
|
-
case "InternalServiceErrorException":
|
|
1370
|
-
case "com.amazonaws.signer#InternalServiceErrorException":
|
|
1371
|
-
throw await de_InternalServiceErrorExceptionRes(parsedOutput, context);
|
|
1372
|
-
case "ResourceNotFoundException":
|
|
1373
|
-
case "com.amazonaws.signer#ResourceNotFoundException":
|
|
1374
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1375
|
-
case "TooManyRequestsException":
|
|
1376
|
-
case "com.amazonaws.signer#TooManyRequestsException":
|
|
1377
|
-
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
1378
|
-
case "ValidationException":
|
|
1379
|
-
case "com.amazonaws.signer#ValidationException":
|
|
1380
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1381
|
-
default:
|
|
1382
|
-
const parsedBody = parsedOutput.body;
|
|
1383
|
-
return throwDefaultError({
|
|
1384
|
-
output,
|
|
1385
|
-
parsedBody,
|
|
1386
|
-
errorCode
|
|
1387
|
-
});
|
|
1388
|
-
}
|
|
1389
|
-
}, "de_RevokeSigningProfileCommandError");
|
|
1390
946
|
var de_SignPayloadCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1391
947
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1392
|
-
return
|
|
948
|
+
return de_CommandError(output, context);
|
|
1393
949
|
}
|
|
1394
950
|
const contents = (0, import_smithy_client.map)({
|
|
1395
951
|
$metadata: deserializeMetadata(output)
|
|
@@ -1404,40 +960,9 @@ var de_SignPayloadCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
1404
960
|
Object.assign(contents, doc);
|
|
1405
961
|
return contents;
|
|
1406
962
|
}, "de_SignPayloadCommand");
|
|
1407
|
-
var de_SignPayloadCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1408
|
-
const parsedOutput = {
|
|
1409
|
-
...output,
|
|
1410
|
-
body: await parseErrorBody(output.body, context)
|
|
1411
|
-
};
|
|
1412
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1413
|
-
switch (errorCode) {
|
|
1414
|
-
case "AccessDeniedException":
|
|
1415
|
-
case "com.amazonaws.signer#AccessDeniedException":
|
|
1416
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1417
|
-
case "InternalServiceErrorException":
|
|
1418
|
-
case "com.amazonaws.signer#InternalServiceErrorException":
|
|
1419
|
-
throw await de_InternalServiceErrorExceptionRes(parsedOutput, context);
|
|
1420
|
-
case "ResourceNotFoundException":
|
|
1421
|
-
case "com.amazonaws.signer#ResourceNotFoundException":
|
|
1422
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1423
|
-
case "TooManyRequestsException":
|
|
1424
|
-
case "com.amazonaws.signer#TooManyRequestsException":
|
|
1425
|
-
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
1426
|
-
case "ValidationException":
|
|
1427
|
-
case "com.amazonaws.signer#ValidationException":
|
|
1428
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1429
|
-
default:
|
|
1430
|
-
const parsedBody = parsedOutput.body;
|
|
1431
|
-
return throwDefaultError({
|
|
1432
|
-
output,
|
|
1433
|
-
parsedBody,
|
|
1434
|
-
errorCode
|
|
1435
|
-
});
|
|
1436
|
-
}
|
|
1437
|
-
}, "de_SignPayloadCommandError");
|
|
1438
963
|
var de_StartSigningJobCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1439
964
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1440
|
-
return
|
|
965
|
+
return de_CommandError(output, context);
|
|
1441
966
|
}
|
|
1442
967
|
const contents = (0, import_smithy_client.map)({
|
|
1443
968
|
$metadata: deserializeMetadata(output)
|
|
@@ -1450,43 +975,9 @@ var de_StartSigningJobCommand = /* @__PURE__ */ __name(async (output, context) =
|
|
|
1450
975
|
Object.assign(contents, doc);
|
|
1451
976
|
return contents;
|
|
1452
977
|
}, "de_StartSigningJobCommand");
|
|
1453
|
-
var de_StartSigningJobCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1454
|
-
const parsedOutput = {
|
|
1455
|
-
...output,
|
|
1456
|
-
body: await parseErrorBody(output.body, context)
|
|
1457
|
-
};
|
|
1458
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1459
|
-
switch (errorCode) {
|
|
1460
|
-
case "AccessDeniedException":
|
|
1461
|
-
case "com.amazonaws.signer#AccessDeniedException":
|
|
1462
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1463
|
-
case "InternalServiceErrorException":
|
|
1464
|
-
case "com.amazonaws.signer#InternalServiceErrorException":
|
|
1465
|
-
throw await de_InternalServiceErrorExceptionRes(parsedOutput, context);
|
|
1466
|
-
case "ResourceNotFoundException":
|
|
1467
|
-
case "com.amazonaws.signer#ResourceNotFoundException":
|
|
1468
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1469
|
-
case "ThrottlingException":
|
|
1470
|
-
case "com.amazonaws.signer#ThrottlingException":
|
|
1471
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1472
|
-
case "TooManyRequestsException":
|
|
1473
|
-
case "com.amazonaws.signer#TooManyRequestsException":
|
|
1474
|
-
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
1475
|
-
case "ValidationException":
|
|
1476
|
-
case "com.amazonaws.signer#ValidationException":
|
|
1477
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1478
|
-
default:
|
|
1479
|
-
const parsedBody = parsedOutput.body;
|
|
1480
|
-
return throwDefaultError({
|
|
1481
|
-
output,
|
|
1482
|
-
parsedBody,
|
|
1483
|
-
errorCode
|
|
1484
|
-
});
|
|
1485
|
-
}
|
|
1486
|
-
}, "de_StartSigningJobCommandError");
|
|
1487
978
|
var de_TagResourceCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1488
979
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1489
|
-
return
|
|
980
|
+
return de_CommandError(output, context);
|
|
1490
981
|
}
|
|
1491
982
|
const contents = (0, import_smithy_client.map)({
|
|
1492
983
|
$metadata: deserializeMetadata(output)
|
|
@@ -1494,37 +985,9 @@ var de_TagResourceCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
1494
985
|
await (0, import_smithy_client.collectBody)(output.body, context);
|
|
1495
986
|
return contents;
|
|
1496
987
|
}, "de_TagResourceCommand");
|
|
1497
|
-
var de_TagResourceCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1498
|
-
const parsedOutput = {
|
|
1499
|
-
...output,
|
|
1500
|
-
body: await parseErrorBody(output.body, context)
|
|
1501
|
-
};
|
|
1502
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1503
|
-
switch (errorCode) {
|
|
1504
|
-
case "BadRequestException":
|
|
1505
|
-
case "com.amazonaws.signer#BadRequestException":
|
|
1506
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
1507
|
-
case "InternalServiceErrorException":
|
|
1508
|
-
case "com.amazonaws.signer#InternalServiceErrorException":
|
|
1509
|
-
throw await de_InternalServiceErrorExceptionRes(parsedOutput, context);
|
|
1510
|
-
case "NotFoundException":
|
|
1511
|
-
case "com.amazonaws.signer#NotFoundException":
|
|
1512
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
1513
|
-
case "TooManyRequestsException":
|
|
1514
|
-
case "com.amazonaws.signer#TooManyRequestsException":
|
|
1515
|
-
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
1516
|
-
default:
|
|
1517
|
-
const parsedBody = parsedOutput.body;
|
|
1518
|
-
return throwDefaultError({
|
|
1519
|
-
output,
|
|
1520
|
-
parsedBody,
|
|
1521
|
-
errorCode
|
|
1522
|
-
});
|
|
1523
|
-
}
|
|
1524
|
-
}, "de_TagResourceCommandError");
|
|
1525
988
|
var de_UntagResourceCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1526
989
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1527
|
-
return
|
|
990
|
+
return de_CommandError(output, context);
|
|
1528
991
|
}
|
|
1529
992
|
const contents = (0, import_smithy_client.map)({
|
|
1530
993
|
$metadata: deserializeMetadata(output)
|
|
@@ -1532,25 +995,43 @@ var de_UntagResourceCommand = /* @__PURE__ */ __name(async (output, context) =>
|
|
|
1532
995
|
await (0, import_smithy_client.collectBody)(output.body, context);
|
|
1533
996
|
return contents;
|
|
1534
997
|
}, "de_UntagResourceCommand");
|
|
1535
|
-
var
|
|
998
|
+
var de_CommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1536
999
|
const parsedOutput = {
|
|
1537
1000
|
...output,
|
|
1538
1001
|
body: await parseErrorBody(output.body, context)
|
|
1539
1002
|
};
|
|
1540
1003
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1541
1004
|
switch (errorCode) {
|
|
1542
|
-
case "
|
|
1543
|
-
case "com.amazonaws.signer#
|
|
1544
|
-
throw await
|
|
1005
|
+
case "AccessDeniedException":
|
|
1006
|
+
case "com.amazonaws.signer#AccessDeniedException":
|
|
1007
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1008
|
+
case "ConflictException":
|
|
1009
|
+
case "com.amazonaws.signer#ConflictException":
|
|
1010
|
+
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1545
1011
|
case "InternalServiceErrorException":
|
|
1546
1012
|
case "com.amazonaws.signer#InternalServiceErrorException":
|
|
1547
1013
|
throw await de_InternalServiceErrorExceptionRes(parsedOutput, context);
|
|
1548
|
-
case "
|
|
1549
|
-
case "com.amazonaws.signer#
|
|
1550
|
-
throw await
|
|
1014
|
+
case "ResourceNotFoundException":
|
|
1015
|
+
case "com.amazonaws.signer#ResourceNotFoundException":
|
|
1016
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1017
|
+
case "ServiceLimitExceededException":
|
|
1018
|
+
case "com.amazonaws.signer#ServiceLimitExceededException":
|
|
1019
|
+
throw await de_ServiceLimitExceededExceptionRes(parsedOutput, context);
|
|
1551
1020
|
case "TooManyRequestsException":
|
|
1552
1021
|
case "com.amazonaws.signer#TooManyRequestsException":
|
|
1553
1022
|
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
1023
|
+
case "ValidationException":
|
|
1024
|
+
case "com.amazonaws.signer#ValidationException":
|
|
1025
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1026
|
+
case "BadRequestException":
|
|
1027
|
+
case "com.amazonaws.signer#BadRequestException":
|
|
1028
|
+
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
1029
|
+
case "NotFoundException":
|
|
1030
|
+
case "com.amazonaws.signer#NotFoundException":
|
|
1031
|
+
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
1032
|
+
case "ThrottlingException":
|
|
1033
|
+
case "com.amazonaws.signer#ThrottlingException":
|
|
1034
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1554
1035
|
default:
|
|
1555
1036
|
const parsedBody = parsedOutput.body;
|
|
1556
1037
|
return throwDefaultError({
|
|
@@ -1559,7 +1040,7 @@ var de_UntagResourceCommandError = /* @__PURE__ */ __name(async (output, context
|
|
|
1559
1040
|
errorCode
|
|
1560
1041
|
});
|
|
1561
1042
|
}
|
|
1562
|
-
}, "
|
|
1043
|
+
}, "de_CommandError");
|
|
1563
1044
|
var throwDefaultError = (0, import_smithy_client.withBaseException)(SignerServiceException);
|
|
1564
1045
|
var de_AccessDeniedExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
|
|
1565
1046
|
const contents = (0, import_smithy_client.map)({});
|