@aws-sdk/client-kafka 3.504.0 → 3.507.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist-cjs/index.js +80 -1739
- package/dist-es/protocols/Aws_restJson1.js +73 -1732
- package/package.json +3 -3
package/dist-cjs/index.js
CHANGED
|
@@ -1186,7 +1186,7 @@ var se_UpdateStorageCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
|
1186
1186
|
}, "se_UpdateStorageCommand");
|
|
1187
1187
|
var de_BatchAssociateScramSecretCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1188
1188
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1189
|
-
return
|
|
1189
|
+
return de_CommandError(output, context);
|
|
1190
1190
|
}
|
|
1191
1191
|
const contents = (0, import_smithy_client.map)({
|
|
1192
1192
|
$metadata: deserializeMetadata(output)
|
|
@@ -1199,46 +1199,9 @@ var de_BatchAssociateScramSecretCommand = /* @__PURE__ */ __name(async (output,
|
|
|
1199
1199
|
Object.assign(contents, doc);
|
|
1200
1200
|
return contents;
|
|
1201
1201
|
}, "de_BatchAssociateScramSecretCommand");
|
|
1202
|
-
var de_BatchAssociateScramSecretCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1203
|
-
const parsedOutput = {
|
|
1204
|
-
...output,
|
|
1205
|
-
body: await parseErrorBody(output.body, context)
|
|
1206
|
-
};
|
|
1207
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1208
|
-
switch (errorCode) {
|
|
1209
|
-
case "BadRequestException":
|
|
1210
|
-
case "com.amazonaws.kafka#BadRequestException":
|
|
1211
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
1212
|
-
case "ForbiddenException":
|
|
1213
|
-
case "com.amazonaws.kafka#ForbiddenException":
|
|
1214
|
-
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
1215
|
-
case "InternalServerErrorException":
|
|
1216
|
-
case "com.amazonaws.kafka#InternalServerErrorException":
|
|
1217
|
-
throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
|
|
1218
|
-
case "NotFoundException":
|
|
1219
|
-
case "com.amazonaws.kafka#NotFoundException":
|
|
1220
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
1221
|
-
case "ServiceUnavailableException":
|
|
1222
|
-
case "com.amazonaws.kafka#ServiceUnavailableException":
|
|
1223
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
1224
|
-
case "TooManyRequestsException":
|
|
1225
|
-
case "com.amazonaws.kafka#TooManyRequestsException":
|
|
1226
|
-
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
1227
|
-
case "UnauthorizedException":
|
|
1228
|
-
case "com.amazonaws.kafka#UnauthorizedException":
|
|
1229
|
-
throw await de_UnauthorizedExceptionRes(parsedOutput, context);
|
|
1230
|
-
default:
|
|
1231
|
-
const parsedBody = parsedOutput.body;
|
|
1232
|
-
return throwDefaultError({
|
|
1233
|
-
output,
|
|
1234
|
-
parsedBody,
|
|
1235
|
-
errorCode
|
|
1236
|
-
});
|
|
1237
|
-
}
|
|
1238
|
-
}, "de_BatchAssociateScramSecretCommandError");
|
|
1239
1202
|
var de_BatchDisassociateScramSecretCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1240
1203
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1241
|
-
return
|
|
1204
|
+
return de_CommandError(output, context);
|
|
1242
1205
|
}
|
|
1243
1206
|
const contents = (0, import_smithy_client.map)({
|
|
1244
1207
|
$metadata: deserializeMetadata(output)
|
|
@@ -1251,46 +1214,9 @@ var de_BatchDisassociateScramSecretCommand = /* @__PURE__ */ __name(async (outpu
|
|
|
1251
1214
|
Object.assign(contents, doc);
|
|
1252
1215
|
return contents;
|
|
1253
1216
|
}, "de_BatchDisassociateScramSecretCommand");
|
|
1254
|
-
var de_BatchDisassociateScramSecretCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1255
|
-
const parsedOutput = {
|
|
1256
|
-
...output,
|
|
1257
|
-
body: await parseErrorBody(output.body, context)
|
|
1258
|
-
};
|
|
1259
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1260
|
-
switch (errorCode) {
|
|
1261
|
-
case "BadRequestException":
|
|
1262
|
-
case "com.amazonaws.kafka#BadRequestException":
|
|
1263
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
1264
|
-
case "ForbiddenException":
|
|
1265
|
-
case "com.amazonaws.kafka#ForbiddenException":
|
|
1266
|
-
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
1267
|
-
case "InternalServerErrorException":
|
|
1268
|
-
case "com.amazonaws.kafka#InternalServerErrorException":
|
|
1269
|
-
throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
|
|
1270
|
-
case "NotFoundException":
|
|
1271
|
-
case "com.amazonaws.kafka#NotFoundException":
|
|
1272
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
1273
|
-
case "ServiceUnavailableException":
|
|
1274
|
-
case "com.amazonaws.kafka#ServiceUnavailableException":
|
|
1275
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
1276
|
-
case "TooManyRequestsException":
|
|
1277
|
-
case "com.amazonaws.kafka#TooManyRequestsException":
|
|
1278
|
-
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
1279
|
-
case "UnauthorizedException":
|
|
1280
|
-
case "com.amazonaws.kafka#UnauthorizedException":
|
|
1281
|
-
throw await de_UnauthorizedExceptionRes(parsedOutput, context);
|
|
1282
|
-
default:
|
|
1283
|
-
const parsedBody = parsedOutput.body;
|
|
1284
|
-
return throwDefaultError({
|
|
1285
|
-
output,
|
|
1286
|
-
parsedBody,
|
|
1287
|
-
errorCode
|
|
1288
|
-
});
|
|
1289
|
-
}
|
|
1290
|
-
}, "de_BatchDisassociateScramSecretCommandError");
|
|
1291
1217
|
var de_CreateClusterCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1292
1218
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1293
|
-
return
|
|
1219
|
+
return de_CommandError(output, context);
|
|
1294
1220
|
}
|
|
1295
1221
|
const contents = (0, import_smithy_client.map)({
|
|
1296
1222
|
$metadata: deserializeMetadata(output)
|
|
@@ -1304,46 +1230,9 @@ var de_CreateClusterCommand = /* @__PURE__ */ __name(async (output, context) =>
|
|
|
1304
1230
|
Object.assign(contents, doc);
|
|
1305
1231
|
return contents;
|
|
1306
1232
|
}, "de_CreateClusterCommand");
|
|
1307
|
-
var de_CreateClusterCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1308
|
-
const parsedOutput = {
|
|
1309
|
-
...output,
|
|
1310
|
-
body: await parseErrorBody(output.body, context)
|
|
1311
|
-
};
|
|
1312
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1313
|
-
switch (errorCode) {
|
|
1314
|
-
case "BadRequestException":
|
|
1315
|
-
case "com.amazonaws.kafka#BadRequestException":
|
|
1316
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
1317
|
-
case "ConflictException":
|
|
1318
|
-
case "com.amazonaws.kafka#ConflictException":
|
|
1319
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1320
|
-
case "ForbiddenException":
|
|
1321
|
-
case "com.amazonaws.kafka#ForbiddenException":
|
|
1322
|
-
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
1323
|
-
case "InternalServerErrorException":
|
|
1324
|
-
case "com.amazonaws.kafka#InternalServerErrorException":
|
|
1325
|
-
throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
|
|
1326
|
-
case "ServiceUnavailableException":
|
|
1327
|
-
case "com.amazonaws.kafka#ServiceUnavailableException":
|
|
1328
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
1329
|
-
case "TooManyRequestsException":
|
|
1330
|
-
case "com.amazonaws.kafka#TooManyRequestsException":
|
|
1331
|
-
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
1332
|
-
case "UnauthorizedException":
|
|
1333
|
-
case "com.amazonaws.kafka#UnauthorizedException":
|
|
1334
|
-
throw await de_UnauthorizedExceptionRes(parsedOutput, context);
|
|
1335
|
-
default:
|
|
1336
|
-
const parsedBody = parsedOutput.body;
|
|
1337
|
-
return throwDefaultError({
|
|
1338
|
-
output,
|
|
1339
|
-
parsedBody,
|
|
1340
|
-
errorCode
|
|
1341
|
-
});
|
|
1342
|
-
}
|
|
1343
|
-
}, "de_CreateClusterCommandError");
|
|
1344
1233
|
var de_CreateClusterV2Command = /* @__PURE__ */ __name(async (output, context) => {
|
|
1345
1234
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1346
|
-
return
|
|
1235
|
+
return de_CommandError(output, context);
|
|
1347
1236
|
}
|
|
1348
1237
|
const contents = (0, import_smithy_client.map)({
|
|
1349
1238
|
$metadata: deserializeMetadata(output)
|
|
@@ -1358,46 +1247,9 @@ var de_CreateClusterV2Command = /* @__PURE__ */ __name(async (output, context) =
|
|
|
1358
1247
|
Object.assign(contents, doc);
|
|
1359
1248
|
return contents;
|
|
1360
1249
|
}, "de_CreateClusterV2Command");
|
|
1361
|
-
var de_CreateClusterV2CommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1362
|
-
const parsedOutput = {
|
|
1363
|
-
...output,
|
|
1364
|
-
body: await parseErrorBody(output.body, context)
|
|
1365
|
-
};
|
|
1366
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1367
|
-
switch (errorCode) {
|
|
1368
|
-
case "BadRequestException":
|
|
1369
|
-
case "com.amazonaws.kafka#BadRequestException":
|
|
1370
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
1371
|
-
case "ConflictException":
|
|
1372
|
-
case "com.amazonaws.kafka#ConflictException":
|
|
1373
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1374
|
-
case "ForbiddenException":
|
|
1375
|
-
case "com.amazonaws.kafka#ForbiddenException":
|
|
1376
|
-
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
1377
|
-
case "InternalServerErrorException":
|
|
1378
|
-
case "com.amazonaws.kafka#InternalServerErrorException":
|
|
1379
|
-
throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
|
|
1380
|
-
case "ServiceUnavailableException":
|
|
1381
|
-
case "com.amazonaws.kafka#ServiceUnavailableException":
|
|
1382
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
1383
|
-
case "TooManyRequestsException":
|
|
1384
|
-
case "com.amazonaws.kafka#TooManyRequestsException":
|
|
1385
|
-
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
1386
|
-
case "UnauthorizedException":
|
|
1387
|
-
case "com.amazonaws.kafka#UnauthorizedException":
|
|
1388
|
-
throw await de_UnauthorizedExceptionRes(parsedOutput, context);
|
|
1389
|
-
default:
|
|
1390
|
-
const parsedBody = parsedOutput.body;
|
|
1391
|
-
return throwDefaultError({
|
|
1392
|
-
output,
|
|
1393
|
-
parsedBody,
|
|
1394
|
-
errorCode
|
|
1395
|
-
});
|
|
1396
|
-
}
|
|
1397
|
-
}, "de_CreateClusterV2CommandError");
|
|
1398
1250
|
var de_CreateConfigurationCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1399
1251
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1400
|
-
return
|
|
1252
|
+
return de_CommandError(output, context);
|
|
1401
1253
|
}
|
|
1402
1254
|
const contents = (0, import_smithy_client.map)({
|
|
1403
1255
|
$metadata: deserializeMetadata(output)
|
|
@@ -1413,46 +1265,9 @@ var de_CreateConfigurationCommand = /* @__PURE__ */ __name(async (output, contex
|
|
|
1413
1265
|
Object.assign(contents, doc);
|
|
1414
1266
|
return contents;
|
|
1415
1267
|
}, "de_CreateConfigurationCommand");
|
|
1416
|
-
var de_CreateConfigurationCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1417
|
-
const parsedOutput = {
|
|
1418
|
-
...output,
|
|
1419
|
-
body: await parseErrorBody(output.body, context)
|
|
1420
|
-
};
|
|
1421
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1422
|
-
switch (errorCode) {
|
|
1423
|
-
case "BadRequestException":
|
|
1424
|
-
case "com.amazonaws.kafka#BadRequestException":
|
|
1425
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
1426
|
-
case "ConflictException":
|
|
1427
|
-
case "com.amazonaws.kafka#ConflictException":
|
|
1428
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1429
|
-
case "ForbiddenException":
|
|
1430
|
-
case "com.amazonaws.kafka#ForbiddenException":
|
|
1431
|
-
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
1432
|
-
case "InternalServerErrorException":
|
|
1433
|
-
case "com.amazonaws.kafka#InternalServerErrorException":
|
|
1434
|
-
throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
|
|
1435
|
-
case "ServiceUnavailableException":
|
|
1436
|
-
case "com.amazonaws.kafka#ServiceUnavailableException":
|
|
1437
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
1438
|
-
case "TooManyRequestsException":
|
|
1439
|
-
case "com.amazonaws.kafka#TooManyRequestsException":
|
|
1440
|
-
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
1441
|
-
case "UnauthorizedException":
|
|
1442
|
-
case "com.amazonaws.kafka#UnauthorizedException":
|
|
1443
|
-
throw await de_UnauthorizedExceptionRes(parsedOutput, context);
|
|
1444
|
-
default:
|
|
1445
|
-
const parsedBody = parsedOutput.body;
|
|
1446
|
-
return throwDefaultError({
|
|
1447
|
-
output,
|
|
1448
|
-
parsedBody,
|
|
1449
|
-
errorCode
|
|
1450
|
-
});
|
|
1451
|
-
}
|
|
1452
|
-
}, "de_CreateConfigurationCommandError");
|
|
1453
1268
|
var de_CreateReplicatorCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1454
1269
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1455
|
-
return
|
|
1270
|
+
return de_CommandError(output, context);
|
|
1456
1271
|
}
|
|
1457
1272
|
const contents = (0, import_smithy_client.map)({
|
|
1458
1273
|
$metadata: deserializeMetadata(output)
|
|
@@ -1466,49 +1281,9 @@ var de_CreateReplicatorCommand = /* @__PURE__ */ __name(async (output, context)
|
|
|
1466
1281
|
Object.assign(contents, doc);
|
|
1467
1282
|
return contents;
|
|
1468
1283
|
}, "de_CreateReplicatorCommand");
|
|
1469
|
-
var de_CreateReplicatorCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1470
|
-
const parsedOutput = {
|
|
1471
|
-
...output,
|
|
1472
|
-
body: await parseErrorBody(output.body, context)
|
|
1473
|
-
};
|
|
1474
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1475
|
-
switch (errorCode) {
|
|
1476
|
-
case "BadRequestException":
|
|
1477
|
-
case "com.amazonaws.kafka#BadRequestException":
|
|
1478
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
1479
|
-
case "ConflictException":
|
|
1480
|
-
case "com.amazonaws.kafka#ConflictException":
|
|
1481
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1482
|
-
case "ForbiddenException":
|
|
1483
|
-
case "com.amazonaws.kafka#ForbiddenException":
|
|
1484
|
-
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
1485
|
-
case "InternalServerErrorException":
|
|
1486
|
-
case "com.amazonaws.kafka#InternalServerErrorException":
|
|
1487
|
-
throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
|
|
1488
|
-
case "NotFoundException":
|
|
1489
|
-
case "com.amazonaws.kafka#NotFoundException":
|
|
1490
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
1491
|
-
case "ServiceUnavailableException":
|
|
1492
|
-
case "com.amazonaws.kafka#ServiceUnavailableException":
|
|
1493
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
1494
|
-
case "TooManyRequestsException":
|
|
1495
|
-
case "com.amazonaws.kafka#TooManyRequestsException":
|
|
1496
|
-
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
1497
|
-
case "UnauthorizedException":
|
|
1498
|
-
case "com.amazonaws.kafka#UnauthorizedException":
|
|
1499
|
-
throw await de_UnauthorizedExceptionRes(parsedOutput, context);
|
|
1500
|
-
default:
|
|
1501
|
-
const parsedBody = parsedOutput.body;
|
|
1502
|
-
return throwDefaultError({
|
|
1503
|
-
output,
|
|
1504
|
-
parsedBody,
|
|
1505
|
-
errorCode
|
|
1506
|
-
});
|
|
1507
|
-
}
|
|
1508
|
-
}, "de_CreateReplicatorCommandError");
|
|
1509
1284
|
var de_CreateVpcConnectionCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1510
1285
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1511
|
-
return
|
|
1286
|
+
return de_CommandError(output, context);
|
|
1512
1287
|
}
|
|
1513
1288
|
const contents = (0, import_smithy_client.map)({
|
|
1514
1289
|
$metadata: deserializeMetadata(output)
|
|
@@ -1527,43 +1302,9 @@ var de_CreateVpcConnectionCommand = /* @__PURE__ */ __name(async (output, contex
|
|
|
1527
1302
|
Object.assign(contents, doc);
|
|
1528
1303
|
return contents;
|
|
1529
1304
|
}, "de_CreateVpcConnectionCommand");
|
|
1530
|
-
var de_CreateVpcConnectionCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1531
|
-
const parsedOutput = {
|
|
1532
|
-
...output,
|
|
1533
|
-
body: await parseErrorBody(output.body, context)
|
|
1534
|
-
};
|
|
1535
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1536
|
-
switch (errorCode) {
|
|
1537
|
-
case "BadRequestException":
|
|
1538
|
-
case "com.amazonaws.kafka#BadRequestException":
|
|
1539
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
1540
|
-
case "ForbiddenException":
|
|
1541
|
-
case "com.amazonaws.kafka#ForbiddenException":
|
|
1542
|
-
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
1543
|
-
case "InternalServerErrorException":
|
|
1544
|
-
case "com.amazonaws.kafka#InternalServerErrorException":
|
|
1545
|
-
throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
|
|
1546
|
-
case "ServiceUnavailableException":
|
|
1547
|
-
case "com.amazonaws.kafka#ServiceUnavailableException":
|
|
1548
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
1549
|
-
case "TooManyRequestsException":
|
|
1550
|
-
case "com.amazonaws.kafka#TooManyRequestsException":
|
|
1551
|
-
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
1552
|
-
case "UnauthorizedException":
|
|
1553
|
-
case "com.amazonaws.kafka#UnauthorizedException":
|
|
1554
|
-
throw await de_UnauthorizedExceptionRes(parsedOutput, context);
|
|
1555
|
-
default:
|
|
1556
|
-
const parsedBody = parsedOutput.body;
|
|
1557
|
-
return throwDefaultError({
|
|
1558
|
-
output,
|
|
1559
|
-
parsedBody,
|
|
1560
|
-
errorCode
|
|
1561
|
-
});
|
|
1562
|
-
}
|
|
1563
|
-
}, "de_CreateVpcConnectionCommandError");
|
|
1564
1305
|
var de_DeleteClusterCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1565
1306
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1566
|
-
return
|
|
1307
|
+
return de_CommandError(output, context);
|
|
1567
1308
|
}
|
|
1568
1309
|
const contents = (0, import_smithy_client.map)({
|
|
1569
1310
|
$metadata: deserializeMetadata(output)
|
|
@@ -1576,37 +1317,9 @@ var de_DeleteClusterCommand = /* @__PURE__ */ __name(async (output, context) =>
|
|
|
1576
1317
|
Object.assign(contents, doc);
|
|
1577
1318
|
return contents;
|
|
1578
1319
|
}, "de_DeleteClusterCommand");
|
|
1579
|
-
var de_DeleteClusterCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1580
|
-
const parsedOutput = {
|
|
1581
|
-
...output,
|
|
1582
|
-
body: await parseErrorBody(output.body, context)
|
|
1583
|
-
};
|
|
1584
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1585
|
-
switch (errorCode) {
|
|
1586
|
-
case "BadRequestException":
|
|
1587
|
-
case "com.amazonaws.kafka#BadRequestException":
|
|
1588
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
1589
|
-
case "ForbiddenException":
|
|
1590
|
-
case "com.amazonaws.kafka#ForbiddenException":
|
|
1591
|
-
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
1592
|
-
case "InternalServerErrorException":
|
|
1593
|
-
case "com.amazonaws.kafka#InternalServerErrorException":
|
|
1594
|
-
throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
|
|
1595
|
-
case "NotFoundException":
|
|
1596
|
-
case "com.amazonaws.kafka#NotFoundException":
|
|
1597
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
1598
|
-
default:
|
|
1599
|
-
const parsedBody = parsedOutput.body;
|
|
1600
|
-
return throwDefaultError({
|
|
1601
|
-
output,
|
|
1602
|
-
parsedBody,
|
|
1603
|
-
errorCode
|
|
1604
|
-
});
|
|
1605
|
-
}
|
|
1606
|
-
}, "de_DeleteClusterCommandError");
|
|
1607
1320
|
var de_DeleteClusterPolicyCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1608
1321
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1609
|
-
return
|
|
1322
|
+
return de_CommandError(output, context);
|
|
1610
1323
|
}
|
|
1611
1324
|
const contents = (0, import_smithy_client.map)({
|
|
1612
1325
|
$metadata: deserializeMetadata(output)
|
|
@@ -1614,37 +1327,9 @@ var de_DeleteClusterPolicyCommand = /* @__PURE__ */ __name(async (output, contex
|
|
|
1614
1327
|
await (0, import_smithy_client.collectBody)(output.body, context);
|
|
1615
1328
|
return contents;
|
|
1616
1329
|
}, "de_DeleteClusterPolicyCommand");
|
|
1617
|
-
var de_DeleteClusterPolicyCommandError = /* @__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 "BadRequestException":
|
|
1625
|
-
case "com.amazonaws.kafka#BadRequestException":
|
|
1626
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
1627
|
-
case "ForbiddenException":
|
|
1628
|
-
case "com.amazonaws.kafka#ForbiddenException":
|
|
1629
|
-
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
1630
|
-
case "InternalServerErrorException":
|
|
1631
|
-
case "com.amazonaws.kafka#InternalServerErrorException":
|
|
1632
|
-
throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
|
|
1633
|
-
case "NotFoundException":
|
|
1634
|
-
case "com.amazonaws.kafka#NotFoundException":
|
|
1635
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
1636
|
-
default:
|
|
1637
|
-
const parsedBody = parsedOutput.body;
|
|
1638
|
-
return throwDefaultError({
|
|
1639
|
-
output,
|
|
1640
|
-
parsedBody,
|
|
1641
|
-
errorCode
|
|
1642
|
-
});
|
|
1643
|
-
}
|
|
1644
|
-
}, "de_DeleteClusterPolicyCommandError");
|
|
1645
1330
|
var de_DeleteConfigurationCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1646
1331
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1647
|
-
return
|
|
1332
|
+
return de_CommandError(output, context);
|
|
1648
1333
|
}
|
|
1649
1334
|
const contents = (0, import_smithy_client.map)({
|
|
1650
1335
|
$metadata: deserializeMetadata(output)
|
|
@@ -1657,37 +1342,9 @@ var de_DeleteConfigurationCommand = /* @__PURE__ */ __name(async (output, contex
|
|
|
1657
1342
|
Object.assign(contents, doc);
|
|
1658
1343
|
return contents;
|
|
1659
1344
|
}, "de_DeleteConfigurationCommand");
|
|
1660
|
-
var de_DeleteConfigurationCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1661
|
-
const parsedOutput = {
|
|
1662
|
-
...output,
|
|
1663
|
-
body: await parseErrorBody(output.body, context)
|
|
1664
|
-
};
|
|
1665
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1666
|
-
switch (errorCode) {
|
|
1667
|
-
case "BadRequestException":
|
|
1668
|
-
case "com.amazonaws.kafka#BadRequestException":
|
|
1669
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
1670
|
-
case "ForbiddenException":
|
|
1671
|
-
case "com.amazonaws.kafka#ForbiddenException":
|
|
1672
|
-
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
1673
|
-
case "InternalServerErrorException":
|
|
1674
|
-
case "com.amazonaws.kafka#InternalServerErrorException":
|
|
1675
|
-
throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
|
|
1676
|
-
case "NotFoundException":
|
|
1677
|
-
case "com.amazonaws.kafka#NotFoundException":
|
|
1678
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
1679
|
-
default:
|
|
1680
|
-
const parsedBody = parsedOutput.body;
|
|
1681
|
-
return throwDefaultError({
|
|
1682
|
-
output,
|
|
1683
|
-
parsedBody,
|
|
1684
|
-
errorCode
|
|
1685
|
-
});
|
|
1686
|
-
}
|
|
1687
|
-
}, "de_DeleteConfigurationCommandError");
|
|
1688
1345
|
var de_DeleteReplicatorCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1689
1346
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1690
|
-
return
|
|
1347
|
+
return de_CommandError(output, context);
|
|
1691
1348
|
}
|
|
1692
1349
|
const contents = (0, import_smithy_client.map)({
|
|
1693
1350
|
$metadata: deserializeMetadata(output)
|
|
@@ -1700,46 +1357,9 @@ var de_DeleteReplicatorCommand = /* @__PURE__ */ __name(async (output, context)
|
|
|
1700
1357
|
Object.assign(contents, doc);
|
|
1701
1358
|
return contents;
|
|
1702
1359
|
}, "de_DeleteReplicatorCommand");
|
|
1703
|
-
var de_DeleteReplicatorCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1704
|
-
const parsedOutput = {
|
|
1705
|
-
...output,
|
|
1706
|
-
body: await parseErrorBody(output.body, context)
|
|
1707
|
-
};
|
|
1708
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1709
|
-
switch (errorCode) {
|
|
1710
|
-
case "BadRequestException":
|
|
1711
|
-
case "com.amazonaws.kafka#BadRequestException":
|
|
1712
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
1713
|
-
case "ForbiddenException":
|
|
1714
|
-
case "com.amazonaws.kafka#ForbiddenException":
|
|
1715
|
-
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
1716
|
-
case "InternalServerErrorException":
|
|
1717
|
-
case "com.amazonaws.kafka#InternalServerErrorException":
|
|
1718
|
-
throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
|
|
1719
|
-
case "NotFoundException":
|
|
1720
|
-
case "com.amazonaws.kafka#NotFoundException":
|
|
1721
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
1722
|
-
case "ServiceUnavailableException":
|
|
1723
|
-
case "com.amazonaws.kafka#ServiceUnavailableException":
|
|
1724
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
1725
|
-
case "TooManyRequestsException":
|
|
1726
|
-
case "com.amazonaws.kafka#TooManyRequestsException":
|
|
1727
|
-
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
1728
|
-
case "UnauthorizedException":
|
|
1729
|
-
case "com.amazonaws.kafka#UnauthorizedException":
|
|
1730
|
-
throw await de_UnauthorizedExceptionRes(parsedOutput, context);
|
|
1731
|
-
default:
|
|
1732
|
-
const parsedBody = parsedOutput.body;
|
|
1733
|
-
return throwDefaultError({
|
|
1734
|
-
output,
|
|
1735
|
-
parsedBody,
|
|
1736
|
-
errorCode
|
|
1737
|
-
});
|
|
1738
|
-
}
|
|
1739
|
-
}, "de_DeleteReplicatorCommandError");
|
|
1740
1360
|
var de_DeleteVpcConnectionCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1741
1361
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1742
|
-
return
|
|
1362
|
+
return de_CommandError(output, context);
|
|
1743
1363
|
}
|
|
1744
1364
|
const contents = (0, import_smithy_client.map)({
|
|
1745
1365
|
$metadata: deserializeMetadata(output)
|
|
@@ -1752,37 +1372,9 @@ var de_DeleteVpcConnectionCommand = /* @__PURE__ */ __name(async (output, contex
|
|
|
1752
1372
|
Object.assign(contents, doc);
|
|
1753
1373
|
return contents;
|
|
1754
1374
|
}, "de_DeleteVpcConnectionCommand");
|
|
1755
|
-
var de_DeleteVpcConnectionCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1756
|
-
const parsedOutput = {
|
|
1757
|
-
...output,
|
|
1758
|
-
body: await parseErrorBody(output.body, context)
|
|
1759
|
-
};
|
|
1760
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1761
|
-
switch (errorCode) {
|
|
1762
|
-
case "BadRequestException":
|
|
1763
|
-
case "com.amazonaws.kafka#BadRequestException":
|
|
1764
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
1765
|
-
case "ForbiddenException":
|
|
1766
|
-
case "com.amazonaws.kafka#ForbiddenException":
|
|
1767
|
-
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
1768
|
-
case "InternalServerErrorException":
|
|
1769
|
-
case "com.amazonaws.kafka#InternalServerErrorException":
|
|
1770
|
-
throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
|
|
1771
|
-
case "NotFoundException":
|
|
1772
|
-
case "com.amazonaws.kafka#NotFoundException":
|
|
1773
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
1774
|
-
default:
|
|
1775
|
-
const parsedBody = parsedOutput.body;
|
|
1776
|
-
return throwDefaultError({
|
|
1777
|
-
output,
|
|
1778
|
-
parsedBody,
|
|
1779
|
-
errorCode
|
|
1780
|
-
});
|
|
1781
|
-
}
|
|
1782
|
-
}, "de_DeleteVpcConnectionCommandError");
|
|
1783
1375
|
var de_DescribeClusterCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1784
1376
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1785
|
-
return
|
|
1377
|
+
return de_CommandError(output, context);
|
|
1786
1378
|
}
|
|
1787
1379
|
const contents = (0, import_smithy_client.map)({
|
|
1788
1380
|
$metadata: deserializeMetadata(output)
|
|
@@ -1794,40 +1386,9 @@ var de_DescribeClusterCommand = /* @__PURE__ */ __name(async (output, context) =
|
|
|
1794
1386
|
Object.assign(contents, doc);
|
|
1795
1387
|
return contents;
|
|
1796
1388
|
}, "de_DescribeClusterCommand");
|
|
1797
|
-
var de_DescribeClusterCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1798
|
-
const parsedOutput = {
|
|
1799
|
-
...output,
|
|
1800
|
-
body: await parseErrorBody(output.body, context)
|
|
1801
|
-
};
|
|
1802
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1803
|
-
switch (errorCode) {
|
|
1804
|
-
case "BadRequestException":
|
|
1805
|
-
case "com.amazonaws.kafka#BadRequestException":
|
|
1806
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
1807
|
-
case "ForbiddenException":
|
|
1808
|
-
case "com.amazonaws.kafka#ForbiddenException":
|
|
1809
|
-
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
1810
|
-
case "InternalServerErrorException":
|
|
1811
|
-
case "com.amazonaws.kafka#InternalServerErrorException":
|
|
1812
|
-
throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
|
|
1813
|
-
case "NotFoundException":
|
|
1814
|
-
case "com.amazonaws.kafka#NotFoundException":
|
|
1815
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
1816
|
-
case "UnauthorizedException":
|
|
1817
|
-
case "com.amazonaws.kafka#UnauthorizedException":
|
|
1818
|
-
throw await de_UnauthorizedExceptionRes(parsedOutput, context);
|
|
1819
|
-
default:
|
|
1820
|
-
const parsedBody = parsedOutput.body;
|
|
1821
|
-
return throwDefaultError({
|
|
1822
|
-
output,
|
|
1823
|
-
parsedBody,
|
|
1824
|
-
errorCode
|
|
1825
|
-
});
|
|
1826
|
-
}
|
|
1827
|
-
}, "de_DescribeClusterCommandError");
|
|
1828
1389
|
var de_DescribeClusterOperationCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1829
1390
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1830
|
-
return
|
|
1391
|
+
return de_CommandError(output, context);
|
|
1831
1392
|
}
|
|
1832
1393
|
const contents = (0, import_smithy_client.map)({
|
|
1833
1394
|
$metadata: deserializeMetadata(output)
|
|
@@ -1839,40 +1400,9 @@ var de_DescribeClusterOperationCommand = /* @__PURE__ */ __name(async (output, c
|
|
|
1839
1400
|
Object.assign(contents, doc);
|
|
1840
1401
|
return contents;
|
|
1841
1402
|
}, "de_DescribeClusterOperationCommand");
|
|
1842
|
-
var de_DescribeClusterOperationCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1843
|
-
const parsedOutput = {
|
|
1844
|
-
...output,
|
|
1845
|
-
body: await parseErrorBody(output.body, context)
|
|
1846
|
-
};
|
|
1847
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1848
|
-
switch (errorCode) {
|
|
1849
|
-
case "BadRequestException":
|
|
1850
|
-
case "com.amazonaws.kafka#BadRequestException":
|
|
1851
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
1852
|
-
case "ForbiddenException":
|
|
1853
|
-
case "com.amazonaws.kafka#ForbiddenException":
|
|
1854
|
-
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
1855
|
-
case "InternalServerErrorException":
|
|
1856
|
-
case "com.amazonaws.kafka#InternalServerErrorException":
|
|
1857
|
-
throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
|
|
1858
|
-
case "NotFoundException":
|
|
1859
|
-
case "com.amazonaws.kafka#NotFoundException":
|
|
1860
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
1861
|
-
case "UnauthorizedException":
|
|
1862
|
-
case "com.amazonaws.kafka#UnauthorizedException":
|
|
1863
|
-
throw await de_UnauthorizedExceptionRes(parsedOutput, context);
|
|
1864
|
-
default:
|
|
1865
|
-
const parsedBody = parsedOutput.body;
|
|
1866
|
-
return throwDefaultError({
|
|
1867
|
-
output,
|
|
1868
|
-
parsedBody,
|
|
1869
|
-
errorCode
|
|
1870
|
-
});
|
|
1871
|
-
}
|
|
1872
|
-
}, "de_DescribeClusterOperationCommandError");
|
|
1873
1403
|
var de_DescribeClusterOperationV2Command = /* @__PURE__ */ __name(async (output, context) => {
|
|
1874
1404
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1875
|
-
return
|
|
1405
|
+
return de_CommandError(output, context);
|
|
1876
1406
|
}
|
|
1877
1407
|
const contents = (0, import_smithy_client.map)({
|
|
1878
1408
|
$metadata: deserializeMetadata(output)
|
|
@@ -1884,46 +1414,9 @@ var de_DescribeClusterOperationV2Command = /* @__PURE__ */ __name(async (output,
|
|
|
1884
1414
|
Object.assign(contents, doc);
|
|
1885
1415
|
return contents;
|
|
1886
1416
|
}, "de_DescribeClusterOperationV2Command");
|
|
1887
|
-
var de_DescribeClusterOperationV2CommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1888
|
-
const parsedOutput = {
|
|
1889
|
-
...output,
|
|
1890
|
-
body: await parseErrorBody(output.body, context)
|
|
1891
|
-
};
|
|
1892
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1893
|
-
switch (errorCode) {
|
|
1894
|
-
case "BadRequestException":
|
|
1895
|
-
case "com.amazonaws.kafka#BadRequestException":
|
|
1896
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
1897
|
-
case "ForbiddenException":
|
|
1898
|
-
case "com.amazonaws.kafka#ForbiddenException":
|
|
1899
|
-
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
1900
|
-
case "InternalServerErrorException":
|
|
1901
|
-
case "com.amazonaws.kafka#InternalServerErrorException":
|
|
1902
|
-
throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
|
|
1903
|
-
case "NotFoundException":
|
|
1904
|
-
case "com.amazonaws.kafka#NotFoundException":
|
|
1905
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
1906
|
-
case "ServiceUnavailableException":
|
|
1907
|
-
case "com.amazonaws.kafka#ServiceUnavailableException":
|
|
1908
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
1909
|
-
case "TooManyRequestsException":
|
|
1910
|
-
case "com.amazonaws.kafka#TooManyRequestsException":
|
|
1911
|
-
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
1912
|
-
case "UnauthorizedException":
|
|
1913
|
-
case "com.amazonaws.kafka#UnauthorizedException":
|
|
1914
|
-
throw await de_UnauthorizedExceptionRes(parsedOutput, context);
|
|
1915
|
-
default:
|
|
1916
|
-
const parsedBody = parsedOutput.body;
|
|
1917
|
-
return throwDefaultError({
|
|
1918
|
-
output,
|
|
1919
|
-
parsedBody,
|
|
1920
|
-
errorCode
|
|
1921
|
-
});
|
|
1922
|
-
}
|
|
1923
|
-
}, "de_DescribeClusterOperationV2CommandError");
|
|
1924
1417
|
var de_DescribeClusterV2Command = /* @__PURE__ */ __name(async (output, context) => {
|
|
1925
1418
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1926
|
-
return
|
|
1419
|
+
return de_CommandError(output, context);
|
|
1927
1420
|
}
|
|
1928
1421
|
const contents = (0, import_smithy_client.map)({
|
|
1929
1422
|
$metadata: deserializeMetadata(output)
|
|
@@ -1935,40 +1428,9 @@ var de_DescribeClusterV2Command = /* @__PURE__ */ __name(async (output, context)
|
|
|
1935
1428
|
Object.assign(contents, doc);
|
|
1936
1429
|
return contents;
|
|
1937
1430
|
}, "de_DescribeClusterV2Command");
|
|
1938
|
-
var de_DescribeClusterV2CommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1939
|
-
const parsedOutput = {
|
|
1940
|
-
...output,
|
|
1941
|
-
body: await parseErrorBody(output.body, context)
|
|
1942
|
-
};
|
|
1943
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1944
|
-
switch (errorCode) {
|
|
1945
|
-
case "BadRequestException":
|
|
1946
|
-
case "com.amazonaws.kafka#BadRequestException":
|
|
1947
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
1948
|
-
case "ForbiddenException":
|
|
1949
|
-
case "com.amazonaws.kafka#ForbiddenException":
|
|
1950
|
-
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
1951
|
-
case "InternalServerErrorException":
|
|
1952
|
-
case "com.amazonaws.kafka#InternalServerErrorException":
|
|
1953
|
-
throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
|
|
1954
|
-
case "NotFoundException":
|
|
1955
|
-
case "com.amazonaws.kafka#NotFoundException":
|
|
1956
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
1957
|
-
case "UnauthorizedException":
|
|
1958
|
-
case "com.amazonaws.kafka#UnauthorizedException":
|
|
1959
|
-
throw await de_UnauthorizedExceptionRes(parsedOutput, context);
|
|
1960
|
-
default:
|
|
1961
|
-
const parsedBody = parsedOutput.body;
|
|
1962
|
-
return throwDefaultError({
|
|
1963
|
-
output,
|
|
1964
|
-
parsedBody,
|
|
1965
|
-
errorCode
|
|
1966
|
-
});
|
|
1967
|
-
}
|
|
1968
|
-
}, "de_DescribeClusterV2CommandError");
|
|
1969
1431
|
var de_DescribeConfigurationCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1970
1432
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1971
|
-
return
|
|
1433
|
+
return de_CommandError(output, context);
|
|
1972
1434
|
}
|
|
1973
1435
|
const contents = (0, import_smithy_client.map)({
|
|
1974
1436
|
$metadata: deserializeMetadata(output)
|
|
@@ -1986,43 +1448,9 @@ var de_DescribeConfigurationCommand = /* @__PURE__ */ __name(async (output, cont
|
|
|
1986
1448
|
Object.assign(contents, doc);
|
|
1987
1449
|
return contents;
|
|
1988
1450
|
}, "de_DescribeConfigurationCommand");
|
|
1989
|
-
var de_DescribeConfigurationCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1990
|
-
const parsedOutput = {
|
|
1991
|
-
...output,
|
|
1992
|
-
body: await parseErrorBody(output.body, context)
|
|
1993
|
-
};
|
|
1994
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1995
|
-
switch (errorCode) {
|
|
1996
|
-
case "BadRequestException":
|
|
1997
|
-
case "com.amazonaws.kafka#BadRequestException":
|
|
1998
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
1999
|
-
case "ForbiddenException":
|
|
2000
|
-
case "com.amazonaws.kafka#ForbiddenException":
|
|
2001
|
-
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
2002
|
-
case "InternalServerErrorException":
|
|
2003
|
-
case "com.amazonaws.kafka#InternalServerErrorException":
|
|
2004
|
-
throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
|
|
2005
|
-
case "NotFoundException":
|
|
2006
|
-
case "com.amazonaws.kafka#NotFoundException":
|
|
2007
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
2008
|
-
case "ServiceUnavailableException":
|
|
2009
|
-
case "com.amazonaws.kafka#ServiceUnavailableException":
|
|
2010
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
2011
|
-
case "UnauthorizedException":
|
|
2012
|
-
case "com.amazonaws.kafka#UnauthorizedException":
|
|
2013
|
-
throw await de_UnauthorizedExceptionRes(parsedOutput, context);
|
|
2014
|
-
default:
|
|
2015
|
-
const parsedBody = parsedOutput.body;
|
|
2016
|
-
return throwDefaultError({
|
|
2017
|
-
output,
|
|
2018
|
-
parsedBody,
|
|
2019
|
-
errorCode
|
|
2020
|
-
});
|
|
2021
|
-
}
|
|
2022
|
-
}, "de_DescribeConfigurationCommandError");
|
|
2023
1451
|
var de_DescribeConfigurationRevisionCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2024
1452
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2025
|
-
return
|
|
1453
|
+
return de_CommandError(output, context);
|
|
2026
1454
|
}
|
|
2027
1455
|
const contents = (0, import_smithy_client.map)({
|
|
2028
1456
|
$metadata: deserializeMetadata(output)
|
|
@@ -2038,43 +1466,9 @@ var de_DescribeConfigurationRevisionCommand = /* @__PURE__ */ __name(async (outp
|
|
|
2038
1466
|
Object.assign(contents, doc);
|
|
2039
1467
|
return contents;
|
|
2040
1468
|
}, "de_DescribeConfigurationRevisionCommand");
|
|
2041
|
-
var de_DescribeConfigurationRevisionCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2042
|
-
const parsedOutput = {
|
|
2043
|
-
...output,
|
|
2044
|
-
body: await parseErrorBody(output.body, context)
|
|
2045
|
-
};
|
|
2046
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2047
|
-
switch (errorCode) {
|
|
2048
|
-
case "BadRequestException":
|
|
2049
|
-
case "com.amazonaws.kafka#BadRequestException":
|
|
2050
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
2051
|
-
case "ForbiddenException":
|
|
2052
|
-
case "com.amazonaws.kafka#ForbiddenException":
|
|
2053
|
-
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
2054
|
-
case "InternalServerErrorException":
|
|
2055
|
-
case "com.amazonaws.kafka#InternalServerErrorException":
|
|
2056
|
-
throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
|
|
2057
|
-
case "NotFoundException":
|
|
2058
|
-
case "com.amazonaws.kafka#NotFoundException":
|
|
2059
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
2060
|
-
case "ServiceUnavailableException":
|
|
2061
|
-
case "com.amazonaws.kafka#ServiceUnavailableException":
|
|
2062
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
2063
|
-
case "UnauthorizedException":
|
|
2064
|
-
case "com.amazonaws.kafka#UnauthorizedException":
|
|
2065
|
-
throw await de_UnauthorizedExceptionRes(parsedOutput, context);
|
|
2066
|
-
default:
|
|
2067
|
-
const parsedBody = parsedOutput.body;
|
|
2068
|
-
return throwDefaultError({
|
|
2069
|
-
output,
|
|
2070
|
-
parsedBody,
|
|
2071
|
-
errorCode
|
|
2072
|
-
});
|
|
2073
|
-
}
|
|
2074
|
-
}, "de_DescribeConfigurationRevisionCommandError");
|
|
2075
1469
|
var de_DescribeReplicatorCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2076
1470
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2077
|
-
return
|
|
1471
|
+
return de_CommandError(output, context);
|
|
2078
1472
|
}
|
|
2079
1473
|
const contents = (0, import_smithy_client.map)({
|
|
2080
1474
|
$metadata: deserializeMetadata(output)
|
|
@@ -2098,46 +1492,9 @@ var de_DescribeReplicatorCommand = /* @__PURE__ */ __name(async (output, context
|
|
|
2098
1492
|
Object.assign(contents, doc);
|
|
2099
1493
|
return contents;
|
|
2100
1494
|
}, "de_DescribeReplicatorCommand");
|
|
2101
|
-
var de_DescribeReplicatorCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2102
|
-
const parsedOutput = {
|
|
2103
|
-
...output,
|
|
2104
|
-
body: await parseErrorBody(output.body, context)
|
|
2105
|
-
};
|
|
2106
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2107
|
-
switch (errorCode) {
|
|
2108
|
-
case "BadRequestException":
|
|
2109
|
-
case "com.amazonaws.kafka#BadRequestException":
|
|
2110
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
2111
|
-
case "ForbiddenException":
|
|
2112
|
-
case "com.amazonaws.kafka#ForbiddenException":
|
|
2113
|
-
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
2114
|
-
case "InternalServerErrorException":
|
|
2115
|
-
case "com.amazonaws.kafka#InternalServerErrorException":
|
|
2116
|
-
throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
|
|
2117
|
-
case "NotFoundException":
|
|
2118
|
-
case "com.amazonaws.kafka#NotFoundException":
|
|
2119
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
2120
|
-
case "ServiceUnavailableException":
|
|
2121
|
-
case "com.amazonaws.kafka#ServiceUnavailableException":
|
|
2122
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
2123
|
-
case "TooManyRequestsException":
|
|
2124
|
-
case "com.amazonaws.kafka#TooManyRequestsException":
|
|
2125
|
-
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
2126
|
-
case "UnauthorizedException":
|
|
2127
|
-
case "com.amazonaws.kafka#UnauthorizedException":
|
|
2128
|
-
throw await de_UnauthorizedExceptionRes(parsedOutput, context);
|
|
2129
|
-
default:
|
|
2130
|
-
const parsedBody = parsedOutput.body;
|
|
2131
|
-
return throwDefaultError({
|
|
2132
|
-
output,
|
|
2133
|
-
parsedBody,
|
|
2134
|
-
errorCode
|
|
2135
|
-
});
|
|
2136
|
-
}
|
|
2137
|
-
}, "de_DescribeReplicatorCommandError");
|
|
2138
1495
|
var de_DescribeVpcConnectionCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2139
1496
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2140
|
-
return
|
|
1497
|
+
return de_CommandError(output, context);
|
|
2141
1498
|
}
|
|
2142
1499
|
const contents = (0, import_smithy_client.map)({
|
|
2143
1500
|
$metadata: deserializeMetadata(output)
|
|
@@ -2157,43 +1514,9 @@ var de_DescribeVpcConnectionCommand = /* @__PURE__ */ __name(async (output, cont
|
|
|
2157
1514
|
Object.assign(contents, doc);
|
|
2158
1515
|
return contents;
|
|
2159
1516
|
}, "de_DescribeVpcConnectionCommand");
|
|
2160
|
-
var de_DescribeVpcConnectionCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2161
|
-
const parsedOutput = {
|
|
2162
|
-
...output,
|
|
2163
|
-
body: await parseErrorBody(output.body, context)
|
|
2164
|
-
};
|
|
2165
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2166
|
-
switch (errorCode) {
|
|
2167
|
-
case "BadRequestException":
|
|
2168
|
-
case "com.amazonaws.kafka#BadRequestException":
|
|
2169
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
2170
|
-
case "ForbiddenException":
|
|
2171
|
-
case "com.amazonaws.kafka#ForbiddenException":
|
|
2172
|
-
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
2173
|
-
case "InternalServerErrorException":
|
|
2174
|
-
case "com.amazonaws.kafka#InternalServerErrorException":
|
|
2175
|
-
throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
|
|
2176
|
-
case "NotFoundException":
|
|
2177
|
-
case "com.amazonaws.kafka#NotFoundException":
|
|
2178
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
2179
|
-
case "ServiceUnavailableException":
|
|
2180
|
-
case "com.amazonaws.kafka#ServiceUnavailableException":
|
|
2181
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
2182
|
-
case "UnauthorizedException":
|
|
2183
|
-
case "com.amazonaws.kafka#UnauthorizedException":
|
|
2184
|
-
throw await de_UnauthorizedExceptionRes(parsedOutput, context);
|
|
2185
|
-
default:
|
|
2186
|
-
const parsedBody = parsedOutput.body;
|
|
2187
|
-
return throwDefaultError({
|
|
2188
|
-
output,
|
|
2189
|
-
parsedBody,
|
|
2190
|
-
errorCode
|
|
2191
|
-
});
|
|
2192
|
-
}
|
|
2193
|
-
}, "de_DescribeVpcConnectionCommandError");
|
|
2194
1517
|
var de_GetBootstrapBrokersCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2195
1518
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2196
|
-
return
|
|
1519
|
+
return de_CommandError(output, context);
|
|
2197
1520
|
}
|
|
2198
1521
|
const contents = (0, import_smithy_client.map)({
|
|
2199
1522
|
$metadata: deserializeMetadata(output)
|
|
@@ -2214,40 +1537,9 @@ var de_GetBootstrapBrokersCommand = /* @__PURE__ */ __name(async (output, contex
|
|
|
2214
1537
|
Object.assign(contents, doc);
|
|
2215
1538
|
return contents;
|
|
2216
1539
|
}, "de_GetBootstrapBrokersCommand");
|
|
2217
|
-
var de_GetBootstrapBrokersCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2218
|
-
const parsedOutput = {
|
|
2219
|
-
...output,
|
|
2220
|
-
body: await parseErrorBody(output.body, context)
|
|
2221
|
-
};
|
|
2222
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2223
|
-
switch (errorCode) {
|
|
2224
|
-
case "BadRequestException":
|
|
2225
|
-
case "com.amazonaws.kafka#BadRequestException":
|
|
2226
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
2227
|
-
case "ConflictException":
|
|
2228
|
-
case "com.amazonaws.kafka#ConflictException":
|
|
2229
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
2230
|
-
case "ForbiddenException":
|
|
2231
|
-
case "com.amazonaws.kafka#ForbiddenException":
|
|
2232
|
-
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
2233
|
-
case "InternalServerErrorException":
|
|
2234
|
-
case "com.amazonaws.kafka#InternalServerErrorException":
|
|
2235
|
-
throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
|
|
2236
|
-
case "UnauthorizedException":
|
|
2237
|
-
case "com.amazonaws.kafka#UnauthorizedException":
|
|
2238
|
-
throw await de_UnauthorizedExceptionRes(parsedOutput, context);
|
|
2239
|
-
default:
|
|
2240
|
-
const parsedBody = parsedOutput.body;
|
|
2241
|
-
return throwDefaultError({
|
|
2242
|
-
output,
|
|
2243
|
-
parsedBody,
|
|
2244
|
-
errorCode
|
|
2245
|
-
});
|
|
2246
|
-
}
|
|
2247
|
-
}, "de_GetBootstrapBrokersCommandError");
|
|
2248
1540
|
var de_GetClusterPolicyCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2249
1541
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2250
|
-
return
|
|
1542
|
+
return de_CommandError(output, context);
|
|
2251
1543
|
}
|
|
2252
1544
|
const contents = (0, import_smithy_client.map)({
|
|
2253
1545
|
$metadata: deserializeMetadata(output)
|
|
@@ -2260,37 +1552,9 @@ var de_GetClusterPolicyCommand = /* @__PURE__ */ __name(async (output, context)
|
|
|
2260
1552
|
Object.assign(contents, doc);
|
|
2261
1553
|
return contents;
|
|
2262
1554
|
}, "de_GetClusterPolicyCommand");
|
|
2263
|
-
var de_GetClusterPolicyCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2264
|
-
const parsedOutput = {
|
|
2265
|
-
...output,
|
|
2266
|
-
body: await parseErrorBody(output.body, context)
|
|
2267
|
-
};
|
|
2268
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2269
|
-
switch (errorCode) {
|
|
2270
|
-
case "BadRequestException":
|
|
2271
|
-
case "com.amazonaws.kafka#BadRequestException":
|
|
2272
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
2273
|
-
case "ForbiddenException":
|
|
2274
|
-
case "com.amazonaws.kafka#ForbiddenException":
|
|
2275
|
-
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
2276
|
-
case "InternalServerErrorException":
|
|
2277
|
-
case "com.amazonaws.kafka#InternalServerErrorException":
|
|
2278
|
-
throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
|
|
2279
|
-
case "NotFoundException":
|
|
2280
|
-
case "com.amazonaws.kafka#NotFoundException":
|
|
2281
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
2282
|
-
default:
|
|
2283
|
-
const parsedBody = parsedOutput.body;
|
|
2284
|
-
return throwDefaultError({
|
|
2285
|
-
output,
|
|
2286
|
-
parsedBody,
|
|
2287
|
-
errorCode
|
|
2288
|
-
});
|
|
2289
|
-
}
|
|
2290
|
-
}, "de_GetClusterPolicyCommandError");
|
|
2291
1555
|
var de_GetCompatibleKafkaVersionsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2292
1556
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2293
|
-
return
|
|
1557
|
+
return de_CommandError(output, context);
|
|
2294
1558
|
}
|
|
2295
1559
|
const contents = (0, import_smithy_client.map)({
|
|
2296
1560
|
$metadata: deserializeMetadata(output)
|
|
@@ -2302,46 +1566,9 @@ var de_GetCompatibleKafkaVersionsCommand = /* @__PURE__ */ __name(async (output,
|
|
|
2302
1566
|
Object.assign(contents, doc);
|
|
2303
1567
|
return contents;
|
|
2304
1568
|
}, "de_GetCompatibleKafkaVersionsCommand");
|
|
2305
|
-
var de_GetCompatibleKafkaVersionsCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2306
|
-
const parsedOutput = {
|
|
2307
|
-
...output,
|
|
2308
|
-
body: await parseErrorBody(output.body, context)
|
|
2309
|
-
};
|
|
2310
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2311
|
-
switch (errorCode) {
|
|
2312
|
-
case "BadRequestException":
|
|
2313
|
-
case "com.amazonaws.kafka#BadRequestException":
|
|
2314
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
2315
|
-
case "ForbiddenException":
|
|
2316
|
-
case "com.amazonaws.kafka#ForbiddenException":
|
|
2317
|
-
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
2318
|
-
case "InternalServerErrorException":
|
|
2319
|
-
case "com.amazonaws.kafka#InternalServerErrorException":
|
|
2320
|
-
throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
|
|
2321
|
-
case "NotFoundException":
|
|
2322
|
-
case "com.amazonaws.kafka#NotFoundException":
|
|
2323
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
2324
|
-
case "ServiceUnavailableException":
|
|
2325
|
-
case "com.amazonaws.kafka#ServiceUnavailableException":
|
|
2326
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
2327
|
-
case "TooManyRequestsException":
|
|
2328
|
-
case "com.amazonaws.kafka#TooManyRequestsException":
|
|
2329
|
-
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
2330
|
-
case "UnauthorizedException":
|
|
2331
|
-
case "com.amazonaws.kafka#UnauthorizedException":
|
|
2332
|
-
throw await de_UnauthorizedExceptionRes(parsedOutput, context);
|
|
2333
|
-
default:
|
|
2334
|
-
const parsedBody = parsedOutput.body;
|
|
2335
|
-
return throwDefaultError({
|
|
2336
|
-
output,
|
|
2337
|
-
parsedBody,
|
|
2338
|
-
errorCode
|
|
2339
|
-
});
|
|
2340
|
-
}
|
|
2341
|
-
}, "de_GetCompatibleKafkaVersionsCommandError");
|
|
2342
1569
|
var de_ListClientVpcConnectionsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2343
1570
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2344
|
-
return
|
|
1571
|
+
return de_CommandError(output, context);
|
|
2345
1572
|
}
|
|
2346
1573
|
const contents = (0, import_smithy_client.map)({
|
|
2347
1574
|
$metadata: deserializeMetadata(output)
|
|
@@ -2354,40 +1581,9 @@ var de_ListClientVpcConnectionsCommand = /* @__PURE__ */ __name(async (output, c
|
|
|
2354
1581
|
Object.assign(contents, doc);
|
|
2355
1582
|
return contents;
|
|
2356
1583
|
}, "de_ListClientVpcConnectionsCommand");
|
|
2357
|
-
var de_ListClientVpcConnectionsCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2358
|
-
const parsedOutput = {
|
|
2359
|
-
...output,
|
|
2360
|
-
body: await parseErrorBody(output.body, context)
|
|
2361
|
-
};
|
|
2362
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2363
|
-
switch (errorCode) {
|
|
2364
|
-
case "BadRequestException":
|
|
2365
|
-
case "com.amazonaws.kafka#BadRequestException":
|
|
2366
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
2367
|
-
case "ForbiddenException":
|
|
2368
|
-
case "com.amazonaws.kafka#ForbiddenException":
|
|
2369
|
-
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
2370
|
-
case "InternalServerErrorException":
|
|
2371
|
-
case "com.amazonaws.kafka#InternalServerErrorException":
|
|
2372
|
-
throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
|
|
2373
|
-
case "ServiceUnavailableException":
|
|
2374
|
-
case "com.amazonaws.kafka#ServiceUnavailableException":
|
|
2375
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
2376
|
-
case "UnauthorizedException":
|
|
2377
|
-
case "com.amazonaws.kafka#UnauthorizedException":
|
|
2378
|
-
throw await de_UnauthorizedExceptionRes(parsedOutput, context);
|
|
2379
|
-
default:
|
|
2380
|
-
const parsedBody = parsedOutput.body;
|
|
2381
|
-
return throwDefaultError({
|
|
2382
|
-
output,
|
|
2383
|
-
parsedBody,
|
|
2384
|
-
errorCode
|
|
2385
|
-
});
|
|
2386
|
-
}
|
|
2387
|
-
}, "de_ListClientVpcConnectionsCommandError");
|
|
2388
1584
|
var de_ListClusterOperationsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2389
1585
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2390
|
-
return
|
|
1586
|
+
return de_CommandError(output, context);
|
|
2391
1587
|
}
|
|
2392
1588
|
const contents = (0, import_smithy_client.map)({
|
|
2393
1589
|
$metadata: deserializeMetadata(output)
|
|
@@ -2400,37 +1596,9 @@ var de_ListClusterOperationsCommand = /* @__PURE__ */ __name(async (output, cont
|
|
|
2400
1596
|
Object.assign(contents, doc);
|
|
2401
1597
|
return contents;
|
|
2402
1598
|
}, "de_ListClusterOperationsCommand");
|
|
2403
|
-
var de_ListClusterOperationsCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2404
|
-
const parsedOutput = {
|
|
2405
|
-
...output,
|
|
2406
|
-
body: await parseErrorBody(output.body, context)
|
|
2407
|
-
};
|
|
2408
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2409
|
-
switch (errorCode) {
|
|
2410
|
-
case "BadRequestException":
|
|
2411
|
-
case "com.amazonaws.kafka#BadRequestException":
|
|
2412
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
2413
|
-
case "ForbiddenException":
|
|
2414
|
-
case "com.amazonaws.kafka#ForbiddenException":
|
|
2415
|
-
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
2416
|
-
case "InternalServerErrorException":
|
|
2417
|
-
case "com.amazonaws.kafka#InternalServerErrorException":
|
|
2418
|
-
throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
|
|
2419
|
-
case "UnauthorizedException":
|
|
2420
|
-
case "com.amazonaws.kafka#UnauthorizedException":
|
|
2421
|
-
throw await de_UnauthorizedExceptionRes(parsedOutput, context);
|
|
2422
|
-
default:
|
|
2423
|
-
const parsedBody = parsedOutput.body;
|
|
2424
|
-
return throwDefaultError({
|
|
2425
|
-
output,
|
|
2426
|
-
parsedBody,
|
|
2427
|
-
errorCode
|
|
2428
|
-
});
|
|
2429
|
-
}
|
|
2430
|
-
}, "de_ListClusterOperationsCommandError");
|
|
2431
1599
|
var de_ListClusterOperationsV2Command = /* @__PURE__ */ __name(async (output, context) => {
|
|
2432
1600
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2433
|
-
return
|
|
1601
|
+
return de_CommandError(output, context);
|
|
2434
1602
|
}
|
|
2435
1603
|
const contents = (0, import_smithy_client.map)({
|
|
2436
1604
|
$metadata: deserializeMetadata(output)
|
|
@@ -2443,46 +1611,9 @@ var de_ListClusterOperationsV2Command = /* @__PURE__ */ __name(async (output, co
|
|
|
2443
1611
|
Object.assign(contents, doc);
|
|
2444
1612
|
return contents;
|
|
2445
1613
|
}, "de_ListClusterOperationsV2Command");
|
|
2446
|
-
var de_ListClusterOperationsV2CommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2447
|
-
const parsedOutput = {
|
|
2448
|
-
...output,
|
|
2449
|
-
body: await parseErrorBody(output.body, context)
|
|
2450
|
-
};
|
|
2451
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2452
|
-
switch (errorCode) {
|
|
2453
|
-
case "BadRequestException":
|
|
2454
|
-
case "com.amazonaws.kafka#BadRequestException":
|
|
2455
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
2456
|
-
case "ForbiddenException":
|
|
2457
|
-
case "com.amazonaws.kafka#ForbiddenException":
|
|
2458
|
-
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
2459
|
-
case "InternalServerErrorException":
|
|
2460
|
-
case "com.amazonaws.kafka#InternalServerErrorException":
|
|
2461
|
-
throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
|
|
2462
|
-
case "NotFoundException":
|
|
2463
|
-
case "com.amazonaws.kafka#NotFoundException":
|
|
2464
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
2465
|
-
case "ServiceUnavailableException":
|
|
2466
|
-
case "com.amazonaws.kafka#ServiceUnavailableException":
|
|
2467
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
2468
|
-
case "TooManyRequestsException":
|
|
2469
|
-
case "com.amazonaws.kafka#TooManyRequestsException":
|
|
2470
|
-
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
2471
|
-
case "UnauthorizedException":
|
|
2472
|
-
case "com.amazonaws.kafka#UnauthorizedException":
|
|
2473
|
-
throw await de_UnauthorizedExceptionRes(parsedOutput, context);
|
|
2474
|
-
default:
|
|
2475
|
-
const parsedBody = parsedOutput.body;
|
|
2476
|
-
return throwDefaultError({
|
|
2477
|
-
output,
|
|
2478
|
-
parsedBody,
|
|
2479
|
-
errorCode
|
|
2480
|
-
});
|
|
2481
|
-
}
|
|
2482
|
-
}, "de_ListClusterOperationsV2CommandError");
|
|
2483
1614
|
var de_ListClustersCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2484
1615
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2485
|
-
return
|
|
1616
|
+
return de_CommandError(output, context);
|
|
2486
1617
|
}
|
|
2487
1618
|
const contents = (0, import_smithy_client.map)({
|
|
2488
1619
|
$metadata: deserializeMetadata(output)
|
|
@@ -2495,37 +1626,9 @@ var de_ListClustersCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
2495
1626
|
Object.assign(contents, doc);
|
|
2496
1627
|
return contents;
|
|
2497
1628
|
}, "de_ListClustersCommand");
|
|
2498
|
-
var de_ListClustersCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2499
|
-
const parsedOutput = {
|
|
2500
|
-
...output,
|
|
2501
|
-
body: await parseErrorBody(output.body, context)
|
|
2502
|
-
};
|
|
2503
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2504
|
-
switch (errorCode) {
|
|
2505
|
-
case "BadRequestException":
|
|
2506
|
-
case "com.amazonaws.kafka#BadRequestException":
|
|
2507
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
2508
|
-
case "ForbiddenException":
|
|
2509
|
-
case "com.amazonaws.kafka#ForbiddenException":
|
|
2510
|
-
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
2511
|
-
case "InternalServerErrorException":
|
|
2512
|
-
case "com.amazonaws.kafka#InternalServerErrorException":
|
|
2513
|
-
throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
|
|
2514
|
-
case "UnauthorizedException":
|
|
2515
|
-
case "com.amazonaws.kafka#UnauthorizedException":
|
|
2516
|
-
throw await de_UnauthorizedExceptionRes(parsedOutput, context);
|
|
2517
|
-
default:
|
|
2518
|
-
const parsedBody = parsedOutput.body;
|
|
2519
|
-
return throwDefaultError({
|
|
2520
|
-
output,
|
|
2521
|
-
parsedBody,
|
|
2522
|
-
errorCode
|
|
2523
|
-
});
|
|
2524
|
-
}
|
|
2525
|
-
}, "de_ListClustersCommandError");
|
|
2526
1629
|
var de_ListClustersV2Command = /* @__PURE__ */ __name(async (output, context) => {
|
|
2527
1630
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2528
|
-
return
|
|
1631
|
+
return de_CommandError(output, context);
|
|
2529
1632
|
}
|
|
2530
1633
|
const contents = (0, import_smithy_client.map)({
|
|
2531
1634
|
$metadata: deserializeMetadata(output)
|
|
@@ -2538,37 +1641,9 @@ var de_ListClustersV2Command = /* @__PURE__ */ __name(async (output, context) =>
|
|
|
2538
1641
|
Object.assign(contents, doc);
|
|
2539
1642
|
return contents;
|
|
2540
1643
|
}, "de_ListClustersV2Command");
|
|
2541
|
-
var de_ListClustersV2CommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2542
|
-
const parsedOutput = {
|
|
2543
|
-
...output,
|
|
2544
|
-
body: await parseErrorBody(output.body, context)
|
|
2545
|
-
};
|
|
2546
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2547
|
-
switch (errorCode) {
|
|
2548
|
-
case "BadRequestException":
|
|
2549
|
-
case "com.amazonaws.kafka#BadRequestException":
|
|
2550
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
2551
|
-
case "ForbiddenException":
|
|
2552
|
-
case "com.amazonaws.kafka#ForbiddenException":
|
|
2553
|
-
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
2554
|
-
case "InternalServerErrorException":
|
|
2555
|
-
case "com.amazonaws.kafka#InternalServerErrorException":
|
|
2556
|
-
throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
|
|
2557
|
-
case "UnauthorizedException":
|
|
2558
|
-
case "com.amazonaws.kafka#UnauthorizedException":
|
|
2559
|
-
throw await de_UnauthorizedExceptionRes(parsedOutput, context);
|
|
2560
|
-
default:
|
|
2561
|
-
const parsedBody = parsedOutput.body;
|
|
2562
|
-
return throwDefaultError({
|
|
2563
|
-
output,
|
|
2564
|
-
parsedBody,
|
|
2565
|
-
errorCode
|
|
2566
|
-
});
|
|
2567
|
-
}
|
|
2568
|
-
}, "de_ListClustersV2CommandError");
|
|
2569
1644
|
var de_ListConfigurationRevisionsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2570
1645
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2571
|
-
return
|
|
1646
|
+
return de_CommandError(output, context);
|
|
2572
1647
|
}
|
|
2573
1648
|
const contents = (0, import_smithy_client.map)({
|
|
2574
1649
|
$metadata: deserializeMetadata(output)
|
|
@@ -2581,43 +1656,9 @@ var de_ListConfigurationRevisionsCommand = /* @__PURE__ */ __name(async (output,
|
|
|
2581
1656
|
Object.assign(contents, doc);
|
|
2582
1657
|
return contents;
|
|
2583
1658
|
}, "de_ListConfigurationRevisionsCommand");
|
|
2584
|
-
var de_ListConfigurationRevisionsCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2585
|
-
const parsedOutput = {
|
|
2586
|
-
...output,
|
|
2587
|
-
body: await parseErrorBody(output.body, context)
|
|
2588
|
-
};
|
|
2589
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2590
|
-
switch (errorCode) {
|
|
2591
|
-
case "BadRequestException":
|
|
2592
|
-
case "com.amazonaws.kafka#BadRequestException":
|
|
2593
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
2594
|
-
case "ForbiddenException":
|
|
2595
|
-
case "com.amazonaws.kafka#ForbiddenException":
|
|
2596
|
-
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
2597
|
-
case "InternalServerErrorException":
|
|
2598
|
-
case "com.amazonaws.kafka#InternalServerErrorException":
|
|
2599
|
-
throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
|
|
2600
|
-
case "NotFoundException":
|
|
2601
|
-
case "com.amazonaws.kafka#NotFoundException":
|
|
2602
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
2603
|
-
case "ServiceUnavailableException":
|
|
2604
|
-
case "com.amazonaws.kafka#ServiceUnavailableException":
|
|
2605
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
2606
|
-
case "UnauthorizedException":
|
|
2607
|
-
case "com.amazonaws.kafka#UnauthorizedException":
|
|
2608
|
-
throw await de_UnauthorizedExceptionRes(parsedOutput, context);
|
|
2609
|
-
default:
|
|
2610
|
-
const parsedBody = parsedOutput.body;
|
|
2611
|
-
return throwDefaultError({
|
|
2612
|
-
output,
|
|
2613
|
-
parsedBody,
|
|
2614
|
-
errorCode
|
|
2615
|
-
});
|
|
2616
|
-
}
|
|
2617
|
-
}, "de_ListConfigurationRevisionsCommandError");
|
|
2618
1659
|
var de_ListConfigurationsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2619
1660
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2620
|
-
return
|
|
1661
|
+
return de_CommandError(output, context);
|
|
2621
1662
|
}
|
|
2622
1663
|
const contents = (0, import_smithy_client.map)({
|
|
2623
1664
|
$metadata: deserializeMetadata(output)
|
|
@@ -2630,40 +1671,9 @@ var de_ListConfigurationsCommand = /* @__PURE__ */ __name(async (output, context
|
|
|
2630
1671
|
Object.assign(contents, doc);
|
|
2631
1672
|
return contents;
|
|
2632
1673
|
}, "de_ListConfigurationsCommand");
|
|
2633
|
-
var de_ListConfigurationsCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2634
|
-
const parsedOutput = {
|
|
2635
|
-
...output,
|
|
2636
|
-
body: await parseErrorBody(output.body, context)
|
|
2637
|
-
};
|
|
2638
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2639
|
-
switch (errorCode) {
|
|
2640
|
-
case "BadRequestException":
|
|
2641
|
-
case "com.amazonaws.kafka#BadRequestException":
|
|
2642
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
2643
|
-
case "ForbiddenException":
|
|
2644
|
-
case "com.amazonaws.kafka#ForbiddenException":
|
|
2645
|
-
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
2646
|
-
case "InternalServerErrorException":
|
|
2647
|
-
case "com.amazonaws.kafka#InternalServerErrorException":
|
|
2648
|
-
throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
|
|
2649
|
-
case "ServiceUnavailableException":
|
|
2650
|
-
case "com.amazonaws.kafka#ServiceUnavailableException":
|
|
2651
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
2652
|
-
case "UnauthorizedException":
|
|
2653
|
-
case "com.amazonaws.kafka#UnauthorizedException":
|
|
2654
|
-
throw await de_UnauthorizedExceptionRes(parsedOutput, context);
|
|
2655
|
-
default:
|
|
2656
|
-
const parsedBody = parsedOutput.body;
|
|
2657
|
-
return throwDefaultError({
|
|
2658
|
-
output,
|
|
2659
|
-
parsedBody,
|
|
2660
|
-
errorCode
|
|
2661
|
-
});
|
|
2662
|
-
}
|
|
2663
|
-
}, "de_ListConfigurationsCommandError");
|
|
2664
1674
|
var de_ListKafkaVersionsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2665
1675
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2666
|
-
return
|
|
1676
|
+
return de_CommandError(output, context);
|
|
2667
1677
|
}
|
|
2668
1678
|
const contents = (0, import_smithy_client.map)({
|
|
2669
1679
|
$metadata: deserializeMetadata(output)
|
|
@@ -2676,37 +1686,9 @@ var de_ListKafkaVersionsCommand = /* @__PURE__ */ __name(async (output, context)
|
|
|
2676
1686
|
Object.assign(contents, doc);
|
|
2677
1687
|
return contents;
|
|
2678
1688
|
}, "de_ListKafkaVersionsCommand");
|
|
2679
|
-
var de_ListKafkaVersionsCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2680
|
-
const parsedOutput = {
|
|
2681
|
-
...output,
|
|
2682
|
-
body: await parseErrorBody(output.body, context)
|
|
2683
|
-
};
|
|
2684
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2685
|
-
switch (errorCode) {
|
|
2686
|
-
case "BadRequestException":
|
|
2687
|
-
case "com.amazonaws.kafka#BadRequestException":
|
|
2688
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
2689
|
-
case "ForbiddenException":
|
|
2690
|
-
case "com.amazonaws.kafka#ForbiddenException":
|
|
2691
|
-
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
2692
|
-
case "InternalServerErrorException":
|
|
2693
|
-
case "com.amazonaws.kafka#InternalServerErrorException":
|
|
2694
|
-
throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
|
|
2695
|
-
case "UnauthorizedException":
|
|
2696
|
-
case "com.amazonaws.kafka#UnauthorizedException":
|
|
2697
|
-
throw await de_UnauthorizedExceptionRes(parsedOutput, context);
|
|
2698
|
-
default:
|
|
2699
|
-
const parsedBody = parsedOutput.body;
|
|
2700
|
-
return throwDefaultError({
|
|
2701
|
-
output,
|
|
2702
|
-
parsedBody,
|
|
2703
|
-
errorCode
|
|
2704
|
-
});
|
|
2705
|
-
}
|
|
2706
|
-
}, "de_ListKafkaVersionsCommandError");
|
|
2707
1689
|
var de_ListNodesCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2708
1690
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2709
|
-
return
|
|
1691
|
+
return de_CommandError(output, context);
|
|
2710
1692
|
}
|
|
2711
1693
|
const contents = (0, import_smithy_client.map)({
|
|
2712
1694
|
$metadata: deserializeMetadata(output)
|
|
@@ -2719,37 +1701,9 @@ var de_ListNodesCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
2719
1701
|
Object.assign(contents, doc);
|
|
2720
1702
|
return contents;
|
|
2721
1703
|
}, "de_ListNodesCommand");
|
|
2722
|
-
var de_ListNodesCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2723
|
-
const parsedOutput = {
|
|
2724
|
-
...output,
|
|
2725
|
-
body: await parseErrorBody(output.body, context)
|
|
2726
|
-
};
|
|
2727
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2728
|
-
switch (errorCode) {
|
|
2729
|
-
case "BadRequestException":
|
|
2730
|
-
case "com.amazonaws.kafka#BadRequestException":
|
|
2731
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
2732
|
-
case "ForbiddenException":
|
|
2733
|
-
case "com.amazonaws.kafka#ForbiddenException":
|
|
2734
|
-
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
2735
|
-
case "InternalServerErrorException":
|
|
2736
|
-
case "com.amazonaws.kafka#InternalServerErrorException":
|
|
2737
|
-
throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
|
|
2738
|
-
case "NotFoundException":
|
|
2739
|
-
case "com.amazonaws.kafka#NotFoundException":
|
|
2740
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
2741
|
-
default:
|
|
2742
|
-
const parsedBody = parsedOutput.body;
|
|
2743
|
-
return throwDefaultError({
|
|
2744
|
-
output,
|
|
2745
|
-
parsedBody,
|
|
2746
|
-
errorCode
|
|
2747
|
-
});
|
|
2748
|
-
}
|
|
2749
|
-
}, "de_ListNodesCommandError");
|
|
2750
1704
|
var de_ListReplicatorsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2751
1705
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2752
|
-
return
|
|
1706
|
+
return de_CommandError(output, context);
|
|
2753
1707
|
}
|
|
2754
1708
|
const contents = (0, import_smithy_client.map)({
|
|
2755
1709
|
$metadata: deserializeMetadata(output)
|
|
@@ -2762,46 +1716,9 @@ var de_ListReplicatorsCommand = /* @__PURE__ */ __name(async (output, context) =
|
|
|
2762
1716
|
Object.assign(contents, doc);
|
|
2763
1717
|
return contents;
|
|
2764
1718
|
}, "de_ListReplicatorsCommand");
|
|
2765
|
-
var de_ListReplicatorsCommandError = /* @__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 "BadRequestException":
|
|
2773
|
-
case "com.amazonaws.kafka#BadRequestException":
|
|
2774
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
2775
|
-
case "ForbiddenException":
|
|
2776
|
-
case "com.amazonaws.kafka#ForbiddenException":
|
|
2777
|
-
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
2778
|
-
case "InternalServerErrorException":
|
|
2779
|
-
case "com.amazonaws.kafka#InternalServerErrorException":
|
|
2780
|
-
throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
|
|
2781
|
-
case "NotFoundException":
|
|
2782
|
-
case "com.amazonaws.kafka#NotFoundException":
|
|
2783
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
2784
|
-
case "ServiceUnavailableException":
|
|
2785
|
-
case "com.amazonaws.kafka#ServiceUnavailableException":
|
|
2786
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
2787
|
-
case "TooManyRequestsException":
|
|
2788
|
-
case "com.amazonaws.kafka#TooManyRequestsException":
|
|
2789
|
-
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
2790
|
-
case "UnauthorizedException":
|
|
2791
|
-
case "com.amazonaws.kafka#UnauthorizedException":
|
|
2792
|
-
throw await de_UnauthorizedExceptionRes(parsedOutput, context);
|
|
2793
|
-
default:
|
|
2794
|
-
const parsedBody = parsedOutput.body;
|
|
2795
|
-
return throwDefaultError({
|
|
2796
|
-
output,
|
|
2797
|
-
parsedBody,
|
|
2798
|
-
errorCode
|
|
2799
|
-
});
|
|
2800
|
-
}
|
|
2801
|
-
}, "de_ListReplicatorsCommandError");
|
|
2802
1719
|
var de_ListScramSecretsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2803
1720
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2804
|
-
return
|
|
1721
|
+
return de_CommandError(output, context);
|
|
2805
1722
|
}
|
|
2806
1723
|
const contents = (0, import_smithy_client.map)({
|
|
2807
1724
|
$metadata: deserializeMetadata(output)
|
|
@@ -2814,46 +1731,9 @@ var de_ListScramSecretsCommand = /* @__PURE__ */ __name(async (output, context)
|
|
|
2814
1731
|
Object.assign(contents, doc);
|
|
2815
1732
|
return contents;
|
|
2816
1733
|
}, "de_ListScramSecretsCommand");
|
|
2817
|
-
var de_ListScramSecretsCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2818
|
-
const parsedOutput = {
|
|
2819
|
-
...output,
|
|
2820
|
-
body: await parseErrorBody(output.body, context)
|
|
2821
|
-
};
|
|
2822
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2823
|
-
switch (errorCode) {
|
|
2824
|
-
case "BadRequestException":
|
|
2825
|
-
case "com.amazonaws.kafka#BadRequestException":
|
|
2826
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
2827
|
-
case "ForbiddenException":
|
|
2828
|
-
case "com.amazonaws.kafka#ForbiddenException":
|
|
2829
|
-
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
2830
|
-
case "InternalServerErrorException":
|
|
2831
|
-
case "com.amazonaws.kafka#InternalServerErrorException":
|
|
2832
|
-
throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
|
|
2833
|
-
case "NotFoundException":
|
|
2834
|
-
case "com.amazonaws.kafka#NotFoundException":
|
|
2835
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
2836
|
-
case "ServiceUnavailableException":
|
|
2837
|
-
case "com.amazonaws.kafka#ServiceUnavailableException":
|
|
2838
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
2839
|
-
case "TooManyRequestsException":
|
|
2840
|
-
case "com.amazonaws.kafka#TooManyRequestsException":
|
|
2841
|
-
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
2842
|
-
case "UnauthorizedException":
|
|
2843
|
-
case "com.amazonaws.kafka#UnauthorizedException":
|
|
2844
|
-
throw await de_UnauthorizedExceptionRes(parsedOutput, context);
|
|
2845
|
-
default:
|
|
2846
|
-
const parsedBody = parsedOutput.body;
|
|
2847
|
-
return throwDefaultError({
|
|
2848
|
-
output,
|
|
2849
|
-
parsedBody,
|
|
2850
|
-
errorCode
|
|
2851
|
-
});
|
|
2852
|
-
}
|
|
2853
|
-
}, "de_ListScramSecretsCommandError");
|
|
2854
1734
|
var de_ListTagsForResourceCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2855
1735
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2856
|
-
return
|
|
1736
|
+
return de_CommandError(output, context);
|
|
2857
1737
|
}
|
|
2858
1738
|
const contents = (0, import_smithy_client.map)({
|
|
2859
1739
|
$metadata: deserializeMetadata(output)
|
|
@@ -2865,34 +1745,9 @@ var de_ListTagsForResourceCommand = /* @__PURE__ */ __name(async (output, contex
|
|
|
2865
1745
|
Object.assign(contents, doc);
|
|
2866
1746
|
return contents;
|
|
2867
1747
|
}, "de_ListTagsForResourceCommand");
|
|
2868
|
-
var de_ListTagsForResourceCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2869
|
-
const parsedOutput = {
|
|
2870
|
-
...output,
|
|
2871
|
-
body: await parseErrorBody(output.body, context)
|
|
2872
|
-
};
|
|
2873
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2874
|
-
switch (errorCode) {
|
|
2875
|
-
case "BadRequestException":
|
|
2876
|
-
case "com.amazonaws.kafka#BadRequestException":
|
|
2877
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
2878
|
-
case "InternalServerErrorException":
|
|
2879
|
-
case "com.amazonaws.kafka#InternalServerErrorException":
|
|
2880
|
-
throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
|
|
2881
|
-
case "NotFoundException":
|
|
2882
|
-
case "com.amazonaws.kafka#NotFoundException":
|
|
2883
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
2884
|
-
default:
|
|
2885
|
-
const parsedBody = parsedOutput.body;
|
|
2886
|
-
return throwDefaultError({
|
|
2887
|
-
output,
|
|
2888
|
-
parsedBody,
|
|
2889
|
-
errorCode
|
|
2890
|
-
});
|
|
2891
|
-
}
|
|
2892
|
-
}, "de_ListTagsForResourceCommandError");
|
|
2893
1748
|
var de_ListVpcConnectionsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2894
1749
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2895
|
-
return
|
|
1750
|
+
return de_CommandError(output, context);
|
|
2896
1751
|
}
|
|
2897
1752
|
const contents = (0, import_smithy_client.map)({
|
|
2898
1753
|
$metadata: deserializeMetadata(output)
|
|
@@ -2905,40 +1760,9 @@ var de_ListVpcConnectionsCommand = /* @__PURE__ */ __name(async (output, context
|
|
|
2905
1760
|
Object.assign(contents, doc);
|
|
2906
1761
|
return contents;
|
|
2907
1762
|
}, "de_ListVpcConnectionsCommand");
|
|
2908
|
-
var de_ListVpcConnectionsCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2909
|
-
const parsedOutput = {
|
|
2910
|
-
...output,
|
|
2911
|
-
body: await parseErrorBody(output.body, context)
|
|
2912
|
-
};
|
|
2913
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2914
|
-
switch (errorCode) {
|
|
2915
|
-
case "BadRequestException":
|
|
2916
|
-
case "com.amazonaws.kafka#BadRequestException":
|
|
2917
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
2918
|
-
case "ForbiddenException":
|
|
2919
|
-
case "com.amazonaws.kafka#ForbiddenException":
|
|
2920
|
-
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
2921
|
-
case "InternalServerErrorException":
|
|
2922
|
-
case "com.amazonaws.kafka#InternalServerErrorException":
|
|
2923
|
-
throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
|
|
2924
|
-
case "ServiceUnavailableException":
|
|
2925
|
-
case "com.amazonaws.kafka#ServiceUnavailableException":
|
|
2926
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
2927
|
-
case "UnauthorizedException":
|
|
2928
|
-
case "com.amazonaws.kafka#UnauthorizedException":
|
|
2929
|
-
throw await de_UnauthorizedExceptionRes(parsedOutput, context);
|
|
2930
|
-
default:
|
|
2931
|
-
const parsedBody = parsedOutput.body;
|
|
2932
|
-
return throwDefaultError({
|
|
2933
|
-
output,
|
|
2934
|
-
parsedBody,
|
|
2935
|
-
errorCode
|
|
2936
|
-
});
|
|
2937
|
-
}
|
|
2938
|
-
}, "de_ListVpcConnectionsCommandError");
|
|
2939
1763
|
var de_PutClusterPolicyCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2940
1764
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2941
|
-
return
|
|
1765
|
+
return de_CommandError(output, context);
|
|
2942
1766
|
}
|
|
2943
1767
|
const contents = (0, import_smithy_client.map)({
|
|
2944
1768
|
$metadata: deserializeMetadata(output)
|
|
@@ -2950,34 +1774,9 @@ var de_PutClusterPolicyCommand = /* @__PURE__ */ __name(async (output, context)
|
|
|
2950
1774
|
Object.assign(contents, doc);
|
|
2951
1775
|
return contents;
|
|
2952
1776
|
}, "de_PutClusterPolicyCommand");
|
|
2953
|
-
var de_PutClusterPolicyCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2954
|
-
const parsedOutput = {
|
|
2955
|
-
...output,
|
|
2956
|
-
body: await parseErrorBody(output.body, context)
|
|
2957
|
-
};
|
|
2958
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2959
|
-
switch (errorCode) {
|
|
2960
|
-
case "BadRequestException":
|
|
2961
|
-
case "com.amazonaws.kafka#BadRequestException":
|
|
2962
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
2963
|
-
case "ForbiddenException":
|
|
2964
|
-
case "com.amazonaws.kafka#ForbiddenException":
|
|
2965
|
-
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
2966
|
-
case "InternalServerErrorException":
|
|
2967
|
-
case "com.amazonaws.kafka#InternalServerErrorException":
|
|
2968
|
-
throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
|
|
2969
|
-
default:
|
|
2970
|
-
const parsedBody = parsedOutput.body;
|
|
2971
|
-
return throwDefaultError({
|
|
2972
|
-
output,
|
|
2973
|
-
parsedBody,
|
|
2974
|
-
errorCode
|
|
2975
|
-
});
|
|
2976
|
-
}
|
|
2977
|
-
}, "de_PutClusterPolicyCommandError");
|
|
2978
1777
|
var de_RebootBrokerCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2979
1778
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2980
|
-
return
|
|
1779
|
+
return de_CommandError(output, context);
|
|
2981
1780
|
}
|
|
2982
1781
|
const contents = (0, import_smithy_client.map)({
|
|
2983
1782
|
$metadata: deserializeMetadata(output)
|
|
@@ -2990,46 +1789,9 @@ var de_RebootBrokerCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
2990
1789
|
Object.assign(contents, doc);
|
|
2991
1790
|
return contents;
|
|
2992
1791
|
}, "de_RebootBrokerCommand");
|
|
2993
|
-
var de_RebootBrokerCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2994
|
-
const parsedOutput = {
|
|
2995
|
-
...output,
|
|
2996
|
-
body: await parseErrorBody(output.body, context)
|
|
2997
|
-
};
|
|
2998
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2999
|
-
switch (errorCode) {
|
|
3000
|
-
case "BadRequestException":
|
|
3001
|
-
case "com.amazonaws.kafka#BadRequestException":
|
|
3002
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
3003
|
-
case "ForbiddenException":
|
|
3004
|
-
case "com.amazonaws.kafka#ForbiddenException":
|
|
3005
|
-
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
3006
|
-
case "InternalServerErrorException":
|
|
3007
|
-
case "com.amazonaws.kafka#InternalServerErrorException":
|
|
3008
|
-
throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
|
|
3009
|
-
case "NotFoundException":
|
|
3010
|
-
case "com.amazonaws.kafka#NotFoundException":
|
|
3011
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
3012
|
-
case "ServiceUnavailableException":
|
|
3013
|
-
case "com.amazonaws.kafka#ServiceUnavailableException":
|
|
3014
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
3015
|
-
case "TooManyRequestsException":
|
|
3016
|
-
case "com.amazonaws.kafka#TooManyRequestsException":
|
|
3017
|
-
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
3018
|
-
case "UnauthorizedException":
|
|
3019
|
-
case "com.amazonaws.kafka#UnauthorizedException":
|
|
3020
|
-
throw await de_UnauthorizedExceptionRes(parsedOutput, context);
|
|
3021
|
-
default:
|
|
3022
|
-
const parsedBody = parsedOutput.body;
|
|
3023
|
-
return throwDefaultError({
|
|
3024
|
-
output,
|
|
3025
|
-
parsedBody,
|
|
3026
|
-
errorCode
|
|
3027
|
-
});
|
|
3028
|
-
}
|
|
3029
|
-
}, "de_RebootBrokerCommandError");
|
|
3030
1792
|
var de_RejectClientVpcConnectionCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
3031
1793
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3032
|
-
return
|
|
1794
|
+
return de_CommandError(output, context);
|
|
3033
1795
|
}
|
|
3034
1796
|
const contents = (0, import_smithy_client.map)({
|
|
3035
1797
|
$metadata: deserializeMetadata(output)
|
|
@@ -3037,40 +1799,9 @@ var de_RejectClientVpcConnectionCommand = /* @__PURE__ */ __name(async (output,
|
|
|
3037
1799
|
await (0, import_smithy_client.collectBody)(output.body, context);
|
|
3038
1800
|
return contents;
|
|
3039
1801
|
}, "de_RejectClientVpcConnectionCommand");
|
|
3040
|
-
var de_RejectClientVpcConnectionCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
3041
|
-
const parsedOutput = {
|
|
3042
|
-
...output,
|
|
3043
|
-
body: await parseErrorBody(output.body, context)
|
|
3044
|
-
};
|
|
3045
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3046
|
-
switch (errorCode) {
|
|
3047
|
-
case "BadRequestException":
|
|
3048
|
-
case "com.amazonaws.kafka#BadRequestException":
|
|
3049
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
3050
|
-
case "ForbiddenException":
|
|
3051
|
-
case "com.amazonaws.kafka#ForbiddenException":
|
|
3052
|
-
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
3053
|
-
case "InternalServerErrorException":
|
|
3054
|
-
case "com.amazonaws.kafka#InternalServerErrorException":
|
|
3055
|
-
throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
|
|
3056
|
-
case "ServiceUnavailableException":
|
|
3057
|
-
case "com.amazonaws.kafka#ServiceUnavailableException":
|
|
3058
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
3059
|
-
case "UnauthorizedException":
|
|
3060
|
-
case "com.amazonaws.kafka#UnauthorizedException":
|
|
3061
|
-
throw await de_UnauthorizedExceptionRes(parsedOutput, context);
|
|
3062
|
-
default:
|
|
3063
|
-
const parsedBody = parsedOutput.body;
|
|
3064
|
-
return throwDefaultError({
|
|
3065
|
-
output,
|
|
3066
|
-
parsedBody,
|
|
3067
|
-
errorCode
|
|
3068
|
-
});
|
|
3069
|
-
}
|
|
3070
|
-
}, "de_RejectClientVpcConnectionCommandError");
|
|
3071
1802
|
var de_TagResourceCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
3072
1803
|
if (output.statusCode !== 204 && output.statusCode >= 300) {
|
|
3073
|
-
return
|
|
1804
|
+
return de_CommandError(output, context);
|
|
3074
1805
|
}
|
|
3075
1806
|
const contents = (0, import_smithy_client.map)({
|
|
3076
1807
|
$metadata: deserializeMetadata(output)
|
|
@@ -3078,34 +1809,9 @@ var de_TagResourceCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
3078
1809
|
await (0, import_smithy_client.collectBody)(output.body, context);
|
|
3079
1810
|
return contents;
|
|
3080
1811
|
}, "de_TagResourceCommand");
|
|
3081
|
-
var de_TagResourceCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
3082
|
-
const parsedOutput = {
|
|
3083
|
-
...output,
|
|
3084
|
-
body: await parseErrorBody(output.body, context)
|
|
3085
|
-
};
|
|
3086
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3087
|
-
switch (errorCode) {
|
|
3088
|
-
case "BadRequestException":
|
|
3089
|
-
case "com.amazonaws.kafka#BadRequestException":
|
|
3090
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
3091
|
-
case "InternalServerErrorException":
|
|
3092
|
-
case "com.amazonaws.kafka#InternalServerErrorException":
|
|
3093
|
-
throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
|
|
3094
|
-
case "NotFoundException":
|
|
3095
|
-
case "com.amazonaws.kafka#NotFoundException":
|
|
3096
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
3097
|
-
default:
|
|
3098
|
-
const parsedBody = parsedOutput.body;
|
|
3099
|
-
return throwDefaultError({
|
|
3100
|
-
output,
|
|
3101
|
-
parsedBody,
|
|
3102
|
-
errorCode
|
|
3103
|
-
});
|
|
3104
|
-
}
|
|
3105
|
-
}, "de_TagResourceCommandError");
|
|
3106
1812
|
var de_UntagResourceCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
3107
1813
|
if (output.statusCode !== 204 && output.statusCode >= 300) {
|
|
3108
|
-
return
|
|
1814
|
+
return de_CommandError(output, context);
|
|
3109
1815
|
}
|
|
3110
1816
|
const contents = (0, import_smithy_client.map)({
|
|
3111
1817
|
$metadata: deserializeMetadata(output)
|
|
@@ -3113,34 +1819,9 @@ var de_UntagResourceCommand = /* @__PURE__ */ __name(async (output, context) =>
|
|
|
3113
1819
|
await (0, import_smithy_client.collectBody)(output.body, context);
|
|
3114
1820
|
return contents;
|
|
3115
1821
|
}, "de_UntagResourceCommand");
|
|
3116
|
-
var de_UntagResourceCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
3117
|
-
const parsedOutput = {
|
|
3118
|
-
...output,
|
|
3119
|
-
body: await parseErrorBody(output.body, context)
|
|
3120
|
-
};
|
|
3121
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3122
|
-
switch (errorCode) {
|
|
3123
|
-
case "BadRequestException":
|
|
3124
|
-
case "com.amazonaws.kafka#BadRequestException":
|
|
3125
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
3126
|
-
case "InternalServerErrorException":
|
|
3127
|
-
case "com.amazonaws.kafka#InternalServerErrorException":
|
|
3128
|
-
throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
|
|
3129
|
-
case "NotFoundException":
|
|
3130
|
-
case "com.amazonaws.kafka#NotFoundException":
|
|
3131
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
3132
|
-
default:
|
|
3133
|
-
const parsedBody = parsedOutput.body;
|
|
3134
|
-
return throwDefaultError({
|
|
3135
|
-
output,
|
|
3136
|
-
parsedBody,
|
|
3137
|
-
errorCode
|
|
3138
|
-
});
|
|
3139
|
-
}
|
|
3140
|
-
}, "de_UntagResourceCommandError");
|
|
3141
1822
|
var de_UpdateBrokerCountCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
3142
1823
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3143
|
-
return
|
|
1824
|
+
return de_CommandError(output, context);
|
|
3144
1825
|
}
|
|
3145
1826
|
const contents = (0, import_smithy_client.map)({
|
|
3146
1827
|
$metadata: deserializeMetadata(output)
|
|
@@ -3153,138 +1834,39 @@ var de_UpdateBrokerCountCommand = /* @__PURE__ */ __name(async (output, context)
|
|
|
3153
1834
|
Object.assign(contents, doc);
|
|
3154
1835
|
return contents;
|
|
3155
1836
|
}, "de_UpdateBrokerCountCommand");
|
|
3156
|
-
var de_UpdateBrokerCountCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
3157
|
-
const parsedOutput = {
|
|
3158
|
-
...output,
|
|
3159
|
-
body: await parseErrorBody(output.body, context)
|
|
3160
|
-
};
|
|
3161
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3162
|
-
switch (errorCode) {
|
|
3163
|
-
case "BadRequestException":
|
|
3164
|
-
case "com.amazonaws.kafka#BadRequestException":
|
|
3165
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
3166
|
-
case "ForbiddenException":
|
|
3167
|
-
case "com.amazonaws.kafka#ForbiddenException":
|
|
3168
|
-
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
3169
|
-
case "InternalServerErrorException":
|
|
3170
|
-
case "com.amazonaws.kafka#InternalServerErrorException":
|
|
3171
|
-
throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
|
|
3172
|
-
case "ServiceUnavailableException":
|
|
3173
|
-
case "com.amazonaws.kafka#ServiceUnavailableException":
|
|
3174
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
3175
|
-
case "UnauthorizedException":
|
|
3176
|
-
case "com.amazonaws.kafka#UnauthorizedException":
|
|
3177
|
-
throw await de_UnauthorizedExceptionRes(parsedOutput, context);
|
|
3178
|
-
default:
|
|
3179
|
-
const parsedBody = parsedOutput.body;
|
|
3180
|
-
return throwDefaultError({
|
|
3181
|
-
output,
|
|
3182
|
-
parsedBody,
|
|
3183
|
-
errorCode
|
|
3184
|
-
});
|
|
3185
|
-
}
|
|
3186
|
-
}, "de_UpdateBrokerCountCommandError");
|
|
3187
1837
|
var de_UpdateBrokerStorageCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
3188
1838
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3189
|
-
return
|
|
3190
|
-
}
|
|
3191
|
-
const contents = (0, import_smithy_client.map)({
|
|
3192
|
-
$metadata: deserializeMetadata(output)
|
|
3193
|
-
});
|
|
3194
|
-
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
|
|
3195
|
-
const doc = (0, import_smithy_client.take)(data, {
|
|
3196
|
-
ClusterArn: [, import_smithy_client.expectString, `clusterArn`],
|
|
3197
|
-
ClusterOperationArn: [, import_smithy_client.expectString, `clusterOperationArn`]
|
|
3198
|
-
});
|
|
3199
|
-
Object.assign(contents, doc);
|
|
3200
|
-
return contents;
|
|
3201
|
-
}, "de_UpdateBrokerStorageCommand");
|
|
3202
|
-
var de_UpdateBrokerStorageCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
3203
|
-
const parsedOutput = {
|
|
3204
|
-
...output,
|
|
3205
|
-
body: await parseErrorBody(output.body, context)
|
|
3206
|
-
};
|
|
3207
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3208
|
-
switch (errorCode) {
|
|
3209
|
-
case "BadRequestException":
|
|
3210
|
-
case "com.amazonaws.kafka#BadRequestException":
|
|
3211
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
3212
|
-
case "ForbiddenException":
|
|
3213
|
-
case "com.amazonaws.kafka#ForbiddenException":
|
|
3214
|
-
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
3215
|
-
case "InternalServerErrorException":
|
|
3216
|
-
case "com.amazonaws.kafka#InternalServerErrorException":
|
|
3217
|
-
throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
|
|
3218
|
-
case "ServiceUnavailableException":
|
|
3219
|
-
case "com.amazonaws.kafka#ServiceUnavailableException":
|
|
3220
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
3221
|
-
case "UnauthorizedException":
|
|
3222
|
-
case "com.amazonaws.kafka#UnauthorizedException":
|
|
3223
|
-
throw await de_UnauthorizedExceptionRes(parsedOutput, context);
|
|
3224
|
-
default:
|
|
3225
|
-
const parsedBody = parsedOutput.body;
|
|
3226
|
-
return throwDefaultError({
|
|
3227
|
-
output,
|
|
3228
|
-
parsedBody,
|
|
3229
|
-
errorCode
|
|
3230
|
-
});
|
|
3231
|
-
}
|
|
3232
|
-
}, "de_UpdateBrokerStorageCommandError");
|
|
3233
|
-
var de_UpdateBrokerTypeCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
3234
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3235
|
-
return de_UpdateBrokerTypeCommandError(output, context);
|
|
1839
|
+
return de_CommandError(output, context);
|
|
3236
1840
|
}
|
|
3237
1841
|
const contents = (0, import_smithy_client.map)({
|
|
3238
|
-
$metadata: deserializeMetadata(output)
|
|
3239
|
-
});
|
|
3240
|
-
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
|
|
3241
|
-
const doc = (0, import_smithy_client.take)(data, {
|
|
3242
|
-
ClusterArn: [, import_smithy_client.expectString, `clusterArn`],
|
|
3243
|
-
ClusterOperationArn: [, import_smithy_client.expectString, `clusterOperationArn`]
|
|
3244
|
-
});
|
|
3245
|
-
Object.assign(contents, doc);
|
|
3246
|
-
return contents;
|
|
3247
|
-
}, "
|
|
3248
|
-
var
|
|
3249
|
-
|
|
3250
|
-
|
|
3251
|
-
body: await parseErrorBody(output.body, context)
|
|
3252
|
-
};
|
|
3253
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3254
|
-
switch (errorCode) {
|
|
3255
|
-
case "BadRequestException":
|
|
3256
|
-
case "com.amazonaws.kafka#BadRequestException":
|
|
3257
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
3258
|
-
case "ForbiddenException":
|
|
3259
|
-
case "com.amazonaws.kafka#ForbiddenException":
|
|
3260
|
-
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
3261
|
-
case "InternalServerErrorException":
|
|
3262
|
-
case "com.amazonaws.kafka#InternalServerErrorException":
|
|
3263
|
-
throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
|
|
3264
|
-
case "NotFoundException":
|
|
3265
|
-
case "com.amazonaws.kafka#NotFoundException":
|
|
3266
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
3267
|
-
case "ServiceUnavailableException":
|
|
3268
|
-
case "com.amazonaws.kafka#ServiceUnavailableException":
|
|
3269
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
3270
|
-
case "TooManyRequestsException":
|
|
3271
|
-
case "com.amazonaws.kafka#TooManyRequestsException":
|
|
3272
|
-
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
3273
|
-
case "UnauthorizedException":
|
|
3274
|
-
case "com.amazonaws.kafka#UnauthorizedException":
|
|
3275
|
-
throw await de_UnauthorizedExceptionRes(parsedOutput, context);
|
|
3276
|
-
default:
|
|
3277
|
-
const parsedBody = parsedOutput.body;
|
|
3278
|
-
return throwDefaultError({
|
|
3279
|
-
output,
|
|
3280
|
-
parsedBody,
|
|
3281
|
-
errorCode
|
|
3282
|
-
});
|
|
1842
|
+
$metadata: deserializeMetadata(output)
|
|
1843
|
+
});
|
|
1844
|
+
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
|
|
1845
|
+
const doc = (0, import_smithy_client.take)(data, {
|
|
1846
|
+
ClusterArn: [, import_smithy_client.expectString, `clusterArn`],
|
|
1847
|
+
ClusterOperationArn: [, import_smithy_client.expectString, `clusterOperationArn`]
|
|
1848
|
+
});
|
|
1849
|
+
Object.assign(contents, doc);
|
|
1850
|
+
return contents;
|
|
1851
|
+
}, "de_UpdateBrokerStorageCommand");
|
|
1852
|
+
var de_UpdateBrokerTypeCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1853
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1854
|
+
return de_CommandError(output, context);
|
|
3283
1855
|
}
|
|
3284
|
-
|
|
1856
|
+
const contents = (0, import_smithy_client.map)({
|
|
1857
|
+
$metadata: deserializeMetadata(output)
|
|
1858
|
+
});
|
|
1859
|
+
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
|
|
1860
|
+
const doc = (0, import_smithy_client.take)(data, {
|
|
1861
|
+
ClusterArn: [, import_smithy_client.expectString, `clusterArn`],
|
|
1862
|
+
ClusterOperationArn: [, import_smithy_client.expectString, `clusterOperationArn`]
|
|
1863
|
+
});
|
|
1864
|
+
Object.assign(contents, doc);
|
|
1865
|
+
return contents;
|
|
1866
|
+
}, "de_UpdateBrokerTypeCommand");
|
|
3285
1867
|
var de_UpdateClusterConfigurationCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
3286
1868
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3287
|
-
return
|
|
1869
|
+
return de_CommandError(output, context);
|
|
3288
1870
|
}
|
|
3289
1871
|
const contents = (0, import_smithy_client.map)({
|
|
3290
1872
|
$metadata: deserializeMetadata(output)
|
|
@@ -3297,43 +1879,9 @@ var de_UpdateClusterConfigurationCommand = /* @__PURE__ */ __name(async (output,
|
|
|
3297
1879
|
Object.assign(contents, doc);
|
|
3298
1880
|
return contents;
|
|
3299
1881
|
}, "de_UpdateClusterConfigurationCommand");
|
|
3300
|
-
var de_UpdateClusterConfigurationCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
3301
|
-
const parsedOutput = {
|
|
3302
|
-
...output,
|
|
3303
|
-
body: await parseErrorBody(output.body, context)
|
|
3304
|
-
};
|
|
3305
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3306
|
-
switch (errorCode) {
|
|
3307
|
-
case "BadRequestException":
|
|
3308
|
-
case "com.amazonaws.kafka#BadRequestException":
|
|
3309
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
3310
|
-
case "ForbiddenException":
|
|
3311
|
-
case "com.amazonaws.kafka#ForbiddenException":
|
|
3312
|
-
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
3313
|
-
case "InternalServerErrorException":
|
|
3314
|
-
case "com.amazonaws.kafka#InternalServerErrorException":
|
|
3315
|
-
throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
|
|
3316
|
-
case "NotFoundException":
|
|
3317
|
-
case "com.amazonaws.kafka#NotFoundException":
|
|
3318
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
3319
|
-
case "ServiceUnavailableException":
|
|
3320
|
-
case "com.amazonaws.kafka#ServiceUnavailableException":
|
|
3321
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
3322
|
-
case "UnauthorizedException":
|
|
3323
|
-
case "com.amazonaws.kafka#UnauthorizedException":
|
|
3324
|
-
throw await de_UnauthorizedExceptionRes(parsedOutput, context);
|
|
3325
|
-
default:
|
|
3326
|
-
const parsedBody = parsedOutput.body;
|
|
3327
|
-
return throwDefaultError({
|
|
3328
|
-
output,
|
|
3329
|
-
parsedBody,
|
|
3330
|
-
errorCode
|
|
3331
|
-
});
|
|
3332
|
-
}
|
|
3333
|
-
}, "de_UpdateClusterConfigurationCommandError");
|
|
3334
1882
|
var de_UpdateClusterKafkaVersionCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
3335
1883
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3336
|
-
return
|
|
1884
|
+
return de_CommandError(output, context);
|
|
3337
1885
|
}
|
|
3338
1886
|
const contents = (0, import_smithy_client.map)({
|
|
3339
1887
|
$metadata: deserializeMetadata(output)
|
|
@@ -3346,46 +1894,9 @@ var de_UpdateClusterKafkaVersionCommand = /* @__PURE__ */ __name(async (output,
|
|
|
3346
1894
|
Object.assign(contents, doc);
|
|
3347
1895
|
return contents;
|
|
3348
1896
|
}, "de_UpdateClusterKafkaVersionCommand");
|
|
3349
|
-
var de_UpdateClusterKafkaVersionCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
3350
|
-
const parsedOutput = {
|
|
3351
|
-
...output,
|
|
3352
|
-
body: await parseErrorBody(output.body, context)
|
|
3353
|
-
};
|
|
3354
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3355
|
-
switch (errorCode) {
|
|
3356
|
-
case "BadRequestException":
|
|
3357
|
-
case "com.amazonaws.kafka#BadRequestException":
|
|
3358
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
3359
|
-
case "ForbiddenException":
|
|
3360
|
-
case "com.amazonaws.kafka#ForbiddenException":
|
|
3361
|
-
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
3362
|
-
case "InternalServerErrorException":
|
|
3363
|
-
case "com.amazonaws.kafka#InternalServerErrorException":
|
|
3364
|
-
throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
|
|
3365
|
-
case "NotFoundException":
|
|
3366
|
-
case "com.amazonaws.kafka#NotFoundException":
|
|
3367
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
3368
|
-
case "ServiceUnavailableException":
|
|
3369
|
-
case "com.amazonaws.kafka#ServiceUnavailableException":
|
|
3370
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
3371
|
-
case "TooManyRequestsException":
|
|
3372
|
-
case "com.amazonaws.kafka#TooManyRequestsException":
|
|
3373
|
-
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
3374
|
-
case "UnauthorizedException":
|
|
3375
|
-
case "com.amazonaws.kafka#UnauthorizedException":
|
|
3376
|
-
throw await de_UnauthorizedExceptionRes(parsedOutput, context);
|
|
3377
|
-
default:
|
|
3378
|
-
const parsedBody = parsedOutput.body;
|
|
3379
|
-
return throwDefaultError({
|
|
3380
|
-
output,
|
|
3381
|
-
parsedBody,
|
|
3382
|
-
errorCode
|
|
3383
|
-
});
|
|
3384
|
-
}
|
|
3385
|
-
}, "de_UpdateClusterKafkaVersionCommandError");
|
|
3386
1897
|
var de_UpdateConfigurationCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
3387
1898
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3388
|
-
return
|
|
1899
|
+
return de_CommandError(output, context);
|
|
3389
1900
|
}
|
|
3390
1901
|
const contents = (0, import_smithy_client.map)({
|
|
3391
1902
|
$metadata: deserializeMetadata(output)
|
|
@@ -3398,43 +1909,9 @@ var de_UpdateConfigurationCommand = /* @__PURE__ */ __name(async (output, contex
|
|
|
3398
1909
|
Object.assign(contents, doc);
|
|
3399
1910
|
return contents;
|
|
3400
1911
|
}, "de_UpdateConfigurationCommand");
|
|
3401
|
-
var de_UpdateConfigurationCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
3402
|
-
const parsedOutput = {
|
|
3403
|
-
...output,
|
|
3404
|
-
body: await parseErrorBody(output.body, context)
|
|
3405
|
-
};
|
|
3406
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3407
|
-
switch (errorCode) {
|
|
3408
|
-
case "BadRequestException":
|
|
3409
|
-
case "com.amazonaws.kafka#BadRequestException":
|
|
3410
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
3411
|
-
case "ForbiddenException":
|
|
3412
|
-
case "com.amazonaws.kafka#ForbiddenException":
|
|
3413
|
-
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
3414
|
-
case "InternalServerErrorException":
|
|
3415
|
-
case "com.amazonaws.kafka#InternalServerErrorException":
|
|
3416
|
-
throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
|
|
3417
|
-
case "NotFoundException":
|
|
3418
|
-
case "com.amazonaws.kafka#NotFoundException":
|
|
3419
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
3420
|
-
case "ServiceUnavailableException":
|
|
3421
|
-
case "com.amazonaws.kafka#ServiceUnavailableException":
|
|
3422
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
3423
|
-
case "UnauthorizedException":
|
|
3424
|
-
case "com.amazonaws.kafka#UnauthorizedException":
|
|
3425
|
-
throw await de_UnauthorizedExceptionRes(parsedOutput, context);
|
|
3426
|
-
default:
|
|
3427
|
-
const parsedBody = parsedOutput.body;
|
|
3428
|
-
return throwDefaultError({
|
|
3429
|
-
output,
|
|
3430
|
-
parsedBody,
|
|
3431
|
-
errorCode
|
|
3432
|
-
});
|
|
3433
|
-
}
|
|
3434
|
-
}, "de_UpdateConfigurationCommandError");
|
|
3435
1912
|
var de_UpdateConnectivityCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
3436
1913
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3437
|
-
return
|
|
1914
|
+
return de_CommandError(output, context);
|
|
3438
1915
|
}
|
|
3439
1916
|
const contents = (0, import_smithy_client.map)({
|
|
3440
1917
|
$metadata: deserializeMetadata(output)
|
|
@@ -3447,43 +1924,9 @@ var de_UpdateConnectivityCommand = /* @__PURE__ */ __name(async (output, context
|
|
|
3447
1924
|
Object.assign(contents, doc);
|
|
3448
1925
|
return contents;
|
|
3449
1926
|
}, "de_UpdateConnectivityCommand");
|
|
3450
|
-
var de_UpdateConnectivityCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
3451
|
-
const parsedOutput = {
|
|
3452
|
-
...output,
|
|
3453
|
-
body: await parseErrorBody(output.body, context)
|
|
3454
|
-
};
|
|
3455
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3456
|
-
switch (errorCode) {
|
|
3457
|
-
case "BadRequestException":
|
|
3458
|
-
case "com.amazonaws.kafka#BadRequestException":
|
|
3459
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
3460
|
-
case "ForbiddenException":
|
|
3461
|
-
case "com.amazonaws.kafka#ForbiddenException":
|
|
3462
|
-
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
3463
|
-
case "InternalServerErrorException":
|
|
3464
|
-
case "com.amazonaws.kafka#InternalServerErrorException":
|
|
3465
|
-
throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
|
|
3466
|
-
case "NotFoundException":
|
|
3467
|
-
case "com.amazonaws.kafka#NotFoundException":
|
|
3468
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
3469
|
-
case "ServiceUnavailableException":
|
|
3470
|
-
case "com.amazonaws.kafka#ServiceUnavailableException":
|
|
3471
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
3472
|
-
case "UnauthorizedException":
|
|
3473
|
-
case "com.amazonaws.kafka#UnauthorizedException":
|
|
3474
|
-
throw await de_UnauthorizedExceptionRes(parsedOutput, context);
|
|
3475
|
-
default:
|
|
3476
|
-
const parsedBody = parsedOutput.body;
|
|
3477
|
-
return throwDefaultError({
|
|
3478
|
-
output,
|
|
3479
|
-
parsedBody,
|
|
3480
|
-
errorCode
|
|
3481
|
-
});
|
|
3482
|
-
}
|
|
3483
|
-
}, "de_UpdateConnectivityCommandError");
|
|
3484
1927
|
var de_UpdateMonitoringCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
3485
1928
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3486
|
-
return
|
|
1929
|
+
return de_CommandError(output, context);
|
|
3487
1930
|
}
|
|
3488
1931
|
const contents = (0, import_smithy_client.map)({
|
|
3489
1932
|
$metadata: deserializeMetadata(output)
|
|
@@ -3496,40 +1939,9 @@ var de_UpdateMonitoringCommand = /* @__PURE__ */ __name(async (output, context)
|
|
|
3496
1939
|
Object.assign(contents, doc);
|
|
3497
1940
|
return contents;
|
|
3498
1941
|
}, "de_UpdateMonitoringCommand");
|
|
3499
|
-
var de_UpdateMonitoringCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
3500
|
-
const parsedOutput = {
|
|
3501
|
-
...output,
|
|
3502
|
-
body: await parseErrorBody(output.body, context)
|
|
3503
|
-
};
|
|
3504
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3505
|
-
switch (errorCode) {
|
|
3506
|
-
case "BadRequestException":
|
|
3507
|
-
case "com.amazonaws.kafka#BadRequestException":
|
|
3508
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
3509
|
-
case "ForbiddenException":
|
|
3510
|
-
case "com.amazonaws.kafka#ForbiddenException":
|
|
3511
|
-
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
3512
|
-
case "InternalServerErrorException":
|
|
3513
|
-
case "com.amazonaws.kafka#InternalServerErrorException":
|
|
3514
|
-
throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
|
|
3515
|
-
case "ServiceUnavailableException":
|
|
3516
|
-
case "com.amazonaws.kafka#ServiceUnavailableException":
|
|
3517
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
3518
|
-
case "UnauthorizedException":
|
|
3519
|
-
case "com.amazonaws.kafka#UnauthorizedException":
|
|
3520
|
-
throw await de_UnauthorizedExceptionRes(parsedOutput, context);
|
|
3521
|
-
default:
|
|
3522
|
-
const parsedBody = parsedOutput.body;
|
|
3523
|
-
return throwDefaultError({
|
|
3524
|
-
output,
|
|
3525
|
-
parsedBody,
|
|
3526
|
-
errorCode
|
|
3527
|
-
});
|
|
3528
|
-
}
|
|
3529
|
-
}, "de_UpdateMonitoringCommandError");
|
|
3530
1942
|
var de_UpdateReplicationInfoCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
3531
1943
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3532
|
-
return
|
|
1944
|
+
return de_CommandError(output, context);
|
|
3533
1945
|
}
|
|
3534
1946
|
const contents = (0, import_smithy_client.map)({
|
|
3535
1947
|
$metadata: deserializeMetadata(output)
|
|
@@ -3542,46 +1954,9 @@ var de_UpdateReplicationInfoCommand = /* @__PURE__ */ __name(async (output, cont
|
|
|
3542
1954
|
Object.assign(contents, doc);
|
|
3543
1955
|
return contents;
|
|
3544
1956
|
}, "de_UpdateReplicationInfoCommand");
|
|
3545
|
-
var de_UpdateReplicationInfoCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
3546
|
-
const parsedOutput = {
|
|
3547
|
-
...output,
|
|
3548
|
-
body: await parseErrorBody(output.body, context)
|
|
3549
|
-
};
|
|
3550
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3551
|
-
switch (errorCode) {
|
|
3552
|
-
case "BadRequestException":
|
|
3553
|
-
case "com.amazonaws.kafka#BadRequestException":
|
|
3554
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
3555
|
-
case "ForbiddenException":
|
|
3556
|
-
case "com.amazonaws.kafka#ForbiddenException":
|
|
3557
|
-
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
3558
|
-
case "InternalServerErrorException":
|
|
3559
|
-
case "com.amazonaws.kafka#InternalServerErrorException":
|
|
3560
|
-
throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
|
|
3561
|
-
case "NotFoundException":
|
|
3562
|
-
case "com.amazonaws.kafka#NotFoundException":
|
|
3563
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
3564
|
-
case "ServiceUnavailableException":
|
|
3565
|
-
case "com.amazonaws.kafka#ServiceUnavailableException":
|
|
3566
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
3567
|
-
case "TooManyRequestsException":
|
|
3568
|
-
case "com.amazonaws.kafka#TooManyRequestsException":
|
|
3569
|
-
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
3570
|
-
case "UnauthorizedException":
|
|
3571
|
-
case "com.amazonaws.kafka#UnauthorizedException":
|
|
3572
|
-
throw await de_UnauthorizedExceptionRes(parsedOutput, context);
|
|
3573
|
-
default:
|
|
3574
|
-
const parsedBody = parsedOutput.body;
|
|
3575
|
-
return throwDefaultError({
|
|
3576
|
-
output,
|
|
3577
|
-
parsedBody,
|
|
3578
|
-
errorCode
|
|
3579
|
-
});
|
|
3580
|
-
}
|
|
3581
|
-
}, "de_UpdateReplicationInfoCommandError");
|
|
3582
1957
|
var de_UpdateSecurityCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
3583
1958
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3584
|
-
return
|
|
1959
|
+
return de_CommandError(output, context);
|
|
3585
1960
|
}
|
|
3586
1961
|
const contents = (0, import_smithy_client.map)({
|
|
3587
1962
|
$metadata: deserializeMetadata(output)
|
|
@@ -3594,46 +1969,9 @@ var de_UpdateSecurityCommand = /* @__PURE__ */ __name(async (output, context) =>
|
|
|
3594
1969
|
Object.assign(contents, doc);
|
|
3595
1970
|
return contents;
|
|
3596
1971
|
}, "de_UpdateSecurityCommand");
|
|
3597
|
-
var de_UpdateSecurityCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
3598
|
-
const parsedOutput = {
|
|
3599
|
-
...output,
|
|
3600
|
-
body: await parseErrorBody(output.body, context)
|
|
3601
|
-
};
|
|
3602
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3603
|
-
switch (errorCode) {
|
|
3604
|
-
case "BadRequestException":
|
|
3605
|
-
case "com.amazonaws.kafka#BadRequestException":
|
|
3606
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
3607
|
-
case "ForbiddenException":
|
|
3608
|
-
case "com.amazonaws.kafka#ForbiddenException":
|
|
3609
|
-
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
3610
|
-
case "InternalServerErrorException":
|
|
3611
|
-
case "com.amazonaws.kafka#InternalServerErrorException":
|
|
3612
|
-
throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
|
|
3613
|
-
case "NotFoundException":
|
|
3614
|
-
case "com.amazonaws.kafka#NotFoundException":
|
|
3615
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
3616
|
-
case "ServiceUnavailableException":
|
|
3617
|
-
case "com.amazonaws.kafka#ServiceUnavailableException":
|
|
3618
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
3619
|
-
case "TooManyRequestsException":
|
|
3620
|
-
case "com.amazonaws.kafka#TooManyRequestsException":
|
|
3621
|
-
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
3622
|
-
case "UnauthorizedException":
|
|
3623
|
-
case "com.amazonaws.kafka#UnauthorizedException":
|
|
3624
|
-
throw await de_UnauthorizedExceptionRes(parsedOutput, context);
|
|
3625
|
-
default:
|
|
3626
|
-
const parsedBody = parsedOutput.body;
|
|
3627
|
-
return throwDefaultError({
|
|
3628
|
-
output,
|
|
3629
|
-
parsedBody,
|
|
3630
|
-
errorCode
|
|
3631
|
-
});
|
|
3632
|
-
}
|
|
3633
|
-
}, "de_UpdateSecurityCommandError");
|
|
3634
1972
|
var de_UpdateStorageCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
3635
1973
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3636
|
-
return
|
|
1974
|
+
return de_CommandError(output, context);
|
|
3637
1975
|
}
|
|
3638
1976
|
const contents = (0, import_smithy_client.map)({
|
|
3639
1977
|
$metadata: deserializeMetadata(output)
|
|
@@ -3646,7 +1984,7 @@ var de_UpdateStorageCommand = /* @__PURE__ */ __name(async (output, context) =>
|
|
|
3646
1984
|
Object.assign(contents, doc);
|
|
3647
1985
|
return contents;
|
|
3648
1986
|
}, "de_UpdateStorageCommand");
|
|
3649
|
-
var
|
|
1987
|
+
var de_CommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
3650
1988
|
const parsedOutput = {
|
|
3651
1989
|
...output,
|
|
3652
1990
|
body: await parseErrorBody(output.body, context)
|
|
@@ -3674,6 +2012,9 @@ var de_UpdateStorageCommandError = /* @__PURE__ */ __name(async (output, context
|
|
|
3674
2012
|
case "UnauthorizedException":
|
|
3675
2013
|
case "com.amazonaws.kafka#UnauthorizedException":
|
|
3676
2014
|
throw await de_UnauthorizedExceptionRes(parsedOutput, context);
|
|
2015
|
+
case "ConflictException":
|
|
2016
|
+
case "com.amazonaws.kafka#ConflictException":
|
|
2017
|
+
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
3677
2018
|
default:
|
|
3678
2019
|
const parsedBody = parsedOutput.body;
|
|
3679
2020
|
return throwDefaultError({
|
|
@@ -3682,7 +2023,7 @@ var de_UpdateStorageCommandError = /* @__PURE__ */ __name(async (output, context
|
|
|
3682
2023
|
errorCode
|
|
3683
2024
|
});
|
|
3684
2025
|
}
|
|
3685
|
-
}, "
|
|
2026
|
+
}, "de_CommandError");
|
|
3686
2027
|
var throwDefaultError = (0, import_smithy_client.withBaseException)(KafkaServiceException);
|
|
3687
2028
|
var de_BadRequestExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
|
|
3688
2029
|
const contents = (0, import_smithy_client.map)({});
|