@aws-sdk/client-medical-imaging 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 +20 -586
- package/dist-es/protocols/Aws_restJson1.js +19 -585
- package/package.json +3 -3
package/dist-cjs/index.js
CHANGED
|
@@ -786,7 +786,7 @@ var se_UpdateImageSetMetadataCommand = /* @__PURE__ */ __name(async (input, cont
|
|
|
786
786
|
}, "se_UpdateImageSetMetadataCommand");
|
|
787
787
|
var de_CopyImageSetCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
788
788
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
789
|
-
return
|
|
789
|
+
return de_CommandError(output, context);
|
|
790
790
|
}
|
|
791
791
|
const contents = (0, import_smithy_client.map)({
|
|
792
792
|
$metadata: deserializeMetadata(output)
|
|
@@ -800,46 +800,9 @@ var de_CopyImageSetCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
800
800
|
Object.assign(contents, doc);
|
|
801
801
|
return contents;
|
|
802
802
|
}, "de_CopyImageSetCommand");
|
|
803
|
-
var de_CopyImageSetCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
804
|
-
const parsedOutput = {
|
|
805
|
-
...output,
|
|
806
|
-
body: await parseErrorBody(output.body, context)
|
|
807
|
-
};
|
|
808
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
809
|
-
switch (errorCode) {
|
|
810
|
-
case "AccessDeniedException":
|
|
811
|
-
case "com.amazonaws.medicalimaging#AccessDeniedException":
|
|
812
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
813
|
-
case "ConflictException":
|
|
814
|
-
case "com.amazonaws.medicalimaging#ConflictException":
|
|
815
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
816
|
-
case "InternalServerException":
|
|
817
|
-
case "com.amazonaws.medicalimaging#InternalServerException":
|
|
818
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
819
|
-
case "ResourceNotFoundException":
|
|
820
|
-
case "com.amazonaws.medicalimaging#ResourceNotFoundException":
|
|
821
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
822
|
-
case "ServiceQuotaExceededException":
|
|
823
|
-
case "com.amazonaws.medicalimaging#ServiceQuotaExceededException":
|
|
824
|
-
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
825
|
-
case "ThrottlingException":
|
|
826
|
-
case "com.amazonaws.medicalimaging#ThrottlingException":
|
|
827
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
828
|
-
case "ValidationException":
|
|
829
|
-
case "com.amazonaws.medicalimaging#ValidationException":
|
|
830
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
831
|
-
default:
|
|
832
|
-
const parsedBody = parsedOutput.body;
|
|
833
|
-
return throwDefaultError({
|
|
834
|
-
output,
|
|
835
|
-
parsedBody,
|
|
836
|
-
errorCode
|
|
837
|
-
});
|
|
838
|
-
}
|
|
839
|
-
}, "de_CopyImageSetCommandError");
|
|
840
803
|
var de_CreateDatastoreCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
841
804
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
842
|
-
return
|
|
805
|
+
return de_CommandError(output, context);
|
|
843
806
|
}
|
|
844
807
|
const contents = (0, import_smithy_client.map)({
|
|
845
808
|
$metadata: deserializeMetadata(output)
|
|
@@ -852,43 +815,9 @@ var de_CreateDatastoreCommand = /* @__PURE__ */ __name(async (output, context) =
|
|
|
852
815
|
Object.assign(contents, doc);
|
|
853
816
|
return contents;
|
|
854
817
|
}, "de_CreateDatastoreCommand");
|
|
855
|
-
var de_CreateDatastoreCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
856
|
-
const parsedOutput = {
|
|
857
|
-
...output,
|
|
858
|
-
body: await parseErrorBody(output.body, context)
|
|
859
|
-
};
|
|
860
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
861
|
-
switch (errorCode) {
|
|
862
|
-
case "AccessDeniedException":
|
|
863
|
-
case "com.amazonaws.medicalimaging#AccessDeniedException":
|
|
864
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
865
|
-
case "ConflictException":
|
|
866
|
-
case "com.amazonaws.medicalimaging#ConflictException":
|
|
867
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
868
|
-
case "InternalServerException":
|
|
869
|
-
case "com.amazonaws.medicalimaging#InternalServerException":
|
|
870
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
871
|
-
case "ServiceQuotaExceededException":
|
|
872
|
-
case "com.amazonaws.medicalimaging#ServiceQuotaExceededException":
|
|
873
|
-
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
874
|
-
case "ThrottlingException":
|
|
875
|
-
case "com.amazonaws.medicalimaging#ThrottlingException":
|
|
876
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
877
|
-
case "ValidationException":
|
|
878
|
-
case "com.amazonaws.medicalimaging#ValidationException":
|
|
879
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
880
|
-
default:
|
|
881
|
-
const parsedBody = parsedOutput.body;
|
|
882
|
-
return throwDefaultError({
|
|
883
|
-
output,
|
|
884
|
-
parsedBody,
|
|
885
|
-
errorCode
|
|
886
|
-
});
|
|
887
|
-
}
|
|
888
|
-
}, "de_CreateDatastoreCommandError");
|
|
889
818
|
var de_DeleteDatastoreCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
890
819
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
891
|
-
return
|
|
820
|
+
return de_CommandError(output, context);
|
|
892
821
|
}
|
|
893
822
|
const contents = (0, import_smithy_client.map)({
|
|
894
823
|
$metadata: deserializeMetadata(output)
|
|
@@ -901,43 +830,9 @@ var de_DeleteDatastoreCommand = /* @__PURE__ */ __name(async (output, context) =
|
|
|
901
830
|
Object.assign(contents, doc);
|
|
902
831
|
return contents;
|
|
903
832
|
}, "de_DeleteDatastoreCommand");
|
|
904
|
-
var de_DeleteDatastoreCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
905
|
-
const parsedOutput = {
|
|
906
|
-
...output,
|
|
907
|
-
body: await parseErrorBody(output.body, context)
|
|
908
|
-
};
|
|
909
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
910
|
-
switch (errorCode) {
|
|
911
|
-
case "AccessDeniedException":
|
|
912
|
-
case "com.amazonaws.medicalimaging#AccessDeniedException":
|
|
913
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
914
|
-
case "ConflictException":
|
|
915
|
-
case "com.amazonaws.medicalimaging#ConflictException":
|
|
916
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
917
|
-
case "InternalServerException":
|
|
918
|
-
case "com.amazonaws.medicalimaging#InternalServerException":
|
|
919
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
920
|
-
case "ResourceNotFoundException":
|
|
921
|
-
case "com.amazonaws.medicalimaging#ResourceNotFoundException":
|
|
922
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
923
|
-
case "ThrottlingException":
|
|
924
|
-
case "com.amazonaws.medicalimaging#ThrottlingException":
|
|
925
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
926
|
-
case "ValidationException":
|
|
927
|
-
case "com.amazonaws.medicalimaging#ValidationException":
|
|
928
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
929
|
-
default:
|
|
930
|
-
const parsedBody = parsedOutput.body;
|
|
931
|
-
return throwDefaultError({
|
|
932
|
-
output,
|
|
933
|
-
parsedBody,
|
|
934
|
-
errorCode
|
|
935
|
-
});
|
|
936
|
-
}
|
|
937
|
-
}, "de_DeleteDatastoreCommandError");
|
|
938
833
|
var de_DeleteImageSetCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
939
834
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
940
|
-
return
|
|
835
|
+
return de_CommandError(output, context);
|
|
941
836
|
}
|
|
942
837
|
const contents = (0, import_smithy_client.map)({
|
|
943
838
|
$metadata: deserializeMetadata(output)
|
|
@@ -952,43 +847,9 @@ var de_DeleteImageSetCommand = /* @__PURE__ */ __name(async (output, context) =>
|
|
|
952
847
|
Object.assign(contents, doc);
|
|
953
848
|
return contents;
|
|
954
849
|
}, "de_DeleteImageSetCommand");
|
|
955
|
-
var de_DeleteImageSetCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
956
|
-
const parsedOutput = {
|
|
957
|
-
...output,
|
|
958
|
-
body: await parseErrorBody(output.body, context)
|
|
959
|
-
};
|
|
960
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
961
|
-
switch (errorCode) {
|
|
962
|
-
case "AccessDeniedException":
|
|
963
|
-
case "com.amazonaws.medicalimaging#AccessDeniedException":
|
|
964
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
965
|
-
case "ConflictException":
|
|
966
|
-
case "com.amazonaws.medicalimaging#ConflictException":
|
|
967
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
968
|
-
case "InternalServerException":
|
|
969
|
-
case "com.amazonaws.medicalimaging#InternalServerException":
|
|
970
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
971
|
-
case "ResourceNotFoundException":
|
|
972
|
-
case "com.amazonaws.medicalimaging#ResourceNotFoundException":
|
|
973
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
974
|
-
case "ThrottlingException":
|
|
975
|
-
case "com.amazonaws.medicalimaging#ThrottlingException":
|
|
976
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
977
|
-
case "ValidationException":
|
|
978
|
-
case "com.amazonaws.medicalimaging#ValidationException":
|
|
979
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
980
|
-
default:
|
|
981
|
-
const parsedBody = parsedOutput.body;
|
|
982
|
-
return throwDefaultError({
|
|
983
|
-
output,
|
|
984
|
-
parsedBody,
|
|
985
|
-
errorCode
|
|
986
|
-
});
|
|
987
|
-
}
|
|
988
|
-
}, "de_DeleteImageSetCommandError");
|
|
989
850
|
var de_GetDatastoreCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
990
851
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
991
|
-
return
|
|
852
|
+
return de_CommandError(output, context);
|
|
992
853
|
}
|
|
993
854
|
const contents = (0, import_smithy_client.map)({
|
|
994
855
|
$metadata: deserializeMetadata(output)
|
|
@@ -1000,40 +861,9 @@ var de_GetDatastoreCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
1000
861
|
Object.assign(contents, doc);
|
|
1001
862
|
return contents;
|
|
1002
863
|
}, "de_GetDatastoreCommand");
|
|
1003
|
-
var de_GetDatastoreCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1004
|
-
const parsedOutput = {
|
|
1005
|
-
...output,
|
|
1006
|
-
body: await parseErrorBody(output.body, context)
|
|
1007
|
-
};
|
|
1008
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1009
|
-
switch (errorCode) {
|
|
1010
|
-
case "AccessDeniedException":
|
|
1011
|
-
case "com.amazonaws.medicalimaging#AccessDeniedException":
|
|
1012
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1013
|
-
case "InternalServerException":
|
|
1014
|
-
case "com.amazonaws.medicalimaging#InternalServerException":
|
|
1015
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1016
|
-
case "ResourceNotFoundException":
|
|
1017
|
-
case "com.amazonaws.medicalimaging#ResourceNotFoundException":
|
|
1018
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1019
|
-
case "ThrottlingException":
|
|
1020
|
-
case "com.amazonaws.medicalimaging#ThrottlingException":
|
|
1021
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1022
|
-
case "ValidationException":
|
|
1023
|
-
case "com.amazonaws.medicalimaging#ValidationException":
|
|
1024
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1025
|
-
default:
|
|
1026
|
-
const parsedBody = parsedOutput.body;
|
|
1027
|
-
return throwDefaultError({
|
|
1028
|
-
output,
|
|
1029
|
-
parsedBody,
|
|
1030
|
-
errorCode
|
|
1031
|
-
});
|
|
1032
|
-
}
|
|
1033
|
-
}, "de_GetDatastoreCommandError");
|
|
1034
864
|
var de_GetDICOMImportJobCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1035
865
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1036
|
-
return
|
|
866
|
+
return de_CommandError(output, context);
|
|
1037
867
|
}
|
|
1038
868
|
const contents = (0, import_smithy_client.map)({
|
|
1039
869
|
$metadata: deserializeMetadata(output)
|
|
@@ -1045,43 +875,9 @@ var de_GetDICOMImportJobCommand = /* @__PURE__ */ __name(async (output, context)
|
|
|
1045
875
|
Object.assign(contents, doc);
|
|
1046
876
|
return contents;
|
|
1047
877
|
}, "de_GetDICOMImportJobCommand");
|
|
1048
|
-
var de_GetDICOMImportJobCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1049
|
-
const parsedOutput = {
|
|
1050
|
-
...output,
|
|
1051
|
-
body: await parseErrorBody(output.body, context)
|
|
1052
|
-
};
|
|
1053
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1054
|
-
switch (errorCode) {
|
|
1055
|
-
case "AccessDeniedException":
|
|
1056
|
-
case "com.amazonaws.medicalimaging#AccessDeniedException":
|
|
1057
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1058
|
-
case "ConflictException":
|
|
1059
|
-
case "com.amazonaws.medicalimaging#ConflictException":
|
|
1060
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1061
|
-
case "InternalServerException":
|
|
1062
|
-
case "com.amazonaws.medicalimaging#InternalServerException":
|
|
1063
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1064
|
-
case "ResourceNotFoundException":
|
|
1065
|
-
case "com.amazonaws.medicalimaging#ResourceNotFoundException":
|
|
1066
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1067
|
-
case "ThrottlingException":
|
|
1068
|
-
case "com.amazonaws.medicalimaging#ThrottlingException":
|
|
1069
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1070
|
-
case "ValidationException":
|
|
1071
|
-
case "com.amazonaws.medicalimaging#ValidationException":
|
|
1072
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1073
|
-
default:
|
|
1074
|
-
const parsedBody = parsedOutput.body;
|
|
1075
|
-
return throwDefaultError({
|
|
1076
|
-
output,
|
|
1077
|
-
parsedBody,
|
|
1078
|
-
errorCode
|
|
1079
|
-
});
|
|
1080
|
-
}
|
|
1081
|
-
}, "de_GetDICOMImportJobCommandError");
|
|
1082
878
|
var de_GetImageFrameCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1083
879
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1084
|
-
return
|
|
880
|
+
return de_CommandError(output, context);
|
|
1085
881
|
}
|
|
1086
882
|
const contents = (0, import_smithy_client.map)({
|
|
1087
883
|
$metadata: deserializeMetadata(output),
|
|
@@ -1092,43 +888,9 @@ var de_GetImageFrameCommand = /* @__PURE__ */ __name(async (output, context) =>
|
|
|
1092
888
|
contents.imageFrameBlob = data;
|
|
1093
889
|
return contents;
|
|
1094
890
|
}, "de_GetImageFrameCommand");
|
|
1095
|
-
var de_GetImageFrameCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1096
|
-
const parsedOutput = {
|
|
1097
|
-
...output,
|
|
1098
|
-
body: await parseErrorBody(output.body, context)
|
|
1099
|
-
};
|
|
1100
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1101
|
-
switch (errorCode) {
|
|
1102
|
-
case "AccessDeniedException":
|
|
1103
|
-
case "com.amazonaws.medicalimaging#AccessDeniedException":
|
|
1104
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1105
|
-
case "ConflictException":
|
|
1106
|
-
case "com.amazonaws.medicalimaging#ConflictException":
|
|
1107
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1108
|
-
case "InternalServerException":
|
|
1109
|
-
case "com.amazonaws.medicalimaging#InternalServerException":
|
|
1110
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1111
|
-
case "ResourceNotFoundException":
|
|
1112
|
-
case "com.amazonaws.medicalimaging#ResourceNotFoundException":
|
|
1113
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1114
|
-
case "ThrottlingException":
|
|
1115
|
-
case "com.amazonaws.medicalimaging#ThrottlingException":
|
|
1116
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1117
|
-
case "ValidationException":
|
|
1118
|
-
case "com.amazonaws.medicalimaging#ValidationException":
|
|
1119
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1120
|
-
default:
|
|
1121
|
-
const parsedBody = parsedOutput.body;
|
|
1122
|
-
return throwDefaultError({
|
|
1123
|
-
output,
|
|
1124
|
-
parsedBody,
|
|
1125
|
-
errorCode
|
|
1126
|
-
});
|
|
1127
|
-
}
|
|
1128
|
-
}, "de_GetImageFrameCommandError");
|
|
1129
891
|
var de_GetImageSetCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1130
892
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1131
|
-
return
|
|
893
|
+
return de_CommandError(output, context);
|
|
1132
894
|
}
|
|
1133
895
|
const contents = (0, import_smithy_client.map)({
|
|
1134
896
|
$metadata: deserializeMetadata(output)
|
|
@@ -1149,43 +911,9 @@ var de_GetImageSetCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
1149
911
|
Object.assign(contents, doc);
|
|
1150
912
|
return contents;
|
|
1151
913
|
}, "de_GetImageSetCommand");
|
|
1152
|
-
var de_GetImageSetCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1153
|
-
const parsedOutput = {
|
|
1154
|
-
...output,
|
|
1155
|
-
body: await parseErrorBody(output.body, context)
|
|
1156
|
-
};
|
|
1157
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1158
|
-
switch (errorCode) {
|
|
1159
|
-
case "AccessDeniedException":
|
|
1160
|
-
case "com.amazonaws.medicalimaging#AccessDeniedException":
|
|
1161
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1162
|
-
case "ConflictException":
|
|
1163
|
-
case "com.amazonaws.medicalimaging#ConflictException":
|
|
1164
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1165
|
-
case "InternalServerException":
|
|
1166
|
-
case "com.amazonaws.medicalimaging#InternalServerException":
|
|
1167
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1168
|
-
case "ResourceNotFoundException":
|
|
1169
|
-
case "com.amazonaws.medicalimaging#ResourceNotFoundException":
|
|
1170
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1171
|
-
case "ThrottlingException":
|
|
1172
|
-
case "com.amazonaws.medicalimaging#ThrottlingException":
|
|
1173
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1174
|
-
case "ValidationException":
|
|
1175
|
-
case "com.amazonaws.medicalimaging#ValidationException":
|
|
1176
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1177
|
-
default:
|
|
1178
|
-
const parsedBody = parsedOutput.body;
|
|
1179
|
-
return throwDefaultError({
|
|
1180
|
-
output,
|
|
1181
|
-
parsedBody,
|
|
1182
|
-
errorCode
|
|
1183
|
-
});
|
|
1184
|
-
}
|
|
1185
|
-
}, "de_GetImageSetCommandError");
|
|
1186
914
|
var de_GetImageSetMetadataCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1187
915
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1188
|
-
return
|
|
916
|
+
return de_CommandError(output, context);
|
|
1189
917
|
}
|
|
1190
918
|
const contents = (0, import_smithy_client.map)({
|
|
1191
919
|
$metadata: deserializeMetadata(output),
|
|
@@ -1197,43 +925,9 @@ var de_GetImageSetMetadataCommand = /* @__PURE__ */ __name(async (output, contex
|
|
|
1197
925
|
contents.imageSetMetadataBlob = data;
|
|
1198
926
|
return contents;
|
|
1199
927
|
}, "de_GetImageSetMetadataCommand");
|
|
1200
|
-
var de_GetImageSetMetadataCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1201
|
-
const parsedOutput = {
|
|
1202
|
-
...output,
|
|
1203
|
-
body: await parseErrorBody(output.body, context)
|
|
1204
|
-
};
|
|
1205
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1206
|
-
switch (errorCode) {
|
|
1207
|
-
case "AccessDeniedException":
|
|
1208
|
-
case "com.amazonaws.medicalimaging#AccessDeniedException":
|
|
1209
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1210
|
-
case "ConflictException":
|
|
1211
|
-
case "com.amazonaws.medicalimaging#ConflictException":
|
|
1212
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1213
|
-
case "InternalServerException":
|
|
1214
|
-
case "com.amazonaws.medicalimaging#InternalServerException":
|
|
1215
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1216
|
-
case "ResourceNotFoundException":
|
|
1217
|
-
case "com.amazonaws.medicalimaging#ResourceNotFoundException":
|
|
1218
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1219
|
-
case "ThrottlingException":
|
|
1220
|
-
case "com.amazonaws.medicalimaging#ThrottlingException":
|
|
1221
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1222
|
-
case "ValidationException":
|
|
1223
|
-
case "com.amazonaws.medicalimaging#ValidationException":
|
|
1224
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1225
|
-
default:
|
|
1226
|
-
const parsedBody = parsedOutput.body;
|
|
1227
|
-
return throwDefaultError({
|
|
1228
|
-
output,
|
|
1229
|
-
parsedBody,
|
|
1230
|
-
errorCode
|
|
1231
|
-
});
|
|
1232
|
-
}
|
|
1233
|
-
}, "de_GetImageSetMetadataCommandError");
|
|
1234
928
|
var de_ListDatastoresCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1235
929
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1236
|
-
return
|
|
930
|
+
return de_CommandError(output, context);
|
|
1237
931
|
}
|
|
1238
932
|
const contents = (0, import_smithy_client.map)({
|
|
1239
933
|
$metadata: deserializeMetadata(output)
|
|
@@ -1246,37 +940,9 @@ var de_ListDatastoresCommand = /* @__PURE__ */ __name(async (output, context) =>
|
|
|
1246
940
|
Object.assign(contents, doc);
|
|
1247
941
|
return contents;
|
|
1248
942
|
}, "de_ListDatastoresCommand");
|
|
1249
|
-
var de_ListDatastoresCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1250
|
-
const parsedOutput = {
|
|
1251
|
-
...output,
|
|
1252
|
-
body: await parseErrorBody(output.body, context)
|
|
1253
|
-
};
|
|
1254
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1255
|
-
switch (errorCode) {
|
|
1256
|
-
case "AccessDeniedException":
|
|
1257
|
-
case "com.amazonaws.medicalimaging#AccessDeniedException":
|
|
1258
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1259
|
-
case "InternalServerException":
|
|
1260
|
-
case "com.amazonaws.medicalimaging#InternalServerException":
|
|
1261
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1262
|
-
case "ThrottlingException":
|
|
1263
|
-
case "com.amazonaws.medicalimaging#ThrottlingException":
|
|
1264
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1265
|
-
case "ValidationException":
|
|
1266
|
-
case "com.amazonaws.medicalimaging#ValidationException":
|
|
1267
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1268
|
-
default:
|
|
1269
|
-
const parsedBody = parsedOutput.body;
|
|
1270
|
-
return throwDefaultError({
|
|
1271
|
-
output,
|
|
1272
|
-
parsedBody,
|
|
1273
|
-
errorCode
|
|
1274
|
-
});
|
|
1275
|
-
}
|
|
1276
|
-
}, "de_ListDatastoresCommandError");
|
|
1277
943
|
var de_ListDICOMImportJobsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1278
944
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1279
|
-
return
|
|
945
|
+
return de_CommandError(output, context);
|
|
1280
946
|
}
|
|
1281
947
|
const contents = (0, import_smithy_client.map)({
|
|
1282
948
|
$metadata: deserializeMetadata(output)
|
|
@@ -1289,43 +955,9 @@ var de_ListDICOMImportJobsCommand = /* @__PURE__ */ __name(async (output, contex
|
|
|
1289
955
|
Object.assign(contents, doc);
|
|
1290
956
|
return contents;
|
|
1291
957
|
}, "de_ListDICOMImportJobsCommand");
|
|
1292
|
-
var de_ListDICOMImportJobsCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1293
|
-
const parsedOutput = {
|
|
1294
|
-
...output,
|
|
1295
|
-
body: await parseErrorBody(output.body, context)
|
|
1296
|
-
};
|
|
1297
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1298
|
-
switch (errorCode) {
|
|
1299
|
-
case "AccessDeniedException":
|
|
1300
|
-
case "com.amazonaws.medicalimaging#AccessDeniedException":
|
|
1301
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1302
|
-
case "ConflictException":
|
|
1303
|
-
case "com.amazonaws.medicalimaging#ConflictException":
|
|
1304
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1305
|
-
case "InternalServerException":
|
|
1306
|
-
case "com.amazonaws.medicalimaging#InternalServerException":
|
|
1307
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1308
|
-
case "ResourceNotFoundException":
|
|
1309
|
-
case "com.amazonaws.medicalimaging#ResourceNotFoundException":
|
|
1310
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1311
|
-
case "ThrottlingException":
|
|
1312
|
-
case "com.amazonaws.medicalimaging#ThrottlingException":
|
|
1313
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1314
|
-
case "ValidationException":
|
|
1315
|
-
case "com.amazonaws.medicalimaging#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_ListDICOMImportJobsCommandError");
|
|
1326
958
|
var de_ListImageSetVersionsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1327
959
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1328
|
-
return
|
|
960
|
+
return de_CommandError(output, context);
|
|
1329
961
|
}
|
|
1330
962
|
const contents = (0, import_smithy_client.map)({
|
|
1331
963
|
$metadata: deserializeMetadata(output)
|
|
@@ -1338,43 +970,9 @@ var de_ListImageSetVersionsCommand = /* @__PURE__ */ __name(async (output, conte
|
|
|
1338
970
|
Object.assign(contents, doc);
|
|
1339
971
|
return contents;
|
|
1340
972
|
}, "de_ListImageSetVersionsCommand");
|
|
1341
|
-
var de_ListImageSetVersionsCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1342
|
-
const parsedOutput = {
|
|
1343
|
-
...output,
|
|
1344
|
-
body: await parseErrorBody(output.body, context)
|
|
1345
|
-
};
|
|
1346
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1347
|
-
switch (errorCode) {
|
|
1348
|
-
case "AccessDeniedException":
|
|
1349
|
-
case "com.amazonaws.medicalimaging#AccessDeniedException":
|
|
1350
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1351
|
-
case "ConflictException":
|
|
1352
|
-
case "com.amazonaws.medicalimaging#ConflictException":
|
|
1353
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1354
|
-
case "InternalServerException":
|
|
1355
|
-
case "com.amazonaws.medicalimaging#InternalServerException":
|
|
1356
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1357
|
-
case "ResourceNotFoundException":
|
|
1358
|
-
case "com.amazonaws.medicalimaging#ResourceNotFoundException":
|
|
1359
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1360
|
-
case "ThrottlingException":
|
|
1361
|
-
case "com.amazonaws.medicalimaging#ThrottlingException":
|
|
1362
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1363
|
-
case "ValidationException":
|
|
1364
|
-
case "com.amazonaws.medicalimaging#ValidationException":
|
|
1365
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1366
|
-
default:
|
|
1367
|
-
const parsedBody = parsedOutput.body;
|
|
1368
|
-
return throwDefaultError({
|
|
1369
|
-
output,
|
|
1370
|
-
parsedBody,
|
|
1371
|
-
errorCode
|
|
1372
|
-
});
|
|
1373
|
-
}
|
|
1374
|
-
}, "de_ListImageSetVersionsCommandError");
|
|
1375
973
|
var de_ListTagsForResourceCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1376
974
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1377
|
-
return
|
|
975
|
+
return de_CommandError(output, context);
|
|
1378
976
|
}
|
|
1379
977
|
const contents = (0, import_smithy_client.map)({
|
|
1380
978
|
$metadata: deserializeMetadata(output)
|
|
@@ -1386,40 +984,9 @@ var de_ListTagsForResourceCommand = /* @__PURE__ */ __name(async (output, contex
|
|
|
1386
984
|
Object.assign(contents, doc);
|
|
1387
985
|
return contents;
|
|
1388
986
|
}, "de_ListTagsForResourceCommand");
|
|
1389
|
-
var de_ListTagsForResourceCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1390
|
-
const parsedOutput = {
|
|
1391
|
-
...output,
|
|
1392
|
-
body: await parseErrorBody(output.body, context)
|
|
1393
|
-
};
|
|
1394
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1395
|
-
switch (errorCode) {
|
|
1396
|
-
case "AccessDeniedException":
|
|
1397
|
-
case "com.amazonaws.medicalimaging#AccessDeniedException":
|
|
1398
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1399
|
-
case "InternalServerException":
|
|
1400
|
-
case "com.amazonaws.medicalimaging#InternalServerException":
|
|
1401
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1402
|
-
case "ResourceNotFoundException":
|
|
1403
|
-
case "com.amazonaws.medicalimaging#ResourceNotFoundException":
|
|
1404
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1405
|
-
case "ThrottlingException":
|
|
1406
|
-
case "com.amazonaws.medicalimaging#ThrottlingException":
|
|
1407
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1408
|
-
case "ValidationException":
|
|
1409
|
-
case "com.amazonaws.medicalimaging#ValidationException":
|
|
1410
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1411
|
-
default:
|
|
1412
|
-
const parsedBody = parsedOutput.body;
|
|
1413
|
-
return throwDefaultError({
|
|
1414
|
-
output,
|
|
1415
|
-
parsedBody,
|
|
1416
|
-
errorCode
|
|
1417
|
-
});
|
|
1418
|
-
}
|
|
1419
|
-
}, "de_ListTagsForResourceCommandError");
|
|
1420
987
|
var de_SearchImageSetsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1421
988
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1422
|
-
return
|
|
989
|
+
return de_CommandError(output, context);
|
|
1423
990
|
}
|
|
1424
991
|
const contents = (0, import_smithy_client.map)({
|
|
1425
992
|
$metadata: deserializeMetadata(output)
|
|
@@ -1432,43 +999,9 @@ var de_SearchImageSetsCommand = /* @__PURE__ */ __name(async (output, context) =
|
|
|
1432
999
|
Object.assign(contents, doc);
|
|
1433
1000
|
return contents;
|
|
1434
1001
|
}, "de_SearchImageSetsCommand");
|
|
1435
|
-
var de_SearchImageSetsCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1436
|
-
const parsedOutput = {
|
|
1437
|
-
...output,
|
|
1438
|
-
body: await parseErrorBody(output.body, context)
|
|
1439
|
-
};
|
|
1440
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1441
|
-
switch (errorCode) {
|
|
1442
|
-
case "AccessDeniedException":
|
|
1443
|
-
case "com.amazonaws.medicalimaging#AccessDeniedException":
|
|
1444
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1445
|
-
case "ConflictException":
|
|
1446
|
-
case "com.amazonaws.medicalimaging#ConflictException":
|
|
1447
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1448
|
-
case "InternalServerException":
|
|
1449
|
-
case "com.amazonaws.medicalimaging#InternalServerException":
|
|
1450
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1451
|
-
case "ResourceNotFoundException":
|
|
1452
|
-
case "com.amazonaws.medicalimaging#ResourceNotFoundException":
|
|
1453
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1454
|
-
case "ThrottlingException":
|
|
1455
|
-
case "com.amazonaws.medicalimaging#ThrottlingException":
|
|
1456
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1457
|
-
case "ValidationException":
|
|
1458
|
-
case "com.amazonaws.medicalimaging#ValidationException":
|
|
1459
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1460
|
-
default:
|
|
1461
|
-
const parsedBody = parsedOutput.body;
|
|
1462
|
-
return throwDefaultError({
|
|
1463
|
-
output,
|
|
1464
|
-
parsedBody,
|
|
1465
|
-
errorCode
|
|
1466
|
-
});
|
|
1467
|
-
}
|
|
1468
|
-
}, "de_SearchImageSetsCommandError");
|
|
1469
1002
|
var de_StartDICOMImportJobCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1470
1003
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1471
|
-
return
|
|
1004
|
+
return de_CommandError(output, context);
|
|
1472
1005
|
}
|
|
1473
1006
|
const contents = (0, import_smithy_client.map)({
|
|
1474
1007
|
$metadata: deserializeMetadata(output)
|
|
@@ -1483,46 +1016,9 @@ var de_StartDICOMImportJobCommand = /* @__PURE__ */ __name(async (output, contex
|
|
|
1483
1016
|
Object.assign(contents, doc);
|
|
1484
1017
|
return contents;
|
|
1485
1018
|
}, "de_StartDICOMImportJobCommand");
|
|
1486
|
-
var de_StartDICOMImportJobCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1487
|
-
const parsedOutput = {
|
|
1488
|
-
...output,
|
|
1489
|
-
body: await parseErrorBody(output.body, context)
|
|
1490
|
-
};
|
|
1491
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1492
|
-
switch (errorCode) {
|
|
1493
|
-
case "AccessDeniedException":
|
|
1494
|
-
case "com.amazonaws.medicalimaging#AccessDeniedException":
|
|
1495
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1496
|
-
case "ConflictException":
|
|
1497
|
-
case "com.amazonaws.medicalimaging#ConflictException":
|
|
1498
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1499
|
-
case "InternalServerException":
|
|
1500
|
-
case "com.amazonaws.medicalimaging#InternalServerException":
|
|
1501
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1502
|
-
case "ResourceNotFoundException":
|
|
1503
|
-
case "com.amazonaws.medicalimaging#ResourceNotFoundException":
|
|
1504
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1505
|
-
case "ServiceQuotaExceededException":
|
|
1506
|
-
case "com.amazonaws.medicalimaging#ServiceQuotaExceededException":
|
|
1507
|
-
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
1508
|
-
case "ThrottlingException":
|
|
1509
|
-
case "com.amazonaws.medicalimaging#ThrottlingException":
|
|
1510
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1511
|
-
case "ValidationException":
|
|
1512
|
-
case "com.amazonaws.medicalimaging#ValidationException":
|
|
1513
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1514
|
-
default:
|
|
1515
|
-
const parsedBody = parsedOutput.body;
|
|
1516
|
-
return throwDefaultError({
|
|
1517
|
-
output,
|
|
1518
|
-
parsedBody,
|
|
1519
|
-
errorCode
|
|
1520
|
-
});
|
|
1521
|
-
}
|
|
1522
|
-
}, "de_StartDICOMImportJobCommandError");
|
|
1523
1019
|
var de_TagResourceCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1524
1020
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1525
|
-
return
|
|
1021
|
+
return de_CommandError(output, context);
|
|
1526
1022
|
}
|
|
1527
1023
|
const contents = (0, import_smithy_client.map)({
|
|
1528
1024
|
$metadata: deserializeMetadata(output)
|
|
@@ -1530,40 +1026,9 @@ var de_TagResourceCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
1530
1026
|
await (0, import_smithy_client.collectBody)(output.body, context);
|
|
1531
1027
|
return contents;
|
|
1532
1028
|
}, "de_TagResourceCommand");
|
|
1533
|
-
var de_TagResourceCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1534
|
-
const parsedOutput = {
|
|
1535
|
-
...output,
|
|
1536
|
-
body: await parseErrorBody(output.body, context)
|
|
1537
|
-
};
|
|
1538
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1539
|
-
switch (errorCode) {
|
|
1540
|
-
case "AccessDeniedException":
|
|
1541
|
-
case "com.amazonaws.medicalimaging#AccessDeniedException":
|
|
1542
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1543
|
-
case "InternalServerException":
|
|
1544
|
-
case "com.amazonaws.medicalimaging#InternalServerException":
|
|
1545
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1546
|
-
case "ResourceNotFoundException":
|
|
1547
|
-
case "com.amazonaws.medicalimaging#ResourceNotFoundException":
|
|
1548
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1549
|
-
case "ThrottlingException":
|
|
1550
|
-
case "com.amazonaws.medicalimaging#ThrottlingException":
|
|
1551
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1552
|
-
case "ValidationException":
|
|
1553
|
-
case "com.amazonaws.medicalimaging#ValidationException":
|
|
1554
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1555
|
-
default:
|
|
1556
|
-
const parsedBody = parsedOutput.body;
|
|
1557
|
-
return throwDefaultError({
|
|
1558
|
-
output,
|
|
1559
|
-
parsedBody,
|
|
1560
|
-
errorCode
|
|
1561
|
-
});
|
|
1562
|
-
}
|
|
1563
|
-
}, "de_TagResourceCommandError");
|
|
1564
1029
|
var de_UntagResourceCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1565
1030
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1566
|
-
return
|
|
1031
|
+
return de_CommandError(output, context);
|
|
1567
1032
|
}
|
|
1568
1033
|
const contents = (0, import_smithy_client.map)({
|
|
1569
1034
|
$metadata: deserializeMetadata(output)
|
|
@@ -1571,40 +1036,9 @@ var de_UntagResourceCommand = /* @__PURE__ */ __name(async (output, context) =>
|
|
|
1571
1036
|
await (0, import_smithy_client.collectBody)(output.body, context);
|
|
1572
1037
|
return contents;
|
|
1573
1038
|
}, "de_UntagResourceCommand");
|
|
1574
|
-
var de_UntagResourceCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1575
|
-
const parsedOutput = {
|
|
1576
|
-
...output,
|
|
1577
|
-
body: await parseErrorBody(output.body, context)
|
|
1578
|
-
};
|
|
1579
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1580
|
-
switch (errorCode) {
|
|
1581
|
-
case "AccessDeniedException":
|
|
1582
|
-
case "com.amazonaws.medicalimaging#AccessDeniedException":
|
|
1583
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1584
|
-
case "InternalServerException":
|
|
1585
|
-
case "com.amazonaws.medicalimaging#InternalServerException":
|
|
1586
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1587
|
-
case "ResourceNotFoundException":
|
|
1588
|
-
case "com.amazonaws.medicalimaging#ResourceNotFoundException":
|
|
1589
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1590
|
-
case "ThrottlingException":
|
|
1591
|
-
case "com.amazonaws.medicalimaging#ThrottlingException":
|
|
1592
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1593
|
-
case "ValidationException":
|
|
1594
|
-
case "com.amazonaws.medicalimaging#ValidationException":
|
|
1595
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1596
|
-
default:
|
|
1597
|
-
const parsedBody = parsedOutput.body;
|
|
1598
|
-
return throwDefaultError({
|
|
1599
|
-
output,
|
|
1600
|
-
parsedBody,
|
|
1601
|
-
errorCode
|
|
1602
|
-
});
|
|
1603
|
-
}
|
|
1604
|
-
}, "de_UntagResourceCommandError");
|
|
1605
1039
|
var de_UpdateImageSetMetadataCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1606
1040
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1607
|
-
return
|
|
1041
|
+
return de_CommandError(output, context);
|
|
1608
1042
|
}
|
|
1609
1043
|
const contents = (0, import_smithy_client.map)({
|
|
1610
1044
|
$metadata: deserializeMetadata(output)
|
|
@@ -1623,7 +1057,7 @@ var de_UpdateImageSetMetadataCommand = /* @__PURE__ */ __name(async (output, con
|
|
|
1623
1057
|
Object.assign(contents, doc);
|
|
1624
1058
|
return contents;
|
|
1625
1059
|
}, "de_UpdateImageSetMetadataCommand");
|
|
1626
|
-
var
|
|
1060
|
+
var de_CommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1627
1061
|
const parsedOutput = {
|
|
1628
1062
|
...output,
|
|
1629
1063
|
body: await parseErrorBody(output.body, context)
|
|
@@ -1659,7 +1093,7 @@ var de_UpdateImageSetMetadataCommandError = /* @__PURE__ */ __name(async (output
|
|
|
1659
1093
|
errorCode
|
|
1660
1094
|
});
|
|
1661
1095
|
}
|
|
1662
|
-
}, "
|
|
1096
|
+
}, "de_CommandError");
|
|
1663
1097
|
var throwDefaultError = (0, import_smithy_client.withBaseException)(MedicalImagingServiceException);
|
|
1664
1098
|
var de_AccessDeniedExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
|
|
1665
1099
|
const contents = (0, import_smithy_client.map)({});
|