@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
|
@@ -617,8 +617,7 @@ const deserializeAws_json1_1CompareFacesCommandError = async (output, context) =
|
|
|
617
617
|
body: await parseBody(output.body, context),
|
|
618
618
|
};
|
|
619
619
|
let response;
|
|
620
|
-
|
|
621
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
620
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
622
621
|
switch (errorCode) {
|
|
623
622
|
case "AccessDeniedException":
|
|
624
623
|
case "com.amazonaws.rekognition#AccessDeniedException":
|
|
@@ -646,10 +645,12 @@ const deserializeAws_json1_1CompareFacesCommandError = async (output, context) =
|
|
|
646
645
|
throw await deserializeAws_json1_1ThrottlingExceptionResponse(parsedOutput, context);
|
|
647
646
|
default:
|
|
648
647
|
const parsedBody = parsedOutput.body;
|
|
648
|
+
const $metadata = deserializeMetadata(output);
|
|
649
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
649
650
|
response = new RekognitionServiceException_1.RekognitionServiceException({
|
|
650
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
651
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
651
652
|
$fault: "client",
|
|
652
|
-
$metadata
|
|
653
|
+
$metadata,
|
|
653
654
|
});
|
|
654
655
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
655
656
|
}
|
|
@@ -674,8 +675,7 @@ const deserializeAws_json1_1CreateCollectionCommandError = async (output, contex
|
|
|
674
675
|
body: await parseBody(output.body, context),
|
|
675
676
|
};
|
|
676
677
|
let response;
|
|
677
|
-
|
|
678
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
678
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
679
679
|
switch (errorCode) {
|
|
680
680
|
case "AccessDeniedException":
|
|
681
681
|
case "com.amazonaws.rekognition#AccessDeniedException":
|
|
@@ -700,10 +700,12 @@ const deserializeAws_json1_1CreateCollectionCommandError = async (output, contex
|
|
|
700
700
|
throw await deserializeAws_json1_1ThrottlingExceptionResponse(parsedOutput, context);
|
|
701
701
|
default:
|
|
702
702
|
const parsedBody = parsedOutput.body;
|
|
703
|
+
const $metadata = deserializeMetadata(output);
|
|
704
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
703
705
|
response = new RekognitionServiceException_1.RekognitionServiceException({
|
|
704
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
706
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
705
707
|
$fault: "client",
|
|
706
|
-
$metadata
|
|
708
|
+
$metadata,
|
|
707
709
|
});
|
|
708
710
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
709
711
|
}
|
|
@@ -728,8 +730,7 @@ const deserializeAws_json1_1CreateDatasetCommandError = async (output, context)
|
|
|
728
730
|
body: await parseBody(output.body, context),
|
|
729
731
|
};
|
|
730
732
|
let response;
|
|
731
|
-
|
|
732
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
733
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
733
734
|
switch (errorCode) {
|
|
734
735
|
case "AccessDeniedException":
|
|
735
736
|
case "com.amazonaws.rekognition#AccessDeniedException":
|
|
@@ -760,10 +761,12 @@ const deserializeAws_json1_1CreateDatasetCommandError = async (output, context)
|
|
|
760
761
|
throw await deserializeAws_json1_1ThrottlingExceptionResponse(parsedOutput, context);
|
|
761
762
|
default:
|
|
762
763
|
const parsedBody = parsedOutput.body;
|
|
764
|
+
const $metadata = deserializeMetadata(output);
|
|
765
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
763
766
|
response = new RekognitionServiceException_1.RekognitionServiceException({
|
|
764
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
767
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
765
768
|
$fault: "client",
|
|
766
|
-
$metadata
|
|
769
|
+
$metadata,
|
|
767
770
|
});
|
|
768
771
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
769
772
|
}
|
|
@@ -788,8 +791,7 @@ const deserializeAws_json1_1CreateProjectCommandError = async (output, context)
|
|
|
788
791
|
body: await parseBody(output.body, context),
|
|
789
792
|
};
|
|
790
793
|
let response;
|
|
791
|
-
|
|
792
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
794
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
793
795
|
switch (errorCode) {
|
|
794
796
|
case "AccessDeniedException":
|
|
795
797
|
case "com.amazonaws.rekognition#AccessDeniedException":
|
|
@@ -814,10 +816,12 @@ const deserializeAws_json1_1CreateProjectCommandError = async (output, context)
|
|
|
814
816
|
throw await deserializeAws_json1_1ThrottlingExceptionResponse(parsedOutput, context);
|
|
815
817
|
default:
|
|
816
818
|
const parsedBody = parsedOutput.body;
|
|
819
|
+
const $metadata = deserializeMetadata(output);
|
|
820
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
817
821
|
response = new RekognitionServiceException_1.RekognitionServiceException({
|
|
818
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
822
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
819
823
|
$fault: "client",
|
|
820
|
-
$metadata
|
|
824
|
+
$metadata,
|
|
821
825
|
});
|
|
822
826
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
823
827
|
}
|
|
@@ -842,8 +846,7 @@ const deserializeAws_json1_1CreateProjectVersionCommandError = async (output, co
|
|
|
842
846
|
body: await parseBody(output.body, context),
|
|
843
847
|
};
|
|
844
848
|
let response;
|
|
845
|
-
|
|
846
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
849
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
847
850
|
switch (errorCode) {
|
|
848
851
|
case "AccessDeniedException":
|
|
849
852
|
case "com.amazonaws.rekognition#AccessDeniedException":
|
|
@@ -874,10 +877,12 @@ const deserializeAws_json1_1CreateProjectVersionCommandError = async (output, co
|
|
|
874
877
|
throw await deserializeAws_json1_1ThrottlingExceptionResponse(parsedOutput, context);
|
|
875
878
|
default:
|
|
876
879
|
const parsedBody = parsedOutput.body;
|
|
880
|
+
const $metadata = deserializeMetadata(output);
|
|
881
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
877
882
|
response = new RekognitionServiceException_1.RekognitionServiceException({
|
|
878
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
883
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
879
884
|
$fault: "client",
|
|
880
|
-
$metadata
|
|
885
|
+
$metadata,
|
|
881
886
|
});
|
|
882
887
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
883
888
|
}
|
|
@@ -902,8 +907,7 @@ const deserializeAws_json1_1CreateStreamProcessorCommandError = async (output, c
|
|
|
902
907
|
body: await parseBody(output.body, context),
|
|
903
908
|
};
|
|
904
909
|
let response;
|
|
905
|
-
|
|
906
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
910
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
907
911
|
switch (errorCode) {
|
|
908
912
|
case "AccessDeniedException":
|
|
909
913
|
case "com.amazonaws.rekognition#AccessDeniedException":
|
|
@@ -931,10 +935,12 @@ const deserializeAws_json1_1CreateStreamProcessorCommandError = async (output, c
|
|
|
931
935
|
throw await deserializeAws_json1_1ThrottlingExceptionResponse(parsedOutput, context);
|
|
932
936
|
default:
|
|
933
937
|
const parsedBody = parsedOutput.body;
|
|
938
|
+
const $metadata = deserializeMetadata(output);
|
|
939
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
934
940
|
response = new RekognitionServiceException_1.RekognitionServiceException({
|
|
935
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
941
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
936
942
|
$fault: "client",
|
|
937
|
-
$metadata
|
|
943
|
+
$metadata,
|
|
938
944
|
});
|
|
939
945
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
940
946
|
}
|
|
@@ -959,8 +965,7 @@ const deserializeAws_json1_1DeleteCollectionCommandError = async (output, contex
|
|
|
959
965
|
body: await parseBody(output.body, context),
|
|
960
966
|
};
|
|
961
967
|
let response;
|
|
962
|
-
|
|
963
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
968
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
964
969
|
switch (errorCode) {
|
|
965
970
|
case "AccessDeniedException":
|
|
966
971
|
case "com.amazonaws.rekognition#AccessDeniedException":
|
|
@@ -982,10 +987,12 @@ const deserializeAws_json1_1DeleteCollectionCommandError = async (output, contex
|
|
|
982
987
|
throw await deserializeAws_json1_1ThrottlingExceptionResponse(parsedOutput, context);
|
|
983
988
|
default:
|
|
984
989
|
const parsedBody = parsedOutput.body;
|
|
990
|
+
const $metadata = deserializeMetadata(output);
|
|
991
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
985
992
|
response = new RekognitionServiceException_1.RekognitionServiceException({
|
|
986
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
993
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
987
994
|
$fault: "client",
|
|
988
|
-
$metadata
|
|
995
|
+
$metadata,
|
|
989
996
|
});
|
|
990
997
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
991
998
|
}
|
|
@@ -1010,8 +1017,7 @@ const deserializeAws_json1_1DeleteDatasetCommandError = async (output, context)
|
|
|
1010
1017
|
body: await parseBody(output.body, context),
|
|
1011
1018
|
};
|
|
1012
1019
|
let response;
|
|
1013
|
-
|
|
1014
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1020
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1015
1021
|
switch (errorCode) {
|
|
1016
1022
|
case "AccessDeniedException":
|
|
1017
1023
|
case "com.amazonaws.rekognition#AccessDeniedException":
|
|
@@ -1039,10 +1045,12 @@ const deserializeAws_json1_1DeleteDatasetCommandError = async (output, context)
|
|
|
1039
1045
|
throw await deserializeAws_json1_1ThrottlingExceptionResponse(parsedOutput, context);
|
|
1040
1046
|
default:
|
|
1041
1047
|
const parsedBody = parsedOutput.body;
|
|
1048
|
+
const $metadata = deserializeMetadata(output);
|
|
1049
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1042
1050
|
response = new RekognitionServiceException_1.RekognitionServiceException({
|
|
1043
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1051
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1044
1052
|
$fault: "client",
|
|
1045
|
-
$metadata
|
|
1053
|
+
$metadata,
|
|
1046
1054
|
});
|
|
1047
1055
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1048
1056
|
}
|
|
@@ -1067,8 +1075,7 @@ const deserializeAws_json1_1DeleteFacesCommandError = async (output, context) =>
|
|
|
1067
1075
|
body: await parseBody(output.body, context),
|
|
1068
1076
|
};
|
|
1069
1077
|
let response;
|
|
1070
|
-
|
|
1071
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1078
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1072
1079
|
switch (errorCode) {
|
|
1073
1080
|
case "AccessDeniedException":
|
|
1074
1081
|
case "com.amazonaws.rekognition#AccessDeniedException":
|
|
@@ -1090,10 +1097,12 @@ const deserializeAws_json1_1DeleteFacesCommandError = async (output, context) =>
|
|
|
1090
1097
|
throw await deserializeAws_json1_1ThrottlingExceptionResponse(parsedOutput, context);
|
|
1091
1098
|
default:
|
|
1092
1099
|
const parsedBody = parsedOutput.body;
|
|
1100
|
+
const $metadata = deserializeMetadata(output);
|
|
1101
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1093
1102
|
response = new RekognitionServiceException_1.RekognitionServiceException({
|
|
1094
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1103
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1095
1104
|
$fault: "client",
|
|
1096
|
-
$metadata
|
|
1105
|
+
$metadata,
|
|
1097
1106
|
});
|
|
1098
1107
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1099
1108
|
}
|
|
@@ -1118,8 +1127,7 @@ const deserializeAws_json1_1DeleteProjectCommandError = async (output, context)
|
|
|
1118
1127
|
body: await parseBody(output.body, context),
|
|
1119
1128
|
};
|
|
1120
1129
|
let response;
|
|
1121
|
-
|
|
1122
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1130
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1123
1131
|
switch (errorCode) {
|
|
1124
1132
|
case "AccessDeniedException":
|
|
1125
1133
|
case "com.amazonaws.rekognition#AccessDeniedException":
|
|
@@ -1144,10 +1152,12 @@ const deserializeAws_json1_1DeleteProjectCommandError = async (output, context)
|
|
|
1144
1152
|
throw await deserializeAws_json1_1ThrottlingExceptionResponse(parsedOutput, context);
|
|
1145
1153
|
default:
|
|
1146
1154
|
const parsedBody = parsedOutput.body;
|
|
1155
|
+
const $metadata = deserializeMetadata(output);
|
|
1156
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1147
1157
|
response = new RekognitionServiceException_1.RekognitionServiceException({
|
|
1148
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1158
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1149
1159
|
$fault: "client",
|
|
1150
|
-
$metadata
|
|
1160
|
+
$metadata,
|
|
1151
1161
|
});
|
|
1152
1162
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1153
1163
|
}
|
|
@@ -1172,8 +1182,7 @@ const deserializeAws_json1_1DeleteProjectVersionCommandError = async (output, co
|
|
|
1172
1182
|
body: await parseBody(output.body, context),
|
|
1173
1183
|
};
|
|
1174
1184
|
let response;
|
|
1175
|
-
|
|
1176
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1185
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1177
1186
|
switch (errorCode) {
|
|
1178
1187
|
case "AccessDeniedException":
|
|
1179
1188
|
case "com.amazonaws.rekognition#AccessDeniedException":
|
|
@@ -1198,10 +1207,12 @@ const deserializeAws_json1_1DeleteProjectVersionCommandError = async (output, co
|
|
|
1198
1207
|
throw await deserializeAws_json1_1ThrottlingExceptionResponse(parsedOutput, context);
|
|
1199
1208
|
default:
|
|
1200
1209
|
const parsedBody = parsedOutput.body;
|
|
1210
|
+
const $metadata = deserializeMetadata(output);
|
|
1211
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1201
1212
|
response = new RekognitionServiceException_1.RekognitionServiceException({
|
|
1202
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1213
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1203
1214
|
$fault: "client",
|
|
1204
|
-
$metadata
|
|
1215
|
+
$metadata,
|
|
1205
1216
|
});
|
|
1206
1217
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1207
1218
|
}
|
|
@@ -1226,8 +1237,7 @@ const deserializeAws_json1_1DeleteStreamProcessorCommandError = async (output, c
|
|
|
1226
1237
|
body: await parseBody(output.body, context),
|
|
1227
1238
|
};
|
|
1228
1239
|
let response;
|
|
1229
|
-
|
|
1230
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1240
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1231
1241
|
switch (errorCode) {
|
|
1232
1242
|
case "AccessDeniedException":
|
|
1233
1243
|
case "com.amazonaws.rekognition#AccessDeniedException":
|
|
@@ -1252,10 +1262,12 @@ const deserializeAws_json1_1DeleteStreamProcessorCommandError = async (output, c
|
|
|
1252
1262
|
throw await deserializeAws_json1_1ThrottlingExceptionResponse(parsedOutput, context);
|
|
1253
1263
|
default:
|
|
1254
1264
|
const parsedBody = parsedOutput.body;
|
|
1265
|
+
const $metadata = deserializeMetadata(output);
|
|
1266
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1255
1267
|
response = new RekognitionServiceException_1.RekognitionServiceException({
|
|
1256
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1268
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1257
1269
|
$fault: "client",
|
|
1258
|
-
$metadata
|
|
1270
|
+
$metadata,
|
|
1259
1271
|
});
|
|
1260
1272
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1261
1273
|
}
|
|
@@ -1280,8 +1292,7 @@ const deserializeAws_json1_1DescribeCollectionCommandError = async (output, cont
|
|
|
1280
1292
|
body: await parseBody(output.body, context),
|
|
1281
1293
|
};
|
|
1282
1294
|
let response;
|
|
1283
|
-
|
|
1284
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1295
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1285
1296
|
switch (errorCode) {
|
|
1286
1297
|
case "AccessDeniedException":
|
|
1287
1298
|
case "com.amazonaws.rekognition#AccessDeniedException":
|
|
@@ -1303,10 +1314,12 @@ const deserializeAws_json1_1DescribeCollectionCommandError = async (output, cont
|
|
|
1303
1314
|
throw await deserializeAws_json1_1ThrottlingExceptionResponse(parsedOutput, context);
|
|
1304
1315
|
default:
|
|
1305
1316
|
const parsedBody = parsedOutput.body;
|
|
1317
|
+
const $metadata = deserializeMetadata(output);
|
|
1318
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1306
1319
|
response = new RekognitionServiceException_1.RekognitionServiceException({
|
|
1307
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1320
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1308
1321
|
$fault: "client",
|
|
1309
|
-
$metadata
|
|
1322
|
+
$metadata,
|
|
1310
1323
|
});
|
|
1311
1324
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1312
1325
|
}
|
|
@@ -1331,8 +1344,7 @@ const deserializeAws_json1_1DescribeDatasetCommandError = async (output, context
|
|
|
1331
1344
|
body: await parseBody(output.body, context),
|
|
1332
1345
|
};
|
|
1333
1346
|
let response;
|
|
1334
|
-
|
|
1335
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1347
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1336
1348
|
switch (errorCode) {
|
|
1337
1349
|
case "AccessDeniedException":
|
|
1338
1350
|
case "com.amazonaws.rekognition#AccessDeniedException":
|
|
@@ -1354,10 +1366,12 @@ const deserializeAws_json1_1DescribeDatasetCommandError = async (output, context
|
|
|
1354
1366
|
throw await deserializeAws_json1_1ThrottlingExceptionResponse(parsedOutput, context);
|
|
1355
1367
|
default:
|
|
1356
1368
|
const parsedBody = parsedOutput.body;
|
|
1369
|
+
const $metadata = deserializeMetadata(output);
|
|
1370
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1357
1371
|
response = new RekognitionServiceException_1.RekognitionServiceException({
|
|
1358
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1372
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1359
1373
|
$fault: "client",
|
|
1360
|
-
$metadata
|
|
1374
|
+
$metadata,
|
|
1361
1375
|
});
|
|
1362
1376
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1363
1377
|
}
|
|
@@ -1382,8 +1396,7 @@ const deserializeAws_json1_1DescribeProjectsCommandError = async (output, contex
|
|
|
1382
1396
|
body: await parseBody(output.body, context),
|
|
1383
1397
|
};
|
|
1384
1398
|
let response;
|
|
1385
|
-
|
|
1386
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1399
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1387
1400
|
switch (errorCode) {
|
|
1388
1401
|
case "AccessDeniedException":
|
|
1389
1402
|
case "com.amazonaws.rekognition#AccessDeniedException":
|
|
@@ -1405,10 +1418,12 @@ const deserializeAws_json1_1DescribeProjectsCommandError = async (output, contex
|
|
|
1405
1418
|
throw await deserializeAws_json1_1ThrottlingExceptionResponse(parsedOutput, context);
|
|
1406
1419
|
default:
|
|
1407
1420
|
const parsedBody = parsedOutput.body;
|
|
1421
|
+
const $metadata = deserializeMetadata(output);
|
|
1422
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1408
1423
|
response = new RekognitionServiceException_1.RekognitionServiceException({
|
|
1409
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1424
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1410
1425
|
$fault: "client",
|
|
1411
|
-
$metadata
|
|
1426
|
+
$metadata,
|
|
1412
1427
|
});
|
|
1413
1428
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1414
1429
|
}
|
|
@@ -1433,8 +1448,7 @@ const deserializeAws_json1_1DescribeProjectVersionsCommandError = async (output,
|
|
|
1433
1448
|
body: await parseBody(output.body, context),
|
|
1434
1449
|
};
|
|
1435
1450
|
let response;
|
|
1436
|
-
|
|
1437
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1451
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1438
1452
|
switch (errorCode) {
|
|
1439
1453
|
case "AccessDeniedException":
|
|
1440
1454
|
case "com.amazonaws.rekognition#AccessDeniedException":
|
|
@@ -1459,10 +1473,12 @@ const deserializeAws_json1_1DescribeProjectVersionsCommandError = async (output,
|
|
|
1459
1473
|
throw await deserializeAws_json1_1ThrottlingExceptionResponse(parsedOutput, context);
|
|
1460
1474
|
default:
|
|
1461
1475
|
const parsedBody = parsedOutput.body;
|
|
1476
|
+
const $metadata = deserializeMetadata(output);
|
|
1477
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1462
1478
|
response = new RekognitionServiceException_1.RekognitionServiceException({
|
|
1463
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1479
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1464
1480
|
$fault: "client",
|
|
1465
|
-
$metadata
|
|
1481
|
+
$metadata,
|
|
1466
1482
|
});
|
|
1467
1483
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1468
1484
|
}
|
|
@@ -1487,8 +1503,7 @@ const deserializeAws_json1_1DescribeStreamProcessorCommandError = async (output,
|
|
|
1487
1503
|
body: await parseBody(output.body, context),
|
|
1488
1504
|
};
|
|
1489
1505
|
let response;
|
|
1490
|
-
|
|
1491
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1506
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1492
1507
|
switch (errorCode) {
|
|
1493
1508
|
case "AccessDeniedException":
|
|
1494
1509
|
case "com.amazonaws.rekognition#AccessDeniedException":
|
|
@@ -1510,10 +1525,12 @@ const deserializeAws_json1_1DescribeStreamProcessorCommandError = async (output,
|
|
|
1510
1525
|
throw await deserializeAws_json1_1ThrottlingExceptionResponse(parsedOutput, context);
|
|
1511
1526
|
default:
|
|
1512
1527
|
const parsedBody = parsedOutput.body;
|
|
1528
|
+
const $metadata = deserializeMetadata(output);
|
|
1529
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1513
1530
|
response = new RekognitionServiceException_1.RekognitionServiceException({
|
|
1514
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1531
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1515
1532
|
$fault: "client",
|
|
1516
|
-
$metadata
|
|
1533
|
+
$metadata,
|
|
1517
1534
|
});
|
|
1518
1535
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1519
1536
|
}
|
|
@@ -1538,8 +1555,7 @@ const deserializeAws_json1_1DetectCustomLabelsCommandError = async (output, cont
|
|
|
1538
1555
|
body: await parseBody(output.body, context),
|
|
1539
1556
|
};
|
|
1540
1557
|
let response;
|
|
1541
|
-
|
|
1542
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1558
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1543
1559
|
switch (errorCode) {
|
|
1544
1560
|
case "AccessDeniedException":
|
|
1545
1561
|
case "com.amazonaws.rekognition#AccessDeniedException":
|
|
@@ -1576,10 +1592,12 @@ const deserializeAws_json1_1DetectCustomLabelsCommandError = async (output, cont
|
|
|
1576
1592
|
throw await deserializeAws_json1_1ThrottlingExceptionResponse(parsedOutput, context);
|
|
1577
1593
|
default:
|
|
1578
1594
|
const parsedBody = parsedOutput.body;
|
|
1595
|
+
const $metadata = deserializeMetadata(output);
|
|
1596
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1579
1597
|
response = new RekognitionServiceException_1.RekognitionServiceException({
|
|
1580
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1598
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1581
1599
|
$fault: "client",
|
|
1582
|
-
$metadata
|
|
1600
|
+
$metadata,
|
|
1583
1601
|
});
|
|
1584
1602
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1585
1603
|
}
|
|
@@ -1604,8 +1622,7 @@ const deserializeAws_json1_1DetectFacesCommandError = async (output, context) =>
|
|
|
1604
1622
|
body: await parseBody(output.body, context),
|
|
1605
1623
|
};
|
|
1606
1624
|
let response;
|
|
1607
|
-
|
|
1608
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1625
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1609
1626
|
switch (errorCode) {
|
|
1610
1627
|
case "AccessDeniedException":
|
|
1611
1628
|
case "com.amazonaws.rekognition#AccessDeniedException":
|
|
@@ -1633,10 +1650,12 @@ const deserializeAws_json1_1DetectFacesCommandError = async (output, context) =>
|
|
|
1633
1650
|
throw await deserializeAws_json1_1ThrottlingExceptionResponse(parsedOutput, context);
|
|
1634
1651
|
default:
|
|
1635
1652
|
const parsedBody = parsedOutput.body;
|
|
1653
|
+
const $metadata = deserializeMetadata(output);
|
|
1654
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1636
1655
|
response = new RekognitionServiceException_1.RekognitionServiceException({
|
|
1637
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1656
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1638
1657
|
$fault: "client",
|
|
1639
|
-
$metadata
|
|
1658
|
+
$metadata,
|
|
1640
1659
|
});
|
|
1641
1660
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1642
1661
|
}
|
|
@@ -1661,8 +1680,7 @@ const deserializeAws_json1_1DetectLabelsCommandError = async (output, context) =
|
|
|
1661
1680
|
body: await parseBody(output.body, context),
|
|
1662
1681
|
};
|
|
1663
1682
|
let response;
|
|
1664
|
-
|
|
1665
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1683
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1666
1684
|
switch (errorCode) {
|
|
1667
1685
|
case "AccessDeniedException":
|
|
1668
1686
|
case "com.amazonaws.rekognition#AccessDeniedException":
|
|
@@ -1690,10 +1708,12 @@ const deserializeAws_json1_1DetectLabelsCommandError = async (output, context) =
|
|
|
1690
1708
|
throw await deserializeAws_json1_1ThrottlingExceptionResponse(parsedOutput, context);
|
|
1691
1709
|
default:
|
|
1692
1710
|
const parsedBody = parsedOutput.body;
|
|
1711
|
+
const $metadata = deserializeMetadata(output);
|
|
1712
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1693
1713
|
response = new RekognitionServiceException_1.RekognitionServiceException({
|
|
1694
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1714
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1695
1715
|
$fault: "client",
|
|
1696
|
-
$metadata
|
|
1716
|
+
$metadata,
|
|
1697
1717
|
});
|
|
1698
1718
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1699
1719
|
}
|
|
@@ -1718,8 +1738,7 @@ const deserializeAws_json1_1DetectModerationLabelsCommandError = async (output,
|
|
|
1718
1738
|
body: await parseBody(output.body, context),
|
|
1719
1739
|
};
|
|
1720
1740
|
let response;
|
|
1721
|
-
|
|
1722
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1741
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1723
1742
|
switch (errorCode) {
|
|
1724
1743
|
case "AccessDeniedException":
|
|
1725
1744
|
case "com.amazonaws.rekognition#AccessDeniedException":
|
|
@@ -1750,10 +1769,12 @@ const deserializeAws_json1_1DetectModerationLabelsCommandError = async (output,
|
|
|
1750
1769
|
throw await deserializeAws_json1_1ThrottlingExceptionResponse(parsedOutput, context);
|
|
1751
1770
|
default:
|
|
1752
1771
|
const parsedBody = parsedOutput.body;
|
|
1772
|
+
const $metadata = deserializeMetadata(output);
|
|
1773
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1753
1774
|
response = new RekognitionServiceException_1.RekognitionServiceException({
|
|
1754
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1775
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1755
1776
|
$fault: "client",
|
|
1756
|
-
$metadata
|
|
1777
|
+
$metadata,
|
|
1757
1778
|
});
|
|
1758
1779
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1759
1780
|
}
|
|
@@ -1778,8 +1799,7 @@ const deserializeAws_json1_1DetectProtectiveEquipmentCommandError = async (outpu
|
|
|
1778
1799
|
body: await parseBody(output.body, context),
|
|
1779
1800
|
};
|
|
1780
1801
|
let response;
|
|
1781
|
-
|
|
1782
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1802
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1783
1803
|
switch (errorCode) {
|
|
1784
1804
|
case "AccessDeniedException":
|
|
1785
1805
|
case "com.amazonaws.rekognition#AccessDeniedException":
|
|
@@ -1807,10 +1827,12 @@ const deserializeAws_json1_1DetectProtectiveEquipmentCommandError = async (outpu
|
|
|
1807
1827
|
throw await deserializeAws_json1_1ThrottlingExceptionResponse(parsedOutput, context);
|
|
1808
1828
|
default:
|
|
1809
1829
|
const parsedBody = parsedOutput.body;
|
|
1830
|
+
const $metadata = deserializeMetadata(output);
|
|
1831
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1810
1832
|
response = new RekognitionServiceException_1.RekognitionServiceException({
|
|
1811
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1833
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1812
1834
|
$fault: "client",
|
|
1813
|
-
$metadata
|
|
1835
|
+
$metadata,
|
|
1814
1836
|
});
|
|
1815
1837
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1816
1838
|
}
|
|
@@ -1835,8 +1857,7 @@ const deserializeAws_json1_1DetectTextCommandError = async (output, context) =>
|
|
|
1835
1857
|
body: await parseBody(output.body, context),
|
|
1836
1858
|
};
|
|
1837
1859
|
let response;
|
|
1838
|
-
|
|
1839
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1860
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1840
1861
|
switch (errorCode) {
|
|
1841
1862
|
case "AccessDeniedException":
|
|
1842
1863
|
case "com.amazonaws.rekognition#AccessDeniedException":
|
|
@@ -1864,10 +1885,12 @@ const deserializeAws_json1_1DetectTextCommandError = async (output, context) =>
|
|
|
1864
1885
|
throw await deserializeAws_json1_1ThrottlingExceptionResponse(parsedOutput, context);
|
|
1865
1886
|
default:
|
|
1866
1887
|
const parsedBody = parsedOutput.body;
|
|
1888
|
+
const $metadata = deserializeMetadata(output);
|
|
1889
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1867
1890
|
response = new RekognitionServiceException_1.RekognitionServiceException({
|
|
1868
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1891
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1869
1892
|
$fault: "client",
|
|
1870
|
-
$metadata
|
|
1893
|
+
$metadata,
|
|
1871
1894
|
});
|
|
1872
1895
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1873
1896
|
}
|
|
@@ -1892,8 +1915,7 @@ const deserializeAws_json1_1DistributeDatasetEntriesCommandError = async (output
|
|
|
1892
1915
|
body: await parseBody(output.body, context),
|
|
1893
1916
|
};
|
|
1894
1917
|
let response;
|
|
1895
|
-
|
|
1896
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1918
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1897
1919
|
switch (errorCode) {
|
|
1898
1920
|
case "AccessDeniedException":
|
|
1899
1921
|
case "com.amazonaws.rekognition#AccessDeniedException":
|
|
@@ -1918,10 +1940,12 @@ const deserializeAws_json1_1DistributeDatasetEntriesCommandError = async (output
|
|
|
1918
1940
|
throw await deserializeAws_json1_1ThrottlingExceptionResponse(parsedOutput, context);
|
|
1919
1941
|
default:
|
|
1920
1942
|
const parsedBody = parsedOutput.body;
|
|
1943
|
+
const $metadata = deserializeMetadata(output);
|
|
1944
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1921
1945
|
response = new RekognitionServiceException_1.RekognitionServiceException({
|
|
1922
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1946
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1923
1947
|
$fault: "client",
|
|
1924
|
-
$metadata
|
|
1948
|
+
$metadata,
|
|
1925
1949
|
});
|
|
1926
1950
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1927
1951
|
}
|
|
@@ -1946,8 +1970,7 @@ const deserializeAws_json1_1GetCelebrityInfoCommandError = async (output, contex
|
|
|
1946
1970
|
body: await parseBody(output.body, context),
|
|
1947
1971
|
};
|
|
1948
1972
|
let response;
|
|
1949
|
-
|
|
1950
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1973
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1951
1974
|
switch (errorCode) {
|
|
1952
1975
|
case "AccessDeniedException":
|
|
1953
1976
|
case "com.amazonaws.rekognition#AccessDeniedException":
|
|
@@ -1969,10 +1992,12 @@ const deserializeAws_json1_1GetCelebrityInfoCommandError = async (output, contex
|
|
|
1969
1992
|
throw await deserializeAws_json1_1ThrottlingExceptionResponse(parsedOutput, context);
|
|
1970
1993
|
default:
|
|
1971
1994
|
const parsedBody = parsedOutput.body;
|
|
1995
|
+
const $metadata = deserializeMetadata(output);
|
|
1996
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1972
1997
|
response = new RekognitionServiceException_1.RekognitionServiceException({
|
|
1973
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1998
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1974
1999
|
$fault: "client",
|
|
1975
|
-
$metadata
|
|
2000
|
+
$metadata,
|
|
1976
2001
|
});
|
|
1977
2002
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1978
2003
|
}
|
|
@@ -1997,8 +2022,7 @@ const deserializeAws_json1_1GetCelebrityRecognitionCommandError = async (output,
|
|
|
1997
2022
|
body: await parseBody(output.body, context),
|
|
1998
2023
|
};
|
|
1999
2024
|
let response;
|
|
2000
|
-
|
|
2001
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2025
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2002
2026
|
switch (errorCode) {
|
|
2003
2027
|
case "AccessDeniedException":
|
|
2004
2028
|
case "com.amazonaws.rekognition#AccessDeniedException":
|
|
@@ -2023,10 +2047,12 @@ const deserializeAws_json1_1GetCelebrityRecognitionCommandError = async (output,
|
|
|
2023
2047
|
throw await deserializeAws_json1_1ThrottlingExceptionResponse(parsedOutput, context);
|
|
2024
2048
|
default:
|
|
2025
2049
|
const parsedBody = parsedOutput.body;
|
|
2050
|
+
const $metadata = deserializeMetadata(output);
|
|
2051
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2026
2052
|
response = new RekognitionServiceException_1.RekognitionServiceException({
|
|
2027
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2053
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2028
2054
|
$fault: "client",
|
|
2029
|
-
$metadata
|
|
2055
|
+
$metadata,
|
|
2030
2056
|
});
|
|
2031
2057
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2032
2058
|
}
|
|
@@ -2051,8 +2077,7 @@ const deserializeAws_json1_1GetContentModerationCommandError = async (output, co
|
|
|
2051
2077
|
body: await parseBody(output.body, context),
|
|
2052
2078
|
};
|
|
2053
2079
|
let response;
|
|
2054
|
-
|
|
2055
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2080
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2056
2081
|
switch (errorCode) {
|
|
2057
2082
|
case "AccessDeniedException":
|
|
2058
2083
|
case "com.amazonaws.rekognition#AccessDeniedException":
|
|
@@ -2077,10 +2102,12 @@ const deserializeAws_json1_1GetContentModerationCommandError = async (output, co
|
|
|
2077
2102
|
throw await deserializeAws_json1_1ThrottlingExceptionResponse(parsedOutput, context);
|
|
2078
2103
|
default:
|
|
2079
2104
|
const parsedBody = parsedOutput.body;
|
|
2105
|
+
const $metadata = deserializeMetadata(output);
|
|
2106
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2080
2107
|
response = new RekognitionServiceException_1.RekognitionServiceException({
|
|
2081
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2108
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2082
2109
|
$fault: "client",
|
|
2083
|
-
$metadata
|
|
2110
|
+
$metadata,
|
|
2084
2111
|
});
|
|
2085
2112
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2086
2113
|
}
|
|
@@ -2105,8 +2132,7 @@ const deserializeAws_json1_1GetFaceDetectionCommandError = async (output, contex
|
|
|
2105
2132
|
body: await parseBody(output.body, context),
|
|
2106
2133
|
};
|
|
2107
2134
|
let response;
|
|
2108
|
-
|
|
2109
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2135
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2110
2136
|
switch (errorCode) {
|
|
2111
2137
|
case "AccessDeniedException":
|
|
2112
2138
|
case "com.amazonaws.rekognition#AccessDeniedException":
|
|
@@ -2131,10 +2157,12 @@ const deserializeAws_json1_1GetFaceDetectionCommandError = async (output, contex
|
|
|
2131
2157
|
throw await deserializeAws_json1_1ThrottlingExceptionResponse(parsedOutput, context);
|
|
2132
2158
|
default:
|
|
2133
2159
|
const parsedBody = parsedOutput.body;
|
|
2160
|
+
const $metadata = deserializeMetadata(output);
|
|
2161
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2134
2162
|
response = new RekognitionServiceException_1.RekognitionServiceException({
|
|
2135
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2163
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2136
2164
|
$fault: "client",
|
|
2137
|
-
$metadata
|
|
2165
|
+
$metadata,
|
|
2138
2166
|
});
|
|
2139
2167
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2140
2168
|
}
|
|
@@ -2159,8 +2187,7 @@ const deserializeAws_json1_1GetFaceSearchCommandError = async (output, context)
|
|
|
2159
2187
|
body: await parseBody(output.body, context),
|
|
2160
2188
|
};
|
|
2161
2189
|
let response;
|
|
2162
|
-
|
|
2163
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2190
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2164
2191
|
switch (errorCode) {
|
|
2165
2192
|
case "AccessDeniedException":
|
|
2166
2193
|
case "com.amazonaws.rekognition#AccessDeniedException":
|
|
@@ -2185,10 +2212,12 @@ const deserializeAws_json1_1GetFaceSearchCommandError = async (output, context)
|
|
|
2185
2212
|
throw await deserializeAws_json1_1ThrottlingExceptionResponse(parsedOutput, context);
|
|
2186
2213
|
default:
|
|
2187
2214
|
const parsedBody = parsedOutput.body;
|
|
2215
|
+
const $metadata = deserializeMetadata(output);
|
|
2216
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2188
2217
|
response = new RekognitionServiceException_1.RekognitionServiceException({
|
|
2189
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2218
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2190
2219
|
$fault: "client",
|
|
2191
|
-
$metadata
|
|
2220
|
+
$metadata,
|
|
2192
2221
|
});
|
|
2193
2222
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2194
2223
|
}
|
|
@@ -2213,8 +2242,7 @@ const deserializeAws_json1_1GetLabelDetectionCommandError = async (output, conte
|
|
|
2213
2242
|
body: await parseBody(output.body, context),
|
|
2214
2243
|
};
|
|
2215
2244
|
let response;
|
|
2216
|
-
|
|
2217
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2245
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2218
2246
|
switch (errorCode) {
|
|
2219
2247
|
case "AccessDeniedException":
|
|
2220
2248
|
case "com.amazonaws.rekognition#AccessDeniedException":
|
|
@@ -2239,10 +2267,12 @@ const deserializeAws_json1_1GetLabelDetectionCommandError = async (output, conte
|
|
|
2239
2267
|
throw await deserializeAws_json1_1ThrottlingExceptionResponse(parsedOutput, context);
|
|
2240
2268
|
default:
|
|
2241
2269
|
const parsedBody = parsedOutput.body;
|
|
2270
|
+
const $metadata = deserializeMetadata(output);
|
|
2271
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2242
2272
|
response = new RekognitionServiceException_1.RekognitionServiceException({
|
|
2243
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2273
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2244
2274
|
$fault: "client",
|
|
2245
|
-
$metadata
|
|
2275
|
+
$metadata,
|
|
2246
2276
|
});
|
|
2247
2277
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2248
2278
|
}
|
|
@@ -2267,8 +2297,7 @@ const deserializeAws_json1_1GetPersonTrackingCommandError = async (output, conte
|
|
|
2267
2297
|
body: await parseBody(output.body, context),
|
|
2268
2298
|
};
|
|
2269
2299
|
let response;
|
|
2270
|
-
|
|
2271
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2300
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2272
2301
|
switch (errorCode) {
|
|
2273
2302
|
case "AccessDeniedException":
|
|
2274
2303
|
case "com.amazonaws.rekognition#AccessDeniedException":
|
|
@@ -2293,10 +2322,12 @@ const deserializeAws_json1_1GetPersonTrackingCommandError = async (output, conte
|
|
|
2293
2322
|
throw await deserializeAws_json1_1ThrottlingExceptionResponse(parsedOutput, context);
|
|
2294
2323
|
default:
|
|
2295
2324
|
const parsedBody = parsedOutput.body;
|
|
2325
|
+
const $metadata = deserializeMetadata(output);
|
|
2326
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2296
2327
|
response = new RekognitionServiceException_1.RekognitionServiceException({
|
|
2297
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2328
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2298
2329
|
$fault: "client",
|
|
2299
|
-
$metadata
|
|
2330
|
+
$metadata,
|
|
2300
2331
|
});
|
|
2301
2332
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2302
2333
|
}
|
|
@@ -2321,8 +2352,7 @@ const deserializeAws_json1_1GetSegmentDetectionCommandError = async (output, con
|
|
|
2321
2352
|
body: await parseBody(output.body, context),
|
|
2322
2353
|
};
|
|
2323
2354
|
let response;
|
|
2324
|
-
|
|
2325
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2355
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2326
2356
|
switch (errorCode) {
|
|
2327
2357
|
case "AccessDeniedException":
|
|
2328
2358
|
case "com.amazonaws.rekognition#AccessDeniedException":
|
|
@@ -2347,10 +2377,12 @@ const deserializeAws_json1_1GetSegmentDetectionCommandError = async (output, con
|
|
|
2347
2377
|
throw await deserializeAws_json1_1ThrottlingExceptionResponse(parsedOutput, context);
|
|
2348
2378
|
default:
|
|
2349
2379
|
const parsedBody = parsedOutput.body;
|
|
2380
|
+
const $metadata = deserializeMetadata(output);
|
|
2381
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2350
2382
|
response = new RekognitionServiceException_1.RekognitionServiceException({
|
|
2351
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2383
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2352
2384
|
$fault: "client",
|
|
2353
|
-
$metadata
|
|
2385
|
+
$metadata,
|
|
2354
2386
|
});
|
|
2355
2387
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2356
2388
|
}
|
|
@@ -2375,8 +2407,7 @@ const deserializeAws_json1_1GetTextDetectionCommandError = async (output, contex
|
|
|
2375
2407
|
body: await parseBody(output.body, context),
|
|
2376
2408
|
};
|
|
2377
2409
|
let response;
|
|
2378
|
-
|
|
2379
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2410
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2380
2411
|
switch (errorCode) {
|
|
2381
2412
|
case "AccessDeniedException":
|
|
2382
2413
|
case "com.amazonaws.rekognition#AccessDeniedException":
|
|
@@ -2401,10 +2432,12 @@ const deserializeAws_json1_1GetTextDetectionCommandError = async (output, contex
|
|
|
2401
2432
|
throw await deserializeAws_json1_1ThrottlingExceptionResponse(parsedOutput, context);
|
|
2402
2433
|
default:
|
|
2403
2434
|
const parsedBody = parsedOutput.body;
|
|
2435
|
+
const $metadata = deserializeMetadata(output);
|
|
2436
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2404
2437
|
response = new RekognitionServiceException_1.RekognitionServiceException({
|
|
2405
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2438
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2406
2439
|
$fault: "client",
|
|
2407
|
-
$metadata
|
|
2440
|
+
$metadata,
|
|
2408
2441
|
});
|
|
2409
2442
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2410
2443
|
}
|
|
@@ -2429,8 +2462,7 @@ const deserializeAws_json1_1IndexFacesCommandError = async (output, context) =>
|
|
|
2429
2462
|
body: await parseBody(output.body, context),
|
|
2430
2463
|
};
|
|
2431
2464
|
let response;
|
|
2432
|
-
|
|
2433
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2465
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2434
2466
|
switch (errorCode) {
|
|
2435
2467
|
case "AccessDeniedException":
|
|
2436
2468
|
case "com.amazonaws.rekognition#AccessDeniedException":
|
|
@@ -2464,10 +2496,12 @@ const deserializeAws_json1_1IndexFacesCommandError = async (output, context) =>
|
|
|
2464
2496
|
throw await deserializeAws_json1_1ThrottlingExceptionResponse(parsedOutput, context);
|
|
2465
2497
|
default:
|
|
2466
2498
|
const parsedBody = parsedOutput.body;
|
|
2499
|
+
const $metadata = deserializeMetadata(output);
|
|
2500
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2467
2501
|
response = new RekognitionServiceException_1.RekognitionServiceException({
|
|
2468
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2502
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2469
2503
|
$fault: "client",
|
|
2470
|
-
$metadata
|
|
2504
|
+
$metadata,
|
|
2471
2505
|
});
|
|
2472
2506
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2473
2507
|
}
|
|
@@ -2492,8 +2526,7 @@ const deserializeAws_json1_1ListCollectionsCommandError = async (output, context
|
|
|
2492
2526
|
body: await parseBody(output.body, context),
|
|
2493
2527
|
};
|
|
2494
2528
|
let response;
|
|
2495
|
-
|
|
2496
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2529
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2497
2530
|
switch (errorCode) {
|
|
2498
2531
|
case "AccessDeniedException":
|
|
2499
2532
|
case "com.amazonaws.rekognition#AccessDeniedException":
|
|
@@ -2518,10 +2551,12 @@ const deserializeAws_json1_1ListCollectionsCommandError = async (output, context
|
|
|
2518
2551
|
throw await deserializeAws_json1_1ThrottlingExceptionResponse(parsedOutput, context);
|
|
2519
2552
|
default:
|
|
2520
2553
|
const parsedBody = parsedOutput.body;
|
|
2554
|
+
const $metadata = deserializeMetadata(output);
|
|
2555
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2521
2556
|
response = new RekognitionServiceException_1.RekognitionServiceException({
|
|
2522
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2557
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2523
2558
|
$fault: "client",
|
|
2524
|
-
$metadata
|
|
2559
|
+
$metadata,
|
|
2525
2560
|
});
|
|
2526
2561
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2527
2562
|
}
|
|
@@ -2546,8 +2581,7 @@ const deserializeAws_json1_1ListDatasetEntriesCommandError = async (output, cont
|
|
|
2546
2581
|
body: await parseBody(output.body, context),
|
|
2547
2582
|
};
|
|
2548
2583
|
let response;
|
|
2549
|
-
|
|
2550
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2584
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2551
2585
|
switch (errorCode) {
|
|
2552
2586
|
case "AccessDeniedException":
|
|
2553
2587
|
case "com.amazonaws.rekognition#AccessDeniedException":
|
|
@@ -2578,10 +2612,12 @@ const deserializeAws_json1_1ListDatasetEntriesCommandError = async (output, cont
|
|
|
2578
2612
|
throw await deserializeAws_json1_1ThrottlingExceptionResponse(parsedOutput, context);
|
|
2579
2613
|
default:
|
|
2580
2614
|
const parsedBody = parsedOutput.body;
|
|
2615
|
+
const $metadata = deserializeMetadata(output);
|
|
2616
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2581
2617
|
response = new RekognitionServiceException_1.RekognitionServiceException({
|
|
2582
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2618
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2583
2619
|
$fault: "client",
|
|
2584
|
-
$metadata
|
|
2620
|
+
$metadata,
|
|
2585
2621
|
});
|
|
2586
2622
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2587
2623
|
}
|
|
@@ -2606,8 +2642,7 @@ const deserializeAws_json1_1ListDatasetLabelsCommandError = async (output, conte
|
|
|
2606
2642
|
body: await parseBody(output.body, context),
|
|
2607
2643
|
};
|
|
2608
2644
|
let response;
|
|
2609
|
-
|
|
2610
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2645
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2611
2646
|
switch (errorCode) {
|
|
2612
2647
|
case "AccessDeniedException":
|
|
2613
2648
|
case "com.amazonaws.rekognition#AccessDeniedException":
|
|
@@ -2638,10 +2673,12 @@ const deserializeAws_json1_1ListDatasetLabelsCommandError = async (output, conte
|
|
|
2638
2673
|
throw await deserializeAws_json1_1ThrottlingExceptionResponse(parsedOutput, context);
|
|
2639
2674
|
default:
|
|
2640
2675
|
const parsedBody = parsedOutput.body;
|
|
2676
|
+
const $metadata = deserializeMetadata(output);
|
|
2677
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2641
2678
|
response = new RekognitionServiceException_1.RekognitionServiceException({
|
|
2642
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2679
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2643
2680
|
$fault: "client",
|
|
2644
|
-
$metadata
|
|
2681
|
+
$metadata,
|
|
2645
2682
|
});
|
|
2646
2683
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2647
2684
|
}
|
|
@@ -2666,8 +2703,7 @@ const deserializeAws_json1_1ListFacesCommandError = async (output, context) => {
|
|
|
2666
2703
|
body: await parseBody(output.body, context),
|
|
2667
2704
|
};
|
|
2668
2705
|
let response;
|
|
2669
|
-
|
|
2670
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2706
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2671
2707
|
switch (errorCode) {
|
|
2672
2708
|
case "AccessDeniedException":
|
|
2673
2709
|
case "com.amazonaws.rekognition#AccessDeniedException":
|
|
@@ -2692,10 +2728,12 @@ const deserializeAws_json1_1ListFacesCommandError = async (output, context) => {
|
|
|
2692
2728
|
throw await deserializeAws_json1_1ThrottlingExceptionResponse(parsedOutput, context);
|
|
2693
2729
|
default:
|
|
2694
2730
|
const parsedBody = parsedOutput.body;
|
|
2731
|
+
const $metadata = deserializeMetadata(output);
|
|
2732
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2695
2733
|
response = new RekognitionServiceException_1.RekognitionServiceException({
|
|
2696
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2734
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2697
2735
|
$fault: "client",
|
|
2698
|
-
$metadata
|
|
2736
|
+
$metadata,
|
|
2699
2737
|
});
|
|
2700
2738
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2701
2739
|
}
|
|
@@ -2720,8 +2758,7 @@ const deserializeAws_json1_1ListStreamProcessorsCommandError = async (output, co
|
|
|
2720
2758
|
body: await parseBody(output.body, context),
|
|
2721
2759
|
};
|
|
2722
2760
|
let response;
|
|
2723
|
-
|
|
2724
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2761
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2725
2762
|
switch (errorCode) {
|
|
2726
2763
|
case "AccessDeniedException":
|
|
2727
2764
|
case "com.amazonaws.rekognition#AccessDeniedException":
|
|
@@ -2743,10 +2780,12 @@ const deserializeAws_json1_1ListStreamProcessorsCommandError = async (output, co
|
|
|
2743
2780
|
throw await deserializeAws_json1_1ThrottlingExceptionResponse(parsedOutput, context);
|
|
2744
2781
|
default:
|
|
2745
2782
|
const parsedBody = parsedOutput.body;
|
|
2783
|
+
const $metadata = deserializeMetadata(output);
|
|
2784
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2746
2785
|
response = new RekognitionServiceException_1.RekognitionServiceException({
|
|
2747
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2786
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2748
2787
|
$fault: "client",
|
|
2749
|
-
$metadata
|
|
2788
|
+
$metadata,
|
|
2750
2789
|
});
|
|
2751
2790
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2752
2791
|
}
|
|
@@ -2771,8 +2810,7 @@ const deserializeAws_json1_1ListTagsForResourceCommandError = async (output, con
|
|
|
2771
2810
|
body: await parseBody(output.body, context),
|
|
2772
2811
|
};
|
|
2773
2812
|
let response;
|
|
2774
|
-
|
|
2775
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2813
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2776
2814
|
switch (errorCode) {
|
|
2777
2815
|
case "AccessDeniedException":
|
|
2778
2816
|
case "com.amazonaws.rekognition#AccessDeniedException":
|
|
@@ -2794,10 +2832,12 @@ const deserializeAws_json1_1ListTagsForResourceCommandError = async (output, con
|
|
|
2794
2832
|
throw await deserializeAws_json1_1ThrottlingExceptionResponse(parsedOutput, context);
|
|
2795
2833
|
default:
|
|
2796
2834
|
const parsedBody = parsedOutput.body;
|
|
2835
|
+
const $metadata = deserializeMetadata(output);
|
|
2836
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2797
2837
|
response = new RekognitionServiceException_1.RekognitionServiceException({
|
|
2798
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2838
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2799
2839
|
$fault: "client",
|
|
2800
|
-
$metadata
|
|
2840
|
+
$metadata,
|
|
2801
2841
|
});
|
|
2802
2842
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2803
2843
|
}
|
|
@@ -2822,8 +2862,7 @@ const deserializeAws_json1_1RecognizeCelebritiesCommandError = async (output, co
|
|
|
2822
2862
|
body: await parseBody(output.body, context),
|
|
2823
2863
|
};
|
|
2824
2864
|
let response;
|
|
2825
|
-
|
|
2826
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2865
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2827
2866
|
switch (errorCode) {
|
|
2828
2867
|
case "AccessDeniedException":
|
|
2829
2868
|
case "com.amazonaws.rekognition#AccessDeniedException":
|
|
@@ -2851,10 +2890,12 @@ const deserializeAws_json1_1RecognizeCelebritiesCommandError = async (output, co
|
|
|
2851
2890
|
throw await deserializeAws_json1_1ThrottlingExceptionResponse(parsedOutput, context);
|
|
2852
2891
|
default:
|
|
2853
2892
|
const parsedBody = parsedOutput.body;
|
|
2893
|
+
const $metadata = deserializeMetadata(output);
|
|
2894
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2854
2895
|
response = new RekognitionServiceException_1.RekognitionServiceException({
|
|
2855
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2896
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2856
2897
|
$fault: "client",
|
|
2857
|
-
$metadata
|
|
2898
|
+
$metadata,
|
|
2858
2899
|
});
|
|
2859
2900
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2860
2901
|
}
|
|
@@ -2879,8 +2920,7 @@ const deserializeAws_json1_1SearchFacesCommandError = async (output, context) =>
|
|
|
2879
2920
|
body: await parseBody(output.body, context),
|
|
2880
2921
|
};
|
|
2881
2922
|
let response;
|
|
2882
|
-
|
|
2883
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2923
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2884
2924
|
switch (errorCode) {
|
|
2885
2925
|
case "AccessDeniedException":
|
|
2886
2926
|
case "com.amazonaws.rekognition#AccessDeniedException":
|
|
@@ -2902,10 +2942,12 @@ const deserializeAws_json1_1SearchFacesCommandError = async (output, context) =>
|
|
|
2902
2942
|
throw await deserializeAws_json1_1ThrottlingExceptionResponse(parsedOutput, context);
|
|
2903
2943
|
default:
|
|
2904
2944
|
const parsedBody = parsedOutput.body;
|
|
2945
|
+
const $metadata = deserializeMetadata(output);
|
|
2946
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2905
2947
|
response = new RekognitionServiceException_1.RekognitionServiceException({
|
|
2906
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2948
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2907
2949
|
$fault: "client",
|
|
2908
|
-
$metadata
|
|
2950
|
+
$metadata,
|
|
2909
2951
|
});
|
|
2910
2952
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2911
2953
|
}
|
|
@@ -2930,8 +2972,7 @@ const deserializeAws_json1_1SearchFacesByImageCommandError = async (output, cont
|
|
|
2930
2972
|
body: await parseBody(output.body, context),
|
|
2931
2973
|
};
|
|
2932
2974
|
let response;
|
|
2933
|
-
|
|
2934
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2975
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2935
2976
|
switch (errorCode) {
|
|
2936
2977
|
case "AccessDeniedException":
|
|
2937
2978
|
case "com.amazonaws.rekognition#AccessDeniedException":
|
|
@@ -2962,10 +3003,12 @@ const deserializeAws_json1_1SearchFacesByImageCommandError = async (output, cont
|
|
|
2962
3003
|
throw await deserializeAws_json1_1ThrottlingExceptionResponse(parsedOutput, context);
|
|
2963
3004
|
default:
|
|
2964
3005
|
const parsedBody = parsedOutput.body;
|
|
3006
|
+
const $metadata = deserializeMetadata(output);
|
|
3007
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2965
3008
|
response = new RekognitionServiceException_1.RekognitionServiceException({
|
|
2966
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
3009
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2967
3010
|
$fault: "client",
|
|
2968
|
-
$metadata
|
|
3011
|
+
$metadata,
|
|
2969
3012
|
});
|
|
2970
3013
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2971
3014
|
}
|
|
@@ -2990,8 +3033,7 @@ const deserializeAws_json1_1StartCelebrityRecognitionCommandError = async (outpu
|
|
|
2990
3033
|
body: await parseBody(output.body, context),
|
|
2991
3034
|
};
|
|
2992
3035
|
let response;
|
|
2993
|
-
|
|
2994
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3036
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2995
3037
|
switch (errorCode) {
|
|
2996
3038
|
case "AccessDeniedException":
|
|
2997
3039
|
case "com.amazonaws.rekognition#AccessDeniedException":
|
|
@@ -3022,10 +3064,12 @@ const deserializeAws_json1_1StartCelebrityRecognitionCommandError = async (outpu
|
|
|
3022
3064
|
throw await deserializeAws_json1_1VideoTooLargeExceptionResponse(parsedOutput, context);
|
|
3023
3065
|
default:
|
|
3024
3066
|
const parsedBody = parsedOutput.body;
|
|
3067
|
+
const $metadata = deserializeMetadata(output);
|
|
3068
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
3025
3069
|
response = new RekognitionServiceException_1.RekognitionServiceException({
|
|
3026
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
3070
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
3027
3071
|
$fault: "client",
|
|
3028
|
-
$metadata
|
|
3072
|
+
$metadata,
|
|
3029
3073
|
});
|
|
3030
3074
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
3031
3075
|
}
|
|
@@ -3050,8 +3094,7 @@ const deserializeAws_json1_1StartContentModerationCommandError = async (output,
|
|
|
3050
3094
|
body: await parseBody(output.body, context),
|
|
3051
3095
|
};
|
|
3052
3096
|
let response;
|
|
3053
|
-
|
|
3054
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3097
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3055
3098
|
switch (errorCode) {
|
|
3056
3099
|
case "AccessDeniedException":
|
|
3057
3100
|
case "com.amazonaws.rekognition#AccessDeniedException":
|
|
@@ -3082,10 +3125,12 @@ const deserializeAws_json1_1StartContentModerationCommandError = async (output,
|
|
|
3082
3125
|
throw await deserializeAws_json1_1VideoTooLargeExceptionResponse(parsedOutput, context);
|
|
3083
3126
|
default:
|
|
3084
3127
|
const parsedBody = parsedOutput.body;
|
|
3128
|
+
const $metadata = deserializeMetadata(output);
|
|
3129
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
3085
3130
|
response = new RekognitionServiceException_1.RekognitionServiceException({
|
|
3086
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
3131
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
3087
3132
|
$fault: "client",
|
|
3088
|
-
$metadata
|
|
3133
|
+
$metadata,
|
|
3089
3134
|
});
|
|
3090
3135
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
3091
3136
|
}
|
|
@@ -3110,8 +3155,7 @@ const deserializeAws_json1_1StartFaceDetectionCommandError = async (output, cont
|
|
|
3110
3155
|
body: await parseBody(output.body, context),
|
|
3111
3156
|
};
|
|
3112
3157
|
let response;
|
|
3113
|
-
|
|
3114
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3158
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3115
3159
|
switch (errorCode) {
|
|
3116
3160
|
case "AccessDeniedException":
|
|
3117
3161
|
case "com.amazonaws.rekognition#AccessDeniedException":
|
|
@@ -3142,10 +3186,12 @@ const deserializeAws_json1_1StartFaceDetectionCommandError = async (output, cont
|
|
|
3142
3186
|
throw await deserializeAws_json1_1VideoTooLargeExceptionResponse(parsedOutput, context);
|
|
3143
3187
|
default:
|
|
3144
3188
|
const parsedBody = parsedOutput.body;
|
|
3189
|
+
const $metadata = deserializeMetadata(output);
|
|
3190
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
3145
3191
|
response = new RekognitionServiceException_1.RekognitionServiceException({
|
|
3146
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
3192
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
3147
3193
|
$fault: "client",
|
|
3148
|
-
$metadata
|
|
3194
|
+
$metadata,
|
|
3149
3195
|
});
|
|
3150
3196
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
3151
3197
|
}
|
|
@@ -3170,8 +3216,7 @@ const deserializeAws_json1_1StartFaceSearchCommandError = async (output, context
|
|
|
3170
3216
|
body: await parseBody(output.body, context),
|
|
3171
3217
|
};
|
|
3172
3218
|
let response;
|
|
3173
|
-
|
|
3174
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3219
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3175
3220
|
switch (errorCode) {
|
|
3176
3221
|
case "AccessDeniedException":
|
|
3177
3222
|
case "com.amazonaws.rekognition#AccessDeniedException":
|
|
@@ -3205,10 +3250,12 @@ const deserializeAws_json1_1StartFaceSearchCommandError = async (output, context
|
|
|
3205
3250
|
throw await deserializeAws_json1_1VideoTooLargeExceptionResponse(parsedOutput, context);
|
|
3206
3251
|
default:
|
|
3207
3252
|
const parsedBody = parsedOutput.body;
|
|
3253
|
+
const $metadata = deserializeMetadata(output);
|
|
3254
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
3208
3255
|
response = new RekognitionServiceException_1.RekognitionServiceException({
|
|
3209
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
3256
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
3210
3257
|
$fault: "client",
|
|
3211
|
-
$metadata
|
|
3258
|
+
$metadata,
|
|
3212
3259
|
});
|
|
3213
3260
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
3214
3261
|
}
|
|
@@ -3233,8 +3280,7 @@ const deserializeAws_json1_1StartLabelDetectionCommandError = async (output, con
|
|
|
3233
3280
|
body: await parseBody(output.body, context),
|
|
3234
3281
|
};
|
|
3235
3282
|
let response;
|
|
3236
|
-
|
|
3237
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3283
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3238
3284
|
switch (errorCode) {
|
|
3239
3285
|
case "AccessDeniedException":
|
|
3240
3286
|
case "com.amazonaws.rekognition#AccessDeniedException":
|
|
@@ -3265,10 +3311,12 @@ const deserializeAws_json1_1StartLabelDetectionCommandError = async (output, con
|
|
|
3265
3311
|
throw await deserializeAws_json1_1VideoTooLargeExceptionResponse(parsedOutput, context);
|
|
3266
3312
|
default:
|
|
3267
3313
|
const parsedBody = parsedOutput.body;
|
|
3314
|
+
const $metadata = deserializeMetadata(output);
|
|
3315
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
3268
3316
|
response = new RekognitionServiceException_1.RekognitionServiceException({
|
|
3269
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
3317
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
3270
3318
|
$fault: "client",
|
|
3271
|
-
$metadata
|
|
3319
|
+
$metadata,
|
|
3272
3320
|
});
|
|
3273
3321
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
3274
3322
|
}
|
|
@@ -3293,8 +3341,7 @@ const deserializeAws_json1_1StartPersonTrackingCommandError = async (output, con
|
|
|
3293
3341
|
body: await parseBody(output.body, context),
|
|
3294
3342
|
};
|
|
3295
3343
|
let response;
|
|
3296
|
-
|
|
3297
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3344
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3298
3345
|
switch (errorCode) {
|
|
3299
3346
|
case "AccessDeniedException":
|
|
3300
3347
|
case "com.amazonaws.rekognition#AccessDeniedException":
|
|
@@ -3325,10 +3372,12 @@ const deserializeAws_json1_1StartPersonTrackingCommandError = async (output, con
|
|
|
3325
3372
|
throw await deserializeAws_json1_1VideoTooLargeExceptionResponse(parsedOutput, context);
|
|
3326
3373
|
default:
|
|
3327
3374
|
const parsedBody = parsedOutput.body;
|
|
3375
|
+
const $metadata = deserializeMetadata(output);
|
|
3376
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
3328
3377
|
response = new RekognitionServiceException_1.RekognitionServiceException({
|
|
3329
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
3378
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
3330
3379
|
$fault: "client",
|
|
3331
|
-
$metadata
|
|
3380
|
+
$metadata,
|
|
3332
3381
|
});
|
|
3333
3382
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
3334
3383
|
}
|
|
@@ -3353,8 +3402,7 @@ const deserializeAws_json1_1StartProjectVersionCommandError = async (output, con
|
|
|
3353
3402
|
body: await parseBody(output.body, context),
|
|
3354
3403
|
};
|
|
3355
3404
|
let response;
|
|
3356
|
-
|
|
3357
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3405
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3358
3406
|
switch (errorCode) {
|
|
3359
3407
|
case "AccessDeniedException":
|
|
3360
3408
|
case "com.amazonaws.rekognition#AccessDeniedException":
|
|
@@ -3382,10 +3430,12 @@ const deserializeAws_json1_1StartProjectVersionCommandError = async (output, con
|
|
|
3382
3430
|
throw await deserializeAws_json1_1ThrottlingExceptionResponse(parsedOutput, context);
|
|
3383
3431
|
default:
|
|
3384
3432
|
const parsedBody = parsedOutput.body;
|
|
3433
|
+
const $metadata = deserializeMetadata(output);
|
|
3434
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
3385
3435
|
response = new RekognitionServiceException_1.RekognitionServiceException({
|
|
3386
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
3436
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
3387
3437
|
$fault: "client",
|
|
3388
|
-
$metadata
|
|
3438
|
+
$metadata,
|
|
3389
3439
|
});
|
|
3390
3440
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
3391
3441
|
}
|
|
@@ -3410,8 +3460,7 @@ const deserializeAws_json1_1StartSegmentDetectionCommandError = async (output, c
|
|
|
3410
3460
|
body: await parseBody(output.body, context),
|
|
3411
3461
|
};
|
|
3412
3462
|
let response;
|
|
3413
|
-
|
|
3414
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3463
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3415
3464
|
switch (errorCode) {
|
|
3416
3465
|
case "AccessDeniedException":
|
|
3417
3466
|
case "com.amazonaws.rekognition#AccessDeniedException":
|
|
@@ -3442,10 +3491,12 @@ const deserializeAws_json1_1StartSegmentDetectionCommandError = async (output, c
|
|
|
3442
3491
|
throw await deserializeAws_json1_1VideoTooLargeExceptionResponse(parsedOutput, context);
|
|
3443
3492
|
default:
|
|
3444
3493
|
const parsedBody = parsedOutput.body;
|
|
3494
|
+
const $metadata = deserializeMetadata(output);
|
|
3495
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
3445
3496
|
response = new RekognitionServiceException_1.RekognitionServiceException({
|
|
3446
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
3497
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
3447
3498
|
$fault: "client",
|
|
3448
|
-
$metadata
|
|
3499
|
+
$metadata,
|
|
3449
3500
|
});
|
|
3450
3501
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
3451
3502
|
}
|
|
@@ -3470,8 +3521,7 @@ const deserializeAws_json1_1StartStreamProcessorCommandError = async (output, co
|
|
|
3470
3521
|
body: await parseBody(output.body, context),
|
|
3471
3522
|
};
|
|
3472
3523
|
let response;
|
|
3473
|
-
|
|
3474
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3524
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3475
3525
|
switch (errorCode) {
|
|
3476
3526
|
case "AccessDeniedException":
|
|
3477
3527
|
case "com.amazonaws.rekognition#AccessDeniedException":
|
|
@@ -3496,10 +3546,12 @@ const deserializeAws_json1_1StartStreamProcessorCommandError = async (output, co
|
|
|
3496
3546
|
throw await deserializeAws_json1_1ThrottlingExceptionResponse(parsedOutput, context);
|
|
3497
3547
|
default:
|
|
3498
3548
|
const parsedBody = parsedOutput.body;
|
|
3549
|
+
const $metadata = deserializeMetadata(output);
|
|
3550
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
3499
3551
|
response = new RekognitionServiceException_1.RekognitionServiceException({
|
|
3500
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
3552
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
3501
3553
|
$fault: "client",
|
|
3502
|
-
$metadata
|
|
3554
|
+
$metadata,
|
|
3503
3555
|
});
|
|
3504
3556
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
3505
3557
|
}
|
|
@@ -3524,8 +3576,7 @@ const deserializeAws_json1_1StartTextDetectionCommandError = async (output, cont
|
|
|
3524
3576
|
body: await parseBody(output.body, context),
|
|
3525
3577
|
};
|
|
3526
3578
|
let response;
|
|
3527
|
-
|
|
3528
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3579
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3529
3580
|
switch (errorCode) {
|
|
3530
3581
|
case "AccessDeniedException":
|
|
3531
3582
|
case "com.amazonaws.rekognition#AccessDeniedException":
|
|
@@ -3556,10 +3607,12 @@ const deserializeAws_json1_1StartTextDetectionCommandError = async (output, cont
|
|
|
3556
3607
|
throw await deserializeAws_json1_1VideoTooLargeExceptionResponse(parsedOutput, context);
|
|
3557
3608
|
default:
|
|
3558
3609
|
const parsedBody = parsedOutput.body;
|
|
3610
|
+
const $metadata = deserializeMetadata(output);
|
|
3611
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
3559
3612
|
response = new RekognitionServiceException_1.RekognitionServiceException({
|
|
3560
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
3613
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
3561
3614
|
$fault: "client",
|
|
3562
|
-
$metadata
|
|
3615
|
+
$metadata,
|
|
3563
3616
|
});
|
|
3564
3617
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
3565
3618
|
}
|
|
@@ -3584,8 +3637,7 @@ const deserializeAws_json1_1StopProjectVersionCommandError = async (output, cont
|
|
|
3584
3637
|
body: await parseBody(output.body, context),
|
|
3585
3638
|
};
|
|
3586
3639
|
let response;
|
|
3587
|
-
|
|
3588
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3640
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3589
3641
|
switch (errorCode) {
|
|
3590
3642
|
case "AccessDeniedException":
|
|
3591
3643
|
case "com.amazonaws.rekognition#AccessDeniedException":
|
|
@@ -3610,10 +3662,12 @@ const deserializeAws_json1_1StopProjectVersionCommandError = async (output, cont
|
|
|
3610
3662
|
throw await deserializeAws_json1_1ThrottlingExceptionResponse(parsedOutput, context);
|
|
3611
3663
|
default:
|
|
3612
3664
|
const parsedBody = parsedOutput.body;
|
|
3665
|
+
const $metadata = deserializeMetadata(output);
|
|
3666
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
3613
3667
|
response = new RekognitionServiceException_1.RekognitionServiceException({
|
|
3614
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
3668
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
3615
3669
|
$fault: "client",
|
|
3616
|
-
$metadata
|
|
3670
|
+
$metadata,
|
|
3617
3671
|
});
|
|
3618
3672
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
3619
3673
|
}
|
|
@@ -3638,8 +3692,7 @@ const deserializeAws_json1_1StopStreamProcessorCommandError = async (output, con
|
|
|
3638
3692
|
body: await parseBody(output.body, context),
|
|
3639
3693
|
};
|
|
3640
3694
|
let response;
|
|
3641
|
-
|
|
3642
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3695
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3643
3696
|
switch (errorCode) {
|
|
3644
3697
|
case "AccessDeniedException":
|
|
3645
3698
|
case "com.amazonaws.rekognition#AccessDeniedException":
|
|
@@ -3664,10 +3717,12 @@ const deserializeAws_json1_1StopStreamProcessorCommandError = async (output, con
|
|
|
3664
3717
|
throw await deserializeAws_json1_1ThrottlingExceptionResponse(parsedOutput, context);
|
|
3665
3718
|
default:
|
|
3666
3719
|
const parsedBody = parsedOutput.body;
|
|
3720
|
+
const $metadata = deserializeMetadata(output);
|
|
3721
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
3667
3722
|
response = new RekognitionServiceException_1.RekognitionServiceException({
|
|
3668
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
3723
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
3669
3724
|
$fault: "client",
|
|
3670
|
-
$metadata
|
|
3725
|
+
$metadata,
|
|
3671
3726
|
});
|
|
3672
3727
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
3673
3728
|
}
|
|
@@ -3692,8 +3747,7 @@ const deserializeAws_json1_1TagResourceCommandError = async (output, context) =>
|
|
|
3692
3747
|
body: await parseBody(output.body, context),
|
|
3693
3748
|
};
|
|
3694
3749
|
let response;
|
|
3695
|
-
|
|
3696
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3750
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3697
3751
|
switch (errorCode) {
|
|
3698
3752
|
case "AccessDeniedException":
|
|
3699
3753
|
case "com.amazonaws.rekognition#AccessDeniedException":
|
|
@@ -3718,10 +3772,12 @@ const deserializeAws_json1_1TagResourceCommandError = async (output, context) =>
|
|
|
3718
3772
|
throw await deserializeAws_json1_1ThrottlingExceptionResponse(parsedOutput, context);
|
|
3719
3773
|
default:
|
|
3720
3774
|
const parsedBody = parsedOutput.body;
|
|
3775
|
+
const $metadata = deserializeMetadata(output);
|
|
3776
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
3721
3777
|
response = new RekognitionServiceException_1.RekognitionServiceException({
|
|
3722
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
3778
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
3723
3779
|
$fault: "client",
|
|
3724
|
-
$metadata
|
|
3780
|
+
$metadata,
|
|
3725
3781
|
});
|
|
3726
3782
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
3727
3783
|
}
|
|
@@ -3746,8 +3802,7 @@ const deserializeAws_json1_1UntagResourceCommandError = async (output, context)
|
|
|
3746
3802
|
body: await parseBody(output.body, context),
|
|
3747
3803
|
};
|
|
3748
3804
|
let response;
|
|
3749
|
-
|
|
3750
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3805
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3751
3806
|
switch (errorCode) {
|
|
3752
3807
|
case "AccessDeniedException":
|
|
3753
3808
|
case "com.amazonaws.rekognition#AccessDeniedException":
|
|
@@ -3769,10 +3824,12 @@ const deserializeAws_json1_1UntagResourceCommandError = async (output, context)
|
|
|
3769
3824
|
throw await deserializeAws_json1_1ThrottlingExceptionResponse(parsedOutput, context);
|
|
3770
3825
|
default:
|
|
3771
3826
|
const parsedBody = parsedOutput.body;
|
|
3827
|
+
const $metadata = deserializeMetadata(output);
|
|
3828
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
3772
3829
|
response = new RekognitionServiceException_1.RekognitionServiceException({
|
|
3773
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
3830
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
3774
3831
|
$fault: "client",
|
|
3775
|
-
$metadata
|
|
3832
|
+
$metadata,
|
|
3776
3833
|
});
|
|
3777
3834
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
3778
3835
|
}
|
|
@@ -3797,8 +3854,7 @@ const deserializeAws_json1_1UpdateDatasetEntriesCommandError = async (output, co
|
|
|
3797
3854
|
body: await parseBody(output.body, context),
|
|
3798
3855
|
};
|
|
3799
3856
|
let response;
|
|
3800
|
-
|
|
3801
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3857
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3802
3858
|
switch (errorCode) {
|
|
3803
3859
|
case "AccessDeniedException":
|
|
3804
3860
|
case "com.amazonaws.rekognition#AccessDeniedException":
|
|
@@ -3826,10 +3882,12 @@ const deserializeAws_json1_1UpdateDatasetEntriesCommandError = async (output, co
|
|
|
3826
3882
|
throw await deserializeAws_json1_1ThrottlingExceptionResponse(parsedOutput, context);
|
|
3827
3883
|
default:
|
|
3828
3884
|
const parsedBody = parsedOutput.body;
|
|
3885
|
+
const $metadata = deserializeMetadata(output);
|
|
3886
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
3829
3887
|
response = new RekognitionServiceException_1.RekognitionServiceException({
|
|
3830
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
3888
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
3831
3889
|
$fault: "client",
|
|
3832
|
-
$metadata
|
|
3890
|
+
$metadata,
|
|
3833
3891
|
});
|
|
3834
3892
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
3835
3893
|
}
|
|
@@ -3854,8 +3912,7 @@ const deserializeAws_json1_1UpdateStreamProcessorCommandError = async (output, c
|
|
|
3854
3912
|
body: await parseBody(output.body, context),
|
|
3855
3913
|
};
|
|
3856
3914
|
let response;
|
|
3857
|
-
|
|
3858
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3915
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3859
3916
|
switch (errorCode) {
|
|
3860
3917
|
case "AccessDeniedException":
|
|
3861
3918
|
case "com.amazonaws.rekognition#AccessDeniedException":
|
|
@@ -3877,10 +3934,12 @@ const deserializeAws_json1_1UpdateStreamProcessorCommandError = async (output, c
|
|
|
3877
3934
|
throw await deserializeAws_json1_1ThrottlingExceptionResponse(parsedOutput, context);
|
|
3878
3935
|
default:
|
|
3879
3936
|
const parsedBody = parsedOutput.body;
|
|
3937
|
+
const $metadata = deserializeMetadata(output);
|
|
3938
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
3880
3939
|
response = new RekognitionServiceException_1.RekognitionServiceException({
|
|
3881
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
3940
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
3882
3941
|
$fault: "client",
|
|
3883
|
-
$metadata
|
|
3942
|
+
$metadata,
|
|
3884
3943
|
});
|
|
3885
3944
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
3886
3945
|
}
|
|
@@ -4049,8 +4108,7 @@ const deserializeAws_json1_1VideoTooLargeExceptionResponse = async (parsedOutput
|
|
|
4049
4108
|
};
|
|
4050
4109
|
const serializeAws_json1_1Asset = (input, context) => {
|
|
4051
4110
|
return {
|
|
4052
|
-
...(input.GroundTruthManifest
|
|
4053
|
-
input.GroundTruthManifest !== null && {
|
|
4111
|
+
...(input.GroundTruthManifest != null && {
|
|
4054
4112
|
GroundTruthManifest: serializeAws_json1_1GroundTruthManifest(input.GroundTruthManifest, context),
|
|
4055
4113
|
}),
|
|
4056
4114
|
};
|
|
@@ -4077,29 +4135,26 @@ const serializeAws_json1_1Attributes = (input, context) => {
|
|
|
4077
4135
|
};
|
|
4078
4136
|
const serializeAws_json1_1BlackFrame = (input, context) => {
|
|
4079
4137
|
return {
|
|
4080
|
-
...(input.MaxPixelThreshold
|
|
4081
|
-
|
|
4082
|
-
|
|
4083
|
-
|
|
4138
|
+
...(input.MaxPixelThreshold != null && { MaxPixelThreshold: (0, smithy_client_1.serializeFloat)(input.MaxPixelThreshold) }),
|
|
4139
|
+
...(input.MinCoveragePercentage != null && {
|
|
4140
|
+
MinCoveragePercentage: (0, smithy_client_1.serializeFloat)(input.MinCoveragePercentage),
|
|
4141
|
+
}),
|
|
4084
4142
|
};
|
|
4085
4143
|
};
|
|
4086
4144
|
const serializeAws_json1_1BoundingBox = (input, context) => {
|
|
4087
4145
|
return {
|
|
4088
|
-
...(input.Height
|
|
4089
|
-
...(input.Left
|
|
4090
|
-
...(input.Top
|
|
4091
|
-
...(input.Width
|
|
4146
|
+
...(input.Height != null && { Height: (0, smithy_client_1.serializeFloat)(input.Height) }),
|
|
4147
|
+
...(input.Left != null && { Left: (0, smithy_client_1.serializeFloat)(input.Left) }),
|
|
4148
|
+
...(input.Top != null && { Top: (0, smithy_client_1.serializeFloat)(input.Top) }),
|
|
4149
|
+
...(input.Width != null && { Width: (0, smithy_client_1.serializeFloat)(input.Width) }),
|
|
4092
4150
|
};
|
|
4093
4151
|
};
|
|
4094
4152
|
const serializeAws_json1_1CompareFacesRequest = (input, context) => {
|
|
4095
4153
|
return {
|
|
4096
|
-
...(input.QualityFilter
|
|
4097
|
-
...(input.SimilarityThreshold
|
|
4098
|
-
|
|
4099
|
-
...(input.
|
|
4100
|
-
input.SourceImage !== null && { SourceImage: serializeAws_json1_1Image(input.SourceImage, context) }),
|
|
4101
|
-
...(input.TargetImage !== undefined &&
|
|
4102
|
-
input.TargetImage !== null && { TargetImage: serializeAws_json1_1Image(input.TargetImage, context) }),
|
|
4154
|
+
...(input.QualityFilter != null && { QualityFilter: input.QualityFilter }),
|
|
4155
|
+
...(input.SimilarityThreshold != null && { SimilarityThreshold: (0, smithy_client_1.serializeFloat)(input.SimilarityThreshold) }),
|
|
4156
|
+
...(input.SourceImage != null && { SourceImage: serializeAws_json1_1Image(input.SourceImage, context) }),
|
|
4157
|
+
...(input.TargetImage != null && { TargetImage: serializeAws_json1_1Image(input.TargetImage, context) }),
|
|
4103
4158
|
};
|
|
4104
4159
|
};
|
|
4105
4160
|
const serializeAws_json1_1ConnectedHomeLabels = (input, context) => {
|
|
@@ -4114,18 +4169,14 @@ const serializeAws_json1_1ConnectedHomeLabels = (input, context) => {
|
|
|
4114
4169
|
};
|
|
4115
4170
|
const serializeAws_json1_1ConnectedHomeSettings = (input, context) => {
|
|
4116
4171
|
return {
|
|
4117
|
-
...(input.Labels
|
|
4118
|
-
|
|
4119
|
-
...(input.MinConfidence !== undefined &&
|
|
4120
|
-
input.MinConfidence !== null && { MinConfidence: (0, smithy_client_1.serializeFloat)(input.MinConfidence) }),
|
|
4172
|
+
...(input.Labels != null && { Labels: serializeAws_json1_1ConnectedHomeLabels(input.Labels, context) }),
|
|
4173
|
+
...(input.MinConfidence != null && { MinConfidence: (0, smithy_client_1.serializeFloat)(input.MinConfidence) }),
|
|
4121
4174
|
};
|
|
4122
4175
|
};
|
|
4123
4176
|
const serializeAws_json1_1ConnectedHomeSettingsForUpdate = (input, context) => {
|
|
4124
4177
|
return {
|
|
4125
|
-
...(input.Labels
|
|
4126
|
-
|
|
4127
|
-
...(input.MinConfidence !== undefined &&
|
|
4128
|
-
input.MinConfidence !== null && { MinConfidence: (0, smithy_client_1.serializeFloat)(input.MinConfidence) }),
|
|
4178
|
+
...(input.Labels != null && { Labels: serializeAws_json1_1ConnectedHomeLabels(input.Labels, context) }),
|
|
4179
|
+
...(input.MinConfidence != null && { MinConfidence: (0, smithy_client_1.serializeFloat)(input.MinConfidence) }),
|
|
4129
4180
|
};
|
|
4130
4181
|
};
|
|
4131
4182
|
const serializeAws_json1_1ContentClassifiers = (input, context) => {
|
|
@@ -4140,69 +4191,58 @@ const serializeAws_json1_1ContentClassifiers = (input, context) => {
|
|
|
4140
4191
|
};
|
|
4141
4192
|
const serializeAws_json1_1CreateCollectionRequest = (input, context) => {
|
|
4142
4193
|
return {
|
|
4143
|
-
...(input.CollectionId
|
|
4144
|
-
...(input.Tags
|
|
4194
|
+
...(input.CollectionId != null && { CollectionId: input.CollectionId }),
|
|
4195
|
+
...(input.Tags != null && { Tags: serializeAws_json1_1TagMap(input.Tags, context) }),
|
|
4145
4196
|
};
|
|
4146
4197
|
};
|
|
4147
4198
|
const serializeAws_json1_1CreateDatasetRequest = (input, context) => {
|
|
4148
4199
|
return {
|
|
4149
|
-
...(input.DatasetSource
|
|
4150
|
-
input.DatasetSource !== null && {
|
|
4200
|
+
...(input.DatasetSource != null && {
|
|
4151
4201
|
DatasetSource: serializeAws_json1_1DatasetSource(input.DatasetSource, context),
|
|
4152
4202
|
}),
|
|
4153
|
-
...(input.DatasetType
|
|
4154
|
-
...(input.ProjectArn
|
|
4203
|
+
...(input.DatasetType != null && { DatasetType: input.DatasetType }),
|
|
4204
|
+
...(input.ProjectArn != null && { ProjectArn: input.ProjectArn }),
|
|
4155
4205
|
};
|
|
4156
4206
|
};
|
|
4157
4207
|
const serializeAws_json1_1CreateProjectRequest = (input, context) => {
|
|
4158
4208
|
return {
|
|
4159
|
-
...(input.ProjectName
|
|
4209
|
+
...(input.ProjectName != null && { ProjectName: input.ProjectName }),
|
|
4160
4210
|
};
|
|
4161
4211
|
};
|
|
4162
4212
|
const serializeAws_json1_1CreateProjectVersionRequest = (input, context) => {
|
|
4163
4213
|
return {
|
|
4164
|
-
...(input.KmsKeyId
|
|
4165
|
-
...(input.OutputConfig
|
|
4166
|
-
|
|
4167
|
-
...(input.
|
|
4168
|
-
...(input.
|
|
4169
|
-
...(input.
|
|
4170
|
-
|
|
4171
|
-
...(input.TrainingData !== undefined &&
|
|
4172
|
-
input.TrainingData !== null && { TrainingData: serializeAws_json1_1TrainingData(input.TrainingData, context) }),
|
|
4173
|
-
...(input.VersionName !== undefined && input.VersionName !== null && { VersionName: input.VersionName }),
|
|
4214
|
+
...(input.KmsKeyId != null && { KmsKeyId: input.KmsKeyId }),
|
|
4215
|
+
...(input.OutputConfig != null && { OutputConfig: serializeAws_json1_1OutputConfig(input.OutputConfig, context) }),
|
|
4216
|
+
...(input.ProjectArn != null && { ProjectArn: input.ProjectArn }),
|
|
4217
|
+
...(input.Tags != null && { Tags: serializeAws_json1_1TagMap(input.Tags, context) }),
|
|
4218
|
+
...(input.TestingData != null && { TestingData: serializeAws_json1_1TestingData(input.TestingData, context) }),
|
|
4219
|
+
...(input.TrainingData != null && { TrainingData: serializeAws_json1_1TrainingData(input.TrainingData, context) }),
|
|
4220
|
+
...(input.VersionName != null && { VersionName: input.VersionName }),
|
|
4174
4221
|
};
|
|
4175
4222
|
};
|
|
4176
4223
|
const serializeAws_json1_1CreateStreamProcessorRequest = (input, context) => {
|
|
4177
4224
|
return {
|
|
4178
|
-
...(input.DataSharingPreference
|
|
4179
|
-
input.DataSharingPreference !== null && {
|
|
4225
|
+
...(input.DataSharingPreference != null && {
|
|
4180
4226
|
DataSharingPreference: serializeAws_json1_1StreamProcessorDataSharingPreference(input.DataSharingPreference, context),
|
|
4181
4227
|
}),
|
|
4182
|
-
...(input.Input
|
|
4183
|
-
|
|
4184
|
-
...(input.
|
|
4185
|
-
...(input.
|
|
4186
|
-
...(input.NotificationChannel !== undefined &&
|
|
4187
|
-
input.NotificationChannel !== null && {
|
|
4228
|
+
...(input.Input != null && { Input: serializeAws_json1_1StreamProcessorInput(input.Input, context) }),
|
|
4229
|
+
...(input.KmsKeyId != null && { KmsKeyId: input.KmsKeyId }),
|
|
4230
|
+
...(input.Name != null && { Name: input.Name }),
|
|
4231
|
+
...(input.NotificationChannel != null && {
|
|
4188
4232
|
NotificationChannel: serializeAws_json1_1StreamProcessorNotificationChannel(input.NotificationChannel, context),
|
|
4189
4233
|
}),
|
|
4190
|
-
...(input.Output
|
|
4191
|
-
|
|
4192
|
-
...(input.RegionsOfInterest !== undefined &&
|
|
4193
|
-
input.RegionsOfInterest !== null && {
|
|
4234
|
+
...(input.Output != null && { Output: serializeAws_json1_1StreamProcessorOutput(input.Output, context) }),
|
|
4235
|
+
...(input.RegionsOfInterest != null && {
|
|
4194
4236
|
RegionsOfInterest: serializeAws_json1_1RegionsOfInterest(input.RegionsOfInterest, context),
|
|
4195
4237
|
}),
|
|
4196
|
-
...(input.RoleArn
|
|
4197
|
-
...(input.Settings
|
|
4198
|
-
|
|
4199
|
-
...(input.Tags !== undefined && input.Tags !== null && { Tags: serializeAws_json1_1TagMap(input.Tags, context) }),
|
|
4238
|
+
...(input.RoleArn != null && { RoleArn: input.RoleArn }),
|
|
4239
|
+
...(input.Settings != null && { Settings: serializeAws_json1_1StreamProcessorSettings(input.Settings, context) }),
|
|
4240
|
+
...(input.Tags != null && { Tags: serializeAws_json1_1TagMap(input.Tags, context) }),
|
|
4200
4241
|
};
|
|
4201
4242
|
};
|
|
4202
4243
|
const serializeAws_json1_1DatasetChanges = (input, context) => {
|
|
4203
4244
|
return {
|
|
4204
|
-
...(input.GroundTruth
|
|
4205
|
-
input.GroundTruth !== null && { GroundTruth: context.base64Encoder(input.GroundTruth) }),
|
|
4245
|
+
...(input.GroundTruth != null && { GroundTruth: context.base64Encoder(input.GroundTruth) }),
|
|
4206
4246
|
};
|
|
4207
4247
|
};
|
|
4208
4248
|
const serializeAws_json1_1DatasetLabels = (input, context) => {
|
|
@@ -4217,165 +4257,140 @@ const serializeAws_json1_1DatasetLabels = (input, context) => {
|
|
|
4217
4257
|
};
|
|
4218
4258
|
const serializeAws_json1_1DatasetSource = (input, context) => {
|
|
4219
4259
|
return {
|
|
4220
|
-
...(input.DatasetArn
|
|
4221
|
-
...(input.GroundTruthManifest
|
|
4222
|
-
input.GroundTruthManifest !== null && {
|
|
4260
|
+
...(input.DatasetArn != null && { DatasetArn: input.DatasetArn }),
|
|
4261
|
+
...(input.GroundTruthManifest != null && {
|
|
4223
4262
|
GroundTruthManifest: serializeAws_json1_1GroundTruthManifest(input.GroundTruthManifest, context),
|
|
4224
4263
|
}),
|
|
4225
4264
|
};
|
|
4226
4265
|
};
|
|
4227
4266
|
const serializeAws_json1_1DeleteCollectionRequest = (input, context) => {
|
|
4228
4267
|
return {
|
|
4229
|
-
...(input.CollectionId
|
|
4268
|
+
...(input.CollectionId != null && { CollectionId: input.CollectionId }),
|
|
4230
4269
|
};
|
|
4231
4270
|
};
|
|
4232
4271
|
const serializeAws_json1_1DeleteDatasetRequest = (input, context) => {
|
|
4233
4272
|
return {
|
|
4234
|
-
...(input.DatasetArn
|
|
4273
|
+
...(input.DatasetArn != null && { DatasetArn: input.DatasetArn }),
|
|
4235
4274
|
};
|
|
4236
4275
|
};
|
|
4237
4276
|
const serializeAws_json1_1DeleteFacesRequest = (input, context) => {
|
|
4238
4277
|
return {
|
|
4239
|
-
...(input.CollectionId
|
|
4240
|
-
...(input.FaceIds
|
|
4241
|
-
input.FaceIds !== null && { FaceIds: serializeAws_json1_1FaceIdList(input.FaceIds, context) }),
|
|
4278
|
+
...(input.CollectionId != null && { CollectionId: input.CollectionId }),
|
|
4279
|
+
...(input.FaceIds != null && { FaceIds: serializeAws_json1_1FaceIdList(input.FaceIds, context) }),
|
|
4242
4280
|
};
|
|
4243
4281
|
};
|
|
4244
4282
|
const serializeAws_json1_1DeleteProjectRequest = (input, context) => {
|
|
4245
4283
|
return {
|
|
4246
|
-
...(input.ProjectArn
|
|
4284
|
+
...(input.ProjectArn != null && { ProjectArn: input.ProjectArn }),
|
|
4247
4285
|
};
|
|
4248
4286
|
};
|
|
4249
4287
|
const serializeAws_json1_1DeleteProjectVersionRequest = (input, context) => {
|
|
4250
4288
|
return {
|
|
4251
|
-
...(input.ProjectVersionArn
|
|
4252
|
-
input.ProjectVersionArn !== null && { ProjectVersionArn: input.ProjectVersionArn }),
|
|
4289
|
+
...(input.ProjectVersionArn != null && { ProjectVersionArn: input.ProjectVersionArn }),
|
|
4253
4290
|
};
|
|
4254
4291
|
};
|
|
4255
4292
|
const serializeAws_json1_1DeleteStreamProcessorRequest = (input, context) => {
|
|
4256
4293
|
return {
|
|
4257
|
-
...(input.Name
|
|
4294
|
+
...(input.Name != null && { Name: input.Name }),
|
|
4258
4295
|
};
|
|
4259
4296
|
};
|
|
4260
4297
|
const serializeAws_json1_1DescribeCollectionRequest = (input, context) => {
|
|
4261
4298
|
return {
|
|
4262
|
-
...(input.CollectionId
|
|
4299
|
+
...(input.CollectionId != null && { CollectionId: input.CollectionId }),
|
|
4263
4300
|
};
|
|
4264
4301
|
};
|
|
4265
4302
|
const serializeAws_json1_1DescribeDatasetRequest = (input, context) => {
|
|
4266
4303
|
return {
|
|
4267
|
-
...(input.DatasetArn
|
|
4304
|
+
...(input.DatasetArn != null && { DatasetArn: input.DatasetArn }),
|
|
4268
4305
|
};
|
|
4269
4306
|
};
|
|
4270
4307
|
const serializeAws_json1_1DescribeProjectsRequest = (input, context) => {
|
|
4271
4308
|
return {
|
|
4272
|
-
...(input.MaxResults
|
|
4273
|
-
...(input.NextToken
|
|
4274
|
-
...(input.ProjectNames
|
|
4275
|
-
input.ProjectNames !== null && { ProjectNames: serializeAws_json1_1ProjectNames(input.ProjectNames, context) }),
|
|
4309
|
+
...(input.MaxResults != null && { MaxResults: input.MaxResults }),
|
|
4310
|
+
...(input.NextToken != null && { NextToken: input.NextToken }),
|
|
4311
|
+
...(input.ProjectNames != null && { ProjectNames: serializeAws_json1_1ProjectNames(input.ProjectNames, context) }),
|
|
4276
4312
|
};
|
|
4277
4313
|
};
|
|
4278
4314
|
const serializeAws_json1_1DescribeProjectVersionsRequest = (input, context) => {
|
|
4279
4315
|
return {
|
|
4280
|
-
...(input.MaxResults
|
|
4281
|
-
...(input.NextToken
|
|
4282
|
-
...(input.ProjectArn
|
|
4283
|
-
...(input.VersionNames
|
|
4284
|
-
input.VersionNames !== null && { VersionNames: serializeAws_json1_1VersionNames(input.VersionNames, context) }),
|
|
4316
|
+
...(input.MaxResults != null && { MaxResults: input.MaxResults }),
|
|
4317
|
+
...(input.NextToken != null && { NextToken: input.NextToken }),
|
|
4318
|
+
...(input.ProjectArn != null && { ProjectArn: input.ProjectArn }),
|
|
4319
|
+
...(input.VersionNames != null && { VersionNames: serializeAws_json1_1VersionNames(input.VersionNames, context) }),
|
|
4285
4320
|
};
|
|
4286
4321
|
};
|
|
4287
4322
|
const serializeAws_json1_1DescribeStreamProcessorRequest = (input, context) => {
|
|
4288
4323
|
return {
|
|
4289
|
-
...(input.Name
|
|
4324
|
+
...(input.Name != null && { Name: input.Name }),
|
|
4290
4325
|
};
|
|
4291
4326
|
};
|
|
4292
4327
|
const serializeAws_json1_1DetectCustomLabelsRequest = (input, context) => {
|
|
4293
4328
|
return {
|
|
4294
|
-
...(input.Image
|
|
4295
|
-
|
|
4296
|
-
...(input.
|
|
4297
|
-
...(input.
|
|
4298
|
-
input.MinConfidence !== null && { MinConfidence: (0, smithy_client_1.serializeFloat)(input.MinConfidence) }),
|
|
4299
|
-
...(input.ProjectVersionArn !== undefined &&
|
|
4300
|
-
input.ProjectVersionArn !== null && { ProjectVersionArn: input.ProjectVersionArn }),
|
|
4329
|
+
...(input.Image != null && { Image: serializeAws_json1_1Image(input.Image, context) }),
|
|
4330
|
+
...(input.MaxResults != null && { MaxResults: input.MaxResults }),
|
|
4331
|
+
...(input.MinConfidence != null && { MinConfidence: (0, smithy_client_1.serializeFloat)(input.MinConfidence) }),
|
|
4332
|
+
...(input.ProjectVersionArn != null && { ProjectVersionArn: input.ProjectVersionArn }),
|
|
4301
4333
|
};
|
|
4302
4334
|
};
|
|
4303
4335
|
const serializeAws_json1_1DetectFacesRequest = (input, context) => {
|
|
4304
4336
|
return {
|
|
4305
|
-
...(input.Attributes
|
|
4306
|
-
|
|
4307
|
-
...(input.Image !== undefined &&
|
|
4308
|
-
input.Image !== null && { Image: serializeAws_json1_1Image(input.Image, context) }),
|
|
4337
|
+
...(input.Attributes != null && { Attributes: serializeAws_json1_1Attributes(input.Attributes, context) }),
|
|
4338
|
+
...(input.Image != null && { Image: serializeAws_json1_1Image(input.Image, context) }),
|
|
4309
4339
|
};
|
|
4310
4340
|
};
|
|
4311
4341
|
const serializeAws_json1_1DetectionFilter = (input, context) => {
|
|
4312
4342
|
return {
|
|
4313
|
-
...(input.MinBoundingBoxHeight
|
|
4314
|
-
|
|
4315
|
-
...(input.
|
|
4316
|
-
input.MinBoundingBoxWidth !== null && { MinBoundingBoxWidth: (0, smithy_client_1.serializeFloat)(input.MinBoundingBoxWidth) }),
|
|
4317
|
-
...(input.MinConfidence !== undefined &&
|
|
4318
|
-
input.MinConfidence !== null && { MinConfidence: (0, smithy_client_1.serializeFloat)(input.MinConfidence) }),
|
|
4343
|
+
...(input.MinBoundingBoxHeight != null && { MinBoundingBoxHeight: (0, smithy_client_1.serializeFloat)(input.MinBoundingBoxHeight) }),
|
|
4344
|
+
...(input.MinBoundingBoxWidth != null && { MinBoundingBoxWidth: (0, smithy_client_1.serializeFloat)(input.MinBoundingBoxWidth) }),
|
|
4345
|
+
...(input.MinConfidence != null && { MinConfidence: (0, smithy_client_1.serializeFloat)(input.MinConfidence) }),
|
|
4319
4346
|
};
|
|
4320
4347
|
};
|
|
4321
4348
|
const serializeAws_json1_1DetectLabelsRequest = (input, context) => {
|
|
4322
4349
|
return {
|
|
4323
|
-
...(input.Image
|
|
4324
|
-
|
|
4325
|
-
...(input.
|
|
4326
|
-
...(input.MinConfidence !== undefined &&
|
|
4327
|
-
input.MinConfidence !== null && { MinConfidence: (0, smithy_client_1.serializeFloat)(input.MinConfidence) }),
|
|
4350
|
+
...(input.Image != null && { Image: serializeAws_json1_1Image(input.Image, context) }),
|
|
4351
|
+
...(input.MaxLabels != null && { MaxLabels: input.MaxLabels }),
|
|
4352
|
+
...(input.MinConfidence != null && { MinConfidence: (0, smithy_client_1.serializeFloat)(input.MinConfidence) }),
|
|
4328
4353
|
};
|
|
4329
4354
|
};
|
|
4330
4355
|
const serializeAws_json1_1DetectModerationLabelsRequest = (input, context) => {
|
|
4331
4356
|
return {
|
|
4332
|
-
...(input.HumanLoopConfig
|
|
4333
|
-
input.HumanLoopConfig !== null && {
|
|
4357
|
+
...(input.HumanLoopConfig != null && {
|
|
4334
4358
|
HumanLoopConfig: serializeAws_json1_1HumanLoopConfig(input.HumanLoopConfig, context),
|
|
4335
4359
|
}),
|
|
4336
|
-
...(input.Image
|
|
4337
|
-
|
|
4338
|
-
...(input.MinConfidence !== undefined &&
|
|
4339
|
-
input.MinConfidence !== null && { MinConfidence: (0, smithy_client_1.serializeFloat)(input.MinConfidence) }),
|
|
4360
|
+
...(input.Image != null && { Image: serializeAws_json1_1Image(input.Image, context) }),
|
|
4361
|
+
...(input.MinConfidence != null && { MinConfidence: (0, smithy_client_1.serializeFloat)(input.MinConfidence) }),
|
|
4340
4362
|
};
|
|
4341
4363
|
};
|
|
4342
4364
|
const serializeAws_json1_1DetectProtectiveEquipmentRequest = (input, context) => {
|
|
4343
4365
|
return {
|
|
4344
|
-
...(input.Image
|
|
4345
|
-
|
|
4346
|
-
...(input.SummarizationAttributes !== undefined &&
|
|
4347
|
-
input.SummarizationAttributes !== null && {
|
|
4366
|
+
...(input.Image != null && { Image: serializeAws_json1_1Image(input.Image, context) }),
|
|
4367
|
+
...(input.SummarizationAttributes != null && {
|
|
4348
4368
|
SummarizationAttributes: serializeAws_json1_1ProtectiveEquipmentSummarizationAttributes(input.SummarizationAttributes, context),
|
|
4349
4369
|
}),
|
|
4350
4370
|
};
|
|
4351
4371
|
};
|
|
4352
4372
|
const serializeAws_json1_1DetectTextFilters = (input, context) => {
|
|
4353
4373
|
return {
|
|
4354
|
-
...(input.RegionsOfInterest
|
|
4355
|
-
input.RegionsOfInterest !== null && {
|
|
4374
|
+
...(input.RegionsOfInterest != null && {
|
|
4356
4375
|
RegionsOfInterest: serializeAws_json1_1RegionsOfInterest(input.RegionsOfInterest, context),
|
|
4357
4376
|
}),
|
|
4358
|
-
...(input.WordFilter
|
|
4359
|
-
input.WordFilter !== null && { WordFilter: serializeAws_json1_1DetectionFilter(input.WordFilter, context) }),
|
|
4377
|
+
...(input.WordFilter != null && { WordFilter: serializeAws_json1_1DetectionFilter(input.WordFilter, context) }),
|
|
4360
4378
|
};
|
|
4361
4379
|
};
|
|
4362
4380
|
const serializeAws_json1_1DetectTextRequest = (input, context) => {
|
|
4363
4381
|
return {
|
|
4364
|
-
...(input.Filters
|
|
4365
|
-
|
|
4366
|
-
...(input.Image !== undefined &&
|
|
4367
|
-
input.Image !== null && { Image: serializeAws_json1_1Image(input.Image, context) }),
|
|
4382
|
+
...(input.Filters != null && { Filters: serializeAws_json1_1DetectTextFilters(input.Filters, context) }),
|
|
4383
|
+
...(input.Image != null && { Image: serializeAws_json1_1Image(input.Image, context) }),
|
|
4368
4384
|
};
|
|
4369
4385
|
};
|
|
4370
4386
|
const serializeAws_json1_1DistributeDataset = (input, context) => {
|
|
4371
4387
|
return {
|
|
4372
|
-
...(input.Arn
|
|
4388
|
+
...(input.Arn != null && { Arn: input.Arn }),
|
|
4373
4389
|
};
|
|
4374
4390
|
};
|
|
4375
4391
|
const serializeAws_json1_1DistributeDatasetEntriesRequest = (input, context) => {
|
|
4376
4392
|
return {
|
|
4377
|
-
...(input.Datasets
|
|
4378
|
-
input.Datasets !== null && {
|
|
4393
|
+
...(input.Datasets != null && {
|
|
4379
4394
|
Datasets: serializeAws_json1_1DistributeDatasetMetadataList(input.Datasets, context),
|
|
4380
4395
|
}),
|
|
4381
4396
|
};
|
|
@@ -4402,204 +4417,191 @@ const serializeAws_json1_1FaceIdList = (input, context) => {
|
|
|
4402
4417
|
};
|
|
4403
4418
|
const serializeAws_json1_1FaceSearchSettings = (input, context) => {
|
|
4404
4419
|
return {
|
|
4405
|
-
...(input.CollectionId
|
|
4406
|
-
...(input.FaceMatchThreshold
|
|
4407
|
-
input.FaceMatchThreshold !== null && { FaceMatchThreshold: (0, smithy_client_1.serializeFloat)(input.FaceMatchThreshold) }),
|
|
4420
|
+
...(input.CollectionId != null && { CollectionId: input.CollectionId }),
|
|
4421
|
+
...(input.FaceMatchThreshold != null && { FaceMatchThreshold: (0, smithy_client_1.serializeFloat)(input.FaceMatchThreshold) }),
|
|
4408
4422
|
};
|
|
4409
4423
|
};
|
|
4410
4424
|
const serializeAws_json1_1GetCelebrityInfoRequest = (input, context) => {
|
|
4411
4425
|
return {
|
|
4412
|
-
...(input.Id
|
|
4426
|
+
...(input.Id != null && { Id: input.Id }),
|
|
4413
4427
|
};
|
|
4414
4428
|
};
|
|
4415
4429
|
const serializeAws_json1_1GetCelebrityRecognitionRequest = (input, context) => {
|
|
4416
4430
|
return {
|
|
4417
|
-
...(input.JobId
|
|
4418
|
-
...(input.MaxResults
|
|
4419
|
-
...(input.NextToken
|
|
4420
|
-
...(input.SortBy
|
|
4431
|
+
...(input.JobId != null && { JobId: input.JobId }),
|
|
4432
|
+
...(input.MaxResults != null && { MaxResults: input.MaxResults }),
|
|
4433
|
+
...(input.NextToken != null && { NextToken: input.NextToken }),
|
|
4434
|
+
...(input.SortBy != null && { SortBy: input.SortBy }),
|
|
4421
4435
|
};
|
|
4422
4436
|
};
|
|
4423
4437
|
const serializeAws_json1_1GetContentModerationRequest = (input, context) => {
|
|
4424
4438
|
return {
|
|
4425
|
-
...(input.JobId
|
|
4426
|
-
...(input.MaxResults
|
|
4427
|
-
...(input.NextToken
|
|
4428
|
-
...(input.SortBy
|
|
4439
|
+
...(input.JobId != null && { JobId: input.JobId }),
|
|
4440
|
+
...(input.MaxResults != null && { MaxResults: input.MaxResults }),
|
|
4441
|
+
...(input.NextToken != null && { NextToken: input.NextToken }),
|
|
4442
|
+
...(input.SortBy != null && { SortBy: input.SortBy }),
|
|
4429
4443
|
};
|
|
4430
4444
|
};
|
|
4431
4445
|
const serializeAws_json1_1GetFaceDetectionRequest = (input, context) => {
|
|
4432
4446
|
return {
|
|
4433
|
-
...(input.JobId
|
|
4434
|
-
...(input.MaxResults
|
|
4435
|
-
...(input.NextToken
|
|
4447
|
+
...(input.JobId != null && { JobId: input.JobId }),
|
|
4448
|
+
...(input.MaxResults != null && { MaxResults: input.MaxResults }),
|
|
4449
|
+
...(input.NextToken != null && { NextToken: input.NextToken }),
|
|
4436
4450
|
};
|
|
4437
4451
|
};
|
|
4438
4452
|
const serializeAws_json1_1GetFaceSearchRequest = (input, context) => {
|
|
4439
4453
|
return {
|
|
4440
|
-
...(input.JobId
|
|
4441
|
-
...(input.MaxResults
|
|
4442
|
-
...(input.NextToken
|
|
4443
|
-
...(input.SortBy
|
|
4454
|
+
...(input.JobId != null && { JobId: input.JobId }),
|
|
4455
|
+
...(input.MaxResults != null && { MaxResults: input.MaxResults }),
|
|
4456
|
+
...(input.NextToken != null && { NextToken: input.NextToken }),
|
|
4457
|
+
...(input.SortBy != null && { SortBy: input.SortBy }),
|
|
4444
4458
|
};
|
|
4445
4459
|
};
|
|
4446
4460
|
const serializeAws_json1_1GetLabelDetectionRequest = (input, context) => {
|
|
4447
4461
|
return {
|
|
4448
|
-
...(input.JobId
|
|
4449
|
-
...(input.MaxResults
|
|
4450
|
-
...(input.NextToken
|
|
4451
|
-
...(input.SortBy
|
|
4462
|
+
...(input.JobId != null && { JobId: input.JobId }),
|
|
4463
|
+
...(input.MaxResults != null && { MaxResults: input.MaxResults }),
|
|
4464
|
+
...(input.NextToken != null && { NextToken: input.NextToken }),
|
|
4465
|
+
...(input.SortBy != null && { SortBy: input.SortBy }),
|
|
4452
4466
|
};
|
|
4453
4467
|
};
|
|
4454
4468
|
const serializeAws_json1_1GetPersonTrackingRequest = (input, context) => {
|
|
4455
4469
|
return {
|
|
4456
|
-
...(input.JobId
|
|
4457
|
-
...(input.MaxResults
|
|
4458
|
-
...(input.NextToken
|
|
4459
|
-
...(input.SortBy
|
|
4470
|
+
...(input.JobId != null && { JobId: input.JobId }),
|
|
4471
|
+
...(input.MaxResults != null && { MaxResults: input.MaxResults }),
|
|
4472
|
+
...(input.NextToken != null && { NextToken: input.NextToken }),
|
|
4473
|
+
...(input.SortBy != null && { SortBy: input.SortBy }),
|
|
4460
4474
|
};
|
|
4461
4475
|
};
|
|
4462
4476
|
const serializeAws_json1_1GetSegmentDetectionRequest = (input, context) => {
|
|
4463
4477
|
return {
|
|
4464
|
-
...(input.JobId
|
|
4465
|
-
...(input.MaxResults
|
|
4466
|
-
...(input.NextToken
|
|
4478
|
+
...(input.JobId != null && { JobId: input.JobId }),
|
|
4479
|
+
...(input.MaxResults != null && { MaxResults: input.MaxResults }),
|
|
4480
|
+
...(input.NextToken != null && { NextToken: input.NextToken }),
|
|
4467
4481
|
};
|
|
4468
4482
|
};
|
|
4469
4483
|
const serializeAws_json1_1GetTextDetectionRequest = (input, context) => {
|
|
4470
4484
|
return {
|
|
4471
|
-
...(input.JobId
|
|
4472
|
-
...(input.MaxResults
|
|
4473
|
-
...(input.NextToken
|
|
4485
|
+
...(input.JobId != null && { JobId: input.JobId }),
|
|
4486
|
+
...(input.MaxResults != null && { MaxResults: input.MaxResults }),
|
|
4487
|
+
...(input.NextToken != null && { NextToken: input.NextToken }),
|
|
4474
4488
|
};
|
|
4475
4489
|
};
|
|
4476
4490
|
const serializeAws_json1_1GroundTruthManifest = (input, context) => {
|
|
4477
4491
|
return {
|
|
4478
|
-
...(input.S3Object
|
|
4479
|
-
input.S3Object !== null && { S3Object: serializeAws_json1_1S3Object(input.S3Object, context) }),
|
|
4492
|
+
...(input.S3Object != null && { S3Object: serializeAws_json1_1S3Object(input.S3Object, context) }),
|
|
4480
4493
|
};
|
|
4481
4494
|
};
|
|
4482
4495
|
const serializeAws_json1_1HumanLoopConfig = (input, context) => {
|
|
4483
4496
|
return {
|
|
4484
|
-
...(input.DataAttributes
|
|
4485
|
-
input.DataAttributes !== null && {
|
|
4497
|
+
...(input.DataAttributes != null && {
|
|
4486
4498
|
DataAttributes: serializeAws_json1_1HumanLoopDataAttributes(input.DataAttributes, context),
|
|
4487
4499
|
}),
|
|
4488
|
-
...(input.FlowDefinitionArn
|
|
4489
|
-
|
|
4490
|
-
...(input.HumanLoopName !== undefined && input.HumanLoopName !== null && { HumanLoopName: input.HumanLoopName }),
|
|
4500
|
+
...(input.FlowDefinitionArn != null && { FlowDefinitionArn: input.FlowDefinitionArn }),
|
|
4501
|
+
...(input.HumanLoopName != null && { HumanLoopName: input.HumanLoopName }),
|
|
4491
4502
|
};
|
|
4492
4503
|
};
|
|
4493
4504
|
const serializeAws_json1_1HumanLoopDataAttributes = (input, context) => {
|
|
4494
4505
|
return {
|
|
4495
|
-
...(input.ContentClassifiers
|
|
4496
|
-
input.ContentClassifiers !== null && {
|
|
4506
|
+
...(input.ContentClassifiers != null && {
|
|
4497
4507
|
ContentClassifiers: serializeAws_json1_1ContentClassifiers(input.ContentClassifiers, context),
|
|
4498
4508
|
}),
|
|
4499
4509
|
};
|
|
4500
4510
|
};
|
|
4501
4511
|
const serializeAws_json1_1Image = (input, context) => {
|
|
4502
4512
|
return {
|
|
4503
|
-
...(input.Bytes
|
|
4504
|
-
...(input.S3Object
|
|
4505
|
-
input.S3Object !== null && { S3Object: serializeAws_json1_1S3Object(input.S3Object, context) }),
|
|
4513
|
+
...(input.Bytes != null && { Bytes: context.base64Encoder(input.Bytes) }),
|
|
4514
|
+
...(input.S3Object != null && { S3Object: serializeAws_json1_1S3Object(input.S3Object, context) }),
|
|
4506
4515
|
};
|
|
4507
4516
|
};
|
|
4508
4517
|
const serializeAws_json1_1IndexFacesRequest = (input, context) => {
|
|
4509
4518
|
return {
|
|
4510
|
-
...(input.CollectionId
|
|
4511
|
-
...(input.DetectionAttributes
|
|
4512
|
-
input.DetectionAttributes !== null && {
|
|
4519
|
+
...(input.CollectionId != null && { CollectionId: input.CollectionId }),
|
|
4520
|
+
...(input.DetectionAttributes != null && {
|
|
4513
4521
|
DetectionAttributes: serializeAws_json1_1Attributes(input.DetectionAttributes, context),
|
|
4514
4522
|
}),
|
|
4515
|
-
...(input.ExternalImageId
|
|
4516
|
-
|
|
4517
|
-
...(input.
|
|
4518
|
-
|
|
4519
|
-
...(input.MaxFaces !== undefined && input.MaxFaces !== null && { MaxFaces: input.MaxFaces }),
|
|
4520
|
-
...(input.QualityFilter !== undefined && input.QualityFilter !== null && { QualityFilter: input.QualityFilter }),
|
|
4523
|
+
...(input.ExternalImageId != null && { ExternalImageId: input.ExternalImageId }),
|
|
4524
|
+
...(input.Image != null && { Image: serializeAws_json1_1Image(input.Image, context) }),
|
|
4525
|
+
...(input.MaxFaces != null && { MaxFaces: input.MaxFaces }),
|
|
4526
|
+
...(input.QualityFilter != null && { QualityFilter: input.QualityFilter }),
|
|
4521
4527
|
};
|
|
4522
4528
|
};
|
|
4523
4529
|
const serializeAws_json1_1KinesisDataStream = (input, context) => {
|
|
4524
4530
|
return {
|
|
4525
|
-
...(input.Arn
|
|
4531
|
+
...(input.Arn != null && { Arn: input.Arn }),
|
|
4526
4532
|
};
|
|
4527
4533
|
};
|
|
4528
4534
|
const serializeAws_json1_1KinesisVideoStream = (input, context) => {
|
|
4529
4535
|
return {
|
|
4530
|
-
...(input.Arn
|
|
4536
|
+
...(input.Arn != null && { Arn: input.Arn }),
|
|
4531
4537
|
};
|
|
4532
4538
|
};
|
|
4533
4539
|
const serializeAws_json1_1KinesisVideoStreamStartSelector = (input, context) => {
|
|
4534
4540
|
return {
|
|
4535
|
-
...(input.FragmentNumber
|
|
4536
|
-
|
|
4537
|
-
...(input.ProducerTimestamp !== undefined &&
|
|
4538
|
-
input.ProducerTimestamp !== null && { ProducerTimestamp: input.ProducerTimestamp }),
|
|
4541
|
+
...(input.FragmentNumber != null && { FragmentNumber: input.FragmentNumber }),
|
|
4542
|
+
...(input.ProducerTimestamp != null && { ProducerTimestamp: input.ProducerTimestamp }),
|
|
4539
4543
|
};
|
|
4540
4544
|
};
|
|
4541
4545
|
const serializeAws_json1_1ListCollectionsRequest = (input, context) => {
|
|
4542
4546
|
return {
|
|
4543
|
-
...(input.MaxResults
|
|
4544
|
-
...(input.NextToken
|
|
4547
|
+
...(input.MaxResults != null && { MaxResults: input.MaxResults }),
|
|
4548
|
+
...(input.NextToken != null && { NextToken: input.NextToken }),
|
|
4545
4549
|
};
|
|
4546
4550
|
};
|
|
4547
4551
|
const serializeAws_json1_1ListDatasetEntriesRequest = (input, context) => {
|
|
4548
4552
|
return {
|
|
4549
|
-
...(input.ContainsLabels
|
|
4550
|
-
input.ContainsLabels !== null && {
|
|
4553
|
+
...(input.ContainsLabels != null && {
|
|
4551
4554
|
ContainsLabels: serializeAws_json1_1DatasetLabels(input.ContainsLabels, context),
|
|
4552
4555
|
}),
|
|
4553
|
-
...(input.DatasetArn
|
|
4554
|
-
...(input.HasErrors
|
|
4555
|
-
...(input.Labeled
|
|
4556
|
-
...(input.MaxResults
|
|
4557
|
-
...(input.NextToken
|
|
4558
|
-
...(input.SourceRefContains
|
|
4559
|
-
input.SourceRefContains !== null && { SourceRefContains: input.SourceRefContains }),
|
|
4556
|
+
...(input.DatasetArn != null && { DatasetArn: input.DatasetArn }),
|
|
4557
|
+
...(input.HasErrors != null && { HasErrors: input.HasErrors }),
|
|
4558
|
+
...(input.Labeled != null && { Labeled: input.Labeled }),
|
|
4559
|
+
...(input.MaxResults != null && { MaxResults: input.MaxResults }),
|
|
4560
|
+
...(input.NextToken != null && { NextToken: input.NextToken }),
|
|
4561
|
+
...(input.SourceRefContains != null && { SourceRefContains: input.SourceRefContains }),
|
|
4560
4562
|
};
|
|
4561
4563
|
};
|
|
4562
4564
|
const serializeAws_json1_1ListDatasetLabelsRequest = (input, context) => {
|
|
4563
4565
|
return {
|
|
4564
|
-
...(input.DatasetArn
|
|
4565
|
-
...(input.MaxResults
|
|
4566
|
-
...(input.NextToken
|
|
4566
|
+
...(input.DatasetArn != null && { DatasetArn: input.DatasetArn }),
|
|
4567
|
+
...(input.MaxResults != null && { MaxResults: input.MaxResults }),
|
|
4568
|
+
...(input.NextToken != null && { NextToken: input.NextToken }),
|
|
4567
4569
|
};
|
|
4568
4570
|
};
|
|
4569
4571
|
const serializeAws_json1_1ListFacesRequest = (input, context) => {
|
|
4570
4572
|
return {
|
|
4571
|
-
...(input.CollectionId
|
|
4572
|
-
...(input.MaxResults
|
|
4573
|
-
...(input.NextToken
|
|
4573
|
+
...(input.CollectionId != null && { CollectionId: input.CollectionId }),
|
|
4574
|
+
...(input.MaxResults != null && { MaxResults: input.MaxResults }),
|
|
4575
|
+
...(input.NextToken != null && { NextToken: input.NextToken }),
|
|
4574
4576
|
};
|
|
4575
4577
|
};
|
|
4576
4578
|
const serializeAws_json1_1ListStreamProcessorsRequest = (input, context) => {
|
|
4577
4579
|
return {
|
|
4578
|
-
...(input.MaxResults
|
|
4579
|
-
...(input.NextToken
|
|
4580
|
+
...(input.MaxResults != null && { MaxResults: input.MaxResults }),
|
|
4581
|
+
...(input.NextToken != null && { NextToken: input.NextToken }),
|
|
4580
4582
|
};
|
|
4581
4583
|
};
|
|
4582
4584
|
const serializeAws_json1_1ListTagsForResourceRequest = (input, context) => {
|
|
4583
4585
|
return {
|
|
4584
|
-
...(input.ResourceArn
|
|
4586
|
+
...(input.ResourceArn != null && { ResourceArn: input.ResourceArn }),
|
|
4585
4587
|
};
|
|
4586
4588
|
};
|
|
4587
4589
|
const serializeAws_json1_1NotificationChannel = (input, context) => {
|
|
4588
4590
|
return {
|
|
4589
|
-
...(input.RoleArn
|
|
4590
|
-
...(input.SNSTopicArn
|
|
4591
|
+
...(input.RoleArn != null && { RoleArn: input.RoleArn }),
|
|
4592
|
+
...(input.SNSTopicArn != null && { SNSTopicArn: input.SNSTopicArn }),
|
|
4591
4593
|
};
|
|
4592
4594
|
};
|
|
4593
4595
|
const serializeAws_json1_1OutputConfig = (input, context) => {
|
|
4594
4596
|
return {
|
|
4595
|
-
...(input.S3Bucket
|
|
4596
|
-
...(input.S3KeyPrefix
|
|
4597
|
+
...(input.S3Bucket != null && { S3Bucket: input.S3Bucket }),
|
|
4598
|
+
...(input.S3KeyPrefix != null && { S3KeyPrefix: input.S3KeyPrefix }),
|
|
4597
4599
|
};
|
|
4598
4600
|
};
|
|
4599
4601
|
const serializeAws_json1_1Point = (input, context) => {
|
|
4600
4602
|
return {
|
|
4601
|
-
...(input.X
|
|
4602
|
-
...(input.Y
|
|
4603
|
+
...(input.X != null && { X: (0, smithy_client_1.serializeFloat)(input.X) }),
|
|
4604
|
+
...(input.Y != null && { Y: (0, smithy_client_1.serializeFloat)(input.Y) }),
|
|
4603
4605
|
};
|
|
4604
4606
|
};
|
|
4605
4607
|
const serializeAws_json1_1Polygon = (input, context) => {
|
|
@@ -4624,10 +4626,8 @@ const serializeAws_json1_1ProjectNames = (input, context) => {
|
|
|
4624
4626
|
};
|
|
4625
4627
|
const serializeAws_json1_1ProtectiveEquipmentSummarizationAttributes = (input, context) => {
|
|
4626
4628
|
return {
|
|
4627
|
-
...(input.MinConfidence
|
|
4628
|
-
|
|
4629
|
-
...(input.RequiredEquipmentTypes !== undefined &&
|
|
4630
|
-
input.RequiredEquipmentTypes !== null && {
|
|
4629
|
+
...(input.MinConfidence != null && { MinConfidence: (0, smithy_client_1.serializeFloat)(input.MinConfidence) }),
|
|
4630
|
+
...(input.RequiredEquipmentTypes != null && {
|
|
4631
4631
|
RequiredEquipmentTypes: serializeAws_json1_1ProtectiveEquipmentTypes(input.RequiredEquipmentTypes, context),
|
|
4632
4632
|
}),
|
|
4633
4633
|
};
|
|
@@ -4644,16 +4644,13 @@ const serializeAws_json1_1ProtectiveEquipmentTypes = (input, context) => {
|
|
|
4644
4644
|
};
|
|
4645
4645
|
const serializeAws_json1_1RecognizeCelebritiesRequest = (input, context) => {
|
|
4646
4646
|
return {
|
|
4647
|
-
...(input.Image
|
|
4648
|
-
input.Image !== null && { Image: serializeAws_json1_1Image(input.Image, context) }),
|
|
4647
|
+
...(input.Image != null && { Image: serializeAws_json1_1Image(input.Image, context) }),
|
|
4649
4648
|
};
|
|
4650
4649
|
};
|
|
4651
4650
|
const serializeAws_json1_1RegionOfInterest = (input, context) => {
|
|
4652
4651
|
return {
|
|
4653
|
-
...(input.BoundingBox
|
|
4654
|
-
|
|
4655
|
-
...(input.Polygon !== undefined &&
|
|
4656
|
-
input.Polygon !== null && { Polygon: serializeAws_json1_1Polygon(input.Polygon, context) }),
|
|
4652
|
+
...(input.BoundingBox != null && { BoundingBox: serializeAws_json1_1BoundingBox(input.BoundingBox, context) }),
|
|
4653
|
+
...(input.Polygon != null && { Polygon: serializeAws_json1_1Polygon(input.Polygon, context) }),
|
|
4657
4654
|
};
|
|
4658
4655
|
};
|
|
4659
4656
|
const serializeAws_json1_1RegionsOfInterest = (input, context) => {
|
|
@@ -4668,35 +4665,32 @@ const serializeAws_json1_1RegionsOfInterest = (input, context) => {
|
|
|
4668
4665
|
};
|
|
4669
4666
|
const serializeAws_json1_1S3Destination = (input, context) => {
|
|
4670
4667
|
return {
|
|
4671
|
-
...(input.Bucket
|
|
4672
|
-
...(input.KeyPrefix
|
|
4668
|
+
...(input.Bucket != null && { Bucket: input.Bucket }),
|
|
4669
|
+
...(input.KeyPrefix != null && { KeyPrefix: input.KeyPrefix }),
|
|
4673
4670
|
};
|
|
4674
4671
|
};
|
|
4675
4672
|
const serializeAws_json1_1S3Object = (input, context) => {
|
|
4676
4673
|
return {
|
|
4677
|
-
...(input.Bucket
|
|
4678
|
-
...(input.Name
|
|
4679
|
-
...(input.Version
|
|
4674
|
+
...(input.Bucket != null && { Bucket: input.Bucket }),
|
|
4675
|
+
...(input.Name != null && { Name: input.Name }),
|
|
4676
|
+
...(input.Version != null && { Version: input.Version }),
|
|
4680
4677
|
};
|
|
4681
4678
|
};
|
|
4682
4679
|
const serializeAws_json1_1SearchFacesByImageRequest = (input, context) => {
|
|
4683
4680
|
return {
|
|
4684
|
-
...(input.CollectionId
|
|
4685
|
-
...(input.FaceMatchThreshold
|
|
4686
|
-
|
|
4687
|
-
...(input.
|
|
4688
|
-
|
|
4689
|
-
...(input.MaxFaces !== undefined && input.MaxFaces !== null && { MaxFaces: input.MaxFaces }),
|
|
4690
|
-
...(input.QualityFilter !== undefined && input.QualityFilter !== null && { QualityFilter: input.QualityFilter }),
|
|
4681
|
+
...(input.CollectionId != null && { CollectionId: input.CollectionId }),
|
|
4682
|
+
...(input.FaceMatchThreshold != null && { FaceMatchThreshold: (0, smithy_client_1.serializeFloat)(input.FaceMatchThreshold) }),
|
|
4683
|
+
...(input.Image != null && { Image: serializeAws_json1_1Image(input.Image, context) }),
|
|
4684
|
+
...(input.MaxFaces != null && { MaxFaces: input.MaxFaces }),
|
|
4685
|
+
...(input.QualityFilter != null && { QualityFilter: input.QualityFilter }),
|
|
4691
4686
|
};
|
|
4692
4687
|
};
|
|
4693
4688
|
const serializeAws_json1_1SearchFacesRequest = (input, context) => {
|
|
4694
4689
|
return {
|
|
4695
|
-
...(input.CollectionId
|
|
4696
|
-
...(input.FaceId
|
|
4697
|
-
...(input.FaceMatchThreshold
|
|
4698
|
-
|
|
4699
|
-
...(input.MaxFaces !== undefined && input.MaxFaces !== null && { MaxFaces: input.MaxFaces }),
|
|
4690
|
+
...(input.CollectionId != null && { CollectionId: input.CollectionId }),
|
|
4691
|
+
...(input.FaceId != null && { FaceId: input.FaceId }),
|
|
4692
|
+
...(input.FaceMatchThreshold != null && { FaceMatchThreshold: (0, smithy_client_1.serializeFloat)(input.FaceMatchThreshold) }),
|
|
4693
|
+
...(input.MaxFaces != null && { MaxFaces: input.MaxFaces }),
|
|
4700
4694
|
};
|
|
4701
4695
|
};
|
|
4702
4696
|
const serializeAws_json1_1SegmentTypes = (input, context) => {
|
|
@@ -4711,231 +4705,183 @@ const serializeAws_json1_1SegmentTypes = (input, context) => {
|
|
|
4711
4705
|
};
|
|
4712
4706
|
const serializeAws_json1_1StartCelebrityRecognitionRequest = (input, context) => {
|
|
4713
4707
|
return {
|
|
4714
|
-
...(input.ClientRequestToken
|
|
4715
|
-
|
|
4716
|
-
...(input.
|
|
4717
|
-
...(input.NotificationChannel !== undefined &&
|
|
4718
|
-
input.NotificationChannel !== null && {
|
|
4708
|
+
...(input.ClientRequestToken != null && { ClientRequestToken: input.ClientRequestToken }),
|
|
4709
|
+
...(input.JobTag != null && { JobTag: input.JobTag }),
|
|
4710
|
+
...(input.NotificationChannel != null && {
|
|
4719
4711
|
NotificationChannel: serializeAws_json1_1NotificationChannel(input.NotificationChannel, context),
|
|
4720
4712
|
}),
|
|
4721
|
-
...(input.Video
|
|
4722
|
-
input.Video !== null && { Video: serializeAws_json1_1Video(input.Video, context) }),
|
|
4713
|
+
...(input.Video != null && { Video: serializeAws_json1_1Video(input.Video, context) }),
|
|
4723
4714
|
};
|
|
4724
4715
|
};
|
|
4725
4716
|
const serializeAws_json1_1StartContentModerationRequest = (input, context) => {
|
|
4726
4717
|
return {
|
|
4727
|
-
...(input.ClientRequestToken
|
|
4728
|
-
|
|
4729
|
-
...(input.
|
|
4730
|
-
...(input.
|
|
4731
|
-
input.MinConfidence !== null && { MinConfidence: (0, smithy_client_1.serializeFloat)(input.MinConfidence) }),
|
|
4732
|
-
...(input.NotificationChannel !== undefined &&
|
|
4733
|
-
input.NotificationChannel !== null && {
|
|
4718
|
+
...(input.ClientRequestToken != null && { ClientRequestToken: input.ClientRequestToken }),
|
|
4719
|
+
...(input.JobTag != null && { JobTag: input.JobTag }),
|
|
4720
|
+
...(input.MinConfidence != null && { MinConfidence: (0, smithy_client_1.serializeFloat)(input.MinConfidence) }),
|
|
4721
|
+
...(input.NotificationChannel != null && {
|
|
4734
4722
|
NotificationChannel: serializeAws_json1_1NotificationChannel(input.NotificationChannel, context),
|
|
4735
4723
|
}),
|
|
4736
|
-
...(input.Video
|
|
4737
|
-
input.Video !== null && { Video: serializeAws_json1_1Video(input.Video, context) }),
|
|
4724
|
+
...(input.Video != null && { Video: serializeAws_json1_1Video(input.Video, context) }),
|
|
4738
4725
|
};
|
|
4739
4726
|
};
|
|
4740
4727
|
const serializeAws_json1_1StartFaceDetectionRequest = (input, context) => {
|
|
4741
4728
|
return {
|
|
4742
|
-
...(input.ClientRequestToken
|
|
4743
|
-
|
|
4744
|
-
...(input.
|
|
4745
|
-
|
|
4746
|
-
...(input.JobTag !== undefined && input.JobTag !== null && { JobTag: input.JobTag }),
|
|
4747
|
-
...(input.NotificationChannel !== undefined &&
|
|
4748
|
-
input.NotificationChannel !== null && {
|
|
4729
|
+
...(input.ClientRequestToken != null && { ClientRequestToken: input.ClientRequestToken }),
|
|
4730
|
+
...(input.FaceAttributes != null && { FaceAttributes: input.FaceAttributes }),
|
|
4731
|
+
...(input.JobTag != null && { JobTag: input.JobTag }),
|
|
4732
|
+
...(input.NotificationChannel != null && {
|
|
4749
4733
|
NotificationChannel: serializeAws_json1_1NotificationChannel(input.NotificationChannel, context),
|
|
4750
4734
|
}),
|
|
4751
|
-
...(input.Video
|
|
4752
|
-
input.Video !== null && { Video: serializeAws_json1_1Video(input.Video, context) }),
|
|
4735
|
+
...(input.Video != null && { Video: serializeAws_json1_1Video(input.Video, context) }),
|
|
4753
4736
|
};
|
|
4754
4737
|
};
|
|
4755
4738
|
const serializeAws_json1_1StartFaceSearchRequest = (input, context) => {
|
|
4756
4739
|
return {
|
|
4757
|
-
...(input.ClientRequestToken
|
|
4758
|
-
|
|
4759
|
-
...(input.
|
|
4760
|
-
...(input.
|
|
4761
|
-
|
|
4762
|
-
...(input.JobTag !== undefined && input.JobTag !== null && { JobTag: input.JobTag }),
|
|
4763
|
-
...(input.NotificationChannel !== undefined &&
|
|
4764
|
-
input.NotificationChannel !== null && {
|
|
4740
|
+
...(input.ClientRequestToken != null && { ClientRequestToken: input.ClientRequestToken }),
|
|
4741
|
+
...(input.CollectionId != null && { CollectionId: input.CollectionId }),
|
|
4742
|
+
...(input.FaceMatchThreshold != null && { FaceMatchThreshold: (0, smithy_client_1.serializeFloat)(input.FaceMatchThreshold) }),
|
|
4743
|
+
...(input.JobTag != null && { JobTag: input.JobTag }),
|
|
4744
|
+
...(input.NotificationChannel != null && {
|
|
4765
4745
|
NotificationChannel: serializeAws_json1_1NotificationChannel(input.NotificationChannel, context),
|
|
4766
4746
|
}),
|
|
4767
|
-
...(input.Video
|
|
4768
|
-
input.Video !== null && { Video: serializeAws_json1_1Video(input.Video, context) }),
|
|
4747
|
+
...(input.Video != null && { Video: serializeAws_json1_1Video(input.Video, context) }),
|
|
4769
4748
|
};
|
|
4770
4749
|
};
|
|
4771
4750
|
const serializeAws_json1_1StartLabelDetectionRequest = (input, context) => {
|
|
4772
4751
|
return {
|
|
4773
|
-
...(input.ClientRequestToken
|
|
4774
|
-
|
|
4775
|
-
...(input.
|
|
4776
|
-
...(input.
|
|
4777
|
-
input.MinConfidence !== null && { MinConfidence: (0, smithy_client_1.serializeFloat)(input.MinConfidence) }),
|
|
4778
|
-
...(input.NotificationChannel !== undefined &&
|
|
4779
|
-
input.NotificationChannel !== null && {
|
|
4752
|
+
...(input.ClientRequestToken != null && { ClientRequestToken: input.ClientRequestToken }),
|
|
4753
|
+
...(input.JobTag != null && { JobTag: input.JobTag }),
|
|
4754
|
+
...(input.MinConfidence != null && { MinConfidence: (0, smithy_client_1.serializeFloat)(input.MinConfidence) }),
|
|
4755
|
+
...(input.NotificationChannel != null && {
|
|
4780
4756
|
NotificationChannel: serializeAws_json1_1NotificationChannel(input.NotificationChannel, context),
|
|
4781
4757
|
}),
|
|
4782
|
-
...(input.Video
|
|
4783
|
-
input.Video !== null && { Video: serializeAws_json1_1Video(input.Video, context) }),
|
|
4758
|
+
...(input.Video != null && { Video: serializeAws_json1_1Video(input.Video, context) }),
|
|
4784
4759
|
};
|
|
4785
4760
|
};
|
|
4786
4761
|
const serializeAws_json1_1StartPersonTrackingRequest = (input, context) => {
|
|
4787
4762
|
return {
|
|
4788
|
-
...(input.ClientRequestToken
|
|
4789
|
-
|
|
4790
|
-
...(input.
|
|
4791
|
-
...(input.NotificationChannel !== undefined &&
|
|
4792
|
-
input.NotificationChannel !== null && {
|
|
4763
|
+
...(input.ClientRequestToken != null && { ClientRequestToken: input.ClientRequestToken }),
|
|
4764
|
+
...(input.JobTag != null && { JobTag: input.JobTag }),
|
|
4765
|
+
...(input.NotificationChannel != null && {
|
|
4793
4766
|
NotificationChannel: serializeAws_json1_1NotificationChannel(input.NotificationChannel, context),
|
|
4794
4767
|
}),
|
|
4795
|
-
...(input.Video
|
|
4796
|
-
input.Video !== null && { Video: serializeAws_json1_1Video(input.Video, context) }),
|
|
4768
|
+
...(input.Video != null && { Video: serializeAws_json1_1Video(input.Video, context) }),
|
|
4797
4769
|
};
|
|
4798
4770
|
};
|
|
4799
4771
|
const serializeAws_json1_1StartProjectVersionRequest = (input, context) => {
|
|
4800
4772
|
return {
|
|
4801
|
-
...(input.MinInferenceUnits
|
|
4802
|
-
|
|
4803
|
-
...(input.ProjectVersionArn !== undefined &&
|
|
4804
|
-
input.ProjectVersionArn !== null && { ProjectVersionArn: input.ProjectVersionArn }),
|
|
4773
|
+
...(input.MinInferenceUnits != null && { MinInferenceUnits: input.MinInferenceUnits }),
|
|
4774
|
+
...(input.ProjectVersionArn != null && { ProjectVersionArn: input.ProjectVersionArn }),
|
|
4805
4775
|
};
|
|
4806
4776
|
};
|
|
4807
4777
|
const serializeAws_json1_1StartSegmentDetectionFilters = (input, context) => {
|
|
4808
4778
|
return {
|
|
4809
|
-
...(input.ShotFilter
|
|
4810
|
-
input.ShotFilter !== null && {
|
|
4779
|
+
...(input.ShotFilter != null && {
|
|
4811
4780
|
ShotFilter: serializeAws_json1_1StartShotDetectionFilter(input.ShotFilter, context),
|
|
4812
4781
|
}),
|
|
4813
|
-
...(input.TechnicalCueFilter
|
|
4814
|
-
input.TechnicalCueFilter !== null && {
|
|
4782
|
+
...(input.TechnicalCueFilter != null && {
|
|
4815
4783
|
TechnicalCueFilter: serializeAws_json1_1StartTechnicalCueDetectionFilter(input.TechnicalCueFilter, context),
|
|
4816
4784
|
}),
|
|
4817
4785
|
};
|
|
4818
4786
|
};
|
|
4819
4787
|
const serializeAws_json1_1StartSegmentDetectionRequest = (input, context) => {
|
|
4820
4788
|
return {
|
|
4821
|
-
...(input.ClientRequestToken
|
|
4822
|
-
|
|
4823
|
-
...(input.
|
|
4824
|
-
|
|
4825
|
-
...(input.JobTag !== undefined && input.JobTag !== null && { JobTag: input.JobTag }),
|
|
4826
|
-
...(input.NotificationChannel !== undefined &&
|
|
4827
|
-
input.NotificationChannel !== null && {
|
|
4789
|
+
...(input.ClientRequestToken != null && { ClientRequestToken: input.ClientRequestToken }),
|
|
4790
|
+
...(input.Filters != null && { Filters: serializeAws_json1_1StartSegmentDetectionFilters(input.Filters, context) }),
|
|
4791
|
+
...(input.JobTag != null && { JobTag: input.JobTag }),
|
|
4792
|
+
...(input.NotificationChannel != null && {
|
|
4828
4793
|
NotificationChannel: serializeAws_json1_1NotificationChannel(input.NotificationChannel, context),
|
|
4829
4794
|
}),
|
|
4830
|
-
...(input.SegmentTypes
|
|
4831
|
-
|
|
4832
|
-
...(input.Video !== undefined &&
|
|
4833
|
-
input.Video !== null && { Video: serializeAws_json1_1Video(input.Video, context) }),
|
|
4795
|
+
...(input.SegmentTypes != null && { SegmentTypes: serializeAws_json1_1SegmentTypes(input.SegmentTypes, context) }),
|
|
4796
|
+
...(input.Video != null && { Video: serializeAws_json1_1Video(input.Video, context) }),
|
|
4834
4797
|
};
|
|
4835
4798
|
};
|
|
4836
4799
|
const serializeAws_json1_1StartShotDetectionFilter = (input, context) => {
|
|
4837
4800
|
return {
|
|
4838
|
-
...(input.MinSegmentConfidence
|
|
4839
|
-
input.MinSegmentConfidence !== null && { MinSegmentConfidence: (0, smithy_client_1.serializeFloat)(input.MinSegmentConfidence) }),
|
|
4801
|
+
...(input.MinSegmentConfidence != null && { MinSegmentConfidence: (0, smithy_client_1.serializeFloat)(input.MinSegmentConfidence) }),
|
|
4840
4802
|
};
|
|
4841
4803
|
};
|
|
4842
4804
|
const serializeAws_json1_1StartStreamProcessorRequest = (input, context) => {
|
|
4843
4805
|
return {
|
|
4844
|
-
...(input.Name
|
|
4845
|
-
...(input.StartSelector
|
|
4846
|
-
input.StartSelector !== null && {
|
|
4806
|
+
...(input.Name != null && { Name: input.Name }),
|
|
4807
|
+
...(input.StartSelector != null && {
|
|
4847
4808
|
StartSelector: serializeAws_json1_1StreamProcessingStartSelector(input.StartSelector, context),
|
|
4848
4809
|
}),
|
|
4849
|
-
...(input.StopSelector
|
|
4850
|
-
input.StopSelector !== null && {
|
|
4810
|
+
...(input.StopSelector != null && {
|
|
4851
4811
|
StopSelector: serializeAws_json1_1StreamProcessingStopSelector(input.StopSelector, context),
|
|
4852
4812
|
}),
|
|
4853
4813
|
};
|
|
4854
4814
|
};
|
|
4855
4815
|
const serializeAws_json1_1StartTechnicalCueDetectionFilter = (input, context) => {
|
|
4856
4816
|
return {
|
|
4857
|
-
...(input.BlackFrame
|
|
4858
|
-
|
|
4859
|
-
...(input.MinSegmentConfidence !== undefined &&
|
|
4860
|
-
input.MinSegmentConfidence !== null && { MinSegmentConfidence: (0, smithy_client_1.serializeFloat)(input.MinSegmentConfidence) }),
|
|
4817
|
+
...(input.BlackFrame != null && { BlackFrame: serializeAws_json1_1BlackFrame(input.BlackFrame, context) }),
|
|
4818
|
+
...(input.MinSegmentConfidence != null && { MinSegmentConfidence: (0, smithy_client_1.serializeFloat)(input.MinSegmentConfidence) }),
|
|
4861
4819
|
};
|
|
4862
4820
|
};
|
|
4863
4821
|
const serializeAws_json1_1StartTextDetectionFilters = (input, context) => {
|
|
4864
4822
|
return {
|
|
4865
|
-
...(input.RegionsOfInterest
|
|
4866
|
-
input.RegionsOfInterest !== null && {
|
|
4823
|
+
...(input.RegionsOfInterest != null && {
|
|
4867
4824
|
RegionsOfInterest: serializeAws_json1_1RegionsOfInterest(input.RegionsOfInterest, context),
|
|
4868
4825
|
}),
|
|
4869
|
-
...(input.WordFilter
|
|
4870
|
-
input.WordFilter !== null && { WordFilter: serializeAws_json1_1DetectionFilter(input.WordFilter, context) }),
|
|
4826
|
+
...(input.WordFilter != null && { WordFilter: serializeAws_json1_1DetectionFilter(input.WordFilter, context) }),
|
|
4871
4827
|
};
|
|
4872
4828
|
};
|
|
4873
4829
|
const serializeAws_json1_1StartTextDetectionRequest = (input, context) => {
|
|
4874
4830
|
return {
|
|
4875
|
-
...(input.ClientRequestToken
|
|
4876
|
-
|
|
4877
|
-
...(input.
|
|
4878
|
-
|
|
4879
|
-
...(input.JobTag !== undefined && input.JobTag !== null && { JobTag: input.JobTag }),
|
|
4880
|
-
...(input.NotificationChannel !== undefined &&
|
|
4881
|
-
input.NotificationChannel !== null && {
|
|
4831
|
+
...(input.ClientRequestToken != null && { ClientRequestToken: input.ClientRequestToken }),
|
|
4832
|
+
...(input.Filters != null && { Filters: serializeAws_json1_1StartTextDetectionFilters(input.Filters, context) }),
|
|
4833
|
+
...(input.JobTag != null && { JobTag: input.JobTag }),
|
|
4834
|
+
...(input.NotificationChannel != null && {
|
|
4882
4835
|
NotificationChannel: serializeAws_json1_1NotificationChannel(input.NotificationChannel, context),
|
|
4883
4836
|
}),
|
|
4884
|
-
...(input.Video
|
|
4885
|
-
input.Video !== null && { Video: serializeAws_json1_1Video(input.Video, context) }),
|
|
4837
|
+
...(input.Video != null && { Video: serializeAws_json1_1Video(input.Video, context) }),
|
|
4886
4838
|
};
|
|
4887
4839
|
};
|
|
4888
4840
|
const serializeAws_json1_1StopProjectVersionRequest = (input, context) => {
|
|
4889
4841
|
return {
|
|
4890
|
-
...(input.ProjectVersionArn
|
|
4891
|
-
input.ProjectVersionArn !== null && { ProjectVersionArn: input.ProjectVersionArn }),
|
|
4842
|
+
...(input.ProjectVersionArn != null && { ProjectVersionArn: input.ProjectVersionArn }),
|
|
4892
4843
|
};
|
|
4893
4844
|
};
|
|
4894
4845
|
const serializeAws_json1_1StopStreamProcessorRequest = (input, context) => {
|
|
4895
4846
|
return {
|
|
4896
|
-
...(input.Name
|
|
4847
|
+
...(input.Name != null && { Name: input.Name }),
|
|
4897
4848
|
};
|
|
4898
4849
|
};
|
|
4899
4850
|
const serializeAws_json1_1StreamProcessingStartSelector = (input, context) => {
|
|
4900
4851
|
return {
|
|
4901
|
-
...(input.KVSStreamStartSelector
|
|
4902
|
-
input.KVSStreamStartSelector !== null && {
|
|
4852
|
+
...(input.KVSStreamStartSelector != null && {
|
|
4903
4853
|
KVSStreamStartSelector: serializeAws_json1_1KinesisVideoStreamStartSelector(input.KVSStreamStartSelector, context),
|
|
4904
4854
|
}),
|
|
4905
4855
|
};
|
|
4906
4856
|
};
|
|
4907
4857
|
const serializeAws_json1_1StreamProcessingStopSelector = (input, context) => {
|
|
4908
4858
|
return {
|
|
4909
|
-
...(input.MaxDurationInSeconds
|
|
4910
|
-
input.MaxDurationInSeconds !== null && { MaxDurationInSeconds: input.MaxDurationInSeconds }),
|
|
4859
|
+
...(input.MaxDurationInSeconds != null && { MaxDurationInSeconds: input.MaxDurationInSeconds }),
|
|
4911
4860
|
};
|
|
4912
4861
|
};
|
|
4913
4862
|
const serializeAws_json1_1StreamProcessorDataSharingPreference = (input, context) => {
|
|
4914
4863
|
return {
|
|
4915
|
-
...(input.OptIn
|
|
4864
|
+
...(input.OptIn != null && { OptIn: input.OptIn }),
|
|
4916
4865
|
};
|
|
4917
4866
|
};
|
|
4918
4867
|
const serializeAws_json1_1StreamProcessorInput = (input, context) => {
|
|
4919
4868
|
return {
|
|
4920
|
-
...(input.KinesisVideoStream
|
|
4921
|
-
input.KinesisVideoStream !== null && {
|
|
4869
|
+
...(input.KinesisVideoStream != null && {
|
|
4922
4870
|
KinesisVideoStream: serializeAws_json1_1KinesisVideoStream(input.KinesisVideoStream, context),
|
|
4923
4871
|
}),
|
|
4924
4872
|
};
|
|
4925
4873
|
};
|
|
4926
4874
|
const serializeAws_json1_1StreamProcessorNotificationChannel = (input, context) => {
|
|
4927
4875
|
return {
|
|
4928
|
-
...(input.SNSTopicArn
|
|
4876
|
+
...(input.SNSTopicArn != null && { SNSTopicArn: input.SNSTopicArn }),
|
|
4929
4877
|
};
|
|
4930
4878
|
};
|
|
4931
4879
|
const serializeAws_json1_1StreamProcessorOutput = (input, context) => {
|
|
4932
4880
|
return {
|
|
4933
|
-
...(input.KinesisDataStream
|
|
4934
|
-
input.KinesisDataStream !== null && {
|
|
4881
|
+
...(input.KinesisDataStream != null && {
|
|
4935
4882
|
KinesisDataStream: serializeAws_json1_1KinesisDataStream(input.KinesisDataStream, context),
|
|
4936
4883
|
}),
|
|
4937
|
-
...(input.S3Destination
|
|
4938
|
-
input.S3Destination !== null && {
|
|
4884
|
+
...(input.S3Destination != null && {
|
|
4939
4885
|
S3Destination: serializeAws_json1_1S3Destination(input.S3Destination, context),
|
|
4940
4886
|
}),
|
|
4941
4887
|
};
|
|
@@ -4952,18 +4898,15 @@ const serializeAws_json1_1StreamProcessorParametersToDelete = (input, context) =
|
|
|
4952
4898
|
};
|
|
4953
4899
|
const serializeAws_json1_1StreamProcessorSettings = (input, context) => {
|
|
4954
4900
|
return {
|
|
4955
|
-
...(input.ConnectedHome
|
|
4956
|
-
input.ConnectedHome !== null && {
|
|
4901
|
+
...(input.ConnectedHome != null && {
|
|
4957
4902
|
ConnectedHome: serializeAws_json1_1ConnectedHomeSettings(input.ConnectedHome, context),
|
|
4958
4903
|
}),
|
|
4959
|
-
...(input.FaceSearch
|
|
4960
|
-
input.FaceSearch !== null && { FaceSearch: serializeAws_json1_1FaceSearchSettings(input.FaceSearch, context) }),
|
|
4904
|
+
...(input.FaceSearch != null && { FaceSearch: serializeAws_json1_1FaceSearchSettings(input.FaceSearch, context) }),
|
|
4961
4905
|
};
|
|
4962
4906
|
};
|
|
4963
4907
|
const serializeAws_json1_1StreamProcessorSettingsForUpdate = (input, context) => {
|
|
4964
4908
|
return {
|
|
4965
|
-
...(input.ConnectedHomeForUpdate
|
|
4966
|
-
input.ConnectedHomeForUpdate !== null && {
|
|
4909
|
+
...(input.ConnectedHomeForUpdate != null && {
|
|
4967
4910
|
ConnectedHomeForUpdate: serializeAws_json1_1ConnectedHomeSettingsForUpdate(input.ConnectedHomeForUpdate, context),
|
|
4968
4911
|
}),
|
|
4969
4912
|
};
|
|
@@ -4991,54 +4934,46 @@ const serializeAws_json1_1TagMap = (input, context) => {
|
|
|
4991
4934
|
};
|
|
4992
4935
|
const serializeAws_json1_1TagResourceRequest = (input, context) => {
|
|
4993
4936
|
return {
|
|
4994
|
-
...(input.ResourceArn
|
|
4995
|
-
...(input.Tags
|
|
4937
|
+
...(input.ResourceArn != null && { ResourceArn: input.ResourceArn }),
|
|
4938
|
+
...(input.Tags != null && { Tags: serializeAws_json1_1TagMap(input.Tags, context) }),
|
|
4996
4939
|
};
|
|
4997
4940
|
};
|
|
4998
4941
|
const serializeAws_json1_1TestingData = (input, context) => {
|
|
4999
4942
|
return {
|
|
5000
|
-
...(input.Assets
|
|
5001
|
-
|
|
5002
|
-
...(input.AutoCreate !== undefined && input.AutoCreate !== null && { AutoCreate: input.AutoCreate }),
|
|
4943
|
+
...(input.Assets != null && { Assets: serializeAws_json1_1Assets(input.Assets, context) }),
|
|
4944
|
+
...(input.AutoCreate != null && { AutoCreate: input.AutoCreate }),
|
|
5003
4945
|
};
|
|
5004
4946
|
};
|
|
5005
4947
|
const serializeAws_json1_1TrainingData = (input, context) => {
|
|
5006
4948
|
return {
|
|
5007
|
-
...(input.Assets
|
|
5008
|
-
input.Assets !== null && { Assets: serializeAws_json1_1Assets(input.Assets, context) }),
|
|
4949
|
+
...(input.Assets != null && { Assets: serializeAws_json1_1Assets(input.Assets, context) }),
|
|
5009
4950
|
};
|
|
5010
4951
|
};
|
|
5011
4952
|
const serializeAws_json1_1UntagResourceRequest = (input, context) => {
|
|
5012
4953
|
return {
|
|
5013
|
-
...(input.ResourceArn
|
|
5014
|
-
...(input.TagKeys
|
|
5015
|
-
input.TagKeys !== null && { TagKeys: serializeAws_json1_1TagKeyList(input.TagKeys, context) }),
|
|
4954
|
+
...(input.ResourceArn != null && { ResourceArn: input.ResourceArn }),
|
|
4955
|
+
...(input.TagKeys != null && { TagKeys: serializeAws_json1_1TagKeyList(input.TagKeys, context) }),
|
|
5016
4956
|
};
|
|
5017
4957
|
};
|
|
5018
4958
|
const serializeAws_json1_1UpdateDatasetEntriesRequest = (input, context) => {
|
|
5019
4959
|
return {
|
|
5020
|
-
...(input.Changes
|
|
5021
|
-
|
|
5022
|
-
...(input.DatasetArn !== undefined && input.DatasetArn !== null && { DatasetArn: input.DatasetArn }),
|
|
4960
|
+
...(input.Changes != null && { Changes: serializeAws_json1_1DatasetChanges(input.Changes, context) }),
|
|
4961
|
+
...(input.DatasetArn != null && { DatasetArn: input.DatasetArn }),
|
|
5023
4962
|
};
|
|
5024
4963
|
};
|
|
5025
4964
|
const serializeAws_json1_1UpdateStreamProcessorRequest = (input, context) => {
|
|
5026
4965
|
return {
|
|
5027
|
-
...(input.DataSharingPreferenceForUpdate
|
|
5028
|
-
input.DataSharingPreferenceForUpdate !== null && {
|
|
4966
|
+
...(input.DataSharingPreferenceForUpdate != null && {
|
|
5029
4967
|
DataSharingPreferenceForUpdate: serializeAws_json1_1StreamProcessorDataSharingPreference(input.DataSharingPreferenceForUpdate, context),
|
|
5030
4968
|
}),
|
|
5031
|
-
...(input.Name
|
|
5032
|
-
...(input.ParametersToDelete
|
|
5033
|
-
input.ParametersToDelete !== null && {
|
|
4969
|
+
...(input.Name != null && { Name: input.Name }),
|
|
4970
|
+
...(input.ParametersToDelete != null && {
|
|
5034
4971
|
ParametersToDelete: serializeAws_json1_1StreamProcessorParametersToDelete(input.ParametersToDelete, context),
|
|
5035
4972
|
}),
|
|
5036
|
-
...(input.RegionsOfInterestForUpdate
|
|
5037
|
-
input.RegionsOfInterestForUpdate !== null && {
|
|
4973
|
+
...(input.RegionsOfInterestForUpdate != null && {
|
|
5038
4974
|
RegionsOfInterestForUpdate: serializeAws_json1_1RegionsOfInterest(input.RegionsOfInterestForUpdate, context),
|
|
5039
4975
|
}),
|
|
5040
|
-
...(input.SettingsForUpdate
|
|
5041
|
-
input.SettingsForUpdate !== null && {
|
|
4976
|
+
...(input.SettingsForUpdate != null && {
|
|
5042
4977
|
SettingsForUpdate: serializeAws_json1_1StreamProcessorSettingsForUpdate(input.SettingsForUpdate, context),
|
|
5043
4978
|
}),
|
|
5044
4979
|
};
|
|
@@ -5055,8 +4990,7 @@ const serializeAws_json1_1VersionNames = (input, context) => {
|
|
|
5055
4990
|
};
|
|
5056
4991
|
const serializeAws_json1_1Video = (input, context) => {
|
|
5057
4992
|
return {
|
|
5058
|
-
...(input.S3Object
|
|
5059
|
-
input.S3Object !== null && { S3Object: serializeAws_json1_1S3Object(input.S3Object, context) }),
|
|
4993
|
+
...(input.S3Object != null && { S3Object: serializeAws_json1_1S3Object(input.S3Object, context) }),
|
|
5060
4994
|
};
|
|
5061
4995
|
};
|
|
5062
4996
|
const deserializeAws_json1_1AccessDeniedException = (output, context) => {
|
|
@@ -5074,7 +5008,7 @@ const deserializeAws_json1_1AgeRange = (output, context) => {
|
|
|
5074
5008
|
};
|
|
5075
5009
|
const deserializeAws_json1_1Asset = (output, context) => {
|
|
5076
5010
|
return {
|
|
5077
|
-
GroundTruthManifest: output.GroundTruthManifest
|
|
5011
|
+
GroundTruthManifest: output.GroundTruthManifest != null
|
|
5078
5012
|
? deserializeAws_json1_1GroundTruthManifest(output.GroundTruthManifest, context)
|
|
5079
5013
|
: undefined,
|
|
5080
5014
|
};
|
|
@@ -5136,33 +5070,23 @@ const deserializeAws_json1_1BoundingBox = (output, context) => {
|
|
|
5136
5070
|
};
|
|
5137
5071
|
const deserializeAws_json1_1Celebrity = (output, context) => {
|
|
5138
5072
|
return {
|
|
5139
|
-
Face: output.Face
|
|
5140
|
-
? deserializeAws_json1_1ComparedFace(output.Face, context)
|
|
5141
|
-
: undefined,
|
|
5073
|
+
Face: output.Face != null ? deserializeAws_json1_1ComparedFace(output.Face, context) : undefined,
|
|
5142
5074
|
Id: (0, smithy_client_1.expectString)(output.Id),
|
|
5143
|
-
KnownGender: output.KnownGender
|
|
5144
|
-
? deserializeAws_json1_1KnownGender(output.KnownGender, context)
|
|
5145
|
-
: undefined,
|
|
5075
|
+
KnownGender: output.KnownGender != null ? deserializeAws_json1_1KnownGender(output.KnownGender, context) : undefined,
|
|
5146
5076
|
MatchConfidence: (0, smithy_client_1.limitedParseFloat32)(output.MatchConfidence),
|
|
5147
5077
|
Name: (0, smithy_client_1.expectString)(output.Name),
|
|
5148
|
-
Urls: output.Urls
|
|
5078
|
+
Urls: output.Urls != null ? deserializeAws_json1_1Urls(output.Urls, context) : undefined,
|
|
5149
5079
|
};
|
|
5150
5080
|
};
|
|
5151
5081
|
const deserializeAws_json1_1CelebrityDetail = (output, context) => {
|
|
5152
5082
|
return {
|
|
5153
|
-
BoundingBox: output.BoundingBox
|
|
5154
|
-
? deserializeAws_json1_1BoundingBox(output.BoundingBox, context)
|
|
5155
|
-
: undefined,
|
|
5083
|
+
BoundingBox: output.BoundingBox != null ? deserializeAws_json1_1BoundingBox(output.BoundingBox, context) : undefined,
|
|
5156
5084
|
Confidence: (0, smithy_client_1.limitedParseFloat32)(output.Confidence),
|
|
5157
|
-
Face: output.Face
|
|
5158
|
-
? deserializeAws_json1_1FaceDetail(output.Face, context)
|
|
5159
|
-
: undefined,
|
|
5085
|
+
Face: output.Face != null ? deserializeAws_json1_1FaceDetail(output.Face, context) : undefined,
|
|
5160
5086
|
Id: (0, smithy_client_1.expectString)(output.Id),
|
|
5161
|
-
KnownGender: output.KnownGender
|
|
5162
|
-
? deserializeAws_json1_1KnownGender(output.KnownGender, context)
|
|
5163
|
-
: undefined,
|
|
5087
|
+
KnownGender: output.KnownGender != null ? deserializeAws_json1_1KnownGender(output.KnownGender, context) : undefined,
|
|
5164
5088
|
Name: (0, smithy_client_1.expectString)(output.Name),
|
|
5165
|
-
Urls: output.Urls
|
|
5089
|
+
Urls: output.Urls != null ? deserializeAws_json1_1Urls(output.Urls, context) : undefined,
|
|
5166
5090
|
};
|
|
5167
5091
|
};
|
|
5168
5092
|
const deserializeAws_json1_1CelebrityList = (output, context) => {
|
|
@@ -5178,9 +5102,7 @@ const deserializeAws_json1_1CelebrityList = (output, context) => {
|
|
|
5178
5102
|
};
|
|
5179
5103
|
const deserializeAws_json1_1CelebrityRecognition = (output, context) => {
|
|
5180
5104
|
return {
|
|
5181
|
-
Celebrity: output.Celebrity
|
|
5182
|
-
? deserializeAws_json1_1CelebrityDetail(output.Celebrity, context)
|
|
5183
|
-
: undefined,
|
|
5105
|
+
Celebrity: output.Celebrity != null ? deserializeAws_json1_1CelebrityDetail(output.Celebrity, context) : undefined,
|
|
5184
5106
|
Timestamp: (0, smithy_client_1.expectLong)(output.Timestamp),
|
|
5185
5107
|
};
|
|
5186
5108
|
};
|
|
@@ -5208,23 +5130,13 @@ const deserializeAws_json1_1CollectionIdList = (output, context) => {
|
|
|
5208
5130
|
};
|
|
5209
5131
|
const deserializeAws_json1_1ComparedFace = (output, context) => {
|
|
5210
5132
|
return {
|
|
5211
|
-
BoundingBox: output.BoundingBox
|
|
5212
|
-
? deserializeAws_json1_1BoundingBox(output.BoundingBox, context)
|
|
5213
|
-
: undefined,
|
|
5133
|
+
BoundingBox: output.BoundingBox != null ? deserializeAws_json1_1BoundingBox(output.BoundingBox, context) : undefined,
|
|
5214
5134
|
Confidence: (0, smithy_client_1.limitedParseFloat32)(output.Confidence),
|
|
5215
|
-
Emotions: output.Emotions
|
|
5216
|
-
|
|
5217
|
-
|
|
5218
|
-
|
|
5219
|
-
|
|
5220
|
-
: undefined,
|
|
5221
|
-
Pose: output.Pose !== undefined && output.Pose !== null ? deserializeAws_json1_1Pose(output.Pose, context) : undefined,
|
|
5222
|
-
Quality: output.Quality !== undefined && output.Quality !== null
|
|
5223
|
-
? deserializeAws_json1_1ImageQuality(output.Quality, context)
|
|
5224
|
-
: undefined,
|
|
5225
|
-
Smile: output.Smile !== undefined && output.Smile !== null
|
|
5226
|
-
? deserializeAws_json1_1Smile(output.Smile, context)
|
|
5227
|
-
: undefined,
|
|
5135
|
+
Emotions: output.Emotions != null ? deserializeAws_json1_1Emotions(output.Emotions, context) : undefined,
|
|
5136
|
+
Landmarks: output.Landmarks != null ? deserializeAws_json1_1Landmarks(output.Landmarks, context) : undefined,
|
|
5137
|
+
Pose: output.Pose != null ? deserializeAws_json1_1Pose(output.Pose, context) : undefined,
|
|
5138
|
+
Quality: output.Quality != null ? deserializeAws_json1_1ImageQuality(output.Quality, context) : undefined,
|
|
5139
|
+
Smile: output.Smile != null ? deserializeAws_json1_1Smile(output.Smile, context) : undefined,
|
|
5228
5140
|
};
|
|
5229
5141
|
};
|
|
5230
5142
|
const deserializeAws_json1_1ComparedFaceList = (output, context) => {
|
|
@@ -5240,17 +5152,13 @@ const deserializeAws_json1_1ComparedFaceList = (output, context) => {
|
|
|
5240
5152
|
};
|
|
5241
5153
|
const deserializeAws_json1_1ComparedSourceImageFace = (output, context) => {
|
|
5242
5154
|
return {
|
|
5243
|
-
BoundingBox: output.BoundingBox
|
|
5244
|
-
? deserializeAws_json1_1BoundingBox(output.BoundingBox, context)
|
|
5245
|
-
: undefined,
|
|
5155
|
+
BoundingBox: output.BoundingBox != null ? deserializeAws_json1_1BoundingBox(output.BoundingBox, context) : undefined,
|
|
5246
5156
|
Confidence: (0, smithy_client_1.limitedParseFloat32)(output.Confidence),
|
|
5247
5157
|
};
|
|
5248
5158
|
};
|
|
5249
5159
|
const deserializeAws_json1_1CompareFacesMatch = (output, context) => {
|
|
5250
5160
|
return {
|
|
5251
|
-
Face: output.Face
|
|
5252
|
-
? deserializeAws_json1_1ComparedFace(output.Face, context)
|
|
5253
|
-
: undefined,
|
|
5161
|
+
Face: output.Face != null ? deserializeAws_json1_1ComparedFace(output.Face, context) : undefined,
|
|
5254
5162
|
Similarity: (0, smithy_client_1.limitedParseFloat32)(output.Similarity),
|
|
5255
5163
|
};
|
|
5256
5164
|
};
|
|
@@ -5267,15 +5175,13 @@ const deserializeAws_json1_1CompareFacesMatchList = (output, context) => {
|
|
|
5267
5175
|
};
|
|
5268
5176
|
const deserializeAws_json1_1CompareFacesResponse = (output, context) => {
|
|
5269
5177
|
return {
|
|
5270
|
-
FaceMatches: output.FaceMatches
|
|
5271
|
-
|
|
5272
|
-
: undefined,
|
|
5273
|
-
SourceImageFace: output.SourceImageFace !== undefined && output.SourceImageFace !== null
|
|
5178
|
+
FaceMatches: output.FaceMatches != null ? deserializeAws_json1_1CompareFacesMatchList(output.FaceMatches, context) : undefined,
|
|
5179
|
+
SourceImageFace: output.SourceImageFace != null
|
|
5274
5180
|
? deserializeAws_json1_1ComparedSourceImageFace(output.SourceImageFace, context)
|
|
5275
5181
|
: undefined,
|
|
5276
5182
|
SourceImageOrientationCorrection: (0, smithy_client_1.expectString)(output.SourceImageOrientationCorrection),
|
|
5277
5183
|
TargetImageOrientationCorrection: (0, smithy_client_1.expectString)(output.TargetImageOrientationCorrection),
|
|
5278
|
-
UnmatchedFaces: output.UnmatchedFaces
|
|
5184
|
+
UnmatchedFaces: output.UnmatchedFaces != null
|
|
5279
5185
|
? deserializeAws_json1_1CompareFacesUnmatchList(output.UnmatchedFaces, context)
|
|
5280
5186
|
: undefined,
|
|
5281
5187
|
};
|
|
@@ -5304,15 +5210,13 @@ const deserializeAws_json1_1ConnectedHomeLabels = (output, context) => {
|
|
|
5304
5210
|
};
|
|
5305
5211
|
const deserializeAws_json1_1ConnectedHomeSettings = (output, context) => {
|
|
5306
5212
|
return {
|
|
5307
|
-
Labels: output.Labels
|
|
5308
|
-
? deserializeAws_json1_1ConnectedHomeLabels(output.Labels, context)
|
|
5309
|
-
: undefined,
|
|
5213
|
+
Labels: output.Labels != null ? deserializeAws_json1_1ConnectedHomeLabels(output.Labels, context) : undefined,
|
|
5310
5214
|
MinConfidence: (0, smithy_client_1.limitedParseFloat32)(output.MinConfidence),
|
|
5311
5215
|
};
|
|
5312
5216
|
};
|
|
5313
5217
|
const deserializeAws_json1_1ContentModerationDetection = (output, context) => {
|
|
5314
5218
|
return {
|
|
5315
|
-
ModerationLabel: output.ModerationLabel
|
|
5219
|
+
ModerationLabel: output.ModerationLabel != null
|
|
5316
5220
|
? deserializeAws_json1_1ModerationLabel(output.ModerationLabel, context)
|
|
5317
5221
|
: undefined,
|
|
5318
5222
|
Timestamp: (0, smithy_client_1.expectLong)(output.Timestamp),
|
|
@@ -5365,9 +5269,7 @@ const deserializeAws_json1_1CreateStreamProcessorResponse = (output, context) =>
|
|
|
5365
5269
|
const deserializeAws_json1_1CustomLabel = (output, context) => {
|
|
5366
5270
|
return {
|
|
5367
5271
|
Confidence: (0, smithy_client_1.limitedParseFloat32)(output.Confidence),
|
|
5368
|
-
Geometry: output.Geometry
|
|
5369
|
-
? deserializeAws_json1_1Geometry(output.Geometry, context)
|
|
5370
|
-
: undefined,
|
|
5272
|
+
Geometry: output.Geometry != null ? deserializeAws_json1_1Geometry(output.Geometry, context) : undefined,
|
|
5371
5273
|
Name: (0, smithy_client_1.expectString)(output.Name),
|
|
5372
5274
|
};
|
|
5373
5275
|
};
|
|
@@ -5384,13 +5286,11 @@ const deserializeAws_json1_1CustomLabels = (output, context) => {
|
|
|
5384
5286
|
};
|
|
5385
5287
|
const deserializeAws_json1_1DatasetDescription = (output, context) => {
|
|
5386
5288
|
return {
|
|
5387
|
-
CreationTimestamp: output.CreationTimestamp
|
|
5289
|
+
CreationTimestamp: output.CreationTimestamp != null
|
|
5388
5290
|
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.CreationTimestamp)))
|
|
5389
5291
|
: undefined,
|
|
5390
|
-
DatasetStats: output.DatasetStats
|
|
5391
|
-
|
|
5392
|
-
: undefined,
|
|
5393
|
-
LastUpdatedTimestamp: output.LastUpdatedTimestamp !== undefined && output.LastUpdatedTimestamp !== null
|
|
5292
|
+
DatasetStats: output.DatasetStats != null ? deserializeAws_json1_1DatasetStats(output.DatasetStats, context) : undefined,
|
|
5293
|
+
LastUpdatedTimestamp: output.LastUpdatedTimestamp != null
|
|
5394
5294
|
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.LastUpdatedTimestamp)))
|
|
5395
5295
|
: undefined,
|
|
5396
5296
|
Status: (0, smithy_client_1.expectString)(output.Status),
|
|
@@ -5412,9 +5312,7 @@ const deserializeAws_json1_1DatasetEntries = (output, context) => {
|
|
|
5412
5312
|
const deserializeAws_json1_1DatasetLabelDescription = (output, context) => {
|
|
5413
5313
|
return {
|
|
5414
5314
|
LabelName: (0, smithy_client_1.expectString)(output.LabelName),
|
|
5415
|
-
LabelStats: output.LabelStats
|
|
5416
|
-
? deserializeAws_json1_1DatasetLabelStats(output.LabelStats, context)
|
|
5417
|
-
: undefined,
|
|
5315
|
+
LabelStats: output.LabelStats != null ? deserializeAws_json1_1DatasetLabelStats(output.LabelStats, context) : undefined,
|
|
5418
5316
|
};
|
|
5419
5317
|
};
|
|
5420
5318
|
const deserializeAws_json1_1DatasetLabelDescriptions = (output, context) => {
|
|
@@ -5436,7 +5334,7 @@ const deserializeAws_json1_1DatasetLabelStats = (output, context) => {
|
|
|
5436
5334
|
};
|
|
5437
5335
|
const deserializeAws_json1_1DatasetMetadata = (output, context) => {
|
|
5438
5336
|
return {
|
|
5439
|
-
CreationTimestamp: output.CreationTimestamp
|
|
5337
|
+
CreationTimestamp: output.CreationTimestamp != null
|
|
5440
5338
|
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.CreationTimestamp)))
|
|
5441
5339
|
: undefined,
|
|
5442
5340
|
DatasetArn: (0, smithy_client_1.expectString)(output.DatasetArn),
|
|
@@ -5475,9 +5373,7 @@ const deserializeAws_json1_1DeleteDatasetResponse = (output, context) => {
|
|
|
5475
5373
|
};
|
|
5476
5374
|
const deserializeAws_json1_1DeleteFacesResponse = (output, context) => {
|
|
5477
5375
|
return {
|
|
5478
|
-
DeletedFaces: output.DeletedFaces
|
|
5479
|
-
? deserializeAws_json1_1FaceIdList(output.DeletedFaces, context)
|
|
5480
|
-
: undefined,
|
|
5376
|
+
DeletedFaces: output.DeletedFaces != null ? deserializeAws_json1_1FaceIdList(output.DeletedFaces, context) : undefined,
|
|
5481
5377
|
};
|
|
5482
5378
|
};
|
|
5483
5379
|
const deserializeAws_json1_1DeleteProjectResponse = (output, context) => {
|
|
@@ -5496,7 +5392,7 @@ const deserializeAws_json1_1DeleteStreamProcessorResponse = (output, context) =>
|
|
|
5496
5392
|
const deserializeAws_json1_1DescribeCollectionResponse = (output, context) => {
|
|
5497
5393
|
return {
|
|
5498
5394
|
CollectionARN: (0, smithy_client_1.expectString)(output.CollectionARN),
|
|
5499
|
-
CreationTimestamp: output.CreationTimestamp
|
|
5395
|
+
CreationTimestamp: output.CreationTimestamp != null
|
|
5500
5396
|
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.CreationTimestamp)))
|
|
5501
5397
|
: undefined,
|
|
5502
5398
|
FaceCount: (0, smithy_client_1.expectLong)(output.FaceCount),
|
|
@@ -5505,7 +5401,7 @@ const deserializeAws_json1_1DescribeCollectionResponse = (output, context) => {
|
|
|
5505
5401
|
};
|
|
5506
5402
|
const deserializeAws_json1_1DescribeDatasetResponse = (output, context) => {
|
|
5507
5403
|
return {
|
|
5508
|
-
DatasetDescription: output.DatasetDescription
|
|
5404
|
+
DatasetDescription: output.DatasetDescription != null
|
|
5509
5405
|
? deserializeAws_json1_1DatasetDescription(output.DatasetDescription, context)
|
|
5510
5406
|
: undefined,
|
|
5511
5407
|
};
|
|
@@ -5513,7 +5409,7 @@ const deserializeAws_json1_1DescribeDatasetResponse = (output, context) => {
|
|
|
5513
5409
|
const deserializeAws_json1_1DescribeProjectsResponse = (output, context) => {
|
|
5514
5410
|
return {
|
|
5515
5411
|
NextToken: (0, smithy_client_1.expectString)(output.NextToken),
|
|
5516
|
-
ProjectDescriptions: output.ProjectDescriptions
|
|
5412
|
+
ProjectDescriptions: output.ProjectDescriptions != null
|
|
5517
5413
|
? deserializeAws_json1_1ProjectDescriptions(output.ProjectDescriptions, context)
|
|
5518
5414
|
: undefined,
|
|
5519
5415
|
};
|
|
@@ -5521,40 +5417,34 @@ const deserializeAws_json1_1DescribeProjectsResponse = (output, context) => {
|
|
|
5521
5417
|
const deserializeAws_json1_1DescribeProjectVersionsResponse = (output, context) => {
|
|
5522
5418
|
return {
|
|
5523
5419
|
NextToken: (0, smithy_client_1.expectString)(output.NextToken),
|
|
5524
|
-
ProjectVersionDescriptions: output.ProjectVersionDescriptions
|
|
5420
|
+
ProjectVersionDescriptions: output.ProjectVersionDescriptions != null
|
|
5525
5421
|
? deserializeAws_json1_1ProjectVersionDescriptions(output.ProjectVersionDescriptions, context)
|
|
5526
5422
|
: undefined,
|
|
5527
5423
|
};
|
|
5528
5424
|
};
|
|
5529
5425
|
const deserializeAws_json1_1DescribeStreamProcessorResponse = (output, context) => {
|
|
5530
5426
|
return {
|
|
5531
|
-
CreationTimestamp: output.CreationTimestamp
|
|
5427
|
+
CreationTimestamp: output.CreationTimestamp != null
|
|
5532
5428
|
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.CreationTimestamp)))
|
|
5533
5429
|
: undefined,
|
|
5534
|
-
DataSharingPreference: output.DataSharingPreference
|
|
5430
|
+
DataSharingPreference: output.DataSharingPreference != null
|
|
5535
5431
|
? deserializeAws_json1_1StreamProcessorDataSharingPreference(output.DataSharingPreference, context)
|
|
5536
5432
|
: undefined,
|
|
5537
|
-
Input: output.Input
|
|
5538
|
-
? deserializeAws_json1_1StreamProcessorInput(output.Input, context)
|
|
5539
|
-
: undefined,
|
|
5433
|
+
Input: output.Input != null ? deserializeAws_json1_1StreamProcessorInput(output.Input, context) : undefined,
|
|
5540
5434
|
KmsKeyId: (0, smithy_client_1.expectString)(output.KmsKeyId),
|
|
5541
|
-
LastUpdateTimestamp: output.LastUpdateTimestamp
|
|
5435
|
+
LastUpdateTimestamp: output.LastUpdateTimestamp != null
|
|
5542
5436
|
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.LastUpdateTimestamp)))
|
|
5543
5437
|
: undefined,
|
|
5544
5438
|
Name: (0, smithy_client_1.expectString)(output.Name),
|
|
5545
|
-
NotificationChannel: output.NotificationChannel
|
|
5439
|
+
NotificationChannel: output.NotificationChannel != null
|
|
5546
5440
|
? deserializeAws_json1_1StreamProcessorNotificationChannel(output.NotificationChannel, context)
|
|
5547
5441
|
: undefined,
|
|
5548
|
-
Output: output.Output
|
|
5549
|
-
|
|
5550
|
-
: undefined,
|
|
5551
|
-
RegionsOfInterest: output.RegionsOfInterest !== undefined && output.RegionsOfInterest !== null
|
|
5442
|
+
Output: output.Output != null ? deserializeAws_json1_1StreamProcessorOutput(output.Output, context) : undefined,
|
|
5443
|
+
RegionsOfInterest: output.RegionsOfInterest != null
|
|
5552
5444
|
? deserializeAws_json1_1RegionsOfInterest(output.RegionsOfInterest, context)
|
|
5553
5445
|
: undefined,
|
|
5554
5446
|
RoleArn: (0, smithy_client_1.expectString)(output.RoleArn),
|
|
5555
|
-
Settings: output.Settings
|
|
5556
|
-
? deserializeAws_json1_1StreamProcessorSettings(output.Settings, context)
|
|
5557
|
-
: undefined,
|
|
5447
|
+
Settings: output.Settings != null ? deserializeAws_json1_1StreamProcessorSettings(output.Settings, context) : undefined,
|
|
5558
5448
|
Status: (0, smithy_client_1.expectString)(output.Status),
|
|
5559
5449
|
StatusMessage: (0, smithy_client_1.expectString)(output.StatusMessage),
|
|
5560
5450
|
StreamProcessorArn: (0, smithy_client_1.expectString)(output.StreamProcessorArn),
|
|
@@ -5562,34 +5452,28 @@ const deserializeAws_json1_1DescribeStreamProcessorResponse = (output, context)
|
|
|
5562
5452
|
};
|
|
5563
5453
|
const deserializeAws_json1_1DetectCustomLabelsResponse = (output, context) => {
|
|
5564
5454
|
return {
|
|
5565
|
-
CustomLabels: output.CustomLabels
|
|
5566
|
-
? deserializeAws_json1_1CustomLabels(output.CustomLabels, context)
|
|
5567
|
-
: undefined,
|
|
5455
|
+
CustomLabels: output.CustomLabels != null ? deserializeAws_json1_1CustomLabels(output.CustomLabels, context) : undefined,
|
|
5568
5456
|
};
|
|
5569
5457
|
};
|
|
5570
5458
|
const deserializeAws_json1_1DetectFacesResponse = (output, context) => {
|
|
5571
5459
|
return {
|
|
5572
|
-
FaceDetails: output.FaceDetails
|
|
5573
|
-
? deserializeAws_json1_1FaceDetailList(output.FaceDetails, context)
|
|
5574
|
-
: undefined,
|
|
5460
|
+
FaceDetails: output.FaceDetails != null ? deserializeAws_json1_1FaceDetailList(output.FaceDetails, context) : undefined,
|
|
5575
5461
|
OrientationCorrection: (0, smithy_client_1.expectString)(output.OrientationCorrection),
|
|
5576
5462
|
};
|
|
5577
5463
|
};
|
|
5578
5464
|
const deserializeAws_json1_1DetectLabelsResponse = (output, context) => {
|
|
5579
5465
|
return {
|
|
5580
5466
|
LabelModelVersion: (0, smithy_client_1.expectString)(output.LabelModelVersion),
|
|
5581
|
-
Labels: output.Labels
|
|
5582
|
-
? deserializeAws_json1_1Labels(output.Labels, context)
|
|
5583
|
-
: undefined,
|
|
5467
|
+
Labels: output.Labels != null ? deserializeAws_json1_1Labels(output.Labels, context) : undefined,
|
|
5584
5468
|
OrientationCorrection: (0, smithy_client_1.expectString)(output.OrientationCorrection),
|
|
5585
5469
|
};
|
|
5586
5470
|
};
|
|
5587
5471
|
const deserializeAws_json1_1DetectModerationLabelsResponse = (output, context) => {
|
|
5588
5472
|
return {
|
|
5589
|
-
HumanLoopActivationOutput: output.HumanLoopActivationOutput
|
|
5473
|
+
HumanLoopActivationOutput: output.HumanLoopActivationOutput != null
|
|
5590
5474
|
? deserializeAws_json1_1HumanLoopActivationOutput(output.HumanLoopActivationOutput, context)
|
|
5591
5475
|
: undefined,
|
|
5592
|
-
ModerationLabels: output.ModerationLabels
|
|
5476
|
+
ModerationLabels: output.ModerationLabels != null
|
|
5593
5477
|
? deserializeAws_json1_1ModerationLabels(output.ModerationLabels, context)
|
|
5594
5478
|
: undefined,
|
|
5595
5479
|
ModerationModelVersion: (0, smithy_client_1.expectString)(output.ModerationModelVersion),
|
|
@@ -5597,18 +5481,14 @@ const deserializeAws_json1_1DetectModerationLabelsResponse = (output, context) =
|
|
|
5597
5481
|
};
|
|
5598
5482
|
const deserializeAws_json1_1DetectProtectiveEquipmentResponse = (output, context) => {
|
|
5599
5483
|
return {
|
|
5600
|
-
Persons: output.Persons
|
|
5601
|
-
? deserializeAws_json1_1ProtectiveEquipmentPersons(output.Persons, context)
|
|
5602
|
-
: undefined,
|
|
5484
|
+
Persons: output.Persons != null ? deserializeAws_json1_1ProtectiveEquipmentPersons(output.Persons, context) : undefined,
|
|
5603
5485
|
ProtectiveEquipmentModelVersion: (0, smithy_client_1.expectString)(output.ProtectiveEquipmentModelVersion),
|
|
5604
|
-
Summary: output.Summary
|
|
5605
|
-
? deserializeAws_json1_1ProtectiveEquipmentSummary(output.Summary, context)
|
|
5606
|
-
: undefined,
|
|
5486
|
+
Summary: output.Summary != null ? deserializeAws_json1_1ProtectiveEquipmentSummary(output.Summary, context) : undefined,
|
|
5607
5487
|
};
|
|
5608
5488
|
};
|
|
5609
5489
|
const deserializeAws_json1_1DetectTextResponse = (output, context) => {
|
|
5610
5490
|
return {
|
|
5611
|
-
TextDetections: output.TextDetections
|
|
5491
|
+
TextDetections: output.TextDetections != null
|
|
5612
5492
|
? deserializeAws_json1_1TextDetectionList(output.TextDetections, context)
|
|
5613
5493
|
: undefined,
|
|
5614
5494
|
TextModelVersion: (0, smithy_client_1.expectString)(output.TextModelVersion),
|
|
@@ -5636,13 +5516,9 @@ const deserializeAws_json1_1Emotions = (output, context) => {
|
|
|
5636
5516
|
};
|
|
5637
5517
|
const deserializeAws_json1_1EquipmentDetection = (output, context) => {
|
|
5638
5518
|
return {
|
|
5639
|
-
BoundingBox: output.BoundingBox
|
|
5640
|
-
? deserializeAws_json1_1BoundingBox(output.BoundingBox, context)
|
|
5641
|
-
: undefined,
|
|
5519
|
+
BoundingBox: output.BoundingBox != null ? deserializeAws_json1_1BoundingBox(output.BoundingBox, context) : undefined,
|
|
5642
5520
|
Confidence: (0, smithy_client_1.limitedParseFloat32)(output.Confidence),
|
|
5643
|
-
CoversBodyPart: output.CoversBodyPart
|
|
5644
|
-
? deserializeAws_json1_1CoversBodyPart(output.CoversBodyPart, context)
|
|
5645
|
-
: undefined,
|
|
5521
|
+
CoversBodyPart: output.CoversBodyPart != null ? deserializeAws_json1_1CoversBodyPart(output.CoversBodyPart, context) : undefined,
|
|
5646
5522
|
Type: (0, smithy_client_1.expectString)(output.Type),
|
|
5647
5523
|
};
|
|
5648
5524
|
};
|
|
@@ -5660,9 +5536,7 @@ const deserializeAws_json1_1EquipmentDetections = (output, context) => {
|
|
|
5660
5536
|
const deserializeAws_json1_1EvaluationResult = (output, context) => {
|
|
5661
5537
|
return {
|
|
5662
5538
|
F1Score: (0, smithy_client_1.limitedParseFloat32)(output.F1Score),
|
|
5663
|
-
Summary: output.Summary
|
|
5664
|
-
? deserializeAws_json1_1Summary(output.Summary, context)
|
|
5665
|
-
: undefined,
|
|
5539
|
+
Summary: output.Summary != null ? deserializeAws_json1_1Summary(output.Summary, context) : undefined,
|
|
5666
5540
|
};
|
|
5667
5541
|
};
|
|
5668
5542
|
const deserializeAws_json1_1Eyeglasses = (output, context) => {
|
|
@@ -5679,9 +5553,7 @@ const deserializeAws_json1_1EyeOpen = (output, context) => {
|
|
|
5679
5553
|
};
|
|
5680
5554
|
const deserializeAws_json1_1Face = (output, context) => {
|
|
5681
5555
|
return {
|
|
5682
|
-
BoundingBox: output.BoundingBox
|
|
5683
|
-
? deserializeAws_json1_1BoundingBox(output.BoundingBox, context)
|
|
5684
|
-
: undefined,
|
|
5556
|
+
BoundingBox: output.BoundingBox != null ? deserializeAws_json1_1BoundingBox(output.BoundingBox, context) : undefined,
|
|
5685
5557
|
Confidence: (0, smithy_client_1.limitedParseFloat32)(output.Confidence),
|
|
5686
5558
|
ExternalImageId: (0, smithy_client_1.expectString)(output.ExternalImageId),
|
|
5687
5559
|
FaceId: (0, smithy_client_1.expectString)(output.FaceId),
|
|
@@ -5691,47 +5563,21 @@ const deserializeAws_json1_1Face = (output, context) => {
|
|
|
5691
5563
|
};
|
|
5692
5564
|
const deserializeAws_json1_1FaceDetail = (output, context) => {
|
|
5693
5565
|
return {
|
|
5694
|
-
AgeRange: output.AgeRange
|
|
5695
|
-
|
|
5696
|
-
|
|
5697
|
-
Beard: output.Beard !== undefined && output.Beard !== null
|
|
5698
|
-
? deserializeAws_json1_1Beard(output.Beard, context)
|
|
5699
|
-
: undefined,
|
|
5700
|
-
BoundingBox: output.BoundingBox !== undefined && output.BoundingBox !== null
|
|
5701
|
-
? deserializeAws_json1_1BoundingBox(output.BoundingBox, context)
|
|
5702
|
-
: undefined,
|
|
5566
|
+
AgeRange: output.AgeRange != null ? deserializeAws_json1_1AgeRange(output.AgeRange, context) : undefined,
|
|
5567
|
+
Beard: output.Beard != null ? deserializeAws_json1_1Beard(output.Beard, context) : undefined,
|
|
5568
|
+
BoundingBox: output.BoundingBox != null ? deserializeAws_json1_1BoundingBox(output.BoundingBox, context) : undefined,
|
|
5703
5569
|
Confidence: (0, smithy_client_1.limitedParseFloat32)(output.Confidence),
|
|
5704
|
-
Emotions: output.Emotions
|
|
5705
|
-
|
|
5706
|
-
|
|
5707
|
-
|
|
5708
|
-
|
|
5709
|
-
|
|
5710
|
-
|
|
5711
|
-
|
|
5712
|
-
|
|
5713
|
-
|
|
5714
|
-
|
|
5715
|
-
: undefined,
|
|
5716
|
-
Landmarks: output.Landmarks !== undefined && output.Landmarks !== null
|
|
5717
|
-
? deserializeAws_json1_1Landmarks(output.Landmarks, context)
|
|
5718
|
-
: undefined,
|
|
5719
|
-
MouthOpen: output.MouthOpen !== undefined && output.MouthOpen !== null
|
|
5720
|
-
? deserializeAws_json1_1MouthOpen(output.MouthOpen, context)
|
|
5721
|
-
: undefined,
|
|
5722
|
-
Mustache: output.Mustache !== undefined && output.Mustache !== null
|
|
5723
|
-
? deserializeAws_json1_1Mustache(output.Mustache, context)
|
|
5724
|
-
: undefined,
|
|
5725
|
-
Pose: output.Pose !== undefined && output.Pose !== null ? deserializeAws_json1_1Pose(output.Pose, context) : undefined,
|
|
5726
|
-
Quality: output.Quality !== undefined && output.Quality !== null
|
|
5727
|
-
? deserializeAws_json1_1ImageQuality(output.Quality, context)
|
|
5728
|
-
: undefined,
|
|
5729
|
-
Smile: output.Smile !== undefined && output.Smile !== null
|
|
5730
|
-
? deserializeAws_json1_1Smile(output.Smile, context)
|
|
5731
|
-
: undefined,
|
|
5732
|
-
Sunglasses: output.Sunglasses !== undefined && output.Sunglasses !== null
|
|
5733
|
-
? deserializeAws_json1_1Sunglasses(output.Sunglasses, context)
|
|
5734
|
-
: undefined,
|
|
5570
|
+
Emotions: output.Emotions != null ? deserializeAws_json1_1Emotions(output.Emotions, context) : undefined,
|
|
5571
|
+
Eyeglasses: output.Eyeglasses != null ? deserializeAws_json1_1Eyeglasses(output.Eyeglasses, context) : undefined,
|
|
5572
|
+
EyesOpen: output.EyesOpen != null ? deserializeAws_json1_1EyeOpen(output.EyesOpen, context) : undefined,
|
|
5573
|
+
Gender: output.Gender != null ? deserializeAws_json1_1Gender(output.Gender, context) : undefined,
|
|
5574
|
+
Landmarks: output.Landmarks != null ? deserializeAws_json1_1Landmarks(output.Landmarks, context) : undefined,
|
|
5575
|
+
MouthOpen: output.MouthOpen != null ? deserializeAws_json1_1MouthOpen(output.MouthOpen, context) : undefined,
|
|
5576
|
+
Mustache: output.Mustache != null ? deserializeAws_json1_1Mustache(output.Mustache, context) : undefined,
|
|
5577
|
+
Pose: output.Pose != null ? deserializeAws_json1_1Pose(output.Pose, context) : undefined,
|
|
5578
|
+
Quality: output.Quality != null ? deserializeAws_json1_1ImageQuality(output.Quality, context) : undefined,
|
|
5579
|
+
Smile: output.Smile != null ? deserializeAws_json1_1Smile(output.Smile, context) : undefined,
|
|
5580
|
+
Sunglasses: output.Sunglasses != null ? deserializeAws_json1_1Sunglasses(output.Sunglasses, context) : undefined,
|
|
5735
5581
|
};
|
|
5736
5582
|
};
|
|
5737
5583
|
const deserializeAws_json1_1FaceDetailList = (output, context) => {
|
|
@@ -5747,9 +5593,7 @@ const deserializeAws_json1_1FaceDetailList = (output, context) => {
|
|
|
5747
5593
|
};
|
|
5748
5594
|
const deserializeAws_json1_1FaceDetection = (output, context) => {
|
|
5749
5595
|
return {
|
|
5750
|
-
Face: output.Face
|
|
5751
|
-
? deserializeAws_json1_1FaceDetail(output.Face, context)
|
|
5752
|
-
: undefined,
|
|
5596
|
+
Face: output.Face != null ? deserializeAws_json1_1FaceDetail(output.Face, context) : undefined,
|
|
5753
5597
|
Timestamp: (0, smithy_client_1.expectLong)(output.Timestamp),
|
|
5754
5598
|
};
|
|
5755
5599
|
};
|
|
@@ -5788,7 +5632,7 @@ const deserializeAws_json1_1FaceList = (output, context) => {
|
|
|
5788
5632
|
};
|
|
5789
5633
|
const deserializeAws_json1_1FaceMatch = (output, context) => {
|
|
5790
5634
|
return {
|
|
5791
|
-
Face: output.Face
|
|
5635
|
+
Face: output.Face != null ? deserializeAws_json1_1Face(output.Face, context) : undefined,
|
|
5792
5636
|
Similarity: (0, smithy_client_1.limitedParseFloat32)(output.Similarity),
|
|
5793
5637
|
};
|
|
5794
5638
|
};
|
|
@@ -5816,10 +5660,8 @@ const deserializeAws_json1_1FaceModelVersionList = (output, context) => {
|
|
|
5816
5660
|
};
|
|
5817
5661
|
const deserializeAws_json1_1FaceRecord = (output, context) => {
|
|
5818
5662
|
return {
|
|
5819
|
-
Face: output.Face
|
|
5820
|
-
FaceDetail: output.FaceDetail
|
|
5821
|
-
? deserializeAws_json1_1FaceDetail(output.FaceDetail, context)
|
|
5822
|
-
: undefined,
|
|
5663
|
+
Face: output.Face != null ? deserializeAws_json1_1Face(output.Face, context) : undefined,
|
|
5664
|
+
FaceDetail: output.FaceDetail != null ? deserializeAws_json1_1FaceDetail(output.FaceDetail, context) : undefined,
|
|
5823
5665
|
};
|
|
5824
5666
|
};
|
|
5825
5667
|
const deserializeAws_json1_1FaceRecordList = (output, context) => {
|
|
@@ -5847,120 +5689,86 @@ const deserializeAws_json1_1Gender = (output, context) => {
|
|
|
5847
5689
|
};
|
|
5848
5690
|
const deserializeAws_json1_1Geometry = (output, context) => {
|
|
5849
5691
|
return {
|
|
5850
|
-
BoundingBox: output.BoundingBox
|
|
5851
|
-
|
|
5852
|
-
: undefined,
|
|
5853
|
-
Polygon: output.Polygon !== undefined && output.Polygon !== null
|
|
5854
|
-
? deserializeAws_json1_1Polygon(output.Polygon, context)
|
|
5855
|
-
: undefined,
|
|
5692
|
+
BoundingBox: output.BoundingBox != null ? deserializeAws_json1_1BoundingBox(output.BoundingBox, context) : undefined,
|
|
5693
|
+
Polygon: output.Polygon != null ? deserializeAws_json1_1Polygon(output.Polygon, context) : undefined,
|
|
5856
5694
|
};
|
|
5857
5695
|
};
|
|
5858
5696
|
const deserializeAws_json1_1GetCelebrityInfoResponse = (output, context) => {
|
|
5859
5697
|
return {
|
|
5860
|
-
KnownGender: output.KnownGender
|
|
5861
|
-
? deserializeAws_json1_1KnownGender(output.KnownGender, context)
|
|
5862
|
-
: undefined,
|
|
5698
|
+
KnownGender: output.KnownGender != null ? deserializeAws_json1_1KnownGender(output.KnownGender, context) : undefined,
|
|
5863
5699
|
Name: (0, smithy_client_1.expectString)(output.Name),
|
|
5864
|
-
Urls: output.Urls
|
|
5700
|
+
Urls: output.Urls != null ? deserializeAws_json1_1Urls(output.Urls, context) : undefined,
|
|
5865
5701
|
};
|
|
5866
5702
|
};
|
|
5867
5703
|
const deserializeAws_json1_1GetCelebrityRecognitionResponse = (output, context) => {
|
|
5868
5704
|
return {
|
|
5869
|
-
Celebrities: output.Celebrities
|
|
5870
|
-
? deserializeAws_json1_1CelebrityRecognitions(output.Celebrities, context)
|
|
5871
|
-
: undefined,
|
|
5705
|
+
Celebrities: output.Celebrities != null ? deserializeAws_json1_1CelebrityRecognitions(output.Celebrities, context) : undefined,
|
|
5872
5706
|
JobStatus: (0, smithy_client_1.expectString)(output.JobStatus),
|
|
5873
5707
|
NextToken: (0, smithy_client_1.expectString)(output.NextToken),
|
|
5874
5708
|
StatusMessage: (0, smithy_client_1.expectString)(output.StatusMessage),
|
|
5875
|
-
VideoMetadata: output.VideoMetadata
|
|
5876
|
-
? deserializeAws_json1_1VideoMetadata(output.VideoMetadata, context)
|
|
5877
|
-
: undefined,
|
|
5709
|
+
VideoMetadata: output.VideoMetadata != null ? deserializeAws_json1_1VideoMetadata(output.VideoMetadata, context) : undefined,
|
|
5878
5710
|
};
|
|
5879
5711
|
};
|
|
5880
5712
|
const deserializeAws_json1_1GetContentModerationResponse = (output, context) => {
|
|
5881
5713
|
return {
|
|
5882
5714
|
JobStatus: (0, smithy_client_1.expectString)(output.JobStatus),
|
|
5883
|
-
ModerationLabels: output.ModerationLabels
|
|
5715
|
+
ModerationLabels: output.ModerationLabels != null
|
|
5884
5716
|
? deserializeAws_json1_1ContentModerationDetections(output.ModerationLabels, context)
|
|
5885
5717
|
: undefined,
|
|
5886
5718
|
ModerationModelVersion: (0, smithy_client_1.expectString)(output.ModerationModelVersion),
|
|
5887
5719
|
NextToken: (0, smithy_client_1.expectString)(output.NextToken),
|
|
5888
5720
|
StatusMessage: (0, smithy_client_1.expectString)(output.StatusMessage),
|
|
5889
|
-
VideoMetadata: output.VideoMetadata
|
|
5890
|
-
? deserializeAws_json1_1VideoMetadata(output.VideoMetadata, context)
|
|
5891
|
-
: undefined,
|
|
5721
|
+
VideoMetadata: output.VideoMetadata != null ? deserializeAws_json1_1VideoMetadata(output.VideoMetadata, context) : undefined,
|
|
5892
5722
|
};
|
|
5893
5723
|
};
|
|
5894
5724
|
const deserializeAws_json1_1GetFaceDetectionResponse = (output, context) => {
|
|
5895
5725
|
return {
|
|
5896
|
-
Faces: output.Faces
|
|
5897
|
-
? deserializeAws_json1_1FaceDetections(output.Faces, context)
|
|
5898
|
-
: undefined,
|
|
5726
|
+
Faces: output.Faces != null ? deserializeAws_json1_1FaceDetections(output.Faces, context) : undefined,
|
|
5899
5727
|
JobStatus: (0, smithy_client_1.expectString)(output.JobStatus),
|
|
5900
5728
|
NextToken: (0, smithy_client_1.expectString)(output.NextToken),
|
|
5901
5729
|
StatusMessage: (0, smithy_client_1.expectString)(output.StatusMessage),
|
|
5902
|
-
VideoMetadata: output.VideoMetadata
|
|
5903
|
-
? deserializeAws_json1_1VideoMetadata(output.VideoMetadata, context)
|
|
5904
|
-
: undefined,
|
|
5730
|
+
VideoMetadata: output.VideoMetadata != null ? deserializeAws_json1_1VideoMetadata(output.VideoMetadata, context) : undefined,
|
|
5905
5731
|
};
|
|
5906
5732
|
};
|
|
5907
5733
|
const deserializeAws_json1_1GetFaceSearchResponse = (output, context) => {
|
|
5908
5734
|
return {
|
|
5909
5735
|
JobStatus: (0, smithy_client_1.expectString)(output.JobStatus),
|
|
5910
5736
|
NextToken: (0, smithy_client_1.expectString)(output.NextToken),
|
|
5911
|
-
Persons: output.Persons
|
|
5912
|
-
? deserializeAws_json1_1PersonMatches(output.Persons, context)
|
|
5913
|
-
: undefined,
|
|
5737
|
+
Persons: output.Persons != null ? deserializeAws_json1_1PersonMatches(output.Persons, context) : undefined,
|
|
5914
5738
|
StatusMessage: (0, smithy_client_1.expectString)(output.StatusMessage),
|
|
5915
|
-
VideoMetadata: output.VideoMetadata
|
|
5916
|
-
? deserializeAws_json1_1VideoMetadata(output.VideoMetadata, context)
|
|
5917
|
-
: undefined,
|
|
5739
|
+
VideoMetadata: output.VideoMetadata != null ? deserializeAws_json1_1VideoMetadata(output.VideoMetadata, context) : undefined,
|
|
5918
5740
|
};
|
|
5919
5741
|
};
|
|
5920
5742
|
const deserializeAws_json1_1GetLabelDetectionResponse = (output, context) => {
|
|
5921
5743
|
return {
|
|
5922
5744
|
JobStatus: (0, smithy_client_1.expectString)(output.JobStatus),
|
|
5923
5745
|
LabelModelVersion: (0, smithy_client_1.expectString)(output.LabelModelVersion),
|
|
5924
|
-
Labels: output.Labels
|
|
5925
|
-
? deserializeAws_json1_1LabelDetections(output.Labels, context)
|
|
5926
|
-
: undefined,
|
|
5746
|
+
Labels: output.Labels != null ? deserializeAws_json1_1LabelDetections(output.Labels, context) : undefined,
|
|
5927
5747
|
NextToken: (0, smithy_client_1.expectString)(output.NextToken),
|
|
5928
5748
|
StatusMessage: (0, smithy_client_1.expectString)(output.StatusMessage),
|
|
5929
|
-
VideoMetadata: output.VideoMetadata
|
|
5930
|
-
? deserializeAws_json1_1VideoMetadata(output.VideoMetadata, context)
|
|
5931
|
-
: undefined,
|
|
5749
|
+
VideoMetadata: output.VideoMetadata != null ? deserializeAws_json1_1VideoMetadata(output.VideoMetadata, context) : undefined,
|
|
5932
5750
|
};
|
|
5933
5751
|
};
|
|
5934
5752
|
const deserializeAws_json1_1GetPersonTrackingResponse = (output, context) => {
|
|
5935
5753
|
return {
|
|
5936
5754
|
JobStatus: (0, smithy_client_1.expectString)(output.JobStatus),
|
|
5937
5755
|
NextToken: (0, smithy_client_1.expectString)(output.NextToken),
|
|
5938
|
-
Persons: output.Persons
|
|
5939
|
-
? deserializeAws_json1_1PersonDetections(output.Persons, context)
|
|
5940
|
-
: undefined,
|
|
5756
|
+
Persons: output.Persons != null ? deserializeAws_json1_1PersonDetections(output.Persons, context) : undefined,
|
|
5941
5757
|
StatusMessage: (0, smithy_client_1.expectString)(output.StatusMessage),
|
|
5942
|
-
VideoMetadata: output.VideoMetadata
|
|
5943
|
-
? deserializeAws_json1_1VideoMetadata(output.VideoMetadata, context)
|
|
5944
|
-
: undefined,
|
|
5758
|
+
VideoMetadata: output.VideoMetadata != null ? deserializeAws_json1_1VideoMetadata(output.VideoMetadata, context) : undefined,
|
|
5945
5759
|
};
|
|
5946
5760
|
};
|
|
5947
5761
|
const deserializeAws_json1_1GetSegmentDetectionResponse = (output, context) => {
|
|
5948
5762
|
return {
|
|
5949
|
-
AudioMetadata: output.AudioMetadata
|
|
5950
|
-
? deserializeAws_json1_1AudioMetadataList(output.AudioMetadata, context)
|
|
5951
|
-
: undefined,
|
|
5763
|
+
AudioMetadata: output.AudioMetadata != null ? deserializeAws_json1_1AudioMetadataList(output.AudioMetadata, context) : undefined,
|
|
5952
5764
|
JobStatus: (0, smithy_client_1.expectString)(output.JobStatus),
|
|
5953
5765
|
NextToken: (0, smithy_client_1.expectString)(output.NextToken),
|
|
5954
|
-
Segments: output.Segments
|
|
5955
|
-
|
|
5956
|
-
: undefined,
|
|
5957
|
-
SelectedSegmentTypes: output.SelectedSegmentTypes !== undefined && output.SelectedSegmentTypes !== null
|
|
5766
|
+
Segments: output.Segments != null ? deserializeAws_json1_1SegmentDetections(output.Segments, context) : undefined,
|
|
5767
|
+
SelectedSegmentTypes: output.SelectedSegmentTypes != null
|
|
5958
5768
|
? deserializeAws_json1_1SegmentTypesInfo(output.SelectedSegmentTypes, context)
|
|
5959
5769
|
: undefined,
|
|
5960
5770
|
StatusMessage: (0, smithy_client_1.expectString)(output.StatusMessage),
|
|
5961
|
-
VideoMetadata: output.VideoMetadata
|
|
5962
|
-
? deserializeAws_json1_1VideoMetadataList(output.VideoMetadata, context)
|
|
5963
|
-
: undefined,
|
|
5771
|
+
VideoMetadata: output.VideoMetadata != null ? deserializeAws_json1_1VideoMetadataList(output.VideoMetadata, context) : undefined,
|
|
5964
5772
|
};
|
|
5965
5773
|
};
|
|
5966
5774
|
const deserializeAws_json1_1GetTextDetectionResponse = (output, context) => {
|
|
@@ -5968,29 +5776,24 @@ const deserializeAws_json1_1GetTextDetectionResponse = (output, context) => {
|
|
|
5968
5776
|
JobStatus: (0, smithy_client_1.expectString)(output.JobStatus),
|
|
5969
5777
|
NextToken: (0, smithy_client_1.expectString)(output.NextToken),
|
|
5970
5778
|
StatusMessage: (0, smithy_client_1.expectString)(output.StatusMessage),
|
|
5971
|
-
TextDetections: output.TextDetections
|
|
5779
|
+
TextDetections: output.TextDetections != null
|
|
5972
5780
|
? deserializeAws_json1_1TextDetectionResults(output.TextDetections, context)
|
|
5973
5781
|
: undefined,
|
|
5974
5782
|
TextModelVersion: (0, smithy_client_1.expectString)(output.TextModelVersion),
|
|
5975
|
-
VideoMetadata: output.VideoMetadata
|
|
5976
|
-
? deserializeAws_json1_1VideoMetadata(output.VideoMetadata, context)
|
|
5977
|
-
: undefined,
|
|
5783
|
+
VideoMetadata: output.VideoMetadata != null ? deserializeAws_json1_1VideoMetadata(output.VideoMetadata, context) : undefined,
|
|
5978
5784
|
};
|
|
5979
5785
|
};
|
|
5980
5786
|
const deserializeAws_json1_1GroundTruthManifest = (output, context) => {
|
|
5981
5787
|
return {
|
|
5982
|
-
S3Object: output.S3Object
|
|
5983
|
-
? deserializeAws_json1_1S3Object(output.S3Object, context)
|
|
5984
|
-
: undefined,
|
|
5788
|
+
S3Object: output.S3Object != null ? deserializeAws_json1_1S3Object(output.S3Object, context) : undefined,
|
|
5985
5789
|
};
|
|
5986
5790
|
};
|
|
5987
5791
|
const deserializeAws_json1_1HumanLoopActivationOutput = (output, context) => {
|
|
5988
5792
|
return {
|
|
5989
|
-
HumanLoopActivationConditionsEvaluationResults: output.HumanLoopActivationConditionsEvaluationResults
|
|
5990
|
-
output.HumanLoopActivationConditionsEvaluationResults !== null
|
|
5793
|
+
HumanLoopActivationConditionsEvaluationResults: output.HumanLoopActivationConditionsEvaluationResults != null
|
|
5991
5794
|
? new smithy_client_1.LazyJsonString(output.HumanLoopActivationConditionsEvaluationResults)
|
|
5992
5795
|
: undefined,
|
|
5993
|
-
HumanLoopActivationReasons: output.HumanLoopActivationReasons
|
|
5796
|
+
HumanLoopActivationReasons: output.HumanLoopActivationReasons != null
|
|
5994
5797
|
? deserializeAws_json1_1HumanLoopActivationReasons(output.HumanLoopActivationReasons, context)
|
|
5995
5798
|
: undefined,
|
|
5996
5799
|
HumanLoopArn: (0, smithy_client_1.expectString)(output.HumanLoopArn),
|
|
@@ -6040,20 +5843,14 @@ const deserializeAws_json1_1ImageTooLargeException = (output, context) => {
|
|
|
6040
5843
|
const deserializeAws_json1_1IndexFacesResponse = (output, context) => {
|
|
6041
5844
|
return {
|
|
6042
5845
|
FaceModelVersion: (0, smithy_client_1.expectString)(output.FaceModelVersion),
|
|
6043
|
-
FaceRecords: output.FaceRecords
|
|
6044
|
-
? deserializeAws_json1_1FaceRecordList(output.FaceRecords, context)
|
|
6045
|
-
: undefined,
|
|
5846
|
+
FaceRecords: output.FaceRecords != null ? deserializeAws_json1_1FaceRecordList(output.FaceRecords, context) : undefined,
|
|
6046
5847
|
OrientationCorrection: (0, smithy_client_1.expectString)(output.OrientationCorrection),
|
|
6047
|
-
UnindexedFaces: output.UnindexedFaces
|
|
6048
|
-
? deserializeAws_json1_1UnindexedFaces(output.UnindexedFaces, context)
|
|
6049
|
-
: undefined,
|
|
5848
|
+
UnindexedFaces: output.UnindexedFaces != null ? deserializeAws_json1_1UnindexedFaces(output.UnindexedFaces, context) : undefined,
|
|
6050
5849
|
};
|
|
6051
5850
|
};
|
|
6052
5851
|
const deserializeAws_json1_1Instance = (output, context) => {
|
|
6053
5852
|
return {
|
|
6054
|
-
BoundingBox: output.BoundingBox
|
|
6055
|
-
? deserializeAws_json1_1BoundingBox(output.BoundingBox, context)
|
|
6056
|
-
: undefined,
|
|
5853
|
+
BoundingBox: output.BoundingBox != null ? deserializeAws_json1_1BoundingBox(output.BoundingBox, context) : undefined,
|
|
6057
5854
|
Confidence: (0, smithy_client_1.limitedParseFloat32)(output.Confidence),
|
|
6058
5855
|
};
|
|
6059
5856
|
};
|
|
@@ -6121,20 +5918,14 @@ const deserializeAws_json1_1KnownGender = (output, context) => {
|
|
|
6121
5918
|
const deserializeAws_json1_1Label = (output, context) => {
|
|
6122
5919
|
return {
|
|
6123
5920
|
Confidence: (0, smithy_client_1.limitedParseFloat32)(output.Confidence),
|
|
6124
|
-
Instances: output.Instances
|
|
6125
|
-
? deserializeAws_json1_1Instances(output.Instances, context)
|
|
6126
|
-
: undefined,
|
|
5921
|
+
Instances: output.Instances != null ? deserializeAws_json1_1Instances(output.Instances, context) : undefined,
|
|
6127
5922
|
Name: (0, smithy_client_1.expectString)(output.Name),
|
|
6128
|
-
Parents: output.Parents
|
|
6129
|
-
? deserializeAws_json1_1Parents(output.Parents, context)
|
|
6130
|
-
: undefined,
|
|
5923
|
+
Parents: output.Parents != null ? deserializeAws_json1_1Parents(output.Parents, context) : undefined,
|
|
6131
5924
|
};
|
|
6132
5925
|
};
|
|
6133
5926
|
const deserializeAws_json1_1LabelDetection = (output, context) => {
|
|
6134
5927
|
return {
|
|
6135
|
-
Label: output.Label
|
|
6136
|
-
? deserializeAws_json1_1Label(output.Label, context)
|
|
6137
|
-
: undefined,
|
|
5928
|
+
Label: output.Label != null ? deserializeAws_json1_1Label(output.Label, context) : undefined,
|
|
6138
5929
|
Timestamp: (0, smithy_client_1.expectLong)(output.Timestamp),
|
|
6139
5930
|
};
|
|
6140
5931
|
};
|
|
@@ -6187,10 +5978,8 @@ const deserializeAws_json1_1LimitExceededException = (output, context) => {
|
|
|
6187
5978
|
};
|
|
6188
5979
|
const deserializeAws_json1_1ListCollectionsResponse = (output, context) => {
|
|
6189
5980
|
return {
|
|
6190
|
-
CollectionIds: output.CollectionIds
|
|
6191
|
-
|
|
6192
|
-
: undefined,
|
|
6193
|
-
FaceModelVersions: output.FaceModelVersions !== undefined && output.FaceModelVersions !== null
|
|
5981
|
+
CollectionIds: output.CollectionIds != null ? deserializeAws_json1_1CollectionIdList(output.CollectionIds, context) : undefined,
|
|
5982
|
+
FaceModelVersions: output.FaceModelVersions != null
|
|
6194
5983
|
? deserializeAws_json1_1FaceModelVersionList(output.FaceModelVersions, context)
|
|
6195
5984
|
: undefined,
|
|
6196
5985
|
NextToken: (0, smithy_client_1.expectString)(output.NextToken),
|
|
@@ -6198,15 +5987,13 @@ const deserializeAws_json1_1ListCollectionsResponse = (output, context) => {
|
|
|
6198
5987
|
};
|
|
6199
5988
|
const deserializeAws_json1_1ListDatasetEntriesResponse = (output, context) => {
|
|
6200
5989
|
return {
|
|
6201
|
-
DatasetEntries: output.DatasetEntries
|
|
6202
|
-
? deserializeAws_json1_1DatasetEntries(output.DatasetEntries, context)
|
|
6203
|
-
: undefined,
|
|
5990
|
+
DatasetEntries: output.DatasetEntries != null ? deserializeAws_json1_1DatasetEntries(output.DatasetEntries, context) : undefined,
|
|
6204
5991
|
NextToken: (0, smithy_client_1.expectString)(output.NextToken),
|
|
6205
5992
|
};
|
|
6206
5993
|
};
|
|
6207
5994
|
const deserializeAws_json1_1ListDatasetLabelsResponse = (output, context) => {
|
|
6208
5995
|
return {
|
|
6209
|
-
DatasetLabelDescriptions: output.DatasetLabelDescriptions
|
|
5996
|
+
DatasetLabelDescriptions: output.DatasetLabelDescriptions != null
|
|
6210
5997
|
? deserializeAws_json1_1DatasetLabelDescriptions(output.DatasetLabelDescriptions, context)
|
|
6211
5998
|
: undefined,
|
|
6212
5999
|
NextToken: (0, smithy_client_1.expectString)(output.NextToken),
|
|
@@ -6215,25 +6002,21 @@ const deserializeAws_json1_1ListDatasetLabelsResponse = (output, context) => {
|
|
|
6215
6002
|
const deserializeAws_json1_1ListFacesResponse = (output, context) => {
|
|
6216
6003
|
return {
|
|
6217
6004
|
FaceModelVersion: (0, smithy_client_1.expectString)(output.FaceModelVersion),
|
|
6218
|
-
Faces: output.Faces
|
|
6219
|
-
? deserializeAws_json1_1FaceList(output.Faces, context)
|
|
6220
|
-
: undefined,
|
|
6005
|
+
Faces: output.Faces != null ? deserializeAws_json1_1FaceList(output.Faces, context) : undefined,
|
|
6221
6006
|
NextToken: (0, smithy_client_1.expectString)(output.NextToken),
|
|
6222
6007
|
};
|
|
6223
6008
|
};
|
|
6224
6009
|
const deserializeAws_json1_1ListStreamProcessorsResponse = (output, context) => {
|
|
6225
6010
|
return {
|
|
6226
6011
|
NextToken: (0, smithy_client_1.expectString)(output.NextToken),
|
|
6227
|
-
StreamProcessors: output.StreamProcessors
|
|
6012
|
+
StreamProcessors: output.StreamProcessors != null
|
|
6228
6013
|
? deserializeAws_json1_1StreamProcessorList(output.StreamProcessors, context)
|
|
6229
6014
|
: undefined,
|
|
6230
6015
|
};
|
|
6231
6016
|
};
|
|
6232
6017
|
const deserializeAws_json1_1ListTagsForResourceResponse = (output, context) => {
|
|
6233
6018
|
return {
|
|
6234
|
-
Tags: output.Tags
|
|
6235
|
-
? deserializeAws_json1_1TagMap(output.Tags, context)
|
|
6236
|
-
: undefined,
|
|
6019
|
+
Tags: output.Tags != null ? deserializeAws_json1_1TagMap(output.Tags, context) : undefined,
|
|
6237
6020
|
};
|
|
6238
6021
|
};
|
|
6239
6022
|
const deserializeAws_json1_1ModerationLabel = (output, context) => {
|
|
@@ -6290,20 +6073,14 @@ const deserializeAws_json1_1Parents = (output, context) => {
|
|
|
6290
6073
|
};
|
|
6291
6074
|
const deserializeAws_json1_1PersonDetail = (output, context) => {
|
|
6292
6075
|
return {
|
|
6293
|
-
BoundingBox: output.BoundingBox
|
|
6294
|
-
|
|
6295
|
-
: undefined,
|
|
6296
|
-
Face: output.Face !== undefined && output.Face !== null
|
|
6297
|
-
? deserializeAws_json1_1FaceDetail(output.Face, context)
|
|
6298
|
-
: undefined,
|
|
6076
|
+
BoundingBox: output.BoundingBox != null ? deserializeAws_json1_1BoundingBox(output.BoundingBox, context) : undefined,
|
|
6077
|
+
Face: output.Face != null ? deserializeAws_json1_1FaceDetail(output.Face, context) : undefined,
|
|
6299
6078
|
Index: (0, smithy_client_1.expectLong)(output.Index),
|
|
6300
6079
|
};
|
|
6301
6080
|
};
|
|
6302
6081
|
const deserializeAws_json1_1PersonDetection = (output, context) => {
|
|
6303
6082
|
return {
|
|
6304
|
-
Person: output.Person
|
|
6305
|
-
? deserializeAws_json1_1PersonDetail(output.Person, context)
|
|
6306
|
-
: undefined,
|
|
6083
|
+
Person: output.Person != null ? deserializeAws_json1_1PersonDetail(output.Person, context) : undefined,
|
|
6307
6084
|
Timestamp: (0, smithy_client_1.expectLong)(output.Timestamp),
|
|
6308
6085
|
};
|
|
6309
6086
|
};
|
|
@@ -6320,12 +6097,8 @@ const deserializeAws_json1_1PersonDetections = (output, context) => {
|
|
|
6320
6097
|
};
|
|
6321
6098
|
const deserializeAws_json1_1PersonMatch = (output, context) => {
|
|
6322
6099
|
return {
|
|
6323
|
-
FaceMatches: output.FaceMatches
|
|
6324
|
-
|
|
6325
|
-
: undefined,
|
|
6326
|
-
Person: output.Person !== undefined && output.Person !== null
|
|
6327
|
-
? deserializeAws_json1_1PersonDetail(output.Person, context)
|
|
6328
|
-
: undefined,
|
|
6100
|
+
FaceMatches: output.FaceMatches != null ? deserializeAws_json1_1FaceMatchList(output.FaceMatches, context) : undefined,
|
|
6101
|
+
Person: output.Person != null ? deserializeAws_json1_1PersonDetail(output.Person, context) : undefined,
|
|
6329
6102
|
Timestamp: (0, smithy_client_1.expectLong)(output.Timestamp),
|
|
6330
6103
|
};
|
|
6331
6104
|
};
|
|
@@ -6366,12 +6139,10 @@ const deserializeAws_json1_1Pose = (output, context) => {
|
|
|
6366
6139
|
};
|
|
6367
6140
|
const deserializeAws_json1_1ProjectDescription = (output, context) => {
|
|
6368
6141
|
return {
|
|
6369
|
-
CreationTimestamp: output.CreationTimestamp
|
|
6142
|
+
CreationTimestamp: output.CreationTimestamp != null
|
|
6370
6143
|
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.CreationTimestamp)))
|
|
6371
6144
|
: undefined,
|
|
6372
|
-
Datasets: output.Datasets
|
|
6373
|
-
? deserializeAws_json1_1DatasetMetadataList(output.Datasets, context)
|
|
6374
|
-
: undefined,
|
|
6145
|
+
Datasets: output.Datasets != null ? deserializeAws_json1_1DatasetMetadataList(output.Datasets, context) : undefined,
|
|
6375
6146
|
ProjectArn: (0, smithy_client_1.expectString)(output.ProjectArn),
|
|
6376
6147
|
Status: (0, smithy_client_1.expectString)(output.Status),
|
|
6377
6148
|
};
|
|
@@ -6390,30 +6161,28 @@ const deserializeAws_json1_1ProjectDescriptions = (output, context) => {
|
|
|
6390
6161
|
const deserializeAws_json1_1ProjectVersionDescription = (output, context) => {
|
|
6391
6162
|
return {
|
|
6392
6163
|
BillableTrainingTimeInSeconds: (0, smithy_client_1.expectLong)(output.BillableTrainingTimeInSeconds),
|
|
6393
|
-
CreationTimestamp: output.CreationTimestamp
|
|
6164
|
+
CreationTimestamp: output.CreationTimestamp != null
|
|
6394
6165
|
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.CreationTimestamp)))
|
|
6395
6166
|
: undefined,
|
|
6396
|
-
EvaluationResult: output.EvaluationResult
|
|
6167
|
+
EvaluationResult: output.EvaluationResult != null
|
|
6397
6168
|
? deserializeAws_json1_1EvaluationResult(output.EvaluationResult, context)
|
|
6398
6169
|
: undefined,
|
|
6399
6170
|
KmsKeyId: (0, smithy_client_1.expectString)(output.KmsKeyId),
|
|
6400
|
-
ManifestSummary: output.ManifestSummary
|
|
6171
|
+
ManifestSummary: output.ManifestSummary != null
|
|
6401
6172
|
? deserializeAws_json1_1GroundTruthManifest(output.ManifestSummary, context)
|
|
6402
6173
|
: undefined,
|
|
6403
6174
|
MinInferenceUnits: (0, smithy_client_1.expectInt32)(output.MinInferenceUnits),
|
|
6404
|
-
OutputConfig: output.OutputConfig
|
|
6405
|
-
? deserializeAws_json1_1OutputConfig(output.OutputConfig, context)
|
|
6406
|
-
: undefined,
|
|
6175
|
+
OutputConfig: output.OutputConfig != null ? deserializeAws_json1_1OutputConfig(output.OutputConfig, context) : undefined,
|
|
6407
6176
|
ProjectVersionArn: (0, smithy_client_1.expectString)(output.ProjectVersionArn),
|
|
6408
6177
|
Status: (0, smithy_client_1.expectString)(output.Status),
|
|
6409
6178
|
StatusMessage: (0, smithy_client_1.expectString)(output.StatusMessage),
|
|
6410
|
-
TestingDataResult: output.TestingDataResult
|
|
6179
|
+
TestingDataResult: output.TestingDataResult != null
|
|
6411
6180
|
? deserializeAws_json1_1TestingDataResult(output.TestingDataResult, context)
|
|
6412
6181
|
: undefined,
|
|
6413
|
-
TrainingDataResult: output.TrainingDataResult
|
|
6182
|
+
TrainingDataResult: output.TrainingDataResult != null
|
|
6414
6183
|
? deserializeAws_json1_1TrainingDataResult(output.TrainingDataResult, context)
|
|
6415
6184
|
: undefined,
|
|
6416
|
-
TrainingEndTimestamp: output.TrainingEndTimestamp
|
|
6185
|
+
TrainingEndTimestamp: output.TrainingEndTimestamp != null
|
|
6417
6186
|
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.TrainingEndTimestamp)))
|
|
6418
6187
|
: undefined,
|
|
6419
6188
|
};
|
|
@@ -6432,7 +6201,7 @@ const deserializeAws_json1_1ProjectVersionDescriptions = (output, context) => {
|
|
|
6432
6201
|
const deserializeAws_json1_1ProtectiveEquipmentBodyPart = (output, context) => {
|
|
6433
6202
|
return {
|
|
6434
6203
|
Confidence: (0, smithy_client_1.limitedParseFloat32)(output.Confidence),
|
|
6435
|
-
EquipmentDetections: output.EquipmentDetections
|
|
6204
|
+
EquipmentDetections: output.EquipmentDetections != null
|
|
6436
6205
|
? deserializeAws_json1_1EquipmentDetections(output.EquipmentDetections, context)
|
|
6437
6206
|
: undefined,
|
|
6438
6207
|
Name: (0, smithy_client_1.expectString)(output.Name),
|
|
@@ -6440,12 +6209,8 @@ const deserializeAws_json1_1ProtectiveEquipmentBodyPart = (output, context) => {
|
|
|
6440
6209
|
};
|
|
6441
6210
|
const deserializeAws_json1_1ProtectiveEquipmentPerson = (output, context) => {
|
|
6442
6211
|
return {
|
|
6443
|
-
BodyParts: output.BodyParts
|
|
6444
|
-
|
|
6445
|
-
: undefined,
|
|
6446
|
-
BoundingBox: output.BoundingBox !== undefined && output.BoundingBox !== null
|
|
6447
|
-
? deserializeAws_json1_1BoundingBox(output.BoundingBox, context)
|
|
6448
|
-
: undefined,
|
|
6212
|
+
BodyParts: output.BodyParts != null ? deserializeAws_json1_1BodyParts(output.BodyParts, context) : undefined,
|
|
6213
|
+
BoundingBox: output.BoundingBox != null ? deserializeAws_json1_1BoundingBox(output.BoundingBox, context) : undefined,
|
|
6449
6214
|
Confidence: (0, smithy_client_1.limitedParseFloat32)(output.Confidence),
|
|
6450
6215
|
Id: (0, smithy_client_1.expectInt32)(output.Id),
|
|
6451
6216
|
};
|
|
@@ -6474,13 +6239,13 @@ const deserializeAws_json1_1ProtectiveEquipmentPersons = (output, context) => {
|
|
|
6474
6239
|
};
|
|
6475
6240
|
const deserializeAws_json1_1ProtectiveEquipmentSummary = (output, context) => {
|
|
6476
6241
|
return {
|
|
6477
|
-
PersonsIndeterminate: output.PersonsIndeterminate
|
|
6242
|
+
PersonsIndeterminate: output.PersonsIndeterminate != null
|
|
6478
6243
|
? deserializeAws_json1_1ProtectiveEquipmentPersonIds(output.PersonsIndeterminate, context)
|
|
6479
6244
|
: undefined,
|
|
6480
|
-
PersonsWithRequiredEquipment: output.PersonsWithRequiredEquipment
|
|
6245
|
+
PersonsWithRequiredEquipment: output.PersonsWithRequiredEquipment != null
|
|
6481
6246
|
? deserializeAws_json1_1ProtectiveEquipmentPersonIds(output.PersonsWithRequiredEquipment, context)
|
|
6482
6247
|
: undefined,
|
|
6483
|
-
PersonsWithoutRequiredEquipment: output.PersonsWithoutRequiredEquipment
|
|
6248
|
+
PersonsWithoutRequiredEquipment: output.PersonsWithoutRequiredEquipment != null
|
|
6484
6249
|
? deserializeAws_json1_1ProtectiveEquipmentPersonIds(output.PersonsWithoutRequiredEquipment, context)
|
|
6485
6250
|
: undefined,
|
|
6486
6251
|
};
|
|
@@ -6505,23 +6270,17 @@ const deserializeAws_json1_1Reasons = (output, context) => {
|
|
|
6505
6270
|
};
|
|
6506
6271
|
const deserializeAws_json1_1RecognizeCelebritiesResponse = (output, context) => {
|
|
6507
6272
|
return {
|
|
6508
|
-
CelebrityFaces: output.CelebrityFaces
|
|
6509
|
-
? deserializeAws_json1_1CelebrityList(output.CelebrityFaces, context)
|
|
6510
|
-
: undefined,
|
|
6273
|
+
CelebrityFaces: output.CelebrityFaces != null ? deserializeAws_json1_1CelebrityList(output.CelebrityFaces, context) : undefined,
|
|
6511
6274
|
OrientationCorrection: (0, smithy_client_1.expectString)(output.OrientationCorrection),
|
|
6512
|
-
UnrecognizedFaces: output.UnrecognizedFaces
|
|
6275
|
+
UnrecognizedFaces: output.UnrecognizedFaces != null
|
|
6513
6276
|
? deserializeAws_json1_1ComparedFaceList(output.UnrecognizedFaces, context)
|
|
6514
6277
|
: undefined,
|
|
6515
6278
|
};
|
|
6516
6279
|
};
|
|
6517
6280
|
const deserializeAws_json1_1RegionOfInterest = (output, context) => {
|
|
6518
6281
|
return {
|
|
6519
|
-
BoundingBox: output.BoundingBox
|
|
6520
|
-
|
|
6521
|
-
: undefined,
|
|
6522
|
-
Polygon: output.Polygon !== undefined && output.Polygon !== null
|
|
6523
|
-
? deserializeAws_json1_1Polygon(output.Polygon, context)
|
|
6524
|
-
: undefined,
|
|
6282
|
+
BoundingBox: output.BoundingBox != null ? deserializeAws_json1_1BoundingBox(output.BoundingBox, context) : undefined,
|
|
6283
|
+
Polygon: output.Polygon != null ? deserializeAws_json1_1Polygon(output.Polygon, context) : undefined,
|
|
6525
6284
|
};
|
|
6526
6285
|
};
|
|
6527
6286
|
const deserializeAws_json1_1RegionsOfInterest = (output, context) => {
|
|
@@ -6578,11 +6337,9 @@ const deserializeAws_json1_1S3Object = (output, context) => {
|
|
|
6578
6337
|
};
|
|
6579
6338
|
const deserializeAws_json1_1SearchFacesByImageResponse = (output, context) => {
|
|
6580
6339
|
return {
|
|
6581
|
-
FaceMatches: output.FaceMatches
|
|
6582
|
-
? deserializeAws_json1_1FaceMatchList(output.FaceMatches, context)
|
|
6583
|
-
: undefined,
|
|
6340
|
+
FaceMatches: output.FaceMatches != null ? deserializeAws_json1_1FaceMatchList(output.FaceMatches, context) : undefined,
|
|
6584
6341
|
FaceModelVersion: (0, smithy_client_1.expectString)(output.FaceModelVersion),
|
|
6585
|
-
SearchedFaceBoundingBox: output.SearchedFaceBoundingBox
|
|
6342
|
+
SearchedFaceBoundingBox: output.SearchedFaceBoundingBox != null
|
|
6586
6343
|
? deserializeAws_json1_1BoundingBox(output.SearchedFaceBoundingBox, context)
|
|
6587
6344
|
: undefined,
|
|
6588
6345
|
SearchedFaceConfidence: (0, smithy_client_1.limitedParseFloat32)(output.SearchedFaceConfidence),
|
|
@@ -6590,9 +6347,7 @@ const deserializeAws_json1_1SearchFacesByImageResponse = (output, context) => {
|
|
|
6590
6347
|
};
|
|
6591
6348
|
const deserializeAws_json1_1SearchFacesResponse = (output, context) => {
|
|
6592
6349
|
return {
|
|
6593
|
-
FaceMatches: output.FaceMatches
|
|
6594
|
-
? deserializeAws_json1_1FaceMatchList(output.FaceMatches, context)
|
|
6595
|
-
: undefined,
|
|
6350
|
+
FaceMatches: output.FaceMatches != null ? deserializeAws_json1_1FaceMatchList(output.FaceMatches, context) : undefined,
|
|
6596
6351
|
FaceModelVersion: (0, smithy_client_1.expectString)(output.FaceModelVersion),
|
|
6597
6352
|
SearchedFaceId: (0, smithy_client_1.expectString)(output.SearchedFaceId),
|
|
6598
6353
|
};
|
|
@@ -6605,13 +6360,11 @@ const deserializeAws_json1_1SegmentDetection = (output, context) => {
|
|
|
6605
6360
|
EndFrameNumber: (0, smithy_client_1.expectLong)(output.EndFrameNumber),
|
|
6606
6361
|
EndTimecodeSMPTE: (0, smithy_client_1.expectString)(output.EndTimecodeSMPTE),
|
|
6607
6362
|
EndTimestampMillis: (0, smithy_client_1.expectLong)(output.EndTimestampMillis),
|
|
6608
|
-
ShotSegment: output.ShotSegment
|
|
6609
|
-
? deserializeAws_json1_1ShotSegment(output.ShotSegment, context)
|
|
6610
|
-
: undefined,
|
|
6363
|
+
ShotSegment: output.ShotSegment != null ? deserializeAws_json1_1ShotSegment(output.ShotSegment, context) : undefined,
|
|
6611
6364
|
StartFrameNumber: (0, smithy_client_1.expectLong)(output.StartFrameNumber),
|
|
6612
6365
|
StartTimecodeSMPTE: (0, smithy_client_1.expectString)(output.StartTimecodeSMPTE),
|
|
6613
6366
|
StartTimestampMillis: (0, smithy_client_1.expectLong)(output.StartTimestampMillis),
|
|
6614
|
-
TechnicalCueSegment: output.TechnicalCueSegment
|
|
6367
|
+
TechnicalCueSegment: output.TechnicalCueSegment != null
|
|
6615
6368
|
? deserializeAws_json1_1TechnicalCueSegment(output.TechnicalCueSegment, context)
|
|
6616
6369
|
: undefined,
|
|
6617
6370
|
Type: (0, smithy_client_1.expectString)(output.Type),
|
|
@@ -6735,7 +6488,7 @@ const deserializeAws_json1_1StreamProcessorDataSharingPreference = (output, cont
|
|
|
6735
6488
|
};
|
|
6736
6489
|
const deserializeAws_json1_1StreamProcessorInput = (output, context) => {
|
|
6737
6490
|
return {
|
|
6738
|
-
KinesisVideoStream: output.KinesisVideoStream
|
|
6491
|
+
KinesisVideoStream: output.KinesisVideoStream != null
|
|
6739
6492
|
? deserializeAws_json1_1KinesisVideoStream(output.KinesisVideoStream, context)
|
|
6740
6493
|
: undefined,
|
|
6741
6494
|
};
|
|
@@ -6758,29 +6511,23 @@ const deserializeAws_json1_1StreamProcessorNotificationChannel = (output, contex
|
|
|
6758
6511
|
};
|
|
6759
6512
|
const deserializeAws_json1_1StreamProcessorOutput = (output, context) => {
|
|
6760
6513
|
return {
|
|
6761
|
-
KinesisDataStream: output.KinesisDataStream
|
|
6514
|
+
KinesisDataStream: output.KinesisDataStream != null
|
|
6762
6515
|
? deserializeAws_json1_1KinesisDataStream(output.KinesisDataStream, context)
|
|
6763
6516
|
: undefined,
|
|
6764
|
-
S3Destination: output.S3Destination
|
|
6765
|
-
? deserializeAws_json1_1S3Destination(output.S3Destination, context)
|
|
6766
|
-
: undefined,
|
|
6517
|
+
S3Destination: output.S3Destination != null ? deserializeAws_json1_1S3Destination(output.S3Destination, context) : undefined,
|
|
6767
6518
|
};
|
|
6768
6519
|
};
|
|
6769
6520
|
const deserializeAws_json1_1StreamProcessorSettings = (output, context) => {
|
|
6770
6521
|
return {
|
|
6771
|
-
ConnectedHome: output.ConnectedHome
|
|
6522
|
+
ConnectedHome: output.ConnectedHome != null
|
|
6772
6523
|
? deserializeAws_json1_1ConnectedHomeSettings(output.ConnectedHome, context)
|
|
6773
6524
|
: undefined,
|
|
6774
|
-
FaceSearch: output.FaceSearch
|
|
6775
|
-
? deserializeAws_json1_1FaceSearchSettings(output.FaceSearch, context)
|
|
6776
|
-
: undefined,
|
|
6525
|
+
FaceSearch: output.FaceSearch != null ? deserializeAws_json1_1FaceSearchSettings(output.FaceSearch, context) : undefined,
|
|
6777
6526
|
};
|
|
6778
6527
|
};
|
|
6779
6528
|
const deserializeAws_json1_1Summary = (output, context) => {
|
|
6780
6529
|
return {
|
|
6781
|
-
S3Object: output.S3Object
|
|
6782
|
-
? deserializeAws_json1_1S3Object(output.S3Object, context)
|
|
6783
|
-
: undefined,
|
|
6530
|
+
S3Object: output.S3Object != null ? deserializeAws_json1_1S3Object(output.S3Object, context) : undefined,
|
|
6784
6531
|
};
|
|
6785
6532
|
};
|
|
6786
6533
|
const deserializeAws_json1_1Sunglasses = (output, context) => {
|
|
@@ -6811,32 +6558,22 @@ const deserializeAws_json1_1TechnicalCueSegment = (output, context) => {
|
|
|
6811
6558
|
};
|
|
6812
6559
|
const deserializeAws_json1_1TestingData = (output, context) => {
|
|
6813
6560
|
return {
|
|
6814
|
-
Assets: output.Assets
|
|
6815
|
-
? deserializeAws_json1_1Assets(output.Assets, context)
|
|
6816
|
-
: undefined,
|
|
6561
|
+
Assets: output.Assets != null ? deserializeAws_json1_1Assets(output.Assets, context) : undefined,
|
|
6817
6562
|
AutoCreate: (0, smithy_client_1.expectBoolean)(output.AutoCreate),
|
|
6818
6563
|
};
|
|
6819
6564
|
};
|
|
6820
6565
|
const deserializeAws_json1_1TestingDataResult = (output, context) => {
|
|
6821
6566
|
return {
|
|
6822
|
-
Input: output.Input
|
|
6823
|
-
|
|
6824
|
-
|
|
6825
|
-
Output: output.Output !== undefined && output.Output !== null
|
|
6826
|
-
? deserializeAws_json1_1TestingData(output.Output, context)
|
|
6827
|
-
: undefined,
|
|
6828
|
-
Validation: output.Validation !== undefined && output.Validation !== null
|
|
6829
|
-
? deserializeAws_json1_1ValidationData(output.Validation, context)
|
|
6830
|
-
: undefined,
|
|
6567
|
+
Input: output.Input != null ? deserializeAws_json1_1TestingData(output.Input, context) : undefined,
|
|
6568
|
+
Output: output.Output != null ? deserializeAws_json1_1TestingData(output.Output, context) : undefined,
|
|
6569
|
+
Validation: output.Validation != null ? deserializeAws_json1_1ValidationData(output.Validation, context) : undefined,
|
|
6831
6570
|
};
|
|
6832
6571
|
};
|
|
6833
6572
|
const deserializeAws_json1_1TextDetection = (output, context) => {
|
|
6834
6573
|
return {
|
|
6835
6574
|
Confidence: (0, smithy_client_1.limitedParseFloat32)(output.Confidence),
|
|
6836
6575
|
DetectedText: (0, smithy_client_1.expectString)(output.DetectedText),
|
|
6837
|
-
Geometry: output.Geometry
|
|
6838
|
-
? deserializeAws_json1_1Geometry(output.Geometry, context)
|
|
6839
|
-
: undefined,
|
|
6576
|
+
Geometry: output.Geometry != null ? deserializeAws_json1_1Geometry(output.Geometry, context) : undefined,
|
|
6840
6577
|
Id: (0, smithy_client_1.expectInt32)(output.Id),
|
|
6841
6578
|
ParentId: (0, smithy_client_1.expectInt32)(output.ParentId),
|
|
6842
6579
|
Type: (0, smithy_client_1.expectString)(output.Type),
|
|
@@ -6855,9 +6592,7 @@ const deserializeAws_json1_1TextDetectionList = (output, context) => {
|
|
|
6855
6592
|
};
|
|
6856
6593
|
const deserializeAws_json1_1TextDetectionResult = (output, context) => {
|
|
6857
6594
|
return {
|
|
6858
|
-
TextDetection: output.TextDetection
|
|
6859
|
-
? deserializeAws_json1_1TextDetection(output.TextDetection, context)
|
|
6860
|
-
: undefined,
|
|
6595
|
+
TextDetection: output.TextDetection != null ? deserializeAws_json1_1TextDetection(output.TextDetection, context) : undefined,
|
|
6861
6596
|
Timestamp: (0, smithy_client_1.expectLong)(output.Timestamp),
|
|
6862
6597
|
};
|
|
6863
6598
|
};
|
|
@@ -6881,32 +6616,20 @@ const deserializeAws_json1_1ThrottlingException = (output, context) => {
|
|
|
6881
6616
|
};
|
|
6882
6617
|
const deserializeAws_json1_1TrainingData = (output, context) => {
|
|
6883
6618
|
return {
|
|
6884
|
-
Assets: output.Assets
|
|
6885
|
-
? deserializeAws_json1_1Assets(output.Assets, context)
|
|
6886
|
-
: undefined,
|
|
6619
|
+
Assets: output.Assets != null ? deserializeAws_json1_1Assets(output.Assets, context) : undefined,
|
|
6887
6620
|
};
|
|
6888
6621
|
};
|
|
6889
6622
|
const deserializeAws_json1_1TrainingDataResult = (output, context) => {
|
|
6890
6623
|
return {
|
|
6891
|
-
Input: output.Input
|
|
6892
|
-
|
|
6893
|
-
|
|
6894
|
-
Output: output.Output !== undefined && output.Output !== null
|
|
6895
|
-
? deserializeAws_json1_1TrainingData(output.Output, context)
|
|
6896
|
-
: undefined,
|
|
6897
|
-
Validation: output.Validation !== undefined && output.Validation !== null
|
|
6898
|
-
? deserializeAws_json1_1ValidationData(output.Validation, context)
|
|
6899
|
-
: undefined,
|
|
6624
|
+
Input: output.Input != null ? deserializeAws_json1_1TrainingData(output.Input, context) : undefined,
|
|
6625
|
+
Output: output.Output != null ? deserializeAws_json1_1TrainingData(output.Output, context) : undefined,
|
|
6626
|
+
Validation: output.Validation != null ? deserializeAws_json1_1ValidationData(output.Validation, context) : undefined,
|
|
6900
6627
|
};
|
|
6901
6628
|
};
|
|
6902
6629
|
const deserializeAws_json1_1UnindexedFace = (output, context) => {
|
|
6903
6630
|
return {
|
|
6904
|
-
FaceDetail: output.FaceDetail
|
|
6905
|
-
|
|
6906
|
-
: undefined,
|
|
6907
|
-
Reasons: output.Reasons !== undefined && output.Reasons !== null
|
|
6908
|
-
? deserializeAws_json1_1Reasons(output.Reasons, context)
|
|
6909
|
-
: undefined,
|
|
6631
|
+
FaceDetail: output.FaceDetail != null ? deserializeAws_json1_1FaceDetail(output.FaceDetail, context) : undefined,
|
|
6632
|
+
Reasons: output.Reasons != null ? deserializeAws_json1_1Reasons(output.Reasons, context) : undefined,
|
|
6910
6633
|
};
|
|
6911
6634
|
};
|
|
6912
6635
|
const deserializeAws_json1_1UnindexedFaces = (output, context) => {
|
|
@@ -6942,9 +6665,7 @@ const deserializeAws_json1_1Urls = (output, context) => {
|
|
|
6942
6665
|
};
|
|
6943
6666
|
const deserializeAws_json1_1ValidationData = (output, context) => {
|
|
6944
6667
|
return {
|
|
6945
|
-
Assets: output.Assets
|
|
6946
|
-
? deserializeAws_json1_1Assets(output.Assets, context)
|
|
6947
|
-
: undefined,
|
|
6668
|
+
Assets: output.Assets != null ? deserializeAws_json1_1Assets(output.Assets, context) : undefined,
|
|
6948
6669
|
};
|
|
6949
6670
|
};
|
|
6950
6671
|
const deserializeAws_json1_1VideoMetadata = (output, context) => {
|
|
@@ -7038,5 +6759,4 @@ const loadRestJsonErrorCode = (output, data) => {
|
|
|
7038
6759
|
if (data["__type"] !== undefined) {
|
|
7039
6760
|
return sanitizeErrorCode(data["__type"]);
|
|
7040
6761
|
}
|
|
7041
|
-
return "";
|
|
7042
6762
|
};
|