@aws-sdk/client-comprehend 3.118.1 → 3.128.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 +786 -966
- package/dist-es/protocols/Aws_json1_1.js +619 -799
- package/package.json +26 -26
|
@@ -738,8 +738,7 @@ const deserializeAws_json1_1BatchDetectDominantLanguageCommandError = async (out
|
|
|
738
738
|
body: await parseBody(output.body, context),
|
|
739
739
|
};
|
|
740
740
|
let response;
|
|
741
|
-
|
|
742
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
741
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
743
742
|
switch (errorCode) {
|
|
744
743
|
case "BatchSizeLimitExceededException":
|
|
745
744
|
case "com.amazonaws.comprehend#BatchSizeLimitExceededException":
|
|
@@ -755,10 +754,12 @@ const deserializeAws_json1_1BatchDetectDominantLanguageCommandError = async (out
|
|
|
755
754
|
throw await deserializeAws_json1_1TextSizeLimitExceededExceptionResponse(parsedOutput, context);
|
|
756
755
|
default:
|
|
757
756
|
const parsedBody = parsedOutput.body;
|
|
757
|
+
const $metadata = deserializeMetadata(output);
|
|
758
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
758
759
|
response = new ComprehendServiceException_1.ComprehendServiceException({
|
|
759
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
760
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
760
761
|
$fault: "client",
|
|
761
|
-
$metadata
|
|
762
|
+
$metadata,
|
|
762
763
|
});
|
|
763
764
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
764
765
|
}
|
|
@@ -783,8 +784,7 @@ const deserializeAws_json1_1BatchDetectEntitiesCommandError = async (output, con
|
|
|
783
784
|
body: await parseBody(output.body, context),
|
|
784
785
|
};
|
|
785
786
|
let response;
|
|
786
|
-
|
|
787
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
787
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
788
788
|
switch (errorCode) {
|
|
789
789
|
case "BatchSizeLimitExceededException":
|
|
790
790
|
case "com.amazonaws.comprehend#BatchSizeLimitExceededException":
|
|
@@ -803,10 +803,12 @@ const deserializeAws_json1_1BatchDetectEntitiesCommandError = async (output, con
|
|
|
803
803
|
throw await deserializeAws_json1_1UnsupportedLanguageExceptionResponse(parsedOutput, context);
|
|
804
804
|
default:
|
|
805
805
|
const parsedBody = parsedOutput.body;
|
|
806
|
+
const $metadata = deserializeMetadata(output);
|
|
807
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
806
808
|
response = new ComprehendServiceException_1.ComprehendServiceException({
|
|
807
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
809
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
808
810
|
$fault: "client",
|
|
809
|
-
$metadata
|
|
811
|
+
$metadata,
|
|
810
812
|
});
|
|
811
813
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
812
814
|
}
|
|
@@ -831,8 +833,7 @@ const deserializeAws_json1_1BatchDetectKeyPhrasesCommandError = async (output, c
|
|
|
831
833
|
body: await parseBody(output.body, context),
|
|
832
834
|
};
|
|
833
835
|
let response;
|
|
834
|
-
|
|
835
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
836
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
836
837
|
switch (errorCode) {
|
|
837
838
|
case "BatchSizeLimitExceededException":
|
|
838
839
|
case "com.amazonaws.comprehend#BatchSizeLimitExceededException":
|
|
@@ -851,10 +852,12 @@ const deserializeAws_json1_1BatchDetectKeyPhrasesCommandError = async (output, c
|
|
|
851
852
|
throw await deserializeAws_json1_1UnsupportedLanguageExceptionResponse(parsedOutput, context);
|
|
852
853
|
default:
|
|
853
854
|
const parsedBody = parsedOutput.body;
|
|
855
|
+
const $metadata = deserializeMetadata(output);
|
|
856
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
854
857
|
response = new ComprehendServiceException_1.ComprehendServiceException({
|
|
855
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
858
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
856
859
|
$fault: "client",
|
|
857
|
-
$metadata
|
|
860
|
+
$metadata,
|
|
858
861
|
});
|
|
859
862
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
860
863
|
}
|
|
@@ -879,8 +882,7 @@ const deserializeAws_json1_1BatchDetectSentimentCommandError = async (output, co
|
|
|
879
882
|
body: await parseBody(output.body, context),
|
|
880
883
|
};
|
|
881
884
|
let response;
|
|
882
|
-
|
|
883
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
885
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
884
886
|
switch (errorCode) {
|
|
885
887
|
case "BatchSizeLimitExceededException":
|
|
886
888
|
case "com.amazonaws.comprehend#BatchSizeLimitExceededException":
|
|
@@ -899,10 +901,12 @@ const deserializeAws_json1_1BatchDetectSentimentCommandError = async (output, co
|
|
|
899
901
|
throw await deserializeAws_json1_1UnsupportedLanguageExceptionResponse(parsedOutput, context);
|
|
900
902
|
default:
|
|
901
903
|
const parsedBody = parsedOutput.body;
|
|
904
|
+
const $metadata = deserializeMetadata(output);
|
|
905
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
902
906
|
response = new ComprehendServiceException_1.ComprehendServiceException({
|
|
903
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
907
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
904
908
|
$fault: "client",
|
|
905
|
-
$metadata
|
|
909
|
+
$metadata,
|
|
906
910
|
});
|
|
907
911
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
908
912
|
}
|
|
@@ -927,8 +931,7 @@ const deserializeAws_json1_1BatchDetectSyntaxCommandError = async (output, conte
|
|
|
927
931
|
body: await parseBody(output.body, context),
|
|
928
932
|
};
|
|
929
933
|
let response;
|
|
930
|
-
|
|
931
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
934
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
932
935
|
switch (errorCode) {
|
|
933
936
|
case "BatchSizeLimitExceededException":
|
|
934
937
|
case "com.amazonaws.comprehend#BatchSizeLimitExceededException":
|
|
@@ -947,10 +950,12 @@ const deserializeAws_json1_1BatchDetectSyntaxCommandError = async (output, conte
|
|
|
947
950
|
throw await deserializeAws_json1_1UnsupportedLanguageExceptionResponse(parsedOutput, context);
|
|
948
951
|
default:
|
|
949
952
|
const parsedBody = parsedOutput.body;
|
|
953
|
+
const $metadata = deserializeMetadata(output);
|
|
954
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
950
955
|
response = new ComprehendServiceException_1.ComprehendServiceException({
|
|
951
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
956
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
952
957
|
$fault: "client",
|
|
953
|
-
$metadata
|
|
958
|
+
$metadata,
|
|
954
959
|
});
|
|
955
960
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
956
961
|
}
|
|
@@ -975,8 +980,7 @@ const deserializeAws_json1_1ClassifyDocumentCommandError = async (output, contex
|
|
|
975
980
|
body: await parseBody(output.body, context),
|
|
976
981
|
};
|
|
977
982
|
let response;
|
|
978
|
-
|
|
979
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
983
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
980
984
|
switch (errorCode) {
|
|
981
985
|
case "InternalServerException":
|
|
982
986
|
case "com.amazonaws.comprehend#InternalServerException":
|
|
@@ -992,10 +996,12 @@ const deserializeAws_json1_1ClassifyDocumentCommandError = async (output, contex
|
|
|
992
996
|
throw await deserializeAws_json1_1TextSizeLimitExceededExceptionResponse(parsedOutput, context);
|
|
993
997
|
default:
|
|
994
998
|
const parsedBody = parsedOutput.body;
|
|
999
|
+
const $metadata = deserializeMetadata(output);
|
|
1000
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
995
1001
|
response = new ComprehendServiceException_1.ComprehendServiceException({
|
|
996
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1002
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
997
1003
|
$fault: "client",
|
|
998
|
-
$metadata
|
|
1004
|
+
$metadata,
|
|
999
1005
|
});
|
|
1000
1006
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1001
1007
|
}
|
|
@@ -1020,8 +1026,7 @@ const deserializeAws_json1_1ContainsPiiEntitiesCommandError = async (output, con
|
|
|
1020
1026
|
body: await parseBody(output.body, context),
|
|
1021
1027
|
};
|
|
1022
1028
|
let response;
|
|
1023
|
-
|
|
1024
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1029
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1025
1030
|
switch (errorCode) {
|
|
1026
1031
|
case "InternalServerException":
|
|
1027
1032
|
case "com.amazonaws.comprehend#InternalServerException":
|
|
@@ -1037,10 +1042,12 @@ const deserializeAws_json1_1ContainsPiiEntitiesCommandError = async (output, con
|
|
|
1037
1042
|
throw await deserializeAws_json1_1UnsupportedLanguageExceptionResponse(parsedOutput, context);
|
|
1038
1043
|
default:
|
|
1039
1044
|
const parsedBody = parsedOutput.body;
|
|
1045
|
+
const $metadata = deserializeMetadata(output);
|
|
1046
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1040
1047
|
response = new ComprehendServiceException_1.ComprehendServiceException({
|
|
1041
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1048
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1042
1049
|
$fault: "client",
|
|
1043
|
-
$metadata
|
|
1050
|
+
$metadata,
|
|
1044
1051
|
});
|
|
1045
1052
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1046
1053
|
}
|
|
@@ -1065,8 +1072,7 @@ const deserializeAws_json1_1CreateDocumentClassifierCommandError = async (output
|
|
|
1065
1072
|
body: await parseBody(output.body, context),
|
|
1066
1073
|
};
|
|
1067
1074
|
let response;
|
|
1068
|
-
|
|
1069
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1075
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1070
1076
|
switch (errorCode) {
|
|
1071
1077
|
case "InternalServerException":
|
|
1072
1078
|
case "com.amazonaws.comprehend#InternalServerException":
|
|
@@ -1094,10 +1100,12 @@ const deserializeAws_json1_1CreateDocumentClassifierCommandError = async (output
|
|
|
1094
1100
|
throw await deserializeAws_json1_1UnsupportedLanguageExceptionResponse(parsedOutput, context);
|
|
1095
1101
|
default:
|
|
1096
1102
|
const parsedBody = parsedOutput.body;
|
|
1103
|
+
const $metadata = deserializeMetadata(output);
|
|
1104
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1097
1105
|
response = new ComprehendServiceException_1.ComprehendServiceException({
|
|
1098
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1106
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1099
1107
|
$fault: "client",
|
|
1100
|
-
$metadata
|
|
1108
|
+
$metadata,
|
|
1101
1109
|
});
|
|
1102
1110
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1103
1111
|
}
|
|
@@ -1122,8 +1130,7 @@ const deserializeAws_json1_1CreateEndpointCommandError = async (output, context)
|
|
|
1122
1130
|
body: await parseBody(output.body, context),
|
|
1123
1131
|
};
|
|
1124
1132
|
let response;
|
|
1125
|
-
|
|
1126
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1133
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1127
1134
|
switch (errorCode) {
|
|
1128
1135
|
case "InternalServerException":
|
|
1129
1136
|
case "com.amazonaws.comprehend#InternalServerException":
|
|
@@ -1151,10 +1158,12 @@ const deserializeAws_json1_1CreateEndpointCommandError = async (output, context)
|
|
|
1151
1158
|
throw await deserializeAws_json1_1TooManyTagsExceptionResponse(parsedOutput, context);
|
|
1152
1159
|
default:
|
|
1153
1160
|
const parsedBody = parsedOutput.body;
|
|
1161
|
+
const $metadata = deserializeMetadata(output);
|
|
1162
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1154
1163
|
response = new ComprehendServiceException_1.ComprehendServiceException({
|
|
1155
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1164
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1156
1165
|
$fault: "client",
|
|
1157
|
-
$metadata
|
|
1166
|
+
$metadata,
|
|
1158
1167
|
});
|
|
1159
1168
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1160
1169
|
}
|
|
@@ -1179,8 +1188,7 @@ const deserializeAws_json1_1CreateEntityRecognizerCommandError = async (output,
|
|
|
1179
1188
|
body: await parseBody(output.body, context),
|
|
1180
1189
|
};
|
|
1181
1190
|
let response;
|
|
1182
|
-
|
|
1183
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1191
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1184
1192
|
switch (errorCode) {
|
|
1185
1193
|
case "InternalServerException":
|
|
1186
1194
|
case "com.amazonaws.comprehend#InternalServerException":
|
|
@@ -1208,10 +1216,12 @@ const deserializeAws_json1_1CreateEntityRecognizerCommandError = async (output,
|
|
|
1208
1216
|
throw await deserializeAws_json1_1UnsupportedLanguageExceptionResponse(parsedOutput, context);
|
|
1209
1217
|
default:
|
|
1210
1218
|
const parsedBody = parsedOutput.body;
|
|
1219
|
+
const $metadata = deserializeMetadata(output);
|
|
1220
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1211
1221
|
response = new ComprehendServiceException_1.ComprehendServiceException({
|
|
1212
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1222
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1213
1223
|
$fault: "client",
|
|
1214
|
-
$metadata
|
|
1224
|
+
$metadata,
|
|
1215
1225
|
});
|
|
1216
1226
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1217
1227
|
}
|
|
@@ -1236,8 +1246,7 @@ const deserializeAws_json1_1DeleteDocumentClassifierCommandError = async (output
|
|
|
1236
1246
|
body: await parseBody(output.body, context),
|
|
1237
1247
|
};
|
|
1238
1248
|
let response;
|
|
1239
|
-
|
|
1240
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1249
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1241
1250
|
switch (errorCode) {
|
|
1242
1251
|
case "InternalServerException":
|
|
1243
1252
|
case "com.amazonaws.comprehend#InternalServerException":
|
|
@@ -1259,10 +1268,12 @@ const deserializeAws_json1_1DeleteDocumentClassifierCommandError = async (output
|
|
|
1259
1268
|
throw await deserializeAws_json1_1TooManyRequestsExceptionResponse(parsedOutput, context);
|
|
1260
1269
|
default:
|
|
1261
1270
|
const parsedBody = parsedOutput.body;
|
|
1271
|
+
const $metadata = deserializeMetadata(output);
|
|
1272
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1262
1273
|
response = new ComprehendServiceException_1.ComprehendServiceException({
|
|
1263
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1274
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1264
1275
|
$fault: "client",
|
|
1265
|
-
$metadata
|
|
1276
|
+
$metadata,
|
|
1266
1277
|
});
|
|
1267
1278
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1268
1279
|
}
|
|
@@ -1287,8 +1298,7 @@ const deserializeAws_json1_1DeleteEndpointCommandError = async (output, context)
|
|
|
1287
1298
|
body: await parseBody(output.body, context),
|
|
1288
1299
|
};
|
|
1289
1300
|
let response;
|
|
1290
|
-
|
|
1291
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1301
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1292
1302
|
switch (errorCode) {
|
|
1293
1303
|
case "InternalServerException":
|
|
1294
1304
|
case "com.amazonaws.comprehend#InternalServerException":
|
|
@@ -1307,10 +1317,12 @@ const deserializeAws_json1_1DeleteEndpointCommandError = async (output, context)
|
|
|
1307
1317
|
throw await deserializeAws_json1_1TooManyRequestsExceptionResponse(parsedOutput, context);
|
|
1308
1318
|
default:
|
|
1309
1319
|
const parsedBody = parsedOutput.body;
|
|
1320
|
+
const $metadata = deserializeMetadata(output);
|
|
1321
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1310
1322
|
response = new ComprehendServiceException_1.ComprehendServiceException({
|
|
1311
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1323
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1312
1324
|
$fault: "client",
|
|
1313
|
-
$metadata
|
|
1325
|
+
$metadata,
|
|
1314
1326
|
});
|
|
1315
1327
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1316
1328
|
}
|
|
@@ -1335,8 +1347,7 @@ const deserializeAws_json1_1DeleteEntityRecognizerCommandError = async (output,
|
|
|
1335
1347
|
body: await parseBody(output.body, context),
|
|
1336
1348
|
};
|
|
1337
1349
|
let response;
|
|
1338
|
-
|
|
1339
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1350
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1340
1351
|
switch (errorCode) {
|
|
1341
1352
|
case "InternalServerException":
|
|
1342
1353
|
case "com.amazonaws.comprehend#InternalServerException":
|
|
@@ -1358,10 +1369,12 @@ const deserializeAws_json1_1DeleteEntityRecognizerCommandError = async (output,
|
|
|
1358
1369
|
throw await deserializeAws_json1_1TooManyRequestsExceptionResponse(parsedOutput, context);
|
|
1359
1370
|
default:
|
|
1360
1371
|
const parsedBody = parsedOutput.body;
|
|
1372
|
+
const $metadata = deserializeMetadata(output);
|
|
1373
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1361
1374
|
response = new ComprehendServiceException_1.ComprehendServiceException({
|
|
1362
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1375
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1363
1376
|
$fault: "client",
|
|
1364
|
-
$metadata
|
|
1377
|
+
$metadata,
|
|
1365
1378
|
});
|
|
1366
1379
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1367
1380
|
}
|
|
@@ -1386,8 +1399,7 @@ const deserializeAws_json1_1DeleteResourcePolicyCommandError = async (output, co
|
|
|
1386
1399
|
body: await parseBody(output.body, context),
|
|
1387
1400
|
};
|
|
1388
1401
|
let response;
|
|
1389
|
-
|
|
1390
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1402
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1391
1403
|
switch (errorCode) {
|
|
1392
1404
|
case "InternalServerException":
|
|
1393
1405
|
case "com.amazonaws.comprehend#InternalServerException":
|
|
@@ -1400,10 +1412,12 @@ const deserializeAws_json1_1DeleteResourcePolicyCommandError = async (output, co
|
|
|
1400
1412
|
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
1401
1413
|
default:
|
|
1402
1414
|
const parsedBody = parsedOutput.body;
|
|
1415
|
+
const $metadata = deserializeMetadata(output);
|
|
1416
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1403
1417
|
response = new ComprehendServiceException_1.ComprehendServiceException({
|
|
1404
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1418
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1405
1419
|
$fault: "client",
|
|
1406
|
-
$metadata
|
|
1420
|
+
$metadata,
|
|
1407
1421
|
});
|
|
1408
1422
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1409
1423
|
}
|
|
@@ -1428,8 +1442,7 @@ const deserializeAws_json1_1DescribeDocumentClassificationJobCommandError = asyn
|
|
|
1428
1442
|
body: await parseBody(output.body, context),
|
|
1429
1443
|
};
|
|
1430
1444
|
let response;
|
|
1431
|
-
|
|
1432
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1445
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1433
1446
|
switch (errorCode) {
|
|
1434
1447
|
case "InternalServerException":
|
|
1435
1448
|
case "com.amazonaws.comprehend#InternalServerException":
|
|
@@ -1445,10 +1458,12 @@ const deserializeAws_json1_1DescribeDocumentClassificationJobCommandError = asyn
|
|
|
1445
1458
|
throw await deserializeAws_json1_1TooManyRequestsExceptionResponse(parsedOutput, context);
|
|
1446
1459
|
default:
|
|
1447
1460
|
const parsedBody = parsedOutput.body;
|
|
1461
|
+
const $metadata = deserializeMetadata(output);
|
|
1462
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1448
1463
|
response = new ComprehendServiceException_1.ComprehendServiceException({
|
|
1449
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1464
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1450
1465
|
$fault: "client",
|
|
1451
|
-
$metadata
|
|
1466
|
+
$metadata,
|
|
1452
1467
|
});
|
|
1453
1468
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1454
1469
|
}
|
|
@@ -1473,8 +1488,7 @@ const deserializeAws_json1_1DescribeDocumentClassifierCommandError = async (outp
|
|
|
1473
1488
|
body: await parseBody(output.body, context),
|
|
1474
1489
|
};
|
|
1475
1490
|
let response;
|
|
1476
|
-
|
|
1477
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1491
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1478
1492
|
switch (errorCode) {
|
|
1479
1493
|
case "InternalServerException":
|
|
1480
1494
|
case "com.amazonaws.comprehend#InternalServerException":
|
|
@@ -1490,10 +1504,12 @@ const deserializeAws_json1_1DescribeDocumentClassifierCommandError = async (outp
|
|
|
1490
1504
|
throw await deserializeAws_json1_1TooManyRequestsExceptionResponse(parsedOutput, context);
|
|
1491
1505
|
default:
|
|
1492
1506
|
const parsedBody = parsedOutput.body;
|
|
1507
|
+
const $metadata = deserializeMetadata(output);
|
|
1508
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1493
1509
|
response = new ComprehendServiceException_1.ComprehendServiceException({
|
|
1494
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1510
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1495
1511
|
$fault: "client",
|
|
1496
|
-
$metadata
|
|
1512
|
+
$metadata,
|
|
1497
1513
|
});
|
|
1498
1514
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1499
1515
|
}
|
|
@@ -1518,8 +1534,7 @@ const deserializeAws_json1_1DescribeDominantLanguageDetectionJobCommandError = a
|
|
|
1518
1534
|
body: await parseBody(output.body, context),
|
|
1519
1535
|
};
|
|
1520
1536
|
let response;
|
|
1521
|
-
|
|
1522
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1537
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1523
1538
|
switch (errorCode) {
|
|
1524
1539
|
case "InternalServerException":
|
|
1525
1540
|
case "com.amazonaws.comprehend#InternalServerException":
|
|
@@ -1535,10 +1550,12 @@ const deserializeAws_json1_1DescribeDominantLanguageDetectionJobCommandError = a
|
|
|
1535
1550
|
throw await deserializeAws_json1_1TooManyRequestsExceptionResponse(parsedOutput, context);
|
|
1536
1551
|
default:
|
|
1537
1552
|
const parsedBody = parsedOutput.body;
|
|
1553
|
+
const $metadata = deserializeMetadata(output);
|
|
1554
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1538
1555
|
response = new ComprehendServiceException_1.ComprehendServiceException({
|
|
1539
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1556
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1540
1557
|
$fault: "client",
|
|
1541
|
-
$metadata
|
|
1558
|
+
$metadata,
|
|
1542
1559
|
});
|
|
1543
1560
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1544
1561
|
}
|
|
@@ -1563,8 +1580,7 @@ const deserializeAws_json1_1DescribeEndpointCommandError = async (output, contex
|
|
|
1563
1580
|
body: await parseBody(output.body, context),
|
|
1564
1581
|
};
|
|
1565
1582
|
let response;
|
|
1566
|
-
|
|
1567
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1583
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1568
1584
|
switch (errorCode) {
|
|
1569
1585
|
case "InternalServerException":
|
|
1570
1586
|
case "com.amazonaws.comprehend#InternalServerException":
|
|
@@ -1580,10 +1596,12 @@ const deserializeAws_json1_1DescribeEndpointCommandError = async (output, contex
|
|
|
1580
1596
|
throw await deserializeAws_json1_1TooManyRequestsExceptionResponse(parsedOutput, context);
|
|
1581
1597
|
default:
|
|
1582
1598
|
const parsedBody = parsedOutput.body;
|
|
1599
|
+
const $metadata = deserializeMetadata(output);
|
|
1600
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1583
1601
|
response = new ComprehendServiceException_1.ComprehendServiceException({
|
|
1584
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1602
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1585
1603
|
$fault: "client",
|
|
1586
|
-
$metadata
|
|
1604
|
+
$metadata,
|
|
1587
1605
|
});
|
|
1588
1606
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1589
1607
|
}
|
|
@@ -1608,8 +1626,7 @@ const deserializeAws_json1_1DescribeEntitiesDetectionJobCommandError = async (ou
|
|
|
1608
1626
|
body: await parseBody(output.body, context),
|
|
1609
1627
|
};
|
|
1610
1628
|
let response;
|
|
1611
|
-
|
|
1612
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1629
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1613
1630
|
switch (errorCode) {
|
|
1614
1631
|
case "InternalServerException":
|
|
1615
1632
|
case "com.amazonaws.comprehend#InternalServerException":
|
|
@@ -1625,10 +1642,12 @@ const deserializeAws_json1_1DescribeEntitiesDetectionJobCommandError = async (ou
|
|
|
1625
1642
|
throw await deserializeAws_json1_1TooManyRequestsExceptionResponse(parsedOutput, context);
|
|
1626
1643
|
default:
|
|
1627
1644
|
const parsedBody = parsedOutput.body;
|
|
1645
|
+
const $metadata = deserializeMetadata(output);
|
|
1646
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1628
1647
|
response = new ComprehendServiceException_1.ComprehendServiceException({
|
|
1629
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1648
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1630
1649
|
$fault: "client",
|
|
1631
|
-
$metadata
|
|
1650
|
+
$metadata,
|
|
1632
1651
|
});
|
|
1633
1652
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1634
1653
|
}
|
|
@@ -1653,8 +1672,7 @@ const deserializeAws_json1_1DescribeEntityRecognizerCommandError = async (output
|
|
|
1653
1672
|
body: await parseBody(output.body, context),
|
|
1654
1673
|
};
|
|
1655
1674
|
let response;
|
|
1656
|
-
|
|
1657
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1675
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1658
1676
|
switch (errorCode) {
|
|
1659
1677
|
case "InternalServerException":
|
|
1660
1678
|
case "com.amazonaws.comprehend#InternalServerException":
|
|
@@ -1670,10 +1688,12 @@ const deserializeAws_json1_1DescribeEntityRecognizerCommandError = async (output
|
|
|
1670
1688
|
throw await deserializeAws_json1_1TooManyRequestsExceptionResponse(parsedOutput, context);
|
|
1671
1689
|
default:
|
|
1672
1690
|
const parsedBody = parsedOutput.body;
|
|
1691
|
+
const $metadata = deserializeMetadata(output);
|
|
1692
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1673
1693
|
response = new ComprehendServiceException_1.ComprehendServiceException({
|
|
1674
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1694
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1675
1695
|
$fault: "client",
|
|
1676
|
-
$metadata
|
|
1696
|
+
$metadata,
|
|
1677
1697
|
});
|
|
1678
1698
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1679
1699
|
}
|
|
@@ -1698,8 +1718,7 @@ const deserializeAws_json1_1DescribeEventsDetectionJobCommandError = async (outp
|
|
|
1698
1718
|
body: await parseBody(output.body, context),
|
|
1699
1719
|
};
|
|
1700
1720
|
let response;
|
|
1701
|
-
|
|
1702
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1721
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1703
1722
|
switch (errorCode) {
|
|
1704
1723
|
case "InternalServerException":
|
|
1705
1724
|
case "com.amazonaws.comprehend#InternalServerException":
|
|
@@ -1715,10 +1734,12 @@ const deserializeAws_json1_1DescribeEventsDetectionJobCommandError = async (outp
|
|
|
1715
1734
|
throw await deserializeAws_json1_1TooManyRequestsExceptionResponse(parsedOutput, context);
|
|
1716
1735
|
default:
|
|
1717
1736
|
const parsedBody = parsedOutput.body;
|
|
1737
|
+
const $metadata = deserializeMetadata(output);
|
|
1738
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1718
1739
|
response = new ComprehendServiceException_1.ComprehendServiceException({
|
|
1719
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1740
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1720
1741
|
$fault: "client",
|
|
1721
|
-
$metadata
|
|
1742
|
+
$metadata,
|
|
1722
1743
|
});
|
|
1723
1744
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1724
1745
|
}
|
|
@@ -1743,8 +1764,7 @@ const deserializeAws_json1_1DescribeKeyPhrasesDetectionJobCommandError = async (
|
|
|
1743
1764
|
body: await parseBody(output.body, context),
|
|
1744
1765
|
};
|
|
1745
1766
|
let response;
|
|
1746
|
-
|
|
1747
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1767
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1748
1768
|
switch (errorCode) {
|
|
1749
1769
|
case "InternalServerException":
|
|
1750
1770
|
case "com.amazonaws.comprehend#InternalServerException":
|
|
@@ -1760,10 +1780,12 @@ const deserializeAws_json1_1DescribeKeyPhrasesDetectionJobCommandError = async (
|
|
|
1760
1780
|
throw await deserializeAws_json1_1TooManyRequestsExceptionResponse(parsedOutput, context);
|
|
1761
1781
|
default:
|
|
1762
1782
|
const parsedBody = parsedOutput.body;
|
|
1783
|
+
const $metadata = deserializeMetadata(output);
|
|
1784
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1763
1785
|
response = new ComprehendServiceException_1.ComprehendServiceException({
|
|
1764
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1786
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1765
1787
|
$fault: "client",
|
|
1766
|
-
$metadata
|
|
1788
|
+
$metadata,
|
|
1767
1789
|
});
|
|
1768
1790
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1769
1791
|
}
|
|
@@ -1788,8 +1810,7 @@ const deserializeAws_json1_1DescribePiiEntitiesDetectionJobCommandError = async
|
|
|
1788
1810
|
body: await parseBody(output.body, context),
|
|
1789
1811
|
};
|
|
1790
1812
|
let response;
|
|
1791
|
-
|
|
1792
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1813
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1793
1814
|
switch (errorCode) {
|
|
1794
1815
|
case "InternalServerException":
|
|
1795
1816
|
case "com.amazonaws.comprehend#InternalServerException":
|
|
@@ -1805,10 +1826,12 @@ const deserializeAws_json1_1DescribePiiEntitiesDetectionJobCommandError = async
|
|
|
1805
1826
|
throw await deserializeAws_json1_1TooManyRequestsExceptionResponse(parsedOutput, context);
|
|
1806
1827
|
default:
|
|
1807
1828
|
const parsedBody = parsedOutput.body;
|
|
1829
|
+
const $metadata = deserializeMetadata(output);
|
|
1830
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1808
1831
|
response = new ComprehendServiceException_1.ComprehendServiceException({
|
|
1809
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1832
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1810
1833
|
$fault: "client",
|
|
1811
|
-
$metadata
|
|
1834
|
+
$metadata,
|
|
1812
1835
|
});
|
|
1813
1836
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1814
1837
|
}
|
|
@@ -1833,8 +1856,7 @@ const deserializeAws_json1_1DescribeResourcePolicyCommandError = async (output,
|
|
|
1833
1856
|
body: await parseBody(output.body, context),
|
|
1834
1857
|
};
|
|
1835
1858
|
let response;
|
|
1836
|
-
|
|
1837
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1859
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1838
1860
|
switch (errorCode) {
|
|
1839
1861
|
case "InternalServerException":
|
|
1840
1862
|
case "com.amazonaws.comprehend#InternalServerException":
|
|
@@ -1847,10 +1869,12 @@ const deserializeAws_json1_1DescribeResourcePolicyCommandError = async (output,
|
|
|
1847
1869
|
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
1848
1870
|
default:
|
|
1849
1871
|
const parsedBody = parsedOutput.body;
|
|
1872
|
+
const $metadata = deserializeMetadata(output);
|
|
1873
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1850
1874
|
response = new ComprehendServiceException_1.ComprehendServiceException({
|
|
1851
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1875
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1852
1876
|
$fault: "client",
|
|
1853
|
-
$metadata
|
|
1877
|
+
$metadata,
|
|
1854
1878
|
});
|
|
1855
1879
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1856
1880
|
}
|
|
@@ -1875,8 +1899,7 @@ const deserializeAws_json1_1DescribeSentimentDetectionJobCommandError = async (o
|
|
|
1875
1899
|
body: await parseBody(output.body, context),
|
|
1876
1900
|
};
|
|
1877
1901
|
let response;
|
|
1878
|
-
|
|
1879
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1902
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1880
1903
|
switch (errorCode) {
|
|
1881
1904
|
case "InternalServerException":
|
|
1882
1905
|
case "com.amazonaws.comprehend#InternalServerException":
|
|
@@ -1892,10 +1915,12 @@ const deserializeAws_json1_1DescribeSentimentDetectionJobCommandError = async (o
|
|
|
1892
1915
|
throw await deserializeAws_json1_1TooManyRequestsExceptionResponse(parsedOutput, context);
|
|
1893
1916
|
default:
|
|
1894
1917
|
const parsedBody = parsedOutput.body;
|
|
1918
|
+
const $metadata = deserializeMetadata(output);
|
|
1919
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1895
1920
|
response = new ComprehendServiceException_1.ComprehendServiceException({
|
|
1896
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1921
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1897
1922
|
$fault: "client",
|
|
1898
|
-
$metadata
|
|
1923
|
+
$metadata,
|
|
1899
1924
|
});
|
|
1900
1925
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1901
1926
|
}
|
|
@@ -1920,8 +1945,7 @@ const deserializeAws_json1_1DescribeTargetedSentimentDetectionJobCommandError =
|
|
|
1920
1945
|
body: await parseBody(output.body, context),
|
|
1921
1946
|
};
|
|
1922
1947
|
let response;
|
|
1923
|
-
|
|
1924
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1948
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1925
1949
|
switch (errorCode) {
|
|
1926
1950
|
case "InternalServerException":
|
|
1927
1951
|
case "com.amazonaws.comprehend#InternalServerException":
|
|
@@ -1937,10 +1961,12 @@ const deserializeAws_json1_1DescribeTargetedSentimentDetectionJobCommandError =
|
|
|
1937
1961
|
throw await deserializeAws_json1_1TooManyRequestsExceptionResponse(parsedOutput, context);
|
|
1938
1962
|
default:
|
|
1939
1963
|
const parsedBody = parsedOutput.body;
|
|
1964
|
+
const $metadata = deserializeMetadata(output);
|
|
1965
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1940
1966
|
response = new ComprehendServiceException_1.ComprehendServiceException({
|
|
1941
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1967
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1942
1968
|
$fault: "client",
|
|
1943
|
-
$metadata
|
|
1969
|
+
$metadata,
|
|
1944
1970
|
});
|
|
1945
1971
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1946
1972
|
}
|
|
@@ -1965,8 +1991,7 @@ const deserializeAws_json1_1DescribeTopicsDetectionJobCommandError = async (outp
|
|
|
1965
1991
|
body: await parseBody(output.body, context),
|
|
1966
1992
|
};
|
|
1967
1993
|
let response;
|
|
1968
|
-
|
|
1969
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1994
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1970
1995
|
switch (errorCode) {
|
|
1971
1996
|
case "InternalServerException":
|
|
1972
1997
|
case "com.amazonaws.comprehend#InternalServerException":
|
|
@@ -1982,10 +2007,12 @@ const deserializeAws_json1_1DescribeTopicsDetectionJobCommandError = async (outp
|
|
|
1982
2007
|
throw await deserializeAws_json1_1TooManyRequestsExceptionResponse(parsedOutput, context);
|
|
1983
2008
|
default:
|
|
1984
2009
|
const parsedBody = parsedOutput.body;
|
|
2010
|
+
const $metadata = deserializeMetadata(output);
|
|
2011
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1985
2012
|
response = new ComprehendServiceException_1.ComprehendServiceException({
|
|
1986
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2013
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1987
2014
|
$fault: "client",
|
|
1988
|
-
$metadata
|
|
2015
|
+
$metadata,
|
|
1989
2016
|
});
|
|
1990
2017
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1991
2018
|
}
|
|
@@ -2010,8 +2037,7 @@ const deserializeAws_json1_1DetectDominantLanguageCommandError = async (output,
|
|
|
2010
2037
|
body: await parseBody(output.body, context),
|
|
2011
2038
|
};
|
|
2012
2039
|
let response;
|
|
2013
|
-
|
|
2014
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2040
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2015
2041
|
switch (errorCode) {
|
|
2016
2042
|
case "InternalServerException":
|
|
2017
2043
|
case "com.amazonaws.comprehend#InternalServerException":
|
|
@@ -2024,10 +2050,12 @@ const deserializeAws_json1_1DetectDominantLanguageCommandError = async (output,
|
|
|
2024
2050
|
throw await deserializeAws_json1_1TextSizeLimitExceededExceptionResponse(parsedOutput, context);
|
|
2025
2051
|
default:
|
|
2026
2052
|
const parsedBody = parsedOutput.body;
|
|
2053
|
+
const $metadata = deserializeMetadata(output);
|
|
2054
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2027
2055
|
response = new ComprehendServiceException_1.ComprehendServiceException({
|
|
2028
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2056
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2029
2057
|
$fault: "client",
|
|
2030
|
-
$metadata
|
|
2058
|
+
$metadata,
|
|
2031
2059
|
});
|
|
2032
2060
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2033
2061
|
}
|
|
@@ -2052,8 +2080,7 @@ const deserializeAws_json1_1DetectEntitiesCommandError = async (output, context)
|
|
|
2052
2080
|
body: await parseBody(output.body, context),
|
|
2053
2081
|
};
|
|
2054
2082
|
let response;
|
|
2055
|
-
|
|
2056
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2083
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2057
2084
|
switch (errorCode) {
|
|
2058
2085
|
case "InternalServerException":
|
|
2059
2086
|
case "com.amazonaws.comprehend#InternalServerException":
|
|
@@ -2072,10 +2099,12 @@ const deserializeAws_json1_1DetectEntitiesCommandError = async (output, context)
|
|
|
2072
2099
|
throw await deserializeAws_json1_1UnsupportedLanguageExceptionResponse(parsedOutput, context);
|
|
2073
2100
|
default:
|
|
2074
2101
|
const parsedBody = parsedOutput.body;
|
|
2102
|
+
const $metadata = deserializeMetadata(output);
|
|
2103
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2075
2104
|
response = new ComprehendServiceException_1.ComprehendServiceException({
|
|
2076
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2105
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2077
2106
|
$fault: "client",
|
|
2078
|
-
$metadata
|
|
2107
|
+
$metadata,
|
|
2079
2108
|
});
|
|
2080
2109
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2081
2110
|
}
|
|
@@ -2100,8 +2129,7 @@ const deserializeAws_json1_1DetectKeyPhrasesCommandError = async (output, contex
|
|
|
2100
2129
|
body: await parseBody(output.body, context),
|
|
2101
2130
|
};
|
|
2102
2131
|
let response;
|
|
2103
|
-
|
|
2104
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2132
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2105
2133
|
switch (errorCode) {
|
|
2106
2134
|
case "InternalServerException":
|
|
2107
2135
|
case "com.amazonaws.comprehend#InternalServerException":
|
|
@@ -2117,10 +2145,12 @@ const deserializeAws_json1_1DetectKeyPhrasesCommandError = async (output, contex
|
|
|
2117
2145
|
throw await deserializeAws_json1_1UnsupportedLanguageExceptionResponse(parsedOutput, context);
|
|
2118
2146
|
default:
|
|
2119
2147
|
const parsedBody = parsedOutput.body;
|
|
2148
|
+
const $metadata = deserializeMetadata(output);
|
|
2149
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2120
2150
|
response = new ComprehendServiceException_1.ComprehendServiceException({
|
|
2121
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2151
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2122
2152
|
$fault: "client",
|
|
2123
|
-
$metadata
|
|
2153
|
+
$metadata,
|
|
2124
2154
|
});
|
|
2125
2155
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2126
2156
|
}
|
|
@@ -2145,8 +2175,7 @@ const deserializeAws_json1_1DetectPiiEntitiesCommandError = async (output, conte
|
|
|
2145
2175
|
body: await parseBody(output.body, context),
|
|
2146
2176
|
};
|
|
2147
2177
|
let response;
|
|
2148
|
-
|
|
2149
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2178
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2150
2179
|
switch (errorCode) {
|
|
2151
2180
|
case "InternalServerException":
|
|
2152
2181
|
case "com.amazonaws.comprehend#InternalServerException":
|
|
@@ -2162,10 +2191,12 @@ const deserializeAws_json1_1DetectPiiEntitiesCommandError = async (output, conte
|
|
|
2162
2191
|
throw await deserializeAws_json1_1UnsupportedLanguageExceptionResponse(parsedOutput, context);
|
|
2163
2192
|
default:
|
|
2164
2193
|
const parsedBody = parsedOutput.body;
|
|
2194
|
+
const $metadata = deserializeMetadata(output);
|
|
2195
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2165
2196
|
response = new ComprehendServiceException_1.ComprehendServiceException({
|
|
2166
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2197
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2167
2198
|
$fault: "client",
|
|
2168
|
-
$metadata
|
|
2199
|
+
$metadata,
|
|
2169
2200
|
});
|
|
2170
2201
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2171
2202
|
}
|
|
@@ -2190,8 +2221,7 @@ const deserializeAws_json1_1DetectSentimentCommandError = async (output, context
|
|
|
2190
2221
|
body: await parseBody(output.body, context),
|
|
2191
2222
|
};
|
|
2192
2223
|
let response;
|
|
2193
|
-
|
|
2194
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2224
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2195
2225
|
switch (errorCode) {
|
|
2196
2226
|
case "InternalServerException":
|
|
2197
2227
|
case "com.amazonaws.comprehend#InternalServerException":
|
|
@@ -2207,10 +2237,12 @@ const deserializeAws_json1_1DetectSentimentCommandError = async (output, context
|
|
|
2207
2237
|
throw await deserializeAws_json1_1UnsupportedLanguageExceptionResponse(parsedOutput, context);
|
|
2208
2238
|
default:
|
|
2209
2239
|
const parsedBody = parsedOutput.body;
|
|
2240
|
+
const $metadata = deserializeMetadata(output);
|
|
2241
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2210
2242
|
response = new ComprehendServiceException_1.ComprehendServiceException({
|
|
2211
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2243
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2212
2244
|
$fault: "client",
|
|
2213
|
-
$metadata
|
|
2245
|
+
$metadata,
|
|
2214
2246
|
});
|
|
2215
2247
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2216
2248
|
}
|
|
@@ -2235,8 +2267,7 @@ const deserializeAws_json1_1DetectSyntaxCommandError = async (output, context) =
|
|
|
2235
2267
|
body: await parseBody(output.body, context),
|
|
2236
2268
|
};
|
|
2237
2269
|
let response;
|
|
2238
|
-
|
|
2239
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2270
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2240
2271
|
switch (errorCode) {
|
|
2241
2272
|
case "InternalServerException":
|
|
2242
2273
|
case "com.amazonaws.comprehend#InternalServerException":
|
|
@@ -2252,10 +2283,12 @@ const deserializeAws_json1_1DetectSyntaxCommandError = async (output, context) =
|
|
|
2252
2283
|
throw await deserializeAws_json1_1UnsupportedLanguageExceptionResponse(parsedOutput, context);
|
|
2253
2284
|
default:
|
|
2254
2285
|
const parsedBody = parsedOutput.body;
|
|
2286
|
+
const $metadata = deserializeMetadata(output);
|
|
2287
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2255
2288
|
response = new ComprehendServiceException_1.ComprehendServiceException({
|
|
2256
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2289
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2257
2290
|
$fault: "client",
|
|
2258
|
-
$metadata
|
|
2291
|
+
$metadata,
|
|
2259
2292
|
});
|
|
2260
2293
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2261
2294
|
}
|
|
@@ -2280,8 +2313,7 @@ const deserializeAws_json1_1ImportModelCommandError = async (output, context) =>
|
|
|
2280
2313
|
body: await parseBody(output.body, context),
|
|
2281
2314
|
};
|
|
2282
2315
|
let response;
|
|
2283
|
-
|
|
2284
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2316
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2285
2317
|
switch (errorCode) {
|
|
2286
2318
|
case "InternalServerException":
|
|
2287
2319
|
case "com.amazonaws.comprehend#InternalServerException":
|
|
@@ -2312,10 +2344,12 @@ const deserializeAws_json1_1ImportModelCommandError = async (output, context) =>
|
|
|
2312
2344
|
throw await deserializeAws_json1_1TooManyTagsExceptionResponse(parsedOutput, context);
|
|
2313
2345
|
default:
|
|
2314
2346
|
const parsedBody = parsedOutput.body;
|
|
2347
|
+
const $metadata = deserializeMetadata(output);
|
|
2348
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2315
2349
|
response = new ComprehendServiceException_1.ComprehendServiceException({
|
|
2316
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2350
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2317
2351
|
$fault: "client",
|
|
2318
|
-
$metadata
|
|
2352
|
+
$metadata,
|
|
2319
2353
|
});
|
|
2320
2354
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2321
2355
|
}
|
|
@@ -2340,8 +2374,7 @@ const deserializeAws_json1_1ListDocumentClassificationJobsCommandError = async (
|
|
|
2340
2374
|
body: await parseBody(output.body, context),
|
|
2341
2375
|
};
|
|
2342
2376
|
let response;
|
|
2343
|
-
|
|
2344
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2377
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2345
2378
|
switch (errorCode) {
|
|
2346
2379
|
case "InternalServerException":
|
|
2347
2380
|
case "com.amazonaws.comprehend#InternalServerException":
|
|
@@ -2357,10 +2390,12 @@ const deserializeAws_json1_1ListDocumentClassificationJobsCommandError = async (
|
|
|
2357
2390
|
throw await deserializeAws_json1_1TooManyRequestsExceptionResponse(parsedOutput, context);
|
|
2358
2391
|
default:
|
|
2359
2392
|
const parsedBody = parsedOutput.body;
|
|
2393
|
+
const $metadata = deserializeMetadata(output);
|
|
2394
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2360
2395
|
response = new ComprehendServiceException_1.ComprehendServiceException({
|
|
2361
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2396
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2362
2397
|
$fault: "client",
|
|
2363
|
-
$metadata
|
|
2398
|
+
$metadata,
|
|
2364
2399
|
});
|
|
2365
2400
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2366
2401
|
}
|
|
@@ -2385,8 +2420,7 @@ const deserializeAws_json1_1ListDocumentClassifiersCommandError = async (output,
|
|
|
2385
2420
|
body: await parseBody(output.body, context),
|
|
2386
2421
|
};
|
|
2387
2422
|
let response;
|
|
2388
|
-
|
|
2389
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2423
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2390
2424
|
switch (errorCode) {
|
|
2391
2425
|
case "InternalServerException":
|
|
2392
2426
|
case "com.amazonaws.comprehend#InternalServerException":
|
|
@@ -2402,10 +2436,12 @@ const deserializeAws_json1_1ListDocumentClassifiersCommandError = async (output,
|
|
|
2402
2436
|
throw await deserializeAws_json1_1TooManyRequestsExceptionResponse(parsedOutput, context);
|
|
2403
2437
|
default:
|
|
2404
2438
|
const parsedBody = parsedOutput.body;
|
|
2439
|
+
const $metadata = deserializeMetadata(output);
|
|
2440
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2405
2441
|
response = new ComprehendServiceException_1.ComprehendServiceException({
|
|
2406
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2442
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2407
2443
|
$fault: "client",
|
|
2408
|
-
$metadata
|
|
2444
|
+
$metadata,
|
|
2409
2445
|
});
|
|
2410
2446
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2411
2447
|
}
|
|
@@ -2430,8 +2466,7 @@ const deserializeAws_json1_1ListDocumentClassifierSummariesCommandError = async
|
|
|
2430
2466
|
body: await parseBody(output.body, context),
|
|
2431
2467
|
};
|
|
2432
2468
|
let response;
|
|
2433
|
-
|
|
2434
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2469
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2435
2470
|
switch (errorCode) {
|
|
2436
2471
|
case "InternalServerException":
|
|
2437
2472
|
case "com.amazonaws.comprehend#InternalServerException":
|
|
@@ -2444,10 +2479,12 @@ const deserializeAws_json1_1ListDocumentClassifierSummariesCommandError = async
|
|
|
2444
2479
|
throw await deserializeAws_json1_1TooManyRequestsExceptionResponse(parsedOutput, context);
|
|
2445
2480
|
default:
|
|
2446
2481
|
const parsedBody = parsedOutput.body;
|
|
2482
|
+
const $metadata = deserializeMetadata(output);
|
|
2483
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2447
2484
|
response = new ComprehendServiceException_1.ComprehendServiceException({
|
|
2448
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2485
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2449
2486
|
$fault: "client",
|
|
2450
|
-
$metadata
|
|
2487
|
+
$metadata,
|
|
2451
2488
|
});
|
|
2452
2489
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2453
2490
|
}
|
|
@@ -2472,8 +2509,7 @@ const deserializeAws_json1_1ListDominantLanguageDetectionJobsCommandError = asyn
|
|
|
2472
2509
|
body: await parseBody(output.body, context),
|
|
2473
2510
|
};
|
|
2474
2511
|
let response;
|
|
2475
|
-
|
|
2476
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2512
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2477
2513
|
switch (errorCode) {
|
|
2478
2514
|
case "InternalServerException":
|
|
2479
2515
|
case "com.amazonaws.comprehend#InternalServerException":
|
|
@@ -2489,10 +2525,12 @@ const deserializeAws_json1_1ListDominantLanguageDetectionJobsCommandError = asyn
|
|
|
2489
2525
|
throw await deserializeAws_json1_1TooManyRequestsExceptionResponse(parsedOutput, context);
|
|
2490
2526
|
default:
|
|
2491
2527
|
const parsedBody = parsedOutput.body;
|
|
2528
|
+
const $metadata = deserializeMetadata(output);
|
|
2529
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2492
2530
|
response = new ComprehendServiceException_1.ComprehendServiceException({
|
|
2493
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2531
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2494
2532
|
$fault: "client",
|
|
2495
|
-
$metadata
|
|
2533
|
+
$metadata,
|
|
2496
2534
|
});
|
|
2497
2535
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2498
2536
|
}
|
|
@@ -2517,8 +2555,7 @@ const deserializeAws_json1_1ListEndpointsCommandError = async (output, context)
|
|
|
2517
2555
|
body: await parseBody(output.body, context),
|
|
2518
2556
|
};
|
|
2519
2557
|
let response;
|
|
2520
|
-
|
|
2521
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2558
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2522
2559
|
switch (errorCode) {
|
|
2523
2560
|
case "InternalServerException":
|
|
2524
2561
|
case "com.amazonaws.comprehend#InternalServerException":
|
|
@@ -2531,10 +2568,12 @@ const deserializeAws_json1_1ListEndpointsCommandError = async (output, context)
|
|
|
2531
2568
|
throw await deserializeAws_json1_1TooManyRequestsExceptionResponse(parsedOutput, context);
|
|
2532
2569
|
default:
|
|
2533
2570
|
const parsedBody = parsedOutput.body;
|
|
2571
|
+
const $metadata = deserializeMetadata(output);
|
|
2572
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2534
2573
|
response = new ComprehendServiceException_1.ComprehendServiceException({
|
|
2535
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2574
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2536
2575
|
$fault: "client",
|
|
2537
|
-
$metadata
|
|
2576
|
+
$metadata,
|
|
2538
2577
|
});
|
|
2539
2578
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2540
2579
|
}
|
|
@@ -2559,8 +2598,7 @@ const deserializeAws_json1_1ListEntitiesDetectionJobsCommandError = async (outpu
|
|
|
2559
2598
|
body: await parseBody(output.body, context),
|
|
2560
2599
|
};
|
|
2561
2600
|
let response;
|
|
2562
|
-
|
|
2563
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2601
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2564
2602
|
switch (errorCode) {
|
|
2565
2603
|
case "InternalServerException":
|
|
2566
2604
|
case "com.amazonaws.comprehend#InternalServerException":
|
|
@@ -2576,10 +2614,12 @@ const deserializeAws_json1_1ListEntitiesDetectionJobsCommandError = async (outpu
|
|
|
2576
2614
|
throw await deserializeAws_json1_1TooManyRequestsExceptionResponse(parsedOutput, context);
|
|
2577
2615
|
default:
|
|
2578
2616
|
const parsedBody = parsedOutput.body;
|
|
2617
|
+
const $metadata = deserializeMetadata(output);
|
|
2618
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2579
2619
|
response = new ComprehendServiceException_1.ComprehendServiceException({
|
|
2580
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2620
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2581
2621
|
$fault: "client",
|
|
2582
|
-
$metadata
|
|
2622
|
+
$metadata,
|
|
2583
2623
|
});
|
|
2584
2624
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2585
2625
|
}
|
|
@@ -2604,8 +2644,7 @@ const deserializeAws_json1_1ListEntityRecognizersCommandError = async (output, c
|
|
|
2604
2644
|
body: await parseBody(output.body, context),
|
|
2605
2645
|
};
|
|
2606
2646
|
let response;
|
|
2607
|
-
|
|
2608
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2647
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2609
2648
|
switch (errorCode) {
|
|
2610
2649
|
case "InternalServerException":
|
|
2611
2650
|
case "com.amazonaws.comprehend#InternalServerException":
|
|
@@ -2621,10 +2660,12 @@ const deserializeAws_json1_1ListEntityRecognizersCommandError = async (output, c
|
|
|
2621
2660
|
throw await deserializeAws_json1_1TooManyRequestsExceptionResponse(parsedOutput, context);
|
|
2622
2661
|
default:
|
|
2623
2662
|
const parsedBody = parsedOutput.body;
|
|
2663
|
+
const $metadata = deserializeMetadata(output);
|
|
2664
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2624
2665
|
response = new ComprehendServiceException_1.ComprehendServiceException({
|
|
2625
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2666
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2626
2667
|
$fault: "client",
|
|
2627
|
-
$metadata
|
|
2668
|
+
$metadata,
|
|
2628
2669
|
});
|
|
2629
2670
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2630
2671
|
}
|
|
@@ -2649,8 +2690,7 @@ const deserializeAws_json1_1ListEntityRecognizerSummariesCommandError = async (o
|
|
|
2649
2690
|
body: await parseBody(output.body, context),
|
|
2650
2691
|
};
|
|
2651
2692
|
let response;
|
|
2652
|
-
|
|
2653
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2693
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2654
2694
|
switch (errorCode) {
|
|
2655
2695
|
case "InternalServerException":
|
|
2656
2696
|
case "com.amazonaws.comprehend#InternalServerException":
|
|
@@ -2663,10 +2703,12 @@ const deserializeAws_json1_1ListEntityRecognizerSummariesCommandError = async (o
|
|
|
2663
2703
|
throw await deserializeAws_json1_1TooManyRequestsExceptionResponse(parsedOutput, context);
|
|
2664
2704
|
default:
|
|
2665
2705
|
const parsedBody = parsedOutput.body;
|
|
2706
|
+
const $metadata = deserializeMetadata(output);
|
|
2707
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2666
2708
|
response = new ComprehendServiceException_1.ComprehendServiceException({
|
|
2667
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2709
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2668
2710
|
$fault: "client",
|
|
2669
|
-
$metadata
|
|
2711
|
+
$metadata,
|
|
2670
2712
|
});
|
|
2671
2713
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2672
2714
|
}
|
|
@@ -2691,8 +2733,7 @@ const deserializeAws_json1_1ListEventsDetectionJobsCommandError = async (output,
|
|
|
2691
2733
|
body: await parseBody(output.body, context),
|
|
2692
2734
|
};
|
|
2693
2735
|
let response;
|
|
2694
|
-
|
|
2695
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2736
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2696
2737
|
switch (errorCode) {
|
|
2697
2738
|
case "InternalServerException":
|
|
2698
2739
|
case "com.amazonaws.comprehend#InternalServerException":
|
|
@@ -2708,10 +2749,12 @@ const deserializeAws_json1_1ListEventsDetectionJobsCommandError = async (output,
|
|
|
2708
2749
|
throw await deserializeAws_json1_1TooManyRequestsExceptionResponse(parsedOutput, context);
|
|
2709
2750
|
default:
|
|
2710
2751
|
const parsedBody = parsedOutput.body;
|
|
2752
|
+
const $metadata = deserializeMetadata(output);
|
|
2753
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2711
2754
|
response = new ComprehendServiceException_1.ComprehendServiceException({
|
|
2712
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2755
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2713
2756
|
$fault: "client",
|
|
2714
|
-
$metadata
|
|
2757
|
+
$metadata,
|
|
2715
2758
|
});
|
|
2716
2759
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2717
2760
|
}
|
|
@@ -2736,8 +2779,7 @@ const deserializeAws_json1_1ListKeyPhrasesDetectionJobsCommandError = async (out
|
|
|
2736
2779
|
body: await parseBody(output.body, context),
|
|
2737
2780
|
};
|
|
2738
2781
|
let response;
|
|
2739
|
-
|
|
2740
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2782
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2741
2783
|
switch (errorCode) {
|
|
2742
2784
|
case "InternalServerException":
|
|
2743
2785
|
case "com.amazonaws.comprehend#InternalServerException":
|
|
@@ -2753,10 +2795,12 @@ const deserializeAws_json1_1ListKeyPhrasesDetectionJobsCommandError = async (out
|
|
|
2753
2795
|
throw await deserializeAws_json1_1TooManyRequestsExceptionResponse(parsedOutput, context);
|
|
2754
2796
|
default:
|
|
2755
2797
|
const parsedBody = parsedOutput.body;
|
|
2798
|
+
const $metadata = deserializeMetadata(output);
|
|
2799
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2756
2800
|
response = new ComprehendServiceException_1.ComprehendServiceException({
|
|
2757
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2801
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2758
2802
|
$fault: "client",
|
|
2759
|
-
$metadata
|
|
2803
|
+
$metadata,
|
|
2760
2804
|
});
|
|
2761
2805
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2762
2806
|
}
|
|
@@ -2781,8 +2825,7 @@ const deserializeAws_json1_1ListPiiEntitiesDetectionJobsCommandError = async (ou
|
|
|
2781
2825
|
body: await parseBody(output.body, context),
|
|
2782
2826
|
};
|
|
2783
2827
|
let response;
|
|
2784
|
-
|
|
2785
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2828
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2786
2829
|
switch (errorCode) {
|
|
2787
2830
|
case "InternalServerException":
|
|
2788
2831
|
case "com.amazonaws.comprehend#InternalServerException":
|
|
@@ -2798,10 +2841,12 @@ const deserializeAws_json1_1ListPiiEntitiesDetectionJobsCommandError = async (ou
|
|
|
2798
2841
|
throw await deserializeAws_json1_1TooManyRequestsExceptionResponse(parsedOutput, context);
|
|
2799
2842
|
default:
|
|
2800
2843
|
const parsedBody = parsedOutput.body;
|
|
2844
|
+
const $metadata = deserializeMetadata(output);
|
|
2845
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2801
2846
|
response = new ComprehendServiceException_1.ComprehendServiceException({
|
|
2802
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2847
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2803
2848
|
$fault: "client",
|
|
2804
|
-
$metadata
|
|
2849
|
+
$metadata,
|
|
2805
2850
|
});
|
|
2806
2851
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2807
2852
|
}
|
|
@@ -2826,8 +2871,7 @@ const deserializeAws_json1_1ListSentimentDetectionJobsCommandError = async (outp
|
|
|
2826
2871
|
body: await parseBody(output.body, context),
|
|
2827
2872
|
};
|
|
2828
2873
|
let response;
|
|
2829
|
-
|
|
2830
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2874
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2831
2875
|
switch (errorCode) {
|
|
2832
2876
|
case "InternalServerException":
|
|
2833
2877
|
case "com.amazonaws.comprehend#InternalServerException":
|
|
@@ -2843,10 +2887,12 @@ const deserializeAws_json1_1ListSentimentDetectionJobsCommandError = async (outp
|
|
|
2843
2887
|
throw await deserializeAws_json1_1TooManyRequestsExceptionResponse(parsedOutput, context);
|
|
2844
2888
|
default:
|
|
2845
2889
|
const parsedBody = parsedOutput.body;
|
|
2890
|
+
const $metadata = deserializeMetadata(output);
|
|
2891
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2846
2892
|
response = new ComprehendServiceException_1.ComprehendServiceException({
|
|
2847
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2893
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2848
2894
|
$fault: "client",
|
|
2849
|
-
$metadata
|
|
2895
|
+
$metadata,
|
|
2850
2896
|
});
|
|
2851
2897
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2852
2898
|
}
|
|
@@ -2871,8 +2917,7 @@ const deserializeAws_json1_1ListTagsForResourceCommandError = async (output, con
|
|
|
2871
2917
|
body: await parseBody(output.body, context),
|
|
2872
2918
|
};
|
|
2873
2919
|
let response;
|
|
2874
|
-
|
|
2875
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2920
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2876
2921
|
switch (errorCode) {
|
|
2877
2922
|
case "InternalServerException":
|
|
2878
2923
|
case "com.amazonaws.comprehend#InternalServerException":
|
|
@@ -2885,10 +2930,12 @@ const deserializeAws_json1_1ListTagsForResourceCommandError = async (output, con
|
|
|
2885
2930
|
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
2886
2931
|
default:
|
|
2887
2932
|
const parsedBody = parsedOutput.body;
|
|
2933
|
+
const $metadata = deserializeMetadata(output);
|
|
2934
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2888
2935
|
response = new ComprehendServiceException_1.ComprehendServiceException({
|
|
2889
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2936
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2890
2937
|
$fault: "client",
|
|
2891
|
-
$metadata
|
|
2938
|
+
$metadata,
|
|
2892
2939
|
});
|
|
2893
2940
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2894
2941
|
}
|
|
@@ -2913,8 +2960,7 @@ const deserializeAws_json1_1ListTargetedSentimentDetectionJobsCommandError = asy
|
|
|
2913
2960
|
body: await parseBody(output.body, context),
|
|
2914
2961
|
};
|
|
2915
2962
|
let response;
|
|
2916
|
-
|
|
2917
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2963
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2918
2964
|
switch (errorCode) {
|
|
2919
2965
|
case "InternalServerException":
|
|
2920
2966
|
case "com.amazonaws.comprehend#InternalServerException":
|
|
@@ -2930,10 +2976,12 @@ const deserializeAws_json1_1ListTargetedSentimentDetectionJobsCommandError = asy
|
|
|
2930
2976
|
throw await deserializeAws_json1_1TooManyRequestsExceptionResponse(parsedOutput, context);
|
|
2931
2977
|
default:
|
|
2932
2978
|
const parsedBody = parsedOutput.body;
|
|
2979
|
+
const $metadata = deserializeMetadata(output);
|
|
2980
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2933
2981
|
response = new ComprehendServiceException_1.ComprehendServiceException({
|
|
2934
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2982
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2935
2983
|
$fault: "client",
|
|
2936
|
-
$metadata
|
|
2984
|
+
$metadata,
|
|
2937
2985
|
});
|
|
2938
2986
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2939
2987
|
}
|
|
@@ -2958,8 +3006,7 @@ const deserializeAws_json1_1ListTopicsDetectionJobsCommandError = async (output,
|
|
|
2958
3006
|
body: await parseBody(output.body, context),
|
|
2959
3007
|
};
|
|
2960
3008
|
let response;
|
|
2961
|
-
|
|
2962
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3009
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2963
3010
|
switch (errorCode) {
|
|
2964
3011
|
case "InternalServerException":
|
|
2965
3012
|
case "com.amazonaws.comprehend#InternalServerException":
|
|
@@ -2975,10 +3022,12 @@ const deserializeAws_json1_1ListTopicsDetectionJobsCommandError = async (output,
|
|
|
2975
3022
|
throw await deserializeAws_json1_1TooManyRequestsExceptionResponse(parsedOutput, context);
|
|
2976
3023
|
default:
|
|
2977
3024
|
const parsedBody = parsedOutput.body;
|
|
3025
|
+
const $metadata = deserializeMetadata(output);
|
|
3026
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2978
3027
|
response = new ComprehendServiceException_1.ComprehendServiceException({
|
|
2979
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
3028
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2980
3029
|
$fault: "client",
|
|
2981
|
-
$metadata
|
|
3030
|
+
$metadata,
|
|
2982
3031
|
});
|
|
2983
3032
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2984
3033
|
}
|
|
@@ -3003,8 +3052,7 @@ const deserializeAws_json1_1PutResourcePolicyCommandError = async (output, conte
|
|
|
3003
3052
|
body: await parseBody(output.body, context),
|
|
3004
3053
|
};
|
|
3005
3054
|
let response;
|
|
3006
|
-
|
|
3007
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3055
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3008
3056
|
switch (errorCode) {
|
|
3009
3057
|
case "InternalServerException":
|
|
3010
3058
|
case "com.amazonaws.comprehend#InternalServerException":
|
|
@@ -3017,10 +3065,12 @@ const deserializeAws_json1_1PutResourcePolicyCommandError = async (output, conte
|
|
|
3017
3065
|
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
3018
3066
|
default:
|
|
3019
3067
|
const parsedBody = parsedOutput.body;
|
|
3068
|
+
const $metadata = deserializeMetadata(output);
|
|
3069
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
3020
3070
|
response = new ComprehendServiceException_1.ComprehendServiceException({
|
|
3021
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
3071
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
3022
3072
|
$fault: "client",
|
|
3023
|
-
$metadata
|
|
3073
|
+
$metadata,
|
|
3024
3074
|
});
|
|
3025
3075
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
3026
3076
|
}
|
|
@@ -3045,8 +3095,7 @@ const deserializeAws_json1_1StartDocumentClassificationJobCommandError = async (
|
|
|
3045
3095
|
body: await parseBody(output.body, context),
|
|
3046
3096
|
};
|
|
3047
3097
|
let response;
|
|
3048
|
-
|
|
3049
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3098
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3050
3099
|
switch (errorCode) {
|
|
3051
3100
|
case "InternalServerException":
|
|
3052
3101
|
case "com.amazonaws.comprehend#InternalServerException":
|
|
@@ -3071,10 +3120,12 @@ const deserializeAws_json1_1StartDocumentClassificationJobCommandError = async (
|
|
|
3071
3120
|
throw await deserializeAws_json1_1TooManyTagsExceptionResponse(parsedOutput, context);
|
|
3072
3121
|
default:
|
|
3073
3122
|
const parsedBody = parsedOutput.body;
|
|
3123
|
+
const $metadata = deserializeMetadata(output);
|
|
3124
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
3074
3125
|
response = new ComprehendServiceException_1.ComprehendServiceException({
|
|
3075
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
3126
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
3076
3127
|
$fault: "client",
|
|
3077
|
-
$metadata
|
|
3128
|
+
$metadata,
|
|
3078
3129
|
});
|
|
3079
3130
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
3080
3131
|
}
|
|
@@ -3099,8 +3150,7 @@ const deserializeAws_json1_1StartDominantLanguageDetectionJobCommandError = asyn
|
|
|
3099
3150
|
body: await parseBody(output.body, context),
|
|
3100
3151
|
};
|
|
3101
3152
|
let response;
|
|
3102
|
-
|
|
3103
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3153
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3104
3154
|
switch (errorCode) {
|
|
3105
3155
|
case "InternalServerException":
|
|
3106
3156
|
case "com.amazonaws.comprehend#InternalServerException":
|
|
@@ -3119,10 +3169,12 @@ const deserializeAws_json1_1StartDominantLanguageDetectionJobCommandError = asyn
|
|
|
3119
3169
|
throw await deserializeAws_json1_1TooManyTagsExceptionResponse(parsedOutput, context);
|
|
3120
3170
|
default:
|
|
3121
3171
|
const parsedBody = parsedOutput.body;
|
|
3172
|
+
const $metadata = deserializeMetadata(output);
|
|
3173
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
3122
3174
|
response = new ComprehendServiceException_1.ComprehendServiceException({
|
|
3123
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
3175
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
3124
3176
|
$fault: "client",
|
|
3125
|
-
$metadata
|
|
3177
|
+
$metadata,
|
|
3126
3178
|
});
|
|
3127
3179
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
3128
3180
|
}
|
|
@@ -3147,8 +3199,7 @@ const deserializeAws_json1_1StartEntitiesDetectionJobCommandError = async (outpu
|
|
|
3147
3199
|
body: await parseBody(output.body, context),
|
|
3148
3200
|
};
|
|
3149
3201
|
let response;
|
|
3150
|
-
|
|
3151
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3202
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3152
3203
|
switch (errorCode) {
|
|
3153
3204
|
case "InternalServerException":
|
|
3154
3205
|
case "com.amazonaws.comprehend#InternalServerException":
|
|
@@ -3173,10 +3224,12 @@ const deserializeAws_json1_1StartEntitiesDetectionJobCommandError = async (outpu
|
|
|
3173
3224
|
throw await deserializeAws_json1_1TooManyTagsExceptionResponse(parsedOutput, context);
|
|
3174
3225
|
default:
|
|
3175
3226
|
const parsedBody = parsedOutput.body;
|
|
3227
|
+
const $metadata = deserializeMetadata(output);
|
|
3228
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
3176
3229
|
response = new ComprehendServiceException_1.ComprehendServiceException({
|
|
3177
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
3230
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
3178
3231
|
$fault: "client",
|
|
3179
|
-
$metadata
|
|
3232
|
+
$metadata,
|
|
3180
3233
|
});
|
|
3181
3234
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
3182
3235
|
}
|
|
@@ -3201,8 +3254,7 @@ const deserializeAws_json1_1StartEventsDetectionJobCommandError = async (output,
|
|
|
3201
3254
|
body: await parseBody(output.body, context),
|
|
3202
3255
|
};
|
|
3203
3256
|
let response;
|
|
3204
|
-
|
|
3205
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3257
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3206
3258
|
switch (errorCode) {
|
|
3207
3259
|
case "InternalServerException":
|
|
3208
3260
|
case "com.amazonaws.comprehend#InternalServerException":
|
|
@@ -3221,10 +3273,12 @@ const deserializeAws_json1_1StartEventsDetectionJobCommandError = async (output,
|
|
|
3221
3273
|
throw await deserializeAws_json1_1TooManyTagsExceptionResponse(parsedOutput, context);
|
|
3222
3274
|
default:
|
|
3223
3275
|
const parsedBody = parsedOutput.body;
|
|
3276
|
+
const $metadata = deserializeMetadata(output);
|
|
3277
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
3224
3278
|
response = new ComprehendServiceException_1.ComprehendServiceException({
|
|
3225
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
3279
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
3226
3280
|
$fault: "client",
|
|
3227
|
-
$metadata
|
|
3281
|
+
$metadata,
|
|
3228
3282
|
});
|
|
3229
3283
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
3230
3284
|
}
|
|
@@ -3249,8 +3303,7 @@ const deserializeAws_json1_1StartKeyPhrasesDetectionJobCommandError = async (out
|
|
|
3249
3303
|
body: await parseBody(output.body, context),
|
|
3250
3304
|
};
|
|
3251
3305
|
let response;
|
|
3252
|
-
|
|
3253
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3306
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3254
3307
|
switch (errorCode) {
|
|
3255
3308
|
case "InternalServerException":
|
|
3256
3309
|
case "com.amazonaws.comprehend#InternalServerException":
|
|
@@ -3269,10 +3322,12 @@ const deserializeAws_json1_1StartKeyPhrasesDetectionJobCommandError = async (out
|
|
|
3269
3322
|
throw await deserializeAws_json1_1TooManyTagsExceptionResponse(parsedOutput, context);
|
|
3270
3323
|
default:
|
|
3271
3324
|
const parsedBody = parsedOutput.body;
|
|
3325
|
+
const $metadata = deserializeMetadata(output);
|
|
3326
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
3272
3327
|
response = new ComprehendServiceException_1.ComprehendServiceException({
|
|
3273
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
3328
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
3274
3329
|
$fault: "client",
|
|
3275
|
-
$metadata
|
|
3330
|
+
$metadata,
|
|
3276
3331
|
});
|
|
3277
3332
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
3278
3333
|
}
|
|
@@ -3297,8 +3352,7 @@ const deserializeAws_json1_1StartPiiEntitiesDetectionJobCommandError = async (ou
|
|
|
3297
3352
|
body: await parseBody(output.body, context),
|
|
3298
3353
|
};
|
|
3299
3354
|
let response;
|
|
3300
|
-
|
|
3301
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3355
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3302
3356
|
switch (errorCode) {
|
|
3303
3357
|
case "InternalServerException":
|
|
3304
3358
|
case "com.amazonaws.comprehend#InternalServerException":
|
|
@@ -3317,10 +3371,12 @@ const deserializeAws_json1_1StartPiiEntitiesDetectionJobCommandError = async (ou
|
|
|
3317
3371
|
throw await deserializeAws_json1_1TooManyTagsExceptionResponse(parsedOutput, context);
|
|
3318
3372
|
default:
|
|
3319
3373
|
const parsedBody = parsedOutput.body;
|
|
3374
|
+
const $metadata = deserializeMetadata(output);
|
|
3375
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
3320
3376
|
response = new ComprehendServiceException_1.ComprehendServiceException({
|
|
3321
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
3377
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
3322
3378
|
$fault: "client",
|
|
3323
|
-
$metadata
|
|
3379
|
+
$metadata,
|
|
3324
3380
|
});
|
|
3325
3381
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
3326
3382
|
}
|
|
@@ -3345,8 +3401,7 @@ const deserializeAws_json1_1StartSentimentDetectionJobCommandError = async (outp
|
|
|
3345
3401
|
body: await parseBody(output.body, context),
|
|
3346
3402
|
};
|
|
3347
3403
|
let response;
|
|
3348
|
-
|
|
3349
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3404
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3350
3405
|
switch (errorCode) {
|
|
3351
3406
|
case "InternalServerException":
|
|
3352
3407
|
case "com.amazonaws.comprehend#InternalServerException":
|
|
@@ -3365,10 +3420,12 @@ const deserializeAws_json1_1StartSentimentDetectionJobCommandError = async (outp
|
|
|
3365
3420
|
throw await deserializeAws_json1_1TooManyTagsExceptionResponse(parsedOutput, context);
|
|
3366
3421
|
default:
|
|
3367
3422
|
const parsedBody = parsedOutput.body;
|
|
3423
|
+
const $metadata = deserializeMetadata(output);
|
|
3424
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
3368
3425
|
response = new ComprehendServiceException_1.ComprehendServiceException({
|
|
3369
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
3426
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
3370
3427
|
$fault: "client",
|
|
3371
|
-
$metadata
|
|
3428
|
+
$metadata,
|
|
3372
3429
|
});
|
|
3373
3430
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
3374
3431
|
}
|
|
@@ -3393,8 +3450,7 @@ const deserializeAws_json1_1StartTargetedSentimentDetectionJobCommandError = asy
|
|
|
3393
3450
|
body: await parseBody(output.body, context),
|
|
3394
3451
|
};
|
|
3395
3452
|
let response;
|
|
3396
|
-
|
|
3397
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3453
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3398
3454
|
switch (errorCode) {
|
|
3399
3455
|
case "InternalServerException":
|
|
3400
3456
|
case "com.amazonaws.comprehend#InternalServerException":
|
|
@@ -3413,10 +3469,12 @@ const deserializeAws_json1_1StartTargetedSentimentDetectionJobCommandError = asy
|
|
|
3413
3469
|
throw await deserializeAws_json1_1TooManyTagsExceptionResponse(parsedOutput, context);
|
|
3414
3470
|
default:
|
|
3415
3471
|
const parsedBody = parsedOutput.body;
|
|
3472
|
+
const $metadata = deserializeMetadata(output);
|
|
3473
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
3416
3474
|
response = new ComprehendServiceException_1.ComprehendServiceException({
|
|
3417
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
3475
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
3418
3476
|
$fault: "client",
|
|
3419
|
-
$metadata
|
|
3477
|
+
$metadata,
|
|
3420
3478
|
});
|
|
3421
3479
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
3422
3480
|
}
|
|
@@ -3441,8 +3499,7 @@ const deserializeAws_json1_1StartTopicsDetectionJobCommandError = async (output,
|
|
|
3441
3499
|
body: await parseBody(output.body, context),
|
|
3442
3500
|
};
|
|
3443
3501
|
let response;
|
|
3444
|
-
|
|
3445
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3502
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3446
3503
|
switch (errorCode) {
|
|
3447
3504
|
case "InternalServerException":
|
|
3448
3505
|
case "com.amazonaws.comprehend#InternalServerException":
|
|
@@ -3461,10 +3518,12 @@ const deserializeAws_json1_1StartTopicsDetectionJobCommandError = async (output,
|
|
|
3461
3518
|
throw await deserializeAws_json1_1TooManyTagsExceptionResponse(parsedOutput, context);
|
|
3462
3519
|
default:
|
|
3463
3520
|
const parsedBody = parsedOutput.body;
|
|
3521
|
+
const $metadata = deserializeMetadata(output);
|
|
3522
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
3464
3523
|
response = new ComprehendServiceException_1.ComprehendServiceException({
|
|
3465
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
3524
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
3466
3525
|
$fault: "client",
|
|
3467
|
-
$metadata
|
|
3526
|
+
$metadata,
|
|
3468
3527
|
});
|
|
3469
3528
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
3470
3529
|
}
|
|
@@ -3489,8 +3548,7 @@ const deserializeAws_json1_1StopDominantLanguageDetectionJobCommandError = async
|
|
|
3489
3548
|
body: await parseBody(output.body, context),
|
|
3490
3549
|
};
|
|
3491
3550
|
let response;
|
|
3492
|
-
|
|
3493
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3551
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3494
3552
|
switch (errorCode) {
|
|
3495
3553
|
case "InternalServerException":
|
|
3496
3554
|
case "com.amazonaws.comprehend#InternalServerException":
|
|
@@ -3503,10 +3561,12 @@ const deserializeAws_json1_1StopDominantLanguageDetectionJobCommandError = async
|
|
|
3503
3561
|
throw await deserializeAws_json1_1JobNotFoundExceptionResponse(parsedOutput, context);
|
|
3504
3562
|
default:
|
|
3505
3563
|
const parsedBody = parsedOutput.body;
|
|
3564
|
+
const $metadata = deserializeMetadata(output);
|
|
3565
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
3506
3566
|
response = new ComprehendServiceException_1.ComprehendServiceException({
|
|
3507
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
3567
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
3508
3568
|
$fault: "client",
|
|
3509
|
-
$metadata
|
|
3569
|
+
$metadata,
|
|
3510
3570
|
});
|
|
3511
3571
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
3512
3572
|
}
|
|
@@ -3531,8 +3591,7 @@ const deserializeAws_json1_1StopEntitiesDetectionJobCommandError = async (output
|
|
|
3531
3591
|
body: await parseBody(output.body, context),
|
|
3532
3592
|
};
|
|
3533
3593
|
let response;
|
|
3534
|
-
|
|
3535
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3594
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3536
3595
|
switch (errorCode) {
|
|
3537
3596
|
case "InternalServerException":
|
|
3538
3597
|
case "com.amazonaws.comprehend#InternalServerException":
|
|
@@ -3545,10 +3604,12 @@ const deserializeAws_json1_1StopEntitiesDetectionJobCommandError = async (output
|
|
|
3545
3604
|
throw await deserializeAws_json1_1JobNotFoundExceptionResponse(parsedOutput, context);
|
|
3546
3605
|
default:
|
|
3547
3606
|
const parsedBody = parsedOutput.body;
|
|
3607
|
+
const $metadata = deserializeMetadata(output);
|
|
3608
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
3548
3609
|
response = new ComprehendServiceException_1.ComprehendServiceException({
|
|
3549
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
3610
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
3550
3611
|
$fault: "client",
|
|
3551
|
-
$metadata
|
|
3612
|
+
$metadata,
|
|
3552
3613
|
});
|
|
3553
3614
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
3554
3615
|
}
|
|
@@ -3573,8 +3634,7 @@ const deserializeAws_json1_1StopEventsDetectionJobCommandError = async (output,
|
|
|
3573
3634
|
body: await parseBody(output.body, context),
|
|
3574
3635
|
};
|
|
3575
3636
|
let response;
|
|
3576
|
-
|
|
3577
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3637
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3578
3638
|
switch (errorCode) {
|
|
3579
3639
|
case "InternalServerException":
|
|
3580
3640
|
case "com.amazonaws.comprehend#InternalServerException":
|
|
@@ -3587,10 +3647,12 @@ const deserializeAws_json1_1StopEventsDetectionJobCommandError = async (output,
|
|
|
3587
3647
|
throw await deserializeAws_json1_1JobNotFoundExceptionResponse(parsedOutput, context);
|
|
3588
3648
|
default:
|
|
3589
3649
|
const parsedBody = parsedOutput.body;
|
|
3650
|
+
const $metadata = deserializeMetadata(output);
|
|
3651
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
3590
3652
|
response = new ComprehendServiceException_1.ComprehendServiceException({
|
|
3591
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
3653
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
3592
3654
|
$fault: "client",
|
|
3593
|
-
$metadata
|
|
3655
|
+
$metadata,
|
|
3594
3656
|
});
|
|
3595
3657
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
3596
3658
|
}
|
|
@@ -3615,8 +3677,7 @@ const deserializeAws_json1_1StopKeyPhrasesDetectionJobCommandError = async (outp
|
|
|
3615
3677
|
body: await parseBody(output.body, context),
|
|
3616
3678
|
};
|
|
3617
3679
|
let response;
|
|
3618
|
-
|
|
3619
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3680
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3620
3681
|
switch (errorCode) {
|
|
3621
3682
|
case "InternalServerException":
|
|
3622
3683
|
case "com.amazonaws.comprehend#InternalServerException":
|
|
@@ -3629,10 +3690,12 @@ const deserializeAws_json1_1StopKeyPhrasesDetectionJobCommandError = async (outp
|
|
|
3629
3690
|
throw await deserializeAws_json1_1JobNotFoundExceptionResponse(parsedOutput, context);
|
|
3630
3691
|
default:
|
|
3631
3692
|
const parsedBody = parsedOutput.body;
|
|
3693
|
+
const $metadata = deserializeMetadata(output);
|
|
3694
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
3632
3695
|
response = new ComprehendServiceException_1.ComprehendServiceException({
|
|
3633
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
3696
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
3634
3697
|
$fault: "client",
|
|
3635
|
-
$metadata
|
|
3698
|
+
$metadata,
|
|
3636
3699
|
});
|
|
3637
3700
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
3638
3701
|
}
|
|
@@ -3657,8 +3720,7 @@ const deserializeAws_json1_1StopPiiEntitiesDetectionJobCommandError = async (out
|
|
|
3657
3720
|
body: await parseBody(output.body, context),
|
|
3658
3721
|
};
|
|
3659
3722
|
let response;
|
|
3660
|
-
|
|
3661
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3723
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3662
3724
|
switch (errorCode) {
|
|
3663
3725
|
case "InternalServerException":
|
|
3664
3726
|
case "com.amazonaws.comprehend#InternalServerException":
|
|
@@ -3671,10 +3733,12 @@ const deserializeAws_json1_1StopPiiEntitiesDetectionJobCommandError = async (out
|
|
|
3671
3733
|
throw await deserializeAws_json1_1JobNotFoundExceptionResponse(parsedOutput, context);
|
|
3672
3734
|
default:
|
|
3673
3735
|
const parsedBody = parsedOutput.body;
|
|
3736
|
+
const $metadata = deserializeMetadata(output);
|
|
3737
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
3674
3738
|
response = new ComprehendServiceException_1.ComprehendServiceException({
|
|
3675
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
3739
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
3676
3740
|
$fault: "client",
|
|
3677
|
-
$metadata
|
|
3741
|
+
$metadata,
|
|
3678
3742
|
});
|
|
3679
3743
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
3680
3744
|
}
|
|
@@ -3699,8 +3763,7 @@ const deserializeAws_json1_1StopSentimentDetectionJobCommandError = async (outpu
|
|
|
3699
3763
|
body: await parseBody(output.body, context),
|
|
3700
3764
|
};
|
|
3701
3765
|
let response;
|
|
3702
|
-
|
|
3703
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3766
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3704
3767
|
switch (errorCode) {
|
|
3705
3768
|
case "InternalServerException":
|
|
3706
3769
|
case "com.amazonaws.comprehend#InternalServerException":
|
|
@@ -3713,10 +3776,12 @@ const deserializeAws_json1_1StopSentimentDetectionJobCommandError = async (outpu
|
|
|
3713
3776
|
throw await deserializeAws_json1_1JobNotFoundExceptionResponse(parsedOutput, context);
|
|
3714
3777
|
default:
|
|
3715
3778
|
const parsedBody = parsedOutput.body;
|
|
3779
|
+
const $metadata = deserializeMetadata(output);
|
|
3780
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
3716
3781
|
response = new ComprehendServiceException_1.ComprehendServiceException({
|
|
3717
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
3782
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
3718
3783
|
$fault: "client",
|
|
3719
|
-
$metadata
|
|
3784
|
+
$metadata,
|
|
3720
3785
|
});
|
|
3721
3786
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
3722
3787
|
}
|
|
@@ -3741,8 +3806,7 @@ const deserializeAws_json1_1StopTargetedSentimentDetectionJobCommandError = asyn
|
|
|
3741
3806
|
body: await parseBody(output.body, context),
|
|
3742
3807
|
};
|
|
3743
3808
|
let response;
|
|
3744
|
-
|
|
3745
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3809
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3746
3810
|
switch (errorCode) {
|
|
3747
3811
|
case "InternalServerException":
|
|
3748
3812
|
case "com.amazonaws.comprehend#InternalServerException":
|
|
@@ -3755,10 +3819,12 @@ const deserializeAws_json1_1StopTargetedSentimentDetectionJobCommandError = asyn
|
|
|
3755
3819
|
throw await deserializeAws_json1_1JobNotFoundExceptionResponse(parsedOutput, context);
|
|
3756
3820
|
default:
|
|
3757
3821
|
const parsedBody = parsedOutput.body;
|
|
3822
|
+
const $metadata = deserializeMetadata(output);
|
|
3823
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
3758
3824
|
response = new ComprehendServiceException_1.ComprehendServiceException({
|
|
3759
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
3825
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
3760
3826
|
$fault: "client",
|
|
3761
|
-
$metadata
|
|
3827
|
+
$metadata,
|
|
3762
3828
|
});
|
|
3763
3829
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
3764
3830
|
}
|
|
@@ -3783,8 +3849,7 @@ const deserializeAws_json1_1StopTrainingDocumentClassifierCommandError = async (
|
|
|
3783
3849
|
body: await parseBody(output.body, context),
|
|
3784
3850
|
};
|
|
3785
3851
|
let response;
|
|
3786
|
-
|
|
3787
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3852
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3788
3853
|
switch (errorCode) {
|
|
3789
3854
|
case "InternalServerException":
|
|
3790
3855
|
case "com.amazonaws.comprehend#InternalServerException":
|
|
@@ -3800,10 +3865,12 @@ const deserializeAws_json1_1StopTrainingDocumentClassifierCommandError = async (
|
|
|
3800
3865
|
throw await deserializeAws_json1_1TooManyRequestsExceptionResponse(parsedOutput, context);
|
|
3801
3866
|
default:
|
|
3802
3867
|
const parsedBody = parsedOutput.body;
|
|
3868
|
+
const $metadata = deserializeMetadata(output);
|
|
3869
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
3803
3870
|
response = new ComprehendServiceException_1.ComprehendServiceException({
|
|
3804
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
3871
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
3805
3872
|
$fault: "client",
|
|
3806
|
-
$metadata
|
|
3873
|
+
$metadata,
|
|
3807
3874
|
});
|
|
3808
3875
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
3809
3876
|
}
|
|
@@ -3828,8 +3895,7 @@ const deserializeAws_json1_1StopTrainingEntityRecognizerCommandError = async (ou
|
|
|
3828
3895
|
body: await parseBody(output.body, context),
|
|
3829
3896
|
};
|
|
3830
3897
|
let response;
|
|
3831
|
-
|
|
3832
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3898
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3833
3899
|
switch (errorCode) {
|
|
3834
3900
|
case "InternalServerException":
|
|
3835
3901
|
case "com.amazonaws.comprehend#InternalServerException":
|
|
@@ -3845,10 +3911,12 @@ const deserializeAws_json1_1StopTrainingEntityRecognizerCommandError = async (ou
|
|
|
3845
3911
|
throw await deserializeAws_json1_1TooManyRequestsExceptionResponse(parsedOutput, context);
|
|
3846
3912
|
default:
|
|
3847
3913
|
const parsedBody = parsedOutput.body;
|
|
3914
|
+
const $metadata = deserializeMetadata(output);
|
|
3915
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
3848
3916
|
response = new ComprehendServiceException_1.ComprehendServiceException({
|
|
3849
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
3917
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
3850
3918
|
$fault: "client",
|
|
3851
|
-
$metadata
|
|
3919
|
+
$metadata,
|
|
3852
3920
|
});
|
|
3853
3921
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
3854
3922
|
}
|
|
@@ -3873,8 +3941,7 @@ const deserializeAws_json1_1TagResourceCommandError = async (output, context) =>
|
|
|
3873
3941
|
body: await parseBody(output.body, context),
|
|
3874
3942
|
};
|
|
3875
3943
|
let response;
|
|
3876
|
-
|
|
3877
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3944
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3878
3945
|
switch (errorCode) {
|
|
3879
3946
|
case "ConcurrentModificationException":
|
|
3880
3947
|
case "com.amazonaws.comprehend#ConcurrentModificationException":
|
|
@@ -3893,10 +3960,12 @@ const deserializeAws_json1_1TagResourceCommandError = async (output, context) =>
|
|
|
3893
3960
|
throw await deserializeAws_json1_1TooManyTagsExceptionResponse(parsedOutput, context);
|
|
3894
3961
|
default:
|
|
3895
3962
|
const parsedBody = parsedOutput.body;
|
|
3963
|
+
const $metadata = deserializeMetadata(output);
|
|
3964
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
3896
3965
|
response = new ComprehendServiceException_1.ComprehendServiceException({
|
|
3897
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
3966
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
3898
3967
|
$fault: "client",
|
|
3899
|
-
$metadata
|
|
3968
|
+
$metadata,
|
|
3900
3969
|
});
|
|
3901
3970
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
3902
3971
|
}
|
|
@@ -3921,8 +3990,7 @@ const deserializeAws_json1_1UntagResourceCommandError = async (output, context)
|
|
|
3921
3990
|
body: await parseBody(output.body, context),
|
|
3922
3991
|
};
|
|
3923
3992
|
let response;
|
|
3924
|
-
|
|
3925
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3993
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3926
3994
|
switch (errorCode) {
|
|
3927
3995
|
case "ConcurrentModificationException":
|
|
3928
3996
|
case "com.amazonaws.comprehend#ConcurrentModificationException":
|
|
@@ -3941,10 +4009,12 @@ const deserializeAws_json1_1UntagResourceCommandError = async (output, context)
|
|
|
3941
4009
|
throw await deserializeAws_json1_1TooManyTagKeysExceptionResponse(parsedOutput, context);
|
|
3942
4010
|
default:
|
|
3943
4011
|
const parsedBody = parsedOutput.body;
|
|
4012
|
+
const $metadata = deserializeMetadata(output);
|
|
4013
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
3944
4014
|
response = new ComprehendServiceException_1.ComprehendServiceException({
|
|
3945
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
4015
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
3946
4016
|
$fault: "client",
|
|
3947
|
-
$metadata
|
|
4017
|
+
$metadata,
|
|
3948
4018
|
});
|
|
3949
4019
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
3950
4020
|
}
|
|
@@ -3969,8 +4039,7 @@ const deserializeAws_json1_1UpdateEndpointCommandError = async (output, context)
|
|
|
3969
4039
|
body: await parseBody(output.body, context),
|
|
3970
4040
|
};
|
|
3971
4041
|
let response;
|
|
3972
|
-
|
|
3973
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4042
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3974
4043
|
switch (errorCode) {
|
|
3975
4044
|
case "InternalServerException":
|
|
3976
4045
|
case "com.amazonaws.comprehend#InternalServerException":
|
|
@@ -3995,10 +4064,12 @@ const deserializeAws_json1_1UpdateEndpointCommandError = async (output, context)
|
|
|
3995
4064
|
throw await deserializeAws_json1_1TooManyRequestsExceptionResponse(parsedOutput, context);
|
|
3996
4065
|
default:
|
|
3997
4066
|
const parsedBody = parsedOutput.body;
|
|
4067
|
+
const $metadata = deserializeMetadata(output);
|
|
4068
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
3998
4069
|
response = new ComprehendServiceException_1.ComprehendServiceException({
|
|
3999
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
4070
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
4000
4071
|
$fault: "client",
|
|
4001
|
-
$metadata
|
|
4072
|
+
$metadata,
|
|
4002
4073
|
});
|
|
4003
4074
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
4004
4075
|
}
|
|
@@ -4159,127 +4230,106 @@ const serializeAws_json1_1AttributeNamesList = (input, context) => {
|
|
|
4159
4230
|
};
|
|
4160
4231
|
const serializeAws_json1_1AugmentedManifestsListItem = (input, context) => {
|
|
4161
4232
|
return {
|
|
4162
|
-
...(input.AnnotationDataS3Uri
|
|
4163
|
-
|
|
4164
|
-
...(input.AttributeNames !== undefined &&
|
|
4165
|
-
input.AttributeNames !== null && {
|
|
4233
|
+
...(input.AnnotationDataS3Uri != null && { AnnotationDataS3Uri: input.AnnotationDataS3Uri }),
|
|
4234
|
+
...(input.AttributeNames != null && {
|
|
4166
4235
|
AttributeNames: serializeAws_json1_1AttributeNamesList(input.AttributeNames, context),
|
|
4167
4236
|
}),
|
|
4168
|
-
...(input.DocumentType
|
|
4169
|
-
...(input.S3Uri
|
|
4170
|
-
...(input.SourceDocumentsS3Uri
|
|
4171
|
-
|
|
4172
|
-
...(input.Split !== undefined && input.Split !== null && { Split: input.Split }),
|
|
4237
|
+
...(input.DocumentType != null && { DocumentType: input.DocumentType }),
|
|
4238
|
+
...(input.S3Uri != null && { S3Uri: input.S3Uri }),
|
|
4239
|
+
...(input.SourceDocumentsS3Uri != null && { SourceDocumentsS3Uri: input.SourceDocumentsS3Uri }),
|
|
4240
|
+
...(input.Split != null && { Split: input.Split }),
|
|
4173
4241
|
};
|
|
4174
4242
|
};
|
|
4175
4243
|
const serializeAws_json1_1BatchDetectDominantLanguageRequest = (input, context) => {
|
|
4176
4244
|
return {
|
|
4177
|
-
...(input.TextList
|
|
4178
|
-
input.TextList !== null && { TextList: serializeAws_json1_1CustomerInputStringList(input.TextList, context) }),
|
|
4245
|
+
...(input.TextList != null && { TextList: serializeAws_json1_1CustomerInputStringList(input.TextList, context) }),
|
|
4179
4246
|
};
|
|
4180
4247
|
};
|
|
4181
4248
|
const serializeAws_json1_1BatchDetectEntitiesRequest = (input, context) => {
|
|
4182
4249
|
return {
|
|
4183
|
-
...(input.LanguageCode
|
|
4184
|
-
...(input.TextList
|
|
4185
|
-
input.TextList !== null && { TextList: serializeAws_json1_1CustomerInputStringList(input.TextList, context) }),
|
|
4250
|
+
...(input.LanguageCode != null && { LanguageCode: input.LanguageCode }),
|
|
4251
|
+
...(input.TextList != null && { TextList: serializeAws_json1_1CustomerInputStringList(input.TextList, context) }),
|
|
4186
4252
|
};
|
|
4187
4253
|
};
|
|
4188
4254
|
const serializeAws_json1_1BatchDetectKeyPhrasesRequest = (input, context) => {
|
|
4189
4255
|
return {
|
|
4190
|
-
...(input.LanguageCode
|
|
4191
|
-
...(input.TextList
|
|
4192
|
-
input.TextList !== null && { TextList: serializeAws_json1_1CustomerInputStringList(input.TextList, context) }),
|
|
4256
|
+
...(input.LanguageCode != null && { LanguageCode: input.LanguageCode }),
|
|
4257
|
+
...(input.TextList != null && { TextList: serializeAws_json1_1CustomerInputStringList(input.TextList, context) }),
|
|
4193
4258
|
};
|
|
4194
4259
|
};
|
|
4195
4260
|
const serializeAws_json1_1BatchDetectSentimentRequest = (input, context) => {
|
|
4196
4261
|
return {
|
|
4197
|
-
...(input.LanguageCode
|
|
4198
|
-
...(input.TextList
|
|
4199
|
-
input.TextList !== null && { TextList: serializeAws_json1_1CustomerInputStringList(input.TextList, context) }),
|
|
4262
|
+
...(input.LanguageCode != null && { LanguageCode: input.LanguageCode }),
|
|
4263
|
+
...(input.TextList != null && { TextList: serializeAws_json1_1CustomerInputStringList(input.TextList, context) }),
|
|
4200
4264
|
};
|
|
4201
4265
|
};
|
|
4202
4266
|
const serializeAws_json1_1BatchDetectSyntaxRequest = (input, context) => {
|
|
4203
4267
|
return {
|
|
4204
|
-
...(input.LanguageCode
|
|
4205
|
-
...(input.TextList
|
|
4206
|
-
input.TextList !== null && { TextList: serializeAws_json1_1CustomerInputStringList(input.TextList, context) }),
|
|
4268
|
+
...(input.LanguageCode != null && { LanguageCode: input.LanguageCode }),
|
|
4269
|
+
...(input.TextList != null && { TextList: serializeAws_json1_1CustomerInputStringList(input.TextList, context) }),
|
|
4207
4270
|
};
|
|
4208
4271
|
};
|
|
4209
4272
|
const serializeAws_json1_1ClassifyDocumentRequest = (input, context) => {
|
|
4210
4273
|
return {
|
|
4211
|
-
...(input.EndpointArn
|
|
4212
|
-
...(input.Text
|
|
4274
|
+
...(input.EndpointArn != null && { EndpointArn: input.EndpointArn }),
|
|
4275
|
+
...(input.Text != null && { Text: input.Text }),
|
|
4213
4276
|
};
|
|
4214
4277
|
};
|
|
4215
4278
|
const serializeAws_json1_1ContainsPiiEntitiesRequest = (input, context) => {
|
|
4216
4279
|
return {
|
|
4217
|
-
...(input.LanguageCode
|
|
4218
|
-
...(input.Text
|
|
4280
|
+
...(input.LanguageCode != null && { LanguageCode: input.LanguageCode }),
|
|
4281
|
+
...(input.Text != null && { Text: input.Text }),
|
|
4219
4282
|
};
|
|
4220
4283
|
};
|
|
4221
4284
|
const serializeAws_json1_1CreateDocumentClassifierRequest = (input, context) => {
|
|
4222
4285
|
var _a;
|
|
4223
4286
|
return {
|
|
4224
4287
|
ClientRequestToken: (_a = input.ClientRequestToken) !== null && _a !== void 0 ? _a : (0, uuid_1.v4)(),
|
|
4225
|
-
...(input.DataAccessRoleArn
|
|
4226
|
-
|
|
4227
|
-
...(input.
|
|
4228
|
-
input.DocumentClassifierName !== null && { DocumentClassifierName: input.DocumentClassifierName }),
|
|
4229
|
-
...(input.InputDataConfig !== undefined &&
|
|
4230
|
-
input.InputDataConfig !== null && {
|
|
4288
|
+
...(input.DataAccessRoleArn != null && { DataAccessRoleArn: input.DataAccessRoleArn }),
|
|
4289
|
+
...(input.DocumentClassifierName != null && { DocumentClassifierName: input.DocumentClassifierName }),
|
|
4290
|
+
...(input.InputDataConfig != null && {
|
|
4231
4291
|
InputDataConfig: serializeAws_json1_1DocumentClassifierInputDataConfig(input.InputDataConfig, context),
|
|
4232
4292
|
}),
|
|
4233
|
-
...(input.LanguageCode
|
|
4234
|
-
...(input.Mode
|
|
4235
|
-
...(input.ModelKmsKeyId
|
|
4236
|
-
...(input.ModelPolicy
|
|
4237
|
-
...(input.OutputDataConfig
|
|
4238
|
-
input.OutputDataConfig !== null && {
|
|
4293
|
+
...(input.LanguageCode != null && { LanguageCode: input.LanguageCode }),
|
|
4294
|
+
...(input.Mode != null && { Mode: input.Mode }),
|
|
4295
|
+
...(input.ModelKmsKeyId != null && { ModelKmsKeyId: input.ModelKmsKeyId }),
|
|
4296
|
+
...(input.ModelPolicy != null && { ModelPolicy: input.ModelPolicy }),
|
|
4297
|
+
...(input.OutputDataConfig != null && {
|
|
4239
4298
|
OutputDataConfig: serializeAws_json1_1DocumentClassifierOutputDataConfig(input.OutputDataConfig, context),
|
|
4240
4299
|
}),
|
|
4241
|
-
...(input.Tags
|
|
4242
|
-
...(input.VersionName
|
|
4243
|
-
...(input.VolumeKmsKeyId
|
|
4244
|
-
|
|
4245
|
-
...(input.VpcConfig !== undefined &&
|
|
4246
|
-
input.VpcConfig !== null && { VpcConfig: serializeAws_json1_1VpcConfig(input.VpcConfig, context) }),
|
|
4300
|
+
...(input.Tags != null && { Tags: serializeAws_json1_1TagList(input.Tags, context) }),
|
|
4301
|
+
...(input.VersionName != null && { VersionName: input.VersionName }),
|
|
4302
|
+
...(input.VolumeKmsKeyId != null && { VolumeKmsKeyId: input.VolumeKmsKeyId }),
|
|
4303
|
+
...(input.VpcConfig != null && { VpcConfig: serializeAws_json1_1VpcConfig(input.VpcConfig, context) }),
|
|
4247
4304
|
};
|
|
4248
4305
|
};
|
|
4249
4306
|
const serializeAws_json1_1CreateEndpointRequest = (input, context) => {
|
|
4250
4307
|
var _a;
|
|
4251
4308
|
return {
|
|
4252
4309
|
ClientRequestToken: (_a = input.ClientRequestToken) !== null && _a !== void 0 ? _a : (0, uuid_1.v4)(),
|
|
4253
|
-
...(input.DataAccessRoleArn
|
|
4254
|
-
|
|
4255
|
-
...(input.
|
|
4256
|
-
|
|
4257
|
-
...(input.
|
|
4258
|
-
...(input.ModelArn !== undefined && input.ModelArn !== null && { ModelArn: input.ModelArn }),
|
|
4259
|
-
...(input.Tags !== undefined && input.Tags !== null && { Tags: serializeAws_json1_1TagList(input.Tags, context) }),
|
|
4310
|
+
...(input.DataAccessRoleArn != null && { DataAccessRoleArn: input.DataAccessRoleArn }),
|
|
4311
|
+
...(input.DesiredInferenceUnits != null && { DesiredInferenceUnits: input.DesiredInferenceUnits }),
|
|
4312
|
+
...(input.EndpointName != null && { EndpointName: input.EndpointName }),
|
|
4313
|
+
...(input.ModelArn != null && { ModelArn: input.ModelArn }),
|
|
4314
|
+
...(input.Tags != null && { Tags: serializeAws_json1_1TagList(input.Tags, context) }),
|
|
4260
4315
|
};
|
|
4261
4316
|
};
|
|
4262
4317
|
const serializeAws_json1_1CreateEntityRecognizerRequest = (input, context) => {
|
|
4263
4318
|
var _a;
|
|
4264
4319
|
return {
|
|
4265
4320
|
ClientRequestToken: (_a = input.ClientRequestToken) !== null && _a !== void 0 ? _a : (0, uuid_1.v4)(),
|
|
4266
|
-
...(input.DataAccessRoleArn
|
|
4267
|
-
|
|
4268
|
-
...(input.InputDataConfig !== undefined &&
|
|
4269
|
-
input.InputDataConfig !== null && {
|
|
4321
|
+
...(input.DataAccessRoleArn != null && { DataAccessRoleArn: input.DataAccessRoleArn }),
|
|
4322
|
+
...(input.InputDataConfig != null && {
|
|
4270
4323
|
InputDataConfig: serializeAws_json1_1EntityRecognizerInputDataConfig(input.InputDataConfig, context),
|
|
4271
4324
|
}),
|
|
4272
|
-
...(input.LanguageCode
|
|
4273
|
-
...(input.ModelKmsKeyId
|
|
4274
|
-
...(input.ModelPolicy
|
|
4275
|
-
...(input.RecognizerName
|
|
4276
|
-
|
|
4277
|
-
...(input.
|
|
4278
|
-
...(input.
|
|
4279
|
-
...(input.
|
|
4280
|
-
input.VolumeKmsKeyId !== null && { VolumeKmsKeyId: input.VolumeKmsKeyId }),
|
|
4281
|
-
...(input.VpcConfig !== undefined &&
|
|
4282
|
-
input.VpcConfig !== null && { VpcConfig: serializeAws_json1_1VpcConfig(input.VpcConfig, context) }),
|
|
4325
|
+
...(input.LanguageCode != null && { LanguageCode: input.LanguageCode }),
|
|
4326
|
+
...(input.ModelKmsKeyId != null && { ModelKmsKeyId: input.ModelKmsKeyId }),
|
|
4327
|
+
...(input.ModelPolicy != null && { ModelPolicy: input.ModelPolicy }),
|
|
4328
|
+
...(input.RecognizerName != null && { RecognizerName: input.RecognizerName }),
|
|
4329
|
+
...(input.Tags != null && { Tags: serializeAws_json1_1TagList(input.Tags, context) }),
|
|
4330
|
+
...(input.VersionName != null && { VersionName: input.VersionName }),
|
|
4331
|
+
...(input.VolumeKmsKeyId != null && { VolumeKmsKeyId: input.VolumeKmsKeyId }),
|
|
4332
|
+
...(input.VpcConfig != null && { VpcConfig: serializeAws_json1_1VpcConfig(input.VpcConfig, context) }),
|
|
4283
4333
|
};
|
|
4284
4334
|
};
|
|
4285
4335
|
const serializeAws_json1_1CustomerInputStringList = (input, context) => {
|
|
@@ -4294,139 +4344,132 @@ const serializeAws_json1_1CustomerInputStringList = (input, context) => {
|
|
|
4294
4344
|
};
|
|
4295
4345
|
const serializeAws_json1_1DeleteDocumentClassifierRequest = (input, context) => {
|
|
4296
4346
|
return {
|
|
4297
|
-
...(input.DocumentClassifierArn
|
|
4298
|
-
input.DocumentClassifierArn !== null && { DocumentClassifierArn: input.DocumentClassifierArn }),
|
|
4347
|
+
...(input.DocumentClassifierArn != null && { DocumentClassifierArn: input.DocumentClassifierArn }),
|
|
4299
4348
|
};
|
|
4300
4349
|
};
|
|
4301
4350
|
const serializeAws_json1_1DeleteEndpointRequest = (input, context) => {
|
|
4302
4351
|
return {
|
|
4303
|
-
...(input.EndpointArn
|
|
4352
|
+
...(input.EndpointArn != null && { EndpointArn: input.EndpointArn }),
|
|
4304
4353
|
};
|
|
4305
4354
|
};
|
|
4306
4355
|
const serializeAws_json1_1DeleteEntityRecognizerRequest = (input, context) => {
|
|
4307
4356
|
return {
|
|
4308
|
-
...(input.EntityRecognizerArn
|
|
4309
|
-
input.EntityRecognizerArn !== null && { EntityRecognizerArn: input.EntityRecognizerArn }),
|
|
4357
|
+
...(input.EntityRecognizerArn != null && { EntityRecognizerArn: input.EntityRecognizerArn }),
|
|
4310
4358
|
};
|
|
4311
4359
|
};
|
|
4312
4360
|
const serializeAws_json1_1DeleteResourcePolicyRequest = (input, context) => {
|
|
4313
4361
|
return {
|
|
4314
|
-
...(input.PolicyRevisionId
|
|
4315
|
-
|
|
4316
|
-
...(input.ResourceArn !== undefined && input.ResourceArn !== null && { ResourceArn: input.ResourceArn }),
|
|
4362
|
+
...(input.PolicyRevisionId != null && { PolicyRevisionId: input.PolicyRevisionId }),
|
|
4363
|
+
...(input.ResourceArn != null && { ResourceArn: input.ResourceArn }),
|
|
4317
4364
|
};
|
|
4318
4365
|
};
|
|
4319
4366
|
const serializeAws_json1_1DescribeDocumentClassificationJobRequest = (input, context) => {
|
|
4320
4367
|
return {
|
|
4321
|
-
...(input.JobId
|
|
4368
|
+
...(input.JobId != null && { JobId: input.JobId }),
|
|
4322
4369
|
};
|
|
4323
4370
|
};
|
|
4324
4371
|
const serializeAws_json1_1DescribeDocumentClassifierRequest = (input, context) => {
|
|
4325
4372
|
return {
|
|
4326
|
-
...(input.DocumentClassifierArn
|
|
4327
|
-
input.DocumentClassifierArn !== null && { DocumentClassifierArn: input.DocumentClassifierArn }),
|
|
4373
|
+
...(input.DocumentClassifierArn != null && { DocumentClassifierArn: input.DocumentClassifierArn }),
|
|
4328
4374
|
};
|
|
4329
4375
|
};
|
|
4330
4376
|
const serializeAws_json1_1DescribeDominantLanguageDetectionJobRequest = (input, context) => {
|
|
4331
4377
|
return {
|
|
4332
|
-
...(input.JobId
|
|
4378
|
+
...(input.JobId != null && { JobId: input.JobId }),
|
|
4333
4379
|
};
|
|
4334
4380
|
};
|
|
4335
4381
|
const serializeAws_json1_1DescribeEndpointRequest = (input, context) => {
|
|
4336
4382
|
return {
|
|
4337
|
-
...(input.EndpointArn
|
|
4383
|
+
...(input.EndpointArn != null && { EndpointArn: input.EndpointArn }),
|
|
4338
4384
|
};
|
|
4339
4385
|
};
|
|
4340
4386
|
const serializeAws_json1_1DescribeEntitiesDetectionJobRequest = (input, context) => {
|
|
4341
4387
|
return {
|
|
4342
|
-
...(input.JobId
|
|
4388
|
+
...(input.JobId != null && { JobId: input.JobId }),
|
|
4343
4389
|
};
|
|
4344
4390
|
};
|
|
4345
4391
|
const serializeAws_json1_1DescribeEntityRecognizerRequest = (input, context) => {
|
|
4346
4392
|
return {
|
|
4347
|
-
...(input.EntityRecognizerArn
|
|
4348
|
-
input.EntityRecognizerArn !== null && { EntityRecognizerArn: input.EntityRecognizerArn }),
|
|
4393
|
+
...(input.EntityRecognizerArn != null && { EntityRecognizerArn: input.EntityRecognizerArn }),
|
|
4349
4394
|
};
|
|
4350
4395
|
};
|
|
4351
4396
|
const serializeAws_json1_1DescribeEventsDetectionJobRequest = (input, context) => {
|
|
4352
4397
|
return {
|
|
4353
|
-
...(input.JobId
|
|
4398
|
+
...(input.JobId != null && { JobId: input.JobId }),
|
|
4354
4399
|
};
|
|
4355
4400
|
};
|
|
4356
4401
|
const serializeAws_json1_1DescribeKeyPhrasesDetectionJobRequest = (input, context) => {
|
|
4357
4402
|
return {
|
|
4358
|
-
...(input.JobId
|
|
4403
|
+
...(input.JobId != null && { JobId: input.JobId }),
|
|
4359
4404
|
};
|
|
4360
4405
|
};
|
|
4361
4406
|
const serializeAws_json1_1DescribePiiEntitiesDetectionJobRequest = (input, context) => {
|
|
4362
4407
|
return {
|
|
4363
|
-
...(input.JobId
|
|
4408
|
+
...(input.JobId != null && { JobId: input.JobId }),
|
|
4364
4409
|
};
|
|
4365
4410
|
};
|
|
4366
4411
|
const serializeAws_json1_1DescribeResourcePolicyRequest = (input, context) => {
|
|
4367
4412
|
return {
|
|
4368
|
-
...(input.ResourceArn
|
|
4413
|
+
...(input.ResourceArn != null && { ResourceArn: input.ResourceArn }),
|
|
4369
4414
|
};
|
|
4370
4415
|
};
|
|
4371
4416
|
const serializeAws_json1_1DescribeSentimentDetectionJobRequest = (input, context) => {
|
|
4372
4417
|
return {
|
|
4373
|
-
...(input.JobId
|
|
4418
|
+
...(input.JobId != null && { JobId: input.JobId }),
|
|
4374
4419
|
};
|
|
4375
4420
|
};
|
|
4376
4421
|
const serializeAws_json1_1DescribeTargetedSentimentDetectionJobRequest = (input, context) => {
|
|
4377
4422
|
return {
|
|
4378
|
-
...(input.JobId
|
|
4423
|
+
...(input.JobId != null && { JobId: input.JobId }),
|
|
4379
4424
|
};
|
|
4380
4425
|
};
|
|
4381
4426
|
const serializeAws_json1_1DescribeTopicsDetectionJobRequest = (input, context) => {
|
|
4382
4427
|
return {
|
|
4383
|
-
...(input.JobId
|
|
4428
|
+
...(input.JobId != null && { JobId: input.JobId }),
|
|
4384
4429
|
};
|
|
4385
4430
|
};
|
|
4386
4431
|
const serializeAws_json1_1DetectDominantLanguageRequest = (input, context) => {
|
|
4387
4432
|
return {
|
|
4388
|
-
...(input.Text
|
|
4433
|
+
...(input.Text != null && { Text: input.Text }),
|
|
4389
4434
|
};
|
|
4390
4435
|
};
|
|
4391
4436
|
const serializeAws_json1_1DetectEntitiesRequest = (input, context) => {
|
|
4392
4437
|
return {
|
|
4393
|
-
...(input.EndpointArn
|
|
4394
|
-
...(input.LanguageCode
|
|
4395
|
-
...(input.Text
|
|
4438
|
+
...(input.EndpointArn != null && { EndpointArn: input.EndpointArn }),
|
|
4439
|
+
...(input.LanguageCode != null && { LanguageCode: input.LanguageCode }),
|
|
4440
|
+
...(input.Text != null && { Text: input.Text }),
|
|
4396
4441
|
};
|
|
4397
4442
|
};
|
|
4398
4443
|
const serializeAws_json1_1DetectKeyPhrasesRequest = (input, context) => {
|
|
4399
4444
|
return {
|
|
4400
|
-
...(input.LanguageCode
|
|
4401
|
-
...(input.Text
|
|
4445
|
+
...(input.LanguageCode != null && { LanguageCode: input.LanguageCode }),
|
|
4446
|
+
...(input.Text != null && { Text: input.Text }),
|
|
4402
4447
|
};
|
|
4403
4448
|
};
|
|
4404
4449
|
const serializeAws_json1_1DetectPiiEntitiesRequest = (input, context) => {
|
|
4405
4450
|
return {
|
|
4406
|
-
...(input.LanguageCode
|
|
4407
|
-
...(input.Text
|
|
4451
|
+
...(input.LanguageCode != null && { LanguageCode: input.LanguageCode }),
|
|
4452
|
+
...(input.Text != null && { Text: input.Text }),
|
|
4408
4453
|
};
|
|
4409
4454
|
};
|
|
4410
4455
|
const serializeAws_json1_1DetectSentimentRequest = (input, context) => {
|
|
4411
4456
|
return {
|
|
4412
|
-
...(input.LanguageCode
|
|
4413
|
-
...(input.Text
|
|
4457
|
+
...(input.LanguageCode != null && { LanguageCode: input.LanguageCode }),
|
|
4458
|
+
...(input.Text != null && { Text: input.Text }),
|
|
4414
4459
|
};
|
|
4415
4460
|
};
|
|
4416
4461
|
const serializeAws_json1_1DetectSyntaxRequest = (input, context) => {
|
|
4417
4462
|
return {
|
|
4418
|
-
...(input.LanguageCode
|
|
4419
|
-
...(input.Text
|
|
4463
|
+
...(input.LanguageCode != null && { LanguageCode: input.LanguageCode }),
|
|
4464
|
+
...(input.Text != null && { Text: input.Text }),
|
|
4420
4465
|
};
|
|
4421
4466
|
};
|
|
4422
4467
|
const serializeAws_json1_1DocumentClassificationJobFilter = (input, context) => {
|
|
4423
4468
|
return {
|
|
4424
|
-
...(input.JobName
|
|
4425
|
-
...(input.JobStatus
|
|
4426
|
-
...(input.SubmitTimeAfter
|
|
4427
|
-
|
|
4428
|
-
...(input.SubmitTimeBefore !== undefined &&
|
|
4429
|
-
input.SubmitTimeBefore !== null && { SubmitTimeBefore: Math.round(input.SubmitTimeBefore.getTime() / 1000) }),
|
|
4469
|
+
...(input.JobName != null && { JobName: input.JobName }),
|
|
4470
|
+
...(input.JobStatus != null && { JobStatus: input.JobStatus }),
|
|
4471
|
+
...(input.SubmitTimeAfter != null && { SubmitTimeAfter: Math.round(input.SubmitTimeAfter.getTime() / 1000) }),
|
|
4472
|
+
...(input.SubmitTimeBefore != null && { SubmitTimeBefore: Math.round(input.SubmitTimeBefore.getTime() / 1000) }),
|
|
4430
4473
|
};
|
|
4431
4474
|
};
|
|
4432
4475
|
const serializeAws_json1_1DocumentClassifierAugmentedManifestsList = (input, context) => {
|
|
@@ -4441,82 +4484,68 @@ const serializeAws_json1_1DocumentClassifierAugmentedManifestsList = (input, con
|
|
|
4441
4484
|
};
|
|
4442
4485
|
const serializeAws_json1_1DocumentClassifierFilter = (input, context) => {
|
|
4443
4486
|
return {
|
|
4444
|
-
...(input.DocumentClassifierName
|
|
4445
|
-
|
|
4446
|
-
...(input.
|
|
4447
|
-
...(input.
|
|
4448
|
-
input.SubmitTimeAfter !== null && { SubmitTimeAfter: Math.round(input.SubmitTimeAfter.getTime() / 1000) }),
|
|
4449
|
-
...(input.SubmitTimeBefore !== undefined &&
|
|
4450
|
-
input.SubmitTimeBefore !== null && { SubmitTimeBefore: Math.round(input.SubmitTimeBefore.getTime() / 1000) }),
|
|
4487
|
+
...(input.DocumentClassifierName != null && { DocumentClassifierName: input.DocumentClassifierName }),
|
|
4488
|
+
...(input.Status != null && { Status: input.Status }),
|
|
4489
|
+
...(input.SubmitTimeAfter != null && { SubmitTimeAfter: Math.round(input.SubmitTimeAfter.getTime() / 1000) }),
|
|
4490
|
+
...(input.SubmitTimeBefore != null && { SubmitTimeBefore: Math.round(input.SubmitTimeBefore.getTime() / 1000) }),
|
|
4451
4491
|
};
|
|
4452
4492
|
};
|
|
4453
4493
|
const serializeAws_json1_1DocumentClassifierInputDataConfig = (input, context) => {
|
|
4454
4494
|
return {
|
|
4455
|
-
...(input.AugmentedManifests
|
|
4456
|
-
input.AugmentedManifests !== null && {
|
|
4495
|
+
...(input.AugmentedManifests != null && {
|
|
4457
4496
|
AugmentedManifests: serializeAws_json1_1DocumentClassifierAugmentedManifestsList(input.AugmentedManifests, context),
|
|
4458
4497
|
}),
|
|
4459
|
-
...(input.DataFormat
|
|
4460
|
-
...(input.LabelDelimiter
|
|
4461
|
-
|
|
4462
|
-
...(input.
|
|
4463
|
-
...(input.TestS3Uri !== undefined && input.TestS3Uri !== null && { TestS3Uri: input.TestS3Uri }),
|
|
4498
|
+
...(input.DataFormat != null && { DataFormat: input.DataFormat }),
|
|
4499
|
+
...(input.LabelDelimiter != null && { LabelDelimiter: input.LabelDelimiter }),
|
|
4500
|
+
...(input.S3Uri != null && { S3Uri: input.S3Uri }),
|
|
4501
|
+
...(input.TestS3Uri != null && { TestS3Uri: input.TestS3Uri }),
|
|
4464
4502
|
};
|
|
4465
4503
|
};
|
|
4466
4504
|
const serializeAws_json1_1DocumentClassifierOutputDataConfig = (input, context) => {
|
|
4467
4505
|
return {
|
|
4468
|
-
...(input.KmsKeyId
|
|
4469
|
-
...(input.S3Uri
|
|
4506
|
+
...(input.KmsKeyId != null && { KmsKeyId: input.KmsKeyId }),
|
|
4507
|
+
...(input.S3Uri != null && { S3Uri: input.S3Uri }),
|
|
4470
4508
|
};
|
|
4471
4509
|
};
|
|
4472
4510
|
const serializeAws_json1_1DocumentReaderConfig = (input, context) => {
|
|
4473
4511
|
return {
|
|
4474
|
-
...(input.DocumentReadAction
|
|
4475
|
-
|
|
4476
|
-
...(input.
|
|
4477
|
-
input.DocumentReadMode !== null && { DocumentReadMode: input.DocumentReadMode }),
|
|
4478
|
-
...(input.FeatureTypes !== undefined &&
|
|
4479
|
-
input.FeatureTypes !== null && {
|
|
4512
|
+
...(input.DocumentReadAction != null && { DocumentReadAction: input.DocumentReadAction }),
|
|
4513
|
+
...(input.DocumentReadMode != null && { DocumentReadMode: input.DocumentReadMode }),
|
|
4514
|
+
...(input.FeatureTypes != null && {
|
|
4480
4515
|
FeatureTypes: serializeAws_json1_1ListOfDocumentReadFeatureTypes(input.FeatureTypes, context),
|
|
4481
4516
|
}),
|
|
4482
4517
|
};
|
|
4483
4518
|
};
|
|
4484
4519
|
const serializeAws_json1_1DominantLanguageDetectionJobFilter = (input, context) => {
|
|
4485
4520
|
return {
|
|
4486
|
-
...(input.JobName
|
|
4487
|
-
...(input.JobStatus
|
|
4488
|
-
...(input.SubmitTimeAfter
|
|
4489
|
-
|
|
4490
|
-
...(input.SubmitTimeBefore !== undefined &&
|
|
4491
|
-
input.SubmitTimeBefore !== null && { SubmitTimeBefore: Math.round(input.SubmitTimeBefore.getTime() / 1000) }),
|
|
4521
|
+
...(input.JobName != null && { JobName: input.JobName }),
|
|
4522
|
+
...(input.JobStatus != null && { JobStatus: input.JobStatus }),
|
|
4523
|
+
...(input.SubmitTimeAfter != null && { SubmitTimeAfter: Math.round(input.SubmitTimeAfter.getTime() / 1000) }),
|
|
4524
|
+
...(input.SubmitTimeBefore != null && { SubmitTimeBefore: Math.round(input.SubmitTimeBefore.getTime() / 1000) }),
|
|
4492
4525
|
};
|
|
4493
4526
|
};
|
|
4494
4527
|
const serializeAws_json1_1EndpointFilter = (input, context) => {
|
|
4495
4528
|
return {
|
|
4496
|
-
...(input.CreationTimeAfter
|
|
4497
|
-
|
|
4498
|
-
...(input.CreationTimeBefore !== undefined &&
|
|
4499
|
-
input.CreationTimeBefore !== null && {
|
|
4529
|
+
...(input.CreationTimeAfter != null && { CreationTimeAfter: Math.round(input.CreationTimeAfter.getTime() / 1000) }),
|
|
4530
|
+
...(input.CreationTimeBefore != null && {
|
|
4500
4531
|
CreationTimeBefore: Math.round(input.CreationTimeBefore.getTime() / 1000),
|
|
4501
4532
|
}),
|
|
4502
|
-
...(input.ModelArn
|
|
4503
|
-
...(input.Status
|
|
4533
|
+
...(input.ModelArn != null && { ModelArn: input.ModelArn }),
|
|
4534
|
+
...(input.Status != null && { Status: input.Status }),
|
|
4504
4535
|
};
|
|
4505
4536
|
};
|
|
4506
4537
|
const serializeAws_json1_1EntitiesDetectionJobFilter = (input, context) => {
|
|
4507
4538
|
return {
|
|
4508
|
-
...(input.JobName
|
|
4509
|
-
...(input.JobStatus
|
|
4510
|
-
...(input.SubmitTimeAfter
|
|
4511
|
-
|
|
4512
|
-
...(input.SubmitTimeBefore !== undefined &&
|
|
4513
|
-
input.SubmitTimeBefore !== null && { SubmitTimeBefore: Math.round(input.SubmitTimeBefore.getTime() / 1000) }),
|
|
4539
|
+
...(input.JobName != null && { JobName: input.JobName }),
|
|
4540
|
+
...(input.JobStatus != null && { JobStatus: input.JobStatus }),
|
|
4541
|
+
...(input.SubmitTimeAfter != null && { SubmitTimeAfter: Math.round(input.SubmitTimeAfter.getTime() / 1000) }),
|
|
4542
|
+
...(input.SubmitTimeBefore != null && { SubmitTimeBefore: Math.round(input.SubmitTimeBefore.getTime() / 1000) }),
|
|
4514
4543
|
};
|
|
4515
4544
|
};
|
|
4516
4545
|
const serializeAws_json1_1EntityRecognizerAnnotations = (input, context) => {
|
|
4517
4546
|
return {
|
|
4518
|
-
...(input.S3Uri
|
|
4519
|
-
...(input.TestS3Uri
|
|
4547
|
+
...(input.S3Uri != null && { S3Uri: input.S3Uri }),
|
|
4548
|
+
...(input.TestS3Uri != null && { TestS3Uri: input.TestS3Uri }),
|
|
4520
4549
|
};
|
|
4521
4550
|
};
|
|
4522
4551
|
const serializeAws_json1_1EntityRecognizerAugmentedManifestsList = (input, context) => {
|
|
@@ -4531,48 +4560,40 @@ const serializeAws_json1_1EntityRecognizerAugmentedManifestsList = (input, conte
|
|
|
4531
4560
|
};
|
|
4532
4561
|
const serializeAws_json1_1EntityRecognizerDocuments = (input, context) => {
|
|
4533
4562
|
return {
|
|
4534
|
-
...(input.InputFormat
|
|
4535
|
-
...(input.S3Uri
|
|
4536
|
-
...(input.TestS3Uri
|
|
4563
|
+
...(input.InputFormat != null && { InputFormat: input.InputFormat }),
|
|
4564
|
+
...(input.S3Uri != null && { S3Uri: input.S3Uri }),
|
|
4565
|
+
...(input.TestS3Uri != null && { TestS3Uri: input.TestS3Uri }),
|
|
4537
4566
|
};
|
|
4538
4567
|
};
|
|
4539
4568
|
const serializeAws_json1_1EntityRecognizerEntityList = (input, context) => {
|
|
4540
4569
|
return {
|
|
4541
|
-
...(input.S3Uri
|
|
4570
|
+
...(input.S3Uri != null && { S3Uri: input.S3Uri }),
|
|
4542
4571
|
};
|
|
4543
4572
|
};
|
|
4544
4573
|
const serializeAws_json1_1EntityRecognizerFilter = (input, context) => {
|
|
4545
4574
|
return {
|
|
4546
|
-
...(input.RecognizerName
|
|
4547
|
-
|
|
4548
|
-
...(input.
|
|
4549
|
-
...(input.
|
|
4550
|
-
input.SubmitTimeAfter !== null && { SubmitTimeAfter: Math.round(input.SubmitTimeAfter.getTime() / 1000) }),
|
|
4551
|
-
...(input.SubmitTimeBefore !== undefined &&
|
|
4552
|
-
input.SubmitTimeBefore !== null && { SubmitTimeBefore: Math.round(input.SubmitTimeBefore.getTime() / 1000) }),
|
|
4575
|
+
...(input.RecognizerName != null && { RecognizerName: input.RecognizerName }),
|
|
4576
|
+
...(input.Status != null && { Status: input.Status }),
|
|
4577
|
+
...(input.SubmitTimeAfter != null && { SubmitTimeAfter: Math.round(input.SubmitTimeAfter.getTime() / 1000) }),
|
|
4578
|
+
...(input.SubmitTimeBefore != null && { SubmitTimeBefore: Math.round(input.SubmitTimeBefore.getTime() / 1000) }),
|
|
4553
4579
|
};
|
|
4554
4580
|
};
|
|
4555
4581
|
const serializeAws_json1_1EntityRecognizerInputDataConfig = (input, context) => {
|
|
4556
4582
|
return {
|
|
4557
|
-
...(input.Annotations
|
|
4558
|
-
input.Annotations !== null && {
|
|
4583
|
+
...(input.Annotations != null && {
|
|
4559
4584
|
Annotations: serializeAws_json1_1EntityRecognizerAnnotations(input.Annotations, context),
|
|
4560
4585
|
}),
|
|
4561
|
-
...(input.AugmentedManifests
|
|
4562
|
-
input.AugmentedManifests !== null && {
|
|
4586
|
+
...(input.AugmentedManifests != null && {
|
|
4563
4587
|
AugmentedManifests: serializeAws_json1_1EntityRecognizerAugmentedManifestsList(input.AugmentedManifests, context),
|
|
4564
4588
|
}),
|
|
4565
|
-
...(input.DataFormat
|
|
4566
|
-
...(input.Documents
|
|
4567
|
-
input.Documents !== null && {
|
|
4589
|
+
...(input.DataFormat != null && { DataFormat: input.DataFormat }),
|
|
4590
|
+
...(input.Documents != null && {
|
|
4568
4591
|
Documents: serializeAws_json1_1EntityRecognizerDocuments(input.Documents, context),
|
|
4569
4592
|
}),
|
|
4570
|
-
...(input.EntityList
|
|
4571
|
-
input.EntityList !== null && {
|
|
4593
|
+
...(input.EntityList != null && {
|
|
4572
4594
|
EntityList: serializeAws_json1_1EntityRecognizerEntityList(input.EntityList, context),
|
|
4573
4595
|
}),
|
|
4574
|
-
...(input.EntityTypes
|
|
4575
|
-
input.EntityTypes !== null && { EntityTypes: serializeAws_json1_1EntityTypesList(input.EntityTypes, context) }),
|
|
4596
|
+
...(input.EntityTypes != null && { EntityTypes: serializeAws_json1_1EntityTypesList(input.EntityTypes, context) }),
|
|
4576
4597
|
};
|
|
4577
4598
|
};
|
|
4578
4599
|
const serializeAws_json1_1EntityTypesList = (input, context) => {
|
|
@@ -4587,127 +4608,112 @@ const serializeAws_json1_1EntityTypesList = (input, context) => {
|
|
|
4587
4608
|
};
|
|
4588
4609
|
const serializeAws_json1_1EntityTypesListItem = (input, context) => {
|
|
4589
4610
|
return {
|
|
4590
|
-
...(input.Type
|
|
4611
|
+
...(input.Type != null && { Type: input.Type }),
|
|
4591
4612
|
};
|
|
4592
4613
|
};
|
|
4593
4614
|
const serializeAws_json1_1EventsDetectionJobFilter = (input, context) => {
|
|
4594
4615
|
return {
|
|
4595
|
-
...(input.JobName
|
|
4596
|
-
...(input.JobStatus
|
|
4597
|
-
...(input.SubmitTimeAfter
|
|
4598
|
-
|
|
4599
|
-
...(input.SubmitTimeBefore !== undefined &&
|
|
4600
|
-
input.SubmitTimeBefore !== null && { SubmitTimeBefore: Math.round(input.SubmitTimeBefore.getTime() / 1000) }),
|
|
4616
|
+
...(input.JobName != null && { JobName: input.JobName }),
|
|
4617
|
+
...(input.JobStatus != null && { JobStatus: input.JobStatus }),
|
|
4618
|
+
...(input.SubmitTimeAfter != null && { SubmitTimeAfter: Math.round(input.SubmitTimeAfter.getTime() / 1000) }),
|
|
4619
|
+
...(input.SubmitTimeBefore != null && { SubmitTimeBefore: Math.round(input.SubmitTimeBefore.getTime() / 1000) }),
|
|
4601
4620
|
};
|
|
4602
4621
|
};
|
|
4603
4622
|
const serializeAws_json1_1ImportModelRequest = (input, context) => {
|
|
4604
4623
|
return {
|
|
4605
|
-
...(input.DataAccessRoleArn
|
|
4606
|
-
|
|
4607
|
-
...(input.
|
|
4608
|
-
...(input.
|
|
4609
|
-
...(input.
|
|
4610
|
-
|
|
4611
|
-
...(input.Tags !== undefined && input.Tags !== null && { Tags: serializeAws_json1_1TagList(input.Tags, context) }),
|
|
4612
|
-
...(input.VersionName !== undefined && input.VersionName !== null && { VersionName: input.VersionName }),
|
|
4624
|
+
...(input.DataAccessRoleArn != null && { DataAccessRoleArn: input.DataAccessRoleArn }),
|
|
4625
|
+
...(input.ModelKmsKeyId != null && { ModelKmsKeyId: input.ModelKmsKeyId }),
|
|
4626
|
+
...(input.ModelName != null && { ModelName: input.ModelName }),
|
|
4627
|
+
...(input.SourceModelArn != null && { SourceModelArn: input.SourceModelArn }),
|
|
4628
|
+
...(input.Tags != null && { Tags: serializeAws_json1_1TagList(input.Tags, context) }),
|
|
4629
|
+
...(input.VersionName != null && { VersionName: input.VersionName }),
|
|
4613
4630
|
};
|
|
4614
4631
|
};
|
|
4615
4632
|
const serializeAws_json1_1InputDataConfig = (input, context) => {
|
|
4616
4633
|
return {
|
|
4617
|
-
...(input.DocumentReaderConfig
|
|
4618
|
-
input.DocumentReaderConfig !== null && {
|
|
4634
|
+
...(input.DocumentReaderConfig != null && {
|
|
4619
4635
|
DocumentReaderConfig: serializeAws_json1_1DocumentReaderConfig(input.DocumentReaderConfig, context),
|
|
4620
4636
|
}),
|
|
4621
|
-
...(input.InputFormat
|
|
4622
|
-
...(input.S3Uri
|
|
4637
|
+
...(input.InputFormat != null && { InputFormat: input.InputFormat }),
|
|
4638
|
+
...(input.S3Uri != null && { S3Uri: input.S3Uri }),
|
|
4623
4639
|
};
|
|
4624
4640
|
};
|
|
4625
4641
|
const serializeAws_json1_1KeyPhrasesDetectionJobFilter = (input, context) => {
|
|
4626
4642
|
return {
|
|
4627
|
-
...(input.JobName
|
|
4628
|
-
...(input.JobStatus
|
|
4629
|
-
...(input.SubmitTimeAfter
|
|
4630
|
-
|
|
4631
|
-
...(input.SubmitTimeBefore !== undefined &&
|
|
4632
|
-
input.SubmitTimeBefore !== null && { SubmitTimeBefore: Math.round(input.SubmitTimeBefore.getTime() / 1000) }),
|
|
4643
|
+
...(input.JobName != null && { JobName: input.JobName }),
|
|
4644
|
+
...(input.JobStatus != null && { JobStatus: input.JobStatus }),
|
|
4645
|
+
...(input.SubmitTimeAfter != null && { SubmitTimeAfter: Math.round(input.SubmitTimeAfter.getTime() / 1000) }),
|
|
4646
|
+
...(input.SubmitTimeBefore != null && { SubmitTimeBefore: Math.round(input.SubmitTimeBefore.getTime() / 1000) }),
|
|
4633
4647
|
};
|
|
4634
4648
|
};
|
|
4635
4649
|
const serializeAws_json1_1ListDocumentClassificationJobsRequest = (input, context) => {
|
|
4636
4650
|
return {
|
|
4637
|
-
...(input.Filter
|
|
4638
|
-
|
|
4639
|
-
...(input.
|
|
4640
|
-
...(input.NextToken !== undefined && input.NextToken !== null && { NextToken: input.NextToken }),
|
|
4651
|
+
...(input.Filter != null && { Filter: serializeAws_json1_1DocumentClassificationJobFilter(input.Filter, context) }),
|
|
4652
|
+
...(input.MaxResults != null && { MaxResults: input.MaxResults }),
|
|
4653
|
+
...(input.NextToken != null && { NextToken: input.NextToken }),
|
|
4641
4654
|
};
|
|
4642
4655
|
};
|
|
4643
4656
|
const serializeAws_json1_1ListDocumentClassifiersRequest = (input, context) => {
|
|
4644
4657
|
return {
|
|
4645
|
-
...(input.Filter
|
|
4646
|
-
|
|
4647
|
-
...(input.
|
|
4648
|
-
...(input.NextToken !== undefined && input.NextToken !== null && { NextToken: input.NextToken }),
|
|
4658
|
+
...(input.Filter != null && { Filter: serializeAws_json1_1DocumentClassifierFilter(input.Filter, context) }),
|
|
4659
|
+
...(input.MaxResults != null && { MaxResults: input.MaxResults }),
|
|
4660
|
+
...(input.NextToken != null && { NextToken: input.NextToken }),
|
|
4649
4661
|
};
|
|
4650
4662
|
};
|
|
4651
4663
|
const serializeAws_json1_1ListDocumentClassifierSummariesRequest = (input, context) => {
|
|
4652
4664
|
return {
|
|
4653
|
-
...(input.MaxResults
|
|
4654
|
-
...(input.NextToken
|
|
4665
|
+
...(input.MaxResults != null && { MaxResults: input.MaxResults }),
|
|
4666
|
+
...(input.NextToken != null && { NextToken: input.NextToken }),
|
|
4655
4667
|
};
|
|
4656
4668
|
};
|
|
4657
4669
|
const serializeAws_json1_1ListDominantLanguageDetectionJobsRequest = (input, context) => {
|
|
4658
4670
|
return {
|
|
4659
|
-
...(input.Filter
|
|
4660
|
-
input.Filter !== null && {
|
|
4671
|
+
...(input.Filter != null && {
|
|
4661
4672
|
Filter: serializeAws_json1_1DominantLanguageDetectionJobFilter(input.Filter, context),
|
|
4662
4673
|
}),
|
|
4663
|
-
...(input.MaxResults
|
|
4664
|
-
...(input.NextToken
|
|
4674
|
+
...(input.MaxResults != null && { MaxResults: input.MaxResults }),
|
|
4675
|
+
...(input.NextToken != null && { NextToken: input.NextToken }),
|
|
4665
4676
|
};
|
|
4666
4677
|
};
|
|
4667
4678
|
const serializeAws_json1_1ListEndpointsRequest = (input, context) => {
|
|
4668
4679
|
return {
|
|
4669
|
-
...(input.Filter
|
|
4670
|
-
|
|
4671
|
-
...(input.
|
|
4672
|
-
...(input.NextToken !== undefined && input.NextToken !== null && { NextToken: input.NextToken }),
|
|
4680
|
+
...(input.Filter != null && { Filter: serializeAws_json1_1EndpointFilter(input.Filter, context) }),
|
|
4681
|
+
...(input.MaxResults != null && { MaxResults: input.MaxResults }),
|
|
4682
|
+
...(input.NextToken != null && { NextToken: input.NextToken }),
|
|
4673
4683
|
};
|
|
4674
4684
|
};
|
|
4675
4685
|
const serializeAws_json1_1ListEntitiesDetectionJobsRequest = (input, context) => {
|
|
4676
4686
|
return {
|
|
4677
|
-
...(input.Filter
|
|
4678
|
-
|
|
4679
|
-
...(input.
|
|
4680
|
-
...(input.NextToken !== undefined && input.NextToken !== null && { NextToken: input.NextToken }),
|
|
4687
|
+
...(input.Filter != null && { Filter: serializeAws_json1_1EntitiesDetectionJobFilter(input.Filter, context) }),
|
|
4688
|
+
...(input.MaxResults != null && { MaxResults: input.MaxResults }),
|
|
4689
|
+
...(input.NextToken != null && { NextToken: input.NextToken }),
|
|
4681
4690
|
};
|
|
4682
4691
|
};
|
|
4683
4692
|
const serializeAws_json1_1ListEntityRecognizersRequest = (input, context) => {
|
|
4684
4693
|
return {
|
|
4685
|
-
...(input.Filter
|
|
4686
|
-
|
|
4687
|
-
...(input.
|
|
4688
|
-
...(input.NextToken !== undefined && input.NextToken !== null && { NextToken: input.NextToken }),
|
|
4694
|
+
...(input.Filter != null && { Filter: serializeAws_json1_1EntityRecognizerFilter(input.Filter, context) }),
|
|
4695
|
+
...(input.MaxResults != null && { MaxResults: input.MaxResults }),
|
|
4696
|
+
...(input.NextToken != null && { NextToken: input.NextToken }),
|
|
4689
4697
|
};
|
|
4690
4698
|
};
|
|
4691
4699
|
const serializeAws_json1_1ListEntityRecognizerSummariesRequest = (input, context) => {
|
|
4692
4700
|
return {
|
|
4693
|
-
...(input.MaxResults
|
|
4694
|
-
...(input.NextToken
|
|
4701
|
+
...(input.MaxResults != null && { MaxResults: input.MaxResults }),
|
|
4702
|
+
...(input.NextToken != null && { NextToken: input.NextToken }),
|
|
4695
4703
|
};
|
|
4696
4704
|
};
|
|
4697
4705
|
const serializeAws_json1_1ListEventsDetectionJobsRequest = (input, context) => {
|
|
4698
4706
|
return {
|
|
4699
|
-
...(input.Filter
|
|
4700
|
-
|
|
4701
|
-
...(input.
|
|
4702
|
-
...(input.NextToken !== undefined && input.NextToken !== null && { NextToken: input.NextToken }),
|
|
4707
|
+
...(input.Filter != null && { Filter: serializeAws_json1_1EventsDetectionJobFilter(input.Filter, context) }),
|
|
4708
|
+
...(input.MaxResults != null && { MaxResults: input.MaxResults }),
|
|
4709
|
+
...(input.NextToken != null && { NextToken: input.NextToken }),
|
|
4703
4710
|
};
|
|
4704
4711
|
};
|
|
4705
4712
|
const serializeAws_json1_1ListKeyPhrasesDetectionJobsRequest = (input, context) => {
|
|
4706
4713
|
return {
|
|
4707
|
-
...(input.Filter
|
|
4708
|
-
|
|
4709
|
-
...(input.
|
|
4710
|
-
...(input.NextToken !== undefined && input.NextToken !== null && { NextToken: input.NextToken }),
|
|
4714
|
+
...(input.Filter != null && { Filter: serializeAws_json1_1KeyPhrasesDetectionJobFilter(input.Filter, context) }),
|
|
4715
|
+
...(input.MaxResults != null && { MaxResults: input.MaxResults }),
|
|
4716
|
+
...(input.NextToken != null && { NextToken: input.NextToken }),
|
|
4711
4717
|
};
|
|
4712
4718
|
};
|
|
4713
4719
|
const serializeAws_json1_1ListOfDocumentReadFeatureTypes = (input, context) => {
|
|
@@ -4732,74 +4738,65 @@ const serializeAws_json1_1ListOfPiiEntityTypes = (input, context) => {
|
|
|
4732
4738
|
};
|
|
4733
4739
|
const serializeAws_json1_1ListPiiEntitiesDetectionJobsRequest = (input, context) => {
|
|
4734
4740
|
return {
|
|
4735
|
-
...(input.Filter
|
|
4736
|
-
|
|
4737
|
-
...(input.
|
|
4738
|
-
...(input.NextToken !== undefined && input.NextToken !== null && { NextToken: input.NextToken }),
|
|
4741
|
+
...(input.Filter != null && { Filter: serializeAws_json1_1PiiEntitiesDetectionJobFilter(input.Filter, context) }),
|
|
4742
|
+
...(input.MaxResults != null && { MaxResults: input.MaxResults }),
|
|
4743
|
+
...(input.NextToken != null && { NextToken: input.NextToken }),
|
|
4739
4744
|
};
|
|
4740
4745
|
};
|
|
4741
4746
|
const serializeAws_json1_1ListSentimentDetectionJobsRequest = (input, context) => {
|
|
4742
4747
|
return {
|
|
4743
|
-
...(input.Filter
|
|
4744
|
-
|
|
4745
|
-
...(input.
|
|
4746
|
-
...(input.NextToken !== undefined && input.NextToken !== null && { NextToken: input.NextToken }),
|
|
4748
|
+
...(input.Filter != null && { Filter: serializeAws_json1_1SentimentDetectionJobFilter(input.Filter, context) }),
|
|
4749
|
+
...(input.MaxResults != null && { MaxResults: input.MaxResults }),
|
|
4750
|
+
...(input.NextToken != null && { NextToken: input.NextToken }),
|
|
4747
4751
|
};
|
|
4748
4752
|
};
|
|
4749
4753
|
const serializeAws_json1_1ListTagsForResourceRequest = (input, context) => {
|
|
4750
4754
|
return {
|
|
4751
|
-
...(input.ResourceArn
|
|
4755
|
+
...(input.ResourceArn != null && { ResourceArn: input.ResourceArn }),
|
|
4752
4756
|
};
|
|
4753
4757
|
};
|
|
4754
4758
|
const serializeAws_json1_1ListTargetedSentimentDetectionJobsRequest = (input, context) => {
|
|
4755
4759
|
return {
|
|
4756
|
-
...(input.Filter
|
|
4757
|
-
input.Filter !== null && {
|
|
4760
|
+
...(input.Filter != null && {
|
|
4758
4761
|
Filter: serializeAws_json1_1TargetedSentimentDetectionJobFilter(input.Filter, context),
|
|
4759
4762
|
}),
|
|
4760
|
-
...(input.MaxResults
|
|
4761
|
-
...(input.NextToken
|
|
4763
|
+
...(input.MaxResults != null && { MaxResults: input.MaxResults }),
|
|
4764
|
+
...(input.NextToken != null && { NextToken: input.NextToken }),
|
|
4762
4765
|
};
|
|
4763
4766
|
};
|
|
4764
4767
|
const serializeAws_json1_1ListTopicsDetectionJobsRequest = (input, context) => {
|
|
4765
4768
|
return {
|
|
4766
|
-
...(input.Filter
|
|
4767
|
-
|
|
4768
|
-
...(input.
|
|
4769
|
-
...(input.NextToken !== undefined && input.NextToken !== null && { NextToken: input.NextToken }),
|
|
4769
|
+
...(input.Filter != null && { Filter: serializeAws_json1_1TopicsDetectionJobFilter(input.Filter, context) }),
|
|
4770
|
+
...(input.MaxResults != null && { MaxResults: input.MaxResults }),
|
|
4771
|
+
...(input.NextToken != null && { NextToken: input.NextToken }),
|
|
4770
4772
|
};
|
|
4771
4773
|
};
|
|
4772
4774
|
const serializeAws_json1_1OutputDataConfig = (input, context) => {
|
|
4773
4775
|
return {
|
|
4774
|
-
...(input.KmsKeyId
|
|
4775
|
-
...(input.S3Uri
|
|
4776
|
+
...(input.KmsKeyId != null && { KmsKeyId: input.KmsKeyId }),
|
|
4777
|
+
...(input.S3Uri != null && { S3Uri: input.S3Uri }),
|
|
4776
4778
|
};
|
|
4777
4779
|
};
|
|
4778
4780
|
const serializeAws_json1_1PiiEntitiesDetectionJobFilter = (input, context) => {
|
|
4779
4781
|
return {
|
|
4780
|
-
...(input.JobName
|
|
4781
|
-
...(input.JobStatus
|
|
4782
|
-
...(input.SubmitTimeAfter
|
|
4783
|
-
|
|
4784
|
-
...(input.SubmitTimeBefore !== undefined &&
|
|
4785
|
-
input.SubmitTimeBefore !== null && { SubmitTimeBefore: Math.round(input.SubmitTimeBefore.getTime() / 1000) }),
|
|
4782
|
+
...(input.JobName != null && { JobName: input.JobName }),
|
|
4783
|
+
...(input.JobStatus != null && { JobStatus: input.JobStatus }),
|
|
4784
|
+
...(input.SubmitTimeAfter != null && { SubmitTimeAfter: Math.round(input.SubmitTimeAfter.getTime() / 1000) }),
|
|
4785
|
+
...(input.SubmitTimeBefore != null && { SubmitTimeBefore: Math.round(input.SubmitTimeBefore.getTime() / 1000) }),
|
|
4786
4786
|
};
|
|
4787
4787
|
};
|
|
4788
4788
|
const serializeAws_json1_1PutResourcePolicyRequest = (input, context) => {
|
|
4789
4789
|
return {
|
|
4790
|
-
...(input.PolicyRevisionId
|
|
4791
|
-
|
|
4792
|
-
...(input.
|
|
4793
|
-
...(input.ResourcePolicy !== undefined &&
|
|
4794
|
-
input.ResourcePolicy !== null && { ResourcePolicy: input.ResourcePolicy }),
|
|
4790
|
+
...(input.PolicyRevisionId != null && { PolicyRevisionId: input.PolicyRevisionId }),
|
|
4791
|
+
...(input.ResourceArn != null && { ResourceArn: input.ResourceArn }),
|
|
4792
|
+
...(input.ResourcePolicy != null && { ResourcePolicy: input.ResourcePolicy }),
|
|
4795
4793
|
};
|
|
4796
4794
|
};
|
|
4797
4795
|
const serializeAws_json1_1RedactionConfig = (input, context) => {
|
|
4798
4796
|
return {
|
|
4799
|
-
...(input.MaskCharacter
|
|
4800
|
-
...(input.MaskMode
|
|
4801
|
-
...(input.PiiEntityTypes
|
|
4802
|
-
input.PiiEntityTypes !== null && {
|
|
4797
|
+
...(input.MaskCharacter != null && { MaskCharacter: input.MaskCharacter }),
|
|
4798
|
+
...(input.MaskMode != null && { MaskMode: input.MaskMode }),
|
|
4799
|
+
...(input.PiiEntityTypes != null && {
|
|
4803
4800
|
PiiEntityTypes: serializeAws_json1_1ListOfPiiEntityTypes(input.PiiEntityTypes, context),
|
|
4804
4801
|
}),
|
|
4805
4802
|
};
|
|
@@ -4816,104 +4813,81 @@ const serializeAws_json1_1SecurityGroupIds = (input, context) => {
|
|
|
4816
4813
|
};
|
|
4817
4814
|
const serializeAws_json1_1SentimentDetectionJobFilter = (input, context) => {
|
|
4818
4815
|
return {
|
|
4819
|
-
...(input.JobName
|
|
4820
|
-
...(input.JobStatus
|
|
4821
|
-
...(input.SubmitTimeAfter
|
|
4822
|
-
|
|
4823
|
-
...(input.SubmitTimeBefore !== undefined &&
|
|
4824
|
-
input.SubmitTimeBefore !== null && { SubmitTimeBefore: Math.round(input.SubmitTimeBefore.getTime() / 1000) }),
|
|
4816
|
+
...(input.JobName != null && { JobName: input.JobName }),
|
|
4817
|
+
...(input.JobStatus != null && { JobStatus: input.JobStatus }),
|
|
4818
|
+
...(input.SubmitTimeAfter != null && { SubmitTimeAfter: Math.round(input.SubmitTimeAfter.getTime() / 1000) }),
|
|
4819
|
+
...(input.SubmitTimeBefore != null && { SubmitTimeBefore: Math.round(input.SubmitTimeBefore.getTime() / 1000) }),
|
|
4825
4820
|
};
|
|
4826
4821
|
};
|
|
4827
4822
|
const serializeAws_json1_1StartDocumentClassificationJobRequest = (input, context) => {
|
|
4828
4823
|
var _a;
|
|
4829
4824
|
return {
|
|
4830
4825
|
ClientRequestToken: (_a = input.ClientRequestToken) !== null && _a !== void 0 ? _a : (0, uuid_1.v4)(),
|
|
4831
|
-
...(input.DataAccessRoleArn
|
|
4832
|
-
|
|
4833
|
-
...(input.
|
|
4834
|
-
input.DocumentClassifierArn !== null && { DocumentClassifierArn: input.DocumentClassifierArn }),
|
|
4835
|
-
...(input.InputDataConfig !== undefined &&
|
|
4836
|
-
input.InputDataConfig !== null && {
|
|
4826
|
+
...(input.DataAccessRoleArn != null && { DataAccessRoleArn: input.DataAccessRoleArn }),
|
|
4827
|
+
...(input.DocumentClassifierArn != null && { DocumentClassifierArn: input.DocumentClassifierArn }),
|
|
4828
|
+
...(input.InputDataConfig != null && {
|
|
4837
4829
|
InputDataConfig: serializeAws_json1_1InputDataConfig(input.InputDataConfig, context),
|
|
4838
4830
|
}),
|
|
4839
|
-
...(input.JobName
|
|
4840
|
-
...(input.OutputDataConfig
|
|
4841
|
-
input.OutputDataConfig !== null && {
|
|
4831
|
+
...(input.JobName != null && { JobName: input.JobName }),
|
|
4832
|
+
...(input.OutputDataConfig != null && {
|
|
4842
4833
|
OutputDataConfig: serializeAws_json1_1OutputDataConfig(input.OutputDataConfig, context),
|
|
4843
4834
|
}),
|
|
4844
|
-
...(input.Tags
|
|
4845
|
-
...(input.VolumeKmsKeyId
|
|
4846
|
-
|
|
4847
|
-
...(input.VpcConfig !== undefined &&
|
|
4848
|
-
input.VpcConfig !== null && { VpcConfig: serializeAws_json1_1VpcConfig(input.VpcConfig, context) }),
|
|
4835
|
+
...(input.Tags != null && { Tags: serializeAws_json1_1TagList(input.Tags, context) }),
|
|
4836
|
+
...(input.VolumeKmsKeyId != null && { VolumeKmsKeyId: input.VolumeKmsKeyId }),
|
|
4837
|
+
...(input.VpcConfig != null && { VpcConfig: serializeAws_json1_1VpcConfig(input.VpcConfig, context) }),
|
|
4849
4838
|
};
|
|
4850
4839
|
};
|
|
4851
4840
|
const serializeAws_json1_1StartDominantLanguageDetectionJobRequest = (input, context) => {
|
|
4852
4841
|
var _a;
|
|
4853
4842
|
return {
|
|
4854
4843
|
ClientRequestToken: (_a = input.ClientRequestToken) !== null && _a !== void 0 ? _a : (0, uuid_1.v4)(),
|
|
4855
|
-
...(input.DataAccessRoleArn
|
|
4856
|
-
|
|
4857
|
-
...(input.InputDataConfig !== undefined &&
|
|
4858
|
-
input.InputDataConfig !== null && {
|
|
4844
|
+
...(input.DataAccessRoleArn != null && { DataAccessRoleArn: input.DataAccessRoleArn }),
|
|
4845
|
+
...(input.InputDataConfig != null && {
|
|
4859
4846
|
InputDataConfig: serializeAws_json1_1InputDataConfig(input.InputDataConfig, context),
|
|
4860
4847
|
}),
|
|
4861
|
-
...(input.JobName
|
|
4862
|
-
...(input.OutputDataConfig
|
|
4863
|
-
input.OutputDataConfig !== null && {
|
|
4848
|
+
...(input.JobName != null && { JobName: input.JobName }),
|
|
4849
|
+
...(input.OutputDataConfig != null && {
|
|
4864
4850
|
OutputDataConfig: serializeAws_json1_1OutputDataConfig(input.OutputDataConfig, context),
|
|
4865
4851
|
}),
|
|
4866
|
-
...(input.Tags
|
|
4867
|
-
...(input.VolumeKmsKeyId
|
|
4868
|
-
|
|
4869
|
-
...(input.VpcConfig !== undefined &&
|
|
4870
|
-
input.VpcConfig !== null && { VpcConfig: serializeAws_json1_1VpcConfig(input.VpcConfig, context) }),
|
|
4852
|
+
...(input.Tags != null && { Tags: serializeAws_json1_1TagList(input.Tags, context) }),
|
|
4853
|
+
...(input.VolumeKmsKeyId != null && { VolumeKmsKeyId: input.VolumeKmsKeyId }),
|
|
4854
|
+
...(input.VpcConfig != null && { VpcConfig: serializeAws_json1_1VpcConfig(input.VpcConfig, context) }),
|
|
4871
4855
|
};
|
|
4872
4856
|
};
|
|
4873
4857
|
const serializeAws_json1_1StartEntitiesDetectionJobRequest = (input, context) => {
|
|
4874
4858
|
var _a;
|
|
4875
4859
|
return {
|
|
4876
4860
|
ClientRequestToken: (_a = input.ClientRequestToken) !== null && _a !== void 0 ? _a : (0, uuid_1.v4)(),
|
|
4877
|
-
...(input.DataAccessRoleArn
|
|
4878
|
-
|
|
4879
|
-
...(input.
|
|
4880
|
-
input.EntityRecognizerArn !== null && { EntityRecognizerArn: input.EntityRecognizerArn }),
|
|
4881
|
-
...(input.InputDataConfig !== undefined &&
|
|
4882
|
-
input.InputDataConfig !== null && {
|
|
4861
|
+
...(input.DataAccessRoleArn != null && { DataAccessRoleArn: input.DataAccessRoleArn }),
|
|
4862
|
+
...(input.EntityRecognizerArn != null && { EntityRecognizerArn: input.EntityRecognizerArn }),
|
|
4863
|
+
...(input.InputDataConfig != null && {
|
|
4883
4864
|
InputDataConfig: serializeAws_json1_1InputDataConfig(input.InputDataConfig, context),
|
|
4884
4865
|
}),
|
|
4885
|
-
...(input.JobName
|
|
4886
|
-
...(input.LanguageCode
|
|
4887
|
-
...(input.OutputDataConfig
|
|
4888
|
-
input.OutputDataConfig !== null && {
|
|
4866
|
+
...(input.JobName != null && { JobName: input.JobName }),
|
|
4867
|
+
...(input.LanguageCode != null && { LanguageCode: input.LanguageCode }),
|
|
4868
|
+
...(input.OutputDataConfig != null && {
|
|
4889
4869
|
OutputDataConfig: serializeAws_json1_1OutputDataConfig(input.OutputDataConfig, context),
|
|
4890
4870
|
}),
|
|
4891
|
-
...(input.Tags
|
|
4892
|
-
...(input.VolumeKmsKeyId
|
|
4893
|
-
|
|
4894
|
-
...(input.VpcConfig !== undefined &&
|
|
4895
|
-
input.VpcConfig !== null && { VpcConfig: serializeAws_json1_1VpcConfig(input.VpcConfig, context) }),
|
|
4871
|
+
...(input.Tags != null && { Tags: serializeAws_json1_1TagList(input.Tags, context) }),
|
|
4872
|
+
...(input.VolumeKmsKeyId != null && { VolumeKmsKeyId: input.VolumeKmsKeyId }),
|
|
4873
|
+
...(input.VpcConfig != null && { VpcConfig: serializeAws_json1_1VpcConfig(input.VpcConfig, context) }),
|
|
4896
4874
|
};
|
|
4897
4875
|
};
|
|
4898
4876
|
const serializeAws_json1_1StartEventsDetectionJobRequest = (input, context) => {
|
|
4899
4877
|
var _a;
|
|
4900
4878
|
return {
|
|
4901
4879
|
ClientRequestToken: (_a = input.ClientRequestToken) !== null && _a !== void 0 ? _a : (0, uuid_1.v4)(),
|
|
4902
|
-
...(input.DataAccessRoleArn
|
|
4903
|
-
|
|
4904
|
-
...(input.InputDataConfig !== undefined &&
|
|
4905
|
-
input.InputDataConfig !== null && {
|
|
4880
|
+
...(input.DataAccessRoleArn != null && { DataAccessRoleArn: input.DataAccessRoleArn }),
|
|
4881
|
+
...(input.InputDataConfig != null && {
|
|
4906
4882
|
InputDataConfig: serializeAws_json1_1InputDataConfig(input.InputDataConfig, context),
|
|
4907
4883
|
}),
|
|
4908
|
-
...(input.JobName
|
|
4909
|
-
...(input.LanguageCode
|
|
4910
|
-
...(input.OutputDataConfig
|
|
4911
|
-
input.OutputDataConfig !== null && {
|
|
4884
|
+
...(input.JobName != null && { JobName: input.JobName }),
|
|
4885
|
+
...(input.LanguageCode != null && { LanguageCode: input.LanguageCode }),
|
|
4886
|
+
...(input.OutputDataConfig != null && {
|
|
4912
4887
|
OutputDataConfig: serializeAws_json1_1OutputDataConfig(input.OutputDataConfig, context),
|
|
4913
4888
|
}),
|
|
4914
|
-
...(input.Tags
|
|
4915
|
-
...(input.TargetEventTypes
|
|
4916
|
-
input.TargetEventTypes !== null && {
|
|
4889
|
+
...(input.Tags != null && { Tags: serializeAws_json1_1TagList(input.Tags, context) }),
|
|
4890
|
+
...(input.TargetEventTypes != null && {
|
|
4917
4891
|
TargetEventTypes: serializeAws_json1_1TargetEventTypes(input.TargetEventTypes, context),
|
|
4918
4892
|
}),
|
|
4919
4893
|
};
|
|
@@ -4922,164 +4896,137 @@ const serializeAws_json1_1StartKeyPhrasesDetectionJobRequest = (input, context)
|
|
|
4922
4896
|
var _a;
|
|
4923
4897
|
return {
|
|
4924
4898
|
ClientRequestToken: (_a = input.ClientRequestToken) !== null && _a !== void 0 ? _a : (0, uuid_1.v4)(),
|
|
4925
|
-
...(input.DataAccessRoleArn
|
|
4926
|
-
|
|
4927
|
-
...(input.InputDataConfig !== undefined &&
|
|
4928
|
-
input.InputDataConfig !== null && {
|
|
4899
|
+
...(input.DataAccessRoleArn != null && { DataAccessRoleArn: input.DataAccessRoleArn }),
|
|
4900
|
+
...(input.InputDataConfig != null && {
|
|
4929
4901
|
InputDataConfig: serializeAws_json1_1InputDataConfig(input.InputDataConfig, context),
|
|
4930
4902
|
}),
|
|
4931
|
-
...(input.JobName
|
|
4932
|
-
...(input.LanguageCode
|
|
4933
|
-
...(input.OutputDataConfig
|
|
4934
|
-
input.OutputDataConfig !== null && {
|
|
4903
|
+
...(input.JobName != null && { JobName: input.JobName }),
|
|
4904
|
+
...(input.LanguageCode != null && { LanguageCode: input.LanguageCode }),
|
|
4905
|
+
...(input.OutputDataConfig != null && {
|
|
4935
4906
|
OutputDataConfig: serializeAws_json1_1OutputDataConfig(input.OutputDataConfig, context),
|
|
4936
4907
|
}),
|
|
4937
|
-
...(input.Tags
|
|
4938
|
-
...(input.VolumeKmsKeyId
|
|
4939
|
-
|
|
4940
|
-
...(input.VpcConfig !== undefined &&
|
|
4941
|
-
input.VpcConfig !== null && { VpcConfig: serializeAws_json1_1VpcConfig(input.VpcConfig, context) }),
|
|
4908
|
+
...(input.Tags != null && { Tags: serializeAws_json1_1TagList(input.Tags, context) }),
|
|
4909
|
+
...(input.VolumeKmsKeyId != null && { VolumeKmsKeyId: input.VolumeKmsKeyId }),
|
|
4910
|
+
...(input.VpcConfig != null && { VpcConfig: serializeAws_json1_1VpcConfig(input.VpcConfig, context) }),
|
|
4942
4911
|
};
|
|
4943
4912
|
};
|
|
4944
4913
|
const serializeAws_json1_1StartPiiEntitiesDetectionJobRequest = (input, context) => {
|
|
4945
4914
|
var _a;
|
|
4946
4915
|
return {
|
|
4947
4916
|
ClientRequestToken: (_a = input.ClientRequestToken) !== null && _a !== void 0 ? _a : (0, uuid_1.v4)(),
|
|
4948
|
-
...(input.DataAccessRoleArn
|
|
4949
|
-
|
|
4950
|
-
...(input.InputDataConfig !== undefined &&
|
|
4951
|
-
input.InputDataConfig !== null && {
|
|
4917
|
+
...(input.DataAccessRoleArn != null && { DataAccessRoleArn: input.DataAccessRoleArn }),
|
|
4918
|
+
...(input.InputDataConfig != null && {
|
|
4952
4919
|
InputDataConfig: serializeAws_json1_1InputDataConfig(input.InputDataConfig, context),
|
|
4953
4920
|
}),
|
|
4954
|
-
...(input.JobName
|
|
4955
|
-
...(input.LanguageCode
|
|
4956
|
-
...(input.Mode
|
|
4957
|
-
...(input.OutputDataConfig
|
|
4958
|
-
input.OutputDataConfig !== null && {
|
|
4921
|
+
...(input.JobName != null && { JobName: input.JobName }),
|
|
4922
|
+
...(input.LanguageCode != null && { LanguageCode: input.LanguageCode }),
|
|
4923
|
+
...(input.Mode != null && { Mode: input.Mode }),
|
|
4924
|
+
...(input.OutputDataConfig != null && {
|
|
4959
4925
|
OutputDataConfig: serializeAws_json1_1OutputDataConfig(input.OutputDataConfig, context),
|
|
4960
4926
|
}),
|
|
4961
|
-
...(input.RedactionConfig
|
|
4962
|
-
input.RedactionConfig !== null && {
|
|
4927
|
+
...(input.RedactionConfig != null && {
|
|
4963
4928
|
RedactionConfig: serializeAws_json1_1RedactionConfig(input.RedactionConfig, context),
|
|
4964
4929
|
}),
|
|
4965
|
-
...(input.Tags
|
|
4930
|
+
...(input.Tags != null && { Tags: serializeAws_json1_1TagList(input.Tags, context) }),
|
|
4966
4931
|
};
|
|
4967
4932
|
};
|
|
4968
4933
|
const serializeAws_json1_1StartSentimentDetectionJobRequest = (input, context) => {
|
|
4969
4934
|
var _a;
|
|
4970
4935
|
return {
|
|
4971
4936
|
ClientRequestToken: (_a = input.ClientRequestToken) !== null && _a !== void 0 ? _a : (0, uuid_1.v4)(),
|
|
4972
|
-
...(input.DataAccessRoleArn
|
|
4973
|
-
|
|
4974
|
-
...(input.InputDataConfig !== undefined &&
|
|
4975
|
-
input.InputDataConfig !== null && {
|
|
4937
|
+
...(input.DataAccessRoleArn != null && { DataAccessRoleArn: input.DataAccessRoleArn }),
|
|
4938
|
+
...(input.InputDataConfig != null && {
|
|
4976
4939
|
InputDataConfig: serializeAws_json1_1InputDataConfig(input.InputDataConfig, context),
|
|
4977
4940
|
}),
|
|
4978
|
-
...(input.JobName
|
|
4979
|
-
...(input.LanguageCode
|
|
4980
|
-
...(input.OutputDataConfig
|
|
4981
|
-
input.OutputDataConfig !== null && {
|
|
4941
|
+
...(input.JobName != null && { JobName: input.JobName }),
|
|
4942
|
+
...(input.LanguageCode != null && { LanguageCode: input.LanguageCode }),
|
|
4943
|
+
...(input.OutputDataConfig != null && {
|
|
4982
4944
|
OutputDataConfig: serializeAws_json1_1OutputDataConfig(input.OutputDataConfig, context),
|
|
4983
4945
|
}),
|
|
4984
|
-
...(input.Tags
|
|
4985
|
-
...(input.VolumeKmsKeyId
|
|
4986
|
-
|
|
4987
|
-
...(input.VpcConfig !== undefined &&
|
|
4988
|
-
input.VpcConfig !== null && { VpcConfig: serializeAws_json1_1VpcConfig(input.VpcConfig, context) }),
|
|
4946
|
+
...(input.Tags != null && { Tags: serializeAws_json1_1TagList(input.Tags, context) }),
|
|
4947
|
+
...(input.VolumeKmsKeyId != null && { VolumeKmsKeyId: input.VolumeKmsKeyId }),
|
|
4948
|
+
...(input.VpcConfig != null && { VpcConfig: serializeAws_json1_1VpcConfig(input.VpcConfig, context) }),
|
|
4989
4949
|
};
|
|
4990
4950
|
};
|
|
4991
4951
|
const serializeAws_json1_1StartTargetedSentimentDetectionJobRequest = (input, context) => {
|
|
4992
4952
|
var _a;
|
|
4993
4953
|
return {
|
|
4994
4954
|
ClientRequestToken: (_a = input.ClientRequestToken) !== null && _a !== void 0 ? _a : (0, uuid_1.v4)(),
|
|
4995
|
-
...(input.DataAccessRoleArn
|
|
4996
|
-
|
|
4997
|
-
...(input.InputDataConfig !== undefined &&
|
|
4998
|
-
input.InputDataConfig !== null && {
|
|
4955
|
+
...(input.DataAccessRoleArn != null && { DataAccessRoleArn: input.DataAccessRoleArn }),
|
|
4956
|
+
...(input.InputDataConfig != null && {
|
|
4999
4957
|
InputDataConfig: serializeAws_json1_1InputDataConfig(input.InputDataConfig, context),
|
|
5000
4958
|
}),
|
|
5001
|
-
...(input.JobName
|
|
5002
|
-
...(input.LanguageCode
|
|
5003
|
-
...(input.OutputDataConfig
|
|
5004
|
-
input.OutputDataConfig !== null && {
|
|
4959
|
+
...(input.JobName != null && { JobName: input.JobName }),
|
|
4960
|
+
...(input.LanguageCode != null && { LanguageCode: input.LanguageCode }),
|
|
4961
|
+
...(input.OutputDataConfig != null && {
|
|
5005
4962
|
OutputDataConfig: serializeAws_json1_1OutputDataConfig(input.OutputDataConfig, context),
|
|
5006
4963
|
}),
|
|
5007
|
-
...(input.Tags
|
|
5008
|
-
...(input.VolumeKmsKeyId
|
|
5009
|
-
|
|
5010
|
-
...(input.VpcConfig !== undefined &&
|
|
5011
|
-
input.VpcConfig !== null && { VpcConfig: serializeAws_json1_1VpcConfig(input.VpcConfig, context) }),
|
|
4964
|
+
...(input.Tags != null && { Tags: serializeAws_json1_1TagList(input.Tags, context) }),
|
|
4965
|
+
...(input.VolumeKmsKeyId != null && { VolumeKmsKeyId: input.VolumeKmsKeyId }),
|
|
4966
|
+
...(input.VpcConfig != null && { VpcConfig: serializeAws_json1_1VpcConfig(input.VpcConfig, context) }),
|
|
5012
4967
|
};
|
|
5013
4968
|
};
|
|
5014
4969
|
const serializeAws_json1_1StartTopicsDetectionJobRequest = (input, context) => {
|
|
5015
4970
|
var _a;
|
|
5016
4971
|
return {
|
|
5017
4972
|
ClientRequestToken: (_a = input.ClientRequestToken) !== null && _a !== void 0 ? _a : (0, uuid_1.v4)(),
|
|
5018
|
-
...(input.DataAccessRoleArn
|
|
5019
|
-
|
|
5020
|
-
...(input.InputDataConfig !== undefined &&
|
|
5021
|
-
input.InputDataConfig !== null && {
|
|
4973
|
+
...(input.DataAccessRoleArn != null && { DataAccessRoleArn: input.DataAccessRoleArn }),
|
|
4974
|
+
...(input.InputDataConfig != null && {
|
|
5022
4975
|
InputDataConfig: serializeAws_json1_1InputDataConfig(input.InputDataConfig, context),
|
|
5023
4976
|
}),
|
|
5024
|
-
...(input.JobName
|
|
5025
|
-
...(input.NumberOfTopics
|
|
5026
|
-
|
|
5027
|
-
...(input.OutputDataConfig !== undefined &&
|
|
5028
|
-
input.OutputDataConfig !== null && {
|
|
4977
|
+
...(input.JobName != null && { JobName: input.JobName }),
|
|
4978
|
+
...(input.NumberOfTopics != null && { NumberOfTopics: input.NumberOfTopics }),
|
|
4979
|
+
...(input.OutputDataConfig != null && {
|
|
5029
4980
|
OutputDataConfig: serializeAws_json1_1OutputDataConfig(input.OutputDataConfig, context),
|
|
5030
4981
|
}),
|
|
5031
|
-
...(input.Tags
|
|
5032
|
-
...(input.VolumeKmsKeyId
|
|
5033
|
-
|
|
5034
|
-
...(input.VpcConfig !== undefined &&
|
|
5035
|
-
input.VpcConfig !== null && { VpcConfig: serializeAws_json1_1VpcConfig(input.VpcConfig, context) }),
|
|
4982
|
+
...(input.Tags != null && { Tags: serializeAws_json1_1TagList(input.Tags, context) }),
|
|
4983
|
+
...(input.VolumeKmsKeyId != null && { VolumeKmsKeyId: input.VolumeKmsKeyId }),
|
|
4984
|
+
...(input.VpcConfig != null && { VpcConfig: serializeAws_json1_1VpcConfig(input.VpcConfig, context) }),
|
|
5036
4985
|
};
|
|
5037
4986
|
};
|
|
5038
4987
|
const serializeAws_json1_1StopDominantLanguageDetectionJobRequest = (input, context) => {
|
|
5039
4988
|
return {
|
|
5040
|
-
...(input.JobId
|
|
4989
|
+
...(input.JobId != null && { JobId: input.JobId }),
|
|
5041
4990
|
};
|
|
5042
4991
|
};
|
|
5043
4992
|
const serializeAws_json1_1StopEntitiesDetectionJobRequest = (input, context) => {
|
|
5044
4993
|
return {
|
|
5045
|
-
...(input.JobId
|
|
4994
|
+
...(input.JobId != null && { JobId: input.JobId }),
|
|
5046
4995
|
};
|
|
5047
4996
|
};
|
|
5048
4997
|
const serializeAws_json1_1StopEventsDetectionJobRequest = (input, context) => {
|
|
5049
4998
|
return {
|
|
5050
|
-
...(input.JobId
|
|
4999
|
+
...(input.JobId != null && { JobId: input.JobId }),
|
|
5051
5000
|
};
|
|
5052
5001
|
};
|
|
5053
5002
|
const serializeAws_json1_1StopKeyPhrasesDetectionJobRequest = (input, context) => {
|
|
5054
5003
|
return {
|
|
5055
|
-
...(input.JobId
|
|
5004
|
+
...(input.JobId != null && { JobId: input.JobId }),
|
|
5056
5005
|
};
|
|
5057
5006
|
};
|
|
5058
5007
|
const serializeAws_json1_1StopPiiEntitiesDetectionJobRequest = (input, context) => {
|
|
5059
5008
|
return {
|
|
5060
|
-
...(input.JobId
|
|
5009
|
+
...(input.JobId != null && { JobId: input.JobId }),
|
|
5061
5010
|
};
|
|
5062
5011
|
};
|
|
5063
5012
|
const serializeAws_json1_1StopSentimentDetectionJobRequest = (input, context) => {
|
|
5064
5013
|
return {
|
|
5065
|
-
...(input.JobId
|
|
5014
|
+
...(input.JobId != null && { JobId: input.JobId }),
|
|
5066
5015
|
};
|
|
5067
5016
|
};
|
|
5068
5017
|
const serializeAws_json1_1StopTargetedSentimentDetectionJobRequest = (input, context) => {
|
|
5069
5018
|
return {
|
|
5070
|
-
...(input.JobId
|
|
5019
|
+
...(input.JobId != null && { JobId: input.JobId }),
|
|
5071
5020
|
};
|
|
5072
5021
|
};
|
|
5073
5022
|
const serializeAws_json1_1StopTrainingDocumentClassifierRequest = (input, context) => {
|
|
5074
5023
|
return {
|
|
5075
|
-
...(input.DocumentClassifierArn
|
|
5076
|
-
input.DocumentClassifierArn !== null && { DocumentClassifierArn: input.DocumentClassifierArn }),
|
|
5024
|
+
...(input.DocumentClassifierArn != null && { DocumentClassifierArn: input.DocumentClassifierArn }),
|
|
5077
5025
|
};
|
|
5078
5026
|
};
|
|
5079
5027
|
const serializeAws_json1_1StopTrainingEntityRecognizerRequest = (input, context) => {
|
|
5080
5028
|
return {
|
|
5081
|
-
...(input.EntityRecognizerArn
|
|
5082
|
-
input.EntityRecognizerArn !== null && { EntityRecognizerArn: input.EntityRecognizerArn }),
|
|
5029
|
+
...(input.EntityRecognizerArn != null && { EntityRecognizerArn: input.EntityRecognizerArn }),
|
|
5083
5030
|
};
|
|
5084
5031
|
};
|
|
5085
5032
|
const serializeAws_json1_1Subnets = (input, context) => {
|
|
@@ -5094,8 +5041,8 @@ const serializeAws_json1_1Subnets = (input, context) => {
|
|
|
5094
5041
|
};
|
|
5095
5042
|
const serializeAws_json1_1Tag = (input, context) => {
|
|
5096
5043
|
return {
|
|
5097
|
-
...(input.Key
|
|
5098
|
-
...(input.Value
|
|
5044
|
+
...(input.Key != null && { Key: input.Key }),
|
|
5045
|
+
...(input.Value != null && { Value: input.Value }),
|
|
5099
5046
|
};
|
|
5100
5047
|
};
|
|
5101
5048
|
const serializeAws_json1_1TagKeyList = (input, context) => {
|
|
@@ -5120,18 +5067,16 @@ const serializeAws_json1_1TagList = (input, context) => {
|
|
|
5120
5067
|
};
|
|
5121
5068
|
const serializeAws_json1_1TagResourceRequest = (input, context) => {
|
|
5122
5069
|
return {
|
|
5123
|
-
...(input.ResourceArn
|
|
5124
|
-
...(input.Tags
|
|
5070
|
+
...(input.ResourceArn != null && { ResourceArn: input.ResourceArn }),
|
|
5071
|
+
...(input.Tags != null && { Tags: serializeAws_json1_1TagList(input.Tags, context) }),
|
|
5125
5072
|
};
|
|
5126
5073
|
};
|
|
5127
5074
|
const serializeAws_json1_1TargetedSentimentDetectionJobFilter = (input, context) => {
|
|
5128
5075
|
return {
|
|
5129
|
-
...(input.JobName
|
|
5130
|
-
...(input.JobStatus
|
|
5131
|
-
...(input.SubmitTimeAfter
|
|
5132
|
-
|
|
5133
|
-
...(input.SubmitTimeBefore !== undefined &&
|
|
5134
|
-
input.SubmitTimeBefore !== null && { SubmitTimeBefore: Math.round(input.SubmitTimeBefore.getTime() / 1000) }),
|
|
5076
|
+
...(input.JobName != null && { JobName: input.JobName }),
|
|
5077
|
+
...(input.JobStatus != null && { JobStatus: input.JobStatus }),
|
|
5078
|
+
...(input.SubmitTimeAfter != null && { SubmitTimeAfter: Math.round(input.SubmitTimeAfter.getTime() / 1000) }),
|
|
5079
|
+
...(input.SubmitTimeBefore != null && { SubmitTimeBefore: Math.round(input.SubmitTimeBefore.getTime() / 1000) }),
|
|
5135
5080
|
};
|
|
5136
5081
|
};
|
|
5137
5082
|
const serializeAws_json1_1TargetEventTypes = (input, context) => {
|
|
@@ -5146,40 +5091,32 @@ const serializeAws_json1_1TargetEventTypes = (input, context) => {
|
|
|
5146
5091
|
};
|
|
5147
5092
|
const serializeAws_json1_1TopicsDetectionJobFilter = (input, context) => {
|
|
5148
5093
|
return {
|
|
5149
|
-
...(input.JobName
|
|
5150
|
-
...(input.JobStatus
|
|
5151
|
-
...(input.SubmitTimeAfter
|
|
5152
|
-
|
|
5153
|
-
...(input.SubmitTimeBefore !== undefined &&
|
|
5154
|
-
input.SubmitTimeBefore !== null && { SubmitTimeBefore: Math.round(input.SubmitTimeBefore.getTime() / 1000) }),
|
|
5094
|
+
...(input.JobName != null && { JobName: input.JobName }),
|
|
5095
|
+
...(input.JobStatus != null && { JobStatus: input.JobStatus }),
|
|
5096
|
+
...(input.SubmitTimeAfter != null && { SubmitTimeAfter: Math.round(input.SubmitTimeAfter.getTime() / 1000) }),
|
|
5097
|
+
...(input.SubmitTimeBefore != null && { SubmitTimeBefore: Math.round(input.SubmitTimeBefore.getTime() / 1000) }),
|
|
5155
5098
|
};
|
|
5156
5099
|
};
|
|
5157
5100
|
const serializeAws_json1_1UntagResourceRequest = (input, context) => {
|
|
5158
5101
|
return {
|
|
5159
|
-
...(input.ResourceArn
|
|
5160
|
-
...(input.TagKeys
|
|
5161
|
-
input.TagKeys !== null && { TagKeys: serializeAws_json1_1TagKeyList(input.TagKeys, context) }),
|
|
5102
|
+
...(input.ResourceArn != null && { ResourceArn: input.ResourceArn }),
|
|
5103
|
+
...(input.TagKeys != null && { TagKeys: serializeAws_json1_1TagKeyList(input.TagKeys, context) }),
|
|
5162
5104
|
};
|
|
5163
5105
|
};
|
|
5164
5106
|
const serializeAws_json1_1UpdateEndpointRequest = (input, context) => {
|
|
5165
5107
|
return {
|
|
5166
|
-
...(input.DesiredDataAccessRoleArn
|
|
5167
|
-
|
|
5168
|
-
...(input.
|
|
5169
|
-
|
|
5170
|
-
...(input.DesiredModelArn !== undefined &&
|
|
5171
|
-
input.DesiredModelArn !== null && { DesiredModelArn: input.DesiredModelArn }),
|
|
5172
|
-
...(input.EndpointArn !== undefined && input.EndpointArn !== null && { EndpointArn: input.EndpointArn }),
|
|
5108
|
+
...(input.DesiredDataAccessRoleArn != null && { DesiredDataAccessRoleArn: input.DesiredDataAccessRoleArn }),
|
|
5109
|
+
...(input.DesiredInferenceUnits != null && { DesiredInferenceUnits: input.DesiredInferenceUnits }),
|
|
5110
|
+
...(input.DesiredModelArn != null && { DesiredModelArn: input.DesiredModelArn }),
|
|
5111
|
+
...(input.EndpointArn != null && { EndpointArn: input.EndpointArn }),
|
|
5173
5112
|
};
|
|
5174
5113
|
};
|
|
5175
5114
|
const serializeAws_json1_1VpcConfig = (input, context) => {
|
|
5176
5115
|
return {
|
|
5177
|
-
...(input.SecurityGroupIds
|
|
5178
|
-
input.SecurityGroupIds !== null && {
|
|
5116
|
+
...(input.SecurityGroupIds != null && {
|
|
5179
5117
|
SecurityGroupIds: serializeAws_json1_1SecurityGroupIds(input.SecurityGroupIds, context),
|
|
5180
5118
|
}),
|
|
5181
|
-
...(input.Subnets
|
|
5182
|
-
input.Subnets !== null && { Subnets: serializeAws_json1_1Subnets(input.Subnets, context) }),
|
|
5119
|
+
...(input.Subnets != null && { Subnets: serializeAws_json1_1Subnets(input.Subnets, context) }),
|
|
5183
5120
|
};
|
|
5184
5121
|
};
|
|
5185
5122
|
const deserializeAws_json1_1AttributeNamesList = (output, context) => {
|
|
@@ -5196,7 +5133,7 @@ const deserializeAws_json1_1AttributeNamesList = (output, context) => {
|
|
|
5196
5133
|
const deserializeAws_json1_1AugmentedManifestsListItem = (output, context) => {
|
|
5197
5134
|
return {
|
|
5198
5135
|
AnnotationDataS3Uri: (0, smithy_client_1.expectString)(output.AnnotationDataS3Uri),
|
|
5199
|
-
AttributeNames: output.AttributeNames
|
|
5136
|
+
AttributeNames: output.AttributeNames != null
|
|
5200
5137
|
? deserializeAws_json1_1AttributeNamesList(output.AttributeNames, context)
|
|
5201
5138
|
: undefined,
|
|
5202
5139
|
DocumentType: (0, smithy_client_1.expectString)(output.DocumentType),
|
|
@@ -5208,35 +5145,27 @@ const deserializeAws_json1_1AugmentedManifestsListItem = (output, context) => {
|
|
|
5208
5145
|
const deserializeAws_json1_1BatchDetectDominantLanguageItemResult = (output, context) => {
|
|
5209
5146
|
return {
|
|
5210
5147
|
Index: (0, smithy_client_1.expectInt32)(output.Index),
|
|
5211
|
-
Languages: output.Languages
|
|
5212
|
-
? deserializeAws_json1_1ListOfDominantLanguages(output.Languages, context)
|
|
5213
|
-
: undefined,
|
|
5148
|
+
Languages: output.Languages != null ? deserializeAws_json1_1ListOfDominantLanguages(output.Languages, context) : undefined,
|
|
5214
5149
|
};
|
|
5215
5150
|
};
|
|
5216
5151
|
const deserializeAws_json1_1BatchDetectDominantLanguageResponse = (output, context) => {
|
|
5217
5152
|
return {
|
|
5218
|
-
ErrorList: output.ErrorList
|
|
5219
|
-
|
|
5220
|
-
: undefined,
|
|
5221
|
-
ResultList: output.ResultList !== undefined && output.ResultList !== null
|
|
5153
|
+
ErrorList: output.ErrorList != null ? deserializeAws_json1_1BatchItemErrorList(output.ErrorList, context) : undefined,
|
|
5154
|
+
ResultList: output.ResultList != null
|
|
5222
5155
|
? deserializeAws_json1_1ListOfDetectDominantLanguageResult(output.ResultList, context)
|
|
5223
5156
|
: undefined,
|
|
5224
5157
|
};
|
|
5225
5158
|
};
|
|
5226
5159
|
const deserializeAws_json1_1BatchDetectEntitiesItemResult = (output, context) => {
|
|
5227
5160
|
return {
|
|
5228
|
-
Entities: output.Entities
|
|
5229
|
-
? deserializeAws_json1_1ListOfEntities(output.Entities, context)
|
|
5230
|
-
: undefined,
|
|
5161
|
+
Entities: output.Entities != null ? deserializeAws_json1_1ListOfEntities(output.Entities, context) : undefined,
|
|
5231
5162
|
Index: (0, smithy_client_1.expectInt32)(output.Index),
|
|
5232
5163
|
};
|
|
5233
5164
|
};
|
|
5234
5165
|
const deserializeAws_json1_1BatchDetectEntitiesResponse = (output, context) => {
|
|
5235
5166
|
return {
|
|
5236
|
-
ErrorList: output.ErrorList
|
|
5237
|
-
|
|
5238
|
-
: undefined,
|
|
5239
|
-
ResultList: output.ResultList !== undefined && output.ResultList !== null
|
|
5167
|
+
ErrorList: output.ErrorList != null ? deserializeAws_json1_1BatchItemErrorList(output.ErrorList, context) : undefined,
|
|
5168
|
+
ResultList: output.ResultList != null
|
|
5240
5169
|
? deserializeAws_json1_1ListOfDetectEntitiesResult(output.ResultList, context)
|
|
5241
5170
|
: undefined,
|
|
5242
5171
|
};
|
|
@@ -5244,17 +5173,13 @@ const deserializeAws_json1_1BatchDetectEntitiesResponse = (output, context) => {
|
|
|
5244
5173
|
const deserializeAws_json1_1BatchDetectKeyPhrasesItemResult = (output, context) => {
|
|
5245
5174
|
return {
|
|
5246
5175
|
Index: (0, smithy_client_1.expectInt32)(output.Index),
|
|
5247
|
-
KeyPhrases: output.KeyPhrases
|
|
5248
|
-
? deserializeAws_json1_1ListOfKeyPhrases(output.KeyPhrases, context)
|
|
5249
|
-
: undefined,
|
|
5176
|
+
KeyPhrases: output.KeyPhrases != null ? deserializeAws_json1_1ListOfKeyPhrases(output.KeyPhrases, context) : undefined,
|
|
5250
5177
|
};
|
|
5251
5178
|
};
|
|
5252
5179
|
const deserializeAws_json1_1BatchDetectKeyPhrasesResponse = (output, context) => {
|
|
5253
5180
|
return {
|
|
5254
|
-
ErrorList: output.ErrorList
|
|
5255
|
-
|
|
5256
|
-
: undefined,
|
|
5257
|
-
ResultList: output.ResultList !== undefined && output.ResultList !== null
|
|
5181
|
+
ErrorList: output.ErrorList != null ? deserializeAws_json1_1BatchItemErrorList(output.ErrorList, context) : undefined,
|
|
5182
|
+
ResultList: output.ResultList != null
|
|
5258
5183
|
? deserializeAws_json1_1ListOfDetectKeyPhrasesResult(output.ResultList, context)
|
|
5259
5184
|
: undefined,
|
|
5260
5185
|
};
|
|
@@ -5263,17 +5188,13 @@ const deserializeAws_json1_1BatchDetectSentimentItemResult = (output, context) =
|
|
|
5263
5188
|
return {
|
|
5264
5189
|
Index: (0, smithy_client_1.expectInt32)(output.Index),
|
|
5265
5190
|
Sentiment: (0, smithy_client_1.expectString)(output.Sentiment),
|
|
5266
|
-
SentimentScore: output.SentimentScore
|
|
5267
|
-
? deserializeAws_json1_1SentimentScore(output.SentimentScore, context)
|
|
5268
|
-
: undefined,
|
|
5191
|
+
SentimentScore: output.SentimentScore != null ? deserializeAws_json1_1SentimentScore(output.SentimentScore, context) : undefined,
|
|
5269
5192
|
};
|
|
5270
5193
|
};
|
|
5271
5194
|
const deserializeAws_json1_1BatchDetectSentimentResponse = (output, context) => {
|
|
5272
5195
|
return {
|
|
5273
|
-
ErrorList: output.ErrorList
|
|
5274
|
-
|
|
5275
|
-
: undefined,
|
|
5276
|
-
ResultList: output.ResultList !== undefined && output.ResultList !== null
|
|
5196
|
+
ErrorList: output.ErrorList != null ? deserializeAws_json1_1BatchItemErrorList(output.ErrorList, context) : undefined,
|
|
5197
|
+
ResultList: output.ResultList != null
|
|
5277
5198
|
? deserializeAws_json1_1ListOfDetectSentimentResult(output.ResultList, context)
|
|
5278
5199
|
: undefined,
|
|
5279
5200
|
};
|
|
@@ -5281,17 +5202,13 @@ const deserializeAws_json1_1BatchDetectSentimentResponse = (output, context) =>
|
|
|
5281
5202
|
const deserializeAws_json1_1BatchDetectSyntaxItemResult = (output, context) => {
|
|
5282
5203
|
return {
|
|
5283
5204
|
Index: (0, smithy_client_1.expectInt32)(output.Index),
|
|
5284
|
-
SyntaxTokens: output.SyntaxTokens
|
|
5285
|
-
? deserializeAws_json1_1ListOfSyntaxTokens(output.SyntaxTokens, context)
|
|
5286
|
-
: undefined,
|
|
5205
|
+
SyntaxTokens: output.SyntaxTokens != null ? deserializeAws_json1_1ListOfSyntaxTokens(output.SyntaxTokens, context) : undefined,
|
|
5287
5206
|
};
|
|
5288
5207
|
};
|
|
5289
5208
|
const deserializeAws_json1_1BatchDetectSyntaxResponse = (output, context) => {
|
|
5290
5209
|
return {
|
|
5291
|
-
ErrorList: output.ErrorList
|
|
5292
|
-
|
|
5293
|
-
: undefined,
|
|
5294
|
-
ResultList: output.ResultList !== undefined && output.ResultList !== null
|
|
5210
|
+
ErrorList: output.ErrorList != null ? deserializeAws_json1_1BatchItemErrorList(output.ErrorList, context) : undefined,
|
|
5211
|
+
ResultList: output.ResultList != null
|
|
5295
5212
|
? deserializeAws_json1_1ListOfDetectSyntaxResult(output.ResultList, context)
|
|
5296
5213
|
: undefined,
|
|
5297
5214
|
};
|
|
@@ -5333,7 +5250,7 @@ const deserializeAws_json1_1ClassifierEvaluationMetrics = (output, context) => {
|
|
|
5333
5250
|
};
|
|
5334
5251
|
const deserializeAws_json1_1ClassifierMetadata = (output, context) => {
|
|
5335
5252
|
return {
|
|
5336
|
-
EvaluationMetrics: output.EvaluationMetrics
|
|
5253
|
+
EvaluationMetrics: output.EvaluationMetrics != null
|
|
5337
5254
|
? deserializeAws_json1_1ClassifierEvaluationMetrics(output.EvaluationMetrics, context)
|
|
5338
5255
|
: undefined,
|
|
5339
5256
|
NumberOfLabels: (0, smithy_client_1.expectInt32)(output.NumberOfLabels),
|
|
@@ -5343,12 +5260,8 @@ const deserializeAws_json1_1ClassifierMetadata = (output, context) => {
|
|
|
5343
5260
|
};
|
|
5344
5261
|
const deserializeAws_json1_1ClassifyDocumentResponse = (output, context) => {
|
|
5345
5262
|
return {
|
|
5346
|
-
Classes: output.Classes
|
|
5347
|
-
|
|
5348
|
-
: undefined,
|
|
5349
|
-
Labels: output.Labels !== undefined && output.Labels !== null
|
|
5350
|
-
? deserializeAws_json1_1ListOfLabels(output.Labels, context)
|
|
5351
|
-
: undefined,
|
|
5263
|
+
Classes: output.Classes != null ? deserializeAws_json1_1ListOfClasses(output.Classes, context) : undefined,
|
|
5264
|
+
Labels: output.Labels != null ? deserializeAws_json1_1ListOfLabels(output.Labels, context) : undefined,
|
|
5352
5265
|
};
|
|
5353
5266
|
};
|
|
5354
5267
|
const deserializeAws_json1_1ConcurrentModificationException = (output, context) => {
|
|
@@ -5358,9 +5271,7 @@ const deserializeAws_json1_1ConcurrentModificationException = (output, context)
|
|
|
5358
5271
|
};
|
|
5359
5272
|
const deserializeAws_json1_1ContainsPiiEntitiesResponse = (output, context) => {
|
|
5360
5273
|
return {
|
|
5361
|
-
Labels: output.Labels
|
|
5362
|
-
? deserializeAws_json1_1ListOfEntityLabels(output.Labels, context)
|
|
5363
|
-
: undefined,
|
|
5274
|
+
Labels: output.Labels != null ? deserializeAws_json1_1ListOfEntityLabels(output.Labels, context) : undefined,
|
|
5364
5275
|
};
|
|
5365
5276
|
};
|
|
5366
5277
|
const deserializeAws_json1_1CreateDocumentClassifierResponse = (output, context) => {
|
|
@@ -5392,74 +5303,73 @@ const deserializeAws_json1_1DeleteResourcePolicyResponse = (output, context) =>
|
|
|
5392
5303
|
};
|
|
5393
5304
|
const deserializeAws_json1_1DescribeDocumentClassificationJobResponse = (output, context) => {
|
|
5394
5305
|
return {
|
|
5395
|
-
DocumentClassificationJobProperties: output.DocumentClassificationJobProperties
|
|
5306
|
+
DocumentClassificationJobProperties: output.DocumentClassificationJobProperties != null
|
|
5396
5307
|
? deserializeAws_json1_1DocumentClassificationJobProperties(output.DocumentClassificationJobProperties, context)
|
|
5397
5308
|
: undefined,
|
|
5398
5309
|
};
|
|
5399
5310
|
};
|
|
5400
5311
|
const deserializeAws_json1_1DescribeDocumentClassifierResponse = (output, context) => {
|
|
5401
5312
|
return {
|
|
5402
|
-
DocumentClassifierProperties: output.DocumentClassifierProperties
|
|
5313
|
+
DocumentClassifierProperties: output.DocumentClassifierProperties != null
|
|
5403
5314
|
? deserializeAws_json1_1DocumentClassifierProperties(output.DocumentClassifierProperties, context)
|
|
5404
5315
|
: undefined,
|
|
5405
5316
|
};
|
|
5406
5317
|
};
|
|
5407
5318
|
const deserializeAws_json1_1DescribeDominantLanguageDetectionJobResponse = (output, context) => {
|
|
5408
5319
|
return {
|
|
5409
|
-
DominantLanguageDetectionJobProperties: output.DominantLanguageDetectionJobProperties
|
|
5410
|
-
output.DominantLanguageDetectionJobProperties !== null
|
|
5320
|
+
DominantLanguageDetectionJobProperties: output.DominantLanguageDetectionJobProperties != null
|
|
5411
5321
|
? deserializeAws_json1_1DominantLanguageDetectionJobProperties(output.DominantLanguageDetectionJobProperties, context)
|
|
5412
5322
|
: undefined,
|
|
5413
5323
|
};
|
|
5414
5324
|
};
|
|
5415
5325
|
const deserializeAws_json1_1DescribeEndpointResponse = (output, context) => {
|
|
5416
5326
|
return {
|
|
5417
|
-
EndpointProperties: output.EndpointProperties
|
|
5327
|
+
EndpointProperties: output.EndpointProperties != null
|
|
5418
5328
|
? deserializeAws_json1_1EndpointProperties(output.EndpointProperties, context)
|
|
5419
5329
|
: undefined,
|
|
5420
5330
|
};
|
|
5421
5331
|
};
|
|
5422
5332
|
const deserializeAws_json1_1DescribeEntitiesDetectionJobResponse = (output, context) => {
|
|
5423
5333
|
return {
|
|
5424
|
-
EntitiesDetectionJobProperties: output.EntitiesDetectionJobProperties
|
|
5334
|
+
EntitiesDetectionJobProperties: output.EntitiesDetectionJobProperties != null
|
|
5425
5335
|
? deserializeAws_json1_1EntitiesDetectionJobProperties(output.EntitiesDetectionJobProperties, context)
|
|
5426
5336
|
: undefined,
|
|
5427
5337
|
};
|
|
5428
5338
|
};
|
|
5429
5339
|
const deserializeAws_json1_1DescribeEntityRecognizerResponse = (output, context) => {
|
|
5430
5340
|
return {
|
|
5431
|
-
EntityRecognizerProperties: output.EntityRecognizerProperties
|
|
5341
|
+
EntityRecognizerProperties: output.EntityRecognizerProperties != null
|
|
5432
5342
|
? deserializeAws_json1_1EntityRecognizerProperties(output.EntityRecognizerProperties, context)
|
|
5433
5343
|
: undefined,
|
|
5434
5344
|
};
|
|
5435
5345
|
};
|
|
5436
5346
|
const deserializeAws_json1_1DescribeEventsDetectionJobResponse = (output, context) => {
|
|
5437
5347
|
return {
|
|
5438
|
-
EventsDetectionJobProperties: output.EventsDetectionJobProperties
|
|
5348
|
+
EventsDetectionJobProperties: output.EventsDetectionJobProperties != null
|
|
5439
5349
|
? deserializeAws_json1_1EventsDetectionJobProperties(output.EventsDetectionJobProperties, context)
|
|
5440
5350
|
: undefined,
|
|
5441
5351
|
};
|
|
5442
5352
|
};
|
|
5443
5353
|
const deserializeAws_json1_1DescribeKeyPhrasesDetectionJobResponse = (output, context) => {
|
|
5444
5354
|
return {
|
|
5445
|
-
KeyPhrasesDetectionJobProperties: output.KeyPhrasesDetectionJobProperties
|
|
5355
|
+
KeyPhrasesDetectionJobProperties: output.KeyPhrasesDetectionJobProperties != null
|
|
5446
5356
|
? deserializeAws_json1_1KeyPhrasesDetectionJobProperties(output.KeyPhrasesDetectionJobProperties, context)
|
|
5447
5357
|
: undefined,
|
|
5448
5358
|
};
|
|
5449
5359
|
};
|
|
5450
5360
|
const deserializeAws_json1_1DescribePiiEntitiesDetectionJobResponse = (output, context) => {
|
|
5451
5361
|
return {
|
|
5452
|
-
PiiEntitiesDetectionJobProperties: output.PiiEntitiesDetectionJobProperties
|
|
5362
|
+
PiiEntitiesDetectionJobProperties: output.PiiEntitiesDetectionJobProperties != null
|
|
5453
5363
|
? deserializeAws_json1_1PiiEntitiesDetectionJobProperties(output.PiiEntitiesDetectionJobProperties, context)
|
|
5454
5364
|
: undefined,
|
|
5455
5365
|
};
|
|
5456
5366
|
};
|
|
5457
5367
|
const deserializeAws_json1_1DescribeResourcePolicyResponse = (output, context) => {
|
|
5458
5368
|
return {
|
|
5459
|
-
CreationTime: output.CreationTime
|
|
5369
|
+
CreationTime: output.CreationTime != null
|
|
5460
5370
|
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.CreationTime)))
|
|
5461
5371
|
: undefined,
|
|
5462
|
-
LastModifiedTime: output.LastModifiedTime
|
|
5372
|
+
LastModifiedTime: output.LastModifiedTime != null
|
|
5463
5373
|
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.LastModifiedTime)))
|
|
5464
5374
|
: undefined,
|
|
5465
5375
|
PolicyRevisionId: (0, smithy_client_1.expectString)(output.PolicyRevisionId),
|
|
@@ -5468,67 +5378,54 @@ const deserializeAws_json1_1DescribeResourcePolicyResponse = (output, context) =
|
|
|
5468
5378
|
};
|
|
5469
5379
|
const deserializeAws_json1_1DescribeSentimentDetectionJobResponse = (output, context) => {
|
|
5470
5380
|
return {
|
|
5471
|
-
SentimentDetectionJobProperties: output.SentimentDetectionJobProperties
|
|
5381
|
+
SentimentDetectionJobProperties: output.SentimentDetectionJobProperties != null
|
|
5472
5382
|
? deserializeAws_json1_1SentimentDetectionJobProperties(output.SentimentDetectionJobProperties, context)
|
|
5473
5383
|
: undefined,
|
|
5474
5384
|
};
|
|
5475
5385
|
};
|
|
5476
5386
|
const deserializeAws_json1_1DescribeTargetedSentimentDetectionJobResponse = (output, context) => {
|
|
5477
5387
|
return {
|
|
5478
|
-
TargetedSentimentDetectionJobProperties: output.TargetedSentimentDetectionJobProperties
|
|
5479
|
-
output.TargetedSentimentDetectionJobProperties !== null
|
|
5388
|
+
TargetedSentimentDetectionJobProperties: output.TargetedSentimentDetectionJobProperties != null
|
|
5480
5389
|
? deserializeAws_json1_1TargetedSentimentDetectionJobProperties(output.TargetedSentimentDetectionJobProperties, context)
|
|
5481
5390
|
: undefined,
|
|
5482
5391
|
};
|
|
5483
5392
|
};
|
|
5484
5393
|
const deserializeAws_json1_1DescribeTopicsDetectionJobResponse = (output, context) => {
|
|
5485
5394
|
return {
|
|
5486
|
-
TopicsDetectionJobProperties: output.TopicsDetectionJobProperties
|
|
5395
|
+
TopicsDetectionJobProperties: output.TopicsDetectionJobProperties != null
|
|
5487
5396
|
? deserializeAws_json1_1TopicsDetectionJobProperties(output.TopicsDetectionJobProperties, context)
|
|
5488
5397
|
: undefined,
|
|
5489
5398
|
};
|
|
5490
5399
|
};
|
|
5491
5400
|
const deserializeAws_json1_1DetectDominantLanguageResponse = (output, context) => {
|
|
5492
5401
|
return {
|
|
5493
|
-
Languages: output.Languages
|
|
5494
|
-
? deserializeAws_json1_1ListOfDominantLanguages(output.Languages, context)
|
|
5495
|
-
: undefined,
|
|
5402
|
+
Languages: output.Languages != null ? deserializeAws_json1_1ListOfDominantLanguages(output.Languages, context) : undefined,
|
|
5496
5403
|
};
|
|
5497
5404
|
};
|
|
5498
5405
|
const deserializeAws_json1_1DetectEntitiesResponse = (output, context) => {
|
|
5499
5406
|
return {
|
|
5500
|
-
Entities: output.Entities
|
|
5501
|
-
? deserializeAws_json1_1ListOfEntities(output.Entities, context)
|
|
5502
|
-
: undefined,
|
|
5407
|
+
Entities: output.Entities != null ? deserializeAws_json1_1ListOfEntities(output.Entities, context) : undefined,
|
|
5503
5408
|
};
|
|
5504
5409
|
};
|
|
5505
5410
|
const deserializeAws_json1_1DetectKeyPhrasesResponse = (output, context) => {
|
|
5506
5411
|
return {
|
|
5507
|
-
KeyPhrases: output.KeyPhrases
|
|
5508
|
-
? deserializeAws_json1_1ListOfKeyPhrases(output.KeyPhrases, context)
|
|
5509
|
-
: undefined,
|
|
5412
|
+
KeyPhrases: output.KeyPhrases != null ? deserializeAws_json1_1ListOfKeyPhrases(output.KeyPhrases, context) : undefined,
|
|
5510
5413
|
};
|
|
5511
5414
|
};
|
|
5512
5415
|
const deserializeAws_json1_1DetectPiiEntitiesResponse = (output, context) => {
|
|
5513
5416
|
return {
|
|
5514
|
-
Entities: output.Entities
|
|
5515
|
-
? deserializeAws_json1_1ListOfPiiEntities(output.Entities, context)
|
|
5516
|
-
: undefined,
|
|
5417
|
+
Entities: output.Entities != null ? deserializeAws_json1_1ListOfPiiEntities(output.Entities, context) : undefined,
|
|
5517
5418
|
};
|
|
5518
5419
|
};
|
|
5519
5420
|
const deserializeAws_json1_1DetectSentimentResponse = (output, context) => {
|
|
5520
5421
|
return {
|
|
5521
5422
|
Sentiment: (0, smithy_client_1.expectString)(output.Sentiment),
|
|
5522
|
-
SentimentScore: output.SentimentScore
|
|
5523
|
-
? deserializeAws_json1_1SentimentScore(output.SentimentScore, context)
|
|
5524
|
-
: undefined,
|
|
5423
|
+
SentimentScore: output.SentimentScore != null ? deserializeAws_json1_1SentimentScore(output.SentimentScore, context) : undefined,
|
|
5525
5424
|
};
|
|
5526
5425
|
};
|
|
5527
5426
|
const deserializeAws_json1_1DetectSyntaxResponse = (output, context) => {
|
|
5528
5427
|
return {
|
|
5529
|
-
SyntaxTokens: output.SyntaxTokens
|
|
5530
|
-
? deserializeAws_json1_1ListOfSyntaxTokens(output.SyntaxTokens, context)
|
|
5531
|
-
: undefined,
|
|
5428
|
+
SyntaxTokens: output.SyntaxTokens != null ? deserializeAws_json1_1ListOfSyntaxTokens(output.SyntaxTokens, context) : undefined,
|
|
5532
5429
|
};
|
|
5533
5430
|
};
|
|
5534
5431
|
const deserializeAws_json1_1DocumentClass = (output, context) => {
|
|
@@ -5541,10 +5438,8 @@ const deserializeAws_json1_1DocumentClassificationJobProperties = (output, conte
|
|
|
5541
5438
|
return {
|
|
5542
5439
|
DataAccessRoleArn: (0, smithy_client_1.expectString)(output.DataAccessRoleArn),
|
|
5543
5440
|
DocumentClassifierArn: (0, smithy_client_1.expectString)(output.DocumentClassifierArn),
|
|
5544
|
-
EndTime: output.EndTime
|
|
5545
|
-
|
|
5546
|
-
: undefined,
|
|
5547
|
-
InputDataConfig: output.InputDataConfig !== undefined && output.InputDataConfig !== null
|
|
5441
|
+
EndTime: output.EndTime != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.EndTime))) : undefined,
|
|
5442
|
+
InputDataConfig: output.InputDataConfig != null
|
|
5548
5443
|
? deserializeAws_json1_1InputDataConfig(output.InputDataConfig, context)
|
|
5549
5444
|
: undefined,
|
|
5550
5445
|
JobArn: (0, smithy_client_1.expectString)(output.JobArn),
|
|
@@ -5552,16 +5447,12 @@ const deserializeAws_json1_1DocumentClassificationJobProperties = (output, conte
|
|
|
5552
5447
|
JobName: (0, smithy_client_1.expectString)(output.JobName),
|
|
5553
5448
|
JobStatus: (0, smithy_client_1.expectString)(output.JobStatus),
|
|
5554
5449
|
Message: (0, smithy_client_1.expectString)(output.Message),
|
|
5555
|
-
OutputDataConfig: output.OutputDataConfig
|
|
5450
|
+
OutputDataConfig: output.OutputDataConfig != null
|
|
5556
5451
|
? deserializeAws_json1_1OutputDataConfig(output.OutputDataConfig, context)
|
|
5557
5452
|
: undefined,
|
|
5558
|
-
SubmitTime: output.SubmitTime
|
|
5559
|
-
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.SubmitTime)))
|
|
5560
|
-
: undefined,
|
|
5453
|
+
SubmitTime: output.SubmitTime != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.SubmitTime))) : undefined,
|
|
5561
5454
|
VolumeKmsKeyId: (0, smithy_client_1.expectString)(output.VolumeKmsKeyId),
|
|
5562
|
-
VpcConfig: output.VpcConfig
|
|
5563
|
-
? deserializeAws_json1_1VpcConfig(output.VpcConfig, context)
|
|
5564
|
-
: undefined,
|
|
5455
|
+
VpcConfig: output.VpcConfig != null ? deserializeAws_json1_1VpcConfig(output.VpcConfig, context) : undefined,
|
|
5565
5456
|
};
|
|
5566
5457
|
};
|
|
5567
5458
|
const deserializeAws_json1_1DocumentClassificationJobPropertiesList = (output, context) => {
|
|
@@ -5588,7 +5479,7 @@ const deserializeAws_json1_1DocumentClassifierAugmentedManifestsList = (output,
|
|
|
5588
5479
|
};
|
|
5589
5480
|
const deserializeAws_json1_1DocumentClassifierInputDataConfig = (output, context) => {
|
|
5590
5481
|
return {
|
|
5591
|
-
AugmentedManifests: output.AugmentedManifests
|
|
5482
|
+
AugmentedManifests: output.AugmentedManifests != null
|
|
5592
5483
|
? deserializeAws_json1_1DocumentClassifierAugmentedManifestsList(output.AugmentedManifests, context)
|
|
5593
5484
|
: undefined,
|
|
5594
5485
|
DataFormat: (0, smithy_client_1.expectString)(output.DataFormat),
|
|
@@ -5605,40 +5496,34 @@ const deserializeAws_json1_1DocumentClassifierOutputDataConfig = (output, contex
|
|
|
5605
5496
|
};
|
|
5606
5497
|
const deserializeAws_json1_1DocumentClassifierProperties = (output, context) => {
|
|
5607
5498
|
return {
|
|
5608
|
-
ClassifierMetadata: output.ClassifierMetadata
|
|
5499
|
+
ClassifierMetadata: output.ClassifierMetadata != null
|
|
5609
5500
|
? deserializeAws_json1_1ClassifierMetadata(output.ClassifierMetadata, context)
|
|
5610
5501
|
: undefined,
|
|
5611
5502
|
DataAccessRoleArn: (0, smithy_client_1.expectString)(output.DataAccessRoleArn),
|
|
5612
5503
|
DocumentClassifierArn: (0, smithy_client_1.expectString)(output.DocumentClassifierArn),
|
|
5613
|
-
EndTime: output.EndTime
|
|
5614
|
-
|
|
5615
|
-
: undefined,
|
|
5616
|
-
InputDataConfig: output.InputDataConfig !== undefined && output.InputDataConfig !== null
|
|
5504
|
+
EndTime: output.EndTime != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.EndTime))) : undefined,
|
|
5505
|
+
InputDataConfig: output.InputDataConfig != null
|
|
5617
5506
|
? deserializeAws_json1_1DocumentClassifierInputDataConfig(output.InputDataConfig, context)
|
|
5618
5507
|
: undefined,
|
|
5619
5508
|
LanguageCode: (0, smithy_client_1.expectString)(output.LanguageCode),
|
|
5620
5509
|
Message: (0, smithy_client_1.expectString)(output.Message),
|
|
5621
5510
|
Mode: (0, smithy_client_1.expectString)(output.Mode),
|
|
5622
5511
|
ModelKmsKeyId: (0, smithy_client_1.expectString)(output.ModelKmsKeyId),
|
|
5623
|
-
OutputDataConfig: output.OutputDataConfig
|
|
5512
|
+
OutputDataConfig: output.OutputDataConfig != null
|
|
5624
5513
|
? deserializeAws_json1_1DocumentClassifierOutputDataConfig(output.OutputDataConfig, context)
|
|
5625
5514
|
: undefined,
|
|
5626
5515
|
SourceModelArn: (0, smithy_client_1.expectString)(output.SourceModelArn),
|
|
5627
5516
|
Status: (0, smithy_client_1.expectString)(output.Status),
|
|
5628
|
-
SubmitTime: output.SubmitTime
|
|
5629
|
-
|
|
5630
|
-
: undefined,
|
|
5631
|
-
TrainingEndTime: output.TrainingEndTime !== undefined && output.TrainingEndTime !== null
|
|
5517
|
+
SubmitTime: output.SubmitTime != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.SubmitTime))) : undefined,
|
|
5518
|
+
TrainingEndTime: output.TrainingEndTime != null
|
|
5632
5519
|
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.TrainingEndTime)))
|
|
5633
5520
|
: undefined,
|
|
5634
|
-
TrainingStartTime: output.TrainingStartTime
|
|
5521
|
+
TrainingStartTime: output.TrainingStartTime != null
|
|
5635
5522
|
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.TrainingStartTime)))
|
|
5636
5523
|
: undefined,
|
|
5637
5524
|
VersionName: (0, smithy_client_1.expectString)(output.VersionName),
|
|
5638
5525
|
VolumeKmsKeyId: (0, smithy_client_1.expectString)(output.VolumeKmsKeyId),
|
|
5639
|
-
VpcConfig: output.VpcConfig
|
|
5640
|
-
? deserializeAws_json1_1VpcConfig(output.VpcConfig, context)
|
|
5641
|
-
: undefined,
|
|
5526
|
+
VpcConfig: output.VpcConfig != null ? deserializeAws_json1_1VpcConfig(output.VpcConfig, context) : undefined,
|
|
5642
5527
|
};
|
|
5643
5528
|
};
|
|
5644
5529
|
const deserializeAws_json1_1DocumentClassifierPropertiesList = (output, context) => {
|
|
@@ -5666,7 +5551,7 @@ const deserializeAws_json1_1DocumentClassifierSummariesList = (output, context)
|
|
|
5666
5551
|
const deserializeAws_json1_1DocumentClassifierSummary = (output, context) => {
|
|
5667
5552
|
return {
|
|
5668
5553
|
DocumentClassifierName: (0, smithy_client_1.expectString)(output.DocumentClassifierName),
|
|
5669
|
-
LatestVersionCreatedAt: output.LatestVersionCreatedAt
|
|
5554
|
+
LatestVersionCreatedAt: output.LatestVersionCreatedAt != null
|
|
5670
5555
|
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.LatestVersionCreatedAt)))
|
|
5671
5556
|
: undefined,
|
|
5672
5557
|
LatestVersionName: (0, smithy_client_1.expectString)(output.LatestVersionName),
|
|
@@ -5684,7 +5569,7 @@ const deserializeAws_json1_1DocumentReaderConfig = (output, context) => {
|
|
|
5684
5569
|
return {
|
|
5685
5570
|
DocumentReadAction: (0, smithy_client_1.expectString)(output.DocumentReadAction),
|
|
5686
5571
|
DocumentReadMode: (0, smithy_client_1.expectString)(output.DocumentReadMode),
|
|
5687
|
-
FeatureTypes: output.FeatureTypes
|
|
5572
|
+
FeatureTypes: output.FeatureTypes != null
|
|
5688
5573
|
? deserializeAws_json1_1ListOfDocumentReadFeatureTypes(output.FeatureTypes, context)
|
|
5689
5574
|
: undefined,
|
|
5690
5575
|
};
|
|
@@ -5698,10 +5583,8 @@ const deserializeAws_json1_1DominantLanguage = (output, context) => {
|
|
|
5698
5583
|
const deserializeAws_json1_1DominantLanguageDetectionJobProperties = (output, context) => {
|
|
5699
5584
|
return {
|
|
5700
5585
|
DataAccessRoleArn: (0, smithy_client_1.expectString)(output.DataAccessRoleArn),
|
|
5701
|
-
EndTime: output.EndTime
|
|
5702
|
-
|
|
5703
|
-
: undefined,
|
|
5704
|
-
InputDataConfig: output.InputDataConfig !== undefined && output.InputDataConfig !== null
|
|
5586
|
+
EndTime: output.EndTime != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.EndTime))) : undefined,
|
|
5587
|
+
InputDataConfig: output.InputDataConfig != null
|
|
5705
5588
|
? deserializeAws_json1_1InputDataConfig(output.InputDataConfig, context)
|
|
5706
5589
|
: undefined,
|
|
5707
5590
|
JobArn: (0, smithy_client_1.expectString)(output.JobArn),
|
|
@@ -5709,16 +5592,12 @@ const deserializeAws_json1_1DominantLanguageDetectionJobProperties = (output, co
|
|
|
5709
5592
|
JobName: (0, smithy_client_1.expectString)(output.JobName),
|
|
5710
5593
|
JobStatus: (0, smithy_client_1.expectString)(output.JobStatus),
|
|
5711
5594
|
Message: (0, smithy_client_1.expectString)(output.Message),
|
|
5712
|
-
OutputDataConfig: output.OutputDataConfig
|
|
5595
|
+
OutputDataConfig: output.OutputDataConfig != null
|
|
5713
5596
|
? deserializeAws_json1_1OutputDataConfig(output.OutputDataConfig, context)
|
|
5714
5597
|
: undefined,
|
|
5715
|
-
SubmitTime: output.SubmitTime
|
|
5716
|
-
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.SubmitTime)))
|
|
5717
|
-
: undefined,
|
|
5598
|
+
SubmitTime: output.SubmitTime != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.SubmitTime))) : undefined,
|
|
5718
5599
|
VolumeKmsKeyId: (0, smithy_client_1.expectString)(output.VolumeKmsKeyId),
|
|
5719
|
-
VpcConfig: output.VpcConfig
|
|
5720
|
-
? deserializeAws_json1_1VpcConfig(output.VpcConfig, context)
|
|
5721
|
-
: undefined,
|
|
5600
|
+
VpcConfig: output.VpcConfig != null ? deserializeAws_json1_1VpcConfig(output.VpcConfig, context) : undefined,
|
|
5722
5601
|
};
|
|
5723
5602
|
};
|
|
5724
5603
|
const deserializeAws_json1_1DominantLanguageDetectionJobPropertiesList = (output, context) => {
|
|
@@ -5734,7 +5613,7 @@ const deserializeAws_json1_1DominantLanguageDetectionJobPropertiesList = (output
|
|
|
5734
5613
|
};
|
|
5735
5614
|
const deserializeAws_json1_1EndpointProperties = (output, context) => {
|
|
5736
5615
|
return {
|
|
5737
|
-
CreationTime: output.CreationTime
|
|
5616
|
+
CreationTime: output.CreationTime != null
|
|
5738
5617
|
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.CreationTime)))
|
|
5739
5618
|
: undefined,
|
|
5740
5619
|
CurrentInferenceUnits: (0, smithy_client_1.expectInt32)(output.CurrentInferenceUnits),
|
|
@@ -5743,7 +5622,7 @@ const deserializeAws_json1_1EndpointProperties = (output, context) => {
|
|
|
5743
5622
|
DesiredInferenceUnits: (0, smithy_client_1.expectInt32)(output.DesiredInferenceUnits),
|
|
5744
5623
|
DesiredModelArn: (0, smithy_client_1.expectString)(output.DesiredModelArn),
|
|
5745
5624
|
EndpointArn: (0, smithy_client_1.expectString)(output.EndpointArn),
|
|
5746
|
-
LastModifiedTime: output.LastModifiedTime
|
|
5625
|
+
LastModifiedTime: output.LastModifiedTime != null
|
|
5747
5626
|
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.LastModifiedTime)))
|
|
5748
5627
|
: undefined,
|
|
5749
5628
|
Message: (0, smithy_client_1.expectString)(output.Message),
|
|
@@ -5765,11 +5644,9 @@ const deserializeAws_json1_1EndpointPropertiesList = (output, context) => {
|
|
|
5765
5644
|
const deserializeAws_json1_1EntitiesDetectionJobProperties = (output, context) => {
|
|
5766
5645
|
return {
|
|
5767
5646
|
DataAccessRoleArn: (0, smithy_client_1.expectString)(output.DataAccessRoleArn),
|
|
5768
|
-
EndTime: output.EndTime
|
|
5769
|
-
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.EndTime)))
|
|
5770
|
-
: undefined,
|
|
5647
|
+
EndTime: output.EndTime != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.EndTime))) : undefined,
|
|
5771
5648
|
EntityRecognizerArn: (0, smithy_client_1.expectString)(output.EntityRecognizerArn),
|
|
5772
|
-
InputDataConfig: output.InputDataConfig
|
|
5649
|
+
InputDataConfig: output.InputDataConfig != null
|
|
5773
5650
|
? deserializeAws_json1_1InputDataConfig(output.InputDataConfig, context)
|
|
5774
5651
|
: undefined,
|
|
5775
5652
|
JobArn: (0, smithy_client_1.expectString)(output.JobArn),
|
|
@@ -5778,16 +5655,12 @@ const deserializeAws_json1_1EntitiesDetectionJobProperties = (output, context) =
|
|
|
5778
5655
|
JobStatus: (0, smithy_client_1.expectString)(output.JobStatus),
|
|
5779
5656
|
LanguageCode: (0, smithy_client_1.expectString)(output.LanguageCode),
|
|
5780
5657
|
Message: (0, smithy_client_1.expectString)(output.Message),
|
|
5781
|
-
OutputDataConfig: output.OutputDataConfig
|
|
5658
|
+
OutputDataConfig: output.OutputDataConfig != null
|
|
5782
5659
|
? deserializeAws_json1_1OutputDataConfig(output.OutputDataConfig, context)
|
|
5783
5660
|
: undefined,
|
|
5784
|
-
SubmitTime: output.SubmitTime
|
|
5785
|
-
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.SubmitTime)))
|
|
5786
|
-
: undefined,
|
|
5661
|
+
SubmitTime: output.SubmitTime != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.SubmitTime))) : undefined,
|
|
5787
5662
|
VolumeKmsKeyId: (0, smithy_client_1.expectString)(output.VolumeKmsKeyId),
|
|
5788
|
-
VpcConfig: output.VpcConfig
|
|
5789
|
-
? deserializeAws_json1_1VpcConfig(output.VpcConfig, context)
|
|
5790
|
-
: undefined,
|
|
5663
|
+
VpcConfig: output.VpcConfig != null ? deserializeAws_json1_1VpcConfig(output.VpcConfig, context) : undefined,
|
|
5791
5664
|
};
|
|
5792
5665
|
};
|
|
5793
5666
|
const deserializeAws_json1_1EntitiesDetectionJobPropertiesList = (output, context) => {
|
|
@@ -5854,30 +5727,26 @@ const deserializeAws_json1_1EntityRecognizerEvaluationMetrics = (output, context
|
|
|
5854
5727
|
};
|
|
5855
5728
|
const deserializeAws_json1_1EntityRecognizerInputDataConfig = (output, context) => {
|
|
5856
5729
|
return {
|
|
5857
|
-
Annotations: output.Annotations
|
|
5730
|
+
Annotations: output.Annotations != null
|
|
5858
5731
|
? deserializeAws_json1_1EntityRecognizerAnnotations(output.Annotations, context)
|
|
5859
5732
|
: undefined,
|
|
5860
|
-
AugmentedManifests: output.AugmentedManifests
|
|
5733
|
+
AugmentedManifests: output.AugmentedManifests != null
|
|
5861
5734
|
? deserializeAws_json1_1EntityRecognizerAugmentedManifestsList(output.AugmentedManifests, context)
|
|
5862
5735
|
: undefined,
|
|
5863
5736
|
DataFormat: (0, smithy_client_1.expectString)(output.DataFormat),
|
|
5864
|
-
Documents: output.Documents
|
|
5865
|
-
|
|
5866
|
-
: undefined,
|
|
5867
|
-
EntityList: output.EntityList !== undefined && output.EntityList !== null
|
|
5737
|
+
Documents: output.Documents != null ? deserializeAws_json1_1EntityRecognizerDocuments(output.Documents, context) : undefined,
|
|
5738
|
+
EntityList: output.EntityList != null
|
|
5868
5739
|
? deserializeAws_json1_1EntityRecognizerEntityList(output.EntityList, context)
|
|
5869
5740
|
: undefined,
|
|
5870
|
-
EntityTypes: output.EntityTypes
|
|
5871
|
-
? deserializeAws_json1_1EntityTypesList(output.EntityTypes, context)
|
|
5872
|
-
: undefined,
|
|
5741
|
+
EntityTypes: output.EntityTypes != null ? deserializeAws_json1_1EntityTypesList(output.EntityTypes, context) : undefined,
|
|
5873
5742
|
};
|
|
5874
5743
|
};
|
|
5875
5744
|
const deserializeAws_json1_1EntityRecognizerMetadata = (output, context) => {
|
|
5876
5745
|
return {
|
|
5877
|
-
EntityTypes: output.EntityTypes
|
|
5746
|
+
EntityTypes: output.EntityTypes != null
|
|
5878
5747
|
? deserializeAws_json1_1EntityRecognizerMetadataEntityTypesList(output.EntityTypes, context)
|
|
5879
5748
|
: undefined,
|
|
5880
|
-
EvaluationMetrics: output.EvaluationMetrics
|
|
5749
|
+
EvaluationMetrics: output.EvaluationMetrics != null
|
|
5881
5750
|
? deserializeAws_json1_1EntityRecognizerEvaluationMetrics(output.EvaluationMetrics, context)
|
|
5882
5751
|
: undefined,
|
|
5883
5752
|
NumberOfTestDocuments: (0, smithy_client_1.expectInt32)(output.NumberOfTestDocuments),
|
|
@@ -5897,7 +5766,7 @@ const deserializeAws_json1_1EntityRecognizerMetadataEntityTypesList = (output, c
|
|
|
5897
5766
|
};
|
|
5898
5767
|
const deserializeAws_json1_1EntityRecognizerMetadataEntityTypesListItem = (output, context) => {
|
|
5899
5768
|
return {
|
|
5900
|
-
EvaluationMetrics: output.EvaluationMetrics
|
|
5769
|
+
EvaluationMetrics: output.EvaluationMetrics != null
|
|
5901
5770
|
? deserializeAws_json1_1EntityTypesEvaluationMetrics(output.EvaluationMetrics, context)
|
|
5902
5771
|
: undefined,
|
|
5903
5772
|
NumberOfTrainMentions: (0, smithy_client_1.expectInt32)(output.NumberOfTrainMentions),
|
|
@@ -5907,35 +5776,29 @@ const deserializeAws_json1_1EntityRecognizerMetadataEntityTypesListItem = (outpu
|
|
|
5907
5776
|
const deserializeAws_json1_1EntityRecognizerProperties = (output, context) => {
|
|
5908
5777
|
return {
|
|
5909
5778
|
DataAccessRoleArn: (0, smithy_client_1.expectString)(output.DataAccessRoleArn),
|
|
5910
|
-
EndTime: output.EndTime
|
|
5911
|
-
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.EndTime)))
|
|
5912
|
-
: undefined,
|
|
5779
|
+
EndTime: output.EndTime != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.EndTime))) : undefined,
|
|
5913
5780
|
EntityRecognizerArn: (0, smithy_client_1.expectString)(output.EntityRecognizerArn),
|
|
5914
|
-
InputDataConfig: output.InputDataConfig
|
|
5781
|
+
InputDataConfig: output.InputDataConfig != null
|
|
5915
5782
|
? deserializeAws_json1_1EntityRecognizerInputDataConfig(output.InputDataConfig, context)
|
|
5916
5783
|
: undefined,
|
|
5917
5784
|
LanguageCode: (0, smithy_client_1.expectString)(output.LanguageCode),
|
|
5918
5785
|
Message: (0, smithy_client_1.expectString)(output.Message),
|
|
5919
5786
|
ModelKmsKeyId: (0, smithy_client_1.expectString)(output.ModelKmsKeyId),
|
|
5920
|
-
RecognizerMetadata: output.RecognizerMetadata
|
|
5787
|
+
RecognizerMetadata: output.RecognizerMetadata != null
|
|
5921
5788
|
? deserializeAws_json1_1EntityRecognizerMetadata(output.RecognizerMetadata, context)
|
|
5922
5789
|
: undefined,
|
|
5923
5790
|
SourceModelArn: (0, smithy_client_1.expectString)(output.SourceModelArn),
|
|
5924
5791
|
Status: (0, smithy_client_1.expectString)(output.Status),
|
|
5925
|
-
SubmitTime: output.SubmitTime
|
|
5926
|
-
|
|
5927
|
-
: undefined,
|
|
5928
|
-
TrainingEndTime: output.TrainingEndTime !== undefined && output.TrainingEndTime !== null
|
|
5792
|
+
SubmitTime: output.SubmitTime != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.SubmitTime))) : undefined,
|
|
5793
|
+
TrainingEndTime: output.TrainingEndTime != null
|
|
5929
5794
|
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.TrainingEndTime)))
|
|
5930
5795
|
: undefined,
|
|
5931
|
-
TrainingStartTime: output.TrainingStartTime
|
|
5796
|
+
TrainingStartTime: output.TrainingStartTime != null
|
|
5932
5797
|
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.TrainingStartTime)))
|
|
5933
5798
|
: undefined,
|
|
5934
5799
|
VersionName: (0, smithy_client_1.expectString)(output.VersionName),
|
|
5935
5800
|
VolumeKmsKeyId: (0, smithy_client_1.expectString)(output.VolumeKmsKeyId),
|
|
5936
|
-
VpcConfig: output.VpcConfig
|
|
5937
|
-
? deserializeAws_json1_1VpcConfig(output.VpcConfig, context)
|
|
5938
|
-
: undefined,
|
|
5801
|
+
VpcConfig: output.VpcConfig != null ? deserializeAws_json1_1VpcConfig(output.VpcConfig, context) : undefined,
|
|
5939
5802
|
};
|
|
5940
5803
|
};
|
|
5941
5804
|
const deserializeAws_json1_1EntityRecognizerPropertiesList = (output, context) => {
|
|
@@ -5962,7 +5825,7 @@ const deserializeAws_json1_1EntityRecognizerSummariesList = (output, context) =>
|
|
|
5962
5825
|
};
|
|
5963
5826
|
const deserializeAws_json1_1EntityRecognizerSummary = (output, context) => {
|
|
5964
5827
|
return {
|
|
5965
|
-
LatestVersionCreatedAt: output.LatestVersionCreatedAt
|
|
5828
|
+
LatestVersionCreatedAt: output.LatestVersionCreatedAt != null
|
|
5966
5829
|
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.LatestVersionCreatedAt)))
|
|
5967
5830
|
: undefined,
|
|
5968
5831
|
LatestVersionName: (0, smithy_client_1.expectString)(output.LatestVersionName),
|
|
@@ -5997,10 +5860,8 @@ const deserializeAws_json1_1EntityTypesListItem = (output, context) => {
|
|
|
5997
5860
|
const deserializeAws_json1_1EventsDetectionJobProperties = (output, context) => {
|
|
5998
5861
|
return {
|
|
5999
5862
|
DataAccessRoleArn: (0, smithy_client_1.expectString)(output.DataAccessRoleArn),
|
|
6000
|
-
EndTime: output.EndTime
|
|
6001
|
-
|
|
6002
|
-
: undefined,
|
|
6003
|
-
InputDataConfig: output.InputDataConfig !== undefined && output.InputDataConfig !== null
|
|
5863
|
+
EndTime: output.EndTime != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.EndTime))) : undefined,
|
|
5864
|
+
InputDataConfig: output.InputDataConfig != null
|
|
6004
5865
|
? deserializeAws_json1_1InputDataConfig(output.InputDataConfig, context)
|
|
6005
5866
|
: undefined,
|
|
6006
5867
|
JobArn: (0, smithy_client_1.expectString)(output.JobArn),
|
|
@@ -6009,13 +5870,11 @@ const deserializeAws_json1_1EventsDetectionJobProperties = (output, context) =>
|
|
|
6009
5870
|
JobStatus: (0, smithy_client_1.expectString)(output.JobStatus),
|
|
6010
5871
|
LanguageCode: (0, smithy_client_1.expectString)(output.LanguageCode),
|
|
6011
5872
|
Message: (0, smithy_client_1.expectString)(output.Message),
|
|
6012
|
-
OutputDataConfig: output.OutputDataConfig
|
|
5873
|
+
OutputDataConfig: output.OutputDataConfig != null
|
|
6013
5874
|
? deserializeAws_json1_1OutputDataConfig(output.OutputDataConfig, context)
|
|
6014
5875
|
: undefined,
|
|
6015
|
-
SubmitTime: output.SubmitTime
|
|
6016
|
-
|
|
6017
|
-
: undefined,
|
|
6018
|
-
TargetEventTypes: output.TargetEventTypes !== undefined && output.TargetEventTypes !== null
|
|
5876
|
+
SubmitTime: output.SubmitTime != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.SubmitTime))) : undefined,
|
|
5877
|
+
TargetEventTypes: output.TargetEventTypes != null
|
|
6019
5878
|
? deserializeAws_json1_1TargetEventTypes(output.TargetEventTypes, context)
|
|
6020
5879
|
: undefined,
|
|
6021
5880
|
};
|
|
@@ -6038,7 +5897,7 @@ const deserializeAws_json1_1ImportModelResponse = (output, context) => {
|
|
|
6038
5897
|
};
|
|
6039
5898
|
const deserializeAws_json1_1InputDataConfig = (output, context) => {
|
|
6040
5899
|
return {
|
|
6041
|
-
DocumentReaderConfig: output.DocumentReaderConfig
|
|
5900
|
+
DocumentReaderConfig: output.DocumentReaderConfig != null
|
|
6042
5901
|
? deserializeAws_json1_1DocumentReaderConfig(output.DocumentReaderConfig, context)
|
|
6043
5902
|
: undefined,
|
|
6044
5903
|
InputFormat: (0, smithy_client_1.expectString)(output.InputFormat),
|
|
@@ -6076,10 +5935,8 @@ const deserializeAws_json1_1KeyPhrase = (output, context) => {
|
|
|
6076
5935
|
const deserializeAws_json1_1KeyPhrasesDetectionJobProperties = (output, context) => {
|
|
6077
5936
|
return {
|
|
6078
5937
|
DataAccessRoleArn: (0, smithy_client_1.expectString)(output.DataAccessRoleArn),
|
|
6079
|
-
EndTime: output.EndTime
|
|
6080
|
-
|
|
6081
|
-
: undefined,
|
|
6082
|
-
InputDataConfig: output.InputDataConfig !== undefined && output.InputDataConfig !== null
|
|
5938
|
+
EndTime: output.EndTime != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.EndTime))) : undefined,
|
|
5939
|
+
InputDataConfig: output.InputDataConfig != null
|
|
6083
5940
|
? deserializeAws_json1_1InputDataConfig(output.InputDataConfig, context)
|
|
6084
5941
|
: undefined,
|
|
6085
5942
|
JobArn: (0, smithy_client_1.expectString)(output.JobArn),
|
|
@@ -6088,16 +5945,12 @@ const deserializeAws_json1_1KeyPhrasesDetectionJobProperties = (output, context)
|
|
|
6088
5945
|
JobStatus: (0, smithy_client_1.expectString)(output.JobStatus),
|
|
6089
5946
|
LanguageCode: (0, smithy_client_1.expectString)(output.LanguageCode),
|
|
6090
5947
|
Message: (0, smithy_client_1.expectString)(output.Message),
|
|
6091
|
-
OutputDataConfig: output.OutputDataConfig
|
|
5948
|
+
OutputDataConfig: output.OutputDataConfig != null
|
|
6092
5949
|
? deserializeAws_json1_1OutputDataConfig(output.OutputDataConfig, context)
|
|
6093
5950
|
: undefined,
|
|
6094
|
-
SubmitTime: output.SubmitTime
|
|
6095
|
-
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.SubmitTime)))
|
|
6096
|
-
: undefined,
|
|
5951
|
+
SubmitTime: output.SubmitTime != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.SubmitTime))) : undefined,
|
|
6097
5952
|
VolumeKmsKeyId: (0, smithy_client_1.expectString)(output.VolumeKmsKeyId),
|
|
6098
|
-
VpcConfig: output.VpcConfig
|
|
6099
|
-
? deserializeAws_json1_1VpcConfig(output.VpcConfig, context)
|
|
6100
|
-
: undefined,
|
|
5953
|
+
VpcConfig: output.VpcConfig != null ? deserializeAws_json1_1VpcConfig(output.VpcConfig, context) : undefined,
|
|
6101
5954
|
};
|
|
6102
5955
|
};
|
|
6103
5956
|
const deserializeAws_json1_1KeyPhrasesDetectionJobPropertiesList = (output, context) => {
|
|
@@ -6118,8 +5971,7 @@ const deserializeAws_json1_1KmsKeyValidationException = (output, context) => {
|
|
|
6118
5971
|
};
|
|
6119
5972
|
const deserializeAws_json1_1ListDocumentClassificationJobsResponse = (output, context) => {
|
|
6120
5973
|
return {
|
|
6121
|
-
DocumentClassificationJobPropertiesList: output.DocumentClassificationJobPropertiesList
|
|
6122
|
-
output.DocumentClassificationJobPropertiesList !== null
|
|
5974
|
+
DocumentClassificationJobPropertiesList: output.DocumentClassificationJobPropertiesList != null
|
|
6123
5975
|
? deserializeAws_json1_1DocumentClassificationJobPropertiesList(output.DocumentClassificationJobPropertiesList, context)
|
|
6124
5976
|
: undefined,
|
|
6125
5977
|
NextToken: (0, smithy_client_1.expectString)(output.NextToken),
|
|
@@ -6127,7 +5979,7 @@ const deserializeAws_json1_1ListDocumentClassificationJobsResponse = (output, co
|
|
|
6127
5979
|
};
|
|
6128
5980
|
const deserializeAws_json1_1ListDocumentClassifiersResponse = (output, context) => {
|
|
6129
5981
|
return {
|
|
6130
|
-
DocumentClassifierPropertiesList: output.DocumentClassifierPropertiesList
|
|
5982
|
+
DocumentClassifierPropertiesList: output.DocumentClassifierPropertiesList != null
|
|
6131
5983
|
? deserializeAws_json1_1DocumentClassifierPropertiesList(output.DocumentClassifierPropertiesList, context)
|
|
6132
5984
|
: undefined,
|
|
6133
5985
|
NextToken: (0, smithy_client_1.expectString)(output.NextToken),
|
|
@@ -6135,7 +5987,7 @@ const deserializeAws_json1_1ListDocumentClassifiersResponse = (output, context)
|
|
|
6135
5987
|
};
|
|
6136
5988
|
const deserializeAws_json1_1ListDocumentClassifierSummariesResponse = (output, context) => {
|
|
6137
5989
|
return {
|
|
6138
|
-
DocumentClassifierSummariesList: output.DocumentClassifierSummariesList
|
|
5990
|
+
DocumentClassifierSummariesList: output.DocumentClassifierSummariesList != null
|
|
6139
5991
|
? deserializeAws_json1_1DocumentClassifierSummariesList(output.DocumentClassifierSummariesList, context)
|
|
6140
5992
|
: undefined,
|
|
6141
5993
|
NextToken: (0, smithy_client_1.expectString)(output.NextToken),
|
|
@@ -6143,8 +5995,7 @@ const deserializeAws_json1_1ListDocumentClassifierSummariesResponse = (output, c
|
|
|
6143
5995
|
};
|
|
6144
5996
|
const deserializeAws_json1_1ListDominantLanguageDetectionJobsResponse = (output, context) => {
|
|
6145
5997
|
return {
|
|
6146
|
-
DominantLanguageDetectionJobPropertiesList: output.DominantLanguageDetectionJobPropertiesList
|
|
6147
|
-
output.DominantLanguageDetectionJobPropertiesList !== null
|
|
5998
|
+
DominantLanguageDetectionJobPropertiesList: output.DominantLanguageDetectionJobPropertiesList != null
|
|
6148
5999
|
? deserializeAws_json1_1DominantLanguageDetectionJobPropertiesList(output.DominantLanguageDetectionJobPropertiesList, context)
|
|
6149
6000
|
: undefined,
|
|
6150
6001
|
NextToken: (0, smithy_client_1.expectString)(output.NextToken),
|
|
@@ -6152,7 +6003,7 @@ const deserializeAws_json1_1ListDominantLanguageDetectionJobsResponse = (output,
|
|
|
6152
6003
|
};
|
|
6153
6004
|
const deserializeAws_json1_1ListEndpointsResponse = (output, context) => {
|
|
6154
6005
|
return {
|
|
6155
|
-
EndpointPropertiesList: output.EndpointPropertiesList
|
|
6006
|
+
EndpointPropertiesList: output.EndpointPropertiesList != null
|
|
6156
6007
|
? deserializeAws_json1_1EndpointPropertiesList(output.EndpointPropertiesList, context)
|
|
6157
6008
|
: undefined,
|
|
6158
6009
|
NextToken: (0, smithy_client_1.expectString)(output.NextToken),
|
|
@@ -6160,7 +6011,7 @@ const deserializeAws_json1_1ListEndpointsResponse = (output, context) => {
|
|
|
6160
6011
|
};
|
|
6161
6012
|
const deserializeAws_json1_1ListEntitiesDetectionJobsResponse = (output, context) => {
|
|
6162
6013
|
return {
|
|
6163
|
-
EntitiesDetectionJobPropertiesList: output.EntitiesDetectionJobPropertiesList
|
|
6014
|
+
EntitiesDetectionJobPropertiesList: output.EntitiesDetectionJobPropertiesList != null
|
|
6164
6015
|
? deserializeAws_json1_1EntitiesDetectionJobPropertiesList(output.EntitiesDetectionJobPropertiesList, context)
|
|
6165
6016
|
: undefined,
|
|
6166
6017
|
NextToken: (0, smithy_client_1.expectString)(output.NextToken),
|
|
@@ -6168,7 +6019,7 @@ const deserializeAws_json1_1ListEntitiesDetectionJobsResponse = (output, context
|
|
|
6168
6019
|
};
|
|
6169
6020
|
const deserializeAws_json1_1ListEntityRecognizersResponse = (output, context) => {
|
|
6170
6021
|
return {
|
|
6171
|
-
EntityRecognizerPropertiesList: output.EntityRecognizerPropertiesList
|
|
6022
|
+
EntityRecognizerPropertiesList: output.EntityRecognizerPropertiesList != null
|
|
6172
6023
|
? deserializeAws_json1_1EntityRecognizerPropertiesList(output.EntityRecognizerPropertiesList, context)
|
|
6173
6024
|
: undefined,
|
|
6174
6025
|
NextToken: (0, smithy_client_1.expectString)(output.NextToken),
|
|
@@ -6176,7 +6027,7 @@ const deserializeAws_json1_1ListEntityRecognizersResponse = (output, context) =>
|
|
|
6176
6027
|
};
|
|
6177
6028
|
const deserializeAws_json1_1ListEntityRecognizerSummariesResponse = (output, context) => {
|
|
6178
6029
|
return {
|
|
6179
|
-
EntityRecognizerSummariesList: output.EntityRecognizerSummariesList
|
|
6030
|
+
EntityRecognizerSummariesList: output.EntityRecognizerSummariesList != null
|
|
6180
6031
|
? deserializeAws_json1_1EntityRecognizerSummariesList(output.EntityRecognizerSummariesList, context)
|
|
6181
6032
|
: undefined,
|
|
6182
6033
|
NextToken: (0, smithy_client_1.expectString)(output.NextToken),
|
|
@@ -6184,7 +6035,7 @@ const deserializeAws_json1_1ListEntityRecognizerSummariesResponse = (output, con
|
|
|
6184
6035
|
};
|
|
6185
6036
|
const deserializeAws_json1_1ListEventsDetectionJobsResponse = (output, context) => {
|
|
6186
6037
|
return {
|
|
6187
|
-
EventsDetectionJobPropertiesList: output.EventsDetectionJobPropertiesList
|
|
6038
|
+
EventsDetectionJobPropertiesList: output.EventsDetectionJobPropertiesList != null
|
|
6188
6039
|
? deserializeAws_json1_1EventsDetectionJobPropertiesList(output.EventsDetectionJobPropertiesList, context)
|
|
6189
6040
|
: undefined,
|
|
6190
6041
|
NextToken: (0, smithy_client_1.expectString)(output.NextToken),
|
|
@@ -6192,7 +6043,7 @@ const deserializeAws_json1_1ListEventsDetectionJobsResponse = (output, context)
|
|
|
6192
6043
|
};
|
|
6193
6044
|
const deserializeAws_json1_1ListKeyPhrasesDetectionJobsResponse = (output, context) => {
|
|
6194
6045
|
return {
|
|
6195
|
-
KeyPhrasesDetectionJobPropertiesList: output.KeyPhrasesDetectionJobPropertiesList
|
|
6046
|
+
KeyPhrasesDetectionJobPropertiesList: output.KeyPhrasesDetectionJobPropertiesList != null
|
|
6196
6047
|
? deserializeAws_json1_1KeyPhrasesDetectionJobPropertiesList(output.KeyPhrasesDetectionJobPropertiesList, context)
|
|
6197
6048
|
: undefined,
|
|
6198
6049
|
NextToken: (0, smithy_client_1.expectString)(output.NextToken),
|
|
@@ -6366,8 +6217,7 @@ const deserializeAws_json1_1ListOfSyntaxTokens = (output, context) => {
|
|
|
6366
6217
|
const deserializeAws_json1_1ListPiiEntitiesDetectionJobsResponse = (output, context) => {
|
|
6367
6218
|
return {
|
|
6368
6219
|
NextToken: (0, smithy_client_1.expectString)(output.NextToken),
|
|
6369
|
-
PiiEntitiesDetectionJobPropertiesList: output.PiiEntitiesDetectionJobPropertiesList
|
|
6370
|
-
output.PiiEntitiesDetectionJobPropertiesList !== null
|
|
6220
|
+
PiiEntitiesDetectionJobPropertiesList: output.PiiEntitiesDetectionJobPropertiesList != null
|
|
6371
6221
|
? deserializeAws_json1_1PiiEntitiesDetectionJobPropertiesList(output.PiiEntitiesDetectionJobPropertiesList, context)
|
|
6372
6222
|
: undefined,
|
|
6373
6223
|
};
|
|
@@ -6375,7 +6225,7 @@ const deserializeAws_json1_1ListPiiEntitiesDetectionJobsResponse = (output, cont
|
|
|
6375
6225
|
const deserializeAws_json1_1ListSentimentDetectionJobsResponse = (output, context) => {
|
|
6376
6226
|
return {
|
|
6377
6227
|
NextToken: (0, smithy_client_1.expectString)(output.NextToken),
|
|
6378
|
-
SentimentDetectionJobPropertiesList: output.SentimentDetectionJobPropertiesList
|
|
6228
|
+
SentimentDetectionJobPropertiesList: output.SentimentDetectionJobPropertiesList != null
|
|
6379
6229
|
? deserializeAws_json1_1SentimentDetectionJobPropertiesList(output.SentimentDetectionJobPropertiesList, context)
|
|
6380
6230
|
: undefined,
|
|
6381
6231
|
};
|
|
@@ -6383,16 +6233,13 @@ const deserializeAws_json1_1ListSentimentDetectionJobsResponse = (output, contex
|
|
|
6383
6233
|
const deserializeAws_json1_1ListTagsForResourceResponse = (output, context) => {
|
|
6384
6234
|
return {
|
|
6385
6235
|
ResourceArn: (0, smithy_client_1.expectString)(output.ResourceArn),
|
|
6386
|
-
Tags: output.Tags
|
|
6387
|
-
? deserializeAws_json1_1TagList(output.Tags, context)
|
|
6388
|
-
: undefined,
|
|
6236
|
+
Tags: output.Tags != null ? deserializeAws_json1_1TagList(output.Tags, context) : undefined,
|
|
6389
6237
|
};
|
|
6390
6238
|
};
|
|
6391
6239
|
const deserializeAws_json1_1ListTargetedSentimentDetectionJobsResponse = (output, context) => {
|
|
6392
6240
|
return {
|
|
6393
6241
|
NextToken: (0, smithy_client_1.expectString)(output.NextToken),
|
|
6394
|
-
TargetedSentimentDetectionJobPropertiesList: output.TargetedSentimentDetectionJobPropertiesList
|
|
6395
|
-
output.TargetedSentimentDetectionJobPropertiesList !== null
|
|
6242
|
+
TargetedSentimentDetectionJobPropertiesList: output.TargetedSentimentDetectionJobPropertiesList != null
|
|
6396
6243
|
? deserializeAws_json1_1TargetedSentimentDetectionJobPropertiesList(output.TargetedSentimentDetectionJobPropertiesList, context)
|
|
6397
6244
|
: undefined,
|
|
6398
6245
|
};
|
|
@@ -6400,7 +6247,7 @@ const deserializeAws_json1_1ListTargetedSentimentDetectionJobsResponse = (output
|
|
|
6400
6247
|
const deserializeAws_json1_1ListTopicsDetectionJobsResponse = (output, context) => {
|
|
6401
6248
|
return {
|
|
6402
6249
|
NextToken: (0, smithy_client_1.expectString)(output.NextToken),
|
|
6403
|
-
TopicsDetectionJobPropertiesList: output.TopicsDetectionJobPropertiesList
|
|
6250
|
+
TopicsDetectionJobPropertiesList: output.TopicsDetectionJobPropertiesList != null
|
|
6404
6251
|
? deserializeAws_json1_1TopicsDetectionJobPropertiesList(output.TopicsDetectionJobPropertiesList, context)
|
|
6405
6252
|
: undefined,
|
|
6406
6253
|
};
|
|
@@ -6420,10 +6267,8 @@ const deserializeAws_json1_1PartOfSpeechTag = (output, context) => {
|
|
|
6420
6267
|
const deserializeAws_json1_1PiiEntitiesDetectionJobProperties = (output, context) => {
|
|
6421
6268
|
return {
|
|
6422
6269
|
DataAccessRoleArn: (0, smithy_client_1.expectString)(output.DataAccessRoleArn),
|
|
6423
|
-
EndTime: output.EndTime
|
|
6424
|
-
|
|
6425
|
-
: undefined,
|
|
6426
|
-
InputDataConfig: output.InputDataConfig !== undefined && output.InputDataConfig !== null
|
|
6270
|
+
EndTime: output.EndTime != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.EndTime))) : undefined,
|
|
6271
|
+
InputDataConfig: output.InputDataConfig != null
|
|
6427
6272
|
? deserializeAws_json1_1InputDataConfig(output.InputDataConfig, context)
|
|
6428
6273
|
: undefined,
|
|
6429
6274
|
JobArn: (0, smithy_client_1.expectString)(output.JobArn),
|
|
@@ -6433,15 +6278,13 @@ const deserializeAws_json1_1PiiEntitiesDetectionJobProperties = (output, context
|
|
|
6433
6278
|
LanguageCode: (0, smithy_client_1.expectString)(output.LanguageCode),
|
|
6434
6279
|
Message: (0, smithy_client_1.expectString)(output.Message),
|
|
6435
6280
|
Mode: (0, smithy_client_1.expectString)(output.Mode),
|
|
6436
|
-
OutputDataConfig: output.OutputDataConfig
|
|
6281
|
+
OutputDataConfig: output.OutputDataConfig != null
|
|
6437
6282
|
? deserializeAws_json1_1PiiOutputDataConfig(output.OutputDataConfig, context)
|
|
6438
6283
|
: undefined,
|
|
6439
|
-
RedactionConfig: output.RedactionConfig
|
|
6284
|
+
RedactionConfig: output.RedactionConfig != null
|
|
6440
6285
|
? deserializeAws_json1_1RedactionConfig(output.RedactionConfig, context)
|
|
6441
6286
|
: undefined,
|
|
6442
|
-
SubmitTime: output.SubmitTime
|
|
6443
|
-
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.SubmitTime)))
|
|
6444
|
-
: undefined,
|
|
6287
|
+
SubmitTime: output.SubmitTime != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.SubmitTime))) : undefined,
|
|
6445
6288
|
};
|
|
6446
6289
|
};
|
|
6447
6290
|
const deserializeAws_json1_1PiiEntitiesDetectionJobPropertiesList = (output, context) => {
|
|
@@ -6478,7 +6321,7 @@ const deserializeAws_json1_1RedactionConfig = (output, context) => {
|
|
|
6478
6321
|
return {
|
|
6479
6322
|
MaskCharacter: (0, smithy_client_1.expectString)(output.MaskCharacter),
|
|
6480
6323
|
MaskMode: (0, smithy_client_1.expectString)(output.MaskMode),
|
|
6481
|
-
PiiEntityTypes: output.PiiEntityTypes
|
|
6324
|
+
PiiEntityTypes: output.PiiEntityTypes != null
|
|
6482
6325
|
? deserializeAws_json1_1ListOfPiiEntityTypes(output.PiiEntityTypes, context)
|
|
6483
6326
|
: undefined,
|
|
6484
6327
|
};
|
|
@@ -6517,10 +6360,8 @@ const deserializeAws_json1_1SecurityGroupIds = (output, context) => {
|
|
|
6517
6360
|
const deserializeAws_json1_1SentimentDetectionJobProperties = (output, context) => {
|
|
6518
6361
|
return {
|
|
6519
6362
|
DataAccessRoleArn: (0, smithy_client_1.expectString)(output.DataAccessRoleArn),
|
|
6520
|
-
EndTime: output.EndTime
|
|
6521
|
-
|
|
6522
|
-
: undefined,
|
|
6523
|
-
InputDataConfig: output.InputDataConfig !== undefined && output.InputDataConfig !== null
|
|
6363
|
+
EndTime: output.EndTime != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.EndTime))) : undefined,
|
|
6364
|
+
InputDataConfig: output.InputDataConfig != null
|
|
6524
6365
|
? deserializeAws_json1_1InputDataConfig(output.InputDataConfig, context)
|
|
6525
6366
|
: undefined,
|
|
6526
6367
|
JobArn: (0, smithy_client_1.expectString)(output.JobArn),
|
|
@@ -6529,16 +6370,12 @@ const deserializeAws_json1_1SentimentDetectionJobProperties = (output, context)
|
|
|
6529
6370
|
JobStatus: (0, smithy_client_1.expectString)(output.JobStatus),
|
|
6530
6371
|
LanguageCode: (0, smithy_client_1.expectString)(output.LanguageCode),
|
|
6531
6372
|
Message: (0, smithy_client_1.expectString)(output.Message),
|
|
6532
|
-
OutputDataConfig: output.OutputDataConfig
|
|
6373
|
+
OutputDataConfig: output.OutputDataConfig != null
|
|
6533
6374
|
? deserializeAws_json1_1OutputDataConfig(output.OutputDataConfig, context)
|
|
6534
6375
|
: undefined,
|
|
6535
|
-
SubmitTime: output.SubmitTime
|
|
6536
|
-
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.SubmitTime)))
|
|
6537
|
-
: undefined,
|
|
6376
|
+
SubmitTime: output.SubmitTime != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.SubmitTime))) : undefined,
|
|
6538
6377
|
VolumeKmsKeyId: (0, smithy_client_1.expectString)(output.VolumeKmsKeyId),
|
|
6539
|
-
VpcConfig: output.VpcConfig
|
|
6540
|
-
? deserializeAws_json1_1VpcConfig(output.VpcConfig, context)
|
|
6541
|
-
: undefined,
|
|
6378
|
+
VpcConfig: output.VpcConfig != null ? deserializeAws_json1_1VpcConfig(output.VpcConfig, context) : undefined,
|
|
6542
6379
|
};
|
|
6543
6380
|
};
|
|
6544
6381
|
const deserializeAws_json1_1SentimentDetectionJobPropertiesList = (output, context) => {
|
|
@@ -6686,9 +6523,7 @@ const deserializeAws_json1_1SyntaxToken = (output, context) => {
|
|
|
6686
6523
|
return {
|
|
6687
6524
|
BeginOffset: (0, smithy_client_1.expectInt32)(output.BeginOffset),
|
|
6688
6525
|
EndOffset: (0, smithy_client_1.expectInt32)(output.EndOffset),
|
|
6689
|
-
PartOfSpeech: output.PartOfSpeech
|
|
6690
|
-
? deserializeAws_json1_1PartOfSpeechTag(output.PartOfSpeech, context)
|
|
6691
|
-
: undefined,
|
|
6526
|
+
PartOfSpeech: output.PartOfSpeech != null ? deserializeAws_json1_1PartOfSpeechTag(output.PartOfSpeech, context) : undefined,
|
|
6692
6527
|
Text: (0, smithy_client_1.expectString)(output.Text),
|
|
6693
6528
|
TokenId: (0, smithy_client_1.expectInt32)(output.TokenId),
|
|
6694
6529
|
};
|
|
@@ -6716,10 +6551,8 @@ const deserializeAws_json1_1TagResourceResponse = (output, context) => {
|
|
|
6716
6551
|
const deserializeAws_json1_1TargetedSentimentDetectionJobProperties = (output, context) => {
|
|
6717
6552
|
return {
|
|
6718
6553
|
DataAccessRoleArn: (0, smithy_client_1.expectString)(output.DataAccessRoleArn),
|
|
6719
|
-
EndTime: output.EndTime
|
|
6720
|
-
|
|
6721
|
-
: undefined,
|
|
6722
|
-
InputDataConfig: output.InputDataConfig !== undefined && output.InputDataConfig !== null
|
|
6554
|
+
EndTime: output.EndTime != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.EndTime))) : undefined,
|
|
6555
|
+
InputDataConfig: output.InputDataConfig != null
|
|
6723
6556
|
? deserializeAws_json1_1InputDataConfig(output.InputDataConfig, context)
|
|
6724
6557
|
: undefined,
|
|
6725
6558
|
JobArn: (0, smithy_client_1.expectString)(output.JobArn),
|
|
@@ -6728,16 +6561,12 @@ const deserializeAws_json1_1TargetedSentimentDetectionJobProperties = (output, c
|
|
|
6728
6561
|
JobStatus: (0, smithy_client_1.expectString)(output.JobStatus),
|
|
6729
6562
|
LanguageCode: (0, smithy_client_1.expectString)(output.LanguageCode),
|
|
6730
6563
|
Message: (0, smithy_client_1.expectString)(output.Message),
|
|
6731
|
-
OutputDataConfig: output.OutputDataConfig
|
|
6564
|
+
OutputDataConfig: output.OutputDataConfig != null
|
|
6732
6565
|
? deserializeAws_json1_1OutputDataConfig(output.OutputDataConfig, context)
|
|
6733
6566
|
: undefined,
|
|
6734
|
-
SubmitTime: output.SubmitTime
|
|
6735
|
-
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.SubmitTime)))
|
|
6736
|
-
: undefined,
|
|
6567
|
+
SubmitTime: output.SubmitTime != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.SubmitTime))) : undefined,
|
|
6737
6568
|
VolumeKmsKeyId: (0, smithy_client_1.expectString)(output.VolumeKmsKeyId),
|
|
6738
|
-
VpcConfig: output.VpcConfig
|
|
6739
|
-
? deserializeAws_json1_1VpcConfig(output.VpcConfig, context)
|
|
6740
|
-
: undefined,
|
|
6569
|
+
VpcConfig: output.VpcConfig != null ? deserializeAws_json1_1VpcConfig(output.VpcConfig, context) : undefined,
|
|
6741
6570
|
};
|
|
6742
6571
|
};
|
|
6743
6572
|
const deserializeAws_json1_1TargetedSentimentDetectionJobPropertiesList = (output, context) => {
|
|
@@ -6785,10 +6614,8 @@ const deserializeAws_json1_1TooManyTagsException = (output, context) => {
|
|
|
6785
6614
|
const deserializeAws_json1_1TopicsDetectionJobProperties = (output, context) => {
|
|
6786
6615
|
return {
|
|
6787
6616
|
DataAccessRoleArn: (0, smithy_client_1.expectString)(output.DataAccessRoleArn),
|
|
6788
|
-
EndTime: output.EndTime
|
|
6789
|
-
|
|
6790
|
-
: undefined,
|
|
6791
|
-
InputDataConfig: output.InputDataConfig !== undefined && output.InputDataConfig !== null
|
|
6617
|
+
EndTime: output.EndTime != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.EndTime))) : undefined,
|
|
6618
|
+
InputDataConfig: output.InputDataConfig != null
|
|
6792
6619
|
? deserializeAws_json1_1InputDataConfig(output.InputDataConfig, context)
|
|
6793
6620
|
: undefined,
|
|
6794
6621
|
JobArn: (0, smithy_client_1.expectString)(output.JobArn),
|
|
@@ -6797,16 +6624,12 @@ const deserializeAws_json1_1TopicsDetectionJobProperties = (output, context) =>
|
|
|
6797
6624
|
JobStatus: (0, smithy_client_1.expectString)(output.JobStatus),
|
|
6798
6625
|
Message: (0, smithy_client_1.expectString)(output.Message),
|
|
6799
6626
|
NumberOfTopics: (0, smithy_client_1.expectInt32)(output.NumberOfTopics),
|
|
6800
|
-
OutputDataConfig: output.OutputDataConfig
|
|
6627
|
+
OutputDataConfig: output.OutputDataConfig != null
|
|
6801
6628
|
? deserializeAws_json1_1OutputDataConfig(output.OutputDataConfig, context)
|
|
6802
6629
|
: undefined,
|
|
6803
|
-
SubmitTime: output.SubmitTime
|
|
6804
|
-
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.SubmitTime)))
|
|
6805
|
-
: undefined,
|
|
6630
|
+
SubmitTime: output.SubmitTime != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.SubmitTime))) : undefined,
|
|
6806
6631
|
VolumeKmsKeyId: (0, smithy_client_1.expectString)(output.VolumeKmsKeyId),
|
|
6807
|
-
VpcConfig: output.VpcConfig
|
|
6808
|
-
? deserializeAws_json1_1VpcConfig(output.VpcConfig, context)
|
|
6809
|
-
: undefined,
|
|
6632
|
+
VpcConfig: output.VpcConfig != null ? deserializeAws_json1_1VpcConfig(output.VpcConfig, context) : undefined,
|
|
6810
6633
|
};
|
|
6811
6634
|
};
|
|
6812
6635
|
const deserializeAws_json1_1TopicsDetectionJobPropertiesList = (output, context) => {
|
|
@@ -6833,12 +6656,10 @@ const deserializeAws_json1_1UpdateEndpointResponse = (output, context) => {
|
|
|
6833
6656
|
};
|
|
6834
6657
|
const deserializeAws_json1_1VpcConfig = (output, context) => {
|
|
6835
6658
|
return {
|
|
6836
|
-
SecurityGroupIds: output.SecurityGroupIds
|
|
6659
|
+
SecurityGroupIds: output.SecurityGroupIds != null
|
|
6837
6660
|
? deserializeAws_json1_1SecurityGroupIds(output.SecurityGroupIds, context)
|
|
6838
6661
|
: undefined,
|
|
6839
|
-
Subnets: output.Subnets
|
|
6840
|
-
? deserializeAws_json1_1Subnets(output.Subnets, context)
|
|
6841
|
-
: undefined,
|
|
6662
|
+
Subnets: output.Subnets != null ? deserializeAws_json1_1Subnets(output.Subnets, context) : undefined,
|
|
6842
6663
|
};
|
|
6843
6664
|
};
|
|
6844
6665
|
const deserializeMetadata = (output) => {
|
|
@@ -6903,5 +6724,4 @@ const loadRestJsonErrorCode = (output, data) => {
|
|
|
6903
6724
|
if (data["__type"] !== undefined) {
|
|
6904
6725
|
return sanitizeErrorCode(data["__type"]);
|
|
6905
6726
|
}
|
|
6906
|
-
return "";
|
|
6907
6727
|
};
|