@aws-sdk/client-frauddetector 3.137.0 → 3.145.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 +30 -0
- package/README.md +1 -1
- package/dist-cjs/protocols/Aws_json1_1.js +340 -571
- package/dist-es/protocols/Aws_json1_1.js +545 -572
- package/package.json +11 -6
|
@@ -705,7 +705,6 @@ const deserializeAws_json1_1BatchCreateVariableCommandError = async (output, con
|
|
|
705
705
|
...output,
|
|
706
706
|
body: await parseBody(output.body, context),
|
|
707
707
|
};
|
|
708
|
-
let response;
|
|
709
708
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
710
709
|
switch (errorCode) {
|
|
711
710
|
case "AccessDeniedException":
|
|
@@ -722,14 +721,12 @@ const deserializeAws_json1_1BatchCreateVariableCommandError = async (output, con
|
|
|
722
721
|
throw await deserializeAws_json1_1ValidationExceptionResponse(parsedOutput, context);
|
|
723
722
|
default:
|
|
724
723
|
const parsedBody = parsedOutput.body;
|
|
725
|
-
|
|
726
|
-
|
|
727
|
-
|
|
728
|
-
|
|
729
|
-
|
|
730
|
-
$metadata,
|
|
724
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
725
|
+
output,
|
|
726
|
+
parsedBody,
|
|
727
|
+
exceptionCtor: FraudDetectorServiceException_1.FraudDetectorServiceException,
|
|
728
|
+
errorCode,
|
|
731
729
|
});
|
|
732
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
733
730
|
}
|
|
734
731
|
};
|
|
735
732
|
const deserializeAws_json1_1BatchGetVariableCommand = async (output, context) => {
|
|
@@ -751,7 +748,6 @@ const deserializeAws_json1_1BatchGetVariableCommandError = async (output, contex
|
|
|
751
748
|
...output,
|
|
752
749
|
body: await parseBody(output.body, context),
|
|
753
750
|
};
|
|
754
|
-
let response;
|
|
755
751
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
756
752
|
switch (errorCode) {
|
|
757
753
|
case "AccessDeniedException":
|
|
@@ -768,14 +764,12 @@ const deserializeAws_json1_1BatchGetVariableCommandError = async (output, contex
|
|
|
768
764
|
throw await deserializeAws_json1_1ValidationExceptionResponse(parsedOutput, context);
|
|
769
765
|
default:
|
|
770
766
|
const parsedBody = parsedOutput.body;
|
|
771
|
-
|
|
772
|
-
|
|
773
|
-
|
|
774
|
-
|
|
775
|
-
|
|
776
|
-
$metadata,
|
|
767
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
768
|
+
output,
|
|
769
|
+
parsedBody,
|
|
770
|
+
exceptionCtor: FraudDetectorServiceException_1.FraudDetectorServiceException,
|
|
771
|
+
errorCode,
|
|
777
772
|
});
|
|
778
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
779
773
|
}
|
|
780
774
|
};
|
|
781
775
|
const deserializeAws_json1_1CancelBatchImportJobCommand = async (output, context) => {
|
|
@@ -797,7 +791,6 @@ const deserializeAws_json1_1CancelBatchImportJobCommandError = async (output, co
|
|
|
797
791
|
...output,
|
|
798
792
|
body: await parseBody(output.body, context),
|
|
799
793
|
};
|
|
800
|
-
let response;
|
|
801
794
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
802
795
|
switch (errorCode) {
|
|
803
796
|
case "AccessDeniedException":
|
|
@@ -817,14 +810,12 @@ const deserializeAws_json1_1CancelBatchImportJobCommandError = async (output, co
|
|
|
817
810
|
throw await deserializeAws_json1_1ValidationExceptionResponse(parsedOutput, context);
|
|
818
811
|
default:
|
|
819
812
|
const parsedBody = parsedOutput.body;
|
|
820
|
-
|
|
821
|
-
|
|
822
|
-
|
|
823
|
-
|
|
824
|
-
|
|
825
|
-
$metadata,
|
|
813
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
814
|
+
output,
|
|
815
|
+
parsedBody,
|
|
816
|
+
exceptionCtor: FraudDetectorServiceException_1.FraudDetectorServiceException,
|
|
817
|
+
errorCode,
|
|
826
818
|
});
|
|
827
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
828
819
|
}
|
|
829
820
|
};
|
|
830
821
|
const deserializeAws_json1_1CancelBatchPredictionJobCommand = async (output, context) => {
|
|
@@ -846,7 +837,6 @@ const deserializeAws_json1_1CancelBatchPredictionJobCommandError = async (output
|
|
|
846
837
|
...output,
|
|
847
838
|
body: await parseBody(output.body, context),
|
|
848
839
|
};
|
|
849
|
-
let response;
|
|
850
840
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
851
841
|
switch (errorCode) {
|
|
852
842
|
case "AccessDeniedException":
|
|
@@ -866,14 +856,12 @@ const deserializeAws_json1_1CancelBatchPredictionJobCommandError = async (output
|
|
|
866
856
|
throw await deserializeAws_json1_1ValidationExceptionResponse(parsedOutput, context);
|
|
867
857
|
default:
|
|
868
858
|
const parsedBody = parsedOutput.body;
|
|
869
|
-
|
|
870
|
-
|
|
871
|
-
|
|
872
|
-
|
|
873
|
-
|
|
874
|
-
$metadata,
|
|
859
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
860
|
+
output,
|
|
861
|
+
parsedBody,
|
|
862
|
+
exceptionCtor: FraudDetectorServiceException_1.FraudDetectorServiceException,
|
|
863
|
+
errorCode,
|
|
875
864
|
});
|
|
876
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
877
865
|
}
|
|
878
866
|
};
|
|
879
867
|
const deserializeAws_json1_1CreateBatchImportJobCommand = async (output, context) => {
|
|
@@ -895,7 +883,6 @@ const deserializeAws_json1_1CreateBatchImportJobCommandError = async (output, co
|
|
|
895
883
|
...output,
|
|
896
884
|
body: await parseBody(output.body, context),
|
|
897
885
|
};
|
|
898
|
-
let response;
|
|
899
886
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
900
887
|
switch (errorCode) {
|
|
901
888
|
case "AccessDeniedException":
|
|
@@ -915,14 +902,12 @@ const deserializeAws_json1_1CreateBatchImportJobCommandError = async (output, co
|
|
|
915
902
|
throw await deserializeAws_json1_1ValidationExceptionResponse(parsedOutput, context);
|
|
916
903
|
default:
|
|
917
904
|
const parsedBody = parsedOutput.body;
|
|
918
|
-
|
|
919
|
-
|
|
920
|
-
|
|
921
|
-
|
|
922
|
-
|
|
923
|
-
$metadata,
|
|
905
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
906
|
+
output,
|
|
907
|
+
parsedBody,
|
|
908
|
+
exceptionCtor: FraudDetectorServiceException_1.FraudDetectorServiceException,
|
|
909
|
+
errorCode,
|
|
924
910
|
});
|
|
925
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
926
911
|
}
|
|
927
912
|
};
|
|
928
913
|
const deserializeAws_json1_1CreateBatchPredictionJobCommand = async (output, context) => {
|
|
@@ -944,7 +929,6 @@ const deserializeAws_json1_1CreateBatchPredictionJobCommandError = async (output
|
|
|
944
929
|
...output,
|
|
945
930
|
body: await parseBody(output.body, context),
|
|
946
931
|
};
|
|
947
|
-
let response;
|
|
948
932
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
949
933
|
switch (errorCode) {
|
|
950
934
|
case "AccessDeniedException":
|
|
@@ -964,14 +948,12 @@ const deserializeAws_json1_1CreateBatchPredictionJobCommandError = async (output
|
|
|
964
948
|
throw await deserializeAws_json1_1ValidationExceptionResponse(parsedOutput, context);
|
|
965
949
|
default:
|
|
966
950
|
const parsedBody = parsedOutput.body;
|
|
967
|
-
|
|
968
|
-
|
|
969
|
-
|
|
970
|
-
|
|
971
|
-
|
|
972
|
-
$metadata,
|
|
951
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
952
|
+
output,
|
|
953
|
+
parsedBody,
|
|
954
|
+
exceptionCtor: FraudDetectorServiceException_1.FraudDetectorServiceException,
|
|
955
|
+
errorCode,
|
|
973
956
|
});
|
|
974
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
975
957
|
}
|
|
976
958
|
};
|
|
977
959
|
const deserializeAws_json1_1CreateDetectorVersionCommand = async (output, context) => {
|
|
@@ -993,7 +975,6 @@ const deserializeAws_json1_1CreateDetectorVersionCommandError = async (output, c
|
|
|
993
975
|
...output,
|
|
994
976
|
body: await parseBody(output.body, context),
|
|
995
977
|
};
|
|
996
|
-
let response;
|
|
997
978
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
998
979
|
switch (errorCode) {
|
|
999
980
|
case "AccessDeniedException":
|
|
@@ -1013,14 +994,12 @@ const deserializeAws_json1_1CreateDetectorVersionCommandError = async (output, c
|
|
|
1013
994
|
throw await deserializeAws_json1_1ValidationExceptionResponse(parsedOutput, context);
|
|
1014
995
|
default:
|
|
1015
996
|
const parsedBody = parsedOutput.body;
|
|
1016
|
-
|
|
1017
|
-
|
|
1018
|
-
|
|
1019
|
-
|
|
1020
|
-
|
|
1021
|
-
$metadata,
|
|
997
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
998
|
+
output,
|
|
999
|
+
parsedBody,
|
|
1000
|
+
exceptionCtor: FraudDetectorServiceException_1.FraudDetectorServiceException,
|
|
1001
|
+
errorCode,
|
|
1022
1002
|
});
|
|
1023
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1024
1003
|
}
|
|
1025
1004
|
};
|
|
1026
1005
|
const deserializeAws_json1_1CreateModelCommand = async (output, context) => {
|
|
@@ -1042,7 +1021,6 @@ const deserializeAws_json1_1CreateModelCommandError = async (output, context) =>
|
|
|
1042
1021
|
...output,
|
|
1043
1022
|
body: await parseBody(output.body, context),
|
|
1044
1023
|
};
|
|
1045
|
-
let response;
|
|
1046
1024
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1047
1025
|
switch (errorCode) {
|
|
1048
1026
|
case "AccessDeniedException":
|
|
@@ -1059,14 +1037,12 @@ const deserializeAws_json1_1CreateModelCommandError = async (output, context) =>
|
|
|
1059
1037
|
throw await deserializeAws_json1_1ValidationExceptionResponse(parsedOutput, context);
|
|
1060
1038
|
default:
|
|
1061
1039
|
const parsedBody = parsedOutput.body;
|
|
1062
|
-
|
|
1063
|
-
|
|
1064
|
-
|
|
1065
|
-
|
|
1066
|
-
|
|
1067
|
-
$metadata,
|
|
1040
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1041
|
+
output,
|
|
1042
|
+
parsedBody,
|
|
1043
|
+
exceptionCtor: FraudDetectorServiceException_1.FraudDetectorServiceException,
|
|
1044
|
+
errorCode,
|
|
1068
1045
|
});
|
|
1069
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1070
1046
|
}
|
|
1071
1047
|
};
|
|
1072
1048
|
const deserializeAws_json1_1CreateModelVersionCommand = async (output, context) => {
|
|
@@ -1088,7 +1064,6 @@ const deserializeAws_json1_1CreateModelVersionCommandError = async (output, cont
|
|
|
1088
1064
|
...output,
|
|
1089
1065
|
body: await parseBody(output.body, context),
|
|
1090
1066
|
};
|
|
1091
|
-
let response;
|
|
1092
1067
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1093
1068
|
switch (errorCode) {
|
|
1094
1069
|
case "AccessDeniedException":
|
|
@@ -1108,14 +1083,12 @@ const deserializeAws_json1_1CreateModelVersionCommandError = async (output, cont
|
|
|
1108
1083
|
throw await deserializeAws_json1_1ValidationExceptionResponse(parsedOutput, context);
|
|
1109
1084
|
default:
|
|
1110
1085
|
const parsedBody = parsedOutput.body;
|
|
1111
|
-
|
|
1112
|
-
|
|
1113
|
-
|
|
1114
|
-
|
|
1115
|
-
|
|
1116
|
-
$metadata,
|
|
1086
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1087
|
+
output,
|
|
1088
|
+
parsedBody,
|
|
1089
|
+
exceptionCtor: FraudDetectorServiceException_1.FraudDetectorServiceException,
|
|
1090
|
+
errorCode,
|
|
1117
1091
|
});
|
|
1118
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1119
1092
|
}
|
|
1120
1093
|
};
|
|
1121
1094
|
const deserializeAws_json1_1CreateRuleCommand = async (output, context) => {
|
|
@@ -1137,7 +1110,6 @@ const deserializeAws_json1_1CreateRuleCommandError = async (output, context) =>
|
|
|
1137
1110
|
...output,
|
|
1138
1111
|
body: await parseBody(output.body, context),
|
|
1139
1112
|
};
|
|
1140
|
-
let response;
|
|
1141
1113
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1142
1114
|
switch (errorCode) {
|
|
1143
1115
|
case "AccessDeniedException":
|
|
@@ -1154,14 +1126,12 @@ const deserializeAws_json1_1CreateRuleCommandError = async (output, context) =>
|
|
|
1154
1126
|
throw await deserializeAws_json1_1ValidationExceptionResponse(parsedOutput, context);
|
|
1155
1127
|
default:
|
|
1156
1128
|
const parsedBody = parsedOutput.body;
|
|
1157
|
-
|
|
1158
|
-
|
|
1159
|
-
|
|
1160
|
-
|
|
1161
|
-
|
|
1162
|
-
$metadata,
|
|
1129
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1130
|
+
output,
|
|
1131
|
+
parsedBody,
|
|
1132
|
+
exceptionCtor: FraudDetectorServiceException_1.FraudDetectorServiceException,
|
|
1133
|
+
errorCode,
|
|
1163
1134
|
});
|
|
1164
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1165
1135
|
}
|
|
1166
1136
|
};
|
|
1167
1137
|
const deserializeAws_json1_1CreateVariableCommand = async (output, context) => {
|
|
@@ -1183,7 +1153,6 @@ const deserializeAws_json1_1CreateVariableCommandError = async (output, context)
|
|
|
1183
1153
|
...output,
|
|
1184
1154
|
body: await parseBody(output.body, context),
|
|
1185
1155
|
};
|
|
1186
|
-
let response;
|
|
1187
1156
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1188
1157
|
switch (errorCode) {
|
|
1189
1158
|
case "AccessDeniedException":
|
|
@@ -1200,14 +1169,12 @@ const deserializeAws_json1_1CreateVariableCommandError = async (output, context)
|
|
|
1200
1169
|
throw await deserializeAws_json1_1ValidationExceptionResponse(parsedOutput, context);
|
|
1201
1170
|
default:
|
|
1202
1171
|
const parsedBody = parsedOutput.body;
|
|
1203
|
-
|
|
1204
|
-
|
|
1205
|
-
|
|
1206
|
-
|
|
1207
|
-
|
|
1208
|
-
$metadata,
|
|
1172
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1173
|
+
output,
|
|
1174
|
+
parsedBody,
|
|
1175
|
+
exceptionCtor: FraudDetectorServiceException_1.FraudDetectorServiceException,
|
|
1176
|
+
errorCode,
|
|
1209
1177
|
});
|
|
1210
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1211
1178
|
}
|
|
1212
1179
|
};
|
|
1213
1180
|
const deserializeAws_json1_1DeleteBatchImportJobCommand = async (output, context) => {
|
|
@@ -1229,7 +1196,6 @@ const deserializeAws_json1_1DeleteBatchImportJobCommandError = async (output, co
|
|
|
1229
1196
|
...output,
|
|
1230
1197
|
body: await parseBody(output.body, context),
|
|
1231
1198
|
};
|
|
1232
|
-
let response;
|
|
1233
1199
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1234
1200
|
switch (errorCode) {
|
|
1235
1201
|
case "AccessDeniedException":
|
|
@@ -1246,14 +1212,12 @@ const deserializeAws_json1_1DeleteBatchImportJobCommandError = async (output, co
|
|
|
1246
1212
|
throw await deserializeAws_json1_1ValidationExceptionResponse(parsedOutput, context);
|
|
1247
1213
|
default:
|
|
1248
1214
|
const parsedBody = parsedOutput.body;
|
|
1249
|
-
|
|
1250
|
-
|
|
1251
|
-
|
|
1252
|
-
|
|
1253
|
-
|
|
1254
|
-
$metadata,
|
|
1215
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1216
|
+
output,
|
|
1217
|
+
parsedBody,
|
|
1218
|
+
exceptionCtor: FraudDetectorServiceException_1.FraudDetectorServiceException,
|
|
1219
|
+
errorCode,
|
|
1255
1220
|
});
|
|
1256
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1257
1221
|
}
|
|
1258
1222
|
};
|
|
1259
1223
|
const deserializeAws_json1_1DeleteBatchPredictionJobCommand = async (output, context) => {
|
|
@@ -1275,7 +1239,6 @@ const deserializeAws_json1_1DeleteBatchPredictionJobCommandError = async (output
|
|
|
1275
1239
|
...output,
|
|
1276
1240
|
body: await parseBody(output.body, context),
|
|
1277
1241
|
};
|
|
1278
|
-
let response;
|
|
1279
1242
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1280
1243
|
switch (errorCode) {
|
|
1281
1244
|
case "AccessDeniedException":
|
|
@@ -1292,14 +1255,12 @@ const deserializeAws_json1_1DeleteBatchPredictionJobCommandError = async (output
|
|
|
1292
1255
|
throw await deserializeAws_json1_1ValidationExceptionResponse(parsedOutput, context);
|
|
1293
1256
|
default:
|
|
1294
1257
|
const parsedBody = parsedOutput.body;
|
|
1295
|
-
|
|
1296
|
-
|
|
1297
|
-
|
|
1298
|
-
|
|
1299
|
-
|
|
1300
|
-
$metadata,
|
|
1258
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1259
|
+
output,
|
|
1260
|
+
parsedBody,
|
|
1261
|
+
exceptionCtor: FraudDetectorServiceException_1.FraudDetectorServiceException,
|
|
1262
|
+
errorCode,
|
|
1301
1263
|
});
|
|
1302
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1303
1264
|
}
|
|
1304
1265
|
};
|
|
1305
1266
|
const deserializeAws_json1_1DeleteDetectorCommand = async (output, context) => {
|
|
@@ -1321,7 +1282,6 @@ const deserializeAws_json1_1DeleteDetectorCommandError = async (output, context)
|
|
|
1321
1282
|
...output,
|
|
1322
1283
|
body: await parseBody(output.body, context),
|
|
1323
1284
|
};
|
|
1324
|
-
let response;
|
|
1325
1285
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1326
1286
|
switch (errorCode) {
|
|
1327
1287
|
case "AccessDeniedException":
|
|
@@ -1341,14 +1301,12 @@ const deserializeAws_json1_1DeleteDetectorCommandError = async (output, context)
|
|
|
1341
1301
|
throw await deserializeAws_json1_1ValidationExceptionResponse(parsedOutput, context);
|
|
1342
1302
|
default:
|
|
1343
1303
|
const parsedBody = parsedOutput.body;
|
|
1344
|
-
|
|
1345
|
-
|
|
1346
|
-
|
|
1347
|
-
|
|
1348
|
-
|
|
1349
|
-
$metadata,
|
|
1304
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1305
|
+
output,
|
|
1306
|
+
parsedBody,
|
|
1307
|
+
exceptionCtor: FraudDetectorServiceException_1.FraudDetectorServiceException,
|
|
1308
|
+
errorCode,
|
|
1350
1309
|
});
|
|
1351
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1352
1310
|
}
|
|
1353
1311
|
};
|
|
1354
1312
|
const deserializeAws_json1_1DeleteDetectorVersionCommand = async (output, context) => {
|
|
@@ -1370,7 +1328,6 @@ const deserializeAws_json1_1DeleteDetectorVersionCommandError = async (output, c
|
|
|
1370
1328
|
...output,
|
|
1371
1329
|
body: await parseBody(output.body, context),
|
|
1372
1330
|
};
|
|
1373
|
-
let response;
|
|
1374
1331
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1375
1332
|
switch (errorCode) {
|
|
1376
1333
|
case "AccessDeniedException":
|
|
@@ -1393,14 +1350,12 @@ const deserializeAws_json1_1DeleteDetectorVersionCommandError = async (output, c
|
|
|
1393
1350
|
throw await deserializeAws_json1_1ValidationExceptionResponse(parsedOutput, context);
|
|
1394
1351
|
default:
|
|
1395
1352
|
const parsedBody = parsedOutput.body;
|
|
1396
|
-
|
|
1397
|
-
|
|
1398
|
-
|
|
1399
|
-
|
|
1400
|
-
|
|
1401
|
-
$metadata,
|
|
1353
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1354
|
+
output,
|
|
1355
|
+
parsedBody,
|
|
1356
|
+
exceptionCtor: FraudDetectorServiceException_1.FraudDetectorServiceException,
|
|
1357
|
+
errorCode,
|
|
1402
1358
|
});
|
|
1403
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1404
1359
|
}
|
|
1405
1360
|
};
|
|
1406
1361
|
const deserializeAws_json1_1DeleteEntityTypeCommand = async (output, context) => {
|
|
@@ -1422,7 +1377,6 @@ const deserializeAws_json1_1DeleteEntityTypeCommandError = async (output, contex
|
|
|
1422
1377
|
...output,
|
|
1423
1378
|
body: await parseBody(output.body, context),
|
|
1424
1379
|
};
|
|
1425
|
-
let response;
|
|
1426
1380
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1427
1381
|
switch (errorCode) {
|
|
1428
1382
|
case "AccessDeniedException":
|
|
@@ -1442,14 +1396,12 @@ const deserializeAws_json1_1DeleteEntityTypeCommandError = async (output, contex
|
|
|
1442
1396
|
throw await deserializeAws_json1_1ValidationExceptionResponse(parsedOutput, context);
|
|
1443
1397
|
default:
|
|
1444
1398
|
const parsedBody = parsedOutput.body;
|
|
1445
|
-
|
|
1446
|
-
|
|
1447
|
-
|
|
1448
|
-
|
|
1449
|
-
|
|
1450
|
-
$metadata,
|
|
1399
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1400
|
+
output,
|
|
1401
|
+
parsedBody,
|
|
1402
|
+
exceptionCtor: FraudDetectorServiceException_1.FraudDetectorServiceException,
|
|
1403
|
+
errorCode,
|
|
1451
1404
|
});
|
|
1452
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1453
1405
|
}
|
|
1454
1406
|
};
|
|
1455
1407
|
const deserializeAws_json1_1DeleteEventCommand = async (output, context) => {
|
|
@@ -1471,7 +1423,6 @@ const deserializeAws_json1_1DeleteEventCommandError = async (output, context) =>
|
|
|
1471
1423
|
...output,
|
|
1472
1424
|
body: await parseBody(output.body, context),
|
|
1473
1425
|
};
|
|
1474
|
-
let response;
|
|
1475
1426
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1476
1427
|
switch (errorCode) {
|
|
1477
1428
|
case "AccessDeniedException":
|
|
@@ -1488,14 +1439,12 @@ const deserializeAws_json1_1DeleteEventCommandError = async (output, context) =>
|
|
|
1488
1439
|
throw await deserializeAws_json1_1ValidationExceptionResponse(parsedOutput, context);
|
|
1489
1440
|
default:
|
|
1490
1441
|
const parsedBody = parsedOutput.body;
|
|
1491
|
-
|
|
1492
|
-
|
|
1493
|
-
|
|
1494
|
-
|
|
1495
|
-
|
|
1496
|
-
$metadata,
|
|
1442
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1443
|
+
output,
|
|
1444
|
+
parsedBody,
|
|
1445
|
+
exceptionCtor: FraudDetectorServiceException_1.FraudDetectorServiceException,
|
|
1446
|
+
errorCode,
|
|
1497
1447
|
});
|
|
1498
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1499
1448
|
}
|
|
1500
1449
|
};
|
|
1501
1450
|
const deserializeAws_json1_1DeleteEventsByEventTypeCommand = async (output, context) => {
|
|
@@ -1517,7 +1466,6 @@ const deserializeAws_json1_1DeleteEventsByEventTypeCommandError = async (output,
|
|
|
1517
1466
|
...output,
|
|
1518
1467
|
body: await parseBody(output.body, context),
|
|
1519
1468
|
};
|
|
1520
|
-
let response;
|
|
1521
1469
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1522
1470
|
switch (errorCode) {
|
|
1523
1471
|
case "AccessDeniedException":
|
|
@@ -1540,14 +1488,12 @@ const deserializeAws_json1_1DeleteEventsByEventTypeCommandError = async (output,
|
|
|
1540
1488
|
throw await deserializeAws_json1_1ValidationExceptionResponse(parsedOutput, context);
|
|
1541
1489
|
default:
|
|
1542
1490
|
const parsedBody = parsedOutput.body;
|
|
1543
|
-
|
|
1544
|
-
|
|
1545
|
-
|
|
1546
|
-
|
|
1547
|
-
|
|
1548
|
-
$metadata,
|
|
1491
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1492
|
+
output,
|
|
1493
|
+
parsedBody,
|
|
1494
|
+
exceptionCtor: FraudDetectorServiceException_1.FraudDetectorServiceException,
|
|
1495
|
+
errorCode,
|
|
1549
1496
|
});
|
|
1550
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1551
1497
|
}
|
|
1552
1498
|
};
|
|
1553
1499
|
const deserializeAws_json1_1DeleteEventTypeCommand = async (output, context) => {
|
|
@@ -1569,7 +1515,6 @@ const deserializeAws_json1_1DeleteEventTypeCommandError = async (output, context
|
|
|
1569
1515
|
...output,
|
|
1570
1516
|
body: await parseBody(output.body, context),
|
|
1571
1517
|
};
|
|
1572
|
-
let response;
|
|
1573
1518
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1574
1519
|
switch (errorCode) {
|
|
1575
1520
|
case "AccessDeniedException":
|
|
@@ -1589,14 +1534,12 @@ const deserializeAws_json1_1DeleteEventTypeCommandError = async (output, context
|
|
|
1589
1534
|
throw await deserializeAws_json1_1ValidationExceptionResponse(parsedOutput, context);
|
|
1590
1535
|
default:
|
|
1591
1536
|
const parsedBody = parsedOutput.body;
|
|
1592
|
-
|
|
1593
|
-
|
|
1594
|
-
|
|
1595
|
-
|
|
1596
|
-
|
|
1597
|
-
$metadata,
|
|
1537
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1538
|
+
output,
|
|
1539
|
+
parsedBody,
|
|
1540
|
+
exceptionCtor: FraudDetectorServiceException_1.FraudDetectorServiceException,
|
|
1541
|
+
errorCode,
|
|
1598
1542
|
});
|
|
1599
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1600
1543
|
}
|
|
1601
1544
|
};
|
|
1602
1545
|
const deserializeAws_json1_1DeleteExternalModelCommand = async (output, context) => {
|
|
@@ -1618,7 +1561,6 @@ const deserializeAws_json1_1DeleteExternalModelCommandError = async (output, con
|
|
|
1618
1561
|
...output,
|
|
1619
1562
|
body: await parseBody(output.body, context),
|
|
1620
1563
|
};
|
|
1621
|
-
let response;
|
|
1622
1564
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1623
1565
|
switch (errorCode) {
|
|
1624
1566
|
case "AccessDeniedException":
|
|
@@ -1638,14 +1580,12 @@ const deserializeAws_json1_1DeleteExternalModelCommandError = async (output, con
|
|
|
1638
1580
|
throw await deserializeAws_json1_1ValidationExceptionResponse(parsedOutput, context);
|
|
1639
1581
|
default:
|
|
1640
1582
|
const parsedBody = parsedOutput.body;
|
|
1641
|
-
|
|
1642
|
-
|
|
1643
|
-
|
|
1644
|
-
|
|
1645
|
-
|
|
1646
|
-
$metadata,
|
|
1583
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1584
|
+
output,
|
|
1585
|
+
parsedBody,
|
|
1586
|
+
exceptionCtor: FraudDetectorServiceException_1.FraudDetectorServiceException,
|
|
1587
|
+
errorCode,
|
|
1647
1588
|
});
|
|
1648
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1649
1589
|
}
|
|
1650
1590
|
};
|
|
1651
1591
|
const deserializeAws_json1_1DeleteLabelCommand = async (output, context) => {
|
|
@@ -1667,7 +1607,6 @@ const deserializeAws_json1_1DeleteLabelCommandError = async (output, context) =>
|
|
|
1667
1607
|
...output,
|
|
1668
1608
|
body: await parseBody(output.body, context),
|
|
1669
1609
|
};
|
|
1670
|
-
let response;
|
|
1671
1610
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1672
1611
|
switch (errorCode) {
|
|
1673
1612
|
case "ConflictException":
|
|
@@ -1684,14 +1623,12 @@ const deserializeAws_json1_1DeleteLabelCommandError = async (output, context) =>
|
|
|
1684
1623
|
throw await deserializeAws_json1_1ValidationExceptionResponse(parsedOutput, context);
|
|
1685
1624
|
default:
|
|
1686
1625
|
const parsedBody = parsedOutput.body;
|
|
1687
|
-
|
|
1688
|
-
|
|
1689
|
-
|
|
1690
|
-
|
|
1691
|
-
|
|
1692
|
-
$metadata,
|
|
1626
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1627
|
+
output,
|
|
1628
|
+
parsedBody,
|
|
1629
|
+
exceptionCtor: FraudDetectorServiceException_1.FraudDetectorServiceException,
|
|
1630
|
+
errorCode,
|
|
1693
1631
|
});
|
|
1694
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1695
1632
|
}
|
|
1696
1633
|
};
|
|
1697
1634
|
const deserializeAws_json1_1DeleteModelCommand = async (output, context) => {
|
|
@@ -1713,7 +1650,6 @@ const deserializeAws_json1_1DeleteModelCommandError = async (output, context) =>
|
|
|
1713
1650
|
...output,
|
|
1714
1651
|
body: await parseBody(output.body, context),
|
|
1715
1652
|
};
|
|
1716
|
-
let response;
|
|
1717
1653
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1718
1654
|
switch (errorCode) {
|
|
1719
1655
|
case "AccessDeniedException":
|
|
@@ -1733,14 +1669,12 @@ const deserializeAws_json1_1DeleteModelCommandError = async (output, context) =>
|
|
|
1733
1669
|
throw await deserializeAws_json1_1ValidationExceptionResponse(parsedOutput, context);
|
|
1734
1670
|
default:
|
|
1735
1671
|
const parsedBody = parsedOutput.body;
|
|
1736
|
-
|
|
1737
|
-
|
|
1738
|
-
|
|
1739
|
-
|
|
1740
|
-
|
|
1741
|
-
$metadata,
|
|
1672
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1673
|
+
output,
|
|
1674
|
+
parsedBody,
|
|
1675
|
+
exceptionCtor: FraudDetectorServiceException_1.FraudDetectorServiceException,
|
|
1676
|
+
errorCode,
|
|
1742
1677
|
});
|
|
1743
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1744
1678
|
}
|
|
1745
1679
|
};
|
|
1746
1680
|
const deserializeAws_json1_1DeleteModelVersionCommand = async (output, context) => {
|
|
@@ -1762,7 +1696,6 @@ const deserializeAws_json1_1DeleteModelVersionCommandError = async (output, cont
|
|
|
1762
1696
|
...output,
|
|
1763
1697
|
body: await parseBody(output.body, context),
|
|
1764
1698
|
};
|
|
1765
|
-
let response;
|
|
1766
1699
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1767
1700
|
switch (errorCode) {
|
|
1768
1701
|
case "AccessDeniedException":
|
|
@@ -1782,14 +1715,12 @@ const deserializeAws_json1_1DeleteModelVersionCommandError = async (output, cont
|
|
|
1782
1715
|
throw await deserializeAws_json1_1ValidationExceptionResponse(parsedOutput, context);
|
|
1783
1716
|
default:
|
|
1784
1717
|
const parsedBody = parsedOutput.body;
|
|
1785
|
-
|
|
1786
|
-
|
|
1787
|
-
|
|
1788
|
-
|
|
1789
|
-
|
|
1790
|
-
$metadata,
|
|
1718
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1719
|
+
output,
|
|
1720
|
+
parsedBody,
|
|
1721
|
+
exceptionCtor: FraudDetectorServiceException_1.FraudDetectorServiceException,
|
|
1722
|
+
errorCode,
|
|
1791
1723
|
});
|
|
1792
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1793
1724
|
}
|
|
1794
1725
|
};
|
|
1795
1726
|
const deserializeAws_json1_1DeleteOutcomeCommand = async (output, context) => {
|
|
@@ -1811,7 +1742,6 @@ const deserializeAws_json1_1DeleteOutcomeCommandError = async (output, context)
|
|
|
1811
1742
|
...output,
|
|
1812
1743
|
body: await parseBody(output.body, context),
|
|
1813
1744
|
};
|
|
1814
|
-
let response;
|
|
1815
1745
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1816
1746
|
switch (errorCode) {
|
|
1817
1747
|
case "AccessDeniedException":
|
|
@@ -1831,14 +1761,12 @@ const deserializeAws_json1_1DeleteOutcomeCommandError = async (output, context)
|
|
|
1831
1761
|
throw await deserializeAws_json1_1ValidationExceptionResponse(parsedOutput, context);
|
|
1832
1762
|
default:
|
|
1833
1763
|
const parsedBody = parsedOutput.body;
|
|
1834
|
-
|
|
1835
|
-
|
|
1836
|
-
|
|
1837
|
-
|
|
1838
|
-
|
|
1839
|
-
$metadata,
|
|
1764
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1765
|
+
output,
|
|
1766
|
+
parsedBody,
|
|
1767
|
+
exceptionCtor: FraudDetectorServiceException_1.FraudDetectorServiceException,
|
|
1768
|
+
errorCode,
|
|
1840
1769
|
});
|
|
1841
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1842
1770
|
}
|
|
1843
1771
|
};
|
|
1844
1772
|
const deserializeAws_json1_1DeleteRuleCommand = async (output, context) => {
|
|
@@ -1860,7 +1788,6 @@ const deserializeAws_json1_1DeleteRuleCommandError = async (output, context) =>
|
|
|
1860
1788
|
...output,
|
|
1861
1789
|
body: await parseBody(output.body, context),
|
|
1862
1790
|
};
|
|
1863
|
-
let response;
|
|
1864
1791
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1865
1792
|
switch (errorCode) {
|
|
1866
1793
|
case "AccessDeniedException":
|
|
@@ -1880,14 +1807,12 @@ const deserializeAws_json1_1DeleteRuleCommandError = async (output, context) =>
|
|
|
1880
1807
|
throw await deserializeAws_json1_1ValidationExceptionResponse(parsedOutput, context);
|
|
1881
1808
|
default:
|
|
1882
1809
|
const parsedBody = parsedOutput.body;
|
|
1883
|
-
|
|
1884
|
-
|
|
1885
|
-
|
|
1886
|
-
|
|
1887
|
-
|
|
1888
|
-
$metadata,
|
|
1810
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1811
|
+
output,
|
|
1812
|
+
parsedBody,
|
|
1813
|
+
exceptionCtor: FraudDetectorServiceException_1.FraudDetectorServiceException,
|
|
1814
|
+
errorCode,
|
|
1889
1815
|
});
|
|
1890
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1891
1816
|
}
|
|
1892
1817
|
};
|
|
1893
1818
|
const deserializeAws_json1_1DeleteVariableCommand = async (output, context) => {
|
|
@@ -1909,7 +1834,6 @@ const deserializeAws_json1_1DeleteVariableCommandError = async (output, context)
|
|
|
1909
1834
|
...output,
|
|
1910
1835
|
body: await parseBody(output.body, context),
|
|
1911
1836
|
};
|
|
1912
|
-
let response;
|
|
1913
1837
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1914
1838
|
switch (errorCode) {
|
|
1915
1839
|
case "AccessDeniedException":
|
|
@@ -1929,14 +1853,12 @@ const deserializeAws_json1_1DeleteVariableCommandError = async (output, context)
|
|
|
1929
1853
|
throw await deserializeAws_json1_1ValidationExceptionResponse(parsedOutput, context);
|
|
1930
1854
|
default:
|
|
1931
1855
|
const parsedBody = parsedOutput.body;
|
|
1932
|
-
|
|
1933
|
-
|
|
1934
|
-
|
|
1935
|
-
|
|
1936
|
-
|
|
1937
|
-
$metadata,
|
|
1856
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1857
|
+
output,
|
|
1858
|
+
parsedBody,
|
|
1859
|
+
exceptionCtor: FraudDetectorServiceException_1.FraudDetectorServiceException,
|
|
1860
|
+
errorCode,
|
|
1938
1861
|
});
|
|
1939
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1940
1862
|
}
|
|
1941
1863
|
};
|
|
1942
1864
|
const deserializeAws_json1_1DescribeDetectorCommand = async (output, context) => {
|
|
@@ -1958,7 +1880,6 @@ const deserializeAws_json1_1DescribeDetectorCommandError = async (output, contex
|
|
|
1958
1880
|
...output,
|
|
1959
1881
|
body: await parseBody(output.body, context),
|
|
1960
1882
|
};
|
|
1961
|
-
let response;
|
|
1962
1883
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1963
1884
|
switch (errorCode) {
|
|
1964
1885
|
case "AccessDeniedException":
|
|
@@ -1978,14 +1899,12 @@ const deserializeAws_json1_1DescribeDetectorCommandError = async (output, contex
|
|
|
1978
1899
|
throw await deserializeAws_json1_1ValidationExceptionResponse(parsedOutput, context);
|
|
1979
1900
|
default:
|
|
1980
1901
|
const parsedBody = parsedOutput.body;
|
|
1981
|
-
|
|
1982
|
-
|
|
1983
|
-
|
|
1984
|
-
|
|
1985
|
-
|
|
1986
|
-
$metadata,
|
|
1902
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1903
|
+
output,
|
|
1904
|
+
parsedBody,
|
|
1905
|
+
exceptionCtor: FraudDetectorServiceException_1.FraudDetectorServiceException,
|
|
1906
|
+
errorCode,
|
|
1987
1907
|
});
|
|
1988
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1989
1908
|
}
|
|
1990
1909
|
};
|
|
1991
1910
|
const deserializeAws_json1_1DescribeModelVersionsCommand = async (output, context) => {
|
|
@@ -2007,7 +1926,6 @@ const deserializeAws_json1_1DescribeModelVersionsCommandError = async (output, c
|
|
|
2007
1926
|
...output,
|
|
2008
1927
|
body: await parseBody(output.body, context),
|
|
2009
1928
|
};
|
|
2010
|
-
let response;
|
|
2011
1929
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2012
1930
|
switch (errorCode) {
|
|
2013
1931
|
case "AccessDeniedException":
|
|
@@ -2027,14 +1945,12 @@ const deserializeAws_json1_1DescribeModelVersionsCommandError = async (output, c
|
|
|
2027
1945
|
throw await deserializeAws_json1_1ValidationExceptionResponse(parsedOutput, context);
|
|
2028
1946
|
default:
|
|
2029
1947
|
const parsedBody = parsedOutput.body;
|
|
2030
|
-
|
|
2031
|
-
|
|
2032
|
-
|
|
2033
|
-
|
|
2034
|
-
|
|
2035
|
-
$metadata,
|
|
1948
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1949
|
+
output,
|
|
1950
|
+
parsedBody,
|
|
1951
|
+
exceptionCtor: FraudDetectorServiceException_1.FraudDetectorServiceException,
|
|
1952
|
+
errorCode,
|
|
2036
1953
|
});
|
|
2037
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2038
1954
|
}
|
|
2039
1955
|
};
|
|
2040
1956
|
const deserializeAws_json1_1GetBatchImportJobsCommand = async (output, context) => {
|
|
@@ -2056,7 +1972,6 @@ const deserializeAws_json1_1GetBatchImportJobsCommandError = async (output, cont
|
|
|
2056
1972
|
...output,
|
|
2057
1973
|
body: await parseBody(output.body, context),
|
|
2058
1974
|
};
|
|
2059
|
-
let response;
|
|
2060
1975
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2061
1976
|
switch (errorCode) {
|
|
2062
1977
|
case "AccessDeniedException":
|
|
@@ -2076,14 +1991,12 @@ const deserializeAws_json1_1GetBatchImportJobsCommandError = async (output, cont
|
|
|
2076
1991
|
throw await deserializeAws_json1_1ValidationExceptionResponse(parsedOutput, context);
|
|
2077
1992
|
default:
|
|
2078
1993
|
const parsedBody = parsedOutput.body;
|
|
2079
|
-
|
|
2080
|
-
|
|
2081
|
-
|
|
2082
|
-
|
|
2083
|
-
|
|
2084
|
-
$metadata,
|
|
1994
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1995
|
+
output,
|
|
1996
|
+
parsedBody,
|
|
1997
|
+
exceptionCtor: FraudDetectorServiceException_1.FraudDetectorServiceException,
|
|
1998
|
+
errorCode,
|
|
2085
1999
|
});
|
|
2086
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2087
2000
|
}
|
|
2088
2001
|
};
|
|
2089
2002
|
const deserializeAws_json1_1GetBatchPredictionJobsCommand = async (output, context) => {
|
|
@@ -2105,7 +2018,6 @@ const deserializeAws_json1_1GetBatchPredictionJobsCommandError = async (output,
|
|
|
2105
2018
|
...output,
|
|
2106
2019
|
body: await parseBody(output.body, context),
|
|
2107
2020
|
};
|
|
2108
|
-
let response;
|
|
2109
2021
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2110
2022
|
switch (errorCode) {
|
|
2111
2023
|
case "AccessDeniedException":
|
|
@@ -2125,14 +2037,12 @@ const deserializeAws_json1_1GetBatchPredictionJobsCommandError = async (output,
|
|
|
2125
2037
|
throw await deserializeAws_json1_1ValidationExceptionResponse(parsedOutput, context);
|
|
2126
2038
|
default:
|
|
2127
2039
|
const parsedBody = parsedOutput.body;
|
|
2128
|
-
|
|
2129
|
-
|
|
2130
|
-
|
|
2131
|
-
|
|
2132
|
-
|
|
2133
|
-
$metadata,
|
|
2040
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
2041
|
+
output,
|
|
2042
|
+
parsedBody,
|
|
2043
|
+
exceptionCtor: FraudDetectorServiceException_1.FraudDetectorServiceException,
|
|
2044
|
+
errorCode,
|
|
2134
2045
|
});
|
|
2135
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2136
2046
|
}
|
|
2137
2047
|
};
|
|
2138
2048
|
const deserializeAws_json1_1GetDeleteEventsByEventTypeStatusCommand = async (output, context) => {
|
|
@@ -2154,7 +2064,6 @@ const deserializeAws_json1_1GetDeleteEventsByEventTypeStatusCommandError = async
|
|
|
2154
2064
|
...output,
|
|
2155
2065
|
body: await parseBody(output.body, context),
|
|
2156
2066
|
};
|
|
2157
|
-
let response;
|
|
2158
2067
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2159
2068
|
switch (errorCode) {
|
|
2160
2069
|
case "AccessDeniedException":
|
|
@@ -2174,14 +2083,12 @@ const deserializeAws_json1_1GetDeleteEventsByEventTypeStatusCommandError = async
|
|
|
2174
2083
|
throw await deserializeAws_json1_1ValidationExceptionResponse(parsedOutput, context);
|
|
2175
2084
|
default:
|
|
2176
2085
|
const parsedBody = parsedOutput.body;
|
|
2177
|
-
|
|
2178
|
-
|
|
2179
|
-
|
|
2180
|
-
|
|
2181
|
-
|
|
2182
|
-
$metadata,
|
|
2086
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
2087
|
+
output,
|
|
2088
|
+
parsedBody,
|
|
2089
|
+
exceptionCtor: FraudDetectorServiceException_1.FraudDetectorServiceException,
|
|
2090
|
+
errorCode,
|
|
2183
2091
|
});
|
|
2184
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2185
2092
|
}
|
|
2186
2093
|
};
|
|
2187
2094
|
const deserializeAws_json1_1GetDetectorsCommand = async (output, context) => {
|
|
@@ -2203,7 +2110,6 @@ const deserializeAws_json1_1GetDetectorsCommandError = async (output, context) =
|
|
|
2203
2110
|
...output,
|
|
2204
2111
|
body: await parseBody(output.body, context),
|
|
2205
2112
|
};
|
|
2206
|
-
let response;
|
|
2207
2113
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2208
2114
|
switch (errorCode) {
|
|
2209
2115
|
case "AccessDeniedException":
|
|
@@ -2223,14 +2129,12 @@ const deserializeAws_json1_1GetDetectorsCommandError = async (output, context) =
|
|
|
2223
2129
|
throw await deserializeAws_json1_1ValidationExceptionResponse(parsedOutput, context);
|
|
2224
2130
|
default:
|
|
2225
2131
|
const parsedBody = parsedOutput.body;
|
|
2226
|
-
|
|
2227
|
-
|
|
2228
|
-
|
|
2229
|
-
|
|
2230
|
-
|
|
2231
|
-
$metadata,
|
|
2132
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
2133
|
+
output,
|
|
2134
|
+
parsedBody,
|
|
2135
|
+
exceptionCtor: FraudDetectorServiceException_1.FraudDetectorServiceException,
|
|
2136
|
+
errorCode,
|
|
2232
2137
|
});
|
|
2233
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2234
2138
|
}
|
|
2235
2139
|
};
|
|
2236
2140
|
const deserializeAws_json1_1GetDetectorVersionCommand = async (output, context) => {
|
|
@@ -2252,7 +2156,6 @@ const deserializeAws_json1_1GetDetectorVersionCommandError = async (output, cont
|
|
|
2252
2156
|
...output,
|
|
2253
2157
|
body: await parseBody(output.body, context),
|
|
2254
2158
|
};
|
|
2255
|
-
let response;
|
|
2256
2159
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2257
2160
|
switch (errorCode) {
|
|
2258
2161
|
case "AccessDeniedException":
|
|
@@ -2272,14 +2175,12 @@ const deserializeAws_json1_1GetDetectorVersionCommandError = async (output, cont
|
|
|
2272
2175
|
throw await deserializeAws_json1_1ValidationExceptionResponse(parsedOutput, context);
|
|
2273
2176
|
default:
|
|
2274
2177
|
const parsedBody = parsedOutput.body;
|
|
2275
|
-
|
|
2276
|
-
|
|
2277
|
-
|
|
2278
|
-
|
|
2279
|
-
|
|
2280
|
-
$metadata,
|
|
2178
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
2179
|
+
output,
|
|
2180
|
+
parsedBody,
|
|
2181
|
+
exceptionCtor: FraudDetectorServiceException_1.FraudDetectorServiceException,
|
|
2182
|
+
errorCode,
|
|
2281
2183
|
});
|
|
2282
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2283
2184
|
}
|
|
2284
2185
|
};
|
|
2285
2186
|
const deserializeAws_json1_1GetEntityTypesCommand = async (output, context) => {
|
|
@@ -2301,7 +2202,6 @@ const deserializeAws_json1_1GetEntityTypesCommandError = async (output, context)
|
|
|
2301
2202
|
...output,
|
|
2302
2203
|
body: await parseBody(output.body, context),
|
|
2303
2204
|
};
|
|
2304
|
-
let response;
|
|
2305
2205
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2306
2206
|
switch (errorCode) {
|
|
2307
2207
|
case "AccessDeniedException":
|
|
@@ -2321,14 +2221,12 @@ const deserializeAws_json1_1GetEntityTypesCommandError = async (output, context)
|
|
|
2321
2221
|
throw await deserializeAws_json1_1ValidationExceptionResponse(parsedOutput, context);
|
|
2322
2222
|
default:
|
|
2323
2223
|
const parsedBody = parsedOutput.body;
|
|
2324
|
-
|
|
2325
|
-
|
|
2326
|
-
|
|
2327
|
-
|
|
2328
|
-
|
|
2329
|
-
$metadata,
|
|
2224
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
2225
|
+
output,
|
|
2226
|
+
parsedBody,
|
|
2227
|
+
exceptionCtor: FraudDetectorServiceException_1.FraudDetectorServiceException,
|
|
2228
|
+
errorCode,
|
|
2330
2229
|
});
|
|
2331
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2332
2230
|
}
|
|
2333
2231
|
};
|
|
2334
2232
|
const deserializeAws_json1_1GetEventCommand = async (output, context) => {
|
|
@@ -2350,7 +2248,6 @@ const deserializeAws_json1_1GetEventCommandError = async (output, context) => {
|
|
|
2350
2248
|
...output,
|
|
2351
2249
|
body: await parseBody(output.body, context),
|
|
2352
2250
|
};
|
|
2353
|
-
let response;
|
|
2354
2251
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2355
2252
|
switch (errorCode) {
|
|
2356
2253
|
case "AccessDeniedException":
|
|
@@ -2370,14 +2267,12 @@ const deserializeAws_json1_1GetEventCommandError = async (output, context) => {
|
|
|
2370
2267
|
throw await deserializeAws_json1_1ValidationExceptionResponse(parsedOutput, context);
|
|
2371
2268
|
default:
|
|
2372
2269
|
const parsedBody = parsedOutput.body;
|
|
2373
|
-
|
|
2374
|
-
|
|
2375
|
-
|
|
2376
|
-
|
|
2377
|
-
|
|
2378
|
-
$metadata,
|
|
2270
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
2271
|
+
output,
|
|
2272
|
+
parsedBody,
|
|
2273
|
+
exceptionCtor: FraudDetectorServiceException_1.FraudDetectorServiceException,
|
|
2274
|
+
errorCode,
|
|
2379
2275
|
});
|
|
2380
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2381
2276
|
}
|
|
2382
2277
|
};
|
|
2383
2278
|
const deserializeAws_json1_1GetEventPredictionCommand = async (output, context) => {
|
|
@@ -2399,7 +2294,6 @@ const deserializeAws_json1_1GetEventPredictionCommandError = async (output, cont
|
|
|
2399
2294
|
...output,
|
|
2400
2295
|
body: await parseBody(output.body, context),
|
|
2401
2296
|
};
|
|
2402
|
-
let response;
|
|
2403
2297
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2404
2298
|
switch (errorCode) {
|
|
2405
2299
|
case "AccessDeniedException":
|
|
@@ -2425,14 +2319,12 @@ const deserializeAws_json1_1GetEventPredictionCommandError = async (output, cont
|
|
|
2425
2319
|
throw await deserializeAws_json1_1ValidationExceptionResponse(parsedOutput, context);
|
|
2426
2320
|
default:
|
|
2427
2321
|
const parsedBody = parsedOutput.body;
|
|
2428
|
-
|
|
2429
|
-
|
|
2430
|
-
|
|
2431
|
-
|
|
2432
|
-
|
|
2433
|
-
$metadata,
|
|
2322
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
2323
|
+
output,
|
|
2324
|
+
parsedBody,
|
|
2325
|
+
exceptionCtor: FraudDetectorServiceException_1.FraudDetectorServiceException,
|
|
2326
|
+
errorCode,
|
|
2434
2327
|
});
|
|
2435
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2436
2328
|
}
|
|
2437
2329
|
};
|
|
2438
2330
|
const deserializeAws_json1_1GetEventPredictionMetadataCommand = async (output, context) => {
|
|
@@ -2454,7 +2346,6 @@ const deserializeAws_json1_1GetEventPredictionMetadataCommandError = async (outp
|
|
|
2454
2346
|
...output,
|
|
2455
2347
|
body: await parseBody(output.body, context),
|
|
2456
2348
|
};
|
|
2457
|
-
let response;
|
|
2458
2349
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2459
2350
|
switch (errorCode) {
|
|
2460
2351
|
case "AccessDeniedException":
|
|
@@ -2474,14 +2365,12 @@ const deserializeAws_json1_1GetEventPredictionMetadataCommandError = async (outp
|
|
|
2474
2365
|
throw await deserializeAws_json1_1ValidationExceptionResponse(parsedOutput, context);
|
|
2475
2366
|
default:
|
|
2476
2367
|
const parsedBody = parsedOutput.body;
|
|
2477
|
-
|
|
2478
|
-
|
|
2479
|
-
|
|
2480
|
-
|
|
2481
|
-
|
|
2482
|
-
$metadata,
|
|
2368
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
2369
|
+
output,
|
|
2370
|
+
parsedBody,
|
|
2371
|
+
exceptionCtor: FraudDetectorServiceException_1.FraudDetectorServiceException,
|
|
2372
|
+
errorCode,
|
|
2483
2373
|
});
|
|
2484
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2485
2374
|
}
|
|
2486
2375
|
};
|
|
2487
2376
|
const deserializeAws_json1_1GetEventTypesCommand = async (output, context) => {
|
|
@@ -2503,7 +2392,6 @@ const deserializeAws_json1_1GetEventTypesCommandError = async (output, context)
|
|
|
2503
2392
|
...output,
|
|
2504
2393
|
body: await parseBody(output.body, context),
|
|
2505
2394
|
};
|
|
2506
|
-
let response;
|
|
2507
2395
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2508
2396
|
switch (errorCode) {
|
|
2509
2397
|
case "AccessDeniedException":
|
|
@@ -2523,14 +2411,12 @@ const deserializeAws_json1_1GetEventTypesCommandError = async (output, context)
|
|
|
2523
2411
|
throw await deserializeAws_json1_1ValidationExceptionResponse(parsedOutput, context);
|
|
2524
2412
|
default:
|
|
2525
2413
|
const parsedBody = parsedOutput.body;
|
|
2526
|
-
|
|
2527
|
-
|
|
2528
|
-
|
|
2529
|
-
|
|
2530
|
-
|
|
2531
|
-
$metadata,
|
|
2414
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
2415
|
+
output,
|
|
2416
|
+
parsedBody,
|
|
2417
|
+
exceptionCtor: FraudDetectorServiceException_1.FraudDetectorServiceException,
|
|
2418
|
+
errorCode,
|
|
2532
2419
|
});
|
|
2533
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2534
2420
|
}
|
|
2535
2421
|
};
|
|
2536
2422
|
const deserializeAws_json1_1GetExternalModelsCommand = async (output, context) => {
|
|
@@ -2552,7 +2438,6 @@ const deserializeAws_json1_1GetExternalModelsCommandError = async (output, conte
|
|
|
2552
2438
|
...output,
|
|
2553
2439
|
body: await parseBody(output.body, context),
|
|
2554
2440
|
};
|
|
2555
|
-
let response;
|
|
2556
2441
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2557
2442
|
switch (errorCode) {
|
|
2558
2443
|
case "AccessDeniedException":
|
|
@@ -2572,14 +2457,12 @@ const deserializeAws_json1_1GetExternalModelsCommandError = async (output, conte
|
|
|
2572
2457
|
throw await deserializeAws_json1_1ValidationExceptionResponse(parsedOutput, context);
|
|
2573
2458
|
default:
|
|
2574
2459
|
const parsedBody = parsedOutput.body;
|
|
2575
|
-
|
|
2576
|
-
|
|
2577
|
-
|
|
2578
|
-
|
|
2579
|
-
|
|
2580
|
-
$metadata,
|
|
2460
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
2461
|
+
output,
|
|
2462
|
+
parsedBody,
|
|
2463
|
+
exceptionCtor: FraudDetectorServiceException_1.FraudDetectorServiceException,
|
|
2464
|
+
errorCode,
|
|
2581
2465
|
});
|
|
2582
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2583
2466
|
}
|
|
2584
2467
|
};
|
|
2585
2468
|
const deserializeAws_json1_1GetKMSEncryptionKeyCommand = async (output, context) => {
|
|
@@ -2601,7 +2484,6 @@ const deserializeAws_json1_1GetKMSEncryptionKeyCommandError = async (output, con
|
|
|
2601
2484
|
...output,
|
|
2602
2485
|
body: await parseBody(output.body, context),
|
|
2603
2486
|
};
|
|
2604
|
-
let response;
|
|
2605
2487
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2606
2488
|
switch (errorCode) {
|
|
2607
2489
|
case "AccessDeniedException":
|
|
@@ -2618,14 +2500,12 @@ const deserializeAws_json1_1GetKMSEncryptionKeyCommandError = async (output, con
|
|
|
2618
2500
|
throw await deserializeAws_json1_1ThrottlingExceptionResponse(parsedOutput, context);
|
|
2619
2501
|
default:
|
|
2620
2502
|
const parsedBody = parsedOutput.body;
|
|
2621
|
-
|
|
2622
|
-
|
|
2623
|
-
|
|
2624
|
-
|
|
2625
|
-
|
|
2626
|
-
$metadata,
|
|
2503
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
2504
|
+
output,
|
|
2505
|
+
parsedBody,
|
|
2506
|
+
exceptionCtor: FraudDetectorServiceException_1.FraudDetectorServiceException,
|
|
2507
|
+
errorCode,
|
|
2627
2508
|
});
|
|
2628
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2629
2509
|
}
|
|
2630
2510
|
};
|
|
2631
2511
|
const deserializeAws_json1_1GetLabelsCommand = async (output, context) => {
|
|
@@ -2647,7 +2527,6 @@ const deserializeAws_json1_1GetLabelsCommandError = async (output, context) => {
|
|
|
2647
2527
|
...output,
|
|
2648
2528
|
body: await parseBody(output.body, context),
|
|
2649
2529
|
};
|
|
2650
|
-
let response;
|
|
2651
2530
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2652
2531
|
switch (errorCode) {
|
|
2653
2532
|
case "AccessDeniedException":
|
|
@@ -2667,14 +2546,12 @@ const deserializeAws_json1_1GetLabelsCommandError = async (output, context) => {
|
|
|
2667
2546
|
throw await deserializeAws_json1_1ValidationExceptionResponse(parsedOutput, context);
|
|
2668
2547
|
default:
|
|
2669
2548
|
const parsedBody = parsedOutput.body;
|
|
2670
|
-
|
|
2671
|
-
|
|
2672
|
-
|
|
2673
|
-
|
|
2674
|
-
|
|
2675
|
-
$metadata,
|
|
2549
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
2550
|
+
output,
|
|
2551
|
+
parsedBody,
|
|
2552
|
+
exceptionCtor: FraudDetectorServiceException_1.FraudDetectorServiceException,
|
|
2553
|
+
errorCode,
|
|
2676
2554
|
});
|
|
2677
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2678
2555
|
}
|
|
2679
2556
|
};
|
|
2680
2557
|
const deserializeAws_json1_1GetModelsCommand = async (output, context) => {
|
|
@@ -2696,7 +2573,6 @@ const deserializeAws_json1_1GetModelsCommandError = async (output, context) => {
|
|
|
2696
2573
|
...output,
|
|
2697
2574
|
body: await parseBody(output.body, context),
|
|
2698
2575
|
};
|
|
2699
|
-
let response;
|
|
2700
2576
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2701
2577
|
switch (errorCode) {
|
|
2702
2578
|
case "AccessDeniedException":
|
|
@@ -2716,14 +2592,12 @@ const deserializeAws_json1_1GetModelsCommandError = async (output, context) => {
|
|
|
2716
2592
|
throw await deserializeAws_json1_1ValidationExceptionResponse(parsedOutput, context);
|
|
2717
2593
|
default:
|
|
2718
2594
|
const parsedBody = parsedOutput.body;
|
|
2719
|
-
|
|
2720
|
-
|
|
2721
|
-
|
|
2722
|
-
|
|
2723
|
-
|
|
2724
|
-
$metadata,
|
|
2595
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
2596
|
+
output,
|
|
2597
|
+
parsedBody,
|
|
2598
|
+
exceptionCtor: FraudDetectorServiceException_1.FraudDetectorServiceException,
|
|
2599
|
+
errorCode,
|
|
2725
2600
|
});
|
|
2726
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2727
2601
|
}
|
|
2728
2602
|
};
|
|
2729
2603
|
const deserializeAws_json1_1GetModelVersionCommand = async (output, context) => {
|
|
@@ -2745,7 +2619,6 @@ const deserializeAws_json1_1GetModelVersionCommandError = async (output, context
|
|
|
2745
2619
|
...output,
|
|
2746
2620
|
body: await parseBody(output.body, context),
|
|
2747
2621
|
};
|
|
2748
|
-
let response;
|
|
2749
2622
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2750
2623
|
switch (errorCode) {
|
|
2751
2624
|
case "AccessDeniedException":
|
|
@@ -2765,14 +2638,12 @@ const deserializeAws_json1_1GetModelVersionCommandError = async (output, context
|
|
|
2765
2638
|
throw await deserializeAws_json1_1ValidationExceptionResponse(parsedOutput, context);
|
|
2766
2639
|
default:
|
|
2767
2640
|
const parsedBody = parsedOutput.body;
|
|
2768
|
-
|
|
2769
|
-
|
|
2770
|
-
|
|
2771
|
-
|
|
2772
|
-
|
|
2773
|
-
$metadata,
|
|
2641
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
2642
|
+
output,
|
|
2643
|
+
parsedBody,
|
|
2644
|
+
exceptionCtor: FraudDetectorServiceException_1.FraudDetectorServiceException,
|
|
2645
|
+
errorCode,
|
|
2774
2646
|
});
|
|
2775
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2776
2647
|
}
|
|
2777
2648
|
};
|
|
2778
2649
|
const deserializeAws_json1_1GetOutcomesCommand = async (output, context) => {
|
|
@@ -2794,7 +2665,6 @@ const deserializeAws_json1_1GetOutcomesCommandError = async (output, context) =>
|
|
|
2794
2665
|
...output,
|
|
2795
2666
|
body: await parseBody(output.body, context),
|
|
2796
2667
|
};
|
|
2797
|
-
let response;
|
|
2798
2668
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2799
2669
|
switch (errorCode) {
|
|
2800
2670
|
case "AccessDeniedException":
|
|
@@ -2814,14 +2684,12 @@ const deserializeAws_json1_1GetOutcomesCommandError = async (output, context) =>
|
|
|
2814
2684
|
throw await deserializeAws_json1_1ValidationExceptionResponse(parsedOutput, context);
|
|
2815
2685
|
default:
|
|
2816
2686
|
const parsedBody = parsedOutput.body;
|
|
2817
|
-
|
|
2818
|
-
|
|
2819
|
-
|
|
2820
|
-
|
|
2821
|
-
|
|
2822
|
-
$metadata,
|
|
2687
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
2688
|
+
output,
|
|
2689
|
+
parsedBody,
|
|
2690
|
+
exceptionCtor: FraudDetectorServiceException_1.FraudDetectorServiceException,
|
|
2691
|
+
errorCode,
|
|
2823
2692
|
});
|
|
2824
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2825
2693
|
}
|
|
2826
2694
|
};
|
|
2827
2695
|
const deserializeAws_json1_1GetRulesCommand = async (output, context) => {
|
|
@@ -2843,7 +2711,6 @@ const deserializeAws_json1_1GetRulesCommandError = async (output, context) => {
|
|
|
2843
2711
|
...output,
|
|
2844
2712
|
body: await parseBody(output.body, context),
|
|
2845
2713
|
};
|
|
2846
|
-
let response;
|
|
2847
2714
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2848
2715
|
switch (errorCode) {
|
|
2849
2716
|
case "AccessDeniedException":
|
|
@@ -2863,14 +2730,12 @@ const deserializeAws_json1_1GetRulesCommandError = async (output, context) => {
|
|
|
2863
2730
|
throw await deserializeAws_json1_1ValidationExceptionResponse(parsedOutput, context);
|
|
2864
2731
|
default:
|
|
2865
2732
|
const parsedBody = parsedOutput.body;
|
|
2866
|
-
|
|
2867
|
-
|
|
2868
|
-
|
|
2869
|
-
|
|
2870
|
-
|
|
2871
|
-
$metadata,
|
|
2733
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
2734
|
+
output,
|
|
2735
|
+
parsedBody,
|
|
2736
|
+
exceptionCtor: FraudDetectorServiceException_1.FraudDetectorServiceException,
|
|
2737
|
+
errorCode,
|
|
2872
2738
|
});
|
|
2873
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2874
2739
|
}
|
|
2875
2740
|
};
|
|
2876
2741
|
const deserializeAws_json1_1GetVariablesCommand = async (output, context) => {
|
|
@@ -2892,7 +2757,6 @@ const deserializeAws_json1_1GetVariablesCommandError = async (output, context) =
|
|
|
2892
2757
|
...output,
|
|
2893
2758
|
body: await parseBody(output.body, context),
|
|
2894
2759
|
};
|
|
2895
|
-
let response;
|
|
2896
2760
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2897
2761
|
switch (errorCode) {
|
|
2898
2762
|
case "AccessDeniedException":
|
|
@@ -2912,14 +2776,12 @@ const deserializeAws_json1_1GetVariablesCommandError = async (output, context) =
|
|
|
2912
2776
|
throw await deserializeAws_json1_1ValidationExceptionResponse(parsedOutput, context);
|
|
2913
2777
|
default:
|
|
2914
2778
|
const parsedBody = parsedOutput.body;
|
|
2915
|
-
|
|
2916
|
-
|
|
2917
|
-
|
|
2918
|
-
|
|
2919
|
-
|
|
2920
|
-
$metadata,
|
|
2779
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
2780
|
+
output,
|
|
2781
|
+
parsedBody,
|
|
2782
|
+
exceptionCtor: FraudDetectorServiceException_1.FraudDetectorServiceException,
|
|
2783
|
+
errorCode,
|
|
2921
2784
|
});
|
|
2922
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2923
2785
|
}
|
|
2924
2786
|
};
|
|
2925
2787
|
const deserializeAws_json1_1ListEventPredictionsCommand = async (output, context) => {
|
|
@@ -2941,7 +2803,6 @@ const deserializeAws_json1_1ListEventPredictionsCommandError = async (output, co
|
|
|
2941
2803
|
...output,
|
|
2942
2804
|
body: await parseBody(output.body, context),
|
|
2943
2805
|
};
|
|
2944
|
-
let response;
|
|
2945
2806
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2946
2807
|
switch (errorCode) {
|
|
2947
2808
|
case "AccessDeniedException":
|
|
@@ -2958,14 +2819,12 @@ const deserializeAws_json1_1ListEventPredictionsCommandError = async (output, co
|
|
|
2958
2819
|
throw await deserializeAws_json1_1ValidationExceptionResponse(parsedOutput, context);
|
|
2959
2820
|
default:
|
|
2960
2821
|
const parsedBody = parsedOutput.body;
|
|
2961
|
-
|
|
2962
|
-
|
|
2963
|
-
|
|
2964
|
-
|
|
2965
|
-
|
|
2966
|
-
$metadata,
|
|
2822
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
2823
|
+
output,
|
|
2824
|
+
parsedBody,
|
|
2825
|
+
exceptionCtor: FraudDetectorServiceException_1.FraudDetectorServiceException,
|
|
2826
|
+
errorCode,
|
|
2967
2827
|
});
|
|
2968
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2969
2828
|
}
|
|
2970
2829
|
};
|
|
2971
2830
|
const deserializeAws_json1_1ListTagsForResourceCommand = async (output, context) => {
|
|
@@ -2987,7 +2846,6 @@ const deserializeAws_json1_1ListTagsForResourceCommandError = async (output, con
|
|
|
2987
2846
|
...output,
|
|
2988
2847
|
body: await parseBody(output.body, context),
|
|
2989
2848
|
};
|
|
2990
|
-
let response;
|
|
2991
2849
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2992
2850
|
switch (errorCode) {
|
|
2993
2851
|
case "AccessDeniedException":
|
|
@@ -3004,14 +2862,12 @@ const deserializeAws_json1_1ListTagsForResourceCommandError = async (output, con
|
|
|
3004
2862
|
throw await deserializeAws_json1_1ValidationExceptionResponse(parsedOutput, context);
|
|
3005
2863
|
default:
|
|
3006
2864
|
const parsedBody = parsedOutput.body;
|
|
3007
|
-
|
|
3008
|
-
|
|
3009
|
-
|
|
3010
|
-
|
|
3011
|
-
|
|
3012
|
-
$metadata,
|
|
2865
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
2866
|
+
output,
|
|
2867
|
+
parsedBody,
|
|
2868
|
+
exceptionCtor: FraudDetectorServiceException_1.FraudDetectorServiceException,
|
|
2869
|
+
errorCode,
|
|
3013
2870
|
});
|
|
3014
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
3015
2871
|
}
|
|
3016
2872
|
};
|
|
3017
2873
|
const deserializeAws_json1_1PutDetectorCommand = async (output, context) => {
|
|
@@ -3033,7 +2889,6 @@ const deserializeAws_json1_1PutDetectorCommandError = async (output, context) =>
|
|
|
3033
2889
|
...output,
|
|
3034
2890
|
body: await parseBody(output.body, context),
|
|
3035
2891
|
};
|
|
3036
|
-
let response;
|
|
3037
2892
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3038
2893
|
switch (errorCode) {
|
|
3039
2894
|
case "AccessDeniedException":
|
|
@@ -3053,14 +2908,12 @@ const deserializeAws_json1_1PutDetectorCommandError = async (output, context) =>
|
|
|
3053
2908
|
throw await deserializeAws_json1_1ValidationExceptionResponse(parsedOutput, context);
|
|
3054
2909
|
default:
|
|
3055
2910
|
const parsedBody = parsedOutput.body;
|
|
3056
|
-
|
|
3057
|
-
|
|
3058
|
-
|
|
3059
|
-
|
|
3060
|
-
|
|
3061
|
-
$metadata,
|
|
2911
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
2912
|
+
output,
|
|
2913
|
+
parsedBody,
|
|
2914
|
+
exceptionCtor: FraudDetectorServiceException_1.FraudDetectorServiceException,
|
|
2915
|
+
errorCode,
|
|
3062
2916
|
});
|
|
3063
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
3064
2917
|
}
|
|
3065
2918
|
};
|
|
3066
2919
|
const deserializeAws_json1_1PutEntityTypeCommand = async (output, context) => {
|
|
@@ -3082,7 +2935,6 @@ const deserializeAws_json1_1PutEntityTypeCommandError = async (output, context)
|
|
|
3082
2935
|
...output,
|
|
3083
2936
|
body: await parseBody(output.body, context),
|
|
3084
2937
|
};
|
|
3085
|
-
let response;
|
|
3086
2938
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3087
2939
|
switch (errorCode) {
|
|
3088
2940
|
case "AccessDeniedException":
|
|
@@ -3102,14 +2954,12 @@ const deserializeAws_json1_1PutEntityTypeCommandError = async (output, context)
|
|
|
3102
2954
|
throw await deserializeAws_json1_1ValidationExceptionResponse(parsedOutput, context);
|
|
3103
2955
|
default:
|
|
3104
2956
|
const parsedBody = parsedOutput.body;
|
|
3105
|
-
|
|
3106
|
-
|
|
3107
|
-
|
|
3108
|
-
|
|
3109
|
-
|
|
3110
|
-
$metadata,
|
|
2957
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
2958
|
+
output,
|
|
2959
|
+
parsedBody,
|
|
2960
|
+
exceptionCtor: FraudDetectorServiceException_1.FraudDetectorServiceException,
|
|
2961
|
+
errorCode,
|
|
3111
2962
|
});
|
|
3112
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
3113
2963
|
}
|
|
3114
2964
|
};
|
|
3115
2965
|
const deserializeAws_json1_1PutEventTypeCommand = async (output, context) => {
|
|
@@ -3131,7 +2981,6 @@ const deserializeAws_json1_1PutEventTypeCommandError = async (output, context) =
|
|
|
3131
2981
|
...output,
|
|
3132
2982
|
body: await parseBody(output.body, context),
|
|
3133
2983
|
};
|
|
3134
|
-
let response;
|
|
3135
2984
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3136
2985
|
switch (errorCode) {
|
|
3137
2986
|
case "AccessDeniedException":
|
|
@@ -3151,14 +3000,12 @@ const deserializeAws_json1_1PutEventTypeCommandError = async (output, context) =
|
|
|
3151
3000
|
throw await deserializeAws_json1_1ValidationExceptionResponse(parsedOutput, context);
|
|
3152
3001
|
default:
|
|
3153
3002
|
const parsedBody = parsedOutput.body;
|
|
3154
|
-
|
|
3155
|
-
|
|
3156
|
-
|
|
3157
|
-
|
|
3158
|
-
|
|
3159
|
-
$metadata,
|
|
3003
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
3004
|
+
output,
|
|
3005
|
+
parsedBody,
|
|
3006
|
+
exceptionCtor: FraudDetectorServiceException_1.FraudDetectorServiceException,
|
|
3007
|
+
errorCode,
|
|
3160
3008
|
});
|
|
3161
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
3162
3009
|
}
|
|
3163
3010
|
};
|
|
3164
3011
|
const deserializeAws_json1_1PutExternalModelCommand = async (output, context) => {
|
|
@@ -3180,7 +3027,6 @@ const deserializeAws_json1_1PutExternalModelCommandError = async (output, contex
|
|
|
3180
3027
|
...output,
|
|
3181
3028
|
body: await parseBody(output.body, context),
|
|
3182
3029
|
};
|
|
3183
|
-
let response;
|
|
3184
3030
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3185
3031
|
switch (errorCode) {
|
|
3186
3032
|
case "AccessDeniedException":
|
|
@@ -3200,14 +3046,12 @@ const deserializeAws_json1_1PutExternalModelCommandError = async (output, contex
|
|
|
3200
3046
|
throw await deserializeAws_json1_1ValidationExceptionResponse(parsedOutput, context);
|
|
3201
3047
|
default:
|
|
3202
3048
|
const parsedBody = parsedOutput.body;
|
|
3203
|
-
|
|
3204
|
-
|
|
3205
|
-
|
|
3206
|
-
|
|
3207
|
-
|
|
3208
|
-
$metadata,
|
|
3049
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
3050
|
+
output,
|
|
3051
|
+
parsedBody,
|
|
3052
|
+
exceptionCtor: FraudDetectorServiceException_1.FraudDetectorServiceException,
|
|
3053
|
+
errorCode,
|
|
3209
3054
|
});
|
|
3210
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
3211
3055
|
}
|
|
3212
3056
|
};
|
|
3213
3057
|
const deserializeAws_json1_1PutKMSEncryptionKeyCommand = async (output, context) => {
|
|
@@ -3229,7 +3073,6 @@ const deserializeAws_json1_1PutKMSEncryptionKeyCommandError = async (output, con
|
|
|
3229
3073
|
...output,
|
|
3230
3074
|
body: await parseBody(output.body, context),
|
|
3231
3075
|
};
|
|
3232
|
-
let response;
|
|
3233
3076
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3234
3077
|
switch (errorCode) {
|
|
3235
3078
|
case "AccessDeniedException":
|
|
@@ -3252,14 +3095,12 @@ const deserializeAws_json1_1PutKMSEncryptionKeyCommandError = async (output, con
|
|
|
3252
3095
|
throw await deserializeAws_json1_1ValidationExceptionResponse(parsedOutput, context);
|
|
3253
3096
|
default:
|
|
3254
3097
|
const parsedBody = parsedOutput.body;
|
|
3255
|
-
|
|
3256
|
-
|
|
3257
|
-
|
|
3258
|
-
|
|
3259
|
-
|
|
3260
|
-
$metadata,
|
|
3098
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
3099
|
+
output,
|
|
3100
|
+
parsedBody,
|
|
3101
|
+
exceptionCtor: FraudDetectorServiceException_1.FraudDetectorServiceException,
|
|
3102
|
+
errorCode,
|
|
3261
3103
|
});
|
|
3262
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
3263
3104
|
}
|
|
3264
3105
|
};
|
|
3265
3106
|
const deserializeAws_json1_1PutLabelCommand = async (output, context) => {
|
|
@@ -3281,7 +3122,6 @@ const deserializeAws_json1_1PutLabelCommandError = async (output, context) => {
|
|
|
3281
3122
|
...output,
|
|
3282
3123
|
body: await parseBody(output.body, context),
|
|
3283
3124
|
};
|
|
3284
|
-
let response;
|
|
3285
3125
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3286
3126
|
switch (errorCode) {
|
|
3287
3127
|
case "AccessDeniedException":
|
|
@@ -3301,14 +3141,12 @@ const deserializeAws_json1_1PutLabelCommandError = async (output, context) => {
|
|
|
3301
3141
|
throw await deserializeAws_json1_1ValidationExceptionResponse(parsedOutput, context);
|
|
3302
3142
|
default:
|
|
3303
3143
|
const parsedBody = parsedOutput.body;
|
|
3304
|
-
|
|
3305
|
-
|
|
3306
|
-
|
|
3307
|
-
|
|
3308
|
-
|
|
3309
|
-
$metadata,
|
|
3144
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
3145
|
+
output,
|
|
3146
|
+
parsedBody,
|
|
3147
|
+
exceptionCtor: FraudDetectorServiceException_1.FraudDetectorServiceException,
|
|
3148
|
+
errorCode,
|
|
3310
3149
|
});
|
|
3311
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
3312
3150
|
}
|
|
3313
3151
|
};
|
|
3314
3152
|
const deserializeAws_json1_1PutOutcomeCommand = async (output, context) => {
|
|
@@ -3330,7 +3168,6 @@ const deserializeAws_json1_1PutOutcomeCommandError = async (output, context) =>
|
|
|
3330
3168
|
...output,
|
|
3331
3169
|
body: await parseBody(output.body, context),
|
|
3332
3170
|
};
|
|
3333
|
-
let response;
|
|
3334
3171
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3335
3172
|
switch (errorCode) {
|
|
3336
3173
|
case "AccessDeniedException":
|
|
@@ -3350,14 +3187,12 @@ const deserializeAws_json1_1PutOutcomeCommandError = async (output, context) =>
|
|
|
3350
3187
|
throw await deserializeAws_json1_1ValidationExceptionResponse(parsedOutput, context);
|
|
3351
3188
|
default:
|
|
3352
3189
|
const parsedBody = parsedOutput.body;
|
|
3353
|
-
|
|
3354
|
-
|
|
3355
|
-
|
|
3356
|
-
|
|
3357
|
-
|
|
3358
|
-
$metadata,
|
|
3190
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
3191
|
+
output,
|
|
3192
|
+
parsedBody,
|
|
3193
|
+
exceptionCtor: FraudDetectorServiceException_1.FraudDetectorServiceException,
|
|
3194
|
+
errorCode,
|
|
3359
3195
|
});
|
|
3360
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
3361
3196
|
}
|
|
3362
3197
|
};
|
|
3363
3198
|
const deserializeAws_json1_1SendEventCommand = async (output, context) => {
|
|
@@ -3379,7 +3214,6 @@ const deserializeAws_json1_1SendEventCommandError = async (output, context) => {
|
|
|
3379
3214
|
...output,
|
|
3380
3215
|
body: await parseBody(output.body, context),
|
|
3381
3216
|
};
|
|
3382
|
-
let response;
|
|
3383
3217
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3384
3218
|
switch (errorCode) {
|
|
3385
3219
|
case "AccessDeniedException":
|
|
@@ -3402,14 +3236,12 @@ const deserializeAws_json1_1SendEventCommandError = async (output, context) => {
|
|
|
3402
3236
|
throw await deserializeAws_json1_1ValidationExceptionResponse(parsedOutput, context);
|
|
3403
3237
|
default:
|
|
3404
3238
|
const parsedBody = parsedOutput.body;
|
|
3405
|
-
|
|
3406
|
-
|
|
3407
|
-
|
|
3408
|
-
|
|
3409
|
-
|
|
3410
|
-
$metadata,
|
|
3239
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
3240
|
+
output,
|
|
3241
|
+
parsedBody,
|
|
3242
|
+
exceptionCtor: FraudDetectorServiceException_1.FraudDetectorServiceException,
|
|
3243
|
+
errorCode,
|
|
3411
3244
|
});
|
|
3412
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
3413
3245
|
}
|
|
3414
3246
|
};
|
|
3415
3247
|
const deserializeAws_json1_1TagResourceCommand = async (output, context) => {
|
|
@@ -3431,7 +3263,6 @@ const deserializeAws_json1_1TagResourceCommandError = async (output, context) =>
|
|
|
3431
3263
|
...output,
|
|
3432
3264
|
body: await parseBody(output.body, context),
|
|
3433
3265
|
};
|
|
3434
|
-
let response;
|
|
3435
3266
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3436
3267
|
switch (errorCode) {
|
|
3437
3268
|
case "AccessDeniedException":
|
|
@@ -3448,14 +3279,12 @@ const deserializeAws_json1_1TagResourceCommandError = async (output, context) =>
|
|
|
3448
3279
|
throw await deserializeAws_json1_1ValidationExceptionResponse(parsedOutput, context);
|
|
3449
3280
|
default:
|
|
3450
3281
|
const parsedBody = parsedOutput.body;
|
|
3451
|
-
|
|
3452
|
-
|
|
3453
|
-
|
|
3454
|
-
|
|
3455
|
-
|
|
3456
|
-
$metadata,
|
|
3282
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
3283
|
+
output,
|
|
3284
|
+
parsedBody,
|
|
3285
|
+
exceptionCtor: FraudDetectorServiceException_1.FraudDetectorServiceException,
|
|
3286
|
+
errorCode,
|
|
3457
3287
|
});
|
|
3458
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
3459
3288
|
}
|
|
3460
3289
|
};
|
|
3461
3290
|
const deserializeAws_json1_1UntagResourceCommand = async (output, context) => {
|
|
@@ -3477,7 +3306,6 @@ const deserializeAws_json1_1UntagResourceCommandError = async (output, context)
|
|
|
3477
3306
|
...output,
|
|
3478
3307
|
body: await parseBody(output.body, context),
|
|
3479
3308
|
};
|
|
3480
|
-
let response;
|
|
3481
3309
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3482
3310
|
switch (errorCode) {
|
|
3483
3311
|
case "AccessDeniedException":
|
|
@@ -3494,14 +3322,12 @@ const deserializeAws_json1_1UntagResourceCommandError = async (output, context)
|
|
|
3494
3322
|
throw await deserializeAws_json1_1ValidationExceptionResponse(parsedOutput, context);
|
|
3495
3323
|
default:
|
|
3496
3324
|
const parsedBody = parsedOutput.body;
|
|
3497
|
-
|
|
3498
|
-
|
|
3499
|
-
|
|
3500
|
-
|
|
3501
|
-
|
|
3502
|
-
$metadata,
|
|
3325
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
3326
|
+
output,
|
|
3327
|
+
parsedBody,
|
|
3328
|
+
exceptionCtor: FraudDetectorServiceException_1.FraudDetectorServiceException,
|
|
3329
|
+
errorCode,
|
|
3503
3330
|
});
|
|
3504
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
3505
3331
|
}
|
|
3506
3332
|
};
|
|
3507
3333
|
const deserializeAws_json1_1UpdateDetectorVersionCommand = async (output, context) => {
|
|
@@ -3523,7 +3349,6 @@ const deserializeAws_json1_1UpdateDetectorVersionCommandError = async (output, c
|
|
|
3523
3349
|
...output,
|
|
3524
3350
|
body: await parseBody(output.body, context),
|
|
3525
3351
|
};
|
|
3526
|
-
let response;
|
|
3527
3352
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3528
3353
|
switch (errorCode) {
|
|
3529
3354
|
case "AccessDeniedException":
|
|
@@ -3546,14 +3371,12 @@ const deserializeAws_json1_1UpdateDetectorVersionCommandError = async (output, c
|
|
|
3546
3371
|
throw await deserializeAws_json1_1ValidationExceptionResponse(parsedOutput, context);
|
|
3547
3372
|
default:
|
|
3548
3373
|
const parsedBody = parsedOutput.body;
|
|
3549
|
-
|
|
3550
|
-
|
|
3551
|
-
|
|
3552
|
-
|
|
3553
|
-
|
|
3554
|
-
$metadata,
|
|
3374
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
3375
|
+
output,
|
|
3376
|
+
parsedBody,
|
|
3377
|
+
exceptionCtor: FraudDetectorServiceException_1.FraudDetectorServiceException,
|
|
3378
|
+
errorCode,
|
|
3555
3379
|
});
|
|
3556
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
3557
3380
|
}
|
|
3558
3381
|
};
|
|
3559
3382
|
const deserializeAws_json1_1UpdateDetectorVersionMetadataCommand = async (output, context) => {
|
|
@@ -3575,7 +3398,6 @@ const deserializeAws_json1_1UpdateDetectorVersionMetadataCommandError = async (o
|
|
|
3575
3398
|
...output,
|
|
3576
3399
|
body: await parseBody(output.body, context),
|
|
3577
3400
|
};
|
|
3578
|
-
let response;
|
|
3579
3401
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3580
3402
|
switch (errorCode) {
|
|
3581
3403
|
case "AccessDeniedException":
|
|
@@ -3595,14 +3417,12 @@ const deserializeAws_json1_1UpdateDetectorVersionMetadataCommandError = async (o
|
|
|
3595
3417
|
throw await deserializeAws_json1_1ValidationExceptionResponse(parsedOutput, context);
|
|
3596
3418
|
default:
|
|
3597
3419
|
const parsedBody = parsedOutput.body;
|
|
3598
|
-
|
|
3599
|
-
|
|
3600
|
-
|
|
3601
|
-
|
|
3602
|
-
|
|
3603
|
-
$metadata,
|
|
3420
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
3421
|
+
output,
|
|
3422
|
+
parsedBody,
|
|
3423
|
+
exceptionCtor: FraudDetectorServiceException_1.FraudDetectorServiceException,
|
|
3424
|
+
errorCode,
|
|
3604
3425
|
});
|
|
3605
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
3606
3426
|
}
|
|
3607
3427
|
};
|
|
3608
3428
|
const deserializeAws_json1_1UpdateDetectorVersionStatusCommand = async (output, context) => {
|
|
@@ -3624,7 +3444,6 @@ const deserializeAws_json1_1UpdateDetectorVersionStatusCommandError = async (out
|
|
|
3624
3444
|
...output,
|
|
3625
3445
|
body: await parseBody(output.body, context),
|
|
3626
3446
|
};
|
|
3627
|
-
let response;
|
|
3628
3447
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3629
3448
|
switch (errorCode) {
|
|
3630
3449
|
case "AccessDeniedException":
|
|
@@ -3647,14 +3466,12 @@ const deserializeAws_json1_1UpdateDetectorVersionStatusCommandError = async (out
|
|
|
3647
3466
|
throw await deserializeAws_json1_1ValidationExceptionResponse(parsedOutput, context);
|
|
3648
3467
|
default:
|
|
3649
3468
|
const parsedBody = parsedOutput.body;
|
|
3650
|
-
|
|
3651
|
-
|
|
3652
|
-
|
|
3653
|
-
|
|
3654
|
-
|
|
3655
|
-
$metadata,
|
|
3469
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
3470
|
+
output,
|
|
3471
|
+
parsedBody,
|
|
3472
|
+
exceptionCtor: FraudDetectorServiceException_1.FraudDetectorServiceException,
|
|
3473
|
+
errorCode,
|
|
3656
3474
|
});
|
|
3657
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
3658
3475
|
}
|
|
3659
3476
|
};
|
|
3660
3477
|
const deserializeAws_json1_1UpdateEventLabelCommand = async (output, context) => {
|
|
@@ -3676,7 +3493,6 @@ const deserializeAws_json1_1UpdateEventLabelCommandError = async (output, contex
|
|
|
3676
3493
|
...output,
|
|
3677
3494
|
body: await parseBody(output.body, context),
|
|
3678
3495
|
};
|
|
3679
|
-
let response;
|
|
3680
3496
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3681
3497
|
switch (errorCode) {
|
|
3682
3498
|
case "AccessDeniedException":
|
|
@@ -3699,14 +3515,12 @@ const deserializeAws_json1_1UpdateEventLabelCommandError = async (output, contex
|
|
|
3699
3515
|
throw await deserializeAws_json1_1ValidationExceptionResponse(parsedOutput, context);
|
|
3700
3516
|
default:
|
|
3701
3517
|
const parsedBody = parsedOutput.body;
|
|
3702
|
-
|
|
3703
|
-
|
|
3704
|
-
|
|
3705
|
-
|
|
3706
|
-
|
|
3707
|
-
$metadata,
|
|
3518
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
3519
|
+
output,
|
|
3520
|
+
parsedBody,
|
|
3521
|
+
exceptionCtor: FraudDetectorServiceException_1.FraudDetectorServiceException,
|
|
3522
|
+
errorCode,
|
|
3708
3523
|
});
|
|
3709
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
3710
3524
|
}
|
|
3711
3525
|
};
|
|
3712
3526
|
const deserializeAws_json1_1UpdateModelCommand = async (output, context) => {
|
|
@@ -3728,7 +3542,6 @@ const deserializeAws_json1_1UpdateModelCommandError = async (output, context) =>
|
|
|
3728
3542
|
...output,
|
|
3729
3543
|
body: await parseBody(output.body, context),
|
|
3730
3544
|
};
|
|
3731
|
-
let response;
|
|
3732
3545
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3733
3546
|
switch (errorCode) {
|
|
3734
3547
|
case "AccessDeniedException":
|
|
@@ -3751,14 +3564,12 @@ const deserializeAws_json1_1UpdateModelCommandError = async (output, context) =>
|
|
|
3751
3564
|
throw await deserializeAws_json1_1ValidationExceptionResponse(parsedOutput, context);
|
|
3752
3565
|
default:
|
|
3753
3566
|
const parsedBody = parsedOutput.body;
|
|
3754
|
-
|
|
3755
|
-
|
|
3756
|
-
|
|
3757
|
-
|
|
3758
|
-
|
|
3759
|
-
$metadata,
|
|
3567
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
3568
|
+
output,
|
|
3569
|
+
parsedBody,
|
|
3570
|
+
exceptionCtor: FraudDetectorServiceException_1.FraudDetectorServiceException,
|
|
3571
|
+
errorCode,
|
|
3760
3572
|
});
|
|
3761
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
3762
3573
|
}
|
|
3763
3574
|
};
|
|
3764
3575
|
const deserializeAws_json1_1UpdateModelVersionCommand = async (output, context) => {
|
|
@@ -3780,7 +3591,6 @@ const deserializeAws_json1_1UpdateModelVersionCommandError = async (output, cont
|
|
|
3780
3591
|
...output,
|
|
3781
3592
|
body: await parseBody(output.body, context),
|
|
3782
3593
|
};
|
|
3783
|
-
let response;
|
|
3784
3594
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3785
3595
|
switch (errorCode) {
|
|
3786
3596
|
case "AccessDeniedException":
|
|
@@ -3803,14 +3613,12 @@ const deserializeAws_json1_1UpdateModelVersionCommandError = async (output, cont
|
|
|
3803
3613
|
throw await deserializeAws_json1_1ValidationExceptionResponse(parsedOutput, context);
|
|
3804
3614
|
default:
|
|
3805
3615
|
const parsedBody = parsedOutput.body;
|
|
3806
|
-
|
|
3807
|
-
|
|
3808
|
-
|
|
3809
|
-
|
|
3810
|
-
|
|
3811
|
-
$metadata,
|
|
3616
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
3617
|
+
output,
|
|
3618
|
+
parsedBody,
|
|
3619
|
+
exceptionCtor: FraudDetectorServiceException_1.FraudDetectorServiceException,
|
|
3620
|
+
errorCode,
|
|
3812
3621
|
});
|
|
3813
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
3814
3622
|
}
|
|
3815
3623
|
};
|
|
3816
3624
|
const deserializeAws_json1_1UpdateModelVersionStatusCommand = async (output, context) => {
|
|
@@ -3832,7 +3640,6 @@ const deserializeAws_json1_1UpdateModelVersionStatusCommandError = async (output
|
|
|
3832
3640
|
...output,
|
|
3833
3641
|
body: await parseBody(output.body, context),
|
|
3834
3642
|
};
|
|
3835
|
-
let response;
|
|
3836
3643
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3837
3644
|
switch (errorCode) {
|
|
3838
3645
|
case "AccessDeniedException":
|
|
@@ -3855,14 +3662,12 @@ const deserializeAws_json1_1UpdateModelVersionStatusCommandError = async (output
|
|
|
3855
3662
|
throw await deserializeAws_json1_1ValidationExceptionResponse(parsedOutput, context);
|
|
3856
3663
|
default:
|
|
3857
3664
|
const parsedBody = parsedOutput.body;
|
|
3858
|
-
|
|
3859
|
-
|
|
3860
|
-
|
|
3861
|
-
|
|
3862
|
-
|
|
3863
|
-
$metadata,
|
|
3665
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
3666
|
+
output,
|
|
3667
|
+
parsedBody,
|
|
3668
|
+
exceptionCtor: FraudDetectorServiceException_1.FraudDetectorServiceException,
|
|
3669
|
+
errorCode,
|
|
3864
3670
|
});
|
|
3865
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
3866
3671
|
}
|
|
3867
3672
|
};
|
|
3868
3673
|
const deserializeAws_json1_1UpdateRuleMetadataCommand = async (output, context) => {
|
|
@@ -3884,7 +3689,6 @@ const deserializeAws_json1_1UpdateRuleMetadataCommandError = async (output, cont
|
|
|
3884
3689
|
...output,
|
|
3885
3690
|
body: await parseBody(output.body, context),
|
|
3886
3691
|
};
|
|
3887
|
-
let response;
|
|
3888
3692
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3889
3693
|
switch (errorCode) {
|
|
3890
3694
|
case "AccessDeniedException":
|
|
@@ -3907,14 +3711,12 @@ const deserializeAws_json1_1UpdateRuleMetadataCommandError = async (output, cont
|
|
|
3907
3711
|
throw await deserializeAws_json1_1ValidationExceptionResponse(parsedOutput, context);
|
|
3908
3712
|
default:
|
|
3909
3713
|
const parsedBody = parsedOutput.body;
|
|
3910
|
-
|
|
3911
|
-
|
|
3912
|
-
|
|
3913
|
-
|
|
3914
|
-
|
|
3915
|
-
$metadata,
|
|
3714
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
3715
|
+
output,
|
|
3716
|
+
parsedBody,
|
|
3717
|
+
exceptionCtor: FraudDetectorServiceException_1.FraudDetectorServiceException,
|
|
3718
|
+
errorCode,
|
|
3916
3719
|
});
|
|
3917
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
3918
3720
|
}
|
|
3919
3721
|
};
|
|
3920
3722
|
const deserializeAws_json1_1UpdateRuleVersionCommand = async (output, context) => {
|
|
@@ -3936,7 +3738,6 @@ const deserializeAws_json1_1UpdateRuleVersionCommandError = async (output, conte
|
|
|
3936
3738
|
...output,
|
|
3937
3739
|
body: await parseBody(output.body, context),
|
|
3938
3740
|
};
|
|
3939
|
-
let response;
|
|
3940
3741
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3941
3742
|
switch (errorCode) {
|
|
3942
3743
|
case "AccessDeniedException":
|
|
@@ -3959,14 +3760,12 @@ const deserializeAws_json1_1UpdateRuleVersionCommandError = async (output, conte
|
|
|
3959
3760
|
throw await deserializeAws_json1_1ValidationExceptionResponse(parsedOutput, context);
|
|
3960
3761
|
default:
|
|
3961
3762
|
const parsedBody = parsedOutput.body;
|
|
3962
|
-
|
|
3963
|
-
|
|
3964
|
-
|
|
3965
|
-
|
|
3966
|
-
|
|
3967
|
-
$metadata,
|
|
3763
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
3764
|
+
output,
|
|
3765
|
+
parsedBody,
|
|
3766
|
+
exceptionCtor: FraudDetectorServiceException_1.FraudDetectorServiceException,
|
|
3767
|
+
errorCode,
|
|
3968
3768
|
});
|
|
3969
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
3970
3769
|
}
|
|
3971
3770
|
};
|
|
3972
3771
|
const deserializeAws_json1_1UpdateVariableCommand = async (output, context) => {
|
|
@@ -3988,7 +3787,6 @@ const deserializeAws_json1_1UpdateVariableCommandError = async (output, context)
|
|
|
3988
3787
|
...output,
|
|
3989
3788
|
body: await parseBody(output.body, context),
|
|
3990
3789
|
};
|
|
3991
|
-
let response;
|
|
3992
3790
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3993
3791
|
switch (errorCode) {
|
|
3994
3792
|
case "AccessDeniedException":
|
|
@@ -4011,14 +3809,12 @@ const deserializeAws_json1_1UpdateVariableCommandError = async (output, context)
|
|
|
4011
3809
|
throw await deserializeAws_json1_1ValidationExceptionResponse(parsedOutput, context);
|
|
4012
3810
|
default:
|
|
4013
3811
|
const parsedBody = parsedOutput.body;
|
|
4014
|
-
|
|
4015
|
-
|
|
4016
|
-
|
|
4017
|
-
|
|
4018
|
-
|
|
4019
|
-
$metadata,
|
|
3812
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
3813
|
+
output,
|
|
3814
|
+
parsedBody,
|
|
3815
|
+
exceptionCtor: FraudDetectorServiceException_1.FraudDetectorServiceException,
|
|
3816
|
+
errorCode,
|
|
4020
3817
|
});
|
|
4021
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
4022
3818
|
}
|
|
4023
3819
|
};
|
|
4024
3820
|
const deserializeAws_json1_1AccessDeniedExceptionResponse = async (parsedOutput, context) => {
|
|
@@ -4528,9 +4324,6 @@ const serializeAws_json1_1listOfEntities = (input, context) => {
|
|
|
4528
4324
|
return input
|
|
4529
4325
|
.filter((e) => e != null)
|
|
4530
4326
|
.map((entry) => {
|
|
4531
|
-
if (entry === null) {
|
|
4532
|
-
return null;
|
|
4533
|
-
}
|
|
4534
4327
|
return serializeAws_json1_1Entity(entry, context);
|
|
4535
4328
|
});
|
|
4536
4329
|
};
|
|
@@ -4538,9 +4331,6 @@ const serializeAws_json1_1ListOfModelVersions = (input, context) => {
|
|
|
4538
4331
|
return input
|
|
4539
4332
|
.filter((e) => e != null)
|
|
4540
4333
|
.map((entry) => {
|
|
4541
|
-
if (entry === null) {
|
|
4542
|
-
return null;
|
|
4543
|
-
}
|
|
4544
4334
|
return serializeAws_json1_1ModelVersion(entry, context);
|
|
4545
4335
|
});
|
|
4546
4336
|
};
|
|
@@ -4548,9 +4338,6 @@ const serializeAws_json1_1ListOfStrings = (input, context) => {
|
|
|
4548
4338
|
return input
|
|
4549
4339
|
.filter((e) => e != null)
|
|
4550
4340
|
.map((entry) => {
|
|
4551
|
-
if (entry === null) {
|
|
4552
|
-
return null;
|
|
4553
|
-
}
|
|
4554
4341
|
return entry;
|
|
4555
4342
|
});
|
|
4556
4343
|
};
|
|
@@ -4599,9 +4386,6 @@ const serializeAws_json1_1NameList = (input, context) => {
|
|
|
4599
4386
|
return input
|
|
4600
4387
|
.filter((e) => e != null)
|
|
4601
4388
|
.map((entry) => {
|
|
4602
|
-
if (entry === null) {
|
|
4603
|
-
return null;
|
|
4604
|
-
}
|
|
4605
4389
|
return entry;
|
|
4606
4390
|
});
|
|
4607
4391
|
};
|
|
@@ -4609,9 +4393,6 @@ const serializeAws_json1_1NonEmptyListOfStrings = (input, context) => {
|
|
|
4609
4393
|
return input
|
|
4610
4394
|
.filter((e) => e != null)
|
|
4611
4395
|
.map((entry) => {
|
|
4612
|
-
if (entry === null) {
|
|
4613
|
-
return null;
|
|
4614
|
-
}
|
|
4615
4396
|
return entry;
|
|
4616
4397
|
});
|
|
4617
4398
|
};
|
|
@@ -4696,9 +4477,6 @@ const serializeAws_json1_1RuleList = (input, context) => {
|
|
|
4696
4477
|
return input
|
|
4697
4478
|
.filter((e) => e != null)
|
|
4698
4479
|
.map((entry) => {
|
|
4699
|
-
if (entry === null) {
|
|
4700
|
-
return null;
|
|
4701
|
-
}
|
|
4702
4480
|
return serializeAws_json1_1Rule(entry, context);
|
|
4703
4481
|
});
|
|
4704
4482
|
};
|
|
@@ -4725,9 +4503,6 @@ const serializeAws_json1_1tagKeyList = (input, context) => {
|
|
|
4725
4503
|
return input
|
|
4726
4504
|
.filter((e) => e != null)
|
|
4727
4505
|
.map((entry) => {
|
|
4728
|
-
if (entry === null) {
|
|
4729
|
-
return null;
|
|
4730
|
-
}
|
|
4731
4506
|
return entry;
|
|
4732
4507
|
});
|
|
4733
4508
|
};
|
|
@@ -4735,9 +4510,6 @@ const serializeAws_json1_1tagList = (input, context) => {
|
|
|
4735
4510
|
return input
|
|
4736
4511
|
.filter((e) => e != null)
|
|
4737
4512
|
.map((entry) => {
|
|
4738
|
-
if (entry === null) {
|
|
4739
|
-
return null;
|
|
4740
|
-
}
|
|
4741
4513
|
return serializeAws_json1_1Tag(entry, context);
|
|
4742
4514
|
});
|
|
4743
4515
|
};
|
|
@@ -4865,9 +4637,6 @@ const serializeAws_json1_1VariableEntryList = (input, context) => {
|
|
|
4865
4637
|
return input
|
|
4866
4638
|
.filter((e) => e != null)
|
|
4867
4639
|
.map((entry) => {
|
|
4868
|
-
if (entry === null) {
|
|
4869
|
-
return null;
|
|
4870
|
-
}
|
|
4871
4640
|
return serializeAws_json1_1VariableEntry(entry, context);
|
|
4872
4641
|
});
|
|
4873
4642
|
};
|