@aws-sdk/client-rekognition 3.141.0 → 3.142.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 +11 -0
- package/dist-cjs/protocols/Aws_json1_1.js +295 -517
- package/dist-es/protocols/Aws_json1_1.js +473 -518
- package/package.json +6 -6
|
@@ -616,7 +616,6 @@ const deserializeAws_json1_1CompareFacesCommandError = async (output, context) =
|
|
|
616
616
|
...output,
|
|
617
617
|
body: await parseBody(output.body, context),
|
|
618
618
|
};
|
|
619
|
-
let response;
|
|
620
619
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
621
620
|
switch (errorCode) {
|
|
622
621
|
case "AccessDeniedException":
|
|
@@ -645,14 +644,12 @@ const deserializeAws_json1_1CompareFacesCommandError = async (output, context) =
|
|
|
645
644
|
throw await deserializeAws_json1_1ThrottlingExceptionResponse(parsedOutput, context);
|
|
646
645
|
default:
|
|
647
646
|
const parsedBody = parsedOutput.body;
|
|
648
|
-
|
|
649
|
-
|
|
650
|
-
|
|
651
|
-
|
|
652
|
-
|
|
653
|
-
$metadata,
|
|
647
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
648
|
+
output,
|
|
649
|
+
parsedBody,
|
|
650
|
+
exceptionCtor: RekognitionServiceException_1.RekognitionServiceException,
|
|
651
|
+
errorCode,
|
|
654
652
|
});
|
|
655
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
656
653
|
}
|
|
657
654
|
};
|
|
658
655
|
const deserializeAws_json1_1CreateCollectionCommand = async (output, context) => {
|
|
@@ -674,7 +671,6 @@ const deserializeAws_json1_1CreateCollectionCommandError = async (output, contex
|
|
|
674
671
|
...output,
|
|
675
672
|
body: await parseBody(output.body, context),
|
|
676
673
|
};
|
|
677
|
-
let response;
|
|
678
674
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
679
675
|
switch (errorCode) {
|
|
680
676
|
case "AccessDeniedException":
|
|
@@ -700,14 +696,12 @@ const deserializeAws_json1_1CreateCollectionCommandError = async (output, contex
|
|
|
700
696
|
throw await deserializeAws_json1_1ThrottlingExceptionResponse(parsedOutput, context);
|
|
701
697
|
default:
|
|
702
698
|
const parsedBody = parsedOutput.body;
|
|
703
|
-
|
|
704
|
-
|
|
705
|
-
|
|
706
|
-
|
|
707
|
-
|
|
708
|
-
$metadata,
|
|
699
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
700
|
+
output,
|
|
701
|
+
parsedBody,
|
|
702
|
+
exceptionCtor: RekognitionServiceException_1.RekognitionServiceException,
|
|
703
|
+
errorCode,
|
|
709
704
|
});
|
|
710
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
711
705
|
}
|
|
712
706
|
};
|
|
713
707
|
const deserializeAws_json1_1CreateDatasetCommand = async (output, context) => {
|
|
@@ -729,7 +723,6 @@ const deserializeAws_json1_1CreateDatasetCommandError = async (output, context)
|
|
|
729
723
|
...output,
|
|
730
724
|
body: await parseBody(output.body, context),
|
|
731
725
|
};
|
|
732
|
-
let response;
|
|
733
726
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
734
727
|
switch (errorCode) {
|
|
735
728
|
case "AccessDeniedException":
|
|
@@ -761,14 +754,12 @@ const deserializeAws_json1_1CreateDatasetCommandError = async (output, context)
|
|
|
761
754
|
throw await deserializeAws_json1_1ThrottlingExceptionResponse(parsedOutput, context);
|
|
762
755
|
default:
|
|
763
756
|
const parsedBody = parsedOutput.body;
|
|
764
|
-
|
|
765
|
-
|
|
766
|
-
|
|
767
|
-
|
|
768
|
-
|
|
769
|
-
$metadata,
|
|
757
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
758
|
+
output,
|
|
759
|
+
parsedBody,
|
|
760
|
+
exceptionCtor: RekognitionServiceException_1.RekognitionServiceException,
|
|
761
|
+
errorCode,
|
|
770
762
|
});
|
|
771
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
772
763
|
}
|
|
773
764
|
};
|
|
774
765
|
const deserializeAws_json1_1CreateProjectCommand = async (output, context) => {
|
|
@@ -790,7 +781,6 @@ const deserializeAws_json1_1CreateProjectCommandError = async (output, context)
|
|
|
790
781
|
...output,
|
|
791
782
|
body: await parseBody(output.body, context),
|
|
792
783
|
};
|
|
793
|
-
let response;
|
|
794
784
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
795
785
|
switch (errorCode) {
|
|
796
786
|
case "AccessDeniedException":
|
|
@@ -816,14 +806,12 @@ const deserializeAws_json1_1CreateProjectCommandError = async (output, context)
|
|
|
816
806
|
throw await deserializeAws_json1_1ThrottlingExceptionResponse(parsedOutput, context);
|
|
817
807
|
default:
|
|
818
808
|
const parsedBody = parsedOutput.body;
|
|
819
|
-
|
|
820
|
-
|
|
821
|
-
|
|
822
|
-
|
|
823
|
-
|
|
824
|
-
$metadata,
|
|
809
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
810
|
+
output,
|
|
811
|
+
parsedBody,
|
|
812
|
+
exceptionCtor: RekognitionServiceException_1.RekognitionServiceException,
|
|
813
|
+
errorCode,
|
|
825
814
|
});
|
|
826
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
827
815
|
}
|
|
828
816
|
};
|
|
829
817
|
const deserializeAws_json1_1CreateProjectVersionCommand = async (output, context) => {
|
|
@@ -845,7 +833,6 @@ const deserializeAws_json1_1CreateProjectVersionCommandError = async (output, co
|
|
|
845
833
|
...output,
|
|
846
834
|
body: await parseBody(output.body, context),
|
|
847
835
|
};
|
|
848
|
-
let response;
|
|
849
836
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
850
837
|
switch (errorCode) {
|
|
851
838
|
case "AccessDeniedException":
|
|
@@ -877,14 +864,12 @@ const deserializeAws_json1_1CreateProjectVersionCommandError = async (output, co
|
|
|
877
864
|
throw await deserializeAws_json1_1ThrottlingExceptionResponse(parsedOutput, context);
|
|
878
865
|
default:
|
|
879
866
|
const parsedBody = parsedOutput.body;
|
|
880
|
-
|
|
881
|
-
|
|
882
|
-
|
|
883
|
-
|
|
884
|
-
|
|
885
|
-
$metadata,
|
|
867
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
868
|
+
output,
|
|
869
|
+
parsedBody,
|
|
870
|
+
exceptionCtor: RekognitionServiceException_1.RekognitionServiceException,
|
|
871
|
+
errorCode,
|
|
886
872
|
});
|
|
887
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
888
873
|
}
|
|
889
874
|
};
|
|
890
875
|
const deserializeAws_json1_1CreateStreamProcessorCommand = async (output, context) => {
|
|
@@ -906,7 +891,6 @@ const deserializeAws_json1_1CreateStreamProcessorCommandError = async (output, c
|
|
|
906
891
|
...output,
|
|
907
892
|
body: await parseBody(output.body, context),
|
|
908
893
|
};
|
|
909
|
-
let response;
|
|
910
894
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
911
895
|
switch (errorCode) {
|
|
912
896
|
case "AccessDeniedException":
|
|
@@ -935,14 +919,12 @@ const deserializeAws_json1_1CreateStreamProcessorCommandError = async (output, c
|
|
|
935
919
|
throw await deserializeAws_json1_1ThrottlingExceptionResponse(parsedOutput, context);
|
|
936
920
|
default:
|
|
937
921
|
const parsedBody = parsedOutput.body;
|
|
938
|
-
|
|
939
|
-
|
|
940
|
-
|
|
941
|
-
|
|
942
|
-
|
|
943
|
-
$metadata,
|
|
922
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
923
|
+
output,
|
|
924
|
+
parsedBody,
|
|
925
|
+
exceptionCtor: RekognitionServiceException_1.RekognitionServiceException,
|
|
926
|
+
errorCode,
|
|
944
927
|
});
|
|
945
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
946
928
|
}
|
|
947
929
|
};
|
|
948
930
|
const deserializeAws_json1_1DeleteCollectionCommand = async (output, context) => {
|
|
@@ -964,7 +946,6 @@ const deserializeAws_json1_1DeleteCollectionCommandError = async (output, contex
|
|
|
964
946
|
...output,
|
|
965
947
|
body: await parseBody(output.body, context),
|
|
966
948
|
};
|
|
967
|
-
let response;
|
|
968
949
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
969
950
|
switch (errorCode) {
|
|
970
951
|
case "AccessDeniedException":
|
|
@@ -987,14 +968,12 @@ const deserializeAws_json1_1DeleteCollectionCommandError = async (output, contex
|
|
|
987
968
|
throw await deserializeAws_json1_1ThrottlingExceptionResponse(parsedOutput, context);
|
|
988
969
|
default:
|
|
989
970
|
const parsedBody = parsedOutput.body;
|
|
990
|
-
|
|
991
|
-
|
|
992
|
-
|
|
993
|
-
|
|
994
|
-
|
|
995
|
-
$metadata,
|
|
971
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
972
|
+
output,
|
|
973
|
+
parsedBody,
|
|
974
|
+
exceptionCtor: RekognitionServiceException_1.RekognitionServiceException,
|
|
975
|
+
errorCode,
|
|
996
976
|
});
|
|
997
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
998
977
|
}
|
|
999
978
|
};
|
|
1000
979
|
const deserializeAws_json1_1DeleteDatasetCommand = async (output, context) => {
|
|
@@ -1016,7 +995,6 @@ const deserializeAws_json1_1DeleteDatasetCommandError = async (output, context)
|
|
|
1016
995
|
...output,
|
|
1017
996
|
body: await parseBody(output.body, context),
|
|
1018
997
|
};
|
|
1019
|
-
let response;
|
|
1020
998
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1021
999
|
switch (errorCode) {
|
|
1022
1000
|
case "AccessDeniedException":
|
|
@@ -1045,14 +1023,12 @@ const deserializeAws_json1_1DeleteDatasetCommandError = async (output, context)
|
|
|
1045
1023
|
throw await deserializeAws_json1_1ThrottlingExceptionResponse(parsedOutput, context);
|
|
1046
1024
|
default:
|
|
1047
1025
|
const parsedBody = parsedOutput.body;
|
|
1048
|
-
|
|
1049
|
-
|
|
1050
|
-
|
|
1051
|
-
|
|
1052
|
-
|
|
1053
|
-
$metadata,
|
|
1026
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1027
|
+
output,
|
|
1028
|
+
parsedBody,
|
|
1029
|
+
exceptionCtor: RekognitionServiceException_1.RekognitionServiceException,
|
|
1030
|
+
errorCode,
|
|
1054
1031
|
});
|
|
1055
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1056
1032
|
}
|
|
1057
1033
|
};
|
|
1058
1034
|
const deserializeAws_json1_1DeleteFacesCommand = async (output, context) => {
|
|
@@ -1074,7 +1050,6 @@ const deserializeAws_json1_1DeleteFacesCommandError = async (output, context) =>
|
|
|
1074
1050
|
...output,
|
|
1075
1051
|
body: await parseBody(output.body, context),
|
|
1076
1052
|
};
|
|
1077
|
-
let response;
|
|
1078
1053
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1079
1054
|
switch (errorCode) {
|
|
1080
1055
|
case "AccessDeniedException":
|
|
@@ -1097,14 +1072,12 @@ const deserializeAws_json1_1DeleteFacesCommandError = async (output, context) =>
|
|
|
1097
1072
|
throw await deserializeAws_json1_1ThrottlingExceptionResponse(parsedOutput, context);
|
|
1098
1073
|
default:
|
|
1099
1074
|
const parsedBody = parsedOutput.body;
|
|
1100
|
-
|
|
1101
|
-
|
|
1102
|
-
|
|
1103
|
-
|
|
1104
|
-
|
|
1105
|
-
$metadata,
|
|
1075
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1076
|
+
output,
|
|
1077
|
+
parsedBody,
|
|
1078
|
+
exceptionCtor: RekognitionServiceException_1.RekognitionServiceException,
|
|
1079
|
+
errorCode,
|
|
1106
1080
|
});
|
|
1107
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1108
1081
|
}
|
|
1109
1082
|
};
|
|
1110
1083
|
const deserializeAws_json1_1DeleteProjectCommand = async (output, context) => {
|
|
@@ -1126,7 +1099,6 @@ const deserializeAws_json1_1DeleteProjectCommandError = async (output, context)
|
|
|
1126
1099
|
...output,
|
|
1127
1100
|
body: await parseBody(output.body, context),
|
|
1128
1101
|
};
|
|
1129
|
-
let response;
|
|
1130
1102
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1131
1103
|
switch (errorCode) {
|
|
1132
1104
|
case "AccessDeniedException":
|
|
@@ -1152,14 +1124,12 @@ const deserializeAws_json1_1DeleteProjectCommandError = async (output, context)
|
|
|
1152
1124
|
throw await deserializeAws_json1_1ThrottlingExceptionResponse(parsedOutput, context);
|
|
1153
1125
|
default:
|
|
1154
1126
|
const parsedBody = parsedOutput.body;
|
|
1155
|
-
|
|
1156
|
-
|
|
1157
|
-
|
|
1158
|
-
|
|
1159
|
-
|
|
1160
|
-
$metadata,
|
|
1127
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1128
|
+
output,
|
|
1129
|
+
parsedBody,
|
|
1130
|
+
exceptionCtor: RekognitionServiceException_1.RekognitionServiceException,
|
|
1131
|
+
errorCode,
|
|
1161
1132
|
});
|
|
1162
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1163
1133
|
}
|
|
1164
1134
|
};
|
|
1165
1135
|
const deserializeAws_json1_1DeleteProjectVersionCommand = async (output, context) => {
|
|
@@ -1181,7 +1151,6 @@ const deserializeAws_json1_1DeleteProjectVersionCommandError = async (output, co
|
|
|
1181
1151
|
...output,
|
|
1182
1152
|
body: await parseBody(output.body, context),
|
|
1183
1153
|
};
|
|
1184
|
-
let response;
|
|
1185
1154
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1186
1155
|
switch (errorCode) {
|
|
1187
1156
|
case "AccessDeniedException":
|
|
@@ -1207,14 +1176,12 @@ const deserializeAws_json1_1DeleteProjectVersionCommandError = async (output, co
|
|
|
1207
1176
|
throw await deserializeAws_json1_1ThrottlingExceptionResponse(parsedOutput, context);
|
|
1208
1177
|
default:
|
|
1209
1178
|
const parsedBody = parsedOutput.body;
|
|
1210
|
-
|
|
1211
|
-
|
|
1212
|
-
|
|
1213
|
-
|
|
1214
|
-
|
|
1215
|
-
$metadata,
|
|
1179
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1180
|
+
output,
|
|
1181
|
+
parsedBody,
|
|
1182
|
+
exceptionCtor: RekognitionServiceException_1.RekognitionServiceException,
|
|
1183
|
+
errorCode,
|
|
1216
1184
|
});
|
|
1217
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1218
1185
|
}
|
|
1219
1186
|
};
|
|
1220
1187
|
const deserializeAws_json1_1DeleteStreamProcessorCommand = async (output, context) => {
|
|
@@ -1236,7 +1203,6 @@ const deserializeAws_json1_1DeleteStreamProcessorCommandError = async (output, c
|
|
|
1236
1203
|
...output,
|
|
1237
1204
|
body: await parseBody(output.body, context),
|
|
1238
1205
|
};
|
|
1239
|
-
let response;
|
|
1240
1206
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1241
1207
|
switch (errorCode) {
|
|
1242
1208
|
case "AccessDeniedException":
|
|
@@ -1262,14 +1228,12 @@ const deserializeAws_json1_1DeleteStreamProcessorCommandError = async (output, c
|
|
|
1262
1228
|
throw await deserializeAws_json1_1ThrottlingExceptionResponse(parsedOutput, context);
|
|
1263
1229
|
default:
|
|
1264
1230
|
const parsedBody = parsedOutput.body;
|
|
1265
|
-
|
|
1266
|
-
|
|
1267
|
-
|
|
1268
|
-
|
|
1269
|
-
|
|
1270
|
-
$metadata,
|
|
1231
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1232
|
+
output,
|
|
1233
|
+
parsedBody,
|
|
1234
|
+
exceptionCtor: RekognitionServiceException_1.RekognitionServiceException,
|
|
1235
|
+
errorCode,
|
|
1271
1236
|
});
|
|
1272
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1273
1237
|
}
|
|
1274
1238
|
};
|
|
1275
1239
|
const deserializeAws_json1_1DescribeCollectionCommand = async (output, context) => {
|
|
@@ -1291,7 +1255,6 @@ const deserializeAws_json1_1DescribeCollectionCommandError = async (output, cont
|
|
|
1291
1255
|
...output,
|
|
1292
1256
|
body: await parseBody(output.body, context),
|
|
1293
1257
|
};
|
|
1294
|
-
let response;
|
|
1295
1258
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1296
1259
|
switch (errorCode) {
|
|
1297
1260
|
case "AccessDeniedException":
|
|
@@ -1314,14 +1277,12 @@ const deserializeAws_json1_1DescribeCollectionCommandError = async (output, cont
|
|
|
1314
1277
|
throw await deserializeAws_json1_1ThrottlingExceptionResponse(parsedOutput, context);
|
|
1315
1278
|
default:
|
|
1316
1279
|
const parsedBody = parsedOutput.body;
|
|
1317
|
-
|
|
1318
|
-
|
|
1319
|
-
|
|
1320
|
-
|
|
1321
|
-
|
|
1322
|
-
$metadata,
|
|
1280
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1281
|
+
output,
|
|
1282
|
+
parsedBody,
|
|
1283
|
+
exceptionCtor: RekognitionServiceException_1.RekognitionServiceException,
|
|
1284
|
+
errorCode,
|
|
1323
1285
|
});
|
|
1324
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1325
1286
|
}
|
|
1326
1287
|
};
|
|
1327
1288
|
const deserializeAws_json1_1DescribeDatasetCommand = async (output, context) => {
|
|
@@ -1343,7 +1304,6 @@ const deserializeAws_json1_1DescribeDatasetCommandError = async (output, context
|
|
|
1343
1304
|
...output,
|
|
1344
1305
|
body: await parseBody(output.body, context),
|
|
1345
1306
|
};
|
|
1346
|
-
let response;
|
|
1347
1307
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1348
1308
|
switch (errorCode) {
|
|
1349
1309
|
case "AccessDeniedException":
|
|
@@ -1366,14 +1326,12 @@ const deserializeAws_json1_1DescribeDatasetCommandError = async (output, context
|
|
|
1366
1326
|
throw await deserializeAws_json1_1ThrottlingExceptionResponse(parsedOutput, context);
|
|
1367
1327
|
default:
|
|
1368
1328
|
const parsedBody = parsedOutput.body;
|
|
1369
|
-
|
|
1370
|
-
|
|
1371
|
-
|
|
1372
|
-
|
|
1373
|
-
|
|
1374
|
-
$metadata,
|
|
1329
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1330
|
+
output,
|
|
1331
|
+
parsedBody,
|
|
1332
|
+
exceptionCtor: RekognitionServiceException_1.RekognitionServiceException,
|
|
1333
|
+
errorCode,
|
|
1375
1334
|
});
|
|
1376
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1377
1335
|
}
|
|
1378
1336
|
};
|
|
1379
1337
|
const deserializeAws_json1_1DescribeProjectsCommand = async (output, context) => {
|
|
@@ -1395,7 +1353,6 @@ const deserializeAws_json1_1DescribeProjectsCommandError = async (output, contex
|
|
|
1395
1353
|
...output,
|
|
1396
1354
|
body: await parseBody(output.body, context),
|
|
1397
1355
|
};
|
|
1398
|
-
let response;
|
|
1399
1356
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1400
1357
|
switch (errorCode) {
|
|
1401
1358
|
case "AccessDeniedException":
|
|
@@ -1418,14 +1375,12 @@ const deserializeAws_json1_1DescribeProjectsCommandError = async (output, contex
|
|
|
1418
1375
|
throw await deserializeAws_json1_1ThrottlingExceptionResponse(parsedOutput, context);
|
|
1419
1376
|
default:
|
|
1420
1377
|
const parsedBody = parsedOutput.body;
|
|
1421
|
-
|
|
1422
|
-
|
|
1423
|
-
|
|
1424
|
-
|
|
1425
|
-
|
|
1426
|
-
$metadata,
|
|
1378
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1379
|
+
output,
|
|
1380
|
+
parsedBody,
|
|
1381
|
+
exceptionCtor: RekognitionServiceException_1.RekognitionServiceException,
|
|
1382
|
+
errorCode,
|
|
1427
1383
|
});
|
|
1428
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1429
1384
|
}
|
|
1430
1385
|
};
|
|
1431
1386
|
const deserializeAws_json1_1DescribeProjectVersionsCommand = async (output, context) => {
|
|
@@ -1447,7 +1402,6 @@ const deserializeAws_json1_1DescribeProjectVersionsCommandError = async (output,
|
|
|
1447
1402
|
...output,
|
|
1448
1403
|
body: await parseBody(output.body, context),
|
|
1449
1404
|
};
|
|
1450
|
-
let response;
|
|
1451
1405
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1452
1406
|
switch (errorCode) {
|
|
1453
1407
|
case "AccessDeniedException":
|
|
@@ -1473,14 +1427,12 @@ const deserializeAws_json1_1DescribeProjectVersionsCommandError = async (output,
|
|
|
1473
1427
|
throw await deserializeAws_json1_1ThrottlingExceptionResponse(parsedOutput, context);
|
|
1474
1428
|
default:
|
|
1475
1429
|
const parsedBody = parsedOutput.body;
|
|
1476
|
-
|
|
1477
|
-
|
|
1478
|
-
|
|
1479
|
-
|
|
1480
|
-
|
|
1481
|
-
$metadata,
|
|
1430
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1431
|
+
output,
|
|
1432
|
+
parsedBody,
|
|
1433
|
+
exceptionCtor: RekognitionServiceException_1.RekognitionServiceException,
|
|
1434
|
+
errorCode,
|
|
1482
1435
|
});
|
|
1483
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1484
1436
|
}
|
|
1485
1437
|
};
|
|
1486
1438
|
const deserializeAws_json1_1DescribeStreamProcessorCommand = async (output, context) => {
|
|
@@ -1502,7 +1454,6 @@ const deserializeAws_json1_1DescribeStreamProcessorCommandError = async (output,
|
|
|
1502
1454
|
...output,
|
|
1503
1455
|
body: await parseBody(output.body, context),
|
|
1504
1456
|
};
|
|
1505
|
-
let response;
|
|
1506
1457
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1507
1458
|
switch (errorCode) {
|
|
1508
1459
|
case "AccessDeniedException":
|
|
@@ -1525,14 +1476,12 @@ const deserializeAws_json1_1DescribeStreamProcessorCommandError = async (output,
|
|
|
1525
1476
|
throw await deserializeAws_json1_1ThrottlingExceptionResponse(parsedOutput, context);
|
|
1526
1477
|
default:
|
|
1527
1478
|
const parsedBody = parsedOutput.body;
|
|
1528
|
-
|
|
1529
|
-
|
|
1530
|
-
|
|
1531
|
-
|
|
1532
|
-
|
|
1533
|
-
$metadata,
|
|
1479
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1480
|
+
output,
|
|
1481
|
+
parsedBody,
|
|
1482
|
+
exceptionCtor: RekognitionServiceException_1.RekognitionServiceException,
|
|
1483
|
+
errorCode,
|
|
1534
1484
|
});
|
|
1535
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1536
1485
|
}
|
|
1537
1486
|
};
|
|
1538
1487
|
const deserializeAws_json1_1DetectCustomLabelsCommand = async (output, context) => {
|
|
@@ -1554,7 +1503,6 @@ const deserializeAws_json1_1DetectCustomLabelsCommandError = async (output, cont
|
|
|
1554
1503
|
...output,
|
|
1555
1504
|
body: await parseBody(output.body, context),
|
|
1556
1505
|
};
|
|
1557
|
-
let response;
|
|
1558
1506
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1559
1507
|
switch (errorCode) {
|
|
1560
1508
|
case "AccessDeniedException":
|
|
@@ -1592,14 +1540,12 @@ const deserializeAws_json1_1DetectCustomLabelsCommandError = async (output, cont
|
|
|
1592
1540
|
throw await deserializeAws_json1_1ThrottlingExceptionResponse(parsedOutput, context);
|
|
1593
1541
|
default:
|
|
1594
1542
|
const parsedBody = parsedOutput.body;
|
|
1595
|
-
|
|
1596
|
-
|
|
1597
|
-
|
|
1598
|
-
|
|
1599
|
-
|
|
1600
|
-
$metadata,
|
|
1543
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1544
|
+
output,
|
|
1545
|
+
parsedBody,
|
|
1546
|
+
exceptionCtor: RekognitionServiceException_1.RekognitionServiceException,
|
|
1547
|
+
errorCode,
|
|
1601
1548
|
});
|
|
1602
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1603
1549
|
}
|
|
1604
1550
|
};
|
|
1605
1551
|
const deserializeAws_json1_1DetectFacesCommand = async (output, context) => {
|
|
@@ -1621,7 +1567,6 @@ const deserializeAws_json1_1DetectFacesCommandError = async (output, context) =>
|
|
|
1621
1567
|
...output,
|
|
1622
1568
|
body: await parseBody(output.body, context),
|
|
1623
1569
|
};
|
|
1624
|
-
let response;
|
|
1625
1570
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1626
1571
|
switch (errorCode) {
|
|
1627
1572
|
case "AccessDeniedException":
|
|
@@ -1650,14 +1595,12 @@ const deserializeAws_json1_1DetectFacesCommandError = async (output, context) =>
|
|
|
1650
1595
|
throw await deserializeAws_json1_1ThrottlingExceptionResponse(parsedOutput, context);
|
|
1651
1596
|
default:
|
|
1652
1597
|
const parsedBody = parsedOutput.body;
|
|
1653
|
-
|
|
1654
|
-
|
|
1655
|
-
|
|
1656
|
-
|
|
1657
|
-
|
|
1658
|
-
$metadata,
|
|
1598
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1599
|
+
output,
|
|
1600
|
+
parsedBody,
|
|
1601
|
+
exceptionCtor: RekognitionServiceException_1.RekognitionServiceException,
|
|
1602
|
+
errorCode,
|
|
1659
1603
|
});
|
|
1660
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1661
1604
|
}
|
|
1662
1605
|
};
|
|
1663
1606
|
const deserializeAws_json1_1DetectLabelsCommand = async (output, context) => {
|
|
@@ -1679,7 +1622,6 @@ const deserializeAws_json1_1DetectLabelsCommandError = async (output, context) =
|
|
|
1679
1622
|
...output,
|
|
1680
1623
|
body: await parseBody(output.body, context),
|
|
1681
1624
|
};
|
|
1682
|
-
let response;
|
|
1683
1625
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1684
1626
|
switch (errorCode) {
|
|
1685
1627
|
case "AccessDeniedException":
|
|
@@ -1708,14 +1650,12 @@ const deserializeAws_json1_1DetectLabelsCommandError = async (output, context) =
|
|
|
1708
1650
|
throw await deserializeAws_json1_1ThrottlingExceptionResponse(parsedOutput, context);
|
|
1709
1651
|
default:
|
|
1710
1652
|
const parsedBody = parsedOutput.body;
|
|
1711
|
-
|
|
1712
|
-
|
|
1713
|
-
|
|
1714
|
-
|
|
1715
|
-
|
|
1716
|
-
$metadata,
|
|
1653
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1654
|
+
output,
|
|
1655
|
+
parsedBody,
|
|
1656
|
+
exceptionCtor: RekognitionServiceException_1.RekognitionServiceException,
|
|
1657
|
+
errorCode,
|
|
1717
1658
|
});
|
|
1718
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1719
1659
|
}
|
|
1720
1660
|
};
|
|
1721
1661
|
const deserializeAws_json1_1DetectModerationLabelsCommand = async (output, context) => {
|
|
@@ -1737,7 +1677,6 @@ const deserializeAws_json1_1DetectModerationLabelsCommandError = async (output,
|
|
|
1737
1677
|
...output,
|
|
1738
1678
|
body: await parseBody(output.body, context),
|
|
1739
1679
|
};
|
|
1740
|
-
let response;
|
|
1741
1680
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1742
1681
|
switch (errorCode) {
|
|
1743
1682
|
case "AccessDeniedException":
|
|
@@ -1769,14 +1708,12 @@ const deserializeAws_json1_1DetectModerationLabelsCommandError = async (output,
|
|
|
1769
1708
|
throw await deserializeAws_json1_1ThrottlingExceptionResponse(parsedOutput, context);
|
|
1770
1709
|
default:
|
|
1771
1710
|
const parsedBody = parsedOutput.body;
|
|
1772
|
-
|
|
1773
|
-
|
|
1774
|
-
|
|
1775
|
-
|
|
1776
|
-
|
|
1777
|
-
$metadata,
|
|
1711
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1712
|
+
output,
|
|
1713
|
+
parsedBody,
|
|
1714
|
+
exceptionCtor: RekognitionServiceException_1.RekognitionServiceException,
|
|
1715
|
+
errorCode,
|
|
1778
1716
|
});
|
|
1779
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1780
1717
|
}
|
|
1781
1718
|
};
|
|
1782
1719
|
const deserializeAws_json1_1DetectProtectiveEquipmentCommand = async (output, context) => {
|
|
@@ -1798,7 +1735,6 @@ const deserializeAws_json1_1DetectProtectiveEquipmentCommandError = async (outpu
|
|
|
1798
1735
|
...output,
|
|
1799
1736
|
body: await parseBody(output.body, context),
|
|
1800
1737
|
};
|
|
1801
|
-
let response;
|
|
1802
1738
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1803
1739
|
switch (errorCode) {
|
|
1804
1740
|
case "AccessDeniedException":
|
|
@@ -1827,14 +1763,12 @@ const deserializeAws_json1_1DetectProtectiveEquipmentCommandError = async (outpu
|
|
|
1827
1763
|
throw await deserializeAws_json1_1ThrottlingExceptionResponse(parsedOutput, context);
|
|
1828
1764
|
default:
|
|
1829
1765
|
const parsedBody = parsedOutput.body;
|
|
1830
|
-
|
|
1831
|
-
|
|
1832
|
-
|
|
1833
|
-
|
|
1834
|
-
|
|
1835
|
-
$metadata,
|
|
1766
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1767
|
+
output,
|
|
1768
|
+
parsedBody,
|
|
1769
|
+
exceptionCtor: RekognitionServiceException_1.RekognitionServiceException,
|
|
1770
|
+
errorCode,
|
|
1836
1771
|
});
|
|
1837
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1838
1772
|
}
|
|
1839
1773
|
};
|
|
1840
1774
|
const deserializeAws_json1_1DetectTextCommand = async (output, context) => {
|
|
@@ -1856,7 +1790,6 @@ const deserializeAws_json1_1DetectTextCommandError = async (output, context) =>
|
|
|
1856
1790
|
...output,
|
|
1857
1791
|
body: await parseBody(output.body, context),
|
|
1858
1792
|
};
|
|
1859
|
-
let response;
|
|
1860
1793
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1861
1794
|
switch (errorCode) {
|
|
1862
1795
|
case "AccessDeniedException":
|
|
@@ -1885,14 +1818,12 @@ const deserializeAws_json1_1DetectTextCommandError = async (output, context) =>
|
|
|
1885
1818
|
throw await deserializeAws_json1_1ThrottlingExceptionResponse(parsedOutput, context);
|
|
1886
1819
|
default:
|
|
1887
1820
|
const parsedBody = parsedOutput.body;
|
|
1888
|
-
|
|
1889
|
-
|
|
1890
|
-
|
|
1891
|
-
|
|
1892
|
-
|
|
1893
|
-
$metadata,
|
|
1821
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1822
|
+
output,
|
|
1823
|
+
parsedBody,
|
|
1824
|
+
exceptionCtor: RekognitionServiceException_1.RekognitionServiceException,
|
|
1825
|
+
errorCode,
|
|
1894
1826
|
});
|
|
1895
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1896
1827
|
}
|
|
1897
1828
|
};
|
|
1898
1829
|
const deserializeAws_json1_1DistributeDatasetEntriesCommand = async (output, context) => {
|
|
@@ -1914,7 +1845,6 @@ const deserializeAws_json1_1DistributeDatasetEntriesCommandError = async (output
|
|
|
1914
1845
|
...output,
|
|
1915
1846
|
body: await parseBody(output.body, context),
|
|
1916
1847
|
};
|
|
1917
|
-
let response;
|
|
1918
1848
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1919
1849
|
switch (errorCode) {
|
|
1920
1850
|
case "AccessDeniedException":
|
|
@@ -1940,14 +1870,12 @@ const deserializeAws_json1_1DistributeDatasetEntriesCommandError = async (output
|
|
|
1940
1870
|
throw await deserializeAws_json1_1ThrottlingExceptionResponse(parsedOutput, context);
|
|
1941
1871
|
default:
|
|
1942
1872
|
const parsedBody = parsedOutput.body;
|
|
1943
|
-
|
|
1944
|
-
|
|
1945
|
-
|
|
1946
|
-
|
|
1947
|
-
|
|
1948
|
-
$metadata,
|
|
1873
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1874
|
+
output,
|
|
1875
|
+
parsedBody,
|
|
1876
|
+
exceptionCtor: RekognitionServiceException_1.RekognitionServiceException,
|
|
1877
|
+
errorCode,
|
|
1949
1878
|
});
|
|
1950
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1951
1879
|
}
|
|
1952
1880
|
};
|
|
1953
1881
|
const deserializeAws_json1_1GetCelebrityInfoCommand = async (output, context) => {
|
|
@@ -1969,7 +1897,6 @@ const deserializeAws_json1_1GetCelebrityInfoCommandError = async (output, contex
|
|
|
1969
1897
|
...output,
|
|
1970
1898
|
body: await parseBody(output.body, context),
|
|
1971
1899
|
};
|
|
1972
|
-
let response;
|
|
1973
1900
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1974
1901
|
switch (errorCode) {
|
|
1975
1902
|
case "AccessDeniedException":
|
|
@@ -1992,14 +1919,12 @@ const deserializeAws_json1_1GetCelebrityInfoCommandError = async (output, contex
|
|
|
1992
1919
|
throw await deserializeAws_json1_1ThrottlingExceptionResponse(parsedOutput, context);
|
|
1993
1920
|
default:
|
|
1994
1921
|
const parsedBody = parsedOutput.body;
|
|
1995
|
-
|
|
1996
|
-
|
|
1997
|
-
|
|
1998
|
-
|
|
1999
|
-
|
|
2000
|
-
$metadata,
|
|
1922
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1923
|
+
output,
|
|
1924
|
+
parsedBody,
|
|
1925
|
+
exceptionCtor: RekognitionServiceException_1.RekognitionServiceException,
|
|
1926
|
+
errorCode,
|
|
2001
1927
|
});
|
|
2002
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2003
1928
|
}
|
|
2004
1929
|
};
|
|
2005
1930
|
const deserializeAws_json1_1GetCelebrityRecognitionCommand = async (output, context) => {
|
|
@@ -2021,7 +1946,6 @@ const deserializeAws_json1_1GetCelebrityRecognitionCommandError = async (output,
|
|
|
2021
1946
|
...output,
|
|
2022
1947
|
body: await parseBody(output.body, context),
|
|
2023
1948
|
};
|
|
2024
|
-
let response;
|
|
2025
1949
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2026
1950
|
switch (errorCode) {
|
|
2027
1951
|
case "AccessDeniedException":
|
|
@@ -2047,14 +1971,12 @@ const deserializeAws_json1_1GetCelebrityRecognitionCommandError = async (output,
|
|
|
2047
1971
|
throw await deserializeAws_json1_1ThrottlingExceptionResponse(parsedOutput, context);
|
|
2048
1972
|
default:
|
|
2049
1973
|
const parsedBody = parsedOutput.body;
|
|
2050
|
-
|
|
2051
|
-
|
|
2052
|
-
|
|
2053
|
-
|
|
2054
|
-
|
|
2055
|
-
$metadata,
|
|
1974
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1975
|
+
output,
|
|
1976
|
+
parsedBody,
|
|
1977
|
+
exceptionCtor: RekognitionServiceException_1.RekognitionServiceException,
|
|
1978
|
+
errorCode,
|
|
2056
1979
|
});
|
|
2057
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2058
1980
|
}
|
|
2059
1981
|
};
|
|
2060
1982
|
const deserializeAws_json1_1GetContentModerationCommand = async (output, context) => {
|
|
@@ -2076,7 +1998,6 @@ const deserializeAws_json1_1GetContentModerationCommandError = async (output, co
|
|
|
2076
1998
|
...output,
|
|
2077
1999
|
body: await parseBody(output.body, context),
|
|
2078
2000
|
};
|
|
2079
|
-
let response;
|
|
2080
2001
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2081
2002
|
switch (errorCode) {
|
|
2082
2003
|
case "AccessDeniedException":
|
|
@@ -2102,14 +2023,12 @@ const deserializeAws_json1_1GetContentModerationCommandError = async (output, co
|
|
|
2102
2023
|
throw await deserializeAws_json1_1ThrottlingExceptionResponse(parsedOutput, context);
|
|
2103
2024
|
default:
|
|
2104
2025
|
const parsedBody = parsedOutput.body;
|
|
2105
|
-
|
|
2106
|
-
|
|
2107
|
-
|
|
2108
|
-
|
|
2109
|
-
|
|
2110
|
-
$metadata,
|
|
2026
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
2027
|
+
output,
|
|
2028
|
+
parsedBody,
|
|
2029
|
+
exceptionCtor: RekognitionServiceException_1.RekognitionServiceException,
|
|
2030
|
+
errorCode,
|
|
2111
2031
|
});
|
|
2112
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2113
2032
|
}
|
|
2114
2033
|
};
|
|
2115
2034
|
const deserializeAws_json1_1GetFaceDetectionCommand = async (output, context) => {
|
|
@@ -2131,7 +2050,6 @@ const deserializeAws_json1_1GetFaceDetectionCommandError = async (output, contex
|
|
|
2131
2050
|
...output,
|
|
2132
2051
|
body: await parseBody(output.body, context),
|
|
2133
2052
|
};
|
|
2134
|
-
let response;
|
|
2135
2053
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2136
2054
|
switch (errorCode) {
|
|
2137
2055
|
case "AccessDeniedException":
|
|
@@ -2157,14 +2075,12 @@ const deserializeAws_json1_1GetFaceDetectionCommandError = async (output, contex
|
|
|
2157
2075
|
throw await deserializeAws_json1_1ThrottlingExceptionResponse(parsedOutput, context);
|
|
2158
2076
|
default:
|
|
2159
2077
|
const parsedBody = parsedOutput.body;
|
|
2160
|
-
|
|
2161
|
-
|
|
2162
|
-
|
|
2163
|
-
|
|
2164
|
-
|
|
2165
|
-
$metadata,
|
|
2078
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
2079
|
+
output,
|
|
2080
|
+
parsedBody,
|
|
2081
|
+
exceptionCtor: RekognitionServiceException_1.RekognitionServiceException,
|
|
2082
|
+
errorCode,
|
|
2166
2083
|
});
|
|
2167
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2168
2084
|
}
|
|
2169
2085
|
};
|
|
2170
2086
|
const deserializeAws_json1_1GetFaceSearchCommand = async (output, context) => {
|
|
@@ -2186,7 +2102,6 @@ const deserializeAws_json1_1GetFaceSearchCommandError = async (output, context)
|
|
|
2186
2102
|
...output,
|
|
2187
2103
|
body: await parseBody(output.body, context),
|
|
2188
2104
|
};
|
|
2189
|
-
let response;
|
|
2190
2105
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2191
2106
|
switch (errorCode) {
|
|
2192
2107
|
case "AccessDeniedException":
|
|
@@ -2212,14 +2127,12 @@ const deserializeAws_json1_1GetFaceSearchCommandError = async (output, context)
|
|
|
2212
2127
|
throw await deserializeAws_json1_1ThrottlingExceptionResponse(parsedOutput, context);
|
|
2213
2128
|
default:
|
|
2214
2129
|
const parsedBody = parsedOutput.body;
|
|
2215
|
-
|
|
2216
|
-
|
|
2217
|
-
|
|
2218
|
-
|
|
2219
|
-
|
|
2220
|
-
$metadata,
|
|
2130
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
2131
|
+
output,
|
|
2132
|
+
parsedBody,
|
|
2133
|
+
exceptionCtor: RekognitionServiceException_1.RekognitionServiceException,
|
|
2134
|
+
errorCode,
|
|
2221
2135
|
});
|
|
2222
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2223
2136
|
}
|
|
2224
2137
|
};
|
|
2225
2138
|
const deserializeAws_json1_1GetLabelDetectionCommand = async (output, context) => {
|
|
@@ -2241,7 +2154,6 @@ const deserializeAws_json1_1GetLabelDetectionCommandError = async (output, conte
|
|
|
2241
2154
|
...output,
|
|
2242
2155
|
body: await parseBody(output.body, context),
|
|
2243
2156
|
};
|
|
2244
|
-
let response;
|
|
2245
2157
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2246
2158
|
switch (errorCode) {
|
|
2247
2159
|
case "AccessDeniedException":
|
|
@@ -2267,14 +2179,12 @@ const deserializeAws_json1_1GetLabelDetectionCommandError = async (output, conte
|
|
|
2267
2179
|
throw await deserializeAws_json1_1ThrottlingExceptionResponse(parsedOutput, context);
|
|
2268
2180
|
default:
|
|
2269
2181
|
const parsedBody = parsedOutput.body;
|
|
2270
|
-
|
|
2271
|
-
|
|
2272
|
-
|
|
2273
|
-
|
|
2274
|
-
|
|
2275
|
-
$metadata,
|
|
2182
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
2183
|
+
output,
|
|
2184
|
+
parsedBody,
|
|
2185
|
+
exceptionCtor: RekognitionServiceException_1.RekognitionServiceException,
|
|
2186
|
+
errorCode,
|
|
2276
2187
|
});
|
|
2277
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2278
2188
|
}
|
|
2279
2189
|
};
|
|
2280
2190
|
const deserializeAws_json1_1GetPersonTrackingCommand = async (output, context) => {
|
|
@@ -2296,7 +2206,6 @@ const deserializeAws_json1_1GetPersonTrackingCommandError = async (output, conte
|
|
|
2296
2206
|
...output,
|
|
2297
2207
|
body: await parseBody(output.body, context),
|
|
2298
2208
|
};
|
|
2299
|
-
let response;
|
|
2300
2209
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2301
2210
|
switch (errorCode) {
|
|
2302
2211
|
case "AccessDeniedException":
|
|
@@ -2322,14 +2231,12 @@ const deserializeAws_json1_1GetPersonTrackingCommandError = async (output, conte
|
|
|
2322
2231
|
throw await deserializeAws_json1_1ThrottlingExceptionResponse(parsedOutput, context);
|
|
2323
2232
|
default:
|
|
2324
2233
|
const parsedBody = parsedOutput.body;
|
|
2325
|
-
|
|
2326
|
-
|
|
2327
|
-
|
|
2328
|
-
|
|
2329
|
-
|
|
2330
|
-
$metadata,
|
|
2234
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
2235
|
+
output,
|
|
2236
|
+
parsedBody,
|
|
2237
|
+
exceptionCtor: RekognitionServiceException_1.RekognitionServiceException,
|
|
2238
|
+
errorCode,
|
|
2331
2239
|
});
|
|
2332
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2333
2240
|
}
|
|
2334
2241
|
};
|
|
2335
2242
|
const deserializeAws_json1_1GetSegmentDetectionCommand = async (output, context) => {
|
|
@@ -2351,7 +2258,6 @@ const deserializeAws_json1_1GetSegmentDetectionCommandError = async (output, con
|
|
|
2351
2258
|
...output,
|
|
2352
2259
|
body: await parseBody(output.body, context),
|
|
2353
2260
|
};
|
|
2354
|
-
let response;
|
|
2355
2261
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2356
2262
|
switch (errorCode) {
|
|
2357
2263
|
case "AccessDeniedException":
|
|
@@ -2377,14 +2283,12 @@ const deserializeAws_json1_1GetSegmentDetectionCommandError = async (output, con
|
|
|
2377
2283
|
throw await deserializeAws_json1_1ThrottlingExceptionResponse(parsedOutput, context);
|
|
2378
2284
|
default:
|
|
2379
2285
|
const parsedBody = parsedOutput.body;
|
|
2380
|
-
|
|
2381
|
-
|
|
2382
|
-
|
|
2383
|
-
|
|
2384
|
-
|
|
2385
|
-
$metadata,
|
|
2286
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
2287
|
+
output,
|
|
2288
|
+
parsedBody,
|
|
2289
|
+
exceptionCtor: RekognitionServiceException_1.RekognitionServiceException,
|
|
2290
|
+
errorCode,
|
|
2386
2291
|
});
|
|
2387
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2388
2292
|
}
|
|
2389
2293
|
};
|
|
2390
2294
|
const deserializeAws_json1_1GetTextDetectionCommand = async (output, context) => {
|
|
@@ -2406,7 +2310,6 @@ const deserializeAws_json1_1GetTextDetectionCommandError = async (output, contex
|
|
|
2406
2310
|
...output,
|
|
2407
2311
|
body: await parseBody(output.body, context),
|
|
2408
2312
|
};
|
|
2409
|
-
let response;
|
|
2410
2313
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2411
2314
|
switch (errorCode) {
|
|
2412
2315
|
case "AccessDeniedException":
|
|
@@ -2432,14 +2335,12 @@ const deserializeAws_json1_1GetTextDetectionCommandError = async (output, contex
|
|
|
2432
2335
|
throw await deserializeAws_json1_1ThrottlingExceptionResponse(parsedOutput, context);
|
|
2433
2336
|
default:
|
|
2434
2337
|
const parsedBody = parsedOutput.body;
|
|
2435
|
-
|
|
2436
|
-
|
|
2437
|
-
|
|
2438
|
-
|
|
2439
|
-
|
|
2440
|
-
$metadata,
|
|
2338
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
2339
|
+
output,
|
|
2340
|
+
parsedBody,
|
|
2341
|
+
exceptionCtor: RekognitionServiceException_1.RekognitionServiceException,
|
|
2342
|
+
errorCode,
|
|
2441
2343
|
});
|
|
2442
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2443
2344
|
}
|
|
2444
2345
|
};
|
|
2445
2346
|
const deserializeAws_json1_1IndexFacesCommand = async (output, context) => {
|
|
@@ -2461,7 +2362,6 @@ const deserializeAws_json1_1IndexFacesCommandError = async (output, context) =>
|
|
|
2461
2362
|
...output,
|
|
2462
2363
|
body: await parseBody(output.body, context),
|
|
2463
2364
|
};
|
|
2464
|
-
let response;
|
|
2465
2365
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2466
2366
|
switch (errorCode) {
|
|
2467
2367
|
case "AccessDeniedException":
|
|
@@ -2496,14 +2396,12 @@ const deserializeAws_json1_1IndexFacesCommandError = async (output, context) =>
|
|
|
2496
2396
|
throw await deserializeAws_json1_1ThrottlingExceptionResponse(parsedOutput, context);
|
|
2497
2397
|
default:
|
|
2498
2398
|
const parsedBody = parsedOutput.body;
|
|
2499
|
-
|
|
2500
|
-
|
|
2501
|
-
|
|
2502
|
-
|
|
2503
|
-
|
|
2504
|
-
$metadata,
|
|
2399
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
2400
|
+
output,
|
|
2401
|
+
parsedBody,
|
|
2402
|
+
exceptionCtor: RekognitionServiceException_1.RekognitionServiceException,
|
|
2403
|
+
errorCode,
|
|
2505
2404
|
});
|
|
2506
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2507
2405
|
}
|
|
2508
2406
|
};
|
|
2509
2407
|
const deserializeAws_json1_1ListCollectionsCommand = async (output, context) => {
|
|
@@ -2525,7 +2423,6 @@ const deserializeAws_json1_1ListCollectionsCommandError = async (output, context
|
|
|
2525
2423
|
...output,
|
|
2526
2424
|
body: await parseBody(output.body, context),
|
|
2527
2425
|
};
|
|
2528
|
-
let response;
|
|
2529
2426
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2530
2427
|
switch (errorCode) {
|
|
2531
2428
|
case "AccessDeniedException":
|
|
@@ -2551,14 +2448,12 @@ const deserializeAws_json1_1ListCollectionsCommandError = async (output, context
|
|
|
2551
2448
|
throw await deserializeAws_json1_1ThrottlingExceptionResponse(parsedOutput, context);
|
|
2552
2449
|
default:
|
|
2553
2450
|
const parsedBody = parsedOutput.body;
|
|
2554
|
-
|
|
2555
|
-
|
|
2556
|
-
|
|
2557
|
-
|
|
2558
|
-
|
|
2559
|
-
$metadata,
|
|
2451
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
2452
|
+
output,
|
|
2453
|
+
parsedBody,
|
|
2454
|
+
exceptionCtor: RekognitionServiceException_1.RekognitionServiceException,
|
|
2455
|
+
errorCode,
|
|
2560
2456
|
});
|
|
2561
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2562
2457
|
}
|
|
2563
2458
|
};
|
|
2564
2459
|
const deserializeAws_json1_1ListDatasetEntriesCommand = async (output, context) => {
|
|
@@ -2580,7 +2475,6 @@ const deserializeAws_json1_1ListDatasetEntriesCommandError = async (output, cont
|
|
|
2580
2475
|
...output,
|
|
2581
2476
|
body: await parseBody(output.body, context),
|
|
2582
2477
|
};
|
|
2583
|
-
let response;
|
|
2584
2478
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2585
2479
|
switch (errorCode) {
|
|
2586
2480
|
case "AccessDeniedException":
|
|
@@ -2612,14 +2506,12 @@ const deserializeAws_json1_1ListDatasetEntriesCommandError = async (output, cont
|
|
|
2612
2506
|
throw await deserializeAws_json1_1ThrottlingExceptionResponse(parsedOutput, context);
|
|
2613
2507
|
default:
|
|
2614
2508
|
const parsedBody = parsedOutput.body;
|
|
2615
|
-
|
|
2616
|
-
|
|
2617
|
-
|
|
2618
|
-
|
|
2619
|
-
|
|
2620
|
-
$metadata,
|
|
2509
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
2510
|
+
output,
|
|
2511
|
+
parsedBody,
|
|
2512
|
+
exceptionCtor: RekognitionServiceException_1.RekognitionServiceException,
|
|
2513
|
+
errorCode,
|
|
2621
2514
|
});
|
|
2622
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2623
2515
|
}
|
|
2624
2516
|
};
|
|
2625
2517
|
const deserializeAws_json1_1ListDatasetLabelsCommand = async (output, context) => {
|
|
@@ -2641,7 +2533,6 @@ const deserializeAws_json1_1ListDatasetLabelsCommandError = async (output, conte
|
|
|
2641
2533
|
...output,
|
|
2642
2534
|
body: await parseBody(output.body, context),
|
|
2643
2535
|
};
|
|
2644
|
-
let response;
|
|
2645
2536
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2646
2537
|
switch (errorCode) {
|
|
2647
2538
|
case "AccessDeniedException":
|
|
@@ -2673,14 +2564,12 @@ const deserializeAws_json1_1ListDatasetLabelsCommandError = async (output, conte
|
|
|
2673
2564
|
throw await deserializeAws_json1_1ThrottlingExceptionResponse(parsedOutput, context);
|
|
2674
2565
|
default:
|
|
2675
2566
|
const parsedBody = parsedOutput.body;
|
|
2676
|
-
|
|
2677
|
-
|
|
2678
|
-
|
|
2679
|
-
|
|
2680
|
-
|
|
2681
|
-
$metadata,
|
|
2567
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
2568
|
+
output,
|
|
2569
|
+
parsedBody,
|
|
2570
|
+
exceptionCtor: RekognitionServiceException_1.RekognitionServiceException,
|
|
2571
|
+
errorCode,
|
|
2682
2572
|
});
|
|
2683
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2684
2573
|
}
|
|
2685
2574
|
};
|
|
2686
2575
|
const deserializeAws_json1_1ListFacesCommand = async (output, context) => {
|
|
@@ -2702,7 +2591,6 @@ const deserializeAws_json1_1ListFacesCommandError = async (output, context) => {
|
|
|
2702
2591
|
...output,
|
|
2703
2592
|
body: await parseBody(output.body, context),
|
|
2704
2593
|
};
|
|
2705
|
-
let response;
|
|
2706
2594
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2707
2595
|
switch (errorCode) {
|
|
2708
2596
|
case "AccessDeniedException":
|
|
@@ -2728,14 +2616,12 @@ const deserializeAws_json1_1ListFacesCommandError = async (output, context) => {
|
|
|
2728
2616
|
throw await deserializeAws_json1_1ThrottlingExceptionResponse(parsedOutput, context);
|
|
2729
2617
|
default:
|
|
2730
2618
|
const parsedBody = parsedOutput.body;
|
|
2731
|
-
|
|
2732
|
-
|
|
2733
|
-
|
|
2734
|
-
|
|
2735
|
-
|
|
2736
|
-
$metadata,
|
|
2619
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
2620
|
+
output,
|
|
2621
|
+
parsedBody,
|
|
2622
|
+
exceptionCtor: RekognitionServiceException_1.RekognitionServiceException,
|
|
2623
|
+
errorCode,
|
|
2737
2624
|
});
|
|
2738
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2739
2625
|
}
|
|
2740
2626
|
};
|
|
2741
2627
|
const deserializeAws_json1_1ListStreamProcessorsCommand = async (output, context) => {
|
|
@@ -2757,7 +2643,6 @@ const deserializeAws_json1_1ListStreamProcessorsCommandError = async (output, co
|
|
|
2757
2643
|
...output,
|
|
2758
2644
|
body: await parseBody(output.body, context),
|
|
2759
2645
|
};
|
|
2760
|
-
let response;
|
|
2761
2646
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2762
2647
|
switch (errorCode) {
|
|
2763
2648
|
case "AccessDeniedException":
|
|
@@ -2780,14 +2665,12 @@ const deserializeAws_json1_1ListStreamProcessorsCommandError = async (output, co
|
|
|
2780
2665
|
throw await deserializeAws_json1_1ThrottlingExceptionResponse(parsedOutput, context);
|
|
2781
2666
|
default:
|
|
2782
2667
|
const parsedBody = parsedOutput.body;
|
|
2783
|
-
|
|
2784
|
-
|
|
2785
|
-
|
|
2786
|
-
|
|
2787
|
-
|
|
2788
|
-
$metadata,
|
|
2668
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
2669
|
+
output,
|
|
2670
|
+
parsedBody,
|
|
2671
|
+
exceptionCtor: RekognitionServiceException_1.RekognitionServiceException,
|
|
2672
|
+
errorCode,
|
|
2789
2673
|
});
|
|
2790
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2791
2674
|
}
|
|
2792
2675
|
};
|
|
2793
2676
|
const deserializeAws_json1_1ListTagsForResourceCommand = async (output, context) => {
|
|
@@ -2809,7 +2692,6 @@ const deserializeAws_json1_1ListTagsForResourceCommandError = async (output, con
|
|
|
2809
2692
|
...output,
|
|
2810
2693
|
body: await parseBody(output.body, context),
|
|
2811
2694
|
};
|
|
2812
|
-
let response;
|
|
2813
2695
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2814
2696
|
switch (errorCode) {
|
|
2815
2697
|
case "AccessDeniedException":
|
|
@@ -2832,14 +2714,12 @@ const deserializeAws_json1_1ListTagsForResourceCommandError = async (output, con
|
|
|
2832
2714
|
throw await deserializeAws_json1_1ThrottlingExceptionResponse(parsedOutput, context);
|
|
2833
2715
|
default:
|
|
2834
2716
|
const parsedBody = parsedOutput.body;
|
|
2835
|
-
|
|
2836
|
-
|
|
2837
|
-
|
|
2838
|
-
|
|
2839
|
-
|
|
2840
|
-
$metadata,
|
|
2717
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
2718
|
+
output,
|
|
2719
|
+
parsedBody,
|
|
2720
|
+
exceptionCtor: RekognitionServiceException_1.RekognitionServiceException,
|
|
2721
|
+
errorCode,
|
|
2841
2722
|
});
|
|
2842
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2843
2723
|
}
|
|
2844
2724
|
};
|
|
2845
2725
|
const deserializeAws_json1_1RecognizeCelebritiesCommand = async (output, context) => {
|
|
@@ -2861,7 +2741,6 @@ const deserializeAws_json1_1RecognizeCelebritiesCommandError = async (output, co
|
|
|
2861
2741
|
...output,
|
|
2862
2742
|
body: await parseBody(output.body, context),
|
|
2863
2743
|
};
|
|
2864
|
-
let response;
|
|
2865
2744
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2866
2745
|
switch (errorCode) {
|
|
2867
2746
|
case "AccessDeniedException":
|
|
@@ -2890,14 +2769,12 @@ const deserializeAws_json1_1RecognizeCelebritiesCommandError = async (output, co
|
|
|
2890
2769
|
throw await deserializeAws_json1_1ThrottlingExceptionResponse(parsedOutput, context);
|
|
2891
2770
|
default:
|
|
2892
2771
|
const parsedBody = parsedOutput.body;
|
|
2893
|
-
|
|
2894
|
-
|
|
2895
|
-
|
|
2896
|
-
|
|
2897
|
-
|
|
2898
|
-
$metadata,
|
|
2772
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
2773
|
+
output,
|
|
2774
|
+
parsedBody,
|
|
2775
|
+
exceptionCtor: RekognitionServiceException_1.RekognitionServiceException,
|
|
2776
|
+
errorCode,
|
|
2899
2777
|
});
|
|
2900
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2901
2778
|
}
|
|
2902
2779
|
};
|
|
2903
2780
|
const deserializeAws_json1_1SearchFacesCommand = async (output, context) => {
|
|
@@ -2919,7 +2796,6 @@ const deserializeAws_json1_1SearchFacesCommandError = async (output, context) =>
|
|
|
2919
2796
|
...output,
|
|
2920
2797
|
body: await parseBody(output.body, context),
|
|
2921
2798
|
};
|
|
2922
|
-
let response;
|
|
2923
2799
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2924
2800
|
switch (errorCode) {
|
|
2925
2801
|
case "AccessDeniedException":
|
|
@@ -2942,14 +2818,12 @@ const deserializeAws_json1_1SearchFacesCommandError = async (output, context) =>
|
|
|
2942
2818
|
throw await deserializeAws_json1_1ThrottlingExceptionResponse(parsedOutput, context);
|
|
2943
2819
|
default:
|
|
2944
2820
|
const parsedBody = parsedOutput.body;
|
|
2945
|
-
|
|
2946
|
-
|
|
2947
|
-
|
|
2948
|
-
|
|
2949
|
-
|
|
2950
|
-
$metadata,
|
|
2821
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
2822
|
+
output,
|
|
2823
|
+
parsedBody,
|
|
2824
|
+
exceptionCtor: RekognitionServiceException_1.RekognitionServiceException,
|
|
2825
|
+
errorCode,
|
|
2951
2826
|
});
|
|
2952
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2953
2827
|
}
|
|
2954
2828
|
};
|
|
2955
2829
|
const deserializeAws_json1_1SearchFacesByImageCommand = async (output, context) => {
|
|
@@ -2971,7 +2845,6 @@ const deserializeAws_json1_1SearchFacesByImageCommandError = async (output, cont
|
|
|
2971
2845
|
...output,
|
|
2972
2846
|
body: await parseBody(output.body, context),
|
|
2973
2847
|
};
|
|
2974
|
-
let response;
|
|
2975
2848
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2976
2849
|
switch (errorCode) {
|
|
2977
2850
|
case "AccessDeniedException":
|
|
@@ -3003,14 +2876,12 @@ const deserializeAws_json1_1SearchFacesByImageCommandError = async (output, cont
|
|
|
3003
2876
|
throw await deserializeAws_json1_1ThrottlingExceptionResponse(parsedOutput, context);
|
|
3004
2877
|
default:
|
|
3005
2878
|
const parsedBody = parsedOutput.body;
|
|
3006
|
-
|
|
3007
|
-
|
|
3008
|
-
|
|
3009
|
-
|
|
3010
|
-
|
|
3011
|
-
$metadata,
|
|
2879
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
2880
|
+
output,
|
|
2881
|
+
parsedBody,
|
|
2882
|
+
exceptionCtor: RekognitionServiceException_1.RekognitionServiceException,
|
|
2883
|
+
errorCode,
|
|
3012
2884
|
});
|
|
3013
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
3014
2885
|
}
|
|
3015
2886
|
};
|
|
3016
2887
|
const deserializeAws_json1_1StartCelebrityRecognitionCommand = async (output, context) => {
|
|
@@ -3032,7 +2903,6 @@ const deserializeAws_json1_1StartCelebrityRecognitionCommandError = async (outpu
|
|
|
3032
2903
|
...output,
|
|
3033
2904
|
body: await parseBody(output.body, context),
|
|
3034
2905
|
};
|
|
3035
|
-
let response;
|
|
3036
2906
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3037
2907
|
switch (errorCode) {
|
|
3038
2908
|
case "AccessDeniedException":
|
|
@@ -3064,14 +2934,12 @@ const deserializeAws_json1_1StartCelebrityRecognitionCommandError = async (outpu
|
|
|
3064
2934
|
throw await deserializeAws_json1_1VideoTooLargeExceptionResponse(parsedOutput, context);
|
|
3065
2935
|
default:
|
|
3066
2936
|
const parsedBody = parsedOutput.body;
|
|
3067
|
-
|
|
3068
|
-
|
|
3069
|
-
|
|
3070
|
-
|
|
3071
|
-
|
|
3072
|
-
$metadata,
|
|
2937
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
2938
|
+
output,
|
|
2939
|
+
parsedBody,
|
|
2940
|
+
exceptionCtor: RekognitionServiceException_1.RekognitionServiceException,
|
|
2941
|
+
errorCode,
|
|
3073
2942
|
});
|
|
3074
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
3075
2943
|
}
|
|
3076
2944
|
};
|
|
3077
2945
|
const deserializeAws_json1_1StartContentModerationCommand = async (output, context) => {
|
|
@@ -3093,7 +2961,6 @@ const deserializeAws_json1_1StartContentModerationCommandError = async (output,
|
|
|
3093
2961
|
...output,
|
|
3094
2962
|
body: await parseBody(output.body, context),
|
|
3095
2963
|
};
|
|
3096
|
-
let response;
|
|
3097
2964
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3098
2965
|
switch (errorCode) {
|
|
3099
2966
|
case "AccessDeniedException":
|
|
@@ -3125,14 +2992,12 @@ const deserializeAws_json1_1StartContentModerationCommandError = async (output,
|
|
|
3125
2992
|
throw await deserializeAws_json1_1VideoTooLargeExceptionResponse(parsedOutput, context);
|
|
3126
2993
|
default:
|
|
3127
2994
|
const parsedBody = parsedOutput.body;
|
|
3128
|
-
|
|
3129
|
-
|
|
3130
|
-
|
|
3131
|
-
|
|
3132
|
-
|
|
3133
|
-
$metadata,
|
|
2995
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
2996
|
+
output,
|
|
2997
|
+
parsedBody,
|
|
2998
|
+
exceptionCtor: RekognitionServiceException_1.RekognitionServiceException,
|
|
2999
|
+
errorCode,
|
|
3134
3000
|
});
|
|
3135
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
3136
3001
|
}
|
|
3137
3002
|
};
|
|
3138
3003
|
const deserializeAws_json1_1StartFaceDetectionCommand = async (output, context) => {
|
|
@@ -3154,7 +3019,6 @@ const deserializeAws_json1_1StartFaceDetectionCommandError = async (output, cont
|
|
|
3154
3019
|
...output,
|
|
3155
3020
|
body: await parseBody(output.body, context),
|
|
3156
3021
|
};
|
|
3157
|
-
let response;
|
|
3158
3022
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3159
3023
|
switch (errorCode) {
|
|
3160
3024
|
case "AccessDeniedException":
|
|
@@ -3186,14 +3050,12 @@ const deserializeAws_json1_1StartFaceDetectionCommandError = async (output, cont
|
|
|
3186
3050
|
throw await deserializeAws_json1_1VideoTooLargeExceptionResponse(parsedOutput, context);
|
|
3187
3051
|
default:
|
|
3188
3052
|
const parsedBody = parsedOutput.body;
|
|
3189
|
-
|
|
3190
|
-
|
|
3191
|
-
|
|
3192
|
-
|
|
3193
|
-
|
|
3194
|
-
$metadata,
|
|
3053
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
3054
|
+
output,
|
|
3055
|
+
parsedBody,
|
|
3056
|
+
exceptionCtor: RekognitionServiceException_1.RekognitionServiceException,
|
|
3057
|
+
errorCode,
|
|
3195
3058
|
});
|
|
3196
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
3197
3059
|
}
|
|
3198
3060
|
};
|
|
3199
3061
|
const deserializeAws_json1_1StartFaceSearchCommand = async (output, context) => {
|
|
@@ -3215,7 +3077,6 @@ const deserializeAws_json1_1StartFaceSearchCommandError = async (output, context
|
|
|
3215
3077
|
...output,
|
|
3216
3078
|
body: await parseBody(output.body, context),
|
|
3217
3079
|
};
|
|
3218
|
-
let response;
|
|
3219
3080
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3220
3081
|
switch (errorCode) {
|
|
3221
3082
|
case "AccessDeniedException":
|
|
@@ -3250,14 +3111,12 @@ const deserializeAws_json1_1StartFaceSearchCommandError = async (output, context
|
|
|
3250
3111
|
throw await deserializeAws_json1_1VideoTooLargeExceptionResponse(parsedOutput, context);
|
|
3251
3112
|
default:
|
|
3252
3113
|
const parsedBody = parsedOutput.body;
|
|
3253
|
-
|
|
3254
|
-
|
|
3255
|
-
|
|
3256
|
-
|
|
3257
|
-
|
|
3258
|
-
$metadata,
|
|
3114
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
3115
|
+
output,
|
|
3116
|
+
parsedBody,
|
|
3117
|
+
exceptionCtor: RekognitionServiceException_1.RekognitionServiceException,
|
|
3118
|
+
errorCode,
|
|
3259
3119
|
});
|
|
3260
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
3261
3120
|
}
|
|
3262
3121
|
};
|
|
3263
3122
|
const deserializeAws_json1_1StartLabelDetectionCommand = async (output, context) => {
|
|
@@ -3279,7 +3138,6 @@ const deserializeAws_json1_1StartLabelDetectionCommandError = async (output, con
|
|
|
3279
3138
|
...output,
|
|
3280
3139
|
body: await parseBody(output.body, context),
|
|
3281
3140
|
};
|
|
3282
|
-
let response;
|
|
3283
3141
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3284
3142
|
switch (errorCode) {
|
|
3285
3143
|
case "AccessDeniedException":
|
|
@@ -3311,14 +3169,12 @@ const deserializeAws_json1_1StartLabelDetectionCommandError = async (output, con
|
|
|
3311
3169
|
throw await deserializeAws_json1_1VideoTooLargeExceptionResponse(parsedOutput, context);
|
|
3312
3170
|
default:
|
|
3313
3171
|
const parsedBody = parsedOutput.body;
|
|
3314
|
-
|
|
3315
|
-
|
|
3316
|
-
|
|
3317
|
-
|
|
3318
|
-
|
|
3319
|
-
$metadata,
|
|
3172
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
3173
|
+
output,
|
|
3174
|
+
parsedBody,
|
|
3175
|
+
exceptionCtor: RekognitionServiceException_1.RekognitionServiceException,
|
|
3176
|
+
errorCode,
|
|
3320
3177
|
});
|
|
3321
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
3322
3178
|
}
|
|
3323
3179
|
};
|
|
3324
3180
|
const deserializeAws_json1_1StartPersonTrackingCommand = async (output, context) => {
|
|
@@ -3340,7 +3196,6 @@ const deserializeAws_json1_1StartPersonTrackingCommandError = async (output, con
|
|
|
3340
3196
|
...output,
|
|
3341
3197
|
body: await parseBody(output.body, context),
|
|
3342
3198
|
};
|
|
3343
|
-
let response;
|
|
3344
3199
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3345
3200
|
switch (errorCode) {
|
|
3346
3201
|
case "AccessDeniedException":
|
|
@@ -3372,14 +3227,12 @@ const deserializeAws_json1_1StartPersonTrackingCommandError = async (output, con
|
|
|
3372
3227
|
throw await deserializeAws_json1_1VideoTooLargeExceptionResponse(parsedOutput, context);
|
|
3373
3228
|
default:
|
|
3374
3229
|
const parsedBody = parsedOutput.body;
|
|
3375
|
-
|
|
3376
|
-
|
|
3377
|
-
|
|
3378
|
-
|
|
3379
|
-
|
|
3380
|
-
$metadata,
|
|
3230
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
3231
|
+
output,
|
|
3232
|
+
parsedBody,
|
|
3233
|
+
exceptionCtor: RekognitionServiceException_1.RekognitionServiceException,
|
|
3234
|
+
errorCode,
|
|
3381
3235
|
});
|
|
3382
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
3383
3236
|
}
|
|
3384
3237
|
};
|
|
3385
3238
|
const deserializeAws_json1_1StartProjectVersionCommand = async (output, context) => {
|
|
@@ -3401,7 +3254,6 @@ const deserializeAws_json1_1StartProjectVersionCommandError = async (output, con
|
|
|
3401
3254
|
...output,
|
|
3402
3255
|
body: await parseBody(output.body, context),
|
|
3403
3256
|
};
|
|
3404
|
-
let response;
|
|
3405
3257
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3406
3258
|
switch (errorCode) {
|
|
3407
3259
|
case "AccessDeniedException":
|
|
@@ -3430,14 +3282,12 @@ const deserializeAws_json1_1StartProjectVersionCommandError = async (output, con
|
|
|
3430
3282
|
throw await deserializeAws_json1_1ThrottlingExceptionResponse(parsedOutput, context);
|
|
3431
3283
|
default:
|
|
3432
3284
|
const parsedBody = parsedOutput.body;
|
|
3433
|
-
|
|
3434
|
-
|
|
3435
|
-
|
|
3436
|
-
|
|
3437
|
-
|
|
3438
|
-
$metadata,
|
|
3285
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
3286
|
+
output,
|
|
3287
|
+
parsedBody,
|
|
3288
|
+
exceptionCtor: RekognitionServiceException_1.RekognitionServiceException,
|
|
3289
|
+
errorCode,
|
|
3439
3290
|
});
|
|
3440
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
3441
3291
|
}
|
|
3442
3292
|
};
|
|
3443
3293
|
const deserializeAws_json1_1StartSegmentDetectionCommand = async (output, context) => {
|
|
@@ -3459,7 +3309,6 @@ const deserializeAws_json1_1StartSegmentDetectionCommandError = async (output, c
|
|
|
3459
3309
|
...output,
|
|
3460
3310
|
body: await parseBody(output.body, context),
|
|
3461
3311
|
};
|
|
3462
|
-
let response;
|
|
3463
3312
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3464
3313
|
switch (errorCode) {
|
|
3465
3314
|
case "AccessDeniedException":
|
|
@@ -3491,14 +3340,12 @@ const deserializeAws_json1_1StartSegmentDetectionCommandError = async (output, c
|
|
|
3491
3340
|
throw await deserializeAws_json1_1VideoTooLargeExceptionResponse(parsedOutput, context);
|
|
3492
3341
|
default:
|
|
3493
3342
|
const parsedBody = parsedOutput.body;
|
|
3494
|
-
|
|
3495
|
-
|
|
3496
|
-
|
|
3497
|
-
|
|
3498
|
-
|
|
3499
|
-
$metadata,
|
|
3343
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
3344
|
+
output,
|
|
3345
|
+
parsedBody,
|
|
3346
|
+
exceptionCtor: RekognitionServiceException_1.RekognitionServiceException,
|
|
3347
|
+
errorCode,
|
|
3500
3348
|
});
|
|
3501
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
3502
3349
|
}
|
|
3503
3350
|
};
|
|
3504
3351
|
const deserializeAws_json1_1StartStreamProcessorCommand = async (output, context) => {
|
|
@@ -3520,7 +3367,6 @@ const deserializeAws_json1_1StartStreamProcessorCommandError = async (output, co
|
|
|
3520
3367
|
...output,
|
|
3521
3368
|
body: await parseBody(output.body, context),
|
|
3522
3369
|
};
|
|
3523
|
-
let response;
|
|
3524
3370
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3525
3371
|
switch (errorCode) {
|
|
3526
3372
|
case "AccessDeniedException":
|
|
@@ -3546,14 +3392,12 @@ const deserializeAws_json1_1StartStreamProcessorCommandError = async (output, co
|
|
|
3546
3392
|
throw await deserializeAws_json1_1ThrottlingExceptionResponse(parsedOutput, context);
|
|
3547
3393
|
default:
|
|
3548
3394
|
const parsedBody = parsedOutput.body;
|
|
3549
|
-
|
|
3550
|
-
|
|
3551
|
-
|
|
3552
|
-
|
|
3553
|
-
|
|
3554
|
-
$metadata,
|
|
3395
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
3396
|
+
output,
|
|
3397
|
+
parsedBody,
|
|
3398
|
+
exceptionCtor: RekognitionServiceException_1.RekognitionServiceException,
|
|
3399
|
+
errorCode,
|
|
3555
3400
|
});
|
|
3556
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
3557
3401
|
}
|
|
3558
3402
|
};
|
|
3559
3403
|
const deserializeAws_json1_1StartTextDetectionCommand = async (output, context) => {
|
|
@@ -3575,7 +3419,6 @@ const deserializeAws_json1_1StartTextDetectionCommandError = async (output, cont
|
|
|
3575
3419
|
...output,
|
|
3576
3420
|
body: await parseBody(output.body, context),
|
|
3577
3421
|
};
|
|
3578
|
-
let response;
|
|
3579
3422
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3580
3423
|
switch (errorCode) {
|
|
3581
3424
|
case "AccessDeniedException":
|
|
@@ -3607,14 +3450,12 @@ const deserializeAws_json1_1StartTextDetectionCommandError = async (output, cont
|
|
|
3607
3450
|
throw await deserializeAws_json1_1VideoTooLargeExceptionResponse(parsedOutput, context);
|
|
3608
3451
|
default:
|
|
3609
3452
|
const parsedBody = parsedOutput.body;
|
|
3610
|
-
|
|
3611
|
-
|
|
3612
|
-
|
|
3613
|
-
|
|
3614
|
-
|
|
3615
|
-
$metadata,
|
|
3453
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
3454
|
+
output,
|
|
3455
|
+
parsedBody,
|
|
3456
|
+
exceptionCtor: RekognitionServiceException_1.RekognitionServiceException,
|
|
3457
|
+
errorCode,
|
|
3616
3458
|
});
|
|
3617
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
3618
3459
|
}
|
|
3619
3460
|
};
|
|
3620
3461
|
const deserializeAws_json1_1StopProjectVersionCommand = async (output, context) => {
|
|
@@ -3636,7 +3477,6 @@ const deserializeAws_json1_1StopProjectVersionCommandError = async (output, cont
|
|
|
3636
3477
|
...output,
|
|
3637
3478
|
body: await parseBody(output.body, context),
|
|
3638
3479
|
};
|
|
3639
|
-
let response;
|
|
3640
3480
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3641
3481
|
switch (errorCode) {
|
|
3642
3482
|
case "AccessDeniedException":
|
|
@@ -3662,14 +3502,12 @@ const deserializeAws_json1_1StopProjectVersionCommandError = async (output, cont
|
|
|
3662
3502
|
throw await deserializeAws_json1_1ThrottlingExceptionResponse(parsedOutput, context);
|
|
3663
3503
|
default:
|
|
3664
3504
|
const parsedBody = parsedOutput.body;
|
|
3665
|
-
|
|
3666
|
-
|
|
3667
|
-
|
|
3668
|
-
|
|
3669
|
-
|
|
3670
|
-
$metadata,
|
|
3505
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
3506
|
+
output,
|
|
3507
|
+
parsedBody,
|
|
3508
|
+
exceptionCtor: RekognitionServiceException_1.RekognitionServiceException,
|
|
3509
|
+
errorCode,
|
|
3671
3510
|
});
|
|
3672
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
3673
3511
|
}
|
|
3674
3512
|
};
|
|
3675
3513
|
const deserializeAws_json1_1StopStreamProcessorCommand = async (output, context) => {
|
|
@@ -3691,7 +3529,6 @@ const deserializeAws_json1_1StopStreamProcessorCommandError = async (output, con
|
|
|
3691
3529
|
...output,
|
|
3692
3530
|
body: await parseBody(output.body, context),
|
|
3693
3531
|
};
|
|
3694
|
-
let response;
|
|
3695
3532
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3696
3533
|
switch (errorCode) {
|
|
3697
3534
|
case "AccessDeniedException":
|
|
@@ -3717,14 +3554,12 @@ const deserializeAws_json1_1StopStreamProcessorCommandError = async (output, con
|
|
|
3717
3554
|
throw await deserializeAws_json1_1ThrottlingExceptionResponse(parsedOutput, context);
|
|
3718
3555
|
default:
|
|
3719
3556
|
const parsedBody = parsedOutput.body;
|
|
3720
|
-
|
|
3721
|
-
|
|
3722
|
-
|
|
3723
|
-
|
|
3724
|
-
|
|
3725
|
-
$metadata,
|
|
3557
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
3558
|
+
output,
|
|
3559
|
+
parsedBody,
|
|
3560
|
+
exceptionCtor: RekognitionServiceException_1.RekognitionServiceException,
|
|
3561
|
+
errorCode,
|
|
3726
3562
|
});
|
|
3727
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
3728
3563
|
}
|
|
3729
3564
|
};
|
|
3730
3565
|
const deserializeAws_json1_1TagResourceCommand = async (output, context) => {
|
|
@@ -3746,7 +3581,6 @@ const deserializeAws_json1_1TagResourceCommandError = async (output, context) =>
|
|
|
3746
3581
|
...output,
|
|
3747
3582
|
body: await parseBody(output.body, context),
|
|
3748
3583
|
};
|
|
3749
|
-
let response;
|
|
3750
3584
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3751
3585
|
switch (errorCode) {
|
|
3752
3586
|
case "AccessDeniedException":
|
|
@@ -3772,14 +3606,12 @@ const deserializeAws_json1_1TagResourceCommandError = async (output, context) =>
|
|
|
3772
3606
|
throw await deserializeAws_json1_1ThrottlingExceptionResponse(parsedOutput, context);
|
|
3773
3607
|
default:
|
|
3774
3608
|
const parsedBody = parsedOutput.body;
|
|
3775
|
-
|
|
3776
|
-
|
|
3777
|
-
|
|
3778
|
-
|
|
3779
|
-
|
|
3780
|
-
$metadata,
|
|
3609
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
3610
|
+
output,
|
|
3611
|
+
parsedBody,
|
|
3612
|
+
exceptionCtor: RekognitionServiceException_1.RekognitionServiceException,
|
|
3613
|
+
errorCode,
|
|
3781
3614
|
});
|
|
3782
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
3783
3615
|
}
|
|
3784
3616
|
};
|
|
3785
3617
|
const deserializeAws_json1_1UntagResourceCommand = async (output, context) => {
|
|
@@ -3801,7 +3633,6 @@ const deserializeAws_json1_1UntagResourceCommandError = async (output, context)
|
|
|
3801
3633
|
...output,
|
|
3802
3634
|
body: await parseBody(output.body, context),
|
|
3803
3635
|
};
|
|
3804
|
-
let response;
|
|
3805
3636
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3806
3637
|
switch (errorCode) {
|
|
3807
3638
|
case "AccessDeniedException":
|
|
@@ -3824,14 +3655,12 @@ const deserializeAws_json1_1UntagResourceCommandError = async (output, context)
|
|
|
3824
3655
|
throw await deserializeAws_json1_1ThrottlingExceptionResponse(parsedOutput, context);
|
|
3825
3656
|
default:
|
|
3826
3657
|
const parsedBody = parsedOutput.body;
|
|
3827
|
-
|
|
3828
|
-
|
|
3829
|
-
|
|
3830
|
-
|
|
3831
|
-
|
|
3832
|
-
$metadata,
|
|
3658
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
3659
|
+
output,
|
|
3660
|
+
parsedBody,
|
|
3661
|
+
exceptionCtor: RekognitionServiceException_1.RekognitionServiceException,
|
|
3662
|
+
errorCode,
|
|
3833
3663
|
});
|
|
3834
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
3835
3664
|
}
|
|
3836
3665
|
};
|
|
3837
3666
|
const deserializeAws_json1_1UpdateDatasetEntriesCommand = async (output, context) => {
|
|
@@ -3853,7 +3682,6 @@ const deserializeAws_json1_1UpdateDatasetEntriesCommandError = async (output, co
|
|
|
3853
3682
|
...output,
|
|
3854
3683
|
body: await parseBody(output.body, context),
|
|
3855
3684
|
};
|
|
3856
|
-
let response;
|
|
3857
3685
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3858
3686
|
switch (errorCode) {
|
|
3859
3687
|
case "AccessDeniedException":
|
|
@@ -3882,14 +3710,12 @@ const deserializeAws_json1_1UpdateDatasetEntriesCommandError = async (output, co
|
|
|
3882
3710
|
throw await deserializeAws_json1_1ThrottlingExceptionResponse(parsedOutput, context);
|
|
3883
3711
|
default:
|
|
3884
3712
|
const parsedBody = parsedOutput.body;
|
|
3885
|
-
|
|
3886
|
-
|
|
3887
|
-
|
|
3888
|
-
|
|
3889
|
-
|
|
3890
|
-
$metadata,
|
|
3713
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
3714
|
+
output,
|
|
3715
|
+
parsedBody,
|
|
3716
|
+
exceptionCtor: RekognitionServiceException_1.RekognitionServiceException,
|
|
3717
|
+
errorCode,
|
|
3891
3718
|
});
|
|
3892
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
3893
3719
|
}
|
|
3894
3720
|
};
|
|
3895
3721
|
const deserializeAws_json1_1UpdateStreamProcessorCommand = async (output, context) => {
|
|
@@ -3911,7 +3737,6 @@ const deserializeAws_json1_1UpdateStreamProcessorCommandError = async (output, c
|
|
|
3911
3737
|
...output,
|
|
3912
3738
|
body: await parseBody(output.body, context),
|
|
3913
3739
|
};
|
|
3914
|
-
let response;
|
|
3915
3740
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3916
3741
|
switch (errorCode) {
|
|
3917
3742
|
case "AccessDeniedException":
|
|
@@ -3934,14 +3759,12 @@ const deserializeAws_json1_1UpdateStreamProcessorCommandError = async (output, c
|
|
|
3934
3759
|
throw await deserializeAws_json1_1ThrottlingExceptionResponse(parsedOutput, context);
|
|
3935
3760
|
default:
|
|
3936
3761
|
const parsedBody = parsedOutput.body;
|
|
3937
|
-
|
|
3938
|
-
|
|
3939
|
-
|
|
3940
|
-
|
|
3941
|
-
|
|
3942
|
-
$metadata,
|
|
3762
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
3763
|
+
output,
|
|
3764
|
+
parsedBody,
|
|
3765
|
+
exceptionCtor: RekognitionServiceException_1.RekognitionServiceException,
|
|
3766
|
+
errorCode,
|
|
3943
3767
|
});
|
|
3944
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
3945
3768
|
}
|
|
3946
3769
|
};
|
|
3947
3770
|
const deserializeAws_json1_1AccessDeniedExceptionResponse = async (parsedOutput, context) => {
|
|
@@ -4117,9 +3940,6 @@ const serializeAws_json1_1Assets = (input, context) => {
|
|
|
4117
3940
|
return input
|
|
4118
3941
|
.filter((e) => e != null)
|
|
4119
3942
|
.map((entry) => {
|
|
4120
|
-
if (entry === null) {
|
|
4121
|
-
return null;
|
|
4122
|
-
}
|
|
4123
3943
|
return serializeAws_json1_1Asset(entry, context);
|
|
4124
3944
|
});
|
|
4125
3945
|
};
|
|
@@ -4127,9 +3947,6 @@ const serializeAws_json1_1Attributes = (input, context) => {
|
|
|
4127
3947
|
return input
|
|
4128
3948
|
.filter((e) => e != null)
|
|
4129
3949
|
.map((entry) => {
|
|
4130
|
-
if (entry === null) {
|
|
4131
|
-
return null;
|
|
4132
|
-
}
|
|
4133
3950
|
return entry;
|
|
4134
3951
|
});
|
|
4135
3952
|
};
|
|
@@ -4161,9 +3978,6 @@ const serializeAws_json1_1ConnectedHomeLabels = (input, context) => {
|
|
|
4161
3978
|
return input
|
|
4162
3979
|
.filter((e) => e != null)
|
|
4163
3980
|
.map((entry) => {
|
|
4164
|
-
if (entry === null) {
|
|
4165
|
-
return null;
|
|
4166
|
-
}
|
|
4167
3981
|
return entry;
|
|
4168
3982
|
});
|
|
4169
3983
|
};
|
|
@@ -4183,9 +3997,6 @@ const serializeAws_json1_1ContentClassifiers = (input, context) => {
|
|
|
4183
3997
|
return input
|
|
4184
3998
|
.filter((e) => e != null)
|
|
4185
3999
|
.map((entry) => {
|
|
4186
|
-
if (entry === null) {
|
|
4187
|
-
return null;
|
|
4188
|
-
}
|
|
4189
4000
|
return entry;
|
|
4190
4001
|
});
|
|
4191
4002
|
};
|
|
@@ -4249,9 +4060,6 @@ const serializeAws_json1_1DatasetLabels = (input, context) => {
|
|
|
4249
4060
|
return input
|
|
4250
4061
|
.filter((e) => e != null)
|
|
4251
4062
|
.map((entry) => {
|
|
4252
|
-
if (entry === null) {
|
|
4253
|
-
return null;
|
|
4254
|
-
}
|
|
4255
4063
|
return entry;
|
|
4256
4064
|
});
|
|
4257
4065
|
};
|
|
@@ -4399,9 +4207,6 @@ const serializeAws_json1_1DistributeDatasetMetadataList = (input, context) => {
|
|
|
4399
4207
|
return input
|
|
4400
4208
|
.filter((e) => e != null)
|
|
4401
4209
|
.map((entry) => {
|
|
4402
|
-
if (entry === null) {
|
|
4403
|
-
return null;
|
|
4404
|
-
}
|
|
4405
4210
|
return serializeAws_json1_1DistributeDataset(entry, context);
|
|
4406
4211
|
});
|
|
4407
4212
|
};
|
|
@@ -4409,9 +4214,6 @@ const serializeAws_json1_1FaceIdList = (input, context) => {
|
|
|
4409
4214
|
return input
|
|
4410
4215
|
.filter((e) => e != null)
|
|
4411
4216
|
.map((entry) => {
|
|
4412
|
-
if (entry === null) {
|
|
4413
|
-
return null;
|
|
4414
|
-
}
|
|
4415
4217
|
return entry;
|
|
4416
4218
|
});
|
|
4417
4219
|
};
|
|
@@ -4608,9 +4410,6 @@ const serializeAws_json1_1Polygon = (input, context) => {
|
|
|
4608
4410
|
return input
|
|
4609
4411
|
.filter((e) => e != null)
|
|
4610
4412
|
.map((entry) => {
|
|
4611
|
-
if (entry === null) {
|
|
4612
|
-
return null;
|
|
4613
|
-
}
|
|
4614
4413
|
return serializeAws_json1_1Point(entry, context);
|
|
4615
4414
|
});
|
|
4616
4415
|
};
|
|
@@ -4618,9 +4417,6 @@ const serializeAws_json1_1ProjectNames = (input, context) => {
|
|
|
4618
4417
|
return input
|
|
4619
4418
|
.filter((e) => e != null)
|
|
4620
4419
|
.map((entry) => {
|
|
4621
|
-
if (entry === null) {
|
|
4622
|
-
return null;
|
|
4623
|
-
}
|
|
4624
4420
|
return entry;
|
|
4625
4421
|
});
|
|
4626
4422
|
};
|
|
@@ -4636,9 +4432,6 @@ const serializeAws_json1_1ProtectiveEquipmentTypes = (input, context) => {
|
|
|
4636
4432
|
return input
|
|
4637
4433
|
.filter((e) => e != null)
|
|
4638
4434
|
.map((entry) => {
|
|
4639
|
-
if (entry === null) {
|
|
4640
|
-
return null;
|
|
4641
|
-
}
|
|
4642
4435
|
return entry;
|
|
4643
4436
|
});
|
|
4644
4437
|
};
|
|
@@ -4657,9 +4450,6 @@ const serializeAws_json1_1RegionsOfInterest = (input, context) => {
|
|
|
4657
4450
|
return input
|
|
4658
4451
|
.filter((e) => e != null)
|
|
4659
4452
|
.map((entry) => {
|
|
4660
|
-
if (entry === null) {
|
|
4661
|
-
return null;
|
|
4662
|
-
}
|
|
4663
4453
|
return serializeAws_json1_1RegionOfInterest(entry, context);
|
|
4664
4454
|
});
|
|
4665
4455
|
};
|
|
@@ -4697,9 +4487,6 @@ const serializeAws_json1_1SegmentTypes = (input, context) => {
|
|
|
4697
4487
|
return input
|
|
4698
4488
|
.filter((e) => e != null)
|
|
4699
4489
|
.map((entry) => {
|
|
4700
|
-
if (entry === null) {
|
|
4701
|
-
return null;
|
|
4702
|
-
}
|
|
4703
4490
|
return entry;
|
|
4704
4491
|
});
|
|
4705
4492
|
};
|
|
@@ -4891,9 +4678,6 @@ const serializeAws_json1_1StreamProcessorParametersToDelete = (input, context) =
|
|
|
4891
4678
|
return input
|
|
4892
4679
|
.filter((e) => e != null)
|
|
4893
4680
|
.map((entry) => {
|
|
4894
|
-
if (entry === null) {
|
|
4895
|
-
return null;
|
|
4896
|
-
}
|
|
4897
4681
|
return entry;
|
|
4898
4682
|
});
|
|
4899
4683
|
};
|
|
@@ -4916,9 +4700,6 @@ const serializeAws_json1_1TagKeyList = (input, context) => {
|
|
|
4916
4700
|
return input
|
|
4917
4701
|
.filter((e) => e != null)
|
|
4918
4702
|
.map((entry) => {
|
|
4919
|
-
if (entry === null) {
|
|
4920
|
-
return null;
|
|
4921
|
-
}
|
|
4922
4703
|
return entry;
|
|
4923
4704
|
});
|
|
4924
4705
|
};
|
|
@@ -4983,9 +4764,6 @@ const serializeAws_json1_1VersionNames = (input, context) => {
|
|
|
4983
4764
|
return input
|
|
4984
4765
|
.filter((e) => e != null)
|
|
4985
4766
|
.map((entry) => {
|
|
4986
|
-
if (entry === null) {
|
|
4987
|
-
return null;
|
|
4988
|
-
}
|
|
4989
4767
|
return entry;
|
|
4990
4768
|
});
|
|
4991
4769
|
};
|