@aws-sdk/client-transcribe 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 +71 -1217
- package/dist-es/protocols/Aws_json1_1.js +111 -1257
- package/package.json +3 -3
package/dist-cjs/index.js
CHANGED
|
@@ -817,7 +817,7 @@ var se_UpdateVocabularyFilterCommand = /* @__PURE__ */ __name(async (input, cont
|
|
|
817
817
|
}, "se_UpdateVocabularyFilterCommand");
|
|
818
818
|
var de_CreateCallAnalyticsCategoryCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
819
819
|
if (output.statusCode >= 300) {
|
|
820
|
-
return
|
|
820
|
+
return de_CommandError(output, context);
|
|
821
821
|
}
|
|
822
822
|
const data = await parseBody(output.body, context);
|
|
823
823
|
let contents = {};
|
|
@@ -828,37 +828,9 @@ var de_CreateCallAnalyticsCategoryCommand = /* @__PURE__ */ __name(async (output
|
|
|
828
828
|
};
|
|
829
829
|
return response;
|
|
830
830
|
}, "de_CreateCallAnalyticsCategoryCommand");
|
|
831
|
-
var de_CreateCallAnalyticsCategoryCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
832
|
-
const parsedOutput = {
|
|
833
|
-
...output,
|
|
834
|
-
body: await parseErrorBody(output.body, context)
|
|
835
|
-
};
|
|
836
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
837
|
-
switch (errorCode) {
|
|
838
|
-
case "BadRequestException":
|
|
839
|
-
case "com.amazonaws.transcribe#BadRequestException":
|
|
840
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
841
|
-
case "ConflictException":
|
|
842
|
-
case "com.amazonaws.transcribe#ConflictException":
|
|
843
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
844
|
-
case "InternalFailureException":
|
|
845
|
-
case "com.amazonaws.transcribe#InternalFailureException":
|
|
846
|
-
throw await de_InternalFailureExceptionRes(parsedOutput, context);
|
|
847
|
-
case "LimitExceededException":
|
|
848
|
-
case "com.amazonaws.transcribe#LimitExceededException":
|
|
849
|
-
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
850
|
-
default:
|
|
851
|
-
const parsedBody = parsedOutput.body;
|
|
852
|
-
return throwDefaultError({
|
|
853
|
-
output,
|
|
854
|
-
parsedBody,
|
|
855
|
-
errorCode
|
|
856
|
-
});
|
|
857
|
-
}
|
|
858
|
-
}, "de_CreateCallAnalyticsCategoryCommandError");
|
|
859
831
|
var de_CreateLanguageModelCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
860
832
|
if (output.statusCode >= 300) {
|
|
861
|
-
return
|
|
833
|
+
return de_CommandError(output, context);
|
|
862
834
|
}
|
|
863
835
|
const data = await parseBody(output.body, context);
|
|
864
836
|
let contents = {};
|
|
@@ -869,37 +841,9 @@ var de_CreateLanguageModelCommand = /* @__PURE__ */ __name(async (output, contex
|
|
|
869
841
|
};
|
|
870
842
|
return response;
|
|
871
843
|
}, "de_CreateLanguageModelCommand");
|
|
872
|
-
var de_CreateLanguageModelCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
873
|
-
const parsedOutput = {
|
|
874
|
-
...output,
|
|
875
|
-
body: await parseErrorBody(output.body, context)
|
|
876
|
-
};
|
|
877
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
878
|
-
switch (errorCode) {
|
|
879
|
-
case "BadRequestException":
|
|
880
|
-
case "com.amazonaws.transcribe#BadRequestException":
|
|
881
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
882
|
-
case "ConflictException":
|
|
883
|
-
case "com.amazonaws.transcribe#ConflictException":
|
|
884
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
885
|
-
case "InternalFailureException":
|
|
886
|
-
case "com.amazonaws.transcribe#InternalFailureException":
|
|
887
|
-
throw await de_InternalFailureExceptionRes(parsedOutput, context);
|
|
888
|
-
case "LimitExceededException":
|
|
889
|
-
case "com.amazonaws.transcribe#LimitExceededException":
|
|
890
|
-
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
891
|
-
default:
|
|
892
|
-
const parsedBody = parsedOutput.body;
|
|
893
|
-
return throwDefaultError({
|
|
894
|
-
output,
|
|
895
|
-
parsedBody,
|
|
896
|
-
errorCode
|
|
897
|
-
});
|
|
898
|
-
}
|
|
899
|
-
}, "de_CreateLanguageModelCommandError");
|
|
900
844
|
var de_CreateMedicalVocabularyCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
901
845
|
if (output.statusCode >= 300) {
|
|
902
|
-
return
|
|
846
|
+
return de_CommandError(output, context);
|
|
903
847
|
}
|
|
904
848
|
const data = await parseBody(output.body, context);
|
|
905
849
|
let contents = {};
|
|
@@ -910,37 +854,9 @@ var de_CreateMedicalVocabularyCommand = /* @__PURE__ */ __name(async (output, co
|
|
|
910
854
|
};
|
|
911
855
|
return response;
|
|
912
856
|
}, "de_CreateMedicalVocabularyCommand");
|
|
913
|
-
var de_CreateMedicalVocabularyCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
914
|
-
const parsedOutput = {
|
|
915
|
-
...output,
|
|
916
|
-
body: await parseErrorBody(output.body, context)
|
|
917
|
-
};
|
|
918
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
919
|
-
switch (errorCode) {
|
|
920
|
-
case "BadRequestException":
|
|
921
|
-
case "com.amazonaws.transcribe#BadRequestException":
|
|
922
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
923
|
-
case "ConflictException":
|
|
924
|
-
case "com.amazonaws.transcribe#ConflictException":
|
|
925
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
926
|
-
case "InternalFailureException":
|
|
927
|
-
case "com.amazonaws.transcribe#InternalFailureException":
|
|
928
|
-
throw await de_InternalFailureExceptionRes(parsedOutput, context);
|
|
929
|
-
case "LimitExceededException":
|
|
930
|
-
case "com.amazonaws.transcribe#LimitExceededException":
|
|
931
|
-
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
932
|
-
default:
|
|
933
|
-
const parsedBody = parsedOutput.body;
|
|
934
|
-
return throwDefaultError({
|
|
935
|
-
output,
|
|
936
|
-
parsedBody,
|
|
937
|
-
errorCode
|
|
938
|
-
});
|
|
939
|
-
}
|
|
940
|
-
}, "de_CreateMedicalVocabularyCommandError");
|
|
941
857
|
var de_CreateVocabularyCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
942
858
|
if (output.statusCode >= 300) {
|
|
943
|
-
return
|
|
859
|
+
return de_CommandError(output, context);
|
|
944
860
|
}
|
|
945
861
|
const data = await parseBody(output.body, context);
|
|
946
862
|
let contents = {};
|
|
@@ -951,37 +867,9 @@ var de_CreateVocabularyCommand = /* @__PURE__ */ __name(async (output, context)
|
|
|
951
867
|
};
|
|
952
868
|
return response;
|
|
953
869
|
}, "de_CreateVocabularyCommand");
|
|
954
|
-
var de_CreateVocabularyCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
955
|
-
const parsedOutput = {
|
|
956
|
-
...output,
|
|
957
|
-
body: await parseErrorBody(output.body, context)
|
|
958
|
-
};
|
|
959
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
960
|
-
switch (errorCode) {
|
|
961
|
-
case "BadRequestException":
|
|
962
|
-
case "com.amazonaws.transcribe#BadRequestException":
|
|
963
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
964
|
-
case "ConflictException":
|
|
965
|
-
case "com.amazonaws.transcribe#ConflictException":
|
|
966
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
967
|
-
case "InternalFailureException":
|
|
968
|
-
case "com.amazonaws.transcribe#InternalFailureException":
|
|
969
|
-
throw await de_InternalFailureExceptionRes(parsedOutput, context);
|
|
970
|
-
case "LimitExceededException":
|
|
971
|
-
case "com.amazonaws.transcribe#LimitExceededException":
|
|
972
|
-
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
973
|
-
default:
|
|
974
|
-
const parsedBody = parsedOutput.body;
|
|
975
|
-
return throwDefaultError({
|
|
976
|
-
output,
|
|
977
|
-
parsedBody,
|
|
978
|
-
errorCode
|
|
979
|
-
});
|
|
980
|
-
}
|
|
981
|
-
}, "de_CreateVocabularyCommandError");
|
|
982
870
|
var de_CreateVocabularyFilterCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
983
871
|
if (output.statusCode >= 300) {
|
|
984
|
-
return
|
|
872
|
+
return de_CommandError(output, context);
|
|
985
873
|
}
|
|
986
874
|
const data = await parseBody(output.body, context);
|
|
987
875
|
let contents = {};
|
|
@@ -992,37 +880,9 @@ var de_CreateVocabularyFilterCommand = /* @__PURE__ */ __name(async (output, con
|
|
|
992
880
|
};
|
|
993
881
|
return response;
|
|
994
882
|
}, "de_CreateVocabularyFilterCommand");
|
|
995
|
-
var de_CreateVocabularyFilterCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
996
|
-
const parsedOutput = {
|
|
997
|
-
...output,
|
|
998
|
-
body: await parseErrorBody(output.body, context)
|
|
999
|
-
};
|
|
1000
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1001
|
-
switch (errorCode) {
|
|
1002
|
-
case "BadRequestException":
|
|
1003
|
-
case "com.amazonaws.transcribe#BadRequestException":
|
|
1004
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
1005
|
-
case "ConflictException":
|
|
1006
|
-
case "com.amazonaws.transcribe#ConflictException":
|
|
1007
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1008
|
-
case "InternalFailureException":
|
|
1009
|
-
case "com.amazonaws.transcribe#InternalFailureException":
|
|
1010
|
-
throw await de_InternalFailureExceptionRes(parsedOutput, context);
|
|
1011
|
-
case "LimitExceededException":
|
|
1012
|
-
case "com.amazonaws.transcribe#LimitExceededException":
|
|
1013
|
-
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
1014
|
-
default:
|
|
1015
|
-
const parsedBody = parsedOutput.body;
|
|
1016
|
-
return throwDefaultError({
|
|
1017
|
-
output,
|
|
1018
|
-
parsedBody,
|
|
1019
|
-
errorCode
|
|
1020
|
-
});
|
|
1021
|
-
}
|
|
1022
|
-
}, "de_CreateVocabularyFilterCommandError");
|
|
1023
883
|
var de_DeleteCallAnalyticsCategoryCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1024
884
|
if (output.statusCode >= 300) {
|
|
1025
|
-
return
|
|
885
|
+
return de_CommandError(output, context);
|
|
1026
886
|
}
|
|
1027
887
|
const data = await parseBody(output.body, context);
|
|
1028
888
|
let contents = {};
|
|
@@ -1033,37 +893,9 @@ var de_DeleteCallAnalyticsCategoryCommand = /* @__PURE__ */ __name(async (output
|
|
|
1033
893
|
};
|
|
1034
894
|
return response;
|
|
1035
895
|
}, "de_DeleteCallAnalyticsCategoryCommand");
|
|
1036
|
-
var de_DeleteCallAnalyticsCategoryCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1037
|
-
const parsedOutput = {
|
|
1038
|
-
...output,
|
|
1039
|
-
body: await parseErrorBody(output.body, context)
|
|
1040
|
-
};
|
|
1041
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1042
|
-
switch (errorCode) {
|
|
1043
|
-
case "BadRequestException":
|
|
1044
|
-
case "com.amazonaws.transcribe#BadRequestException":
|
|
1045
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
1046
|
-
case "InternalFailureException":
|
|
1047
|
-
case "com.amazonaws.transcribe#InternalFailureException":
|
|
1048
|
-
throw await de_InternalFailureExceptionRes(parsedOutput, context);
|
|
1049
|
-
case "LimitExceededException":
|
|
1050
|
-
case "com.amazonaws.transcribe#LimitExceededException":
|
|
1051
|
-
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
1052
|
-
case "NotFoundException":
|
|
1053
|
-
case "com.amazonaws.transcribe#NotFoundException":
|
|
1054
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
1055
|
-
default:
|
|
1056
|
-
const parsedBody = parsedOutput.body;
|
|
1057
|
-
return throwDefaultError({
|
|
1058
|
-
output,
|
|
1059
|
-
parsedBody,
|
|
1060
|
-
errorCode
|
|
1061
|
-
});
|
|
1062
|
-
}
|
|
1063
|
-
}, "de_DeleteCallAnalyticsCategoryCommandError");
|
|
1064
896
|
var de_DeleteCallAnalyticsJobCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1065
897
|
if (output.statusCode >= 300) {
|
|
1066
|
-
return
|
|
898
|
+
return de_CommandError(output, context);
|
|
1067
899
|
}
|
|
1068
900
|
const data = await parseBody(output.body, context);
|
|
1069
901
|
let contents = {};
|
|
@@ -1074,34 +906,9 @@ var de_DeleteCallAnalyticsJobCommand = /* @__PURE__ */ __name(async (output, con
|
|
|
1074
906
|
};
|
|
1075
907
|
return response;
|
|
1076
908
|
}, "de_DeleteCallAnalyticsJobCommand");
|
|
1077
|
-
var de_DeleteCallAnalyticsJobCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1078
|
-
const parsedOutput = {
|
|
1079
|
-
...output,
|
|
1080
|
-
body: await parseErrorBody(output.body, context)
|
|
1081
|
-
};
|
|
1082
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1083
|
-
switch (errorCode) {
|
|
1084
|
-
case "BadRequestException":
|
|
1085
|
-
case "com.amazonaws.transcribe#BadRequestException":
|
|
1086
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
1087
|
-
case "InternalFailureException":
|
|
1088
|
-
case "com.amazonaws.transcribe#InternalFailureException":
|
|
1089
|
-
throw await de_InternalFailureExceptionRes(parsedOutput, context);
|
|
1090
|
-
case "LimitExceededException":
|
|
1091
|
-
case "com.amazonaws.transcribe#LimitExceededException":
|
|
1092
|
-
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
1093
|
-
default:
|
|
1094
|
-
const parsedBody = parsedOutput.body;
|
|
1095
|
-
return throwDefaultError({
|
|
1096
|
-
output,
|
|
1097
|
-
parsedBody,
|
|
1098
|
-
errorCode
|
|
1099
|
-
});
|
|
1100
|
-
}
|
|
1101
|
-
}, "de_DeleteCallAnalyticsJobCommandError");
|
|
1102
909
|
var de_DeleteLanguageModelCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1103
910
|
if (output.statusCode >= 300) {
|
|
1104
|
-
return
|
|
911
|
+
return de_CommandError(output, context);
|
|
1105
912
|
}
|
|
1106
913
|
await (0, import_smithy_client.collectBody)(output.body, context);
|
|
1107
914
|
const response = {
|
|
@@ -1109,34 +916,9 @@ var de_DeleteLanguageModelCommand = /* @__PURE__ */ __name(async (output, contex
|
|
|
1109
916
|
};
|
|
1110
917
|
return response;
|
|
1111
918
|
}, "de_DeleteLanguageModelCommand");
|
|
1112
|
-
var de_DeleteLanguageModelCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1113
|
-
const parsedOutput = {
|
|
1114
|
-
...output,
|
|
1115
|
-
body: await parseErrorBody(output.body, context)
|
|
1116
|
-
};
|
|
1117
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1118
|
-
switch (errorCode) {
|
|
1119
|
-
case "BadRequestException":
|
|
1120
|
-
case "com.amazonaws.transcribe#BadRequestException":
|
|
1121
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
1122
|
-
case "InternalFailureException":
|
|
1123
|
-
case "com.amazonaws.transcribe#InternalFailureException":
|
|
1124
|
-
throw await de_InternalFailureExceptionRes(parsedOutput, context);
|
|
1125
|
-
case "LimitExceededException":
|
|
1126
|
-
case "com.amazonaws.transcribe#LimitExceededException":
|
|
1127
|
-
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
1128
|
-
default:
|
|
1129
|
-
const parsedBody = parsedOutput.body;
|
|
1130
|
-
return throwDefaultError({
|
|
1131
|
-
output,
|
|
1132
|
-
parsedBody,
|
|
1133
|
-
errorCode
|
|
1134
|
-
});
|
|
1135
|
-
}
|
|
1136
|
-
}, "de_DeleteLanguageModelCommandError");
|
|
1137
919
|
var de_DeleteMedicalScribeJobCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1138
920
|
if (output.statusCode >= 300) {
|
|
1139
|
-
return
|
|
921
|
+
return de_CommandError(output, context);
|
|
1140
922
|
}
|
|
1141
923
|
await (0, import_smithy_client.collectBody)(output.body, context);
|
|
1142
924
|
const response = {
|
|
@@ -1144,34 +926,9 @@ var de_DeleteMedicalScribeJobCommand = /* @__PURE__ */ __name(async (output, con
|
|
|
1144
926
|
};
|
|
1145
927
|
return response;
|
|
1146
928
|
}, "de_DeleteMedicalScribeJobCommand");
|
|
1147
|
-
var de_DeleteMedicalScribeJobCommandError = /* @__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 "BadRequestException":
|
|
1155
|
-
case "com.amazonaws.transcribe#BadRequestException":
|
|
1156
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
1157
|
-
case "InternalFailureException":
|
|
1158
|
-
case "com.amazonaws.transcribe#InternalFailureException":
|
|
1159
|
-
throw await de_InternalFailureExceptionRes(parsedOutput, context);
|
|
1160
|
-
case "LimitExceededException":
|
|
1161
|
-
case "com.amazonaws.transcribe#LimitExceededException":
|
|
1162
|
-
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
1163
|
-
default:
|
|
1164
|
-
const parsedBody = parsedOutput.body;
|
|
1165
|
-
return throwDefaultError({
|
|
1166
|
-
output,
|
|
1167
|
-
parsedBody,
|
|
1168
|
-
errorCode
|
|
1169
|
-
});
|
|
1170
|
-
}
|
|
1171
|
-
}, "de_DeleteMedicalScribeJobCommandError");
|
|
1172
929
|
var de_DeleteMedicalTranscriptionJobCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1173
930
|
if (output.statusCode >= 300) {
|
|
1174
|
-
return
|
|
931
|
+
return de_CommandError(output, context);
|
|
1175
932
|
}
|
|
1176
933
|
await (0, import_smithy_client.collectBody)(output.body, context);
|
|
1177
934
|
const response = {
|
|
@@ -1179,34 +936,9 @@ var de_DeleteMedicalTranscriptionJobCommand = /* @__PURE__ */ __name(async (outp
|
|
|
1179
936
|
};
|
|
1180
937
|
return response;
|
|
1181
938
|
}, "de_DeleteMedicalTranscriptionJobCommand");
|
|
1182
|
-
var de_DeleteMedicalTranscriptionJobCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1183
|
-
const parsedOutput = {
|
|
1184
|
-
...output,
|
|
1185
|
-
body: await parseErrorBody(output.body, context)
|
|
1186
|
-
};
|
|
1187
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1188
|
-
switch (errorCode) {
|
|
1189
|
-
case "BadRequestException":
|
|
1190
|
-
case "com.amazonaws.transcribe#BadRequestException":
|
|
1191
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
1192
|
-
case "InternalFailureException":
|
|
1193
|
-
case "com.amazonaws.transcribe#InternalFailureException":
|
|
1194
|
-
throw await de_InternalFailureExceptionRes(parsedOutput, context);
|
|
1195
|
-
case "LimitExceededException":
|
|
1196
|
-
case "com.amazonaws.transcribe#LimitExceededException":
|
|
1197
|
-
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
1198
|
-
default:
|
|
1199
|
-
const parsedBody = parsedOutput.body;
|
|
1200
|
-
return throwDefaultError({
|
|
1201
|
-
output,
|
|
1202
|
-
parsedBody,
|
|
1203
|
-
errorCode
|
|
1204
|
-
});
|
|
1205
|
-
}
|
|
1206
|
-
}, "de_DeleteMedicalTranscriptionJobCommandError");
|
|
1207
939
|
var de_DeleteMedicalVocabularyCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1208
940
|
if (output.statusCode >= 300) {
|
|
1209
|
-
return
|
|
941
|
+
return de_CommandError(output, context);
|
|
1210
942
|
}
|
|
1211
943
|
await (0, import_smithy_client.collectBody)(output.body, context);
|
|
1212
944
|
const response = {
|
|
@@ -1214,37 +946,9 @@ var de_DeleteMedicalVocabularyCommand = /* @__PURE__ */ __name(async (output, co
|
|
|
1214
946
|
};
|
|
1215
947
|
return response;
|
|
1216
948
|
}, "de_DeleteMedicalVocabularyCommand");
|
|
1217
|
-
var de_DeleteMedicalVocabularyCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1218
|
-
const parsedOutput = {
|
|
1219
|
-
...output,
|
|
1220
|
-
body: await parseErrorBody(output.body, context)
|
|
1221
|
-
};
|
|
1222
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1223
|
-
switch (errorCode) {
|
|
1224
|
-
case "BadRequestException":
|
|
1225
|
-
case "com.amazonaws.transcribe#BadRequestException":
|
|
1226
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
1227
|
-
case "InternalFailureException":
|
|
1228
|
-
case "com.amazonaws.transcribe#InternalFailureException":
|
|
1229
|
-
throw await de_InternalFailureExceptionRes(parsedOutput, context);
|
|
1230
|
-
case "LimitExceededException":
|
|
1231
|
-
case "com.amazonaws.transcribe#LimitExceededException":
|
|
1232
|
-
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
1233
|
-
case "NotFoundException":
|
|
1234
|
-
case "com.amazonaws.transcribe#NotFoundException":
|
|
1235
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
1236
|
-
default:
|
|
1237
|
-
const parsedBody = parsedOutput.body;
|
|
1238
|
-
return throwDefaultError({
|
|
1239
|
-
output,
|
|
1240
|
-
parsedBody,
|
|
1241
|
-
errorCode
|
|
1242
|
-
});
|
|
1243
|
-
}
|
|
1244
|
-
}, "de_DeleteMedicalVocabularyCommandError");
|
|
1245
949
|
var de_DeleteTranscriptionJobCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1246
950
|
if (output.statusCode >= 300) {
|
|
1247
|
-
return
|
|
951
|
+
return de_CommandError(output, context);
|
|
1248
952
|
}
|
|
1249
953
|
await (0, import_smithy_client.collectBody)(output.body, context);
|
|
1250
954
|
const response = {
|
|
@@ -1252,34 +956,9 @@ var de_DeleteTranscriptionJobCommand = /* @__PURE__ */ __name(async (output, con
|
|
|
1252
956
|
};
|
|
1253
957
|
return response;
|
|
1254
958
|
}, "de_DeleteTranscriptionJobCommand");
|
|
1255
|
-
var de_DeleteTranscriptionJobCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1256
|
-
const parsedOutput = {
|
|
1257
|
-
...output,
|
|
1258
|
-
body: await parseErrorBody(output.body, context)
|
|
1259
|
-
};
|
|
1260
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1261
|
-
switch (errorCode) {
|
|
1262
|
-
case "BadRequestException":
|
|
1263
|
-
case "com.amazonaws.transcribe#BadRequestException":
|
|
1264
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
1265
|
-
case "InternalFailureException":
|
|
1266
|
-
case "com.amazonaws.transcribe#InternalFailureException":
|
|
1267
|
-
throw await de_InternalFailureExceptionRes(parsedOutput, context);
|
|
1268
|
-
case "LimitExceededException":
|
|
1269
|
-
case "com.amazonaws.transcribe#LimitExceededException":
|
|
1270
|
-
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
1271
|
-
default:
|
|
1272
|
-
const parsedBody = parsedOutput.body;
|
|
1273
|
-
return throwDefaultError({
|
|
1274
|
-
output,
|
|
1275
|
-
parsedBody,
|
|
1276
|
-
errorCode
|
|
1277
|
-
});
|
|
1278
|
-
}
|
|
1279
|
-
}, "de_DeleteTranscriptionJobCommandError");
|
|
1280
959
|
var de_DeleteVocabularyCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1281
960
|
if (output.statusCode >= 300) {
|
|
1282
|
-
return
|
|
961
|
+
return de_CommandError(output, context);
|
|
1283
962
|
}
|
|
1284
963
|
await (0, import_smithy_client.collectBody)(output.body, context);
|
|
1285
964
|
const response = {
|
|
@@ -1287,37 +966,9 @@ var de_DeleteVocabularyCommand = /* @__PURE__ */ __name(async (output, context)
|
|
|
1287
966
|
};
|
|
1288
967
|
return response;
|
|
1289
968
|
}, "de_DeleteVocabularyCommand");
|
|
1290
|
-
var de_DeleteVocabularyCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1291
|
-
const parsedOutput = {
|
|
1292
|
-
...output,
|
|
1293
|
-
body: await parseErrorBody(output.body, context)
|
|
1294
|
-
};
|
|
1295
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1296
|
-
switch (errorCode) {
|
|
1297
|
-
case "BadRequestException":
|
|
1298
|
-
case "com.amazonaws.transcribe#BadRequestException":
|
|
1299
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
1300
|
-
case "InternalFailureException":
|
|
1301
|
-
case "com.amazonaws.transcribe#InternalFailureException":
|
|
1302
|
-
throw await de_InternalFailureExceptionRes(parsedOutput, context);
|
|
1303
|
-
case "LimitExceededException":
|
|
1304
|
-
case "com.amazonaws.transcribe#LimitExceededException":
|
|
1305
|
-
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
1306
|
-
case "NotFoundException":
|
|
1307
|
-
case "com.amazonaws.transcribe#NotFoundException":
|
|
1308
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
1309
|
-
default:
|
|
1310
|
-
const parsedBody = parsedOutput.body;
|
|
1311
|
-
return throwDefaultError({
|
|
1312
|
-
output,
|
|
1313
|
-
parsedBody,
|
|
1314
|
-
errorCode
|
|
1315
|
-
});
|
|
1316
|
-
}
|
|
1317
|
-
}, "de_DeleteVocabularyCommandError");
|
|
1318
969
|
var de_DeleteVocabularyFilterCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1319
970
|
if (output.statusCode >= 300) {
|
|
1320
|
-
return
|
|
971
|
+
return de_CommandError(output, context);
|
|
1321
972
|
}
|
|
1322
973
|
await (0, import_smithy_client.collectBody)(output.body, context);
|
|
1323
974
|
const response = {
|
|
@@ -1325,37 +976,9 @@ var de_DeleteVocabularyFilterCommand = /* @__PURE__ */ __name(async (output, con
|
|
|
1325
976
|
};
|
|
1326
977
|
return response;
|
|
1327
978
|
}, "de_DeleteVocabularyFilterCommand");
|
|
1328
|
-
var de_DeleteVocabularyFilterCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1329
|
-
const parsedOutput = {
|
|
1330
|
-
...output,
|
|
1331
|
-
body: await parseErrorBody(output.body, context)
|
|
1332
|
-
};
|
|
1333
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1334
|
-
switch (errorCode) {
|
|
1335
|
-
case "BadRequestException":
|
|
1336
|
-
case "com.amazonaws.transcribe#BadRequestException":
|
|
1337
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
1338
|
-
case "InternalFailureException":
|
|
1339
|
-
case "com.amazonaws.transcribe#InternalFailureException":
|
|
1340
|
-
throw await de_InternalFailureExceptionRes(parsedOutput, context);
|
|
1341
|
-
case "LimitExceededException":
|
|
1342
|
-
case "com.amazonaws.transcribe#LimitExceededException":
|
|
1343
|
-
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
1344
|
-
case "NotFoundException":
|
|
1345
|
-
case "com.amazonaws.transcribe#NotFoundException":
|
|
1346
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
1347
|
-
default:
|
|
1348
|
-
const parsedBody = parsedOutput.body;
|
|
1349
|
-
return throwDefaultError({
|
|
1350
|
-
output,
|
|
1351
|
-
parsedBody,
|
|
1352
|
-
errorCode
|
|
1353
|
-
});
|
|
1354
|
-
}
|
|
1355
|
-
}, "de_DeleteVocabularyFilterCommandError");
|
|
1356
979
|
var de_DescribeLanguageModelCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1357
980
|
if (output.statusCode >= 300) {
|
|
1358
|
-
return
|
|
981
|
+
return de_CommandError(output, context);
|
|
1359
982
|
}
|
|
1360
983
|
const data = await parseBody(output.body, context);
|
|
1361
984
|
let contents = {};
|
|
@@ -1366,37 +989,9 @@ var de_DescribeLanguageModelCommand = /* @__PURE__ */ __name(async (output, cont
|
|
|
1366
989
|
};
|
|
1367
990
|
return response;
|
|
1368
991
|
}, "de_DescribeLanguageModelCommand");
|
|
1369
|
-
var de_DescribeLanguageModelCommandError = /* @__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 "BadRequestException":
|
|
1377
|
-
case "com.amazonaws.transcribe#BadRequestException":
|
|
1378
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
1379
|
-
case "InternalFailureException":
|
|
1380
|
-
case "com.amazonaws.transcribe#InternalFailureException":
|
|
1381
|
-
throw await de_InternalFailureExceptionRes(parsedOutput, context);
|
|
1382
|
-
case "LimitExceededException":
|
|
1383
|
-
case "com.amazonaws.transcribe#LimitExceededException":
|
|
1384
|
-
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
1385
|
-
case "NotFoundException":
|
|
1386
|
-
case "com.amazonaws.transcribe#NotFoundException":
|
|
1387
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
1388
|
-
default:
|
|
1389
|
-
const parsedBody = parsedOutput.body;
|
|
1390
|
-
return throwDefaultError({
|
|
1391
|
-
output,
|
|
1392
|
-
parsedBody,
|
|
1393
|
-
errorCode
|
|
1394
|
-
});
|
|
1395
|
-
}
|
|
1396
|
-
}, "de_DescribeLanguageModelCommandError");
|
|
1397
992
|
var de_GetCallAnalyticsCategoryCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1398
993
|
if (output.statusCode >= 300) {
|
|
1399
|
-
return
|
|
994
|
+
return de_CommandError(output, context);
|
|
1400
995
|
}
|
|
1401
996
|
const data = await parseBody(output.body, context);
|
|
1402
997
|
let contents = {};
|
|
@@ -1407,37 +1002,9 @@ var de_GetCallAnalyticsCategoryCommand = /* @__PURE__ */ __name(async (output, c
|
|
|
1407
1002
|
};
|
|
1408
1003
|
return response;
|
|
1409
1004
|
}, "de_GetCallAnalyticsCategoryCommand");
|
|
1410
|
-
var de_GetCallAnalyticsCategoryCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1411
|
-
const parsedOutput = {
|
|
1412
|
-
...output,
|
|
1413
|
-
body: await parseErrorBody(output.body, context)
|
|
1414
|
-
};
|
|
1415
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1416
|
-
switch (errorCode) {
|
|
1417
|
-
case "BadRequestException":
|
|
1418
|
-
case "com.amazonaws.transcribe#BadRequestException":
|
|
1419
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
1420
|
-
case "InternalFailureException":
|
|
1421
|
-
case "com.amazonaws.transcribe#InternalFailureException":
|
|
1422
|
-
throw await de_InternalFailureExceptionRes(parsedOutput, context);
|
|
1423
|
-
case "LimitExceededException":
|
|
1424
|
-
case "com.amazonaws.transcribe#LimitExceededException":
|
|
1425
|
-
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
1426
|
-
case "NotFoundException":
|
|
1427
|
-
case "com.amazonaws.transcribe#NotFoundException":
|
|
1428
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
1429
|
-
default:
|
|
1430
|
-
const parsedBody = parsedOutput.body;
|
|
1431
|
-
return throwDefaultError({
|
|
1432
|
-
output,
|
|
1433
|
-
parsedBody,
|
|
1434
|
-
errorCode
|
|
1435
|
-
});
|
|
1436
|
-
}
|
|
1437
|
-
}, "de_GetCallAnalyticsCategoryCommandError");
|
|
1438
1005
|
var de_GetCallAnalyticsJobCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1439
1006
|
if (output.statusCode >= 300) {
|
|
1440
|
-
return
|
|
1007
|
+
return de_CommandError(output, context);
|
|
1441
1008
|
}
|
|
1442
1009
|
const data = await parseBody(output.body, context);
|
|
1443
1010
|
let contents = {};
|
|
@@ -1448,37 +1015,9 @@ var de_GetCallAnalyticsJobCommand = /* @__PURE__ */ __name(async (output, contex
|
|
|
1448
1015
|
};
|
|
1449
1016
|
return response;
|
|
1450
1017
|
}, "de_GetCallAnalyticsJobCommand");
|
|
1451
|
-
var de_GetCallAnalyticsJobCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1452
|
-
const parsedOutput = {
|
|
1453
|
-
...output,
|
|
1454
|
-
body: await parseErrorBody(output.body, context)
|
|
1455
|
-
};
|
|
1456
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1457
|
-
switch (errorCode) {
|
|
1458
|
-
case "BadRequestException":
|
|
1459
|
-
case "com.amazonaws.transcribe#BadRequestException":
|
|
1460
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
1461
|
-
case "InternalFailureException":
|
|
1462
|
-
case "com.amazonaws.transcribe#InternalFailureException":
|
|
1463
|
-
throw await de_InternalFailureExceptionRes(parsedOutput, context);
|
|
1464
|
-
case "LimitExceededException":
|
|
1465
|
-
case "com.amazonaws.transcribe#LimitExceededException":
|
|
1466
|
-
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
1467
|
-
case "NotFoundException":
|
|
1468
|
-
case "com.amazonaws.transcribe#NotFoundException":
|
|
1469
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
1470
|
-
default:
|
|
1471
|
-
const parsedBody = parsedOutput.body;
|
|
1472
|
-
return throwDefaultError({
|
|
1473
|
-
output,
|
|
1474
|
-
parsedBody,
|
|
1475
|
-
errorCode
|
|
1476
|
-
});
|
|
1477
|
-
}
|
|
1478
|
-
}, "de_GetCallAnalyticsJobCommandError");
|
|
1479
1018
|
var de_GetMedicalScribeJobCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1480
1019
|
if (output.statusCode >= 300) {
|
|
1481
|
-
return
|
|
1020
|
+
return de_CommandError(output, context);
|
|
1482
1021
|
}
|
|
1483
1022
|
const data = await parseBody(output.body, context);
|
|
1484
1023
|
let contents = {};
|
|
@@ -1489,37 +1028,9 @@ var de_GetMedicalScribeJobCommand = /* @__PURE__ */ __name(async (output, contex
|
|
|
1489
1028
|
};
|
|
1490
1029
|
return response;
|
|
1491
1030
|
}, "de_GetMedicalScribeJobCommand");
|
|
1492
|
-
var de_GetMedicalScribeJobCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1493
|
-
const parsedOutput = {
|
|
1494
|
-
...output,
|
|
1495
|
-
body: await parseErrorBody(output.body, context)
|
|
1496
|
-
};
|
|
1497
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1498
|
-
switch (errorCode) {
|
|
1499
|
-
case "BadRequestException":
|
|
1500
|
-
case "com.amazonaws.transcribe#BadRequestException":
|
|
1501
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
1502
|
-
case "InternalFailureException":
|
|
1503
|
-
case "com.amazonaws.transcribe#InternalFailureException":
|
|
1504
|
-
throw await de_InternalFailureExceptionRes(parsedOutput, context);
|
|
1505
|
-
case "LimitExceededException":
|
|
1506
|
-
case "com.amazonaws.transcribe#LimitExceededException":
|
|
1507
|
-
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
1508
|
-
case "NotFoundException":
|
|
1509
|
-
case "com.amazonaws.transcribe#NotFoundException":
|
|
1510
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
1511
|
-
default:
|
|
1512
|
-
const parsedBody = parsedOutput.body;
|
|
1513
|
-
return throwDefaultError({
|
|
1514
|
-
output,
|
|
1515
|
-
parsedBody,
|
|
1516
|
-
errorCode
|
|
1517
|
-
});
|
|
1518
|
-
}
|
|
1519
|
-
}, "de_GetMedicalScribeJobCommandError");
|
|
1520
1031
|
var de_GetMedicalTranscriptionJobCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1521
1032
|
if (output.statusCode >= 300) {
|
|
1522
|
-
return
|
|
1033
|
+
return de_CommandError(output, context);
|
|
1523
1034
|
}
|
|
1524
1035
|
const data = await parseBody(output.body, context);
|
|
1525
1036
|
let contents = {};
|
|
@@ -1530,37 +1041,9 @@ var de_GetMedicalTranscriptionJobCommand = /* @__PURE__ */ __name(async (output,
|
|
|
1530
1041
|
};
|
|
1531
1042
|
return response;
|
|
1532
1043
|
}, "de_GetMedicalTranscriptionJobCommand");
|
|
1533
|
-
var de_GetMedicalTranscriptionJobCommandError = /* @__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 "BadRequestException":
|
|
1541
|
-
case "com.amazonaws.transcribe#BadRequestException":
|
|
1542
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
1543
|
-
case "InternalFailureException":
|
|
1544
|
-
case "com.amazonaws.transcribe#InternalFailureException":
|
|
1545
|
-
throw await de_InternalFailureExceptionRes(parsedOutput, context);
|
|
1546
|
-
case "LimitExceededException":
|
|
1547
|
-
case "com.amazonaws.transcribe#LimitExceededException":
|
|
1548
|
-
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
1549
|
-
case "NotFoundException":
|
|
1550
|
-
case "com.amazonaws.transcribe#NotFoundException":
|
|
1551
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
1552
|
-
default:
|
|
1553
|
-
const parsedBody = parsedOutput.body;
|
|
1554
|
-
return throwDefaultError({
|
|
1555
|
-
output,
|
|
1556
|
-
parsedBody,
|
|
1557
|
-
errorCode
|
|
1558
|
-
});
|
|
1559
|
-
}
|
|
1560
|
-
}, "de_GetMedicalTranscriptionJobCommandError");
|
|
1561
1044
|
var de_GetMedicalVocabularyCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1562
1045
|
if (output.statusCode >= 300) {
|
|
1563
|
-
return
|
|
1046
|
+
return de_CommandError(output, context);
|
|
1564
1047
|
}
|
|
1565
1048
|
const data = await parseBody(output.body, context);
|
|
1566
1049
|
let contents = {};
|
|
@@ -1571,37 +1054,9 @@ var de_GetMedicalVocabularyCommand = /* @__PURE__ */ __name(async (output, conte
|
|
|
1571
1054
|
};
|
|
1572
1055
|
return response;
|
|
1573
1056
|
}, "de_GetMedicalVocabularyCommand");
|
|
1574
|
-
var de_GetMedicalVocabularyCommandError = /* @__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 "BadRequestException":
|
|
1582
|
-
case "com.amazonaws.transcribe#BadRequestException":
|
|
1583
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
1584
|
-
case "InternalFailureException":
|
|
1585
|
-
case "com.amazonaws.transcribe#InternalFailureException":
|
|
1586
|
-
throw await de_InternalFailureExceptionRes(parsedOutput, context);
|
|
1587
|
-
case "LimitExceededException":
|
|
1588
|
-
case "com.amazonaws.transcribe#LimitExceededException":
|
|
1589
|
-
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
1590
|
-
case "NotFoundException":
|
|
1591
|
-
case "com.amazonaws.transcribe#NotFoundException":
|
|
1592
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
1593
|
-
default:
|
|
1594
|
-
const parsedBody = parsedOutput.body;
|
|
1595
|
-
return throwDefaultError({
|
|
1596
|
-
output,
|
|
1597
|
-
parsedBody,
|
|
1598
|
-
errorCode
|
|
1599
|
-
});
|
|
1600
|
-
}
|
|
1601
|
-
}, "de_GetMedicalVocabularyCommandError");
|
|
1602
1057
|
var de_GetTranscriptionJobCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1603
1058
|
if (output.statusCode >= 300) {
|
|
1604
|
-
return
|
|
1059
|
+
return de_CommandError(output, context);
|
|
1605
1060
|
}
|
|
1606
1061
|
const data = await parseBody(output.body, context);
|
|
1607
1062
|
let contents = {};
|
|
@@ -1612,119 +1067,35 @@ var de_GetTranscriptionJobCommand = /* @__PURE__ */ __name(async (output, contex
|
|
|
1612
1067
|
};
|
|
1613
1068
|
return response;
|
|
1614
1069
|
}, "de_GetTranscriptionJobCommand");
|
|
1615
|
-
var de_GetTranscriptionJobCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1616
|
-
const parsedOutput = {
|
|
1617
|
-
...output,
|
|
1618
|
-
body: await parseErrorBody(output.body, context)
|
|
1619
|
-
};
|
|
1620
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1621
|
-
switch (errorCode) {
|
|
1622
|
-
case "BadRequestException":
|
|
1623
|
-
case "com.amazonaws.transcribe#BadRequestException":
|
|
1624
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
1625
|
-
case "InternalFailureException":
|
|
1626
|
-
case "com.amazonaws.transcribe#InternalFailureException":
|
|
1627
|
-
throw await de_InternalFailureExceptionRes(parsedOutput, context);
|
|
1628
|
-
case "LimitExceededException":
|
|
1629
|
-
case "com.amazonaws.transcribe#LimitExceededException":
|
|
1630
|
-
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
1631
|
-
case "NotFoundException":
|
|
1632
|
-
case "com.amazonaws.transcribe#NotFoundException":
|
|
1633
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
1634
|
-
default:
|
|
1635
|
-
const parsedBody = parsedOutput.body;
|
|
1636
|
-
return throwDefaultError({
|
|
1637
|
-
output,
|
|
1638
|
-
parsedBody,
|
|
1639
|
-
errorCode
|
|
1640
|
-
});
|
|
1641
|
-
}
|
|
1642
|
-
}, "de_GetTranscriptionJobCommandError");
|
|
1643
1070
|
var de_GetVocabularyCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1644
1071
|
if (output.statusCode >= 300) {
|
|
1645
|
-
return
|
|
1646
|
-
}
|
|
1647
|
-
const data = await parseBody(output.body, context);
|
|
1648
|
-
let contents = {};
|
|
1649
|
-
contents = de_GetVocabularyResponse(data, context);
|
|
1650
|
-
const response = {
|
|
1651
|
-
$metadata: deserializeMetadata(output),
|
|
1652
|
-
...contents
|
|
1653
|
-
};
|
|
1654
|
-
return response;
|
|
1655
|
-
}, "de_GetVocabularyCommand");
|
|
1656
|
-
var de_GetVocabularyCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1657
|
-
const parsedOutput = {
|
|
1658
|
-
...output,
|
|
1659
|
-
body: await parseErrorBody(output.body, context)
|
|
1660
|
-
};
|
|
1661
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1662
|
-
switch (errorCode) {
|
|
1663
|
-
case "BadRequestException":
|
|
1664
|
-
case "com.amazonaws.transcribe#BadRequestException":
|
|
1665
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
1666
|
-
case "InternalFailureException":
|
|
1667
|
-
case "com.amazonaws.transcribe#InternalFailureException":
|
|
1668
|
-
throw await de_InternalFailureExceptionRes(parsedOutput, context);
|
|
1669
|
-
case "LimitExceededException":
|
|
1670
|
-
case "com.amazonaws.transcribe#LimitExceededException":
|
|
1671
|
-
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
1672
|
-
case "NotFoundException":
|
|
1673
|
-
case "com.amazonaws.transcribe#NotFoundException":
|
|
1674
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
1675
|
-
default:
|
|
1676
|
-
const parsedBody = parsedOutput.body;
|
|
1677
|
-
return throwDefaultError({
|
|
1678
|
-
output,
|
|
1679
|
-
parsedBody,
|
|
1680
|
-
errorCode
|
|
1681
|
-
});
|
|
1682
|
-
}
|
|
1683
|
-
}, "de_GetVocabularyCommandError");
|
|
1684
|
-
var de_GetVocabularyFilterCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1685
|
-
if (output.statusCode >= 300) {
|
|
1686
|
-
return de_GetVocabularyFilterCommandError(output, context);
|
|
1072
|
+
return de_CommandError(output, context);
|
|
1687
1073
|
}
|
|
1688
1074
|
const data = await parseBody(output.body, context);
|
|
1689
|
-
let contents = {};
|
|
1690
|
-
contents =
|
|
1691
|
-
const response = {
|
|
1692
|
-
$metadata: deserializeMetadata(output),
|
|
1693
|
-
...contents
|
|
1694
|
-
};
|
|
1695
|
-
return response;
|
|
1696
|
-
}, "
|
|
1697
|
-
var
|
|
1698
|
-
|
|
1699
|
-
|
|
1700
|
-
body: await parseErrorBody(output.body, context)
|
|
1701
|
-
};
|
|
1702
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1703
|
-
switch (errorCode) {
|
|
1704
|
-
case "BadRequestException":
|
|
1705
|
-
case "com.amazonaws.transcribe#BadRequestException":
|
|
1706
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
1707
|
-
case "InternalFailureException":
|
|
1708
|
-
case "com.amazonaws.transcribe#InternalFailureException":
|
|
1709
|
-
throw await de_InternalFailureExceptionRes(parsedOutput, context);
|
|
1710
|
-
case "LimitExceededException":
|
|
1711
|
-
case "com.amazonaws.transcribe#LimitExceededException":
|
|
1712
|
-
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
1713
|
-
case "NotFoundException":
|
|
1714
|
-
case "com.amazonaws.transcribe#NotFoundException":
|
|
1715
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
1716
|
-
default:
|
|
1717
|
-
const parsedBody = parsedOutput.body;
|
|
1718
|
-
return throwDefaultError({
|
|
1719
|
-
output,
|
|
1720
|
-
parsedBody,
|
|
1721
|
-
errorCode
|
|
1722
|
-
});
|
|
1075
|
+
let contents = {};
|
|
1076
|
+
contents = de_GetVocabularyResponse(data, context);
|
|
1077
|
+
const response = {
|
|
1078
|
+
$metadata: deserializeMetadata(output),
|
|
1079
|
+
...contents
|
|
1080
|
+
};
|
|
1081
|
+
return response;
|
|
1082
|
+
}, "de_GetVocabularyCommand");
|
|
1083
|
+
var de_GetVocabularyFilterCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1084
|
+
if (output.statusCode >= 300) {
|
|
1085
|
+
return de_CommandError(output, context);
|
|
1723
1086
|
}
|
|
1724
|
-
|
|
1087
|
+
const data = await parseBody(output.body, context);
|
|
1088
|
+
let contents = {};
|
|
1089
|
+
contents = de_GetVocabularyFilterResponse(data, context);
|
|
1090
|
+
const response = {
|
|
1091
|
+
$metadata: deserializeMetadata(output),
|
|
1092
|
+
...contents
|
|
1093
|
+
};
|
|
1094
|
+
return response;
|
|
1095
|
+
}, "de_GetVocabularyFilterCommand");
|
|
1725
1096
|
var de_ListCallAnalyticsCategoriesCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1726
1097
|
if (output.statusCode >= 300) {
|
|
1727
|
-
return
|
|
1098
|
+
return de_CommandError(output, context);
|
|
1728
1099
|
}
|
|
1729
1100
|
const data = await parseBody(output.body, context);
|
|
1730
1101
|
let contents = {};
|
|
@@ -1735,34 +1106,9 @@ var de_ListCallAnalyticsCategoriesCommand = /* @__PURE__ */ __name(async (output
|
|
|
1735
1106
|
};
|
|
1736
1107
|
return response;
|
|
1737
1108
|
}, "de_ListCallAnalyticsCategoriesCommand");
|
|
1738
|
-
var de_ListCallAnalyticsCategoriesCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1739
|
-
const parsedOutput = {
|
|
1740
|
-
...output,
|
|
1741
|
-
body: await parseErrorBody(output.body, context)
|
|
1742
|
-
};
|
|
1743
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1744
|
-
switch (errorCode) {
|
|
1745
|
-
case "BadRequestException":
|
|
1746
|
-
case "com.amazonaws.transcribe#BadRequestException":
|
|
1747
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
1748
|
-
case "InternalFailureException":
|
|
1749
|
-
case "com.amazonaws.transcribe#InternalFailureException":
|
|
1750
|
-
throw await de_InternalFailureExceptionRes(parsedOutput, context);
|
|
1751
|
-
case "LimitExceededException":
|
|
1752
|
-
case "com.amazonaws.transcribe#LimitExceededException":
|
|
1753
|
-
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
1754
|
-
default:
|
|
1755
|
-
const parsedBody = parsedOutput.body;
|
|
1756
|
-
return throwDefaultError({
|
|
1757
|
-
output,
|
|
1758
|
-
parsedBody,
|
|
1759
|
-
errorCode
|
|
1760
|
-
});
|
|
1761
|
-
}
|
|
1762
|
-
}, "de_ListCallAnalyticsCategoriesCommandError");
|
|
1763
1109
|
var de_ListCallAnalyticsJobsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1764
1110
|
if (output.statusCode >= 300) {
|
|
1765
|
-
return
|
|
1111
|
+
return de_CommandError(output, context);
|
|
1766
1112
|
}
|
|
1767
1113
|
const data = await parseBody(output.body, context);
|
|
1768
1114
|
let contents = {};
|
|
@@ -1773,34 +1119,9 @@ var de_ListCallAnalyticsJobsCommand = /* @__PURE__ */ __name(async (output, cont
|
|
|
1773
1119
|
};
|
|
1774
1120
|
return response;
|
|
1775
1121
|
}, "de_ListCallAnalyticsJobsCommand");
|
|
1776
|
-
var de_ListCallAnalyticsJobsCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1777
|
-
const parsedOutput = {
|
|
1778
|
-
...output,
|
|
1779
|
-
body: await parseErrorBody(output.body, context)
|
|
1780
|
-
};
|
|
1781
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1782
|
-
switch (errorCode) {
|
|
1783
|
-
case "BadRequestException":
|
|
1784
|
-
case "com.amazonaws.transcribe#BadRequestException":
|
|
1785
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
1786
|
-
case "InternalFailureException":
|
|
1787
|
-
case "com.amazonaws.transcribe#InternalFailureException":
|
|
1788
|
-
throw await de_InternalFailureExceptionRes(parsedOutput, context);
|
|
1789
|
-
case "LimitExceededException":
|
|
1790
|
-
case "com.amazonaws.transcribe#LimitExceededException":
|
|
1791
|
-
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
1792
|
-
default:
|
|
1793
|
-
const parsedBody = parsedOutput.body;
|
|
1794
|
-
return throwDefaultError({
|
|
1795
|
-
output,
|
|
1796
|
-
parsedBody,
|
|
1797
|
-
errorCode
|
|
1798
|
-
});
|
|
1799
|
-
}
|
|
1800
|
-
}, "de_ListCallAnalyticsJobsCommandError");
|
|
1801
1122
|
var de_ListLanguageModelsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1802
1123
|
if (output.statusCode >= 300) {
|
|
1803
|
-
return
|
|
1124
|
+
return de_CommandError(output, context);
|
|
1804
1125
|
}
|
|
1805
1126
|
const data = await parseBody(output.body, context);
|
|
1806
1127
|
let contents = {};
|
|
@@ -1811,34 +1132,9 @@ var de_ListLanguageModelsCommand = /* @__PURE__ */ __name(async (output, context
|
|
|
1811
1132
|
};
|
|
1812
1133
|
return response;
|
|
1813
1134
|
}, "de_ListLanguageModelsCommand");
|
|
1814
|
-
var de_ListLanguageModelsCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1815
|
-
const parsedOutput = {
|
|
1816
|
-
...output,
|
|
1817
|
-
body: await parseErrorBody(output.body, context)
|
|
1818
|
-
};
|
|
1819
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1820
|
-
switch (errorCode) {
|
|
1821
|
-
case "BadRequestException":
|
|
1822
|
-
case "com.amazonaws.transcribe#BadRequestException":
|
|
1823
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
1824
|
-
case "InternalFailureException":
|
|
1825
|
-
case "com.amazonaws.transcribe#InternalFailureException":
|
|
1826
|
-
throw await de_InternalFailureExceptionRes(parsedOutput, context);
|
|
1827
|
-
case "LimitExceededException":
|
|
1828
|
-
case "com.amazonaws.transcribe#LimitExceededException":
|
|
1829
|
-
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
1830
|
-
default:
|
|
1831
|
-
const parsedBody = parsedOutput.body;
|
|
1832
|
-
return throwDefaultError({
|
|
1833
|
-
output,
|
|
1834
|
-
parsedBody,
|
|
1835
|
-
errorCode
|
|
1836
|
-
});
|
|
1837
|
-
}
|
|
1838
|
-
}, "de_ListLanguageModelsCommandError");
|
|
1839
1135
|
var de_ListMedicalScribeJobsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1840
1136
|
if (output.statusCode >= 300) {
|
|
1841
|
-
return
|
|
1137
|
+
return de_CommandError(output, context);
|
|
1842
1138
|
}
|
|
1843
1139
|
const data = await parseBody(output.body, context);
|
|
1844
1140
|
let contents = {};
|
|
@@ -1849,34 +1145,9 @@ var de_ListMedicalScribeJobsCommand = /* @__PURE__ */ __name(async (output, cont
|
|
|
1849
1145
|
};
|
|
1850
1146
|
return response;
|
|
1851
1147
|
}, "de_ListMedicalScribeJobsCommand");
|
|
1852
|
-
var de_ListMedicalScribeJobsCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1853
|
-
const parsedOutput = {
|
|
1854
|
-
...output,
|
|
1855
|
-
body: await parseErrorBody(output.body, context)
|
|
1856
|
-
};
|
|
1857
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1858
|
-
switch (errorCode) {
|
|
1859
|
-
case "BadRequestException":
|
|
1860
|
-
case "com.amazonaws.transcribe#BadRequestException":
|
|
1861
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
1862
|
-
case "InternalFailureException":
|
|
1863
|
-
case "com.amazonaws.transcribe#InternalFailureException":
|
|
1864
|
-
throw await de_InternalFailureExceptionRes(parsedOutput, context);
|
|
1865
|
-
case "LimitExceededException":
|
|
1866
|
-
case "com.amazonaws.transcribe#LimitExceededException":
|
|
1867
|
-
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
1868
|
-
default:
|
|
1869
|
-
const parsedBody = parsedOutput.body;
|
|
1870
|
-
return throwDefaultError({
|
|
1871
|
-
output,
|
|
1872
|
-
parsedBody,
|
|
1873
|
-
errorCode
|
|
1874
|
-
});
|
|
1875
|
-
}
|
|
1876
|
-
}, "de_ListMedicalScribeJobsCommandError");
|
|
1877
1148
|
var de_ListMedicalTranscriptionJobsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1878
1149
|
if (output.statusCode >= 300) {
|
|
1879
|
-
return
|
|
1150
|
+
return de_CommandError(output, context);
|
|
1880
1151
|
}
|
|
1881
1152
|
const data = await parseBody(output.body, context);
|
|
1882
1153
|
let contents = {};
|
|
@@ -1887,34 +1158,9 @@ var de_ListMedicalTranscriptionJobsCommand = /* @__PURE__ */ __name(async (outpu
|
|
|
1887
1158
|
};
|
|
1888
1159
|
return response;
|
|
1889
1160
|
}, "de_ListMedicalTranscriptionJobsCommand");
|
|
1890
|
-
var de_ListMedicalTranscriptionJobsCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1891
|
-
const parsedOutput = {
|
|
1892
|
-
...output,
|
|
1893
|
-
body: await parseErrorBody(output.body, context)
|
|
1894
|
-
};
|
|
1895
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1896
|
-
switch (errorCode) {
|
|
1897
|
-
case "BadRequestException":
|
|
1898
|
-
case "com.amazonaws.transcribe#BadRequestException":
|
|
1899
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
1900
|
-
case "InternalFailureException":
|
|
1901
|
-
case "com.amazonaws.transcribe#InternalFailureException":
|
|
1902
|
-
throw await de_InternalFailureExceptionRes(parsedOutput, context);
|
|
1903
|
-
case "LimitExceededException":
|
|
1904
|
-
case "com.amazonaws.transcribe#LimitExceededException":
|
|
1905
|
-
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
1906
|
-
default:
|
|
1907
|
-
const parsedBody = parsedOutput.body;
|
|
1908
|
-
return throwDefaultError({
|
|
1909
|
-
output,
|
|
1910
|
-
parsedBody,
|
|
1911
|
-
errorCode
|
|
1912
|
-
});
|
|
1913
|
-
}
|
|
1914
|
-
}, "de_ListMedicalTranscriptionJobsCommandError");
|
|
1915
1161
|
var de_ListMedicalVocabulariesCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1916
1162
|
if (output.statusCode >= 300) {
|
|
1917
|
-
return
|
|
1163
|
+
return de_CommandError(output, context);
|
|
1918
1164
|
}
|
|
1919
1165
|
const data = await parseBody(output.body, context);
|
|
1920
1166
|
let contents = {};
|
|
@@ -1925,34 +1171,9 @@ var de_ListMedicalVocabulariesCommand = /* @__PURE__ */ __name(async (output, co
|
|
|
1925
1171
|
};
|
|
1926
1172
|
return response;
|
|
1927
1173
|
}, "de_ListMedicalVocabulariesCommand");
|
|
1928
|
-
var de_ListMedicalVocabulariesCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1929
|
-
const parsedOutput = {
|
|
1930
|
-
...output,
|
|
1931
|
-
body: await parseErrorBody(output.body, context)
|
|
1932
|
-
};
|
|
1933
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1934
|
-
switch (errorCode) {
|
|
1935
|
-
case "BadRequestException":
|
|
1936
|
-
case "com.amazonaws.transcribe#BadRequestException":
|
|
1937
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
1938
|
-
case "InternalFailureException":
|
|
1939
|
-
case "com.amazonaws.transcribe#InternalFailureException":
|
|
1940
|
-
throw await de_InternalFailureExceptionRes(parsedOutput, context);
|
|
1941
|
-
case "LimitExceededException":
|
|
1942
|
-
case "com.amazonaws.transcribe#LimitExceededException":
|
|
1943
|
-
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
1944
|
-
default:
|
|
1945
|
-
const parsedBody = parsedOutput.body;
|
|
1946
|
-
return throwDefaultError({
|
|
1947
|
-
output,
|
|
1948
|
-
parsedBody,
|
|
1949
|
-
errorCode
|
|
1950
|
-
});
|
|
1951
|
-
}
|
|
1952
|
-
}, "de_ListMedicalVocabulariesCommandError");
|
|
1953
1174
|
var de_ListTagsForResourceCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1954
1175
|
if (output.statusCode >= 300) {
|
|
1955
|
-
return
|
|
1176
|
+
return de_CommandError(output, context);
|
|
1956
1177
|
}
|
|
1957
1178
|
const data = await parseBody(output.body, context);
|
|
1958
1179
|
let contents = {};
|
|
@@ -1963,37 +1184,9 @@ var de_ListTagsForResourceCommand = /* @__PURE__ */ __name(async (output, contex
|
|
|
1963
1184
|
};
|
|
1964
1185
|
return response;
|
|
1965
1186
|
}, "de_ListTagsForResourceCommand");
|
|
1966
|
-
var de_ListTagsForResourceCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1967
|
-
const parsedOutput = {
|
|
1968
|
-
...output,
|
|
1969
|
-
body: await parseErrorBody(output.body, context)
|
|
1970
|
-
};
|
|
1971
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1972
|
-
switch (errorCode) {
|
|
1973
|
-
case "BadRequestException":
|
|
1974
|
-
case "com.amazonaws.transcribe#BadRequestException":
|
|
1975
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
1976
|
-
case "InternalFailureException":
|
|
1977
|
-
case "com.amazonaws.transcribe#InternalFailureException":
|
|
1978
|
-
throw await de_InternalFailureExceptionRes(parsedOutput, context);
|
|
1979
|
-
case "LimitExceededException":
|
|
1980
|
-
case "com.amazonaws.transcribe#LimitExceededException":
|
|
1981
|
-
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
1982
|
-
case "NotFoundException":
|
|
1983
|
-
case "com.amazonaws.transcribe#NotFoundException":
|
|
1984
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
1985
|
-
default:
|
|
1986
|
-
const parsedBody = parsedOutput.body;
|
|
1987
|
-
return throwDefaultError({
|
|
1988
|
-
output,
|
|
1989
|
-
parsedBody,
|
|
1990
|
-
errorCode
|
|
1991
|
-
});
|
|
1992
|
-
}
|
|
1993
|
-
}, "de_ListTagsForResourceCommandError");
|
|
1994
1187
|
var de_ListTranscriptionJobsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1995
1188
|
if (output.statusCode >= 300) {
|
|
1996
|
-
return
|
|
1189
|
+
return de_CommandError(output, context);
|
|
1997
1190
|
}
|
|
1998
1191
|
const data = await parseBody(output.body, context);
|
|
1999
1192
|
let contents = {};
|
|
@@ -2004,34 +1197,9 @@ var de_ListTranscriptionJobsCommand = /* @__PURE__ */ __name(async (output, cont
|
|
|
2004
1197
|
};
|
|
2005
1198
|
return response;
|
|
2006
1199
|
}, "de_ListTranscriptionJobsCommand");
|
|
2007
|
-
var de_ListTranscriptionJobsCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2008
|
-
const parsedOutput = {
|
|
2009
|
-
...output,
|
|
2010
|
-
body: await parseErrorBody(output.body, context)
|
|
2011
|
-
};
|
|
2012
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2013
|
-
switch (errorCode) {
|
|
2014
|
-
case "BadRequestException":
|
|
2015
|
-
case "com.amazonaws.transcribe#BadRequestException":
|
|
2016
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
2017
|
-
case "InternalFailureException":
|
|
2018
|
-
case "com.amazonaws.transcribe#InternalFailureException":
|
|
2019
|
-
throw await de_InternalFailureExceptionRes(parsedOutput, context);
|
|
2020
|
-
case "LimitExceededException":
|
|
2021
|
-
case "com.amazonaws.transcribe#LimitExceededException":
|
|
2022
|
-
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
2023
|
-
default:
|
|
2024
|
-
const parsedBody = parsedOutput.body;
|
|
2025
|
-
return throwDefaultError({
|
|
2026
|
-
output,
|
|
2027
|
-
parsedBody,
|
|
2028
|
-
errorCode
|
|
2029
|
-
});
|
|
2030
|
-
}
|
|
2031
|
-
}, "de_ListTranscriptionJobsCommandError");
|
|
2032
1200
|
var de_ListVocabulariesCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2033
1201
|
if (output.statusCode >= 300) {
|
|
2034
|
-
return
|
|
1202
|
+
return de_CommandError(output, context);
|
|
2035
1203
|
}
|
|
2036
1204
|
const data = await parseBody(output.body, context);
|
|
2037
1205
|
let contents = {};
|
|
@@ -2042,72 +1210,22 @@ var de_ListVocabulariesCommand = /* @__PURE__ */ __name(async (output, context)
|
|
|
2042
1210
|
};
|
|
2043
1211
|
return response;
|
|
2044
1212
|
}, "de_ListVocabulariesCommand");
|
|
2045
|
-
var de_ListVocabulariesCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2046
|
-
const parsedOutput = {
|
|
2047
|
-
...output,
|
|
2048
|
-
body: await parseErrorBody(output.body, context)
|
|
2049
|
-
};
|
|
2050
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2051
|
-
switch (errorCode) {
|
|
2052
|
-
case "BadRequestException":
|
|
2053
|
-
case "com.amazonaws.transcribe#BadRequestException":
|
|
2054
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
2055
|
-
case "InternalFailureException":
|
|
2056
|
-
case "com.amazonaws.transcribe#InternalFailureException":
|
|
2057
|
-
throw await de_InternalFailureExceptionRes(parsedOutput, context);
|
|
2058
|
-
case "LimitExceededException":
|
|
2059
|
-
case "com.amazonaws.transcribe#LimitExceededException":
|
|
2060
|
-
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
2061
|
-
default:
|
|
2062
|
-
const parsedBody = parsedOutput.body;
|
|
2063
|
-
return throwDefaultError({
|
|
2064
|
-
output,
|
|
2065
|
-
parsedBody,
|
|
2066
|
-
errorCode
|
|
2067
|
-
});
|
|
2068
|
-
}
|
|
2069
|
-
}, "de_ListVocabulariesCommandError");
|
|
2070
1213
|
var de_ListVocabularyFiltersCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2071
1214
|
if (output.statusCode >= 300) {
|
|
2072
|
-
return
|
|
1215
|
+
return de_CommandError(output, context);
|
|
2073
1216
|
}
|
|
2074
1217
|
const data = await parseBody(output.body, context);
|
|
2075
1218
|
let contents = {};
|
|
2076
1219
|
contents = de_ListVocabularyFiltersResponse(data, context);
|
|
2077
1220
|
const response = {
|
|
2078
1221
|
$metadata: deserializeMetadata(output),
|
|
2079
|
-
...contents
|
|
2080
|
-
};
|
|
2081
|
-
return response;
|
|
2082
|
-
}, "de_ListVocabularyFiltersCommand");
|
|
2083
|
-
var de_ListVocabularyFiltersCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2084
|
-
const parsedOutput = {
|
|
2085
|
-
...output,
|
|
2086
|
-
body: await parseErrorBody(output.body, context)
|
|
2087
|
-
};
|
|
2088
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2089
|
-
switch (errorCode) {
|
|
2090
|
-
case "BadRequestException":
|
|
2091
|
-
case "com.amazonaws.transcribe#BadRequestException":
|
|
2092
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
2093
|
-
case "InternalFailureException":
|
|
2094
|
-
case "com.amazonaws.transcribe#InternalFailureException":
|
|
2095
|
-
throw await de_InternalFailureExceptionRes(parsedOutput, context);
|
|
2096
|
-
case "LimitExceededException":
|
|
2097
|
-
case "com.amazonaws.transcribe#LimitExceededException":
|
|
2098
|
-
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
2099
|
-
default:
|
|
2100
|
-
const parsedBody = parsedOutput.body;
|
|
2101
|
-
return throwDefaultError({
|
|
2102
|
-
output,
|
|
2103
|
-
parsedBody,
|
|
2104
|
-
errorCode
|
|
2105
|
-
});
|
|
2106
|
-
}
|
|
2107
|
-
}, "de_ListVocabularyFiltersCommandError");
|
|
1222
|
+
...contents
|
|
1223
|
+
};
|
|
1224
|
+
return response;
|
|
1225
|
+
}, "de_ListVocabularyFiltersCommand");
|
|
2108
1226
|
var de_StartCallAnalyticsJobCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2109
1227
|
if (output.statusCode >= 300) {
|
|
2110
|
-
return
|
|
1228
|
+
return de_CommandError(output, context);
|
|
2111
1229
|
}
|
|
2112
1230
|
const data = await parseBody(output.body, context);
|
|
2113
1231
|
let contents = {};
|
|
@@ -2118,37 +1236,9 @@ var de_StartCallAnalyticsJobCommand = /* @__PURE__ */ __name(async (output, cont
|
|
|
2118
1236
|
};
|
|
2119
1237
|
return response;
|
|
2120
1238
|
}, "de_StartCallAnalyticsJobCommand");
|
|
2121
|
-
var de_StartCallAnalyticsJobCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2122
|
-
const parsedOutput = {
|
|
2123
|
-
...output,
|
|
2124
|
-
body: await parseErrorBody(output.body, context)
|
|
2125
|
-
};
|
|
2126
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2127
|
-
switch (errorCode) {
|
|
2128
|
-
case "BadRequestException":
|
|
2129
|
-
case "com.amazonaws.transcribe#BadRequestException":
|
|
2130
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
2131
|
-
case "ConflictException":
|
|
2132
|
-
case "com.amazonaws.transcribe#ConflictException":
|
|
2133
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
2134
|
-
case "InternalFailureException":
|
|
2135
|
-
case "com.amazonaws.transcribe#InternalFailureException":
|
|
2136
|
-
throw await de_InternalFailureExceptionRes(parsedOutput, context);
|
|
2137
|
-
case "LimitExceededException":
|
|
2138
|
-
case "com.amazonaws.transcribe#LimitExceededException":
|
|
2139
|
-
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
2140
|
-
default:
|
|
2141
|
-
const parsedBody = parsedOutput.body;
|
|
2142
|
-
return throwDefaultError({
|
|
2143
|
-
output,
|
|
2144
|
-
parsedBody,
|
|
2145
|
-
errorCode
|
|
2146
|
-
});
|
|
2147
|
-
}
|
|
2148
|
-
}, "de_StartCallAnalyticsJobCommandError");
|
|
2149
1239
|
var de_StartMedicalScribeJobCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2150
1240
|
if (output.statusCode >= 300) {
|
|
2151
|
-
return
|
|
1241
|
+
return de_CommandError(output, context);
|
|
2152
1242
|
}
|
|
2153
1243
|
const data = await parseBody(output.body, context);
|
|
2154
1244
|
let contents = {};
|
|
@@ -2159,37 +1249,9 @@ var de_StartMedicalScribeJobCommand = /* @__PURE__ */ __name(async (output, cont
|
|
|
2159
1249
|
};
|
|
2160
1250
|
return response;
|
|
2161
1251
|
}, "de_StartMedicalScribeJobCommand");
|
|
2162
|
-
var de_StartMedicalScribeJobCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2163
|
-
const parsedOutput = {
|
|
2164
|
-
...output,
|
|
2165
|
-
body: await parseErrorBody(output.body, context)
|
|
2166
|
-
};
|
|
2167
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2168
|
-
switch (errorCode) {
|
|
2169
|
-
case "BadRequestException":
|
|
2170
|
-
case "com.amazonaws.transcribe#BadRequestException":
|
|
2171
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
2172
|
-
case "ConflictException":
|
|
2173
|
-
case "com.amazonaws.transcribe#ConflictException":
|
|
2174
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
2175
|
-
case "InternalFailureException":
|
|
2176
|
-
case "com.amazonaws.transcribe#InternalFailureException":
|
|
2177
|
-
throw await de_InternalFailureExceptionRes(parsedOutput, context);
|
|
2178
|
-
case "LimitExceededException":
|
|
2179
|
-
case "com.amazonaws.transcribe#LimitExceededException":
|
|
2180
|
-
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
2181
|
-
default:
|
|
2182
|
-
const parsedBody = parsedOutput.body;
|
|
2183
|
-
return throwDefaultError({
|
|
2184
|
-
output,
|
|
2185
|
-
parsedBody,
|
|
2186
|
-
errorCode
|
|
2187
|
-
});
|
|
2188
|
-
}
|
|
2189
|
-
}, "de_StartMedicalScribeJobCommandError");
|
|
2190
1252
|
var de_StartMedicalTranscriptionJobCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2191
1253
|
if (output.statusCode >= 300) {
|
|
2192
|
-
return
|
|
1254
|
+
return de_CommandError(output, context);
|
|
2193
1255
|
}
|
|
2194
1256
|
const data = await parseBody(output.body, context);
|
|
2195
1257
|
let contents = {};
|
|
@@ -2200,37 +1262,9 @@ var de_StartMedicalTranscriptionJobCommand = /* @__PURE__ */ __name(async (outpu
|
|
|
2200
1262
|
};
|
|
2201
1263
|
return response;
|
|
2202
1264
|
}, "de_StartMedicalTranscriptionJobCommand");
|
|
2203
|
-
var de_StartMedicalTranscriptionJobCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2204
|
-
const parsedOutput = {
|
|
2205
|
-
...output,
|
|
2206
|
-
body: await parseErrorBody(output.body, context)
|
|
2207
|
-
};
|
|
2208
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2209
|
-
switch (errorCode) {
|
|
2210
|
-
case "BadRequestException":
|
|
2211
|
-
case "com.amazonaws.transcribe#BadRequestException":
|
|
2212
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
2213
|
-
case "ConflictException":
|
|
2214
|
-
case "com.amazonaws.transcribe#ConflictException":
|
|
2215
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
2216
|
-
case "InternalFailureException":
|
|
2217
|
-
case "com.amazonaws.transcribe#InternalFailureException":
|
|
2218
|
-
throw await de_InternalFailureExceptionRes(parsedOutput, context);
|
|
2219
|
-
case "LimitExceededException":
|
|
2220
|
-
case "com.amazonaws.transcribe#LimitExceededException":
|
|
2221
|
-
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
2222
|
-
default:
|
|
2223
|
-
const parsedBody = parsedOutput.body;
|
|
2224
|
-
return throwDefaultError({
|
|
2225
|
-
output,
|
|
2226
|
-
parsedBody,
|
|
2227
|
-
errorCode
|
|
2228
|
-
});
|
|
2229
|
-
}
|
|
2230
|
-
}, "de_StartMedicalTranscriptionJobCommandError");
|
|
2231
1265
|
var de_StartTranscriptionJobCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2232
1266
|
if (output.statusCode >= 300) {
|
|
2233
|
-
return
|
|
1267
|
+
return de_CommandError(output, context);
|
|
2234
1268
|
}
|
|
2235
1269
|
const data = await parseBody(output.body, context);
|
|
2236
1270
|
let contents = {};
|
|
@@ -2241,37 +1275,9 @@ var de_StartTranscriptionJobCommand = /* @__PURE__ */ __name(async (output, cont
|
|
|
2241
1275
|
};
|
|
2242
1276
|
return response;
|
|
2243
1277
|
}, "de_StartTranscriptionJobCommand");
|
|
2244
|
-
var de_StartTranscriptionJobCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2245
|
-
const parsedOutput = {
|
|
2246
|
-
...output,
|
|
2247
|
-
body: await parseErrorBody(output.body, context)
|
|
2248
|
-
};
|
|
2249
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2250
|
-
switch (errorCode) {
|
|
2251
|
-
case "BadRequestException":
|
|
2252
|
-
case "com.amazonaws.transcribe#BadRequestException":
|
|
2253
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
2254
|
-
case "ConflictException":
|
|
2255
|
-
case "com.amazonaws.transcribe#ConflictException":
|
|
2256
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
2257
|
-
case "InternalFailureException":
|
|
2258
|
-
case "com.amazonaws.transcribe#InternalFailureException":
|
|
2259
|
-
throw await de_InternalFailureExceptionRes(parsedOutput, context);
|
|
2260
|
-
case "LimitExceededException":
|
|
2261
|
-
case "com.amazonaws.transcribe#LimitExceededException":
|
|
2262
|
-
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
2263
|
-
default:
|
|
2264
|
-
const parsedBody = parsedOutput.body;
|
|
2265
|
-
return throwDefaultError({
|
|
2266
|
-
output,
|
|
2267
|
-
parsedBody,
|
|
2268
|
-
errorCode
|
|
2269
|
-
});
|
|
2270
|
-
}
|
|
2271
|
-
}, "de_StartTranscriptionJobCommandError");
|
|
2272
1278
|
var de_TagResourceCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2273
1279
|
if (output.statusCode >= 300) {
|
|
2274
|
-
return
|
|
1280
|
+
return de_CommandError(output, context);
|
|
2275
1281
|
}
|
|
2276
1282
|
const data = await parseBody(output.body, context);
|
|
2277
1283
|
let contents = {};
|
|
@@ -2282,40 +1288,9 @@ var de_TagResourceCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
2282
1288
|
};
|
|
2283
1289
|
return response;
|
|
2284
1290
|
}, "de_TagResourceCommand");
|
|
2285
|
-
var de_TagResourceCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2286
|
-
const parsedOutput = {
|
|
2287
|
-
...output,
|
|
2288
|
-
body: await parseErrorBody(output.body, context)
|
|
2289
|
-
};
|
|
2290
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2291
|
-
switch (errorCode) {
|
|
2292
|
-
case "BadRequestException":
|
|
2293
|
-
case "com.amazonaws.transcribe#BadRequestException":
|
|
2294
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
2295
|
-
case "ConflictException":
|
|
2296
|
-
case "com.amazonaws.transcribe#ConflictException":
|
|
2297
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
2298
|
-
case "InternalFailureException":
|
|
2299
|
-
case "com.amazonaws.transcribe#InternalFailureException":
|
|
2300
|
-
throw await de_InternalFailureExceptionRes(parsedOutput, context);
|
|
2301
|
-
case "LimitExceededException":
|
|
2302
|
-
case "com.amazonaws.transcribe#LimitExceededException":
|
|
2303
|
-
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
2304
|
-
case "NotFoundException":
|
|
2305
|
-
case "com.amazonaws.transcribe#NotFoundException":
|
|
2306
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
2307
|
-
default:
|
|
2308
|
-
const parsedBody = parsedOutput.body;
|
|
2309
|
-
return throwDefaultError({
|
|
2310
|
-
output,
|
|
2311
|
-
parsedBody,
|
|
2312
|
-
errorCode
|
|
2313
|
-
});
|
|
2314
|
-
}
|
|
2315
|
-
}, "de_TagResourceCommandError");
|
|
2316
1291
|
var de_UntagResourceCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2317
1292
|
if (output.statusCode >= 300) {
|
|
2318
|
-
return
|
|
1293
|
+
return de_CommandError(output, context);
|
|
2319
1294
|
}
|
|
2320
1295
|
const data = await parseBody(output.body, context);
|
|
2321
1296
|
let contents = {};
|
|
@@ -2326,40 +1301,9 @@ var de_UntagResourceCommand = /* @__PURE__ */ __name(async (output, context) =>
|
|
|
2326
1301
|
};
|
|
2327
1302
|
return response;
|
|
2328
1303
|
}, "de_UntagResourceCommand");
|
|
2329
|
-
var de_UntagResourceCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2330
|
-
const parsedOutput = {
|
|
2331
|
-
...output,
|
|
2332
|
-
body: await parseErrorBody(output.body, context)
|
|
2333
|
-
};
|
|
2334
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2335
|
-
switch (errorCode) {
|
|
2336
|
-
case "BadRequestException":
|
|
2337
|
-
case "com.amazonaws.transcribe#BadRequestException":
|
|
2338
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
2339
|
-
case "ConflictException":
|
|
2340
|
-
case "com.amazonaws.transcribe#ConflictException":
|
|
2341
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
2342
|
-
case "InternalFailureException":
|
|
2343
|
-
case "com.amazonaws.transcribe#InternalFailureException":
|
|
2344
|
-
throw await de_InternalFailureExceptionRes(parsedOutput, context);
|
|
2345
|
-
case "LimitExceededException":
|
|
2346
|
-
case "com.amazonaws.transcribe#LimitExceededException":
|
|
2347
|
-
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
2348
|
-
case "NotFoundException":
|
|
2349
|
-
case "com.amazonaws.transcribe#NotFoundException":
|
|
2350
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
2351
|
-
default:
|
|
2352
|
-
const parsedBody = parsedOutput.body;
|
|
2353
|
-
return throwDefaultError({
|
|
2354
|
-
output,
|
|
2355
|
-
parsedBody,
|
|
2356
|
-
errorCode
|
|
2357
|
-
});
|
|
2358
|
-
}
|
|
2359
|
-
}, "de_UntagResourceCommandError");
|
|
2360
1304
|
var de_UpdateCallAnalyticsCategoryCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2361
1305
|
if (output.statusCode >= 300) {
|
|
2362
|
-
return
|
|
1306
|
+
return de_CommandError(output, context);
|
|
2363
1307
|
}
|
|
2364
1308
|
const data = await parseBody(output.body, context);
|
|
2365
1309
|
let contents = {};
|
|
@@ -2370,40 +1314,9 @@ var de_UpdateCallAnalyticsCategoryCommand = /* @__PURE__ */ __name(async (output
|
|
|
2370
1314
|
};
|
|
2371
1315
|
return response;
|
|
2372
1316
|
}, "de_UpdateCallAnalyticsCategoryCommand");
|
|
2373
|
-
var de_UpdateCallAnalyticsCategoryCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2374
|
-
const parsedOutput = {
|
|
2375
|
-
...output,
|
|
2376
|
-
body: await parseErrorBody(output.body, context)
|
|
2377
|
-
};
|
|
2378
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2379
|
-
switch (errorCode) {
|
|
2380
|
-
case "BadRequestException":
|
|
2381
|
-
case "com.amazonaws.transcribe#BadRequestException":
|
|
2382
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
2383
|
-
case "ConflictException":
|
|
2384
|
-
case "com.amazonaws.transcribe#ConflictException":
|
|
2385
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
2386
|
-
case "InternalFailureException":
|
|
2387
|
-
case "com.amazonaws.transcribe#InternalFailureException":
|
|
2388
|
-
throw await de_InternalFailureExceptionRes(parsedOutput, context);
|
|
2389
|
-
case "LimitExceededException":
|
|
2390
|
-
case "com.amazonaws.transcribe#LimitExceededException":
|
|
2391
|
-
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
2392
|
-
case "NotFoundException":
|
|
2393
|
-
case "com.amazonaws.transcribe#NotFoundException":
|
|
2394
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
2395
|
-
default:
|
|
2396
|
-
const parsedBody = parsedOutput.body;
|
|
2397
|
-
return throwDefaultError({
|
|
2398
|
-
output,
|
|
2399
|
-
parsedBody,
|
|
2400
|
-
errorCode
|
|
2401
|
-
});
|
|
2402
|
-
}
|
|
2403
|
-
}, "de_UpdateCallAnalyticsCategoryCommandError");
|
|
2404
1317
|
var de_UpdateMedicalVocabularyCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2405
1318
|
if (output.statusCode >= 300) {
|
|
2406
|
-
return
|
|
1319
|
+
return de_CommandError(output, context);
|
|
2407
1320
|
}
|
|
2408
1321
|
const data = await parseBody(output.body, context);
|
|
2409
1322
|
let contents = {};
|
|
@@ -2414,40 +1327,9 @@ var de_UpdateMedicalVocabularyCommand = /* @__PURE__ */ __name(async (output, co
|
|
|
2414
1327
|
};
|
|
2415
1328
|
return response;
|
|
2416
1329
|
}, "de_UpdateMedicalVocabularyCommand");
|
|
2417
|
-
var de_UpdateMedicalVocabularyCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2418
|
-
const parsedOutput = {
|
|
2419
|
-
...output,
|
|
2420
|
-
body: await parseErrorBody(output.body, context)
|
|
2421
|
-
};
|
|
2422
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2423
|
-
switch (errorCode) {
|
|
2424
|
-
case "BadRequestException":
|
|
2425
|
-
case "com.amazonaws.transcribe#BadRequestException":
|
|
2426
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
2427
|
-
case "ConflictException":
|
|
2428
|
-
case "com.amazonaws.transcribe#ConflictException":
|
|
2429
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
2430
|
-
case "InternalFailureException":
|
|
2431
|
-
case "com.amazonaws.transcribe#InternalFailureException":
|
|
2432
|
-
throw await de_InternalFailureExceptionRes(parsedOutput, context);
|
|
2433
|
-
case "LimitExceededException":
|
|
2434
|
-
case "com.amazonaws.transcribe#LimitExceededException":
|
|
2435
|
-
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
2436
|
-
case "NotFoundException":
|
|
2437
|
-
case "com.amazonaws.transcribe#NotFoundException":
|
|
2438
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
2439
|
-
default:
|
|
2440
|
-
const parsedBody = parsedOutput.body;
|
|
2441
|
-
return throwDefaultError({
|
|
2442
|
-
output,
|
|
2443
|
-
parsedBody,
|
|
2444
|
-
errorCode
|
|
2445
|
-
});
|
|
2446
|
-
}
|
|
2447
|
-
}, "de_UpdateMedicalVocabularyCommandError");
|
|
2448
1330
|
var de_UpdateVocabularyCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2449
1331
|
if (output.statusCode >= 300) {
|
|
2450
|
-
return
|
|
1332
|
+
return de_CommandError(output, context);
|
|
2451
1333
|
}
|
|
2452
1334
|
const data = await parseBody(output.body, context);
|
|
2453
1335
|
let contents = {};
|
|
@@ -2458,40 +1340,9 @@ var de_UpdateVocabularyCommand = /* @__PURE__ */ __name(async (output, context)
|
|
|
2458
1340
|
};
|
|
2459
1341
|
return response;
|
|
2460
1342
|
}, "de_UpdateVocabularyCommand");
|
|
2461
|
-
var de_UpdateVocabularyCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2462
|
-
const parsedOutput = {
|
|
2463
|
-
...output,
|
|
2464
|
-
body: await parseErrorBody(output.body, context)
|
|
2465
|
-
};
|
|
2466
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2467
|
-
switch (errorCode) {
|
|
2468
|
-
case "BadRequestException":
|
|
2469
|
-
case "com.amazonaws.transcribe#BadRequestException":
|
|
2470
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
2471
|
-
case "ConflictException":
|
|
2472
|
-
case "com.amazonaws.transcribe#ConflictException":
|
|
2473
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
2474
|
-
case "InternalFailureException":
|
|
2475
|
-
case "com.amazonaws.transcribe#InternalFailureException":
|
|
2476
|
-
throw await de_InternalFailureExceptionRes(parsedOutput, context);
|
|
2477
|
-
case "LimitExceededException":
|
|
2478
|
-
case "com.amazonaws.transcribe#LimitExceededException":
|
|
2479
|
-
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
2480
|
-
case "NotFoundException":
|
|
2481
|
-
case "com.amazonaws.transcribe#NotFoundException":
|
|
2482
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
2483
|
-
default:
|
|
2484
|
-
const parsedBody = parsedOutput.body;
|
|
2485
|
-
return throwDefaultError({
|
|
2486
|
-
output,
|
|
2487
|
-
parsedBody,
|
|
2488
|
-
errorCode
|
|
2489
|
-
});
|
|
2490
|
-
}
|
|
2491
|
-
}, "de_UpdateVocabularyCommandError");
|
|
2492
1343
|
var de_UpdateVocabularyFilterCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2493
1344
|
if (output.statusCode >= 300) {
|
|
2494
|
-
return
|
|
1345
|
+
return de_CommandError(output, context);
|
|
2495
1346
|
}
|
|
2496
1347
|
const data = await parseBody(output.body, context);
|
|
2497
1348
|
let contents = {};
|
|
@@ -2502,7 +1353,7 @@ var de_UpdateVocabularyFilterCommand = /* @__PURE__ */ __name(async (output, con
|
|
|
2502
1353
|
};
|
|
2503
1354
|
return response;
|
|
2504
1355
|
}, "de_UpdateVocabularyFilterCommand");
|
|
2505
|
-
var
|
|
1356
|
+
var de_CommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2506
1357
|
const parsedOutput = {
|
|
2507
1358
|
...output,
|
|
2508
1359
|
body: await parseErrorBody(output.body, context)
|
|
@@ -2512,6 +1363,9 @@ var de_UpdateVocabularyFilterCommandError = /* @__PURE__ */ __name(async (output
|
|
|
2512
1363
|
case "BadRequestException":
|
|
2513
1364
|
case "com.amazonaws.transcribe#BadRequestException":
|
|
2514
1365
|
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
1366
|
+
case "ConflictException":
|
|
1367
|
+
case "com.amazonaws.transcribe#ConflictException":
|
|
1368
|
+
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
2515
1369
|
case "InternalFailureException":
|
|
2516
1370
|
case "com.amazonaws.transcribe#InternalFailureException":
|
|
2517
1371
|
throw await de_InternalFailureExceptionRes(parsedOutput, context);
|
|
@@ -2529,7 +1383,7 @@ var de_UpdateVocabularyFilterCommandError = /* @__PURE__ */ __name(async (output
|
|
|
2529
1383
|
errorCode
|
|
2530
1384
|
});
|
|
2531
1385
|
}
|
|
2532
|
-
}, "
|
|
1386
|
+
}, "de_CommandError");
|
|
2533
1387
|
var de_BadRequestExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
|
|
2534
1388
|
const body = parsedOutput.body;
|
|
2535
1389
|
const deserialized = (0, import_smithy_client._json)(body);
|