@aws-sdk/client-bedrock-agent 3.504.0 → 3.509.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist-cjs/index.js +68 -1355
- package/dist-es/protocols/Aws_restJson1.js +60 -1347
- package/package.json +3 -3
package/dist-cjs/index.js
CHANGED
|
@@ -1160,7 +1160,7 @@ var se_UpdateKnowledgeBaseCommand = /* @__PURE__ */ __name(async (input, context
|
|
|
1160
1160
|
}, "se_UpdateKnowledgeBaseCommand");
|
|
1161
1161
|
var de_AssociateAgentKnowledgeBaseCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1162
1162
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1163
|
-
return
|
|
1163
|
+
return de_CommandError(output, context);
|
|
1164
1164
|
}
|
|
1165
1165
|
const contents = (0, import_smithy_client.map)({
|
|
1166
1166
|
$metadata: deserializeMetadata(output)
|
|
@@ -1172,46 +1172,9 @@ var de_AssociateAgentKnowledgeBaseCommand = /* @__PURE__ */ __name(async (output
|
|
|
1172
1172
|
Object.assign(contents, doc);
|
|
1173
1173
|
return contents;
|
|
1174
1174
|
}, "de_AssociateAgentKnowledgeBaseCommand");
|
|
1175
|
-
var de_AssociateAgentKnowledgeBaseCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1176
|
-
const parsedOutput = {
|
|
1177
|
-
...output,
|
|
1178
|
-
body: await parseErrorBody(output.body, context)
|
|
1179
|
-
};
|
|
1180
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1181
|
-
switch (errorCode) {
|
|
1182
|
-
case "AccessDeniedException":
|
|
1183
|
-
case "com.amazonaws.bedrockagent#AccessDeniedException":
|
|
1184
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1185
|
-
case "ConflictException":
|
|
1186
|
-
case "com.amazonaws.bedrockagent#ConflictException":
|
|
1187
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1188
|
-
case "InternalServerException":
|
|
1189
|
-
case "com.amazonaws.bedrockagent#InternalServerException":
|
|
1190
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1191
|
-
case "ResourceNotFoundException":
|
|
1192
|
-
case "com.amazonaws.bedrockagent#ResourceNotFoundException":
|
|
1193
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1194
|
-
case "ServiceQuotaExceededException":
|
|
1195
|
-
case "com.amazonaws.bedrockagent#ServiceQuotaExceededException":
|
|
1196
|
-
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
1197
|
-
case "ThrottlingException":
|
|
1198
|
-
case "com.amazonaws.bedrockagent#ThrottlingException":
|
|
1199
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1200
|
-
case "ValidationException":
|
|
1201
|
-
case "com.amazonaws.bedrockagent#ValidationException":
|
|
1202
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1203
|
-
default:
|
|
1204
|
-
const parsedBody = parsedOutput.body;
|
|
1205
|
-
return throwDefaultError({
|
|
1206
|
-
output,
|
|
1207
|
-
parsedBody,
|
|
1208
|
-
errorCode
|
|
1209
|
-
});
|
|
1210
|
-
}
|
|
1211
|
-
}, "de_AssociateAgentKnowledgeBaseCommandError");
|
|
1212
1175
|
var de_CreateAgentCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1213
1176
|
if (output.statusCode !== 202 && output.statusCode >= 300) {
|
|
1214
|
-
return
|
|
1177
|
+
return de_CommandError(output, context);
|
|
1215
1178
|
}
|
|
1216
1179
|
const contents = (0, import_smithy_client.map)({
|
|
1217
1180
|
$metadata: deserializeMetadata(output)
|
|
@@ -1223,43 +1186,9 @@ var de_CreateAgentCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
1223
1186
|
Object.assign(contents, doc);
|
|
1224
1187
|
return contents;
|
|
1225
1188
|
}, "de_CreateAgentCommand");
|
|
1226
|
-
var de_CreateAgentCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1227
|
-
const parsedOutput = {
|
|
1228
|
-
...output,
|
|
1229
|
-
body: await parseErrorBody(output.body, context)
|
|
1230
|
-
};
|
|
1231
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1232
|
-
switch (errorCode) {
|
|
1233
|
-
case "AccessDeniedException":
|
|
1234
|
-
case "com.amazonaws.bedrockagent#AccessDeniedException":
|
|
1235
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1236
|
-
case "ConflictException":
|
|
1237
|
-
case "com.amazonaws.bedrockagent#ConflictException":
|
|
1238
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1239
|
-
case "InternalServerException":
|
|
1240
|
-
case "com.amazonaws.bedrockagent#InternalServerException":
|
|
1241
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1242
|
-
case "ServiceQuotaExceededException":
|
|
1243
|
-
case "com.amazonaws.bedrockagent#ServiceQuotaExceededException":
|
|
1244
|
-
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
1245
|
-
case "ThrottlingException":
|
|
1246
|
-
case "com.amazonaws.bedrockagent#ThrottlingException":
|
|
1247
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1248
|
-
case "ValidationException":
|
|
1249
|
-
case "com.amazonaws.bedrockagent#ValidationException":
|
|
1250
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1251
|
-
default:
|
|
1252
|
-
const parsedBody = parsedOutput.body;
|
|
1253
|
-
return throwDefaultError({
|
|
1254
|
-
output,
|
|
1255
|
-
parsedBody,
|
|
1256
|
-
errorCode
|
|
1257
|
-
});
|
|
1258
|
-
}
|
|
1259
|
-
}, "de_CreateAgentCommandError");
|
|
1260
1189
|
var de_CreateAgentActionGroupCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1261
1190
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1262
|
-
return
|
|
1191
|
+
return de_CommandError(output, context);
|
|
1263
1192
|
}
|
|
1264
1193
|
const contents = (0, import_smithy_client.map)({
|
|
1265
1194
|
$metadata: deserializeMetadata(output)
|
|
@@ -1271,46 +1200,9 @@ var de_CreateAgentActionGroupCommand = /* @__PURE__ */ __name(async (output, con
|
|
|
1271
1200
|
Object.assign(contents, doc);
|
|
1272
1201
|
return contents;
|
|
1273
1202
|
}, "de_CreateAgentActionGroupCommand");
|
|
1274
|
-
var de_CreateAgentActionGroupCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1275
|
-
const parsedOutput = {
|
|
1276
|
-
...output,
|
|
1277
|
-
body: await parseErrorBody(output.body, context)
|
|
1278
|
-
};
|
|
1279
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1280
|
-
switch (errorCode) {
|
|
1281
|
-
case "AccessDeniedException":
|
|
1282
|
-
case "com.amazonaws.bedrockagent#AccessDeniedException":
|
|
1283
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1284
|
-
case "ConflictException":
|
|
1285
|
-
case "com.amazonaws.bedrockagent#ConflictException":
|
|
1286
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1287
|
-
case "InternalServerException":
|
|
1288
|
-
case "com.amazonaws.bedrockagent#InternalServerException":
|
|
1289
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1290
|
-
case "ResourceNotFoundException":
|
|
1291
|
-
case "com.amazonaws.bedrockagent#ResourceNotFoundException":
|
|
1292
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1293
|
-
case "ServiceQuotaExceededException":
|
|
1294
|
-
case "com.amazonaws.bedrockagent#ServiceQuotaExceededException":
|
|
1295
|
-
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
1296
|
-
case "ThrottlingException":
|
|
1297
|
-
case "com.amazonaws.bedrockagent#ThrottlingException":
|
|
1298
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1299
|
-
case "ValidationException":
|
|
1300
|
-
case "com.amazonaws.bedrockagent#ValidationException":
|
|
1301
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1302
|
-
default:
|
|
1303
|
-
const parsedBody = parsedOutput.body;
|
|
1304
|
-
return throwDefaultError({
|
|
1305
|
-
output,
|
|
1306
|
-
parsedBody,
|
|
1307
|
-
errorCode
|
|
1308
|
-
});
|
|
1309
|
-
}
|
|
1310
|
-
}, "de_CreateAgentActionGroupCommandError");
|
|
1311
1203
|
var de_CreateAgentAliasCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1312
1204
|
if (output.statusCode !== 202 && output.statusCode >= 300) {
|
|
1313
|
-
return
|
|
1205
|
+
return de_CommandError(output, context);
|
|
1314
1206
|
}
|
|
1315
1207
|
const contents = (0, import_smithy_client.map)({
|
|
1316
1208
|
$metadata: deserializeMetadata(output)
|
|
@@ -1322,46 +1214,9 @@ var de_CreateAgentAliasCommand = /* @__PURE__ */ __name(async (output, context)
|
|
|
1322
1214
|
Object.assign(contents, doc);
|
|
1323
1215
|
return contents;
|
|
1324
1216
|
}, "de_CreateAgentAliasCommand");
|
|
1325
|
-
var de_CreateAgentAliasCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1326
|
-
const parsedOutput = {
|
|
1327
|
-
...output,
|
|
1328
|
-
body: await parseErrorBody(output.body, context)
|
|
1329
|
-
};
|
|
1330
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1331
|
-
switch (errorCode) {
|
|
1332
|
-
case "AccessDeniedException":
|
|
1333
|
-
case "com.amazonaws.bedrockagent#AccessDeniedException":
|
|
1334
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1335
|
-
case "ConflictException":
|
|
1336
|
-
case "com.amazonaws.bedrockagent#ConflictException":
|
|
1337
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1338
|
-
case "InternalServerException":
|
|
1339
|
-
case "com.amazonaws.bedrockagent#InternalServerException":
|
|
1340
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1341
|
-
case "ResourceNotFoundException":
|
|
1342
|
-
case "com.amazonaws.bedrockagent#ResourceNotFoundException":
|
|
1343
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1344
|
-
case "ServiceQuotaExceededException":
|
|
1345
|
-
case "com.amazonaws.bedrockagent#ServiceQuotaExceededException":
|
|
1346
|
-
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
1347
|
-
case "ThrottlingException":
|
|
1348
|
-
case "com.amazonaws.bedrockagent#ThrottlingException":
|
|
1349
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1350
|
-
case "ValidationException":
|
|
1351
|
-
case "com.amazonaws.bedrockagent#ValidationException":
|
|
1352
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1353
|
-
default:
|
|
1354
|
-
const parsedBody = parsedOutput.body;
|
|
1355
|
-
return throwDefaultError({
|
|
1356
|
-
output,
|
|
1357
|
-
parsedBody,
|
|
1358
|
-
errorCode
|
|
1359
|
-
});
|
|
1360
|
-
}
|
|
1361
|
-
}, "de_CreateAgentAliasCommandError");
|
|
1362
1217
|
var de_CreateDataSourceCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1363
1218
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1364
|
-
return
|
|
1219
|
+
return de_CommandError(output, context);
|
|
1365
1220
|
}
|
|
1366
1221
|
const contents = (0, import_smithy_client.map)({
|
|
1367
1222
|
$metadata: deserializeMetadata(output)
|
|
@@ -1373,46 +1228,9 @@ var de_CreateDataSourceCommand = /* @__PURE__ */ __name(async (output, context)
|
|
|
1373
1228
|
Object.assign(contents, doc);
|
|
1374
1229
|
return contents;
|
|
1375
1230
|
}, "de_CreateDataSourceCommand");
|
|
1376
|
-
var de_CreateDataSourceCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1377
|
-
const parsedOutput = {
|
|
1378
|
-
...output,
|
|
1379
|
-
body: await parseErrorBody(output.body, context)
|
|
1380
|
-
};
|
|
1381
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1382
|
-
switch (errorCode) {
|
|
1383
|
-
case "AccessDeniedException":
|
|
1384
|
-
case "com.amazonaws.bedrockagent#AccessDeniedException":
|
|
1385
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1386
|
-
case "ConflictException":
|
|
1387
|
-
case "com.amazonaws.bedrockagent#ConflictException":
|
|
1388
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1389
|
-
case "InternalServerException":
|
|
1390
|
-
case "com.amazonaws.bedrockagent#InternalServerException":
|
|
1391
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1392
|
-
case "ResourceNotFoundException":
|
|
1393
|
-
case "com.amazonaws.bedrockagent#ResourceNotFoundException":
|
|
1394
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1395
|
-
case "ServiceQuotaExceededException":
|
|
1396
|
-
case "com.amazonaws.bedrockagent#ServiceQuotaExceededException":
|
|
1397
|
-
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
1398
|
-
case "ThrottlingException":
|
|
1399
|
-
case "com.amazonaws.bedrockagent#ThrottlingException":
|
|
1400
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1401
|
-
case "ValidationException":
|
|
1402
|
-
case "com.amazonaws.bedrockagent#ValidationException":
|
|
1403
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1404
|
-
default:
|
|
1405
|
-
const parsedBody = parsedOutput.body;
|
|
1406
|
-
return throwDefaultError({
|
|
1407
|
-
output,
|
|
1408
|
-
parsedBody,
|
|
1409
|
-
errorCode
|
|
1410
|
-
});
|
|
1411
|
-
}
|
|
1412
|
-
}, "de_CreateDataSourceCommandError");
|
|
1413
1231
|
var de_CreateKnowledgeBaseCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1414
1232
|
if (output.statusCode !== 202 && output.statusCode >= 300) {
|
|
1415
|
-
return
|
|
1233
|
+
return de_CommandError(output, context);
|
|
1416
1234
|
}
|
|
1417
1235
|
const contents = (0, import_smithy_client.map)({
|
|
1418
1236
|
$metadata: deserializeMetadata(output)
|
|
@@ -1424,43 +1242,9 @@ var de_CreateKnowledgeBaseCommand = /* @__PURE__ */ __name(async (output, contex
|
|
|
1424
1242
|
Object.assign(contents, doc);
|
|
1425
1243
|
return contents;
|
|
1426
1244
|
}, "de_CreateKnowledgeBaseCommand");
|
|
1427
|
-
var de_CreateKnowledgeBaseCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1428
|
-
const parsedOutput = {
|
|
1429
|
-
...output,
|
|
1430
|
-
body: await parseErrorBody(output.body, context)
|
|
1431
|
-
};
|
|
1432
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1433
|
-
switch (errorCode) {
|
|
1434
|
-
case "AccessDeniedException":
|
|
1435
|
-
case "com.amazonaws.bedrockagent#AccessDeniedException":
|
|
1436
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1437
|
-
case "ConflictException":
|
|
1438
|
-
case "com.amazonaws.bedrockagent#ConflictException":
|
|
1439
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1440
|
-
case "InternalServerException":
|
|
1441
|
-
case "com.amazonaws.bedrockagent#InternalServerException":
|
|
1442
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1443
|
-
case "ServiceQuotaExceededException":
|
|
1444
|
-
case "com.amazonaws.bedrockagent#ServiceQuotaExceededException":
|
|
1445
|
-
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
1446
|
-
case "ThrottlingException":
|
|
1447
|
-
case "com.amazonaws.bedrockagent#ThrottlingException":
|
|
1448
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1449
|
-
case "ValidationException":
|
|
1450
|
-
case "com.amazonaws.bedrockagent#ValidationException":
|
|
1451
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1452
|
-
default:
|
|
1453
|
-
const parsedBody = parsedOutput.body;
|
|
1454
|
-
return throwDefaultError({
|
|
1455
|
-
output,
|
|
1456
|
-
parsedBody,
|
|
1457
|
-
errorCode
|
|
1458
|
-
});
|
|
1459
|
-
}
|
|
1460
|
-
}, "de_CreateKnowledgeBaseCommandError");
|
|
1461
1245
|
var de_DeleteAgentCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1462
1246
|
if (output.statusCode !== 202 && output.statusCode >= 300) {
|
|
1463
|
-
return
|
|
1247
|
+
return de_CommandError(output, context);
|
|
1464
1248
|
}
|
|
1465
1249
|
const contents = (0, import_smithy_client.map)({
|
|
1466
1250
|
$metadata: deserializeMetadata(output)
|
|
@@ -1473,43 +1257,9 @@ var de_DeleteAgentCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
1473
1257
|
Object.assign(contents, doc);
|
|
1474
1258
|
return contents;
|
|
1475
1259
|
}, "de_DeleteAgentCommand");
|
|
1476
|
-
var de_DeleteAgentCommandError = /* @__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 "AccessDeniedException":
|
|
1484
|
-
case "com.amazonaws.bedrockagent#AccessDeniedException":
|
|
1485
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1486
|
-
case "ConflictException":
|
|
1487
|
-
case "com.amazonaws.bedrockagent#ConflictException":
|
|
1488
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1489
|
-
case "InternalServerException":
|
|
1490
|
-
case "com.amazonaws.bedrockagent#InternalServerException":
|
|
1491
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1492
|
-
case "ResourceNotFoundException":
|
|
1493
|
-
case "com.amazonaws.bedrockagent#ResourceNotFoundException":
|
|
1494
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1495
|
-
case "ThrottlingException":
|
|
1496
|
-
case "com.amazonaws.bedrockagent#ThrottlingException":
|
|
1497
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1498
|
-
case "ValidationException":
|
|
1499
|
-
case "com.amazonaws.bedrockagent#ValidationException":
|
|
1500
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1501
|
-
default:
|
|
1502
|
-
const parsedBody = parsedOutput.body;
|
|
1503
|
-
return throwDefaultError({
|
|
1504
|
-
output,
|
|
1505
|
-
parsedBody,
|
|
1506
|
-
errorCode
|
|
1507
|
-
});
|
|
1508
|
-
}
|
|
1509
|
-
}, "de_DeleteAgentCommandError");
|
|
1510
1260
|
var de_DeleteAgentActionGroupCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1511
1261
|
if (output.statusCode !== 204 && output.statusCode >= 300) {
|
|
1512
|
-
return
|
|
1262
|
+
return de_CommandError(output, context);
|
|
1513
1263
|
}
|
|
1514
1264
|
const contents = (0, import_smithy_client.map)({
|
|
1515
1265
|
$metadata: deserializeMetadata(output)
|
|
@@ -1517,43 +1267,9 @@ var de_DeleteAgentActionGroupCommand = /* @__PURE__ */ __name(async (output, con
|
|
|
1517
1267
|
await (0, import_smithy_client.collectBody)(output.body, context);
|
|
1518
1268
|
return contents;
|
|
1519
1269
|
}, "de_DeleteAgentActionGroupCommand");
|
|
1520
|
-
var de_DeleteAgentActionGroupCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1521
|
-
const parsedOutput = {
|
|
1522
|
-
...output,
|
|
1523
|
-
body: await parseErrorBody(output.body, context)
|
|
1524
|
-
};
|
|
1525
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1526
|
-
switch (errorCode) {
|
|
1527
|
-
case "AccessDeniedException":
|
|
1528
|
-
case "com.amazonaws.bedrockagent#AccessDeniedException":
|
|
1529
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1530
|
-
case "ConflictException":
|
|
1531
|
-
case "com.amazonaws.bedrockagent#ConflictException":
|
|
1532
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1533
|
-
case "InternalServerException":
|
|
1534
|
-
case "com.amazonaws.bedrockagent#InternalServerException":
|
|
1535
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1536
|
-
case "ResourceNotFoundException":
|
|
1537
|
-
case "com.amazonaws.bedrockagent#ResourceNotFoundException":
|
|
1538
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1539
|
-
case "ThrottlingException":
|
|
1540
|
-
case "com.amazonaws.bedrockagent#ThrottlingException":
|
|
1541
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1542
|
-
case "ValidationException":
|
|
1543
|
-
case "com.amazonaws.bedrockagent#ValidationException":
|
|
1544
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1545
|
-
default:
|
|
1546
|
-
const parsedBody = parsedOutput.body;
|
|
1547
|
-
return throwDefaultError({
|
|
1548
|
-
output,
|
|
1549
|
-
parsedBody,
|
|
1550
|
-
errorCode
|
|
1551
|
-
});
|
|
1552
|
-
}
|
|
1553
|
-
}, "de_DeleteAgentActionGroupCommandError");
|
|
1554
1270
|
var de_DeleteAgentAliasCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1555
1271
|
if (output.statusCode !== 202 && output.statusCode >= 300) {
|
|
1556
|
-
return
|
|
1272
|
+
return de_CommandError(output, context);
|
|
1557
1273
|
}
|
|
1558
1274
|
const contents = (0, import_smithy_client.map)({
|
|
1559
1275
|
$metadata: deserializeMetadata(output)
|
|
@@ -1567,40 +1283,9 @@ var de_DeleteAgentAliasCommand = /* @__PURE__ */ __name(async (output, context)
|
|
|
1567
1283
|
Object.assign(contents, doc);
|
|
1568
1284
|
return contents;
|
|
1569
1285
|
}, "de_DeleteAgentAliasCommand");
|
|
1570
|
-
var de_DeleteAgentAliasCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1571
|
-
const parsedOutput = {
|
|
1572
|
-
...output,
|
|
1573
|
-
body: await parseErrorBody(output.body, context)
|
|
1574
|
-
};
|
|
1575
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1576
|
-
switch (errorCode) {
|
|
1577
|
-
case "AccessDeniedException":
|
|
1578
|
-
case "com.amazonaws.bedrockagent#AccessDeniedException":
|
|
1579
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1580
|
-
case "InternalServerException":
|
|
1581
|
-
case "com.amazonaws.bedrockagent#InternalServerException":
|
|
1582
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1583
|
-
case "ResourceNotFoundException":
|
|
1584
|
-
case "com.amazonaws.bedrockagent#ResourceNotFoundException":
|
|
1585
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1586
|
-
case "ThrottlingException":
|
|
1587
|
-
case "com.amazonaws.bedrockagent#ThrottlingException":
|
|
1588
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1589
|
-
case "ValidationException":
|
|
1590
|
-
case "com.amazonaws.bedrockagent#ValidationException":
|
|
1591
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1592
|
-
default:
|
|
1593
|
-
const parsedBody = parsedOutput.body;
|
|
1594
|
-
return throwDefaultError({
|
|
1595
|
-
output,
|
|
1596
|
-
parsedBody,
|
|
1597
|
-
errorCode
|
|
1598
|
-
});
|
|
1599
|
-
}
|
|
1600
|
-
}, "de_DeleteAgentAliasCommandError");
|
|
1601
1286
|
var de_DeleteAgentVersionCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1602
1287
|
if (output.statusCode !== 202 && output.statusCode >= 300) {
|
|
1603
|
-
return
|
|
1288
|
+
return de_CommandError(output, context);
|
|
1604
1289
|
}
|
|
1605
1290
|
const contents = (0, import_smithy_client.map)({
|
|
1606
1291
|
$metadata: deserializeMetadata(output)
|
|
@@ -1614,43 +1299,9 @@ var de_DeleteAgentVersionCommand = /* @__PURE__ */ __name(async (output, context
|
|
|
1614
1299
|
Object.assign(contents, doc);
|
|
1615
1300
|
return contents;
|
|
1616
1301
|
}, "de_DeleteAgentVersionCommand");
|
|
1617
|
-
var de_DeleteAgentVersionCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1618
|
-
const parsedOutput = {
|
|
1619
|
-
...output,
|
|
1620
|
-
body: await parseErrorBody(output.body, context)
|
|
1621
|
-
};
|
|
1622
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1623
|
-
switch (errorCode) {
|
|
1624
|
-
case "AccessDeniedException":
|
|
1625
|
-
case "com.amazonaws.bedrockagent#AccessDeniedException":
|
|
1626
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1627
|
-
case "ConflictException":
|
|
1628
|
-
case "com.amazonaws.bedrockagent#ConflictException":
|
|
1629
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1630
|
-
case "InternalServerException":
|
|
1631
|
-
case "com.amazonaws.bedrockagent#InternalServerException":
|
|
1632
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1633
|
-
case "ResourceNotFoundException":
|
|
1634
|
-
case "com.amazonaws.bedrockagent#ResourceNotFoundException":
|
|
1635
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1636
|
-
case "ThrottlingException":
|
|
1637
|
-
case "com.amazonaws.bedrockagent#ThrottlingException":
|
|
1638
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1639
|
-
case "ValidationException":
|
|
1640
|
-
case "com.amazonaws.bedrockagent#ValidationException":
|
|
1641
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1642
|
-
default:
|
|
1643
|
-
const parsedBody = parsedOutput.body;
|
|
1644
|
-
return throwDefaultError({
|
|
1645
|
-
output,
|
|
1646
|
-
parsedBody,
|
|
1647
|
-
errorCode
|
|
1648
|
-
});
|
|
1649
|
-
}
|
|
1650
|
-
}, "de_DeleteAgentVersionCommandError");
|
|
1651
1302
|
var de_DeleteDataSourceCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1652
1303
|
if (output.statusCode !== 202 && output.statusCode >= 300) {
|
|
1653
|
-
return
|
|
1304
|
+
return de_CommandError(output, context);
|
|
1654
1305
|
}
|
|
1655
1306
|
const contents = (0, import_smithy_client.map)({
|
|
1656
1307
|
$metadata: deserializeMetadata(output)
|
|
@@ -1664,43 +1315,9 @@ var de_DeleteDataSourceCommand = /* @__PURE__ */ __name(async (output, context)
|
|
|
1664
1315
|
Object.assign(contents, doc);
|
|
1665
1316
|
return contents;
|
|
1666
1317
|
}, "de_DeleteDataSourceCommand");
|
|
1667
|
-
var de_DeleteDataSourceCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1668
|
-
const parsedOutput = {
|
|
1669
|
-
...output,
|
|
1670
|
-
body: await parseErrorBody(output.body, context)
|
|
1671
|
-
};
|
|
1672
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1673
|
-
switch (errorCode) {
|
|
1674
|
-
case "AccessDeniedException":
|
|
1675
|
-
case "com.amazonaws.bedrockagent#AccessDeniedException":
|
|
1676
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1677
|
-
case "ConflictException":
|
|
1678
|
-
case "com.amazonaws.bedrockagent#ConflictException":
|
|
1679
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1680
|
-
case "InternalServerException":
|
|
1681
|
-
case "com.amazonaws.bedrockagent#InternalServerException":
|
|
1682
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1683
|
-
case "ResourceNotFoundException":
|
|
1684
|
-
case "com.amazonaws.bedrockagent#ResourceNotFoundException":
|
|
1685
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1686
|
-
case "ThrottlingException":
|
|
1687
|
-
case "com.amazonaws.bedrockagent#ThrottlingException":
|
|
1688
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1689
|
-
case "ValidationException":
|
|
1690
|
-
case "com.amazonaws.bedrockagent#ValidationException":
|
|
1691
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1692
|
-
default:
|
|
1693
|
-
const parsedBody = parsedOutput.body;
|
|
1694
|
-
return throwDefaultError({
|
|
1695
|
-
output,
|
|
1696
|
-
parsedBody,
|
|
1697
|
-
errorCode
|
|
1698
|
-
});
|
|
1699
|
-
}
|
|
1700
|
-
}, "de_DeleteDataSourceCommandError");
|
|
1701
1318
|
var de_DeleteKnowledgeBaseCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1702
1319
|
if (output.statusCode !== 202 && output.statusCode >= 300) {
|
|
1703
|
-
return
|
|
1320
|
+
return de_CommandError(output, context);
|
|
1704
1321
|
}
|
|
1705
1322
|
const contents = (0, import_smithy_client.map)({
|
|
1706
1323
|
$metadata: deserializeMetadata(output)
|
|
@@ -1713,43 +1330,9 @@ var de_DeleteKnowledgeBaseCommand = /* @__PURE__ */ __name(async (output, contex
|
|
|
1713
1330
|
Object.assign(contents, doc);
|
|
1714
1331
|
return contents;
|
|
1715
1332
|
}, "de_DeleteKnowledgeBaseCommand");
|
|
1716
|
-
var de_DeleteKnowledgeBaseCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1717
|
-
const parsedOutput = {
|
|
1718
|
-
...output,
|
|
1719
|
-
body: await parseErrorBody(output.body, context)
|
|
1720
|
-
};
|
|
1721
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1722
|
-
switch (errorCode) {
|
|
1723
|
-
case "AccessDeniedException":
|
|
1724
|
-
case "com.amazonaws.bedrockagent#AccessDeniedException":
|
|
1725
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1726
|
-
case "ConflictException":
|
|
1727
|
-
case "com.amazonaws.bedrockagent#ConflictException":
|
|
1728
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1729
|
-
case "InternalServerException":
|
|
1730
|
-
case "com.amazonaws.bedrockagent#InternalServerException":
|
|
1731
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1732
|
-
case "ResourceNotFoundException":
|
|
1733
|
-
case "com.amazonaws.bedrockagent#ResourceNotFoundException":
|
|
1734
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1735
|
-
case "ThrottlingException":
|
|
1736
|
-
case "com.amazonaws.bedrockagent#ThrottlingException":
|
|
1737
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1738
|
-
case "ValidationException":
|
|
1739
|
-
case "com.amazonaws.bedrockagent#ValidationException":
|
|
1740
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1741
|
-
default:
|
|
1742
|
-
const parsedBody = parsedOutput.body;
|
|
1743
|
-
return throwDefaultError({
|
|
1744
|
-
output,
|
|
1745
|
-
parsedBody,
|
|
1746
|
-
errorCode
|
|
1747
|
-
});
|
|
1748
|
-
}
|
|
1749
|
-
}, "de_DeleteKnowledgeBaseCommandError");
|
|
1750
1333
|
var de_DisassociateAgentKnowledgeBaseCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1751
1334
|
if (output.statusCode !== 204 && output.statusCode >= 300) {
|
|
1752
|
-
return
|
|
1335
|
+
return de_CommandError(output, context);
|
|
1753
1336
|
}
|
|
1754
1337
|
const contents = (0, import_smithy_client.map)({
|
|
1755
1338
|
$metadata: deserializeMetadata(output)
|
|
@@ -1757,43 +1340,9 @@ var de_DisassociateAgentKnowledgeBaseCommand = /* @__PURE__ */ __name(async (out
|
|
|
1757
1340
|
await (0, import_smithy_client.collectBody)(output.body, context);
|
|
1758
1341
|
return contents;
|
|
1759
1342
|
}, "de_DisassociateAgentKnowledgeBaseCommand");
|
|
1760
|
-
var de_DisassociateAgentKnowledgeBaseCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1761
|
-
const parsedOutput = {
|
|
1762
|
-
...output,
|
|
1763
|
-
body: await parseErrorBody(output.body, context)
|
|
1764
|
-
};
|
|
1765
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1766
|
-
switch (errorCode) {
|
|
1767
|
-
case "AccessDeniedException":
|
|
1768
|
-
case "com.amazonaws.bedrockagent#AccessDeniedException":
|
|
1769
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1770
|
-
case "ConflictException":
|
|
1771
|
-
case "com.amazonaws.bedrockagent#ConflictException":
|
|
1772
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1773
|
-
case "InternalServerException":
|
|
1774
|
-
case "com.amazonaws.bedrockagent#InternalServerException":
|
|
1775
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1776
|
-
case "ResourceNotFoundException":
|
|
1777
|
-
case "com.amazonaws.bedrockagent#ResourceNotFoundException":
|
|
1778
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1779
|
-
case "ThrottlingException":
|
|
1780
|
-
case "com.amazonaws.bedrockagent#ThrottlingException":
|
|
1781
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1782
|
-
case "ValidationException":
|
|
1783
|
-
case "com.amazonaws.bedrockagent#ValidationException":
|
|
1784
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1785
|
-
default:
|
|
1786
|
-
const parsedBody = parsedOutput.body;
|
|
1787
|
-
return throwDefaultError({
|
|
1788
|
-
output,
|
|
1789
|
-
parsedBody,
|
|
1790
|
-
errorCode
|
|
1791
|
-
});
|
|
1792
|
-
}
|
|
1793
|
-
}, "de_DisassociateAgentKnowledgeBaseCommandError");
|
|
1794
1343
|
var de_GetAgentCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1795
1344
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1796
|
-
return
|
|
1345
|
+
return de_CommandError(output, context);
|
|
1797
1346
|
}
|
|
1798
1347
|
const contents = (0, import_smithy_client.map)({
|
|
1799
1348
|
$metadata: deserializeMetadata(output)
|
|
@@ -1805,40 +1354,9 @@ var de_GetAgentCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
1805
1354
|
Object.assign(contents, doc);
|
|
1806
1355
|
return contents;
|
|
1807
1356
|
}, "de_GetAgentCommand");
|
|
1808
|
-
var de_GetAgentCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1809
|
-
const parsedOutput = {
|
|
1810
|
-
...output,
|
|
1811
|
-
body: await parseErrorBody(output.body, context)
|
|
1812
|
-
};
|
|
1813
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1814
|
-
switch (errorCode) {
|
|
1815
|
-
case "AccessDeniedException":
|
|
1816
|
-
case "com.amazonaws.bedrockagent#AccessDeniedException":
|
|
1817
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1818
|
-
case "InternalServerException":
|
|
1819
|
-
case "com.amazonaws.bedrockagent#InternalServerException":
|
|
1820
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1821
|
-
case "ResourceNotFoundException":
|
|
1822
|
-
case "com.amazonaws.bedrockagent#ResourceNotFoundException":
|
|
1823
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1824
|
-
case "ThrottlingException":
|
|
1825
|
-
case "com.amazonaws.bedrockagent#ThrottlingException":
|
|
1826
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1827
|
-
case "ValidationException":
|
|
1828
|
-
case "com.amazonaws.bedrockagent#ValidationException":
|
|
1829
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1830
|
-
default:
|
|
1831
|
-
const parsedBody = parsedOutput.body;
|
|
1832
|
-
return throwDefaultError({
|
|
1833
|
-
output,
|
|
1834
|
-
parsedBody,
|
|
1835
|
-
errorCode
|
|
1836
|
-
});
|
|
1837
|
-
}
|
|
1838
|
-
}, "de_GetAgentCommandError");
|
|
1839
1357
|
var de_GetAgentActionGroupCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1840
1358
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1841
|
-
return
|
|
1359
|
+
return de_CommandError(output, context);
|
|
1842
1360
|
}
|
|
1843
1361
|
const contents = (0, import_smithy_client.map)({
|
|
1844
1362
|
$metadata: deserializeMetadata(output)
|
|
@@ -1850,40 +1368,9 @@ var de_GetAgentActionGroupCommand = /* @__PURE__ */ __name(async (output, contex
|
|
|
1850
1368
|
Object.assign(contents, doc);
|
|
1851
1369
|
return contents;
|
|
1852
1370
|
}, "de_GetAgentActionGroupCommand");
|
|
1853
|
-
var de_GetAgentActionGroupCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1854
|
-
const parsedOutput = {
|
|
1855
|
-
...output,
|
|
1856
|
-
body: await parseErrorBody(output.body, context)
|
|
1857
|
-
};
|
|
1858
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1859
|
-
switch (errorCode) {
|
|
1860
|
-
case "AccessDeniedException":
|
|
1861
|
-
case "com.amazonaws.bedrockagent#AccessDeniedException":
|
|
1862
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1863
|
-
case "InternalServerException":
|
|
1864
|
-
case "com.amazonaws.bedrockagent#InternalServerException":
|
|
1865
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1866
|
-
case "ResourceNotFoundException":
|
|
1867
|
-
case "com.amazonaws.bedrockagent#ResourceNotFoundException":
|
|
1868
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1869
|
-
case "ThrottlingException":
|
|
1870
|
-
case "com.amazonaws.bedrockagent#ThrottlingException":
|
|
1871
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1872
|
-
case "ValidationException":
|
|
1873
|
-
case "com.amazonaws.bedrockagent#ValidationException":
|
|
1874
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1875
|
-
default:
|
|
1876
|
-
const parsedBody = parsedOutput.body;
|
|
1877
|
-
return throwDefaultError({
|
|
1878
|
-
output,
|
|
1879
|
-
parsedBody,
|
|
1880
|
-
errorCode
|
|
1881
|
-
});
|
|
1882
|
-
}
|
|
1883
|
-
}, "de_GetAgentActionGroupCommandError");
|
|
1884
1371
|
var de_GetAgentAliasCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1885
1372
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1886
|
-
return
|
|
1373
|
+
return de_CommandError(output, context);
|
|
1887
1374
|
}
|
|
1888
1375
|
const contents = (0, import_smithy_client.map)({
|
|
1889
1376
|
$metadata: deserializeMetadata(output)
|
|
@@ -1895,40 +1382,9 @@ var de_GetAgentAliasCommand = /* @__PURE__ */ __name(async (output, context) =>
|
|
|
1895
1382
|
Object.assign(contents, doc);
|
|
1896
1383
|
return contents;
|
|
1897
1384
|
}, "de_GetAgentAliasCommand");
|
|
1898
|
-
var de_GetAgentAliasCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1899
|
-
const parsedOutput = {
|
|
1900
|
-
...output,
|
|
1901
|
-
body: await parseErrorBody(output.body, context)
|
|
1902
|
-
};
|
|
1903
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1904
|
-
switch (errorCode) {
|
|
1905
|
-
case "AccessDeniedException":
|
|
1906
|
-
case "com.amazonaws.bedrockagent#AccessDeniedException":
|
|
1907
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1908
|
-
case "InternalServerException":
|
|
1909
|
-
case "com.amazonaws.bedrockagent#InternalServerException":
|
|
1910
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1911
|
-
case "ResourceNotFoundException":
|
|
1912
|
-
case "com.amazonaws.bedrockagent#ResourceNotFoundException":
|
|
1913
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1914
|
-
case "ThrottlingException":
|
|
1915
|
-
case "com.amazonaws.bedrockagent#ThrottlingException":
|
|
1916
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1917
|
-
case "ValidationException":
|
|
1918
|
-
case "com.amazonaws.bedrockagent#ValidationException":
|
|
1919
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1920
|
-
default:
|
|
1921
|
-
const parsedBody = parsedOutput.body;
|
|
1922
|
-
return throwDefaultError({
|
|
1923
|
-
output,
|
|
1924
|
-
parsedBody,
|
|
1925
|
-
errorCode
|
|
1926
|
-
});
|
|
1927
|
-
}
|
|
1928
|
-
}, "de_GetAgentAliasCommandError");
|
|
1929
1385
|
var de_GetAgentKnowledgeBaseCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1930
1386
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1931
|
-
return
|
|
1387
|
+
return de_CommandError(output, context);
|
|
1932
1388
|
}
|
|
1933
1389
|
const contents = (0, import_smithy_client.map)({
|
|
1934
1390
|
$metadata: deserializeMetadata(output)
|
|
@@ -1940,40 +1396,9 @@ var de_GetAgentKnowledgeBaseCommand = /* @__PURE__ */ __name(async (output, cont
|
|
|
1940
1396
|
Object.assign(contents, doc);
|
|
1941
1397
|
return contents;
|
|
1942
1398
|
}, "de_GetAgentKnowledgeBaseCommand");
|
|
1943
|
-
var de_GetAgentKnowledgeBaseCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1944
|
-
const parsedOutput = {
|
|
1945
|
-
...output,
|
|
1946
|
-
body: await parseErrorBody(output.body, context)
|
|
1947
|
-
};
|
|
1948
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1949
|
-
switch (errorCode) {
|
|
1950
|
-
case "AccessDeniedException":
|
|
1951
|
-
case "com.amazonaws.bedrockagent#AccessDeniedException":
|
|
1952
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1953
|
-
case "InternalServerException":
|
|
1954
|
-
case "com.amazonaws.bedrockagent#InternalServerException":
|
|
1955
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1956
|
-
case "ResourceNotFoundException":
|
|
1957
|
-
case "com.amazonaws.bedrockagent#ResourceNotFoundException":
|
|
1958
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1959
|
-
case "ThrottlingException":
|
|
1960
|
-
case "com.amazonaws.bedrockagent#ThrottlingException":
|
|
1961
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1962
|
-
case "ValidationException":
|
|
1963
|
-
case "com.amazonaws.bedrockagent#ValidationException":
|
|
1964
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1965
|
-
default:
|
|
1966
|
-
const parsedBody = parsedOutput.body;
|
|
1967
|
-
return throwDefaultError({
|
|
1968
|
-
output,
|
|
1969
|
-
parsedBody,
|
|
1970
|
-
errorCode
|
|
1971
|
-
});
|
|
1972
|
-
}
|
|
1973
|
-
}, "de_GetAgentKnowledgeBaseCommandError");
|
|
1974
1399
|
var de_GetAgentVersionCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1975
1400
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1976
|
-
return
|
|
1401
|
+
return de_CommandError(output, context);
|
|
1977
1402
|
}
|
|
1978
1403
|
const contents = (0, import_smithy_client.map)({
|
|
1979
1404
|
$metadata: deserializeMetadata(output)
|
|
@@ -1985,40 +1410,9 @@ var de_GetAgentVersionCommand = /* @__PURE__ */ __name(async (output, context) =
|
|
|
1985
1410
|
Object.assign(contents, doc);
|
|
1986
1411
|
return contents;
|
|
1987
1412
|
}, "de_GetAgentVersionCommand");
|
|
1988
|
-
var de_GetAgentVersionCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1989
|
-
const parsedOutput = {
|
|
1990
|
-
...output,
|
|
1991
|
-
body: await parseErrorBody(output.body, context)
|
|
1992
|
-
};
|
|
1993
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1994
|
-
switch (errorCode) {
|
|
1995
|
-
case "AccessDeniedException":
|
|
1996
|
-
case "com.amazonaws.bedrockagent#AccessDeniedException":
|
|
1997
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1998
|
-
case "InternalServerException":
|
|
1999
|
-
case "com.amazonaws.bedrockagent#InternalServerException":
|
|
2000
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2001
|
-
case "ResourceNotFoundException":
|
|
2002
|
-
case "com.amazonaws.bedrockagent#ResourceNotFoundException":
|
|
2003
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2004
|
-
case "ThrottlingException":
|
|
2005
|
-
case "com.amazonaws.bedrockagent#ThrottlingException":
|
|
2006
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
2007
|
-
case "ValidationException":
|
|
2008
|
-
case "com.amazonaws.bedrockagent#ValidationException":
|
|
2009
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2010
|
-
default:
|
|
2011
|
-
const parsedBody = parsedOutput.body;
|
|
2012
|
-
return throwDefaultError({
|
|
2013
|
-
output,
|
|
2014
|
-
parsedBody,
|
|
2015
|
-
errorCode
|
|
2016
|
-
});
|
|
2017
|
-
}
|
|
2018
|
-
}, "de_GetAgentVersionCommandError");
|
|
2019
1413
|
var de_GetDataSourceCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2020
1414
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2021
|
-
return
|
|
1415
|
+
return de_CommandError(output, context);
|
|
2022
1416
|
}
|
|
2023
1417
|
const contents = (0, import_smithy_client.map)({
|
|
2024
1418
|
$metadata: deserializeMetadata(output)
|
|
@@ -2030,40 +1424,9 @@ var de_GetDataSourceCommand = /* @__PURE__ */ __name(async (output, context) =>
|
|
|
2030
1424
|
Object.assign(contents, doc);
|
|
2031
1425
|
return contents;
|
|
2032
1426
|
}, "de_GetDataSourceCommand");
|
|
2033
|
-
var de_GetDataSourceCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2034
|
-
const parsedOutput = {
|
|
2035
|
-
...output,
|
|
2036
|
-
body: await parseErrorBody(output.body, context)
|
|
2037
|
-
};
|
|
2038
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2039
|
-
switch (errorCode) {
|
|
2040
|
-
case "AccessDeniedException":
|
|
2041
|
-
case "com.amazonaws.bedrockagent#AccessDeniedException":
|
|
2042
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2043
|
-
case "InternalServerException":
|
|
2044
|
-
case "com.amazonaws.bedrockagent#InternalServerException":
|
|
2045
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2046
|
-
case "ResourceNotFoundException":
|
|
2047
|
-
case "com.amazonaws.bedrockagent#ResourceNotFoundException":
|
|
2048
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2049
|
-
case "ThrottlingException":
|
|
2050
|
-
case "com.amazonaws.bedrockagent#ThrottlingException":
|
|
2051
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
2052
|
-
case "ValidationException":
|
|
2053
|
-
case "com.amazonaws.bedrockagent#ValidationException":
|
|
2054
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2055
|
-
default:
|
|
2056
|
-
const parsedBody = parsedOutput.body;
|
|
2057
|
-
return throwDefaultError({
|
|
2058
|
-
output,
|
|
2059
|
-
parsedBody,
|
|
2060
|
-
errorCode
|
|
2061
|
-
});
|
|
2062
|
-
}
|
|
2063
|
-
}, "de_GetDataSourceCommandError");
|
|
2064
1427
|
var de_GetIngestionJobCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2065
1428
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2066
|
-
return
|
|
1429
|
+
return de_CommandError(output, context);
|
|
2067
1430
|
}
|
|
2068
1431
|
const contents = (0, import_smithy_client.map)({
|
|
2069
1432
|
$metadata: deserializeMetadata(output)
|
|
@@ -2075,40 +1438,9 @@ var de_GetIngestionJobCommand = /* @__PURE__ */ __name(async (output, context) =
|
|
|
2075
1438
|
Object.assign(contents, doc);
|
|
2076
1439
|
return contents;
|
|
2077
1440
|
}, "de_GetIngestionJobCommand");
|
|
2078
|
-
var de_GetIngestionJobCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2079
|
-
const parsedOutput = {
|
|
2080
|
-
...output,
|
|
2081
|
-
body: await parseErrorBody(output.body, context)
|
|
2082
|
-
};
|
|
2083
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2084
|
-
switch (errorCode) {
|
|
2085
|
-
case "AccessDeniedException":
|
|
2086
|
-
case "com.amazonaws.bedrockagent#AccessDeniedException":
|
|
2087
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2088
|
-
case "InternalServerException":
|
|
2089
|
-
case "com.amazonaws.bedrockagent#InternalServerException":
|
|
2090
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2091
|
-
case "ResourceNotFoundException":
|
|
2092
|
-
case "com.amazonaws.bedrockagent#ResourceNotFoundException":
|
|
2093
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2094
|
-
case "ThrottlingException":
|
|
2095
|
-
case "com.amazonaws.bedrockagent#ThrottlingException":
|
|
2096
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
2097
|
-
case "ValidationException":
|
|
2098
|
-
case "com.amazonaws.bedrockagent#ValidationException":
|
|
2099
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2100
|
-
default:
|
|
2101
|
-
const parsedBody = parsedOutput.body;
|
|
2102
|
-
return throwDefaultError({
|
|
2103
|
-
output,
|
|
2104
|
-
parsedBody,
|
|
2105
|
-
errorCode
|
|
2106
|
-
});
|
|
2107
|
-
}
|
|
2108
|
-
}, "de_GetIngestionJobCommandError");
|
|
2109
1441
|
var de_GetKnowledgeBaseCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2110
1442
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2111
|
-
return
|
|
1443
|
+
return de_CommandError(output, context);
|
|
2112
1444
|
}
|
|
2113
1445
|
const contents = (0, import_smithy_client.map)({
|
|
2114
1446
|
$metadata: deserializeMetadata(output)
|
|
@@ -2120,40 +1452,9 @@ var de_GetKnowledgeBaseCommand = /* @__PURE__ */ __name(async (output, context)
|
|
|
2120
1452
|
Object.assign(contents, doc);
|
|
2121
1453
|
return contents;
|
|
2122
1454
|
}, "de_GetKnowledgeBaseCommand");
|
|
2123
|
-
var de_GetKnowledgeBaseCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2124
|
-
const parsedOutput = {
|
|
2125
|
-
...output,
|
|
2126
|
-
body: await parseErrorBody(output.body, context)
|
|
2127
|
-
};
|
|
2128
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2129
|
-
switch (errorCode) {
|
|
2130
|
-
case "AccessDeniedException":
|
|
2131
|
-
case "com.amazonaws.bedrockagent#AccessDeniedException":
|
|
2132
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2133
|
-
case "InternalServerException":
|
|
2134
|
-
case "com.amazonaws.bedrockagent#InternalServerException":
|
|
2135
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2136
|
-
case "ResourceNotFoundException":
|
|
2137
|
-
case "com.amazonaws.bedrockagent#ResourceNotFoundException":
|
|
2138
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2139
|
-
case "ThrottlingException":
|
|
2140
|
-
case "com.amazonaws.bedrockagent#ThrottlingException":
|
|
2141
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
2142
|
-
case "ValidationException":
|
|
2143
|
-
case "com.amazonaws.bedrockagent#ValidationException":
|
|
2144
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2145
|
-
default:
|
|
2146
|
-
const parsedBody = parsedOutput.body;
|
|
2147
|
-
return throwDefaultError({
|
|
2148
|
-
output,
|
|
2149
|
-
parsedBody,
|
|
2150
|
-
errorCode
|
|
2151
|
-
});
|
|
2152
|
-
}
|
|
2153
|
-
}, "de_GetKnowledgeBaseCommandError");
|
|
2154
1455
|
var de_ListAgentActionGroupsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2155
1456
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2156
|
-
return
|
|
1457
|
+
return de_CommandError(output, context);
|
|
2157
1458
|
}
|
|
2158
1459
|
const contents = (0, import_smithy_client.map)({
|
|
2159
1460
|
$metadata: deserializeMetadata(output)
|
|
@@ -2166,40 +1467,9 @@ var de_ListAgentActionGroupsCommand = /* @__PURE__ */ __name(async (output, cont
|
|
|
2166
1467
|
Object.assign(contents, doc);
|
|
2167
1468
|
return contents;
|
|
2168
1469
|
}, "de_ListAgentActionGroupsCommand");
|
|
2169
|
-
var de_ListAgentActionGroupsCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2170
|
-
const parsedOutput = {
|
|
2171
|
-
...output,
|
|
2172
|
-
body: await parseErrorBody(output.body, context)
|
|
2173
|
-
};
|
|
2174
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2175
|
-
switch (errorCode) {
|
|
2176
|
-
case "AccessDeniedException":
|
|
2177
|
-
case "com.amazonaws.bedrockagent#AccessDeniedException":
|
|
2178
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2179
|
-
case "InternalServerException":
|
|
2180
|
-
case "com.amazonaws.bedrockagent#InternalServerException":
|
|
2181
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2182
|
-
case "ResourceNotFoundException":
|
|
2183
|
-
case "com.amazonaws.bedrockagent#ResourceNotFoundException":
|
|
2184
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2185
|
-
case "ThrottlingException":
|
|
2186
|
-
case "com.amazonaws.bedrockagent#ThrottlingException":
|
|
2187
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
2188
|
-
case "ValidationException":
|
|
2189
|
-
case "com.amazonaws.bedrockagent#ValidationException":
|
|
2190
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2191
|
-
default:
|
|
2192
|
-
const parsedBody = parsedOutput.body;
|
|
2193
|
-
return throwDefaultError({
|
|
2194
|
-
output,
|
|
2195
|
-
parsedBody,
|
|
2196
|
-
errorCode
|
|
2197
|
-
});
|
|
2198
|
-
}
|
|
2199
|
-
}, "de_ListAgentActionGroupsCommandError");
|
|
2200
1470
|
var de_ListAgentAliasesCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2201
1471
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2202
|
-
return
|
|
1472
|
+
return de_CommandError(output, context);
|
|
2203
1473
|
}
|
|
2204
1474
|
const contents = (0, import_smithy_client.map)({
|
|
2205
1475
|
$metadata: deserializeMetadata(output)
|
|
@@ -2212,40 +1482,9 @@ var de_ListAgentAliasesCommand = /* @__PURE__ */ __name(async (output, context)
|
|
|
2212
1482
|
Object.assign(contents, doc);
|
|
2213
1483
|
return contents;
|
|
2214
1484
|
}, "de_ListAgentAliasesCommand");
|
|
2215
|
-
var de_ListAgentAliasesCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2216
|
-
const parsedOutput = {
|
|
2217
|
-
...output,
|
|
2218
|
-
body: await parseErrorBody(output.body, context)
|
|
2219
|
-
};
|
|
2220
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2221
|
-
switch (errorCode) {
|
|
2222
|
-
case "AccessDeniedException":
|
|
2223
|
-
case "com.amazonaws.bedrockagent#AccessDeniedException":
|
|
2224
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2225
|
-
case "InternalServerException":
|
|
2226
|
-
case "com.amazonaws.bedrockagent#InternalServerException":
|
|
2227
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2228
|
-
case "ResourceNotFoundException":
|
|
2229
|
-
case "com.amazonaws.bedrockagent#ResourceNotFoundException":
|
|
2230
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2231
|
-
case "ThrottlingException":
|
|
2232
|
-
case "com.amazonaws.bedrockagent#ThrottlingException":
|
|
2233
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
2234
|
-
case "ValidationException":
|
|
2235
|
-
case "com.amazonaws.bedrockagent#ValidationException":
|
|
2236
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2237
|
-
default:
|
|
2238
|
-
const parsedBody = parsedOutput.body;
|
|
2239
|
-
return throwDefaultError({
|
|
2240
|
-
output,
|
|
2241
|
-
parsedBody,
|
|
2242
|
-
errorCode
|
|
2243
|
-
});
|
|
2244
|
-
}
|
|
2245
|
-
}, "de_ListAgentAliasesCommandError");
|
|
2246
1485
|
var de_ListAgentKnowledgeBasesCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2247
1486
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2248
|
-
return
|
|
1487
|
+
return de_CommandError(output, context);
|
|
2249
1488
|
}
|
|
2250
1489
|
const contents = (0, import_smithy_client.map)({
|
|
2251
1490
|
$metadata: deserializeMetadata(output)
|
|
@@ -2258,40 +1497,9 @@ var de_ListAgentKnowledgeBasesCommand = /* @__PURE__ */ __name(async (output, co
|
|
|
2258
1497
|
Object.assign(contents, doc);
|
|
2259
1498
|
return contents;
|
|
2260
1499
|
}, "de_ListAgentKnowledgeBasesCommand");
|
|
2261
|
-
var de_ListAgentKnowledgeBasesCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2262
|
-
const parsedOutput = {
|
|
2263
|
-
...output,
|
|
2264
|
-
body: await parseErrorBody(output.body, context)
|
|
2265
|
-
};
|
|
2266
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2267
|
-
switch (errorCode) {
|
|
2268
|
-
case "AccessDeniedException":
|
|
2269
|
-
case "com.amazonaws.bedrockagent#AccessDeniedException":
|
|
2270
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2271
|
-
case "InternalServerException":
|
|
2272
|
-
case "com.amazonaws.bedrockagent#InternalServerException":
|
|
2273
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2274
|
-
case "ResourceNotFoundException":
|
|
2275
|
-
case "com.amazonaws.bedrockagent#ResourceNotFoundException":
|
|
2276
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2277
|
-
case "ThrottlingException":
|
|
2278
|
-
case "com.amazonaws.bedrockagent#ThrottlingException":
|
|
2279
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
2280
|
-
case "ValidationException":
|
|
2281
|
-
case "com.amazonaws.bedrockagent#ValidationException":
|
|
2282
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2283
|
-
default:
|
|
2284
|
-
const parsedBody = parsedOutput.body;
|
|
2285
|
-
return throwDefaultError({
|
|
2286
|
-
output,
|
|
2287
|
-
parsedBody,
|
|
2288
|
-
errorCode
|
|
2289
|
-
});
|
|
2290
|
-
}
|
|
2291
|
-
}, "de_ListAgentKnowledgeBasesCommandError");
|
|
2292
1500
|
var de_ListAgentsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2293
1501
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2294
|
-
return
|
|
1502
|
+
return de_CommandError(output, context);
|
|
2295
1503
|
}
|
|
2296
1504
|
const contents = (0, import_smithy_client.map)({
|
|
2297
1505
|
$metadata: deserializeMetadata(output)
|
|
@@ -2304,37 +1512,9 @@ var de_ListAgentsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
2304
1512
|
Object.assign(contents, doc);
|
|
2305
1513
|
return contents;
|
|
2306
1514
|
}, "de_ListAgentsCommand");
|
|
2307
|
-
var de_ListAgentsCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2308
|
-
const parsedOutput = {
|
|
2309
|
-
...output,
|
|
2310
|
-
body: await parseErrorBody(output.body, context)
|
|
2311
|
-
};
|
|
2312
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2313
|
-
switch (errorCode) {
|
|
2314
|
-
case "AccessDeniedException":
|
|
2315
|
-
case "com.amazonaws.bedrockagent#AccessDeniedException":
|
|
2316
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2317
|
-
case "InternalServerException":
|
|
2318
|
-
case "com.amazonaws.bedrockagent#InternalServerException":
|
|
2319
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2320
|
-
case "ThrottlingException":
|
|
2321
|
-
case "com.amazonaws.bedrockagent#ThrottlingException":
|
|
2322
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
2323
|
-
case "ValidationException":
|
|
2324
|
-
case "com.amazonaws.bedrockagent#ValidationException":
|
|
2325
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2326
|
-
default:
|
|
2327
|
-
const parsedBody = parsedOutput.body;
|
|
2328
|
-
return throwDefaultError({
|
|
2329
|
-
output,
|
|
2330
|
-
parsedBody,
|
|
2331
|
-
errorCode
|
|
2332
|
-
});
|
|
2333
|
-
}
|
|
2334
|
-
}, "de_ListAgentsCommandError");
|
|
2335
1515
|
var de_ListAgentVersionsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2336
1516
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2337
|
-
return
|
|
1517
|
+
return de_CommandError(output, context);
|
|
2338
1518
|
}
|
|
2339
1519
|
const contents = (0, import_smithy_client.map)({
|
|
2340
1520
|
$metadata: deserializeMetadata(output)
|
|
@@ -2347,40 +1527,9 @@ var de_ListAgentVersionsCommand = /* @__PURE__ */ __name(async (output, context)
|
|
|
2347
1527
|
Object.assign(contents, doc);
|
|
2348
1528
|
return contents;
|
|
2349
1529
|
}, "de_ListAgentVersionsCommand");
|
|
2350
|
-
var de_ListAgentVersionsCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2351
|
-
const parsedOutput = {
|
|
2352
|
-
...output,
|
|
2353
|
-
body: await parseErrorBody(output.body, context)
|
|
2354
|
-
};
|
|
2355
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2356
|
-
switch (errorCode) {
|
|
2357
|
-
case "AccessDeniedException":
|
|
2358
|
-
case "com.amazonaws.bedrockagent#AccessDeniedException":
|
|
2359
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2360
|
-
case "InternalServerException":
|
|
2361
|
-
case "com.amazonaws.bedrockagent#InternalServerException":
|
|
2362
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2363
|
-
case "ResourceNotFoundException":
|
|
2364
|
-
case "com.amazonaws.bedrockagent#ResourceNotFoundException":
|
|
2365
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2366
|
-
case "ThrottlingException":
|
|
2367
|
-
case "com.amazonaws.bedrockagent#ThrottlingException":
|
|
2368
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
2369
|
-
case "ValidationException":
|
|
2370
|
-
case "com.amazonaws.bedrockagent#ValidationException":
|
|
2371
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2372
|
-
default:
|
|
2373
|
-
const parsedBody = parsedOutput.body;
|
|
2374
|
-
return throwDefaultError({
|
|
2375
|
-
output,
|
|
2376
|
-
parsedBody,
|
|
2377
|
-
errorCode
|
|
2378
|
-
});
|
|
2379
|
-
}
|
|
2380
|
-
}, "de_ListAgentVersionsCommandError");
|
|
2381
1530
|
var de_ListDataSourcesCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2382
1531
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2383
|
-
return
|
|
1532
|
+
return de_CommandError(output, context);
|
|
2384
1533
|
}
|
|
2385
1534
|
const contents = (0, import_smithy_client.map)({
|
|
2386
1535
|
$metadata: deserializeMetadata(output)
|
|
@@ -2393,40 +1542,9 @@ var de_ListDataSourcesCommand = /* @__PURE__ */ __name(async (output, context) =
|
|
|
2393
1542
|
Object.assign(contents, doc);
|
|
2394
1543
|
return contents;
|
|
2395
1544
|
}, "de_ListDataSourcesCommand");
|
|
2396
|
-
var de_ListDataSourcesCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2397
|
-
const parsedOutput = {
|
|
2398
|
-
...output,
|
|
2399
|
-
body: await parseErrorBody(output.body, context)
|
|
2400
|
-
};
|
|
2401
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2402
|
-
switch (errorCode) {
|
|
2403
|
-
case "AccessDeniedException":
|
|
2404
|
-
case "com.amazonaws.bedrockagent#AccessDeniedException":
|
|
2405
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2406
|
-
case "InternalServerException":
|
|
2407
|
-
case "com.amazonaws.bedrockagent#InternalServerException":
|
|
2408
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2409
|
-
case "ResourceNotFoundException":
|
|
2410
|
-
case "com.amazonaws.bedrockagent#ResourceNotFoundException":
|
|
2411
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2412
|
-
case "ThrottlingException":
|
|
2413
|
-
case "com.amazonaws.bedrockagent#ThrottlingException":
|
|
2414
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
2415
|
-
case "ValidationException":
|
|
2416
|
-
case "com.amazonaws.bedrockagent#ValidationException":
|
|
2417
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2418
|
-
default:
|
|
2419
|
-
const parsedBody = parsedOutput.body;
|
|
2420
|
-
return throwDefaultError({
|
|
2421
|
-
output,
|
|
2422
|
-
parsedBody,
|
|
2423
|
-
errorCode
|
|
2424
|
-
});
|
|
2425
|
-
}
|
|
2426
|
-
}, "de_ListDataSourcesCommandError");
|
|
2427
1545
|
var de_ListIngestionJobsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2428
1546
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2429
|
-
return
|
|
1547
|
+
return de_CommandError(output, context);
|
|
2430
1548
|
}
|
|
2431
1549
|
const contents = (0, import_smithy_client.map)({
|
|
2432
1550
|
$metadata: deserializeMetadata(output)
|
|
@@ -2439,40 +1557,9 @@ var de_ListIngestionJobsCommand = /* @__PURE__ */ __name(async (output, context)
|
|
|
2439
1557
|
Object.assign(contents, doc);
|
|
2440
1558
|
return contents;
|
|
2441
1559
|
}, "de_ListIngestionJobsCommand");
|
|
2442
|
-
var de_ListIngestionJobsCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2443
|
-
const parsedOutput = {
|
|
2444
|
-
...output,
|
|
2445
|
-
body: await parseErrorBody(output.body, context)
|
|
2446
|
-
};
|
|
2447
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2448
|
-
switch (errorCode) {
|
|
2449
|
-
case "AccessDeniedException":
|
|
2450
|
-
case "com.amazonaws.bedrockagent#AccessDeniedException":
|
|
2451
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2452
|
-
case "InternalServerException":
|
|
2453
|
-
case "com.amazonaws.bedrockagent#InternalServerException":
|
|
2454
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2455
|
-
case "ResourceNotFoundException":
|
|
2456
|
-
case "com.amazonaws.bedrockagent#ResourceNotFoundException":
|
|
2457
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2458
|
-
case "ThrottlingException":
|
|
2459
|
-
case "com.amazonaws.bedrockagent#ThrottlingException":
|
|
2460
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
2461
|
-
case "ValidationException":
|
|
2462
|
-
case "com.amazonaws.bedrockagent#ValidationException":
|
|
2463
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2464
|
-
default:
|
|
2465
|
-
const parsedBody = parsedOutput.body;
|
|
2466
|
-
return throwDefaultError({
|
|
2467
|
-
output,
|
|
2468
|
-
parsedBody,
|
|
2469
|
-
errorCode
|
|
2470
|
-
});
|
|
2471
|
-
}
|
|
2472
|
-
}, "de_ListIngestionJobsCommandError");
|
|
2473
1560
|
var de_ListKnowledgeBasesCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2474
1561
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2475
|
-
return
|
|
1562
|
+
return de_CommandError(output, context);
|
|
2476
1563
|
}
|
|
2477
1564
|
const contents = (0, import_smithy_client.map)({
|
|
2478
1565
|
$metadata: deserializeMetadata(output)
|
|
@@ -2485,37 +1572,9 @@ var de_ListKnowledgeBasesCommand = /* @__PURE__ */ __name(async (output, context
|
|
|
2485
1572
|
Object.assign(contents, doc);
|
|
2486
1573
|
return contents;
|
|
2487
1574
|
}, "de_ListKnowledgeBasesCommand");
|
|
2488
|
-
var de_ListKnowledgeBasesCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2489
|
-
const parsedOutput = {
|
|
2490
|
-
...output,
|
|
2491
|
-
body: await parseErrorBody(output.body, context)
|
|
2492
|
-
};
|
|
2493
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2494
|
-
switch (errorCode) {
|
|
2495
|
-
case "AccessDeniedException":
|
|
2496
|
-
case "com.amazonaws.bedrockagent#AccessDeniedException":
|
|
2497
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2498
|
-
case "InternalServerException":
|
|
2499
|
-
case "com.amazonaws.bedrockagent#InternalServerException":
|
|
2500
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2501
|
-
case "ThrottlingException":
|
|
2502
|
-
case "com.amazonaws.bedrockagent#ThrottlingException":
|
|
2503
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
2504
|
-
case "ValidationException":
|
|
2505
|
-
case "com.amazonaws.bedrockagent#ValidationException":
|
|
2506
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2507
|
-
default:
|
|
2508
|
-
const parsedBody = parsedOutput.body;
|
|
2509
|
-
return throwDefaultError({
|
|
2510
|
-
output,
|
|
2511
|
-
parsedBody,
|
|
2512
|
-
errorCode
|
|
2513
|
-
});
|
|
2514
|
-
}
|
|
2515
|
-
}, "de_ListKnowledgeBasesCommandError");
|
|
2516
1575
|
var de_ListTagsForResourceCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2517
1576
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2518
|
-
return
|
|
1577
|
+
return de_CommandError(output, context);
|
|
2519
1578
|
}
|
|
2520
1579
|
const contents = (0, import_smithy_client.map)({
|
|
2521
1580
|
$metadata: deserializeMetadata(output)
|
|
@@ -2527,145 +1586,40 @@ var de_ListTagsForResourceCommand = /* @__PURE__ */ __name(async (output, contex
|
|
|
2527
1586
|
Object.assign(contents, doc);
|
|
2528
1587
|
return contents;
|
|
2529
1588
|
}, "de_ListTagsForResourceCommand");
|
|
2530
|
-
var de_ListTagsForResourceCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2531
|
-
const parsedOutput = {
|
|
2532
|
-
...output,
|
|
2533
|
-
body: await parseErrorBody(output.body, context)
|
|
2534
|
-
};
|
|
2535
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2536
|
-
switch (errorCode) {
|
|
2537
|
-
case "AccessDeniedException":
|
|
2538
|
-
case "com.amazonaws.bedrockagent#AccessDeniedException":
|
|
2539
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2540
|
-
case "InternalServerException":
|
|
2541
|
-
case "com.amazonaws.bedrockagent#InternalServerException":
|
|
2542
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2543
|
-
case "ResourceNotFoundException":
|
|
2544
|
-
case "com.amazonaws.bedrockagent#ResourceNotFoundException":
|
|
2545
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2546
|
-
case "ThrottlingException":
|
|
2547
|
-
case "com.amazonaws.bedrockagent#ThrottlingException":
|
|
2548
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
2549
|
-
case "ValidationException":
|
|
2550
|
-
case "com.amazonaws.bedrockagent#ValidationException":
|
|
2551
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2552
|
-
default:
|
|
2553
|
-
const parsedBody = parsedOutput.body;
|
|
2554
|
-
return throwDefaultError({
|
|
2555
|
-
output,
|
|
2556
|
-
parsedBody,
|
|
2557
|
-
errorCode
|
|
2558
|
-
});
|
|
2559
|
-
}
|
|
2560
|
-
}, "de_ListTagsForResourceCommandError");
|
|
2561
1589
|
var de_PrepareAgentCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2562
1590
|
if (output.statusCode !== 202 && output.statusCode >= 300) {
|
|
2563
|
-
return
|
|
1591
|
+
return de_CommandError(output, context);
|
|
2564
1592
|
}
|
|
2565
1593
|
const contents = (0, import_smithy_client.map)({
|
|
2566
1594
|
$metadata: deserializeMetadata(output)
|
|
2567
|
-
});
|
|
2568
|
-
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
|
|
2569
|
-
const doc = (0, import_smithy_client.take)(data, {
|
|
2570
|
-
agentId: import_smithy_client.expectString,
|
|
2571
|
-
agentStatus: import_smithy_client.expectString,
|
|
2572
|
-
agentVersion: import_smithy_client.expectString,
|
|
2573
|
-
preparedAt: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseRfc3339DateTimeWithOffset)(_))
|
|
2574
|
-
});
|
|
2575
|
-
Object.assign(contents, doc);
|
|
2576
|
-
return contents;
|
|
2577
|
-
}, "de_PrepareAgentCommand");
|
|
2578
|
-
var
|
|
2579
|
-
|
|
2580
|
-
|
|
2581
|
-
body: await parseErrorBody(output.body, context)
|
|
2582
|
-
};
|
|
2583
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2584
|
-
switch (errorCode) {
|
|
2585
|
-
case "AccessDeniedException":
|
|
2586
|
-
case "com.amazonaws.bedrockagent#AccessDeniedException":
|
|
2587
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2588
|
-
case "ConflictException":
|
|
2589
|
-
case "com.amazonaws.bedrockagent#ConflictException":
|
|
2590
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
2591
|
-
case "InternalServerException":
|
|
2592
|
-
case "com.amazonaws.bedrockagent#InternalServerException":
|
|
2593
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2594
|
-
case "ResourceNotFoundException":
|
|
2595
|
-
case "com.amazonaws.bedrockagent#ResourceNotFoundException":
|
|
2596
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2597
|
-
case "ServiceQuotaExceededException":
|
|
2598
|
-
case "com.amazonaws.bedrockagent#ServiceQuotaExceededException":
|
|
2599
|
-
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
2600
|
-
case "ThrottlingException":
|
|
2601
|
-
case "com.amazonaws.bedrockagent#ThrottlingException":
|
|
2602
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
2603
|
-
case "ValidationException":
|
|
2604
|
-
case "com.amazonaws.bedrockagent#ValidationException":
|
|
2605
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2606
|
-
default:
|
|
2607
|
-
const parsedBody = parsedOutput.body;
|
|
2608
|
-
return throwDefaultError({
|
|
2609
|
-
output,
|
|
2610
|
-
parsedBody,
|
|
2611
|
-
errorCode
|
|
2612
|
-
});
|
|
2613
|
-
}
|
|
2614
|
-
}, "de_PrepareAgentCommandError");
|
|
2615
|
-
var de_StartIngestionJobCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2616
|
-
if (output.statusCode !== 202 && output.statusCode >= 300) {
|
|
2617
|
-
return de_StartIngestionJobCommandError(output, context);
|
|
2618
|
-
}
|
|
2619
|
-
const contents = (0, import_smithy_client.map)({
|
|
2620
|
-
$metadata: deserializeMetadata(output)
|
|
2621
|
-
});
|
|
2622
|
-
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
|
|
2623
|
-
const doc = (0, import_smithy_client.take)(data, {
|
|
2624
|
-
ingestionJob: (_) => de_IngestionJob(_, context)
|
|
2625
|
-
});
|
|
2626
|
-
Object.assign(contents, doc);
|
|
2627
|
-
return contents;
|
|
2628
|
-
}, "de_StartIngestionJobCommand");
|
|
2629
|
-
var de_StartIngestionJobCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2630
|
-
const parsedOutput = {
|
|
2631
|
-
...output,
|
|
2632
|
-
body: await parseErrorBody(output.body, context)
|
|
2633
|
-
};
|
|
2634
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2635
|
-
switch (errorCode) {
|
|
2636
|
-
case "AccessDeniedException":
|
|
2637
|
-
case "com.amazonaws.bedrockagent#AccessDeniedException":
|
|
2638
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2639
|
-
case "ConflictException":
|
|
2640
|
-
case "com.amazonaws.bedrockagent#ConflictException":
|
|
2641
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
2642
|
-
case "InternalServerException":
|
|
2643
|
-
case "com.amazonaws.bedrockagent#InternalServerException":
|
|
2644
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2645
|
-
case "ResourceNotFoundException":
|
|
2646
|
-
case "com.amazonaws.bedrockagent#ResourceNotFoundException":
|
|
2647
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2648
|
-
case "ServiceQuotaExceededException":
|
|
2649
|
-
case "com.amazonaws.bedrockagent#ServiceQuotaExceededException":
|
|
2650
|
-
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
2651
|
-
case "ThrottlingException":
|
|
2652
|
-
case "com.amazonaws.bedrockagent#ThrottlingException":
|
|
2653
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
2654
|
-
case "ValidationException":
|
|
2655
|
-
case "com.amazonaws.bedrockagent#ValidationException":
|
|
2656
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2657
|
-
default:
|
|
2658
|
-
const parsedBody = parsedOutput.body;
|
|
2659
|
-
return throwDefaultError({
|
|
2660
|
-
output,
|
|
2661
|
-
parsedBody,
|
|
2662
|
-
errorCode
|
|
2663
|
-
});
|
|
1595
|
+
});
|
|
1596
|
+
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
|
|
1597
|
+
const doc = (0, import_smithy_client.take)(data, {
|
|
1598
|
+
agentId: import_smithy_client.expectString,
|
|
1599
|
+
agentStatus: import_smithy_client.expectString,
|
|
1600
|
+
agentVersion: import_smithy_client.expectString,
|
|
1601
|
+
preparedAt: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseRfc3339DateTimeWithOffset)(_))
|
|
1602
|
+
});
|
|
1603
|
+
Object.assign(contents, doc);
|
|
1604
|
+
return contents;
|
|
1605
|
+
}, "de_PrepareAgentCommand");
|
|
1606
|
+
var de_StartIngestionJobCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1607
|
+
if (output.statusCode !== 202 && output.statusCode >= 300) {
|
|
1608
|
+
return de_CommandError(output, context);
|
|
2664
1609
|
}
|
|
2665
|
-
|
|
1610
|
+
const contents = (0, import_smithy_client.map)({
|
|
1611
|
+
$metadata: deserializeMetadata(output)
|
|
1612
|
+
});
|
|
1613
|
+
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
|
|
1614
|
+
const doc = (0, import_smithy_client.take)(data, {
|
|
1615
|
+
ingestionJob: (_) => de_IngestionJob(_, context)
|
|
1616
|
+
});
|
|
1617
|
+
Object.assign(contents, doc);
|
|
1618
|
+
return contents;
|
|
1619
|
+
}, "de_StartIngestionJobCommand");
|
|
2666
1620
|
var de_TagResourceCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2667
1621
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2668
|
-
return
|
|
1622
|
+
return de_CommandError(output, context);
|
|
2669
1623
|
}
|
|
2670
1624
|
const contents = (0, import_smithy_client.map)({
|
|
2671
1625
|
$metadata: deserializeMetadata(output)
|
|
@@ -2673,43 +1627,9 @@ var de_TagResourceCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
2673
1627
|
await (0, import_smithy_client.collectBody)(output.body, context);
|
|
2674
1628
|
return contents;
|
|
2675
1629
|
}, "de_TagResourceCommand");
|
|
2676
|
-
var de_TagResourceCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2677
|
-
const parsedOutput = {
|
|
2678
|
-
...output,
|
|
2679
|
-
body: await parseErrorBody(output.body, context)
|
|
2680
|
-
};
|
|
2681
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2682
|
-
switch (errorCode) {
|
|
2683
|
-
case "AccessDeniedException":
|
|
2684
|
-
case "com.amazonaws.bedrockagent#AccessDeniedException":
|
|
2685
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2686
|
-
case "InternalServerException":
|
|
2687
|
-
case "com.amazonaws.bedrockagent#InternalServerException":
|
|
2688
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2689
|
-
case "ResourceNotFoundException":
|
|
2690
|
-
case "com.amazonaws.bedrockagent#ResourceNotFoundException":
|
|
2691
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2692
|
-
case "ServiceQuotaExceededException":
|
|
2693
|
-
case "com.amazonaws.bedrockagent#ServiceQuotaExceededException":
|
|
2694
|
-
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
2695
|
-
case "ThrottlingException":
|
|
2696
|
-
case "com.amazonaws.bedrockagent#ThrottlingException":
|
|
2697
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
2698
|
-
case "ValidationException":
|
|
2699
|
-
case "com.amazonaws.bedrockagent#ValidationException":
|
|
2700
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2701
|
-
default:
|
|
2702
|
-
const parsedBody = parsedOutput.body;
|
|
2703
|
-
return throwDefaultError({
|
|
2704
|
-
output,
|
|
2705
|
-
parsedBody,
|
|
2706
|
-
errorCode
|
|
2707
|
-
});
|
|
2708
|
-
}
|
|
2709
|
-
}, "de_TagResourceCommandError");
|
|
2710
1630
|
var de_UntagResourceCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2711
1631
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2712
|
-
return
|
|
1632
|
+
return de_CommandError(output, context);
|
|
2713
1633
|
}
|
|
2714
1634
|
const contents = (0, import_smithy_client.map)({
|
|
2715
1635
|
$metadata: deserializeMetadata(output)
|
|
@@ -2717,40 +1637,9 @@ var de_UntagResourceCommand = /* @__PURE__ */ __name(async (output, context) =>
|
|
|
2717
1637
|
await (0, import_smithy_client.collectBody)(output.body, context);
|
|
2718
1638
|
return contents;
|
|
2719
1639
|
}, "de_UntagResourceCommand");
|
|
2720
|
-
var de_UntagResourceCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2721
|
-
const parsedOutput = {
|
|
2722
|
-
...output,
|
|
2723
|
-
body: await parseErrorBody(output.body, context)
|
|
2724
|
-
};
|
|
2725
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2726
|
-
switch (errorCode) {
|
|
2727
|
-
case "AccessDeniedException":
|
|
2728
|
-
case "com.amazonaws.bedrockagent#AccessDeniedException":
|
|
2729
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2730
|
-
case "InternalServerException":
|
|
2731
|
-
case "com.amazonaws.bedrockagent#InternalServerException":
|
|
2732
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2733
|
-
case "ResourceNotFoundException":
|
|
2734
|
-
case "com.amazonaws.bedrockagent#ResourceNotFoundException":
|
|
2735
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2736
|
-
case "ThrottlingException":
|
|
2737
|
-
case "com.amazonaws.bedrockagent#ThrottlingException":
|
|
2738
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
2739
|
-
case "ValidationException":
|
|
2740
|
-
case "com.amazonaws.bedrockagent#ValidationException":
|
|
2741
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2742
|
-
default:
|
|
2743
|
-
const parsedBody = parsedOutput.body;
|
|
2744
|
-
return throwDefaultError({
|
|
2745
|
-
output,
|
|
2746
|
-
parsedBody,
|
|
2747
|
-
errorCode
|
|
2748
|
-
});
|
|
2749
|
-
}
|
|
2750
|
-
}, "de_UntagResourceCommandError");
|
|
2751
1640
|
var de_UpdateAgentCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2752
1641
|
if (output.statusCode !== 202 && output.statusCode >= 300) {
|
|
2753
|
-
return
|
|
1642
|
+
return de_CommandError(output, context);
|
|
2754
1643
|
}
|
|
2755
1644
|
const contents = (0, import_smithy_client.map)({
|
|
2756
1645
|
$metadata: deserializeMetadata(output)
|
|
@@ -2762,46 +1651,9 @@ var de_UpdateAgentCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
2762
1651
|
Object.assign(contents, doc);
|
|
2763
1652
|
return contents;
|
|
2764
1653
|
}, "de_UpdateAgentCommand");
|
|
2765
|
-
var de_UpdateAgentCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2766
|
-
const parsedOutput = {
|
|
2767
|
-
...output,
|
|
2768
|
-
body: await parseErrorBody(output.body, context)
|
|
2769
|
-
};
|
|
2770
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2771
|
-
switch (errorCode) {
|
|
2772
|
-
case "AccessDeniedException":
|
|
2773
|
-
case "com.amazonaws.bedrockagent#AccessDeniedException":
|
|
2774
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2775
|
-
case "ConflictException":
|
|
2776
|
-
case "com.amazonaws.bedrockagent#ConflictException":
|
|
2777
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
2778
|
-
case "InternalServerException":
|
|
2779
|
-
case "com.amazonaws.bedrockagent#InternalServerException":
|
|
2780
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2781
|
-
case "ResourceNotFoundException":
|
|
2782
|
-
case "com.amazonaws.bedrockagent#ResourceNotFoundException":
|
|
2783
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2784
|
-
case "ServiceQuotaExceededException":
|
|
2785
|
-
case "com.amazonaws.bedrockagent#ServiceQuotaExceededException":
|
|
2786
|
-
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
2787
|
-
case "ThrottlingException":
|
|
2788
|
-
case "com.amazonaws.bedrockagent#ThrottlingException":
|
|
2789
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
2790
|
-
case "ValidationException":
|
|
2791
|
-
case "com.amazonaws.bedrockagent#ValidationException":
|
|
2792
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2793
|
-
default:
|
|
2794
|
-
const parsedBody = parsedOutput.body;
|
|
2795
|
-
return throwDefaultError({
|
|
2796
|
-
output,
|
|
2797
|
-
parsedBody,
|
|
2798
|
-
errorCode
|
|
2799
|
-
});
|
|
2800
|
-
}
|
|
2801
|
-
}, "de_UpdateAgentCommandError");
|
|
2802
1654
|
var de_UpdateAgentActionGroupCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2803
1655
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2804
|
-
return
|
|
1656
|
+
return de_CommandError(output, context);
|
|
2805
1657
|
}
|
|
2806
1658
|
const contents = (0, import_smithy_client.map)({
|
|
2807
1659
|
$metadata: deserializeMetadata(output)
|
|
@@ -2813,46 +1665,9 @@ var de_UpdateAgentActionGroupCommand = /* @__PURE__ */ __name(async (output, con
|
|
|
2813
1665
|
Object.assign(contents, doc);
|
|
2814
1666
|
return contents;
|
|
2815
1667
|
}, "de_UpdateAgentActionGroupCommand");
|
|
2816
|
-
var de_UpdateAgentActionGroupCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2817
|
-
const parsedOutput = {
|
|
2818
|
-
...output,
|
|
2819
|
-
body: await parseErrorBody(output.body, context)
|
|
2820
|
-
};
|
|
2821
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2822
|
-
switch (errorCode) {
|
|
2823
|
-
case "AccessDeniedException":
|
|
2824
|
-
case "com.amazonaws.bedrockagent#AccessDeniedException":
|
|
2825
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2826
|
-
case "ConflictException":
|
|
2827
|
-
case "com.amazonaws.bedrockagent#ConflictException":
|
|
2828
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
2829
|
-
case "InternalServerException":
|
|
2830
|
-
case "com.amazonaws.bedrockagent#InternalServerException":
|
|
2831
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2832
|
-
case "ResourceNotFoundException":
|
|
2833
|
-
case "com.amazonaws.bedrockagent#ResourceNotFoundException":
|
|
2834
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2835
|
-
case "ServiceQuotaExceededException":
|
|
2836
|
-
case "com.amazonaws.bedrockagent#ServiceQuotaExceededException":
|
|
2837
|
-
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
2838
|
-
case "ThrottlingException":
|
|
2839
|
-
case "com.amazonaws.bedrockagent#ThrottlingException":
|
|
2840
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
2841
|
-
case "ValidationException":
|
|
2842
|
-
case "com.amazonaws.bedrockagent#ValidationException":
|
|
2843
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2844
|
-
default:
|
|
2845
|
-
const parsedBody = parsedOutput.body;
|
|
2846
|
-
return throwDefaultError({
|
|
2847
|
-
output,
|
|
2848
|
-
parsedBody,
|
|
2849
|
-
errorCode
|
|
2850
|
-
});
|
|
2851
|
-
}
|
|
2852
|
-
}, "de_UpdateAgentActionGroupCommandError");
|
|
2853
1668
|
var de_UpdateAgentAliasCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2854
1669
|
if (output.statusCode !== 202 && output.statusCode >= 300) {
|
|
2855
|
-
return
|
|
1670
|
+
return de_CommandError(output, context);
|
|
2856
1671
|
}
|
|
2857
1672
|
const contents = (0, import_smithy_client.map)({
|
|
2858
1673
|
$metadata: deserializeMetadata(output)
|
|
@@ -2864,46 +1679,9 @@ var de_UpdateAgentAliasCommand = /* @__PURE__ */ __name(async (output, context)
|
|
|
2864
1679
|
Object.assign(contents, doc);
|
|
2865
1680
|
return contents;
|
|
2866
1681
|
}, "de_UpdateAgentAliasCommand");
|
|
2867
|
-
var de_UpdateAgentAliasCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2868
|
-
const parsedOutput = {
|
|
2869
|
-
...output,
|
|
2870
|
-
body: await parseErrorBody(output.body, context)
|
|
2871
|
-
};
|
|
2872
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2873
|
-
switch (errorCode) {
|
|
2874
|
-
case "AccessDeniedException":
|
|
2875
|
-
case "com.amazonaws.bedrockagent#AccessDeniedException":
|
|
2876
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2877
|
-
case "ConflictException":
|
|
2878
|
-
case "com.amazonaws.bedrockagent#ConflictException":
|
|
2879
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
2880
|
-
case "InternalServerException":
|
|
2881
|
-
case "com.amazonaws.bedrockagent#InternalServerException":
|
|
2882
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2883
|
-
case "ResourceNotFoundException":
|
|
2884
|
-
case "com.amazonaws.bedrockagent#ResourceNotFoundException":
|
|
2885
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2886
|
-
case "ServiceQuotaExceededException":
|
|
2887
|
-
case "com.amazonaws.bedrockagent#ServiceQuotaExceededException":
|
|
2888
|
-
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
2889
|
-
case "ThrottlingException":
|
|
2890
|
-
case "com.amazonaws.bedrockagent#ThrottlingException":
|
|
2891
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
2892
|
-
case "ValidationException":
|
|
2893
|
-
case "com.amazonaws.bedrockagent#ValidationException":
|
|
2894
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2895
|
-
default:
|
|
2896
|
-
const parsedBody = parsedOutput.body;
|
|
2897
|
-
return throwDefaultError({
|
|
2898
|
-
output,
|
|
2899
|
-
parsedBody,
|
|
2900
|
-
errorCode
|
|
2901
|
-
});
|
|
2902
|
-
}
|
|
2903
|
-
}, "de_UpdateAgentAliasCommandError");
|
|
2904
1682
|
var de_UpdateAgentKnowledgeBaseCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2905
1683
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2906
|
-
return
|
|
1684
|
+
return de_CommandError(output, context);
|
|
2907
1685
|
}
|
|
2908
1686
|
const contents = (0, import_smithy_client.map)({
|
|
2909
1687
|
$metadata: deserializeMetadata(output)
|
|
@@ -2915,43 +1693,9 @@ var de_UpdateAgentKnowledgeBaseCommand = /* @__PURE__ */ __name(async (output, c
|
|
|
2915
1693
|
Object.assign(contents, doc);
|
|
2916
1694
|
return contents;
|
|
2917
1695
|
}, "de_UpdateAgentKnowledgeBaseCommand");
|
|
2918
|
-
var de_UpdateAgentKnowledgeBaseCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2919
|
-
const parsedOutput = {
|
|
2920
|
-
...output,
|
|
2921
|
-
body: await parseErrorBody(output.body, context)
|
|
2922
|
-
};
|
|
2923
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2924
|
-
switch (errorCode) {
|
|
2925
|
-
case "AccessDeniedException":
|
|
2926
|
-
case "com.amazonaws.bedrockagent#AccessDeniedException":
|
|
2927
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2928
|
-
case "ConflictException":
|
|
2929
|
-
case "com.amazonaws.bedrockagent#ConflictException":
|
|
2930
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
2931
|
-
case "InternalServerException":
|
|
2932
|
-
case "com.amazonaws.bedrockagent#InternalServerException":
|
|
2933
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2934
|
-
case "ResourceNotFoundException":
|
|
2935
|
-
case "com.amazonaws.bedrockagent#ResourceNotFoundException":
|
|
2936
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2937
|
-
case "ThrottlingException":
|
|
2938
|
-
case "com.amazonaws.bedrockagent#ThrottlingException":
|
|
2939
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
2940
|
-
case "ValidationException":
|
|
2941
|
-
case "com.amazonaws.bedrockagent#ValidationException":
|
|
2942
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2943
|
-
default:
|
|
2944
|
-
const parsedBody = parsedOutput.body;
|
|
2945
|
-
return throwDefaultError({
|
|
2946
|
-
output,
|
|
2947
|
-
parsedBody,
|
|
2948
|
-
errorCode
|
|
2949
|
-
});
|
|
2950
|
-
}
|
|
2951
|
-
}, "de_UpdateAgentKnowledgeBaseCommandError");
|
|
2952
1696
|
var de_UpdateDataSourceCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2953
1697
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2954
|
-
return
|
|
1698
|
+
return de_CommandError(output, context);
|
|
2955
1699
|
}
|
|
2956
1700
|
const contents = (0, import_smithy_client.map)({
|
|
2957
1701
|
$metadata: deserializeMetadata(output)
|
|
@@ -2963,43 +1707,9 @@ var de_UpdateDataSourceCommand = /* @__PURE__ */ __name(async (output, context)
|
|
|
2963
1707
|
Object.assign(contents, doc);
|
|
2964
1708
|
return contents;
|
|
2965
1709
|
}, "de_UpdateDataSourceCommand");
|
|
2966
|
-
var de_UpdateDataSourceCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2967
|
-
const parsedOutput = {
|
|
2968
|
-
...output,
|
|
2969
|
-
body: await parseErrorBody(output.body, context)
|
|
2970
|
-
};
|
|
2971
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2972
|
-
switch (errorCode) {
|
|
2973
|
-
case "AccessDeniedException":
|
|
2974
|
-
case "com.amazonaws.bedrockagent#AccessDeniedException":
|
|
2975
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2976
|
-
case "ConflictException":
|
|
2977
|
-
case "com.amazonaws.bedrockagent#ConflictException":
|
|
2978
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
2979
|
-
case "InternalServerException":
|
|
2980
|
-
case "com.amazonaws.bedrockagent#InternalServerException":
|
|
2981
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2982
|
-
case "ResourceNotFoundException":
|
|
2983
|
-
case "com.amazonaws.bedrockagent#ResourceNotFoundException":
|
|
2984
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2985
|
-
case "ThrottlingException":
|
|
2986
|
-
case "com.amazonaws.bedrockagent#ThrottlingException":
|
|
2987
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
2988
|
-
case "ValidationException":
|
|
2989
|
-
case "com.amazonaws.bedrockagent#ValidationException":
|
|
2990
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2991
|
-
default:
|
|
2992
|
-
const parsedBody = parsedOutput.body;
|
|
2993
|
-
return throwDefaultError({
|
|
2994
|
-
output,
|
|
2995
|
-
parsedBody,
|
|
2996
|
-
errorCode
|
|
2997
|
-
});
|
|
2998
|
-
}
|
|
2999
|
-
}, "de_UpdateDataSourceCommandError");
|
|
3000
1710
|
var de_UpdateKnowledgeBaseCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
3001
1711
|
if (output.statusCode !== 202 && output.statusCode >= 300) {
|
|
3002
|
-
return
|
|
1712
|
+
return de_CommandError(output, context);
|
|
3003
1713
|
}
|
|
3004
1714
|
const contents = (0, import_smithy_client.map)({
|
|
3005
1715
|
$metadata: deserializeMetadata(output)
|
|
@@ -3011,7 +1721,7 @@ var de_UpdateKnowledgeBaseCommand = /* @__PURE__ */ __name(async (output, contex
|
|
|
3011
1721
|
Object.assign(contents, doc);
|
|
3012
1722
|
return contents;
|
|
3013
1723
|
}, "de_UpdateKnowledgeBaseCommand");
|
|
3014
|
-
var
|
|
1724
|
+
var de_CommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
3015
1725
|
const parsedOutput = {
|
|
3016
1726
|
...output,
|
|
3017
1727
|
body: await parseErrorBody(output.body, context)
|
|
@@ -3030,6 +1740,9 @@ var de_UpdateKnowledgeBaseCommandError = /* @__PURE__ */ __name(async (output, c
|
|
|
3030
1740
|
case "ResourceNotFoundException":
|
|
3031
1741
|
case "com.amazonaws.bedrockagent#ResourceNotFoundException":
|
|
3032
1742
|
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1743
|
+
case "ServiceQuotaExceededException":
|
|
1744
|
+
case "com.amazonaws.bedrockagent#ServiceQuotaExceededException":
|
|
1745
|
+
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
3033
1746
|
case "ThrottlingException":
|
|
3034
1747
|
case "com.amazonaws.bedrockagent#ThrottlingException":
|
|
3035
1748
|
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
@@ -3044,7 +1757,7 @@ var de_UpdateKnowledgeBaseCommandError = /* @__PURE__ */ __name(async (output, c
|
|
|
3044
1757
|
errorCode
|
|
3045
1758
|
});
|
|
3046
1759
|
}
|
|
3047
|
-
}, "
|
|
1760
|
+
}, "de_CommandError");
|
|
3048
1761
|
var throwDefaultError = (0, import_smithy_client.withBaseException)(BedrockAgentServiceException);
|
|
3049
1762
|
var de_AccessDeniedExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
|
|
3050
1763
|
const contents = (0, import_smithy_client.map)({});
|