@aws-sdk/client-frauddetector 3.525.0 → 3.529.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 +76 -116
- package/dist-es/protocols/Aws_json1_1.js +1 -40
- package/package.json +4 -4
package/dist-cjs/index.js
CHANGED
|
@@ -311,6 +311,7 @@ var import_middleware_serde = require("@smithy/middleware-serde");
|
|
|
311
311
|
var import_types = require("@smithy/types");
|
|
312
312
|
|
|
313
313
|
// src/protocols/Aws_json1_1.ts
|
|
314
|
+
var import_core2 = require("@aws-sdk/core");
|
|
314
315
|
|
|
315
316
|
|
|
316
317
|
|
|
@@ -1052,7 +1053,7 @@ var de_BatchCreateVariableCommand = /* @__PURE__ */ __name(async (output, contex
|
|
|
1052
1053
|
if (output.statusCode >= 300) {
|
|
1053
1054
|
return de_CommandError(output, context);
|
|
1054
1055
|
}
|
|
1055
|
-
const data = await
|
|
1056
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
1056
1057
|
let contents = {};
|
|
1057
1058
|
contents = (0, import_smithy_client._json)(data);
|
|
1058
1059
|
const response = {
|
|
@@ -1065,7 +1066,7 @@ var de_BatchGetVariableCommand = /* @__PURE__ */ __name(async (output, context)
|
|
|
1065
1066
|
if (output.statusCode >= 300) {
|
|
1066
1067
|
return de_CommandError(output, context);
|
|
1067
1068
|
}
|
|
1068
|
-
const data = await
|
|
1069
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
1069
1070
|
let contents = {};
|
|
1070
1071
|
contents = (0, import_smithy_client._json)(data);
|
|
1071
1072
|
const response = {
|
|
@@ -1078,7 +1079,7 @@ var de_CancelBatchImportJobCommand = /* @__PURE__ */ __name(async (output, conte
|
|
|
1078
1079
|
if (output.statusCode >= 300) {
|
|
1079
1080
|
return de_CommandError(output, context);
|
|
1080
1081
|
}
|
|
1081
|
-
const data = await
|
|
1082
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
1082
1083
|
let contents = {};
|
|
1083
1084
|
contents = (0, import_smithy_client._json)(data);
|
|
1084
1085
|
const response = {
|
|
@@ -1091,7 +1092,7 @@ var de_CancelBatchPredictionJobCommand = /* @__PURE__ */ __name(async (output, c
|
|
|
1091
1092
|
if (output.statusCode >= 300) {
|
|
1092
1093
|
return de_CommandError(output, context);
|
|
1093
1094
|
}
|
|
1094
|
-
const data = await
|
|
1095
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
1095
1096
|
let contents = {};
|
|
1096
1097
|
contents = (0, import_smithy_client._json)(data);
|
|
1097
1098
|
const response = {
|
|
@@ -1104,7 +1105,7 @@ var de_CreateBatchImportJobCommand = /* @__PURE__ */ __name(async (output, conte
|
|
|
1104
1105
|
if (output.statusCode >= 300) {
|
|
1105
1106
|
return de_CommandError(output, context);
|
|
1106
1107
|
}
|
|
1107
|
-
const data = await
|
|
1108
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
1108
1109
|
let contents = {};
|
|
1109
1110
|
contents = (0, import_smithy_client._json)(data);
|
|
1110
1111
|
const response = {
|
|
@@ -1117,7 +1118,7 @@ var de_CreateBatchPredictionJobCommand = /* @__PURE__ */ __name(async (output, c
|
|
|
1117
1118
|
if (output.statusCode >= 300) {
|
|
1118
1119
|
return de_CommandError(output, context);
|
|
1119
1120
|
}
|
|
1120
|
-
const data = await
|
|
1121
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
1121
1122
|
let contents = {};
|
|
1122
1123
|
contents = (0, import_smithy_client._json)(data);
|
|
1123
1124
|
const response = {
|
|
@@ -1130,7 +1131,7 @@ var de_CreateDetectorVersionCommand = /* @__PURE__ */ __name(async (output, cont
|
|
|
1130
1131
|
if (output.statusCode >= 300) {
|
|
1131
1132
|
return de_CommandError(output, context);
|
|
1132
1133
|
}
|
|
1133
|
-
const data = await
|
|
1134
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
1134
1135
|
let contents = {};
|
|
1135
1136
|
contents = (0, import_smithy_client._json)(data);
|
|
1136
1137
|
const response = {
|
|
@@ -1143,7 +1144,7 @@ var de_CreateListCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
1143
1144
|
if (output.statusCode >= 300) {
|
|
1144
1145
|
return de_CommandError(output, context);
|
|
1145
1146
|
}
|
|
1146
|
-
const data = await
|
|
1147
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
1147
1148
|
let contents = {};
|
|
1148
1149
|
contents = (0, import_smithy_client._json)(data);
|
|
1149
1150
|
const response = {
|
|
@@ -1156,7 +1157,7 @@ var de_CreateModelCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
1156
1157
|
if (output.statusCode >= 300) {
|
|
1157
1158
|
return de_CommandError(output, context);
|
|
1158
1159
|
}
|
|
1159
|
-
const data = await
|
|
1160
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
1160
1161
|
let contents = {};
|
|
1161
1162
|
contents = (0, import_smithy_client._json)(data);
|
|
1162
1163
|
const response = {
|
|
@@ -1169,7 +1170,7 @@ var de_CreateModelVersionCommand = /* @__PURE__ */ __name(async (output, context
|
|
|
1169
1170
|
if (output.statusCode >= 300) {
|
|
1170
1171
|
return de_CommandError(output, context);
|
|
1171
1172
|
}
|
|
1172
|
-
const data = await
|
|
1173
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
1173
1174
|
let contents = {};
|
|
1174
1175
|
contents = (0, import_smithy_client._json)(data);
|
|
1175
1176
|
const response = {
|
|
@@ -1182,7 +1183,7 @@ var de_CreateRuleCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
1182
1183
|
if (output.statusCode >= 300) {
|
|
1183
1184
|
return de_CommandError(output, context);
|
|
1184
1185
|
}
|
|
1185
|
-
const data = await
|
|
1186
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
1186
1187
|
let contents = {};
|
|
1187
1188
|
contents = (0, import_smithy_client._json)(data);
|
|
1188
1189
|
const response = {
|
|
@@ -1195,7 +1196,7 @@ var de_CreateVariableCommand = /* @__PURE__ */ __name(async (output, context) =>
|
|
|
1195
1196
|
if (output.statusCode >= 300) {
|
|
1196
1197
|
return de_CommandError(output, context);
|
|
1197
1198
|
}
|
|
1198
|
-
const data = await
|
|
1199
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
1199
1200
|
let contents = {};
|
|
1200
1201
|
contents = (0, import_smithy_client._json)(data);
|
|
1201
1202
|
const response = {
|
|
@@ -1208,7 +1209,7 @@ var de_DeleteBatchImportJobCommand = /* @__PURE__ */ __name(async (output, conte
|
|
|
1208
1209
|
if (output.statusCode >= 300) {
|
|
1209
1210
|
return de_CommandError(output, context);
|
|
1210
1211
|
}
|
|
1211
|
-
const data = await
|
|
1212
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
1212
1213
|
let contents = {};
|
|
1213
1214
|
contents = (0, import_smithy_client._json)(data);
|
|
1214
1215
|
const response = {
|
|
@@ -1221,7 +1222,7 @@ var de_DeleteBatchPredictionJobCommand = /* @__PURE__ */ __name(async (output, c
|
|
|
1221
1222
|
if (output.statusCode >= 300) {
|
|
1222
1223
|
return de_CommandError(output, context);
|
|
1223
1224
|
}
|
|
1224
|
-
const data = await
|
|
1225
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
1225
1226
|
let contents = {};
|
|
1226
1227
|
contents = (0, import_smithy_client._json)(data);
|
|
1227
1228
|
const response = {
|
|
@@ -1234,7 +1235,7 @@ var de_DeleteDetectorCommand = /* @__PURE__ */ __name(async (output, context) =>
|
|
|
1234
1235
|
if (output.statusCode >= 300) {
|
|
1235
1236
|
return de_CommandError(output, context);
|
|
1236
1237
|
}
|
|
1237
|
-
const data = await
|
|
1238
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
1238
1239
|
let contents = {};
|
|
1239
1240
|
contents = (0, import_smithy_client._json)(data);
|
|
1240
1241
|
const response = {
|
|
@@ -1247,7 +1248,7 @@ var de_DeleteDetectorVersionCommand = /* @__PURE__ */ __name(async (output, cont
|
|
|
1247
1248
|
if (output.statusCode >= 300) {
|
|
1248
1249
|
return de_CommandError(output, context);
|
|
1249
1250
|
}
|
|
1250
|
-
const data = await
|
|
1251
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
1251
1252
|
let contents = {};
|
|
1252
1253
|
contents = (0, import_smithy_client._json)(data);
|
|
1253
1254
|
const response = {
|
|
@@ -1260,7 +1261,7 @@ var de_DeleteEntityTypeCommand = /* @__PURE__ */ __name(async (output, context)
|
|
|
1260
1261
|
if (output.statusCode >= 300) {
|
|
1261
1262
|
return de_CommandError(output, context);
|
|
1262
1263
|
}
|
|
1263
|
-
const data = await
|
|
1264
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
1264
1265
|
let contents = {};
|
|
1265
1266
|
contents = (0, import_smithy_client._json)(data);
|
|
1266
1267
|
const response = {
|
|
@@ -1273,7 +1274,7 @@ var de_DeleteEventCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
1273
1274
|
if (output.statusCode >= 300) {
|
|
1274
1275
|
return de_CommandError(output, context);
|
|
1275
1276
|
}
|
|
1276
|
-
const data = await
|
|
1277
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
1277
1278
|
let contents = {};
|
|
1278
1279
|
contents = (0, import_smithy_client._json)(data);
|
|
1279
1280
|
const response = {
|
|
@@ -1286,7 +1287,7 @@ var de_DeleteEventsByEventTypeCommand = /* @__PURE__ */ __name(async (output, co
|
|
|
1286
1287
|
if (output.statusCode >= 300) {
|
|
1287
1288
|
return de_CommandError(output, context);
|
|
1288
1289
|
}
|
|
1289
|
-
const data = await
|
|
1290
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
1290
1291
|
let contents = {};
|
|
1291
1292
|
contents = (0, import_smithy_client._json)(data);
|
|
1292
1293
|
const response = {
|
|
@@ -1299,7 +1300,7 @@ var de_DeleteEventTypeCommand = /* @__PURE__ */ __name(async (output, context) =
|
|
|
1299
1300
|
if (output.statusCode >= 300) {
|
|
1300
1301
|
return de_CommandError(output, context);
|
|
1301
1302
|
}
|
|
1302
|
-
const data = await
|
|
1303
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
1303
1304
|
let contents = {};
|
|
1304
1305
|
contents = (0, import_smithy_client._json)(data);
|
|
1305
1306
|
const response = {
|
|
@@ -1312,7 +1313,7 @@ var de_DeleteExternalModelCommand = /* @__PURE__ */ __name(async (output, contex
|
|
|
1312
1313
|
if (output.statusCode >= 300) {
|
|
1313
1314
|
return de_CommandError(output, context);
|
|
1314
1315
|
}
|
|
1315
|
-
const data = await
|
|
1316
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
1316
1317
|
let contents = {};
|
|
1317
1318
|
contents = (0, import_smithy_client._json)(data);
|
|
1318
1319
|
const response = {
|
|
@@ -1325,7 +1326,7 @@ var de_DeleteLabelCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
1325
1326
|
if (output.statusCode >= 300) {
|
|
1326
1327
|
return de_CommandError(output, context);
|
|
1327
1328
|
}
|
|
1328
|
-
const data = await
|
|
1329
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
1329
1330
|
let contents = {};
|
|
1330
1331
|
contents = (0, import_smithy_client._json)(data);
|
|
1331
1332
|
const response = {
|
|
@@ -1338,7 +1339,7 @@ var de_DeleteListCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
1338
1339
|
if (output.statusCode >= 300) {
|
|
1339
1340
|
return de_CommandError(output, context);
|
|
1340
1341
|
}
|
|
1341
|
-
const data = await
|
|
1342
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
1342
1343
|
let contents = {};
|
|
1343
1344
|
contents = (0, import_smithy_client._json)(data);
|
|
1344
1345
|
const response = {
|
|
@@ -1351,7 +1352,7 @@ var de_DeleteModelCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
1351
1352
|
if (output.statusCode >= 300) {
|
|
1352
1353
|
return de_CommandError(output, context);
|
|
1353
1354
|
}
|
|
1354
|
-
const data = await
|
|
1355
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
1355
1356
|
let contents = {};
|
|
1356
1357
|
contents = (0, import_smithy_client._json)(data);
|
|
1357
1358
|
const response = {
|
|
@@ -1364,7 +1365,7 @@ var de_DeleteModelVersionCommand = /* @__PURE__ */ __name(async (output, context
|
|
|
1364
1365
|
if (output.statusCode >= 300) {
|
|
1365
1366
|
return de_CommandError(output, context);
|
|
1366
1367
|
}
|
|
1367
|
-
const data = await
|
|
1368
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
1368
1369
|
let contents = {};
|
|
1369
1370
|
contents = (0, import_smithy_client._json)(data);
|
|
1370
1371
|
const response = {
|
|
@@ -1377,7 +1378,7 @@ var de_DeleteOutcomeCommand = /* @__PURE__ */ __name(async (output, context) =>
|
|
|
1377
1378
|
if (output.statusCode >= 300) {
|
|
1378
1379
|
return de_CommandError(output, context);
|
|
1379
1380
|
}
|
|
1380
|
-
const data = await
|
|
1381
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
1381
1382
|
let contents = {};
|
|
1382
1383
|
contents = (0, import_smithy_client._json)(data);
|
|
1383
1384
|
const response = {
|
|
@@ -1390,7 +1391,7 @@ var de_DeleteRuleCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
1390
1391
|
if (output.statusCode >= 300) {
|
|
1391
1392
|
return de_CommandError(output, context);
|
|
1392
1393
|
}
|
|
1393
|
-
const data = await
|
|
1394
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
1394
1395
|
let contents = {};
|
|
1395
1396
|
contents = (0, import_smithy_client._json)(data);
|
|
1396
1397
|
const response = {
|
|
@@ -1403,7 +1404,7 @@ var de_DeleteVariableCommand = /* @__PURE__ */ __name(async (output, context) =>
|
|
|
1403
1404
|
if (output.statusCode >= 300) {
|
|
1404
1405
|
return de_CommandError(output, context);
|
|
1405
1406
|
}
|
|
1406
|
-
const data = await
|
|
1407
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
1407
1408
|
let contents = {};
|
|
1408
1409
|
contents = (0, import_smithy_client._json)(data);
|
|
1409
1410
|
const response = {
|
|
@@ -1416,7 +1417,7 @@ var de_DescribeDetectorCommand = /* @__PURE__ */ __name(async (output, context)
|
|
|
1416
1417
|
if (output.statusCode >= 300) {
|
|
1417
1418
|
return de_CommandError(output, context);
|
|
1418
1419
|
}
|
|
1419
|
-
const data = await
|
|
1420
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
1420
1421
|
let contents = {};
|
|
1421
1422
|
contents = (0, import_smithy_client._json)(data);
|
|
1422
1423
|
const response = {
|
|
@@ -1429,7 +1430,7 @@ var de_DescribeModelVersionsCommand = /* @__PURE__ */ __name(async (output, cont
|
|
|
1429
1430
|
if (output.statusCode >= 300) {
|
|
1430
1431
|
return de_CommandError(output, context);
|
|
1431
1432
|
}
|
|
1432
|
-
const data = await
|
|
1433
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
1433
1434
|
let contents = {};
|
|
1434
1435
|
contents = de_DescribeModelVersionsResult(data, context);
|
|
1435
1436
|
const response = {
|
|
@@ -1442,7 +1443,7 @@ var de_GetBatchImportJobsCommand = /* @__PURE__ */ __name(async (output, context
|
|
|
1442
1443
|
if (output.statusCode >= 300) {
|
|
1443
1444
|
return de_CommandError(output, context);
|
|
1444
1445
|
}
|
|
1445
|
-
const data = await
|
|
1446
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
1446
1447
|
let contents = {};
|
|
1447
1448
|
contents = (0, import_smithy_client._json)(data);
|
|
1448
1449
|
const response = {
|
|
@@ -1455,7 +1456,7 @@ var de_GetBatchPredictionJobsCommand = /* @__PURE__ */ __name(async (output, con
|
|
|
1455
1456
|
if (output.statusCode >= 300) {
|
|
1456
1457
|
return de_CommandError(output, context);
|
|
1457
1458
|
}
|
|
1458
|
-
const data = await
|
|
1459
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
1459
1460
|
let contents = {};
|
|
1460
1461
|
contents = (0, import_smithy_client._json)(data);
|
|
1461
1462
|
const response = {
|
|
@@ -1468,7 +1469,7 @@ var de_GetDeleteEventsByEventTypeStatusCommand = /* @__PURE__ */ __name(async (o
|
|
|
1468
1469
|
if (output.statusCode >= 300) {
|
|
1469
1470
|
return de_CommandError(output, context);
|
|
1470
1471
|
}
|
|
1471
|
-
const data = await
|
|
1472
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
1472
1473
|
let contents = {};
|
|
1473
1474
|
contents = (0, import_smithy_client._json)(data);
|
|
1474
1475
|
const response = {
|
|
@@ -1481,7 +1482,7 @@ var de_GetDetectorsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
1481
1482
|
if (output.statusCode >= 300) {
|
|
1482
1483
|
return de_CommandError(output, context);
|
|
1483
1484
|
}
|
|
1484
|
-
const data = await
|
|
1485
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
1485
1486
|
let contents = {};
|
|
1486
1487
|
contents = (0, import_smithy_client._json)(data);
|
|
1487
1488
|
const response = {
|
|
@@ -1494,7 +1495,7 @@ var de_GetDetectorVersionCommand = /* @__PURE__ */ __name(async (output, context
|
|
|
1494
1495
|
if (output.statusCode >= 300) {
|
|
1495
1496
|
return de_CommandError(output, context);
|
|
1496
1497
|
}
|
|
1497
|
-
const data = await
|
|
1498
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
1498
1499
|
let contents = {};
|
|
1499
1500
|
contents = (0, import_smithy_client._json)(data);
|
|
1500
1501
|
const response = {
|
|
@@ -1507,7 +1508,7 @@ var de_GetEntityTypesCommand = /* @__PURE__ */ __name(async (output, context) =>
|
|
|
1507
1508
|
if (output.statusCode >= 300) {
|
|
1508
1509
|
return de_CommandError(output, context);
|
|
1509
1510
|
}
|
|
1510
|
-
const data = await
|
|
1511
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
1511
1512
|
let contents = {};
|
|
1512
1513
|
contents = (0, import_smithy_client._json)(data);
|
|
1513
1514
|
const response = {
|
|
@@ -1520,7 +1521,7 @@ var de_GetEventCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
1520
1521
|
if (output.statusCode >= 300) {
|
|
1521
1522
|
return de_CommandError(output, context);
|
|
1522
1523
|
}
|
|
1523
|
-
const data = await
|
|
1524
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
1524
1525
|
let contents = {};
|
|
1525
1526
|
contents = (0, import_smithy_client._json)(data);
|
|
1526
1527
|
const response = {
|
|
@@ -1533,7 +1534,7 @@ var de_GetEventPredictionCommand = /* @__PURE__ */ __name(async (output, context
|
|
|
1533
1534
|
if (output.statusCode >= 300) {
|
|
1534
1535
|
return de_CommandError(output, context);
|
|
1535
1536
|
}
|
|
1536
|
-
const data = await
|
|
1537
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
1537
1538
|
let contents = {};
|
|
1538
1539
|
contents = de_GetEventPredictionResult(data, context);
|
|
1539
1540
|
const response = {
|
|
@@ -1546,7 +1547,7 @@ var de_GetEventPredictionMetadataCommand = /* @__PURE__ */ __name(async (output,
|
|
|
1546
1547
|
if (output.statusCode >= 300) {
|
|
1547
1548
|
return de_CommandError(output, context);
|
|
1548
1549
|
}
|
|
1549
|
-
const data = await
|
|
1550
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
1550
1551
|
let contents = {};
|
|
1551
1552
|
contents = de_GetEventPredictionMetadataResult(data, context);
|
|
1552
1553
|
const response = {
|
|
@@ -1559,7 +1560,7 @@ var de_GetEventTypesCommand = /* @__PURE__ */ __name(async (output, context) =>
|
|
|
1559
1560
|
if (output.statusCode >= 300) {
|
|
1560
1561
|
return de_CommandError(output, context);
|
|
1561
1562
|
}
|
|
1562
|
-
const data = await
|
|
1563
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
1563
1564
|
let contents = {};
|
|
1564
1565
|
contents = (0, import_smithy_client._json)(data);
|
|
1565
1566
|
const response = {
|
|
@@ -1572,7 +1573,7 @@ var de_GetExternalModelsCommand = /* @__PURE__ */ __name(async (output, context)
|
|
|
1572
1573
|
if (output.statusCode >= 300) {
|
|
1573
1574
|
return de_CommandError(output, context);
|
|
1574
1575
|
}
|
|
1575
|
-
const data = await
|
|
1576
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
1576
1577
|
let contents = {};
|
|
1577
1578
|
contents = (0, import_smithy_client._json)(data);
|
|
1578
1579
|
const response = {
|
|
@@ -1585,7 +1586,7 @@ var de_GetKMSEncryptionKeyCommand = /* @__PURE__ */ __name(async (output, contex
|
|
|
1585
1586
|
if (output.statusCode >= 300) {
|
|
1586
1587
|
return de_CommandError(output, context);
|
|
1587
1588
|
}
|
|
1588
|
-
const data = await
|
|
1589
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
1589
1590
|
let contents = {};
|
|
1590
1591
|
contents = (0, import_smithy_client._json)(data);
|
|
1591
1592
|
const response = {
|
|
@@ -1598,7 +1599,7 @@ var de_GetLabelsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
1598
1599
|
if (output.statusCode >= 300) {
|
|
1599
1600
|
return de_CommandError(output, context);
|
|
1600
1601
|
}
|
|
1601
|
-
const data = await
|
|
1602
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
1602
1603
|
let contents = {};
|
|
1603
1604
|
contents = (0, import_smithy_client._json)(data);
|
|
1604
1605
|
const response = {
|
|
@@ -1611,7 +1612,7 @@ var de_GetListElementsCommand = /* @__PURE__ */ __name(async (output, context) =
|
|
|
1611
1612
|
if (output.statusCode >= 300) {
|
|
1612
1613
|
return de_CommandError(output, context);
|
|
1613
1614
|
}
|
|
1614
|
-
const data = await
|
|
1615
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
1615
1616
|
let contents = {};
|
|
1616
1617
|
contents = (0, import_smithy_client._json)(data);
|
|
1617
1618
|
const response = {
|
|
@@ -1624,7 +1625,7 @@ var de_GetListsMetadataCommand = /* @__PURE__ */ __name(async (output, context)
|
|
|
1624
1625
|
if (output.statusCode >= 300) {
|
|
1625
1626
|
return de_CommandError(output, context);
|
|
1626
1627
|
}
|
|
1627
|
-
const data = await
|
|
1628
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
1628
1629
|
let contents = {};
|
|
1629
1630
|
contents = (0, import_smithy_client._json)(data);
|
|
1630
1631
|
const response = {
|
|
@@ -1637,7 +1638,7 @@ var de_GetModelsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
1637
1638
|
if (output.statusCode >= 300) {
|
|
1638
1639
|
return de_CommandError(output, context);
|
|
1639
1640
|
}
|
|
1640
|
-
const data = await
|
|
1641
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
1641
1642
|
let contents = {};
|
|
1642
1643
|
contents = (0, import_smithy_client._json)(data);
|
|
1643
1644
|
const response = {
|
|
@@ -1650,7 +1651,7 @@ var de_GetModelVersionCommand = /* @__PURE__ */ __name(async (output, context) =
|
|
|
1650
1651
|
if (output.statusCode >= 300) {
|
|
1651
1652
|
return de_CommandError(output, context);
|
|
1652
1653
|
}
|
|
1653
|
-
const data = await
|
|
1654
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
1654
1655
|
let contents = {};
|
|
1655
1656
|
contents = (0, import_smithy_client._json)(data);
|
|
1656
1657
|
const response = {
|
|
@@ -1663,7 +1664,7 @@ var de_GetOutcomesCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
1663
1664
|
if (output.statusCode >= 300) {
|
|
1664
1665
|
return de_CommandError(output, context);
|
|
1665
1666
|
}
|
|
1666
|
-
const data = await
|
|
1667
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
1667
1668
|
let contents = {};
|
|
1668
1669
|
contents = (0, import_smithy_client._json)(data);
|
|
1669
1670
|
const response = {
|
|
@@ -1676,7 +1677,7 @@ var de_GetRulesCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
1676
1677
|
if (output.statusCode >= 300) {
|
|
1677
1678
|
return de_CommandError(output, context);
|
|
1678
1679
|
}
|
|
1679
|
-
const data = await
|
|
1680
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
1680
1681
|
let contents = {};
|
|
1681
1682
|
contents = (0, import_smithy_client._json)(data);
|
|
1682
1683
|
const response = {
|
|
@@ -1689,7 +1690,7 @@ var de_GetVariablesCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
1689
1690
|
if (output.statusCode >= 300) {
|
|
1690
1691
|
return de_CommandError(output, context);
|
|
1691
1692
|
}
|
|
1692
|
-
const data = await
|
|
1693
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
1693
1694
|
let contents = {};
|
|
1694
1695
|
contents = (0, import_smithy_client._json)(data);
|
|
1695
1696
|
const response = {
|
|
@@ -1702,7 +1703,7 @@ var de_ListEventPredictionsCommand = /* @__PURE__ */ __name(async (output, conte
|
|
|
1702
1703
|
if (output.statusCode >= 300) {
|
|
1703
1704
|
return de_CommandError(output, context);
|
|
1704
1705
|
}
|
|
1705
|
-
const data = await
|
|
1706
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
1706
1707
|
let contents = {};
|
|
1707
1708
|
contents = (0, import_smithy_client._json)(data);
|
|
1708
1709
|
const response = {
|
|
@@ -1715,7 +1716,7 @@ var de_ListTagsForResourceCommand = /* @__PURE__ */ __name(async (output, contex
|
|
|
1715
1716
|
if (output.statusCode >= 300) {
|
|
1716
1717
|
return de_CommandError(output, context);
|
|
1717
1718
|
}
|
|
1718
|
-
const data = await
|
|
1719
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
1719
1720
|
let contents = {};
|
|
1720
1721
|
contents = (0, import_smithy_client._json)(data);
|
|
1721
1722
|
const response = {
|
|
@@ -1728,7 +1729,7 @@ var de_PutDetectorCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
1728
1729
|
if (output.statusCode >= 300) {
|
|
1729
1730
|
return de_CommandError(output, context);
|
|
1730
1731
|
}
|
|
1731
|
-
const data = await
|
|
1732
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
1732
1733
|
let contents = {};
|
|
1733
1734
|
contents = (0, import_smithy_client._json)(data);
|
|
1734
1735
|
const response = {
|
|
@@ -1741,7 +1742,7 @@ var de_PutEntityTypeCommand = /* @__PURE__ */ __name(async (output, context) =>
|
|
|
1741
1742
|
if (output.statusCode >= 300) {
|
|
1742
1743
|
return de_CommandError(output, context);
|
|
1743
1744
|
}
|
|
1744
|
-
const data = await
|
|
1745
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
1745
1746
|
let contents = {};
|
|
1746
1747
|
contents = (0, import_smithy_client._json)(data);
|
|
1747
1748
|
const response = {
|
|
@@ -1754,7 +1755,7 @@ var de_PutEventTypeCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
1754
1755
|
if (output.statusCode >= 300) {
|
|
1755
1756
|
return de_CommandError(output, context);
|
|
1756
1757
|
}
|
|
1757
|
-
const data = await
|
|
1758
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
1758
1759
|
let contents = {};
|
|
1759
1760
|
contents = (0, import_smithy_client._json)(data);
|
|
1760
1761
|
const response = {
|
|
@@ -1767,7 +1768,7 @@ var de_PutExternalModelCommand = /* @__PURE__ */ __name(async (output, context)
|
|
|
1767
1768
|
if (output.statusCode >= 300) {
|
|
1768
1769
|
return de_CommandError(output, context);
|
|
1769
1770
|
}
|
|
1770
|
-
const data = await
|
|
1771
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
1771
1772
|
let contents = {};
|
|
1772
1773
|
contents = (0, import_smithy_client._json)(data);
|
|
1773
1774
|
const response = {
|
|
@@ -1780,7 +1781,7 @@ var de_PutKMSEncryptionKeyCommand = /* @__PURE__ */ __name(async (output, contex
|
|
|
1780
1781
|
if (output.statusCode >= 300) {
|
|
1781
1782
|
return de_CommandError(output, context);
|
|
1782
1783
|
}
|
|
1783
|
-
const data = await
|
|
1784
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
1784
1785
|
let contents = {};
|
|
1785
1786
|
contents = (0, import_smithy_client._json)(data);
|
|
1786
1787
|
const response = {
|
|
@@ -1793,7 +1794,7 @@ var de_PutLabelCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
1793
1794
|
if (output.statusCode >= 300) {
|
|
1794
1795
|
return de_CommandError(output, context);
|
|
1795
1796
|
}
|
|
1796
|
-
const data = await
|
|
1797
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
1797
1798
|
let contents = {};
|
|
1798
1799
|
contents = (0, import_smithy_client._json)(data);
|
|
1799
1800
|
const response = {
|
|
@@ -1806,7 +1807,7 @@ var de_PutOutcomeCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
1806
1807
|
if (output.statusCode >= 300) {
|
|
1807
1808
|
return de_CommandError(output, context);
|
|
1808
1809
|
}
|
|
1809
|
-
const data = await
|
|
1810
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
1810
1811
|
let contents = {};
|
|
1811
1812
|
contents = (0, import_smithy_client._json)(data);
|
|
1812
1813
|
const response = {
|
|
@@ -1819,7 +1820,7 @@ var de_SendEventCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
1819
1820
|
if (output.statusCode >= 300) {
|
|
1820
1821
|
return de_CommandError(output, context);
|
|
1821
1822
|
}
|
|
1822
|
-
const data = await
|
|
1823
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
1823
1824
|
let contents = {};
|
|
1824
1825
|
contents = (0, import_smithy_client._json)(data);
|
|
1825
1826
|
const response = {
|
|
@@ -1832,7 +1833,7 @@ var de_TagResourceCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
1832
1833
|
if (output.statusCode >= 300) {
|
|
1833
1834
|
return de_CommandError(output, context);
|
|
1834
1835
|
}
|
|
1835
|
-
const data = await
|
|
1836
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
1836
1837
|
let contents = {};
|
|
1837
1838
|
contents = (0, import_smithy_client._json)(data);
|
|
1838
1839
|
const response = {
|
|
@@ -1845,7 +1846,7 @@ var de_UntagResourceCommand = /* @__PURE__ */ __name(async (output, context) =>
|
|
|
1845
1846
|
if (output.statusCode >= 300) {
|
|
1846
1847
|
return de_CommandError(output, context);
|
|
1847
1848
|
}
|
|
1848
|
-
const data = await
|
|
1849
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
1849
1850
|
let contents = {};
|
|
1850
1851
|
contents = (0, import_smithy_client._json)(data);
|
|
1851
1852
|
const response = {
|
|
@@ -1858,7 +1859,7 @@ var de_UpdateDetectorVersionCommand = /* @__PURE__ */ __name(async (output, cont
|
|
|
1858
1859
|
if (output.statusCode >= 300) {
|
|
1859
1860
|
return de_CommandError(output, context);
|
|
1860
1861
|
}
|
|
1861
|
-
const data = await
|
|
1862
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
1862
1863
|
let contents = {};
|
|
1863
1864
|
contents = (0, import_smithy_client._json)(data);
|
|
1864
1865
|
const response = {
|
|
@@ -1871,7 +1872,7 @@ var de_UpdateDetectorVersionMetadataCommand = /* @__PURE__ */ __name(async (outp
|
|
|
1871
1872
|
if (output.statusCode >= 300) {
|
|
1872
1873
|
return de_CommandError(output, context);
|
|
1873
1874
|
}
|
|
1874
|
-
const data = await
|
|
1875
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
1875
1876
|
let contents = {};
|
|
1876
1877
|
contents = (0, import_smithy_client._json)(data);
|
|
1877
1878
|
const response = {
|
|
@@ -1884,7 +1885,7 @@ var de_UpdateDetectorVersionStatusCommand = /* @__PURE__ */ __name(async (output
|
|
|
1884
1885
|
if (output.statusCode >= 300) {
|
|
1885
1886
|
return de_CommandError(output, context);
|
|
1886
1887
|
}
|
|
1887
|
-
const data = await
|
|
1888
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
1888
1889
|
let contents = {};
|
|
1889
1890
|
contents = (0, import_smithy_client._json)(data);
|
|
1890
1891
|
const response = {
|
|
@@ -1897,7 +1898,7 @@ var de_UpdateEventLabelCommand = /* @__PURE__ */ __name(async (output, context)
|
|
|
1897
1898
|
if (output.statusCode >= 300) {
|
|
1898
1899
|
return de_CommandError(output, context);
|
|
1899
1900
|
}
|
|
1900
|
-
const data = await
|
|
1901
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
1901
1902
|
let contents = {};
|
|
1902
1903
|
contents = (0, import_smithy_client._json)(data);
|
|
1903
1904
|
const response = {
|
|
@@ -1910,7 +1911,7 @@ var de_UpdateListCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
1910
1911
|
if (output.statusCode >= 300) {
|
|
1911
1912
|
return de_CommandError(output, context);
|
|
1912
1913
|
}
|
|
1913
|
-
const data = await
|
|
1914
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
1914
1915
|
let contents = {};
|
|
1915
1916
|
contents = (0, import_smithy_client._json)(data);
|
|
1916
1917
|
const response = {
|
|
@@ -1923,7 +1924,7 @@ var de_UpdateModelCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
1923
1924
|
if (output.statusCode >= 300) {
|
|
1924
1925
|
return de_CommandError(output, context);
|
|
1925
1926
|
}
|
|
1926
|
-
const data = await
|
|
1927
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
1927
1928
|
let contents = {};
|
|
1928
1929
|
contents = (0, import_smithy_client._json)(data);
|
|
1929
1930
|
const response = {
|
|
@@ -1936,7 +1937,7 @@ var de_UpdateModelVersionCommand = /* @__PURE__ */ __name(async (output, context
|
|
|
1936
1937
|
if (output.statusCode >= 300) {
|
|
1937
1938
|
return de_CommandError(output, context);
|
|
1938
1939
|
}
|
|
1939
|
-
const data = await
|
|
1940
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
1940
1941
|
let contents = {};
|
|
1941
1942
|
contents = (0, import_smithy_client._json)(data);
|
|
1942
1943
|
const response = {
|
|
@@ -1949,7 +1950,7 @@ var de_UpdateModelVersionStatusCommand = /* @__PURE__ */ __name(async (output, c
|
|
|
1949
1950
|
if (output.statusCode >= 300) {
|
|
1950
1951
|
return de_CommandError(output, context);
|
|
1951
1952
|
}
|
|
1952
|
-
const data = await
|
|
1953
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
1953
1954
|
let contents = {};
|
|
1954
1955
|
contents = (0, import_smithy_client._json)(data);
|
|
1955
1956
|
const response = {
|
|
@@ -1962,7 +1963,7 @@ var de_UpdateRuleMetadataCommand = /* @__PURE__ */ __name(async (output, context
|
|
|
1962
1963
|
if (output.statusCode >= 300) {
|
|
1963
1964
|
return de_CommandError(output, context);
|
|
1964
1965
|
}
|
|
1965
|
-
const data = await
|
|
1966
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
1966
1967
|
let contents = {};
|
|
1967
1968
|
contents = (0, import_smithy_client._json)(data);
|
|
1968
1969
|
const response = {
|
|
@@ -1975,7 +1976,7 @@ var de_UpdateRuleVersionCommand = /* @__PURE__ */ __name(async (output, context)
|
|
|
1975
1976
|
if (output.statusCode >= 300) {
|
|
1976
1977
|
return de_CommandError(output, context);
|
|
1977
1978
|
}
|
|
1978
|
-
const data = await
|
|
1979
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
1979
1980
|
let contents = {};
|
|
1980
1981
|
contents = (0, import_smithy_client._json)(data);
|
|
1981
1982
|
const response = {
|
|
@@ -1988,7 +1989,7 @@ var de_UpdateVariableCommand = /* @__PURE__ */ __name(async (output, context) =>
|
|
|
1988
1989
|
if (output.statusCode >= 300) {
|
|
1989
1990
|
return de_CommandError(output, context);
|
|
1990
1991
|
}
|
|
1991
|
-
const data = await
|
|
1992
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
1992
1993
|
let contents = {};
|
|
1993
1994
|
contents = (0, import_smithy_client._json)(data);
|
|
1994
1995
|
const response = {
|
|
@@ -2000,9 +2001,9 @@ var de_UpdateVariableCommand = /* @__PURE__ */ __name(async (output, context) =>
|
|
|
2000
2001
|
var de_CommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2001
2002
|
const parsedOutput = {
|
|
2002
2003
|
...output,
|
|
2003
|
-
body: await
|
|
2004
|
+
body: await (0, import_core2.parseJsonErrorBody)(output.body, context)
|
|
2004
2005
|
};
|
|
2005
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2006
|
+
const errorCode = (0, import_core2.loadRestJsonErrorCode)(output, parsedOutput.body);
|
|
2006
2007
|
switch (errorCode) {
|
|
2007
2008
|
case "AccessDeniedException":
|
|
2008
2009
|
case "com.amazonaws.frauddetector#AccessDeniedException":
|
|
@@ -2425,7 +2426,6 @@ var deserializeMetadata = /* @__PURE__ */ __name((output) => ({
|
|
|
2425
2426
|
extendedRequestId: output.headers["x-amz-id-2"],
|
|
2426
2427
|
cfId: output.headers["x-amz-cf-id"]
|
|
2427
2428
|
}), "deserializeMetadata");
|
|
2428
|
-
var collectBodyString = /* @__PURE__ */ __name((streamBody, context) => (0, import_smithy_client.collectBody)(streamBody, context).then((body) => context.utf8Encoder(body)), "collectBodyString");
|
|
2429
2429
|
var throwDefaultError = (0, import_smithy_client.withBaseException)(FraudDetectorServiceException);
|
|
2430
2430
|
var buildHttpRpcRequest = /* @__PURE__ */ __name(async (context, headers, path, resolvedHostname, body) => {
|
|
2431
2431
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
@@ -2452,46 +2452,6 @@ function sharedHeaders(operation) {
|
|
|
2452
2452
|
};
|
|
2453
2453
|
}
|
|
2454
2454
|
__name(sharedHeaders, "sharedHeaders");
|
|
2455
|
-
var parseBody = /* @__PURE__ */ __name((streamBody, context) => collectBodyString(streamBody, context).then((encoded) => {
|
|
2456
|
-
if (encoded.length) {
|
|
2457
|
-
return JSON.parse(encoded);
|
|
2458
|
-
}
|
|
2459
|
-
return {};
|
|
2460
|
-
}), "parseBody");
|
|
2461
|
-
var parseErrorBody = /* @__PURE__ */ __name(async (errorBody, context) => {
|
|
2462
|
-
const value = await parseBody(errorBody, context);
|
|
2463
|
-
value.message = value.message ?? value.Message;
|
|
2464
|
-
return value;
|
|
2465
|
-
}, "parseErrorBody");
|
|
2466
|
-
var loadRestJsonErrorCode = /* @__PURE__ */ __name((output, data) => {
|
|
2467
|
-
const findKey = /* @__PURE__ */ __name((object, key) => Object.keys(object).find((k) => k.toLowerCase() === key.toLowerCase()), "findKey");
|
|
2468
|
-
const sanitizeErrorCode = /* @__PURE__ */ __name((rawValue) => {
|
|
2469
|
-
let cleanValue = rawValue;
|
|
2470
|
-
if (typeof cleanValue === "number") {
|
|
2471
|
-
cleanValue = cleanValue.toString();
|
|
2472
|
-
}
|
|
2473
|
-
if (cleanValue.indexOf(",") >= 0) {
|
|
2474
|
-
cleanValue = cleanValue.split(",")[0];
|
|
2475
|
-
}
|
|
2476
|
-
if (cleanValue.indexOf(":") >= 0) {
|
|
2477
|
-
cleanValue = cleanValue.split(":")[0];
|
|
2478
|
-
}
|
|
2479
|
-
if (cleanValue.indexOf("#") >= 0) {
|
|
2480
|
-
cleanValue = cleanValue.split("#")[1];
|
|
2481
|
-
}
|
|
2482
|
-
return cleanValue;
|
|
2483
|
-
}, "sanitizeErrorCode");
|
|
2484
|
-
const headerKey = findKey(output.headers, "x-amzn-errortype");
|
|
2485
|
-
if (headerKey !== void 0) {
|
|
2486
|
-
return sanitizeErrorCode(output.headers[headerKey]);
|
|
2487
|
-
}
|
|
2488
|
-
if (data.code !== void 0) {
|
|
2489
|
-
return sanitizeErrorCode(data.code);
|
|
2490
|
-
}
|
|
2491
|
-
if (data["__type"] !== void 0) {
|
|
2492
|
-
return sanitizeErrorCode(data["__type"]);
|
|
2493
|
-
}
|
|
2494
|
-
}, "loadRestJsonErrorCode");
|
|
2495
2455
|
|
|
2496
2456
|
// src/commands/BatchCreateVariableCommand.ts
|
|
2497
2457
|
var _BatchCreateVariableCommand = class _BatchCreateVariableCommand extends import_smithy_client.Command.classBuilder().ep({
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { loadRestJsonErrorCode, parseJsonBody as parseBody, parseJsonErrorBody as parseErrorBody } from "@aws-sdk/core";
|
|
1
2
|
import { HttpRequest as __HttpRequest } from "@smithy/protocol-http";
|
|
2
3
|
import { _json, collectBody, decorateServiceException as __decorateServiceException, expectString as __expectString, limitedParseFloat32 as __limitedParseFloat32, take, withBaseException, } from "@smithy/smithy-client";
|
|
3
4
|
import { FraudDetectorServiceException as __BaseException } from "../models/FraudDetectorServiceException";
|
|
@@ -1866,43 +1867,3 @@ function sharedHeaders(operation) {
|
|
|
1866
1867
|
"x-amz-target": `AWSHawksNestServiceFacade.${operation}`,
|
|
1867
1868
|
};
|
|
1868
1869
|
}
|
|
1869
|
-
const parseBody = (streamBody, context) => collectBodyString(streamBody, context).then((encoded) => {
|
|
1870
|
-
if (encoded.length) {
|
|
1871
|
-
return JSON.parse(encoded);
|
|
1872
|
-
}
|
|
1873
|
-
return {};
|
|
1874
|
-
});
|
|
1875
|
-
const parseErrorBody = async (errorBody, context) => {
|
|
1876
|
-
const value = await parseBody(errorBody, context);
|
|
1877
|
-
value.message = value.message ?? value.Message;
|
|
1878
|
-
return value;
|
|
1879
|
-
};
|
|
1880
|
-
const loadRestJsonErrorCode = (output, data) => {
|
|
1881
|
-
const findKey = (object, key) => Object.keys(object).find((k) => k.toLowerCase() === key.toLowerCase());
|
|
1882
|
-
const sanitizeErrorCode = (rawValue) => {
|
|
1883
|
-
let cleanValue = rawValue;
|
|
1884
|
-
if (typeof cleanValue === "number") {
|
|
1885
|
-
cleanValue = cleanValue.toString();
|
|
1886
|
-
}
|
|
1887
|
-
if (cleanValue.indexOf(",") >= 0) {
|
|
1888
|
-
cleanValue = cleanValue.split(",")[0];
|
|
1889
|
-
}
|
|
1890
|
-
if (cleanValue.indexOf(":") >= 0) {
|
|
1891
|
-
cleanValue = cleanValue.split(":")[0];
|
|
1892
|
-
}
|
|
1893
|
-
if (cleanValue.indexOf("#") >= 0) {
|
|
1894
|
-
cleanValue = cleanValue.split("#")[1];
|
|
1895
|
-
}
|
|
1896
|
-
return cleanValue;
|
|
1897
|
-
};
|
|
1898
|
-
const headerKey = findKey(output.headers, "x-amzn-errortype");
|
|
1899
|
-
if (headerKey !== undefined) {
|
|
1900
|
-
return sanitizeErrorCode(output.headers[headerKey]);
|
|
1901
|
-
}
|
|
1902
|
-
if (data.code !== undefined) {
|
|
1903
|
-
return sanitizeErrorCode(data.code);
|
|
1904
|
-
}
|
|
1905
|
-
if (data["__type"] !== undefined) {
|
|
1906
|
-
return sanitizeErrorCode(data["__type"]);
|
|
1907
|
-
}
|
|
1908
|
-
};
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aws-sdk/client-frauddetector",
|
|
3
3
|
"description": "AWS SDK for JavaScript Frauddetector Client for Node.js, Browser and React Native",
|
|
4
|
-
"version": "3.
|
|
4
|
+
"version": "3.529.0",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
|
|
7
7
|
"build:cjs": "node ../../scripts/compilation/inline client-frauddetector",
|
|
@@ -20,9 +20,9 @@
|
|
|
20
20
|
"dependencies": {
|
|
21
21
|
"@aws-crypto/sha256-browser": "3.0.0",
|
|
22
22
|
"@aws-crypto/sha256-js": "3.0.0",
|
|
23
|
-
"@aws-sdk/client-sts": "3.
|
|
24
|
-
"@aws-sdk/core": "3.
|
|
25
|
-
"@aws-sdk/credential-provider-node": "3.
|
|
23
|
+
"@aws-sdk/client-sts": "3.529.0",
|
|
24
|
+
"@aws-sdk/core": "3.529.0",
|
|
25
|
+
"@aws-sdk/credential-provider-node": "3.529.0",
|
|
26
26
|
"@aws-sdk/middleware-host-header": "3.523.0",
|
|
27
27
|
"@aws-sdk/middleware-logger": "3.523.0",
|
|
28
28
|
"@aws-sdk/middleware-recursion-detection": "3.523.0",
|