@aws-sdk/client-comprehend 3.141.0 → 3.150.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/CHANGELOG.md +27 -0
- package/dist-cjs/protocols/Aws_json1_1.js +355 -604
- package/dist-es/protocols/Aws_json1_1.js +569 -605
- package/package.json +11 -6
|
@@ -737,7 +737,6 @@ const deserializeAws_json1_1BatchDetectDominantLanguageCommandError = async (out
|
|
|
737
737
|
...output,
|
|
738
738
|
body: await parseBody(output.body, context),
|
|
739
739
|
};
|
|
740
|
-
let response;
|
|
741
740
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
742
741
|
switch (errorCode) {
|
|
743
742
|
case "BatchSizeLimitExceededException":
|
|
@@ -754,14 +753,12 @@ const deserializeAws_json1_1BatchDetectDominantLanguageCommandError = async (out
|
|
|
754
753
|
throw await deserializeAws_json1_1TextSizeLimitExceededExceptionResponse(parsedOutput, context);
|
|
755
754
|
default:
|
|
756
755
|
const parsedBody = parsedOutput.body;
|
|
757
|
-
|
|
758
|
-
|
|
759
|
-
|
|
760
|
-
|
|
761
|
-
|
|
762
|
-
$metadata,
|
|
756
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
757
|
+
output,
|
|
758
|
+
parsedBody,
|
|
759
|
+
exceptionCtor: ComprehendServiceException_1.ComprehendServiceException,
|
|
760
|
+
errorCode,
|
|
763
761
|
});
|
|
764
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
765
762
|
}
|
|
766
763
|
};
|
|
767
764
|
const deserializeAws_json1_1BatchDetectEntitiesCommand = async (output, context) => {
|
|
@@ -783,7 +780,6 @@ const deserializeAws_json1_1BatchDetectEntitiesCommandError = async (output, con
|
|
|
783
780
|
...output,
|
|
784
781
|
body: await parseBody(output.body, context),
|
|
785
782
|
};
|
|
786
|
-
let response;
|
|
787
783
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
788
784
|
switch (errorCode) {
|
|
789
785
|
case "BatchSizeLimitExceededException":
|
|
@@ -803,14 +799,12 @@ const deserializeAws_json1_1BatchDetectEntitiesCommandError = async (output, con
|
|
|
803
799
|
throw await deserializeAws_json1_1UnsupportedLanguageExceptionResponse(parsedOutput, context);
|
|
804
800
|
default:
|
|
805
801
|
const parsedBody = parsedOutput.body;
|
|
806
|
-
|
|
807
|
-
|
|
808
|
-
|
|
809
|
-
|
|
810
|
-
|
|
811
|
-
$metadata,
|
|
802
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
803
|
+
output,
|
|
804
|
+
parsedBody,
|
|
805
|
+
exceptionCtor: ComprehendServiceException_1.ComprehendServiceException,
|
|
806
|
+
errorCode,
|
|
812
807
|
});
|
|
813
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
814
808
|
}
|
|
815
809
|
};
|
|
816
810
|
const deserializeAws_json1_1BatchDetectKeyPhrasesCommand = async (output, context) => {
|
|
@@ -832,7 +826,6 @@ const deserializeAws_json1_1BatchDetectKeyPhrasesCommandError = async (output, c
|
|
|
832
826
|
...output,
|
|
833
827
|
body: await parseBody(output.body, context),
|
|
834
828
|
};
|
|
835
|
-
let response;
|
|
836
829
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
837
830
|
switch (errorCode) {
|
|
838
831
|
case "BatchSizeLimitExceededException":
|
|
@@ -852,14 +845,12 @@ const deserializeAws_json1_1BatchDetectKeyPhrasesCommandError = async (output, c
|
|
|
852
845
|
throw await deserializeAws_json1_1UnsupportedLanguageExceptionResponse(parsedOutput, context);
|
|
853
846
|
default:
|
|
854
847
|
const parsedBody = parsedOutput.body;
|
|
855
|
-
|
|
856
|
-
|
|
857
|
-
|
|
858
|
-
|
|
859
|
-
|
|
860
|
-
$metadata,
|
|
848
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
849
|
+
output,
|
|
850
|
+
parsedBody,
|
|
851
|
+
exceptionCtor: ComprehendServiceException_1.ComprehendServiceException,
|
|
852
|
+
errorCode,
|
|
861
853
|
});
|
|
862
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
863
854
|
}
|
|
864
855
|
};
|
|
865
856
|
const deserializeAws_json1_1BatchDetectSentimentCommand = async (output, context) => {
|
|
@@ -881,7 +872,6 @@ const deserializeAws_json1_1BatchDetectSentimentCommandError = async (output, co
|
|
|
881
872
|
...output,
|
|
882
873
|
body: await parseBody(output.body, context),
|
|
883
874
|
};
|
|
884
|
-
let response;
|
|
885
875
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
886
876
|
switch (errorCode) {
|
|
887
877
|
case "BatchSizeLimitExceededException":
|
|
@@ -901,14 +891,12 @@ const deserializeAws_json1_1BatchDetectSentimentCommandError = async (output, co
|
|
|
901
891
|
throw await deserializeAws_json1_1UnsupportedLanguageExceptionResponse(parsedOutput, context);
|
|
902
892
|
default:
|
|
903
893
|
const parsedBody = parsedOutput.body;
|
|
904
|
-
|
|
905
|
-
|
|
906
|
-
|
|
907
|
-
|
|
908
|
-
|
|
909
|
-
$metadata,
|
|
894
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
895
|
+
output,
|
|
896
|
+
parsedBody,
|
|
897
|
+
exceptionCtor: ComprehendServiceException_1.ComprehendServiceException,
|
|
898
|
+
errorCode,
|
|
910
899
|
});
|
|
911
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
912
900
|
}
|
|
913
901
|
};
|
|
914
902
|
const deserializeAws_json1_1BatchDetectSyntaxCommand = async (output, context) => {
|
|
@@ -930,7 +918,6 @@ const deserializeAws_json1_1BatchDetectSyntaxCommandError = async (output, conte
|
|
|
930
918
|
...output,
|
|
931
919
|
body: await parseBody(output.body, context),
|
|
932
920
|
};
|
|
933
|
-
let response;
|
|
934
921
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
935
922
|
switch (errorCode) {
|
|
936
923
|
case "BatchSizeLimitExceededException":
|
|
@@ -950,14 +937,12 @@ const deserializeAws_json1_1BatchDetectSyntaxCommandError = async (output, conte
|
|
|
950
937
|
throw await deserializeAws_json1_1UnsupportedLanguageExceptionResponse(parsedOutput, context);
|
|
951
938
|
default:
|
|
952
939
|
const parsedBody = parsedOutput.body;
|
|
953
|
-
|
|
954
|
-
|
|
955
|
-
|
|
956
|
-
|
|
957
|
-
|
|
958
|
-
$metadata,
|
|
940
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
941
|
+
output,
|
|
942
|
+
parsedBody,
|
|
943
|
+
exceptionCtor: ComprehendServiceException_1.ComprehendServiceException,
|
|
944
|
+
errorCode,
|
|
959
945
|
});
|
|
960
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
961
946
|
}
|
|
962
947
|
};
|
|
963
948
|
const deserializeAws_json1_1ClassifyDocumentCommand = async (output, context) => {
|
|
@@ -979,7 +964,6 @@ const deserializeAws_json1_1ClassifyDocumentCommandError = async (output, contex
|
|
|
979
964
|
...output,
|
|
980
965
|
body: await parseBody(output.body, context),
|
|
981
966
|
};
|
|
982
|
-
let response;
|
|
983
967
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
984
968
|
switch (errorCode) {
|
|
985
969
|
case "InternalServerException":
|
|
@@ -996,14 +980,12 @@ const deserializeAws_json1_1ClassifyDocumentCommandError = async (output, contex
|
|
|
996
980
|
throw await deserializeAws_json1_1TextSizeLimitExceededExceptionResponse(parsedOutput, context);
|
|
997
981
|
default:
|
|
998
982
|
const parsedBody = parsedOutput.body;
|
|
999
|
-
|
|
1000
|
-
|
|
1001
|
-
|
|
1002
|
-
|
|
1003
|
-
|
|
1004
|
-
$metadata,
|
|
983
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
984
|
+
output,
|
|
985
|
+
parsedBody,
|
|
986
|
+
exceptionCtor: ComprehendServiceException_1.ComprehendServiceException,
|
|
987
|
+
errorCode,
|
|
1005
988
|
});
|
|
1006
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1007
989
|
}
|
|
1008
990
|
};
|
|
1009
991
|
const deserializeAws_json1_1ContainsPiiEntitiesCommand = async (output, context) => {
|
|
@@ -1025,7 +1007,6 @@ const deserializeAws_json1_1ContainsPiiEntitiesCommandError = async (output, con
|
|
|
1025
1007
|
...output,
|
|
1026
1008
|
body: await parseBody(output.body, context),
|
|
1027
1009
|
};
|
|
1028
|
-
let response;
|
|
1029
1010
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1030
1011
|
switch (errorCode) {
|
|
1031
1012
|
case "InternalServerException":
|
|
@@ -1042,14 +1023,12 @@ const deserializeAws_json1_1ContainsPiiEntitiesCommandError = async (output, con
|
|
|
1042
1023
|
throw await deserializeAws_json1_1UnsupportedLanguageExceptionResponse(parsedOutput, context);
|
|
1043
1024
|
default:
|
|
1044
1025
|
const parsedBody = parsedOutput.body;
|
|
1045
|
-
|
|
1046
|
-
|
|
1047
|
-
|
|
1048
|
-
|
|
1049
|
-
|
|
1050
|
-
$metadata,
|
|
1026
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1027
|
+
output,
|
|
1028
|
+
parsedBody,
|
|
1029
|
+
exceptionCtor: ComprehendServiceException_1.ComprehendServiceException,
|
|
1030
|
+
errorCode,
|
|
1051
1031
|
});
|
|
1052
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1053
1032
|
}
|
|
1054
1033
|
};
|
|
1055
1034
|
const deserializeAws_json1_1CreateDocumentClassifierCommand = async (output, context) => {
|
|
@@ -1071,7 +1050,6 @@ const deserializeAws_json1_1CreateDocumentClassifierCommandError = async (output
|
|
|
1071
1050
|
...output,
|
|
1072
1051
|
body: await parseBody(output.body, context),
|
|
1073
1052
|
};
|
|
1074
|
-
let response;
|
|
1075
1053
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1076
1054
|
switch (errorCode) {
|
|
1077
1055
|
case "InternalServerException":
|
|
@@ -1100,14 +1078,12 @@ const deserializeAws_json1_1CreateDocumentClassifierCommandError = async (output
|
|
|
1100
1078
|
throw await deserializeAws_json1_1UnsupportedLanguageExceptionResponse(parsedOutput, context);
|
|
1101
1079
|
default:
|
|
1102
1080
|
const parsedBody = parsedOutput.body;
|
|
1103
|
-
|
|
1104
|
-
|
|
1105
|
-
|
|
1106
|
-
|
|
1107
|
-
|
|
1108
|
-
$metadata,
|
|
1081
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1082
|
+
output,
|
|
1083
|
+
parsedBody,
|
|
1084
|
+
exceptionCtor: ComprehendServiceException_1.ComprehendServiceException,
|
|
1085
|
+
errorCode,
|
|
1109
1086
|
});
|
|
1110
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1111
1087
|
}
|
|
1112
1088
|
};
|
|
1113
1089
|
const deserializeAws_json1_1CreateEndpointCommand = async (output, context) => {
|
|
@@ -1129,7 +1105,6 @@ const deserializeAws_json1_1CreateEndpointCommandError = async (output, context)
|
|
|
1129
1105
|
...output,
|
|
1130
1106
|
body: await parseBody(output.body, context),
|
|
1131
1107
|
};
|
|
1132
|
-
let response;
|
|
1133
1108
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1134
1109
|
switch (errorCode) {
|
|
1135
1110
|
case "InternalServerException":
|
|
@@ -1158,14 +1133,12 @@ const deserializeAws_json1_1CreateEndpointCommandError = async (output, context)
|
|
|
1158
1133
|
throw await deserializeAws_json1_1TooManyTagsExceptionResponse(parsedOutput, context);
|
|
1159
1134
|
default:
|
|
1160
1135
|
const parsedBody = parsedOutput.body;
|
|
1161
|
-
|
|
1162
|
-
|
|
1163
|
-
|
|
1164
|
-
|
|
1165
|
-
|
|
1166
|
-
$metadata,
|
|
1136
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1137
|
+
output,
|
|
1138
|
+
parsedBody,
|
|
1139
|
+
exceptionCtor: ComprehendServiceException_1.ComprehendServiceException,
|
|
1140
|
+
errorCode,
|
|
1167
1141
|
});
|
|
1168
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1169
1142
|
}
|
|
1170
1143
|
};
|
|
1171
1144
|
const deserializeAws_json1_1CreateEntityRecognizerCommand = async (output, context) => {
|
|
@@ -1187,7 +1160,6 @@ const deserializeAws_json1_1CreateEntityRecognizerCommandError = async (output,
|
|
|
1187
1160
|
...output,
|
|
1188
1161
|
body: await parseBody(output.body, context),
|
|
1189
1162
|
};
|
|
1190
|
-
let response;
|
|
1191
1163
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1192
1164
|
switch (errorCode) {
|
|
1193
1165
|
case "InternalServerException":
|
|
@@ -1216,14 +1188,12 @@ const deserializeAws_json1_1CreateEntityRecognizerCommandError = async (output,
|
|
|
1216
1188
|
throw await deserializeAws_json1_1UnsupportedLanguageExceptionResponse(parsedOutput, context);
|
|
1217
1189
|
default:
|
|
1218
1190
|
const parsedBody = parsedOutput.body;
|
|
1219
|
-
|
|
1220
|
-
|
|
1221
|
-
|
|
1222
|
-
|
|
1223
|
-
|
|
1224
|
-
$metadata,
|
|
1191
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1192
|
+
output,
|
|
1193
|
+
parsedBody,
|
|
1194
|
+
exceptionCtor: ComprehendServiceException_1.ComprehendServiceException,
|
|
1195
|
+
errorCode,
|
|
1225
1196
|
});
|
|
1226
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1227
1197
|
}
|
|
1228
1198
|
};
|
|
1229
1199
|
const deserializeAws_json1_1DeleteDocumentClassifierCommand = async (output, context) => {
|
|
@@ -1245,7 +1215,6 @@ const deserializeAws_json1_1DeleteDocumentClassifierCommandError = async (output
|
|
|
1245
1215
|
...output,
|
|
1246
1216
|
body: await parseBody(output.body, context),
|
|
1247
1217
|
};
|
|
1248
|
-
let response;
|
|
1249
1218
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1250
1219
|
switch (errorCode) {
|
|
1251
1220
|
case "InternalServerException":
|
|
@@ -1268,14 +1237,12 @@ const deserializeAws_json1_1DeleteDocumentClassifierCommandError = async (output
|
|
|
1268
1237
|
throw await deserializeAws_json1_1TooManyRequestsExceptionResponse(parsedOutput, context);
|
|
1269
1238
|
default:
|
|
1270
1239
|
const parsedBody = parsedOutput.body;
|
|
1271
|
-
|
|
1272
|
-
|
|
1273
|
-
|
|
1274
|
-
|
|
1275
|
-
|
|
1276
|
-
$metadata,
|
|
1240
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1241
|
+
output,
|
|
1242
|
+
parsedBody,
|
|
1243
|
+
exceptionCtor: ComprehendServiceException_1.ComprehendServiceException,
|
|
1244
|
+
errorCode,
|
|
1277
1245
|
});
|
|
1278
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1279
1246
|
}
|
|
1280
1247
|
};
|
|
1281
1248
|
const deserializeAws_json1_1DeleteEndpointCommand = async (output, context) => {
|
|
@@ -1297,7 +1264,6 @@ const deserializeAws_json1_1DeleteEndpointCommandError = async (output, context)
|
|
|
1297
1264
|
...output,
|
|
1298
1265
|
body: await parseBody(output.body, context),
|
|
1299
1266
|
};
|
|
1300
|
-
let response;
|
|
1301
1267
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1302
1268
|
switch (errorCode) {
|
|
1303
1269
|
case "InternalServerException":
|
|
@@ -1317,14 +1283,12 @@ const deserializeAws_json1_1DeleteEndpointCommandError = async (output, context)
|
|
|
1317
1283
|
throw await deserializeAws_json1_1TooManyRequestsExceptionResponse(parsedOutput, context);
|
|
1318
1284
|
default:
|
|
1319
1285
|
const parsedBody = parsedOutput.body;
|
|
1320
|
-
|
|
1321
|
-
|
|
1322
|
-
|
|
1323
|
-
|
|
1324
|
-
|
|
1325
|
-
$metadata,
|
|
1286
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1287
|
+
output,
|
|
1288
|
+
parsedBody,
|
|
1289
|
+
exceptionCtor: ComprehendServiceException_1.ComprehendServiceException,
|
|
1290
|
+
errorCode,
|
|
1326
1291
|
});
|
|
1327
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1328
1292
|
}
|
|
1329
1293
|
};
|
|
1330
1294
|
const deserializeAws_json1_1DeleteEntityRecognizerCommand = async (output, context) => {
|
|
@@ -1346,7 +1310,6 @@ const deserializeAws_json1_1DeleteEntityRecognizerCommandError = async (output,
|
|
|
1346
1310
|
...output,
|
|
1347
1311
|
body: await parseBody(output.body, context),
|
|
1348
1312
|
};
|
|
1349
|
-
let response;
|
|
1350
1313
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1351
1314
|
switch (errorCode) {
|
|
1352
1315
|
case "InternalServerException":
|
|
@@ -1369,14 +1332,12 @@ const deserializeAws_json1_1DeleteEntityRecognizerCommandError = async (output,
|
|
|
1369
1332
|
throw await deserializeAws_json1_1TooManyRequestsExceptionResponse(parsedOutput, context);
|
|
1370
1333
|
default:
|
|
1371
1334
|
const parsedBody = parsedOutput.body;
|
|
1372
|
-
|
|
1373
|
-
|
|
1374
|
-
|
|
1375
|
-
|
|
1376
|
-
|
|
1377
|
-
$metadata,
|
|
1335
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1336
|
+
output,
|
|
1337
|
+
parsedBody,
|
|
1338
|
+
exceptionCtor: ComprehendServiceException_1.ComprehendServiceException,
|
|
1339
|
+
errorCode,
|
|
1378
1340
|
});
|
|
1379
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1380
1341
|
}
|
|
1381
1342
|
};
|
|
1382
1343
|
const deserializeAws_json1_1DeleteResourcePolicyCommand = async (output, context) => {
|
|
@@ -1398,7 +1359,6 @@ const deserializeAws_json1_1DeleteResourcePolicyCommandError = async (output, co
|
|
|
1398
1359
|
...output,
|
|
1399
1360
|
body: await parseBody(output.body, context),
|
|
1400
1361
|
};
|
|
1401
|
-
let response;
|
|
1402
1362
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1403
1363
|
switch (errorCode) {
|
|
1404
1364
|
case "InternalServerException":
|
|
@@ -1412,14 +1372,12 @@ const deserializeAws_json1_1DeleteResourcePolicyCommandError = async (output, co
|
|
|
1412
1372
|
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
1413
1373
|
default:
|
|
1414
1374
|
const parsedBody = parsedOutput.body;
|
|
1415
|
-
|
|
1416
|
-
|
|
1417
|
-
|
|
1418
|
-
|
|
1419
|
-
|
|
1420
|
-
$metadata,
|
|
1375
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1376
|
+
output,
|
|
1377
|
+
parsedBody,
|
|
1378
|
+
exceptionCtor: ComprehendServiceException_1.ComprehendServiceException,
|
|
1379
|
+
errorCode,
|
|
1421
1380
|
});
|
|
1422
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1423
1381
|
}
|
|
1424
1382
|
};
|
|
1425
1383
|
const deserializeAws_json1_1DescribeDocumentClassificationJobCommand = async (output, context) => {
|
|
@@ -1441,7 +1399,6 @@ const deserializeAws_json1_1DescribeDocumentClassificationJobCommandError = asyn
|
|
|
1441
1399
|
...output,
|
|
1442
1400
|
body: await parseBody(output.body, context),
|
|
1443
1401
|
};
|
|
1444
|
-
let response;
|
|
1445
1402
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1446
1403
|
switch (errorCode) {
|
|
1447
1404
|
case "InternalServerException":
|
|
@@ -1458,14 +1415,12 @@ const deserializeAws_json1_1DescribeDocumentClassificationJobCommandError = asyn
|
|
|
1458
1415
|
throw await deserializeAws_json1_1TooManyRequestsExceptionResponse(parsedOutput, context);
|
|
1459
1416
|
default:
|
|
1460
1417
|
const parsedBody = parsedOutput.body;
|
|
1461
|
-
|
|
1462
|
-
|
|
1463
|
-
|
|
1464
|
-
|
|
1465
|
-
|
|
1466
|
-
$metadata,
|
|
1418
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1419
|
+
output,
|
|
1420
|
+
parsedBody,
|
|
1421
|
+
exceptionCtor: ComprehendServiceException_1.ComprehendServiceException,
|
|
1422
|
+
errorCode,
|
|
1467
1423
|
});
|
|
1468
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1469
1424
|
}
|
|
1470
1425
|
};
|
|
1471
1426
|
const deserializeAws_json1_1DescribeDocumentClassifierCommand = async (output, context) => {
|
|
@@ -1487,7 +1442,6 @@ const deserializeAws_json1_1DescribeDocumentClassifierCommandError = async (outp
|
|
|
1487
1442
|
...output,
|
|
1488
1443
|
body: await parseBody(output.body, context),
|
|
1489
1444
|
};
|
|
1490
|
-
let response;
|
|
1491
1445
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1492
1446
|
switch (errorCode) {
|
|
1493
1447
|
case "InternalServerException":
|
|
@@ -1504,14 +1458,12 @@ const deserializeAws_json1_1DescribeDocumentClassifierCommandError = async (outp
|
|
|
1504
1458
|
throw await deserializeAws_json1_1TooManyRequestsExceptionResponse(parsedOutput, context);
|
|
1505
1459
|
default:
|
|
1506
1460
|
const parsedBody = parsedOutput.body;
|
|
1507
|
-
|
|
1508
|
-
|
|
1509
|
-
|
|
1510
|
-
|
|
1511
|
-
|
|
1512
|
-
$metadata,
|
|
1461
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1462
|
+
output,
|
|
1463
|
+
parsedBody,
|
|
1464
|
+
exceptionCtor: ComprehendServiceException_1.ComprehendServiceException,
|
|
1465
|
+
errorCode,
|
|
1513
1466
|
});
|
|
1514
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1515
1467
|
}
|
|
1516
1468
|
};
|
|
1517
1469
|
const deserializeAws_json1_1DescribeDominantLanguageDetectionJobCommand = async (output, context) => {
|
|
@@ -1533,7 +1485,6 @@ const deserializeAws_json1_1DescribeDominantLanguageDetectionJobCommandError = a
|
|
|
1533
1485
|
...output,
|
|
1534
1486
|
body: await parseBody(output.body, context),
|
|
1535
1487
|
};
|
|
1536
|
-
let response;
|
|
1537
1488
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1538
1489
|
switch (errorCode) {
|
|
1539
1490
|
case "InternalServerException":
|
|
@@ -1550,14 +1501,12 @@ const deserializeAws_json1_1DescribeDominantLanguageDetectionJobCommandError = a
|
|
|
1550
1501
|
throw await deserializeAws_json1_1TooManyRequestsExceptionResponse(parsedOutput, context);
|
|
1551
1502
|
default:
|
|
1552
1503
|
const parsedBody = parsedOutput.body;
|
|
1553
|
-
|
|
1554
|
-
|
|
1555
|
-
|
|
1556
|
-
|
|
1557
|
-
|
|
1558
|
-
$metadata,
|
|
1504
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1505
|
+
output,
|
|
1506
|
+
parsedBody,
|
|
1507
|
+
exceptionCtor: ComprehendServiceException_1.ComprehendServiceException,
|
|
1508
|
+
errorCode,
|
|
1559
1509
|
});
|
|
1560
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1561
1510
|
}
|
|
1562
1511
|
};
|
|
1563
1512
|
const deserializeAws_json1_1DescribeEndpointCommand = async (output, context) => {
|
|
@@ -1579,7 +1528,6 @@ const deserializeAws_json1_1DescribeEndpointCommandError = async (output, contex
|
|
|
1579
1528
|
...output,
|
|
1580
1529
|
body: await parseBody(output.body, context),
|
|
1581
1530
|
};
|
|
1582
|
-
let response;
|
|
1583
1531
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1584
1532
|
switch (errorCode) {
|
|
1585
1533
|
case "InternalServerException":
|
|
@@ -1596,14 +1544,12 @@ const deserializeAws_json1_1DescribeEndpointCommandError = async (output, contex
|
|
|
1596
1544
|
throw await deserializeAws_json1_1TooManyRequestsExceptionResponse(parsedOutput, context);
|
|
1597
1545
|
default:
|
|
1598
1546
|
const parsedBody = parsedOutput.body;
|
|
1599
|
-
|
|
1600
|
-
|
|
1601
|
-
|
|
1602
|
-
|
|
1603
|
-
|
|
1604
|
-
$metadata,
|
|
1547
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1548
|
+
output,
|
|
1549
|
+
parsedBody,
|
|
1550
|
+
exceptionCtor: ComprehendServiceException_1.ComprehendServiceException,
|
|
1551
|
+
errorCode,
|
|
1605
1552
|
});
|
|
1606
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1607
1553
|
}
|
|
1608
1554
|
};
|
|
1609
1555
|
const deserializeAws_json1_1DescribeEntitiesDetectionJobCommand = async (output, context) => {
|
|
@@ -1625,7 +1571,6 @@ const deserializeAws_json1_1DescribeEntitiesDetectionJobCommandError = async (ou
|
|
|
1625
1571
|
...output,
|
|
1626
1572
|
body: await parseBody(output.body, context),
|
|
1627
1573
|
};
|
|
1628
|
-
let response;
|
|
1629
1574
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1630
1575
|
switch (errorCode) {
|
|
1631
1576
|
case "InternalServerException":
|
|
@@ -1642,14 +1587,12 @@ const deserializeAws_json1_1DescribeEntitiesDetectionJobCommandError = async (ou
|
|
|
1642
1587
|
throw await deserializeAws_json1_1TooManyRequestsExceptionResponse(parsedOutput, context);
|
|
1643
1588
|
default:
|
|
1644
1589
|
const parsedBody = parsedOutput.body;
|
|
1645
|
-
|
|
1646
|
-
|
|
1647
|
-
|
|
1648
|
-
|
|
1649
|
-
|
|
1650
|
-
$metadata,
|
|
1590
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1591
|
+
output,
|
|
1592
|
+
parsedBody,
|
|
1593
|
+
exceptionCtor: ComprehendServiceException_1.ComprehendServiceException,
|
|
1594
|
+
errorCode,
|
|
1651
1595
|
});
|
|
1652
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1653
1596
|
}
|
|
1654
1597
|
};
|
|
1655
1598
|
const deserializeAws_json1_1DescribeEntityRecognizerCommand = async (output, context) => {
|
|
@@ -1671,7 +1614,6 @@ const deserializeAws_json1_1DescribeEntityRecognizerCommandError = async (output
|
|
|
1671
1614
|
...output,
|
|
1672
1615
|
body: await parseBody(output.body, context),
|
|
1673
1616
|
};
|
|
1674
|
-
let response;
|
|
1675
1617
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1676
1618
|
switch (errorCode) {
|
|
1677
1619
|
case "InternalServerException":
|
|
@@ -1688,14 +1630,12 @@ const deserializeAws_json1_1DescribeEntityRecognizerCommandError = async (output
|
|
|
1688
1630
|
throw await deserializeAws_json1_1TooManyRequestsExceptionResponse(parsedOutput, context);
|
|
1689
1631
|
default:
|
|
1690
1632
|
const parsedBody = parsedOutput.body;
|
|
1691
|
-
|
|
1692
|
-
|
|
1693
|
-
|
|
1694
|
-
|
|
1695
|
-
|
|
1696
|
-
$metadata,
|
|
1633
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1634
|
+
output,
|
|
1635
|
+
parsedBody,
|
|
1636
|
+
exceptionCtor: ComprehendServiceException_1.ComprehendServiceException,
|
|
1637
|
+
errorCode,
|
|
1697
1638
|
});
|
|
1698
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1699
1639
|
}
|
|
1700
1640
|
};
|
|
1701
1641
|
const deserializeAws_json1_1DescribeEventsDetectionJobCommand = async (output, context) => {
|
|
@@ -1717,7 +1657,6 @@ const deserializeAws_json1_1DescribeEventsDetectionJobCommandError = async (outp
|
|
|
1717
1657
|
...output,
|
|
1718
1658
|
body: await parseBody(output.body, context),
|
|
1719
1659
|
};
|
|
1720
|
-
let response;
|
|
1721
1660
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1722
1661
|
switch (errorCode) {
|
|
1723
1662
|
case "InternalServerException":
|
|
@@ -1734,14 +1673,12 @@ const deserializeAws_json1_1DescribeEventsDetectionJobCommandError = async (outp
|
|
|
1734
1673
|
throw await deserializeAws_json1_1TooManyRequestsExceptionResponse(parsedOutput, context);
|
|
1735
1674
|
default:
|
|
1736
1675
|
const parsedBody = parsedOutput.body;
|
|
1737
|
-
|
|
1738
|
-
|
|
1739
|
-
|
|
1740
|
-
|
|
1741
|
-
|
|
1742
|
-
$metadata,
|
|
1676
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1677
|
+
output,
|
|
1678
|
+
parsedBody,
|
|
1679
|
+
exceptionCtor: ComprehendServiceException_1.ComprehendServiceException,
|
|
1680
|
+
errorCode,
|
|
1743
1681
|
});
|
|
1744
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1745
1682
|
}
|
|
1746
1683
|
};
|
|
1747
1684
|
const deserializeAws_json1_1DescribeKeyPhrasesDetectionJobCommand = async (output, context) => {
|
|
@@ -1763,7 +1700,6 @@ const deserializeAws_json1_1DescribeKeyPhrasesDetectionJobCommandError = async (
|
|
|
1763
1700
|
...output,
|
|
1764
1701
|
body: await parseBody(output.body, context),
|
|
1765
1702
|
};
|
|
1766
|
-
let response;
|
|
1767
1703
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1768
1704
|
switch (errorCode) {
|
|
1769
1705
|
case "InternalServerException":
|
|
@@ -1780,14 +1716,12 @@ const deserializeAws_json1_1DescribeKeyPhrasesDetectionJobCommandError = async (
|
|
|
1780
1716
|
throw await deserializeAws_json1_1TooManyRequestsExceptionResponse(parsedOutput, context);
|
|
1781
1717
|
default:
|
|
1782
1718
|
const parsedBody = parsedOutput.body;
|
|
1783
|
-
|
|
1784
|
-
|
|
1785
|
-
|
|
1786
|
-
|
|
1787
|
-
|
|
1788
|
-
$metadata,
|
|
1719
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1720
|
+
output,
|
|
1721
|
+
parsedBody,
|
|
1722
|
+
exceptionCtor: ComprehendServiceException_1.ComprehendServiceException,
|
|
1723
|
+
errorCode,
|
|
1789
1724
|
});
|
|
1790
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1791
1725
|
}
|
|
1792
1726
|
};
|
|
1793
1727
|
const deserializeAws_json1_1DescribePiiEntitiesDetectionJobCommand = async (output, context) => {
|
|
@@ -1809,7 +1743,6 @@ const deserializeAws_json1_1DescribePiiEntitiesDetectionJobCommandError = async
|
|
|
1809
1743
|
...output,
|
|
1810
1744
|
body: await parseBody(output.body, context),
|
|
1811
1745
|
};
|
|
1812
|
-
let response;
|
|
1813
1746
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1814
1747
|
switch (errorCode) {
|
|
1815
1748
|
case "InternalServerException":
|
|
@@ -1826,14 +1759,12 @@ const deserializeAws_json1_1DescribePiiEntitiesDetectionJobCommandError = async
|
|
|
1826
1759
|
throw await deserializeAws_json1_1TooManyRequestsExceptionResponse(parsedOutput, context);
|
|
1827
1760
|
default:
|
|
1828
1761
|
const parsedBody = parsedOutput.body;
|
|
1829
|
-
|
|
1830
|
-
|
|
1831
|
-
|
|
1832
|
-
|
|
1833
|
-
|
|
1834
|
-
$metadata,
|
|
1762
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1763
|
+
output,
|
|
1764
|
+
parsedBody,
|
|
1765
|
+
exceptionCtor: ComprehendServiceException_1.ComprehendServiceException,
|
|
1766
|
+
errorCode,
|
|
1835
1767
|
});
|
|
1836
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1837
1768
|
}
|
|
1838
1769
|
};
|
|
1839
1770
|
const deserializeAws_json1_1DescribeResourcePolicyCommand = async (output, context) => {
|
|
@@ -1855,7 +1786,6 @@ const deserializeAws_json1_1DescribeResourcePolicyCommandError = async (output,
|
|
|
1855
1786
|
...output,
|
|
1856
1787
|
body: await parseBody(output.body, context),
|
|
1857
1788
|
};
|
|
1858
|
-
let response;
|
|
1859
1789
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1860
1790
|
switch (errorCode) {
|
|
1861
1791
|
case "InternalServerException":
|
|
@@ -1869,14 +1799,12 @@ const deserializeAws_json1_1DescribeResourcePolicyCommandError = async (output,
|
|
|
1869
1799
|
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
1870
1800
|
default:
|
|
1871
1801
|
const parsedBody = parsedOutput.body;
|
|
1872
|
-
|
|
1873
|
-
|
|
1874
|
-
|
|
1875
|
-
|
|
1876
|
-
|
|
1877
|
-
$metadata,
|
|
1802
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1803
|
+
output,
|
|
1804
|
+
parsedBody,
|
|
1805
|
+
exceptionCtor: ComprehendServiceException_1.ComprehendServiceException,
|
|
1806
|
+
errorCode,
|
|
1878
1807
|
});
|
|
1879
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1880
1808
|
}
|
|
1881
1809
|
};
|
|
1882
1810
|
const deserializeAws_json1_1DescribeSentimentDetectionJobCommand = async (output, context) => {
|
|
@@ -1898,7 +1826,6 @@ const deserializeAws_json1_1DescribeSentimentDetectionJobCommandError = async (o
|
|
|
1898
1826
|
...output,
|
|
1899
1827
|
body: await parseBody(output.body, context),
|
|
1900
1828
|
};
|
|
1901
|
-
let response;
|
|
1902
1829
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1903
1830
|
switch (errorCode) {
|
|
1904
1831
|
case "InternalServerException":
|
|
@@ -1915,14 +1842,12 @@ const deserializeAws_json1_1DescribeSentimentDetectionJobCommandError = async (o
|
|
|
1915
1842
|
throw await deserializeAws_json1_1TooManyRequestsExceptionResponse(parsedOutput, context);
|
|
1916
1843
|
default:
|
|
1917
1844
|
const parsedBody = parsedOutput.body;
|
|
1918
|
-
|
|
1919
|
-
|
|
1920
|
-
|
|
1921
|
-
|
|
1922
|
-
|
|
1923
|
-
$metadata,
|
|
1845
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1846
|
+
output,
|
|
1847
|
+
parsedBody,
|
|
1848
|
+
exceptionCtor: ComprehendServiceException_1.ComprehendServiceException,
|
|
1849
|
+
errorCode,
|
|
1924
1850
|
});
|
|
1925
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1926
1851
|
}
|
|
1927
1852
|
};
|
|
1928
1853
|
const deserializeAws_json1_1DescribeTargetedSentimentDetectionJobCommand = async (output, context) => {
|
|
@@ -1944,7 +1869,6 @@ const deserializeAws_json1_1DescribeTargetedSentimentDetectionJobCommandError =
|
|
|
1944
1869
|
...output,
|
|
1945
1870
|
body: await parseBody(output.body, context),
|
|
1946
1871
|
};
|
|
1947
|
-
let response;
|
|
1948
1872
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1949
1873
|
switch (errorCode) {
|
|
1950
1874
|
case "InternalServerException":
|
|
@@ -1961,14 +1885,12 @@ const deserializeAws_json1_1DescribeTargetedSentimentDetectionJobCommandError =
|
|
|
1961
1885
|
throw await deserializeAws_json1_1TooManyRequestsExceptionResponse(parsedOutput, context);
|
|
1962
1886
|
default:
|
|
1963
1887
|
const parsedBody = parsedOutput.body;
|
|
1964
|
-
|
|
1965
|
-
|
|
1966
|
-
|
|
1967
|
-
|
|
1968
|
-
|
|
1969
|
-
$metadata,
|
|
1888
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1889
|
+
output,
|
|
1890
|
+
parsedBody,
|
|
1891
|
+
exceptionCtor: ComprehendServiceException_1.ComprehendServiceException,
|
|
1892
|
+
errorCode,
|
|
1970
1893
|
});
|
|
1971
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1972
1894
|
}
|
|
1973
1895
|
};
|
|
1974
1896
|
const deserializeAws_json1_1DescribeTopicsDetectionJobCommand = async (output, context) => {
|
|
@@ -1990,7 +1912,6 @@ const deserializeAws_json1_1DescribeTopicsDetectionJobCommandError = async (outp
|
|
|
1990
1912
|
...output,
|
|
1991
1913
|
body: await parseBody(output.body, context),
|
|
1992
1914
|
};
|
|
1993
|
-
let response;
|
|
1994
1915
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1995
1916
|
switch (errorCode) {
|
|
1996
1917
|
case "InternalServerException":
|
|
@@ -2007,14 +1928,12 @@ const deserializeAws_json1_1DescribeTopicsDetectionJobCommandError = async (outp
|
|
|
2007
1928
|
throw await deserializeAws_json1_1TooManyRequestsExceptionResponse(parsedOutput, context);
|
|
2008
1929
|
default:
|
|
2009
1930
|
const parsedBody = parsedOutput.body;
|
|
2010
|
-
|
|
2011
|
-
|
|
2012
|
-
|
|
2013
|
-
|
|
2014
|
-
|
|
2015
|
-
$metadata,
|
|
1931
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1932
|
+
output,
|
|
1933
|
+
parsedBody,
|
|
1934
|
+
exceptionCtor: ComprehendServiceException_1.ComprehendServiceException,
|
|
1935
|
+
errorCode,
|
|
2016
1936
|
});
|
|
2017
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2018
1937
|
}
|
|
2019
1938
|
};
|
|
2020
1939
|
const deserializeAws_json1_1DetectDominantLanguageCommand = async (output, context) => {
|
|
@@ -2036,7 +1955,6 @@ const deserializeAws_json1_1DetectDominantLanguageCommandError = async (output,
|
|
|
2036
1955
|
...output,
|
|
2037
1956
|
body: await parseBody(output.body, context),
|
|
2038
1957
|
};
|
|
2039
|
-
let response;
|
|
2040
1958
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2041
1959
|
switch (errorCode) {
|
|
2042
1960
|
case "InternalServerException":
|
|
@@ -2050,14 +1968,12 @@ const deserializeAws_json1_1DetectDominantLanguageCommandError = async (output,
|
|
|
2050
1968
|
throw await deserializeAws_json1_1TextSizeLimitExceededExceptionResponse(parsedOutput, context);
|
|
2051
1969
|
default:
|
|
2052
1970
|
const parsedBody = parsedOutput.body;
|
|
2053
|
-
|
|
2054
|
-
|
|
2055
|
-
|
|
2056
|
-
|
|
2057
|
-
|
|
2058
|
-
$metadata,
|
|
1971
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1972
|
+
output,
|
|
1973
|
+
parsedBody,
|
|
1974
|
+
exceptionCtor: ComprehendServiceException_1.ComprehendServiceException,
|
|
1975
|
+
errorCode,
|
|
2059
1976
|
});
|
|
2060
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2061
1977
|
}
|
|
2062
1978
|
};
|
|
2063
1979
|
const deserializeAws_json1_1DetectEntitiesCommand = async (output, context) => {
|
|
@@ -2079,7 +1995,6 @@ const deserializeAws_json1_1DetectEntitiesCommandError = async (output, context)
|
|
|
2079
1995
|
...output,
|
|
2080
1996
|
body: await parseBody(output.body, context),
|
|
2081
1997
|
};
|
|
2082
|
-
let response;
|
|
2083
1998
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2084
1999
|
switch (errorCode) {
|
|
2085
2000
|
case "InternalServerException":
|
|
@@ -2099,14 +2014,12 @@ const deserializeAws_json1_1DetectEntitiesCommandError = async (output, context)
|
|
|
2099
2014
|
throw await deserializeAws_json1_1UnsupportedLanguageExceptionResponse(parsedOutput, context);
|
|
2100
2015
|
default:
|
|
2101
2016
|
const parsedBody = parsedOutput.body;
|
|
2102
|
-
|
|
2103
|
-
|
|
2104
|
-
|
|
2105
|
-
|
|
2106
|
-
|
|
2107
|
-
$metadata,
|
|
2017
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
2018
|
+
output,
|
|
2019
|
+
parsedBody,
|
|
2020
|
+
exceptionCtor: ComprehendServiceException_1.ComprehendServiceException,
|
|
2021
|
+
errorCode,
|
|
2108
2022
|
});
|
|
2109
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2110
2023
|
}
|
|
2111
2024
|
};
|
|
2112
2025
|
const deserializeAws_json1_1DetectKeyPhrasesCommand = async (output, context) => {
|
|
@@ -2128,7 +2041,6 @@ const deserializeAws_json1_1DetectKeyPhrasesCommandError = async (output, contex
|
|
|
2128
2041
|
...output,
|
|
2129
2042
|
body: await parseBody(output.body, context),
|
|
2130
2043
|
};
|
|
2131
|
-
let response;
|
|
2132
2044
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2133
2045
|
switch (errorCode) {
|
|
2134
2046
|
case "InternalServerException":
|
|
@@ -2145,14 +2057,12 @@ const deserializeAws_json1_1DetectKeyPhrasesCommandError = async (output, contex
|
|
|
2145
2057
|
throw await deserializeAws_json1_1UnsupportedLanguageExceptionResponse(parsedOutput, context);
|
|
2146
2058
|
default:
|
|
2147
2059
|
const parsedBody = parsedOutput.body;
|
|
2148
|
-
|
|
2149
|
-
|
|
2150
|
-
|
|
2151
|
-
|
|
2152
|
-
|
|
2153
|
-
$metadata,
|
|
2060
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
2061
|
+
output,
|
|
2062
|
+
parsedBody,
|
|
2063
|
+
exceptionCtor: ComprehendServiceException_1.ComprehendServiceException,
|
|
2064
|
+
errorCode,
|
|
2154
2065
|
});
|
|
2155
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2156
2066
|
}
|
|
2157
2067
|
};
|
|
2158
2068
|
const deserializeAws_json1_1DetectPiiEntitiesCommand = async (output, context) => {
|
|
@@ -2174,7 +2084,6 @@ const deserializeAws_json1_1DetectPiiEntitiesCommandError = async (output, conte
|
|
|
2174
2084
|
...output,
|
|
2175
2085
|
body: await parseBody(output.body, context),
|
|
2176
2086
|
};
|
|
2177
|
-
let response;
|
|
2178
2087
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2179
2088
|
switch (errorCode) {
|
|
2180
2089
|
case "InternalServerException":
|
|
@@ -2191,14 +2100,12 @@ const deserializeAws_json1_1DetectPiiEntitiesCommandError = async (output, conte
|
|
|
2191
2100
|
throw await deserializeAws_json1_1UnsupportedLanguageExceptionResponse(parsedOutput, context);
|
|
2192
2101
|
default:
|
|
2193
2102
|
const parsedBody = parsedOutput.body;
|
|
2194
|
-
|
|
2195
|
-
|
|
2196
|
-
|
|
2197
|
-
|
|
2198
|
-
|
|
2199
|
-
$metadata,
|
|
2103
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
2104
|
+
output,
|
|
2105
|
+
parsedBody,
|
|
2106
|
+
exceptionCtor: ComprehendServiceException_1.ComprehendServiceException,
|
|
2107
|
+
errorCode,
|
|
2200
2108
|
});
|
|
2201
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2202
2109
|
}
|
|
2203
2110
|
};
|
|
2204
2111
|
const deserializeAws_json1_1DetectSentimentCommand = async (output, context) => {
|
|
@@ -2220,7 +2127,6 @@ const deserializeAws_json1_1DetectSentimentCommandError = async (output, context
|
|
|
2220
2127
|
...output,
|
|
2221
2128
|
body: await parseBody(output.body, context),
|
|
2222
2129
|
};
|
|
2223
|
-
let response;
|
|
2224
2130
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2225
2131
|
switch (errorCode) {
|
|
2226
2132
|
case "InternalServerException":
|
|
@@ -2237,14 +2143,12 @@ const deserializeAws_json1_1DetectSentimentCommandError = async (output, context
|
|
|
2237
2143
|
throw await deserializeAws_json1_1UnsupportedLanguageExceptionResponse(parsedOutput, context);
|
|
2238
2144
|
default:
|
|
2239
2145
|
const parsedBody = parsedOutput.body;
|
|
2240
|
-
|
|
2241
|
-
|
|
2242
|
-
|
|
2243
|
-
|
|
2244
|
-
|
|
2245
|
-
$metadata,
|
|
2146
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
2147
|
+
output,
|
|
2148
|
+
parsedBody,
|
|
2149
|
+
exceptionCtor: ComprehendServiceException_1.ComprehendServiceException,
|
|
2150
|
+
errorCode,
|
|
2246
2151
|
});
|
|
2247
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2248
2152
|
}
|
|
2249
2153
|
};
|
|
2250
2154
|
const deserializeAws_json1_1DetectSyntaxCommand = async (output, context) => {
|
|
@@ -2266,7 +2170,6 @@ const deserializeAws_json1_1DetectSyntaxCommandError = async (output, context) =
|
|
|
2266
2170
|
...output,
|
|
2267
2171
|
body: await parseBody(output.body, context),
|
|
2268
2172
|
};
|
|
2269
|
-
let response;
|
|
2270
2173
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2271
2174
|
switch (errorCode) {
|
|
2272
2175
|
case "InternalServerException":
|
|
@@ -2283,14 +2186,12 @@ const deserializeAws_json1_1DetectSyntaxCommandError = async (output, context) =
|
|
|
2283
2186
|
throw await deserializeAws_json1_1UnsupportedLanguageExceptionResponse(parsedOutput, context);
|
|
2284
2187
|
default:
|
|
2285
2188
|
const parsedBody = parsedOutput.body;
|
|
2286
|
-
|
|
2287
|
-
|
|
2288
|
-
|
|
2289
|
-
|
|
2290
|
-
|
|
2291
|
-
$metadata,
|
|
2189
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
2190
|
+
output,
|
|
2191
|
+
parsedBody,
|
|
2192
|
+
exceptionCtor: ComprehendServiceException_1.ComprehendServiceException,
|
|
2193
|
+
errorCode,
|
|
2292
2194
|
});
|
|
2293
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2294
2195
|
}
|
|
2295
2196
|
};
|
|
2296
2197
|
const deserializeAws_json1_1ImportModelCommand = async (output, context) => {
|
|
@@ -2312,7 +2213,6 @@ const deserializeAws_json1_1ImportModelCommandError = async (output, context) =>
|
|
|
2312
2213
|
...output,
|
|
2313
2214
|
body: await parseBody(output.body, context),
|
|
2314
2215
|
};
|
|
2315
|
-
let response;
|
|
2316
2216
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2317
2217
|
switch (errorCode) {
|
|
2318
2218
|
case "InternalServerException":
|
|
@@ -2344,14 +2244,12 @@ const deserializeAws_json1_1ImportModelCommandError = async (output, context) =>
|
|
|
2344
2244
|
throw await deserializeAws_json1_1TooManyTagsExceptionResponse(parsedOutput, context);
|
|
2345
2245
|
default:
|
|
2346
2246
|
const parsedBody = parsedOutput.body;
|
|
2347
|
-
|
|
2348
|
-
|
|
2349
|
-
|
|
2350
|
-
|
|
2351
|
-
|
|
2352
|
-
$metadata,
|
|
2247
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
2248
|
+
output,
|
|
2249
|
+
parsedBody,
|
|
2250
|
+
exceptionCtor: ComprehendServiceException_1.ComprehendServiceException,
|
|
2251
|
+
errorCode,
|
|
2353
2252
|
});
|
|
2354
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2355
2253
|
}
|
|
2356
2254
|
};
|
|
2357
2255
|
const deserializeAws_json1_1ListDocumentClassificationJobsCommand = async (output, context) => {
|
|
@@ -2373,7 +2271,6 @@ const deserializeAws_json1_1ListDocumentClassificationJobsCommandError = async (
|
|
|
2373
2271
|
...output,
|
|
2374
2272
|
body: await parseBody(output.body, context),
|
|
2375
2273
|
};
|
|
2376
|
-
let response;
|
|
2377
2274
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2378
2275
|
switch (errorCode) {
|
|
2379
2276
|
case "InternalServerException":
|
|
@@ -2390,14 +2287,12 @@ const deserializeAws_json1_1ListDocumentClassificationJobsCommandError = async (
|
|
|
2390
2287
|
throw await deserializeAws_json1_1TooManyRequestsExceptionResponse(parsedOutput, context);
|
|
2391
2288
|
default:
|
|
2392
2289
|
const parsedBody = parsedOutput.body;
|
|
2393
|
-
|
|
2394
|
-
|
|
2395
|
-
|
|
2396
|
-
|
|
2397
|
-
|
|
2398
|
-
$metadata,
|
|
2290
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
2291
|
+
output,
|
|
2292
|
+
parsedBody,
|
|
2293
|
+
exceptionCtor: ComprehendServiceException_1.ComprehendServiceException,
|
|
2294
|
+
errorCode,
|
|
2399
2295
|
});
|
|
2400
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2401
2296
|
}
|
|
2402
2297
|
};
|
|
2403
2298
|
const deserializeAws_json1_1ListDocumentClassifiersCommand = async (output, context) => {
|
|
@@ -2419,7 +2314,6 @@ const deserializeAws_json1_1ListDocumentClassifiersCommandError = async (output,
|
|
|
2419
2314
|
...output,
|
|
2420
2315
|
body: await parseBody(output.body, context),
|
|
2421
2316
|
};
|
|
2422
|
-
let response;
|
|
2423
2317
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2424
2318
|
switch (errorCode) {
|
|
2425
2319
|
case "InternalServerException":
|
|
@@ -2436,14 +2330,12 @@ const deserializeAws_json1_1ListDocumentClassifiersCommandError = async (output,
|
|
|
2436
2330
|
throw await deserializeAws_json1_1TooManyRequestsExceptionResponse(parsedOutput, context);
|
|
2437
2331
|
default:
|
|
2438
2332
|
const parsedBody = parsedOutput.body;
|
|
2439
|
-
|
|
2440
|
-
|
|
2441
|
-
|
|
2442
|
-
|
|
2443
|
-
|
|
2444
|
-
$metadata,
|
|
2333
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
2334
|
+
output,
|
|
2335
|
+
parsedBody,
|
|
2336
|
+
exceptionCtor: ComprehendServiceException_1.ComprehendServiceException,
|
|
2337
|
+
errorCode,
|
|
2445
2338
|
});
|
|
2446
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2447
2339
|
}
|
|
2448
2340
|
};
|
|
2449
2341
|
const deserializeAws_json1_1ListDocumentClassifierSummariesCommand = async (output, context) => {
|
|
@@ -2465,7 +2357,6 @@ const deserializeAws_json1_1ListDocumentClassifierSummariesCommandError = async
|
|
|
2465
2357
|
...output,
|
|
2466
2358
|
body: await parseBody(output.body, context),
|
|
2467
2359
|
};
|
|
2468
|
-
let response;
|
|
2469
2360
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2470
2361
|
switch (errorCode) {
|
|
2471
2362
|
case "InternalServerException":
|
|
@@ -2479,14 +2370,12 @@ const deserializeAws_json1_1ListDocumentClassifierSummariesCommandError = async
|
|
|
2479
2370
|
throw await deserializeAws_json1_1TooManyRequestsExceptionResponse(parsedOutput, context);
|
|
2480
2371
|
default:
|
|
2481
2372
|
const parsedBody = parsedOutput.body;
|
|
2482
|
-
|
|
2483
|
-
|
|
2484
|
-
|
|
2485
|
-
|
|
2486
|
-
|
|
2487
|
-
$metadata,
|
|
2373
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
2374
|
+
output,
|
|
2375
|
+
parsedBody,
|
|
2376
|
+
exceptionCtor: ComprehendServiceException_1.ComprehendServiceException,
|
|
2377
|
+
errorCode,
|
|
2488
2378
|
});
|
|
2489
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2490
2379
|
}
|
|
2491
2380
|
};
|
|
2492
2381
|
const deserializeAws_json1_1ListDominantLanguageDetectionJobsCommand = async (output, context) => {
|
|
@@ -2508,7 +2397,6 @@ const deserializeAws_json1_1ListDominantLanguageDetectionJobsCommandError = asyn
|
|
|
2508
2397
|
...output,
|
|
2509
2398
|
body: await parseBody(output.body, context),
|
|
2510
2399
|
};
|
|
2511
|
-
let response;
|
|
2512
2400
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2513
2401
|
switch (errorCode) {
|
|
2514
2402
|
case "InternalServerException":
|
|
@@ -2525,14 +2413,12 @@ const deserializeAws_json1_1ListDominantLanguageDetectionJobsCommandError = asyn
|
|
|
2525
2413
|
throw await deserializeAws_json1_1TooManyRequestsExceptionResponse(parsedOutput, context);
|
|
2526
2414
|
default:
|
|
2527
2415
|
const parsedBody = parsedOutput.body;
|
|
2528
|
-
|
|
2529
|
-
|
|
2530
|
-
|
|
2531
|
-
|
|
2532
|
-
|
|
2533
|
-
$metadata,
|
|
2416
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
2417
|
+
output,
|
|
2418
|
+
parsedBody,
|
|
2419
|
+
exceptionCtor: ComprehendServiceException_1.ComprehendServiceException,
|
|
2420
|
+
errorCode,
|
|
2534
2421
|
});
|
|
2535
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2536
2422
|
}
|
|
2537
2423
|
};
|
|
2538
2424
|
const deserializeAws_json1_1ListEndpointsCommand = async (output, context) => {
|
|
@@ -2554,7 +2440,6 @@ const deserializeAws_json1_1ListEndpointsCommandError = async (output, context)
|
|
|
2554
2440
|
...output,
|
|
2555
2441
|
body: await parseBody(output.body, context),
|
|
2556
2442
|
};
|
|
2557
|
-
let response;
|
|
2558
2443
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2559
2444
|
switch (errorCode) {
|
|
2560
2445
|
case "InternalServerException":
|
|
@@ -2568,14 +2453,12 @@ const deserializeAws_json1_1ListEndpointsCommandError = async (output, context)
|
|
|
2568
2453
|
throw await deserializeAws_json1_1TooManyRequestsExceptionResponse(parsedOutput, context);
|
|
2569
2454
|
default:
|
|
2570
2455
|
const parsedBody = parsedOutput.body;
|
|
2571
|
-
|
|
2572
|
-
|
|
2573
|
-
|
|
2574
|
-
|
|
2575
|
-
|
|
2576
|
-
$metadata,
|
|
2456
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
2457
|
+
output,
|
|
2458
|
+
parsedBody,
|
|
2459
|
+
exceptionCtor: ComprehendServiceException_1.ComprehendServiceException,
|
|
2460
|
+
errorCode,
|
|
2577
2461
|
});
|
|
2578
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2579
2462
|
}
|
|
2580
2463
|
};
|
|
2581
2464
|
const deserializeAws_json1_1ListEntitiesDetectionJobsCommand = async (output, context) => {
|
|
@@ -2597,7 +2480,6 @@ const deserializeAws_json1_1ListEntitiesDetectionJobsCommandError = async (outpu
|
|
|
2597
2480
|
...output,
|
|
2598
2481
|
body: await parseBody(output.body, context),
|
|
2599
2482
|
};
|
|
2600
|
-
let response;
|
|
2601
2483
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2602
2484
|
switch (errorCode) {
|
|
2603
2485
|
case "InternalServerException":
|
|
@@ -2614,14 +2496,12 @@ const deserializeAws_json1_1ListEntitiesDetectionJobsCommandError = async (outpu
|
|
|
2614
2496
|
throw await deserializeAws_json1_1TooManyRequestsExceptionResponse(parsedOutput, context);
|
|
2615
2497
|
default:
|
|
2616
2498
|
const parsedBody = parsedOutput.body;
|
|
2617
|
-
|
|
2618
|
-
|
|
2619
|
-
|
|
2620
|
-
|
|
2621
|
-
|
|
2622
|
-
$metadata,
|
|
2499
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
2500
|
+
output,
|
|
2501
|
+
parsedBody,
|
|
2502
|
+
exceptionCtor: ComprehendServiceException_1.ComprehendServiceException,
|
|
2503
|
+
errorCode,
|
|
2623
2504
|
});
|
|
2624
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2625
2505
|
}
|
|
2626
2506
|
};
|
|
2627
2507
|
const deserializeAws_json1_1ListEntityRecognizersCommand = async (output, context) => {
|
|
@@ -2643,7 +2523,6 @@ const deserializeAws_json1_1ListEntityRecognizersCommandError = async (output, c
|
|
|
2643
2523
|
...output,
|
|
2644
2524
|
body: await parseBody(output.body, context),
|
|
2645
2525
|
};
|
|
2646
|
-
let response;
|
|
2647
2526
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2648
2527
|
switch (errorCode) {
|
|
2649
2528
|
case "InternalServerException":
|
|
@@ -2660,14 +2539,12 @@ const deserializeAws_json1_1ListEntityRecognizersCommandError = async (output, c
|
|
|
2660
2539
|
throw await deserializeAws_json1_1TooManyRequestsExceptionResponse(parsedOutput, context);
|
|
2661
2540
|
default:
|
|
2662
2541
|
const parsedBody = parsedOutput.body;
|
|
2663
|
-
|
|
2664
|
-
|
|
2665
|
-
|
|
2666
|
-
|
|
2667
|
-
|
|
2668
|
-
$metadata,
|
|
2542
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
2543
|
+
output,
|
|
2544
|
+
parsedBody,
|
|
2545
|
+
exceptionCtor: ComprehendServiceException_1.ComprehendServiceException,
|
|
2546
|
+
errorCode,
|
|
2669
2547
|
});
|
|
2670
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2671
2548
|
}
|
|
2672
2549
|
};
|
|
2673
2550
|
const deserializeAws_json1_1ListEntityRecognizerSummariesCommand = async (output, context) => {
|
|
@@ -2689,7 +2566,6 @@ const deserializeAws_json1_1ListEntityRecognizerSummariesCommandError = async (o
|
|
|
2689
2566
|
...output,
|
|
2690
2567
|
body: await parseBody(output.body, context),
|
|
2691
2568
|
};
|
|
2692
|
-
let response;
|
|
2693
2569
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2694
2570
|
switch (errorCode) {
|
|
2695
2571
|
case "InternalServerException":
|
|
@@ -2703,14 +2579,12 @@ const deserializeAws_json1_1ListEntityRecognizerSummariesCommandError = async (o
|
|
|
2703
2579
|
throw await deserializeAws_json1_1TooManyRequestsExceptionResponse(parsedOutput, context);
|
|
2704
2580
|
default:
|
|
2705
2581
|
const parsedBody = parsedOutput.body;
|
|
2706
|
-
|
|
2707
|
-
|
|
2708
|
-
|
|
2709
|
-
|
|
2710
|
-
|
|
2711
|
-
$metadata,
|
|
2582
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
2583
|
+
output,
|
|
2584
|
+
parsedBody,
|
|
2585
|
+
exceptionCtor: ComprehendServiceException_1.ComprehendServiceException,
|
|
2586
|
+
errorCode,
|
|
2712
2587
|
});
|
|
2713
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2714
2588
|
}
|
|
2715
2589
|
};
|
|
2716
2590
|
const deserializeAws_json1_1ListEventsDetectionJobsCommand = async (output, context) => {
|
|
@@ -2732,7 +2606,6 @@ const deserializeAws_json1_1ListEventsDetectionJobsCommandError = async (output,
|
|
|
2732
2606
|
...output,
|
|
2733
2607
|
body: await parseBody(output.body, context),
|
|
2734
2608
|
};
|
|
2735
|
-
let response;
|
|
2736
2609
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2737
2610
|
switch (errorCode) {
|
|
2738
2611
|
case "InternalServerException":
|
|
@@ -2749,14 +2622,12 @@ const deserializeAws_json1_1ListEventsDetectionJobsCommandError = async (output,
|
|
|
2749
2622
|
throw await deserializeAws_json1_1TooManyRequestsExceptionResponse(parsedOutput, context);
|
|
2750
2623
|
default:
|
|
2751
2624
|
const parsedBody = parsedOutput.body;
|
|
2752
|
-
|
|
2753
|
-
|
|
2754
|
-
|
|
2755
|
-
|
|
2756
|
-
|
|
2757
|
-
$metadata,
|
|
2625
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
2626
|
+
output,
|
|
2627
|
+
parsedBody,
|
|
2628
|
+
exceptionCtor: ComprehendServiceException_1.ComprehendServiceException,
|
|
2629
|
+
errorCode,
|
|
2758
2630
|
});
|
|
2759
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2760
2631
|
}
|
|
2761
2632
|
};
|
|
2762
2633
|
const deserializeAws_json1_1ListKeyPhrasesDetectionJobsCommand = async (output, context) => {
|
|
@@ -2778,7 +2649,6 @@ const deserializeAws_json1_1ListKeyPhrasesDetectionJobsCommandError = async (out
|
|
|
2778
2649
|
...output,
|
|
2779
2650
|
body: await parseBody(output.body, context),
|
|
2780
2651
|
};
|
|
2781
|
-
let response;
|
|
2782
2652
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2783
2653
|
switch (errorCode) {
|
|
2784
2654
|
case "InternalServerException":
|
|
@@ -2795,14 +2665,12 @@ const deserializeAws_json1_1ListKeyPhrasesDetectionJobsCommandError = async (out
|
|
|
2795
2665
|
throw await deserializeAws_json1_1TooManyRequestsExceptionResponse(parsedOutput, context);
|
|
2796
2666
|
default:
|
|
2797
2667
|
const parsedBody = parsedOutput.body;
|
|
2798
|
-
|
|
2799
|
-
|
|
2800
|
-
|
|
2801
|
-
|
|
2802
|
-
|
|
2803
|
-
$metadata,
|
|
2668
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
2669
|
+
output,
|
|
2670
|
+
parsedBody,
|
|
2671
|
+
exceptionCtor: ComprehendServiceException_1.ComprehendServiceException,
|
|
2672
|
+
errorCode,
|
|
2804
2673
|
});
|
|
2805
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2806
2674
|
}
|
|
2807
2675
|
};
|
|
2808
2676
|
const deserializeAws_json1_1ListPiiEntitiesDetectionJobsCommand = async (output, context) => {
|
|
@@ -2824,7 +2692,6 @@ const deserializeAws_json1_1ListPiiEntitiesDetectionJobsCommandError = async (ou
|
|
|
2824
2692
|
...output,
|
|
2825
2693
|
body: await parseBody(output.body, context),
|
|
2826
2694
|
};
|
|
2827
|
-
let response;
|
|
2828
2695
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2829
2696
|
switch (errorCode) {
|
|
2830
2697
|
case "InternalServerException":
|
|
@@ -2841,14 +2708,12 @@ const deserializeAws_json1_1ListPiiEntitiesDetectionJobsCommandError = async (ou
|
|
|
2841
2708
|
throw await deserializeAws_json1_1TooManyRequestsExceptionResponse(parsedOutput, context);
|
|
2842
2709
|
default:
|
|
2843
2710
|
const parsedBody = parsedOutput.body;
|
|
2844
|
-
|
|
2845
|
-
|
|
2846
|
-
|
|
2847
|
-
|
|
2848
|
-
|
|
2849
|
-
$metadata,
|
|
2711
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
2712
|
+
output,
|
|
2713
|
+
parsedBody,
|
|
2714
|
+
exceptionCtor: ComprehendServiceException_1.ComprehendServiceException,
|
|
2715
|
+
errorCode,
|
|
2850
2716
|
});
|
|
2851
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2852
2717
|
}
|
|
2853
2718
|
};
|
|
2854
2719
|
const deserializeAws_json1_1ListSentimentDetectionJobsCommand = async (output, context) => {
|
|
@@ -2870,7 +2735,6 @@ const deserializeAws_json1_1ListSentimentDetectionJobsCommandError = async (outp
|
|
|
2870
2735
|
...output,
|
|
2871
2736
|
body: await parseBody(output.body, context),
|
|
2872
2737
|
};
|
|
2873
|
-
let response;
|
|
2874
2738
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2875
2739
|
switch (errorCode) {
|
|
2876
2740
|
case "InternalServerException":
|
|
@@ -2887,14 +2751,12 @@ const deserializeAws_json1_1ListSentimentDetectionJobsCommandError = async (outp
|
|
|
2887
2751
|
throw await deserializeAws_json1_1TooManyRequestsExceptionResponse(parsedOutput, context);
|
|
2888
2752
|
default:
|
|
2889
2753
|
const parsedBody = parsedOutput.body;
|
|
2890
|
-
|
|
2891
|
-
|
|
2892
|
-
|
|
2893
|
-
|
|
2894
|
-
|
|
2895
|
-
$metadata,
|
|
2754
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
2755
|
+
output,
|
|
2756
|
+
parsedBody,
|
|
2757
|
+
exceptionCtor: ComprehendServiceException_1.ComprehendServiceException,
|
|
2758
|
+
errorCode,
|
|
2896
2759
|
});
|
|
2897
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2898
2760
|
}
|
|
2899
2761
|
};
|
|
2900
2762
|
const deserializeAws_json1_1ListTagsForResourceCommand = async (output, context) => {
|
|
@@ -2916,7 +2778,6 @@ const deserializeAws_json1_1ListTagsForResourceCommandError = async (output, con
|
|
|
2916
2778
|
...output,
|
|
2917
2779
|
body: await parseBody(output.body, context),
|
|
2918
2780
|
};
|
|
2919
|
-
let response;
|
|
2920
2781
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2921
2782
|
switch (errorCode) {
|
|
2922
2783
|
case "InternalServerException":
|
|
@@ -2930,14 +2791,12 @@ const deserializeAws_json1_1ListTagsForResourceCommandError = async (output, con
|
|
|
2930
2791
|
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
2931
2792
|
default:
|
|
2932
2793
|
const parsedBody = parsedOutput.body;
|
|
2933
|
-
|
|
2934
|
-
|
|
2935
|
-
|
|
2936
|
-
|
|
2937
|
-
|
|
2938
|
-
$metadata,
|
|
2794
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
2795
|
+
output,
|
|
2796
|
+
parsedBody,
|
|
2797
|
+
exceptionCtor: ComprehendServiceException_1.ComprehendServiceException,
|
|
2798
|
+
errorCode,
|
|
2939
2799
|
});
|
|
2940
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2941
2800
|
}
|
|
2942
2801
|
};
|
|
2943
2802
|
const deserializeAws_json1_1ListTargetedSentimentDetectionJobsCommand = async (output, context) => {
|
|
@@ -2959,7 +2818,6 @@ const deserializeAws_json1_1ListTargetedSentimentDetectionJobsCommandError = asy
|
|
|
2959
2818
|
...output,
|
|
2960
2819
|
body: await parseBody(output.body, context),
|
|
2961
2820
|
};
|
|
2962
|
-
let response;
|
|
2963
2821
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2964
2822
|
switch (errorCode) {
|
|
2965
2823
|
case "InternalServerException":
|
|
@@ -2976,14 +2834,12 @@ const deserializeAws_json1_1ListTargetedSentimentDetectionJobsCommandError = asy
|
|
|
2976
2834
|
throw await deserializeAws_json1_1TooManyRequestsExceptionResponse(parsedOutput, context);
|
|
2977
2835
|
default:
|
|
2978
2836
|
const parsedBody = parsedOutput.body;
|
|
2979
|
-
|
|
2980
|
-
|
|
2981
|
-
|
|
2982
|
-
|
|
2983
|
-
|
|
2984
|
-
$metadata,
|
|
2837
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
2838
|
+
output,
|
|
2839
|
+
parsedBody,
|
|
2840
|
+
exceptionCtor: ComprehendServiceException_1.ComprehendServiceException,
|
|
2841
|
+
errorCode,
|
|
2985
2842
|
});
|
|
2986
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2987
2843
|
}
|
|
2988
2844
|
};
|
|
2989
2845
|
const deserializeAws_json1_1ListTopicsDetectionJobsCommand = async (output, context) => {
|
|
@@ -3005,7 +2861,6 @@ const deserializeAws_json1_1ListTopicsDetectionJobsCommandError = async (output,
|
|
|
3005
2861
|
...output,
|
|
3006
2862
|
body: await parseBody(output.body, context),
|
|
3007
2863
|
};
|
|
3008
|
-
let response;
|
|
3009
2864
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3010
2865
|
switch (errorCode) {
|
|
3011
2866
|
case "InternalServerException":
|
|
@@ -3022,14 +2877,12 @@ const deserializeAws_json1_1ListTopicsDetectionJobsCommandError = async (output,
|
|
|
3022
2877
|
throw await deserializeAws_json1_1TooManyRequestsExceptionResponse(parsedOutput, context);
|
|
3023
2878
|
default:
|
|
3024
2879
|
const parsedBody = parsedOutput.body;
|
|
3025
|
-
|
|
3026
|
-
|
|
3027
|
-
|
|
3028
|
-
|
|
3029
|
-
|
|
3030
|
-
$metadata,
|
|
2880
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
2881
|
+
output,
|
|
2882
|
+
parsedBody,
|
|
2883
|
+
exceptionCtor: ComprehendServiceException_1.ComprehendServiceException,
|
|
2884
|
+
errorCode,
|
|
3031
2885
|
});
|
|
3032
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
3033
2886
|
}
|
|
3034
2887
|
};
|
|
3035
2888
|
const deserializeAws_json1_1PutResourcePolicyCommand = async (output, context) => {
|
|
@@ -3051,7 +2904,6 @@ const deserializeAws_json1_1PutResourcePolicyCommandError = async (output, conte
|
|
|
3051
2904
|
...output,
|
|
3052
2905
|
body: await parseBody(output.body, context),
|
|
3053
2906
|
};
|
|
3054
|
-
let response;
|
|
3055
2907
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3056
2908
|
switch (errorCode) {
|
|
3057
2909
|
case "InternalServerException":
|
|
@@ -3065,14 +2917,12 @@ const deserializeAws_json1_1PutResourcePolicyCommandError = async (output, conte
|
|
|
3065
2917
|
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
3066
2918
|
default:
|
|
3067
2919
|
const parsedBody = parsedOutput.body;
|
|
3068
|
-
|
|
3069
|
-
|
|
3070
|
-
|
|
3071
|
-
|
|
3072
|
-
|
|
3073
|
-
$metadata,
|
|
2920
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
2921
|
+
output,
|
|
2922
|
+
parsedBody,
|
|
2923
|
+
exceptionCtor: ComprehendServiceException_1.ComprehendServiceException,
|
|
2924
|
+
errorCode,
|
|
3074
2925
|
});
|
|
3075
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
3076
2926
|
}
|
|
3077
2927
|
};
|
|
3078
2928
|
const deserializeAws_json1_1StartDocumentClassificationJobCommand = async (output, context) => {
|
|
@@ -3094,7 +2944,6 @@ const deserializeAws_json1_1StartDocumentClassificationJobCommandError = async (
|
|
|
3094
2944
|
...output,
|
|
3095
2945
|
body: await parseBody(output.body, context),
|
|
3096
2946
|
};
|
|
3097
|
-
let response;
|
|
3098
2947
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3099
2948
|
switch (errorCode) {
|
|
3100
2949
|
case "InternalServerException":
|
|
@@ -3120,14 +2969,12 @@ const deserializeAws_json1_1StartDocumentClassificationJobCommandError = async (
|
|
|
3120
2969
|
throw await deserializeAws_json1_1TooManyTagsExceptionResponse(parsedOutput, context);
|
|
3121
2970
|
default:
|
|
3122
2971
|
const parsedBody = parsedOutput.body;
|
|
3123
|
-
|
|
3124
|
-
|
|
3125
|
-
|
|
3126
|
-
|
|
3127
|
-
|
|
3128
|
-
$metadata,
|
|
2972
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
2973
|
+
output,
|
|
2974
|
+
parsedBody,
|
|
2975
|
+
exceptionCtor: ComprehendServiceException_1.ComprehendServiceException,
|
|
2976
|
+
errorCode,
|
|
3129
2977
|
});
|
|
3130
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
3131
2978
|
}
|
|
3132
2979
|
};
|
|
3133
2980
|
const deserializeAws_json1_1StartDominantLanguageDetectionJobCommand = async (output, context) => {
|
|
@@ -3149,7 +2996,6 @@ const deserializeAws_json1_1StartDominantLanguageDetectionJobCommandError = asyn
|
|
|
3149
2996
|
...output,
|
|
3150
2997
|
body: await parseBody(output.body, context),
|
|
3151
2998
|
};
|
|
3152
|
-
let response;
|
|
3153
2999
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3154
3000
|
switch (errorCode) {
|
|
3155
3001
|
case "InternalServerException":
|
|
@@ -3169,14 +3015,12 @@ const deserializeAws_json1_1StartDominantLanguageDetectionJobCommandError = asyn
|
|
|
3169
3015
|
throw await deserializeAws_json1_1TooManyTagsExceptionResponse(parsedOutput, context);
|
|
3170
3016
|
default:
|
|
3171
3017
|
const parsedBody = parsedOutput.body;
|
|
3172
|
-
|
|
3173
|
-
|
|
3174
|
-
|
|
3175
|
-
|
|
3176
|
-
|
|
3177
|
-
$metadata,
|
|
3018
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
3019
|
+
output,
|
|
3020
|
+
parsedBody,
|
|
3021
|
+
exceptionCtor: ComprehendServiceException_1.ComprehendServiceException,
|
|
3022
|
+
errorCode,
|
|
3178
3023
|
});
|
|
3179
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
3180
3024
|
}
|
|
3181
3025
|
};
|
|
3182
3026
|
const deserializeAws_json1_1StartEntitiesDetectionJobCommand = async (output, context) => {
|
|
@@ -3198,7 +3042,6 @@ const deserializeAws_json1_1StartEntitiesDetectionJobCommandError = async (outpu
|
|
|
3198
3042
|
...output,
|
|
3199
3043
|
body: await parseBody(output.body, context),
|
|
3200
3044
|
};
|
|
3201
|
-
let response;
|
|
3202
3045
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3203
3046
|
switch (errorCode) {
|
|
3204
3047
|
case "InternalServerException":
|
|
@@ -3224,14 +3067,12 @@ const deserializeAws_json1_1StartEntitiesDetectionJobCommandError = async (outpu
|
|
|
3224
3067
|
throw await deserializeAws_json1_1TooManyTagsExceptionResponse(parsedOutput, context);
|
|
3225
3068
|
default:
|
|
3226
3069
|
const parsedBody = parsedOutput.body;
|
|
3227
|
-
|
|
3228
|
-
|
|
3229
|
-
|
|
3230
|
-
|
|
3231
|
-
|
|
3232
|
-
$metadata,
|
|
3070
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
3071
|
+
output,
|
|
3072
|
+
parsedBody,
|
|
3073
|
+
exceptionCtor: ComprehendServiceException_1.ComprehendServiceException,
|
|
3074
|
+
errorCode,
|
|
3233
3075
|
});
|
|
3234
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
3235
3076
|
}
|
|
3236
3077
|
};
|
|
3237
3078
|
const deserializeAws_json1_1StartEventsDetectionJobCommand = async (output, context) => {
|
|
@@ -3253,7 +3094,6 @@ const deserializeAws_json1_1StartEventsDetectionJobCommandError = async (output,
|
|
|
3253
3094
|
...output,
|
|
3254
3095
|
body: await parseBody(output.body, context),
|
|
3255
3096
|
};
|
|
3256
|
-
let response;
|
|
3257
3097
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3258
3098
|
switch (errorCode) {
|
|
3259
3099
|
case "InternalServerException":
|
|
@@ -3273,14 +3113,12 @@ const deserializeAws_json1_1StartEventsDetectionJobCommandError = async (output,
|
|
|
3273
3113
|
throw await deserializeAws_json1_1TooManyTagsExceptionResponse(parsedOutput, context);
|
|
3274
3114
|
default:
|
|
3275
3115
|
const parsedBody = parsedOutput.body;
|
|
3276
|
-
|
|
3277
|
-
|
|
3278
|
-
|
|
3279
|
-
|
|
3280
|
-
|
|
3281
|
-
$metadata,
|
|
3116
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
3117
|
+
output,
|
|
3118
|
+
parsedBody,
|
|
3119
|
+
exceptionCtor: ComprehendServiceException_1.ComprehendServiceException,
|
|
3120
|
+
errorCode,
|
|
3282
3121
|
});
|
|
3283
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
3284
3122
|
}
|
|
3285
3123
|
};
|
|
3286
3124
|
const deserializeAws_json1_1StartKeyPhrasesDetectionJobCommand = async (output, context) => {
|
|
@@ -3302,7 +3140,6 @@ const deserializeAws_json1_1StartKeyPhrasesDetectionJobCommandError = async (out
|
|
|
3302
3140
|
...output,
|
|
3303
3141
|
body: await parseBody(output.body, context),
|
|
3304
3142
|
};
|
|
3305
|
-
let response;
|
|
3306
3143
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3307
3144
|
switch (errorCode) {
|
|
3308
3145
|
case "InternalServerException":
|
|
@@ -3322,14 +3159,12 @@ const deserializeAws_json1_1StartKeyPhrasesDetectionJobCommandError = async (out
|
|
|
3322
3159
|
throw await deserializeAws_json1_1TooManyTagsExceptionResponse(parsedOutput, context);
|
|
3323
3160
|
default:
|
|
3324
3161
|
const parsedBody = parsedOutput.body;
|
|
3325
|
-
|
|
3326
|
-
|
|
3327
|
-
|
|
3328
|
-
|
|
3329
|
-
|
|
3330
|
-
$metadata,
|
|
3162
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
3163
|
+
output,
|
|
3164
|
+
parsedBody,
|
|
3165
|
+
exceptionCtor: ComprehendServiceException_1.ComprehendServiceException,
|
|
3166
|
+
errorCode,
|
|
3331
3167
|
});
|
|
3332
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
3333
3168
|
}
|
|
3334
3169
|
};
|
|
3335
3170
|
const deserializeAws_json1_1StartPiiEntitiesDetectionJobCommand = async (output, context) => {
|
|
@@ -3351,7 +3186,6 @@ const deserializeAws_json1_1StartPiiEntitiesDetectionJobCommandError = async (ou
|
|
|
3351
3186
|
...output,
|
|
3352
3187
|
body: await parseBody(output.body, context),
|
|
3353
3188
|
};
|
|
3354
|
-
let response;
|
|
3355
3189
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3356
3190
|
switch (errorCode) {
|
|
3357
3191
|
case "InternalServerException":
|
|
@@ -3371,14 +3205,12 @@ const deserializeAws_json1_1StartPiiEntitiesDetectionJobCommandError = async (ou
|
|
|
3371
3205
|
throw await deserializeAws_json1_1TooManyTagsExceptionResponse(parsedOutput, context);
|
|
3372
3206
|
default:
|
|
3373
3207
|
const parsedBody = parsedOutput.body;
|
|
3374
|
-
|
|
3375
|
-
|
|
3376
|
-
|
|
3377
|
-
|
|
3378
|
-
|
|
3379
|
-
$metadata,
|
|
3208
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
3209
|
+
output,
|
|
3210
|
+
parsedBody,
|
|
3211
|
+
exceptionCtor: ComprehendServiceException_1.ComprehendServiceException,
|
|
3212
|
+
errorCode,
|
|
3380
3213
|
});
|
|
3381
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
3382
3214
|
}
|
|
3383
3215
|
};
|
|
3384
3216
|
const deserializeAws_json1_1StartSentimentDetectionJobCommand = async (output, context) => {
|
|
@@ -3400,7 +3232,6 @@ const deserializeAws_json1_1StartSentimentDetectionJobCommandError = async (outp
|
|
|
3400
3232
|
...output,
|
|
3401
3233
|
body: await parseBody(output.body, context),
|
|
3402
3234
|
};
|
|
3403
|
-
let response;
|
|
3404
3235
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3405
3236
|
switch (errorCode) {
|
|
3406
3237
|
case "InternalServerException":
|
|
@@ -3420,14 +3251,12 @@ const deserializeAws_json1_1StartSentimentDetectionJobCommandError = async (outp
|
|
|
3420
3251
|
throw await deserializeAws_json1_1TooManyTagsExceptionResponse(parsedOutput, context);
|
|
3421
3252
|
default:
|
|
3422
3253
|
const parsedBody = parsedOutput.body;
|
|
3423
|
-
|
|
3424
|
-
|
|
3425
|
-
|
|
3426
|
-
|
|
3427
|
-
|
|
3428
|
-
$metadata,
|
|
3254
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
3255
|
+
output,
|
|
3256
|
+
parsedBody,
|
|
3257
|
+
exceptionCtor: ComprehendServiceException_1.ComprehendServiceException,
|
|
3258
|
+
errorCode,
|
|
3429
3259
|
});
|
|
3430
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
3431
3260
|
}
|
|
3432
3261
|
};
|
|
3433
3262
|
const deserializeAws_json1_1StartTargetedSentimentDetectionJobCommand = async (output, context) => {
|
|
@@ -3449,7 +3278,6 @@ const deserializeAws_json1_1StartTargetedSentimentDetectionJobCommandError = asy
|
|
|
3449
3278
|
...output,
|
|
3450
3279
|
body: await parseBody(output.body, context),
|
|
3451
3280
|
};
|
|
3452
|
-
let response;
|
|
3453
3281
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3454
3282
|
switch (errorCode) {
|
|
3455
3283
|
case "InternalServerException":
|
|
@@ -3469,14 +3297,12 @@ const deserializeAws_json1_1StartTargetedSentimentDetectionJobCommandError = asy
|
|
|
3469
3297
|
throw await deserializeAws_json1_1TooManyTagsExceptionResponse(parsedOutput, context);
|
|
3470
3298
|
default:
|
|
3471
3299
|
const parsedBody = parsedOutput.body;
|
|
3472
|
-
|
|
3473
|
-
|
|
3474
|
-
|
|
3475
|
-
|
|
3476
|
-
|
|
3477
|
-
$metadata,
|
|
3300
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
3301
|
+
output,
|
|
3302
|
+
parsedBody,
|
|
3303
|
+
exceptionCtor: ComprehendServiceException_1.ComprehendServiceException,
|
|
3304
|
+
errorCode,
|
|
3478
3305
|
});
|
|
3479
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
3480
3306
|
}
|
|
3481
3307
|
};
|
|
3482
3308
|
const deserializeAws_json1_1StartTopicsDetectionJobCommand = async (output, context) => {
|
|
@@ -3498,7 +3324,6 @@ const deserializeAws_json1_1StartTopicsDetectionJobCommandError = async (output,
|
|
|
3498
3324
|
...output,
|
|
3499
3325
|
body: await parseBody(output.body, context),
|
|
3500
3326
|
};
|
|
3501
|
-
let response;
|
|
3502
3327
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3503
3328
|
switch (errorCode) {
|
|
3504
3329
|
case "InternalServerException":
|
|
@@ -3518,14 +3343,12 @@ const deserializeAws_json1_1StartTopicsDetectionJobCommandError = async (output,
|
|
|
3518
3343
|
throw await deserializeAws_json1_1TooManyTagsExceptionResponse(parsedOutput, context);
|
|
3519
3344
|
default:
|
|
3520
3345
|
const parsedBody = parsedOutput.body;
|
|
3521
|
-
|
|
3522
|
-
|
|
3523
|
-
|
|
3524
|
-
|
|
3525
|
-
|
|
3526
|
-
$metadata,
|
|
3346
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
3347
|
+
output,
|
|
3348
|
+
parsedBody,
|
|
3349
|
+
exceptionCtor: ComprehendServiceException_1.ComprehendServiceException,
|
|
3350
|
+
errorCode,
|
|
3527
3351
|
});
|
|
3528
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
3529
3352
|
}
|
|
3530
3353
|
};
|
|
3531
3354
|
const deserializeAws_json1_1StopDominantLanguageDetectionJobCommand = async (output, context) => {
|
|
@@ -3547,7 +3370,6 @@ const deserializeAws_json1_1StopDominantLanguageDetectionJobCommandError = async
|
|
|
3547
3370
|
...output,
|
|
3548
3371
|
body: await parseBody(output.body, context),
|
|
3549
3372
|
};
|
|
3550
|
-
let response;
|
|
3551
3373
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3552
3374
|
switch (errorCode) {
|
|
3553
3375
|
case "InternalServerException":
|
|
@@ -3561,14 +3383,12 @@ const deserializeAws_json1_1StopDominantLanguageDetectionJobCommandError = async
|
|
|
3561
3383
|
throw await deserializeAws_json1_1JobNotFoundExceptionResponse(parsedOutput, context);
|
|
3562
3384
|
default:
|
|
3563
3385
|
const parsedBody = parsedOutput.body;
|
|
3564
|
-
|
|
3565
|
-
|
|
3566
|
-
|
|
3567
|
-
|
|
3568
|
-
|
|
3569
|
-
$metadata,
|
|
3386
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
3387
|
+
output,
|
|
3388
|
+
parsedBody,
|
|
3389
|
+
exceptionCtor: ComprehendServiceException_1.ComprehendServiceException,
|
|
3390
|
+
errorCode,
|
|
3570
3391
|
});
|
|
3571
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
3572
3392
|
}
|
|
3573
3393
|
};
|
|
3574
3394
|
const deserializeAws_json1_1StopEntitiesDetectionJobCommand = async (output, context) => {
|
|
@@ -3590,7 +3410,6 @@ const deserializeAws_json1_1StopEntitiesDetectionJobCommandError = async (output
|
|
|
3590
3410
|
...output,
|
|
3591
3411
|
body: await parseBody(output.body, context),
|
|
3592
3412
|
};
|
|
3593
|
-
let response;
|
|
3594
3413
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3595
3414
|
switch (errorCode) {
|
|
3596
3415
|
case "InternalServerException":
|
|
@@ -3604,14 +3423,12 @@ const deserializeAws_json1_1StopEntitiesDetectionJobCommandError = async (output
|
|
|
3604
3423
|
throw await deserializeAws_json1_1JobNotFoundExceptionResponse(parsedOutput, context);
|
|
3605
3424
|
default:
|
|
3606
3425
|
const parsedBody = parsedOutput.body;
|
|
3607
|
-
|
|
3608
|
-
|
|
3609
|
-
|
|
3610
|
-
|
|
3611
|
-
|
|
3612
|
-
$metadata,
|
|
3426
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
3427
|
+
output,
|
|
3428
|
+
parsedBody,
|
|
3429
|
+
exceptionCtor: ComprehendServiceException_1.ComprehendServiceException,
|
|
3430
|
+
errorCode,
|
|
3613
3431
|
});
|
|
3614
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
3615
3432
|
}
|
|
3616
3433
|
};
|
|
3617
3434
|
const deserializeAws_json1_1StopEventsDetectionJobCommand = async (output, context) => {
|
|
@@ -3633,7 +3450,6 @@ const deserializeAws_json1_1StopEventsDetectionJobCommandError = async (output,
|
|
|
3633
3450
|
...output,
|
|
3634
3451
|
body: await parseBody(output.body, context),
|
|
3635
3452
|
};
|
|
3636
|
-
let response;
|
|
3637
3453
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3638
3454
|
switch (errorCode) {
|
|
3639
3455
|
case "InternalServerException":
|
|
@@ -3647,14 +3463,12 @@ const deserializeAws_json1_1StopEventsDetectionJobCommandError = async (output,
|
|
|
3647
3463
|
throw await deserializeAws_json1_1JobNotFoundExceptionResponse(parsedOutput, context);
|
|
3648
3464
|
default:
|
|
3649
3465
|
const parsedBody = parsedOutput.body;
|
|
3650
|
-
|
|
3651
|
-
|
|
3652
|
-
|
|
3653
|
-
|
|
3654
|
-
|
|
3655
|
-
$metadata,
|
|
3466
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
3467
|
+
output,
|
|
3468
|
+
parsedBody,
|
|
3469
|
+
exceptionCtor: ComprehendServiceException_1.ComprehendServiceException,
|
|
3470
|
+
errorCode,
|
|
3656
3471
|
});
|
|
3657
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
3658
3472
|
}
|
|
3659
3473
|
};
|
|
3660
3474
|
const deserializeAws_json1_1StopKeyPhrasesDetectionJobCommand = async (output, context) => {
|
|
@@ -3676,7 +3490,6 @@ const deserializeAws_json1_1StopKeyPhrasesDetectionJobCommandError = async (outp
|
|
|
3676
3490
|
...output,
|
|
3677
3491
|
body: await parseBody(output.body, context),
|
|
3678
3492
|
};
|
|
3679
|
-
let response;
|
|
3680
3493
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3681
3494
|
switch (errorCode) {
|
|
3682
3495
|
case "InternalServerException":
|
|
@@ -3690,14 +3503,12 @@ const deserializeAws_json1_1StopKeyPhrasesDetectionJobCommandError = async (outp
|
|
|
3690
3503
|
throw await deserializeAws_json1_1JobNotFoundExceptionResponse(parsedOutput, context);
|
|
3691
3504
|
default:
|
|
3692
3505
|
const parsedBody = parsedOutput.body;
|
|
3693
|
-
|
|
3694
|
-
|
|
3695
|
-
|
|
3696
|
-
|
|
3697
|
-
|
|
3698
|
-
$metadata,
|
|
3506
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
3507
|
+
output,
|
|
3508
|
+
parsedBody,
|
|
3509
|
+
exceptionCtor: ComprehendServiceException_1.ComprehendServiceException,
|
|
3510
|
+
errorCode,
|
|
3699
3511
|
});
|
|
3700
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
3701
3512
|
}
|
|
3702
3513
|
};
|
|
3703
3514
|
const deserializeAws_json1_1StopPiiEntitiesDetectionJobCommand = async (output, context) => {
|
|
@@ -3719,7 +3530,6 @@ const deserializeAws_json1_1StopPiiEntitiesDetectionJobCommandError = async (out
|
|
|
3719
3530
|
...output,
|
|
3720
3531
|
body: await parseBody(output.body, context),
|
|
3721
3532
|
};
|
|
3722
|
-
let response;
|
|
3723
3533
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3724
3534
|
switch (errorCode) {
|
|
3725
3535
|
case "InternalServerException":
|
|
@@ -3733,14 +3543,12 @@ const deserializeAws_json1_1StopPiiEntitiesDetectionJobCommandError = async (out
|
|
|
3733
3543
|
throw await deserializeAws_json1_1JobNotFoundExceptionResponse(parsedOutput, context);
|
|
3734
3544
|
default:
|
|
3735
3545
|
const parsedBody = parsedOutput.body;
|
|
3736
|
-
|
|
3737
|
-
|
|
3738
|
-
|
|
3739
|
-
|
|
3740
|
-
|
|
3741
|
-
$metadata,
|
|
3546
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
3547
|
+
output,
|
|
3548
|
+
parsedBody,
|
|
3549
|
+
exceptionCtor: ComprehendServiceException_1.ComprehendServiceException,
|
|
3550
|
+
errorCode,
|
|
3742
3551
|
});
|
|
3743
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
3744
3552
|
}
|
|
3745
3553
|
};
|
|
3746
3554
|
const deserializeAws_json1_1StopSentimentDetectionJobCommand = async (output, context) => {
|
|
@@ -3762,7 +3570,6 @@ const deserializeAws_json1_1StopSentimentDetectionJobCommandError = async (outpu
|
|
|
3762
3570
|
...output,
|
|
3763
3571
|
body: await parseBody(output.body, context),
|
|
3764
3572
|
};
|
|
3765
|
-
let response;
|
|
3766
3573
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3767
3574
|
switch (errorCode) {
|
|
3768
3575
|
case "InternalServerException":
|
|
@@ -3776,14 +3583,12 @@ const deserializeAws_json1_1StopSentimentDetectionJobCommandError = async (outpu
|
|
|
3776
3583
|
throw await deserializeAws_json1_1JobNotFoundExceptionResponse(parsedOutput, context);
|
|
3777
3584
|
default:
|
|
3778
3585
|
const parsedBody = parsedOutput.body;
|
|
3779
|
-
|
|
3780
|
-
|
|
3781
|
-
|
|
3782
|
-
|
|
3783
|
-
|
|
3784
|
-
$metadata,
|
|
3586
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
3587
|
+
output,
|
|
3588
|
+
parsedBody,
|
|
3589
|
+
exceptionCtor: ComprehendServiceException_1.ComprehendServiceException,
|
|
3590
|
+
errorCode,
|
|
3785
3591
|
});
|
|
3786
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
3787
3592
|
}
|
|
3788
3593
|
};
|
|
3789
3594
|
const deserializeAws_json1_1StopTargetedSentimentDetectionJobCommand = async (output, context) => {
|
|
@@ -3805,7 +3610,6 @@ const deserializeAws_json1_1StopTargetedSentimentDetectionJobCommandError = asyn
|
|
|
3805
3610
|
...output,
|
|
3806
3611
|
body: await parseBody(output.body, context),
|
|
3807
3612
|
};
|
|
3808
|
-
let response;
|
|
3809
3613
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3810
3614
|
switch (errorCode) {
|
|
3811
3615
|
case "InternalServerException":
|
|
@@ -3819,14 +3623,12 @@ const deserializeAws_json1_1StopTargetedSentimentDetectionJobCommandError = asyn
|
|
|
3819
3623
|
throw await deserializeAws_json1_1JobNotFoundExceptionResponse(parsedOutput, context);
|
|
3820
3624
|
default:
|
|
3821
3625
|
const parsedBody = parsedOutput.body;
|
|
3822
|
-
|
|
3823
|
-
|
|
3824
|
-
|
|
3825
|
-
|
|
3826
|
-
|
|
3827
|
-
$metadata,
|
|
3626
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
3627
|
+
output,
|
|
3628
|
+
parsedBody,
|
|
3629
|
+
exceptionCtor: ComprehendServiceException_1.ComprehendServiceException,
|
|
3630
|
+
errorCode,
|
|
3828
3631
|
});
|
|
3829
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
3830
3632
|
}
|
|
3831
3633
|
};
|
|
3832
3634
|
const deserializeAws_json1_1StopTrainingDocumentClassifierCommand = async (output, context) => {
|
|
@@ -3848,7 +3650,6 @@ const deserializeAws_json1_1StopTrainingDocumentClassifierCommandError = async (
|
|
|
3848
3650
|
...output,
|
|
3849
3651
|
body: await parseBody(output.body, context),
|
|
3850
3652
|
};
|
|
3851
|
-
let response;
|
|
3852
3653
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3853
3654
|
switch (errorCode) {
|
|
3854
3655
|
case "InternalServerException":
|
|
@@ -3865,14 +3666,12 @@ const deserializeAws_json1_1StopTrainingDocumentClassifierCommandError = async (
|
|
|
3865
3666
|
throw await deserializeAws_json1_1TooManyRequestsExceptionResponse(parsedOutput, context);
|
|
3866
3667
|
default:
|
|
3867
3668
|
const parsedBody = parsedOutput.body;
|
|
3868
|
-
|
|
3869
|
-
|
|
3870
|
-
|
|
3871
|
-
|
|
3872
|
-
|
|
3873
|
-
$metadata,
|
|
3669
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
3670
|
+
output,
|
|
3671
|
+
parsedBody,
|
|
3672
|
+
exceptionCtor: ComprehendServiceException_1.ComprehendServiceException,
|
|
3673
|
+
errorCode,
|
|
3874
3674
|
});
|
|
3875
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
3876
3675
|
}
|
|
3877
3676
|
};
|
|
3878
3677
|
const deserializeAws_json1_1StopTrainingEntityRecognizerCommand = async (output, context) => {
|
|
@@ -3894,7 +3693,6 @@ const deserializeAws_json1_1StopTrainingEntityRecognizerCommandError = async (ou
|
|
|
3894
3693
|
...output,
|
|
3895
3694
|
body: await parseBody(output.body, context),
|
|
3896
3695
|
};
|
|
3897
|
-
let response;
|
|
3898
3696
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3899
3697
|
switch (errorCode) {
|
|
3900
3698
|
case "InternalServerException":
|
|
@@ -3911,14 +3709,12 @@ const deserializeAws_json1_1StopTrainingEntityRecognizerCommandError = async (ou
|
|
|
3911
3709
|
throw await deserializeAws_json1_1TooManyRequestsExceptionResponse(parsedOutput, context);
|
|
3912
3710
|
default:
|
|
3913
3711
|
const parsedBody = parsedOutput.body;
|
|
3914
|
-
|
|
3915
|
-
|
|
3916
|
-
|
|
3917
|
-
|
|
3918
|
-
|
|
3919
|
-
$metadata,
|
|
3712
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
3713
|
+
output,
|
|
3714
|
+
parsedBody,
|
|
3715
|
+
exceptionCtor: ComprehendServiceException_1.ComprehendServiceException,
|
|
3716
|
+
errorCode,
|
|
3920
3717
|
});
|
|
3921
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
3922
3718
|
}
|
|
3923
3719
|
};
|
|
3924
3720
|
const deserializeAws_json1_1TagResourceCommand = async (output, context) => {
|
|
@@ -3940,7 +3736,6 @@ const deserializeAws_json1_1TagResourceCommandError = async (output, context) =>
|
|
|
3940
3736
|
...output,
|
|
3941
3737
|
body: await parseBody(output.body, context),
|
|
3942
3738
|
};
|
|
3943
|
-
let response;
|
|
3944
3739
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3945
3740
|
switch (errorCode) {
|
|
3946
3741
|
case "ConcurrentModificationException":
|
|
@@ -3960,14 +3755,12 @@ const deserializeAws_json1_1TagResourceCommandError = async (output, context) =>
|
|
|
3960
3755
|
throw await deserializeAws_json1_1TooManyTagsExceptionResponse(parsedOutput, context);
|
|
3961
3756
|
default:
|
|
3962
3757
|
const parsedBody = parsedOutput.body;
|
|
3963
|
-
|
|
3964
|
-
|
|
3965
|
-
|
|
3966
|
-
|
|
3967
|
-
|
|
3968
|
-
$metadata,
|
|
3758
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
3759
|
+
output,
|
|
3760
|
+
parsedBody,
|
|
3761
|
+
exceptionCtor: ComprehendServiceException_1.ComprehendServiceException,
|
|
3762
|
+
errorCode,
|
|
3969
3763
|
});
|
|
3970
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
3971
3764
|
}
|
|
3972
3765
|
};
|
|
3973
3766
|
const deserializeAws_json1_1UntagResourceCommand = async (output, context) => {
|
|
@@ -3989,7 +3782,6 @@ const deserializeAws_json1_1UntagResourceCommandError = async (output, context)
|
|
|
3989
3782
|
...output,
|
|
3990
3783
|
body: await parseBody(output.body, context),
|
|
3991
3784
|
};
|
|
3992
|
-
let response;
|
|
3993
3785
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3994
3786
|
switch (errorCode) {
|
|
3995
3787
|
case "ConcurrentModificationException":
|
|
@@ -4009,14 +3801,12 @@ const deserializeAws_json1_1UntagResourceCommandError = async (output, context)
|
|
|
4009
3801
|
throw await deserializeAws_json1_1TooManyTagKeysExceptionResponse(parsedOutput, context);
|
|
4010
3802
|
default:
|
|
4011
3803
|
const parsedBody = parsedOutput.body;
|
|
4012
|
-
|
|
4013
|
-
|
|
4014
|
-
|
|
4015
|
-
|
|
4016
|
-
|
|
4017
|
-
$metadata,
|
|
3804
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
3805
|
+
output,
|
|
3806
|
+
parsedBody,
|
|
3807
|
+
exceptionCtor: ComprehendServiceException_1.ComprehendServiceException,
|
|
3808
|
+
errorCode,
|
|
4018
3809
|
});
|
|
4019
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
4020
3810
|
}
|
|
4021
3811
|
};
|
|
4022
3812
|
const deserializeAws_json1_1UpdateEndpointCommand = async (output, context) => {
|
|
@@ -4038,7 +3828,6 @@ const deserializeAws_json1_1UpdateEndpointCommandError = async (output, context)
|
|
|
4038
3828
|
...output,
|
|
4039
3829
|
body: await parseBody(output.body, context),
|
|
4040
3830
|
};
|
|
4041
|
-
let response;
|
|
4042
3831
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4043
3832
|
switch (errorCode) {
|
|
4044
3833
|
case "InternalServerException":
|
|
@@ -4064,14 +3853,12 @@ const deserializeAws_json1_1UpdateEndpointCommandError = async (output, context)
|
|
|
4064
3853
|
throw await deserializeAws_json1_1TooManyRequestsExceptionResponse(parsedOutput, context);
|
|
4065
3854
|
default:
|
|
4066
3855
|
const parsedBody = parsedOutput.body;
|
|
4067
|
-
|
|
4068
|
-
|
|
4069
|
-
|
|
4070
|
-
|
|
4071
|
-
|
|
4072
|
-
$metadata,
|
|
3856
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
3857
|
+
output,
|
|
3858
|
+
parsedBody,
|
|
3859
|
+
exceptionCtor: ComprehendServiceException_1.ComprehendServiceException,
|
|
3860
|
+
errorCode,
|
|
4073
3861
|
});
|
|
4074
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
4075
3862
|
}
|
|
4076
3863
|
};
|
|
4077
3864
|
const deserializeAws_json1_1BatchSizeLimitExceededExceptionResponse = async (parsedOutput, context) => {
|
|
@@ -4222,9 +4009,6 @@ const serializeAws_json1_1AttributeNamesList = (input, context) => {
|
|
|
4222
4009
|
return input
|
|
4223
4010
|
.filter((e) => e != null)
|
|
4224
4011
|
.map((entry) => {
|
|
4225
|
-
if (entry === null) {
|
|
4226
|
-
return null;
|
|
4227
|
-
}
|
|
4228
4012
|
return entry;
|
|
4229
4013
|
});
|
|
4230
4014
|
};
|
|
@@ -4336,9 +4120,6 @@ const serializeAws_json1_1CustomerInputStringList = (input, context) => {
|
|
|
4336
4120
|
return input
|
|
4337
4121
|
.filter((e) => e != null)
|
|
4338
4122
|
.map((entry) => {
|
|
4339
|
-
if (entry === null) {
|
|
4340
|
-
return null;
|
|
4341
|
-
}
|
|
4342
4123
|
return entry;
|
|
4343
4124
|
});
|
|
4344
4125
|
};
|
|
@@ -4476,9 +4257,6 @@ const serializeAws_json1_1DocumentClassifierAugmentedManifestsList = (input, con
|
|
|
4476
4257
|
return input
|
|
4477
4258
|
.filter((e) => e != null)
|
|
4478
4259
|
.map((entry) => {
|
|
4479
|
-
if (entry === null) {
|
|
4480
|
-
return null;
|
|
4481
|
-
}
|
|
4482
4260
|
return serializeAws_json1_1AugmentedManifestsListItem(entry, context);
|
|
4483
4261
|
});
|
|
4484
4262
|
};
|
|
@@ -4552,9 +4330,6 @@ const serializeAws_json1_1EntityRecognizerAugmentedManifestsList = (input, conte
|
|
|
4552
4330
|
return input
|
|
4553
4331
|
.filter((e) => e != null)
|
|
4554
4332
|
.map((entry) => {
|
|
4555
|
-
if (entry === null) {
|
|
4556
|
-
return null;
|
|
4557
|
-
}
|
|
4558
4333
|
return serializeAws_json1_1AugmentedManifestsListItem(entry, context);
|
|
4559
4334
|
});
|
|
4560
4335
|
};
|
|
@@ -4600,9 +4375,6 @@ const serializeAws_json1_1EntityTypesList = (input, context) => {
|
|
|
4600
4375
|
return input
|
|
4601
4376
|
.filter((e) => e != null)
|
|
4602
4377
|
.map((entry) => {
|
|
4603
|
-
if (entry === null) {
|
|
4604
|
-
return null;
|
|
4605
|
-
}
|
|
4606
4378
|
return serializeAws_json1_1EntityTypesListItem(entry, context);
|
|
4607
4379
|
});
|
|
4608
4380
|
};
|
|
@@ -4720,9 +4492,6 @@ const serializeAws_json1_1ListOfDocumentReadFeatureTypes = (input, context) => {
|
|
|
4720
4492
|
return input
|
|
4721
4493
|
.filter((e) => e != null)
|
|
4722
4494
|
.map((entry) => {
|
|
4723
|
-
if (entry === null) {
|
|
4724
|
-
return null;
|
|
4725
|
-
}
|
|
4726
4495
|
return entry;
|
|
4727
4496
|
});
|
|
4728
4497
|
};
|
|
@@ -4730,9 +4499,6 @@ const serializeAws_json1_1ListOfPiiEntityTypes = (input, context) => {
|
|
|
4730
4499
|
return input
|
|
4731
4500
|
.filter((e) => e != null)
|
|
4732
4501
|
.map((entry) => {
|
|
4733
|
-
if (entry === null) {
|
|
4734
|
-
return null;
|
|
4735
|
-
}
|
|
4736
4502
|
return entry;
|
|
4737
4503
|
});
|
|
4738
4504
|
};
|
|
@@ -4805,9 +4571,6 @@ const serializeAws_json1_1SecurityGroupIds = (input, context) => {
|
|
|
4805
4571
|
return input
|
|
4806
4572
|
.filter((e) => e != null)
|
|
4807
4573
|
.map((entry) => {
|
|
4808
|
-
if (entry === null) {
|
|
4809
|
-
return null;
|
|
4810
|
-
}
|
|
4811
4574
|
return entry;
|
|
4812
4575
|
});
|
|
4813
4576
|
};
|
|
@@ -5033,9 +4796,6 @@ const serializeAws_json1_1Subnets = (input, context) => {
|
|
|
5033
4796
|
return input
|
|
5034
4797
|
.filter((e) => e != null)
|
|
5035
4798
|
.map((entry) => {
|
|
5036
|
-
if (entry === null) {
|
|
5037
|
-
return null;
|
|
5038
|
-
}
|
|
5039
4799
|
return entry;
|
|
5040
4800
|
});
|
|
5041
4801
|
};
|
|
@@ -5049,9 +4809,6 @@ const serializeAws_json1_1TagKeyList = (input, context) => {
|
|
|
5049
4809
|
return input
|
|
5050
4810
|
.filter((e) => e != null)
|
|
5051
4811
|
.map((entry) => {
|
|
5052
|
-
if (entry === null) {
|
|
5053
|
-
return null;
|
|
5054
|
-
}
|
|
5055
4812
|
return entry;
|
|
5056
4813
|
});
|
|
5057
4814
|
};
|
|
@@ -5059,9 +4816,6 @@ const serializeAws_json1_1TagList = (input, context) => {
|
|
|
5059
4816
|
return input
|
|
5060
4817
|
.filter((e) => e != null)
|
|
5061
4818
|
.map((entry) => {
|
|
5062
|
-
if (entry === null) {
|
|
5063
|
-
return null;
|
|
5064
|
-
}
|
|
5065
4819
|
return serializeAws_json1_1Tag(entry, context);
|
|
5066
4820
|
});
|
|
5067
4821
|
};
|
|
@@ -5083,9 +4837,6 @@ const serializeAws_json1_1TargetEventTypes = (input, context) => {
|
|
|
5083
4837
|
return input
|
|
5084
4838
|
.filter((e) => e != null)
|
|
5085
4839
|
.map((entry) => {
|
|
5086
|
-
if (entry === null) {
|
|
5087
|
-
return null;
|
|
5088
|
-
}
|
|
5089
4840
|
return entry;
|
|
5090
4841
|
});
|
|
5091
4842
|
};
|