@aws-sdk/client-rekognition 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 +706 -986
- package/dist-es/protocols/Aws_json1_1.js +578 -858
- package/package.json +27 -27
|
@@ -671,7 +671,7 @@ export var deserializeAws_json1_1CompareFacesCommand = function (output, context
|
|
|
671
671
|
});
|
|
672
672
|
}); };
|
|
673
673
|
var deserializeAws_json1_1CompareFacesCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
674
|
-
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
674
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
675
675
|
var _c;
|
|
676
676
|
return __generator(this, function (_d) {
|
|
677
677
|
switch (_d.label) {
|
|
@@ -681,7 +681,6 @@ var deserializeAws_json1_1CompareFacesCommandError = function (output, context)
|
|
|
681
681
|
return [4, parseBody(output.body, context)];
|
|
682
682
|
case 1:
|
|
683
683
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
684
|
-
errorCode = "UnknownError";
|
|
685
684
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
686
685
|
_b = errorCode;
|
|
687
686
|
switch (_b) {
|
|
@@ -721,10 +720,12 @@ var deserializeAws_json1_1CompareFacesCommandError = function (output, context)
|
|
|
721
720
|
case 17: throw _d.sent();
|
|
722
721
|
case 18:
|
|
723
722
|
parsedBody = parsedOutput.body;
|
|
723
|
+
$metadata = deserializeMetadata(output);
|
|
724
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
724
725
|
response = new __BaseException({
|
|
725
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
726
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
726
727
|
$fault: "client",
|
|
727
|
-
$metadata:
|
|
728
|
+
$metadata: $metadata,
|
|
728
729
|
});
|
|
729
730
|
throw __decorateServiceException(response, parsedBody);
|
|
730
731
|
}
|
|
@@ -749,7 +750,7 @@ export var deserializeAws_json1_1CreateCollectionCommand = function (output, con
|
|
|
749
750
|
});
|
|
750
751
|
}); };
|
|
751
752
|
var deserializeAws_json1_1CreateCollectionCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
752
|
-
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
753
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
753
754
|
var _c;
|
|
754
755
|
return __generator(this, function (_d) {
|
|
755
756
|
switch (_d.label) {
|
|
@@ -759,7 +760,6 @@ var deserializeAws_json1_1CreateCollectionCommandError = function (output, conte
|
|
|
759
760
|
return [4, parseBody(output.body, context)];
|
|
760
761
|
case 1:
|
|
761
762
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
762
|
-
errorCode = "UnknownError";
|
|
763
763
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
764
764
|
_b = errorCode;
|
|
765
765
|
switch (_b) {
|
|
@@ -795,10 +795,12 @@ var deserializeAws_json1_1CreateCollectionCommandError = function (output, conte
|
|
|
795
795
|
case 15: throw _d.sent();
|
|
796
796
|
case 16:
|
|
797
797
|
parsedBody = parsedOutput.body;
|
|
798
|
+
$metadata = deserializeMetadata(output);
|
|
799
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
798
800
|
response = new __BaseException({
|
|
799
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
801
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
800
802
|
$fault: "client",
|
|
801
|
-
$metadata:
|
|
803
|
+
$metadata: $metadata,
|
|
802
804
|
});
|
|
803
805
|
throw __decorateServiceException(response, parsedBody);
|
|
804
806
|
}
|
|
@@ -823,7 +825,7 @@ export var deserializeAws_json1_1CreateDatasetCommand = function (output, contex
|
|
|
823
825
|
});
|
|
824
826
|
}); };
|
|
825
827
|
var deserializeAws_json1_1CreateDatasetCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
826
|
-
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
828
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
827
829
|
var _c;
|
|
828
830
|
return __generator(this, function (_d) {
|
|
829
831
|
switch (_d.label) {
|
|
@@ -833,7 +835,6 @@ var deserializeAws_json1_1CreateDatasetCommandError = function (output, context)
|
|
|
833
835
|
return [4, parseBody(output.body, context)];
|
|
834
836
|
case 1:
|
|
835
837
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
836
|
-
errorCode = "UnknownError";
|
|
837
838
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
838
839
|
_b = errorCode;
|
|
839
840
|
switch (_b) {
|
|
@@ -877,10 +878,12 @@ var deserializeAws_json1_1CreateDatasetCommandError = function (output, context)
|
|
|
877
878
|
case 19: throw _d.sent();
|
|
878
879
|
case 20:
|
|
879
880
|
parsedBody = parsedOutput.body;
|
|
881
|
+
$metadata = deserializeMetadata(output);
|
|
882
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
880
883
|
response = new __BaseException({
|
|
881
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
884
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
882
885
|
$fault: "client",
|
|
883
|
-
$metadata:
|
|
886
|
+
$metadata: $metadata,
|
|
884
887
|
});
|
|
885
888
|
throw __decorateServiceException(response, parsedBody);
|
|
886
889
|
}
|
|
@@ -905,7 +908,7 @@ export var deserializeAws_json1_1CreateProjectCommand = function (output, contex
|
|
|
905
908
|
});
|
|
906
909
|
}); };
|
|
907
910
|
var deserializeAws_json1_1CreateProjectCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
908
|
-
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
911
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
909
912
|
var _c;
|
|
910
913
|
return __generator(this, function (_d) {
|
|
911
914
|
switch (_d.label) {
|
|
@@ -915,7 +918,6 @@ var deserializeAws_json1_1CreateProjectCommandError = function (output, context)
|
|
|
915
918
|
return [4, parseBody(output.body, context)];
|
|
916
919
|
case 1:
|
|
917
920
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
918
|
-
errorCode = "UnknownError";
|
|
919
921
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
920
922
|
_b = errorCode;
|
|
921
923
|
switch (_b) {
|
|
@@ -951,10 +953,12 @@ var deserializeAws_json1_1CreateProjectCommandError = function (output, context)
|
|
|
951
953
|
case 15: throw _d.sent();
|
|
952
954
|
case 16:
|
|
953
955
|
parsedBody = parsedOutput.body;
|
|
956
|
+
$metadata = deserializeMetadata(output);
|
|
957
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
954
958
|
response = new __BaseException({
|
|
955
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
959
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
956
960
|
$fault: "client",
|
|
957
|
-
$metadata:
|
|
961
|
+
$metadata: $metadata,
|
|
958
962
|
});
|
|
959
963
|
throw __decorateServiceException(response, parsedBody);
|
|
960
964
|
}
|
|
@@ -979,7 +983,7 @@ export var deserializeAws_json1_1CreateProjectVersionCommand = function (output,
|
|
|
979
983
|
});
|
|
980
984
|
}); };
|
|
981
985
|
var deserializeAws_json1_1CreateProjectVersionCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
982
|
-
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
986
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
983
987
|
var _c;
|
|
984
988
|
return __generator(this, function (_d) {
|
|
985
989
|
switch (_d.label) {
|
|
@@ -989,7 +993,6 @@ var deserializeAws_json1_1CreateProjectVersionCommandError = function (output, c
|
|
|
989
993
|
return [4, parseBody(output.body, context)];
|
|
990
994
|
case 1:
|
|
991
995
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
992
|
-
errorCode = "UnknownError";
|
|
993
996
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
994
997
|
_b = errorCode;
|
|
995
998
|
switch (_b) {
|
|
@@ -1033,10 +1036,12 @@ var deserializeAws_json1_1CreateProjectVersionCommandError = function (output, c
|
|
|
1033
1036
|
case 19: throw _d.sent();
|
|
1034
1037
|
case 20:
|
|
1035
1038
|
parsedBody = parsedOutput.body;
|
|
1039
|
+
$metadata = deserializeMetadata(output);
|
|
1040
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1036
1041
|
response = new __BaseException({
|
|
1037
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1042
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1038
1043
|
$fault: "client",
|
|
1039
|
-
$metadata:
|
|
1044
|
+
$metadata: $metadata,
|
|
1040
1045
|
});
|
|
1041
1046
|
throw __decorateServiceException(response, parsedBody);
|
|
1042
1047
|
}
|
|
@@ -1061,7 +1066,7 @@ export var deserializeAws_json1_1CreateStreamProcessorCommand = function (output
|
|
|
1061
1066
|
});
|
|
1062
1067
|
}); };
|
|
1063
1068
|
var deserializeAws_json1_1CreateStreamProcessorCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1064
|
-
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
1069
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
1065
1070
|
var _c;
|
|
1066
1071
|
return __generator(this, function (_d) {
|
|
1067
1072
|
switch (_d.label) {
|
|
@@ -1071,7 +1076,6 @@ var deserializeAws_json1_1CreateStreamProcessorCommandError = function (output,
|
|
|
1071
1076
|
return [4, parseBody(output.body, context)];
|
|
1072
1077
|
case 1:
|
|
1073
1078
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
1074
|
-
errorCode = "UnknownError";
|
|
1075
1079
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1076
1080
|
_b = errorCode;
|
|
1077
1081
|
switch (_b) {
|
|
@@ -1111,10 +1115,12 @@ var deserializeAws_json1_1CreateStreamProcessorCommandError = function (output,
|
|
|
1111
1115
|
case 17: throw _d.sent();
|
|
1112
1116
|
case 18:
|
|
1113
1117
|
parsedBody = parsedOutput.body;
|
|
1118
|
+
$metadata = deserializeMetadata(output);
|
|
1119
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1114
1120
|
response = new __BaseException({
|
|
1115
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1121
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1116
1122
|
$fault: "client",
|
|
1117
|
-
$metadata:
|
|
1123
|
+
$metadata: $metadata,
|
|
1118
1124
|
});
|
|
1119
1125
|
throw __decorateServiceException(response, parsedBody);
|
|
1120
1126
|
}
|
|
@@ -1139,7 +1145,7 @@ export var deserializeAws_json1_1DeleteCollectionCommand = function (output, con
|
|
|
1139
1145
|
});
|
|
1140
1146
|
}); };
|
|
1141
1147
|
var deserializeAws_json1_1DeleteCollectionCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1142
|
-
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
1148
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
1143
1149
|
var _c;
|
|
1144
1150
|
return __generator(this, function (_d) {
|
|
1145
1151
|
switch (_d.label) {
|
|
@@ -1149,7 +1155,6 @@ var deserializeAws_json1_1DeleteCollectionCommandError = function (output, conte
|
|
|
1149
1155
|
return [4, parseBody(output.body, context)];
|
|
1150
1156
|
case 1:
|
|
1151
1157
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
1152
|
-
errorCode = "UnknownError";
|
|
1153
1158
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1154
1159
|
_b = errorCode;
|
|
1155
1160
|
switch (_b) {
|
|
@@ -1181,10 +1186,12 @@ var deserializeAws_json1_1DeleteCollectionCommandError = function (output, conte
|
|
|
1181
1186
|
case 13: throw _d.sent();
|
|
1182
1187
|
case 14:
|
|
1183
1188
|
parsedBody = parsedOutput.body;
|
|
1189
|
+
$metadata = deserializeMetadata(output);
|
|
1190
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1184
1191
|
response = new __BaseException({
|
|
1185
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1192
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1186
1193
|
$fault: "client",
|
|
1187
|
-
$metadata:
|
|
1194
|
+
$metadata: $metadata,
|
|
1188
1195
|
});
|
|
1189
1196
|
throw __decorateServiceException(response, parsedBody);
|
|
1190
1197
|
}
|
|
@@ -1209,7 +1216,7 @@ export var deserializeAws_json1_1DeleteDatasetCommand = function (output, contex
|
|
|
1209
1216
|
});
|
|
1210
1217
|
}); };
|
|
1211
1218
|
var deserializeAws_json1_1DeleteDatasetCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1212
|
-
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
1219
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
1213
1220
|
var _c;
|
|
1214
1221
|
return __generator(this, function (_d) {
|
|
1215
1222
|
switch (_d.label) {
|
|
@@ -1219,7 +1226,6 @@ var deserializeAws_json1_1DeleteDatasetCommandError = function (output, context)
|
|
|
1219
1226
|
return [4, parseBody(output.body, context)];
|
|
1220
1227
|
case 1:
|
|
1221
1228
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
1222
|
-
errorCode = "UnknownError";
|
|
1223
1229
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1224
1230
|
_b = errorCode;
|
|
1225
1231
|
switch (_b) {
|
|
@@ -1259,10 +1265,12 @@ var deserializeAws_json1_1DeleteDatasetCommandError = function (output, context)
|
|
|
1259
1265
|
case 17: throw _d.sent();
|
|
1260
1266
|
case 18:
|
|
1261
1267
|
parsedBody = parsedOutput.body;
|
|
1268
|
+
$metadata = deserializeMetadata(output);
|
|
1269
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1262
1270
|
response = new __BaseException({
|
|
1263
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1271
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1264
1272
|
$fault: "client",
|
|
1265
|
-
$metadata:
|
|
1273
|
+
$metadata: $metadata,
|
|
1266
1274
|
});
|
|
1267
1275
|
throw __decorateServiceException(response, parsedBody);
|
|
1268
1276
|
}
|
|
@@ -1287,7 +1295,7 @@ export var deserializeAws_json1_1DeleteFacesCommand = function (output, context)
|
|
|
1287
1295
|
});
|
|
1288
1296
|
}); };
|
|
1289
1297
|
var deserializeAws_json1_1DeleteFacesCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1290
|
-
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
1298
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
1291
1299
|
var _c;
|
|
1292
1300
|
return __generator(this, function (_d) {
|
|
1293
1301
|
switch (_d.label) {
|
|
@@ -1297,7 +1305,6 @@ var deserializeAws_json1_1DeleteFacesCommandError = function (output, context) {
|
|
|
1297
1305
|
return [4, parseBody(output.body, context)];
|
|
1298
1306
|
case 1:
|
|
1299
1307
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
1300
|
-
errorCode = "UnknownError";
|
|
1301
1308
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1302
1309
|
_b = errorCode;
|
|
1303
1310
|
switch (_b) {
|
|
@@ -1329,10 +1336,12 @@ var deserializeAws_json1_1DeleteFacesCommandError = function (output, context) {
|
|
|
1329
1336
|
case 13: throw _d.sent();
|
|
1330
1337
|
case 14:
|
|
1331
1338
|
parsedBody = parsedOutput.body;
|
|
1339
|
+
$metadata = deserializeMetadata(output);
|
|
1340
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1332
1341
|
response = new __BaseException({
|
|
1333
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1342
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1334
1343
|
$fault: "client",
|
|
1335
|
-
$metadata:
|
|
1344
|
+
$metadata: $metadata,
|
|
1336
1345
|
});
|
|
1337
1346
|
throw __decorateServiceException(response, parsedBody);
|
|
1338
1347
|
}
|
|
@@ -1357,7 +1366,7 @@ export var deserializeAws_json1_1DeleteProjectCommand = function (output, contex
|
|
|
1357
1366
|
});
|
|
1358
1367
|
}); };
|
|
1359
1368
|
var deserializeAws_json1_1DeleteProjectCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1360
|
-
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
1369
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
1361
1370
|
var _c;
|
|
1362
1371
|
return __generator(this, function (_d) {
|
|
1363
1372
|
switch (_d.label) {
|
|
@@ -1367,7 +1376,6 @@ var deserializeAws_json1_1DeleteProjectCommandError = function (output, context)
|
|
|
1367
1376
|
return [4, parseBody(output.body, context)];
|
|
1368
1377
|
case 1:
|
|
1369
1378
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
1370
|
-
errorCode = "UnknownError";
|
|
1371
1379
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1372
1380
|
_b = errorCode;
|
|
1373
1381
|
switch (_b) {
|
|
@@ -1403,10 +1411,12 @@ var deserializeAws_json1_1DeleteProjectCommandError = function (output, context)
|
|
|
1403
1411
|
case 15: throw _d.sent();
|
|
1404
1412
|
case 16:
|
|
1405
1413
|
parsedBody = parsedOutput.body;
|
|
1414
|
+
$metadata = deserializeMetadata(output);
|
|
1415
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1406
1416
|
response = new __BaseException({
|
|
1407
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1417
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1408
1418
|
$fault: "client",
|
|
1409
|
-
$metadata:
|
|
1419
|
+
$metadata: $metadata,
|
|
1410
1420
|
});
|
|
1411
1421
|
throw __decorateServiceException(response, parsedBody);
|
|
1412
1422
|
}
|
|
@@ -1431,7 +1441,7 @@ export var deserializeAws_json1_1DeleteProjectVersionCommand = function (output,
|
|
|
1431
1441
|
});
|
|
1432
1442
|
}); };
|
|
1433
1443
|
var deserializeAws_json1_1DeleteProjectVersionCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1434
|
-
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
1444
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
1435
1445
|
var _c;
|
|
1436
1446
|
return __generator(this, function (_d) {
|
|
1437
1447
|
switch (_d.label) {
|
|
@@ -1441,7 +1451,6 @@ var deserializeAws_json1_1DeleteProjectVersionCommandError = function (output, c
|
|
|
1441
1451
|
return [4, parseBody(output.body, context)];
|
|
1442
1452
|
case 1:
|
|
1443
1453
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
1444
|
-
errorCode = "UnknownError";
|
|
1445
1454
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1446
1455
|
_b = errorCode;
|
|
1447
1456
|
switch (_b) {
|
|
@@ -1477,10 +1486,12 @@ var deserializeAws_json1_1DeleteProjectVersionCommandError = function (output, c
|
|
|
1477
1486
|
case 15: throw _d.sent();
|
|
1478
1487
|
case 16:
|
|
1479
1488
|
parsedBody = parsedOutput.body;
|
|
1489
|
+
$metadata = deserializeMetadata(output);
|
|
1490
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1480
1491
|
response = new __BaseException({
|
|
1481
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1492
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1482
1493
|
$fault: "client",
|
|
1483
|
-
$metadata:
|
|
1494
|
+
$metadata: $metadata,
|
|
1484
1495
|
});
|
|
1485
1496
|
throw __decorateServiceException(response, parsedBody);
|
|
1486
1497
|
}
|
|
@@ -1505,7 +1516,7 @@ export var deserializeAws_json1_1DeleteStreamProcessorCommand = function (output
|
|
|
1505
1516
|
});
|
|
1506
1517
|
}); };
|
|
1507
1518
|
var deserializeAws_json1_1DeleteStreamProcessorCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1508
|
-
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
1519
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
1509
1520
|
var _c;
|
|
1510
1521
|
return __generator(this, function (_d) {
|
|
1511
1522
|
switch (_d.label) {
|
|
@@ -1515,7 +1526,6 @@ var deserializeAws_json1_1DeleteStreamProcessorCommandError = function (output,
|
|
|
1515
1526
|
return [4, parseBody(output.body, context)];
|
|
1516
1527
|
case 1:
|
|
1517
1528
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
1518
|
-
errorCode = "UnknownError";
|
|
1519
1529
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1520
1530
|
_b = errorCode;
|
|
1521
1531
|
switch (_b) {
|
|
@@ -1551,10 +1561,12 @@ var deserializeAws_json1_1DeleteStreamProcessorCommandError = function (output,
|
|
|
1551
1561
|
case 15: throw _d.sent();
|
|
1552
1562
|
case 16:
|
|
1553
1563
|
parsedBody = parsedOutput.body;
|
|
1564
|
+
$metadata = deserializeMetadata(output);
|
|
1565
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1554
1566
|
response = new __BaseException({
|
|
1555
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1567
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1556
1568
|
$fault: "client",
|
|
1557
|
-
$metadata:
|
|
1569
|
+
$metadata: $metadata,
|
|
1558
1570
|
});
|
|
1559
1571
|
throw __decorateServiceException(response, parsedBody);
|
|
1560
1572
|
}
|
|
@@ -1579,7 +1591,7 @@ export var deserializeAws_json1_1DescribeCollectionCommand = function (output, c
|
|
|
1579
1591
|
});
|
|
1580
1592
|
}); };
|
|
1581
1593
|
var deserializeAws_json1_1DescribeCollectionCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1582
|
-
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
1594
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
1583
1595
|
var _c;
|
|
1584
1596
|
return __generator(this, function (_d) {
|
|
1585
1597
|
switch (_d.label) {
|
|
@@ -1589,7 +1601,6 @@ var deserializeAws_json1_1DescribeCollectionCommandError = function (output, con
|
|
|
1589
1601
|
return [4, parseBody(output.body, context)];
|
|
1590
1602
|
case 1:
|
|
1591
1603
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
1592
|
-
errorCode = "UnknownError";
|
|
1593
1604
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1594
1605
|
_b = errorCode;
|
|
1595
1606
|
switch (_b) {
|
|
@@ -1621,10 +1632,12 @@ var deserializeAws_json1_1DescribeCollectionCommandError = function (output, con
|
|
|
1621
1632
|
case 13: throw _d.sent();
|
|
1622
1633
|
case 14:
|
|
1623
1634
|
parsedBody = parsedOutput.body;
|
|
1635
|
+
$metadata = deserializeMetadata(output);
|
|
1636
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1624
1637
|
response = new __BaseException({
|
|
1625
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1638
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1626
1639
|
$fault: "client",
|
|
1627
|
-
$metadata:
|
|
1640
|
+
$metadata: $metadata,
|
|
1628
1641
|
});
|
|
1629
1642
|
throw __decorateServiceException(response, parsedBody);
|
|
1630
1643
|
}
|
|
@@ -1649,7 +1662,7 @@ export var deserializeAws_json1_1DescribeDatasetCommand = function (output, cont
|
|
|
1649
1662
|
});
|
|
1650
1663
|
}); };
|
|
1651
1664
|
var deserializeAws_json1_1DescribeDatasetCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1652
|
-
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
1665
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
1653
1666
|
var _c;
|
|
1654
1667
|
return __generator(this, function (_d) {
|
|
1655
1668
|
switch (_d.label) {
|
|
@@ -1659,7 +1672,6 @@ var deserializeAws_json1_1DescribeDatasetCommandError = function (output, contex
|
|
|
1659
1672
|
return [4, parseBody(output.body, context)];
|
|
1660
1673
|
case 1:
|
|
1661
1674
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
1662
|
-
errorCode = "UnknownError";
|
|
1663
1675
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1664
1676
|
_b = errorCode;
|
|
1665
1677
|
switch (_b) {
|
|
@@ -1691,10 +1703,12 @@ var deserializeAws_json1_1DescribeDatasetCommandError = function (output, contex
|
|
|
1691
1703
|
case 13: throw _d.sent();
|
|
1692
1704
|
case 14:
|
|
1693
1705
|
parsedBody = parsedOutput.body;
|
|
1706
|
+
$metadata = deserializeMetadata(output);
|
|
1707
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1694
1708
|
response = new __BaseException({
|
|
1695
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1709
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1696
1710
|
$fault: "client",
|
|
1697
|
-
$metadata:
|
|
1711
|
+
$metadata: $metadata,
|
|
1698
1712
|
});
|
|
1699
1713
|
throw __decorateServiceException(response, parsedBody);
|
|
1700
1714
|
}
|
|
@@ -1719,7 +1733,7 @@ export var deserializeAws_json1_1DescribeProjectsCommand = function (output, con
|
|
|
1719
1733
|
});
|
|
1720
1734
|
}); };
|
|
1721
1735
|
var deserializeAws_json1_1DescribeProjectsCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1722
|
-
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
1736
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
1723
1737
|
var _c;
|
|
1724
1738
|
return __generator(this, function (_d) {
|
|
1725
1739
|
switch (_d.label) {
|
|
@@ -1729,7 +1743,6 @@ var deserializeAws_json1_1DescribeProjectsCommandError = function (output, conte
|
|
|
1729
1743
|
return [4, parseBody(output.body, context)];
|
|
1730
1744
|
case 1:
|
|
1731
1745
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
1732
|
-
errorCode = "UnknownError";
|
|
1733
1746
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1734
1747
|
_b = errorCode;
|
|
1735
1748
|
switch (_b) {
|
|
@@ -1761,10 +1774,12 @@ var deserializeAws_json1_1DescribeProjectsCommandError = function (output, conte
|
|
|
1761
1774
|
case 13: throw _d.sent();
|
|
1762
1775
|
case 14:
|
|
1763
1776
|
parsedBody = parsedOutput.body;
|
|
1777
|
+
$metadata = deserializeMetadata(output);
|
|
1778
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1764
1779
|
response = new __BaseException({
|
|
1765
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1780
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1766
1781
|
$fault: "client",
|
|
1767
|
-
$metadata:
|
|
1782
|
+
$metadata: $metadata,
|
|
1768
1783
|
});
|
|
1769
1784
|
throw __decorateServiceException(response, parsedBody);
|
|
1770
1785
|
}
|
|
@@ -1789,7 +1804,7 @@ export var deserializeAws_json1_1DescribeProjectVersionsCommand = function (outp
|
|
|
1789
1804
|
});
|
|
1790
1805
|
}); };
|
|
1791
1806
|
var deserializeAws_json1_1DescribeProjectVersionsCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1792
|
-
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
1807
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
1793
1808
|
var _c;
|
|
1794
1809
|
return __generator(this, function (_d) {
|
|
1795
1810
|
switch (_d.label) {
|
|
@@ -1799,7 +1814,6 @@ var deserializeAws_json1_1DescribeProjectVersionsCommandError = function (output
|
|
|
1799
1814
|
return [4, parseBody(output.body, context)];
|
|
1800
1815
|
case 1:
|
|
1801
1816
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
1802
|
-
errorCode = "UnknownError";
|
|
1803
1817
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1804
1818
|
_b = errorCode;
|
|
1805
1819
|
switch (_b) {
|
|
@@ -1835,10 +1849,12 @@ var deserializeAws_json1_1DescribeProjectVersionsCommandError = function (output
|
|
|
1835
1849
|
case 15: throw _d.sent();
|
|
1836
1850
|
case 16:
|
|
1837
1851
|
parsedBody = parsedOutput.body;
|
|
1852
|
+
$metadata = deserializeMetadata(output);
|
|
1853
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1838
1854
|
response = new __BaseException({
|
|
1839
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1855
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1840
1856
|
$fault: "client",
|
|
1841
|
-
$metadata:
|
|
1857
|
+
$metadata: $metadata,
|
|
1842
1858
|
});
|
|
1843
1859
|
throw __decorateServiceException(response, parsedBody);
|
|
1844
1860
|
}
|
|
@@ -1863,7 +1879,7 @@ export var deserializeAws_json1_1DescribeStreamProcessorCommand = function (outp
|
|
|
1863
1879
|
});
|
|
1864
1880
|
}); };
|
|
1865
1881
|
var deserializeAws_json1_1DescribeStreamProcessorCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1866
|
-
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
1882
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
1867
1883
|
var _c;
|
|
1868
1884
|
return __generator(this, function (_d) {
|
|
1869
1885
|
switch (_d.label) {
|
|
@@ -1873,7 +1889,6 @@ var deserializeAws_json1_1DescribeStreamProcessorCommandError = function (output
|
|
|
1873
1889
|
return [4, parseBody(output.body, context)];
|
|
1874
1890
|
case 1:
|
|
1875
1891
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
1876
|
-
errorCode = "UnknownError";
|
|
1877
1892
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1878
1893
|
_b = errorCode;
|
|
1879
1894
|
switch (_b) {
|
|
@@ -1905,10 +1920,12 @@ var deserializeAws_json1_1DescribeStreamProcessorCommandError = function (output
|
|
|
1905
1920
|
case 13: throw _d.sent();
|
|
1906
1921
|
case 14:
|
|
1907
1922
|
parsedBody = parsedOutput.body;
|
|
1923
|
+
$metadata = deserializeMetadata(output);
|
|
1924
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1908
1925
|
response = new __BaseException({
|
|
1909
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1926
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1910
1927
|
$fault: "client",
|
|
1911
|
-
$metadata:
|
|
1928
|
+
$metadata: $metadata,
|
|
1912
1929
|
});
|
|
1913
1930
|
throw __decorateServiceException(response, parsedBody);
|
|
1914
1931
|
}
|
|
@@ -1933,7 +1950,7 @@ export var deserializeAws_json1_1DetectCustomLabelsCommand = function (output, c
|
|
|
1933
1950
|
});
|
|
1934
1951
|
}); };
|
|
1935
1952
|
var deserializeAws_json1_1DetectCustomLabelsCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1936
|
-
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
1953
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
1937
1954
|
var _c;
|
|
1938
1955
|
return __generator(this, function (_d) {
|
|
1939
1956
|
switch (_d.label) {
|
|
@@ -1943,7 +1960,6 @@ var deserializeAws_json1_1DetectCustomLabelsCommandError = function (output, con
|
|
|
1943
1960
|
return [4, parseBody(output.body, context)];
|
|
1944
1961
|
case 1:
|
|
1945
1962
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
1946
|
-
errorCode = "UnknownError";
|
|
1947
1963
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1948
1964
|
_b = errorCode;
|
|
1949
1965
|
switch (_b) {
|
|
@@ -1995,10 +2011,12 @@ var deserializeAws_json1_1DetectCustomLabelsCommandError = function (output, con
|
|
|
1995
2011
|
case 23: throw _d.sent();
|
|
1996
2012
|
case 24:
|
|
1997
2013
|
parsedBody = parsedOutput.body;
|
|
2014
|
+
$metadata = deserializeMetadata(output);
|
|
2015
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1998
2016
|
response = new __BaseException({
|
|
1999
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2017
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2000
2018
|
$fault: "client",
|
|
2001
|
-
$metadata:
|
|
2019
|
+
$metadata: $metadata,
|
|
2002
2020
|
});
|
|
2003
2021
|
throw __decorateServiceException(response, parsedBody);
|
|
2004
2022
|
}
|
|
@@ -2023,7 +2041,7 @@ export var deserializeAws_json1_1DetectFacesCommand = function (output, context)
|
|
|
2023
2041
|
});
|
|
2024
2042
|
}); };
|
|
2025
2043
|
var deserializeAws_json1_1DetectFacesCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2026
|
-
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
2044
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
2027
2045
|
var _c;
|
|
2028
2046
|
return __generator(this, function (_d) {
|
|
2029
2047
|
switch (_d.label) {
|
|
@@ -2033,7 +2051,6 @@ var deserializeAws_json1_1DetectFacesCommandError = function (output, context) {
|
|
|
2033
2051
|
return [4, parseBody(output.body, context)];
|
|
2034
2052
|
case 1:
|
|
2035
2053
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
2036
|
-
errorCode = "UnknownError";
|
|
2037
2054
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2038
2055
|
_b = errorCode;
|
|
2039
2056
|
switch (_b) {
|
|
@@ -2073,10 +2090,12 @@ var deserializeAws_json1_1DetectFacesCommandError = function (output, context) {
|
|
|
2073
2090
|
case 17: throw _d.sent();
|
|
2074
2091
|
case 18:
|
|
2075
2092
|
parsedBody = parsedOutput.body;
|
|
2093
|
+
$metadata = deserializeMetadata(output);
|
|
2094
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2076
2095
|
response = new __BaseException({
|
|
2077
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2096
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2078
2097
|
$fault: "client",
|
|
2079
|
-
$metadata:
|
|
2098
|
+
$metadata: $metadata,
|
|
2080
2099
|
});
|
|
2081
2100
|
throw __decorateServiceException(response, parsedBody);
|
|
2082
2101
|
}
|
|
@@ -2101,7 +2120,7 @@ export var deserializeAws_json1_1DetectLabelsCommand = function (output, context
|
|
|
2101
2120
|
});
|
|
2102
2121
|
}); };
|
|
2103
2122
|
var deserializeAws_json1_1DetectLabelsCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2104
|
-
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
2123
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
2105
2124
|
var _c;
|
|
2106
2125
|
return __generator(this, function (_d) {
|
|
2107
2126
|
switch (_d.label) {
|
|
@@ -2111,7 +2130,6 @@ var deserializeAws_json1_1DetectLabelsCommandError = function (output, context)
|
|
|
2111
2130
|
return [4, parseBody(output.body, context)];
|
|
2112
2131
|
case 1:
|
|
2113
2132
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
2114
|
-
errorCode = "UnknownError";
|
|
2115
2133
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2116
2134
|
_b = errorCode;
|
|
2117
2135
|
switch (_b) {
|
|
@@ -2151,10 +2169,12 @@ var deserializeAws_json1_1DetectLabelsCommandError = function (output, context)
|
|
|
2151
2169
|
case 17: throw _d.sent();
|
|
2152
2170
|
case 18:
|
|
2153
2171
|
parsedBody = parsedOutput.body;
|
|
2172
|
+
$metadata = deserializeMetadata(output);
|
|
2173
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2154
2174
|
response = new __BaseException({
|
|
2155
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2175
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2156
2176
|
$fault: "client",
|
|
2157
|
-
$metadata:
|
|
2177
|
+
$metadata: $metadata,
|
|
2158
2178
|
});
|
|
2159
2179
|
throw __decorateServiceException(response, parsedBody);
|
|
2160
2180
|
}
|
|
@@ -2179,7 +2199,7 @@ export var deserializeAws_json1_1DetectModerationLabelsCommand = function (outpu
|
|
|
2179
2199
|
});
|
|
2180
2200
|
}); };
|
|
2181
2201
|
var deserializeAws_json1_1DetectModerationLabelsCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2182
|
-
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
2202
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
2183
2203
|
var _c;
|
|
2184
2204
|
return __generator(this, function (_d) {
|
|
2185
2205
|
switch (_d.label) {
|
|
@@ -2189,7 +2209,6 @@ var deserializeAws_json1_1DetectModerationLabelsCommandError = function (output,
|
|
|
2189
2209
|
return [4, parseBody(output.body, context)];
|
|
2190
2210
|
case 1:
|
|
2191
2211
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
2192
|
-
errorCode = "UnknownError";
|
|
2193
2212
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2194
2213
|
_b = errorCode;
|
|
2195
2214
|
switch (_b) {
|
|
@@ -2233,10 +2252,12 @@ var deserializeAws_json1_1DetectModerationLabelsCommandError = function (output,
|
|
|
2233
2252
|
case 19: throw _d.sent();
|
|
2234
2253
|
case 20:
|
|
2235
2254
|
parsedBody = parsedOutput.body;
|
|
2255
|
+
$metadata = deserializeMetadata(output);
|
|
2256
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2236
2257
|
response = new __BaseException({
|
|
2237
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2258
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2238
2259
|
$fault: "client",
|
|
2239
|
-
$metadata:
|
|
2260
|
+
$metadata: $metadata,
|
|
2240
2261
|
});
|
|
2241
2262
|
throw __decorateServiceException(response, parsedBody);
|
|
2242
2263
|
}
|
|
@@ -2261,7 +2282,7 @@ export var deserializeAws_json1_1DetectProtectiveEquipmentCommand = function (ou
|
|
|
2261
2282
|
});
|
|
2262
2283
|
}); };
|
|
2263
2284
|
var deserializeAws_json1_1DetectProtectiveEquipmentCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2264
|
-
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
2285
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
2265
2286
|
var _c;
|
|
2266
2287
|
return __generator(this, function (_d) {
|
|
2267
2288
|
switch (_d.label) {
|
|
@@ -2271,7 +2292,6 @@ var deserializeAws_json1_1DetectProtectiveEquipmentCommandError = function (outp
|
|
|
2271
2292
|
return [4, parseBody(output.body, context)];
|
|
2272
2293
|
case 1:
|
|
2273
2294
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
2274
|
-
errorCode = "UnknownError";
|
|
2275
2295
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2276
2296
|
_b = errorCode;
|
|
2277
2297
|
switch (_b) {
|
|
@@ -2311,10 +2331,12 @@ var deserializeAws_json1_1DetectProtectiveEquipmentCommandError = function (outp
|
|
|
2311
2331
|
case 17: throw _d.sent();
|
|
2312
2332
|
case 18:
|
|
2313
2333
|
parsedBody = parsedOutput.body;
|
|
2334
|
+
$metadata = deserializeMetadata(output);
|
|
2335
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2314
2336
|
response = new __BaseException({
|
|
2315
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2337
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2316
2338
|
$fault: "client",
|
|
2317
|
-
$metadata:
|
|
2339
|
+
$metadata: $metadata,
|
|
2318
2340
|
});
|
|
2319
2341
|
throw __decorateServiceException(response, parsedBody);
|
|
2320
2342
|
}
|
|
@@ -2339,7 +2361,7 @@ export var deserializeAws_json1_1DetectTextCommand = function (output, context)
|
|
|
2339
2361
|
});
|
|
2340
2362
|
}); };
|
|
2341
2363
|
var deserializeAws_json1_1DetectTextCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2342
|
-
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
2364
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
2343
2365
|
var _c;
|
|
2344
2366
|
return __generator(this, function (_d) {
|
|
2345
2367
|
switch (_d.label) {
|
|
@@ -2349,7 +2371,6 @@ var deserializeAws_json1_1DetectTextCommandError = function (output, context) {
|
|
|
2349
2371
|
return [4, parseBody(output.body, context)];
|
|
2350
2372
|
case 1:
|
|
2351
2373
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
2352
|
-
errorCode = "UnknownError";
|
|
2353
2374
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2354
2375
|
_b = errorCode;
|
|
2355
2376
|
switch (_b) {
|
|
@@ -2389,10 +2410,12 @@ var deserializeAws_json1_1DetectTextCommandError = function (output, context) {
|
|
|
2389
2410
|
case 17: throw _d.sent();
|
|
2390
2411
|
case 18:
|
|
2391
2412
|
parsedBody = parsedOutput.body;
|
|
2413
|
+
$metadata = deserializeMetadata(output);
|
|
2414
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2392
2415
|
response = new __BaseException({
|
|
2393
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2416
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2394
2417
|
$fault: "client",
|
|
2395
|
-
$metadata:
|
|
2418
|
+
$metadata: $metadata,
|
|
2396
2419
|
});
|
|
2397
2420
|
throw __decorateServiceException(response, parsedBody);
|
|
2398
2421
|
}
|
|
@@ -2417,7 +2440,7 @@ export var deserializeAws_json1_1DistributeDatasetEntriesCommand = function (out
|
|
|
2417
2440
|
});
|
|
2418
2441
|
}); };
|
|
2419
2442
|
var deserializeAws_json1_1DistributeDatasetEntriesCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2420
|
-
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
2443
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
2421
2444
|
var _c;
|
|
2422
2445
|
return __generator(this, function (_d) {
|
|
2423
2446
|
switch (_d.label) {
|
|
@@ -2427,7 +2450,6 @@ var deserializeAws_json1_1DistributeDatasetEntriesCommandError = function (outpu
|
|
|
2427
2450
|
return [4, parseBody(output.body, context)];
|
|
2428
2451
|
case 1:
|
|
2429
2452
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
2430
|
-
errorCode = "UnknownError";
|
|
2431
2453
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2432
2454
|
_b = errorCode;
|
|
2433
2455
|
switch (_b) {
|
|
@@ -2463,10 +2485,12 @@ var deserializeAws_json1_1DistributeDatasetEntriesCommandError = function (outpu
|
|
|
2463
2485
|
case 15: throw _d.sent();
|
|
2464
2486
|
case 16:
|
|
2465
2487
|
parsedBody = parsedOutput.body;
|
|
2488
|
+
$metadata = deserializeMetadata(output);
|
|
2489
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2466
2490
|
response = new __BaseException({
|
|
2467
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2491
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2468
2492
|
$fault: "client",
|
|
2469
|
-
$metadata:
|
|
2493
|
+
$metadata: $metadata,
|
|
2470
2494
|
});
|
|
2471
2495
|
throw __decorateServiceException(response, parsedBody);
|
|
2472
2496
|
}
|
|
@@ -2491,7 +2515,7 @@ export var deserializeAws_json1_1GetCelebrityInfoCommand = function (output, con
|
|
|
2491
2515
|
});
|
|
2492
2516
|
}); };
|
|
2493
2517
|
var deserializeAws_json1_1GetCelebrityInfoCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2494
|
-
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
2518
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
2495
2519
|
var _c;
|
|
2496
2520
|
return __generator(this, function (_d) {
|
|
2497
2521
|
switch (_d.label) {
|
|
@@ -2501,7 +2525,6 @@ var deserializeAws_json1_1GetCelebrityInfoCommandError = function (output, conte
|
|
|
2501
2525
|
return [4, parseBody(output.body, context)];
|
|
2502
2526
|
case 1:
|
|
2503
2527
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
2504
|
-
errorCode = "UnknownError";
|
|
2505
2528
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2506
2529
|
_b = errorCode;
|
|
2507
2530
|
switch (_b) {
|
|
@@ -2533,10 +2556,12 @@ var deserializeAws_json1_1GetCelebrityInfoCommandError = function (output, conte
|
|
|
2533
2556
|
case 13: throw _d.sent();
|
|
2534
2557
|
case 14:
|
|
2535
2558
|
parsedBody = parsedOutput.body;
|
|
2559
|
+
$metadata = deserializeMetadata(output);
|
|
2560
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2536
2561
|
response = new __BaseException({
|
|
2537
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2562
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2538
2563
|
$fault: "client",
|
|
2539
|
-
$metadata:
|
|
2564
|
+
$metadata: $metadata,
|
|
2540
2565
|
});
|
|
2541
2566
|
throw __decorateServiceException(response, parsedBody);
|
|
2542
2567
|
}
|
|
@@ -2561,7 +2586,7 @@ export var deserializeAws_json1_1GetCelebrityRecognitionCommand = function (outp
|
|
|
2561
2586
|
});
|
|
2562
2587
|
}); };
|
|
2563
2588
|
var deserializeAws_json1_1GetCelebrityRecognitionCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2564
|
-
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
2589
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
2565
2590
|
var _c;
|
|
2566
2591
|
return __generator(this, function (_d) {
|
|
2567
2592
|
switch (_d.label) {
|
|
@@ -2571,7 +2596,6 @@ var deserializeAws_json1_1GetCelebrityRecognitionCommandError = function (output
|
|
|
2571
2596
|
return [4, parseBody(output.body, context)];
|
|
2572
2597
|
case 1:
|
|
2573
2598
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
2574
|
-
errorCode = "UnknownError";
|
|
2575
2599
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2576
2600
|
_b = errorCode;
|
|
2577
2601
|
switch (_b) {
|
|
@@ -2607,10 +2631,12 @@ var deserializeAws_json1_1GetCelebrityRecognitionCommandError = function (output
|
|
|
2607
2631
|
case 15: throw _d.sent();
|
|
2608
2632
|
case 16:
|
|
2609
2633
|
parsedBody = parsedOutput.body;
|
|
2634
|
+
$metadata = deserializeMetadata(output);
|
|
2635
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2610
2636
|
response = new __BaseException({
|
|
2611
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2637
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2612
2638
|
$fault: "client",
|
|
2613
|
-
$metadata:
|
|
2639
|
+
$metadata: $metadata,
|
|
2614
2640
|
});
|
|
2615
2641
|
throw __decorateServiceException(response, parsedBody);
|
|
2616
2642
|
}
|
|
@@ -2635,7 +2661,7 @@ export var deserializeAws_json1_1GetContentModerationCommand = function (output,
|
|
|
2635
2661
|
});
|
|
2636
2662
|
}); };
|
|
2637
2663
|
var deserializeAws_json1_1GetContentModerationCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2638
|
-
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
2664
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
2639
2665
|
var _c;
|
|
2640
2666
|
return __generator(this, function (_d) {
|
|
2641
2667
|
switch (_d.label) {
|
|
@@ -2645,7 +2671,6 @@ var deserializeAws_json1_1GetContentModerationCommandError = function (output, c
|
|
|
2645
2671
|
return [4, parseBody(output.body, context)];
|
|
2646
2672
|
case 1:
|
|
2647
2673
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
2648
|
-
errorCode = "UnknownError";
|
|
2649
2674
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2650
2675
|
_b = errorCode;
|
|
2651
2676
|
switch (_b) {
|
|
@@ -2681,10 +2706,12 @@ var deserializeAws_json1_1GetContentModerationCommandError = function (output, c
|
|
|
2681
2706
|
case 15: throw _d.sent();
|
|
2682
2707
|
case 16:
|
|
2683
2708
|
parsedBody = parsedOutput.body;
|
|
2709
|
+
$metadata = deserializeMetadata(output);
|
|
2710
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2684
2711
|
response = new __BaseException({
|
|
2685
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2712
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2686
2713
|
$fault: "client",
|
|
2687
|
-
$metadata:
|
|
2714
|
+
$metadata: $metadata,
|
|
2688
2715
|
});
|
|
2689
2716
|
throw __decorateServiceException(response, parsedBody);
|
|
2690
2717
|
}
|
|
@@ -2709,7 +2736,7 @@ export var deserializeAws_json1_1GetFaceDetectionCommand = function (output, con
|
|
|
2709
2736
|
});
|
|
2710
2737
|
}); };
|
|
2711
2738
|
var deserializeAws_json1_1GetFaceDetectionCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2712
|
-
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
2739
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
2713
2740
|
var _c;
|
|
2714
2741
|
return __generator(this, function (_d) {
|
|
2715
2742
|
switch (_d.label) {
|
|
@@ -2719,7 +2746,6 @@ var deserializeAws_json1_1GetFaceDetectionCommandError = function (output, conte
|
|
|
2719
2746
|
return [4, parseBody(output.body, context)];
|
|
2720
2747
|
case 1:
|
|
2721
2748
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
2722
|
-
errorCode = "UnknownError";
|
|
2723
2749
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2724
2750
|
_b = errorCode;
|
|
2725
2751
|
switch (_b) {
|
|
@@ -2755,10 +2781,12 @@ var deserializeAws_json1_1GetFaceDetectionCommandError = function (output, conte
|
|
|
2755
2781
|
case 15: throw _d.sent();
|
|
2756
2782
|
case 16:
|
|
2757
2783
|
parsedBody = parsedOutput.body;
|
|
2784
|
+
$metadata = deserializeMetadata(output);
|
|
2785
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2758
2786
|
response = new __BaseException({
|
|
2759
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2787
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2760
2788
|
$fault: "client",
|
|
2761
|
-
$metadata:
|
|
2789
|
+
$metadata: $metadata,
|
|
2762
2790
|
});
|
|
2763
2791
|
throw __decorateServiceException(response, parsedBody);
|
|
2764
2792
|
}
|
|
@@ -2783,7 +2811,7 @@ export var deserializeAws_json1_1GetFaceSearchCommand = function (output, contex
|
|
|
2783
2811
|
});
|
|
2784
2812
|
}); };
|
|
2785
2813
|
var deserializeAws_json1_1GetFaceSearchCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2786
|
-
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
2814
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
2787
2815
|
var _c;
|
|
2788
2816
|
return __generator(this, function (_d) {
|
|
2789
2817
|
switch (_d.label) {
|
|
@@ -2793,7 +2821,6 @@ var deserializeAws_json1_1GetFaceSearchCommandError = function (output, context)
|
|
|
2793
2821
|
return [4, parseBody(output.body, context)];
|
|
2794
2822
|
case 1:
|
|
2795
2823
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
2796
|
-
errorCode = "UnknownError";
|
|
2797
2824
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2798
2825
|
_b = errorCode;
|
|
2799
2826
|
switch (_b) {
|
|
@@ -2829,10 +2856,12 @@ var deserializeAws_json1_1GetFaceSearchCommandError = function (output, context)
|
|
|
2829
2856
|
case 15: throw _d.sent();
|
|
2830
2857
|
case 16:
|
|
2831
2858
|
parsedBody = parsedOutput.body;
|
|
2859
|
+
$metadata = deserializeMetadata(output);
|
|
2860
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2832
2861
|
response = new __BaseException({
|
|
2833
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2862
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2834
2863
|
$fault: "client",
|
|
2835
|
-
$metadata:
|
|
2864
|
+
$metadata: $metadata,
|
|
2836
2865
|
});
|
|
2837
2866
|
throw __decorateServiceException(response, parsedBody);
|
|
2838
2867
|
}
|
|
@@ -2857,7 +2886,7 @@ export var deserializeAws_json1_1GetLabelDetectionCommand = function (output, co
|
|
|
2857
2886
|
});
|
|
2858
2887
|
}); };
|
|
2859
2888
|
var deserializeAws_json1_1GetLabelDetectionCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2860
|
-
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
2889
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
2861
2890
|
var _c;
|
|
2862
2891
|
return __generator(this, function (_d) {
|
|
2863
2892
|
switch (_d.label) {
|
|
@@ -2867,7 +2896,6 @@ var deserializeAws_json1_1GetLabelDetectionCommandError = function (output, cont
|
|
|
2867
2896
|
return [4, parseBody(output.body, context)];
|
|
2868
2897
|
case 1:
|
|
2869
2898
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
2870
|
-
errorCode = "UnknownError";
|
|
2871
2899
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2872
2900
|
_b = errorCode;
|
|
2873
2901
|
switch (_b) {
|
|
@@ -2903,10 +2931,12 @@ var deserializeAws_json1_1GetLabelDetectionCommandError = function (output, cont
|
|
|
2903
2931
|
case 15: throw _d.sent();
|
|
2904
2932
|
case 16:
|
|
2905
2933
|
parsedBody = parsedOutput.body;
|
|
2934
|
+
$metadata = deserializeMetadata(output);
|
|
2935
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2906
2936
|
response = new __BaseException({
|
|
2907
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2937
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2908
2938
|
$fault: "client",
|
|
2909
|
-
$metadata:
|
|
2939
|
+
$metadata: $metadata,
|
|
2910
2940
|
});
|
|
2911
2941
|
throw __decorateServiceException(response, parsedBody);
|
|
2912
2942
|
}
|
|
@@ -2931,7 +2961,7 @@ export var deserializeAws_json1_1GetPersonTrackingCommand = function (output, co
|
|
|
2931
2961
|
});
|
|
2932
2962
|
}); };
|
|
2933
2963
|
var deserializeAws_json1_1GetPersonTrackingCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2934
|
-
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
2964
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
2935
2965
|
var _c;
|
|
2936
2966
|
return __generator(this, function (_d) {
|
|
2937
2967
|
switch (_d.label) {
|
|
@@ -2941,7 +2971,6 @@ var deserializeAws_json1_1GetPersonTrackingCommandError = function (output, cont
|
|
|
2941
2971
|
return [4, parseBody(output.body, context)];
|
|
2942
2972
|
case 1:
|
|
2943
2973
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
2944
|
-
errorCode = "UnknownError";
|
|
2945
2974
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2946
2975
|
_b = errorCode;
|
|
2947
2976
|
switch (_b) {
|
|
@@ -2977,10 +3006,12 @@ var deserializeAws_json1_1GetPersonTrackingCommandError = function (output, cont
|
|
|
2977
3006
|
case 15: throw _d.sent();
|
|
2978
3007
|
case 16:
|
|
2979
3008
|
parsedBody = parsedOutput.body;
|
|
3009
|
+
$metadata = deserializeMetadata(output);
|
|
3010
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2980
3011
|
response = new __BaseException({
|
|
2981
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
3012
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2982
3013
|
$fault: "client",
|
|
2983
|
-
$metadata:
|
|
3014
|
+
$metadata: $metadata,
|
|
2984
3015
|
});
|
|
2985
3016
|
throw __decorateServiceException(response, parsedBody);
|
|
2986
3017
|
}
|
|
@@ -3005,7 +3036,7 @@ export var deserializeAws_json1_1GetSegmentDetectionCommand = function (output,
|
|
|
3005
3036
|
});
|
|
3006
3037
|
}); };
|
|
3007
3038
|
var deserializeAws_json1_1GetSegmentDetectionCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
3008
|
-
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
3039
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
3009
3040
|
var _c;
|
|
3010
3041
|
return __generator(this, function (_d) {
|
|
3011
3042
|
switch (_d.label) {
|
|
@@ -3015,7 +3046,6 @@ var deserializeAws_json1_1GetSegmentDetectionCommandError = function (output, co
|
|
|
3015
3046
|
return [4, parseBody(output.body, context)];
|
|
3016
3047
|
case 1:
|
|
3017
3048
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
3018
|
-
errorCode = "UnknownError";
|
|
3019
3049
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3020
3050
|
_b = errorCode;
|
|
3021
3051
|
switch (_b) {
|
|
@@ -3051,10 +3081,12 @@ var deserializeAws_json1_1GetSegmentDetectionCommandError = function (output, co
|
|
|
3051
3081
|
case 15: throw _d.sent();
|
|
3052
3082
|
case 16:
|
|
3053
3083
|
parsedBody = parsedOutput.body;
|
|
3084
|
+
$metadata = deserializeMetadata(output);
|
|
3085
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
3054
3086
|
response = new __BaseException({
|
|
3055
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
3087
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
3056
3088
|
$fault: "client",
|
|
3057
|
-
$metadata:
|
|
3089
|
+
$metadata: $metadata,
|
|
3058
3090
|
});
|
|
3059
3091
|
throw __decorateServiceException(response, parsedBody);
|
|
3060
3092
|
}
|
|
@@ -3079,7 +3111,7 @@ export var deserializeAws_json1_1GetTextDetectionCommand = function (output, con
|
|
|
3079
3111
|
});
|
|
3080
3112
|
}); };
|
|
3081
3113
|
var deserializeAws_json1_1GetTextDetectionCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
3082
|
-
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
3114
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
3083
3115
|
var _c;
|
|
3084
3116
|
return __generator(this, function (_d) {
|
|
3085
3117
|
switch (_d.label) {
|
|
@@ -3089,7 +3121,6 @@ var deserializeAws_json1_1GetTextDetectionCommandError = function (output, conte
|
|
|
3089
3121
|
return [4, parseBody(output.body, context)];
|
|
3090
3122
|
case 1:
|
|
3091
3123
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
3092
|
-
errorCode = "UnknownError";
|
|
3093
3124
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3094
3125
|
_b = errorCode;
|
|
3095
3126
|
switch (_b) {
|
|
@@ -3125,10 +3156,12 @@ var deserializeAws_json1_1GetTextDetectionCommandError = function (output, conte
|
|
|
3125
3156
|
case 15: throw _d.sent();
|
|
3126
3157
|
case 16:
|
|
3127
3158
|
parsedBody = parsedOutput.body;
|
|
3159
|
+
$metadata = deserializeMetadata(output);
|
|
3160
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
3128
3161
|
response = new __BaseException({
|
|
3129
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
3162
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
3130
3163
|
$fault: "client",
|
|
3131
|
-
$metadata:
|
|
3164
|
+
$metadata: $metadata,
|
|
3132
3165
|
});
|
|
3133
3166
|
throw __decorateServiceException(response, parsedBody);
|
|
3134
3167
|
}
|
|
@@ -3153,7 +3186,7 @@ export var deserializeAws_json1_1IndexFacesCommand = function (output, context)
|
|
|
3153
3186
|
});
|
|
3154
3187
|
}); };
|
|
3155
3188
|
var deserializeAws_json1_1IndexFacesCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
3156
|
-
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
3189
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
3157
3190
|
var _c;
|
|
3158
3191
|
return __generator(this, function (_d) {
|
|
3159
3192
|
switch (_d.label) {
|
|
@@ -3163,7 +3196,6 @@ var deserializeAws_json1_1IndexFacesCommandError = function (output, context) {
|
|
|
3163
3196
|
return [4, parseBody(output.body, context)];
|
|
3164
3197
|
case 1:
|
|
3165
3198
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
3166
|
-
errorCode = "UnknownError";
|
|
3167
3199
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3168
3200
|
_b = errorCode;
|
|
3169
3201
|
switch (_b) {
|
|
@@ -3211,10 +3243,12 @@ var deserializeAws_json1_1IndexFacesCommandError = function (output, context) {
|
|
|
3211
3243
|
case 21: throw _d.sent();
|
|
3212
3244
|
case 22:
|
|
3213
3245
|
parsedBody = parsedOutput.body;
|
|
3246
|
+
$metadata = deserializeMetadata(output);
|
|
3247
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
3214
3248
|
response = new __BaseException({
|
|
3215
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
3249
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
3216
3250
|
$fault: "client",
|
|
3217
|
-
$metadata:
|
|
3251
|
+
$metadata: $metadata,
|
|
3218
3252
|
});
|
|
3219
3253
|
throw __decorateServiceException(response, parsedBody);
|
|
3220
3254
|
}
|
|
@@ -3239,7 +3273,7 @@ export var deserializeAws_json1_1ListCollectionsCommand = function (output, cont
|
|
|
3239
3273
|
});
|
|
3240
3274
|
}); };
|
|
3241
3275
|
var deserializeAws_json1_1ListCollectionsCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
3242
|
-
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
3276
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
3243
3277
|
var _c;
|
|
3244
3278
|
return __generator(this, function (_d) {
|
|
3245
3279
|
switch (_d.label) {
|
|
@@ -3249,7 +3283,6 @@ var deserializeAws_json1_1ListCollectionsCommandError = function (output, contex
|
|
|
3249
3283
|
return [4, parseBody(output.body, context)];
|
|
3250
3284
|
case 1:
|
|
3251
3285
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
3252
|
-
errorCode = "UnknownError";
|
|
3253
3286
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3254
3287
|
_b = errorCode;
|
|
3255
3288
|
switch (_b) {
|
|
@@ -3285,10 +3318,12 @@ var deserializeAws_json1_1ListCollectionsCommandError = function (output, contex
|
|
|
3285
3318
|
case 15: throw _d.sent();
|
|
3286
3319
|
case 16:
|
|
3287
3320
|
parsedBody = parsedOutput.body;
|
|
3321
|
+
$metadata = deserializeMetadata(output);
|
|
3322
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
3288
3323
|
response = new __BaseException({
|
|
3289
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
3324
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
3290
3325
|
$fault: "client",
|
|
3291
|
-
$metadata:
|
|
3326
|
+
$metadata: $metadata,
|
|
3292
3327
|
});
|
|
3293
3328
|
throw __decorateServiceException(response, parsedBody);
|
|
3294
3329
|
}
|
|
@@ -3313,7 +3348,7 @@ export var deserializeAws_json1_1ListDatasetEntriesCommand = function (output, c
|
|
|
3313
3348
|
});
|
|
3314
3349
|
}); };
|
|
3315
3350
|
var deserializeAws_json1_1ListDatasetEntriesCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
3316
|
-
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
3351
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
3317
3352
|
var _c;
|
|
3318
3353
|
return __generator(this, function (_d) {
|
|
3319
3354
|
switch (_d.label) {
|
|
@@ -3323,7 +3358,6 @@ var deserializeAws_json1_1ListDatasetEntriesCommandError = function (output, con
|
|
|
3323
3358
|
return [4, parseBody(output.body, context)];
|
|
3324
3359
|
case 1:
|
|
3325
3360
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
3326
|
-
errorCode = "UnknownError";
|
|
3327
3361
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3328
3362
|
_b = errorCode;
|
|
3329
3363
|
switch (_b) {
|
|
@@ -3367,10 +3401,12 @@ var deserializeAws_json1_1ListDatasetEntriesCommandError = function (output, con
|
|
|
3367
3401
|
case 19: throw _d.sent();
|
|
3368
3402
|
case 20:
|
|
3369
3403
|
parsedBody = parsedOutput.body;
|
|
3404
|
+
$metadata = deserializeMetadata(output);
|
|
3405
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
3370
3406
|
response = new __BaseException({
|
|
3371
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
3407
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
3372
3408
|
$fault: "client",
|
|
3373
|
-
$metadata:
|
|
3409
|
+
$metadata: $metadata,
|
|
3374
3410
|
});
|
|
3375
3411
|
throw __decorateServiceException(response, parsedBody);
|
|
3376
3412
|
}
|
|
@@ -3395,7 +3431,7 @@ export var deserializeAws_json1_1ListDatasetLabelsCommand = function (output, co
|
|
|
3395
3431
|
});
|
|
3396
3432
|
}); };
|
|
3397
3433
|
var deserializeAws_json1_1ListDatasetLabelsCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
3398
|
-
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
3434
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
3399
3435
|
var _c;
|
|
3400
3436
|
return __generator(this, function (_d) {
|
|
3401
3437
|
switch (_d.label) {
|
|
@@ -3405,7 +3441,6 @@ var deserializeAws_json1_1ListDatasetLabelsCommandError = function (output, cont
|
|
|
3405
3441
|
return [4, parseBody(output.body, context)];
|
|
3406
3442
|
case 1:
|
|
3407
3443
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
3408
|
-
errorCode = "UnknownError";
|
|
3409
3444
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3410
3445
|
_b = errorCode;
|
|
3411
3446
|
switch (_b) {
|
|
@@ -3449,10 +3484,12 @@ var deserializeAws_json1_1ListDatasetLabelsCommandError = function (output, cont
|
|
|
3449
3484
|
case 19: throw _d.sent();
|
|
3450
3485
|
case 20:
|
|
3451
3486
|
parsedBody = parsedOutput.body;
|
|
3487
|
+
$metadata = deserializeMetadata(output);
|
|
3488
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
3452
3489
|
response = new __BaseException({
|
|
3453
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
3490
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
3454
3491
|
$fault: "client",
|
|
3455
|
-
$metadata:
|
|
3492
|
+
$metadata: $metadata,
|
|
3456
3493
|
});
|
|
3457
3494
|
throw __decorateServiceException(response, parsedBody);
|
|
3458
3495
|
}
|
|
@@ -3477,7 +3514,7 @@ export var deserializeAws_json1_1ListFacesCommand = function (output, context) {
|
|
|
3477
3514
|
});
|
|
3478
3515
|
}); };
|
|
3479
3516
|
var deserializeAws_json1_1ListFacesCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
3480
|
-
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
3517
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
3481
3518
|
var _c;
|
|
3482
3519
|
return __generator(this, function (_d) {
|
|
3483
3520
|
switch (_d.label) {
|
|
@@ -3487,7 +3524,6 @@ var deserializeAws_json1_1ListFacesCommandError = function (output, context) { r
|
|
|
3487
3524
|
return [4, parseBody(output.body, context)];
|
|
3488
3525
|
case 1:
|
|
3489
3526
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
3490
|
-
errorCode = "UnknownError";
|
|
3491
3527
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3492
3528
|
_b = errorCode;
|
|
3493
3529
|
switch (_b) {
|
|
@@ -3523,10 +3559,12 @@ var deserializeAws_json1_1ListFacesCommandError = function (output, context) { r
|
|
|
3523
3559
|
case 15: throw _d.sent();
|
|
3524
3560
|
case 16:
|
|
3525
3561
|
parsedBody = parsedOutput.body;
|
|
3562
|
+
$metadata = deserializeMetadata(output);
|
|
3563
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
3526
3564
|
response = new __BaseException({
|
|
3527
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
3565
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
3528
3566
|
$fault: "client",
|
|
3529
|
-
$metadata:
|
|
3567
|
+
$metadata: $metadata,
|
|
3530
3568
|
});
|
|
3531
3569
|
throw __decorateServiceException(response, parsedBody);
|
|
3532
3570
|
}
|
|
@@ -3551,7 +3589,7 @@ export var deserializeAws_json1_1ListStreamProcessorsCommand = function (output,
|
|
|
3551
3589
|
});
|
|
3552
3590
|
}); };
|
|
3553
3591
|
var deserializeAws_json1_1ListStreamProcessorsCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
3554
|
-
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
3592
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
3555
3593
|
var _c;
|
|
3556
3594
|
return __generator(this, function (_d) {
|
|
3557
3595
|
switch (_d.label) {
|
|
@@ -3561,7 +3599,6 @@ var deserializeAws_json1_1ListStreamProcessorsCommandError = function (output, c
|
|
|
3561
3599
|
return [4, parseBody(output.body, context)];
|
|
3562
3600
|
case 1:
|
|
3563
3601
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
3564
|
-
errorCode = "UnknownError";
|
|
3565
3602
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3566
3603
|
_b = errorCode;
|
|
3567
3604
|
switch (_b) {
|
|
@@ -3593,10 +3630,12 @@ var deserializeAws_json1_1ListStreamProcessorsCommandError = function (output, c
|
|
|
3593
3630
|
case 13: throw _d.sent();
|
|
3594
3631
|
case 14:
|
|
3595
3632
|
parsedBody = parsedOutput.body;
|
|
3633
|
+
$metadata = deserializeMetadata(output);
|
|
3634
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
3596
3635
|
response = new __BaseException({
|
|
3597
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
3636
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
3598
3637
|
$fault: "client",
|
|
3599
|
-
$metadata:
|
|
3638
|
+
$metadata: $metadata,
|
|
3600
3639
|
});
|
|
3601
3640
|
throw __decorateServiceException(response, parsedBody);
|
|
3602
3641
|
}
|
|
@@ -3621,7 +3660,7 @@ export var deserializeAws_json1_1ListTagsForResourceCommand = function (output,
|
|
|
3621
3660
|
});
|
|
3622
3661
|
}); };
|
|
3623
3662
|
var deserializeAws_json1_1ListTagsForResourceCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
3624
|
-
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
3663
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
3625
3664
|
var _c;
|
|
3626
3665
|
return __generator(this, function (_d) {
|
|
3627
3666
|
switch (_d.label) {
|
|
@@ -3631,7 +3670,6 @@ var deserializeAws_json1_1ListTagsForResourceCommandError = function (output, co
|
|
|
3631
3670
|
return [4, parseBody(output.body, context)];
|
|
3632
3671
|
case 1:
|
|
3633
3672
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
3634
|
-
errorCode = "UnknownError";
|
|
3635
3673
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3636
3674
|
_b = errorCode;
|
|
3637
3675
|
switch (_b) {
|
|
@@ -3663,10 +3701,12 @@ var deserializeAws_json1_1ListTagsForResourceCommandError = function (output, co
|
|
|
3663
3701
|
case 13: throw _d.sent();
|
|
3664
3702
|
case 14:
|
|
3665
3703
|
parsedBody = parsedOutput.body;
|
|
3704
|
+
$metadata = deserializeMetadata(output);
|
|
3705
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
3666
3706
|
response = new __BaseException({
|
|
3667
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
3707
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
3668
3708
|
$fault: "client",
|
|
3669
|
-
$metadata:
|
|
3709
|
+
$metadata: $metadata,
|
|
3670
3710
|
});
|
|
3671
3711
|
throw __decorateServiceException(response, parsedBody);
|
|
3672
3712
|
}
|
|
@@ -3691,7 +3731,7 @@ export var deserializeAws_json1_1RecognizeCelebritiesCommand = function (output,
|
|
|
3691
3731
|
});
|
|
3692
3732
|
}); };
|
|
3693
3733
|
var deserializeAws_json1_1RecognizeCelebritiesCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
3694
|
-
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
3734
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
3695
3735
|
var _c;
|
|
3696
3736
|
return __generator(this, function (_d) {
|
|
3697
3737
|
switch (_d.label) {
|
|
@@ -3701,7 +3741,6 @@ var deserializeAws_json1_1RecognizeCelebritiesCommandError = function (output, c
|
|
|
3701
3741
|
return [4, parseBody(output.body, context)];
|
|
3702
3742
|
case 1:
|
|
3703
3743
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
3704
|
-
errorCode = "UnknownError";
|
|
3705
3744
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3706
3745
|
_b = errorCode;
|
|
3707
3746
|
switch (_b) {
|
|
@@ -3741,10 +3780,12 @@ var deserializeAws_json1_1RecognizeCelebritiesCommandError = function (output, c
|
|
|
3741
3780
|
case 17: throw _d.sent();
|
|
3742
3781
|
case 18:
|
|
3743
3782
|
parsedBody = parsedOutput.body;
|
|
3783
|
+
$metadata = deserializeMetadata(output);
|
|
3784
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
3744
3785
|
response = new __BaseException({
|
|
3745
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
3786
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
3746
3787
|
$fault: "client",
|
|
3747
|
-
$metadata:
|
|
3788
|
+
$metadata: $metadata,
|
|
3748
3789
|
});
|
|
3749
3790
|
throw __decorateServiceException(response, parsedBody);
|
|
3750
3791
|
}
|
|
@@ -3769,7 +3810,7 @@ export var deserializeAws_json1_1SearchFacesCommand = function (output, context)
|
|
|
3769
3810
|
});
|
|
3770
3811
|
}); };
|
|
3771
3812
|
var deserializeAws_json1_1SearchFacesCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
3772
|
-
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
3813
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
3773
3814
|
var _c;
|
|
3774
3815
|
return __generator(this, function (_d) {
|
|
3775
3816
|
switch (_d.label) {
|
|
@@ -3779,7 +3820,6 @@ var deserializeAws_json1_1SearchFacesCommandError = function (output, context) {
|
|
|
3779
3820
|
return [4, parseBody(output.body, context)];
|
|
3780
3821
|
case 1:
|
|
3781
3822
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
3782
|
-
errorCode = "UnknownError";
|
|
3783
3823
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3784
3824
|
_b = errorCode;
|
|
3785
3825
|
switch (_b) {
|
|
@@ -3811,10 +3851,12 @@ var deserializeAws_json1_1SearchFacesCommandError = function (output, context) {
|
|
|
3811
3851
|
case 13: throw _d.sent();
|
|
3812
3852
|
case 14:
|
|
3813
3853
|
parsedBody = parsedOutput.body;
|
|
3854
|
+
$metadata = deserializeMetadata(output);
|
|
3855
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
3814
3856
|
response = new __BaseException({
|
|
3815
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
3857
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
3816
3858
|
$fault: "client",
|
|
3817
|
-
$metadata:
|
|
3859
|
+
$metadata: $metadata,
|
|
3818
3860
|
});
|
|
3819
3861
|
throw __decorateServiceException(response, parsedBody);
|
|
3820
3862
|
}
|
|
@@ -3839,7 +3881,7 @@ export var deserializeAws_json1_1SearchFacesByImageCommand = function (output, c
|
|
|
3839
3881
|
});
|
|
3840
3882
|
}); };
|
|
3841
3883
|
var deserializeAws_json1_1SearchFacesByImageCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
3842
|
-
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
3884
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
3843
3885
|
var _c;
|
|
3844
3886
|
return __generator(this, function (_d) {
|
|
3845
3887
|
switch (_d.label) {
|
|
@@ -3849,7 +3891,6 @@ var deserializeAws_json1_1SearchFacesByImageCommandError = function (output, con
|
|
|
3849
3891
|
return [4, parseBody(output.body, context)];
|
|
3850
3892
|
case 1:
|
|
3851
3893
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
3852
|
-
errorCode = "UnknownError";
|
|
3853
3894
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3854
3895
|
_b = errorCode;
|
|
3855
3896
|
switch (_b) {
|
|
@@ -3893,10 +3934,12 @@ var deserializeAws_json1_1SearchFacesByImageCommandError = function (output, con
|
|
|
3893
3934
|
case 19: throw _d.sent();
|
|
3894
3935
|
case 20:
|
|
3895
3936
|
parsedBody = parsedOutput.body;
|
|
3937
|
+
$metadata = deserializeMetadata(output);
|
|
3938
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
3896
3939
|
response = new __BaseException({
|
|
3897
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
3940
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
3898
3941
|
$fault: "client",
|
|
3899
|
-
$metadata:
|
|
3942
|
+
$metadata: $metadata,
|
|
3900
3943
|
});
|
|
3901
3944
|
throw __decorateServiceException(response, parsedBody);
|
|
3902
3945
|
}
|
|
@@ -3921,7 +3964,7 @@ export var deserializeAws_json1_1StartCelebrityRecognitionCommand = function (ou
|
|
|
3921
3964
|
});
|
|
3922
3965
|
}); };
|
|
3923
3966
|
var deserializeAws_json1_1StartCelebrityRecognitionCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
3924
|
-
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
3967
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
3925
3968
|
var _c;
|
|
3926
3969
|
return __generator(this, function (_d) {
|
|
3927
3970
|
switch (_d.label) {
|
|
@@ -3931,7 +3974,6 @@ var deserializeAws_json1_1StartCelebrityRecognitionCommandError = function (outp
|
|
|
3931
3974
|
return [4, parseBody(output.body, context)];
|
|
3932
3975
|
case 1:
|
|
3933
3976
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
3934
|
-
errorCode = "UnknownError";
|
|
3935
3977
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3936
3978
|
_b = errorCode;
|
|
3937
3979
|
switch (_b) {
|
|
@@ -3975,10 +4017,12 @@ var deserializeAws_json1_1StartCelebrityRecognitionCommandError = function (outp
|
|
|
3975
4017
|
case 19: throw _d.sent();
|
|
3976
4018
|
case 20:
|
|
3977
4019
|
parsedBody = parsedOutput.body;
|
|
4020
|
+
$metadata = deserializeMetadata(output);
|
|
4021
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
3978
4022
|
response = new __BaseException({
|
|
3979
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
4023
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
3980
4024
|
$fault: "client",
|
|
3981
|
-
$metadata:
|
|
4025
|
+
$metadata: $metadata,
|
|
3982
4026
|
});
|
|
3983
4027
|
throw __decorateServiceException(response, parsedBody);
|
|
3984
4028
|
}
|
|
@@ -4003,7 +4047,7 @@ export var deserializeAws_json1_1StartContentModerationCommand = function (outpu
|
|
|
4003
4047
|
});
|
|
4004
4048
|
}); };
|
|
4005
4049
|
var deserializeAws_json1_1StartContentModerationCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
4006
|
-
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
4050
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
4007
4051
|
var _c;
|
|
4008
4052
|
return __generator(this, function (_d) {
|
|
4009
4053
|
switch (_d.label) {
|
|
@@ -4013,7 +4057,6 @@ var deserializeAws_json1_1StartContentModerationCommandError = function (output,
|
|
|
4013
4057
|
return [4, parseBody(output.body, context)];
|
|
4014
4058
|
case 1:
|
|
4015
4059
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
4016
|
-
errorCode = "UnknownError";
|
|
4017
4060
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4018
4061
|
_b = errorCode;
|
|
4019
4062
|
switch (_b) {
|
|
@@ -4057,10 +4100,12 @@ var deserializeAws_json1_1StartContentModerationCommandError = function (output,
|
|
|
4057
4100
|
case 19: throw _d.sent();
|
|
4058
4101
|
case 20:
|
|
4059
4102
|
parsedBody = parsedOutput.body;
|
|
4103
|
+
$metadata = deserializeMetadata(output);
|
|
4104
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
4060
4105
|
response = new __BaseException({
|
|
4061
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
4106
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
4062
4107
|
$fault: "client",
|
|
4063
|
-
$metadata:
|
|
4108
|
+
$metadata: $metadata,
|
|
4064
4109
|
});
|
|
4065
4110
|
throw __decorateServiceException(response, parsedBody);
|
|
4066
4111
|
}
|
|
@@ -4085,7 +4130,7 @@ export var deserializeAws_json1_1StartFaceDetectionCommand = function (output, c
|
|
|
4085
4130
|
});
|
|
4086
4131
|
}); };
|
|
4087
4132
|
var deserializeAws_json1_1StartFaceDetectionCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
4088
|
-
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
4133
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
4089
4134
|
var _c;
|
|
4090
4135
|
return __generator(this, function (_d) {
|
|
4091
4136
|
switch (_d.label) {
|
|
@@ -4095,7 +4140,6 @@ var deserializeAws_json1_1StartFaceDetectionCommandError = function (output, con
|
|
|
4095
4140
|
return [4, parseBody(output.body, context)];
|
|
4096
4141
|
case 1:
|
|
4097
4142
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
4098
|
-
errorCode = "UnknownError";
|
|
4099
4143
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4100
4144
|
_b = errorCode;
|
|
4101
4145
|
switch (_b) {
|
|
@@ -4139,10 +4183,12 @@ var deserializeAws_json1_1StartFaceDetectionCommandError = function (output, con
|
|
|
4139
4183
|
case 19: throw _d.sent();
|
|
4140
4184
|
case 20:
|
|
4141
4185
|
parsedBody = parsedOutput.body;
|
|
4186
|
+
$metadata = deserializeMetadata(output);
|
|
4187
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
4142
4188
|
response = new __BaseException({
|
|
4143
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
4189
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
4144
4190
|
$fault: "client",
|
|
4145
|
-
$metadata:
|
|
4191
|
+
$metadata: $metadata,
|
|
4146
4192
|
});
|
|
4147
4193
|
throw __decorateServiceException(response, parsedBody);
|
|
4148
4194
|
}
|
|
@@ -4167,7 +4213,7 @@ export var deserializeAws_json1_1StartFaceSearchCommand = function (output, cont
|
|
|
4167
4213
|
});
|
|
4168
4214
|
}); };
|
|
4169
4215
|
var deserializeAws_json1_1StartFaceSearchCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
4170
|
-
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
4216
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
4171
4217
|
var _c;
|
|
4172
4218
|
return __generator(this, function (_d) {
|
|
4173
4219
|
switch (_d.label) {
|
|
@@ -4177,7 +4223,6 @@ var deserializeAws_json1_1StartFaceSearchCommandError = function (output, contex
|
|
|
4177
4223
|
return [4, parseBody(output.body, context)];
|
|
4178
4224
|
case 1:
|
|
4179
4225
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
4180
|
-
errorCode = "UnknownError";
|
|
4181
4226
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4182
4227
|
_b = errorCode;
|
|
4183
4228
|
switch (_b) {
|
|
@@ -4225,10 +4270,12 @@ var deserializeAws_json1_1StartFaceSearchCommandError = function (output, contex
|
|
|
4225
4270
|
case 21: throw _d.sent();
|
|
4226
4271
|
case 22:
|
|
4227
4272
|
parsedBody = parsedOutput.body;
|
|
4273
|
+
$metadata = deserializeMetadata(output);
|
|
4274
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
4228
4275
|
response = new __BaseException({
|
|
4229
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
4276
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
4230
4277
|
$fault: "client",
|
|
4231
|
-
$metadata:
|
|
4278
|
+
$metadata: $metadata,
|
|
4232
4279
|
});
|
|
4233
4280
|
throw __decorateServiceException(response, parsedBody);
|
|
4234
4281
|
}
|
|
@@ -4253,7 +4300,7 @@ export var deserializeAws_json1_1StartLabelDetectionCommand = function (output,
|
|
|
4253
4300
|
});
|
|
4254
4301
|
}); };
|
|
4255
4302
|
var deserializeAws_json1_1StartLabelDetectionCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
4256
|
-
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
4303
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
4257
4304
|
var _c;
|
|
4258
4305
|
return __generator(this, function (_d) {
|
|
4259
4306
|
switch (_d.label) {
|
|
@@ -4263,7 +4310,6 @@ var deserializeAws_json1_1StartLabelDetectionCommandError = function (output, co
|
|
|
4263
4310
|
return [4, parseBody(output.body, context)];
|
|
4264
4311
|
case 1:
|
|
4265
4312
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
4266
|
-
errorCode = "UnknownError";
|
|
4267
4313
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4268
4314
|
_b = errorCode;
|
|
4269
4315
|
switch (_b) {
|
|
@@ -4307,10 +4353,12 @@ var deserializeAws_json1_1StartLabelDetectionCommandError = function (output, co
|
|
|
4307
4353
|
case 19: throw _d.sent();
|
|
4308
4354
|
case 20:
|
|
4309
4355
|
parsedBody = parsedOutput.body;
|
|
4356
|
+
$metadata = deserializeMetadata(output);
|
|
4357
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
4310
4358
|
response = new __BaseException({
|
|
4311
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
4359
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
4312
4360
|
$fault: "client",
|
|
4313
|
-
$metadata:
|
|
4361
|
+
$metadata: $metadata,
|
|
4314
4362
|
});
|
|
4315
4363
|
throw __decorateServiceException(response, parsedBody);
|
|
4316
4364
|
}
|
|
@@ -4335,7 +4383,7 @@ export var deserializeAws_json1_1StartPersonTrackingCommand = function (output,
|
|
|
4335
4383
|
});
|
|
4336
4384
|
}); };
|
|
4337
4385
|
var deserializeAws_json1_1StartPersonTrackingCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
4338
|
-
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
4386
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
4339
4387
|
var _c;
|
|
4340
4388
|
return __generator(this, function (_d) {
|
|
4341
4389
|
switch (_d.label) {
|
|
@@ -4345,7 +4393,6 @@ var deserializeAws_json1_1StartPersonTrackingCommandError = function (output, co
|
|
|
4345
4393
|
return [4, parseBody(output.body, context)];
|
|
4346
4394
|
case 1:
|
|
4347
4395
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
4348
|
-
errorCode = "UnknownError";
|
|
4349
4396
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4350
4397
|
_b = errorCode;
|
|
4351
4398
|
switch (_b) {
|
|
@@ -4389,10 +4436,12 @@ var deserializeAws_json1_1StartPersonTrackingCommandError = function (output, co
|
|
|
4389
4436
|
case 19: throw _d.sent();
|
|
4390
4437
|
case 20:
|
|
4391
4438
|
parsedBody = parsedOutput.body;
|
|
4439
|
+
$metadata = deserializeMetadata(output);
|
|
4440
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
4392
4441
|
response = new __BaseException({
|
|
4393
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
4442
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
4394
4443
|
$fault: "client",
|
|
4395
|
-
$metadata:
|
|
4444
|
+
$metadata: $metadata,
|
|
4396
4445
|
});
|
|
4397
4446
|
throw __decorateServiceException(response, parsedBody);
|
|
4398
4447
|
}
|
|
@@ -4417,7 +4466,7 @@ export var deserializeAws_json1_1StartProjectVersionCommand = function (output,
|
|
|
4417
4466
|
});
|
|
4418
4467
|
}); };
|
|
4419
4468
|
var deserializeAws_json1_1StartProjectVersionCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
4420
|
-
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
4469
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
4421
4470
|
var _c;
|
|
4422
4471
|
return __generator(this, function (_d) {
|
|
4423
4472
|
switch (_d.label) {
|
|
@@ -4427,7 +4476,6 @@ var deserializeAws_json1_1StartProjectVersionCommandError = function (output, co
|
|
|
4427
4476
|
return [4, parseBody(output.body, context)];
|
|
4428
4477
|
case 1:
|
|
4429
4478
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
4430
|
-
errorCode = "UnknownError";
|
|
4431
4479
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4432
4480
|
_b = errorCode;
|
|
4433
4481
|
switch (_b) {
|
|
@@ -4467,10 +4515,12 @@ var deserializeAws_json1_1StartProjectVersionCommandError = function (output, co
|
|
|
4467
4515
|
case 17: throw _d.sent();
|
|
4468
4516
|
case 18:
|
|
4469
4517
|
parsedBody = parsedOutput.body;
|
|
4518
|
+
$metadata = deserializeMetadata(output);
|
|
4519
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
4470
4520
|
response = new __BaseException({
|
|
4471
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
4521
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
4472
4522
|
$fault: "client",
|
|
4473
|
-
$metadata:
|
|
4523
|
+
$metadata: $metadata,
|
|
4474
4524
|
});
|
|
4475
4525
|
throw __decorateServiceException(response, parsedBody);
|
|
4476
4526
|
}
|
|
@@ -4495,7 +4545,7 @@ export var deserializeAws_json1_1StartSegmentDetectionCommand = function (output
|
|
|
4495
4545
|
});
|
|
4496
4546
|
}); };
|
|
4497
4547
|
var deserializeAws_json1_1StartSegmentDetectionCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
4498
|
-
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
4548
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
4499
4549
|
var _c;
|
|
4500
4550
|
return __generator(this, function (_d) {
|
|
4501
4551
|
switch (_d.label) {
|
|
@@ -4505,7 +4555,6 @@ var deserializeAws_json1_1StartSegmentDetectionCommandError = function (output,
|
|
|
4505
4555
|
return [4, parseBody(output.body, context)];
|
|
4506
4556
|
case 1:
|
|
4507
4557
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
4508
|
-
errorCode = "UnknownError";
|
|
4509
4558
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4510
4559
|
_b = errorCode;
|
|
4511
4560
|
switch (_b) {
|
|
@@ -4549,10 +4598,12 @@ var deserializeAws_json1_1StartSegmentDetectionCommandError = function (output,
|
|
|
4549
4598
|
case 19: throw _d.sent();
|
|
4550
4599
|
case 20:
|
|
4551
4600
|
parsedBody = parsedOutput.body;
|
|
4601
|
+
$metadata = deserializeMetadata(output);
|
|
4602
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
4552
4603
|
response = new __BaseException({
|
|
4553
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
4604
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
4554
4605
|
$fault: "client",
|
|
4555
|
-
$metadata:
|
|
4606
|
+
$metadata: $metadata,
|
|
4556
4607
|
});
|
|
4557
4608
|
throw __decorateServiceException(response, parsedBody);
|
|
4558
4609
|
}
|
|
@@ -4577,7 +4628,7 @@ export var deserializeAws_json1_1StartStreamProcessorCommand = function (output,
|
|
|
4577
4628
|
});
|
|
4578
4629
|
}); };
|
|
4579
4630
|
var deserializeAws_json1_1StartStreamProcessorCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
4580
|
-
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
4631
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
4581
4632
|
var _c;
|
|
4582
4633
|
return __generator(this, function (_d) {
|
|
4583
4634
|
switch (_d.label) {
|
|
@@ -4587,7 +4638,6 @@ var deserializeAws_json1_1StartStreamProcessorCommandError = function (output, c
|
|
|
4587
4638
|
return [4, parseBody(output.body, context)];
|
|
4588
4639
|
case 1:
|
|
4589
4640
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
4590
|
-
errorCode = "UnknownError";
|
|
4591
4641
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4592
4642
|
_b = errorCode;
|
|
4593
4643
|
switch (_b) {
|
|
@@ -4623,10 +4673,12 @@ var deserializeAws_json1_1StartStreamProcessorCommandError = function (output, c
|
|
|
4623
4673
|
case 15: throw _d.sent();
|
|
4624
4674
|
case 16:
|
|
4625
4675
|
parsedBody = parsedOutput.body;
|
|
4676
|
+
$metadata = deserializeMetadata(output);
|
|
4677
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
4626
4678
|
response = new __BaseException({
|
|
4627
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
4679
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
4628
4680
|
$fault: "client",
|
|
4629
|
-
$metadata:
|
|
4681
|
+
$metadata: $metadata,
|
|
4630
4682
|
});
|
|
4631
4683
|
throw __decorateServiceException(response, parsedBody);
|
|
4632
4684
|
}
|
|
@@ -4651,7 +4703,7 @@ export var deserializeAws_json1_1StartTextDetectionCommand = function (output, c
|
|
|
4651
4703
|
});
|
|
4652
4704
|
}); };
|
|
4653
4705
|
var deserializeAws_json1_1StartTextDetectionCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
4654
|
-
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
4706
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
4655
4707
|
var _c;
|
|
4656
4708
|
return __generator(this, function (_d) {
|
|
4657
4709
|
switch (_d.label) {
|
|
@@ -4661,7 +4713,6 @@ var deserializeAws_json1_1StartTextDetectionCommandError = function (output, con
|
|
|
4661
4713
|
return [4, parseBody(output.body, context)];
|
|
4662
4714
|
case 1:
|
|
4663
4715
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
4664
|
-
errorCode = "UnknownError";
|
|
4665
4716
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4666
4717
|
_b = errorCode;
|
|
4667
4718
|
switch (_b) {
|
|
@@ -4705,10 +4756,12 @@ var deserializeAws_json1_1StartTextDetectionCommandError = function (output, con
|
|
|
4705
4756
|
case 19: throw _d.sent();
|
|
4706
4757
|
case 20:
|
|
4707
4758
|
parsedBody = parsedOutput.body;
|
|
4759
|
+
$metadata = deserializeMetadata(output);
|
|
4760
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
4708
4761
|
response = new __BaseException({
|
|
4709
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
4762
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
4710
4763
|
$fault: "client",
|
|
4711
|
-
$metadata:
|
|
4764
|
+
$metadata: $metadata,
|
|
4712
4765
|
});
|
|
4713
4766
|
throw __decorateServiceException(response, parsedBody);
|
|
4714
4767
|
}
|
|
@@ -4733,7 +4786,7 @@ export var deserializeAws_json1_1StopProjectVersionCommand = function (output, c
|
|
|
4733
4786
|
});
|
|
4734
4787
|
}); };
|
|
4735
4788
|
var deserializeAws_json1_1StopProjectVersionCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
4736
|
-
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
4789
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
4737
4790
|
var _c;
|
|
4738
4791
|
return __generator(this, function (_d) {
|
|
4739
4792
|
switch (_d.label) {
|
|
@@ -4743,7 +4796,6 @@ var deserializeAws_json1_1StopProjectVersionCommandError = function (output, con
|
|
|
4743
4796
|
return [4, parseBody(output.body, context)];
|
|
4744
4797
|
case 1:
|
|
4745
4798
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
4746
|
-
errorCode = "UnknownError";
|
|
4747
4799
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4748
4800
|
_b = errorCode;
|
|
4749
4801
|
switch (_b) {
|
|
@@ -4779,10 +4831,12 @@ var deserializeAws_json1_1StopProjectVersionCommandError = function (output, con
|
|
|
4779
4831
|
case 15: throw _d.sent();
|
|
4780
4832
|
case 16:
|
|
4781
4833
|
parsedBody = parsedOutput.body;
|
|
4834
|
+
$metadata = deserializeMetadata(output);
|
|
4835
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
4782
4836
|
response = new __BaseException({
|
|
4783
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
4837
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
4784
4838
|
$fault: "client",
|
|
4785
|
-
$metadata:
|
|
4839
|
+
$metadata: $metadata,
|
|
4786
4840
|
});
|
|
4787
4841
|
throw __decorateServiceException(response, parsedBody);
|
|
4788
4842
|
}
|
|
@@ -4807,7 +4861,7 @@ export var deserializeAws_json1_1StopStreamProcessorCommand = function (output,
|
|
|
4807
4861
|
});
|
|
4808
4862
|
}); };
|
|
4809
4863
|
var deserializeAws_json1_1StopStreamProcessorCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
4810
|
-
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
4864
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
4811
4865
|
var _c;
|
|
4812
4866
|
return __generator(this, function (_d) {
|
|
4813
4867
|
switch (_d.label) {
|
|
@@ -4817,7 +4871,6 @@ var deserializeAws_json1_1StopStreamProcessorCommandError = function (output, co
|
|
|
4817
4871
|
return [4, parseBody(output.body, context)];
|
|
4818
4872
|
case 1:
|
|
4819
4873
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
4820
|
-
errorCode = "UnknownError";
|
|
4821
4874
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4822
4875
|
_b = errorCode;
|
|
4823
4876
|
switch (_b) {
|
|
@@ -4853,10 +4906,12 @@ var deserializeAws_json1_1StopStreamProcessorCommandError = function (output, co
|
|
|
4853
4906
|
case 15: throw _d.sent();
|
|
4854
4907
|
case 16:
|
|
4855
4908
|
parsedBody = parsedOutput.body;
|
|
4909
|
+
$metadata = deserializeMetadata(output);
|
|
4910
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
4856
4911
|
response = new __BaseException({
|
|
4857
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
4912
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
4858
4913
|
$fault: "client",
|
|
4859
|
-
$metadata:
|
|
4914
|
+
$metadata: $metadata,
|
|
4860
4915
|
});
|
|
4861
4916
|
throw __decorateServiceException(response, parsedBody);
|
|
4862
4917
|
}
|
|
@@ -4881,7 +4936,7 @@ export var deserializeAws_json1_1TagResourceCommand = function (output, context)
|
|
|
4881
4936
|
});
|
|
4882
4937
|
}); };
|
|
4883
4938
|
var deserializeAws_json1_1TagResourceCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
4884
|
-
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
4939
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
4885
4940
|
var _c;
|
|
4886
4941
|
return __generator(this, function (_d) {
|
|
4887
4942
|
switch (_d.label) {
|
|
@@ -4891,7 +4946,6 @@ var deserializeAws_json1_1TagResourceCommandError = function (output, context) {
|
|
|
4891
4946
|
return [4, parseBody(output.body, context)];
|
|
4892
4947
|
case 1:
|
|
4893
4948
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
4894
|
-
errorCode = "UnknownError";
|
|
4895
4949
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4896
4950
|
_b = errorCode;
|
|
4897
4951
|
switch (_b) {
|
|
@@ -4927,10 +4981,12 @@ var deserializeAws_json1_1TagResourceCommandError = function (output, context) {
|
|
|
4927
4981
|
case 15: throw _d.sent();
|
|
4928
4982
|
case 16:
|
|
4929
4983
|
parsedBody = parsedOutput.body;
|
|
4984
|
+
$metadata = deserializeMetadata(output);
|
|
4985
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
4930
4986
|
response = new __BaseException({
|
|
4931
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
4987
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
4932
4988
|
$fault: "client",
|
|
4933
|
-
$metadata:
|
|
4989
|
+
$metadata: $metadata,
|
|
4934
4990
|
});
|
|
4935
4991
|
throw __decorateServiceException(response, parsedBody);
|
|
4936
4992
|
}
|
|
@@ -4955,7 +5011,7 @@ export var deserializeAws_json1_1UntagResourceCommand = function (output, contex
|
|
|
4955
5011
|
});
|
|
4956
5012
|
}); };
|
|
4957
5013
|
var deserializeAws_json1_1UntagResourceCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
4958
|
-
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
5014
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
4959
5015
|
var _c;
|
|
4960
5016
|
return __generator(this, function (_d) {
|
|
4961
5017
|
switch (_d.label) {
|
|
@@ -4965,7 +5021,6 @@ var deserializeAws_json1_1UntagResourceCommandError = function (output, context)
|
|
|
4965
5021
|
return [4, parseBody(output.body, context)];
|
|
4966
5022
|
case 1:
|
|
4967
5023
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
4968
|
-
errorCode = "UnknownError";
|
|
4969
5024
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4970
5025
|
_b = errorCode;
|
|
4971
5026
|
switch (_b) {
|
|
@@ -4997,10 +5052,12 @@ var deserializeAws_json1_1UntagResourceCommandError = function (output, context)
|
|
|
4997
5052
|
case 13: throw _d.sent();
|
|
4998
5053
|
case 14:
|
|
4999
5054
|
parsedBody = parsedOutput.body;
|
|
5055
|
+
$metadata = deserializeMetadata(output);
|
|
5056
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
5000
5057
|
response = new __BaseException({
|
|
5001
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
5058
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
5002
5059
|
$fault: "client",
|
|
5003
|
-
$metadata:
|
|
5060
|
+
$metadata: $metadata,
|
|
5004
5061
|
});
|
|
5005
5062
|
throw __decorateServiceException(response, parsedBody);
|
|
5006
5063
|
}
|
|
@@ -5025,7 +5082,7 @@ export var deserializeAws_json1_1UpdateDatasetEntriesCommand = function (output,
|
|
|
5025
5082
|
});
|
|
5026
5083
|
}); };
|
|
5027
5084
|
var deserializeAws_json1_1UpdateDatasetEntriesCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
5028
|
-
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
5085
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
5029
5086
|
var _c;
|
|
5030
5087
|
return __generator(this, function (_d) {
|
|
5031
5088
|
switch (_d.label) {
|
|
@@ -5035,7 +5092,6 @@ var deserializeAws_json1_1UpdateDatasetEntriesCommandError = function (output, c
|
|
|
5035
5092
|
return [4, parseBody(output.body, context)];
|
|
5036
5093
|
case 1:
|
|
5037
5094
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
5038
|
-
errorCode = "UnknownError";
|
|
5039
5095
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
5040
5096
|
_b = errorCode;
|
|
5041
5097
|
switch (_b) {
|
|
@@ -5075,10 +5131,12 @@ var deserializeAws_json1_1UpdateDatasetEntriesCommandError = function (output, c
|
|
|
5075
5131
|
case 17: throw _d.sent();
|
|
5076
5132
|
case 18:
|
|
5077
5133
|
parsedBody = parsedOutput.body;
|
|
5134
|
+
$metadata = deserializeMetadata(output);
|
|
5135
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
5078
5136
|
response = new __BaseException({
|
|
5079
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
5137
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
5080
5138
|
$fault: "client",
|
|
5081
|
-
$metadata:
|
|
5139
|
+
$metadata: $metadata,
|
|
5082
5140
|
});
|
|
5083
5141
|
throw __decorateServiceException(response, parsedBody);
|
|
5084
5142
|
}
|
|
@@ -5103,7 +5161,7 @@ export var deserializeAws_json1_1UpdateStreamProcessorCommand = function (output
|
|
|
5103
5161
|
});
|
|
5104
5162
|
}); };
|
|
5105
5163
|
var deserializeAws_json1_1UpdateStreamProcessorCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
5106
|
-
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
5164
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
5107
5165
|
var _c;
|
|
5108
5166
|
return __generator(this, function (_d) {
|
|
5109
5167
|
switch (_d.label) {
|
|
@@ -5113,7 +5171,6 @@ var deserializeAws_json1_1UpdateStreamProcessorCommandError = function (output,
|
|
|
5113
5171
|
return [4, parseBody(output.body, context)];
|
|
5114
5172
|
case 1:
|
|
5115
5173
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
5116
|
-
errorCode = "UnknownError";
|
|
5117
5174
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
5118
5175
|
_b = errorCode;
|
|
5119
5176
|
switch (_b) {
|
|
@@ -5145,10 +5202,12 @@ var deserializeAws_json1_1UpdateStreamProcessorCommandError = function (output,
|
|
|
5145
5202
|
case 13: throw _d.sent();
|
|
5146
5203
|
case 14:
|
|
5147
5204
|
parsedBody = parsedOutput.body;
|
|
5205
|
+
$metadata = deserializeMetadata(output);
|
|
5206
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
5148
5207
|
response = new __BaseException({
|
|
5149
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
5208
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
5150
5209
|
$fault: "client",
|
|
5151
|
-
$metadata:
|
|
5210
|
+
$metadata: $metadata,
|
|
5152
5211
|
});
|
|
5153
5212
|
throw __decorateServiceException(response, parsedBody);
|
|
5154
5213
|
}
|
|
@@ -5317,8 +5376,7 @@ var deserializeAws_json1_1VideoTooLargeExceptionResponse = function (parsedOutpu
|
|
|
5317
5376
|
});
|
|
5318
5377
|
}); };
|
|
5319
5378
|
var serializeAws_json1_1Asset = function (input, context) {
|
|
5320
|
-
return __assign({}, (input.GroundTruthManifest
|
|
5321
|
-
input.GroundTruthManifest !== null && {
|
|
5379
|
+
return __assign({}, (input.GroundTruthManifest != null && {
|
|
5322
5380
|
GroundTruthManifest: serializeAws_json1_1GroundTruthManifest(input.GroundTruthManifest, context),
|
|
5323
5381
|
}));
|
|
5324
5382
|
};
|
|
@@ -5343,18 +5401,15 @@ var serializeAws_json1_1Attributes = function (input, context) {
|
|
|
5343
5401
|
});
|
|
5344
5402
|
};
|
|
5345
5403
|
var serializeAws_json1_1BlackFrame = function (input, context) {
|
|
5346
|
-
return __assign(__assign({}, (input.MaxPixelThreshold
|
|
5347
|
-
|
|
5348
|
-
|
|
5404
|
+
return __assign(__assign({}, (input.MaxPixelThreshold != null && { MaxPixelThreshold: __serializeFloat(input.MaxPixelThreshold) })), (input.MinCoveragePercentage != null && {
|
|
5405
|
+
MinCoveragePercentage: __serializeFloat(input.MinCoveragePercentage),
|
|
5406
|
+
}));
|
|
5349
5407
|
};
|
|
5350
5408
|
var serializeAws_json1_1BoundingBox = function (input, context) {
|
|
5351
|
-
return __assign(__assign(__assign(__assign({}, (input.Height
|
|
5409
|
+
return __assign(__assign(__assign(__assign({}, (input.Height != null && { Height: __serializeFloat(input.Height) })), (input.Left != null && { Left: __serializeFloat(input.Left) })), (input.Top != null && { Top: __serializeFloat(input.Top) })), (input.Width != null && { Width: __serializeFloat(input.Width) }));
|
|
5352
5410
|
};
|
|
5353
5411
|
var serializeAws_json1_1CompareFacesRequest = function (input, context) {
|
|
5354
|
-
return __assign(__assign(__assign(__assign({}, (input.QualityFilter
|
|
5355
|
-
input.SimilarityThreshold !== null && { SimilarityThreshold: __serializeFloat(input.SimilarityThreshold) })), (input.SourceImage !== undefined &&
|
|
5356
|
-
input.SourceImage !== null && { SourceImage: serializeAws_json1_1Image(input.SourceImage, context) })), (input.TargetImage !== undefined &&
|
|
5357
|
-
input.TargetImage !== null && { TargetImage: serializeAws_json1_1Image(input.TargetImage, context) }));
|
|
5412
|
+
return __assign(__assign(__assign(__assign({}, (input.QualityFilter != null && { QualityFilter: input.QualityFilter })), (input.SimilarityThreshold != null && { SimilarityThreshold: __serializeFloat(input.SimilarityThreshold) })), (input.SourceImage != null && { SourceImage: serializeAws_json1_1Image(input.SourceImage, context) })), (input.TargetImage != null && { TargetImage: serializeAws_json1_1Image(input.TargetImage, context) }));
|
|
5358
5413
|
};
|
|
5359
5414
|
var serializeAws_json1_1ConnectedHomeLabels = function (input, context) {
|
|
5360
5415
|
return input
|
|
@@ -5367,14 +5422,10 @@ var serializeAws_json1_1ConnectedHomeLabels = function (input, context) {
|
|
|
5367
5422
|
});
|
|
5368
5423
|
};
|
|
5369
5424
|
var serializeAws_json1_1ConnectedHomeSettings = function (input, context) {
|
|
5370
|
-
return __assign(__assign({}, (input.Labels
|
|
5371
|
-
input.Labels !== null && { Labels: serializeAws_json1_1ConnectedHomeLabels(input.Labels, context) })), (input.MinConfidence !== undefined &&
|
|
5372
|
-
input.MinConfidence !== null && { MinConfidence: __serializeFloat(input.MinConfidence) }));
|
|
5425
|
+
return __assign(__assign({}, (input.Labels != null && { Labels: serializeAws_json1_1ConnectedHomeLabels(input.Labels, context) })), (input.MinConfidence != null && { MinConfidence: __serializeFloat(input.MinConfidence) }));
|
|
5373
5426
|
};
|
|
5374
5427
|
var serializeAws_json1_1ConnectedHomeSettingsForUpdate = function (input, context) {
|
|
5375
|
-
return __assign(__assign({}, (input.Labels
|
|
5376
|
-
input.Labels !== null && { Labels: serializeAws_json1_1ConnectedHomeLabels(input.Labels, context) })), (input.MinConfidence !== undefined &&
|
|
5377
|
-
input.MinConfidence !== null && { MinConfidence: __serializeFloat(input.MinConfidence) }));
|
|
5428
|
+
return __assign(__assign({}, (input.Labels != null && { Labels: serializeAws_json1_1ConnectedHomeLabels(input.Labels, context) })), (input.MinConfidence != null && { MinConfidence: __serializeFloat(input.MinConfidence) }));
|
|
5378
5429
|
};
|
|
5379
5430
|
var serializeAws_json1_1ContentClassifiers = function (input, context) {
|
|
5380
5431
|
return input
|
|
@@ -5387,41 +5438,30 @@ var serializeAws_json1_1ContentClassifiers = function (input, context) {
|
|
|
5387
5438
|
});
|
|
5388
5439
|
};
|
|
5389
5440
|
var serializeAws_json1_1CreateCollectionRequest = function (input, context) {
|
|
5390
|
-
return __assign(__assign({}, (input.CollectionId
|
|
5441
|
+
return __assign(__assign({}, (input.CollectionId != null && { CollectionId: input.CollectionId })), (input.Tags != null && { Tags: serializeAws_json1_1TagMap(input.Tags, context) }));
|
|
5391
5442
|
};
|
|
5392
5443
|
var serializeAws_json1_1CreateDatasetRequest = function (input, context) {
|
|
5393
|
-
return __assign(__assign(__assign({}, (input.DatasetSource
|
|
5394
|
-
input.DatasetSource !== null && {
|
|
5444
|
+
return __assign(__assign(__assign({}, (input.DatasetSource != null && {
|
|
5395
5445
|
DatasetSource: serializeAws_json1_1DatasetSource(input.DatasetSource, context),
|
|
5396
|
-
})), (input.DatasetType
|
|
5446
|
+
})), (input.DatasetType != null && { DatasetType: input.DatasetType })), (input.ProjectArn != null && { ProjectArn: input.ProjectArn }));
|
|
5397
5447
|
};
|
|
5398
5448
|
var serializeAws_json1_1CreateProjectRequest = function (input, context) {
|
|
5399
|
-
return __assign({}, (input.ProjectName
|
|
5449
|
+
return __assign({}, (input.ProjectName != null && { ProjectName: input.ProjectName }));
|
|
5400
5450
|
};
|
|
5401
5451
|
var serializeAws_json1_1CreateProjectVersionRequest = function (input, context) {
|
|
5402
|
-
return __assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.KmsKeyId
|
|
5403
|
-
input.OutputConfig !== null && { OutputConfig: serializeAws_json1_1OutputConfig(input.OutputConfig, context) })), (input.ProjectArn !== undefined && input.ProjectArn !== null && { ProjectArn: input.ProjectArn })), (input.Tags !== undefined && input.Tags !== null && { Tags: serializeAws_json1_1TagMap(input.Tags, context) })), (input.TestingData !== undefined &&
|
|
5404
|
-
input.TestingData !== null && { TestingData: serializeAws_json1_1TestingData(input.TestingData, context) })), (input.TrainingData !== undefined &&
|
|
5405
|
-
input.TrainingData !== null && { TrainingData: serializeAws_json1_1TrainingData(input.TrainingData, context) })), (input.VersionName !== undefined && input.VersionName !== null && { VersionName: input.VersionName }));
|
|
5452
|
+
return __assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.KmsKeyId != null && { KmsKeyId: input.KmsKeyId })), (input.OutputConfig != null && { OutputConfig: serializeAws_json1_1OutputConfig(input.OutputConfig, context) })), (input.ProjectArn != null && { ProjectArn: input.ProjectArn })), (input.Tags != null && { Tags: serializeAws_json1_1TagMap(input.Tags, context) })), (input.TestingData != null && { TestingData: serializeAws_json1_1TestingData(input.TestingData, context) })), (input.TrainingData != null && { TrainingData: serializeAws_json1_1TrainingData(input.TrainingData, context) })), (input.VersionName != null && { VersionName: input.VersionName }));
|
|
5406
5453
|
};
|
|
5407
5454
|
var serializeAws_json1_1CreateStreamProcessorRequest = function (input, context) {
|
|
5408
|
-
return __assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.DataSharingPreference
|
|
5409
|
-
input.DataSharingPreference !== null && {
|
|
5455
|
+
return __assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.DataSharingPreference != null && {
|
|
5410
5456
|
DataSharingPreference: serializeAws_json1_1StreamProcessorDataSharingPreference(input.DataSharingPreference, context),
|
|
5411
|
-
})), (input.Input
|
|
5412
|
-
input.Input !== null && { Input: serializeAws_json1_1StreamProcessorInput(input.Input, context) })), (input.KmsKeyId !== undefined && input.KmsKeyId !== null && { KmsKeyId: input.KmsKeyId })), (input.Name !== undefined && input.Name !== null && { Name: input.Name })), (input.NotificationChannel !== undefined &&
|
|
5413
|
-
input.NotificationChannel !== null && {
|
|
5457
|
+
})), (input.Input != null && { Input: serializeAws_json1_1StreamProcessorInput(input.Input, context) })), (input.KmsKeyId != null && { KmsKeyId: input.KmsKeyId })), (input.Name != null && { Name: input.Name })), (input.NotificationChannel != null && {
|
|
5414
5458
|
NotificationChannel: serializeAws_json1_1StreamProcessorNotificationChannel(input.NotificationChannel, context),
|
|
5415
|
-
})), (input.Output
|
|
5416
|
-
input.Output !== null && { Output: serializeAws_json1_1StreamProcessorOutput(input.Output, context) })), (input.RegionsOfInterest !== undefined &&
|
|
5417
|
-
input.RegionsOfInterest !== null && {
|
|
5459
|
+
})), (input.Output != null && { Output: serializeAws_json1_1StreamProcessorOutput(input.Output, context) })), (input.RegionsOfInterest != null && {
|
|
5418
5460
|
RegionsOfInterest: serializeAws_json1_1RegionsOfInterest(input.RegionsOfInterest, context),
|
|
5419
|
-
})), (input.RoleArn
|
|
5420
|
-
input.Settings !== null && { Settings: serializeAws_json1_1StreamProcessorSettings(input.Settings, context) })), (input.Tags !== undefined && input.Tags !== null && { Tags: serializeAws_json1_1TagMap(input.Tags, context) }));
|
|
5461
|
+
})), (input.RoleArn != null && { RoleArn: input.RoleArn })), (input.Settings != null && { Settings: serializeAws_json1_1StreamProcessorSettings(input.Settings, context) })), (input.Tags != null && { Tags: serializeAws_json1_1TagMap(input.Tags, context) }));
|
|
5421
5462
|
};
|
|
5422
5463
|
var serializeAws_json1_1DatasetChanges = function (input, context) {
|
|
5423
|
-
return __assign({}, (input.GroundTruth
|
|
5424
|
-
input.GroundTruth !== null && { GroundTruth: context.base64Encoder(input.GroundTruth) }));
|
|
5464
|
+
return __assign({}, (input.GroundTruth != null && { GroundTruth: context.base64Encoder(input.GroundTruth) }));
|
|
5425
5465
|
};
|
|
5426
5466
|
var serializeAws_json1_1DatasetLabels = function (input, context) {
|
|
5427
5467
|
return input
|
|
@@ -5434,103 +5474,78 @@ var serializeAws_json1_1DatasetLabels = function (input, context) {
|
|
|
5434
5474
|
});
|
|
5435
5475
|
};
|
|
5436
5476
|
var serializeAws_json1_1DatasetSource = function (input, context) {
|
|
5437
|
-
return __assign(__assign({}, (input.DatasetArn
|
|
5438
|
-
input.GroundTruthManifest !== null && {
|
|
5477
|
+
return __assign(__assign({}, (input.DatasetArn != null && { DatasetArn: input.DatasetArn })), (input.GroundTruthManifest != null && {
|
|
5439
5478
|
GroundTruthManifest: serializeAws_json1_1GroundTruthManifest(input.GroundTruthManifest, context),
|
|
5440
5479
|
}));
|
|
5441
5480
|
};
|
|
5442
5481
|
var serializeAws_json1_1DeleteCollectionRequest = function (input, context) {
|
|
5443
|
-
return __assign({}, (input.CollectionId
|
|
5482
|
+
return __assign({}, (input.CollectionId != null && { CollectionId: input.CollectionId }));
|
|
5444
5483
|
};
|
|
5445
5484
|
var serializeAws_json1_1DeleteDatasetRequest = function (input, context) {
|
|
5446
|
-
return __assign({}, (input.DatasetArn
|
|
5485
|
+
return __assign({}, (input.DatasetArn != null && { DatasetArn: input.DatasetArn }));
|
|
5447
5486
|
};
|
|
5448
5487
|
var serializeAws_json1_1DeleteFacesRequest = function (input, context) {
|
|
5449
|
-
return __assign(__assign({}, (input.CollectionId
|
|
5450
|
-
input.FaceIds !== null && { FaceIds: serializeAws_json1_1FaceIdList(input.FaceIds, context) }));
|
|
5488
|
+
return __assign(__assign({}, (input.CollectionId != null && { CollectionId: input.CollectionId })), (input.FaceIds != null && { FaceIds: serializeAws_json1_1FaceIdList(input.FaceIds, context) }));
|
|
5451
5489
|
};
|
|
5452
5490
|
var serializeAws_json1_1DeleteProjectRequest = function (input, context) {
|
|
5453
|
-
return __assign({}, (input.ProjectArn
|
|
5491
|
+
return __assign({}, (input.ProjectArn != null && { ProjectArn: input.ProjectArn }));
|
|
5454
5492
|
};
|
|
5455
5493
|
var serializeAws_json1_1DeleteProjectVersionRequest = function (input, context) {
|
|
5456
|
-
return __assign({}, (input.ProjectVersionArn
|
|
5457
|
-
input.ProjectVersionArn !== null && { ProjectVersionArn: input.ProjectVersionArn }));
|
|
5494
|
+
return __assign({}, (input.ProjectVersionArn != null && { ProjectVersionArn: input.ProjectVersionArn }));
|
|
5458
5495
|
};
|
|
5459
5496
|
var serializeAws_json1_1DeleteStreamProcessorRequest = function (input, context) {
|
|
5460
|
-
return __assign({}, (input.Name
|
|
5497
|
+
return __assign({}, (input.Name != null && { Name: input.Name }));
|
|
5461
5498
|
};
|
|
5462
5499
|
var serializeAws_json1_1DescribeCollectionRequest = function (input, context) {
|
|
5463
|
-
return __assign({}, (input.CollectionId
|
|
5500
|
+
return __assign({}, (input.CollectionId != null && { CollectionId: input.CollectionId }));
|
|
5464
5501
|
};
|
|
5465
5502
|
var serializeAws_json1_1DescribeDatasetRequest = function (input, context) {
|
|
5466
|
-
return __assign({}, (input.DatasetArn
|
|
5503
|
+
return __assign({}, (input.DatasetArn != null && { DatasetArn: input.DatasetArn }));
|
|
5467
5504
|
};
|
|
5468
5505
|
var serializeAws_json1_1DescribeProjectsRequest = function (input, context) {
|
|
5469
|
-
return __assign(__assign(__assign({}, (input.MaxResults
|
|
5470
|
-
input.ProjectNames !== null && { ProjectNames: serializeAws_json1_1ProjectNames(input.ProjectNames, context) }));
|
|
5506
|
+
return __assign(__assign(__assign({}, (input.MaxResults != null && { MaxResults: input.MaxResults })), (input.NextToken != null && { NextToken: input.NextToken })), (input.ProjectNames != null && { ProjectNames: serializeAws_json1_1ProjectNames(input.ProjectNames, context) }));
|
|
5471
5507
|
};
|
|
5472
5508
|
var serializeAws_json1_1DescribeProjectVersionsRequest = function (input, context) {
|
|
5473
|
-
return __assign(__assign(__assign(__assign({}, (input.MaxResults
|
|
5474
|
-
input.VersionNames !== null && { VersionNames: serializeAws_json1_1VersionNames(input.VersionNames, context) }));
|
|
5509
|
+
return __assign(__assign(__assign(__assign({}, (input.MaxResults != null && { MaxResults: input.MaxResults })), (input.NextToken != null && { NextToken: input.NextToken })), (input.ProjectArn != null && { ProjectArn: input.ProjectArn })), (input.VersionNames != null && { VersionNames: serializeAws_json1_1VersionNames(input.VersionNames, context) }));
|
|
5475
5510
|
};
|
|
5476
5511
|
var serializeAws_json1_1DescribeStreamProcessorRequest = function (input, context) {
|
|
5477
|
-
return __assign({}, (input.Name
|
|
5512
|
+
return __assign({}, (input.Name != null && { Name: input.Name }));
|
|
5478
5513
|
};
|
|
5479
5514
|
var serializeAws_json1_1DetectCustomLabelsRequest = function (input, context) {
|
|
5480
|
-
return __assign(__assign(__assign(__assign({}, (input.Image
|
|
5481
|
-
input.Image !== null && { Image: serializeAws_json1_1Image(input.Image, context) })), (input.MaxResults !== undefined && input.MaxResults !== null && { MaxResults: input.MaxResults })), (input.MinConfidence !== undefined &&
|
|
5482
|
-
input.MinConfidence !== null && { MinConfidence: __serializeFloat(input.MinConfidence) })), (input.ProjectVersionArn !== undefined &&
|
|
5483
|
-
input.ProjectVersionArn !== null && { ProjectVersionArn: input.ProjectVersionArn }));
|
|
5515
|
+
return __assign(__assign(__assign(__assign({}, (input.Image != null && { Image: serializeAws_json1_1Image(input.Image, context) })), (input.MaxResults != null && { MaxResults: input.MaxResults })), (input.MinConfidence != null && { MinConfidence: __serializeFloat(input.MinConfidence) })), (input.ProjectVersionArn != null && { ProjectVersionArn: input.ProjectVersionArn }));
|
|
5484
5516
|
};
|
|
5485
5517
|
var serializeAws_json1_1DetectFacesRequest = function (input, context) {
|
|
5486
|
-
return __assign(__assign({}, (input.Attributes
|
|
5487
|
-
input.Attributes !== null && { Attributes: serializeAws_json1_1Attributes(input.Attributes, context) })), (input.Image !== undefined &&
|
|
5488
|
-
input.Image !== null && { Image: serializeAws_json1_1Image(input.Image, context) }));
|
|
5518
|
+
return __assign(__assign({}, (input.Attributes != null && { Attributes: serializeAws_json1_1Attributes(input.Attributes, context) })), (input.Image != null && { Image: serializeAws_json1_1Image(input.Image, context) }));
|
|
5489
5519
|
};
|
|
5490
5520
|
var serializeAws_json1_1DetectionFilter = function (input, context) {
|
|
5491
|
-
return __assign(__assign(__assign({}, (input.MinBoundingBoxHeight
|
|
5492
|
-
input.MinBoundingBoxHeight !== null && { MinBoundingBoxHeight: __serializeFloat(input.MinBoundingBoxHeight) })), (input.MinBoundingBoxWidth !== undefined &&
|
|
5493
|
-
input.MinBoundingBoxWidth !== null && { MinBoundingBoxWidth: __serializeFloat(input.MinBoundingBoxWidth) })), (input.MinConfidence !== undefined &&
|
|
5494
|
-
input.MinConfidence !== null && { MinConfidence: __serializeFloat(input.MinConfidence) }));
|
|
5521
|
+
return __assign(__assign(__assign({}, (input.MinBoundingBoxHeight != null && { MinBoundingBoxHeight: __serializeFloat(input.MinBoundingBoxHeight) })), (input.MinBoundingBoxWidth != null && { MinBoundingBoxWidth: __serializeFloat(input.MinBoundingBoxWidth) })), (input.MinConfidence != null && { MinConfidence: __serializeFloat(input.MinConfidence) }));
|
|
5495
5522
|
};
|
|
5496
5523
|
var serializeAws_json1_1DetectLabelsRequest = function (input, context) {
|
|
5497
|
-
return __assign(__assign(__assign({}, (input.Image
|
|
5498
|
-
input.Image !== null && { Image: serializeAws_json1_1Image(input.Image, context) })), (input.MaxLabels !== undefined && input.MaxLabels !== null && { MaxLabels: input.MaxLabels })), (input.MinConfidence !== undefined &&
|
|
5499
|
-
input.MinConfidence !== null && { MinConfidence: __serializeFloat(input.MinConfidence) }));
|
|
5524
|
+
return __assign(__assign(__assign({}, (input.Image != null && { Image: serializeAws_json1_1Image(input.Image, context) })), (input.MaxLabels != null && { MaxLabels: input.MaxLabels })), (input.MinConfidence != null && { MinConfidence: __serializeFloat(input.MinConfidence) }));
|
|
5500
5525
|
};
|
|
5501
5526
|
var serializeAws_json1_1DetectModerationLabelsRequest = function (input, context) {
|
|
5502
|
-
return __assign(__assign(__assign({}, (input.HumanLoopConfig
|
|
5503
|
-
input.HumanLoopConfig !== null && {
|
|
5527
|
+
return __assign(__assign(__assign({}, (input.HumanLoopConfig != null && {
|
|
5504
5528
|
HumanLoopConfig: serializeAws_json1_1HumanLoopConfig(input.HumanLoopConfig, context),
|
|
5505
|
-
})), (input.Image
|
|
5506
|
-
input.Image !== null && { Image: serializeAws_json1_1Image(input.Image, context) })), (input.MinConfidence !== undefined &&
|
|
5507
|
-
input.MinConfidence !== null && { MinConfidence: __serializeFloat(input.MinConfidence) }));
|
|
5529
|
+
})), (input.Image != null && { Image: serializeAws_json1_1Image(input.Image, context) })), (input.MinConfidence != null && { MinConfidence: __serializeFloat(input.MinConfidence) }));
|
|
5508
5530
|
};
|
|
5509
5531
|
var serializeAws_json1_1DetectProtectiveEquipmentRequest = function (input, context) {
|
|
5510
|
-
return __assign(__assign({}, (input.Image
|
|
5511
|
-
input.Image !== null && { Image: serializeAws_json1_1Image(input.Image, context) })), (input.SummarizationAttributes !== undefined &&
|
|
5512
|
-
input.SummarizationAttributes !== null && {
|
|
5532
|
+
return __assign(__assign({}, (input.Image != null && { Image: serializeAws_json1_1Image(input.Image, context) })), (input.SummarizationAttributes != null && {
|
|
5513
5533
|
SummarizationAttributes: serializeAws_json1_1ProtectiveEquipmentSummarizationAttributes(input.SummarizationAttributes, context),
|
|
5514
5534
|
}));
|
|
5515
5535
|
};
|
|
5516
5536
|
var serializeAws_json1_1DetectTextFilters = function (input, context) {
|
|
5517
|
-
return __assign(__assign({}, (input.RegionsOfInterest
|
|
5518
|
-
input.RegionsOfInterest !== null && {
|
|
5537
|
+
return __assign(__assign({}, (input.RegionsOfInterest != null && {
|
|
5519
5538
|
RegionsOfInterest: serializeAws_json1_1RegionsOfInterest(input.RegionsOfInterest, context),
|
|
5520
|
-
})), (input.WordFilter
|
|
5521
|
-
input.WordFilter !== null && { WordFilter: serializeAws_json1_1DetectionFilter(input.WordFilter, context) }));
|
|
5539
|
+
})), (input.WordFilter != null && { WordFilter: serializeAws_json1_1DetectionFilter(input.WordFilter, context) }));
|
|
5522
5540
|
};
|
|
5523
5541
|
var serializeAws_json1_1DetectTextRequest = function (input, context) {
|
|
5524
|
-
return __assign(__assign({}, (input.Filters
|
|
5525
|
-
input.Filters !== null && { Filters: serializeAws_json1_1DetectTextFilters(input.Filters, context) })), (input.Image !== undefined &&
|
|
5526
|
-
input.Image !== null && { Image: serializeAws_json1_1Image(input.Image, context) }));
|
|
5542
|
+
return __assign(__assign({}, (input.Filters != null && { Filters: serializeAws_json1_1DetectTextFilters(input.Filters, context) })), (input.Image != null && { Image: serializeAws_json1_1Image(input.Image, context) }));
|
|
5527
5543
|
};
|
|
5528
5544
|
var serializeAws_json1_1DistributeDataset = function (input, context) {
|
|
5529
|
-
return __assign({}, (input.Arn
|
|
5545
|
+
return __assign({}, (input.Arn != null && { Arn: input.Arn }));
|
|
5530
5546
|
};
|
|
5531
5547
|
var serializeAws_json1_1DistributeDatasetEntriesRequest = function (input, context) {
|
|
5532
|
-
return __assign({}, (input.Datasets
|
|
5533
|
-
input.Datasets !== null && {
|
|
5548
|
+
return __assign({}, (input.Datasets != null && {
|
|
5534
5549
|
Datasets: serializeAws_json1_1DistributeDatasetMetadataList(input.Datasets, context),
|
|
5535
5550
|
}));
|
|
5536
5551
|
};
|
|
@@ -5555,106 +5570,93 @@ var serializeAws_json1_1FaceIdList = function (input, context) {
|
|
|
5555
5570
|
});
|
|
5556
5571
|
};
|
|
5557
5572
|
var serializeAws_json1_1FaceSearchSettings = function (input, context) {
|
|
5558
|
-
return __assign(__assign({}, (input.CollectionId
|
|
5559
|
-
input.FaceMatchThreshold !== null && { FaceMatchThreshold: __serializeFloat(input.FaceMatchThreshold) }));
|
|
5573
|
+
return __assign(__assign({}, (input.CollectionId != null && { CollectionId: input.CollectionId })), (input.FaceMatchThreshold != null && { FaceMatchThreshold: __serializeFloat(input.FaceMatchThreshold) }));
|
|
5560
5574
|
};
|
|
5561
5575
|
var serializeAws_json1_1GetCelebrityInfoRequest = function (input, context) {
|
|
5562
|
-
return __assign({}, (input.Id
|
|
5576
|
+
return __assign({}, (input.Id != null && { Id: input.Id }));
|
|
5563
5577
|
};
|
|
5564
5578
|
var serializeAws_json1_1GetCelebrityRecognitionRequest = function (input, context) {
|
|
5565
|
-
return __assign(__assign(__assign(__assign({}, (input.JobId
|
|
5579
|
+
return __assign(__assign(__assign(__assign({}, (input.JobId != null && { JobId: input.JobId })), (input.MaxResults != null && { MaxResults: input.MaxResults })), (input.NextToken != null && { NextToken: input.NextToken })), (input.SortBy != null && { SortBy: input.SortBy }));
|
|
5566
5580
|
};
|
|
5567
5581
|
var serializeAws_json1_1GetContentModerationRequest = function (input, context) {
|
|
5568
|
-
return __assign(__assign(__assign(__assign({}, (input.JobId
|
|
5582
|
+
return __assign(__assign(__assign(__assign({}, (input.JobId != null && { JobId: input.JobId })), (input.MaxResults != null && { MaxResults: input.MaxResults })), (input.NextToken != null && { NextToken: input.NextToken })), (input.SortBy != null && { SortBy: input.SortBy }));
|
|
5569
5583
|
};
|
|
5570
5584
|
var serializeAws_json1_1GetFaceDetectionRequest = function (input, context) {
|
|
5571
|
-
return __assign(__assign(__assign({}, (input.JobId
|
|
5585
|
+
return __assign(__assign(__assign({}, (input.JobId != null && { JobId: input.JobId })), (input.MaxResults != null && { MaxResults: input.MaxResults })), (input.NextToken != null && { NextToken: input.NextToken }));
|
|
5572
5586
|
};
|
|
5573
5587
|
var serializeAws_json1_1GetFaceSearchRequest = function (input, context) {
|
|
5574
|
-
return __assign(__assign(__assign(__assign({}, (input.JobId
|
|
5588
|
+
return __assign(__assign(__assign(__assign({}, (input.JobId != null && { JobId: input.JobId })), (input.MaxResults != null && { MaxResults: input.MaxResults })), (input.NextToken != null && { NextToken: input.NextToken })), (input.SortBy != null && { SortBy: input.SortBy }));
|
|
5575
5589
|
};
|
|
5576
5590
|
var serializeAws_json1_1GetLabelDetectionRequest = function (input, context) {
|
|
5577
|
-
return __assign(__assign(__assign(__assign({}, (input.JobId
|
|
5591
|
+
return __assign(__assign(__assign(__assign({}, (input.JobId != null && { JobId: input.JobId })), (input.MaxResults != null && { MaxResults: input.MaxResults })), (input.NextToken != null && { NextToken: input.NextToken })), (input.SortBy != null && { SortBy: input.SortBy }));
|
|
5578
5592
|
};
|
|
5579
5593
|
var serializeAws_json1_1GetPersonTrackingRequest = function (input, context) {
|
|
5580
|
-
return __assign(__assign(__assign(__assign({}, (input.JobId
|
|
5594
|
+
return __assign(__assign(__assign(__assign({}, (input.JobId != null && { JobId: input.JobId })), (input.MaxResults != null && { MaxResults: input.MaxResults })), (input.NextToken != null && { NextToken: input.NextToken })), (input.SortBy != null && { SortBy: input.SortBy }));
|
|
5581
5595
|
};
|
|
5582
5596
|
var serializeAws_json1_1GetSegmentDetectionRequest = function (input, context) {
|
|
5583
|
-
return __assign(__assign(__assign({}, (input.JobId
|
|
5597
|
+
return __assign(__assign(__assign({}, (input.JobId != null && { JobId: input.JobId })), (input.MaxResults != null && { MaxResults: input.MaxResults })), (input.NextToken != null && { NextToken: input.NextToken }));
|
|
5584
5598
|
};
|
|
5585
5599
|
var serializeAws_json1_1GetTextDetectionRequest = function (input, context) {
|
|
5586
|
-
return __assign(__assign(__assign({}, (input.JobId
|
|
5600
|
+
return __assign(__assign(__assign({}, (input.JobId != null && { JobId: input.JobId })), (input.MaxResults != null && { MaxResults: input.MaxResults })), (input.NextToken != null && { NextToken: input.NextToken }));
|
|
5587
5601
|
};
|
|
5588
5602
|
var serializeAws_json1_1GroundTruthManifest = function (input, context) {
|
|
5589
|
-
return __assign({}, (input.S3Object
|
|
5590
|
-
input.S3Object !== null && { S3Object: serializeAws_json1_1S3Object(input.S3Object, context) }));
|
|
5603
|
+
return __assign({}, (input.S3Object != null && { S3Object: serializeAws_json1_1S3Object(input.S3Object, context) }));
|
|
5591
5604
|
};
|
|
5592
5605
|
var serializeAws_json1_1HumanLoopConfig = function (input, context) {
|
|
5593
|
-
return __assign(__assign(__assign({}, (input.DataAttributes
|
|
5594
|
-
input.DataAttributes !== null && {
|
|
5606
|
+
return __assign(__assign(__assign({}, (input.DataAttributes != null && {
|
|
5595
5607
|
DataAttributes: serializeAws_json1_1HumanLoopDataAttributes(input.DataAttributes, context),
|
|
5596
|
-
})), (input.FlowDefinitionArn
|
|
5597
|
-
input.FlowDefinitionArn !== null && { FlowDefinitionArn: input.FlowDefinitionArn })), (input.HumanLoopName !== undefined && input.HumanLoopName !== null && { HumanLoopName: input.HumanLoopName }));
|
|
5608
|
+
})), (input.FlowDefinitionArn != null && { FlowDefinitionArn: input.FlowDefinitionArn })), (input.HumanLoopName != null && { HumanLoopName: input.HumanLoopName }));
|
|
5598
5609
|
};
|
|
5599
5610
|
var serializeAws_json1_1HumanLoopDataAttributes = function (input, context) {
|
|
5600
|
-
return __assign({}, (input.ContentClassifiers
|
|
5601
|
-
input.ContentClassifiers !== null && {
|
|
5611
|
+
return __assign({}, (input.ContentClassifiers != null && {
|
|
5602
5612
|
ContentClassifiers: serializeAws_json1_1ContentClassifiers(input.ContentClassifiers, context),
|
|
5603
5613
|
}));
|
|
5604
5614
|
};
|
|
5605
5615
|
var serializeAws_json1_1Image = function (input, context) {
|
|
5606
|
-
return __assign(__assign({}, (input.Bytes
|
|
5607
|
-
input.S3Object !== null && { S3Object: serializeAws_json1_1S3Object(input.S3Object, context) }));
|
|
5616
|
+
return __assign(__assign({}, (input.Bytes != null && { Bytes: context.base64Encoder(input.Bytes) })), (input.S3Object != null && { S3Object: serializeAws_json1_1S3Object(input.S3Object, context) }));
|
|
5608
5617
|
};
|
|
5609
5618
|
var serializeAws_json1_1IndexFacesRequest = function (input, context) {
|
|
5610
|
-
return __assign(__assign(__assign(__assign(__assign(__assign({}, (input.CollectionId
|
|
5611
|
-
input.DetectionAttributes !== null && {
|
|
5619
|
+
return __assign(__assign(__assign(__assign(__assign(__assign({}, (input.CollectionId != null && { CollectionId: input.CollectionId })), (input.DetectionAttributes != null && {
|
|
5612
5620
|
DetectionAttributes: serializeAws_json1_1Attributes(input.DetectionAttributes, context),
|
|
5613
|
-
})), (input.ExternalImageId
|
|
5614
|
-
input.ExternalImageId !== null && { ExternalImageId: input.ExternalImageId })), (input.Image !== undefined &&
|
|
5615
|
-
input.Image !== null && { Image: serializeAws_json1_1Image(input.Image, context) })), (input.MaxFaces !== undefined && input.MaxFaces !== null && { MaxFaces: input.MaxFaces })), (input.QualityFilter !== undefined && input.QualityFilter !== null && { QualityFilter: input.QualityFilter }));
|
|
5621
|
+
})), (input.ExternalImageId != null && { ExternalImageId: input.ExternalImageId })), (input.Image != null && { Image: serializeAws_json1_1Image(input.Image, context) })), (input.MaxFaces != null && { MaxFaces: input.MaxFaces })), (input.QualityFilter != null && { QualityFilter: input.QualityFilter }));
|
|
5616
5622
|
};
|
|
5617
5623
|
var serializeAws_json1_1KinesisDataStream = function (input, context) {
|
|
5618
|
-
return __assign({}, (input.Arn
|
|
5624
|
+
return __assign({}, (input.Arn != null && { Arn: input.Arn }));
|
|
5619
5625
|
};
|
|
5620
5626
|
var serializeAws_json1_1KinesisVideoStream = function (input, context) {
|
|
5621
|
-
return __assign({}, (input.Arn
|
|
5627
|
+
return __assign({}, (input.Arn != null && { Arn: input.Arn }));
|
|
5622
5628
|
};
|
|
5623
5629
|
var serializeAws_json1_1KinesisVideoStreamStartSelector = function (input, context) {
|
|
5624
|
-
return __assign(__assign({}, (input.FragmentNumber
|
|
5625
|
-
input.FragmentNumber !== null && { FragmentNumber: input.FragmentNumber })), (input.ProducerTimestamp !== undefined &&
|
|
5626
|
-
input.ProducerTimestamp !== null && { ProducerTimestamp: input.ProducerTimestamp }));
|
|
5630
|
+
return __assign(__assign({}, (input.FragmentNumber != null && { FragmentNumber: input.FragmentNumber })), (input.ProducerTimestamp != null && { ProducerTimestamp: input.ProducerTimestamp }));
|
|
5627
5631
|
};
|
|
5628
5632
|
var serializeAws_json1_1ListCollectionsRequest = function (input, context) {
|
|
5629
|
-
return __assign(__assign({}, (input.MaxResults
|
|
5633
|
+
return __assign(__assign({}, (input.MaxResults != null && { MaxResults: input.MaxResults })), (input.NextToken != null && { NextToken: input.NextToken }));
|
|
5630
5634
|
};
|
|
5631
5635
|
var serializeAws_json1_1ListDatasetEntriesRequest = function (input, context) {
|
|
5632
|
-
return __assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.ContainsLabels
|
|
5633
|
-
input.ContainsLabels !== null && {
|
|
5636
|
+
return __assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.ContainsLabels != null && {
|
|
5634
5637
|
ContainsLabels: serializeAws_json1_1DatasetLabels(input.ContainsLabels, context),
|
|
5635
|
-
})), (input.DatasetArn
|
|
5636
|
-
input.SourceRefContains !== null && { SourceRefContains: input.SourceRefContains }));
|
|
5638
|
+
})), (input.DatasetArn != null && { DatasetArn: input.DatasetArn })), (input.HasErrors != null && { HasErrors: input.HasErrors })), (input.Labeled != null && { Labeled: input.Labeled })), (input.MaxResults != null && { MaxResults: input.MaxResults })), (input.NextToken != null && { NextToken: input.NextToken })), (input.SourceRefContains != null && { SourceRefContains: input.SourceRefContains }));
|
|
5637
5639
|
};
|
|
5638
5640
|
var serializeAws_json1_1ListDatasetLabelsRequest = function (input, context) {
|
|
5639
|
-
return __assign(__assign(__assign({}, (input.DatasetArn
|
|
5641
|
+
return __assign(__assign(__assign({}, (input.DatasetArn != null && { DatasetArn: input.DatasetArn })), (input.MaxResults != null && { MaxResults: input.MaxResults })), (input.NextToken != null && { NextToken: input.NextToken }));
|
|
5640
5642
|
};
|
|
5641
5643
|
var serializeAws_json1_1ListFacesRequest = function (input, context) {
|
|
5642
|
-
return __assign(__assign(__assign({}, (input.CollectionId
|
|
5644
|
+
return __assign(__assign(__assign({}, (input.CollectionId != null && { CollectionId: input.CollectionId })), (input.MaxResults != null && { MaxResults: input.MaxResults })), (input.NextToken != null && { NextToken: input.NextToken }));
|
|
5643
5645
|
};
|
|
5644
5646
|
var serializeAws_json1_1ListStreamProcessorsRequest = function (input, context) {
|
|
5645
|
-
return __assign(__assign({}, (input.MaxResults
|
|
5647
|
+
return __assign(__assign({}, (input.MaxResults != null && { MaxResults: input.MaxResults })), (input.NextToken != null && { NextToken: input.NextToken }));
|
|
5646
5648
|
};
|
|
5647
5649
|
var serializeAws_json1_1ListTagsForResourceRequest = function (input, context) {
|
|
5648
|
-
return __assign({}, (input.ResourceArn
|
|
5650
|
+
return __assign({}, (input.ResourceArn != null && { ResourceArn: input.ResourceArn }));
|
|
5649
5651
|
};
|
|
5650
5652
|
var serializeAws_json1_1NotificationChannel = function (input, context) {
|
|
5651
|
-
return __assign(__assign({}, (input.RoleArn
|
|
5653
|
+
return __assign(__assign({}, (input.RoleArn != null && { RoleArn: input.RoleArn })), (input.SNSTopicArn != null && { SNSTopicArn: input.SNSTopicArn }));
|
|
5652
5654
|
};
|
|
5653
5655
|
var serializeAws_json1_1OutputConfig = function (input, context) {
|
|
5654
|
-
return __assign(__assign({}, (input.S3Bucket
|
|
5656
|
+
return __assign(__assign({}, (input.S3Bucket != null && { S3Bucket: input.S3Bucket })), (input.S3KeyPrefix != null && { S3KeyPrefix: input.S3KeyPrefix }));
|
|
5655
5657
|
};
|
|
5656
5658
|
var serializeAws_json1_1Point = function (input, context) {
|
|
5657
|
-
return __assign(__assign({}, (input.X
|
|
5659
|
+
return __assign(__assign({}, (input.X != null && { X: __serializeFloat(input.X) })), (input.Y != null && { Y: __serializeFloat(input.Y) }));
|
|
5658
5660
|
};
|
|
5659
5661
|
var serializeAws_json1_1Polygon = function (input, context) {
|
|
5660
5662
|
return input
|
|
@@ -5677,9 +5679,7 @@ var serializeAws_json1_1ProjectNames = function (input, context) {
|
|
|
5677
5679
|
});
|
|
5678
5680
|
};
|
|
5679
5681
|
var serializeAws_json1_1ProtectiveEquipmentSummarizationAttributes = function (input, context) {
|
|
5680
|
-
return __assign(__assign({}, (input.MinConfidence
|
|
5681
|
-
input.MinConfidence !== null && { MinConfidence: __serializeFloat(input.MinConfidence) })), (input.RequiredEquipmentTypes !== undefined &&
|
|
5682
|
-
input.RequiredEquipmentTypes !== null && {
|
|
5682
|
+
return __assign(__assign({}, (input.MinConfidence != null && { MinConfidence: __serializeFloat(input.MinConfidence) })), (input.RequiredEquipmentTypes != null && {
|
|
5683
5683
|
RequiredEquipmentTypes: serializeAws_json1_1ProtectiveEquipmentTypes(input.RequiredEquipmentTypes, context),
|
|
5684
5684
|
}));
|
|
5685
5685
|
};
|
|
@@ -5694,13 +5694,10 @@ var serializeAws_json1_1ProtectiveEquipmentTypes = function (input, context) {
|
|
|
5694
5694
|
});
|
|
5695
5695
|
};
|
|
5696
5696
|
var serializeAws_json1_1RecognizeCelebritiesRequest = function (input, context) {
|
|
5697
|
-
return __assign({}, (input.Image
|
|
5698
|
-
input.Image !== null && { Image: serializeAws_json1_1Image(input.Image, context) }));
|
|
5697
|
+
return __assign({}, (input.Image != null && { Image: serializeAws_json1_1Image(input.Image, context) }));
|
|
5699
5698
|
};
|
|
5700
5699
|
var serializeAws_json1_1RegionOfInterest = function (input, context) {
|
|
5701
|
-
return __assign(__assign({}, (input.BoundingBox
|
|
5702
|
-
input.BoundingBox !== null && { BoundingBox: serializeAws_json1_1BoundingBox(input.BoundingBox, context) })), (input.Polygon !== undefined &&
|
|
5703
|
-
input.Polygon !== null && { Polygon: serializeAws_json1_1Polygon(input.Polygon, context) }));
|
|
5700
|
+
return __assign(__assign({}, (input.BoundingBox != null && { BoundingBox: serializeAws_json1_1BoundingBox(input.BoundingBox, context) })), (input.Polygon != null && { Polygon: serializeAws_json1_1Polygon(input.Polygon, context) }));
|
|
5704
5701
|
};
|
|
5705
5702
|
var serializeAws_json1_1RegionsOfInterest = function (input, context) {
|
|
5706
5703
|
return input
|
|
@@ -5713,19 +5710,16 @@ var serializeAws_json1_1RegionsOfInterest = function (input, context) {
|
|
|
5713
5710
|
});
|
|
5714
5711
|
};
|
|
5715
5712
|
var serializeAws_json1_1S3Destination = function (input, context) {
|
|
5716
|
-
return __assign(__assign({}, (input.Bucket
|
|
5713
|
+
return __assign(__assign({}, (input.Bucket != null && { Bucket: input.Bucket })), (input.KeyPrefix != null && { KeyPrefix: input.KeyPrefix }));
|
|
5717
5714
|
};
|
|
5718
5715
|
var serializeAws_json1_1S3Object = function (input, context) {
|
|
5719
|
-
return __assign(__assign(__assign({}, (input.Bucket
|
|
5716
|
+
return __assign(__assign(__assign({}, (input.Bucket != null && { Bucket: input.Bucket })), (input.Name != null && { Name: input.Name })), (input.Version != null && { Version: input.Version }));
|
|
5720
5717
|
};
|
|
5721
5718
|
var serializeAws_json1_1SearchFacesByImageRequest = function (input, context) {
|
|
5722
|
-
return __assign(__assign(__assign(__assign(__assign({}, (input.CollectionId
|
|
5723
|
-
input.FaceMatchThreshold !== null && { FaceMatchThreshold: __serializeFloat(input.FaceMatchThreshold) })), (input.Image !== undefined &&
|
|
5724
|
-
input.Image !== null && { Image: serializeAws_json1_1Image(input.Image, context) })), (input.MaxFaces !== undefined && input.MaxFaces !== null && { MaxFaces: input.MaxFaces })), (input.QualityFilter !== undefined && input.QualityFilter !== null && { QualityFilter: input.QualityFilter }));
|
|
5719
|
+
return __assign(__assign(__assign(__assign(__assign({}, (input.CollectionId != null && { CollectionId: input.CollectionId })), (input.FaceMatchThreshold != null && { FaceMatchThreshold: __serializeFloat(input.FaceMatchThreshold) })), (input.Image != null && { Image: serializeAws_json1_1Image(input.Image, context) })), (input.MaxFaces != null && { MaxFaces: input.MaxFaces })), (input.QualityFilter != null && { QualityFilter: input.QualityFilter }));
|
|
5725
5720
|
};
|
|
5726
5721
|
var serializeAws_json1_1SearchFacesRequest = function (input, context) {
|
|
5727
|
-
return __assign(__assign(__assign(__assign({}, (input.CollectionId
|
|
5728
|
-
input.FaceMatchThreshold !== null && { FaceMatchThreshold: __serializeFloat(input.FaceMatchThreshold) })), (input.MaxFaces !== undefined && input.MaxFaces !== null && { MaxFaces: input.MaxFaces }));
|
|
5722
|
+
return __assign(__assign(__assign(__assign({}, (input.CollectionId != null && { CollectionId: input.CollectionId })), (input.FaceId != null && { FaceId: input.FaceId })), (input.FaceMatchThreshold != null && { FaceMatchThreshold: __serializeFloat(input.FaceMatchThreshold) })), (input.MaxFaces != null && { MaxFaces: input.MaxFaces }));
|
|
5729
5723
|
};
|
|
5730
5724
|
var serializeAws_json1_1SegmentTypes = function (input, context) {
|
|
5731
5725
|
return input
|
|
@@ -5738,150 +5732,102 @@ var serializeAws_json1_1SegmentTypes = function (input, context) {
|
|
|
5738
5732
|
});
|
|
5739
5733
|
};
|
|
5740
5734
|
var serializeAws_json1_1StartCelebrityRecognitionRequest = function (input, context) {
|
|
5741
|
-
return __assign(__assign(__assign(__assign({}, (input.ClientRequestToken
|
|
5742
|
-
input.ClientRequestToken !== null && { ClientRequestToken: input.ClientRequestToken })), (input.JobTag !== undefined && input.JobTag !== null && { JobTag: input.JobTag })), (input.NotificationChannel !== undefined &&
|
|
5743
|
-
input.NotificationChannel !== null && {
|
|
5735
|
+
return __assign(__assign(__assign(__assign({}, (input.ClientRequestToken != null && { ClientRequestToken: input.ClientRequestToken })), (input.JobTag != null && { JobTag: input.JobTag })), (input.NotificationChannel != null && {
|
|
5744
5736
|
NotificationChannel: serializeAws_json1_1NotificationChannel(input.NotificationChannel, context),
|
|
5745
|
-
})), (input.Video
|
|
5746
|
-
input.Video !== null && { Video: serializeAws_json1_1Video(input.Video, context) }));
|
|
5737
|
+
})), (input.Video != null && { Video: serializeAws_json1_1Video(input.Video, context) }));
|
|
5747
5738
|
};
|
|
5748
5739
|
var serializeAws_json1_1StartContentModerationRequest = function (input, context) {
|
|
5749
|
-
return __assign(__assign(__assign(__assign(__assign({}, (input.ClientRequestToken
|
|
5750
|
-
input.ClientRequestToken !== null && { ClientRequestToken: input.ClientRequestToken })), (input.JobTag !== undefined && input.JobTag !== null && { JobTag: input.JobTag })), (input.MinConfidence !== undefined &&
|
|
5751
|
-
input.MinConfidence !== null && { MinConfidence: __serializeFloat(input.MinConfidence) })), (input.NotificationChannel !== undefined &&
|
|
5752
|
-
input.NotificationChannel !== null && {
|
|
5740
|
+
return __assign(__assign(__assign(__assign(__assign({}, (input.ClientRequestToken != null && { ClientRequestToken: input.ClientRequestToken })), (input.JobTag != null && { JobTag: input.JobTag })), (input.MinConfidence != null && { MinConfidence: __serializeFloat(input.MinConfidence) })), (input.NotificationChannel != null && {
|
|
5753
5741
|
NotificationChannel: serializeAws_json1_1NotificationChannel(input.NotificationChannel, context),
|
|
5754
|
-
})), (input.Video
|
|
5755
|
-
input.Video !== null && { Video: serializeAws_json1_1Video(input.Video, context) }));
|
|
5742
|
+
})), (input.Video != null && { Video: serializeAws_json1_1Video(input.Video, context) }));
|
|
5756
5743
|
};
|
|
5757
5744
|
var serializeAws_json1_1StartFaceDetectionRequest = function (input, context) {
|
|
5758
|
-
return __assign(__assign(__assign(__assign(__assign({}, (input.ClientRequestToken
|
|
5759
|
-
input.ClientRequestToken !== null && { ClientRequestToken: input.ClientRequestToken })), (input.FaceAttributes !== undefined &&
|
|
5760
|
-
input.FaceAttributes !== null && { FaceAttributes: input.FaceAttributes })), (input.JobTag !== undefined && input.JobTag !== null && { JobTag: input.JobTag })), (input.NotificationChannel !== undefined &&
|
|
5761
|
-
input.NotificationChannel !== null && {
|
|
5745
|
+
return __assign(__assign(__assign(__assign(__assign({}, (input.ClientRequestToken != null && { ClientRequestToken: input.ClientRequestToken })), (input.FaceAttributes != null && { FaceAttributes: input.FaceAttributes })), (input.JobTag != null && { JobTag: input.JobTag })), (input.NotificationChannel != null && {
|
|
5762
5746
|
NotificationChannel: serializeAws_json1_1NotificationChannel(input.NotificationChannel, context),
|
|
5763
|
-
})), (input.Video
|
|
5764
|
-
input.Video !== null && { Video: serializeAws_json1_1Video(input.Video, context) }));
|
|
5747
|
+
})), (input.Video != null && { Video: serializeAws_json1_1Video(input.Video, context) }));
|
|
5765
5748
|
};
|
|
5766
5749
|
var serializeAws_json1_1StartFaceSearchRequest = function (input, context) {
|
|
5767
|
-
return __assign(__assign(__assign(__assign(__assign(__assign({}, (input.ClientRequestToken
|
|
5768
|
-
input.ClientRequestToken !== null && { ClientRequestToken: input.ClientRequestToken })), (input.CollectionId !== undefined && input.CollectionId !== null && { CollectionId: input.CollectionId })), (input.FaceMatchThreshold !== undefined &&
|
|
5769
|
-
input.FaceMatchThreshold !== null && { FaceMatchThreshold: __serializeFloat(input.FaceMatchThreshold) })), (input.JobTag !== undefined && input.JobTag !== null && { JobTag: input.JobTag })), (input.NotificationChannel !== undefined &&
|
|
5770
|
-
input.NotificationChannel !== null && {
|
|
5750
|
+
return __assign(__assign(__assign(__assign(__assign(__assign({}, (input.ClientRequestToken != null && { ClientRequestToken: input.ClientRequestToken })), (input.CollectionId != null && { CollectionId: input.CollectionId })), (input.FaceMatchThreshold != null && { FaceMatchThreshold: __serializeFloat(input.FaceMatchThreshold) })), (input.JobTag != null && { JobTag: input.JobTag })), (input.NotificationChannel != null && {
|
|
5771
5751
|
NotificationChannel: serializeAws_json1_1NotificationChannel(input.NotificationChannel, context),
|
|
5772
|
-
})), (input.Video
|
|
5773
|
-
input.Video !== null && { Video: serializeAws_json1_1Video(input.Video, context) }));
|
|
5752
|
+
})), (input.Video != null && { Video: serializeAws_json1_1Video(input.Video, context) }));
|
|
5774
5753
|
};
|
|
5775
5754
|
var serializeAws_json1_1StartLabelDetectionRequest = function (input, context) {
|
|
5776
|
-
return __assign(__assign(__assign(__assign(__assign({}, (input.ClientRequestToken
|
|
5777
|
-
input.ClientRequestToken !== null && { ClientRequestToken: input.ClientRequestToken })), (input.JobTag !== undefined && input.JobTag !== null && { JobTag: input.JobTag })), (input.MinConfidence !== undefined &&
|
|
5778
|
-
input.MinConfidence !== null && { MinConfidence: __serializeFloat(input.MinConfidence) })), (input.NotificationChannel !== undefined &&
|
|
5779
|
-
input.NotificationChannel !== null && {
|
|
5755
|
+
return __assign(__assign(__assign(__assign(__assign({}, (input.ClientRequestToken != null && { ClientRequestToken: input.ClientRequestToken })), (input.JobTag != null && { JobTag: input.JobTag })), (input.MinConfidence != null && { MinConfidence: __serializeFloat(input.MinConfidence) })), (input.NotificationChannel != null && {
|
|
5780
5756
|
NotificationChannel: serializeAws_json1_1NotificationChannel(input.NotificationChannel, context),
|
|
5781
|
-
})), (input.Video
|
|
5782
|
-
input.Video !== null && { Video: serializeAws_json1_1Video(input.Video, context) }));
|
|
5757
|
+
})), (input.Video != null && { Video: serializeAws_json1_1Video(input.Video, context) }));
|
|
5783
5758
|
};
|
|
5784
5759
|
var serializeAws_json1_1StartPersonTrackingRequest = function (input, context) {
|
|
5785
|
-
return __assign(__assign(__assign(__assign({}, (input.ClientRequestToken
|
|
5786
|
-
input.ClientRequestToken !== null && { ClientRequestToken: input.ClientRequestToken })), (input.JobTag !== undefined && input.JobTag !== null && { JobTag: input.JobTag })), (input.NotificationChannel !== undefined &&
|
|
5787
|
-
input.NotificationChannel !== null && {
|
|
5760
|
+
return __assign(__assign(__assign(__assign({}, (input.ClientRequestToken != null && { ClientRequestToken: input.ClientRequestToken })), (input.JobTag != null && { JobTag: input.JobTag })), (input.NotificationChannel != null && {
|
|
5788
5761
|
NotificationChannel: serializeAws_json1_1NotificationChannel(input.NotificationChannel, context),
|
|
5789
|
-
})), (input.Video
|
|
5790
|
-
input.Video !== null && { Video: serializeAws_json1_1Video(input.Video, context) }));
|
|
5762
|
+
})), (input.Video != null && { Video: serializeAws_json1_1Video(input.Video, context) }));
|
|
5791
5763
|
};
|
|
5792
5764
|
var serializeAws_json1_1StartProjectVersionRequest = function (input, context) {
|
|
5793
|
-
return __assign(__assign({}, (input.MinInferenceUnits
|
|
5794
|
-
input.MinInferenceUnits !== null && { MinInferenceUnits: input.MinInferenceUnits })), (input.ProjectVersionArn !== undefined &&
|
|
5795
|
-
input.ProjectVersionArn !== null && { ProjectVersionArn: input.ProjectVersionArn }));
|
|
5765
|
+
return __assign(__assign({}, (input.MinInferenceUnits != null && { MinInferenceUnits: input.MinInferenceUnits })), (input.ProjectVersionArn != null && { ProjectVersionArn: input.ProjectVersionArn }));
|
|
5796
5766
|
};
|
|
5797
5767
|
var serializeAws_json1_1StartSegmentDetectionFilters = function (input, context) {
|
|
5798
|
-
return __assign(__assign({}, (input.ShotFilter
|
|
5799
|
-
input.ShotFilter !== null && {
|
|
5768
|
+
return __assign(__assign({}, (input.ShotFilter != null && {
|
|
5800
5769
|
ShotFilter: serializeAws_json1_1StartShotDetectionFilter(input.ShotFilter, context),
|
|
5801
|
-
})), (input.TechnicalCueFilter
|
|
5802
|
-
input.TechnicalCueFilter !== null && {
|
|
5770
|
+
})), (input.TechnicalCueFilter != null && {
|
|
5803
5771
|
TechnicalCueFilter: serializeAws_json1_1StartTechnicalCueDetectionFilter(input.TechnicalCueFilter, context),
|
|
5804
5772
|
}));
|
|
5805
5773
|
};
|
|
5806
5774
|
var serializeAws_json1_1StartSegmentDetectionRequest = function (input, context) {
|
|
5807
|
-
return __assign(__assign(__assign(__assign(__assign(__assign({}, (input.ClientRequestToken
|
|
5808
|
-
input.ClientRequestToken !== null && { ClientRequestToken: input.ClientRequestToken })), (input.Filters !== undefined &&
|
|
5809
|
-
input.Filters !== null && { Filters: serializeAws_json1_1StartSegmentDetectionFilters(input.Filters, context) })), (input.JobTag !== undefined && input.JobTag !== null && { JobTag: input.JobTag })), (input.NotificationChannel !== undefined &&
|
|
5810
|
-
input.NotificationChannel !== null && {
|
|
5775
|
+
return __assign(__assign(__assign(__assign(__assign(__assign({}, (input.ClientRequestToken != null && { ClientRequestToken: input.ClientRequestToken })), (input.Filters != null && { Filters: serializeAws_json1_1StartSegmentDetectionFilters(input.Filters, context) })), (input.JobTag != null && { JobTag: input.JobTag })), (input.NotificationChannel != null && {
|
|
5811
5776
|
NotificationChannel: serializeAws_json1_1NotificationChannel(input.NotificationChannel, context),
|
|
5812
|
-
})), (input.SegmentTypes
|
|
5813
|
-
input.SegmentTypes !== null && { SegmentTypes: serializeAws_json1_1SegmentTypes(input.SegmentTypes, context) })), (input.Video !== undefined &&
|
|
5814
|
-
input.Video !== null && { Video: serializeAws_json1_1Video(input.Video, context) }));
|
|
5777
|
+
})), (input.SegmentTypes != null && { SegmentTypes: serializeAws_json1_1SegmentTypes(input.SegmentTypes, context) })), (input.Video != null && { Video: serializeAws_json1_1Video(input.Video, context) }));
|
|
5815
5778
|
};
|
|
5816
5779
|
var serializeAws_json1_1StartShotDetectionFilter = function (input, context) {
|
|
5817
|
-
return __assign({}, (input.MinSegmentConfidence
|
|
5818
|
-
input.MinSegmentConfidence !== null && { MinSegmentConfidence: __serializeFloat(input.MinSegmentConfidence) }));
|
|
5780
|
+
return __assign({}, (input.MinSegmentConfidence != null && { MinSegmentConfidence: __serializeFloat(input.MinSegmentConfidence) }));
|
|
5819
5781
|
};
|
|
5820
5782
|
var serializeAws_json1_1StartStreamProcessorRequest = function (input, context) {
|
|
5821
|
-
return __assign(__assign(__assign({}, (input.Name
|
|
5822
|
-
input.StartSelector !== null && {
|
|
5783
|
+
return __assign(__assign(__assign({}, (input.Name != null && { Name: input.Name })), (input.StartSelector != null && {
|
|
5823
5784
|
StartSelector: serializeAws_json1_1StreamProcessingStartSelector(input.StartSelector, context),
|
|
5824
|
-
})), (input.StopSelector
|
|
5825
|
-
input.StopSelector !== null && {
|
|
5785
|
+
})), (input.StopSelector != null && {
|
|
5826
5786
|
StopSelector: serializeAws_json1_1StreamProcessingStopSelector(input.StopSelector, context),
|
|
5827
5787
|
}));
|
|
5828
5788
|
};
|
|
5829
5789
|
var serializeAws_json1_1StartTechnicalCueDetectionFilter = function (input, context) {
|
|
5830
|
-
return __assign(__assign({}, (input.BlackFrame
|
|
5831
|
-
input.BlackFrame !== null && { BlackFrame: serializeAws_json1_1BlackFrame(input.BlackFrame, context) })), (input.MinSegmentConfidence !== undefined &&
|
|
5832
|
-
input.MinSegmentConfidence !== null && { MinSegmentConfidence: __serializeFloat(input.MinSegmentConfidence) }));
|
|
5790
|
+
return __assign(__assign({}, (input.BlackFrame != null && { BlackFrame: serializeAws_json1_1BlackFrame(input.BlackFrame, context) })), (input.MinSegmentConfidence != null && { MinSegmentConfidence: __serializeFloat(input.MinSegmentConfidence) }));
|
|
5833
5791
|
};
|
|
5834
5792
|
var serializeAws_json1_1StartTextDetectionFilters = function (input, context) {
|
|
5835
|
-
return __assign(__assign({}, (input.RegionsOfInterest
|
|
5836
|
-
input.RegionsOfInterest !== null && {
|
|
5793
|
+
return __assign(__assign({}, (input.RegionsOfInterest != null && {
|
|
5837
5794
|
RegionsOfInterest: serializeAws_json1_1RegionsOfInterest(input.RegionsOfInterest, context),
|
|
5838
|
-
})), (input.WordFilter
|
|
5839
|
-
input.WordFilter !== null && { WordFilter: serializeAws_json1_1DetectionFilter(input.WordFilter, context) }));
|
|
5795
|
+
})), (input.WordFilter != null && { WordFilter: serializeAws_json1_1DetectionFilter(input.WordFilter, context) }));
|
|
5840
5796
|
};
|
|
5841
5797
|
var serializeAws_json1_1StartTextDetectionRequest = function (input, context) {
|
|
5842
|
-
return __assign(__assign(__assign(__assign(__assign({}, (input.ClientRequestToken
|
|
5843
|
-
input.ClientRequestToken !== null && { ClientRequestToken: input.ClientRequestToken })), (input.Filters !== undefined &&
|
|
5844
|
-
input.Filters !== null && { Filters: serializeAws_json1_1StartTextDetectionFilters(input.Filters, context) })), (input.JobTag !== undefined && input.JobTag !== null && { JobTag: input.JobTag })), (input.NotificationChannel !== undefined &&
|
|
5845
|
-
input.NotificationChannel !== null && {
|
|
5798
|
+
return __assign(__assign(__assign(__assign(__assign({}, (input.ClientRequestToken != null && { ClientRequestToken: input.ClientRequestToken })), (input.Filters != null && { Filters: serializeAws_json1_1StartTextDetectionFilters(input.Filters, context) })), (input.JobTag != null && { JobTag: input.JobTag })), (input.NotificationChannel != null && {
|
|
5846
5799
|
NotificationChannel: serializeAws_json1_1NotificationChannel(input.NotificationChannel, context),
|
|
5847
|
-
})), (input.Video
|
|
5848
|
-
input.Video !== null && { Video: serializeAws_json1_1Video(input.Video, context) }));
|
|
5800
|
+
})), (input.Video != null && { Video: serializeAws_json1_1Video(input.Video, context) }));
|
|
5849
5801
|
};
|
|
5850
5802
|
var serializeAws_json1_1StopProjectVersionRequest = function (input, context) {
|
|
5851
|
-
return __assign({}, (input.ProjectVersionArn
|
|
5852
|
-
input.ProjectVersionArn !== null && { ProjectVersionArn: input.ProjectVersionArn }));
|
|
5803
|
+
return __assign({}, (input.ProjectVersionArn != null && { ProjectVersionArn: input.ProjectVersionArn }));
|
|
5853
5804
|
};
|
|
5854
5805
|
var serializeAws_json1_1StopStreamProcessorRequest = function (input, context) {
|
|
5855
|
-
return __assign({}, (input.Name
|
|
5806
|
+
return __assign({}, (input.Name != null && { Name: input.Name }));
|
|
5856
5807
|
};
|
|
5857
5808
|
var serializeAws_json1_1StreamProcessingStartSelector = function (input, context) {
|
|
5858
|
-
return __assign({}, (input.KVSStreamStartSelector
|
|
5859
|
-
input.KVSStreamStartSelector !== null && {
|
|
5809
|
+
return __assign({}, (input.KVSStreamStartSelector != null && {
|
|
5860
5810
|
KVSStreamStartSelector: serializeAws_json1_1KinesisVideoStreamStartSelector(input.KVSStreamStartSelector, context),
|
|
5861
5811
|
}));
|
|
5862
5812
|
};
|
|
5863
5813
|
var serializeAws_json1_1StreamProcessingStopSelector = function (input, context) {
|
|
5864
|
-
return __assign({}, (input.MaxDurationInSeconds
|
|
5865
|
-
input.MaxDurationInSeconds !== null && { MaxDurationInSeconds: input.MaxDurationInSeconds }));
|
|
5814
|
+
return __assign({}, (input.MaxDurationInSeconds != null && { MaxDurationInSeconds: input.MaxDurationInSeconds }));
|
|
5866
5815
|
};
|
|
5867
5816
|
var serializeAws_json1_1StreamProcessorDataSharingPreference = function (input, context) {
|
|
5868
|
-
return __assign({}, (input.OptIn
|
|
5817
|
+
return __assign({}, (input.OptIn != null && { OptIn: input.OptIn }));
|
|
5869
5818
|
};
|
|
5870
5819
|
var serializeAws_json1_1StreamProcessorInput = function (input, context) {
|
|
5871
|
-
return __assign({}, (input.KinesisVideoStream
|
|
5872
|
-
input.KinesisVideoStream !== null && {
|
|
5820
|
+
return __assign({}, (input.KinesisVideoStream != null && {
|
|
5873
5821
|
KinesisVideoStream: serializeAws_json1_1KinesisVideoStream(input.KinesisVideoStream, context),
|
|
5874
5822
|
}));
|
|
5875
5823
|
};
|
|
5876
5824
|
var serializeAws_json1_1StreamProcessorNotificationChannel = function (input, context) {
|
|
5877
|
-
return __assign({}, (input.SNSTopicArn
|
|
5825
|
+
return __assign({}, (input.SNSTopicArn != null && { SNSTopicArn: input.SNSTopicArn }));
|
|
5878
5826
|
};
|
|
5879
5827
|
var serializeAws_json1_1StreamProcessorOutput = function (input, context) {
|
|
5880
|
-
return __assign(__assign({}, (input.KinesisDataStream
|
|
5881
|
-
input.KinesisDataStream !== null && {
|
|
5828
|
+
return __assign(__assign({}, (input.KinesisDataStream != null && {
|
|
5882
5829
|
KinesisDataStream: serializeAws_json1_1KinesisDataStream(input.KinesisDataStream, context),
|
|
5883
|
-
})), (input.S3Destination
|
|
5884
|
-
input.S3Destination !== null && {
|
|
5830
|
+
})), (input.S3Destination != null && {
|
|
5885
5831
|
S3Destination: serializeAws_json1_1S3Destination(input.S3Destination, context),
|
|
5886
5832
|
}));
|
|
5887
5833
|
};
|
|
@@ -5896,15 +5842,12 @@ var serializeAws_json1_1StreamProcessorParametersToDelete = function (input, con
|
|
|
5896
5842
|
});
|
|
5897
5843
|
};
|
|
5898
5844
|
var serializeAws_json1_1StreamProcessorSettings = function (input, context) {
|
|
5899
|
-
return __assign(__assign({}, (input.ConnectedHome
|
|
5900
|
-
input.ConnectedHome !== null && {
|
|
5845
|
+
return __assign(__assign({}, (input.ConnectedHome != null && {
|
|
5901
5846
|
ConnectedHome: serializeAws_json1_1ConnectedHomeSettings(input.ConnectedHome, context),
|
|
5902
|
-
})), (input.FaceSearch
|
|
5903
|
-
input.FaceSearch !== null && { FaceSearch: serializeAws_json1_1FaceSearchSettings(input.FaceSearch, context) }));
|
|
5847
|
+
})), (input.FaceSearch != null && { FaceSearch: serializeAws_json1_1FaceSearchSettings(input.FaceSearch, context) }));
|
|
5904
5848
|
};
|
|
5905
5849
|
var serializeAws_json1_1StreamProcessorSettingsForUpdate = function (input, context) {
|
|
5906
|
-
return __assign({}, (input.ConnectedHomeForUpdate
|
|
5907
|
-
input.ConnectedHomeForUpdate !== null && {
|
|
5850
|
+
return __assign({}, (input.ConnectedHomeForUpdate != null && {
|
|
5908
5851
|
ConnectedHomeForUpdate: serializeAws_json1_1ConnectedHomeSettingsForUpdate(input.ConnectedHomeForUpdate, context),
|
|
5909
5852
|
}));
|
|
5910
5853
|
};
|
|
@@ -5929,36 +5872,28 @@ var serializeAws_json1_1TagMap = function (input, context) {
|
|
|
5929
5872
|
}, {});
|
|
5930
5873
|
};
|
|
5931
5874
|
var serializeAws_json1_1TagResourceRequest = function (input, context) {
|
|
5932
|
-
return __assign(__assign({}, (input.ResourceArn
|
|
5875
|
+
return __assign(__assign({}, (input.ResourceArn != null && { ResourceArn: input.ResourceArn })), (input.Tags != null && { Tags: serializeAws_json1_1TagMap(input.Tags, context) }));
|
|
5933
5876
|
};
|
|
5934
5877
|
var serializeAws_json1_1TestingData = function (input, context) {
|
|
5935
|
-
return __assign(__assign({}, (input.Assets
|
|
5936
|
-
input.Assets !== null && { Assets: serializeAws_json1_1Assets(input.Assets, context) })), (input.AutoCreate !== undefined && input.AutoCreate !== null && { AutoCreate: input.AutoCreate }));
|
|
5878
|
+
return __assign(__assign({}, (input.Assets != null && { Assets: serializeAws_json1_1Assets(input.Assets, context) })), (input.AutoCreate != null && { AutoCreate: input.AutoCreate }));
|
|
5937
5879
|
};
|
|
5938
5880
|
var serializeAws_json1_1TrainingData = function (input, context) {
|
|
5939
|
-
return __assign({}, (input.Assets
|
|
5940
|
-
input.Assets !== null && { Assets: serializeAws_json1_1Assets(input.Assets, context) }));
|
|
5881
|
+
return __assign({}, (input.Assets != null && { Assets: serializeAws_json1_1Assets(input.Assets, context) }));
|
|
5941
5882
|
};
|
|
5942
5883
|
var serializeAws_json1_1UntagResourceRequest = function (input, context) {
|
|
5943
|
-
return __assign(__assign({}, (input.ResourceArn
|
|
5944
|
-
input.TagKeys !== null && { TagKeys: serializeAws_json1_1TagKeyList(input.TagKeys, context) }));
|
|
5884
|
+
return __assign(__assign({}, (input.ResourceArn != null && { ResourceArn: input.ResourceArn })), (input.TagKeys != null && { TagKeys: serializeAws_json1_1TagKeyList(input.TagKeys, context) }));
|
|
5945
5885
|
};
|
|
5946
5886
|
var serializeAws_json1_1UpdateDatasetEntriesRequest = function (input, context) {
|
|
5947
|
-
return __assign(__assign({}, (input.Changes
|
|
5948
|
-
input.Changes !== null && { Changes: serializeAws_json1_1DatasetChanges(input.Changes, context) })), (input.DatasetArn !== undefined && input.DatasetArn !== null && { DatasetArn: input.DatasetArn }));
|
|
5887
|
+
return __assign(__assign({}, (input.Changes != null && { Changes: serializeAws_json1_1DatasetChanges(input.Changes, context) })), (input.DatasetArn != null && { DatasetArn: input.DatasetArn }));
|
|
5949
5888
|
};
|
|
5950
5889
|
var serializeAws_json1_1UpdateStreamProcessorRequest = function (input, context) {
|
|
5951
|
-
return __assign(__assign(__assign(__assign(__assign({}, (input.DataSharingPreferenceForUpdate
|
|
5952
|
-
input.DataSharingPreferenceForUpdate !== null && {
|
|
5890
|
+
return __assign(__assign(__assign(__assign(__assign({}, (input.DataSharingPreferenceForUpdate != null && {
|
|
5953
5891
|
DataSharingPreferenceForUpdate: serializeAws_json1_1StreamProcessorDataSharingPreference(input.DataSharingPreferenceForUpdate, context),
|
|
5954
|
-
})), (input.Name
|
|
5955
|
-
input.ParametersToDelete !== null && {
|
|
5892
|
+
})), (input.Name != null && { Name: input.Name })), (input.ParametersToDelete != null && {
|
|
5956
5893
|
ParametersToDelete: serializeAws_json1_1StreamProcessorParametersToDelete(input.ParametersToDelete, context),
|
|
5957
|
-
})), (input.RegionsOfInterestForUpdate
|
|
5958
|
-
input.RegionsOfInterestForUpdate !== null && {
|
|
5894
|
+
})), (input.RegionsOfInterestForUpdate != null && {
|
|
5959
5895
|
RegionsOfInterestForUpdate: serializeAws_json1_1RegionsOfInterest(input.RegionsOfInterestForUpdate, context),
|
|
5960
|
-
})), (input.SettingsForUpdate
|
|
5961
|
-
input.SettingsForUpdate !== null && {
|
|
5896
|
+
})), (input.SettingsForUpdate != null && {
|
|
5962
5897
|
SettingsForUpdate: serializeAws_json1_1StreamProcessorSettingsForUpdate(input.SettingsForUpdate, context),
|
|
5963
5898
|
}));
|
|
5964
5899
|
};
|
|
@@ -5973,8 +5908,7 @@ var serializeAws_json1_1VersionNames = function (input, context) {
|
|
|
5973
5908
|
});
|
|
5974
5909
|
};
|
|
5975
5910
|
var serializeAws_json1_1Video = function (input, context) {
|
|
5976
|
-
return __assign({}, (input.S3Object
|
|
5977
|
-
input.S3Object !== null && { S3Object: serializeAws_json1_1S3Object(input.S3Object, context) }));
|
|
5911
|
+
return __assign({}, (input.S3Object != null && { S3Object: serializeAws_json1_1S3Object(input.S3Object, context) }));
|
|
5978
5912
|
};
|
|
5979
5913
|
var deserializeAws_json1_1AccessDeniedException = function (output, context) {
|
|
5980
5914
|
return {
|
|
@@ -5991,7 +5925,7 @@ var deserializeAws_json1_1AgeRange = function (output, context) {
|
|
|
5991
5925
|
};
|
|
5992
5926
|
var deserializeAws_json1_1Asset = function (output, context) {
|
|
5993
5927
|
return {
|
|
5994
|
-
GroundTruthManifest: output.GroundTruthManifest
|
|
5928
|
+
GroundTruthManifest: output.GroundTruthManifest != null
|
|
5995
5929
|
? deserializeAws_json1_1GroundTruthManifest(output.GroundTruthManifest, context)
|
|
5996
5930
|
: undefined,
|
|
5997
5931
|
};
|
|
@@ -6053,33 +5987,23 @@ var deserializeAws_json1_1BoundingBox = function (output, context) {
|
|
|
6053
5987
|
};
|
|
6054
5988
|
var deserializeAws_json1_1Celebrity = function (output, context) {
|
|
6055
5989
|
return {
|
|
6056
|
-
Face: output.Face
|
|
6057
|
-
? deserializeAws_json1_1ComparedFace(output.Face, context)
|
|
6058
|
-
: undefined,
|
|
5990
|
+
Face: output.Face != null ? deserializeAws_json1_1ComparedFace(output.Face, context) : undefined,
|
|
6059
5991
|
Id: __expectString(output.Id),
|
|
6060
|
-
KnownGender: output.KnownGender
|
|
6061
|
-
? deserializeAws_json1_1KnownGender(output.KnownGender, context)
|
|
6062
|
-
: undefined,
|
|
5992
|
+
KnownGender: output.KnownGender != null ? deserializeAws_json1_1KnownGender(output.KnownGender, context) : undefined,
|
|
6063
5993
|
MatchConfidence: __limitedParseFloat32(output.MatchConfidence),
|
|
6064
5994
|
Name: __expectString(output.Name),
|
|
6065
|
-
Urls: output.Urls
|
|
5995
|
+
Urls: output.Urls != null ? deserializeAws_json1_1Urls(output.Urls, context) : undefined,
|
|
6066
5996
|
};
|
|
6067
5997
|
};
|
|
6068
5998
|
var deserializeAws_json1_1CelebrityDetail = function (output, context) {
|
|
6069
5999
|
return {
|
|
6070
|
-
BoundingBox: output.BoundingBox
|
|
6071
|
-
? deserializeAws_json1_1BoundingBox(output.BoundingBox, context)
|
|
6072
|
-
: undefined,
|
|
6000
|
+
BoundingBox: output.BoundingBox != null ? deserializeAws_json1_1BoundingBox(output.BoundingBox, context) : undefined,
|
|
6073
6001
|
Confidence: __limitedParseFloat32(output.Confidence),
|
|
6074
|
-
Face: output.Face
|
|
6075
|
-
? deserializeAws_json1_1FaceDetail(output.Face, context)
|
|
6076
|
-
: undefined,
|
|
6002
|
+
Face: output.Face != null ? deserializeAws_json1_1FaceDetail(output.Face, context) : undefined,
|
|
6077
6003
|
Id: __expectString(output.Id),
|
|
6078
|
-
KnownGender: output.KnownGender
|
|
6079
|
-
? deserializeAws_json1_1KnownGender(output.KnownGender, context)
|
|
6080
|
-
: undefined,
|
|
6004
|
+
KnownGender: output.KnownGender != null ? deserializeAws_json1_1KnownGender(output.KnownGender, context) : undefined,
|
|
6081
6005
|
Name: __expectString(output.Name),
|
|
6082
|
-
Urls: output.Urls
|
|
6006
|
+
Urls: output.Urls != null ? deserializeAws_json1_1Urls(output.Urls, context) : undefined,
|
|
6083
6007
|
};
|
|
6084
6008
|
};
|
|
6085
6009
|
var deserializeAws_json1_1CelebrityList = function (output, context) {
|
|
@@ -6095,9 +6019,7 @@ var deserializeAws_json1_1CelebrityList = function (output, context) {
|
|
|
6095
6019
|
};
|
|
6096
6020
|
var deserializeAws_json1_1CelebrityRecognition = function (output, context) {
|
|
6097
6021
|
return {
|
|
6098
|
-
Celebrity: output.Celebrity
|
|
6099
|
-
? deserializeAws_json1_1CelebrityDetail(output.Celebrity, context)
|
|
6100
|
-
: undefined,
|
|
6022
|
+
Celebrity: output.Celebrity != null ? deserializeAws_json1_1CelebrityDetail(output.Celebrity, context) : undefined,
|
|
6101
6023
|
Timestamp: __expectLong(output.Timestamp),
|
|
6102
6024
|
};
|
|
6103
6025
|
};
|
|
@@ -6125,23 +6047,13 @@ var deserializeAws_json1_1CollectionIdList = function (output, context) {
|
|
|
6125
6047
|
};
|
|
6126
6048
|
var deserializeAws_json1_1ComparedFace = function (output, context) {
|
|
6127
6049
|
return {
|
|
6128
|
-
BoundingBox: output.BoundingBox
|
|
6129
|
-
? deserializeAws_json1_1BoundingBox(output.BoundingBox, context)
|
|
6130
|
-
: undefined,
|
|
6050
|
+
BoundingBox: output.BoundingBox != null ? deserializeAws_json1_1BoundingBox(output.BoundingBox, context) : undefined,
|
|
6131
6051
|
Confidence: __limitedParseFloat32(output.Confidence),
|
|
6132
|
-
Emotions: output.Emotions
|
|
6133
|
-
|
|
6134
|
-
|
|
6135
|
-
|
|
6136
|
-
|
|
6137
|
-
: undefined,
|
|
6138
|
-
Pose: output.Pose !== undefined && output.Pose !== null ? deserializeAws_json1_1Pose(output.Pose, context) : undefined,
|
|
6139
|
-
Quality: output.Quality !== undefined && output.Quality !== null
|
|
6140
|
-
? deserializeAws_json1_1ImageQuality(output.Quality, context)
|
|
6141
|
-
: undefined,
|
|
6142
|
-
Smile: output.Smile !== undefined && output.Smile !== null
|
|
6143
|
-
? deserializeAws_json1_1Smile(output.Smile, context)
|
|
6144
|
-
: undefined,
|
|
6052
|
+
Emotions: output.Emotions != null ? deserializeAws_json1_1Emotions(output.Emotions, context) : undefined,
|
|
6053
|
+
Landmarks: output.Landmarks != null ? deserializeAws_json1_1Landmarks(output.Landmarks, context) : undefined,
|
|
6054
|
+
Pose: output.Pose != null ? deserializeAws_json1_1Pose(output.Pose, context) : undefined,
|
|
6055
|
+
Quality: output.Quality != null ? deserializeAws_json1_1ImageQuality(output.Quality, context) : undefined,
|
|
6056
|
+
Smile: output.Smile != null ? deserializeAws_json1_1Smile(output.Smile, context) : undefined,
|
|
6145
6057
|
};
|
|
6146
6058
|
};
|
|
6147
6059
|
var deserializeAws_json1_1ComparedFaceList = function (output, context) {
|
|
@@ -6157,17 +6069,13 @@ var deserializeAws_json1_1ComparedFaceList = function (output, context) {
|
|
|
6157
6069
|
};
|
|
6158
6070
|
var deserializeAws_json1_1ComparedSourceImageFace = function (output, context) {
|
|
6159
6071
|
return {
|
|
6160
|
-
BoundingBox: output.BoundingBox
|
|
6161
|
-
? deserializeAws_json1_1BoundingBox(output.BoundingBox, context)
|
|
6162
|
-
: undefined,
|
|
6072
|
+
BoundingBox: output.BoundingBox != null ? deserializeAws_json1_1BoundingBox(output.BoundingBox, context) : undefined,
|
|
6163
6073
|
Confidence: __limitedParseFloat32(output.Confidence),
|
|
6164
6074
|
};
|
|
6165
6075
|
};
|
|
6166
6076
|
var deserializeAws_json1_1CompareFacesMatch = function (output, context) {
|
|
6167
6077
|
return {
|
|
6168
|
-
Face: output.Face
|
|
6169
|
-
? deserializeAws_json1_1ComparedFace(output.Face, context)
|
|
6170
|
-
: undefined,
|
|
6078
|
+
Face: output.Face != null ? deserializeAws_json1_1ComparedFace(output.Face, context) : undefined,
|
|
6171
6079
|
Similarity: __limitedParseFloat32(output.Similarity),
|
|
6172
6080
|
};
|
|
6173
6081
|
};
|
|
@@ -6184,15 +6092,13 @@ var deserializeAws_json1_1CompareFacesMatchList = function (output, context) {
|
|
|
6184
6092
|
};
|
|
6185
6093
|
var deserializeAws_json1_1CompareFacesResponse = function (output, context) {
|
|
6186
6094
|
return {
|
|
6187
|
-
FaceMatches: output.FaceMatches
|
|
6188
|
-
|
|
6189
|
-
: undefined,
|
|
6190
|
-
SourceImageFace: output.SourceImageFace !== undefined && output.SourceImageFace !== null
|
|
6095
|
+
FaceMatches: output.FaceMatches != null ? deserializeAws_json1_1CompareFacesMatchList(output.FaceMatches, context) : undefined,
|
|
6096
|
+
SourceImageFace: output.SourceImageFace != null
|
|
6191
6097
|
? deserializeAws_json1_1ComparedSourceImageFace(output.SourceImageFace, context)
|
|
6192
6098
|
: undefined,
|
|
6193
6099
|
SourceImageOrientationCorrection: __expectString(output.SourceImageOrientationCorrection),
|
|
6194
6100
|
TargetImageOrientationCorrection: __expectString(output.TargetImageOrientationCorrection),
|
|
6195
|
-
UnmatchedFaces: output.UnmatchedFaces
|
|
6101
|
+
UnmatchedFaces: output.UnmatchedFaces != null
|
|
6196
6102
|
? deserializeAws_json1_1CompareFacesUnmatchList(output.UnmatchedFaces, context)
|
|
6197
6103
|
: undefined,
|
|
6198
6104
|
};
|
|
@@ -6221,15 +6127,13 @@ var deserializeAws_json1_1ConnectedHomeLabels = function (output, context) {
|
|
|
6221
6127
|
};
|
|
6222
6128
|
var deserializeAws_json1_1ConnectedHomeSettings = function (output, context) {
|
|
6223
6129
|
return {
|
|
6224
|
-
Labels: output.Labels
|
|
6225
|
-
? deserializeAws_json1_1ConnectedHomeLabels(output.Labels, context)
|
|
6226
|
-
: undefined,
|
|
6130
|
+
Labels: output.Labels != null ? deserializeAws_json1_1ConnectedHomeLabels(output.Labels, context) : undefined,
|
|
6227
6131
|
MinConfidence: __limitedParseFloat32(output.MinConfidence),
|
|
6228
6132
|
};
|
|
6229
6133
|
};
|
|
6230
6134
|
var deserializeAws_json1_1ContentModerationDetection = function (output, context) {
|
|
6231
6135
|
return {
|
|
6232
|
-
ModerationLabel: output.ModerationLabel
|
|
6136
|
+
ModerationLabel: output.ModerationLabel != null
|
|
6233
6137
|
? deserializeAws_json1_1ModerationLabel(output.ModerationLabel, context)
|
|
6234
6138
|
: undefined,
|
|
6235
6139
|
Timestamp: __expectLong(output.Timestamp),
|
|
@@ -6282,9 +6186,7 @@ var deserializeAws_json1_1CreateStreamProcessorResponse = function (output, cont
|
|
|
6282
6186
|
var deserializeAws_json1_1CustomLabel = function (output, context) {
|
|
6283
6187
|
return {
|
|
6284
6188
|
Confidence: __limitedParseFloat32(output.Confidence),
|
|
6285
|
-
Geometry: output.Geometry
|
|
6286
|
-
? deserializeAws_json1_1Geometry(output.Geometry, context)
|
|
6287
|
-
: undefined,
|
|
6189
|
+
Geometry: output.Geometry != null ? deserializeAws_json1_1Geometry(output.Geometry, context) : undefined,
|
|
6288
6190
|
Name: __expectString(output.Name),
|
|
6289
6191
|
};
|
|
6290
6192
|
};
|
|
@@ -6301,13 +6203,11 @@ var deserializeAws_json1_1CustomLabels = function (output, context) {
|
|
|
6301
6203
|
};
|
|
6302
6204
|
var deserializeAws_json1_1DatasetDescription = function (output, context) {
|
|
6303
6205
|
return {
|
|
6304
|
-
CreationTimestamp: output.CreationTimestamp
|
|
6206
|
+
CreationTimestamp: output.CreationTimestamp != null
|
|
6305
6207
|
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.CreationTimestamp)))
|
|
6306
6208
|
: undefined,
|
|
6307
|
-
DatasetStats: output.DatasetStats
|
|
6308
|
-
|
|
6309
|
-
: undefined,
|
|
6310
|
-
LastUpdatedTimestamp: output.LastUpdatedTimestamp !== undefined && output.LastUpdatedTimestamp !== null
|
|
6209
|
+
DatasetStats: output.DatasetStats != null ? deserializeAws_json1_1DatasetStats(output.DatasetStats, context) : undefined,
|
|
6210
|
+
LastUpdatedTimestamp: output.LastUpdatedTimestamp != null
|
|
6311
6211
|
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.LastUpdatedTimestamp)))
|
|
6312
6212
|
: undefined,
|
|
6313
6213
|
Status: __expectString(output.Status),
|
|
@@ -6329,9 +6229,7 @@ var deserializeAws_json1_1DatasetEntries = function (output, context) {
|
|
|
6329
6229
|
var deserializeAws_json1_1DatasetLabelDescription = function (output, context) {
|
|
6330
6230
|
return {
|
|
6331
6231
|
LabelName: __expectString(output.LabelName),
|
|
6332
|
-
LabelStats: output.LabelStats
|
|
6333
|
-
? deserializeAws_json1_1DatasetLabelStats(output.LabelStats, context)
|
|
6334
|
-
: undefined,
|
|
6232
|
+
LabelStats: output.LabelStats != null ? deserializeAws_json1_1DatasetLabelStats(output.LabelStats, context) : undefined,
|
|
6335
6233
|
};
|
|
6336
6234
|
};
|
|
6337
6235
|
var deserializeAws_json1_1DatasetLabelDescriptions = function (output, context) {
|
|
@@ -6353,7 +6251,7 @@ var deserializeAws_json1_1DatasetLabelStats = function (output, context) {
|
|
|
6353
6251
|
};
|
|
6354
6252
|
var deserializeAws_json1_1DatasetMetadata = function (output, context) {
|
|
6355
6253
|
return {
|
|
6356
|
-
CreationTimestamp: output.CreationTimestamp
|
|
6254
|
+
CreationTimestamp: output.CreationTimestamp != null
|
|
6357
6255
|
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.CreationTimestamp)))
|
|
6358
6256
|
: undefined,
|
|
6359
6257
|
DatasetArn: __expectString(output.DatasetArn),
|
|
@@ -6392,9 +6290,7 @@ var deserializeAws_json1_1DeleteDatasetResponse = function (output, context) {
|
|
|
6392
6290
|
};
|
|
6393
6291
|
var deserializeAws_json1_1DeleteFacesResponse = function (output, context) {
|
|
6394
6292
|
return {
|
|
6395
|
-
DeletedFaces: output.DeletedFaces
|
|
6396
|
-
? deserializeAws_json1_1FaceIdList(output.DeletedFaces, context)
|
|
6397
|
-
: undefined,
|
|
6293
|
+
DeletedFaces: output.DeletedFaces != null ? deserializeAws_json1_1FaceIdList(output.DeletedFaces, context) : undefined,
|
|
6398
6294
|
};
|
|
6399
6295
|
};
|
|
6400
6296
|
var deserializeAws_json1_1DeleteProjectResponse = function (output, context) {
|
|
@@ -6413,7 +6309,7 @@ var deserializeAws_json1_1DeleteStreamProcessorResponse = function (output, cont
|
|
|
6413
6309
|
var deserializeAws_json1_1DescribeCollectionResponse = function (output, context) {
|
|
6414
6310
|
return {
|
|
6415
6311
|
CollectionARN: __expectString(output.CollectionARN),
|
|
6416
|
-
CreationTimestamp: output.CreationTimestamp
|
|
6312
|
+
CreationTimestamp: output.CreationTimestamp != null
|
|
6417
6313
|
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.CreationTimestamp)))
|
|
6418
6314
|
: undefined,
|
|
6419
6315
|
FaceCount: __expectLong(output.FaceCount),
|
|
@@ -6422,7 +6318,7 @@ var deserializeAws_json1_1DescribeCollectionResponse = function (output, context
|
|
|
6422
6318
|
};
|
|
6423
6319
|
var deserializeAws_json1_1DescribeDatasetResponse = function (output, context) {
|
|
6424
6320
|
return {
|
|
6425
|
-
DatasetDescription: output.DatasetDescription
|
|
6321
|
+
DatasetDescription: output.DatasetDescription != null
|
|
6426
6322
|
? deserializeAws_json1_1DatasetDescription(output.DatasetDescription, context)
|
|
6427
6323
|
: undefined,
|
|
6428
6324
|
};
|
|
@@ -6430,7 +6326,7 @@ var deserializeAws_json1_1DescribeDatasetResponse = function (output, context) {
|
|
|
6430
6326
|
var deserializeAws_json1_1DescribeProjectsResponse = function (output, context) {
|
|
6431
6327
|
return {
|
|
6432
6328
|
NextToken: __expectString(output.NextToken),
|
|
6433
|
-
ProjectDescriptions: output.ProjectDescriptions
|
|
6329
|
+
ProjectDescriptions: output.ProjectDescriptions != null
|
|
6434
6330
|
? deserializeAws_json1_1ProjectDescriptions(output.ProjectDescriptions, context)
|
|
6435
6331
|
: undefined,
|
|
6436
6332
|
};
|
|
@@ -6438,40 +6334,34 @@ var deserializeAws_json1_1DescribeProjectsResponse = function (output, context)
|
|
|
6438
6334
|
var deserializeAws_json1_1DescribeProjectVersionsResponse = function (output, context) {
|
|
6439
6335
|
return {
|
|
6440
6336
|
NextToken: __expectString(output.NextToken),
|
|
6441
|
-
ProjectVersionDescriptions: output.ProjectVersionDescriptions
|
|
6337
|
+
ProjectVersionDescriptions: output.ProjectVersionDescriptions != null
|
|
6442
6338
|
? deserializeAws_json1_1ProjectVersionDescriptions(output.ProjectVersionDescriptions, context)
|
|
6443
6339
|
: undefined,
|
|
6444
6340
|
};
|
|
6445
6341
|
};
|
|
6446
6342
|
var deserializeAws_json1_1DescribeStreamProcessorResponse = function (output, context) {
|
|
6447
6343
|
return {
|
|
6448
|
-
CreationTimestamp: output.CreationTimestamp
|
|
6344
|
+
CreationTimestamp: output.CreationTimestamp != null
|
|
6449
6345
|
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.CreationTimestamp)))
|
|
6450
6346
|
: undefined,
|
|
6451
|
-
DataSharingPreference: output.DataSharingPreference
|
|
6347
|
+
DataSharingPreference: output.DataSharingPreference != null
|
|
6452
6348
|
? deserializeAws_json1_1StreamProcessorDataSharingPreference(output.DataSharingPreference, context)
|
|
6453
6349
|
: undefined,
|
|
6454
|
-
Input: output.Input
|
|
6455
|
-
? deserializeAws_json1_1StreamProcessorInput(output.Input, context)
|
|
6456
|
-
: undefined,
|
|
6350
|
+
Input: output.Input != null ? deserializeAws_json1_1StreamProcessorInput(output.Input, context) : undefined,
|
|
6457
6351
|
KmsKeyId: __expectString(output.KmsKeyId),
|
|
6458
|
-
LastUpdateTimestamp: output.LastUpdateTimestamp
|
|
6352
|
+
LastUpdateTimestamp: output.LastUpdateTimestamp != null
|
|
6459
6353
|
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.LastUpdateTimestamp)))
|
|
6460
6354
|
: undefined,
|
|
6461
6355
|
Name: __expectString(output.Name),
|
|
6462
|
-
NotificationChannel: output.NotificationChannel
|
|
6356
|
+
NotificationChannel: output.NotificationChannel != null
|
|
6463
6357
|
? deserializeAws_json1_1StreamProcessorNotificationChannel(output.NotificationChannel, context)
|
|
6464
6358
|
: undefined,
|
|
6465
|
-
Output: output.Output
|
|
6466
|
-
|
|
6467
|
-
: undefined,
|
|
6468
|
-
RegionsOfInterest: output.RegionsOfInterest !== undefined && output.RegionsOfInterest !== null
|
|
6359
|
+
Output: output.Output != null ? deserializeAws_json1_1StreamProcessorOutput(output.Output, context) : undefined,
|
|
6360
|
+
RegionsOfInterest: output.RegionsOfInterest != null
|
|
6469
6361
|
? deserializeAws_json1_1RegionsOfInterest(output.RegionsOfInterest, context)
|
|
6470
6362
|
: undefined,
|
|
6471
6363
|
RoleArn: __expectString(output.RoleArn),
|
|
6472
|
-
Settings: output.Settings
|
|
6473
|
-
? deserializeAws_json1_1StreamProcessorSettings(output.Settings, context)
|
|
6474
|
-
: undefined,
|
|
6364
|
+
Settings: output.Settings != null ? deserializeAws_json1_1StreamProcessorSettings(output.Settings, context) : undefined,
|
|
6475
6365
|
Status: __expectString(output.Status),
|
|
6476
6366
|
StatusMessage: __expectString(output.StatusMessage),
|
|
6477
6367
|
StreamProcessorArn: __expectString(output.StreamProcessorArn),
|
|
@@ -6479,34 +6369,28 @@ var deserializeAws_json1_1DescribeStreamProcessorResponse = function (output, co
|
|
|
6479
6369
|
};
|
|
6480
6370
|
var deserializeAws_json1_1DetectCustomLabelsResponse = function (output, context) {
|
|
6481
6371
|
return {
|
|
6482
|
-
CustomLabels: output.CustomLabels
|
|
6483
|
-
? deserializeAws_json1_1CustomLabels(output.CustomLabels, context)
|
|
6484
|
-
: undefined,
|
|
6372
|
+
CustomLabels: output.CustomLabels != null ? deserializeAws_json1_1CustomLabels(output.CustomLabels, context) : undefined,
|
|
6485
6373
|
};
|
|
6486
6374
|
};
|
|
6487
6375
|
var deserializeAws_json1_1DetectFacesResponse = function (output, context) {
|
|
6488
6376
|
return {
|
|
6489
|
-
FaceDetails: output.FaceDetails
|
|
6490
|
-
? deserializeAws_json1_1FaceDetailList(output.FaceDetails, context)
|
|
6491
|
-
: undefined,
|
|
6377
|
+
FaceDetails: output.FaceDetails != null ? deserializeAws_json1_1FaceDetailList(output.FaceDetails, context) : undefined,
|
|
6492
6378
|
OrientationCorrection: __expectString(output.OrientationCorrection),
|
|
6493
6379
|
};
|
|
6494
6380
|
};
|
|
6495
6381
|
var deserializeAws_json1_1DetectLabelsResponse = function (output, context) {
|
|
6496
6382
|
return {
|
|
6497
6383
|
LabelModelVersion: __expectString(output.LabelModelVersion),
|
|
6498
|
-
Labels: output.Labels
|
|
6499
|
-
? deserializeAws_json1_1Labels(output.Labels, context)
|
|
6500
|
-
: undefined,
|
|
6384
|
+
Labels: output.Labels != null ? deserializeAws_json1_1Labels(output.Labels, context) : undefined,
|
|
6501
6385
|
OrientationCorrection: __expectString(output.OrientationCorrection),
|
|
6502
6386
|
};
|
|
6503
6387
|
};
|
|
6504
6388
|
var deserializeAws_json1_1DetectModerationLabelsResponse = function (output, context) {
|
|
6505
6389
|
return {
|
|
6506
|
-
HumanLoopActivationOutput: output.HumanLoopActivationOutput
|
|
6390
|
+
HumanLoopActivationOutput: output.HumanLoopActivationOutput != null
|
|
6507
6391
|
? deserializeAws_json1_1HumanLoopActivationOutput(output.HumanLoopActivationOutput, context)
|
|
6508
6392
|
: undefined,
|
|
6509
|
-
ModerationLabels: output.ModerationLabels
|
|
6393
|
+
ModerationLabels: output.ModerationLabels != null
|
|
6510
6394
|
? deserializeAws_json1_1ModerationLabels(output.ModerationLabels, context)
|
|
6511
6395
|
: undefined,
|
|
6512
6396
|
ModerationModelVersion: __expectString(output.ModerationModelVersion),
|
|
@@ -6514,18 +6398,14 @@ var deserializeAws_json1_1DetectModerationLabelsResponse = function (output, con
|
|
|
6514
6398
|
};
|
|
6515
6399
|
var deserializeAws_json1_1DetectProtectiveEquipmentResponse = function (output, context) {
|
|
6516
6400
|
return {
|
|
6517
|
-
Persons: output.Persons
|
|
6518
|
-
? deserializeAws_json1_1ProtectiveEquipmentPersons(output.Persons, context)
|
|
6519
|
-
: undefined,
|
|
6401
|
+
Persons: output.Persons != null ? deserializeAws_json1_1ProtectiveEquipmentPersons(output.Persons, context) : undefined,
|
|
6520
6402
|
ProtectiveEquipmentModelVersion: __expectString(output.ProtectiveEquipmentModelVersion),
|
|
6521
|
-
Summary: output.Summary
|
|
6522
|
-
? deserializeAws_json1_1ProtectiveEquipmentSummary(output.Summary, context)
|
|
6523
|
-
: undefined,
|
|
6403
|
+
Summary: output.Summary != null ? deserializeAws_json1_1ProtectiveEquipmentSummary(output.Summary, context) : undefined,
|
|
6524
6404
|
};
|
|
6525
6405
|
};
|
|
6526
6406
|
var deserializeAws_json1_1DetectTextResponse = function (output, context) {
|
|
6527
6407
|
return {
|
|
6528
|
-
TextDetections: output.TextDetections
|
|
6408
|
+
TextDetections: output.TextDetections != null
|
|
6529
6409
|
? deserializeAws_json1_1TextDetectionList(output.TextDetections, context)
|
|
6530
6410
|
: undefined,
|
|
6531
6411
|
TextModelVersion: __expectString(output.TextModelVersion),
|
|
@@ -6553,13 +6433,9 @@ var deserializeAws_json1_1Emotions = function (output, context) {
|
|
|
6553
6433
|
};
|
|
6554
6434
|
var deserializeAws_json1_1EquipmentDetection = function (output, context) {
|
|
6555
6435
|
return {
|
|
6556
|
-
BoundingBox: output.BoundingBox
|
|
6557
|
-
? deserializeAws_json1_1BoundingBox(output.BoundingBox, context)
|
|
6558
|
-
: undefined,
|
|
6436
|
+
BoundingBox: output.BoundingBox != null ? deserializeAws_json1_1BoundingBox(output.BoundingBox, context) : undefined,
|
|
6559
6437
|
Confidence: __limitedParseFloat32(output.Confidence),
|
|
6560
|
-
CoversBodyPart: output.CoversBodyPart
|
|
6561
|
-
? deserializeAws_json1_1CoversBodyPart(output.CoversBodyPart, context)
|
|
6562
|
-
: undefined,
|
|
6438
|
+
CoversBodyPart: output.CoversBodyPart != null ? deserializeAws_json1_1CoversBodyPart(output.CoversBodyPart, context) : undefined,
|
|
6563
6439
|
Type: __expectString(output.Type),
|
|
6564
6440
|
};
|
|
6565
6441
|
};
|
|
@@ -6577,9 +6453,7 @@ var deserializeAws_json1_1EquipmentDetections = function (output, context) {
|
|
|
6577
6453
|
var deserializeAws_json1_1EvaluationResult = function (output, context) {
|
|
6578
6454
|
return {
|
|
6579
6455
|
F1Score: __limitedParseFloat32(output.F1Score),
|
|
6580
|
-
Summary: output.Summary
|
|
6581
|
-
? deserializeAws_json1_1Summary(output.Summary, context)
|
|
6582
|
-
: undefined,
|
|
6456
|
+
Summary: output.Summary != null ? deserializeAws_json1_1Summary(output.Summary, context) : undefined,
|
|
6583
6457
|
};
|
|
6584
6458
|
};
|
|
6585
6459
|
var deserializeAws_json1_1Eyeglasses = function (output, context) {
|
|
@@ -6596,9 +6470,7 @@ var deserializeAws_json1_1EyeOpen = function (output, context) {
|
|
|
6596
6470
|
};
|
|
6597
6471
|
var deserializeAws_json1_1Face = function (output, context) {
|
|
6598
6472
|
return {
|
|
6599
|
-
BoundingBox: output.BoundingBox
|
|
6600
|
-
? deserializeAws_json1_1BoundingBox(output.BoundingBox, context)
|
|
6601
|
-
: undefined,
|
|
6473
|
+
BoundingBox: output.BoundingBox != null ? deserializeAws_json1_1BoundingBox(output.BoundingBox, context) : undefined,
|
|
6602
6474
|
Confidence: __limitedParseFloat32(output.Confidence),
|
|
6603
6475
|
ExternalImageId: __expectString(output.ExternalImageId),
|
|
6604
6476
|
FaceId: __expectString(output.FaceId),
|
|
@@ -6608,47 +6480,21 @@ var deserializeAws_json1_1Face = function (output, context) {
|
|
|
6608
6480
|
};
|
|
6609
6481
|
var deserializeAws_json1_1FaceDetail = function (output, context) {
|
|
6610
6482
|
return {
|
|
6611
|
-
AgeRange: output.AgeRange
|
|
6612
|
-
|
|
6613
|
-
|
|
6614
|
-
Beard: output.Beard !== undefined && output.Beard !== null
|
|
6615
|
-
? deserializeAws_json1_1Beard(output.Beard, context)
|
|
6616
|
-
: undefined,
|
|
6617
|
-
BoundingBox: output.BoundingBox !== undefined && output.BoundingBox !== null
|
|
6618
|
-
? deserializeAws_json1_1BoundingBox(output.BoundingBox, context)
|
|
6619
|
-
: undefined,
|
|
6483
|
+
AgeRange: output.AgeRange != null ? deserializeAws_json1_1AgeRange(output.AgeRange, context) : undefined,
|
|
6484
|
+
Beard: output.Beard != null ? deserializeAws_json1_1Beard(output.Beard, context) : undefined,
|
|
6485
|
+
BoundingBox: output.BoundingBox != null ? deserializeAws_json1_1BoundingBox(output.BoundingBox, context) : undefined,
|
|
6620
6486
|
Confidence: __limitedParseFloat32(output.Confidence),
|
|
6621
|
-
Emotions: output.Emotions
|
|
6622
|
-
|
|
6623
|
-
|
|
6624
|
-
|
|
6625
|
-
|
|
6626
|
-
|
|
6627
|
-
|
|
6628
|
-
|
|
6629
|
-
|
|
6630
|
-
|
|
6631
|
-
|
|
6632
|
-
: undefined,
|
|
6633
|
-
Landmarks: output.Landmarks !== undefined && output.Landmarks !== null
|
|
6634
|
-
? deserializeAws_json1_1Landmarks(output.Landmarks, context)
|
|
6635
|
-
: undefined,
|
|
6636
|
-
MouthOpen: output.MouthOpen !== undefined && output.MouthOpen !== null
|
|
6637
|
-
? deserializeAws_json1_1MouthOpen(output.MouthOpen, context)
|
|
6638
|
-
: undefined,
|
|
6639
|
-
Mustache: output.Mustache !== undefined && output.Mustache !== null
|
|
6640
|
-
? deserializeAws_json1_1Mustache(output.Mustache, context)
|
|
6641
|
-
: undefined,
|
|
6642
|
-
Pose: output.Pose !== undefined && output.Pose !== null ? deserializeAws_json1_1Pose(output.Pose, context) : undefined,
|
|
6643
|
-
Quality: output.Quality !== undefined && output.Quality !== null
|
|
6644
|
-
? deserializeAws_json1_1ImageQuality(output.Quality, context)
|
|
6645
|
-
: undefined,
|
|
6646
|
-
Smile: output.Smile !== undefined && output.Smile !== null
|
|
6647
|
-
? deserializeAws_json1_1Smile(output.Smile, context)
|
|
6648
|
-
: undefined,
|
|
6649
|
-
Sunglasses: output.Sunglasses !== undefined && output.Sunglasses !== null
|
|
6650
|
-
? deserializeAws_json1_1Sunglasses(output.Sunglasses, context)
|
|
6651
|
-
: undefined,
|
|
6487
|
+
Emotions: output.Emotions != null ? deserializeAws_json1_1Emotions(output.Emotions, context) : undefined,
|
|
6488
|
+
Eyeglasses: output.Eyeglasses != null ? deserializeAws_json1_1Eyeglasses(output.Eyeglasses, context) : undefined,
|
|
6489
|
+
EyesOpen: output.EyesOpen != null ? deserializeAws_json1_1EyeOpen(output.EyesOpen, context) : undefined,
|
|
6490
|
+
Gender: output.Gender != null ? deserializeAws_json1_1Gender(output.Gender, context) : undefined,
|
|
6491
|
+
Landmarks: output.Landmarks != null ? deserializeAws_json1_1Landmarks(output.Landmarks, context) : undefined,
|
|
6492
|
+
MouthOpen: output.MouthOpen != null ? deserializeAws_json1_1MouthOpen(output.MouthOpen, context) : undefined,
|
|
6493
|
+
Mustache: output.Mustache != null ? deserializeAws_json1_1Mustache(output.Mustache, context) : undefined,
|
|
6494
|
+
Pose: output.Pose != null ? deserializeAws_json1_1Pose(output.Pose, context) : undefined,
|
|
6495
|
+
Quality: output.Quality != null ? deserializeAws_json1_1ImageQuality(output.Quality, context) : undefined,
|
|
6496
|
+
Smile: output.Smile != null ? deserializeAws_json1_1Smile(output.Smile, context) : undefined,
|
|
6497
|
+
Sunglasses: output.Sunglasses != null ? deserializeAws_json1_1Sunglasses(output.Sunglasses, context) : undefined,
|
|
6652
6498
|
};
|
|
6653
6499
|
};
|
|
6654
6500
|
var deserializeAws_json1_1FaceDetailList = function (output, context) {
|
|
@@ -6664,9 +6510,7 @@ var deserializeAws_json1_1FaceDetailList = function (output, context) {
|
|
|
6664
6510
|
};
|
|
6665
6511
|
var deserializeAws_json1_1FaceDetection = function (output, context) {
|
|
6666
6512
|
return {
|
|
6667
|
-
Face: output.Face
|
|
6668
|
-
? deserializeAws_json1_1FaceDetail(output.Face, context)
|
|
6669
|
-
: undefined,
|
|
6513
|
+
Face: output.Face != null ? deserializeAws_json1_1FaceDetail(output.Face, context) : undefined,
|
|
6670
6514
|
Timestamp: __expectLong(output.Timestamp),
|
|
6671
6515
|
};
|
|
6672
6516
|
};
|
|
@@ -6705,7 +6549,7 @@ var deserializeAws_json1_1FaceList = function (output, context) {
|
|
|
6705
6549
|
};
|
|
6706
6550
|
var deserializeAws_json1_1FaceMatch = function (output, context) {
|
|
6707
6551
|
return {
|
|
6708
|
-
Face: output.Face
|
|
6552
|
+
Face: output.Face != null ? deserializeAws_json1_1Face(output.Face, context) : undefined,
|
|
6709
6553
|
Similarity: __limitedParseFloat32(output.Similarity),
|
|
6710
6554
|
};
|
|
6711
6555
|
};
|
|
@@ -6733,10 +6577,8 @@ var deserializeAws_json1_1FaceModelVersionList = function (output, context) {
|
|
|
6733
6577
|
};
|
|
6734
6578
|
var deserializeAws_json1_1FaceRecord = function (output, context) {
|
|
6735
6579
|
return {
|
|
6736
|
-
Face: output.Face
|
|
6737
|
-
FaceDetail: output.FaceDetail
|
|
6738
|
-
? deserializeAws_json1_1FaceDetail(output.FaceDetail, context)
|
|
6739
|
-
: undefined,
|
|
6580
|
+
Face: output.Face != null ? deserializeAws_json1_1Face(output.Face, context) : undefined,
|
|
6581
|
+
FaceDetail: output.FaceDetail != null ? deserializeAws_json1_1FaceDetail(output.FaceDetail, context) : undefined,
|
|
6740
6582
|
};
|
|
6741
6583
|
};
|
|
6742
6584
|
var deserializeAws_json1_1FaceRecordList = function (output, context) {
|
|
@@ -6764,120 +6606,86 @@ var deserializeAws_json1_1Gender = function (output, context) {
|
|
|
6764
6606
|
};
|
|
6765
6607
|
var deserializeAws_json1_1Geometry = function (output, context) {
|
|
6766
6608
|
return {
|
|
6767
|
-
BoundingBox: output.BoundingBox
|
|
6768
|
-
|
|
6769
|
-
: undefined,
|
|
6770
|
-
Polygon: output.Polygon !== undefined && output.Polygon !== null
|
|
6771
|
-
? deserializeAws_json1_1Polygon(output.Polygon, context)
|
|
6772
|
-
: undefined,
|
|
6609
|
+
BoundingBox: output.BoundingBox != null ? deserializeAws_json1_1BoundingBox(output.BoundingBox, context) : undefined,
|
|
6610
|
+
Polygon: output.Polygon != null ? deserializeAws_json1_1Polygon(output.Polygon, context) : undefined,
|
|
6773
6611
|
};
|
|
6774
6612
|
};
|
|
6775
6613
|
var deserializeAws_json1_1GetCelebrityInfoResponse = function (output, context) {
|
|
6776
6614
|
return {
|
|
6777
|
-
KnownGender: output.KnownGender
|
|
6778
|
-
? deserializeAws_json1_1KnownGender(output.KnownGender, context)
|
|
6779
|
-
: undefined,
|
|
6615
|
+
KnownGender: output.KnownGender != null ? deserializeAws_json1_1KnownGender(output.KnownGender, context) : undefined,
|
|
6780
6616
|
Name: __expectString(output.Name),
|
|
6781
|
-
Urls: output.Urls
|
|
6617
|
+
Urls: output.Urls != null ? deserializeAws_json1_1Urls(output.Urls, context) : undefined,
|
|
6782
6618
|
};
|
|
6783
6619
|
};
|
|
6784
6620
|
var deserializeAws_json1_1GetCelebrityRecognitionResponse = function (output, context) {
|
|
6785
6621
|
return {
|
|
6786
|
-
Celebrities: output.Celebrities
|
|
6787
|
-
? deserializeAws_json1_1CelebrityRecognitions(output.Celebrities, context)
|
|
6788
|
-
: undefined,
|
|
6622
|
+
Celebrities: output.Celebrities != null ? deserializeAws_json1_1CelebrityRecognitions(output.Celebrities, context) : undefined,
|
|
6789
6623
|
JobStatus: __expectString(output.JobStatus),
|
|
6790
6624
|
NextToken: __expectString(output.NextToken),
|
|
6791
6625
|
StatusMessage: __expectString(output.StatusMessage),
|
|
6792
|
-
VideoMetadata: output.VideoMetadata
|
|
6793
|
-
? deserializeAws_json1_1VideoMetadata(output.VideoMetadata, context)
|
|
6794
|
-
: undefined,
|
|
6626
|
+
VideoMetadata: output.VideoMetadata != null ? deserializeAws_json1_1VideoMetadata(output.VideoMetadata, context) : undefined,
|
|
6795
6627
|
};
|
|
6796
6628
|
};
|
|
6797
6629
|
var deserializeAws_json1_1GetContentModerationResponse = function (output, context) {
|
|
6798
6630
|
return {
|
|
6799
6631
|
JobStatus: __expectString(output.JobStatus),
|
|
6800
|
-
ModerationLabels: output.ModerationLabels
|
|
6632
|
+
ModerationLabels: output.ModerationLabels != null
|
|
6801
6633
|
? deserializeAws_json1_1ContentModerationDetections(output.ModerationLabels, context)
|
|
6802
6634
|
: undefined,
|
|
6803
6635
|
ModerationModelVersion: __expectString(output.ModerationModelVersion),
|
|
6804
6636
|
NextToken: __expectString(output.NextToken),
|
|
6805
6637
|
StatusMessage: __expectString(output.StatusMessage),
|
|
6806
|
-
VideoMetadata: output.VideoMetadata
|
|
6807
|
-
? deserializeAws_json1_1VideoMetadata(output.VideoMetadata, context)
|
|
6808
|
-
: undefined,
|
|
6638
|
+
VideoMetadata: output.VideoMetadata != null ? deserializeAws_json1_1VideoMetadata(output.VideoMetadata, context) : undefined,
|
|
6809
6639
|
};
|
|
6810
6640
|
};
|
|
6811
6641
|
var deserializeAws_json1_1GetFaceDetectionResponse = function (output, context) {
|
|
6812
6642
|
return {
|
|
6813
|
-
Faces: output.Faces
|
|
6814
|
-
? deserializeAws_json1_1FaceDetections(output.Faces, context)
|
|
6815
|
-
: undefined,
|
|
6643
|
+
Faces: output.Faces != null ? deserializeAws_json1_1FaceDetections(output.Faces, context) : undefined,
|
|
6816
6644
|
JobStatus: __expectString(output.JobStatus),
|
|
6817
6645
|
NextToken: __expectString(output.NextToken),
|
|
6818
6646
|
StatusMessage: __expectString(output.StatusMessage),
|
|
6819
|
-
VideoMetadata: output.VideoMetadata
|
|
6820
|
-
? deserializeAws_json1_1VideoMetadata(output.VideoMetadata, context)
|
|
6821
|
-
: undefined,
|
|
6647
|
+
VideoMetadata: output.VideoMetadata != null ? deserializeAws_json1_1VideoMetadata(output.VideoMetadata, context) : undefined,
|
|
6822
6648
|
};
|
|
6823
6649
|
};
|
|
6824
6650
|
var deserializeAws_json1_1GetFaceSearchResponse = function (output, context) {
|
|
6825
6651
|
return {
|
|
6826
6652
|
JobStatus: __expectString(output.JobStatus),
|
|
6827
6653
|
NextToken: __expectString(output.NextToken),
|
|
6828
|
-
Persons: output.Persons
|
|
6829
|
-
? deserializeAws_json1_1PersonMatches(output.Persons, context)
|
|
6830
|
-
: undefined,
|
|
6654
|
+
Persons: output.Persons != null ? deserializeAws_json1_1PersonMatches(output.Persons, context) : undefined,
|
|
6831
6655
|
StatusMessage: __expectString(output.StatusMessage),
|
|
6832
|
-
VideoMetadata: output.VideoMetadata
|
|
6833
|
-
? deserializeAws_json1_1VideoMetadata(output.VideoMetadata, context)
|
|
6834
|
-
: undefined,
|
|
6656
|
+
VideoMetadata: output.VideoMetadata != null ? deserializeAws_json1_1VideoMetadata(output.VideoMetadata, context) : undefined,
|
|
6835
6657
|
};
|
|
6836
6658
|
};
|
|
6837
6659
|
var deserializeAws_json1_1GetLabelDetectionResponse = function (output, context) {
|
|
6838
6660
|
return {
|
|
6839
6661
|
JobStatus: __expectString(output.JobStatus),
|
|
6840
6662
|
LabelModelVersion: __expectString(output.LabelModelVersion),
|
|
6841
|
-
Labels: output.Labels
|
|
6842
|
-
? deserializeAws_json1_1LabelDetections(output.Labels, context)
|
|
6843
|
-
: undefined,
|
|
6663
|
+
Labels: output.Labels != null ? deserializeAws_json1_1LabelDetections(output.Labels, context) : undefined,
|
|
6844
6664
|
NextToken: __expectString(output.NextToken),
|
|
6845
6665
|
StatusMessage: __expectString(output.StatusMessage),
|
|
6846
|
-
VideoMetadata: output.VideoMetadata
|
|
6847
|
-
? deserializeAws_json1_1VideoMetadata(output.VideoMetadata, context)
|
|
6848
|
-
: undefined,
|
|
6666
|
+
VideoMetadata: output.VideoMetadata != null ? deserializeAws_json1_1VideoMetadata(output.VideoMetadata, context) : undefined,
|
|
6849
6667
|
};
|
|
6850
6668
|
};
|
|
6851
6669
|
var deserializeAws_json1_1GetPersonTrackingResponse = function (output, context) {
|
|
6852
6670
|
return {
|
|
6853
6671
|
JobStatus: __expectString(output.JobStatus),
|
|
6854
6672
|
NextToken: __expectString(output.NextToken),
|
|
6855
|
-
Persons: output.Persons
|
|
6856
|
-
? deserializeAws_json1_1PersonDetections(output.Persons, context)
|
|
6857
|
-
: undefined,
|
|
6673
|
+
Persons: output.Persons != null ? deserializeAws_json1_1PersonDetections(output.Persons, context) : undefined,
|
|
6858
6674
|
StatusMessage: __expectString(output.StatusMessage),
|
|
6859
|
-
VideoMetadata: output.VideoMetadata
|
|
6860
|
-
? deserializeAws_json1_1VideoMetadata(output.VideoMetadata, context)
|
|
6861
|
-
: undefined,
|
|
6675
|
+
VideoMetadata: output.VideoMetadata != null ? deserializeAws_json1_1VideoMetadata(output.VideoMetadata, context) : undefined,
|
|
6862
6676
|
};
|
|
6863
6677
|
};
|
|
6864
6678
|
var deserializeAws_json1_1GetSegmentDetectionResponse = function (output, context) {
|
|
6865
6679
|
return {
|
|
6866
|
-
AudioMetadata: output.AudioMetadata
|
|
6867
|
-
? deserializeAws_json1_1AudioMetadataList(output.AudioMetadata, context)
|
|
6868
|
-
: undefined,
|
|
6680
|
+
AudioMetadata: output.AudioMetadata != null ? deserializeAws_json1_1AudioMetadataList(output.AudioMetadata, context) : undefined,
|
|
6869
6681
|
JobStatus: __expectString(output.JobStatus),
|
|
6870
6682
|
NextToken: __expectString(output.NextToken),
|
|
6871
|
-
Segments: output.Segments
|
|
6872
|
-
|
|
6873
|
-
: undefined,
|
|
6874
|
-
SelectedSegmentTypes: output.SelectedSegmentTypes !== undefined && output.SelectedSegmentTypes !== null
|
|
6683
|
+
Segments: output.Segments != null ? deserializeAws_json1_1SegmentDetections(output.Segments, context) : undefined,
|
|
6684
|
+
SelectedSegmentTypes: output.SelectedSegmentTypes != null
|
|
6875
6685
|
? deserializeAws_json1_1SegmentTypesInfo(output.SelectedSegmentTypes, context)
|
|
6876
6686
|
: undefined,
|
|
6877
6687
|
StatusMessage: __expectString(output.StatusMessage),
|
|
6878
|
-
VideoMetadata: output.VideoMetadata
|
|
6879
|
-
? deserializeAws_json1_1VideoMetadataList(output.VideoMetadata, context)
|
|
6880
|
-
: undefined,
|
|
6688
|
+
VideoMetadata: output.VideoMetadata != null ? deserializeAws_json1_1VideoMetadataList(output.VideoMetadata, context) : undefined,
|
|
6881
6689
|
};
|
|
6882
6690
|
};
|
|
6883
6691
|
var deserializeAws_json1_1GetTextDetectionResponse = function (output, context) {
|
|
@@ -6885,29 +6693,24 @@ var deserializeAws_json1_1GetTextDetectionResponse = function (output, context)
|
|
|
6885
6693
|
JobStatus: __expectString(output.JobStatus),
|
|
6886
6694
|
NextToken: __expectString(output.NextToken),
|
|
6887
6695
|
StatusMessage: __expectString(output.StatusMessage),
|
|
6888
|
-
TextDetections: output.TextDetections
|
|
6696
|
+
TextDetections: output.TextDetections != null
|
|
6889
6697
|
? deserializeAws_json1_1TextDetectionResults(output.TextDetections, context)
|
|
6890
6698
|
: undefined,
|
|
6891
6699
|
TextModelVersion: __expectString(output.TextModelVersion),
|
|
6892
|
-
VideoMetadata: output.VideoMetadata
|
|
6893
|
-
? deserializeAws_json1_1VideoMetadata(output.VideoMetadata, context)
|
|
6894
|
-
: undefined,
|
|
6700
|
+
VideoMetadata: output.VideoMetadata != null ? deserializeAws_json1_1VideoMetadata(output.VideoMetadata, context) : undefined,
|
|
6895
6701
|
};
|
|
6896
6702
|
};
|
|
6897
6703
|
var deserializeAws_json1_1GroundTruthManifest = function (output, context) {
|
|
6898
6704
|
return {
|
|
6899
|
-
S3Object: output.S3Object
|
|
6900
|
-
? deserializeAws_json1_1S3Object(output.S3Object, context)
|
|
6901
|
-
: undefined,
|
|
6705
|
+
S3Object: output.S3Object != null ? deserializeAws_json1_1S3Object(output.S3Object, context) : undefined,
|
|
6902
6706
|
};
|
|
6903
6707
|
};
|
|
6904
6708
|
var deserializeAws_json1_1HumanLoopActivationOutput = function (output, context) {
|
|
6905
6709
|
return {
|
|
6906
|
-
HumanLoopActivationConditionsEvaluationResults: output.HumanLoopActivationConditionsEvaluationResults
|
|
6907
|
-
output.HumanLoopActivationConditionsEvaluationResults !== null
|
|
6710
|
+
HumanLoopActivationConditionsEvaluationResults: output.HumanLoopActivationConditionsEvaluationResults != null
|
|
6908
6711
|
? new __LazyJsonString(output.HumanLoopActivationConditionsEvaluationResults)
|
|
6909
6712
|
: undefined,
|
|
6910
|
-
HumanLoopActivationReasons: output.HumanLoopActivationReasons
|
|
6713
|
+
HumanLoopActivationReasons: output.HumanLoopActivationReasons != null
|
|
6911
6714
|
? deserializeAws_json1_1HumanLoopActivationReasons(output.HumanLoopActivationReasons, context)
|
|
6912
6715
|
: undefined,
|
|
6913
6716
|
HumanLoopArn: __expectString(output.HumanLoopArn),
|
|
@@ -6957,20 +6760,14 @@ var deserializeAws_json1_1ImageTooLargeException = function (output, context) {
|
|
|
6957
6760
|
var deserializeAws_json1_1IndexFacesResponse = function (output, context) {
|
|
6958
6761
|
return {
|
|
6959
6762
|
FaceModelVersion: __expectString(output.FaceModelVersion),
|
|
6960
|
-
FaceRecords: output.FaceRecords
|
|
6961
|
-
? deserializeAws_json1_1FaceRecordList(output.FaceRecords, context)
|
|
6962
|
-
: undefined,
|
|
6763
|
+
FaceRecords: output.FaceRecords != null ? deserializeAws_json1_1FaceRecordList(output.FaceRecords, context) : undefined,
|
|
6963
6764
|
OrientationCorrection: __expectString(output.OrientationCorrection),
|
|
6964
|
-
UnindexedFaces: output.UnindexedFaces
|
|
6965
|
-
? deserializeAws_json1_1UnindexedFaces(output.UnindexedFaces, context)
|
|
6966
|
-
: undefined,
|
|
6765
|
+
UnindexedFaces: output.UnindexedFaces != null ? deserializeAws_json1_1UnindexedFaces(output.UnindexedFaces, context) : undefined,
|
|
6967
6766
|
};
|
|
6968
6767
|
};
|
|
6969
6768
|
var deserializeAws_json1_1Instance = function (output, context) {
|
|
6970
6769
|
return {
|
|
6971
|
-
BoundingBox: output.BoundingBox
|
|
6972
|
-
? deserializeAws_json1_1BoundingBox(output.BoundingBox, context)
|
|
6973
|
-
: undefined,
|
|
6770
|
+
BoundingBox: output.BoundingBox != null ? deserializeAws_json1_1BoundingBox(output.BoundingBox, context) : undefined,
|
|
6974
6771
|
Confidence: __limitedParseFloat32(output.Confidence),
|
|
6975
6772
|
};
|
|
6976
6773
|
};
|
|
@@ -7038,20 +6835,14 @@ var deserializeAws_json1_1KnownGender = function (output, context) {
|
|
|
7038
6835
|
var deserializeAws_json1_1Label = function (output, context) {
|
|
7039
6836
|
return {
|
|
7040
6837
|
Confidence: __limitedParseFloat32(output.Confidence),
|
|
7041
|
-
Instances: output.Instances
|
|
7042
|
-
? deserializeAws_json1_1Instances(output.Instances, context)
|
|
7043
|
-
: undefined,
|
|
6838
|
+
Instances: output.Instances != null ? deserializeAws_json1_1Instances(output.Instances, context) : undefined,
|
|
7044
6839
|
Name: __expectString(output.Name),
|
|
7045
|
-
Parents: output.Parents
|
|
7046
|
-
? deserializeAws_json1_1Parents(output.Parents, context)
|
|
7047
|
-
: undefined,
|
|
6840
|
+
Parents: output.Parents != null ? deserializeAws_json1_1Parents(output.Parents, context) : undefined,
|
|
7048
6841
|
};
|
|
7049
6842
|
};
|
|
7050
6843
|
var deserializeAws_json1_1LabelDetection = function (output, context) {
|
|
7051
6844
|
return {
|
|
7052
|
-
Label: output.Label
|
|
7053
|
-
? deserializeAws_json1_1Label(output.Label, context)
|
|
7054
|
-
: undefined,
|
|
6845
|
+
Label: output.Label != null ? deserializeAws_json1_1Label(output.Label, context) : undefined,
|
|
7055
6846
|
Timestamp: __expectLong(output.Timestamp),
|
|
7056
6847
|
};
|
|
7057
6848
|
};
|
|
@@ -7104,10 +6895,8 @@ var deserializeAws_json1_1LimitExceededException = function (output, context) {
|
|
|
7104
6895
|
};
|
|
7105
6896
|
var deserializeAws_json1_1ListCollectionsResponse = function (output, context) {
|
|
7106
6897
|
return {
|
|
7107
|
-
CollectionIds: output.CollectionIds
|
|
7108
|
-
|
|
7109
|
-
: undefined,
|
|
7110
|
-
FaceModelVersions: output.FaceModelVersions !== undefined && output.FaceModelVersions !== null
|
|
6898
|
+
CollectionIds: output.CollectionIds != null ? deserializeAws_json1_1CollectionIdList(output.CollectionIds, context) : undefined,
|
|
6899
|
+
FaceModelVersions: output.FaceModelVersions != null
|
|
7111
6900
|
? deserializeAws_json1_1FaceModelVersionList(output.FaceModelVersions, context)
|
|
7112
6901
|
: undefined,
|
|
7113
6902
|
NextToken: __expectString(output.NextToken),
|
|
@@ -7115,15 +6904,13 @@ var deserializeAws_json1_1ListCollectionsResponse = function (output, context) {
|
|
|
7115
6904
|
};
|
|
7116
6905
|
var deserializeAws_json1_1ListDatasetEntriesResponse = function (output, context) {
|
|
7117
6906
|
return {
|
|
7118
|
-
DatasetEntries: output.DatasetEntries
|
|
7119
|
-
? deserializeAws_json1_1DatasetEntries(output.DatasetEntries, context)
|
|
7120
|
-
: undefined,
|
|
6907
|
+
DatasetEntries: output.DatasetEntries != null ? deserializeAws_json1_1DatasetEntries(output.DatasetEntries, context) : undefined,
|
|
7121
6908
|
NextToken: __expectString(output.NextToken),
|
|
7122
6909
|
};
|
|
7123
6910
|
};
|
|
7124
6911
|
var deserializeAws_json1_1ListDatasetLabelsResponse = function (output, context) {
|
|
7125
6912
|
return {
|
|
7126
|
-
DatasetLabelDescriptions: output.DatasetLabelDescriptions
|
|
6913
|
+
DatasetLabelDescriptions: output.DatasetLabelDescriptions != null
|
|
7127
6914
|
? deserializeAws_json1_1DatasetLabelDescriptions(output.DatasetLabelDescriptions, context)
|
|
7128
6915
|
: undefined,
|
|
7129
6916
|
NextToken: __expectString(output.NextToken),
|
|
@@ -7132,25 +6919,21 @@ var deserializeAws_json1_1ListDatasetLabelsResponse = function (output, context)
|
|
|
7132
6919
|
var deserializeAws_json1_1ListFacesResponse = function (output, context) {
|
|
7133
6920
|
return {
|
|
7134
6921
|
FaceModelVersion: __expectString(output.FaceModelVersion),
|
|
7135
|
-
Faces: output.Faces
|
|
7136
|
-
? deserializeAws_json1_1FaceList(output.Faces, context)
|
|
7137
|
-
: undefined,
|
|
6922
|
+
Faces: output.Faces != null ? deserializeAws_json1_1FaceList(output.Faces, context) : undefined,
|
|
7138
6923
|
NextToken: __expectString(output.NextToken),
|
|
7139
6924
|
};
|
|
7140
6925
|
};
|
|
7141
6926
|
var deserializeAws_json1_1ListStreamProcessorsResponse = function (output, context) {
|
|
7142
6927
|
return {
|
|
7143
6928
|
NextToken: __expectString(output.NextToken),
|
|
7144
|
-
StreamProcessors: output.StreamProcessors
|
|
6929
|
+
StreamProcessors: output.StreamProcessors != null
|
|
7145
6930
|
? deserializeAws_json1_1StreamProcessorList(output.StreamProcessors, context)
|
|
7146
6931
|
: undefined,
|
|
7147
6932
|
};
|
|
7148
6933
|
};
|
|
7149
6934
|
var deserializeAws_json1_1ListTagsForResourceResponse = function (output, context) {
|
|
7150
6935
|
return {
|
|
7151
|
-
Tags: output.Tags
|
|
7152
|
-
? deserializeAws_json1_1TagMap(output.Tags, context)
|
|
7153
|
-
: undefined,
|
|
6936
|
+
Tags: output.Tags != null ? deserializeAws_json1_1TagMap(output.Tags, context) : undefined,
|
|
7154
6937
|
};
|
|
7155
6938
|
};
|
|
7156
6939
|
var deserializeAws_json1_1ModerationLabel = function (output, context) {
|
|
@@ -7207,20 +6990,14 @@ var deserializeAws_json1_1Parents = function (output, context) {
|
|
|
7207
6990
|
};
|
|
7208
6991
|
var deserializeAws_json1_1PersonDetail = function (output, context) {
|
|
7209
6992
|
return {
|
|
7210
|
-
BoundingBox: output.BoundingBox
|
|
7211
|
-
|
|
7212
|
-
: undefined,
|
|
7213
|
-
Face: output.Face !== undefined && output.Face !== null
|
|
7214
|
-
? deserializeAws_json1_1FaceDetail(output.Face, context)
|
|
7215
|
-
: undefined,
|
|
6993
|
+
BoundingBox: output.BoundingBox != null ? deserializeAws_json1_1BoundingBox(output.BoundingBox, context) : undefined,
|
|
6994
|
+
Face: output.Face != null ? deserializeAws_json1_1FaceDetail(output.Face, context) : undefined,
|
|
7216
6995
|
Index: __expectLong(output.Index),
|
|
7217
6996
|
};
|
|
7218
6997
|
};
|
|
7219
6998
|
var deserializeAws_json1_1PersonDetection = function (output, context) {
|
|
7220
6999
|
return {
|
|
7221
|
-
Person: output.Person
|
|
7222
|
-
? deserializeAws_json1_1PersonDetail(output.Person, context)
|
|
7223
|
-
: undefined,
|
|
7000
|
+
Person: output.Person != null ? deserializeAws_json1_1PersonDetail(output.Person, context) : undefined,
|
|
7224
7001
|
Timestamp: __expectLong(output.Timestamp),
|
|
7225
7002
|
};
|
|
7226
7003
|
};
|
|
@@ -7237,12 +7014,8 @@ var deserializeAws_json1_1PersonDetections = function (output, context) {
|
|
|
7237
7014
|
};
|
|
7238
7015
|
var deserializeAws_json1_1PersonMatch = function (output, context) {
|
|
7239
7016
|
return {
|
|
7240
|
-
FaceMatches: output.FaceMatches
|
|
7241
|
-
|
|
7242
|
-
: undefined,
|
|
7243
|
-
Person: output.Person !== undefined && output.Person !== null
|
|
7244
|
-
? deserializeAws_json1_1PersonDetail(output.Person, context)
|
|
7245
|
-
: undefined,
|
|
7017
|
+
FaceMatches: output.FaceMatches != null ? deserializeAws_json1_1FaceMatchList(output.FaceMatches, context) : undefined,
|
|
7018
|
+
Person: output.Person != null ? deserializeAws_json1_1PersonDetail(output.Person, context) : undefined,
|
|
7246
7019
|
Timestamp: __expectLong(output.Timestamp),
|
|
7247
7020
|
};
|
|
7248
7021
|
};
|
|
@@ -7283,12 +7056,10 @@ var deserializeAws_json1_1Pose = function (output, context) {
|
|
|
7283
7056
|
};
|
|
7284
7057
|
var deserializeAws_json1_1ProjectDescription = function (output, context) {
|
|
7285
7058
|
return {
|
|
7286
|
-
CreationTimestamp: output.CreationTimestamp
|
|
7059
|
+
CreationTimestamp: output.CreationTimestamp != null
|
|
7287
7060
|
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.CreationTimestamp)))
|
|
7288
7061
|
: undefined,
|
|
7289
|
-
Datasets: output.Datasets
|
|
7290
|
-
? deserializeAws_json1_1DatasetMetadataList(output.Datasets, context)
|
|
7291
|
-
: undefined,
|
|
7062
|
+
Datasets: output.Datasets != null ? deserializeAws_json1_1DatasetMetadataList(output.Datasets, context) : undefined,
|
|
7292
7063
|
ProjectArn: __expectString(output.ProjectArn),
|
|
7293
7064
|
Status: __expectString(output.Status),
|
|
7294
7065
|
};
|
|
@@ -7307,30 +7078,28 @@ var deserializeAws_json1_1ProjectDescriptions = function (output, context) {
|
|
|
7307
7078
|
var deserializeAws_json1_1ProjectVersionDescription = function (output, context) {
|
|
7308
7079
|
return {
|
|
7309
7080
|
BillableTrainingTimeInSeconds: __expectLong(output.BillableTrainingTimeInSeconds),
|
|
7310
|
-
CreationTimestamp: output.CreationTimestamp
|
|
7081
|
+
CreationTimestamp: output.CreationTimestamp != null
|
|
7311
7082
|
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.CreationTimestamp)))
|
|
7312
7083
|
: undefined,
|
|
7313
|
-
EvaluationResult: output.EvaluationResult
|
|
7084
|
+
EvaluationResult: output.EvaluationResult != null
|
|
7314
7085
|
? deserializeAws_json1_1EvaluationResult(output.EvaluationResult, context)
|
|
7315
7086
|
: undefined,
|
|
7316
7087
|
KmsKeyId: __expectString(output.KmsKeyId),
|
|
7317
|
-
ManifestSummary: output.ManifestSummary
|
|
7088
|
+
ManifestSummary: output.ManifestSummary != null
|
|
7318
7089
|
? deserializeAws_json1_1GroundTruthManifest(output.ManifestSummary, context)
|
|
7319
7090
|
: undefined,
|
|
7320
7091
|
MinInferenceUnits: __expectInt32(output.MinInferenceUnits),
|
|
7321
|
-
OutputConfig: output.OutputConfig
|
|
7322
|
-
? deserializeAws_json1_1OutputConfig(output.OutputConfig, context)
|
|
7323
|
-
: undefined,
|
|
7092
|
+
OutputConfig: output.OutputConfig != null ? deserializeAws_json1_1OutputConfig(output.OutputConfig, context) : undefined,
|
|
7324
7093
|
ProjectVersionArn: __expectString(output.ProjectVersionArn),
|
|
7325
7094
|
Status: __expectString(output.Status),
|
|
7326
7095
|
StatusMessage: __expectString(output.StatusMessage),
|
|
7327
|
-
TestingDataResult: output.TestingDataResult
|
|
7096
|
+
TestingDataResult: output.TestingDataResult != null
|
|
7328
7097
|
? deserializeAws_json1_1TestingDataResult(output.TestingDataResult, context)
|
|
7329
7098
|
: undefined,
|
|
7330
|
-
TrainingDataResult: output.TrainingDataResult
|
|
7099
|
+
TrainingDataResult: output.TrainingDataResult != null
|
|
7331
7100
|
? deserializeAws_json1_1TrainingDataResult(output.TrainingDataResult, context)
|
|
7332
7101
|
: undefined,
|
|
7333
|
-
TrainingEndTimestamp: output.TrainingEndTimestamp
|
|
7102
|
+
TrainingEndTimestamp: output.TrainingEndTimestamp != null
|
|
7334
7103
|
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.TrainingEndTimestamp)))
|
|
7335
7104
|
: undefined,
|
|
7336
7105
|
};
|
|
@@ -7349,7 +7118,7 @@ var deserializeAws_json1_1ProjectVersionDescriptions = function (output, context
|
|
|
7349
7118
|
var deserializeAws_json1_1ProtectiveEquipmentBodyPart = function (output, context) {
|
|
7350
7119
|
return {
|
|
7351
7120
|
Confidence: __limitedParseFloat32(output.Confidence),
|
|
7352
|
-
EquipmentDetections: output.EquipmentDetections
|
|
7121
|
+
EquipmentDetections: output.EquipmentDetections != null
|
|
7353
7122
|
? deserializeAws_json1_1EquipmentDetections(output.EquipmentDetections, context)
|
|
7354
7123
|
: undefined,
|
|
7355
7124
|
Name: __expectString(output.Name),
|
|
@@ -7357,12 +7126,8 @@ var deserializeAws_json1_1ProtectiveEquipmentBodyPart = function (output, contex
|
|
|
7357
7126
|
};
|
|
7358
7127
|
var deserializeAws_json1_1ProtectiveEquipmentPerson = function (output, context) {
|
|
7359
7128
|
return {
|
|
7360
|
-
BodyParts: output.BodyParts
|
|
7361
|
-
|
|
7362
|
-
: undefined,
|
|
7363
|
-
BoundingBox: output.BoundingBox !== undefined && output.BoundingBox !== null
|
|
7364
|
-
? deserializeAws_json1_1BoundingBox(output.BoundingBox, context)
|
|
7365
|
-
: undefined,
|
|
7129
|
+
BodyParts: output.BodyParts != null ? deserializeAws_json1_1BodyParts(output.BodyParts, context) : undefined,
|
|
7130
|
+
BoundingBox: output.BoundingBox != null ? deserializeAws_json1_1BoundingBox(output.BoundingBox, context) : undefined,
|
|
7366
7131
|
Confidence: __limitedParseFloat32(output.Confidence),
|
|
7367
7132
|
Id: __expectInt32(output.Id),
|
|
7368
7133
|
};
|
|
@@ -7391,13 +7156,13 @@ var deserializeAws_json1_1ProtectiveEquipmentPersons = function (output, context
|
|
|
7391
7156
|
};
|
|
7392
7157
|
var deserializeAws_json1_1ProtectiveEquipmentSummary = function (output, context) {
|
|
7393
7158
|
return {
|
|
7394
|
-
PersonsIndeterminate: output.PersonsIndeterminate
|
|
7159
|
+
PersonsIndeterminate: output.PersonsIndeterminate != null
|
|
7395
7160
|
? deserializeAws_json1_1ProtectiveEquipmentPersonIds(output.PersonsIndeterminate, context)
|
|
7396
7161
|
: undefined,
|
|
7397
|
-
PersonsWithRequiredEquipment: output.PersonsWithRequiredEquipment
|
|
7162
|
+
PersonsWithRequiredEquipment: output.PersonsWithRequiredEquipment != null
|
|
7398
7163
|
? deserializeAws_json1_1ProtectiveEquipmentPersonIds(output.PersonsWithRequiredEquipment, context)
|
|
7399
7164
|
: undefined,
|
|
7400
|
-
PersonsWithoutRequiredEquipment: output.PersonsWithoutRequiredEquipment
|
|
7165
|
+
PersonsWithoutRequiredEquipment: output.PersonsWithoutRequiredEquipment != null
|
|
7401
7166
|
? deserializeAws_json1_1ProtectiveEquipmentPersonIds(output.PersonsWithoutRequiredEquipment, context)
|
|
7402
7167
|
: undefined,
|
|
7403
7168
|
};
|
|
@@ -7422,23 +7187,17 @@ var deserializeAws_json1_1Reasons = function (output, context) {
|
|
|
7422
7187
|
};
|
|
7423
7188
|
var deserializeAws_json1_1RecognizeCelebritiesResponse = function (output, context) {
|
|
7424
7189
|
return {
|
|
7425
|
-
CelebrityFaces: output.CelebrityFaces
|
|
7426
|
-
? deserializeAws_json1_1CelebrityList(output.CelebrityFaces, context)
|
|
7427
|
-
: undefined,
|
|
7190
|
+
CelebrityFaces: output.CelebrityFaces != null ? deserializeAws_json1_1CelebrityList(output.CelebrityFaces, context) : undefined,
|
|
7428
7191
|
OrientationCorrection: __expectString(output.OrientationCorrection),
|
|
7429
|
-
UnrecognizedFaces: output.UnrecognizedFaces
|
|
7192
|
+
UnrecognizedFaces: output.UnrecognizedFaces != null
|
|
7430
7193
|
? deserializeAws_json1_1ComparedFaceList(output.UnrecognizedFaces, context)
|
|
7431
7194
|
: undefined,
|
|
7432
7195
|
};
|
|
7433
7196
|
};
|
|
7434
7197
|
var deserializeAws_json1_1RegionOfInterest = function (output, context) {
|
|
7435
7198
|
return {
|
|
7436
|
-
BoundingBox: output.BoundingBox
|
|
7437
|
-
|
|
7438
|
-
: undefined,
|
|
7439
|
-
Polygon: output.Polygon !== undefined && output.Polygon !== null
|
|
7440
|
-
? deserializeAws_json1_1Polygon(output.Polygon, context)
|
|
7441
|
-
: undefined,
|
|
7199
|
+
BoundingBox: output.BoundingBox != null ? deserializeAws_json1_1BoundingBox(output.BoundingBox, context) : undefined,
|
|
7200
|
+
Polygon: output.Polygon != null ? deserializeAws_json1_1Polygon(output.Polygon, context) : undefined,
|
|
7442
7201
|
};
|
|
7443
7202
|
};
|
|
7444
7203
|
var deserializeAws_json1_1RegionsOfInterest = function (output, context) {
|
|
@@ -7495,11 +7254,9 @@ var deserializeAws_json1_1S3Object = function (output, context) {
|
|
|
7495
7254
|
};
|
|
7496
7255
|
var deserializeAws_json1_1SearchFacesByImageResponse = function (output, context) {
|
|
7497
7256
|
return {
|
|
7498
|
-
FaceMatches: output.FaceMatches
|
|
7499
|
-
? deserializeAws_json1_1FaceMatchList(output.FaceMatches, context)
|
|
7500
|
-
: undefined,
|
|
7257
|
+
FaceMatches: output.FaceMatches != null ? deserializeAws_json1_1FaceMatchList(output.FaceMatches, context) : undefined,
|
|
7501
7258
|
FaceModelVersion: __expectString(output.FaceModelVersion),
|
|
7502
|
-
SearchedFaceBoundingBox: output.SearchedFaceBoundingBox
|
|
7259
|
+
SearchedFaceBoundingBox: output.SearchedFaceBoundingBox != null
|
|
7503
7260
|
? deserializeAws_json1_1BoundingBox(output.SearchedFaceBoundingBox, context)
|
|
7504
7261
|
: undefined,
|
|
7505
7262
|
SearchedFaceConfidence: __limitedParseFloat32(output.SearchedFaceConfidence),
|
|
@@ -7507,9 +7264,7 @@ var deserializeAws_json1_1SearchFacesByImageResponse = function (output, context
|
|
|
7507
7264
|
};
|
|
7508
7265
|
var deserializeAws_json1_1SearchFacesResponse = function (output, context) {
|
|
7509
7266
|
return {
|
|
7510
|
-
FaceMatches: output.FaceMatches
|
|
7511
|
-
? deserializeAws_json1_1FaceMatchList(output.FaceMatches, context)
|
|
7512
|
-
: undefined,
|
|
7267
|
+
FaceMatches: output.FaceMatches != null ? deserializeAws_json1_1FaceMatchList(output.FaceMatches, context) : undefined,
|
|
7513
7268
|
FaceModelVersion: __expectString(output.FaceModelVersion),
|
|
7514
7269
|
SearchedFaceId: __expectString(output.SearchedFaceId),
|
|
7515
7270
|
};
|
|
@@ -7522,13 +7277,11 @@ var deserializeAws_json1_1SegmentDetection = function (output, context) {
|
|
|
7522
7277
|
EndFrameNumber: __expectLong(output.EndFrameNumber),
|
|
7523
7278
|
EndTimecodeSMPTE: __expectString(output.EndTimecodeSMPTE),
|
|
7524
7279
|
EndTimestampMillis: __expectLong(output.EndTimestampMillis),
|
|
7525
|
-
ShotSegment: output.ShotSegment
|
|
7526
|
-
? deserializeAws_json1_1ShotSegment(output.ShotSegment, context)
|
|
7527
|
-
: undefined,
|
|
7280
|
+
ShotSegment: output.ShotSegment != null ? deserializeAws_json1_1ShotSegment(output.ShotSegment, context) : undefined,
|
|
7528
7281
|
StartFrameNumber: __expectLong(output.StartFrameNumber),
|
|
7529
7282
|
StartTimecodeSMPTE: __expectString(output.StartTimecodeSMPTE),
|
|
7530
7283
|
StartTimestampMillis: __expectLong(output.StartTimestampMillis),
|
|
7531
|
-
TechnicalCueSegment: output.TechnicalCueSegment
|
|
7284
|
+
TechnicalCueSegment: output.TechnicalCueSegment != null
|
|
7532
7285
|
? deserializeAws_json1_1TechnicalCueSegment(output.TechnicalCueSegment, context)
|
|
7533
7286
|
: undefined,
|
|
7534
7287
|
Type: __expectString(output.Type),
|
|
@@ -7652,7 +7405,7 @@ var deserializeAws_json1_1StreamProcessorDataSharingPreference = function (outpu
|
|
|
7652
7405
|
};
|
|
7653
7406
|
var deserializeAws_json1_1StreamProcessorInput = function (output, context) {
|
|
7654
7407
|
return {
|
|
7655
|
-
KinesisVideoStream: output.KinesisVideoStream
|
|
7408
|
+
KinesisVideoStream: output.KinesisVideoStream != null
|
|
7656
7409
|
? deserializeAws_json1_1KinesisVideoStream(output.KinesisVideoStream, context)
|
|
7657
7410
|
: undefined,
|
|
7658
7411
|
};
|
|
@@ -7675,29 +7428,23 @@ var deserializeAws_json1_1StreamProcessorNotificationChannel = function (output,
|
|
|
7675
7428
|
};
|
|
7676
7429
|
var deserializeAws_json1_1StreamProcessorOutput = function (output, context) {
|
|
7677
7430
|
return {
|
|
7678
|
-
KinesisDataStream: output.KinesisDataStream
|
|
7431
|
+
KinesisDataStream: output.KinesisDataStream != null
|
|
7679
7432
|
? deserializeAws_json1_1KinesisDataStream(output.KinesisDataStream, context)
|
|
7680
7433
|
: undefined,
|
|
7681
|
-
S3Destination: output.S3Destination
|
|
7682
|
-
? deserializeAws_json1_1S3Destination(output.S3Destination, context)
|
|
7683
|
-
: undefined,
|
|
7434
|
+
S3Destination: output.S3Destination != null ? deserializeAws_json1_1S3Destination(output.S3Destination, context) : undefined,
|
|
7684
7435
|
};
|
|
7685
7436
|
};
|
|
7686
7437
|
var deserializeAws_json1_1StreamProcessorSettings = function (output, context) {
|
|
7687
7438
|
return {
|
|
7688
|
-
ConnectedHome: output.ConnectedHome
|
|
7439
|
+
ConnectedHome: output.ConnectedHome != null
|
|
7689
7440
|
? deserializeAws_json1_1ConnectedHomeSettings(output.ConnectedHome, context)
|
|
7690
7441
|
: undefined,
|
|
7691
|
-
FaceSearch: output.FaceSearch
|
|
7692
|
-
? deserializeAws_json1_1FaceSearchSettings(output.FaceSearch, context)
|
|
7693
|
-
: undefined,
|
|
7442
|
+
FaceSearch: output.FaceSearch != null ? deserializeAws_json1_1FaceSearchSettings(output.FaceSearch, context) : undefined,
|
|
7694
7443
|
};
|
|
7695
7444
|
};
|
|
7696
7445
|
var deserializeAws_json1_1Summary = function (output, context) {
|
|
7697
7446
|
return {
|
|
7698
|
-
S3Object: output.S3Object
|
|
7699
|
-
? deserializeAws_json1_1S3Object(output.S3Object, context)
|
|
7700
|
-
: undefined,
|
|
7447
|
+
S3Object: output.S3Object != null ? deserializeAws_json1_1S3Object(output.S3Object, context) : undefined,
|
|
7701
7448
|
};
|
|
7702
7449
|
};
|
|
7703
7450
|
var deserializeAws_json1_1Sunglasses = function (output, context) {
|
|
@@ -7727,32 +7474,22 @@ var deserializeAws_json1_1TechnicalCueSegment = function (output, context) {
|
|
|
7727
7474
|
};
|
|
7728
7475
|
var deserializeAws_json1_1TestingData = function (output, context) {
|
|
7729
7476
|
return {
|
|
7730
|
-
Assets: output.Assets
|
|
7731
|
-
? deserializeAws_json1_1Assets(output.Assets, context)
|
|
7732
|
-
: undefined,
|
|
7477
|
+
Assets: output.Assets != null ? deserializeAws_json1_1Assets(output.Assets, context) : undefined,
|
|
7733
7478
|
AutoCreate: __expectBoolean(output.AutoCreate),
|
|
7734
7479
|
};
|
|
7735
7480
|
};
|
|
7736
7481
|
var deserializeAws_json1_1TestingDataResult = function (output, context) {
|
|
7737
7482
|
return {
|
|
7738
|
-
Input: output.Input
|
|
7739
|
-
|
|
7740
|
-
|
|
7741
|
-
Output: output.Output !== undefined && output.Output !== null
|
|
7742
|
-
? deserializeAws_json1_1TestingData(output.Output, context)
|
|
7743
|
-
: undefined,
|
|
7744
|
-
Validation: output.Validation !== undefined && output.Validation !== null
|
|
7745
|
-
? deserializeAws_json1_1ValidationData(output.Validation, context)
|
|
7746
|
-
: undefined,
|
|
7483
|
+
Input: output.Input != null ? deserializeAws_json1_1TestingData(output.Input, context) : undefined,
|
|
7484
|
+
Output: output.Output != null ? deserializeAws_json1_1TestingData(output.Output, context) : undefined,
|
|
7485
|
+
Validation: output.Validation != null ? deserializeAws_json1_1ValidationData(output.Validation, context) : undefined,
|
|
7747
7486
|
};
|
|
7748
7487
|
};
|
|
7749
7488
|
var deserializeAws_json1_1TextDetection = function (output, context) {
|
|
7750
7489
|
return {
|
|
7751
7490
|
Confidence: __limitedParseFloat32(output.Confidence),
|
|
7752
7491
|
DetectedText: __expectString(output.DetectedText),
|
|
7753
|
-
Geometry: output.Geometry
|
|
7754
|
-
? deserializeAws_json1_1Geometry(output.Geometry, context)
|
|
7755
|
-
: undefined,
|
|
7492
|
+
Geometry: output.Geometry != null ? deserializeAws_json1_1Geometry(output.Geometry, context) : undefined,
|
|
7756
7493
|
Id: __expectInt32(output.Id),
|
|
7757
7494
|
ParentId: __expectInt32(output.ParentId),
|
|
7758
7495
|
Type: __expectString(output.Type),
|
|
@@ -7771,9 +7508,7 @@ var deserializeAws_json1_1TextDetectionList = function (output, context) {
|
|
|
7771
7508
|
};
|
|
7772
7509
|
var deserializeAws_json1_1TextDetectionResult = function (output, context) {
|
|
7773
7510
|
return {
|
|
7774
|
-
TextDetection: output.TextDetection
|
|
7775
|
-
? deserializeAws_json1_1TextDetection(output.TextDetection, context)
|
|
7776
|
-
: undefined,
|
|
7511
|
+
TextDetection: output.TextDetection != null ? deserializeAws_json1_1TextDetection(output.TextDetection, context) : undefined,
|
|
7777
7512
|
Timestamp: __expectLong(output.Timestamp),
|
|
7778
7513
|
};
|
|
7779
7514
|
};
|
|
@@ -7797,32 +7532,20 @@ var deserializeAws_json1_1ThrottlingException = function (output, context) {
|
|
|
7797
7532
|
};
|
|
7798
7533
|
var deserializeAws_json1_1TrainingData = function (output, context) {
|
|
7799
7534
|
return {
|
|
7800
|
-
Assets: output.Assets
|
|
7801
|
-
? deserializeAws_json1_1Assets(output.Assets, context)
|
|
7802
|
-
: undefined,
|
|
7535
|
+
Assets: output.Assets != null ? deserializeAws_json1_1Assets(output.Assets, context) : undefined,
|
|
7803
7536
|
};
|
|
7804
7537
|
};
|
|
7805
7538
|
var deserializeAws_json1_1TrainingDataResult = function (output, context) {
|
|
7806
7539
|
return {
|
|
7807
|
-
Input: output.Input
|
|
7808
|
-
|
|
7809
|
-
|
|
7810
|
-
Output: output.Output !== undefined && output.Output !== null
|
|
7811
|
-
? deserializeAws_json1_1TrainingData(output.Output, context)
|
|
7812
|
-
: undefined,
|
|
7813
|
-
Validation: output.Validation !== undefined && output.Validation !== null
|
|
7814
|
-
? deserializeAws_json1_1ValidationData(output.Validation, context)
|
|
7815
|
-
: undefined,
|
|
7540
|
+
Input: output.Input != null ? deserializeAws_json1_1TrainingData(output.Input, context) : undefined,
|
|
7541
|
+
Output: output.Output != null ? deserializeAws_json1_1TrainingData(output.Output, context) : undefined,
|
|
7542
|
+
Validation: output.Validation != null ? deserializeAws_json1_1ValidationData(output.Validation, context) : undefined,
|
|
7816
7543
|
};
|
|
7817
7544
|
};
|
|
7818
7545
|
var deserializeAws_json1_1UnindexedFace = function (output, context) {
|
|
7819
7546
|
return {
|
|
7820
|
-
FaceDetail: output.FaceDetail
|
|
7821
|
-
|
|
7822
|
-
: undefined,
|
|
7823
|
-
Reasons: output.Reasons !== undefined && output.Reasons !== null
|
|
7824
|
-
? deserializeAws_json1_1Reasons(output.Reasons, context)
|
|
7825
|
-
: undefined,
|
|
7547
|
+
FaceDetail: output.FaceDetail != null ? deserializeAws_json1_1FaceDetail(output.FaceDetail, context) : undefined,
|
|
7548
|
+
Reasons: output.Reasons != null ? deserializeAws_json1_1Reasons(output.Reasons, context) : undefined,
|
|
7826
7549
|
};
|
|
7827
7550
|
};
|
|
7828
7551
|
var deserializeAws_json1_1UnindexedFaces = function (output, context) {
|
|
@@ -7858,9 +7581,7 @@ var deserializeAws_json1_1Urls = function (output, context) {
|
|
|
7858
7581
|
};
|
|
7859
7582
|
var deserializeAws_json1_1ValidationData = function (output, context) {
|
|
7860
7583
|
return {
|
|
7861
|
-
Assets: output.Assets
|
|
7862
|
-
? deserializeAws_json1_1Assets(output.Assets, context)
|
|
7863
|
-
: undefined,
|
|
7584
|
+
Assets: output.Assets != null ? deserializeAws_json1_1Assets(output.Assets, context) : undefined,
|
|
7864
7585
|
};
|
|
7865
7586
|
};
|
|
7866
7587
|
var deserializeAws_json1_1VideoMetadata = function (output, context) {
|
|
@@ -7966,5 +7687,4 @@ var loadRestJsonErrorCode = function (output, data) {
|
|
|
7966
7687
|
if (data["__type"] !== undefined) {
|
|
7967
7688
|
return sanitizeErrorCode(data["__type"]);
|
|
7968
7689
|
}
|
|
7969
|
-
return "";
|
|
7970
7690
|
};
|