@aws-sdk/client-databrew 3.504.0 → 3.507.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 +94 -1106
- package/dist-es/protocols/Aws_restJson1.js +89 -1101
- package/package.json +3 -3
package/dist-cjs/index.js
CHANGED
|
@@ -1091,7 +1091,7 @@ var se_UpdateScheduleCommand = /* @__PURE__ */ __name(async (input, context) =>
|
|
|
1091
1091
|
}, "se_UpdateScheduleCommand");
|
|
1092
1092
|
var de_BatchDeleteRecipeVersionCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1093
1093
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1094
|
-
return
|
|
1094
|
+
return de_CommandError(output, context);
|
|
1095
1095
|
}
|
|
1096
1096
|
const contents = (0, import_smithy_client.map)({
|
|
1097
1097
|
$metadata: deserializeMetadata(output)
|
|
@@ -1104,34 +1104,9 @@ var de_BatchDeleteRecipeVersionCommand = /* @__PURE__ */ __name(async (output, c
|
|
|
1104
1104
|
Object.assign(contents, doc);
|
|
1105
1105
|
return contents;
|
|
1106
1106
|
}, "de_BatchDeleteRecipeVersionCommand");
|
|
1107
|
-
var de_BatchDeleteRecipeVersionCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1108
|
-
const parsedOutput = {
|
|
1109
|
-
...output,
|
|
1110
|
-
body: await parseErrorBody(output.body, context)
|
|
1111
|
-
};
|
|
1112
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1113
|
-
switch (errorCode) {
|
|
1114
|
-
case "ConflictException":
|
|
1115
|
-
case "com.amazonaws.databrew#ConflictException":
|
|
1116
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1117
|
-
case "ResourceNotFoundException":
|
|
1118
|
-
case "com.amazonaws.databrew#ResourceNotFoundException":
|
|
1119
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1120
|
-
case "ValidationException":
|
|
1121
|
-
case "com.amazonaws.databrew#ValidationException":
|
|
1122
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1123
|
-
default:
|
|
1124
|
-
const parsedBody = parsedOutput.body;
|
|
1125
|
-
return throwDefaultError({
|
|
1126
|
-
output,
|
|
1127
|
-
parsedBody,
|
|
1128
|
-
errorCode
|
|
1129
|
-
});
|
|
1130
|
-
}
|
|
1131
|
-
}, "de_BatchDeleteRecipeVersionCommandError");
|
|
1132
1107
|
var de_CreateDatasetCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1133
1108
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1134
|
-
return
|
|
1109
|
+
return de_CommandError(output, context);
|
|
1135
1110
|
}
|
|
1136
1111
|
const contents = (0, import_smithy_client.map)({
|
|
1137
1112
|
$metadata: deserializeMetadata(output)
|
|
@@ -1143,37 +1118,9 @@ var de_CreateDatasetCommand = /* @__PURE__ */ __name(async (output, context) =>
|
|
|
1143
1118
|
Object.assign(contents, doc);
|
|
1144
1119
|
return contents;
|
|
1145
1120
|
}, "de_CreateDatasetCommand");
|
|
1146
|
-
var de_CreateDatasetCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1147
|
-
const parsedOutput = {
|
|
1148
|
-
...output,
|
|
1149
|
-
body: await parseErrorBody(output.body, context)
|
|
1150
|
-
};
|
|
1151
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1152
|
-
switch (errorCode) {
|
|
1153
|
-
case "AccessDeniedException":
|
|
1154
|
-
case "com.amazonaws.databrew#AccessDeniedException":
|
|
1155
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1156
|
-
case "ConflictException":
|
|
1157
|
-
case "com.amazonaws.databrew#ConflictException":
|
|
1158
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1159
|
-
case "ServiceQuotaExceededException":
|
|
1160
|
-
case "com.amazonaws.databrew#ServiceQuotaExceededException":
|
|
1161
|
-
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
1162
|
-
case "ValidationException":
|
|
1163
|
-
case "com.amazonaws.databrew#ValidationException":
|
|
1164
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1165
|
-
default:
|
|
1166
|
-
const parsedBody = parsedOutput.body;
|
|
1167
|
-
return throwDefaultError({
|
|
1168
|
-
output,
|
|
1169
|
-
parsedBody,
|
|
1170
|
-
errorCode
|
|
1171
|
-
});
|
|
1172
|
-
}
|
|
1173
|
-
}, "de_CreateDatasetCommandError");
|
|
1174
1121
|
var de_CreateProfileJobCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1175
1122
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1176
|
-
return
|
|
1123
|
+
return de_CommandError(output, context);
|
|
1177
1124
|
}
|
|
1178
1125
|
const contents = (0, import_smithy_client.map)({
|
|
1179
1126
|
$metadata: deserializeMetadata(output)
|
|
@@ -1185,40 +1132,9 @@ var de_CreateProfileJobCommand = /* @__PURE__ */ __name(async (output, context)
|
|
|
1185
1132
|
Object.assign(contents, doc);
|
|
1186
1133
|
return contents;
|
|
1187
1134
|
}, "de_CreateProfileJobCommand");
|
|
1188
|
-
var de_CreateProfileJobCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1189
|
-
const parsedOutput = {
|
|
1190
|
-
...output,
|
|
1191
|
-
body: await parseErrorBody(output.body, context)
|
|
1192
|
-
};
|
|
1193
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1194
|
-
switch (errorCode) {
|
|
1195
|
-
case "AccessDeniedException":
|
|
1196
|
-
case "com.amazonaws.databrew#AccessDeniedException":
|
|
1197
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1198
|
-
case "ConflictException":
|
|
1199
|
-
case "com.amazonaws.databrew#ConflictException":
|
|
1200
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1201
|
-
case "ResourceNotFoundException":
|
|
1202
|
-
case "com.amazonaws.databrew#ResourceNotFoundException":
|
|
1203
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1204
|
-
case "ServiceQuotaExceededException":
|
|
1205
|
-
case "com.amazonaws.databrew#ServiceQuotaExceededException":
|
|
1206
|
-
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
1207
|
-
case "ValidationException":
|
|
1208
|
-
case "com.amazonaws.databrew#ValidationException":
|
|
1209
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1210
|
-
default:
|
|
1211
|
-
const parsedBody = parsedOutput.body;
|
|
1212
|
-
return throwDefaultError({
|
|
1213
|
-
output,
|
|
1214
|
-
parsedBody,
|
|
1215
|
-
errorCode
|
|
1216
|
-
});
|
|
1217
|
-
}
|
|
1218
|
-
}, "de_CreateProfileJobCommandError");
|
|
1219
1135
|
var de_CreateProjectCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1220
1136
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1221
|
-
return
|
|
1137
|
+
return de_CommandError(output, context);
|
|
1222
1138
|
}
|
|
1223
1139
|
const contents = (0, import_smithy_client.map)({
|
|
1224
1140
|
$metadata: deserializeMetadata(output)
|
|
@@ -1230,37 +1146,9 @@ var de_CreateProjectCommand = /* @__PURE__ */ __name(async (output, context) =>
|
|
|
1230
1146
|
Object.assign(contents, doc);
|
|
1231
1147
|
return contents;
|
|
1232
1148
|
}, "de_CreateProjectCommand");
|
|
1233
|
-
var de_CreateProjectCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1234
|
-
const parsedOutput = {
|
|
1235
|
-
...output,
|
|
1236
|
-
body: await parseErrorBody(output.body, context)
|
|
1237
|
-
};
|
|
1238
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1239
|
-
switch (errorCode) {
|
|
1240
|
-
case "ConflictException":
|
|
1241
|
-
case "com.amazonaws.databrew#ConflictException":
|
|
1242
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1243
|
-
case "InternalServerException":
|
|
1244
|
-
case "com.amazonaws.databrew#InternalServerException":
|
|
1245
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1246
|
-
case "ServiceQuotaExceededException":
|
|
1247
|
-
case "com.amazonaws.databrew#ServiceQuotaExceededException":
|
|
1248
|
-
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
1249
|
-
case "ValidationException":
|
|
1250
|
-
case "com.amazonaws.databrew#ValidationException":
|
|
1251
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1252
|
-
default:
|
|
1253
|
-
const parsedBody = parsedOutput.body;
|
|
1254
|
-
return throwDefaultError({
|
|
1255
|
-
output,
|
|
1256
|
-
parsedBody,
|
|
1257
|
-
errorCode
|
|
1258
|
-
});
|
|
1259
|
-
}
|
|
1260
|
-
}, "de_CreateProjectCommandError");
|
|
1261
1149
|
var de_CreateRecipeCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1262
1150
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1263
|
-
return
|
|
1151
|
+
return de_CommandError(output, context);
|
|
1264
1152
|
}
|
|
1265
1153
|
const contents = (0, import_smithy_client.map)({
|
|
1266
1154
|
$metadata: deserializeMetadata(output)
|
|
@@ -1272,34 +1160,9 @@ var de_CreateRecipeCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
1272
1160
|
Object.assign(contents, doc);
|
|
1273
1161
|
return contents;
|
|
1274
1162
|
}, "de_CreateRecipeCommand");
|
|
1275
|
-
var de_CreateRecipeCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1276
|
-
const parsedOutput = {
|
|
1277
|
-
...output,
|
|
1278
|
-
body: await parseErrorBody(output.body, context)
|
|
1279
|
-
};
|
|
1280
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1281
|
-
switch (errorCode) {
|
|
1282
|
-
case "ConflictException":
|
|
1283
|
-
case "com.amazonaws.databrew#ConflictException":
|
|
1284
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1285
|
-
case "ServiceQuotaExceededException":
|
|
1286
|
-
case "com.amazonaws.databrew#ServiceQuotaExceededException":
|
|
1287
|
-
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
1288
|
-
case "ValidationException":
|
|
1289
|
-
case "com.amazonaws.databrew#ValidationException":
|
|
1290
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1291
|
-
default:
|
|
1292
|
-
const parsedBody = parsedOutput.body;
|
|
1293
|
-
return throwDefaultError({
|
|
1294
|
-
output,
|
|
1295
|
-
parsedBody,
|
|
1296
|
-
errorCode
|
|
1297
|
-
});
|
|
1298
|
-
}
|
|
1299
|
-
}, "de_CreateRecipeCommandError");
|
|
1300
1163
|
var de_CreateRecipeJobCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1301
1164
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1302
|
-
return
|
|
1165
|
+
return de_CommandError(output, context);
|
|
1303
1166
|
}
|
|
1304
1167
|
const contents = (0, import_smithy_client.map)({
|
|
1305
1168
|
$metadata: deserializeMetadata(output)
|
|
@@ -1311,40 +1174,9 @@ var de_CreateRecipeJobCommand = /* @__PURE__ */ __name(async (output, context) =
|
|
|
1311
1174
|
Object.assign(contents, doc);
|
|
1312
1175
|
return contents;
|
|
1313
1176
|
}, "de_CreateRecipeJobCommand");
|
|
1314
|
-
var de_CreateRecipeJobCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1315
|
-
const parsedOutput = {
|
|
1316
|
-
...output,
|
|
1317
|
-
body: await parseErrorBody(output.body, context)
|
|
1318
|
-
};
|
|
1319
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1320
|
-
switch (errorCode) {
|
|
1321
|
-
case "AccessDeniedException":
|
|
1322
|
-
case "com.amazonaws.databrew#AccessDeniedException":
|
|
1323
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1324
|
-
case "ConflictException":
|
|
1325
|
-
case "com.amazonaws.databrew#ConflictException":
|
|
1326
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1327
|
-
case "ResourceNotFoundException":
|
|
1328
|
-
case "com.amazonaws.databrew#ResourceNotFoundException":
|
|
1329
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1330
|
-
case "ServiceQuotaExceededException":
|
|
1331
|
-
case "com.amazonaws.databrew#ServiceQuotaExceededException":
|
|
1332
|
-
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
1333
|
-
case "ValidationException":
|
|
1334
|
-
case "com.amazonaws.databrew#ValidationException":
|
|
1335
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1336
|
-
default:
|
|
1337
|
-
const parsedBody = parsedOutput.body;
|
|
1338
|
-
return throwDefaultError({
|
|
1339
|
-
output,
|
|
1340
|
-
parsedBody,
|
|
1341
|
-
errorCode
|
|
1342
|
-
});
|
|
1343
|
-
}
|
|
1344
|
-
}, "de_CreateRecipeJobCommandError");
|
|
1345
1177
|
var de_CreateRulesetCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1346
1178
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1347
|
-
return
|
|
1179
|
+
return de_CommandError(output, context);
|
|
1348
1180
|
}
|
|
1349
1181
|
const contents = (0, import_smithy_client.map)({
|
|
1350
1182
|
$metadata: deserializeMetadata(output)
|
|
@@ -1356,34 +1188,9 @@ var de_CreateRulesetCommand = /* @__PURE__ */ __name(async (output, context) =>
|
|
|
1356
1188
|
Object.assign(contents, doc);
|
|
1357
1189
|
return contents;
|
|
1358
1190
|
}, "de_CreateRulesetCommand");
|
|
1359
|
-
var de_CreateRulesetCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1360
|
-
const parsedOutput = {
|
|
1361
|
-
...output,
|
|
1362
|
-
body: await parseErrorBody(output.body, context)
|
|
1363
|
-
};
|
|
1364
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1365
|
-
switch (errorCode) {
|
|
1366
|
-
case "ConflictException":
|
|
1367
|
-
case "com.amazonaws.databrew#ConflictException":
|
|
1368
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1369
|
-
case "ServiceQuotaExceededException":
|
|
1370
|
-
case "com.amazonaws.databrew#ServiceQuotaExceededException":
|
|
1371
|
-
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
1372
|
-
case "ValidationException":
|
|
1373
|
-
case "com.amazonaws.databrew#ValidationException":
|
|
1374
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1375
|
-
default:
|
|
1376
|
-
const parsedBody = parsedOutput.body;
|
|
1377
|
-
return throwDefaultError({
|
|
1378
|
-
output,
|
|
1379
|
-
parsedBody,
|
|
1380
|
-
errorCode
|
|
1381
|
-
});
|
|
1382
|
-
}
|
|
1383
|
-
}, "de_CreateRulesetCommandError");
|
|
1384
1191
|
var de_CreateScheduleCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1385
1192
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1386
|
-
return
|
|
1193
|
+
return de_CommandError(output, context);
|
|
1387
1194
|
}
|
|
1388
1195
|
const contents = (0, import_smithy_client.map)({
|
|
1389
1196
|
$metadata: deserializeMetadata(output)
|
|
@@ -1395,34 +1202,9 @@ var de_CreateScheduleCommand = /* @__PURE__ */ __name(async (output, context) =>
|
|
|
1395
1202
|
Object.assign(contents, doc);
|
|
1396
1203
|
return contents;
|
|
1397
1204
|
}, "de_CreateScheduleCommand");
|
|
1398
|
-
var de_CreateScheduleCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1399
|
-
const parsedOutput = {
|
|
1400
|
-
...output,
|
|
1401
|
-
body: await parseErrorBody(output.body, context)
|
|
1402
|
-
};
|
|
1403
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1404
|
-
switch (errorCode) {
|
|
1405
|
-
case "ConflictException":
|
|
1406
|
-
case "com.amazonaws.databrew#ConflictException":
|
|
1407
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1408
|
-
case "ServiceQuotaExceededException":
|
|
1409
|
-
case "com.amazonaws.databrew#ServiceQuotaExceededException":
|
|
1410
|
-
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
1411
|
-
case "ValidationException":
|
|
1412
|
-
case "com.amazonaws.databrew#ValidationException":
|
|
1413
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1414
|
-
default:
|
|
1415
|
-
const parsedBody = parsedOutput.body;
|
|
1416
|
-
return throwDefaultError({
|
|
1417
|
-
output,
|
|
1418
|
-
parsedBody,
|
|
1419
|
-
errorCode
|
|
1420
|
-
});
|
|
1421
|
-
}
|
|
1422
|
-
}, "de_CreateScheduleCommandError");
|
|
1423
1205
|
var de_DeleteDatasetCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1424
1206
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1425
|
-
return
|
|
1207
|
+
return de_CommandError(output, context);
|
|
1426
1208
|
}
|
|
1427
1209
|
const contents = (0, import_smithy_client.map)({
|
|
1428
1210
|
$metadata: deserializeMetadata(output)
|
|
@@ -1434,34 +1216,9 @@ var de_DeleteDatasetCommand = /* @__PURE__ */ __name(async (output, context) =>
|
|
|
1434
1216
|
Object.assign(contents, doc);
|
|
1435
1217
|
return contents;
|
|
1436
1218
|
}, "de_DeleteDatasetCommand");
|
|
1437
|
-
var de_DeleteDatasetCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1438
|
-
const parsedOutput = {
|
|
1439
|
-
...output,
|
|
1440
|
-
body: await parseErrorBody(output.body, context)
|
|
1441
|
-
};
|
|
1442
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1443
|
-
switch (errorCode) {
|
|
1444
|
-
case "ConflictException":
|
|
1445
|
-
case "com.amazonaws.databrew#ConflictException":
|
|
1446
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1447
|
-
case "ResourceNotFoundException":
|
|
1448
|
-
case "com.amazonaws.databrew#ResourceNotFoundException":
|
|
1449
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1450
|
-
case "ValidationException":
|
|
1451
|
-
case "com.amazonaws.databrew#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_DeleteDatasetCommandError");
|
|
1462
1219
|
var de_DeleteJobCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1463
1220
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1464
|
-
return
|
|
1221
|
+
return de_CommandError(output, context);
|
|
1465
1222
|
}
|
|
1466
1223
|
const contents = (0, import_smithy_client.map)({
|
|
1467
1224
|
$metadata: deserializeMetadata(output)
|
|
@@ -1473,34 +1230,9 @@ var de_DeleteJobCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
1473
1230
|
Object.assign(contents, doc);
|
|
1474
1231
|
return contents;
|
|
1475
1232
|
}, "de_DeleteJobCommand");
|
|
1476
|
-
var de_DeleteJobCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1477
|
-
const parsedOutput = {
|
|
1478
|
-
...output,
|
|
1479
|
-
body: await parseErrorBody(output.body, context)
|
|
1480
|
-
};
|
|
1481
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1482
|
-
switch (errorCode) {
|
|
1483
|
-
case "ConflictException":
|
|
1484
|
-
case "com.amazonaws.databrew#ConflictException":
|
|
1485
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1486
|
-
case "ResourceNotFoundException":
|
|
1487
|
-
case "com.amazonaws.databrew#ResourceNotFoundException":
|
|
1488
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1489
|
-
case "ValidationException":
|
|
1490
|
-
case "com.amazonaws.databrew#ValidationException":
|
|
1491
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1492
|
-
default:
|
|
1493
|
-
const parsedBody = parsedOutput.body;
|
|
1494
|
-
return throwDefaultError({
|
|
1495
|
-
output,
|
|
1496
|
-
parsedBody,
|
|
1497
|
-
errorCode
|
|
1498
|
-
});
|
|
1499
|
-
}
|
|
1500
|
-
}, "de_DeleteJobCommandError");
|
|
1501
1233
|
var de_DeleteProjectCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1502
1234
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1503
|
-
return
|
|
1235
|
+
return de_CommandError(output, context);
|
|
1504
1236
|
}
|
|
1505
1237
|
const contents = (0, import_smithy_client.map)({
|
|
1506
1238
|
$metadata: deserializeMetadata(output)
|
|
@@ -1512,34 +1244,9 @@ var de_DeleteProjectCommand = /* @__PURE__ */ __name(async (output, context) =>
|
|
|
1512
1244
|
Object.assign(contents, doc);
|
|
1513
1245
|
return contents;
|
|
1514
1246
|
}, "de_DeleteProjectCommand");
|
|
1515
|
-
var de_DeleteProjectCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1516
|
-
const parsedOutput = {
|
|
1517
|
-
...output,
|
|
1518
|
-
body: await parseErrorBody(output.body, context)
|
|
1519
|
-
};
|
|
1520
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1521
|
-
switch (errorCode) {
|
|
1522
|
-
case "ConflictException":
|
|
1523
|
-
case "com.amazonaws.databrew#ConflictException":
|
|
1524
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1525
|
-
case "ResourceNotFoundException":
|
|
1526
|
-
case "com.amazonaws.databrew#ResourceNotFoundException":
|
|
1527
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1528
|
-
case "ValidationException":
|
|
1529
|
-
case "com.amazonaws.databrew#ValidationException":
|
|
1530
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1531
|
-
default:
|
|
1532
|
-
const parsedBody = parsedOutput.body;
|
|
1533
|
-
return throwDefaultError({
|
|
1534
|
-
output,
|
|
1535
|
-
parsedBody,
|
|
1536
|
-
errorCode
|
|
1537
|
-
});
|
|
1538
|
-
}
|
|
1539
|
-
}, "de_DeleteProjectCommandError");
|
|
1540
1247
|
var de_DeleteRecipeVersionCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1541
1248
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1542
|
-
return
|
|
1249
|
+
return de_CommandError(output, context);
|
|
1543
1250
|
}
|
|
1544
1251
|
const contents = (0, import_smithy_client.map)({
|
|
1545
1252
|
$metadata: deserializeMetadata(output)
|
|
@@ -1552,34 +1259,9 @@ var de_DeleteRecipeVersionCommand = /* @__PURE__ */ __name(async (output, contex
|
|
|
1552
1259
|
Object.assign(contents, doc);
|
|
1553
1260
|
return contents;
|
|
1554
1261
|
}, "de_DeleteRecipeVersionCommand");
|
|
1555
|
-
var de_DeleteRecipeVersionCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1556
|
-
const parsedOutput = {
|
|
1557
|
-
...output,
|
|
1558
|
-
body: await parseErrorBody(output.body, context)
|
|
1559
|
-
};
|
|
1560
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1561
|
-
switch (errorCode) {
|
|
1562
|
-
case "ConflictException":
|
|
1563
|
-
case "com.amazonaws.databrew#ConflictException":
|
|
1564
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1565
|
-
case "ResourceNotFoundException":
|
|
1566
|
-
case "com.amazonaws.databrew#ResourceNotFoundException":
|
|
1567
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1568
|
-
case "ValidationException":
|
|
1569
|
-
case "com.amazonaws.databrew#ValidationException":
|
|
1570
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1571
|
-
default:
|
|
1572
|
-
const parsedBody = parsedOutput.body;
|
|
1573
|
-
return throwDefaultError({
|
|
1574
|
-
output,
|
|
1575
|
-
parsedBody,
|
|
1576
|
-
errorCode
|
|
1577
|
-
});
|
|
1578
|
-
}
|
|
1579
|
-
}, "de_DeleteRecipeVersionCommandError");
|
|
1580
1262
|
var de_DeleteRulesetCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1581
1263
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1582
|
-
return
|
|
1264
|
+
return de_CommandError(output, context);
|
|
1583
1265
|
}
|
|
1584
1266
|
const contents = (0, import_smithy_client.map)({
|
|
1585
1267
|
$metadata: deserializeMetadata(output)
|
|
@@ -1591,34 +1273,9 @@ var de_DeleteRulesetCommand = /* @__PURE__ */ __name(async (output, context) =>
|
|
|
1591
1273
|
Object.assign(contents, doc);
|
|
1592
1274
|
return contents;
|
|
1593
1275
|
}, "de_DeleteRulesetCommand");
|
|
1594
|
-
var de_DeleteRulesetCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1595
|
-
const parsedOutput = {
|
|
1596
|
-
...output,
|
|
1597
|
-
body: await parseErrorBody(output.body, context)
|
|
1598
|
-
};
|
|
1599
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1600
|
-
switch (errorCode) {
|
|
1601
|
-
case "ConflictException":
|
|
1602
|
-
case "com.amazonaws.databrew#ConflictException":
|
|
1603
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1604
|
-
case "ResourceNotFoundException":
|
|
1605
|
-
case "com.amazonaws.databrew#ResourceNotFoundException":
|
|
1606
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1607
|
-
case "ValidationException":
|
|
1608
|
-
case "com.amazonaws.databrew#ValidationException":
|
|
1609
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1610
|
-
default:
|
|
1611
|
-
const parsedBody = parsedOutput.body;
|
|
1612
|
-
return throwDefaultError({
|
|
1613
|
-
output,
|
|
1614
|
-
parsedBody,
|
|
1615
|
-
errorCode
|
|
1616
|
-
});
|
|
1617
|
-
}
|
|
1618
|
-
}, "de_DeleteRulesetCommandError");
|
|
1619
1276
|
var de_DeleteScheduleCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1620
1277
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1621
|
-
return
|
|
1278
|
+
return de_CommandError(output, context);
|
|
1622
1279
|
}
|
|
1623
1280
|
const contents = (0, import_smithy_client.map)({
|
|
1624
1281
|
$metadata: deserializeMetadata(output)
|
|
@@ -1630,31 +1287,9 @@ var de_DeleteScheduleCommand = /* @__PURE__ */ __name(async (output, context) =>
|
|
|
1630
1287
|
Object.assign(contents, doc);
|
|
1631
1288
|
return contents;
|
|
1632
1289
|
}, "de_DeleteScheduleCommand");
|
|
1633
|
-
var de_DeleteScheduleCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1634
|
-
const parsedOutput = {
|
|
1635
|
-
...output,
|
|
1636
|
-
body: await parseErrorBody(output.body, context)
|
|
1637
|
-
};
|
|
1638
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1639
|
-
switch (errorCode) {
|
|
1640
|
-
case "ResourceNotFoundException":
|
|
1641
|
-
case "com.amazonaws.databrew#ResourceNotFoundException":
|
|
1642
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1643
|
-
case "ValidationException":
|
|
1644
|
-
case "com.amazonaws.databrew#ValidationException":
|
|
1645
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1646
|
-
default:
|
|
1647
|
-
const parsedBody = parsedOutput.body;
|
|
1648
|
-
return throwDefaultError({
|
|
1649
|
-
output,
|
|
1650
|
-
parsedBody,
|
|
1651
|
-
errorCode
|
|
1652
|
-
});
|
|
1653
|
-
}
|
|
1654
|
-
}, "de_DeleteScheduleCommandError");
|
|
1655
1290
|
var de_DescribeDatasetCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1656
1291
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1657
|
-
return
|
|
1292
|
+
return de_CommandError(output, context);
|
|
1658
1293
|
}
|
|
1659
1294
|
const contents = (0, import_smithy_client.map)({
|
|
1660
1295
|
$metadata: deserializeMetadata(output)
|
|
@@ -1677,31 +1312,9 @@ var de_DescribeDatasetCommand = /* @__PURE__ */ __name(async (output, context) =
|
|
|
1677
1312
|
Object.assign(contents, doc);
|
|
1678
1313
|
return contents;
|
|
1679
1314
|
}, "de_DescribeDatasetCommand");
|
|
1680
|
-
var de_DescribeDatasetCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1681
|
-
const parsedOutput = {
|
|
1682
|
-
...output,
|
|
1683
|
-
body: await parseErrorBody(output.body, context)
|
|
1684
|
-
};
|
|
1685
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1686
|
-
switch (errorCode) {
|
|
1687
|
-
case "ResourceNotFoundException":
|
|
1688
|
-
case "com.amazonaws.databrew#ResourceNotFoundException":
|
|
1689
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1690
|
-
case "ValidationException":
|
|
1691
|
-
case "com.amazonaws.databrew#ValidationException":
|
|
1692
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1693
|
-
default:
|
|
1694
|
-
const parsedBody = parsedOutput.body;
|
|
1695
|
-
return throwDefaultError({
|
|
1696
|
-
output,
|
|
1697
|
-
parsedBody,
|
|
1698
|
-
errorCode
|
|
1699
|
-
});
|
|
1700
|
-
}
|
|
1701
|
-
}, "de_DescribeDatasetCommandError");
|
|
1702
1315
|
var de_DescribeJobCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1703
1316
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1704
|
-
return
|
|
1317
|
+
return de_CommandError(output, context);
|
|
1705
1318
|
}
|
|
1706
1319
|
const contents = (0, import_smithy_client.map)({
|
|
1707
1320
|
$metadata: deserializeMetadata(output)
|
|
@@ -1736,31 +1349,9 @@ var de_DescribeJobCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
1736
1349
|
Object.assign(contents, doc);
|
|
1737
1350
|
return contents;
|
|
1738
1351
|
}, "de_DescribeJobCommand");
|
|
1739
|
-
var de_DescribeJobCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1740
|
-
const parsedOutput = {
|
|
1741
|
-
...output,
|
|
1742
|
-
body: await parseErrorBody(output.body, context)
|
|
1743
|
-
};
|
|
1744
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1745
|
-
switch (errorCode) {
|
|
1746
|
-
case "ResourceNotFoundException":
|
|
1747
|
-
case "com.amazonaws.databrew#ResourceNotFoundException":
|
|
1748
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1749
|
-
case "ValidationException":
|
|
1750
|
-
case "com.amazonaws.databrew#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_DescribeJobCommandError");
|
|
1761
1352
|
var de_DescribeJobRunCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1762
1353
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1763
|
-
return
|
|
1354
|
+
return de_CommandError(output, context);
|
|
1764
1355
|
}
|
|
1765
1356
|
const contents = (0, import_smithy_client.map)({
|
|
1766
1357
|
$metadata: deserializeMetadata(output)
|
|
@@ -1790,31 +1381,9 @@ var de_DescribeJobRunCommand = /* @__PURE__ */ __name(async (output, context) =>
|
|
|
1790
1381
|
Object.assign(contents, doc);
|
|
1791
1382
|
return contents;
|
|
1792
1383
|
}, "de_DescribeJobRunCommand");
|
|
1793
|
-
var de_DescribeJobRunCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1794
|
-
const parsedOutput = {
|
|
1795
|
-
...output,
|
|
1796
|
-
body: await parseErrorBody(output.body, context)
|
|
1797
|
-
};
|
|
1798
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1799
|
-
switch (errorCode) {
|
|
1800
|
-
case "ResourceNotFoundException":
|
|
1801
|
-
case "com.amazonaws.databrew#ResourceNotFoundException":
|
|
1802
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1803
|
-
case "ValidationException":
|
|
1804
|
-
case "com.amazonaws.databrew#ValidationException":
|
|
1805
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1806
|
-
default:
|
|
1807
|
-
const parsedBody = parsedOutput.body;
|
|
1808
|
-
return throwDefaultError({
|
|
1809
|
-
output,
|
|
1810
|
-
parsedBody,
|
|
1811
|
-
errorCode
|
|
1812
|
-
});
|
|
1813
|
-
}
|
|
1814
|
-
}, "de_DescribeJobRunCommandError");
|
|
1815
1384
|
var de_DescribeProjectCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1816
1385
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1817
|
-
return
|
|
1386
|
+
return de_CommandError(output, context);
|
|
1818
1387
|
}
|
|
1819
1388
|
const contents = (0, import_smithy_client.map)({
|
|
1820
1389
|
$metadata: deserializeMetadata(output)
|
|
@@ -1839,31 +1408,9 @@ var de_DescribeProjectCommand = /* @__PURE__ */ __name(async (output, context) =
|
|
|
1839
1408
|
Object.assign(contents, doc);
|
|
1840
1409
|
return contents;
|
|
1841
1410
|
}, "de_DescribeProjectCommand");
|
|
1842
|
-
var de_DescribeProjectCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1843
|
-
const parsedOutput = {
|
|
1844
|
-
...output,
|
|
1845
|
-
body: await parseErrorBody(output.body, context)
|
|
1846
|
-
};
|
|
1847
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1848
|
-
switch (errorCode) {
|
|
1849
|
-
case "ResourceNotFoundException":
|
|
1850
|
-
case "com.amazonaws.databrew#ResourceNotFoundException":
|
|
1851
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1852
|
-
case "ValidationException":
|
|
1853
|
-
case "com.amazonaws.databrew#ValidationException":
|
|
1854
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1855
|
-
default:
|
|
1856
|
-
const parsedBody = parsedOutput.body;
|
|
1857
|
-
return throwDefaultError({
|
|
1858
|
-
output,
|
|
1859
|
-
parsedBody,
|
|
1860
|
-
errorCode
|
|
1861
|
-
});
|
|
1862
|
-
}
|
|
1863
|
-
}, "de_DescribeProjectCommandError");
|
|
1864
1411
|
var de_DescribeRecipeCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1865
1412
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1866
|
-
return
|
|
1413
|
+
return de_CommandError(output, context);
|
|
1867
1414
|
}
|
|
1868
1415
|
const contents = (0, import_smithy_client.map)({
|
|
1869
1416
|
$metadata: deserializeMetadata(output)
|
|
@@ -1887,31 +1434,9 @@ var de_DescribeRecipeCommand = /* @__PURE__ */ __name(async (output, context) =>
|
|
|
1887
1434
|
Object.assign(contents, doc);
|
|
1888
1435
|
return contents;
|
|
1889
1436
|
}, "de_DescribeRecipeCommand");
|
|
1890
|
-
var de_DescribeRecipeCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1891
|
-
const parsedOutput = {
|
|
1892
|
-
...output,
|
|
1893
|
-
body: await parseErrorBody(output.body, context)
|
|
1894
|
-
};
|
|
1895
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1896
|
-
switch (errorCode) {
|
|
1897
|
-
case "ResourceNotFoundException":
|
|
1898
|
-
case "com.amazonaws.databrew#ResourceNotFoundException":
|
|
1899
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1900
|
-
case "ValidationException":
|
|
1901
|
-
case "com.amazonaws.databrew#ValidationException":
|
|
1902
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1903
|
-
default:
|
|
1904
|
-
const parsedBody = parsedOutput.body;
|
|
1905
|
-
return throwDefaultError({
|
|
1906
|
-
output,
|
|
1907
|
-
parsedBody,
|
|
1908
|
-
errorCode
|
|
1909
|
-
});
|
|
1910
|
-
}
|
|
1911
|
-
}, "de_DescribeRecipeCommandError");
|
|
1912
1437
|
var de_DescribeRulesetCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1913
1438
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1914
|
-
return
|
|
1439
|
+
return de_CommandError(output, context);
|
|
1915
1440
|
}
|
|
1916
1441
|
const contents = (0, import_smithy_client.map)({
|
|
1917
1442
|
$metadata: deserializeMetadata(output)
|
|
@@ -1932,31 +1457,9 @@ var de_DescribeRulesetCommand = /* @__PURE__ */ __name(async (output, context) =
|
|
|
1932
1457
|
Object.assign(contents, doc);
|
|
1933
1458
|
return contents;
|
|
1934
1459
|
}, "de_DescribeRulesetCommand");
|
|
1935
|
-
var de_DescribeRulesetCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1936
|
-
const parsedOutput = {
|
|
1937
|
-
...output,
|
|
1938
|
-
body: await parseErrorBody(output.body, context)
|
|
1939
|
-
};
|
|
1940
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1941
|
-
switch (errorCode) {
|
|
1942
|
-
case "ResourceNotFoundException":
|
|
1943
|
-
case "com.amazonaws.databrew#ResourceNotFoundException":
|
|
1944
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1945
|
-
case "ValidationException":
|
|
1946
|
-
case "com.amazonaws.databrew#ValidationException":
|
|
1947
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1948
|
-
default:
|
|
1949
|
-
const parsedBody = parsedOutput.body;
|
|
1950
|
-
return throwDefaultError({
|
|
1951
|
-
output,
|
|
1952
|
-
parsedBody,
|
|
1953
|
-
errorCode
|
|
1954
|
-
});
|
|
1955
|
-
}
|
|
1956
|
-
}, "de_DescribeRulesetCommandError");
|
|
1957
1460
|
var de_DescribeScheduleCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1958
1461
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1959
|
-
return
|
|
1462
|
+
return de_CommandError(output, context);
|
|
1960
1463
|
}
|
|
1961
1464
|
const contents = (0, import_smithy_client.map)({
|
|
1962
1465
|
$metadata: deserializeMetadata(output)
|
|
@@ -1973,68 +1476,27 @@ var de_DescribeScheduleCommand = /* @__PURE__ */ __name(async (output, context)
|
|
|
1973
1476
|
ResourceArn: import_smithy_client.expectString,
|
|
1974
1477
|
Tags: import_smithy_client._json
|
|
1975
1478
|
});
|
|
1976
|
-
Object.assign(contents, doc);
|
|
1977
|
-
return contents;
|
|
1978
|
-
}, "de_DescribeScheduleCommand");
|
|
1979
|
-
var
|
|
1980
|
-
|
|
1981
|
-
|
|
1982
|
-
body: await parseErrorBody(output.body, context)
|
|
1983
|
-
};
|
|
1984
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1985
|
-
switch (errorCode) {
|
|
1986
|
-
case "ResourceNotFoundException":
|
|
1987
|
-
case "com.amazonaws.databrew#ResourceNotFoundException":
|
|
1988
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1989
|
-
case "ValidationException":
|
|
1990
|
-
case "com.amazonaws.databrew#ValidationException":
|
|
1991
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1992
|
-
default:
|
|
1993
|
-
const parsedBody = parsedOutput.body;
|
|
1994
|
-
return throwDefaultError({
|
|
1995
|
-
output,
|
|
1996
|
-
parsedBody,
|
|
1997
|
-
errorCode
|
|
1998
|
-
});
|
|
1999
|
-
}
|
|
2000
|
-
}, "de_DescribeScheduleCommandError");
|
|
2001
|
-
var de_ListDatasetsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2002
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2003
|
-
return de_ListDatasetsCommandError(output, context);
|
|
2004
|
-
}
|
|
2005
|
-
const contents = (0, import_smithy_client.map)({
|
|
2006
|
-
$metadata: deserializeMetadata(output)
|
|
2007
|
-
});
|
|
2008
|
-
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
|
|
2009
|
-
const doc = (0, import_smithy_client.take)(data, {
|
|
2010
|
-
Datasets: (_) => de_DatasetList(_, context),
|
|
2011
|
-
NextToken: import_smithy_client.expectString
|
|
2012
|
-
});
|
|
2013
|
-
Object.assign(contents, doc);
|
|
2014
|
-
return contents;
|
|
2015
|
-
}, "de_ListDatasetsCommand");
|
|
2016
|
-
var de_ListDatasetsCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2017
|
-
const parsedOutput = {
|
|
2018
|
-
...output,
|
|
2019
|
-
body: await parseErrorBody(output.body, context)
|
|
2020
|
-
};
|
|
2021
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2022
|
-
switch (errorCode) {
|
|
2023
|
-
case "ValidationException":
|
|
2024
|
-
case "com.amazonaws.databrew#ValidationException":
|
|
2025
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2026
|
-
default:
|
|
2027
|
-
const parsedBody = parsedOutput.body;
|
|
2028
|
-
return throwDefaultError({
|
|
2029
|
-
output,
|
|
2030
|
-
parsedBody,
|
|
2031
|
-
errorCode
|
|
2032
|
-
});
|
|
1479
|
+
Object.assign(contents, doc);
|
|
1480
|
+
return contents;
|
|
1481
|
+
}, "de_DescribeScheduleCommand");
|
|
1482
|
+
var de_ListDatasetsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1483
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1484
|
+
return de_CommandError(output, context);
|
|
2033
1485
|
}
|
|
2034
|
-
|
|
1486
|
+
const contents = (0, import_smithy_client.map)({
|
|
1487
|
+
$metadata: deserializeMetadata(output)
|
|
1488
|
+
});
|
|
1489
|
+
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
|
|
1490
|
+
const doc = (0, import_smithy_client.take)(data, {
|
|
1491
|
+
Datasets: (_) => de_DatasetList(_, context),
|
|
1492
|
+
NextToken: import_smithy_client.expectString
|
|
1493
|
+
});
|
|
1494
|
+
Object.assign(contents, doc);
|
|
1495
|
+
return contents;
|
|
1496
|
+
}, "de_ListDatasetsCommand");
|
|
2035
1497
|
var de_ListJobRunsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2036
1498
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2037
|
-
return
|
|
1499
|
+
return de_CommandError(output, context);
|
|
2038
1500
|
}
|
|
2039
1501
|
const contents = (0, import_smithy_client.map)({
|
|
2040
1502
|
$metadata: deserializeMetadata(output)
|
|
@@ -2047,31 +1509,9 @@ var de_ListJobRunsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
2047
1509
|
Object.assign(contents, doc);
|
|
2048
1510
|
return contents;
|
|
2049
1511
|
}, "de_ListJobRunsCommand");
|
|
2050
|
-
var de_ListJobRunsCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2051
|
-
const parsedOutput = {
|
|
2052
|
-
...output,
|
|
2053
|
-
body: await parseErrorBody(output.body, context)
|
|
2054
|
-
};
|
|
2055
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2056
|
-
switch (errorCode) {
|
|
2057
|
-
case "ResourceNotFoundException":
|
|
2058
|
-
case "com.amazonaws.databrew#ResourceNotFoundException":
|
|
2059
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2060
|
-
case "ValidationException":
|
|
2061
|
-
case "com.amazonaws.databrew#ValidationException":
|
|
2062
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2063
|
-
default:
|
|
2064
|
-
const parsedBody = parsedOutput.body;
|
|
2065
|
-
return throwDefaultError({
|
|
2066
|
-
output,
|
|
2067
|
-
parsedBody,
|
|
2068
|
-
errorCode
|
|
2069
|
-
});
|
|
2070
|
-
}
|
|
2071
|
-
}, "de_ListJobRunsCommandError");
|
|
2072
1512
|
var de_ListJobsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2073
1513
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2074
|
-
return
|
|
1514
|
+
return de_CommandError(output, context);
|
|
2075
1515
|
}
|
|
2076
1516
|
const contents = (0, import_smithy_client.map)({
|
|
2077
1517
|
$metadata: deserializeMetadata(output)
|
|
@@ -2084,28 +1524,9 @@ var de_ListJobsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
2084
1524
|
Object.assign(contents, doc);
|
|
2085
1525
|
return contents;
|
|
2086
1526
|
}, "de_ListJobsCommand");
|
|
2087
|
-
var de_ListJobsCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2088
|
-
const parsedOutput = {
|
|
2089
|
-
...output,
|
|
2090
|
-
body: await parseErrorBody(output.body, context)
|
|
2091
|
-
};
|
|
2092
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2093
|
-
switch (errorCode) {
|
|
2094
|
-
case "ValidationException":
|
|
2095
|
-
case "com.amazonaws.databrew#ValidationException":
|
|
2096
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2097
|
-
default:
|
|
2098
|
-
const parsedBody = parsedOutput.body;
|
|
2099
|
-
return throwDefaultError({
|
|
2100
|
-
output,
|
|
2101
|
-
parsedBody,
|
|
2102
|
-
errorCode
|
|
2103
|
-
});
|
|
2104
|
-
}
|
|
2105
|
-
}, "de_ListJobsCommandError");
|
|
2106
1527
|
var de_ListProjectsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2107
1528
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2108
|
-
return
|
|
1529
|
+
return de_CommandError(output, context);
|
|
2109
1530
|
}
|
|
2110
1531
|
const contents = (0, import_smithy_client.map)({
|
|
2111
1532
|
$metadata: deserializeMetadata(output)
|
|
@@ -2118,28 +1539,9 @@ var de_ListProjectsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
2118
1539
|
Object.assign(contents, doc);
|
|
2119
1540
|
return contents;
|
|
2120
1541
|
}, "de_ListProjectsCommand");
|
|
2121
|
-
var de_ListProjectsCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2122
|
-
const parsedOutput = {
|
|
2123
|
-
...output,
|
|
2124
|
-
body: await parseErrorBody(output.body, context)
|
|
2125
|
-
};
|
|
2126
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2127
|
-
switch (errorCode) {
|
|
2128
|
-
case "ValidationException":
|
|
2129
|
-
case "com.amazonaws.databrew#ValidationException":
|
|
2130
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2131
|
-
default:
|
|
2132
|
-
const parsedBody = parsedOutput.body;
|
|
2133
|
-
return throwDefaultError({
|
|
2134
|
-
output,
|
|
2135
|
-
parsedBody,
|
|
2136
|
-
errorCode
|
|
2137
|
-
});
|
|
2138
|
-
}
|
|
2139
|
-
}, "de_ListProjectsCommandError");
|
|
2140
1542
|
var de_ListRecipesCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2141
1543
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2142
|
-
return
|
|
1544
|
+
return de_CommandError(output, context);
|
|
2143
1545
|
}
|
|
2144
1546
|
const contents = (0, import_smithy_client.map)({
|
|
2145
1547
|
$metadata: deserializeMetadata(output)
|
|
@@ -2152,28 +1554,9 @@ var de_ListRecipesCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
2152
1554
|
Object.assign(contents, doc);
|
|
2153
1555
|
return contents;
|
|
2154
1556
|
}, "de_ListRecipesCommand");
|
|
2155
|
-
var de_ListRecipesCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2156
|
-
const parsedOutput = {
|
|
2157
|
-
...output,
|
|
2158
|
-
body: await parseErrorBody(output.body, context)
|
|
2159
|
-
};
|
|
2160
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2161
|
-
switch (errorCode) {
|
|
2162
|
-
case "ValidationException":
|
|
2163
|
-
case "com.amazonaws.databrew#ValidationException":
|
|
2164
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2165
|
-
default:
|
|
2166
|
-
const parsedBody = parsedOutput.body;
|
|
2167
|
-
return throwDefaultError({
|
|
2168
|
-
output,
|
|
2169
|
-
parsedBody,
|
|
2170
|
-
errorCode
|
|
2171
|
-
});
|
|
2172
|
-
}
|
|
2173
|
-
}, "de_ListRecipesCommandError");
|
|
2174
1557
|
var de_ListRecipeVersionsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2175
1558
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2176
|
-
return
|
|
1559
|
+
return de_CommandError(output, context);
|
|
2177
1560
|
}
|
|
2178
1561
|
const contents = (0, import_smithy_client.map)({
|
|
2179
1562
|
$metadata: deserializeMetadata(output)
|
|
@@ -2186,28 +1569,9 @@ var de_ListRecipeVersionsCommand = /* @__PURE__ */ __name(async (output, context
|
|
|
2186
1569
|
Object.assign(contents, doc);
|
|
2187
1570
|
return contents;
|
|
2188
1571
|
}, "de_ListRecipeVersionsCommand");
|
|
2189
|
-
var de_ListRecipeVersionsCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2190
|
-
const parsedOutput = {
|
|
2191
|
-
...output,
|
|
2192
|
-
body: await parseErrorBody(output.body, context)
|
|
2193
|
-
};
|
|
2194
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2195
|
-
switch (errorCode) {
|
|
2196
|
-
case "ValidationException":
|
|
2197
|
-
case "com.amazonaws.databrew#ValidationException":
|
|
2198
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2199
|
-
default:
|
|
2200
|
-
const parsedBody = parsedOutput.body;
|
|
2201
|
-
return throwDefaultError({
|
|
2202
|
-
output,
|
|
2203
|
-
parsedBody,
|
|
2204
|
-
errorCode
|
|
2205
|
-
});
|
|
2206
|
-
}
|
|
2207
|
-
}, "de_ListRecipeVersionsCommandError");
|
|
2208
1572
|
var de_ListRulesetsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2209
1573
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2210
|
-
return
|
|
1574
|
+
return de_CommandError(output, context);
|
|
2211
1575
|
}
|
|
2212
1576
|
const contents = (0, import_smithy_client.map)({
|
|
2213
1577
|
$metadata: deserializeMetadata(output)
|
|
@@ -2220,31 +1584,9 @@ var de_ListRulesetsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
2220
1584
|
Object.assign(contents, doc);
|
|
2221
1585
|
return contents;
|
|
2222
1586
|
}, "de_ListRulesetsCommand");
|
|
2223
|
-
var de_ListRulesetsCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2224
|
-
const parsedOutput = {
|
|
2225
|
-
...output,
|
|
2226
|
-
body: await parseErrorBody(output.body, context)
|
|
2227
|
-
};
|
|
2228
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2229
|
-
switch (errorCode) {
|
|
2230
|
-
case "ResourceNotFoundException":
|
|
2231
|
-
case "com.amazonaws.databrew#ResourceNotFoundException":
|
|
2232
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2233
|
-
case "ValidationException":
|
|
2234
|
-
case "com.amazonaws.databrew#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_ListRulesetsCommandError");
|
|
2245
1587
|
var de_ListSchedulesCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2246
1588
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2247
|
-
return
|
|
1589
|
+
return de_CommandError(output, context);
|
|
2248
1590
|
}
|
|
2249
1591
|
const contents = (0, import_smithy_client.map)({
|
|
2250
1592
|
$metadata: deserializeMetadata(output)
|
|
@@ -2257,28 +1599,9 @@ var de_ListSchedulesCommand = /* @__PURE__ */ __name(async (output, context) =>
|
|
|
2257
1599
|
Object.assign(contents, doc);
|
|
2258
1600
|
return contents;
|
|
2259
1601
|
}, "de_ListSchedulesCommand");
|
|
2260
|
-
var de_ListSchedulesCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2261
|
-
const parsedOutput = {
|
|
2262
|
-
...output,
|
|
2263
|
-
body: await parseErrorBody(output.body, context)
|
|
2264
|
-
};
|
|
2265
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2266
|
-
switch (errorCode) {
|
|
2267
|
-
case "ValidationException":
|
|
2268
|
-
case "com.amazonaws.databrew#ValidationException":
|
|
2269
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2270
|
-
default:
|
|
2271
|
-
const parsedBody = parsedOutput.body;
|
|
2272
|
-
return throwDefaultError({
|
|
2273
|
-
output,
|
|
2274
|
-
parsedBody,
|
|
2275
|
-
errorCode
|
|
2276
|
-
});
|
|
2277
|
-
}
|
|
2278
|
-
}, "de_ListSchedulesCommandError");
|
|
2279
1602
|
var de_ListTagsForResourceCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2280
1603
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2281
|
-
return
|
|
1604
|
+
return de_CommandError(output, context);
|
|
2282
1605
|
}
|
|
2283
1606
|
const contents = (0, import_smithy_client.map)({
|
|
2284
1607
|
$metadata: deserializeMetadata(output)
|
|
@@ -2290,34 +1613,9 @@ var de_ListTagsForResourceCommand = /* @__PURE__ */ __name(async (output, contex
|
|
|
2290
1613
|
Object.assign(contents, doc);
|
|
2291
1614
|
return contents;
|
|
2292
1615
|
}, "de_ListTagsForResourceCommand");
|
|
2293
|
-
var de_ListTagsForResourceCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2294
|
-
const parsedOutput = {
|
|
2295
|
-
...output,
|
|
2296
|
-
body: await parseErrorBody(output.body, context)
|
|
2297
|
-
};
|
|
2298
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2299
|
-
switch (errorCode) {
|
|
2300
|
-
case "InternalServerException":
|
|
2301
|
-
case "com.amazonaws.databrew#InternalServerException":
|
|
2302
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2303
|
-
case "ResourceNotFoundException":
|
|
2304
|
-
case "com.amazonaws.databrew#ResourceNotFoundException":
|
|
2305
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2306
|
-
case "ValidationException":
|
|
2307
|
-
case "com.amazonaws.databrew#ValidationException":
|
|
2308
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2309
|
-
default:
|
|
2310
|
-
const parsedBody = parsedOutput.body;
|
|
2311
|
-
return throwDefaultError({
|
|
2312
|
-
output,
|
|
2313
|
-
parsedBody,
|
|
2314
|
-
errorCode
|
|
2315
|
-
});
|
|
2316
|
-
}
|
|
2317
|
-
}, "de_ListTagsForResourceCommandError");
|
|
2318
1616
|
var de_PublishRecipeCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2319
1617
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2320
|
-
return
|
|
1618
|
+
return de_CommandError(output, context);
|
|
2321
1619
|
}
|
|
2322
1620
|
const contents = (0, import_smithy_client.map)({
|
|
2323
1621
|
$metadata: deserializeMetadata(output)
|
|
@@ -2329,117 +1627,39 @@ var de_PublishRecipeCommand = /* @__PURE__ */ __name(async (output, context) =>
|
|
|
2329
1627
|
Object.assign(contents, doc);
|
|
2330
1628
|
return contents;
|
|
2331
1629
|
}, "de_PublishRecipeCommand");
|
|
2332
|
-
var de_PublishRecipeCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2333
|
-
const parsedOutput = {
|
|
2334
|
-
...output,
|
|
2335
|
-
body: await parseErrorBody(output.body, context)
|
|
2336
|
-
};
|
|
2337
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2338
|
-
switch (errorCode) {
|
|
2339
|
-
case "ResourceNotFoundException":
|
|
2340
|
-
case "com.amazonaws.databrew#ResourceNotFoundException":
|
|
2341
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2342
|
-
case "ServiceQuotaExceededException":
|
|
2343
|
-
case "com.amazonaws.databrew#ServiceQuotaExceededException":
|
|
2344
|
-
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
2345
|
-
case "ValidationException":
|
|
2346
|
-
case "com.amazonaws.databrew#ValidationException":
|
|
2347
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2348
|
-
default:
|
|
2349
|
-
const parsedBody = parsedOutput.body;
|
|
2350
|
-
return throwDefaultError({
|
|
2351
|
-
output,
|
|
2352
|
-
parsedBody,
|
|
2353
|
-
errorCode
|
|
2354
|
-
});
|
|
2355
|
-
}
|
|
2356
|
-
}, "de_PublishRecipeCommandError");
|
|
2357
1630
|
var de_SendProjectSessionActionCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2358
1631
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2359
|
-
return
|
|
2360
|
-
}
|
|
2361
|
-
const contents = (0, import_smithy_client.map)({
|
|
2362
|
-
$metadata: deserializeMetadata(output)
|
|
2363
|
-
});
|
|
2364
|
-
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
|
|
2365
|
-
const doc = (0, import_smithy_client.take)(data, {
|
|
2366
|
-
ActionId: import_smithy_client.expectInt32,
|
|
2367
|
-
Name: import_smithy_client.expectString,
|
|
2368
|
-
Result: import_smithy_client.expectString
|
|
2369
|
-
});
|
|
2370
|
-
Object.assign(contents, doc);
|
|
2371
|
-
return contents;
|
|
2372
|
-
}, "de_SendProjectSessionActionCommand");
|
|
2373
|
-
var de_SendProjectSessionActionCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2374
|
-
const parsedOutput = {
|
|
2375
|
-
...output,
|
|
2376
|
-
body: await parseErrorBody(output.body, context)
|
|
2377
|
-
};
|
|
2378
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2379
|
-
switch (errorCode) {
|
|
2380
|
-
case "ConflictException":
|
|
2381
|
-
case "com.amazonaws.databrew#ConflictException":
|
|
2382
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
2383
|
-
case "ResourceNotFoundException":
|
|
2384
|
-
case "com.amazonaws.databrew#ResourceNotFoundException":
|
|
2385
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2386
|
-
case "ValidationException":
|
|
2387
|
-
case "com.amazonaws.databrew#ValidationException":
|
|
2388
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2389
|
-
default:
|
|
2390
|
-
const parsedBody = parsedOutput.body;
|
|
2391
|
-
return throwDefaultError({
|
|
2392
|
-
output,
|
|
2393
|
-
parsedBody,
|
|
2394
|
-
errorCode
|
|
2395
|
-
});
|
|
2396
|
-
}
|
|
2397
|
-
}, "de_SendProjectSessionActionCommandError");
|
|
2398
|
-
var de_StartJobRunCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2399
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2400
|
-
return de_StartJobRunCommandError(output, context);
|
|
1632
|
+
return de_CommandError(output, context);
|
|
2401
1633
|
}
|
|
2402
1634
|
const contents = (0, import_smithy_client.map)({
|
|
2403
1635
|
$metadata: deserializeMetadata(output)
|
|
2404
1636
|
});
|
|
2405
1637
|
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
|
|
2406
|
-
const doc = (0, import_smithy_client.take)(data, {
|
|
2407
|
-
|
|
2408
|
-
|
|
2409
|
-
|
|
2410
|
-
|
|
2411
|
-
|
|
2412
|
-
|
|
2413
|
-
|
|
2414
|
-
|
|
2415
|
-
|
|
2416
|
-
|
|
2417
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2418
|
-
switch (errorCode) {
|
|
2419
|
-
case "ConflictException":
|
|
2420
|
-
case "com.amazonaws.databrew#ConflictException":
|
|
2421
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
2422
|
-
case "ResourceNotFoundException":
|
|
2423
|
-
case "com.amazonaws.databrew#ResourceNotFoundException":
|
|
2424
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2425
|
-
case "ServiceQuotaExceededException":
|
|
2426
|
-
case "com.amazonaws.databrew#ServiceQuotaExceededException":
|
|
2427
|
-
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
2428
|
-
case "ValidationException":
|
|
2429
|
-
case "com.amazonaws.databrew#ValidationException":
|
|
2430
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2431
|
-
default:
|
|
2432
|
-
const parsedBody = parsedOutput.body;
|
|
2433
|
-
return throwDefaultError({
|
|
2434
|
-
output,
|
|
2435
|
-
parsedBody,
|
|
2436
|
-
errorCode
|
|
2437
|
-
});
|
|
1638
|
+
const doc = (0, import_smithy_client.take)(data, {
|
|
1639
|
+
ActionId: import_smithy_client.expectInt32,
|
|
1640
|
+
Name: import_smithy_client.expectString,
|
|
1641
|
+
Result: import_smithy_client.expectString
|
|
1642
|
+
});
|
|
1643
|
+
Object.assign(contents, doc);
|
|
1644
|
+
return contents;
|
|
1645
|
+
}, "de_SendProjectSessionActionCommand");
|
|
1646
|
+
var de_StartJobRunCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1647
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1648
|
+
return de_CommandError(output, context);
|
|
2438
1649
|
}
|
|
2439
|
-
|
|
1650
|
+
const contents = (0, import_smithy_client.map)({
|
|
1651
|
+
$metadata: deserializeMetadata(output)
|
|
1652
|
+
});
|
|
1653
|
+
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
|
|
1654
|
+
const doc = (0, import_smithy_client.take)(data, {
|
|
1655
|
+
RunId: import_smithy_client.expectString
|
|
1656
|
+
});
|
|
1657
|
+
Object.assign(contents, doc);
|
|
1658
|
+
return contents;
|
|
1659
|
+
}, "de_StartJobRunCommand");
|
|
2440
1660
|
var de_StartProjectSessionCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2441
1661
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2442
|
-
return
|
|
1662
|
+
return de_CommandError(output, context);
|
|
2443
1663
|
}
|
|
2444
1664
|
const contents = (0, import_smithy_client.map)({
|
|
2445
1665
|
$metadata: deserializeMetadata(output)
|
|
@@ -2452,37 +1672,9 @@ var de_StartProjectSessionCommand = /* @__PURE__ */ __name(async (output, contex
|
|
|
2452
1672
|
Object.assign(contents, doc);
|
|
2453
1673
|
return contents;
|
|
2454
1674
|
}, "de_StartProjectSessionCommand");
|
|
2455
|
-
var de_StartProjectSessionCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2456
|
-
const parsedOutput = {
|
|
2457
|
-
...output,
|
|
2458
|
-
body: await parseErrorBody(output.body, context)
|
|
2459
|
-
};
|
|
2460
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2461
|
-
switch (errorCode) {
|
|
2462
|
-
case "ConflictException":
|
|
2463
|
-
case "com.amazonaws.databrew#ConflictException":
|
|
2464
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
2465
|
-
case "ResourceNotFoundException":
|
|
2466
|
-
case "com.amazonaws.databrew#ResourceNotFoundException":
|
|
2467
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2468
|
-
case "ServiceQuotaExceededException":
|
|
2469
|
-
case "com.amazonaws.databrew#ServiceQuotaExceededException":
|
|
2470
|
-
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
2471
|
-
case "ValidationException":
|
|
2472
|
-
case "com.amazonaws.databrew#ValidationException":
|
|
2473
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2474
|
-
default:
|
|
2475
|
-
const parsedBody = parsedOutput.body;
|
|
2476
|
-
return throwDefaultError({
|
|
2477
|
-
output,
|
|
2478
|
-
parsedBody,
|
|
2479
|
-
errorCode
|
|
2480
|
-
});
|
|
2481
|
-
}
|
|
2482
|
-
}, "de_StartProjectSessionCommandError");
|
|
2483
1675
|
var de_StopJobRunCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2484
1676
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2485
|
-
return
|
|
1677
|
+
return de_CommandError(output, context);
|
|
2486
1678
|
}
|
|
2487
1679
|
const contents = (0, import_smithy_client.map)({
|
|
2488
1680
|
$metadata: deserializeMetadata(output)
|
|
@@ -2494,31 +1686,9 @@ var de_StopJobRunCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
2494
1686
|
Object.assign(contents, doc);
|
|
2495
1687
|
return contents;
|
|
2496
1688
|
}, "de_StopJobRunCommand");
|
|
2497
|
-
var de_StopJobRunCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2498
|
-
const parsedOutput = {
|
|
2499
|
-
...output,
|
|
2500
|
-
body: await parseErrorBody(output.body, context)
|
|
2501
|
-
};
|
|
2502
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2503
|
-
switch (errorCode) {
|
|
2504
|
-
case "ResourceNotFoundException":
|
|
2505
|
-
case "com.amazonaws.databrew#ResourceNotFoundException":
|
|
2506
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2507
|
-
case "ValidationException":
|
|
2508
|
-
case "com.amazonaws.databrew#ValidationException":
|
|
2509
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2510
|
-
default:
|
|
2511
|
-
const parsedBody = parsedOutput.body;
|
|
2512
|
-
return throwDefaultError({
|
|
2513
|
-
output,
|
|
2514
|
-
parsedBody,
|
|
2515
|
-
errorCode
|
|
2516
|
-
});
|
|
2517
|
-
}
|
|
2518
|
-
}, "de_StopJobRunCommandError");
|
|
2519
1689
|
var de_TagResourceCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2520
1690
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2521
|
-
return
|
|
1691
|
+
return de_CommandError(output, context);
|
|
2522
1692
|
}
|
|
2523
1693
|
const contents = (0, import_smithy_client.map)({
|
|
2524
1694
|
$metadata: deserializeMetadata(output)
|
|
@@ -2526,34 +1696,9 @@ var de_TagResourceCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
2526
1696
|
await (0, import_smithy_client.collectBody)(output.body, context);
|
|
2527
1697
|
return contents;
|
|
2528
1698
|
}, "de_TagResourceCommand");
|
|
2529
|
-
var de_TagResourceCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2530
|
-
const parsedOutput = {
|
|
2531
|
-
...output,
|
|
2532
|
-
body: await parseErrorBody(output.body, context)
|
|
2533
|
-
};
|
|
2534
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2535
|
-
switch (errorCode) {
|
|
2536
|
-
case "InternalServerException":
|
|
2537
|
-
case "com.amazonaws.databrew#InternalServerException":
|
|
2538
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2539
|
-
case "ResourceNotFoundException":
|
|
2540
|
-
case "com.amazonaws.databrew#ResourceNotFoundException":
|
|
2541
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2542
|
-
case "ValidationException":
|
|
2543
|
-
case "com.amazonaws.databrew#ValidationException":
|
|
2544
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2545
|
-
default:
|
|
2546
|
-
const parsedBody = parsedOutput.body;
|
|
2547
|
-
return throwDefaultError({
|
|
2548
|
-
output,
|
|
2549
|
-
parsedBody,
|
|
2550
|
-
errorCode
|
|
2551
|
-
});
|
|
2552
|
-
}
|
|
2553
|
-
}, "de_TagResourceCommandError");
|
|
2554
1699
|
var de_UntagResourceCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2555
1700
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2556
|
-
return
|
|
1701
|
+
return de_CommandError(output, context);
|
|
2557
1702
|
}
|
|
2558
1703
|
const contents = (0, import_smithy_client.map)({
|
|
2559
1704
|
$metadata: deserializeMetadata(output)
|
|
@@ -2561,34 +1706,9 @@ var de_UntagResourceCommand = /* @__PURE__ */ __name(async (output, context) =>
|
|
|
2561
1706
|
await (0, import_smithy_client.collectBody)(output.body, context);
|
|
2562
1707
|
return contents;
|
|
2563
1708
|
}, "de_UntagResourceCommand");
|
|
2564
|
-
var de_UntagResourceCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2565
|
-
const parsedOutput = {
|
|
2566
|
-
...output,
|
|
2567
|
-
body: await parseErrorBody(output.body, context)
|
|
2568
|
-
};
|
|
2569
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2570
|
-
switch (errorCode) {
|
|
2571
|
-
case "InternalServerException":
|
|
2572
|
-
case "com.amazonaws.databrew#InternalServerException":
|
|
2573
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2574
|
-
case "ResourceNotFoundException":
|
|
2575
|
-
case "com.amazonaws.databrew#ResourceNotFoundException":
|
|
2576
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2577
|
-
case "ValidationException":
|
|
2578
|
-
case "com.amazonaws.databrew#ValidationException":
|
|
2579
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2580
|
-
default:
|
|
2581
|
-
const parsedBody = parsedOutput.body;
|
|
2582
|
-
return throwDefaultError({
|
|
2583
|
-
output,
|
|
2584
|
-
parsedBody,
|
|
2585
|
-
errorCode
|
|
2586
|
-
});
|
|
2587
|
-
}
|
|
2588
|
-
}, "de_UntagResourceCommandError");
|
|
2589
1709
|
var de_UpdateDatasetCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2590
1710
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2591
|
-
return
|
|
1711
|
+
return de_CommandError(output, context);
|
|
2592
1712
|
}
|
|
2593
1713
|
const contents = (0, import_smithy_client.map)({
|
|
2594
1714
|
$metadata: deserializeMetadata(output)
|
|
@@ -2600,34 +1720,9 @@ var de_UpdateDatasetCommand = /* @__PURE__ */ __name(async (output, context) =>
|
|
|
2600
1720
|
Object.assign(contents, doc);
|
|
2601
1721
|
return contents;
|
|
2602
1722
|
}, "de_UpdateDatasetCommand");
|
|
2603
|
-
var de_UpdateDatasetCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2604
|
-
const parsedOutput = {
|
|
2605
|
-
...output,
|
|
2606
|
-
body: await parseErrorBody(output.body, context)
|
|
2607
|
-
};
|
|
2608
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2609
|
-
switch (errorCode) {
|
|
2610
|
-
case "AccessDeniedException":
|
|
2611
|
-
case "com.amazonaws.databrew#AccessDeniedException":
|
|
2612
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2613
|
-
case "ResourceNotFoundException":
|
|
2614
|
-
case "com.amazonaws.databrew#ResourceNotFoundException":
|
|
2615
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2616
|
-
case "ValidationException":
|
|
2617
|
-
case "com.amazonaws.databrew#ValidationException":
|
|
2618
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2619
|
-
default:
|
|
2620
|
-
const parsedBody = parsedOutput.body;
|
|
2621
|
-
return throwDefaultError({
|
|
2622
|
-
output,
|
|
2623
|
-
parsedBody,
|
|
2624
|
-
errorCode
|
|
2625
|
-
});
|
|
2626
|
-
}
|
|
2627
|
-
}, "de_UpdateDatasetCommandError");
|
|
2628
1723
|
var de_UpdateProfileJobCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2629
1724
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2630
|
-
return
|
|
1725
|
+
return de_CommandError(output, context);
|
|
2631
1726
|
}
|
|
2632
1727
|
const contents = (0, import_smithy_client.map)({
|
|
2633
1728
|
$metadata: deserializeMetadata(output)
|
|
@@ -2639,34 +1734,9 @@ var de_UpdateProfileJobCommand = /* @__PURE__ */ __name(async (output, context)
|
|
|
2639
1734
|
Object.assign(contents, doc);
|
|
2640
1735
|
return contents;
|
|
2641
1736
|
}, "de_UpdateProfileJobCommand");
|
|
2642
|
-
var de_UpdateProfileJobCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2643
|
-
const parsedOutput = {
|
|
2644
|
-
...output,
|
|
2645
|
-
body: await parseErrorBody(output.body, context)
|
|
2646
|
-
};
|
|
2647
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2648
|
-
switch (errorCode) {
|
|
2649
|
-
case "AccessDeniedException":
|
|
2650
|
-
case "com.amazonaws.databrew#AccessDeniedException":
|
|
2651
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2652
|
-
case "ResourceNotFoundException":
|
|
2653
|
-
case "com.amazonaws.databrew#ResourceNotFoundException":
|
|
2654
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2655
|
-
case "ValidationException":
|
|
2656
|
-
case "com.amazonaws.databrew#ValidationException":
|
|
2657
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2658
|
-
default:
|
|
2659
|
-
const parsedBody = parsedOutput.body;
|
|
2660
|
-
return throwDefaultError({
|
|
2661
|
-
output,
|
|
2662
|
-
parsedBody,
|
|
2663
|
-
errorCode
|
|
2664
|
-
});
|
|
2665
|
-
}
|
|
2666
|
-
}, "de_UpdateProfileJobCommandError");
|
|
2667
1737
|
var de_UpdateProjectCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2668
1738
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2669
|
-
return
|
|
1739
|
+
return de_CommandError(output, context);
|
|
2670
1740
|
}
|
|
2671
1741
|
const contents = (0, import_smithy_client.map)({
|
|
2672
1742
|
$metadata: deserializeMetadata(output)
|
|
@@ -2679,31 +1749,9 @@ var de_UpdateProjectCommand = /* @__PURE__ */ __name(async (output, context) =>
|
|
|
2679
1749
|
Object.assign(contents, doc);
|
|
2680
1750
|
return contents;
|
|
2681
1751
|
}, "de_UpdateProjectCommand");
|
|
2682
|
-
var de_UpdateProjectCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2683
|
-
const parsedOutput = {
|
|
2684
|
-
...output,
|
|
2685
|
-
body: await parseErrorBody(output.body, context)
|
|
2686
|
-
};
|
|
2687
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2688
|
-
switch (errorCode) {
|
|
2689
|
-
case "ResourceNotFoundException":
|
|
2690
|
-
case "com.amazonaws.databrew#ResourceNotFoundException":
|
|
2691
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2692
|
-
case "ValidationException":
|
|
2693
|
-
case "com.amazonaws.databrew#ValidationException":
|
|
2694
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2695
|
-
default:
|
|
2696
|
-
const parsedBody = parsedOutput.body;
|
|
2697
|
-
return throwDefaultError({
|
|
2698
|
-
output,
|
|
2699
|
-
parsedBody,
|
|
2700
|
-
errorCode
|
|
2701
|
-
});
|
|
2702
|
-
}
|
|
2703
|
-
}, "de_UpdateProjectCommandError");
|
|
2704
1752
|
var de_UpdateRecipeCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2705
1753
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2706
|
-
return
|
|
1754
|
+
return de_CommandError(output, context);
|
|
2707
1755
|
}
|
|
2708
1756
|
const contents = (0, import_smithy_client.map)({
|
|
2709
1757
|
$metadata: deserializeMetadata(output)
|
|
@@ -2715,31 +1763,9 @@ var de_UpdateRecipeCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
2715
1763
|
Object.assign(contents, doc);
|
|
2716
1764
|
return contents;
|
|
2717
1765
|
}, "de_UpdateRecipeCommand");
|
|
2718
|
-
var de_UpdateRecipeCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2719
|
-
const parsedOutput = {
|
|
2720
|
-
...output,
|
|
2721
|
-
body: await parseErrorBody(output.body, context)
|
|
2722
|
-
};
|
|
2723
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2724
|
-
switch (errorCode) {
|
|
2725
|
-
case "ResourceNotFoundException":
|
|
2726
|
-
case "com.amazonaws.databrew#ResourceNotFoundException":
|
|
2727
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2728
|
-
case "ValidationException":
|
|
2729
|
-
case "com.amazonaws.databrew#ValidationException":
|
|
2730
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2731
|
-
default:
|
|
2732
|
-
const parsedBody = parsedOutput.body;
|
|
2733
|
-
return throwDefaultError({
|
|
2734
|
-
output,
|
|
2735
|
-
parsedBody,
|
|
2736
|
-
errorCode
|
|
2737
|
-
});
|
|
2738
|
-
}
|
|
2739
|
-
}, "de_UpdateRecipeCommandError");
|
|
2740
1766
|
var de_UpdateRecipeJobCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2741
1767
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2742
|
-
return
|
|
1768
|
+
return de_CommandError(output, context);
|
|
2743
1769
|
}
|
|
2744
1770
|
const contents = (0, import_smithy_client.map)({
|
|
2745
1771
|
$metadata: deserializeMetadata(output)
|
|
@@ -2751,34 +1777,9 @@ var de_UpdateRecipeJobCommand = /* @__PURE__ */ __name(async (output, context) =
|
|
|
2751
1777
|
Object.assign(contents, doc);
|
|
2752
1778
|
return contents;
|
|
2753
1779
|
}, "de_UpdateRecipeJobCommand");
|
|
2754
|
-
var de_UpdateRecipeJobCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2755
|
-
const parsedOutput = {
|
|
2756
|
-
...output,
|
|
2757
|
-
body: await parseErrorBody(output.body, context)
|
|
2758
|
-
};
|
|
2759
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2760
|
-
switch (errorCode) {
|
|
2761
|
-
case "AccessDeniedException":
|
|
2762
|
-
case "com.amazonaws.databrew#AccessDeniedException":
|
|
2763
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2764
|
-
case "ResourceNotFoundException":
|
|
2765
|
-
case "com.amazonaws.databrew#ResourceNotFoundException":
|
|
2766
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2767
|
-
case "ValidationException":
|
|
2768
|
-
case "com.amazonaws.databrew#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_UpdateRecipeJobCommandError");
|
|
2779
1780
|
var de_UpdateRulesetCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2780
1781
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2781
|
-
return
|
|
1782
|
+
return de_CommandError(output, context);
|
|
2782
1783
|
}
|
|
2783
1784
|
const contents = (0, import_smithy_client.map)({
|
|
2784
1785
|
$metadata: deserializeMetadata(output)
|
|
@@ -2790,31 +1791,9 @@ var de_UpdateRulesetCommand = /* @__PURE__ */ __name(async (output, context) =>
|
|
|
2790
1791
|
Object.assign(contents, doc);
|
|
2791
1792
|
return contents;
|
|
2792
1793
|
}, "de_UpdateRulesetCommand");
|
|
2793
|
-
var de_UpdateRulesetCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2794
|
-
const parsedOutput = {
|
|
2795
|
-
...output,
|
|
2796
|
-
body: await parseErrorBody(output.body, context)
|
|
2797
|
-
};
|
|
2798
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2799
|
-
switch (errorCode) {
|
|
2800
|
-
case "ResourceNotFoundException":
|
|
2801
|
-
case "com.amazonaws.databrew#ResourceNotFoundException":
|
|
2802
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2803
|
-
case "ValidationException":
|
|
2804
|
-
case "com.amazonaws.databrew#ValidationException":
|
|
2805
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2806
|
-
default:
|
|
2807
|
-
const parsedBody = parsedOutput.body;
|
|
2808
|
-
return throwDefaultError({
|
|
2809
|
-
output,
|
|
2810
|
-
parsedBody,
|
|
2811
|
-
errorCode
|
|
2812
|
-
});
|
|
2813
|
-
}
|
|
2814
|
-
}, "de_UpdateRulesetCommandError");
|
|
2815
1794
|
var de_UpdateScheduleCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2816
1795
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2817
|
-
return
|
|
1796
|
+
return de_CommandError(output, context);
|
|
2818
1797
|
}
|
|
2819
1798
|
const contents = (0, import_smithy_client.map)({
|
|
2820
1799
|
$metadata: deserializeMetadata(output)
|
|
@@ -2826,22 +1805,31 @@ var de_UpdateScheduleCommand = /* @__PURE__ */ __name(async (output, context) =>
|
|
|
2826
1805
|
Object.assign(contents, doc);
|
|
2827
1806
|
return contents;
|
|
2828
1807
|
}, "de_UpdateScheduleCommand");
|
|
2829
|
-
var
|
|
1808
|
+
var de_CommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2830
1809
|
const parsedOutput = {
|
|
2831
1810
|
...output,
|
|
2832
1811
|
body: await parseErrorBody(output.body, context)
|
|
2833
1812
|
};
|
|
2834
1813
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2835
1814
|
switch (errorCode) {
|
|
1815
|
+
case "ConflictException":
|
|
1816
|
+
case "com.amazonaws.databrew#ConflictException":
|
|
1817
|
+
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
2836
1818
|
case "ResourceNotFoundException":
|
|
2837
1819
|
case "com.amazonaws.databrew#ResourceNotFoundException":
|
|
2838
1820
|
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2839
|
-
case "ServiceQuotaExceededException":
|
|
2840
|
-
case "com.amazonaws.databrew#ServiceQuotaExceededException":
|
|
2841
|
-
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
2842
1821
|
case "ValidationException":
|
|
2843
1822
|
case "com.amazonaws.databrew#ValidationException":
|
|
2844
1823
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1824
|
+
case "AccessDeniedException":
|
|
1825
|
+
case "com.amazonaws.databrew#AccessDeniedException":
|
|
1826
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1827
|
+
case "ServiceQuotaExceededException":
|
|
1828
|
+
case "com.amazonaws.databrew#ServiceQuotaExceededException":
|
|
1829
|
+
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
1830
|
+
case "InternalServerException":
|
|
1831
|
+
case "com.amazonaws.databrew#InternalServerException":
|
|
1832
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2845
1833
|
default:
|
|
2846
1834
|
const parsedBody = parsedOutput.body;
|
|
2847
1835
|
return throwDefaultError({
|
|
@@ -2850,7 +1838,7 @@ var de_UpdateScheduleCommandError = /* @__PURE__ */ __name(async (output, contex
|
|
|
2850
1838
|
errorCode
|
|
2851
1839
|
});
|
|
2852
1840
|
}
|
|
2853
|
-
}, "
|
|
1841
|
+
}, "de_CommandError");
|
|
2854
1842
|
var throwDefaultError = (0, import_smithy_client.withBaseException)(DataBrewServiceException);
|
|
2855
1843
|
var de_AccessDeniedExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
|
|
2856
1844
|
const contents = (0, import_smithy_client.map)({});
|