@aws-sdk/client-frauddetector 3.504.0 → 3.509.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/dist-cjs/index.js +128 -2357
- package/dist-es/protocols/Aws_json1_1.js +194 -2423
- package/package.json +3 -3
package/dist-cjs/index.js
CHANGED
|
@@ -992,7 +992,7 @@ var se_UpdateVariableCommand = /* @__PURE__ */ __name(async (input, context) =>
|
|
|
992
992
|
}, "se_UpdateVariableCommand");
|
|
993
993
|
var de_BatchCreateVariableCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
994
994
|
if (output.statusCode >= 300) {
|
|
995
|
-
return
|
|
995
|
+
return de_CommandError(output, context);
|
|
996
996
|
}
|
|
997
997
|
const data = await parseBody(output.body, context);
|
|
998
998
|
let contents = {};
|
|
@@ -1003,37 +1003,9 @@ var de_BatchCreateVariableCommand = /* @__PURE__ */ __name(async (output, contex
|
|
|
1003
1003
|
};
|
|
1004
1004
|
return response;
|
|
1005
1005
|
}, "de_BatchCreateVariableCommand");
|
|
1006
|
-
var de_BatchCreateVariableCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1007
|
-
const parsedOutput = {
|
|
1008
|
-
...output,
|
|
1009
|
-
body: await parseErrorBody(output.body, context)
|
|
1010
|
-
};
|
|
1011
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1012
|
-
switch (errorCode) {
|
|
1013
|
-
case "AccessDeniedException":
|
|
1014
|
-
case "com.amazonaws.frauddetector#AccessDeniedException":
|
|
1015
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1016
|
-
case "InternalServerException":
|
|
1017
|
-
case "com.amazonaws.frauddetector#InternalServerException":
|
|
1018
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1019
|
-
case "ThrottlingException":
|
|
1020
|
-
case "com.amazonaws.frauddetector#ThrottlingException":
|
|
1021
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1022
|
-
case "ValidationException":
|
|
1023
|
-
case "com.amazonaws.frauddetector#ValidationException":
|
|
1024
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1025
|
-
default:
|
|
1026
|
-
const parsedBody = parsedOutput.body;
|
|
1027
|
-
return throwDefaultError({
|
|
1028
|
-
output,
|
|
1029
|
-
parsedBody,
|
|
1030
|
-
errorCode
|
|
1031
|
-
});
|
|
1032
|
-
}
|
|
1033
|
-
}, "de_BatchCreateVariableCommandError");
|
|
1034
1006
|
var de_BatchGetVariableCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1035
1007
|
if (output.statusCode >= 300) {
|
|
1036
|
-
return
|
|
1008
|
+
return de_CommandError(output, context);
|
|
1037
1009
|
}
|
|
1038
1010
|
const data = await parseBody(output.body, context);
|
|
1039
1011
|
let contents = {};
|
|
@@ -1044,37 +1016,9 @@ var de_BatchGetVariableCommand = /* @__PURE__ */ __name(async (output, context)
|
|
|
1044
1016
|
};
|
|
1045
1017
|
return response;
|
|
1046
1018
|
}, "de_BatchGetVariableCommand");
|
|
1047
|
-
var de_BatchGetVariableCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1048
|
-
const parsedOutput = {
|
|
1049
|
-
...output,
|
|
1050
|
-
body: await parseErrorBody(output.body, context)
|
|
1051
|
-
};
|
|
1052
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1053
|
-
switch (errorCode) {
|
|
1054
|
-
case "AccessDeniedException":
|
|
1055
|
-
case "com.amazonaws.frauddetector#AccessDeniedException":
|
|
1056
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1057
|
-
case "InternalServerException":
|
|
1058
|
-
case "com.amazonaws.frauddetector#InternalServerException":
|
|
1059
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1060
|
-
case "ThrottlingException":
|
|
1061
|
-
case "com.amazonaws.frauddetector#ThrottlingException":
|
|
1062
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1063
|
-
case "ValidationException":
|
|
1064
|
-
case "com.amazonaws.frauddetector#ValidationException":
|
|
1065
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1066
|
-
default:
|
|
1067
|
-
const parsedBody = parsedOutput.body;
|
|
1068
|
-
return throwDefaultError({
|
|
1069
|
-
output,
|
|
1070
|
-
parsedBody,
|
|
1071
|
-
errorCode
|
|
1072
|
-
});
|
|
1073
|
-
}
|
|
1074
|
-
}, "de_BatchGetVariableCommandError");
|
|
1075
1019
|
var de_CancelBatchImportJobCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1076
1020
|
if (output.statusCode >= 300) {
|
|
1077
|
-
return
|
|
1021
|
+
return de_CommandError(output, context);
|
|
1078
1022
|
}
|
|
1079
1023
|
const data = await parseBody(output.body, context);
|
|
1080
1024
|
let contents = {};
|
|
@@ -1085,40 +1029,9 @@ var de_CancelBatchImportJobCommand = /* @__PURE__ */ __name(async (output, conte
|
|
|
1085
1029
|
};
|
|
1086
1030
|
return response;
|
|
1087
1031
|
}, "de_CancelBatchImportJobCommand");
|
|
1088
|
-
var de_CancelBatchImportJobCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1089
|
-
const parsedOutput = {
|
|
1090
|
-
...output,
|
|
1091
|
-
body: await parseErrorBody(output.body, context)
|
|
1092
|
-
};
|
|
1093
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1094
|
-
switch (errorCode) {
|
|
1095
|
-
case "AccessDeniedException":
|
|
1096
|
-
case "com.amazonaws.frauddetector#AccessDeniedException":
|
|
1097
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1098
|
-
case "InternalServerException":
|
|
1099
|
-
case "com.amazonaws.frauddetector#InternalServerException":
|
|
1100
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1101
|
-
case "ResourceNotFoundException":
|
|
1102
|
-
case "com.amazonaws.frauddetector#ResourceNotFoundException":
|
|
1103
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1104
|
-
case "ThrottlingException":
|
|
1105
|
-
case "com.amazonaws.frauddetector#ThrottlingException":
|
|
1106
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1107
|
-
case "ValidationException":
|
|
1108
|
-
case "com.amazonaws.frauddetector#ValidationException":
|
|
1109
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1110
|
-
default:
|
|
1111
|
-
const parsedBody = parsedOutput.body;
|
|
1112
|
-
return throwDefaultError({
|
|
1113
|
-
output,
|
|
1114
|
-
parsedBody,
|
|
1115
|
-
errorCode
|
|
1116
|
-
});
|
|
1117
|
-
}
|
|
1118
|
-
}, "de_CancelBatchImportJobCommandError");
|
|
1119
1032
|
var de_CancelBatchPredictionJobCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1120
1033
|
if (output.statusCode >= 300) {
|
|
1121
|
-
return
|
|
1034
|
+
return de_CommandError(output, context);
|
|
1122
1035
|
}
|
|
1123
1036
|
const data = await parseBody(output.body, context);
|
|
1124
1037
|
let contents = {};
|
|
@@ -1129,40 +1042,9 @@ var de_CancelBatchPredictionJobCommand = /* @__PURE__ */ __name(async (output, c
|
|
|
1129
1042
|
};
|
|
1130
1043
|
return response;
|
|
1131
1044
|
}, "de_CancelBatchPredictionJobCommand");
|
|
1132
|
-
var de_CancelBatchPredictionJobCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1133
|
-
const parsedOutput = {
|
|
1134
|
-
...output,
|
|
1135
|
-
body: await parseErrorBody(output.body, context)
|
|
1136
|
-
};
|
|
1137
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1138
|
-
switch (errorCode) {
|
|
1139
|
-
case "AccessDeniedException":
|
|
1140
|
-
case "com.amazonaws.frauddetector#AccessDeniedException":
|
|
1141
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1142
|
-
case "InternalServerException":
|
|
1143
|
-
case "com.amazonaws.frauddetector#InternalServerException":
|
|
1144
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1145
|
-
case "ResourceNotFoundException":
|
|
1146
|
-
case "com.amazonaws.frauddetector#ResourceNotFoundException":
|
|
1147
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1148
|
-
case "ThrottlingException":
|
|
1149
|
-
case "com.amazonaws.frauddetector#ThrottlingException":
|
|
1150
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1151
|
-
case "ValidationException":
|
|
1152
|
-
case "com.amazonaws.frauddetector#ValidationException":
|
|
1153
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1154
|
-
default:
|
|
1155
|
-
const parsedBody = parsedOutput.body;
|
|
1156
|
-
return throwDefaultError({
|
|
1157
|
-
output,
|
|
1158
|
-
parsedBody,
|
|
1159
|
-
errorCode
|
|
1160
|
-
});
|
|
1161
|
-
}
|
|
1162
|
-
}, "de_CancelBatchPredictionJobCommandError");
|
|
1163
1045
|
var de_CreateBatchImportJobCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1164
1046
|
if (output.statusCode >= 300) {
|
|
1165
|
-
return
|
|
1047
|
+
return de_CommandError(output, context);
|
|
1166
1048
|
}
|
|
1167
1049
|
const data = await parseBody(output.body, context);
|
|
1168
1050
|
let contents = {};
|
|
@@ -1173,40 +1055,9 @@ var de_CreateBatchImportJobCommand = /* @__PURE__ */ __name(async (output, conte
|
|
|
1173
1055
|
};
|
|
1174
1056
|
return response;
|
|
1175
1057
|
}, "de_CreateBatchImportJobCommand");
|
|
1176
|
-
var de_CreateBatchImportJobCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1177
|
-
const parsedOutput = {
|
|
1178
|
-
...output,
|
|
1179
|
-
body: await parseErrorBody(output.body, context)
|
|
1180
|
-
};
|
|
1181
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1182
|
-
switch (errorCode) {
|
|
1183
|
-
case "AccessDeniedException":
|
|
1184
|
-
case "com.amazonaws.frauddetector#AccessDeniedException":
|
|
1185
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1186
|
-
case "InternalServerException":
|
|
1187
|
-
case "com.amazonaws.frauddetector#InternalServerException":
|
|
1188
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1189
|
-
case "ResourceNotFoundException":
|
|
1190
|
-
case "com.amazonaws.frauddetector#ResourceNotFoundException":
|
|
1191
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1192
|
-
case "ThrottlingException":
|
|
1193
|
-
case "com.amazonaws.frauddetector#ThrottlingException":
|
|
1194
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1195
|
-
case "ValidationException":
|
|
1196
|
-
case "com.amazonaws.frauddetector#ValidationException":
|
|
1197
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1198
|
-
default:
|
|
1199
|
-
const parsedBody = parsedOutput.body;
|
|
1200
|
-
return throwDefaultError({
|
|
1201
|
-
output,
|
|
1202
|
-
parsedBody,
|
|
1203
|
-
errorCode
|
|
1204
|
-
});
|
|
1205
|
-
}
|
|
1206
|
-
}, "de_CreateBatchImportJobCommandError");
|
|
1207
1058
|
var de_CreateBatchPredictionJobCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1208
1059
|
if (output.statusCode >= 300) {
|
|
1209
|
-
return
|
|
1060
|
+
return de_CommandError(output, context);
|
|
1210
1061
|
}
|
|
1211
1062
|
const data = await parseBody(output.body, context);
|
|
1212
1063
|
let contents = {};
|
|
@@ -1217,40 +1068,9 @@ var de_CreateBatchPredictionJobCommand = /* @__PURE__ */ __name(async (output, c
|
|
|
1217
1068
|
};
|
|
1218
1069
|
return response;
|
|
1219
1070
|
}, "de_CreateBatchPredictionJobCommand");
|
|
1220
|
-
var de_CreateBatchPredictionJobCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1221
|
-
const parsedOutput = {
|
|
1222
|
-
...output,
|
|
1223
|
-
body: await parseErrorBody(output.body, context)
|
|
1224
|
-
};
|
|
1225
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1226
|
-
switch (errorCode) {
|
|
1227
|
-
case "AccessDeniedException":
|
|
1228
|
-
case "com.amazonaws.frauddetector#AccessDeniedException":
|
|
1229
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1230
|
-
case "InternalServerException":
|
|
1231
|
-
case "com.amazonaws.frauddetector#InternalServerException":
|
|
1232
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1233
|
-
case "ResourceNotFoundException":
|
|
1234
|
-
case "com.amazonaws.frauddetector#ResourceNotFoundException":
|
|
1235
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1236
|
-
case "ThrottlingException":
|
|
1237
|
-
case "com.amazonaws.frauddetector#ThrottlingException":
|
|
1238
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1239
|
-
case "ValidationException":
|
|
1240
|
-
case "com.amazonaws.frauddetector#ValidationException":
|
|
1241
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1242
|
-
default:
|
|
1243
|
-
const parsedBody = parsedOutput.body;
|
|
1244
|
-
return throwDefaultError({
|
|
1245
|
-
output,
|
|
1246
|
-
parsedBody,
|
|
1247
|
-
errorCode
|
|
1248
|
-
});
|
|
1249
|
-
}
|
|
1250
|
-
}, "de_CreateBatchPredictionJobCommandError");
|
|
1251
1071
|
var de_CreateDetectorVersionCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1252
1072
|
if (output.statusCode >= 300) {
|
|
1253
|
-
return
|
|
1073
|
+
return de_CommandError(output, context);
|
|
1254
1074
|
}
|
|
1255
1075
|
const data = await parseBody(output.body, context);
|
|
1256
1076
|
let contents = {};
|
|
@@ -1261,40 +1081,9 @@ var de_CreateDetectorVersionCommand = /* @__PURE__ */ __name(async (output, cont
|
|
|
1261
1081
|
};
|
|
1262
1082
|
return response;
|
|
1263
1083
|
}, "de_CreateDetectorVersionCommand");
|
|
1264
|
-
var de_CreateDetectorVersionCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1265
|
-
const parsedOutput = {
|
|
1266
|
-
...output,
|
|
1267
|
-
body: await parseErrorBody(output.body, context)
|
|
1268
|
-
};
|
|
1269
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1270
|
-
switch (errorCode) {
|
|
1271
|
-
case "AccessDeniedException":
|
|
1272
|
-
case "com.amazonaws.frauddetector#AccessDeniedException":
|
|
1273
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1274
|
-
case "InternalServerException":
|
|
1275
|
-
case "com.amazonaws.frauddetector#InternalServerException":
|
|
1276
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1277
|
-
case "ResourceNotFoundException":
|
|
1278
|
-
case "com.amazonaws.frauddetector#ResourceNotFoundException":
|
|
1279
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1280
|
-
case "ThrottlingException":
|
|
1281
|
-
case "com.amazonaws.frauddetector#ThrottlingException":
|
|
1282
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1283
|
-
case "ValidationException":
|
|
1284
|
-
case "com.amazonaws.frauddetector#ValidationException":
|
|
1285
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1286
|
-
default:
|
|
1287
|
-
const parsedBody = parsedOutput.body;
|
|
1288
|
-
return throwDefaultError({
|
|
1289
|
-
output,
|
|
1290
|
-
parsedBody,
|
|
1291
|
-
errorCode
|
|
1292
|
-
});
|
|
1293
|
-
}
|
|
1294
|
-
}, "de_CreateDetectorVersionCommandError");
|
|
1295
1084
|
var de_CreateListCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1296
1085
|
if (output.statusCode >= 300) {
|
|
1297
|
-
return
|
|
1086
|
+
return de_CommandError(output, context);
|
|
1298
1087
|
}
|
|
1299
1088
|
const data = await parseBody(output.body, context);
|
|
1300
1089
|
let contents = {};
|
|
@@ -1305,37 +1094,9 @@ var de_CreateListCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
1305
1094
|
};
|
|
1306
1095
|
return response;
|
|
1307
1096
|
}, "de_CreateListCommand");
|
|
1308
|
-
var de_CreateListCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1309
|
-
const parsedOutput = {
|
|
1310
|
-
...output,
|
|
1311
|
-
body: await parseErrorBody(output.body, context)
|
|
1312
|
-
};
|
|
1313
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1314
|
-
switch (errorCode) {
|
|
1315
|
-
case "AccessDeniedException":
|
|
1316
|
-
case "com.amazonaws.frauddetector#AccessDeniedException":
|
|
1317
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1318
|
-
case "InternalServerException":
|
|
1319
|
-
case "com.amazonaws.frauddetector#InternalServerException":
|
|
1320
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1321
|
-
case "ThrottlingException":
|
|
1322
|
-
case "com.amazonaws.frauddetector#ThrottlingException":
|
|
1323
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1324
|
-
case "ValidationException":
|
|
1325
|
-
case "com.amazonaws.frauddetector#ValidationException":
|
|
1326
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1327
|
-
default:
|
|
1328
|
-
const parsedBody = parsedOutput.body;
|
|
1329
|
-
return throwDefaultError({
|
|
1330
|
-
output,
|
|
1331
|
-
parsedBody,
|
|
1332
|
-
errorCode
|
|
1333
|
-
});
|
|
1334
|
-
}
|
|
1335
|
-
}, "de_CreateListCommandError");
|
|
1336
1097
|
var de_CreateModelCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1337
1098
|
if (output.statusCode >= 300) {
|
|
1338
|
-
return
|
|
1099
|
+
return de_CommandError(output, context);
|
|
1339
1100
|
}
|
|
1340
1101
|
const data = await parseBody(output.body, context);
|
|
1341
1102
|
let contents = {};
|
|
@@ -1346,37 +1107,9 @@ var de_CreateModelCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
1346
1107
|
};
|
|
1347
1108
|
return response;
|
|
1348
1109
|
}, "de_CreateModelCommand");
|
|
1349
|
-
var de_CreateModelCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1350
|
-
const parsedOutput = {
|
|
1351
|
-
...output,
|
|
1352
|
-
body: await parseErrorBody(output.body, context)
|
|
1353
|
-
};
|
|
1354
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1355
|
-
switch (errorCode) {
|
|
1356
|
-
case "AccessDeniedException":
|
|
1357
|
-
case "com.amazonaws.frauddetector#AccessDeniedException":
|
|
1358
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1359
|
-
case "InternalServerException":
|
|
1360
|
-
case "com.amazonaws.frauddetector#InternalServerException":
|
|
1361
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1362
|
-
case "ThrottlingException":
|
|
1363
|
-
case "com.amazonaws.frauddetector#ThrottlingException":
|
|
1364
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1365
|
-
case "ValidationException":
|
|
1366
|
-
case "com.amazonaws.frauddetector#ValidationException":
|
|
1367
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1368
|
-
default:
|
|
1369
|
-
const parsedBody = parsedOutput.body;
|
|
1370
|
-
return throwDefaultError({
|
|
1371
|
-
output,
|
|
1372
|
-
parsedBody,
|
|
1373
|
-
errorCode
|
|
1374
|
-
});
|
|
1375
|
-
}
|
|
1376
|
-
}, "de_CreateModelCommandError");
|
|
1377
1110
|
var de_CreateModelVersionCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1378
1111
|
if (output.statusCode >= 300) {
|
|
1379
|
-
return
|
|
1112
|
+
return de_CommandError(output, context);
|
|
1380
1113
|
}
|
|
1381
1114
|
const data = await parseBody(output.body, context);
|
|
1382
1115
|
let contents = {};
|
|
@@ -1387,40 +1120,9 @@ var de_CreateModelVersionCommand = /* @__PURE__ */ __name(async (output, context
|
|
|
1387
1120
|
};
|
|
1388
1121
|
return response;
|
|
1389
1122
|
}, "de_CreateModelVersionCommand");
|
|
1390
|
-
var de_CreateModelVersionCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1391
|
-
const parsedOutput = {
|
|
1392
|
-
...output,
|
|
1393
|
-
body: await parseErrorBody(output.body, context)
|
|
1394
|
-
};
|
|
1395
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1396
|
-
switch (errorCode) {
|
|
1397
|
-
case "AccessDeniedException":
|
|
1398
|
-
case "com.amazonaws.frauddetector#AccessDeniedException":
|
|
1399
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1400
|
-
case "InternalServerException":
|
|
1401
|
-
case "com.amazonaws.frauddetector#InternalServerException":
|
|
1402
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1403
|
-
case "ResourceNotFoundException":
|
|
1404
|
-
case "com.amazonaws.frauddetector#ResourceNotFoundException":
|
|
1405
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1406
|
-
case "ThrottlingException":
|
|
1407
|
-
case "com.amazonaws.frauddetector#ThrottlingException":
|
|
1408
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1409
|
-
case "ValidationException":
|
|
1410
|
-
case "com.amazonaws.frauddetector#ValidationException":
|
|
1411
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1412
|
-
default:
|
|
1413
|
-
const parsedBody = parsedOutput.body;
|
|
1414
|
-
return throwDefaultError({
|
|
1415
|
-
output,
|
|
1416
|
-
parsedBody,
|
|
1417
|
-
errorCode
|
|
1418
|
-
});
|
|
1419
|
-
}
|
|
1420
|
-
}, "de_CreateModelVersionCommandError");
|
|
1421
1123
|
var de_CreateRuleCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1422
1124
|
if (output.statusCode >= 300) {
|
|
1423
|
-
return
|
|
1125
|
+
return de_CommandError(output, context);
|
|
1424
1126
|
}
|
|
1425
1127
|
const data = await parseBody(output.body, context);
|
|
1426
1128
|
let contents = {};
|
|
@@ -1431,37 +1133,9 @@ var de_CreateRuleCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
1431
1133
|
};
|
|
1432
1134
|
return response;
|
|
1433
1135
|
}, "de_CreateRuleCommand");
|
|
1434
|
-
var de_CreateRuleCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1435
|
-
const parsedOutput = {
|
|
1436
|
-
...output,
|
|
1437
|
-
body: await parseErrorBody(output.body, context)
|
|
1438
|
-
};
|
|
1439
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1440
|
-
switch (errorCode) {
|
|
1441
|
-
case "AccessDeniedException":
|
|
1442
|
-
case "com.amazonaws.frauddetector#AccessDeniedException":
|
|
1443
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1444
|
-
case "InternalServerException":
|
|
1445
|
-
case "com.amazonaws.frauddetector#InternalServerException":
|
|
1446
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1447
|
-
case "ThrottlingException":
|
|
1448
|
-
case "com.amazonaws.frauddetector#ThrottlingException":
|
|
1449
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1450
|
-
case "ValidationException":
|
|
1451
|
-
case "com.amazonaws.frauddetector#ValidationException":
|
|
1452
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1453
|
-
default:
|
|
1454
|
-
const parsedBody = parsedOutput.body;
|
|
1455
|
-
return throwDefaultError({
|
|
1456
|
-
output,
|
|
1457
|
-
parsedBody,
|
|
1458
|
-
errorCode
|
|
1459
|
-
});
|
|
1460
|
-
}
|
|
1461
|
-
}, "de_CreateRuleCommandError");
|
|
1462
1136
|
var de_CreateVariableCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1463
1137
|
if (output.statusCode >= 300) {
|
|
1464
|
-
return
|
|
1138
|
+
return de_CommandError(output, context);
|
|
1465
1139
|
}
|
|
1466
1140
|
const data = await parseBody(output.body, context);
|
|
1467
1141
|
let contents = {};
|
|
@@ -1472,37 +1146,9 @@ var de_CreateVariableCommand = /* @__PURE__ */ __name(async (output, context) =>
|
|
|
1472
1146
|
};
|
|
1473
1147
|
return response;
|
|
1474
1148
|
}, "de_CreateVariableCommand");
|
|
1475
|
-
var de_CreateVariableCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1476
|
-
const parsedOutput = {
|
|
1477
|
-
...output,
|
|
1478
|
-
body: await parseErrorBody(output.body, context)
|
|
1479
|
-
};
|
|
1480
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1481
|
-
switch (errorCode) {
|
|
1482
|
-
case "AccessDeniedException":
|
|
1483
|
-
case "com.amazonaws.frauddetector#AccessDeniedException":
|
|
1484
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1485
|
-
case "InternalServerException":
|
|
1486
|
-
case "com.amazonaws.frauddetector#InternalServerException":
|
|
1487
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1488
|
-
case "ThrottlingException":
|
|
1489
|
-
case "com.amazonaws.frauddetector#ThrottlingException":
|
|
1490
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1491
|
-
case "ValidationException":
|
|
1492
|
-
case "com.amazonaws.frauddetector#ValidationException":
|
|
1493
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1494
|
-
default:
|
|
1495
|
-
const parsedBody = parsedOutput.body;
|
|
1496
|
-
return throwDefaultError({
|
|
1497
|
-
output,
|
|
1498
|
-
parsedBody,
|
|
1499
|
-
errorCode
|
|
1500
|
-
});
|
|
1501
|
-
}
|
|
1502
|
-
}, "de_CreateVariableCommandError");
|
|
1503
1149
|
var de_DeleteBatchImportJobCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1504
1150
|
if (output.statusCode >= 300) {
|
|
1505
|
-
return
|
|
1151
|
+
return de_CommandError(output, context);
|
|
1506
1152
|
}
|
|
1507
1153
|
const data = await parseBody(output.body, context);
|
|
1508
1154
|
let contents = {};
|
|
@@ -1513,37 +1159,9 @@ var de_DeleteBatchImportJobCommand = /* @__PURE__ */ __name(async (output, conte
|
|
|
1513
1159
|
};
|
|
1514
1160
|
return response;
|
|
1515
1161
|
}, "de_DeleteBatchImportJobCommand");
|
|
1516
|
-
var de_DeleteBatchImportJobCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1517
|
-
const parsedOutput = {
|
|
1518
|
-
...output,
|
|
1519
|
-
body: await parseErrorBody(output.body, context)
|
|
1520
|
-
};
|
|
1521
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1522
|
-
switch (errorCode) {
|
|
1523
|
-
case "AccessDeniedException":
|
|
1524
|
-
case "com.amazonaws.frauddetector#AccessDeniedException":
|
|
1525
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1526
|
-
case "InternalServerException":
|
|
1527
|
-
case "com.amazonaws.frauddetector#InternalServerException":
|
|
1528
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1529
|
-
case "ThrottlingException":
|
|
1530
|
-
case "com.amazonaws.frauddetector#ThrottlingException":
|
|
1531
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1532
|
-
case "ValidationException":
|
|
1533
|
-
case "com.amazonaws.frauddetector#ValidationException":
|
|
1534
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1535
|
-
default:
|
|
1536
|
-
const parsedBody = parsedOutput.body;
|
|
1537
|
-
return throwDefaultError({
|
|
1538
|
-
output,
|
|
1539
|
-
parsedBody,
|
|
1540
|
-
errorCode
|
|
1541
|
-
});
|
|
1542
|
-
}
|
|
1543
|
-
}, "de_DeleteBatchImportJobCommandError");
|
|
1544
1162
|
var de_DeleteBatchPredictionJobCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1545
1163
|
if (output.statusCode >= 300) {
|
|
1546
|
-
return
|
|
1164
|
+
return de_CommandError(output, context);
|
|
1547
1165
|
}
|
|
1548
1166
|
const data = await parseBody(output.body, context);
|
|
1549
1167
|
let contents = {};
|
|
@@ -1554,37 +1172,9 @@ var de_DeleteBatchPredictionJobCommand = /* @__PURE__ */ __name(async (output, c
|
|
|
1554
1172
|
};
|
|
1555
1173
|
return response;
|
|
1556
1174
|
}, "de_DeleteBatchPredictionJobCommand");
|
|
1557
|
-
var de_DeleteBatchPredictionJobCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1558
|
-
const parsedOutput = {
|
|
1559
|
-
...output,
|
|
1560
|
-
body: await parseErrorBody(output.body, context)
|
|
1561
|
-
};
|
|
1562
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1563
|
-
switch (errorCode) {
|
|
1564
|
-
case "AccessDeniedException":
|
|
1565
|
-
case "com.amazonaws.frauddetector#AccessDeniedException":
|
|
1566
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1567
|
-
case "InternalServerException":
|
|
1568
|
-
case "com.amazonaws.frauddetector#InternalServerException":
|
|
1569
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1570
|
-
case "ThrottlingException":
|
|
1571
|
-
case "com.amazonaws.frauddetector#ThrottlingException":
|
|
1572
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1573
|
-
case "ValidationException":
|
|
1574
|
-
case "com.amazonaws.frauddetector#ValidationException":
|
|
1575
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1576
|
-
default:
|
|
1577
|
-
const parsedBody = parsedOutput.body;
|
|
1578
|
-
return throwDefaultError({
|
|
1579
|
-
output,
|
|
1580
|
-
parsedBody,
|
|
1581
|
-
errorCode
|
|
1582
|
-
});
|
|
1583
|
-
}
|
|
1584
|
-
}, "de_DeleteBatchPredictionJobCommandError");
|
|
1585
1175
|
var de_DeleteDetectorCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1586
1176
|
if (output.statusCode >= 300) {
|
|
1587
|
-
return
|
|
1177
|
+
return de_CommandError(output, context);
|
|
1588
1178
|
}
|
|
1589
1179
|
const data = await parseBody(output.body, context);
|
|
1590
1180
|
let contents = {};
|
|
@@ -1595,40 +1185,9 @@ var de_DeleteDetectorCommand = /* @__PURE__ */ __name(async (output, context) =>
|
|
|
1595
1185
|
};
|
|
1596
1186
|
return response;
|
|
1597
1187
|
}, "de_DeleteDetectorCommand");
|
|
1598
|
-
var de_DeleteDetectorCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1599
|
-
const parsedOutput = {
|
|
1600
|
-
...output,
|
|
1601
|
-
body: await parseErrorBody(output.body, context)
|
|
1602
|
-
};
|
|
1603
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1604
|
-
switch (errorCode) {
|
|
1605
|
-
case "AccessDeniedException":
|
|
1606
|
-
case "com.amazonaws.frauddetector#AccessDeniedException":
|
|
1607
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1608
|
-
case "ConflictException":
|
|
1609
|
-
case "com.amazonaws.frauddetector#ConflictException":
|
|
1610
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1611
|
-
case "InternalServerException":
|
|
1612
|
-
case "com.amazonaws.frauddetector#InternalServerException":
|
|
1613
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1614
|
-
case "ThrottlingException":
|
|
1615
|
-
case "com.amazonaws.frauddetector#ThrottlingException":
|
|
1616
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1617
|
-
case "ValidationException":
|
|
1618
|
-
case "com.amazonaws.frauddetector#ValidationException":
|
|
1619
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1620
|
-
default:
|
|
1621
|
-
const parsedBody = parsedOutput.body;
|
|
1622
|
-
return throwDefaultError({
|
|
1623
|
-
output,
|
|
1624
|
-
parsedBody,
|
|
1625
|
-
errorCode
|
|
1626
|
-
});
|
|
1627
|
-
}
|
|
1628
|
-
}, "de_DeleteDetectorCommandError");
|
|
1629
1188
|
var de_DeleteDetectorVersionCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1630
1189
|
if (output.statusCode >= 300) {
|
|
1631
|
-
return
|
|
1190
|
+
return de_CommandError(output, context);
|
|
1632
1191
|
}
|
|
1633
1192
|
const data = await parseBody(output.body, context);
|
|
1634
1193
|
let contents = {};
|
|
@@ -1639,43 +1198,9 @@ var de_DeleteDetectorVersionCommand = /* @__PURE__ */ __name(async (output, cont
|
|
|
1639
1198
|
};
|
|
1640
1199
|
return response;
|
|
1641
1200
|
}, "de_DeleteDetectorVersionCommand");
|
|
1642
|
-
var de_DeleteDetectorVersionCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1643
|
-
const parsedOutput = {
|
|
1644
|
-
...output,
|
|
1645
|
-
body: await parseErrorBody(output.body, context)
|
|
1646
|
-
};
|
|
1647
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1648
|
-
switch (errorCode) {
|
|
1649
|
-
case "AccessDeniedException":
|
|
1650
|
-
case "com.amazonaws.frauddetector#AccessDeniedException":
|
|
1651
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1652
|
-
case "ConflictException":
|
|
1653
|
-
case "com.amazonaws.frauddetector#ConflictException":
|
|
1654
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1655
|
-
case "InternalServerException":
|
|
1656
|
-
case "com.amazonaws.frauddetector#InternalServerException":
|
|
1657
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1658
|
-
case "ResourceNotFoundException":
|
|
1659
|
-
case "com.amazonaws.frauddetector#ResourceNotFoundException":
|
|
1660
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1661
|
-
case "ThrottlingException":
|
|
1662
|
-
case "com.amazonaws.frauddetector#ThrottlingException":
|
|
1663
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1664
|
-
case "ValidationException":
|
|
1665
|
-
case "com.amazonaws.frauddetector#ValidationException":
|
|
1666
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1667
|
-
default:
|
|
1668
|
-
const parsedBody = parsedOutput.body;
|
|
1669
|
-
return throwDefaultError({
|
|
1670
|
-
output,
|
|
1671
|
-
parsedBody,
|
|
1672
|
-
errorCode
|
|
1673
|
-
});
|
|
1674
|
-
}
|
|
1675
|
-
}, "de_DeleteDetectorVersionCommandError");
|
|
1676
1201
|
var de_DeleteEntityTypeCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1677
1202
|
if (output.statusCode >= 300) {
|
|
1678
|
-
return
|
|
1203
|
+
return de_CommandError(output, context);
|
|
1679
1204
|
}
|
|
1680
1205
|
const data = await parseBody(output.body, context);
|
|
1681
1206
|
let contents = {};
|
|
@@ -1686,40 +1211,9 @@ var de_DeleteEntityTypeCommand = /* @__PURE__ */ __name(async (output, context)
|
|
|
1686
1211
|
};
|
|
1687
1212
|
return response;
|
|
1688
1213
|
}, "de_DeleteEntityTypeCommand");
|
|
1689
|
-
var de_DeleteEntityTypeCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1690
|
-
const parsedOutput = {
|
|
1691
|
-
...output,
|
|
1692
|
-
body: await parseErrorBody(output.body, context)
|
|
1693
|
-
};
|
|
1694
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1695
|
-
switch (errorCode) {
|
|
1696
|
-
case "AccessDeniedException":
|
|
1697
|
-
case "com.amazonaws.frauddetector#AccessDeniedException":
|
|
1698
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1699
|
-
case "ConflictException":
|
|
1700
|
-
case "com.amazonaws.frauddetector#ConflictException":
|
|
1701
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1702
|
-
case "InternalServerException":
|
|
1703
|
-
case "com.amazonaws.frauddetector#InternalServerException":
|
|
1704
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1705
|
-
case "ThrottlingException":
|
|
1706
|
-
case "com.amazonaws.frauddetector#ThrottlingException":
|
|
1707
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1708
|
-
case "ValidationException":
|
|
1709
|
-
case "com.amazonaws.frauddetector#ValidationException":
|
|
1710
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1711
|
-
default:
|
|
1712
|
-
const parsedBody = parsedOutput.body;
|
|
1713
|
-
return throwDefaultError({
|
|
1714
|
-
output,
|
|
1715
|
-
parsedBody,
|
|
1716
|
-
errorCode
|
|
1717
|
-
});
|
|
1718
|
-
}
|
|
1719
|
-
}, "de_DeleteEntityTypeCommandError");
|
|
1720
1214
|
var de_DeleteEventCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1721
1215
|
if (output.statusCode >= 300) {
|
|
1722
|
-
return
|
|
1216
|
+
return de_CommandError(output, context);
|
|
1723
1217
|
}
|
|
1724
1218
|
const data = await parseBody(output.body, context);
|
|
1725
1219
|
let contents = {};
|
|
@@ -1730,37 +1224,9 @@ var de_DeleteEventCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
1730
1224
|
};
|
|
1731
1225
|
return response;
|
|
1732
1226
|
}, "de_DeleteEventCommand");
|
|
1733
|
-
var de_DeleteEventCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1734
|
-
const parsedOutput = {
|
|
1735
|
-
...output,
|
|
1736
|
-
body: await parseErrorBody(output.body, context)
|
|
1737
|
-
};
|
|
1738
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1739
|
-
switch (errorCode) {
|
|
1740
|
-
case "AccessDeniedException":
|
|
1741
|
-
case "com.amazonaws.frauddetector#AccessDeniedException":
|
|
1742
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1743
|
-
case "InternalServerException":
|
|
1744
|
-
case "com.amazonaws.frauddetector#InternalServerException":
|
|
1745
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1746
|
-
case "ThrottlingException":
|
|
1747
|
-
case "com.amazonaws.frauddetector#ThrottlingException":
|
|
1748
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1749
|
-
case "ValidationException":
|
|
1750
|
-
case "com.amazonaws.frauddetector#ValidationException":
|
|
1751
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1752
|
-
default:
|
|
1753
|
-
const parsedBody = parsedOutput.body;
|
|
1754
|
-
return throwDefaultError({
|
|
1755
|
-
output,
|
|
1756
|
-
parsedBody,
|
|
1757
|
-
errorCode
|
|
1758
|
-
});
|
|
1759
|
-
}
|
|
1760
|
-
}, "de_DeleteEventCommandError");
|
|
1761
1227
|
var de_DeleteEventsByEventTypeCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1762
1228
|
if (output.statusCode >= 300) {
|
|
1763
|
-
return
|
|
1229
|
+
return de_CommandError(output, context);
|
|
1764
1230
|
}
|
|
1765
1231
|
const data = await parseBody(output.body, context);
|
|
1766
1232
|
let contents = {};
|
|
@@ -1771,87 +1237,22 @@ var de_DeleteEventsByEventTypeCommand = /* @__PURE__ */ __name(async (output, co
|
|
|
1771
1237
|
};
|
|
1772
1238
|
return response;
|
|
1773
1239
|
}, "de_DeleteEventsByEventTypeCommand");
|
|
1774
|
-
var
|
|
1775
|
-
|
|
1776
|
-
|
|
1777
|
-
|
|
1778
|
-
|
|
1779
|
-
|
|
1780
|
-
|
|
1781
|
-
|
|
1782
|
-
|
|
1783
|
-
|
|
1784
|
-
case "ConflictException":
|
|
1785
|
-
case "com.amazonaws.frauddetector#ConflictException":
|
|
1786
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1787
|
-
case "InternalServerException":
|
|
1788
|
-
case "com.amazonaws.frauddetector#InternalServerException":
|
|
1789
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1790
|
-
case "ResourceNotFoundException":
|
|
1791
|
-
case "com.amazonaws.frauddetector#ResourceNotFoundException":
|
|
1792
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1793
|
-
case "ThrottlingException":
|
|
1794
|
-
case "com.amazonaws.frauddetector#ThrottlingException":
|
|
1795
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1796
|
-
case "ValidationException":
|
|
1797
|
-
case "com.amazonaws.frauddetector#ValidationException":
|
|
1798
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1799
|
-
default:
|
|
1800
|
-
const parsedBody = parsedOutput.body;
|
|
1801
|
-
return throwDefaultError({
|
|
1802
|
-
output,
|
|
1803
|
-
parsedBody,
|
|
1804
|
-
errorCode
|
|
1805
|
-
});
|
|
1806
|
-
}
|
|
1807
|
-
}, "de_DeleteEventsByEventTypeCommandError");
|
|
1808
|
-
var de_DeleteEventTypeCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1809
|
-
if (output.statusCode >= 300) {
|
|
1810
|
-
return de_DeleteEventTypeCommandError(output, context);
|
|
1811
|
-
}
|
|
1812
|
-
const data = await parseBody(output.body, context);
|
|
1813
|
-
let contents = {};
|
|
1814
|
-
contents = (0, import_smithy_client._json)(data);
|
|
1815
|
-
const response = {
|
|
1816
|
-
$metadata: deserializeMetadata(output),
|
|
1817
|
-
...contents
|
|
1240
|
+
var de_DeleteEventTypeCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1241
|
+
if (output.statusCode >= 300) {
|
|
1242
|
+
return de_CommandError(output, context);
|
|
1243
|
+
}
|
|
1244
|
+
const data = await parseBody(output.body, context);
|
|
1245
|
+
let contents = {};
|
|
1246
|
+
contents = (0, import_smithy_client._json)(data);
|
|
1247
|
+
const response = {
|
|
1248
|
+
$metadata: deserializeMetadata(output),
|
|
1249
|
+
...contents
|
|
1818
1250
|
};
|
|
1819
1251
|
return response;
|
|
1820
1252
|
}, "de_DeleteEventTypeCommand");
|
|
1821
|
-
var de_DeleteEventTypeCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1822
|
-
const parsedOutput = {
|
|
1823
|
-
...output,
|
|
1824
|
-
body: await parseErrorBody(output.body, context)
|
|
1825
|
-
};
|
|
1826
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1827
|
-
switch (errorCode) {
|
|
1828
|
-
case "AccessDeniedException":
|
|
1829
|
-
case "com.amazonaws.frauddetector#AccessDeniedException":
|
|
1830
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1831
|
-
case "ConflictException":
|
|
1832
|
-
case "com.amazonaws.frauddetector#ConflictException":
|
|
1833
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1834
|
-
case "InternalServerException":
|
|
1835
|
-
case "com.amazonaws.frauddetector#InternalServerException":
|
|
1836
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1837
|
-
case "ThrottlingException":
|
|
1838
|
-
case "com.amazonaws.frauddetector#ThrottlingException":
|
|
1839
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1840
|
-
case "ValidationException":
|
|
1841
|
-
case "com.amazonaws.frauddetector#ValidationException":
|
|
1842
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1843
|
-
default:
|
|
1844
|
-
const parsedBody = parsedOutput.body;
|
|
1845
|
-
return throwDefaultError({
|
|
1846
|
-
output,
|
|
1847
|
-
parsedBody,
|
|
1848
|
-
errorCode
|
|
1849
|
-
});
|
|
1850
|
-
}
|
|
1851
|
-
}, "de_DeleteEventTypeCommandError");
|
|
1852
1253
|
var de_DeleteExternalModelCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1853
1254
|
if (output.statusCode >= 300) {
|
|
1854
|
-
return
|
|
1255
|
+
return de_CommandError(output, context);
|
|
1855
1256
|
}
|
|
1856
1257
|
const data = await parseBody(output.body, context);
|
|
1857
1258
|
let contents = {};
|
|
@@ -1862,40 +1263,9 @@ var de_DeleteExternalModelCommand = /* @__PURE__ */ __name(async (output, contex
|
|
|
1862
1263
|
};
|
|
1863
1264
|
return response;
|
|
1864
1265
|
}, "de_DeleteExternalModelCommand");
|
|
1865
|
-
var de_DeleteExternalModelCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1866
|
-
const parsedOutput = {
|
|
1867
|
-
...output,
|
|
1868
|
-
body: await parseErrorBody(output.body, context)
|
|
1869
|
-
};
|
|
1870
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1871
|
-
switch (errorCode) {
|
|
1872
|
-
case "AccessDeniedException":
|
|
1873
|
-
case "com.amazonaws.frauddetector#AccessDeniedException":
|
|
1874
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1875
|
-
case "ConflictException":
|
|
1876
|
-
case "com.amazonaws.frauddetector#ConflictException":
|
|
1877
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1878
|
-
case "InternalServerException":
|
|
1879
|
-
case "com.amazonaws.frauddetector#InternalServerException":
|
|
1880
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1881
|
-
case "ThrottlingException":
|
|
1882
|
-
case "com.amazonaws.frauddetector#ThrottlingException":
|
|
1883
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1884
|
-
case "ValidationException":
|
|
1885
|
-
case "com.amazonaws.frauddetector#ValidationException":
|
|
1886
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1887
|
-
default:
|
|
1888
|
-
const parsedBody = parsedOutput.body;
|
|
1889
|
-
return throwDefaultError({
|
|
1890
|
-
output,
|
|
1891
|
-
parsedBody,
|
|
1892
|
-
errorCode
|
|
1893
|
-
});
|
|
1894
|
-
}
|
|
1895
|
-
}, "de_DeleteExternalModelCommandError");
|
|
1896
1266
|
var de_DeleteLabelCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1897
1267
|
if (output.statusCode >= 300) {
|
|
1898
|
-
return
|
|
1268
|
+
return de_CommandError(output, context);
|
|
1899
1269
|
}
|
|
1900
1270
|
const data = await parseBody(output.body, context);
|
|
1901
1271
|
let contents = {};
|
|
@@ -1906,37 +1276,9 @@ var de_DeleteLabelCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
1906
1276
|
};
|
|
1907
1277
|
return response;
|
|
1908
1278
|
}, "de_DeleteLabelCommand");
|
|
1909
|
-
var de_DeleteLabelCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1910
|
-
const parsedOutput = {
|
|
1911
|
-
...output,
|
|
1912
|
-
body: await parseErrorBody(output.body, context)
|
|
1913
|
-
};
|
|
1914
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1915
|
-
switch (errorCode) {
|
|
1916
|
-
case "ConflictException":
|
|
1917
|
-
case "com.amazonaws.frauddetector#ConflictException":
|
|
1918
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1919
|
-
case "InternalServerException":
|
|
1920
|
-
case "com.amazonaws.frauddetector#InternalServerException":
|
|
1921
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1922
|
-
case "ThrottlingException":
|
|
1923
|
-
case "com.amazonaws.frauddetector#ThrottlingException":
|
|
1924
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1925
|
-
case "ValidationException":
|
|
1926
|
-
case "com.amazonaws.frauddetector#ValidationException":
|
|
1927
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1928
|
-
default:
|
|
1929
|
-
const parsedBody = parsedOutput.body;
|
|
1930
|
-
return throwDefaultError({
|
|
1931
|
-
output,
|
|
1932
|
-
parsedBody,
|
|
1933
|
-
errorCode
|
|
1934
|
-
});
|
|
1935
|
-
}
|
|
1936
|
-
}, "de_DeleteLabelCommandError");
|
|
1937
1279
|
var de_DeleteListCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1938
1280
|
if (output.statusCode >= 300) {
|
|
1939
|
-
return
|
|
1281
|
+
return de_CommandError(output, context);
|
|
1940
1282
|
}
|
|
1941
1283
|
const data = await parseBody(output.body, context);
|
|
1942
1284
|
let contents = {};
|
|
@@ -1947,40 +1289,9 @@ var de_DeleteListCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
1947
1289
|
};
|
|
1948
1290
|
return response;
|
|
1949
1291
|
}, "de_DeleteListCommand");
|
|
1950
|
-
var de_DeleteListCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1951
|
-
const parsedOutput = {
|
|
1952
|
-
...output,
|
|
1953
|
-
body: await parseErrorBody(output.body, context)
|
|
1954
|
-
};
|
|
1955
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1956
|
-
switch (errorCode) {
|
|
1957
|
-
case "AccessDeniedException":
|
|
1958
|
-
case "com.amazonaws.frauddetector#AccessDeniedException":
|
|
1959
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1960
|
-
case "ConflictException":
|
|
1961
|
-
case "com.amazonaws.frauddetector#ConflictException":
|
|
1962
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1963
|
-
case "InternalServerException":
|
|
1964
|
-
case "com.amazonaws.frauddetector#InternalServerException":
|
|
1965
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1966
|
-
case "ThrottlingException":
|
|
1967
|
-
case "com.amazonaws.frauddetector#ThrottlingException":
|
|
1968
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1969
|
-
case "ValidationException":
|
|
1970
|
-
case "com.amazonaws.frauddetector#ValidationException":
|
|
1971
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1972
|
-
default:
|
|
1973
|
-
const parsedBody = parsedOutput.body;
|
|
1974
|
-
return throwDefaultError({
|
|
1975
|
-
output,
|
|
1976
|
-
parsedBody,
|
|
1977
|
-
errorCode
|
|
1978
|
-
});
|
|
1979
|
-
}
|
|
1980
|
-
}, "de_DeleteListCommandError");
|
|
1981
1292
|
var de_DeleteModelCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1982
1293
|
if (output.statusCode >= 300) {
|
|
1983
|
-
return
|
|
1294
|
+
return de_CommandError(output, context);
|
|
1984
1295
|
}
|
|
1985
1296
|
const data = await parseBody(output.body, context);
|
|
1986
1297
|
let contents = {};
|
|
@@ -1991,40 +1302,9 @@ var de_DeleteModelCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
1991
1302
|
};
|
|
1992
1303
|
return response;
|
|
1993
1304
|
}, "de_DeleteModelCommand");
|
|
1994
|
-
var de_DeleteModelCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1995
|
-
const parsedOutput = {
|
|
1996
|
-
...output,
|
|
1997
|
-
body: await parseErrorBody(output.body, context)
|
|
1998
|
-
};
|
|
1999
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2000
|
-
switch (errorCode) {
|
|
2001
|
-
case "AccessDeniedException":
|
|
2002
|
-
case "com.amazonaws.frauddetector#AccessDeniedException":
|
|
2003
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2004
|
-
case "ConflictException":
|
|
2005
|
-
case "com.amazonaws.frauddetector#ConflictException":
|
|
2006
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
2007
|
-
case "InternalServerException":
|
|
2008
|
-
case "com.amazonaws.frauddetector#InternalServerException":
|
|
2009
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2010
|
-
case "ThrottlingException":
|
|
2011
|
-
case "com.amazonaws.frauddetector#ThrottlingException":
|
|
2012
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
2013
|
-
case "ValidationException":
|
|
2014
|
-
case "com.amazonaws.frauddetector#ValidationException":
|
|
2015
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2016
|
-
default:
|
|
2017
|
-
const parsedBody = parsedOutput.body;
|
|
2018
|
-
return throwDefaultError({
|
|
2019
|
-
output,
|
|
2020
|
-
parsedBody,
|
|
2021
|
-
errorCode
|
|
2022
|
-
});
|
|
2023
|
-
}
|
|
2024
|
-
}, "de_DeleteModelCommandError");
|
|
2025
1305
|
var de_DeleteModelVersionCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2026
1306
|
if (output.statusCode >= 300) {
|
|
2027
|
-
return
|
|
1307
|
+
return de_CommandError(output, context);
|
|
2028
1308
|
}
|
|
2029
1309
|
const data = await parseBody(output.body, context);
|
|
2030
1310
|
let contents = {};
|
|
@@ -2035,40 +1315,9 @@ var de_DeleteModelVersionCommand = /* @__PURE__ */ __name(async (output, context
|
|
|
2035
1315
|
};
|
|
2036
1316
|
return response;
|
|
2037
1317
|
}, "de_DeleteModelVersionCommand");
|
|
2038
|
-
var de_DeleteModelVersionCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2039
|
-
const parsedOutput = {
|
|
2040
|
-
...output,
|
|
2041
|
-
body: await parseErrorBody(output.body, context)
|
|
2042
|
-
};
|
|
2043
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2044
|
-
switch (errorCode) {
|
|
2045
|
-
case "AccessDeniedException":
|
|
2046
|
-
case "com.amazonaws.frauddetector#AccessDeniedException":
|
|
2047
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2048
|
-
case "ConflictException":
|
|
2049
|
-
case "com.amazonaws.frauddetector#ConflictException":
|
|
2050
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
2051
|
-
case "InternalServerException":
|
|
2052
|
-
case "com.amazonaws.frauddetector#InternalServerException":
|
|
2053
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2054
|
-
case "ThrottlingException":
|
|
2055
|
-
case "com.amazonaws.frauddetector#ThrottlingException":
|
|
2056
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
2057
|
-
case "ValidationException":
|
|
2058
|
-
case "com.amazonaws.frauddetector#ValidationException":
|
|
2059
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2060
|
-
default:
|
|
2061
|
-
const parsedBody = parsedOutput.body;
|
|
2062
|
-
return throwDefaultError({
|
|
2063
|
-
output,
|
|
2064
|
-
parsedBody,
|
|
2065
|
-
errorCode
|
|
2066
|
-
});
|
|
2067
|
-
}
|
|
2068
|
-
}, "de_DeleteModelVersionCommandError");
|
|
2069
1318
|
var de_DeleteOutcomeCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2070
1319
|
if (output.statusCode >= 300) {
|
|
2071
|
-
return
|
|
1320
|
+
return de_CommandError(output, context);
|
|
2072
1321
|
}
|
|
2073
1322
|
const data = await parseBody(output.body, context);
|
|
2074
1323
|
let contents = {};
|
|
@@ -2079,40 +1328,9 @@ var de_DeleteOutcomeCommand = /* @__PURE__ */ __name(async (output, context) =>
|
|
|
2079
1328
|
};
|
|
2080
1329
|
return response;
|
|
2081
1330
|
}, "de_DeleteOutcomeCommand");
|
|
2082
|
-
var de_DeleteOutcomeCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2083
|
-
const parsedOutput = {
|
|
2084
|
-
...output,
|
|
2085
|
-
body: await parseErrorBody(output.body, context)
|
|
2086
|
-
};
|
|
2087
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2088
|
-
switch (errorCode) {
|
|
2089
|
-
case "AccessDeniedException":
|
|
2090
|
-
case "com.amazonaws.frauddetector#AccessDeniedException":
|
|
2091
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2092
|
-
case "ConflictException":
|
|
2093
|
-
case "com.amazonaws.frauddetector#ConflictException":
|
|
2094
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
2095
|
-
case "InternalServerException":
|
|
2096
|
-
case "com.amazonaws.frauddetector#InternalServerException":
|
|
2097
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2098
|
-
case "ThrottlingException":
|
|
2099
|
-
case "com.amazonaws.frauddetector#ThrottlingException":
|
|
2100
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
2101
|
-
case "ValidationException":
|
|
2102
|
-
case "com.amazonaws.frauddetector#ValidationException":
|
|
2103
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2104
|
-
default:
|
|
2105
|
-
const parsedBody = parsedOutput.body;
|
|
2106
|
-
return throwDefaultError({
|
|
2107
|
-
output,
|
|
2108
|
-
parsedBody,
|
|
2109
|
-
errorCode
|
|
2110
|
-
});
|
|
2111
|
-
}
|
|
2112
|
-
}, "de_DeleteOutcomeCommandError");
|
|
2113
1331
|
var de_DeleteRuleCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2114
1332
|
if (output.statusCode >= 300) {
|
|
2115
|
-
return
|
|
1333
|
+
return de_CommandError(output, context);
|
|
2116
1334
|
}
|
|
2117
1335
|
const data = await parseBody(output.body, context);
|
|
2118
1336
|
let contents = {};
|
|
@@ -2123,84 +1341,22 @@ var de_DeleteRuleCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
2123
1341
|
};
|
|
2124
1342
|
return response;
|
|
2125
1343
|
}, "de_DeleteRuleCommand");
|
|
2126
|
-
var
|
|
2127
|
-
|
|
2128
|
-
|
|
2129
|
-
|
|
2130
|
-
|
|
2131
|
-
|
|
2132
|
-
|
|
2133
|
-
|
|
2134
|
-
|
|
2135
|
-
|
|
2136
|
-
case "ConflictException":
|
|
2137
|
-
case "com.amazonaws.frauddetector#ConflictException":
|
|
2138
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
2139
|
-
case "InternalServerException":
|
|
2140
|
-
case "com.amazonaws.frauddetector#InternalServerException":
|
|
2141
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2142
|
-
case "ThrottlingException":
|
|
2143
|
-
case "com.amazonaws.frauddetector#ThrottlingException":
|
|
2144
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
2145
|
-
case "ValidationException":
|
|
2146
|
-
case "com.amazonaws.frauddetector#ValidationException":
|
|
2147
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2148
|
-
default:
|
|
2149
|
-
const parsedBody = parsedOutput.body;
|
|
2150
|
-
return throwDefaultError({
|
|
2151
|
-
output,
|
|
2152
|
-
parsedBody,
|
|
2153
|
-
errorCode
|
|
2154
|
-
});
|
|
2155
|
-
}
|
|
2156
|
-
}, "de_DeleteRuleCommandError");
|
|
2157
|
-
var de_DeleteVariableCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2158
|
-
if (output.statusCode >= 300) {
|
|
2159
|
-
return de_DeleteVariableCommandError(output, context);
|
|
2160
|
-
}
|
|
2161
|
-
const data = await parseBody(output.body, context);
|
|
2162
|
-
let contents = {};
|
|
2163
|
-
contents = (0, import_smithy_client._json)(data);
|
|
2164
|
-
const response = {
|
|
2165
|
-
$metadata: deserializeMetadata(output),
|
|
2166
|
-
...contents
|
|
1344
|
+
var de_DeleteVariableCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1345
|
+
if (output.statusCode >= 300) {
|
|
1346
|
+
return de_CommandError(output, context);
|
|
1347
|
+
}
|
|
1348
|
+
const data = await parseBody(output.body, context);
|
|
1349
|
+
let contents = {};
|
|
1350
|
+
contents = (0, import_smithy_client._json)(data);
|
|
1351
|
+
const response = {
|
|
1352
|
+
$metadata: deserializeMetadata(output),
|
|
1353
|
+
...contents
|
|
2167
1354
|
};
|
|
2168
1355
|
return response;
|
|
2169
1356
|
}, "de_DeleteVariableCommand");
|
|
2170
|
-
var de_DeleteVariableCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2171
|
-
const parsedOutput = {
|
|
2172
|
-
...output,
|
|
2173
|
-
body: await parseErrorBody(output.body, context)
|
|
2174
|
-
};
|
|
2175
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2176
|
-
switch (errorCode) {
|
|
2177
|
-
case "AccessDeniedException":
|
|
2178
|
-
case "com.amazonaws.frauddetector#AccessDeniedException":
|
|
2179
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2180
|
-
case "ConflictException":
|
|
2181
|
-
case "com.amazonaws.frauddetector#ConflictException":
|
|
2182
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
2183
|
-
case "InternalServerException":
|
|
2184
|
-
case "com.amazonaws.frauddetector#InternalServerException":
|
|
2185
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2186
|
-
case "ThrottlingException":
|
|
2187
|
-
case "com.amazonaws.frauddetector#ThrottlingException":
|
|
2188
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
2189
|
-
case "ValidationException":
|
|
2190
|
-
case "com.amazonaws.frauddetector#ValidationException":
|
|
2191
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2192
|
-
default:
|
|
2193
|
-
const parsedBody = parsedOutput.body;
|
|
2194
|
-
return throwDefaultError({
|
|
2195
|
-
output,
|
|
2196
|
-
parsedBody,
|
|
2197
|
-
errorCode
|
|
2198
|
-
});
|
|
2199
|
-
}
|
|
2200
|
-
}, "de_DeleteVariableCommandError");
|
|
2201
1357
|
var de_DescribeDetectorCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2202
1358
|
if (output.statusCode >= 300) {
|
|
2203
|
-
return
|
|
1359
|
+
return de_CommandError(output, context);
|
|
2204
1360
|
}
|
|
2205
1361
|
const data = await parseBody(output.body, context);
|
|
2206
1362
|
let contents = {};
|
|
@@ -2211,40 +1367,9 @@ var de_DescribeDetectorCommand = /* @__PURE__ */ __name(async (output, context)
|
|
|
2211
1367
|
};
|
|
2212
1368
|
return response;
|
|
2213
1369
|
}, "de_DescribeDetectorCommand");
|
|
2214
|
-
var de_DescribeDetectorCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2215
|
-
const parsedOutput = {
|
|
2216
|
-
...output,
|
|
2217
|
-
body: await parseErrorBody(output.body, context)
|
|
2218
|
-
};
|
|
2219
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2220
|
-
switch (errorCode) {
|
|
2221
|
-
case "AccessDeniedException":
|
|
2222
|
-
case "com.amazonaws.frauddetector#AccessDeniedException":
|
|
2223
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2224
|
-
case "InternalServerException":
|
|
2225
|
-
case "com.amazonaws.frauddetector#InternalServerException":
|
|
2226
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2227
|
-
case "ResourceNotFoundException":
|
|
2228
|
-
case "com.amazonaws.frauddetector#ResourceNotFoundException":
|
|
2229
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2230
|
-
case "ThrottlingException":
|
|
2231
|
-
case "com.amazonaws.frauddetector#ThrottlingException":
|
|
2232
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
2233
|
-
case "ValidationException":
|
|
2234
|
-
case "com.amazonaws.frauddetector#ValidationException":
|
|
2235
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2236
|
-
default:
|
|
2237
|
-
const parsedBody = parsedOutput.body;
|
|
2238
|
-
return throwDefaultError({
|
|
2239
|
-
output,
|
|
2240
|
-
parsedBody,
|
|
2241
|
-
errorCode
|
|
2242
|
-
});
|
|
2243
|
-
}
|
|
2244
|
-
}, "de_DescribeDetectorCommandError");
|
|
2245
1370
|
var de_DescribeModelVersionsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2246
1371
|
if (output.statusCode >= 300) {
|
|
2247
|
-
return
|
|
1372
|
+
return de_CommandError(output, context);
|
|
2248
1373
|
}
|
|
2249
1374
|
const data = await parseBody(output.body, context);
|
|
2250
1375
|
let contents = {};
|
|
@@ -2255,40 +1380,9 @@ var de_DescribeModelVersionsCommand = /* @__PURE__ */ __name(async (output, cont
|
|
|
2255
1380
|
};
|
|
2256
1381
|
return response;
|
|
2257
1382
|
}, "de_DescribeModelVersionsCommand");
|
|
2258
|
-
var de_DescribeModelVersionsCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2259
|
-
const parsedOutput = {
|
|
2260
|
-
...output,
|
|
2261
|
-
body: await parseErrorBody(output.body, context)
|
|
2262
|
-
};
|
|
2263
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2264
|
-
switch (errorCode) {
|
|
2265
|
-
case "AccessDeniedException":
|
|
2266
|
-
case "com.amazonaws.frauddetector#AccessDeniedException":
|
|
2267
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2268
|
-
case "InternalServerException":
|
|
2269
|
-
case "com.amazonaws.frauddetector#InternalServerException":
|
|
2270
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2271
|
-
case "ResourceNotFoundException":
|
|
2272
|
-
case "com.amazonaws.frauddetector#ResourceNotFoundException":
|
|
2273
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2274
|
-
case "ThrottlingException":
|
|
2275
|
-
case "com.amazonaws.frauddetector#ThrottlingException":
|
|
2276
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
2277
|
-
case "ValidationException":
|
|
2278
|
-
case "com.amazonaws.frauddetector#ValidationException":
|
|
2279
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2280
|
-
default:
|
|
2281
|
-
const parsedBody = parsedOutput.body;
|
|
2282
|
-
return throwDefaultError({
|
|
2283
|
-
output,
|
|
2284
|
-
parsedBody,
|
|
2285
|
-
errorCode
|
|
2286
|
-
});
|
|
2287
|
-
}
|
|
2288
|
-
}, "de_DescribeModelVersionsCommandError");
|
|
2289
1383
|
var de_GetBatchImportJobsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2290
1384
|
if (output.statusCode >= 300) {
|
|
2291
|
-
return
|
|
1385
|
+
return de_CommandError(output, context);
|
|
2292
1386
|
}
|
|
2293
1387
|
const data = await parseBody(output.body, context);
|
|
2294
1388
|
let contents = {};
|
|
@@ -2299,40 +1393,9 @@ var de_GetBatchImportJobsCommand = /* @__PURE__ */ __name(async (output, context
|
|
|
2299
1393
|
};
|
|
2300
1394
|
return response;
|
|
2301
1395
|
}, "de_GetBatchImportJobsCommand");
|
|
2302
|
-
var de_GetBatchImportJobsCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2303
|
-
const parsedOutput = {
|
|
2304
|
-
...output,
|
|
2305
|
-
body: await parseErrorBody(output.body, context)
|
|
2306
|
-
};
|
|
2307
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2308
|
-
switch (errorCode) {
|
|
2309
|
-
case "AccessDeniedException":
|
|
2310
|
-
case "com.amazonaws.frauddetector#AccessDeniedException":
|
|
2311
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2312
|
-
case "InternalServerException":
|
|
2313
|
-
case "com.amazonaws.frauddetector#InternalServerException":
|
|
2314
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2315
|
-
case "ResourceNotFoundException":
|
|
2316
|
-
case "com.amazonaws.frauddetector#ResourceNotFoundException":
|
|
2317
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2318
|
-
case "ThrottlingException":
|
|
2319
|
-
case "com.amazonaws.frauddetector#ThrottlingException":
|
|
2320
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
2321
|
-
case "ValidationException":
|
|
2322
|
-
case "com.amazonaws.frauddetector#ValidationException":
|
|
2323
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2324
|
-
default:
|
|
2325
|
-
const parsedBody = parsedOutput.body;
|
|
2326
|
-
return throwDefaultError({
|
|
2327
|
-
output,
|
|
2328
|
-
parsedBody,
|
|
2329
|
-
errorCode
|
|
2330
|
-
});
|
|
2331
|
-
}
|
|
2332
|
-
}, "de_GetBatchImportJobsCommandError");
|
|
2333
1396
|
var de_GetBatchPredictionJobsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2334
1397
|
if (output.statusCode >= 300) {
|
|
2335
|
-
return
|
|
1398
|
+
return de_CommandError(output, context);
|
|
2336
1399
|
}
|
|
2337
1400
|
const data = await parseBody(output.body, context);
|
|
2338
1401
|
let contents = {};
|
|
@@ -2343,40 +1406,9 @@ var de_GetBatchPredictionJobsCommand = /* @__PURE__ */ __name(async (output, con
|
|
|
2343
1406
|
};
|
|
2344
1407
|
return response;
|
|
2345
1408
|
}, "de_GetBatchPredictionJobsCommand");
|
|
2346
|
-
var de_GetBatchPredictionJobsCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2347
|
-
const parsedOutput = {
|
|
2348
|
-
...output,
|
|
2349
|
-
body: await parseErrorBody(output.body, context)
|
|
2350
|
-
};
|
|
2351
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2352
|
-
switch (errorCode) {
|
|
2353
|
-
case "AccessDeniedException":
|
|
2354
|
-
case "com.amazonaws.frauddetector#AccessDeniedException":
|
|
2355
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2356
|
-
case "InternalServerException":
|
|
2357
|
-
case "com.amazonaws.frauddetector#InternalServerException":
|
|
2358
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2359
|
-
case "ResourceNotFoundException":
|
|
2360
|
-
case "com.amazonaws.frauddetector#ResourceNotFoundException":
|
|
2361
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2362
|
-
case "ThrottlingException":
|
|
2363
|
-
case "com.amazonaws.frauddetector#ThrottlingException":
|
|
2364
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
2365
|
-
case "ValidationException":
|
|
2366
|
-
case "com.amazonaws.frauddetector#ValidationException":
|
|
2367
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2368
|
-
default:
|
|
2369
|
-
const parsedBody = parsedOutput.body;
|
|
2370
|
-
return throwDefaultError({
|
|
2371
|
-
output,
|
|
2372
|
-
parsedBody,
|
|
2373
|
-
errorCode
|
|
2374
|
-
});
|
|
2375
|
-
}
|
|
2376
|
-
}, "de_GetBatchPredictionJobsCommandError");
|
|
2377
1409
|
var de_GetDeleteEventsByEventTypeStatusCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2378
1410
|
if (output.statusCode >= 300) {
|
|
2379
|
-
return
|
|
1411
|
+
return de_CommandError(output, context);
|
|
2380
1412
|
}
|
|
2381
1413
|
const data = await parseBody(output.body, context);
|
|
2382
1414
|
let contents = {};
|
|
@@ -2387,40 +1419,9 @@ var de_GetDeleteEventsByEventTypeStatusCommand = /* @__PURE__ */ __name(async (o
|
|
|
2387
1419
|
};
|
|
2388
1420
|
return response;
|
|
2389
1421
|
}, "de_GetDeleteEventsByEventTypeStatusCommand");
|
|
2390
|
-
var de_GetDeleteEventsByEventTypeStatusCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2391
|
-
const parsedOutput = {
|
|
2392
|
-
...output,
|
|
2393
|
-
body: await parseErrorBody(output.body, context)
|
|
2394
|
-
};
|
|
2395
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2396
|
-
switch (errorCode) {
|
|
2397
|
-
case "AccessDeniedException":
|
|
2398
|
-
case "com.amazonaws.frauddetector#AccessDeniedException":
|
|
2399
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2400
|
-
case "InternalServerException":
|
|
2401
|
-
case "com.amazonaws.frauddetector#InternalServerException":
|
|
2402
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2403
|
-
case "ResourceNotFoundException":
|
|
2404
|
-
case "com.amazonaws.frauddetector#ResourceNotFoundException":
|
|
2405
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2406
|
-
case "ThrottlingException":
|
|
2407
|
-
case "com.amazonaws.frauddetector#ThrottlingException":
|
|
2408
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
2409
|
-
case "ValidationException":
|
|
2410
|
-
case "com.amazonaws.frauddetector#ValidationException":
|
|
2411
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2412
|
-
default:
|
|
2413
|
-
const parsedBody = parsedOutput.body;
|
|
2414
|
-
return throwDefaultError({
|
|
2415
|
-
output,
|
|
2416
|
-
parsedBody,
|
|
2417
|
-
errorCode
|
|
2418
|
-
});
|
|
2419
|
-
}
|
|
2420
|
-
}, "de_GetDeleteEventsByEventTypeStatusCommandError");
|
|
2421
1422
|
var de_GetDetectorsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2422
1423
|
if (output.statusCode >= 300) {
|
|
2423
|
-
return
|
|
1424
|
+
return de_CommandError(output, context);
|
|
2424
1425
|
}
|
|
2425
1426
|
const data = await parseBody(output.body, context);
|
|
2426
1427
|
let contents = {};
|
|
@@ -2431,40 +1432,9 @@ var de_GetDetectorsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
2431
1432
|
};
|
|
2432
1433
|
return response;
|
|
2433
1434
|
}, "de_GetDetectorsCommand");
|
|
2434
|
-
var de_GetDetectorsCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2435
|
-
const parsedOutput = {
|
|
2436
|
-
...output,
|
|
2437
|
-
body: await parseErrorBody(output.body, context)
|
|
2438
|
-
};
|
|
2439
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2440
|
-
switch (errorCode) {
|
|
2441
|
-
case "AccessDeniedException":
|
|
2442
|
-
case "com.amazonaws.frauddetector#AccessDeniedException":
|
|
2443
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2444
|
-
case "InternalServerException":
|
|
2445
|
-
case "com.amazonaws.frauddetector#InternalServerException":
|
|
2446
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2447
|
-
case "ResourceNotFoundException":
|
|
2448
|
-
case "com.amazonaws.frauddetector#ResourceNotFoundException":
|
|
2449
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2450
|
-
case "ThrottlingException":
|
|
2451
|
-
case "com.amazonaws.frauddetector#ThrottlingException":
|
|
2452
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
2453
|
-
case "ValidationException":
|
|
2454
|
-
case "com.amazonaws.frauddetector#ValidationException":
|
|
2455
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2456
|
-
default:
|
|
2457
|
-
const parsedBody = parsedOutput.body;
|
|
2458
|
-
return throwDefaultError({
|
|
2459
|
-
output,
|
|
2460
|
-
parsedBody,
|
|
2461
|
-
errorCode
|
|
2462
|
-
});
|
|
2463
|
-
}
|
|
2464
|
-
}, "de_GetDetectorsCommandError");
|
|
2465
1435
|
var de_GetDetectorVersionCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2466
1436
|
if (output.statusCode >= 300) {
|
|
2467
|
-
return
|
|
1437
|
+
return de_CommandError(output, context);
|
|
2468
1438
|
}
|
|
2469
1439
|
const data = await parseBody(output.body, context);
|
|
2470
1440
|
let contents = {};
|
|
@@ -2475,84 +1445,22 @@ var de_GetDetectorVersionCommand = /* @__PURE__ */ __name(async (output, context
|
|
|
2475
1445
|
};
|
|
2476
1446
|
return response;
|
|
2477
1447
|
}, "de_GetDetectorVersionCommand");
|
|
2478
|
-
var
|
|
2479
|
-
|
|
2480
|
-
|
|
2481
|
-
|
|
2482
|
-
|
|
2483
|
-
|
|
2484
|
-
|
|
2485
|
-
|
|
2486
|
-
|
|
2487
|
-
|
|
2488
|
-
case "InternalServerException":
|
|
2489
|
-
case "com.amazonaws.frauddetector#InternalServerException":
|
|
2490
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2491
|
-
case "ResourceNotFoundException":
|
|
2492
|
-
case "com.amazonaws.frauddetector#ResourceNotFoundException":
|
|
2493
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2494
|
-
case "ThrottlingException":
|
|
2495
|
-
case "com.amazonaws.frauddetector#ThrottlingException":
|
|
2496
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
2497
|
-
case "ValidationException":
|
|
2498
|
-
case "com.amazonaws.frauddetector#ValidationException":
|
|
2499
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2500
|
-
default:
|
|
2501
|
-
const parsedBody = parsedOutput.body;
|
|
2502
|
-
return throwDefaultError({
|
|
2503
|
-
output,
|
|
2504
|
-
parsedBody,
|
|
2505
|
-
errorCode
|
|
2506
|
-
});
|
|
2507
|
-
}
|
|
2508
|
-
}, "de_GetDetectorVersionCommandError");
|
|
2509
|
-
var de_GetEntityTypesCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2510
|
-
if (output.statusCode >= 300) {
|
|
2511
|
-
return de_GetEntityTypesCommandError(output, context);
|
|
2512
|
-
}
|
|
2513
|
-
const data = await parseBody(output.body, context);
|
|
2514
|
-
let contents = {};
|
|
2515
|
-
contents = (0, import_smithy_client._json)(data);
|
|
2516
|
-
const response = {
|
|
2517
|
-
$metadata: deserializeMetadata(output),
|
|
2518
|
-
...contents
|
|
1448
|
+
var de_GetEntityTypesCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1449
|
+
if (output.statusCode >= 300) {
|
|
1450
|
+
return de_CommandError(output, context);
|
|
1451
|
+
}
|
|
1452
|
+
const data = await parseBody(output.body, context);
|
|
1453
|
+
let contents = {};
|
|
1454
|
+
contents = (0, import_smithy_client._json)(data);
|
|
1455
|
+
const response = {
|
|
1456
|
+
$metadata: deserializeMetadata(output),
|
|
1457
|
+
...contents
|
|
2519
1458
|
};
|
|
2520
1459
|
return response;
|
|
2521
1460
|
}, "de_GetEntityTypesCommand");
|
|
2522
|
-
var de_GetEntityTypesCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2523
|
-
const parsedOutput = {
|
|
2524
|
-
...output,
|
|
2525
|
-
body: await parseErrorBody(output.body, context)
|
|
2526
|
-
};
|
|
2527
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2528
|
-
switch (errorCode) {
|
|
2529
|
-
case "AccessDeniedException":
|
|
2530
|
-
case "com.amazonaws.frauddetector#AccessDeniedException":
|
|
2531
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2532
|
-
case "InternalServerException":
|
|
2533
|
-
case "com.amazonaws.frauddetector#InternalServerException":
|
|
2534
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2535
|
-
case "ResourceNotFoundException":
|
|
2536
|
-
case "com.amazonaws.frauddetector#ResourceNotFoundException":
|
|
2537
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2538
|
-
case "ThrottlingException":
|
|
2539
|
-
case "com.amazonaws.frauddetector#ThrottlingException":
|
|
2540
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
2541
|
-
case "ValidationException":
|
|
2542
|
-
case "com.amazonaws.frauddetector#ValidationException":
|
|
2543
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2544
|
-
default:
|
|
2545
|
-
const parsedBody = parsedOutput.body;
|
|
2546
|
-
return throwDefaultError({
|
|
2547
|
-
output,
|
|
2548
|
-
parsedBody,
|
|
2549
|
-
errorCode
|
|
2550
|
-
});
|
|
2551
|
-
}
|
|
2552
|
-
}, "de_GetEntityTypesCommandError");
|
|
2553
1461
|
var de_GetEventCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2554
1462
|
if (output.statusCode >= 300) {
|
|
2555
|
-
return
|
|
1463
|
+
return de_CommandError(output, context);
|
|
2556
1464
|
}
|
|
2557
1465
|
const data = await parseBody(output.body, context);
|
|
2558
1466
|
let contents = {};
|
|
@@ -2563,40 +1471,9 @@ var de_GetEventCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
2563
1471
|
};
|
|
2564
1472
|
return response;
|
|
2565
1473
|
}, "de_GetEventCommand");
|
|
2566
|
-
var de_GetEventCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2567
|
-
const parsedOutput = {
|
|
2568
|
-
...output,
|
|
2569
|
-
body: await parseErrorBody(output.body, context)
|
|
2570
|
-
};
|
|
2571
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2572
|
-
switch (errorCode) {
|
|
2573
|
-
case "AccessDeniedException":
|
|
2574
|
-
case "com.amazonaws.frauddetector#AccessDeniedException":
|
|
2575
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2576
|
-
case "InternalServerException":
|
|
2577
|
-
case "com.amazonaws.frauddetector#InternalServerException":
|
|
2578
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2579
|
-
case "ResourceNotFoundException":
|
|
2580
|
-
case "com.amazonaws.frauddetector#ResourceNotFoundException":
|
|
2581
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2582
|
-
case "ThrottlingException":
|
|
2583
|
-
case "com.amazonaws.frauddetector#ThrottlingException":
|
|
2584
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
2585
|
-
case "ValidationException":
|
|
2586
|
-
case "com.amazonaws.frauddetector#ValidationException":
|
|
2587
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2588
|
-
default:
|
|
2589
|
-
const parsedBody = parsedOutput.body;
|
|
2590
|
-
return throwDefaultError({
|
|
2591
|
-
output,
|
|
2592
|
-
parsedBody,
|
|
2593
|
-
errorCode
|
|
2594
|
-
});
|
|
2595
|
-
}
|
|
2596
|
-
}, "de_GetEventCommandError");
|
|
2597
1474
|
var de_GetEventPredictionCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2598
1475
|
if (output.statusCode >= 300) {
|
|
2599
|
-
return
|
|
1476
|
+
return de_CommandError(output, context);
|
|
2600
1477
|
}
|
|
2601
1478
|
const data = await parseBody(output.body, context);
|
|
2602
1479
|
let contents = {};
|
|
@@ -2607,46 +1484,9 @@ var de_GetEventPredictionCommand = /* @__PURE__ */ __name(async (output, context
|
|
|
2607
1484
|
};
|
|
2608
1485
|
return response;
|
|
2609
1486
|
}, "de_GetEventPredictionCommand");
|
|
2610
|
-
var de_GetEventPredictionCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2611
|
-
const parsedOutput = {
|
|
2612
|
-
...output,
|
|
2613
|
-
body: await parseErrorBody(output.body, context)
|
|
2614
|
-
};
|
|
2615
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2616
|
-
switch (errorCode) {
|
|
2617
|
-
case "AccessDeniedException":
|
|
2618
|
-
case "com.amazonaws.frauddetector#AccessDeniedException":
|
|
2619
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2620
|
-
case "ConflictException":
|
|
2621
|
-
case "com.amazonaws.frauddetector#ConflictException":
|
|
2622
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
2623
|
-
case "InternalServerException":
|
|
2624
|
-
case "com.amazonaws.frauddetector#InternalServerException":
|
|
2625
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2626
|
-
case "ResourceNotFoundException":
|
|
2627
|
-
case "com.amazonaws.frauddetector#ResourceNotFoundException":
|
|
2628
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2629
|
-
case "ResourceUnavailableException":
|
|
2630
|
-
case "com.amazonaws.frauddetector#ResourceUnavailableException":
|
|
2631
|
-
throw await de_ResourceUnavailableExceptionRes(parsedOutput, context);
|
|
2632
|
-
case "ThrottlingException":
|
|
2633
|
-
case "com.amazonaws.frauddetector#ThrottlingException":
|
|
2634
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
2635
|
-
case "ValidationException":
|
|
2636
|
-
case "com.amazonaws.frauddetector#ValidationException":
|
|
2637
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2638
|
-
default:
|
|
2639
|
-
const parsedBody = parsedOutput.body;
|
|
2640
|
-
return throwDefaultError({
|
|
2641
|
-
output,
|
|
2642
|
-
parsedBody,
|
|
2643
|
-
errorCode
|
|
2644
|
-
});
|
|
2645
|
-
}
|
|
2646
|
-
}, "de_GetEventPredictionCommandError");
|
|
2647
1487
|
var de_GetEventPredictionMetadataCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2648
1488
|
if (output.statusCode >= 300) {
|
|
2649
|
-
return
|
|
1489
|
+
return de_CommandError(output, context);
|
|
2650
1490
|
}
|
|
2651
1491
|
const data = await parseBody(output.body, context);
|
|
2652
1492
|
let contents = {};
|
|
@@ -2657,40 +1497,9 @@ var de_GetEventPredictionMetadataCommand = /* @__PURE__ */ __name(async (output,
|
|
|
2657
1497
|
};
|
|
2658
1498
|
return response;
|
|
2659
1499
|
}, "de_GetEventPredictionMetadataCommand");
|
|
2660
|
-
var de_GetEventPredictionMetadataCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2661
|
-
const parsedOutput = {
|
|
2662
|
-
...output,
|
|
2663
|
-
body: await parseErrorBody(output.body, context)
|
|
2664
|
-
};
|
|
2665
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2666
|
-
switch (errorCode) {
|
|
2667
|
-
case "AccessDeniedException":
|
|
2668
|
-
case "com.amazonaws.frauddetector#AccessDeniedException":
|
|
2669
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2670
|
-
case "InternalServerException":
|
|
2671
|
-
case "com.amazonaws.frauddetector#InternalServerException":
|
|
2672
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2673
|
-
case "ResourceNotFoundException":
|
|
2674
|
-
case "com.amazonaws.frauddetector#ResourceNotFoundException":
|
|
2675
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2676
|
-
case "ThrottlingException":
|
|
2677
|
-
case "com.amazonaws.frauddetector#ThrottlingException":
|
|
2678
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
2679
|
-
case "ValidationException":
|
|
2680
|
-
case "com.amazonaws.frauddetector#ValidationException":
|
|
2681
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2682
|
-
default:
|
|
2683
|
-
const parsedBody = parsedOutput.body;
|
|
2684
|
-
return throwDefaultError({
|
|
2685
|
-
output,
|
|
2686
|
-
parsedBody,
|
|
2687
|
-
errorCode
|
|
2688
|
-
});
|
|
2689
|
-
}
|
|
2690
|
-
}, "de_GetEventPredictionMetadataCommandError");
|
|
2691
1500
|
var de_GetEventTypesCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2692
1501
|
if (output.statusCode >= 300) {
|
|
2693
|
-
return
|
|
1502
|
+
return de_CommandError(output, context);
|
|
2694
1503
|
}
|
|
2695
1504
|
const data = await parseBody(output.body, context);
|
|
2696
1505
|
let contents = {};
|
|
@@ -2701,40 +1510,9 @@ var de_GetEventTypesCommand = /* @__PURE__ */ __name(async (output, context) =>
|
|
|
2701
1510
|
};
|
|
2702
1511
|
return response;
|
|
2703
1512
|
}, "de_GetEventTypesCommand");
|
|
2704
|
-
var de_GetEventTypesCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2705
|
-
const parsedOutput = {
|
|
2706
|
-
...output,
|
|
2707
|
-
body: await parseErrorBody(output.body, context)
|
|
2708
|
-
};
|
|
2709
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2710
|
-
switch (errorCode) {
|
|
2711
|
-
case "AccessDeniedException":
|
|
2712
|
-
case "com.amazonaws.frauddetector#AccessDeniedException":
|
|
2713
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2714
|
-
case "InternalServerException":
|
|
2715
|
-
case "com.amazonaws.frauddetector#InternalServerException":
|
|
2716
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2717
|
-
case "ResourceNotFoundException":
|
|
2718
|
-
case "com.amazonaws.frauddetector#ResourceNotFoundException":
|
|
2719
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2720
|
-
case "ThrottlingException":
|
|
2721
|
-
case "com.amazonaws.frauddetector#ThrottlingException":
|
|
2722
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
2723
|
-
case "ValidationException":
|
|
2724
|
-
case "com.amazonaws.frauddetector#ValidationException":
|
|
2725
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2726
|
-
default:
|
|
2727
|
-
const parsedBody = parsedOutput.body;
|
|
2728
|
-
return throwDefaultError({
|
|
2729
|
-
output,
|
|
2730
|
-
parsedBody,
|
|
2731
|
-
errorCode
|
|
2732
|
-
});
|
|
2733
|
-
}
|
|
2734
|
-
}, "de_GetEventTypesCommandError");
|
|
2735
1513
|
var de_GetExternalModelsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2736
1514
|
if (output.statusCode >= 300) {
|
|
2737
|
-
return
|
|
1515
|
+
return de_CommandError(output, context);
|
|
2738
1516
|
}
|
|
2739
1517
|
const data = await parseBody(output.body, context);
|
|
2740
1518
|
let contents = {};
|
|
@@ -2745,40 +1523,9 @@ var de_GetExternalModelsCommand = /* @__PURE__ */ __name(async (output, context)
|
|
|
2745
1523
|
};
|
|
2746
1524
|
return response;
|
|
2747
1525
|
}, "de_GetExternalModelsCommand");
|
|
2748
|
-
var de_GetExternalModelsCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2749
|
-
const parsedOutput = {
|
|
2750
|
-
...output,
|
|
2751
|
-
body: await parseErrorBody(output.body, context)
|
|
2752
|
-
};
|
|
2753
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2754
|
-
switch (errorCode) {
|
|
2755
|
-
case "AccessDeniedException":
|
|
2756
|
-
case "com.amazonaws.frauddetector#AccessDeniedException":
|
|
2757
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2758
|
-
case "InternalServerException":
|
|
2759
|
-
case "com.amazonaws.frauddetector#InternalServerException":
|
|
2760
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2761
|
-
case "ResourceNotFoundException":
|
|
2762
|
-
case "com.amazonaws.frauddetector#ResourceNotFoundException":
|
|
2763
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2764
|
-
case "ThrottlingException":
|
|
2765
|
-
case "com.amazonaws.frauddetector#ThrottlingException":
|
|
2766
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
2767
|
-
case "ValidationException":
|
|
2768
|
-
case "com.amazonaws.frauddetector#ValidationException":
|
|
2769
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2770
|
-
default:
|
|
2771
|
-
const parsedBody = parsedOutput.body;
|
|
2772
|
-
return throwDefaultError({
|
|
2773
|
-
output,
|
|
2774
|
-
parsedBody,
|
|
2775
|
-
errorCode
|
|
2776
|
-
});
|
|
2777
|
-
}
|
|
2778
|
-
}, "de_GetExternalModelsCommandError");
|
|
2779
1526
|
var de_GetKMSEncryptionKeyCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2780
1527
|
if (output.statusCode >= 300) {
|
|
2781
|
-
return
|
|
1528
|
+
return de_CommandError(output, context);
|
|
2782
1529
|
}
|
|
2783
1530
|
const data = await parseBody(output.body, context);
|
|
2784
1531
|
let contents = {};
|
|
@@ -2789,37 +1536,9 @@ var de_GetKMSEncryptionKeyCommand = /* @__PURE__ */ __name(async (output, contex
|
|
|
2789
1536
|
};
|
|
2790
1537
|
return response;
|
|
2791
1538
|
}, "de_GetKMSEncryptionKeyCommand");
|
|
2792
|
-
var de_GetKMSEncryptionKeyCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2793
|
-
const parsedOutput = {
|
|
2794
|
-
...output,
|
|
2795
|
-
body: await parseErrorBody(output.body, context)
|
|
2796
|
-
};
|
|
2797
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2798
|
-
switch (errorCode) {
|
|
2799
|
-
case "AccessDeniedException":
|
|
2800
|
-
case "com.amazonaws.frauddetector#AccessDeniedException":
|
|
2801
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2802
|
-
case "InternalServerException":
|
|
2803
|
-
case "com.amazonaws.frauddetector#InternalServerException":
|
|
2804
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2805
|
-
case "ResourceNotFoundException":
|
|
2806
|
-
case "com.amazonaws.frauddetector#ResourceNotFoundException":
|
|
2807
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2808
|
-
case "ThrottlingException":
|
|
2809
|
-
case "com.amazonaws.frauddetector#ThrottlingException":
|
|
2810
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
2811
|
-
default:
|
|
2812
|
-
const parsedBody = parsedOutput.body;
|
|
2813
|
-
return throwDefaultError({
|
|
2814
|
-
output,
|
|
2815
|
-
parsedBody,
|
|
2816
|
-
errorCode
|
|
2817
|
-
});
|
|
2818
|
-
}
|
|
2819
|
-
}, "de_GetKMSEncryptionKeyCommandError");
|
|
2820
1539
|
var de_GetLabelsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2821
1540
|
if (output.statusCode >= 300) {
|
|
2822
|
-
return
|
|
1541
|
+
return de_CommandError(output, context);
|
|
2823
1542
|
}
|
|
2824
1543
|
const data = await parseBody(output.body, context);
|
|
2825
1544
|
let contents = {};
|
|
@@ -2830,40 +1549,9 @@ var de_GetLabelsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
2830
1549
|
};
|
|
2831
1550
|
return response;
|
|
2832
1551
|
}, "de_GetLabelsCommand");
|
|
2833
|
-
var de_GetLabelsCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2834
|
-
const parsedOutput = {
|
|
2835
|
-
...output,
|
|
2836
|
-
body: await parseErrorBody(output.body, context)
|
|
2837
|
-
};
|
|
2838
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2839
|
-
switch (errorCode) {
|
|
2840
|
-
case "AccessDeniedException":
|
|
2841
|
-
case "com.amazonaws.frauddetector#AccessDeniedException":
|
|
2842
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2843
|
-
case "InternalServerException":
|
|
2844
|
-
case "com.amazonaws.frauddetector#InternalServerException":
|
|
2845
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2846
|
-
case "ResourceNotFoundException":
|
|
2847
|
-
case "com.amazonaws.frauddetector#ResourceNotFoundException":
|
|
2848
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2849
|
-
case "ThrottlingException":
|
|
2850
|
-
case "com.amazonaws.frauddetector#ThrottlingException":
|
|
2851
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
2852
|
-
case "ValidationException":
|
|
2853
|
-
case "com.amazonaws.frauddetector#ValidationException":
|
|
2854
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2855
|
-
default:
|
|
2856
|
-
const parsedBody = parsedOutput.body;
|
|
2857
|
-
return throwDefaultError({
|
|
2858
|
-
output,
|
|
2859
|
-
parsedBody,
|
|
2860
|
-
errorCode
|
|
2861
|
-
});
|
|
2862
|
-
}
|
|
2863
|
-
}, "de_GetLabelsCommandError");
|
|
2864
1552
|
var de_GetListElementsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2865
1553
|
if (output.statusCode >= 300) {
|
|
2866
|
-
return
|
|
1554
|
+
return de_CommandError(output, context);
|
|
2867
1555
|
}
|
|
2868
1556
|
const data = await parseBody(output.body, context);
|
|
2869
1557
|
let contents = {};
|
|
@@ -2874,40 +1562,9 @@ var de_GetListElementsCommand = /* @__PURE__ */ __name(async (output, context) =
|
|
|
2874
1562
|
};
|
|
2875
1563
|
return response;
|
|
2876
1564
|
}, "de_GetListElementsCommand");
|
|
2877
|
-
var de_GetListElementsCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2878
|
-
const parsedOutput = {
|
|
2879
|
-
...output,
|
|
2880
|
-
body: await parseErrorBody(output.body, context)
|
|
2881
|
-
};
|
|
2882
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2883
|
-
switch (errorCode) {
|
|
2884
|
-
case "AccessDeniedException":
|
|
2885
|
-
case "com.amazonaws.frauddetector#AccessDeniedException":
|
|
2886
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2887
|
-
case "InternalServerException":
|
|
2888
|
-
case "com.amazonaws.frauddetector#InternalServerException":
|
|
2889
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2890
|
-
case "ResourceNotFoundException":
|
|
2891
|
-
case "com.amazonaws.frauddetector#ResourceNotFoundException":
|
|
2892
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2893
|
-
case "ThrottlingException":
|
|
2894
|
-
case "com.amazonaws.frauddetector#ThrottlingException":
|
|
2895
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
2896
|
-
case "ValidationException":
|
|
2897
|
-
case "com.amazonaws.frauddetector#ValidationException":
|
|
2898
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2899
|
-
default:
|
|
2900
|
-
const parsedBody = parsedOutput.body;
|
|
2901
|
-
return throwDefaultError({
|
|
2902
|
-
output,
|
|
2903
|
-
parsedBody,
|
|
2904
|
-
errorCode
|
|
2905
|
-
});
|
|
2906
|
-
}
|
|
2907
|
-
}, "de_GetListElementsCommandError");
|
|
2908
1565
|
var de_GetListsMetadataCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2909
1566
|
if (output.statusCode >= 300) {
|
|
2910
|
-
return
|
|
1567
|
+
return de_CommandError(output, context);
|
|
2911
1568
|
}
|
|
2912
1569
|
const data = await parseBody(output.body, context);
|
|
2913
1570
|
let contents = {};
|
|
@@ -2918,40 +1575,9 @@ var de_GetListsMetadataCommand = /* @__PURE__ */ __name(async (output, context)
|
|
|
2918
1575
|
};
|
|
2919
1576
|
return response;
|
|
2920
1577
|
}, "de_GetListsMetadataCommand");
|
|
2921
|
-
var de_GetListsMetadataCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2922
|
-
const parsedOutput = {
|
|
2923
|
-
...output,
|
|
2924
|
-
body: await parseErrorBody(output.body, context)
|
|
2925
|
-
};
|
|
2926
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2927
|
-
switch (errorCode) {
|
|
2928
|
-
case "AccessDeniedException":
|
|
2929
|
-
case "com.amazonaws.frauddetector#AccessDeniedException":
|
|
2930
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2931
|
-
case "InternalServerException":
|
|
2932
|
-
case "com.amazonaws.frauddetector#InternalServerException":
|
|
2933
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2934
|
-
case "ResourceNotFoundException":
|
|
2935
|
-
case "com.amazonaws.frauddetector#ResourceNotFoundException":
|
|
2936
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2937
|
-
case "ThrottlingException":
|
|
2938
|
-
case "com.amazonaws.frauddetector#ThrottlingException":
|
|
2939
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
2940
|
-
case "ValidationException":
|
|
2941
|
-
case "com.amazonaws.frauddetector#ValidationException":
|
|
2942
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2943
|
-
default:
|
|
2944
|
-
const parsedBody = parsedOutput.body;
|
|
2945
|
-
return throwDefaultError({
|
|
2946
|
-
output,
|
|
2947
|
-
parsedBody,
|
|
2948
|
-
errorCode
|
|
2949
|
-
});
|
|
2950
|
-
}
|
|
2951
|
-
}, "de_GetListsMetadataCommandError");
|
|
2952
1578
|
var de_GetModelsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2953
1579
|
if (output.statusCode >= 300) {
|
|
2954
|
-
return
|
|
1580
|
+
return de_CommandError(output, context);
|
|
2955
1581
|
}
|
|
2956
1582
|
const data = await parseBody(output.body, context);
|
|
2957
1583
|
let contents = {};
|
|
@@ -2962,40 +1588,9 @@ var de_GetModelsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
2962
1588
|
};
|
|
2963
1589
|
return response;
|
|
2964
1590
|
}, "de_GetModelsCommand");
|
|
2965
|
-
var de_GetModelsCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2966
|
-
const parsedOutput = {
|
|
2967
|
-
...output,
|
|
2968
|
-
body: await parseErrorBody(output.body, context)
|
|
2969
|
-
};
|
|
2970
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2971
|
-
switch (errorCode) {
|
|
2972
|
-
case "AccessDeniedException":
|
|
2973
|
-
case "com.amazonaws.frauddetector#AccessDeniedException":
|
|
2974
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2975
|
-
case "InternalServerException":
|
|
2976
|
-
case "com.amazonaws.frauddetector#InternalServerException":
|
|
2977
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2978
|
-
case "ResourceNotFoundException":
|
|
2979
|
-
case "com.amazonaws.frauddetector#ResourceNotFoundException":
|
|
2980
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2981
|
-
case "ThrottlingException":
|
|
2982
|
-
case "com.amazonaws.frauddetector#ThrottlingException":
|
|
2983
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
2984
|
-
case "ValidationException":
|
|
2985
|
-
case "com.amazonaws.frauddetector#ValidationException":
|
|
2986
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2987
|
-
default:
|
|
2988
|
-
const parsedBody = parsedOutput.body;
|
|
2989
|
-
return throwDefaultError({
|
|
2990
|
-
output,
|
|
2991
|
-
parsedBody,
|
|
2992
|
-
errorCode
|
|
2993
|
-
});
|
|
2994
|
-
}
|
|
2995
|
-
}, "de_GetModelsCommandError");
|
|
2996
1591
|
var de_GetModelVersionCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2997
1592
|
if (output.statusCode >= 300) {
|
|
2998
|
-
return
|
|
1593
|
+
return de_CommandError(output, context);
|
|
2999
1594
|
}
|
|
3000
1595
|
const data = await parseBody(output.body, context);
|
|
3001
1596
|
let contents = {};
|
|
@@ -3006,40 +1601,9 @@ var de_GetModelVersionCommand = /* @__PURE__ */ __name(async (output, context) =
|
|
|
3006
1601
|
};
|
|
3007
1602
|
return response;
|
|
3008
1603
|
}, "de_GetModelVersionCommand");
|
|
3009
|
-
var de_GetModelVersionCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
3010
|
-
const parsedOutput = {
|
|
3011
|
-
...output,
|
|
3012
|
-
body: await parseErrorBody(output.body, context)
|
|
3013
|
-
};
|
|
3014
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3015
|
-
switch (errorCode) {
|
|
3016
|
-
case "AccessDeniedException":
|
|
3017
|
-
case "com.amazonaws.frauddetector#AccessDeniedException":
|
|
3018
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
3019
|
-
case "InternalServerException":
|
|
3020
|
-
case "com.amazonaws.frauddetector#InternalServerException":
|
|
3021
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
3022
|
-
case "ResourceNotFoundException":
|
|
3023
|
-
case "com.amazonaws.frauddetector#ResourceNotFoundException":
|
|
3024
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
3025
|
-
case "ThrottlingException":
|
|
3026
|
-
case "com.amazonaws.frauddetector#ThrottlingException":
|
|
3027
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
3028
|
-
case "ValidationException":
|
|
3029
|
-
case "com.amazonaws.frauddetector#ValidationException":
|
|
3030
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
3031
|
-
default:
|
|
3032
|
-
const parsedBody = parsedOutput.body;
|
|
3033
|
-
return throwDefaultError({
|
|
3034
|
-
output,
|
|
3035
|
-
parsedBody,
|
|
3036
|
-
errorCode
|
|
3037
|
-
});
|
|
3038
|
-
}
|
|
3039
|
-
}, "de_GetModelVersionCommandError");
|
|
3040
1604
|
var de_GetOutcomesCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
3041
1605
|
if (output.statusCode >= 300) {
|
|
3042
|
-
return
|
|
1606
|
+
return de_CommandError(output, context);
|
|
3043
1607
|
}
|
|
3044
1608
|
const data = await parseBody(output.body, context);
|
|
3045
1609
|
let contents = {};
|
|
@@ -3050,40 +1614,9 @@ var de_GetOutcomesCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
3050
1614
|
};
|
|
3051
1615
|
return response;
|
|
3052
1616
|
}, "de_GetOutcomesCommand");
|
|
3053
|
-
var de_GetOutcomesCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
3054
|
-
const parsedOutput = {
|
|
3055
|
-
...output,
|
|
3056
|
-
body: await parseErrorBody(output.body, context)
|
|
3057
|
-
};
|
|
3058
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3059
|
-
switch (errorCode) {
|
|
3060
|
-
case "AccessDeniedException":
|
|
3061
|
-
case "com.amazonaws.frauddetector#AccessDeniedException":
|
|
3062
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
3063
|
-
case "InternalServerException":
|
|
3064
|
-
case "com.amazonaws.frauddetector#InternalServerException":
|
|
3065
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
3066
|
-
case "ResourceNotFoundException":
|
|
3067
|
-
case "com.amazonaws.frauddetector#ResourceNotFoundException":
|
|
3068
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
3069
|
-
case "ThrottlingException":
|
|
3070
|
-
case "com.amazonaws.frauddetector#ThrottlingException":
|
|
3071
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
3072
|
-
case "ValidationException":
|
|
3073
|
-
case "com.amazonaws.frauddetector#ValidationException":
|
|
3074
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
3075
|
-
default:
|
|
3076
|
-
const parsedBody = parsedOutput.body;
|
|
3077
|
-
return throwDefaultError({
|
|
3078
|
-
output,
|
|
3079
|
-
parsedBody,
|
|
3080
|
-
errorCode
|
|
3081
|
-
});
|
|
3082
|
-
}
|
|
3083
|
-
}, "de_GetOutcomesCommandError");
|
|
3084
1617
|
var de_GetRulesCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
3085
1618
|
if (output.statusCode >= 300) {
|
|
3086
|
-
return
|
|
1619
|
+
return de_CommandError(output, context);
|
|
3087
1620
|
}
|
|
3088
1621
|
const data = await parseBody(output.body, context);
|
|
3089
1622
|
let contents = {};
|
|
@@ -3094,40 +1627,9 @@ var de_GetRulesCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
3094
1627
|
};
|
|
3095
1628
|
return response;
|
|
3096
1629
|
}, "de_GetRulesCommand");
|
|
3097
|
-
var de_GetRulesCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
3098
|
-
const parsedOutput = {
|
|
3099
|
-
...output,
|
|
3100
|
-
body: await parseErrorBody(output.body, context)
|
|
3101
|
-
};
|
|
3102
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3103
|
-
switch (errorCode) {
|
|
3104
|
-
case "AccessDeniedException":
|
|
3105
|
-
case "com.amazonaws.frauddetector#AccessDeniedException":
|
|
3106
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
3107
|
-
case "InternalServerException":
|
|
3108
|
-
case "com.amazonaws.frauddetector#InternalServerException":
|
|
3109
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
3110
|
-
case "ResourceNotFoundException":
|
|
3111
|
-
case "com.amazonaws.frauddetector#ResourceNotFoundException":
|
|
3112
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
3113
|
-
case "ThrottlingException":
|
|
3114
|
-
case "com.amazonaws.frauddetector#ThrottlingException":
|
|
3115
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
3116
|
-
case "ValidationException":
|
|
3117
|
-
case "com.amazonaws.frauddetector#ValidationException":
|
|
3118
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
3119
|
-
default:
|
|
3120
|
-
const parsedBody = parsedOutput.body;
|
|
3121
|
-
return throwDefaultError({
|
|
3122
|
-
output,
|
|
3123
|
-
parsedBody,
|
|
3124
|
-
errorCode
|
|
3125
|
-
});
|
|
3126
|
-
}
|
|
3127
|
-
}, "de_GetRulesCommandError");
|
|
3128
1630
|
var de_GetVariablesCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
3129
1631
|
if (output.statusCode >= 300) {
|
|
3130
|
-
return
|
|
1632
|
+
return de_CommandError(output, context);
|
|
3131
1633
|
}
|
|
3132
1634
|
const data = await parseBody(output.body, context);
|
|
3133
1635
|
let contents = {};
|
|
@@ -3138,40 +1640,9 @@ var de_GetVariablesCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
3138
1640
|
};
|
|
3139
1641
|
return response;
|
|
3140
1642
|
}, "de_GetVariablesCommand");
|
|
3141
|
-
var de_GetVariablesCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
3142
|
-
const parsedOutput = {
|
|
3143
|
-
...output,
|
|
3144
|
-
body: await parseErrorBody(output.body, context)
|
|
3145
|
-
};
|
|
3146
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3147
|
-
switch (errorCode) {
|
|
3148
|
-
case "AccessDeniedException":
|
|
3149
|
-
case "com.amazonaws.frauddetector#AccessDeniedException":
|
|
3150
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
3151
|
-
case "InternalServerException":
|
|
3152
|
-
case "com.amazonaws.frauddetector#InternalServerException":
|
|
3153
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
3154
|
-
case "ResourceNotFoundException":
|
|
3155
|
-
case "com.amazonaws.frauddetector#ResourceNotFoundException":
|
|
3156
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
3157
|
-
case "ThrottlingException":
|
|
3158
|
-
case "com.amazonaws.frauddetector#ThrottlingException":
|
|
3159
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
3160
|
-
case "ValidationException":
|
|
3161
|
-
case "com.amazonaws.frauddetector#ValidationException":
|
|
3162
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
3163
|
-
default:
|
|
3164
|
-
const parsedBody = parsedOutput.body;
|
|
3165
|
-
return throwDefaultError({
|
|
3166
|
-
output,
|
|
3167
|
-
parsedBody,
|
|
3168
|
-
errorCode
|
|
3169
|
-
});
|
|
3170
|
-
}
|
|
3171
|
-
}, "de_GetVariablesCommandError");
|
|
3172
1643
|
var de_ListEventPredictionsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
3173
1644
|
if (output.statusCode >= 300) {
|
|
3174
|
-
return
|
|
1645
|
+
return de_CommandError(output, context);
|
|
3175
1646
|
}
|
|
3176
1647
|
const data = await parseBody(output.body, context);
|
|
3177
1648
|
let contents = {};
|
|
@@ -3182,37 +1653,9 @@ var de_ListEventPredictionsCommand = /* @__PURE__ */ __name(async (output, conte
|
|
|
3182
1653
|
};
|
|
3183
1654
|
return response;
|
|
3184
1655
|
}, "de_ListEventPredictionsCommand");
|
|
3185
|
-
var de_ListEventPredictionsCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
3186
|
-
const parsedOutput = {
|
|
3187
|
-
...output,
|
|
3188
|
-
body: await parseErrorBody(output.body, context)
|
|
3189
|
-
};
|
|
3190
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3191
|
-
switch (errorCode) {
|
|
3192
|
-
case "AccessDeniedException":
|
|
3193
|
-
case "com.amazonaws.frauddetector#AccessDeniedException":
|
|
3194
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
3195
|
-
case "InternalServerException":
|
|
3196
|
-
case "com.amazonaws.frauddetector#InternalServerException":
|
|
3197
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
3198
|
-
case "ThrottlingException":
|
|
3199
|
-
case "com.amazonaws.frauddetector#ThrottlingException":
|
|
3200
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
3201
|
-
case "ValidationException":
|
|
3202
|
-
case "com.amazonaws.frauddetector#ValidationException":
|
|
3203
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
3204
|
-
default:
|
|
3205
|
-
const parsedBody = parsedOutput.body;
|
|
3206
|
-
return throwDefaultError({
|
|
3207
|
-
output,
|
|
3208
|
-
parsedBody,
|
|
3209
|
-
errorCode
|
|
3210
|
-
});
|
|
3211
|
-
}
|
|
3212
|
-
}, "de_ListEventPredictionsCommandError");
|
|
3213
1656
|
var de_ListTagsForResourceCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
3214
1657
|
if (output.statusCode >= 300) {
|
|
3215
|
-
return
|
|
1658
|
+
return de_CommandError(output, context);
|
|
3216
1659
|
}
|
|
3217
1660
|
const data = await parseBody(output.body, context);
|
|
3218
1661
|
let contents = {};
|
|
@@ -3223,37 +1666,9 @@ var de_ListTagsForResourceCommand = /* @__PURE__ */ __name(async (output, contex
|
|
|
3223
1666
|
};
|
|
3224
1667
|
return response;
|
|
3225
1668
|
}, "de_ListTagsForResourceCommand");
|
|
3226
|
-
var de_ListTagsForResourceCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
3227
|
-
const parsedOutput = {
|
|
3228
|
-
...output,
|
|
3229
|
-
body: await parseErrorBody(output.body, context)
|
|
3230
|
-
};
|
|
3231
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3232
|
-
switch (errorCode) {
|
|
3233
|
-
case "AccessDeniedException":
|
|
3234
|
-
case "com.amazonaws.frauddetector#AccessDeniedException":
|
|
3235
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
3236
|
-
case "ResourceNotFoundException":
|
|
3237
|
-
case "com.amazonaws.frauddetector#ResourceNotFoundException":
|
|
3238
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
3239
|
-
case "ThrottlingException":
|
|
3240
|
-
case "com.amazonaws.frauddetector#ThrottlingException":
|
|
3241
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
3242
|
-
case "ValidationException":
|
|
3243
|
-
case "com.amazonaws.frauddetector#ValidationException":
|
|
3244
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
3245
|
-
default:
|
|
3246
|
-
const parsedBody = parsedOutput.body;
|
|
3247
|
-
return throwDefaultError({
|
|
3248
|
-
output,
|
|
3249
|
-
parsedBody,
|
|
3250
|
-
errorCode
|
|
3251
|
-
});
|
|
3252
|
-
}
|
|
3253
|
-
}, "de_ListTagsForResourceCommandError");
|
|
3254
1669
|
var de_PutDetectorCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
3255
1670
|
if (output.statusCode >= 300) {
|
|
3256
|
-
return
|
|
1671
|
+
return de_CommandError(output, context);
|
|
3257
1672
|
}
|
|
3258
1673
|
const data = await parseBody(output.body, context);
|
|
3259
1674
|
let contents = {};
|
|
@@ -3264,40 +1679,9 @@ var de_PutDetectorCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
3264
1679
|
};
|
|
3265
1680
|
return response;
|
|
3266
1681
|
}, "de_PutDetectorCommand");
|
|
3267
|
-
var de_PutDetectorCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
3268
|
-
const parsedOutput = {
|
|
3269
|
-
...output,
|
|
3270
|
-
body: await parseErrorBody(output.body, context)
|
|
3271
|
-
};
|
|
3272
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3273
|
-
switch (errorCode) {
|
|
3274
|
-
case "AccessDeniedException":
|
|
3275
|
-
case "com.amazonaws.frauddetector#AccessDeniedException":
|
|
3276
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
3277
|
-
case "ConflictException":
|
|
3278
|
-
case "com.amazonaws.frauddetector#ConflictException":
|
|
3279
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
3280
|
-
case "InternalServerException":
|
|
3281
|
-
case "com.amazonaws.frauddetector#InternalServerException":
|
|
3282
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
3283
|
-
case "ThrottlingException":
|
|
3284
|
-
case "com.amazonaws.frauddetector#ThrottlingException":
|
|
3285
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
3286
|
-
case "ValidationException":
|
|
3287
|
-
case "com.amazonaws.frauddetector#ValidationException":
|
|
3288
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
3289
|
-
default:
|
|
3290
|
-
const parsedBody = parsedOutput.body;
|
|
3291
|
-
return throwDefaultError({
|
|
3292
|
-
output,
|
|
3293
|
-
parsedBody,
|
|
3294
|
-
errorCode
|
|
3295
|
-
});
|
|
3296
|
-
}
|
|
3297
|
-
}, "de_PutDetectorCommandError");
|
|
3298
1682
|
var de_PutEntityTypeCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
3299
1683
|
if (output.statusCode >= 300) {
|
|
3300
|
-
return
|
|
1684
|
+
return de_CommandError(output, context);
|
|
3301
1685
|
}
|
|
3302
1686
|
const data = await parseBody(output.body, context);
|
|
3303
1687
|
let contents = {};
|
|
@@ -3308,40 +1692,9 @@ var de_PutEntityTypeCommand = /* @__PURE__ */ __name(async (output, context) =>
|
|
|
3308
1692
|
};
|
|
3309
1693
|
return response;
|
|
3310
1694
|
}, "de_PutEntityTypeCommand");
|
|
3311
|
-
var de_PutEntityTypeCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
3312
|
-
const parsedOutput = {
|
|
3313
|
-
...output,
|
|
3314
|
-
body: await parseErrorBody(output.body, context)
|
|
3315
|
-
};
|
|
3316
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3317
|
-
switch (errorCode) {
|
|
3318
|
-
case "AccessDeniedException":
|
|
3319
|
-
case "com.amazonaws.frauddetector#AccessDeniedException":
|
|
3320
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
3321
|
-
case "ConflictException":
|
|
3322
|
-
case "com.amazonaws.frauddetector#ConflictException":
|
|
3323
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
3324
|
-
case "InternalServerException":
|
|
3325
|
-
case "com.amazonaws.frauddetector#InternalServerException":
|
|
3326
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
3327
|
-
case "ThrottlingException":
|
|
3328
|
-
case "com.amazonaws.frauddetector#ThrottlingException":
|
|
3329
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
3330
|
-
case "ValidationException":
|
|
3331
|
-
case "com.amazonaws.frauddetector#ValidationException":
|
|
3332
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
3333
|
-
default:
|
|
3334
|
-
const parsedBody = parsedOutput.body;
|
|
3335
|
-
return throwDefaultError({
|
|
3336
|
-
output,
|
|
3337
|
-
parsedBody,
|
|
3338
|
-
errorCode
|
|
3339
|
-
});
|
|
3340
|
-
}
|
|
3341
|
-
}, "de_PutEntityTypeCommandError");
|
|
3342
1695
|
var de_PutEventTypeCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
3343
1696
|
if (output.statusCode >= 300) {
|
|
3344
|
-
return
|
|
1697
|
+
return de_CommandError(output, context);
|
|
3345
1698
|
}
|
|
3346
1699
|
const data = await parseBody(output.body, context);
|
|
3347
1700
|
let contents = {};
|
|
@@ -3352,40 +1705,9 @@ var de_PutEventTypeCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
3352
1705
|
};
|
|
3353
1706
|
return response;
|
|
3354
1707
|
}, "de_PutEventTypeCommand");
|
|
3355
|
-
var de_PutEventTypeCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
3356
|
-
const parsedOutput = {
|
|
3357
|
-
...output,
|
|
3358
|
-
body: await parseErrorBody(output.body, context)
|
|
3359
|
-
};
|
|
3360
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3361
|
-
switch (errorCode) {
|
|
3362
|
-
case "AccessDeniedException":
|
|
3363
|
-
case "com.amazonaws.frauddetector#AccessDeniedException":
|
|
3364
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
3365
|
-
case "ConflictException":
|
|
3366
|
-
case "com.amazonaws.frauddetector#ConflictException":
|
|
3367
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
3368
|
-
case "InternalServerException":
|
|
3369
|
-
case "com.amazonaws.frauddetector#InternalServerException":
|
|
3370
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
3371
|
-
case "ThrottlingException":
|
|
3372
|
-
case "com.amazonaws.frauddetector#ThrottlingException":
|
|
3373
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
3374
|
-
case "ValidationException":
|
|
3375
|
-
case "com.amazonaws.frauddetector#ValidationException":
|
|
3376
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
3377
|
-
default:
|
|
3378
|
-
const parsedBody = parsedOutput.body;
|
|
3379
|
-
return throwDefaultError({
|
|
3380
|
-
output,
|
|
3381
|
-
parsedBody,
|
|
3382
|
-
errorCode
|
|
3383
|
-
});
|
|
3384
|
-
}
|
|
3385
|
-
}, "de_PutEventTypeCommandError");
|
|
3386
1708
|
var de_PutExternalModelCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
3387
1709
|
if (output.statusCode >= 300) {
|
|
3388
|
-
return
|
|
1710
|
+
return de_CommandError(output, context);
|
|
3389
1711
|
}
|
|
3390
1712
|
const data = await parseBody(output.body, context);
|
|
3391
1713
|
let contents = {};
|
|
@@ -3396,40 +1718,9 @@ var de_PutExternalModelCommand = /* @__PURE__ */ __name(async (output, context)
|
|
|
3396
1718
|
};
|
|
3397
1719
|
return response;
|
|
3398
1720
|
}, "de_PutExternalModelCommand");
|
|
3399
|
-
var de_PutExternalModelCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
3400
|
-
const parsedOutput = {
|
|
3401
|
-
...output,
|
|
3402
|
-
body: await parseErrorBody(output.body, context)
|
|
3403
|
-
};
|
|
3404
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3405
|
-
switch (errorCode) {
|
|
3406
|
-
case "AccessDeniedException":
|
|
3407
|
-
case "com.amazonaws.frauddetector#AccessDeniedException":
|
|
3408
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
3409
|
-
case "ConflictException":
|
|
3410
|
-
case "com.amazonaws.frauddetector#ConflictException":
|
|
3411
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
3412
|
-
case "InternalServerException":
|
|
3413
|
-
case "com.amazonaws.frauddetector#InternalServerException":
|
|
3414
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
3415
|
-
case "ThrottlingException":
|
|
3416
|
-
case "com.amazonaws.frauddetector#ThrottlingException":
|
|
3417
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
3418
|
-
case "ValidationException":
|
|
3419
|
-
case "com.amazonaws.frauddetector#ValidationException":
|
|
3420
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
3421
|
-
default:
|
|
3422
|
-
const parsedBody = parsedOutput.body;
|
|
3423
|
-
return throwDefaultError({
|
|
3424
|
-
output,
|
|
3425
|
-
parsedBody,
|
|
3426
|
-
errorCode
|
|
3427
|
-
});
|
|
3428
|
-
}
|
|
3429
|
-
}, "de_PutExternalModelCommandError");
|
|
3430
1721
|
var de_PutKMSEncryptionKeyCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
3431
1722
|
if (output.statusCode >= 300) {
|
|
3432
|
-
return
|
|
1723
|
+
return de_CommandError(output, context);
|
|
3433
1724
|
}
|
|
3434
1725
|
const data = await parseBody(output.body, context);
|
|
3435
1726
|
let contents = {};
|
|
@@ -3440,43 +1731,9 @@ var de_PutKMSEncryptionKeyCommand = /* @__PURE__ */ __name(async (output, contex
|
|
|
3440
1731
|
};
|
|
3441
1732
|
return response;
|
|
3442
1733
|
}, "de_PutKMSEncryptionKeyCommand");
|
|
3443
|
-
var de_PutKMSEncryptionKeyCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
3444
|
-
const parsedOutput = {
|
|
3445
|
-
...output,
|
|
3446
|
-
body: await parseErrorBody(output.body, context)
|
|
3447
|
-
};
|
|
3448
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3449
|
-
switch (errorCode) {
|
|
3450
|
-
case "AccessDeniedException":
|
|
3451
|
-
case "com.amazonaws.frauddetector#AccessDeniedException":
|
|
3452
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
3453
|
-
case "ConflictException":
|
|
3454
|
-
case "com.amazonaws.frauddetector#ConflictException":
|
|
3455
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
3456
|
-
case "InternalServerException":
|
|
3457
|
-
case "com.amazonaws.frauddetector#InternalServerException":
|
|
3458
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
3459
|
-
case "ResourceNotFoundException":
|
|
3460
|
-
case "com.amazonaws.frauddetector#ResourceNotFoundException":
|
|
3461
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
3462
|
-
case "ThrottlingException":
|
|
3463
|
-
case "com.amazonaws.frauddetector#ThrottlingException":
|
|
3464
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
3465
|
-
case "ValidationException":
|
|
3466
|
-
case "com.amazonaws.frauddetector#ValidationException":
|
|
3467
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
3468
|
-
default:
|
|
3469
|
-
const parsedBody = parsedOutput.body;
|
|
3470
|
-
return throwDefaultError({
|
|
3471
|
-
output,
|
|
3472
|
-
parsedBody,
|
|
3473
|
-
errorCode
|
|
3474
|
-
});
|
|
3475
|
-
}
|
|
3476
|
-
}, "de_PutKMSEncryptionKeyCommandError");
|
|
3477
1734
|
var de_PutLabelCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
3478
1735
|
if (output.statusCode >= 300) {
|
|
3479
|
-
return
|
|
1736
|
+
return de_CommandError(output, context);
|
|
3480
1737
|
}
|
|
3481
1738
|
const data = await parseBody(output.body, context);
|
|
3482
1739
|
let contents = {};
|
|
@@ -3487,40 +1744,9 @@ var de_PutLabelCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
3487
1744
|
};
|
|
3488
1745
|
return response;
|
|
3489
1746
|
}, "de_PutLabelCommand");
|
|
3490
|
-
var de_PutLabelCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
3491
|
-
const parsedOutput = {
|
|
3492
|
-
...output,
|
|
3493
|
-
body: await parseErrorBody(output.body, context)
|
|
3494
|
-
};
|
|
3495
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3496
|
-
switch (errorCode) {
|
|
3497
|
-
case "AccessDeniedException":
|
|
3498
|
-
case "com.amazonaws.frauddetector#AccessDeniedException":
|
|
3499
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
3500
|
-
case "ConflictException":
|
|
3501
|
-
case "com.amazonaws.frauddetector#ConflictException":
|
|
3502
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
3503
|
-
case "InternalServerException":
|
|
3504
|
-
case "com.amazonaws.frauddetector#InternalServerException":
|
|
3505
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
3506
|
-
case "ThrottlingException":
|
|
3507
|
-
case "com.amazonaws.frauddetector#ThrottlingException":
|
|
3508
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
3509
|
-
case "ValidationException":
|
|
3510
|
-
case "com.amazonaws.frauddetector#ValidationException":
|
|
3511
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
3512
|
-
default:
|
|
3513
|
-
const parsedBody = parsedOutput.body;
|
|
3514
|
-
return throwDefaultError({
|
|
3515
|
-
output,
|
|
3516
|
-
parsedBody,
|
|
3517
|
-
errorCode
|
|
3518
|
-
});
|
|
3519
|
-
}
|
|
3520
|
-
}, "de_PutLabelCommandError");
|
|
3521
1747
|
var de_PutOutcomeCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
3522
1748
|
if (output.statusCode >= 300) {
|
|
3523
|
-
return
|
|
1749
|
+
return de_CommandError(output, context);
|
|
3524
1750
|
}
|
|
3525
1751
|
const data = await parseBody(output.body, context);
|
|
3526
1752
|
let contents = {};
|
|
@@ -3531,40 +1757,9 @@ var de_PutOutcomeCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
3531
1757
|
};
|
|
3532
1758
|
return response;
|
|
3533
1759
|
}, "de_PutOutcomeCommand");
|
|
3534
|
-
var de_PutOutcomeCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
3535
|
-
const parsedOutput = {
|
|
3536
|
-
...output,
|
|
3537
|
-
body: await parseErrorBody(output.body, context)
|
|
3538
|
-
};
|
|
3539
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3540
|
-
switch (errorCode) {
|
|
3541
|
-
case "AccessDeniedException":
|
|
3542
|
-
case "com.amazonaws.frauddetector#AccessDeniedException":
|
|
3543
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
3544
|
-
case "ConflictException":
|
|
3545
|
-
case "com.amazonaws.frauddetector#ConflictException":
|
|
3546
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
3547
|
-
case "InternalServerException":
|
|
3548
|
-
case "com.amazonaws.frauddetector#InternalServerException":
|
|
3549
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
3550
|
-
case "ThrottlingException":
|
|
3551
|
-
case "com.amazonaws.frauddetector#ThrottlingException":
|
|
3552
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
3553
|
-
case "ValidationException":
|
|
3554
|
-
case "com.amazonaws.frauddetector#ValidationException":
|
|
3555
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
3556
|
-
default:
|
|
3557
|
-
const parsedBody = parsedOutput.body;
|
|
3558
|
-
return throwDefaultError({
|
|
3559
|
-
output,
|
|
3560
|
-
parsedBody,
|
|
3561
|
-
errorCode
|
|
3562
|
-
});
|
|
3563
|
-
}
|
|
3564
|
-
}, "de_PutOutcomeCommandError");
|
|
3565
1760
|
var de_SendEventCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
3566
1761
|
if (output.statusCode >= 300) {
|
|
3567
|
-
return
|
|
1762
|
+
return de_CommandError(output, context);
|
|
3568
1763
|
}
|
|
3569
1764
|
const data = await parseBody(output.body, context);
|
|
3570
1765
|
let contents = {};
|
|
@@ -3575,43 +1770,9 @@ var de_SendEventCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
3575
1770
|
};
|
|
3576
1771
|
return response;
|
|
3577
1772
|
}, "de_SendEventCommand");
|
|
3578
|
-
var de_SendEventCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
3579
|
-
const parsedOutput = {
|
|
3580
|
-
...output,
|
|
3581
|
-
body: await parseErrorBody(output.body, context)
|
|
3582
|
-
};
|
|
3583
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3584
|
-
switch (errorCode) {
|
|
3585
|
-
case "AccessDeniedException":
|
|
3586
|
-
case "com.amazonaws.frauddetector#AccessDeniedException":
|
|
3587
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
3588
|
-
case "ConflictException":
|
|
3589
|
-
case "com.amazonaws.frauddetector#ConflictException":
|
|
3590
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
3591
|
-
case "InternalServerException":
|
|
3592
|
-
case "com.amazonaws.frauddetector#InternalServerException":
|
|
3593
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
3594
|
-
case "ResourceNotFoundException":
|
|
3595
|
-
case "com.amazonaws.frauddetector#ResourceNotFoundException":
|
|
3596
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
3597
|
-
case "ThrottlingException":
|
|
3598
|
-
case "com.amazonaws.frauddetector#ThrottlingException":
|
|
3599
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
3600
|
-
case "ValidationException":
|
|
3601
|
-
case "com.amazonaws.frauddetector#ValidationException":
|
|
3602
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
3603
|
-
default:
|
|
3604
|
-
const parsedBody = parsedOutput.body;
|
|
3605
|
-
return throwDefaultError({
|
|
3606
|
-
output,
|
|
3607
|
-
parsedBody,
|
|
3608
|
-
errorCode
|
|
3609
|
-
});
|
|
3610
|
-
}
|
|
3611
|
-
}, "de_SendEventCommandError");
|
|
3612
1773
|
var de_TagResourceCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
3613
1774
|
if (output.statusCode >= 300) {
|
|
3614
|
-
return
|
|
1775
|
+
return de_CommandError(output, context);
|
|
3615
1776
|
}
|
|
3616
1777
|
const data = await parseBody(output.body, context);
|
|
3617
1778
|
let contents = {};
|
|
@@ -3622,37 +1783,9 @@ var de_TagResourceCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
3622
1783
|
};
|
|
3623
1784
|
return response;
|
|
3624
1785
|
}, "de_TagResourceCommand");
|
|
3625
|
-
var de_TagResourceCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
3626
|
-
const parsedOutput = {
|
|
3627
|
-
...output,
|
|
3628
|
-
body: await parseErrorBody(output.body, context)
|
|
3629
|
-
};
|
|
3630
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3631
|
-
switch (errorCode) {
|
|
3632
|
-
case "AccessDeniedException":
|
|
3633
|
-
case "com.amazonaws.frauddetector#AccessDeniedException":
|
|
3634
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
3635
|
-
case "ResourceNotFoundException":
|
|
3636
|
-
case "com.amazonaws.frauddetector#ResourceNotFoundException":
|
|
3637
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
3638
|
-
case "ThrottlingException":
|
|
3639
|
-
case "com.amazonaws.frauddetector#ThrottlingException":
|
|
3640
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
3641
|
-
case "ValidationException":
|
|
3642
|
-
case "com.amazonaws.frauddetector#ValidationException":
|
|
3643
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
3644
|
-
default:
|
|
3645
|
-
const parsedBody = parsedOutput.body;
|
|
3646
|
-
return throwDefaultError({
|
|
3647
|
-
output,
|
|
3648
|
-
parsedBody,
|
|
3649
|
-
errorCode
|
|
3650
|
-
});
|
|
3651
|
-
}
|
|
3652
|
-
}, "de_TagResourceCommandError");
|
|
3653
1786
|
var de_UntagResourceCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
3654
1787
|
if (output.statusCode >= 300) {
|
|
3655
|
-
return
|
|
1788
|
+
return de_CommandError(output, context);
|
|
3656
1789
|
}
|
|
3657
1790
|
const data = await parseBody(output.body, context);
|
|
3658
1791
|
let contents = {};
|
|
@@ -3663,37 +1796,9 @@ var de_UntagResourceCommand = /* @__PURE__ */ __name(async (output, context) =>
|
|
|
3663
1796
|
};
|
|
3664
1797
|
return response;
|
|
3665
1798
|
}, "de_UntagResourceCommand");
|
|
3666
|
-
var de_UntagResourceCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
3667
|
-
const parsedOutput = {
|
|
3668
|
-
...output,
|
|
3669
|
-
body: await parseErrorBody(output.body, context)
|
|
3670
|
-
};
|
|
3671
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3672
|
-
switch (errorCode) {
|
|
3673
|
-
case "AccessDeniedException":
|
|
3674
|
-
case "com.amazonaws.frauddetector#AccessDeniedException":
|
|
3675
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
3676
|
-
case "ResourceNotFoundException":
|
|
3677
|
-
case "com.amazonaws.frauddetector#ResourceNotFoundException":
|
|
3678
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
3679
|
-
case "ThrottlingException":
|
|
3680
|
-
case "com.amazonaws.frauddetector#ThrottlingException":
|
|
3681
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
3682
|
-
case "ValidationException":
|
|
3683
|
-
case "com.amazonaws.frauddetector#ValidationException":
|
|
3684
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
3685
|
-
default:
|
|
3686
|
-
const parsedBody = parsedOutput.body;
|
|
3687
|
-
return throwDefaultError({
|
|
3688
|
-
output,
|
|
3689
|
-
parsedBody,
|
|
3690
|
-
errorCode
|
|
3691
|
-
});
|
|
3692
|
-
}
|
|
3693
|
-
}, "de_UntagResourceCommandError");
|
|
3694
1799
|
var de_UpdateDetectorVersionCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
3695
1800
|
if (output.statusCode >= 300) {
|
|
3696
|
-
return
|
|
1801
|
+
return de_CommandError(output, context);
|
|
3697
1802
|
}
|
|
3698
1803
|
const data = await parseBody(output.body, context);
|
|
3699
1804
|
let contents = {};
|
|
@@ -3704,134 +1809,35 @@ var de_UpdateDetectorVersionCommand = /* @__PURE__ */ __name(async (output, cont
|
|
|
3704
1809
|
};
|
|
3705
1810
|
return response;
|
|
3706
1811
|
}, "de_UpdateDetectorVersionCommand");
|
|
3707
|
-
var de_UpdateDetectorVersionCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
3708
|
-
const parsedOutput = {
|
|
3709
|
-
...output,
|
|
3710
|
-
body: await parseErrorBody(output.body, context)
|
|
3711
|
-
};
|
|
3712
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3713
|
-
switch (errorCode) {
|
|
3714
|
-
case "AccessDeniedException":
|
|
3715
|
-
case "com.amazonaws.frauddetector#AccessDeniedException":
|
|
3716
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
3717
|
-
case "ConflictException":
|
|
3718
|
-
case "com.amazonaws.frauddetector#ConflictException":
|
|
3719
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
3720
|
-
case "InternalServerException":
|
|
3721
|
-
case "com.amazonaws.frauddetector#InternalServerException":
|
|
3722
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
3723
|
-
case "ResourceNotFoundException":
|
|
3724
|
-
case "com.amazonaws.frauddetector#ResourceNotFoundException":
|
|
3725
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
3726
|
-
case "ThrottlingException":
|
|
3727
|
-
case "com.amazonaws.frauddetector#ThrottlingException":
|
|
3728
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
3729
|
-
case "ValidationException":
|
|
3730
|
-
case "com.amazonaws.frauddetector#ValidationException":
|
|
3731
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
3732
|
-
default:
|
|
3733
|
-
const parsedBody = parsedOutput.body;
|
|
3734
|
-
return throwDefaultError({
|
|
3735
|
-
output,
|
|
3736
|
-
parsedBody,
|
|
3737
|
-
errorCode
|
|
3738
|
-
});
|
|
3739
|
-
}
|
|
3740
|
-
}, "de_UpdateDetectorVersionCommandError");
|
|
3741
1812
|
var de_UpdateDetectorVersionMetadataCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
3742
1813
|
if (output.statusCode >= 300) {
|
|
3743
|
-
return
|
|
1814
|
+
return de_CommandError(output, context);
|
|
3744
1815
|
}
|
|
3745
1816
|
const data = await parseBody(output.body, context);
|
|
3746
1817
|
let contents = {};
|
|
3747
1818
|
contents = (0, import_smithy_client._json)(data);
|
|
3748
|
-
const response = {
|
|
3749
|
-
$metadata: deserializeMetadata(output),
|
|
3750
|
-
...contents
|
|
3751
|
-
};
|
|
3752
|
-
return response;
|
|
3753
|
-
}, "de_UpdateDetectorVersionMetadataCommand");
|
|
3754
|
-
var
|
|
3755
|
-
|
|
3756
|
-
|
|
3757
|
-
body: await parseErrorBody(output.body, context)
|
|
3758
|
-
};
|
|
3759
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3760
|
-
switch (errorCode) {
|
|
3761
|
-
case "AccessDeniedException":
|
|
3762
|
-
case "com.amazonaws.frauddetector#AccessDeniedException":
|
|
3763
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
3764
|
-
case "ConflictException":
|
|
3765
|
-
case "com.amazonaws.frauddetector#ConflictException":
|
|
3766
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
3767
|
-
case "InternalServerException":
|
|
3768
|
-
case "com.amazonaws.frauddetector#InternalServerException":
|
|
3769
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
3770
|
-
case "ThrottlingException":
|
|
3771
|
-
case "com.amazonaws.frauddetector#ThrottlingException":
|
|
3772
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
3773
|
-
case "ValidationException":
|
|
3774
|
-
case "com.amazonaws.frauddetector#ValidationException":
|
|
3775
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
3776
|
-
default:
|
|
3777
|
-
const parsedBody = parsedOutput.body;
|
|
3778
|
-
return throwDefaultError({
|
|
3779
|
-
output,
|
|
3780
|
-
parsedBody,
|
|
3781
|
-
errorCode
|
|
3782
|
-
});
|
|
3783
|
-
}
|
|
3784
|
-
}, "de_UpdateDetectorVersionMetadataCommandError");
|
|
3785
|
-
var de_UpdateDetectorVersionStatusCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
3786
|
-
if (output.statusCode >= 300) {
|
|
3787
|
-
return de_UpdateDetectorVersionStatusCommandError(output, context);
|
|
3788
|
-
}
|
|
3789
|
-
const data = await parseBody(output.body, context);
|
|
3790
|
-
let contents = {};
|
|
3791
|
-
contents = (0, import_smithy_client._json)(data);
|
|
3792
|
-
const response = {
|
|
3793
|
-
$metadata: deserializeMetadata(output),
|
|
3794
|
-
...contents
|
|
3795
|
-
};
|
|
3796
|
-
return response;
|
|
3797
|
-
}, "de_UpdateDetectorVersionStatusCommand");
|
|
3798
|
-
var de_UpdateDetectorVersionStatusCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
3799
|
-
const parsedOutput = {
|
|
3800
|
-
...output,
|
|
3801
|
-
body: await parseErrorBody(output.body, context)
|
|
3802
|
-
};
|
|
3803
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3804
|
-
switch (errorCode) {
|
|
3805
|
-
case "AccessDeniedException":
|
|
3806
|
-
case "com.amazonaws.frauddetector#AccessDeniedException":
|
|
3807
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
3808
|
-
case "ConflictException":
|
|
3809
|
-
case "com.amazonaws.frauddetector#ConflictException":
|
|
3810
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
3811
|
-
case "InternalServerException":
|
|
3812
|
-
case "com.amazonaws.frauddetector#InternalServerException":
|
|
3813
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
3814
|
-
case "ResourceNotFoundException":
|
|
3815
|
-
case "com.amazonaws.frauddetector#ResourceNotFoundException":
|
|
3816
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
3817
|
-
case "ThrottlingException":
|
|
3818
|
-
case "com.amazonaws.frauddetector#ThrottlingException":
|
|
3819
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
3820
|
-
case "ValidationException":
|
|
3821
|
-
case "com.amazonaws.frauddetector#ValidationException":
|
|
3822
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
3823
|
-
default:
|
|
3824
|
-
const parsedBody = parsedOutput.body;
|
|
3825
|
-
return throwDefaultError({
|
|
3826
|
-
output,
|
|
3827
|
-
parsedBody,
|
|
3828
|
-
errorCode
|
|
3829
|
-
});
|
|
1819
|
+
const response = {
|
|
1820
|
+
$metadata: deserializeMetadata(output),
|
|
1821
|
+
...contents
|
|
1822
|
+
};
|
|
1823
|
+
return response;
|
|
1824
|
+
}, "de_UpdateDetectorVersionMetadataCommand");
|
|
1825
|
+
var de_UpdateDetectorVersionStatusCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1826
|
+
if (output.statusCode >= 300) {
|
|
1827
|
+
return de_CommandError(output, context);
|
|
3830
1828
|
}
|
|
3831
|
-
|
|
1829
|
+
const data = await parseBody(output.body, context);
|
|
1830
|
+
let contents = {};
|
|
1831
|
+
contents = (0, import_smithy_client._json)(data);
|
|
1832
|
+
const response = {
|
|
1833
|
+
$metadata: deserializeMetadata(output),
|
|
1834
|
+
...contents
|
|
1835
|
+
};
|
|
1836
|
+
return response;
|
|
1837
|
+
}, "de_UpdateDetectorVersionStatusCommand");
|
|
3832
1838
|
var de_UpdateEventLabelCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
3833
1839
|
if (output.statusCode >= 300) {
|
|
3834
|
-
return
|
|
1840
|
+
return de_CommandError(output, context);
|
|
3835
1841
|
}
|
|
3836
1842
|
const data = await parseBody(output.body, context);
|
|
3837
1843
|
let contents = {};
|
|
@@ -3842,43 +1848,9 @@ var de_UpdateEventLabelCommand = /* @__PURE__ */ __name(async (output, context)
|
|
|
3842
1848
|
};
|
|
3843
1849
|
return response;
|
|
3844
1850
|
}, "de_UpdateEventLabelCommand");
|
|
3845
|
-
var de_UpdateEventLabelCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
3846
|
-
const parsedOutput = {
|
|
3847
|
-
...output,
|
|
3848
|
-
body: await parseErrorBody(output.body, context)
|
|
3849
|
-
};
|
|
3850
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3851
|
-
switch (errorCode) {
|
|
3852
|
-
case "AccessDeniedException":
|
|
3853
|
-
case "com.amazonaws.frauddetector#AccessDeniedException":
|
|
3854
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
3855
|
-
case "ConflictException":
|
|
3856
|
-
case "com.amazonaws.frauddetector#ConflictException":
|
|
3857
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
3858
|
-
case "InternalServerException":
|
|
3859
|
-
case "com.amazonaws.frauddetector#InternalServerException":
|
|
3860
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
3861
|
-
case "ResourceNotFoundException":
|
|
3862
|
-
case "com.amazonaws.frauddetector#ResourceNotFoundException":
|
|
3863
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
3864
|
-
case "ThrottlingException":
|
|
3865
|
-
case "com.amazonaws.frauddetector#ThrottlingException":
|
|
3866
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
3867
|
-
case "ValidationException":
|
|
3868
|
-
case "com.amazonaws.frauddetector#ValidationException":
|
|
3869
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
3870
|
-
default:
|
|
3871
|
-
const parsedBody = parsedOutput.body;
|
|
3872
|
-
return throwDefaultError({
|
|
3873
|
-
output,
|
|
3874
|
-
parsedBody,
|
|
3875
|
-
errorCode
|
|
3876
|
-
});
|
|
3877
|
-
}
|
|
3878
|
-
}, "de_UpdateEventLabelCommandError");
|
|
3879
1851
|
var de_UpdateListCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
3880
1852
|
if (output.statusCode >= 300) {
|
|
3881
|
-
return
|
|
1853
|
+
return de_CommandError(output, context);
|
|
3882
1854
|
}
|
|
3883
1855
|
const data = await parseBody(output.body, context);
|
|
3884
1856
|
let contents = {};
|
|
@@ -3889,43 +1861,9 @@ var de_UpdateListCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
3889
1861
|
};
|
|
3890
1862
|
return response;
|
|
3891
1863
|
}, "de_UpdateListCommand");
|
|
3892
|
-
var de_UpdateListCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
3893
|
-
const parsedOutput = {
|
|
3894
|
-
...output,
|
|
3895
|
-
body: await parseErrorBody(output.body, context)
|
|
3896
|
-
};
|
|
3897
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3898
|
-
switch (errorCode) {
|
|
3899
|
-
case "AccessDeniedException":
|
|
3900
|
-
case "com.amazonaws.frauddetector#AccessDeniedException":
|
|
3901
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
3902
|
-
case "ConflictException":
|
|
3903
|
-
case "com.amazonaws.frauddetector#ConflictException":
|
|
3904
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
3905
|
-
case "InternalServerException":
|
|
3906
|
-
case "com.amazonaws.frauddetector#InternalServerException":
|
|
3907
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
3908
|
-
case "ResourceNotFoundException":
|
|
3909
|
-
case "com.amazonaws.frauddetector#ResourceNotFoundException":
|
|
3910
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
3911
|
-
case "ThrottlingException":
|
|
3912
|
-
case "com.amazonaws.frauddetector#ThrottlingException":
|
|
3913
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
3914
|
-
case "ValidationException":
|
|
3915
|
-
case "com.amazonaws.frauddetector#ValidationException":
|
|
3916
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
3917
|
-
default:
|
|
3918
|
-
const parsedBody = parsedOutput.body;
|
|
3919
|
-
return throwDefaultError({
|
|
3920
|
-
output,
|
|
3921
|
-
parsedBody,
|
|
3922
|
-
errorCode
|
|
3923
|
-
});
|
|
3924
|
-
}
|
|
3925
|
-
}, "de_UpdateListCommandError");
|
|
3926
1864
|
var de_UpdateModelCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
3927
1865
|
if (output.statusCode >= 300) {
|
|
3928
|
-
return
|
|
1866
|
+
return de_CommandError(output, context);
|
|
3929
1867
|
}
|
|
3930
1868
|
const data = await parseBody(output.body, context);
|
|
3931
1869
|
let contents = {};
|
|
@@ -3936,43 +1874,9 @@ var de_UpdateModelCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
3936
1874
|
};
|
|
3937
1875
|
return response;
|
|
3938
1876
|
}, "de_UpdateModelCommand");
|
|
3939
|
-
var de_UpdateModelCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
3940
|
-
const parsedOutput = {
|
|
3941
|
-
...output,
|
|
3942
|
-
body: await parseErrorBody(output.body, context)
|
|
3943
|
-
};
|
|
3944
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3945
|
-
switch (errorCode) {
|
|
3946
|
-
case "AccessDeniedException":
|
|
3947
|
-
case "com.amazonaws.frauddetector#AccessDeniedException":
|
|
3948
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
3949
|
-
case "ConflictException":
|
|
3950
|
-
case "com.amazonaws.frauddetector#ConflictException":
|
|
3951
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
3952
|
-
case "InternalServerException":
|
|
3953
|
-
case "com.amazonaws.frauddetector#InternalServerException":
|
|
3954
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
3955
|
-
case "ResourceNotFoundException":
|
|
3956
|
-
case "com.amazonaws.frauddetector#ResourceNotFoundException":
|
|
3957
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
3958
|
-
case "ThrottlingException":
|
|
3959
|
-
case "com.amazonaws.frauddetector#ThrottlingException":
|
|
3960
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
3961
|
-
case "ValidationException":
|
|
3962
|
-
case "com.amazonaws.frauddetector#ValidationException":
|
|
3963
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
3964
|
-
default:
|
|
3965
|
-
const parsedBody = parsedOutput.body;
|
|
3966
|
-
return throwDefaultError({
|
|
3967
|
-
output,
|
|
3968
|
-
parsedBody,
|
|
3969
|
-
errorCode
|
|
3970
|
-
});
|
|
3971
|
-
}
|
|
3972
|
-
}, "de_UpdateModelCommandError");
|
|
3973
1877
|
var de_UpdateModelVersionCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
3974
1878
|
if (output.statusCode >= 300) {
|
|
3975
|
-
return
|
|
1879
|
+
return de_CommandError(output, context);
|
|
3976
1880
|
}
|
|
3977
1881
|
const data = await parseBody(output.body, context);
|
|
3978
1882
|
let contents = {};
|
|
@@ -3983,43 +1887,9 @@ var de_UpdateModelVersionCommand = /* @__PURE__ */ __name(async (output, context
|
|
|
3983
1887
|
};
|
|
3984
1888
|
return response;
|
|
3985
1889
|
}, "de_UpdateModelVersionCommand");
|
|
3986
|
-
var de_UpdateModelVersionCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
3987
|
-
const parsedOutput = {
|
|
3988
|
-
...output,
|
|
3989
|
-
body: await parseErrorBody(output.body, context)
|
|
3990
|
-
};
|
|
3991
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3992
|
-
switch (errorCode) {
|
|
3993
|
-
case "AccessDeniedException":
|
|
3994
|
-
case "com.amazonaws.frauddetector#AccessDeniedException":
|
|
3995
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
3996
|
-
case "ConflictException":
|
|
3997
|
-
case "com.amazonaws.frauddetector#ConflictException":
|
|
3998
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
3999
|
-
case "InternalServerException":
|
|
4000
|
-
case "com.amazonaws.frauddetector#InternalServerException":
|
|
4001
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
4002
|
-
case "ResourceNotFoundException":
|
|
4003
|
-
case "com.amazonaws.frauddetector#ResourceNotFoundException":
|
|
4004
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
4005
|
-
case "ThrottlingException":
|
|
4006
|
-
case "com.amazonaws.frauddetector#ThrottlingException":
|
|
4007
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
4008
|
-
case "ValidationException":
|
|
4009
|
-
case "com.amazonaws.frauddetector#ValidationException":
|
|
4010
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
4011
|
-
default:
|
|
4012
|
-
const parsedBody = parsedOutput.body;
|
|
4013
|
-
return throwDefaultError({
|
|
4014
|
-
output,
|
|
4015
|
-
parsedBody,
|
|
4016
|
-
errorCode
|
|
4017
|
-
});
|
|
4018
|
-
}
|
|
4019
|
-
}, "de_UpdateModelVersionCommandError");
|
|
4020
1890
|
var de_UpdateModelVersionStatusCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
4021
1891
|
if (output.statusCode >= 300) {
|
|
4022
|
-
return
|
|
1892
|
+
return de_CommandError(output, context);
|
|
4023
1893
|
}
|
|
4024
1894
|
const data = await parseBody(output.body, context);
|
|
4025
1895
|
let contents = {};
|
|
@@ -4030,43 +1900,9 @@ var de_UpdateModelVersionStatusCommand = /* @__PURE__ */ __name(async (output, c
|
|
|
4030
1900
|
};
|
|
4031
1901
|
return response;
|
|
4032
1902
|
}, "de_UpdateModelVersionStatusCommand");
|
|
4033
|
-
var de_UpdateModelVersionStatusCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
4034
|
-
const parsedOutput = {
|
|
4035
|
-
...output,
|
|
4036
|
-
body: await parseErrorBody(output.body, context)
|
|
4037
|
-
};
|
|
4038
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4039
|
-
switch (errorCode) {
|
|
4040
|
-
case "AccessDeniedException":
|
|
4041
|
-
case "com.amazonaws.frauddetector#AccessDeniedException":
|
|
4042
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
4043
|
-
case "ConflictException":
|
|
4044
|
-
case "com.amazonaws.frauddetector#ConflictException":
|
|
4045
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
4046
|
-
case "InternalServerException":
|
|
4047
|
-
case "com.amazonaws.frauddetector#InternalServerException":
|
|
4048
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
4049
|
-
case "ResourceNotFoundException":
|
|
4050
|
-
case "com.amazonaws.frauddetector#ResourceNotFoundException":
|
|
4051
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
4052
|
-
case "ThrottlingException":
|
|
4053
|
-
case "com.amazonaws.frauddetector#ThrottlingException":
|
|
4054
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
4055
|
-
case "ValidationException":
|
|
4056
|
-
case "com.amazonaws.frauddetector#ValidationException":
|
|
4057
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
4058
|
-
default:
|
|
4059
|
-
const parsedBody = parsedOutput.body;
|
|
4060
|
-
return throwDefaultError({
|
|
4061
|
-
output,
|
|
4062
|
-
parsedBody,
|
|
4063
|
-
errorCode
|
|
4064
|
-
});
|
|
4065
|
-
}
|
|
4066
|
-
}, "de_UpdateModelVersionStatusCommandError");
|
|
4067
1903
|
var de_UpdateRuleMetadataCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
4068
1904
|
if (output.statusCode >= 300) {
|
|
4069
|
-
return
|
|
1905
|
+
return de_CommandError(output, context);
|
|
4070
1906
|
}
|
|
4071
1907
|
const data = await parseBody(output.body, context);
|
|
4072
1908
|
let contents = {};
|
|
@@ -4077,43 +1913,9 @@ var de_UpdateRuleMetadataCommand = /* @__PURE__ */ __name(async (output, context
|
|
|
4077
1913
|
};
|
|
4078
1914
|
return response;
|
|
4079
1915
|
}, "de_UpdateRuleMetadataCommand");
|
|
4080
|
-
var de_UpdateRuleMetadataCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
4081
|
-
const parsedOutput = {
|
|
4082
|
-
...output,
|
|
4083
|
-
body: await parseErrorBody(output.body, context)
|
|
4084
|
-
};
|
|
4085
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4086
|
-
switch (errorCode) {
|
|
4087
|
-
case "AccessDeniedException":
|
|
4088
|
-
case "com.amazonaws.frauddetector#AccessDeniedException":
|
|
4089
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
4090
|
-
case "ConflictException":
|
|
4091
|
-
case "com.amazonaws.frauddetector#ConflictException":
|
|
4092
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
4093
|
-
case "InternalServerException":
|
|
4094
|
-
case "com.amazonaws.frauddetector#InternalServerException":
|
|
4095
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
4096
|
-
case "ResourceNotFoundException":
|
|
4097
|
-
case "com.amazonaws.frauddetector#ResourceNotFoundException":
|
|
4098
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
4099
|
-
case "ThrottlingException":
|
|
4100
|
-
case "com.amazonaws.frauddetector#ThrottlingException":
|
|
4101
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
4102
|
-
case "ValidationException":
|
|
4103
|
-
case "com.amazonaws.frauddetector#ValidationException":
|
|
4104
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
4105
|
-
default:
|
|
4106
|
-
const parsedBody = parsedOutput.body;
|
|
4107
|
-
return throwDefaultError({
|
|
4108
|
-
output,
|
|
4109
|
-
parsedBody,
|
|
4110
|
-
errorCode
|
|
4111
|
-
});
|
|
4112
|
-
}
|
|
4113
|
-
}, "de_UpdateRuleMetadataCommandError");
|
|
4114
1916
|
var de_UpdateRuleVersionCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
4115
1917
|
if (output.statusCode >= 300) {
|
|
4116
|
-
return
|
|
1918
|
+
return de_CommandError(output, context);
|
|
4117
1919
|
}
|
|
4118
1920
|
const data = await parseBody(output.body, context);
|
|
4119
1921
|
let contents = {};
|
|
@@ -4124,43 +1926,9 @@ var de_UpdateRuleVersionCommand = /* @__PURE__ */ __name(async (output, context)
|
|
|
4124
1926
|
};
|
|
4125
1927
|
return response;
|
|
4126
1928
|
}, "de_UpdateRuleVersionCommand");
|
|
4127
|
-
var de_UpdateRuleVersionCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
4128
|
-
const parsedOutput = {
|
|
4129
|
-
...output,
|
|
4130
|
-
body: await parseErrorBody(output.body, context)
|
|
4131
|
-
};
|
|
4132
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4133
|
-
switch (errorCode) {
|
|
4134
|
-
case "AccessDeniedException":
|
|
4135
|
-
case "com.amazonaws.frauddetector#AccessDeniedException":
|
|
4136
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
4137
|
-
case "ConflictException":
|
|
4138
|
-
case "com.amazonaws.frauddetector#ConflictException":
|
|
4139
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
4140
|
-
case "InternalServerException":
|
|
4141
|
-
case "com.amazonaws.frauddetector#InternalServerException":
|
|
4142
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
4143
|
-
case "ResourceNotFoundException":
|
|
4144
|
-
case "com.amazonaws.frauddetector#ResourceNotFoundException":
|
|
4145
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
4146
|
-
case "ThrottlingException":
|
|
4147
|
-
case "com.amazonaws.frauddetector#ThrottlingException":
|
|
4148
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
4149
|
-
case "ValidationException":
|
|
4150
|
-
case "com.amazonaws.frauddetector#ValidationException":
|
|
4151
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
4152
|
-
default:
|
|
4153
|
-
const parsedBody = parsedOutput.body;
|
|
4154
|
-
return throwDefaultError({
|
|
4155
|
-
output,
|
|
4156
|
-
parsedBody,
|
|
4157
|
-
errorCode
|
|
4158
|
-
});
|
|
4159
|
-
}
|
|
4160
|
-
}, "de_UpdateRuleVersionCommandError");
|
|
4161
1929
|
var de_UpdateVariableCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
4162
1930
|
if (output.statusCode >= 300) {
|
|
4163
|
-
return
|
|
1931
|
+
return de_CommandError(output, context);
|
|
4164
1932
|
}
|
|
4165
1933
|
const data = await parseBody(output.body, context);
|
|
4166
1934
|
let contents = {};
|
|
@@ -4171,7 +1939,7 @@ var de_UpdateVariableCommand = /* @__PURE__ */ __name(async (output, context) =>
|
|
|
4171
1939
|
};
|
|
4172
1940
|
return response;
|
|
4173
1941
|
}, "de_UpdateVariableCommand");
|
|
4174
|
-
var
|
|
1942
|
+
var de_CommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
4175
1943
|
const parsedOutput = {
|
|
4176
1944
|
...output,
|
|
4177
1945
|
body: await parseErrorBody(output.body, context)
|
|
@@ -4181,21 +1949,24 @@ var de_UpdateVariableCommandError = /* @__PURE__ */ __name(async (output, contex
|
|
|
4181
1949
|
case "AccessDeniedException":
|
|
4182
1950
|
case "com.amazonaws.frauddetector#AccessDeniedException":
|
|
4183
1951
|
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
4184
|
-
case "ConflictException":
|
|
4185
|
-
case "com.amazonaws.frauddetector#ConflictException":
|
|
4186
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
4187
1952
|
case "InternalServerException":
|
|
4188
1953
|
case "com.amazonaws.frauddetector#InternalServerException":
|
|
4189
1954
|
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
4190
|
-
case "ResourceNotFoundException":
|
|
4191
|
-
case "com.amazonaws.frauddetector#ResourceNotFoundException":
|
|
4192
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
4193
1955
|
case "ThrottlingException":
|
|
4194
1956
|
case "com.amazonaws.frauddetector#ThrottlingException":
|
|
4195
1957
|
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
4196
1958
|
case "ValidationException":
|
|
4197
1959
|
case "com.amazonaws.frauddetector#ValidationException":
|
|
4198
1960
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1961
|
+
case "ResourceNotFoundException":
|
|
1962
|
+
case "com.amazonaws.frauddetector#ResourceNotFoundException":
|
|
1963
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1964
|
+
case "ConflictException":
|
|
1965
|
+
case "com.amazonaws.frauddetector#ConflictException":
|
|
1966
|
+
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1967
|
+
case "ResourceUnavailableException":
|
|
1968
|
+
case "com.amazonaws.frauddetector#ResourceUnavailableException":
|
|
1969
|
+
throw await de_ResourceUnavailableExceptionRes(parsedOutput, context);
|
|
4199
1970
|
default:
|
|
4200
1971
|
const parsedBody = parsedOutput.body;
|
|
4201
1972
|
return throwDefaultError({
|
|
@@ -4204,7 +1975,7 @@ var de_UpdateVariableCommandError = /* @__PURE__ */ __name(async (output, contex
|
|
|
4204
1975
|
errorCode
|
|
4205
1976
|
});
|
|
4206
1977
|
}
|
|
4207
|
-
}, "
|
|
1978
|
+
}, "de_CommandError");
|
|
4208
1979
|
var de_AccessDeniedExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
|
|
4209
1980
|
const body = parsedOutput.body;
|
|
4210
1981
|
const deserialized = (0, import_smithy_client._json)(body);
|