@aws-sdk/client-eks 3.51.0 → 3.54.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/CHANGELOG.md +30 -0
- package/dist-cjs/index.js +3 -0
- package/dist-cjs/models/EKSServiceException.js +11 -0
- package/dist-cjs/models/models_0.js +199 -3
- package/dist-cjs/protocols/Aws_restJson1.js +417 -1497
- package/dist-es/index.js +1 -0
- package/dist-es/models/EKSServiceException.js +12 -0
- package/dist-es/models/models_0.js +184 -1
- package/dist-es/protocols/Aws_restJson1.js +835 -1647
- package/dist-types/EKSClient.d.ts +2 -2
- package/dist-types/index.d.ts +1 -0
- package/dist-types/models/EKSServiceException.d.ts +10 -0
- package/dist-types/models/models_0.d.ts +94 -53
- package/dist-types/runtimeConfig.browser.d.ts +1 -1
- package/dist-types/runtimeConfig.d.ts +1 -1
- package/dist-types/runtimeConfig.native.d.ts +1 -1
- package/dist-types/ts3.4/EKSClient.d.ts +2 -2
- package/dist-types/ts3.4/index.d.ts +1 -0
- package/dist-types/ts3.4/models/EKSServiceException.d.ts +6 -0
- package/dist-types/ts3.4/models/models_0.d.ts +68 -53
- package/dist-types/ts3.4/runtimeConfig.browser.d.ts +1 -1
- package/dist-types/ts3.4/runtimeConfig.d.ts +1 -1
- package/dist-types/ts3.4/runtimeConfig.native.d.ts +1 -1
- package/package.json +34 -34
|
@@ -5,6 +5,8 @@ exports.deserializeAws_restJson1UpdateNodegroupVersionCommand = exports.deserial
|
|
|
5
5
|
const protocol_http_1 = require("@aws-sdk/protocol-http");
|
|
6
6
|
const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
7
7
|
const uuid_1 = require("uuid");
|
|
8
|
+
const EKSServiceException_1 = require("../models/EKSServiceException");
|
|
9
|
+
const models_0_1 = require("../models/models_0");
|
|
8
10
|
const serializeAws_restJson1AssociateEncryptionConfigCommand = async (input, context) => {
|
|
9
11
|
var _a;
|
|
10
12
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
@@ -1253,67 +1255,31 @@ const deserializeAws_restJson1AssociateEncryptionConfigCommandError = async (out
|
|
|
1253
1255
|
switch (errorCode) {
|
|
1254
1256
|
case "ClientException":
|
|
1255
1257
|
case "com.amazonaws.eks#ClientException":
|
|
1256
|
-
|
|
1257
|
-
...(await deserializeAws_restJson1ClientExceptionResponse(parsedOutput, context)),
|
|
1258
|
-
name: errorCode,
|
|
1259
|
-
$metadata: deserializeMetadata(output),
|
|
1260
|
-
};
|
|
1261
|
-
break;
|
|
1258
|
+
throw await deserializeAws_restJson1ClientExceptionResponse(parsedOutput, context);
|
|
1262
1259
|
case "InvalidParameterException":
|
|
1263
1260
|
case "com.amazonaws.eks#InvalidParameterException":
|
|
1264
|
-
|
|
1265
|
-
...(await deserializeAws_restJson1InvalidParameterExceptionResponse(parsedOutput, context)),
|
|
1266
|
-
name: errorCode,
|
|
1267
|
-
$metadata: deserializeMetadata(output),
|
|
1268
|
-
};
|
|
1269
|
-
break;
|
|
1261
|
+
throw await deserializeAws_restJson1InvalidParameterExceptionResponse(parsedOutput, context);
|
|
1270
1262
|
case "InvalidRequestException":
|
|
1271
1263
|
case "com.amazonaws.eks#InvalidRequestException":
|
|
1272
|
-
|
|
1273
|
-
...(await deserializeAws_restJson1InvalidRequestExceptionResponse(parsedOutput, context)),
|
|
1274
|
-
name: errorCode,
|
|
1275
|
-
$metadata: deserializeMetadata(output),
|
|
1276
|
-
};
|
|
1277
|
-
break;
|
|
1264
|
+
throw await deserializeAws_restJson1InvalidRequestExceptionResponse(parsedOutput, context);
|
|
1278
1265
|
case "ResourceInUseException":
|
|
1279
1266
|
case "com.amazonaws.eks#ResourceInUseException":
|
|
1280
|
-
|
|
1281
|
-
...(await deserializeAws_restJson1ResourceInUseExceptionResponse(parsedOutput, context)),
|
|
1282
|
-
name: errorCode,
|
|
1283
|
-
$metadata: deserializeMetadata(output),
|
|
1284
|
-
};
|
|
1285
|
-
break;
|
|
1267
|
+
throw await deserializeAws_restJson1ResourceInUseExceptionResponse(parsedOutput, context);
|
|
1286
1268
|
case "ResourceNotFoundException":
|
|
1287
1269
|
case "com.amazonaws.eks#ResourceNotFoundException":
|
|
1288
|
-
|
|
1289
|
-
...(await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)),
|
|
1290
|
-
name: errorCode,
|
|
1291
|
-
$metadata: deserializeMetadata(output),
|
|
1292
|
-
};
|
|
1293
|
-
break;
|
|
1270
|
+
throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
1294
1271
|
case "ServerException":
|
|
1295
1272
|
case "com.amazonaws.eks#ServerException":
|
|
1296
|
-
|
|
1297
|
-
...(await deserializeAws_restJson1ServerExceptionResponse(parsedOutput, context)),
|
|
1298
|
-
name: errorCode,
|
|
1299
|
-
$metadata: deserializeMetadata(output),
|
|
1300
|
-
};
|
|
1301
|
-
break;
|
|
1273
|
+
throw await deserializeAws_restJson1ServerExceptionResponse(parsedOutput, context);
|
|
1302
1274
|
default:
|
|
1303
1275
|
const parsedBody = parsedOutput.body;
|
|
1304
|
-
|
|
1305
|
-
|
|
1306
|
-
...parsedBody,
|
|
1307
|
-
name: `${errorCode}`,
|
|
1308
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
1276
|
+
response = new EKSServiceException_1.EKSServiceException({
|
|
1277
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1309
1278
|
$fault: "client",
|
|
1310
1279
|
$metadata: deserializeMetadata(output),
|
|
1311
|
-
};
|
|
1280
|
+
});
|
|
1281
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
1312
1282
|
}
|
|
1313
|
-
const message = response.message || response.Message || errorCode;
|
|
1314
|
-
response.message = message;
|
|
1315
|
-
delete response.Message;
|
|
1316
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
1317
1283
|
};
|
|
1318
1284
|
const deserializeAws_restJson1AssociateIdentityProviderConfigCommand = async (output, context) => {
|
|
1319
1285
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
@@ -1345,67 +1311,31 @@ const deserializeAws_restJson1AssociateIdentityProviderConfigCommandError = asyn
|
|
|
1345
1311
|
switch (errorCode) {
|
|
1346
1312
|
case "ClientException":
|
|
1347
1313
|
case "com.amazonaws.eks#ClientException":
|
|
1348
|
-
|
|
1349
|
-
...(await deserializeAws_restJson1ClientExceptionResponse(parsedOutput, context)),
|
|
1350
|
-
name: errorCode,
|
|
1351
|
-
$metadata: deserializeMetadata(output),
|
|
1352
|
-
};
|
|
1353
|
-
break;
|
|
1314
|
+
throw await deserializeAws_restJson1ClientExceptionResponse(parsedOutput, context);
|
|
1354
1315
|
case "InvalidParameterException":
|
|
1355
1316
|
case "com.amazonaws.eks#InvalidParameterException":
|
|
1356
|
-
|
|
1357
|
-
...(await deserializeAws_restJson1InvalidParameterExceptionResponse(parsedOutput, context)),
|
|
1358
|
-
name: errorCode,
|
|
1359
|
-
$metadata: deserializeMetadata(output),
|
|
1360
|
-
};
|
|
1361
|
-
break;
|
|
1317
|
+
throw await deserializeAws_restJson1InvalidParameterExceptionResponse(parsedOutput, context);
|
|
1362
1318
|
case "InvalidRequestException":
|
|
1363
1319
|
case "com.amazonaws.eks#InvalidRequestException":
|
|
1364
|
-
|
|
1365
|
-
...(await deserializeAws_restJson1InvalidRequestExceptionResponse(parsedOutput, context)),
|
|
1366
|
-
name: errorCode,
|
|
1367
|
-
$metadata: deserializeMetadata(output),
|
|
1368
|
-
};
|
|
1369
|
-
break;
|
|
1320
|
+
throw await deserializeAws_restJson1InvalidRequestExceptionResponse(parsedOutput, context);
|
|
1370
1321
|
case "ResourceInUseException":
|
|
1371
1322
|
case "com.amazonaws.eks#ResourceInUseException":
|
|
1372
|
-
|
|
1373
|
-
...(await deserializeAws_restJson1ResourceInUseExceptionResponse(parsedOutput, context)),
|
|
1374
|
-
name: errorCode,
|
|
1375
|
-
$metadata: deserializeMetadata(output),
|
|
1376
|
-
};
|
|
1377
|
-
break;
|
|
1323
|
+
throw await deserializeAws_restJson1ResourceInUseExceptionResponse(parsedOutput, context);
|
|
1378
1324
|
case "ResourceNotFoundException":
|
|
1379
1325
|
case "com.amazonaws.eks#ResourceNotFoundException":
|
|
1380
|
-
|
|
1381
|
-
...(await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)),
|
|
1382
|
-
name: errorCode,
|
|
1383
|
-
$metadata: deserializeMetadata(output),
|
|
1384
|
-
};
|
|
1385
|
-
break;
|
|
1326
|
+
throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
1386
1327
|
case "ServerException":
|
|
1387
1328
|
case "com.amazonaws.eks#ServerException":
|
|
1388
|
-
|
|
1389
|
-
...(await deserializeAws_restJson1ServerExceptionResponse(parsedOutput, context)),
|
|
1390
|
-
name: errorCode,
|
|
1391
|
-
$metadata: deserializeMetadata(output),
|
|
1392
|
-
};
|
|
1393
|
-
break;
|
|
1329
|
+
throw await deserializeAws_restJson1ServerExceptionResponse(parsedOutput, context);
|
|
1394
1330
|
default:
|
|
1395
1331
|
const parsedBody = parsedOutput.body;
|
|
1396
|
-
|
|
1397
|
-
|
|
1398
|
-
...parsedBody,
|
|
1399
|
-
name: `${errorCode}`,
|
|
1400
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
1332
|
+
response = new EKSServiceException_1.EKSServiceException({
|
|
1333
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1401
1334
|
$fault: "client",
|
|
1402
1335
|
$metadata: deserializeMetadata(output),
|
|
1403
|
-
};
|
|
1336
|
+
});
|
|
1337
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
1404
1338
|
}
|
|
1405
|
-
const message = response.message || response.Message || errorCode;
|
|
1406
|
-
response.message = message;
|
|
1407
|
-
delete response.Message;
|
|
1408
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
1409
1339
|
};
|
|
1410
1340
|
const deserializeAws_restJson1CreateAddonCommand = async (output, context) => {
|
|
1411
1341
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
@@ -1433,67 +1363,31 @@ const deserializeAws_restJson1CreateAddonCommandError = async (output, context)
|
|
|
1433
1363
|
switch (errorCode) {
|
|
1434
1364
|
case "ClientException":
|
|
1435
1365
|
case "com.amazonaws.eks#ClientException":
|
|
1436
|
-
|
|
1437
|
-
...(await deserializeAws_restJson1ClientExceptionResponse(parsedOutput, context)),
|
|
1438
|
-
name: errorCode,
|
|
1439
|
-
$metadata: deserializeMetadata(output),
|
|
1440
|
-
};
|
|
1441
|
-
break;
|
|
1366
|
+
throw await deserializeAws_restJson1ClientExceptionResponse(parsedOutput, context);
|
|
1442
1367
|
case "InvalidParameterException":
|
|
1443
1368
|
case "com.amazonaws.eks#InvalidParameterException":
|
|
1444
|
-
|
|
1445
|
-
...(await deserializeAws_restJson1InvalidParameterExceptionResponse(parsedOutput, context)),
|
|
1446
|
-
name: errorCode,
|
|
1447
|
-
$metadata: deserializeMetadata(output),
|
|
1448
|
-
};
|
|
1449
|
-
break;
|
|
1369
|
+
throw await deserializeAws_restJson1InvalidParameterExceptionResponse(parsedOutput, context);
|
|
1450
1370
|
case "InvalidRequestException":
|
|
1451
1371
|
case "com.amazonaws.eks#InvalidRequestException":
|
|
1452
|
-
|
|
1453
|
-
...(await deserializeAws_restJson1InvalidRequestExceptionResponse(parsedOutput, context)),
|
|
1454
|
-
name: errorCode,
|
|
1455
|
-
$metadata: deserializeMetadata(output),
|
|
1456
|
-
};
|
|
1457
|
-
break;
|
|
1372
|
+
throw await deserializeAws_restJson1InvalidRequestExceptionResponse(parsedOutput, context);
|
|
1458
1373
|
case "ResourceInUseException":
|
|
1459
1374
|
case "com.amazonaws.eks#ResourceInUseException":
|
|
1460
|
-
|
|
1461
|
-
...(await deserializeAws_restJson1ResourceInUseExceptionResponse(parsedOutput, context)),
|
|
1462
|
-
name: errorCode,
|
|
1463
|
-
$metadata: deserializeMetadata(output),
|
|
1464
|
-
};
|
|
1465
|
-
break;
|
|
1375
|
+
throw await deserializeAws_restJson1ResourceInUseExceptionResponse(parsedOutput, context);
|
|
1466
1376
|
case "ResourceNotFoundException":
|
|
1467
1377
|
case "com.amazonaws.eks#ResourceNotFoundException":
|
|
1468
|
-
|
|
1469
|
-
...(await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)),
|
|
1470
|
-
name: errorCode,
|
|
1471
|
-
$metadata: deserializeMetadata(output),
|
|
1472
|
-
};
|
|
1473
|
-
break;
|
|
1378
|
+
throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
1474
1379
|
case "ServerException":
|
|
1475
1380
|
case "com.amazonaws.eks#ServerException":
|
|
1476
|
-
|
|
1477
|
-
...(await deserializeAws_restJson1ServerExceptionResponse(parsedOutput, context)),
|
|
1478
|
-
name: errorCode,
|
|
1479
|
-
$metadata: deserializeMetadata(output),
|
|
1480
|
-
};
|
|
1481
|
-
break;
|
|
1381
|
+
throw await deserializeAws_restJson1ServerExceptionResponse(parsedOutput, context);
|
|
1482
1382
|
default:
|
|
1483
1383
|
const parsedBody = parsedOutput.body;
|
|
1484
|
-
|
|
1485
|
-
|
|
1486
|
-
...parsedBody,
|
|
1487
|
-
name: `${errorCode}`,
|
|
1488
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
1384
|
+
response = new EKSServiceException_1.EKSServiceException({
|
|
1385
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1489
1386
|
$fault: "client",
|
|
1490
1387
|
$metadata: deserializeMetadata(output),
|
|
1491
|
-
};
|
|
1388
|
+
});
|
|
1389
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
1492
1390
|
}
|
|
1493
|
-
const message = response.message || response.Message || errorCode;
|
|
1494
|
-
response.message = message;
|
|
1495
|
-
delete response.Message;
|
|
1496
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
1497
1391
|
};
|
|
1498
1392
|
const deserializeAws_restJson1CreateClusterCommand = async (output, context) => {
|
|
1499
1393
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
@@ -1521,75 +1415,34 @@ const deserializeAws_restJson1CreateClusterCommandError = async (output, context
|
|
|
1521
1415
|
switch (errorCode) {
|
|
1522
1416
|
case "ClientException":
|
|
1523
1417
|
case "com.amazonaws.eks#ClientException":
|
|
1524
|
-
|
|
1525
|
-
...(await deserializeAws_restJson1ClientExceptionResponse(parsedOutput, context)),
|
|
1526
|
-
name: errorCode,
|
|
1527
|
-
$metadata: deserializeMetadata(output),
|
|
1528
|
-
};
|
|
1529
|
-
break;
|
|
1418
|
+
throw await deserializeAws_restJson1ClientExceptionResponse(parsedOutput, context);
|
|
1530
1419
|
case "InvalidParameterException":
|
|
1531
1420
|
case "com.amazonaws.eks#InvalidParameterException":
|
|
1532
|
-
|
|
1533
|
-
...(await deserializeAws_restJson1InvalidParameterExceptionResponse(parsedOutput, context)),
|
|
1534
|
-
name: errorCode,
|
|
1535
|
-
$metadata: deserializeMetadata(output),
|
|
1536
|
-
};
|
|
1537
|
-
break;
|
|
1421
|
+
throw await deserializeAws_restJson1InvalidParameterExceptionResponse(parsedOutput, context);
|
|
1538
1422
|
case "ResourceInUseException":
|
|
1539
1423
|
case "com.amazonaws.eks#ResourceInUseException":
|
|
1540
|
-
|
|
1541
|
-
...(await deserializeAws_restJson1ResourceInUseExceptionResponse(parsedOutput, context)),
|
|
1542
|
-
name: errorCode,
|
|
1543
|
-
$metadata: deserializeMetadata(output),
|
|
1544
|
-
};
|
|
1545
|
-
break;
|
|
1424
|
+
throw await deserializeAws_restJson1ResourceInUseExceptionResponse(parsedOutput, context);
|
|
1546
1425
|
case "ResourceLimitExceededException":
|
|
1547
1426
|
case "com.amazonaws.eks#ResourceLimitExceededException":
|
|
1548
|
-
|
|
1549
|
-
...(await deserializeAws_restJson1ResourceLimitExceededExceptionResponse(parsedOutput, context)),
|
|
1550
|
-
name: errorCode,
|
|
1551
|
-
$metadata: deserializeMetadata(output),
|
|
1552
|
-
};
|
|
1553
|
-
break;
|
|
1427
|
+
throw await deserializeAws_restJson1ResourceLimitExceededExceptionResponse(parsedOutput, context);
|
|
1554
1428
|
case "ServerException":
|
|
1555
1429
|
case "com.amazonaws.eks#ServerException":
|
|
1556
|
-
|
|
1557
|
-
...(await deserializeAws_restJson1ServerExceptionResponse(parsedOutput, context)),
|
|
1558
|
-
name: errorCode,
|
|
1559
|
-
$metadata: deserializeMetadata(output),
|
|
1560
|
-
};
|
|
1561
|
-
break;
|
|
1430
|
+
throw await deserializeAws_restJson1ServerExceptionResponse(parsedOutput, context);
|
|
1562
1431
|
case "ServiceUnavailableException":
|
|
1563
1432
|
case "com.amazonaws.eks#ServiceUnavailableException":
|
|
1564
|
-
|
|
1565
|
-
...(await deserializeAws_restJson1ServiceUnavailableExceptionResponse(parsedOutput, context)),
|
|
1566
|
-
name: errorCode,
|
|
1567
|
-
$metadata: deserializeMetadata(output),
|
|
1568
|
-
};
|
|
1569
|
-
break;
|
|
1433
|
+
throw await deserializeAws_restJson1ServiceUnavailableExceptionResponse(parsedOutput, context);
|
|
1570
1434
|
case "UnsupportedAvailabilityZoneException":
|
|
1571
1435
|
case "com.amazonaws.eks#UnsupportedAvailabilityZoneException":
|
|
1572
|
-
|
|
1573
|
-
...(await deserializeAws_restJson1UnsupportedAvailabilityZoneExceptionResponse(parsedOutput, context)),
|
|
1574
|
-
name: errorCode,
|
|
1575
|
-
$metadata: deserializeMetadata(output),
|
|
1576
|
-
};
|
|
1577
|
-
break;
|
|
1436
|
+
throw await deserializeAws_restJson1UnsupportedAvailabilityZoneExceptionResponse(parsedOutput, context);
|
|
1578
1437
|
default:
|
|
1579
1438
|
const parsedBody = parsedOutput.body;
|
|
1580
|
-
|
|
1581
|
-
|
|
1582
|
-
...parsedBody,
|
|
1583
|
-
name: `${errorCode}`,
|
|
1584
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
1439
|
+
response = new EKSServiceException_1.EKSServiceException({
|
|
1440
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1585
1441
|
$fault: "client",
|
|
1586
1442
|
$metadata: deserializeMetadata(output),
|
|
1587
|
-
};
|
|
1443
|
+
});
|
|
1444
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
1588
1445
|
}
|
|
1589
|
-
const message = response.message || response.Message || errorCode;
|
|
1590
|
-
response.message = message;
|
|
1591
|
-
delete response.Message;
|
|
1592
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
1593
1446
|
};
|
|
1594
1447
|
const deserializeAws_restJson1CreateFargateProfileCommand = async (output, context) => {
|
|
1595
1448
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
@@ -1617,67 +1470,31 @@ const deserializeAws_restJson1CreateFargateProfileCommandError = async (output,
|
|
|
1617
1470
|
switch (errorCode) {
|
|
1618
1471
|
case "ClientException":
|
|
1619
1472
|
case "com.amazonaws.eks#ClientException":
|
|
1620
|
-
|
|
1621
|
-
...(await deserializeAws_restJson1ClientExceptionResponse(parsedOutput, context)),
|
|
1622
|
-
name: errorCode,
|
|
1623
|
-
$metadata: deserializeMetadata(output),
|
|
1624
|
-
};
|
|
1625
|
-
break;
|
|
1473
|
+
throw await deserializeAws_restJson1ClientExceptionResponse(parsedOutput, context);
|
|
1626
1474
|
case "InvalidParameterException":
|
|
1627
1475
|
case "com.amazonaws.eks#InvalidParameterException":
|
|
1628
|
-
|
|
1629
|
-
...(await deserializeAws_restJson1InvalidParameterExceptionResponse(parsedOutput, context)),
|
|
1630
|
-
name: errorCode,
|
|
1631
|
-
$metadata: deserializeMetadata(output),
|
|
1632
|
-
};
|
|
1633
|
-
break;
|
|
1476
|
+
throw await deserializeAws_restJson1InvalidParameterExceptionResponse(parsedOutput, context);
|
|
1634
1477
|
case "InvalidRequestException":
|
|
1635
1478
|
case "com.amazonaws.eks#InvalidRequestException":
|
|
1636
|
-
|
|
1637
|
-
...(await deserializeAws_restJson1InvalidRequestExceptionResponse(parsedOutput, context)),
|
|
1638
|
-
name: errorCode,
|
|
1639
|
-
$metadata: deserializeMetadata(output),
|
|
1640
|
-
};
|
|
1641
|
-
break;
|
|
1479
|
+
throw await deserializeAws_restJson1InvalidRequestExceptionResponse(parsedOutput, context);
|
|
1642
1480
|
case "ResourceLimitExceededException":
|
|
1643
1481
|
case "com.amazonaws.eks#ResourceLimitExceededException":
|
|
1644
|
-
|
|
1645
|
-
...(await deserializeAws_restJson1ResourceLimitExceededExceptionResponse(parsedOutput, context)),
|
|
1646
|
-
name: errorCode,
|
|
1647
|
-
$metadata: deserializeMetadata(output),
|
|
1648
|
-
};
|
|
1649
|
-
break;
|
|
1482
|
+
throw await deserializeAws_restJson1ResourceLimitExceededExceptionResponse(parsedOutput, context);
|
|
1650
1483
|
case "ServerException":
|
|
1651
1484
|
case "com.amazonaws.eks#ServerException":
|
|
1652
|
-
|
|
1653
|
-
...(await deserializeAws_restJson1ServerExceptionResponse(parsedOutput, context)),
|
|
1654
|
-
name: errorCode,
|
|
1655
|
-
$metadata: deserializeMetadata(output),
|
|
1656
|
-
};
|
|
1657
|
-
break;
|
|
1485
|
+
throw await deserializeAws_restJson1ServerExceptionResponse(parsedOutput, context);
|
|
1658
1486
|
case "UnsupportedAvailabilityZoneException":
|
|
1659
1487
|
case "com.amazonaws.eks#UnsupportedAvailabilityZoneException":
|
|
1660
|
-
|
|
1661
|
-
...(await deserializeAws_restJson1UnsupportedAvailabilityZoneExceptionResponse(parsedOutput, context)),
|
|
1662
|
-
name: errorCode,
|
|
1663
|
-
$metadata: deserializeMetadata(output),
|
|
1664
|
-
};
|
|
1665
|
-
break;
|
|
1488
|
+
throw await deserializeAws_restJson1UnsupportedAvailabilityZoneExceptionResponse(parsedOutput, context);
|
|
1666
1489
|
default:
|
|
1667
1490
|
const parsedBody = parsedOutput.body;
|
|
1668
|
-
|
|
1669
|
-
|
|
1670
|
-
...parsedBody,
|
|
1671
|
-
name: `${errorCode}`,
|
|
1672
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
1491
|
+
response = new EKSServiceException_1.EKSServiceException({
|
|
1492
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1673
1493
|
$fault: "client",
|
|
1674
1494
|
$metadata: deserializeMetadata(output),
|
|
1675
|
-
};
|
|
1495
|
+
});
|
|
1496
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
1676
1497
|
}
|
|
1677
|
-
const message = response.message || response.Message || errorCode;
|
|
1678
|
-
response.message = message;
|
|
1679
|
-
delete response.Message;
|
|
1680
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
1681
1498
|
};
|
|
1682
1499
|
const deserializeAws_restJson1CreateNodegroupCommand = async (output, context) => {
|
|
1683
1500
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
@@ -1705,75 +1522,34 @@ const deserializeAws_restJson1CreateNodegroupCommandError = async (output, conte
|
|
|
1705
1522
|
switch (errorCode) {
|
|
1706
1523
|
case "ClientException":
|
|
1707
1524
|
case "com.amazonaws.eks#ClientException":
|
|
1708
|
-
|
|
1709
|
-
...(await deserializeAws_restJson1ClientExceptionResponse(parsedOutput, context)),
|
|
1710
|
-
name: errorCode,
|
|
1711
|
-
$metadata: deserializeMetadata(output),
|
|
1712
|
-
};
|
|
1713
|
-
break;
|
|
1525
|
+
throw await deserializeAws_restJson1ClientExceptionResponse(parsedOutput, context);
|
|
1714
1526
|
case "InvalidParameterException":
|
|
1715
1527
|
case "com.amazonaws.eks#InvalidParameterException":
|
|
1716
|
-
|
|
1717
|
-
...(await deserializeAws_restJson1InvalidParameterExceptionResponse(parsedOutput, context)),
|
|
1718
|
-
name: errorCode,
|
|
1719
|
-
$metadata: deserializeMetadata(output),
|
|
1720
|
-
};
|
|
1721
|
-
break;
|
|
1528
|
+
throw await deserializeAws_restJson1InvalidParameterExceptionResponse(parsedOutput, context);
|
|
1722
1529
|
case "InvalidRequestException":
|
|
1723
1530
|
case "com.amazonaws.eks#InvalidRequestException":
|
|
1724
|
-
|
|
1725
|
-
...(await deserializeAws_restJson1InvalidRequestExceptionResponse(parsedOutput, context)),
|
|
1726
|
-
name: errorCode,
|
|
1727
|
-
$metadata: deserializeMetadata(output),
|
|
1728
|
-
};
|
|
1729
|
-
break;
|
|
1531
|
+
throw await deserializeAws_restJson1InvalidRequestExceptionResponse(parsedOutput, context);
|
|
1730
1532
|
case "ResourceInUseException":
|
|
1731
1533
|
case "com.amazonaws.eks#ResourceInUseException":
|
|
1732
|
-
|
|
1733
|
-
...(await deserializeAws_restJson1ResourceInUseExceptionResponse(parsedOutput, context)),
|
|
1734
|
-
name: errorCode,
|
|
1735
|
-
$metadata: deserializeMetadata(output),
|
|
1736
|
-
};
|
|
1737
|
-
break;
|
|
1534
|
+
throw await deserializeAws_restJson1ResourceInUseExceptionResponse(parsedOutput, context);
|
|
1738
1535
|
case "ResourceLimitExceededException":
|
|
1739
1536
|
case "com.amazonaws.eks#ResourceLimitExceededException":
|
|
1740
|
-
|
|
1741
|
-
...(await deserializeAws_restJson1ResourceLimitExceededExceptionResponse(parsedOutput, context)),
|
|
1742
|
-
name: errorCode,
|
|
1743
|
-
$metadata: deserializeMetadata(output),
|
|
1744
|
-
};
|
|
1745
|
-
break;
|
|
1537
|
+
throw await deserializeAws_restJson1ResourceLimitExceededExceptionResponse(parsedOutput, context);
|
|
1746
1538
|
case "ServerException":
|
|
1747
1539
|
case "com.amazonaws.eks#ServerException":
|
|
1748
|
-
|
|
1749
|
-
...(await deserializeAws_restJson1ServerExceptionResponse(parsedOutput, context)),
|
|
1750
|
-
name: errorCode,
|
|
1751
|
-
$metadata: deserializeMetadata(output),
|
|
1752
|
-
};
|
|
1753
|
-
break;
|
|
1540
|
+
throw await deserializeAws_restJson1ServerExceptionResponse(parsedOutput, context);
|
|
1754
1541
|
case "ServiceUnavailableException":
|
|
1755
1542
|
case "com.amazonaws.eks#ServiceUnavailableException":
|
|
1756
|
-
|
|
1757
|
-
...(await deserializeAws_restJson1ServiceUnavailableExceptionResponse(parsedOutput, context)),
|
|
1758
|
-
name: errorCode,
|
|
1759
|
-
$metadata: deserializeMetadata(output),
|
|
1760
|
-
};
|
|
1761
|
-
break;
|
|
1543
|
+
throw await deserializeAws_restJson1ServiceUnavailableExceptionResponse(parsedOutput, context);
|
|
1762
1544
|
default:
|
|
1763
1545
|
const parsedBody = parsedOutput.body;
|
|
1764
|
-
|
|
1765
|
-
|
|
1766
|
-
...parsedBody,
|
|
1767
|
-
name: `${errorCode}`,
|
|
1768
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
1546
|
+
response = new EKSServiceException_1.EKSServiceException({
|
|
1547
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1769
1548
|
$fault: "client",
|
|
1770
1549
|
$metadata: deserializeMetadata(output),
|
|
1771
|
-
};
|
|
1550
|
+
});
|
|
1551
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
1772
1552
|
}
|
|
1773
|
-
const message = response.message || response.Message || errorCode;
|
|
1774
|
-
response.message = message;
|
|
1775
|
-
delete response.Message;
|
|
1776
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
1777
1553
|
};
|
|
1778
1554
|
const deserializeAws_restJson1DeleteAddonCommand = async (output, context) => {
|
|
1779
1555
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
@@ -1801,59 +1577,28 @@ const deserializeAws_restJson1DeleteAddonCommandError = async (output, context)
|
|
|
1801
1577
|
switch (errorCode) {
|
|
1802
1578
|
case "ClientException":
|
|
1803
1579
|
case "com.amazonaws.eks#ClientException":
|
|
1804
|
-
|
|
1805
|
-
...(await deserializeAws_restJson1ClientExceptionResponse(parsedOutput, context)),
|
|
1806
|
-
name: errorCode,
|
|
1807
|
-
$metadata: deserializeMetadata(output),
|
|
1808
|
-
};
|
|
1809
|
-
break;
|
|
1580
|
+
throw await deserializeAws_restJson1ClientExceptionResponse(parsedOutput, context);
|
|
1810
1581
|
case "InvalidParameterException":
|
|
1811
1582
|
case "com.amazonaws.eks#InvalidParameterException":
|
|
1812
|
-
|
|
1813
|
-
...(await deserializeAws_restJson1InvalidParameterExceptionResponse(parsedOutput, context)),
|
|
1814
|
-
name: errorCode,
|
|
1815
|
-
$metadata: deserializeMetadata(output),
|
|
1816
|
-
};
|
|
1817
|
-
break;
|
|
1583
|
+
throw await deserializeAws_restJson1InvalidParameterExceptionResponse(parsedOutput, context);
|
|
1818
1584
|
case "InvalidRequestException":
|
|
1819
1585
|
case "com.amazonaws.eks#InvalidRequestException":
|
|
1820
|
-
|
|
1821
|
-
...(await deserializeAws_restJson1InvalidRequestExceptionResponse(parsedOutput, context)),
|
|
1822
|
-
name: errorCode,
|
|
1823
|
-
$metadata: deserializeMetadata(output),
|
|
1824
|
-
};
|
|
1825
|
-
break;
|
|
1586
|
+
throw await deserializeAws_restJson1InvalidRequestExceptionResponse(parsedOutput, context);
|
|
1826
1587
|
case "ResourceNotFoundException":
|
|
1827
1588
|
case "com.amazonaws.eks#ResourceNotFoundException":
|
|
1828
|
-
|
|
1829
|
-
...(await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)),
|
|
1830
|
-
name: errorCode,
|
|
1831
|
-
$metadata: deserializeMetadata(output),
|
|
1832
|
-
};
|
|
1833
|
-
break;
|
|
1589
|
+
throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
1834
1590
|
case "ServerException":
|
|
1835
1591
|
case "com.amazonaws.eks#ServerException":
|
|
1836
|
-
|
|
1837
|
-
...(await deserializeAws_restJson1ServerExceptionResponse(parsedOutput, context)),
|
|
1838
|
-
name: errorCode,
|
|
1839
|
-
$metadata: deserializeMetadata(output),
|
|
1840
|
-
};
|
|
1841
|
-
break;
|
|
1592
|
+
throw await deserializeAws_restJson1ServerExceptionResponse(parsedOutput, context);
|
|
1842
1593
|
default:
|
|
1843
1594
|
const parsedBody = parsedOutput.body;
|
|
1844
|
-
|
|
1845
|
-
|
|
1846
|
-
...parsedBody,
|
|
1847
|
-
name: `${errorCode}`,
|
|
1848
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
1595
|
+
response = new EKSServiceException_1.EKSServiceException({
|
|
1596
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1849
1597
|
$fault: "client",
|
|
1850
1598
|
$metadata: deserializeMetadata(output),
|
|
1851
|
-
};
|
|
1599
|
+
});
|
|
1600
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
1852
1601
|
}
|
|
1853
|
-
const message = response.message || response.Message || errorCode;
|
|
1854
|
-
response.message = message;
|
|
1855
|
-
delete response.Message;
|
|
1856
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
1857
1602
|
};
|
|
1858
1603
|
const deserializeAws_restJson1DeleteClusterCommand = async (output, context) => {
|
|
1859
1604
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
@@ -1881,59 +1626,28 @@ const deserializeAws_restJson1DeleteClusterCommandError = async (output, context
|
|
|
1881
1626
|
switch (errorCode) {
|
|
1882
1627
|
case "ClientException":
|
|
1883
1628
|
case "com.amazonaws.eks#ClientException":
|
|
1884
|
-
|
|
1885
|
-
...(await deserializeAws_restJson1ClientExceptionResponse(parsedOutput, context)),
|
|
1886
|
-
name: errorCode,
|
|
1887
|
-
$metadata: deserializeMetadata(output),
|
|
1888
|
-
};
|
|
1889
|
-
break;
|
|
1629
|
+
throw await deserializeAws_restJson1ClientExceptionResponse(parsedOutput, context);
|
|
1890
1630
|
case "ResourceInUseException":
|
|
1891
1631
|
case "com.amazonaws.eks#ResourceInUseException":
|
|
1892
|
-
|
|
1893
|
-
...(await deserializeAws_restJson1ResourceInUseExceptionResponse(parsedOutput, context)),
|
|
1894
|
-
name: errorCode,
|
|
1895
|
-
$metadata: deserializeMetadata(output),
|
|
1896
|
-
};
|
|
1897
|
-
break;
|
|
1632
|
+
throw await deserializeAws_restJson1ResourceInUseExceptionResponse(parsedOutput, context);
|
|
1898
1633
|
case "ResourceNotFoundException":
|
|
1899
1634
|
case "com.amazonaws.eks#ResourceNotFoundException":
|
|
1900
|
-
|
|
1901
|
-
...(await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)),
|
|
1902
|
-
name: errorCode,
|
|
1903
|
-
$metadata: deserializeMetadata(output),
|
|
1904
|
-
};
|
|
1905
|
-
break;
|
|
1635
|
+
throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
1906
1636
|
case "ServerException":
|
|
1907
1637
|
case "com.amazonaws.eks#ServerException":
|
|
1908
|
-
|
|
1909
|
-
...(await deserializeAws_restJson1ServerExceptionResponse(parsedOutput, context)),
|
|
1910
|
-
name: errorCode,
|
|
1911
|
-
$metadata: deserializeMetadata(output),
|
|
1912
|
-
};
|
|
1913
|
-
break;
|
|
1638
|
+
throw await deserializeAws_restJson1ServerExceptionResponse(parsedOutput, context);
|
|
1914
1639
|
case "ServiceUnavailableException":
|
|
1915
1640
|
case "com.amazonaws.eks#ServiceUnavailableException":
|
|
1916
|
-
|
|
1917
|
-
...(await deserializeAws_restJson1ServiceUnavailableExceptionResponse(parsedOutput, context)),
|
|
1918
|
-
name: errorCode,
|
|
1919
|
-
$metadata: deserializeMetadata(output),
|
|
1920
|
-
};
|
|
1921
|
-
break;
|
|
1641
|
+
throw await deserializeAws_restJson1ServiceUnavailableExceptionResponse(parsedOutput, context);
|
|
1922
1642
|
default:
|
|
1923
1643
|
const parsedBody = parsedOutput.body;
|
|
1924
|
-
|
|
1925
|
-
|
|
1926
|
-
...parsedBody,
|
|
1927
|
-
name: `${errorCode}`,
|
|
1928
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
1644
|
+
response = new EKSServiceException_1.EKSServiceException({
|
|
1645
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1929
1646
|
$fault: "client",
|
|
1930
1647
|
$metadata: deserializeMetadata(output),
|
|
1931
|
-
};
|
|
1648
|
+
});
|
|
1649
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
1932
1650
|
}
|
|
1933
|
-
const message = response.message || response.Message || errorCode;
|
|
1934
|
-
response.message = message;
|
|
1935
|
-
delete response.Message;
|
|
1936
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
1937
1651
|
};
|
|
1938
1652
|
const deserializeAws_restJson1DeleteFargateProfileCommand = async (output, context) => {
|
|
1939
1653
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
@@ -1961,51 +1675,25 @@ const deserializeAws_restJson1DeleteFargateProfileCommandError = async (output,
|
|
|
1961
1675
|
switch (errorCode) {
|
|
1962
1676
|
case "ClientException":
|
|
1963
1677
|
case "com.amazonaws.eks#ClientException":
|
|
1964
|
-
|
|
1965
|
-
...(await deserializeAws_restJson1ClientExceptionResponse(parsedOutput, context)),
|
|
1966
|
-
name: errorCode,
|
|
1967
|
-
$metadata: deserializeMetadata(output),
|
|
1968
|
-
};
|
|
1969
|
-
break;
|
|
1678
|
+
throw await deserializeAws_restJson1ClientExceptionResponse(parsedOutput, context);
|
|
1970
1679
|
case "InvalidParameterException":
|
|
1971
1680
|
case "com.amazonaws.eks#InvalidParameterException":
|
|
1972
|
-
|
|
1973
|
-
...(await deserializeAws_restJson1InvalidParameterExceptionResponse(parsedOutput, context)),
|
|
1974
|
-
name: errorCode,
|
|
1975
|
-
$metadata: deserializeMetadata(output),
|
|
1976
|
-
};
|
|
1977
|
-
break;
|
|
1681
|
+
throw await deserializeAws_restJson1InvalidParameterExceptionResponse(parsedOutput, context);
|
|
1978
1682
|
case "ResourceNotFoundException":
|
|
1979
1683
|
case "com.amazonaws.eks#ResourceNotFoundException":
|
|
1980
|
-
|
|
1981
|
-
...(await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)),
|
|
1982
|
-
name: errorCode,
|
|
1983
|
-
$metadata: deserializeMetadata(output),
|
|
1984
|
-
};
|
|
1985
|
-
break;
|
|
1684
|
+
throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
1986
1685
|
case "ServerException":
|
|
1987
1686
|
case "com.amazonaws.eks#ServerException":
|
|
1988
|
-
|
|
1989
|
-
...(await deserializeAws_restJson1ServerExceptionResponse(parsedOutput, context)),
|
|
1990
|
-
name: errorCode,
|
|
1991
|
-
$metadata: deserializeMetadata(output),
|
|
1992
|
-
};
|
|
1993
|
-
break;
|
|
1687
|
+
throw await deserializeAws_restJson1ServerExceptionResponse(parsedOutput, context);
|
|
1994
1688
|
default:
|
|
1995
1689
|
const parsedBody = parsedOutput.body;
|
|
1996
|
-
|
|
1997
|
-
|
|
1998
|
-
...parsedBody,
|
|
1999
|
-
name: `${errorCode}`,
|
|
2000
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
1690
|
+
response = new EKSServiceException_1.EKSServiceException({
|
|
1691
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2001
1692
|
$fault: "client",
|
|
2002
1693
|
$metadata: deserializeMetadata(output),
|
|
2003
|
-
};
|
|
1694
|
+
});
|
|
1695
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
2004
1696
|
}
|
|
2005
|
-
const message = response.message || response.Message || errorCode;
|
|
2006
|
-
response.message = message;
|
|
2007
|
-
delete response.Message;
|
|
2008
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
2009
1697
|
};
|
|
2010
1698
|
const deserializeAws_restJson1DeleteNodegroupCommand = async (output, context) => {
|
|
2011
1699
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
@@ -2033,67 +1721,31 @@ const deserializeAws_restJson1DeleteNodegroupCommandError = async (output, conte
|
|
|
2033
1721
|
switch (errorCode) {
|
|
2034
1722
|
case "ClientException":
|
|
2035
1723
|
case "com.amazonaws.eks#ClientException":
|
|
2036
|
-
|
|
2037
|
-
...(await deserializeAws_restJson1ClientExceptionResponse(parsedOutput, context)),
|
|
2038
|
-
name: errorCode,
|
|
2039
|
-
$metadata: deserializeMetadata(output),
|
|
2040
|
-
};
|
|
2041
|
-
break;
|
|
1724
|
+
throw await deserializeAws_restJson1ClientExceptionResponse(parsedOutput, context);
|
|
2042
1725
|
case "InvalidParameterException":
|
|
2043
1726
|
case "com.amazonaws.eks#InvalidParameterException":
|
|
2044
|
-
|
|
2045
|
-
...(await deserializeAws_restJson1InvalidParameterExceptionResponse(parsedOutput, context)),
|
|
2046
|
-
name: errorCode,
|
|
2047
|
-
$metadata: deserializeMetadata(output),
|
|
2048
|
-
};
|
|
2049
|
-
break;
|
|
1727
|
+
throw await deserializeAws_restJson1InvalidParameterExceptionResponse(parsedOutput, context);
|
|
2050
1728
|
case "ResourceInUseException":
|
|
2051
1729
|
case "com.amazonaws.eks#ResourceInUseException":
|
|
2052
|
-
|
|
2053
|
-
...(await deserializeAws_restJson1ResourceInUseExceptionResponse(parsedOutput, context)),
|
|
2054
|
-
name: errorCode,
|
|
2055
|
-
$metadata: deserializeMetadata(output),
|
|
2056
|
-
};
|
|
2057
|
-
break;
|
|
1730
|
+
throw await deserializeAws_restJson1ResourceInUseExceptionResponse(parsedOutput, context);
|
|
2058
1731
|
case "ResourceNotFoundException":
|
|
2059
1732
|
case "com.amazonaws.eks#ResourceNotFoundException":
|
|
2060
|
-
|
|
2061
|
-
...(await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)),
|
|
2062
|
-
name: errorCode,
|
|
2063
|
-
$metadata: deserializeMetadata(output),
|
|
2064
|
-
};
|
|
2065
|
-
break;
|
|
1733
|
+
throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
2066
1734
|
case "ServerException":
|
|
2067
1735
|
case "com.amazonaws.eks#ServerException":
|
|
2068
|
-
|
|
2069
|
-
...(await deserializeAws_restJson1ServerExceptionResponse(parsedOutput, context)),
|
|
2070
|
-
name: errorCode,
|
|
2071
|
-
$metadata: deserializeMetadata(output),
|
|
2072
|
-
};
|
|
2073
|
-
break;
|
|
1736
|
+
throw await deserializeAws_restJson1ServerExceptionResponse(parsedOutput, context);
|
|
2074
1737
|
case "ServiceUnavailableException":
|
|
2075
1738
|
case "com.amazonaws.eks#ServiceUnavailableException":
|
|
2076
|
-
|
|
2077
|
-
...(await deserializeAws_restJson1ServiceUnavailableExceptionResponse(parsedOutput, context)),
|
|
2078
|
-
name: errorCode,
|
|
2079
|
-
$metadata: deserializeMetadata(output),
|
|
2080
|
-
};
|
|
2081
|
-
break;
|
|
1739
|
+
throw await deserializeAws_restJson1ServiceUnavailableExceptionResponse(parsedOutput, context);
|
|
2082
1740
|
default:
|
|
2083
1741
|
const parsedBody = parsedOutput.body;
|
|
2084
|
-
|
|
2085
|
-
|
|
2086
|
-
...parsedBody,
|
|
2087
|
-
name: `${errorCode}`,
|
|
2088
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
1742
|
+
response = new EKSServiceException_1.EKSServiceException({
|
|
1743
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2089
1744
|
$fault: "client",
|
|
2090
1745
|
$metadata: deserializeMetadata(output),
|
|
2091
|
-
};
|
|
1746
|
+
});
|
|
1747
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
2092
1748
|
}
|
|
2093
|
-
const message = response.message || response.Message || errorCode;
|
|
2094
|
-
response.message = message;
|
|
2095
|
-
delete response.Message;
|
|
2096
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
2097
1749
|
};
|
|
2098
1750
|
const deserializeAws_restJson1DeregisterClusterCommand = async (output, context) => {
|
|
2099
1751
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
@@ -2121,67 +1773,31 @@ const deserializeAws_restJson1DeregisterClusterCommandError = async (output, con
|
|
|
2121
1773
|
switch (errorCode) {
|
|
2122
1774
|
case "AccessDeniedException":
|
|
2123
1775
|
case "com.amazonaws.eks#AccessDeniedException":
|
|
2124
|
-
|
|
2125
|
-
...(await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context)),
|
|
2126
|
-
name: errorCode,
|
|
2127
|
-
$metadata: deserializeMetadata(output),
|
|
2128
|
-
};
|
|
2129
|
-
break;
|
|
1776
|
+
throw await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context);
|
|
2130
1777
|
case "ClientException":
|
|
2131
1778
|
case "com.amazonaws.eks#ClientException":
|
|
2132
|
-
|
|
2133
|
-
...(await deserializeAws_restJson1ClientExceptionResponse(parsedOutput, context)),
|
|
2134
|
-
name: errorCode,
|
|
2135
|
-
$metadata: deserializeMetadata(output),
|
|
2136
|
-
};
|
|
2137
|
-
break;
|
|
1779
|
+
throw await deserializeAws_restJson1ClientExceptionResponse(parsedOutput, context);
|
|
2138
1780
|
case "ResourceInUseException":
|
|
2139
1781
|
case "com.amazonaws.eks#ResourceInUseException":
|
|
2140
|
-
|
|
2141
|
-
...(await deserializeAws_restJson1ResourceInUseExceptionResponse(parsedOutput, context)),
|
|
2142
|
-
name: errorCode,
|
|
2143
|
-
$metadata: deserializeMetadata(output),
|
|
2144
|
-
};
|
|
2145
|
-
break;
|
|
1782
|
+
throw await deserializeAws_restJson1ResourceInUseExceptionResponse(parsedOutput, context);
|
|
2146
1783
|
case "ResourceNotFoundException":
|
|
2147
1784
|
case "com.amazonaws.eks#ResourceNotFoundException":
|
|
2148
|
-
|
|
2149
|
-
...(await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)),
|
|
2150
|
-
name: errorCode,
|
|
2151
|
-
$metadata: deserializeMetadata(output),
|
|
2152
|
-
};
|
|
2153
|
-
break;
|
|
1785
|
+
throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
2154
1786
|
case "ServerException":
|
|
2155
1787
|
case "com.amazonaws.eks#ServerException":
|
|
2156
|
-
|
|
2157
|
-
...(await deserializeAws_restJson1ServerExceptionResponse(parsedOutput, context)),
|
|
2158
|
-
name: errorCode,
|
|
2159
|
-
$metadata: deserializeMetadata(output),
|
|
2160
|
-
};
|
|
2161
|
-
break;
|
|
1788
|
+
throw await deserializeAws_restJson1ServerExceptionResponse(parsedOutput, context);
|
|
2162
1789
|
case "ServiceUnavailableException":
|
|
2163
1790
|
case "com.amazonaws.eks#ServiceUnavailableException":
|
|
2164
|
-
|
|
2165
|
-
...(await deserializeAws_restJson1ServiceUnavailableExceptionResponse(parsedOutput, context)),
|
|
2166
|
-
name: errorCode,
|
|
2167
|
-
$metadata: deserializeMetadata(output),
|
|
2168
|
-
};
|
|
2169
|
-
break;
|
|
1791
|
+
throw await deserializeAws_restJson1ServiceUnavailableExceptionResponse(parsedOutput, context);
|
|
2170
1792
|
default:
|
|
2171
1793
|
const parsedBody = parsedOutput.body;
|
|
2172
|
-
|
|
2173
|
-
|
|
2174
|
-
...parsedBody,
|
|
2175
|
-
name: `${errorCode}`,
|
|
2176
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
1794
|
+
response = new EKSServiceException_1.EKSServiceException({
|
|
1795
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2177
1796
|
$fault: "client",
|
|
2178
1797
|
$metadata: deserializeMetadata(output),
|
|
2179
|
-
};
|
|
1798
|
+
});
|
|
1799
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
2180
1800
|
}
|
|
2181
|
-
const message = response.message || response.Message || errorCode;
|
|
2182
|
-
response.message = message;
|
|
2183
|
-
delete response.Message;
|
|
2184
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
2185
1801
|
};
|
|
2186
1802
|
const deserializeAws_restJson1DescribeAddonCommand = async (output, context) => {
|
|
2187
1803
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
@@ -2209,59 +1825,28 @@ const deserializeAws_restJson1DescribeAddonCommandError = async (output, context
|
|
|
2209
1825
|
switch (errorCode) {
|
|
2210
1826
|
case "ClientException":
|
|
2211
1827
|
case "com.amazonaws.eks#ClientException":
|
|
2212
|
-
|
|
2213
|
-
...(await deserializeAws_restJson1ClientExceptionResponse(parsedOutput, context)),
|
|
2214
|
-
name: errorCode,
|
|
2215
|
-
$metadata: deserializeMetadata(output),
|
|
2216
|
-
};
|
|
2217
|
-
break;
|
|
1828
|
+
throw await deserializeAws_restJson1ClientExceptionResponse(parsedOutput, context);
|
|
2218
1829
|
case "InvalidParameterException":
|
|
2219
1830
|
case "com.amazonaws.eks#InvalidParameterException":
|
|
2220
|
-
|
|
2221
|
-
...(await deserializeAws_restJson1InvalidParameterExceptionResponse(parsedOutput, context)),
|
|
2222
|
-
name: errorCode,
|
|
2223
|
-
$metadata: deserializeMetadata(output),
|
|
2224
|
-
};
|
|
2225
|
-
break;
|
|
1831
|
+
throw await deserializeAws_restJson1InvalidParameterExceptionResponse(parsedOutput, context);
|
|
2226
1832
|
case "InvalidRequestException":
|
|
2227
1833
|
case "com.amazonaws.eks#InvalidRequestException":
|
|
2228
|
-
|
|
2229
|
-
...(await deserializeAws_restJson1InvalidRequestExceptionResponse(parsedOutput, context)),
|
|
2230
|
-
name: errorCode,
|
|
2231
|
-
$metadata: deserializeMetadata(output),
|
|
2232
|
-
};
|
|
2233
|
-
break;
|
|
1834
|
+
throw await deserializeAws_restJson1InvalidRequestExceptionResponse(parsedOutput, context);
|
|
2234
1835
|
case "ResourceNotFoundException":
|
|
2235
1836
|
case "com.amazonaws.eks#ResourceNotFoundException":
|
|
2236
|
-
|
|
2237
|
-
...(await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)),
|
|
2238
|
-
name: errorCode,
|
|
2239
|
-
$metadata: deserializeMetadata(output),
|
|
2240
|
-
};
|
|
2241
|
-
break;
|
|
1837
|
+
throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
2242
1838
|
case "ServerException":
|
|
2243
1839
|
case "com.amazonaws.eks#ServerException":
|
|
2244
|
-
|
|
2245
|
-
...(await deserializeAws_restJson1ServerExceptionResponse(parsedOutput, context)),
|
|
2246
|
-
name: errorCode,
|
|
2247
|
-
$metadata: deserializeMetadata(output),
|
|
2248
|
-
};
|
|
2249
|
-
break;
|
|
1840
|
+
throw await deserializeAws_restJson1ServerExceptionResponse(parsedOutput, context);
|
|
2250
1841
|
default:
|
|
2251
1842
|
const parsedBody = parsedOutput.body;
|
|
2252
|
-
|
|
2253
|
-
|
|
2254
|
-
...parsedBody,
|
|
2255
|
-
name: `${errorCode}`,
|
|
2256
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
1843
|
+
response = new EKSServiceException_1.EKSServiceException({
|
|
1844
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2257
1845
|
$fault: "client",
|
|
2258
1846
|
$metadata: deserializeMetadata(output),
|
|
2259
|
-
};
|
|
1847
|
+
});
|
|
1848
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
2260
1849
|
}
|
|
2261
|
-
const message = response.message || response.Message || errorCode;
|
|
2262
|
-
response.message = message;
|
|
2263
|
-
delete response.Message;
|
|
2264
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
2265
1850
|
};
|
|
2266
1851
|
const deserializeAws_restJson1DescribeAddonVersionsCommand = async (output, context) => {
|
|
2267
1852
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
@@ -2293,43 +1878,22 @@ const deserializeAws_restJson1DescribeAddonVersionsCommandError = async (output,
|
|
|
2293
1878
|
switch (errorCode) {
|
|
2294
1879
|
case "InvalidParameterException":
|
|
2295
1880
|
case "com.amazonaws.eks#InvalidParameterException":
|
|
2296
|
-
|
|
2297
|
-
...(await deserializeAws_restJson1InvalidParameterExceptionResponse(parsedOutput, context)),
|
|
2298
|
-
name: errorCode,
|
|
2299
|
-
$metadata: deserializeMetadata(output),
|
|
2300
|
-
};
|
|
2301
|
-
break;
|
|
1881
|
+
throw await deserializeAws_restJson1InvalidParameterExceptionResponse(parsedOutput, context);
|
|
2302
1882
|
case "ResourceNotFoundException":
|
|
2303
1883
|
case "com.amazonaws.eks#ResourceNotFoundException":
|
|
2304
|
-
|
|
2305
|
-
...(await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)),
|
|
2306
|
-
name: errorCode,
|
|
2307
|
-
$metadata: deserializeMetadata(output),
|
|
2308
|
-
};
|
|
2309
|
-
break;
|
|
1884
|
+
throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
2310
1885
|
case "ServerException":
|
|
2311
1886
|
case "com.amazonaws.eks#ServerException":
|
|
2312
|
-
|
|
2313
|
-
...(await deserializeAws_restJson1ServerExceptionResponse(parsedOutput, context)),
|
|
2314
|
-
name: errorCode,
|
|
2315
|
-
$metadata: deserializeMetadata(output),
|
|
2316
|
-
};
|
|
2317
|
-
break;
|
|
1887
|
+
throw await deserializeAws_restJson1ServerExceptionResponse(parsedOutput, context);
|
|
2318
1888
|
default:
|
|
2319
1889
|
const parsedBody = parsedOutput.body;
|
|
2320
|
-
|
|
2321
|
-
|
|
2322
|
-
...parsedBody,
|
|
2323
|
-
name: `${errorCode}`,
|
|
2324
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
1890
|
+
response = new EKSServiceException_1.EKSServiceException({
|
|
1891
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2325
1892
|
$fault: "client",
|
|
2326
1893
|
$metadata: deserializeMetadata(output),
|
|
2327
|
-
};
|
|
1894
|
+
});
|
|
1895
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
2328
1896
|
}
|
|
2329
|
-
const message = response.message || response.Message || errorCode;
|
|
2330
|
-
response.message = message;
|
|
2331
|
-
delete response.Message;
|
|
2332
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
2333
1897
|
};
|
|
2334
1898
|
const deserializeAws_restJson1DescribeClusterCommand = async (output, context) => {
|
|
2335
1899
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
@@ -2357,51 +1921,25 @@ const deserializeAws_restJson1DescribeClusterCommandError = async (output, conte
|
|
|
2357
1921
|
switch (errorCode) {
|
|
2358
1922
|
case "ClientException":
|
|
2359
1923
|
case "com.amazonaws.eks#ClientException":
|
|
2360
|
-
|
|
2361
|
-
...(await deserializeAws_restJson1ClientExceptionResponse(parsedOutput, context)),
|
|
2362
|
-
name: errorCode,
|
|
2363
|
-
$metadata: deserializeMetadata(output),
|
|
2364
|
-
};
|
|
2365
|
-
break;
|
|
1924
|
+
throw await deserializeAws_restJson1ClientExceptionResponse(parsedOutput, context);
|
|
2366
1925
|
case "ResourceNotFoundException":
|
|
2367
1926
|
case "com.amazonaws.eks#ResourceNotFoundException":
|
|
2368
|
-
|
|
2369
|
-
...(await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)),
|
|
2370
|
-
name: errorCode,
|
|
2371
|
-
$metadata: deserializeMetadata(output),
|
|
2372
|
-
};
|
|
2373
|
-
break;
|
|
1927
|
+
throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
2374
1928
|
case "ServerException":
|
|
2375
1929
|
case "com.amazonaws.eks#ServerException":
|
|
2376
|
-
|
|
2377
|
-
...(await deserializeAws_restJson1ServerExceptionResponse(parsedOutput, context)),
|
|
2378
|
-
name: errorCode,
|
|
2379
|
-
$metadata: deserializeMetadata(output),
|
|
2380
|
-
};
|
|
2381
|
-
break;
|
|
1930
|
+
throw await deserializeAws_restJson1ServerExceptionResponse(parsedOutput, context);
|
|
2382
1931
|
case "ServiceUnavailableException":
|
|
2383
1932
|
case "com.amazonaws.eks#ServiceUnavailableException":
|
|
2384
|
-
|
|
2385
|
-
...(await deserializeAws_restJson1ServiceUnavailableExceptionResponse(parsedOutput, context)),
|
|
2386
|
-
name: errorCode,
|
|
2387
|
-
$metadata: deserializeMetadata(output),
|
|
2388
|
-
};
|
|
2389
|
-
break;
|
|
1933
|
+
throw await deserializeAws_restJson1ServiceUnavailableExceptionResponse(parsedOutput, context);
|
|
2390
1934
|
default:
|
|
2391
1935
|
const parsedBody = parsedOutput.body;
|
|
2392
|
-
|
|
2393
|
-
|
|
2394
|
-
...parsedBody,
|
|
2395
|
-
name: `${errorCode}`,
|
|
2396
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
1936
|
+
response = new EKSServiceException_1.EKSServiceException({
|
|
1937
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2397
1938
|
$fault: "client",
|
|
2398
1939
|
$metadata: deserializeMetadata(output),
|
|
2399
|
-
};
|
|
1940
|
+
});
|
|
1941
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
2400
1942
|
}
|
|
2401
|
-
const message = response.message || response.Message || errorCode;
|
|
2402
|
-
response.message = message;
|
|
2403
|
-
delete response.Message;
|
|
2404
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
2405
1943
|
};
|
|
2406
1944
|
const deserializeAws_restJson1DescribeFargateProfileCommand = async (output, context) => {
|
|
2407
1945
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
@@ -2429,51 +1967,25 @@ const deserializeAws_restJson1DescribeFargateProfileCommandError = async (output
|
|
|
2429
1967
|
switch (errorCode) {
|
|
2430
1968
|
case "ClientException":
|
|
2431
1969
|
case "com.amazonaws.eks#ClientException":
|
|
2432
|
-
|
|
2433
|
-
...(await deserializeAws_restJson1ClientExceptionResponse(parsedOutput, context)),
|
|
2434
|
-
name: errorCode,
|
|
2435
|
-
$metadata: deserializeMetadata(output),
|
|
2436
|
-
};
|
|
2437
|
-
break;
|
|
1970
|
+
throw await deserializeAws_restJson1ClientExceptionResponse(parsedOutput, context);
|
|
2438
1971
|
case "InvalidParameterException":
|
|
2439
1972
|
case "com.amazonaws.eks#InvalidParameterException":
|
|
2440
|
-
|
|
2441
|
-
...(await deserializeAws_restJson1InvalidParameterExceptionResponse(parsedOutput, context)),
|
|
2442
|
-
name: errorCode,
|
|
2443
|
-
$metadata: deserializeMetadata(output),
|
|
2444
|
-
};
|
|
2445
|
-
break;
|
|
1973
|
+
throw await deserializeAws_restJson1InvalidParameterExceptionResponse(parsedOutput, context);
|
|
2446
1974
|
case "ResourceNotFoundException":
|
|
2447
1975
|
case "com.amazonaws.eks#ResourceNotFoundException":
|
|
2448
|
-
|
|
2449
|
-
...(await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)),
|
|
2450
|
-
name: errorCode,
|
|
2451
|
-
$metadata: deserializeMetadata(output),
|
|
2452
|
-
};
|
|
2453
|
-
break;
|
|
1976
|
+
throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
2454
1977
|
case "ServerException":
|
|
2455
1978
|
case "com.amazonaws.eks#ServerException":
|
|
2456
|
-
|
|
2457
|
-
...(await deserializeAws_restJson1ServerExceptionResponse(parsedOutput, context)),
|
|
2458
|
-
name: errorCode,
|
|
2459
|
-
$metadata: deserializeMetadata(output),
|
|
2460
|
-
};
|
|
2461
|
-
break;
|
|
1979
|
+
throw await deserializeAws_restJson1ServerExceptionResponse(parsedOutput, context);
|
|
2462
1980
|
default:
|
|
2463
1981
|
const parsedBody = parsedOutput.body;
|
|
2464
|
-
|
|
2465
|
-
|
|
2466
|
-
...parsedBody,
|
|
2467
|
-
name: `${errorCode}`,
|
|
2468
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
1982
|
+
response = new EKSServiceException_1.EKSServiceException({
|
|
1983
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2469
1984
|
$fault: "client",
|
|
2470
1985
|
$metadata: deserializeMetadata(output),
|
|
2471
|
-
};
|
|
1986
|
+
});
|
|
1987
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
2472
1988
|
}
|
|
2473
|
-
const message = response.message || response.Message || errorCode;
|
|
2474
|
-
response.message = message;
|
|
2475
|
-
delete response.Message;
|
|
2476
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
2477
1989
|
};
|
|
2478
1990
|
const deserializeAws_restJson1DescribeIdentityProviderConfigCommand = async (output, context) => {
|
|
2479
1991
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
@@ -2501,59 +2013,28 @@ const deserializeAws_restJson1DescribeIdentityProviderConfigCommandError = async
|
|
|
2501
2013
|
switch (errorCode) {
|
|
2502
2014
|
case "ClientException":
|
|
2503
2015
|
case "com.amazonaws.eks#ClientException":
|
|
2504
|
-
|
|
2505
|
-
...(await deserializeAws_restJson1ClientExceptionResponse(parsedOutput, context)),
|
|
2506
|
-
name: errorCode,
|
|
2507
|
-
$metadata: deserializeMetadata(output),
|
|
2508
|
-
};
|
|
2509
|
-
break;
|
|
2016
|
+
throw await deserializeAws_restJson1ClientExceptionResponse(parsedOutput, context);
|
|
2510
2017
|
case "InvalidParameterException":
|
|
2511
2018
|
case "com.amazonaws.eks#InvalidParameterException":
|
|
2512
|
-
|
|
2513
|
-
...(await deserializeAws_restJson1InvalidParameterExceptionResponse(parsedOutput, context)),
|
|
2514
|
-
name: errorCode,
|
|
2515
|
-
$metadata: deserializeMetadata(output),
|
|
2516
|
-
};
|
|
2517
|
-
break;
|
|
2019
|
+
throw await deserializeAws_restJson1InvalidParameterExceptionResponse(parsedOutput, context);
|
|
2518
2020
|
case "ResourceNotFoundException":
|
|
2519
2021
|
case "com.amazonaws.eks#ResourceNotFoundException":
|
|
2520
|
-
|
|
2521
|
-
...(await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)),
|
|
2522
|
-
name: errorCode,
|
|
2523
|
-
$metadata: deserializeMetadata(output),
|
|
2524
|
-
};
|
|
2525
|
-
break;
|
|
2022
|
+
throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
2526
2023
|
case "ServerException":
|
|
2527
2024
|
case "com.amazonaws.eks#ServerException":
|
|
2528
|
-
|
|
2529
|
-
...(await deserializeAws_restJson1ServerExceptionResponse(parsedOutput, context)),
|
|
2530
|
-
name: errorCode,
|
|
2531
|
-
$metadata: deserializeMetadata(output),
|
|
2532
|
-
};
|
|
2533
|
-
break;
|
|
2025
|
+
throw await deserializeAws_restJson1ServerExceptionResponse(parsedOutput, context);
|
|
2534
2026
|
case "ServiceUnavailableException":
|
|
2535
2027
|
case "com.amazonaws.eks#ServiceUnavailableException":
|
|
2536
|
-
|
|
2537
|
-
...(await deserializeAws_restJson1ServiceUnavailableExceptionResponse(parsedOutput, context)),
|
|
2538
|
-
name: errorCode,
|
|
2539
|
-
$metadata: deserializeMetadata(output),
|
|
2540
|
-
};
|
|
2541
|
-
break;
|
|
2028
|
+
throw await deserializeAws_restJson1ServiceUnavailableExceptionResponse(parsedOutput, context);
|
|
2542
2029
|
default:
|
|
2543
2030
|
const parsedBody = parsedOutput.body;
|
|
2544
|
-
|
|
2545
|
-
|
|
2546
|
-
...parsedBody,
|
|
2547
|
-
name: `${errorCode}`,
|
|
2548
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
2031
|
+
response = new EKSServiceException_1.EKSServiceException({
|
|
2032
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2549
2033
|
$fault: "client",
|
|
2550
2034
|
$metadata: deserializeMetadata(output),
|
|
2551
|
-
};
|
|
2035
|
+
});
|
|
2036
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
2552
2037
|
}
|
|
2553
|
-
const message = response.message || response.Message || errorCode;
|
|
2554
|
-
response.message = message;
|
|
2555
|
-
delete response.Message;
|
|
2556
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
2557
2038
|
};
|
|
2558
2039
|
const deserializeAws_restJson1DescribeNodegroupCommand = async (output, context) => {
|
|
2559
2040
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
@@ -2581,59 +2062,28 @@ const deserializeAws_restJson1DescribeNodegroupCommandError = async (output, con
|
|
|
2581
2062
|
switch (errorCode) {
|
|
2582
2063
|
case "ClientException":
|
|
2583
2064
|
case "com.amazonaws.eks#ClientException":
|
|
2584
|
-
|
|
2585
|
-
...(await deserializeAws_restJson1ClientExceptionResponse(parsedOutput, context)),
|
|
2586
|
-
name: errorCode,
|
|
2587
|
-
$metadata: deserializeMetadata(output),
|
|
2588
|
-
};
|
|
2589
|
-
break;
|
|
2065
|
+
throw await deserializeAws_restJson1ClientExceptionResponse(parsedOutput, context);
|
|
2590
2066
|
case "InvalidParameterException":
|
|
2591
2067
|
case "com.amazonaws.eks#InvalidParameterException":
|
|
2592
|
-
|
|
2593
|
-
...(await deserializeAws_restJson1InvalidParameterExceptionResponse(parsedOutput, context)),
|
|
2594
|
-
name: errorCode,
|
|
2595
|
-
$metadata: deserializeMetadata(output),
|
|
2596
|
-
};
|
|
2597
|
-
break;
|
|
2068
|
+
throw await deserializeAws_restJson1InvalidParameterExceptionResponse(parsedOutput, context);
|
|
2598
2069
|
case "ResourceNotFoundException":
|
|
2599
2070
|
case "com.amazonaws.eks#ResourceNotFoundException":
|
|
2600
|
-
|
|
2601
|
-
...(await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)),
|
|
2602
|
-
name: errorCode,
|
|
2603
|
-
$metadata: deserializeMetadata(output),
|
|
2604
|
-
};
|
|
2605
|
-
break;
|
|
2071
|
+
throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
2606
2072
|
case "ServerException":
|
|
2607
2073
|
case "com.amazonaws.eks#ServerException":
|
|
2608
|
-
|
|
2609
|
-
...(await deserializeAws_restJson1ServerExceptionResponse(parsedOutput, context)),
|
|
2610
|
-
name: errorCode,
|
|
2611
|
-
$metadata: deserializeMetadata(output),
|
|
2612
|
-
};
|
|
2613
|
-
break;
|
|
2074
|
+
throw await deserializeAws_restJson1ServerExceptionResponse(parsedOutput, context);
|
|
2614
2075
|
case "ServiceUnavailableException":
|
|
2615
2076
|
case "com.amazonaws.eks#ServiceUnavailableException":
|
|
2616
|
-
|
|
2617
|
-
...(await deserializeAws_restJson1ServiceUnavailableExceptionResponse(parsedOutput, context)),
|
|
2618
|
-
name: errorCode,
|
|
2619
|
-
$metadata: deserializeMetadata(output),
|
|
2620
|
-
};
|
|
2621
|
-
break;
|
|
2077
|
+
throw await deserializeAws_restJson1ServiceUnavailableExceptionResponse(parsedOutput, context);
|
|
2622
2078
|
default:
|
|
2623
2079
|
const parsedBody = parsedOutput.body;
|
|
2624
|
-
|
|
2625
|
-
|
|
2626
|
-
...parsedBody,
|
|
2627
|
-
name: `${errorCode}`,
|
|
2628
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
2080
|
+
response = new EKSServiceException_1.EKSServiceException({
|
|
2081
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2629
2082
|
$fault: "client",
|
|
2630
2083
|
$metadata: deserializeMetadata(output),
|
|
2631
|
-
};
|
|
2084
|
+
});
|
|
2085
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
2632
2086
|
}
|
|
2633
|
-
const message = response.message || response.Message || errorCode;
|
|
2634
|
-
response.message = message;
|
|
2635
|
-
delete response.Message;
|
|
2636
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
2637
2087
|
};
|
|
2638
2088
|
const deserializeAws_restJson1DescribeUpdateCommand = async (output, context) => {
|
|
2639
2089
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
@@ -2661,51 +2111,25 @@ const deserializeAws_restJson1DescribeUpdateCommandError = async (output, contex
|
|
|
2661
2111
|
switch (errorCode) {
|
|
2662
2112
|
case "ClientException":
|
|
2663
2113
|
case "com.amazonaws.eks#ClientException":
|
|
2664
|
-
|
|
2665
|
-
...(await deserializeAws_restJson1ClientExceptionResponse(parsedOutput, context)),
|
|
2666
|
-
name: errorCode,
|
|
2667
|
-
$metadata: deserializeMetadata(output),
|
|
2668
|
-
};
|
|
2669
|
-
break;
|
|
2114
|
+
throw await deserializeAws_restJson1ClientExceptionResponse(parsedOutput, context);
|
|
2670
2115
|
case "InvalidParameterException":
|
|
2671
2116
|
case "com.amazonaws.eks#InvalidParameterException":
|
|
2672
|
-
|
|
2673
|
-
...(await deserializeAws_restJson1InvalidParameterExceptionResponse(parsedOutput, context)),
|
|
2674
|
-
name: errorCode,
|
|
2675
|
-
$metadata: deserializeMetadata(output),
|
|
2676
|
-
};
|
|
2677
|
-
break;
|
|
2117
|
+
throw await deserializeAws_restJson1InvalidParameterExceptionResponse(parsedOutput, context);
|
|
2678
2118
|
case "ResourceNotFoundException":
|
|
2679
2119
|
case "com.amazonaws.eks#ResourceNotFoundException":
|
|
2680
|
-
|
|
2681
|
-
...(await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)),
|
|
2682
|
-
name: errorCode,
|
|
2683
|
-
$metadata: deserializeMetadata(output),
|
|
2684
|
-
};
|
|
2685
|
-
break;
|
|
2120
|
+
throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
2686
2121
|
case "ServerException":
|
|
2687
2122
|
case "com.amazonaws.eks#ServerException":
|
|
2688
|
-
|
|
2689
|
-
...(await deserializeAws_restJson1ServerExceptionResponse(parsedOutput, context)),
|
|
2690
|
-
name: errorCode,
|
|
2691
|
-
$metadata: deserializeMetadata(output),
|
|
2692
|
-
};
|
|
2693
|
-
break;
|
|
2123
|
+
throw await deserializeAws_restJson1ServerExceptionResponse(parsedOutput, context);
|
|
2694
2124
|
default:
|
|
2695
2125
|
const parsedBody = parsedOutput.body;
|
|
2696
|
-
|
|
2697
|
-
|
|
2698
|
-
...parsedBody,
|
|
2699
|
-
name: `${errorCode}`,
|
|
2700
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
2126
|
+
response = new EKSServiceException_1.EKSServiceException({
|
|
2127
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2701
2128
|
$fault: "client",
|
|
2702
2129
|
$metadata: deserializeMetadata(output),
|
|
2703
|
-
};
|
|
2130
|
+
});
|
|
2131
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
2704
2132
|
}
|
|
2705
|
-
const message = response.message || response.Message || errorCode;
|
|
2706
|
-
response.message = message;
|
|
2707
|
-
delete response.Message;
|
|
2708
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
2709
2133
|
};
|
|
2710
2134
|
const deserializeAws_restJson1DisassociateIdentityProviderConfigCommand = async (output, context) => {
|
|
2711
2135
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
@@ -2733,67 +2157,31 @@ const deserializeAws_restJson1DisassociateIdentityProviderConfigCommandError = a
|
|
|
2733
2157
|
switch (errorCode) {
|
|
2734
2158
|
case "ClientException":
|
|
2735
2159
|
case "com.amazonaws.eks#ClientException":
|
|
2736
|
-
|
|
2737
|
-
...(await deserializeAws_restJson1ClientExceptionResponse(parsedOutput, context)),
|
|
2738
|
-
name: errorCode,
|
|
2739
|
-
$metadata: deserializeMetadata(output),
|
|
2740
|
-
};
|
|
2741
|
-
break;
|
|
2160
|
+
throw await deserializeAws_restJson1ClientExceptionResponse(parsedOutput, context);
|
|
2742
2161
|
case "InvalidParameterException":
|
|
2743
2162
|
case "com.amazonaws.eks#InvalidParameterException":
|
|
2744
|
-
|
|
2745
|
-
...(await deserializeAws_restJson1InvalidParameterExceptionResponse(parsedOutput, context)),
|
|
2746
|
-
name: errorCode,
|
|
2747
|
-
$metadata: deserializeMetadata(output),
|
|
2748
|
-
};
|
|
2749
|
-
break;
|
|
2163
|
+
throw await deserializeAws_restJson1InvalidParameterExceptionResponse(parsedOutput, context);
|
|
2750
2164
|
case "InvalidRequestException":
|
|
2751
2165
|
case "com.amazonaws.eks#InvalidRequestException":
|
|
2752
|
-
|
|
2753
|
-
...(await deserializeAws_restJson1InvalidRequestExceptionResponse(parsedOutput, context)),
|
|
2754
|
-
name: errorCode,
|
|
2755
|
-
$metadata: deserializeMetadata(output),
|
|
2756
|
-
};
|
|
2757
|
-
break;
|
|
2166
|
+
throw await deserializeAws_restJson1InvalidRequestExceptionResponse(parsedOutput, context);
|
|
2758
2167
|
case "ResourceInUseException":
|
|
2759
2168
|
case "com.amazonaws.eks#ResourceInUseException":
|
|
2760
|
-
|
|
2761
|
-
...(await deserializeAws_restJson1ResourceInUseExceptionResponse(parsedOutput, context)),
|
|
2762
|
-
name: errorCode,
|
|
2763
|
-
$metadata: deserializeMetadata(output),
|
|
2764
|
-
};
|
|
2765
|
-
break;
|
|
2169
|
+
throw await deserializeAws_restJson1ResourceInUseExceptionResponse(parsedOutput, context);
|
|
2766
2170
|
case "ResourceNotFoundException":
|
|
2767
2171
|
case "com.amazonaws.eks#ResourceNotFoundException":
|
|
2768
|
-
|
|
2769
|
-
...(await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)),
|
|
2770
|
-
name: errorCode,
|
|
2771
|
-
$metadata: deserializeMetadata(output),
|
|
2772
|
-
};
|
|
2773
|
-
break;
|
|
2172
|
+
throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
2774
2173
|
case "ServerException":
|
|
2775
2174
|
case "com.amazonaws.eks#ServerException":
|
|
2776
|
-
|
|
2777
|
-
...(await deserializeAws_restJson1ServerExceptionResponse(parsedOutput, context)),
|
|
2778
|
-
name: errorCode,
|
|
2779
|
-
$metadata: deserializeMetadata(output),
|
|
2780
|
-
};
|
|
2781
|
-
break;
|
|
2175
|
+
throw await deserializeAws_restJson1ServerExceptionResponse(parsedOutput, context);
|
|
2782
2176
|
default:
|
|
2783
2177
|
const parsedBody = parsedOutput.body;
|
|
2784
|
-
|
|
2785
|
-
|
|
2786
|
-
...parsedBody,
|
|
2787
|
-
name: `${errorCode}`,
|
|
2788
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
2178
|
+
response = new EKSServiceException_1.EKSServiceException({
|
|
2179
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2789
2180
|
$fault: "client",
|
|
2790
2181
|
$metadata: deserializeMetadata(output),
|
|
2791
|
-
};
|
|
2182
|
+
});
|
|
2183
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
2792
2184
|
}
|
|
2793
|
-
const message = response.message || response.Message || errorCode;
|
|
2794
|
-
response.message = message;
|
|
2795
|
-
delete response.Message;
|
|
2796
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
2797
2185
|
};
|
|
2798
2186
|
const deserializeAws_restJson1ListAddonsCommand = async (output, context) => {
|
|
2799
2187
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
@@ -2825,59 +2213,28 @@ const deserializeAws_restJson1ListAddonsCommandError = async (output, context) =
|
|
|
2825
2213
|
switch (errorCode) {
|
|
2826
2214
|
case "ClientException":
|
|
2827
2215
|
case "com.amazonaws.eks#ClientException":
|
|
2828
|
-
|
|
2829
|
-
...(await deserializeAws_restJson1ClientExceptionResponse(parsedOutput, context)),
|
|
2830
|
-
name: errorCode,
|
|
2831
|
-
$metadata: deserializeMetadata(output),
|
|
2832
|
-
};
|
|
2833
|
-
break;
|
|
2216
|
+
throw await deserializeAws_restJson1ClientExceptionResponse(parsedOutput, context);
|
|
2834
2217
|
case "InvalidParameterException":
|
|
2835
2218
|
case "com.amazonaws.eks#InvalidParameterException":
|
|
2836
|
-
|
|
2837
|
-
...(await deserializeAws_restJson1InvalidParameterExceptionResponse(parsedOutput, context)),
|
|
2838
|
-
name: errorCode,
|
|
2839
|
-
$metadata: deserializeMetadata(output),
|
|
2840
|
-
};
|
|
2841
|
-
break;
|
|
2219
|
+
throw await deserializeAws_restJson1InvalidParameterExceptionResponse(parsedOutput, context);
|
|
2842
2220
|
case "InvalidRequestException":
|
|
2843
2221
|
case "com.amazonaws.eks#InvalidRequestException":
|
|
2844
|
-
|
|
2845
|
-
...(await deserializeAws_restJson1InvalidRequestExceptionResponse(parsedOutput, context)),
|
|
2846
|
-
name: errorCode,
|
|
2847
|
-
$metadata: deserializeMetadata(output),
|
|
2848
|
-
};
|
|
2849
|
-
break;
|
|
2222
|
+
throw await deserializeAws_restJson1InvalidRequestExceptionResponse(parsedOutput, context);
|
|
2850
2223
|
case "ResourceNotFoundException":
|
|
2851
2224
|
case "com.amazonaws.eks#ResourceNotFoundException":
|
|
2852
|
-
|
|
2853
|
-
...(await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)),
|
|
2854
|
-
name: errorCode,
|
|
2855
|
-
$metadata: deserializeMetadata(output),
|
|
2856
|
-
};
|
|
2857
|
-
break;
|
|
2225
|
+
throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
2858
2226
|
case "ServerException":
|
|
2859
2227
|
case "com.amazonaws.eks#ServerException":
|
|
2860
|
-
|
|
2861
|
-
...(await deserializeAws_restJson1ServerExceptionResponse(parsedOutput, context)),
|
|
2862
|
-
name: errorCode,
|
|
2863
|
-
$metadata: deserializeMetadata(output),
|
|
2864
|
-
};
|
|
2865
|
-
break;
|
|
2228
|
+
throw await deserializeAws_restJson1ServerExceptionResponse(parsedOutput, context);
|
|
2866
2229
|
default:
|
|
2867
2230
|
const parsedBody = parsedOutput.body;
|
|
2868
|
-
|
|
2869
|
-
|
|
2870
|
-
...parsedBody,
|
|
2871
|
-
name: `${errorCode}`,
|
|
2872
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
2231
|
+
response = new EKSServiceException_1.EKSServiceException({
|
|
2232
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2873
2233
|
$fault: "client",
|
|
2874
2234
|
$metadata: deserializeMetadata(output),
|
|
2875
|
-
};
|
|
2235
|
+
});
|
|
2236
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
2876
2237
|
}
|
|
2877
|
-
const message = response.message || response.Message || errorCode;
|
|
2878
|
-
response.message = message;
|
|
2879
|
-
delete response.Message;
|
|
2880
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
2881
2238
|
};
|
|
2882
2239
|
const deserializeAws_restJson1ListClustersCommand = async (output, context) => {
|
|
2883
2240
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
@@ -2909,51 +2266,25 @@ const deserializeAws_restJson1ListClustersCommandError = async (output, context)
|
|
|
2909
2266
|
switch (errorCode) {
|
|
2910
2267
|
case "ClientException":
|
|
2911
2268
|
case "com.amazonaws.eks#ClientException":
|
|
2912
|
-
|
|
2913
|
-
...(await deserializeAws_restJson1ClientExceptionResponse(parsedOutput, context)),
|
|
2914
|
-
name: errorCode,
|
|
2915
|
-
$metadata: deserializeMetadata(output),
|
|
2916
|
-
};
|
|
2917
|
-
break;
|
|
2269
|
+
throw await deserializeAws_restJson1ClientExceptionResponse(parsedOutput, context);
|
|
2918
2270
|
case "InvalidParameterException":
|
|
2919
2271
|
case "com.amazonaws.eks#InvalidParameterException":
|
|
2920
|
-
|
|
2921
|
-
...(await deserializeAws_restJson1InvalidParameterExceptionResponse(parsedOutput, context)),
|
|
2922
|
-
name: errorCode,
|
|
2923
|
-
$metadata: deserializeMetadata(output),
|
|
2924
|
-
};
|
|
2925
|
-
break;
|
|
2272
|
+
throw await deserializeAws_restJson1InvalidParameterExceptionResponse(parsedOutput, context);
|
|
2926
2273
|
case "ServerException":
|
|
2927
2274
|
case "com.amazonaws.eks#ServerException":
|
|
2928
|
-
|
|
2929
|
-
...(await deserializeAws_restJson1ServerExceptionResponse(parsedOutput, context)),
|
|
2930
|
-
name: errorCode,
|
|
2931
|
-
$metadata: deserializeMetadata(output),
|
|
2932
|
-
};
|
|
2933
|
-
break;
|
|
2275
|
+
throw await deserializeAws_restJson1ServerExceptionResponse(parsedOutput, context);
|
|
2934
2276
|
case "ServiceUnavailableException":
|
|
2935
2277
|
case "com.amazonaws.eks#ServiceUnavailableException":
|
|
2936
|
-
|
|
2937
|
-
...(await deserializeAws_restJson1ServiceUnavailableExceptionResponse(parsedOutput, context)),
|
|
2938
|
-
name: errorCode,
|
|
2939
|
-
$metadata: deserializeMetadata(output),
|
|
2940
|
-
};
|
|
2941
|
-
break;
|
|
2278
|
+
throw await deserializeAws_restJson1ServiceUnavailableExceptionResponse(parsedOutput, context);
|
|
2942
2279
|
default:
|
|
2943
2280
|
const parsedBody = parsedOutput.body;
|
|
2944
|
-
|
|
2945
|
-
|
|
2946
|
-
...parsedBody,
|
|
2947
|
-
name: `${errorCode}`,
|
|
2948
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
2281
|
+
response = new EKSServiceException_1.EKSServiceException({
|
|
2282
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2949
2283
|
$fault: "client",
|
|
2950
2284
|
$metadata: deserializeMetadata(output),
|
|
2951
|
-
};
|
|
2285
|
+
});
|
|
2286
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
2952
2287
|
}
|
|
2953
|
-
const message = response.message || response.Message || errorCode;
|
|
2954
|
-
response.message = message;
|
|
2955
|
-
delete response.Message;
|
|
2956
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
2957
2288
|
};
|
|
2958
2289
|
const deserializeAws_restJson1ListFargateProfilesCommand = async (output, context) => {
|
|
2959
2290
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
@@ -2985,51 +2316,25 @@ const deserializeAws_restJson1ListFargateProfilesCommandError = async (output, c
|
|
|
2985
2316
|
switch (errorCode) {
|
|
2986
2317
|
case "ClientException":
|
|
2987
2318
|
case "com.amazonaws.eks#ClientException":
|
|
2988
|
-
|
|
2989
|
-
...(await deserializeAws_restJson1ClientExceptionResponse(parsedOutput, context)),
|
|
2990
|
-
name: errorCode,
|
|
2991
|
-
$metadata: deserializeMetadata(output),
|
|
2992
|
-
};
|
|
2993
|
-
break;
|
|
2319
|
+
throw await deserializeAws_restJson1ClientExceptionResponse(parsedOutput, context);
|
|
2994
2320
|
case "InvalidParameterException":
|
|
2995
2321
|
case "com.amazonaws.eks#InvalidParameterException":
|
|
2996
|
-
|
|
2997
|
-
...(await deserializeAws_restJson1InvalidParameterExceptionResponse(parsedOutput, context)),
|
|
2998
|
-
name: errorCode,
|
|
2999
|
-
$metadata: deserializeMetadata(output),
|
|
3000
|
-
};
|
|
3001
|
-
break;
|
|
2322
|
+
throw await deserializeAws_restJson1InvalidParameterExceptionResponse(parsedOutput, context);
|
|
3002
2323
|
case "ResourceNotFoundException":
|
|
3003
2324
|
case "com.amazonaws.eks#ResourceNotFoundException":
|
|
3004
|
-
|
|
3005
|
-
...(await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)),
|
|
3006
|
-
name: errorCode,
|
|
3007
|
-
$metadata: deserializeMetadata(output),
|
|
3008
|
-
};
|
|
3009
|
-
break;
|
|
2325
|
+
throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
3010
2326
|
case "ServerException":
|
|
3011
2327
|
case "com.amazonaws.eks#ServerException":
|
|
3012
|
-
|
|
3013
|
-
...(await deserializeAws_restJson1ServerExceptionResponse(parsedOutput, context)),
|
|
3014
|
-
name: errorCode,
|
|
3015
|
-
$metadata: deserializeMetadata(output),
|
|
3016
|
-
};
|
|
3017
|
-
break;
|
|
2328
|
+
throw await deserializeAws_restJson1ServerExceptionResponse(parsedOutput, context);
|
|
3018
2329
|
default:
|
|
3019
2330
|
const parsedBody = parsedOutput.body;
|
|
3020
|
-
|
|
3021
|
-
|
|
3022
|
-
...parsedBody,
|
|
3023
|
-
name: `${errorCode}`,
|
|
3024
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
2331
|
+
response = new EKSServiceException_1.EKSServiceException({
|
|
2332
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
3025
2333
|
$fault: "client",
|
|
3026
2334
|
$metadata: deserializeMetadata(output),
|
|
3027
|
-
};
|
|
2335
|
+
});
|
|
2336
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
3028
2337
|
}
|
|
3029
|
-
const message = response.message || response.Message || errorCode;
|
|
3030
|
-
response.message = message;
|
|
3031
|
-
delete response.Message;
|
|
3032
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
3033
2338
|
};
|
|
3034
2339
|
const deserializeAws_restJson1ListIdentityProviderConfigsCommand = async (output, context) => {
|
|
3035
2340
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
@@ -3061,59 +2366,28 @@ const deserializeAws_restJson1ListIdentityProviderConfigsCommandError = async (o
|
|
|
3061
2366
|
switch (errorCode) {
|
|
3062
2367
|
case "ClientException":
|
|
3063
2368
|
case "com.amazonaws.eks#ClientException":
|
|
3064
|
-
|
|
3065
|
-
...(await deserializeAws_restJson1ClientExceptionResponse(parsedOutput, context)),
|
|
3066
|
-
name: errorCode,
|
|
3067
|
-
$metadata: deserializeMetadata(output),
|
|
3068
|
-
};
|
|
3069
|
-
break;
|
|
2369
|
+
throw await deserializeAws_restJson1ClientExceptionResponse(parsedOutput, context);
|
|
3070
2370
|
case "InvalidParameterException":
|
|
3071
2371
|
case "com.amazonaws.eks#InvalidParameterException":
|
|
3072
|
-
|
|
3073
|
-
...(await deserializeAws_restJson1InvalidParameterExceptionResponse(parsedOutput, context)),
|
|
3074
|
-
name: errorCode,
|
|
3075
|
-
$metadata: deserializeMetadata(output),
|
|
3076
|
-
};
|
|
3077
|
-
break;
|
|
2372
|
+
throw await deserializeAws_restJson1InvalidParameterExceptionResponse(parsedOutput, context);
|
|
3078
2373
|
case "ResourceNotFoundException":
|
|
3079
2374
|
case "com.amazonaws.eks#ResourceNotFoundException":
|
|
3080
|
-
|
|
3081
|
-
...(await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)),
|
|
3082
|
-
name: errorCode,
|
|
3083
|
-
$metadata: deserializeMetadata(output),
|
|
3084
|
-
};
|
|
3085
|
-
break;
|
|
2375
|
+
throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
3086
2376
|
case "ServerException":
|
|
3087
2377
|
case "com.amazonaws.eks#ServerException":
|
|
3088
|
-
|
|
3089
|
-
...(await deserializeAws_restJson1ServerExceptionResponse(parsedOutput, context)),
|
|
3090
|
-
name: errorCode,
|
|
3091
|
-
$metadata: deserializeMetadata(output),
|
|
3092
|
-
};
|
|
3093
|
-
break;
|
|
2378
|
+
throw await deserializeAws_restJson1ServerExceptionResponse(parsedOutput, context);
|
|
3094
2379
|
case "ServiceUnavailableException":
|
|
3095
2380
|
case "com.amazonaws.eks#ServiceUnavailableException":
|
|
3096
|
-
|
|
3097
|
-
...(await deserializeAws_restJson1ServiceUnavailableExceptionResponse(parsedOutput, context)),
|
|
3098
|
-
name: errorCode,
|
|
3099
|
-
$metadata: deserializeMetadata(output),
|
|
3100
|
-
};
|
|
3101
|
-
break;
|
|
2381
|
+
throw await deserializeAws_restJson1ServiceUnavailableExceptionResponse(parsedOutput, context);
|
|
3102
2382
|
default:
|
|
3103
2383
|
const parsedBody = parsedOutput.body;
|
|
3104
|
-
|
|
3105
|
-
|
|
3106
|
-
...parsedBody,
|
|
3107
|
-
name: `${errorCode}`,
|
|
3108
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
2384
|
+
response = new EKSServiceException_1.EKSServiceException({
|
|
2385
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
3109
2386
|
$fault: "client",
|
|
3110
2387
|
$metadata: deserializeMetadata(output),
|
|
3111
|
-
};
|
|
2388
|
+
});
|
|
2389
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
3112
2390
|
}
|
|
3113
|
-
const message = response.message || response.Message || errorCode;
|
|
3114
|
-
response.message = message;
|
|
3115
|
-
delete response.Message;
|
|
3116
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
3117
2391
|
};
|
|
3118
2392
|
const deserializeAws_restJson1ListNodegroupsCommand = async (output, context) => {
|
|
3119
2393
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
@@ -3145,59 +2419,28 @@ const deserializeAws_restJson1ListNodegroupsCommandError = async (output, contex
|
|
|
3145
2419
|
switch (errorCode) {
|
|
3146
2420
|
case "ClientException":
|
|
3147
2421
|
case "com.amazonaws.eks#ClientException":
|
|
3148
|
-
|
|
3149
|
-
...(await deserializeAws_restJson1ClientExceptionResponse(parsedOutput, context)),
|
|
3150
|
-
name: errorCode,
|
|
3151
|
-
$metadata: deserializeMetadata(output),
|
|
3152
|
-
};
|
|
3153
|
-
break;
|
|
2422
|
+
throw await deserializeAws_restJson1ClientExceptionResponse(parsedOutput, context);
|
|
3154
2423
|
case "InvalidParameterException":
|
|
3155
2424
|
case "com.amazonaws.eks#InvalidParameterException":
|
|
3156
|
-
|
|
3157
|
-
...(await deserializeAws_restJson1InvalidParameterExceptionResponse(parsedOutput, context)),
|
|
3158
|
-
name: errorCode,
|
|
3159
|
-
$metadata: deserializeMetadata(output),
|
|
3160
|
-
};
|
|
3161
|
-
break;
|
|
2425
|
+
throw await deserializeAws_restJson1InvalidParameterExceptionResponse(parsedOutput, context);
|
|
3162
2426
|
case "ResourceNotFoundException":
|
|
3163
2427
|
case "com.amazonaws.eks#ResourceNotFoundException":
|
|
3164
|
-
|
|
3165
|
-
...(await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)),
|
|
3166
|
-
name: errorCode,
|
|
3167
|
-
$metadata: deserializeMetadata(output),
|
|
3168
|
-
};
|
|
3169
|
-
break;
|
|
2428
|
+
throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
3170
2429
|
case "ServerException":
|
|
3171
2430
|
case "com.amazonaws.eks#ServerException":
|
|
3172
|
-
|
|
3173
|
-
...(await deserializeAws_restJson1ServerExceptionResponse(parsedOutput, context)),
|
|
3174
|
-
name: errorCode,
|
|
3175
|
-
$metadata: deserializeMetadata(output),
|
|
3176
|
-
};
|
|
3177
|
-
break;
|
|
2431
|
+
throw await deserializeAws_restJson1ServerExceptionResponse(parsedOutput, context);
|
|
3178
2432
|
case "ServiceUnavailableException":
|
|
3179
2433
|
case "com.amazonaws.eks#ServiceUnavailableException":
|
|
3180
|
-
|
|
3181
|
-
...(await deserializeAws_restJson1ServiceUnavailableExceptionResponse(parsedOutput, context)),
|
|
3182
|
-
name: errorCode,
|
|
3183
|
-
$metadata: deserializeMetadata(output),
|
|
3184
|
-
};
|
|
3185
|
-
break;
|
|
2434
|
+
throw await deserializeAws_restJson1ServiceUnavailableExceptionResponse(parsedOutput, context);
|
|
3186
2435
|
default:
|
|
3187
2436
|
const parsedBody = parsedOutput.body;
|
|
3188
|
-
|
|
3189
|
-
|
|
3190
|
-
...parsedBody,
|
|
3191
|
-
name: `${errorCode}`,
|
|
3192
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
2437
|
+
response = new EKSServiceException_1.EKSServiceException({
|
|
2438
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
3193
2439
|
$fault: "client",
|
|
3194
2440
|
$metadata: deserializeMetadata(output),
|
|
3195
|
-
};
|
|
2441
|
+
});
|
|
2442
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
3196
2443
|
}
|
|
3197
|
-
const message = response.message || response.Message || errorCode;
|
|
3198
|
-
response.message = message;
|
|
3199
|
-
delete response.Message;
|
|
3200
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
3201
2444
|
};
|
|
3202
2445
|
const deserializeAws_restJson1ListTagsForResourceCommand = async (output, context) => {
|
|
3203
2446
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
@@ -3225,35 +2468,19 @@ const deserializeAws_restJson1ListTagsForResourceCommandError = async (output, c
|
|
|
3225
2468
|
switch (errorCode) {
|
|
3226
2469
|
case "BadRequestException":
|
|
3227
2470
|
case "com.amazonaws.eks#BadRequestException":
|
|
3228
|
-
|
|
3229
|
-
...(await deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context)),
|
|
3230
|
-
name: errorCode,
|
|
3231
|
-
$metadata: deserializeMetadata(output),
|
|
3232
|
-
};
|
|
3233
|
-
break;
|
|
2471
|
+
throw await deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context);
|
|
3234
2472
|
case "NotFoundException":
|
|
3235
2473
|
case "com.amazonaws.eks#NotFoundException":
|
|
3236
|
-
|
|
3237
|
-
...(await deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context)),
|
|
3238
|
-
name: errorCode,
|
|
3239
|
-
$metadata: deserializeMetadata(output),
|
|
3240
|
-
};
|
|
3241
|
-
break;
|
|
2474
|
+
throw await deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context);
|
|
3242
2475
|
default:
|
|
3243
2476
|
const parsedBody = parsedOutput.body;
|
|
3244
|
-
|
|
3245
|
-
|
|
3246
|
-
...parsedBody,
|
|
3247
|
-
name: `${errorCode}`,
|
|
3248
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
2477
|
+
response = new EKSServiceException_1.EKSServiceException({
|
|
2478
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
3249
2479
|
$fault: "client",
|
|
3250
2480
|
$metadata: deserializeMetadata(output),
|
|
3251
|
-
};
|
|
2481
|
+
});
|
|
2482
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
3252
2483
|
}
|
|
3253
|
-
const message = response.message || response.Message || errorCode;
|
|
3254
|
-
response.message = message;
|
|
3255
|
-
delete response.Message;
|
|
3256
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
3257
2484
|
};
|
|
3258
2485
|
const deserializeAws_restJson1ListUpdatesCommand = async (output, context) => {
|
|
3259
2486
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
@@ -3285,51 +2512,25 @@ const deserializeAws_restJson1ListUpdatesCommandError = async (output, context)
|
|
|
3285
2512
|
switch (errorCode) {
|
|
3286
2513
|
case "ClientException":
|
|
3287
2514
|
case "com.amazonaws.eks#ClientException":
|
|
3288
|
-
|
|
3289
|
-
...(await deserializeAws_restJson1ClientExceptionResponse(parsedOutput, context)),
|
|
3290
|
-
name: errorCode,
|
|
3291
|
-
$metadata: deserializeMetadata(output),
|
|
3292
|
-
};
|
|
3293
|
-
break;
|
|
2515
|
+
throw await deserializeAws_restJson1ClientExceptionResponse(parsedOutput, context);
|
|
3294
2516
|
case "InvalidParameterException":
|
|
3295
2517
|
case "com.amazonaws.eks#InvalidParameterException":
|
|
3296
|
-
|
|
3297
|
-
...(await deserializeAws_restJson1InvalidParameterExceptionResponse(parsedOutput, context)),
|
|
3298
|
-
name: errorCode,
|
|
3299
|
-
$metadata: deserializeMetadata(output),
|
|
3300
|
-
};
|
|
3301
|
-
break;
|
|
2518
|
+
throw await deserializeAws_restJson1InvalidParameterExceptionResponse(parsedOutput, context);
|
|
3302
2519
|
case "ResourceNotFoundException":
|
|
3303
2520
|
case "com.amazonaws.eks#ResourceNotFoundException":
|
|
3304
|
-
|
|
3305
|
-
...(await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)),
|
|
3306
|
-
name: errorCode,
|
|
3307
|
-
$metadata: deserializeMetadata(output),
|
|
3308
|
-
};
|
|
3309
|
-
break;
|
|
2521
|
+
throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
3310
2522
|
case "ServerException":
|
|
3311
2523
|
case "com.amazonaws.eks#ServerException":
|
|
3312
|
-
|
|
3313
|
-
...(await deserializeAws_restJson1ServerExceptionResponse(parsedOutput, context)),
|
|
3314
|
-
name: errorCode,
|
|
3315
|
-
$metadata: deserializeMetadata(output),
|
|
3316
|
-
};
|
|
3317
|
-
break;
|
|
2524
|
+
throw await deserializeAws_restJson1ServerExceptionResponse(parsedOutput, context);
|
|
3318
2525
|
default:
|
|
3319
2526
|
const parsedBody = parsedOutput.body;
|
|
3320
|
-
|
|
3321
|
-
|
|
3322
|
-
...parsedBody,
|
|
3323
|
-
name: `${errorCode}`,
|
|
3324
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
2527
|
+
response = new EKSServiceException_1.EKSServiceException({
|
|
2528
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
3325
2529
|
$fault: "client",
|
|
3326
2530
|
$metadata: deserializeMetadata(output),
|
|
3327
|
-
};
|
|
2531
|
+
});
|
|
2532
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
3328
2533
|
}
|
|
3329
|
-
const message = response.message || response.Message || errorCode;
|
|
3330
|
-
response.message = message;
|
|
3331
|
-
delete response.Message;
|
|
3332
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
3333
2534
|
};
|
|
3334
2535
|
const deserializeAws_restJson1RegisterClusterCommand = async (output, context) => {
|
|
3335
2536
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
@@ -3357,83 +2558,37 @@ const deserializeAws_restJson1RegisterClusterCommandError = async (output, conte
|
|
|
3357
2558
|
switch (errorCode) {
|
|
3358
2559
|
case "AccessDeniedException":
|
|
3359
2560
|
case "com.amazonaws.eks#AccessDeniedException":
|
|
3360
|
-
|
|
3361
|
-
...(await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context)),
|
|
3362
|
-
name: errorCode,
|
|
3363
|
-
$metadata: deserializeMetadata(output),
|
|
3364
|
-
};
|
|
3365
|
-
break;
|
|
2561
|
+
throw await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context);
|
|
3366
2562
|
case "ClientException":
|
|
3367
2563
|
case "com.amazonaws.eks#ClientException":
|
|
3368
|
-
|
|
3369
|
-
...(await deserializeAws_restJson1ClientExceptionResponse(parsedOutput, context)),
|
|
3370
|
-
name: errorCode,
|
|
3371
|
-
$metadata: deserializeMetadata(output),
|
|
3372
|
-
};
|
|
3373
|
-
break;
|
|
2564
|
+
throw await deserializeAws_restJson1ClientExceptionResponse(parsedOutput, context);
|
|
3374
2565
|
case "InvalidParameterException":
|
|
3375
2566
|
case "com.amazonaws.eks#InvalidParameterException":
|
|
3376
|
-
|
|
3377
|
-
...(await deserializeAws_restJson1InvalidParameterExceptionResponse(parsedOutput, context)),
|
|
3378
|
-
name: errorCode,
|
|
3379
|
-
$metadata: deserializeMetadata(output),
|
|
3380
|
-
};
|
|
3381
|
-
break;
|
|
2567
|
+
throw await deserializeAws_restJson1InvalidParameterExceptionResponse(parsedOutput, context);
|
|
3382
2568
|
case "ResourceInUseException":
|
|
3383
2569
|
case "com.amazonaws.eks#ResourceInUseException":
|
|
3384
|
-
|
|
3385
|
-
...(await deserializeAws_restJson1ResourceInUseExceptionResponse(parsedOutput, context)),
|
|
3386
|
-
name: errorCode,
|
|
3387
|
-
$metadata: deserializeMetadata(output),
|
|
3388
|
-
};
|
|
3389
|
-
break;
|
|
2570
|
+
throw await deserializeAws_restJson1ResourceInUseExceptionResponse(parsedOutput, context);
|
|
3390
2571
|
case "ResourceLimitExceededException":
|
|
3391
2572
|
case "com.amazonaws.eks#ResourceLimitExceededException":
|
|
3392
|
-
|
|
3393
|
-
...(await deserializeAws_restJson1ResourceLimitExceededExceptionResponse(parsedOutput, context)),
|
|
3394
|
-
name: errorCode,
|
|
3395
|
-
$metadata: deserializeMetadata(output),
|
|
3396
|
-
};
|
|
3397
|
-
break;
|
|
2573
|
+
throw await deserializeAws_restJson1ResourceLimitExceededExceptionResponse(parsedOutput, context);
|
|
3398
2574
|
case "ResourcePropagationDelayException":
|
|
3399
2575
|
case "com.amazonaws.eks#ResourcePropagationDelayException":
|
|
3400
|
-
|
|
3401
|
-
...(await deserializeAws_restJson1ResourcePropagationDelayExceptionResponse(parsedOutput, context)),
|
|
3402
|
-
name: errorCode,
|
|
3403
|
-
$metadata: deserializeMetadata(output),
|
|
3404
|
-
};
|
|
3405
|
-
break;
|
|
2576
|
+
throw await deserializeAws_restJson1ResourcePropagationDelayExceptionResponse(parsedOutput, context);
|
|
3406
2577
|
case "ServerException":
|
|
3407
2578
|
case "com.amazonaws.eks#ServerException":
|
|
3408
|
-
|
|
3409
|
-
...(await deserializeAws_restJson1ServerExceptionResponse(parsedOutput, context)),
|
|
3410
|
-
name: errorCode,
|
|
3411
|
-
$metadata: deserializeMetadata(output),
|
|
3412
|
-
};
|
|
3413
|
-
break;
|
|
2579
|
+
throw await deserializeAws_restJson1ServerExceptionResponse(parsedOutput, context);
|
|
3414
2580
|
case "ServiceUnavailableException":
|
|
3415
2581
|
case "com.amazonaws.eks#ServiceUnavailableException":
|
|
3416
|
-
|
|
3417
|
-
...(await deserializeAws_restJson1ServiceUnavailableExceptionResponse(parsedOutput, context)),
|
|
3418
|
-
name: errorCode,
|
|
3419
|
-
$metadata: deserializeMetadata(output),
|
|
3420
|
-
};
|
|
3421
|
-
break;
|
|
2582
|
+
throw await deserializeAws_restJson1ServiceUnavailableExceptionResponse(parsedOutput, context);
|
|
3422
2583
|
default:
|
|
3423
2584
|
const parsedBody = parsedOutput.body;
|
|
3424
|
-
|
|
3425
|
-
|
|
3426
|
-
...parsedBody,
|
|
3427
|
-
name: `${errorCode}`,
|
|
3428
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
2585
|
+
response = new EKSServiceException_1.EKSServiceException({
|
|
2586
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
3429
2587
|
$fault: "client",
|
|
3430
2588
|
$metadata: deserializeMetadata(output),
|
|
3431
|
-
};
|
|
2589
|
+
});
|
|
2590
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
3432
2591
|
}
|
|
3433
|
-
const message = response.message || response.Message || errorCode;
|
|
3434
|
-
response.message = message;
|
|
3435
|
-
delete response.Message;
|
|
3436
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
3437
2592
|
};
|
|
3438
2593
|
const deserializeAws_restJson1TagResourceCommand = async (output, context) => {
|
|
3439
2594
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
@@ -3457,35 +2612,19 @@ const deserializeAws_restJson1TagResourceCommandError = async (output, context)
|
|
|
3457
2612
|
switch (errorCode) {
|
|
3458
2613
|
case "BadRequestException":
|
|
3459
2614
|
case "com.amazonaws.eks#BadRequestException":
|
|
3460
|
-
|
|
3461
|
-
...(await deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context)),
|
|
3462
|
-
name: errorCode,
|
|
3463
|
-
$metadata: deserializeMetadata(output),
|
|
3464
|
-
};
|
|
3465
|
-
break;
|
|
2615
|
+
throw await deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context);
|
|
3466
2616
|
case "NotFoundException":
|
|
3467
2617
|
case "com.amazonaws.eks#NotFoundException":
|
|
3468
|
-
|
|
3469
|
-
...(await deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context)),
|
|
3470
|
-
name: errorCode,
|
|
3471
|
-
$metadata: deserializeMetadata(output),
|
|
3472
|
-
};
|
|
3473
|
-
break;
|
|
2618
|
+
throw await deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context);
|
|
3474
2619
|
default:
|
|
3475
2620
|
const parsedBody = parsedOutput.body;
|
|
3476
|
-
|
|
3477
|
-
|
|
3478
|
-
...parsedBody,
|
|
3479
|
-
name: `${errorCode}`,
|
|
3480
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
2621
|
+
response = new EKSServiceException_1.EKSServiceException({
|
|
2622
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
3481
2623
|
$fault: "client",
|
|
3482
2624
|
$metadata: deserializeMetadata(output),
|
|
3483
|
-
};
|
|
2625
|
+
});
|
|
2626
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
3484
2627
|
}
|
|
3485
|
-
const message = response.message || response.Message || errorCode;
|
|
3486
|
-
response.message = message;
|
|
3487
|
-
delete response.Message;
|
|
3488
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
3489
2628
|
};
|
|
3490
2629
|
const deserializeAws_restJson1UntagResourceCommand = async (output, context) => {
|
|
3491
2630
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
@@ -3509,35 +2648,19 @@ const deserializeAws_restJson1UntagResourceCommandError = async (output, context
|
|
|
3509
2648
|
switch (errorCode) {
|
|
3510
2649
|
case "BadRequestException":
|
|
3511
2650
|
case "com.amazonaws.eks#BadRequestException":
|
|
3512
|
-
|
|
3513
|
-
...(await deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context)),
|
|
3514
|
-
name: errorCode,
|
|
3515
|
-
$metadata: deserializeMetadata(output),
|
|
3516
|
-
};
|
|
3517
|
-
break;
|
|
2651
|
+
throw await deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context);
|
|
3518
2652
|
case "NotFoundException":
|
|
3519
2653
|
case "com.amazonaws.eks#NotFoundException":
|
|
3520
|
-
|
|
3521
|
-
...(await deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context)),
|
|
3522
|
-
name: errorCode,
|
|
3523
|
-
$metadata: deserializeMetadata(output),
|
|
3524
|
-
};
|
|
3525
|
-
break;
|
|
2654
|
+
throw await deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context);
|
|
3526
2655
|
default:
|
|
3527
2656
|
const parsedBody = parsedOutput.body;
|
|
3528
|
-
|
|
3529
|
-
|
|
3530
|
-
...parsedBody,
|
|
3531
|
-
name: `${errorCode}`,
|
|
3532
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
2657
|
+
response = new EKSServiceException_1.EKSServiceException({
|
|
2658
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
3533
2659
|
$fault: "client",
|
|
3534
2660
|
$metadata: deserializeMetadata(output),
|
|
3535
|
-
};
|
|
2661
|
+
});
|
|
2662
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
3536
2663
|
}
|
|
3537
|
-
const message = response.message || response.Message || errorCode;
|
|
3538
|
-
response.message = message;
|
|
3539
|
-
delete response.Message;
|
|
3540
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
3541
2664
|
};
|
|
3542
2665
|
const deserializeAws_restJson1UpdateAddonCommand = async (output, context) => {
|
|
3543
2666
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
@@ -3565,67 +2688,31 @@ const deserializeAws_restJson1UpdateAddonCommandError = async (output, context)
|
|
|
3565
2688
|
switch (errorCode) {
|
|
3566
2689
|
case "ClientException":
|
|
3567
2690
|
case "com.amazonaws.eks#ClientException":
|
|
3568
|
-
|
|
3569
|
-
...(await deserializeAws_restJson1ClientExceptionResponse(parsedOutput, context)),
|
|
3570
|
-
name: errorCode,
|
|
3571
|
-
$metadata: deserializeMetadata(output),
|
|
3572
|
-
};
|
|
3573
|
-
break;
|
|
2691
|
+
throw await deserializeAws_restJson1ClientExceptionResponse(parsedOutput, context);
|
|
3574
2692
|
case "InvalidParameterException":
|
|
3575
2693
|
case "com.amazonaws.eks#InvalidParameterException":
|
|
3576
|
-
|
|
3577
|
-
...(await deserializeAws_restJson1InvalidParameterExceptionResponse(parsedOutput, context)),
|
|
3578
|
-
name: errorCode,
|
|
3579
|
-
$metadata: deserializeMetadata(output),
|
|
3580
|
-
};
|
|
3581
|
-
break;
|
|
2694
|
+
throw await deserializeAws_restJson1InvalidParameterExceptionResponse(parsedOutput, context);
|
|
3582
2695
|
case "InvalidRequestException":
|
|
3583
2696
|
case "com.amazonaws.eks#InvalidRequestException":
|
|
3584
|
-
|
|
3585
|
-
...(await deserializeAws_restJson1InvalidRequestExceptionResponse(parsedOutput, context)),
|
|
3586
|
-
name: errorCode,
|
|
3587
|
-
$metadata: deserializeMetadata(output),
|
|
3588
|
-
};
|
|
3589
|
-
break;
|
|
2697
|
+
throw await deserializeAws_restJson1InvalidRequestExceptionResponse(parsedOutput, context);
|
|
3590
2698
|
case "ResourceInUseException":
|
|
3591
2699
|
case "com.amazonaws.eks#ResourceInUseException":
|
|
3592
|
-
|
|
3593
|
-
...(await deserializeAws_restJson1ResourceInUseExceptionResponse(parsedOutput, context)),
|
|
3594
|
-
name: errorCode,
|
|
3595
|
-
$metadata: deserializeMetadata(output),
|
|
3596
|
-
};
|
|
3597
|
-
break;
|
|
2700
|
+
throw await deserializeAws_restJson1ResourceInUseExceptionResponse(parsedOutput, context);
|
|
3598
2701
|
case "ResourceNotFoundException":
|
|
3599
2702
|
case "com.amazonaws.eks#ResourceNotFoundException":
|
|
3600
|
-
|
|
3601
|
-
...(await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)),
|
|
3602
|
-
name: errorCode,
|
|
3603
|
-
$metadata: deserializeMetadata(output),
|
|
3604
|
-
};
|
|
3605
|
-
break;
|
|
2703
|
+
throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
3606
2704
|
case "ServerException":
|
|
3607
2705
|
case "com.amazonaws.eks#ServerException":
|
|
3608
|
-
|
|
3609
|
-
...(await deserializeAws_restJson1ServerExceptionResponse(parsedOutput, context)),
|
|
3610
|
-
name: errorCode,
|
|
3611
|
-
$metadata: deserializeMetadata(output),
|
|
3612
|
-
};
|
|
3613
|
-
break;
|
|
2706
|
+
throw await deserializeAws_restJson1ServerExceptionResponse(parsedOutput, context);
|
|
3614
2707
|
default:
|
|
3615
2708
|
const parsedBody = parsedOutput.body;
|
|
3616
|
-
|
|
3617
|
-
|
|
3618
|
-
...parsedBody,
|
|
3619
|
-
name: `${errorCode}`,
|
|
3620
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
2709
|
+
response = new EKSServiceException_1.EKSServiceException({
|
|
2710
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
3621
2711
|
$fault: "client",
|
|
3622
2712
|
$metadata: deserializeMetadata(output),
|
|
3623
|
-
};
|
|
2713
|
+
});
|
|
2714
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
3624
2715
|
}
|
|
3625
|
-
const message = response.message || response.Message || errorCode;
|
|
3626
|
-
response.message = message;
|
|
3627
|
-
delete response.Message;
|
|
3628
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
3629
2716
|
};
|
|
3630
2717
|
const deserializeAws_restJson1UpdateClusterConfigCommand = async (output, context) => {
|
|
3631
2718
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
@@ -3653,67 +2740,31 @@ const deserializeAws_restJson1UpdateClusterConfigCommandError = async (output, c
|
|
|
3653
2740
|
switch (errorCode) {
|
|
3654
2741
|
case "ClientException":
|
|
3655
2742
|
case "com.amazonaws.eks#ClientException":
|
|
3656
|
-
|
|
3657
|
-
...(await deserializeAws_restJson1ClientExceptionResponse(parsedOutput, context)),
|
|
3658
|
-
name: errorCode,
|
|
3659
|
-
$metadata: deserializeMetadata(output),
|
|
3660
|
-
};
|
|
3661
|
-
break;
|
|
2743
|
+
throw await deserializeAws_restJson1ClientExceptionResponse(parsedOutput, context);
|
|
3662
2744
|
case "InvalidParameterException":
|
|
3663
2745
|
case "com.amazonaws.eks#InvalidParameterException":
|
|
3664
|
-
|
|
3665
|
-
...(await deserializeAws_restJson1InvalidParameterExceptionResponse(parsedOutput, context)),
|
|
3666
|
-
name: errorCode,
|
|
3667
|
-
$metadata: deserializeMetadata(output),
|
|
3668
|
-
};
|
|
3669
|
-
break;
|
|
2746
|
+
throw await deserializeAws_restJson1InvalidParameterExceptionResponse(parsedOutput, context);
|
|
3670
2747
|
case "InvalidRequestException":
|
|
3671
2748
|
case "com.amazonaws.eks#InvalidRequestException":
|
|
3672
|
-
|
|
3673
|
-
...(await deserializeAws_restJson1InvalidRequestExceptionResponse(parsedOutput, context)),
|
|
3674
|
-
name: errorCode,
|
|
3675
|
-
$metadata: deserializeMetadata(output),
|
|
3676
|
-
};
|
|
3677
|
-
break;
|
|
2749
|
+
throw await deserializeAws_restJson1InvalidRequestExceptionResponse(parsedOutput, context);
|
|
3678
2750
|
case "ResourceInUseException":
|
|
3679
2751
|
case "com.amazonaws.eks#ResourceInUseException":
|
|
3680
|
-
|
|
3681
|
-
...(await deserializeAws_restJson1ResourceInUseExceptionResponse(parsedOutput, context)),
|
|
3682
|
-
name: errorCode,
|
|
3683
|
-
$metadata: deserializeMetadata(output),
|
|
3684
|
-
};
|
|
3685
|
-
break;
|
|
2752
|
+
throw await deserializeAws_restJson1ResourceInUseExceptionResponse(parsedOutput, context);
|
|
3686
2753
|
case "ResourceNotFoundException":
|
|
3687
2754
|
case "com.amazonaws.eks#ResourceNotFoundException":
|
|
3688
|
-
|
|
3689
|
-
...(await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)),
|
|
3690
|
-
name: errorCode,
|
|
3691
|
-
$metadata: deserializeMetadata(output),
|
|
3692
|
-
};
|
|
3693
|
-
break;
|
|
2755
|
+
throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
3694
2756
|
case "ServerException":
|
|
3695
2757
|
case "com.amazonaws.eks#ServerException":
|
|
3696
|
-
|
|
3697
|
-
...(await deserializeAws_restJson1ServerExceptionResponse(parsedOutput, context)),
|
|
3698
|
-
name: errorCode,
|
|
3699
|
-
$metadata: deserializeMetadata(output),
|
|
3700
|
-
};
|
|
3701
|
-
break;
|
|
2758
|
+
throw await deserializeAws_restJson1ServerExceptionResponse(parsedOutput, context);
|
|
3702
2759
|
default:
|
|
3703
2760
|
const parsedBody = parsedOutput.body;
|
|
3704
|
-
|
|
3705
|
-
|
|
3706
|
-
...parsedBody,
|
|
3707
|
-
name: `${errorCode}`,
|
|
3708
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
2761
|
+
response = new EKSServiceException_1.EKSServiceException({
|
|
2762
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
3709
2763
|
$fault: "client",
|
|
3710
2764
|
$metadata: deserializeMetadata(output),
|
|
3711
|
-
};
|
|
2765
|
+
});
|
|
2766
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
3712
2767
|
}
|
|
3713
|
-
const message = response.message || response.Message || errorCode;
|
|
3714
|
-
response.message = message;
|
|
3715
|
-
delete response.Message;
|
|
3716
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
3717
2768
|
};
|
|
3718
2769
|
const deserializeAws_restJson1UpdateClusterVersionCommand = async (output, context) => {
|
|
3719
2770
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
@@ -3741,67 +2792,31 @@ const deserializeAws_restJson1UpdateClusterVersionCommandError = async (output,
|
|
|
3741
2792
|
switch (errorCode) {
|
|
3742
2793
|
case "ClientException":
|
|
3743
2794
|
case "com.amazonaws.eks#ClientException":
|
|
3744
|
-
|
|
3745
|
-
...(await deserializeAws_restJson1ClientExceptionResponse(parsedOutput, context)),
|
|
3746
|
-
name: errorCode,
|
|
3747
|
-
$metadata: deserializeMetadata(output),
|
|
3748
|
-
};
|
|
3749
|
-
break;
|
|
2795
|
+
throw await deserializeAws_restJson1ClientExceptionResponse(parsedOutput, context);
|
|
3750
2796
|
case "InvalidParameterException":
|
|
3751
2797
|
case "com.amazonaws.eks#InvalidParameterException":
|
|
3752
|
-
|
|
3753
|
-
...(await deserializeAws_restJson1InvalidParameterExceptionResponse(parsedOutput, context)),
|
|
3754
|
-
name: errorCode,
|
|
3755
|
-
$metadata: deserializeMetadata(output),
|
|
3756
|
-
};
|
|
3757
|
-
break;
|
|
2798
|
+
throw await deserializeAws_restJson1InvalidParameterExceptionResponse(parsedOutput, context);
|
|
3758
2799
|
case "InvalidRequestException":
|
|
3759
2800
|
case "com.amazonaws.eks#InvalidRequestException":
|
|
3760
|
-
|
|
3761
|
-
...(await deserializeAws_restJson1InvalidRequestExceptionResponse(parsedOutput, context)),
|
|
3762
|
-
name: errorCode,
|
|
3763
|
-
$metadata: deserializeMetadata(output),
|
|
3764
|
-
};
|
|
3765
|
-
break;
|
|
2801
|
+
throw await deserializeAws_restJson1InvalidRequestExceptionResponse(parsedOutput, context);
|
|
3766
2802
|
case "ResourceInUseException":
|
|
3767
2803
|
case "com.amazonaws.eks#ResourceInUseException":
|
|
3768
|
-
|
|
3769
|
-
...(await deserializeAws_restJson1ResourceInUseExceptionResponse(parsedOutput, context)),
|
|
3770
|
-
name: errorCode,
|
|
3771
|
-
$metadata: deserializeMetadata(output),
|
|
3772
|
-
};
|
|
3773
|
-
break;
|
|
2804
|
+
throw await deserializeAws_restJson1ResourceInUseExceptionResponse(parsedOutput, context);
|
|
3774
2805
|
case "ResourceNotFoundException":
|
|
3775
2806
|
case "com.amazonaws.eks#ResourceNotFoundException":
|
|
3776
|
-
|
|
3777
|
-
...(await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)),
|
|
3778
|
-
name: errorCode,
|
|
3779
|
-
$metadata: deserializeMetadata(output),
|
|
3780
|
-
};
|
|
3781
|
-
break;
|
|
2807
|
+
throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
3782
2808
|
case "ServerException":
|
|
3783
2809
|
case "com.amazonaws.eks#ServerException":
|
|
3784
|
-
|
|
3785
|
-
...(await deserializeAws_restJson1ServerExceptionResponse(parsedOutput, context)),
|
|
3786
|
-
name: errorCode,
|
|
3787
|
-
$metadata: deserializeMetadata(output),
|
|
3788
|
-
};
|
|
3789
|
-
break;
|
|
2810
|
+
throw await deserializeAws_restJson1ServerExceptionResponse(parsedOutput, context);
|
|
3790
2811
|
default:
|
|
3791
2812
|
const parsedBody = parsedOutput.body;
|
|
3792
|
-
|
|
3793
|
-
|
|
3794
|
-
...parsedBody,
|
|
3795
|
-
name: `${errorCode}`,
|
|
3796
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
2813
|
+
response = new EKSServiceException_1.EKSServiceException({
|
|
2814
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
3797
2815
|
$fault: "client",
|
|
3798
2816
|
$metadata: deserializeMetadata(output),
|
|
3799
|
-
};
|
|
2817
|
+
});
|
|
2818
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
3800
2819
|
}
|
|
3801
|
-
const message = response.message || response.Message || errorCode;
|
|
3802
|
-
response.message = message;
|
|
3803
|
-
delete response.Message;
|
|
3804
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
3805
2820
|
};
|
|
3806
2821
|
const deserializeAws_restJson1UpdateNodegroupConfigCommand = async (output, context) => {
|
|
3807
2822
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
@@ -3829,67 +2844,31 @@ const deserializeAws_restJson1UpdateNodegroupConfigCommandError = async (output,
|
|
|
3829
2844
|
switch (errorCode) {
|
|
3830
2845
|
case "ClientException":
|
|
3831
2846
|
case "com.amazonaws.eks#ClientException":
|
|
3832
|
-
|
|
3833
|
-
...(await deserializeAws_restJson1ClientExceptionResponse(parsedOutput, context)),
|
|
3834
|
-
name: errorCode,
|
|
3835
|
-
$metadata: deserializeMetadata(output),
|
|
3836
|
-
};
|
|
3837
|
-
break;
|
|
2847
|
+
throw await deserializeAws_restJson1ClientExceptionResponse(parsedOutput, context);
|
|
3838
2848
|
case "InvalidParameterException":
|
|
3839
2849
|
case "com.amazonaws.eks#InvalidParameterException":
|
|
3840
|
-
|
|
3841
|
-
...(await deserializeAws_restJson1InvalidParameterExceptionResponse(parsedOutput, context)),
|
|
3842
|
-
name: errorCode,
|
|
3843
|
-
$metadata: deserializeMetadata(output),
|
|
3844
|
-
};
|
|
3845
|
-
break;
|
|
2850
|
+
throw await deserializeAws_restJson1InvalidParameterExceptionResponse(parsedOutput, context);
|
|
3846
2851
|
case "InvalidRequestException":
|
|
3847
2852
|
case "com.amazonaws.eks#InvalidRequestException":
|
|
3848
|
-
|
|
3849
|
-
...(await deserializeAws_restJson1InvalidRequestExceptionResponse(parsedOutput, context)),
|
|
3850
|
-
name: errorCode,
|
|
3851
|
-
$metadata: deserializeMetadata(output),
|
|
3852
|
-
};
|
|
3853
|
-
break;
|
|
2853
|
+
throw await deserializeAws_restJson1InvalidRequestExceptionResponse(parsedOutput, context);
|
|
3854
2854
|
case "ResourceInUseException":
|
|
3855
2855
|
case "com.amazonaws.eks#ResourceInUseException":
|
|
3856
|
-
|
|
3857
|
-
...(await deserializeAws_restJson1ResourceInUseExceptionResponse(parsedOutput, context)),
|
|
3858
|
-
name: errorCode,
|
|
3859
|
-
$metadata: deserializeMetadata(output),
|
|
3860
|
-
};
|
|
3861
|
-
break;
|
|
2856
|
+
throw await deserializeAws_restJson1ResourceInUseExceptionResponse(parsedOutput, context);
|
|
3862
2857
|
case "ResourceNotFoundException":
|
|
3863
2858
|
case "com.amazonaws.eks#ResourceNotFoundException":
|
|
3864
|
-
|
|
3865
|
-
...(await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)),
|
|
3866
|
-
name: errorCode,
|
|
3867
|
-
$metadata: deserializeMetadata(output),
|
|
3868
|
-
};
|
|
3869
|
-
break;
|
|
2859
|
+
throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
3870
2860
|
case "ServerException":
|
|
3871
2861
|
case "com.amazonaws.eks#ServerException":
|
|
3872
|
-
|
|
3873
|
-
...(await deserializeAws_restJson1ServerExceptionResponse(parsedOutput, context)),
|
|
3874
|
-
name: errorCode,
|
|
3875
|
-
$metadata: deserializeMetadata(output),
|
|
3876
|
-
};
|
|
3877
|
-
break;
|
|
2862
|
+
throw await deserializeAws_restJson1ServerExceptionResponse(parsedOutput, context);
|
|
3878
2863
|
default:
|
|
3879
2864
|
const parsedBody = parsedOutput.body;
|
|
3880
|
-
|
|
3881
|
-
|
|
3882
|
-
...parsedBody,
|
|
3883
|
-
name: `${errorCode}`,
|
|
3884
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
2865
|
+
response = new EKSServiceException_1.EKSServiceException({
|
|
2866
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
3885
2867
|
$fault: "client",
|
|
3886
2868
|
$metadata: deserializeMetadata(output),
|
|
3887
|
-
};
|
|
2869
|
+
});
|
|
2870
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
3888
2871
|
}
|
|
3889
|
-
const message = response.message || response.Message || errorCode;
|
|
3890
|
-
response.message = message;
|
|
3891
|
-
delete response.Message;
|
|
3892
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
3893
2872
|
};
|
|
3894
2873
|
const deserializeAws_restJson1UpdateNodegroupVersionCommand = async (output, context) => {
|
|
3895
2874
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
@@ -3917,104 +2896,58 @@ const deserializeAws_restJson1UpdateNodegroupVersionCommandError = async (output
|
|
|
3917
2896
|
switch (errorCode) {
|
|
3918
2897
|
case "ClientException":
|
|
3919
2898
|
case "com.amazonaws.eks#ClientException":
|
|
3920
|
-
|
|
3921
|
-
...(await deserializeAws_restJson1ClientExceptionResponse(parsedOutput, context)),
|
|
3922
|
-
name: errorCode,
|
|
3923
|
-
$metadata: deserializeMetadata(output),
|
|
3924
|
-
};
|
|
3925
|
-
break;
|
|
2899
|
+
throw await deserializeAws_restJson1ClientExceptionResponse(parsedOutput, context);
|
|
3926
2900
|
case "InvalidParameterException":
|
|
3927
2901
|
case "com.amazonaws.eks#InvalidParameterException":
|
|
3928
|
-
|
|
3929
|
-
...(await deserializeAws_restJson1InvalidParameterExceptionResponse(parsedOutput, context)),
|
|
3930
|
-
name: errorCode,
|
|
3931
|
-
$metadata: deserializeMetadata(output),
|
|
3932
|
-
};
|
|
3933
|
-
break;
|
|
2902
|
+
throw await deserializeAws_restJson1InvalidParameterExceptionResponse(parsedOutput, context);
|
|
3934
2903
|
case "InvalidRequestException":
|
|
3935
2904
|
case "com.amazonaws.eks#InvalidRequestException":
|
|
3936
|
-
|
|
3937
|
-
...(await deserializeAws_restJson1InvalidRequestExceptionResponse(parsedOutput, context)),
|
|
3938
|
-
name: errorCode,
|
|
3939
|
-
$metadata: deserializeMetadata(output),
|
|
3940
|
-
};
|
|
3941
|
-
break;
|
|
2905
|
+
throw await deserializeAws_restJson1InvalidRequestExceptionResponse(parsedOutput, context);
|
|
3942
2906
|
case "ResourceInUseException":
|
|
3943
2907
|
case "com.amazonaws.eks#ResourceInUseException":
|
|
3944
|
-
|
|
3945
|
-
...(await deserializeAws_restJson1ResourceInUseExceptionResponse(parsedOutput, context)),
|
|
3946
|
-
name: errorCode,
|
|
3947
|
-
$metadata: deserializeMetadata(output),
|
|
3948
|
-
};
|
|
3949
|
-
break;
|
|
2908
|
+
throw await deserializeAws_restJson1ResourceInUseExceptionResponse(parsedOutput, context);
|
|
3950
2909
|
case "ResourceNotFoundException":
|
|
3951
2910
|
case "com.amazonaws.eks#ResourceNotFoundException":
|
|
3952
|
-
|
|
3953
|
-
...(await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)),
|
|
3954
|
-
name: errorCode,
|
|
3955
|
-
$metadata: deserializeMetadata(output),
|
|
3956
|
-
};
|
|
3957
|
-
break;
|
|
2911
|
+
throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
3958
2912
|
case "ServerException":
|
|
3959
2913
|
case "com.amazonaws.eks#ServerException":
|
|
3960
|
-
|
|
3961
|
-
...(await deserializeAws_restJson1ServerExceptionResponse(parsedOutput, context)),
|
|
3962
|
-
name: errorCode,
|
|
3963
|
-
$metadata: deserializeMetadata(output),
|
|
3964
|
-
};
|
|
3965
|
-
break;
|
|
2914
|
+
throw await deserializeAws_restJson1ServerExceptionResponse(parsedOutput, context);
|
|
3966
2915
|
default:
|
|
3967
2916
|
const parsedBody = parsedOutput.body;
|
|
3968
|
-
|
|
3969
|
-
|
|
3970
|
-
...parsedBody,
|
|
3971
|
-
name: `${errorCode}`,
|
|
3972
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
2917
|
+
response = new EKSServiceException_1.EKSServiceException({
|
|
2918
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
3973
2919
|
$fault: "client",
|
|
3974
2920
|
$metadata: deserializeMetadata(output),
|
|
3975
|
-
};
|
|
2921
|
+
});
|
|
2922
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
3976
2923
|
}
|
|
3977
|
-
const message = response.message || response.Message || errorCode;
|
|
3978
|
-
response.message = message;
|
|
3979
|
-
delete response.Message;
|
|
3980
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
3981
2924
|
};
|
|
3982
2925
|
const deserializeAws_restJson1AccessDeniedExceptionResponse = async (parsedOutput, context) => {
|
|
3983
|
-
const contents = {
|
|
3984
|
-
name: "AccessDeniedException",
|
|
3985
|
-
$fault: "client",
|
|
3986
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
3987
|
-
message: undefined,
|
|
3988
|
-
};
|
|
2926
|
+
const contents = {};
|
|
3989
2927
|
const data = parsedOutput.body;
|
|
3990
2928
|
if (data.message !== undefined && data.message !== null) {
|
|
3991
2929
|
contents.message = smithy_client_1.expectString(data.message);
|
|
3992
2930
|
}
|
|
3993
|
-
|
|
2931
|
+
const exception = new models_0_1.AccessDeniedException({
|
|
2932
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
2933
|
+
...contents,
|
|
2934
|
+
});
|
|
2935
|
+
return smithy_client_1.decorateServiceException(exception, parsedOutput.body);
|
|
3994
2936
|
};
|
|
3995
2937
|
const deserializeAws_restJson1BadRequestExceptionResponse = async (parsedOutput, context) => {
|
|
3996
|
-
const contents = {
|
|
3997
|
-
name: "BadRequestException",
|
|
3998
|
-
$fault: "client",
|
|
3999
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
4000
|
-
message: undefined,
|
|
4001
|
-
};
|
|
2938
|
+
const contents = {};
|
|
4002
2939
|
const data = parsedOutput.body;
|
|
4003
2940
|
if (data.message !== undefined && data.message !== null) {
|
|
4004
2941
|
contents.message = smithy_client_1.expectString(data.message);
|
|
4005
2942
|
}
|
|
4006
|
-
|
|
2943
|
+
const exception = new models_0_1.BadRequestException({
|
|
2944
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
2945
|
+
...contents,
|
|
2946
|
+
});
|
|
2947
|
+
return smithy_client_1.decorateServiceException(exception, parsedOutput.body);
|
|
4007
2948
|
};
|
|
4008
2949
|
const deserializeAws_restJson1ClientExceptionResponse = async (parsedOutput, context) => {
|
|
4009
|
-
const contents = {
|
|
4010
|
-
name: "ClientException",
|
|
4011
|
-
$fault: "client",
|
|
4012
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
4013
|
-
addonName: undefined,
|
|
4014
|
-
clusterName: undefined,
|
|
4015
|
-
message: undefined,
|
|
4016
|
-
nodegroupName: undefined,
|
|
4017
|
-
};
|
|
2950
|
+
const contents = {};
|
|
4018
2951
|
const data = parsedOutput.body;
|
|
4019
2952
|
if (data.addonName !== undefined && data.addonName !== null) {
|
|
4020
2953
|
contents.addonName = smithy_client_1.expectString(data.addonName);
|
|
@@ -4028,19 +2961,14 @@ const deserializeAws_restJson1ClientExceptionResponse = async (parsedOutput, con
|
|
|
4028
2961
|
if (data.nodegroupName !== undefined && data.nodegroupName !== null) {
|
|
4029
2962
|
contents.nodegroupName = smithy_client_1.expectString(data.nodegroupName);
|
|
4030
2963
|
}
|
|
4031
|
-
|
|
2964
|
+
const exception = new models_0_1.ClientException({
|
|
2965
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
2966
|
+
...contents,
|
|
2967
|
+
});
|
|
2968
|
+
return smithy_client_1.decorateServiceException(exception, parsedOutput.body);
|
|
4032
2969
|
};
|
|
4033
2970
|
const deserializeAws_restJson1InvalidParameterExceptionResponse = async (parsedOutput, context) => {
|
|
4034
|
-
const contents = {
|
|
4035
|
-
name: "InvalidParameterException",
|
|
4036
|
-
$fault: "client",
|
|
4037
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
4038
|
-
addonName: undefined,
|
|
4039
|
-
clusterName: undefined,
|
|
4040
|
-
fargateProfileName: undefined,
|
|
4041
|
-
message: undefined,
|
|
4042
|
-
nodegroupName: undefined,
|
|
4043
|
-
};
|
|
2971
|
+
const contents = {};
|
|
4044
2972
|
const data = parsedOutput.body;
|
|
4045
2973
|
if (data.addonName !== undefined && data.addonName !== null) {
|
|
4046
2974
|
contents.addonName = smithy_client_1.expectString(data.addonName);
|
|
@@ -4057,18 +2985,14 @@ const deserializeAws_restJson1InvalidParameterExceptionResponse = async (parsedO
|
|
|
4057
2985
|
if (data.nodegroupName !== undefined && data.nodegroupName !== null) {
|
|
4058
2986
|
contents.nodegroupName = smithy_client_1.expectString(data.nodegroupName);
|
|
4059
2987
|
}
|
|
4060
|
-
|
|
2988
|
+
const exception = new models_0_1.InvalidParameterException({
|
|
2989
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
2990
|
+
...contents,
|
|
2991
|
+
});
|
|
2992
|
+
return smithy_client_1.decorateServiceException(exception, parsedOutput.body);
|
|
4061
2993
|
};
|
|
4062
2994
|
const deserializeAws_restJson1InvalidRequestExceptionResponse = async (parsedOutput, context) => {
|
|
4063
|
-
const contents = {
|
|
4064
|
-
name: "InvalidRequestException",
|
|
4065
|
-
$fault: "client",
|
|
4066
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
4067
|
-
addonName: undefined,
|
|
4068
|
-
clusterName: undefined,
|
|
4069
|
-
message: undefined,
|
|
4070
|
-
nodegroupName: undefined,
|
|
4071
|
-
};
|
|
2995
|
+
const contents = {};
|
|
4072
2996
|
const data = parsedOutput.body;
|
|
4073
2997
|
if (data.addonName !== undefined && data.addonName !== null) {
|
|
4074
2998
|
contents.addonName = smithy_client_1.expectString(data.addonName);
|
|
@@ -4082,31 +3006,26 @@ const deserializeAws_restJson1InvalidRequestExceptionResponse = async (parsedOut
|
|
|
4082
3006
|
if (data.nodegroupName !== undefined && data.nodegroupName !== null) {
|
|
4083
3007
|
contents.nodegroupName = smithy_client_1.expectString(data.nodegroupName);
|
|
4084
3008
|
}
|
|
4085
|
-
|
|
3009
|
+
const exception = new models_0_1.InvalidRequestException({
|
|
3010
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
3011
|
+
...contents,
|
|
3012
|
+
});
|
|
3013
|
+
return smithy_client_1.decorateServiceException(exception, parsedOutput.body);
|
|
4086
3014
|
};
|
|
4087
3015
|
const deserializeAws_restJson1NotFoundExceptionResponse = async (parsedOutput, context) => {
|
|
4088
|
-
const contents = {
|
|
4089
|
-
name: "NotFoundException",
|
|
4090
|
-
$fault: "client",
|
|
4091
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
4092
|
-
message: undefined,
|
|
4093
|
-
};
|
|
3016
|
+
const contents = {};
|
|
4094
3017
|
const data = parsedOutput.body;
|
|
4095
3018
|
if (data.message !== undefined && data.message !== null) {
|
|
4096
3019
|
contents.message = smithy_client_1.expectString(data.message);
|
|
4097
3020
|
}
|
|
4098
|
-
|
|
3021
|
+
const exception = new models_0_1.NotFoundException({
|
|
3022
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
3023
|
+
...contents,
|
|
3024
|
+
});
|
|
3025
|
+
return smithy_client_1.decorateServiceException(exception, parsedOutput.body);
|
|
4099
3026
|
};
|
|
4100
3027
|
const deserializeAws_restJson1ResourceInUseExceptionResponse = async (parsedOutput, context) => {
|
|
4101
|
-
const contents = {
|
|
4102
|
-
name: "ResourceInUseException",
|
|
4103
|
-
$fault: "client",
|
|
4104
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
4105
|
-
addonName: undefined,
|
|
4106
|
-
clusterName: undefined,
|
|
4107
|
-
message: undefined,
|
|
4108
|
-
nodegroupName: undefined,
|
|
4109
|
-
};
|
|
3028
|
+
const contents = {};
|
|
4110
3029
|
const data = parsedOutput.body;
|
|
4111
3030
|
if (data.addonName !== undefined && data.addonName !== null) {
|
|
4112
3031
|
contents.addonName = smithy_client_1.expectString(data.addonName);
|
|
@@ -4120,17 +3039,14 @@ const deserializeAws_restJson1ResourceInUseExceptionResponse = async (parsedOutp
|
|
|
4120
3039
|
if (data.nodegroupName !== undefined && data.nodegroupName !== null) {
|
|
4121
3040
|
contents.nodegroupName = smithy_client_1.expectString(data.nodegroupName);
|
|
4122
3041
|
}
|
|
4123
|
-
|
|
3042
|
+
const exception = new models_0_1.ResourceInUseException({
|
|
3043
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
3044
|
+
...contents,
|
|
3045
|
+
});
|
|
3046
|
+
return smithy_client_1.decorateServiceException(exception, parsedOutput.body);
|
|
4124
3047
|
};
|
|
4125
3048
|
const deserializeAws_restJson1ResourceLimitExceededExceptionResponse = async (parsedOutput, context) => {
|
|
4126
|
-
const contents = {
|
|
4127
|
-
name: "ResourceLimitExceededException",
|
|
4128
|
-
$fault: "client",
|
|
4129
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
4130
|
-
clusterName: undefined,
|
|
4131
|
-
message: undefined,
|
|
4132
|
-
nodegroupName: undefined,
|
|
4133
|
-
};
|
|
3049
|
+
const contents = {};
|
|
4134
3050
|
const data = parsedOutput.body;
|
|
4135
3051
|
if (data.clusterName !== undefined && data.clusterName !== null) {
|
|
4136
3052
|
contents.clusterName = smithy_client_1.expectString(data.clusterName);
|
|
@@ -4141,19 +3057,14 @@ const deserializeAws_restJson1ResourceLimitExceededExceptionResponse = async (pa
|
|
|
4141
3057
|
if (data.nodegroupName !== undefined && data.nodegroupName !== null) {
|
|
4142
3058
|
contents.nodegroupName = smithy_client_1.expectString(data.nodegroupName);
|
|
4143
3059
|
}
|
|
4144
|
-
|
|
3060
|
+
const exception = new models_0_1.ResourceLimitExceededException({
|
|
3061
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
3062
|
+
...contents,
|
|
3063
|
+
});
|
|
3064
|
+
return smithy_client_1.decorateServiceException(exception, parsedOutput.body);
|
|
4145
3065
|
};
|
|
4146
3066
|
const deserializeAws_restJson1ResourceNotFoundExceptionResponse = async (parsedOutput, context) => {
|
|
4147
|
-
const contents = {
|
|
4148
|
-
name: "ResourceNotFoundException",
|
|
4149
|
-
$fault: "client",
|
|
4150
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
4151
|
-
addonName: undefined,
|
|
4152
|
-
clusterName: undefined,
|
|
4153
|
-
fargateProfileName: undefined,
|
|
4154
|
-
message: undefined,
|
|
4155
|
-
nodegroupName: undefined,
|
|
4156
|
-
};
|
|
3067
|
+
const contents = {};
|
|
4157
3068
|
const data = parsedOutput.body;
|
|
4158
3069
|
if (data.addonName !== undefined && data.addonName !== null) {
|
|
4159
3070
|
contents.addonName = smithy_client_1.expectString(data.addonName);
|
|
@@ -4170,31 +3081,26 @@ const deserializeAws_restJson1ResourceNotFoundExceptionResponse = async (parsedO
|
|
|
4170
3081
|
if (data.nodegroupName !== undefined && data.nodegroupName !== null) {
|
|
4171
3082
|
contents.nodegroupName = smithy_client_1.expectString(data.nodegroupName);
|
|
4172
3083
|
}
|
|
4173
|
-
|
|
3084
|
+
const exception = new models_0_1.ResourceNotFoundException({
|
|
3085
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
3086
|
+
...contents,
|
|
3087
|
+
});
|
|
3088
|
+
return smithy_client_1.decorateServiceException(exception, parsedOutput.body);
|
|
4174
3089
|
};
|
|
4175
3090
|
const deserializeAws_restJson1ResourcePropagationDelayExceptionResponse = async (parsedOutput, context) => {
|
|
4176
|
-
const contents = {
|
|
4177
|
-
name: "ResourcePropagationDelayException",
|
|
4178
|
-
$fault: "client",
|
|
4179
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
4180
|
-
message: undefined,
|
|
4181
|
-
};
|
|
3091
|
+
const contents = {};
|
|
4182
3092
|
const data = parsedOutput.body;
|
|
4183
3093
|
if (data.message !== undefined && data.message !== null) {
|
|
4184
3094
|
contents.message = smithy_client_1.expectString(data.message);
|
|
4185
3095
|
}
|
|
4186
|
-
|
|
3096
|
+
const exception = new models_0_1.ResourcePropagationDelayException({
|
|
3097
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
3098
|
+
...contents,
|
|
3099
|
+
});
|
|
3100
|
+
return smithy_client_1.decorateServiceException(exception, parsedOutput.body);
|
|
4187
3101
|
};
|
|
4188
3102
|
const deserializeAws_restJson1ServerExceptionResponse = async (parsedOutput, context) => {
|
|
4189
|
-
const contents = {
|
|
4190
|
-
name: "ServerException",
|
|
4191
|
-
$fault: "server",
|
|
4192
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
4193
|
-
addonName: undefined,
|
|
4194
|
-
clusterName: undefined,
|
|
4195
|
-
message: undefined,
|
|
4196
|
-
nodegroupName: undefined,
|
|
4197
|
-
};
|
|
3103
|
+
const contents = {};
|
|
4198
3104
|
const data = parsedOutput.body;
|
|
4199
3105
|
if (data.addonName !== undefined && data.addonName !== null) {
|
|
4200
3106
|
contents.addonName = smithy_client_1.expectString(data.addonName);
|
|
@@ -4208,31 +3114,26 @@ const deserializeAws_restJson1ServerExceptionResponse = async (parsedOutput, con
|
|
|
4208
3114
|
if (data.nodegroupName !== undefined && data.nodegroupName !== null) {
|
|
4209
3115
|
contents.nodegroupName = smithy_client_1.expectString(data.nodegroupName);
|
|
4210
3116
|
}
|
|
4211
|
-
|
|
3117
|
+
const exception = new models_0_1.ServerException({
|
|
3118
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
3119
|
+
...contents,
|
|
3120
|
+
});
|
|
3121
|
+
return smithy_client_1.decorateServiceException(exception, parsedOutput.body);
|
|
4212
3122
|
};
|
|
4213
3123
|
const deserializeAws_restJson1ServiceUnavailableExceptionResponse = async (parsedOutput, context) => {
|
|
4214
|
-
const contents = {
|
|
4215
|
-
name: "ServiceUnavailableException",
|
|
4216
|
-
$fault: "server",
|
|
4217
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
4218
|
-
message: undefined,
|
|
4219
|
-
};
|
|
3124
|
+
const contents = {};
|
|
4220
3125
|
const data = parsedOutput.body;
|
|
4221
3126
|
if (data.message !== undefined && data.message !== null) {
|
|
4222
3127
|
contents.message = smithy_client_1.expectString(data.message);
|
|
4223
3128
|
}
|
|
4224
|
-
|
|
3129
|
+
const exception = new models_0_1.ServiceUnavailableException({
|
|
3130
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
3131
|
+
...contents,
|
|
3132
|
+
});
|
|
3133
|
+
return smithy_client_1.decorateServiceException(exception, parsedOutput.body);
|
|
4225
3134
|
};
|
|
4226
3135
|
const deserializeAws_restJson1UnsupportedAvailabilityZoneExceptionResponse = async (parsedOutput, context) => {
|
|
4227
|
-
const contents = {
|
|
4228
|
-
name: "UnsupportedAvailabilityZoneException",
|
|
4229
|
-
$fault: "client",
|
|
4230
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
4231
|
-
clusterName: undefined,
|
|
4232
|
-
message: undefined,
|
|
4233
|
-
nodegroupName: undefined,
|
|
4234
|
-
validZones: undefined,
|
|
4235
|
-
};
|
|
3136
|
+
const contents = {};
|
|
4236
3137
|
const data = parsedOutput.body;
|
|
4237
3138
|
if (data.clusterName !== undefined && data.clusterName !== null) {
|
|
4238
3139
|
contents.clusterName = smithy_client_1.expectString(data.clusterName);
|
|
@@ -4246,7 +3147,11 @@ const deserializeAws_restJson1UnsupportedAvailabilityZoneExceptionResponse = asy
|
|
|
4246
3147
|
if (data.validZones !== undefined && data.validZones !== null) {
|
|
4247
3148
|
contents.validZones = deserializeAws_restJson1StringList(data.validZones, context);
|
|
4248
3149
|
}
|
|
4249
|
-
|
|
3150
|
+
const exception = new models_0_1.UnsupportedAvailabilityZoneException({
|
|
3151
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
3152
|
+
...contents,
|
|
3153
|
+
});
|
|
3154
|
+
return smithy_client_1.decorateServiceException(exception, parsedOutput.body);
|
|
4250
3155
|
};
|
|
4251
3156
|
const serializeAws_restJson1ConnectorConfigRequest = (input, context) => {
|
|
4252
3157
|
return {
|
|
@@ -4559,7 +3464,7 @@ const deserializeAws_restJson1AddonIssue = (output, context) => {
|
|
|
4559
3464
|
};
|
|
4560
3465
|
};
|
|
4561
3466
|
const deserializeAws_restJson1AddonIssueList = (output, context) => {
|
|
4562
|
-
|
|
3467
|
+
const retVal = (output || [])
|
|
4563
3468
|
.filter((e) => e != null)
|
|
4564
3469
|
.map((entry) => {
|
|
4565
3470
|
if (entry === null) {
|
|
@@ -4567,9 +3472,10 @@ const deserializeAws_restJson1AddonIssueList = (output, context) => {
|
|
|
4567
3472
|
}
|
|
4568
3473
|
return deserializeAws_restJson1AddonIssue(entry, context);
|
|
4569
3474
|
});
|
|
3475
|
+
return retVal;
|
|
4570
3476
|
};
|
|
4571
3477
|
const deserializeAws_restJson1Addons = (output, context) => {
|
|
4572
|
-
|
|
3478
|
+
const retVal = (output || [])
|
|
4573
3479
|
.filter((e) => e != null)
|
|
4574
3480
|
.map((entry) => {
|
|
4575
3481
|
if (entry === null) {
|
|
@@ -4577,6 +3483,7 @@ const deserializeAws_restJson1Addons = (output, context) => {
|
|
|
4577
3483
|
}
|
|
4578
3484
|
return deserializeAws_restJson1AddonInfo(entry, context);
|
|
4579
3485
|
});
|
|
3486
|
+
return retVal;
|
|
4580
3487
|
};
|
|
4581
3488
|
const deserializeAws_restJson1AddonVersionInfo = (output, context) => {
|
|
4582
3489
|
return {
|
|
@@ -4590,7 +3497,7 @@ const deserializeAws_restJson1AddonVersionInfo = (output, context) => {
|
|
|
4590
3497
|
};
|
|
4591
3498
|
};
|
|
4592
3499
|
const deserializeAws_restJson1AddonVersionInfoList = (output, context) => {
|
|
4593
|
-
|
|
3500
|
+
const retVal = (output || [])
|
|
4594
3501
|
.filter((e) => e != null)
|
|
4595
3502
|
.map((entry) => {
|
|
4596
3503
|
if (entry === null) {
|
|
@@ -4598,6 +3505,7 @@ const deserializeAws_restJson1AddonVersionInfoList = (output, context) => {
|
|
|
4598
3505
|
}
|
|
4599
3506
|
return deserializeAws_restJson1AddonVersionInfo(entry, context);
|
|
4600
3507
|
});
|
|
3508
|
+
return retVal;
|
|
4601
3509
|
};
|
|
4602
3510
|
const deserializeAws_restJson1AutoScalingGroup = (output, context) => {
|
|
4603
3511
|
return {
|
|
@@ -4605,7 +3513,7 @@ const deserializeAws_restJson1AutoScalingGroup = (output, context) => {
|
|
|
4605
3513
|
};
|
|
4606
3514
|
};
|
|
4607
3515
|
const deserializeAws_restJson1AutoScalingGroupList = (output, context) => {
|
|
4608
|
-
|
|
3516
|
+
const retVal = (output || [])
|
|
4609
3517
|
.filter((e) => e != null)
|
|
4610
3518
|
.map((entry) => {
|
|
4611
3519
|
if (entry === null) {
|
|
@@ -4613,6 +3521,7 @@ const deserializeAws_restJson1AutoScalingGroupList = (output, context) => {
|
|
|
4613
3521
|
}
|
|
4614
3522
|
return deserializeAws_restJson1AutoScalingGroup(entry, context);
|
|
4615
3523
|
});
|
|
3524
|
+
return retVal;
|
|
4616
3525
|
};
|
|
4617
3526
|
const deserializeAws_restJson1Certificate = (output, context) => {
|
|
4618
3527
|
return {
|
|
@@ -4659,7 +3568,7 @@ const deserializeAws_restJson1Cluster = (output, context) => {
|
|
|
4659
3568
|
};
|
|
4660
3569
|
};
|
|
4661
3570
|
const deserializeAws_restJson1Compatibilities = (output, context) => {
|
|
4662
|
-
|
|
3571
|
+
const retVal = (output || [])
|
|
4663
3572
|
.filter((e) => e != null)
|
|
4664
3573
|
.map((entry) => {
|
|
4665
3574
|
if (entry === null) {
|
|
@@ -4667,6 +3576,7 @@ const deserializeAws_restJson1Compatibilities = (output, context) => {
|
|
|
4667
3576
|
}
|
|
4668
3577
|
return deserializeAws_restJson1Compatibility(entry, context);
|
|
4669
3578
|
});
|
|
3579
|
+
return retVal;
|
|
4670
3580
|
};
|
|
4671
3581
|
const deserializeAws_restJson1Compatibility = (output, context) => {
|
|
4672
3582
|
return {
|
|
@@ -4699,7 +3609,7 @@ const deserializeAws_restJson1EncryptionConfig = (output, context) => {
|
|
|
4699
3609
|
};
|
|
4700
3610
|
};
|
|
4701
3611
|
const deserializeAws_restJson1EncryptionConfigList = (output, context) => {
|
|
4702
|
-
|
|
3612
|
+
const retVal = (output || [])
|
|
4703
3613
|
.filter((e) => e != null)
|
|
4704
3614
|
.map((entry) => {
|
|
4705
3615
|
if (entry === null) {
|
|
@@ -4707,6 +3617,7 @@ const deserializeAws_restJson1EncryptionConfigList = (output, context) => {
|
|
|
4707
3617
|
}
|
|
4708
3618
|
return deserializeAws_restJson1EncryptionConfig(entry, context);
|
|
4709
3619
|
});
|
|
3620
|
+
return retVal;
|
|
4710
3621
|
};
|
|
4711
3622
|
const deserializeAws_restJson1ErrorDetail = (output, context) => {
|
|
4712
3623
|
return {
|
|
@@ -4718,7 +3629,7 @@ const deserializeAws_restJson1ErrorDetail = (output, context) => {
|
|
|
4718
3629
|
};
|
|
4719
3630
|
};
|
|
4720
3631
|
const deserializeAws_restJson1ErrorDetails = (output, context) => {
|
|
4721
|
-
|
|
3632
|
+
const retVal = (output || [])
|
|
4722
3633
|
.filter((e) => e != null)
|
|
4723
3634
|
.map((entry) => {
|
|
4724
3635
|
if (entry === null) {
|
|
@@ -4726,6 +3637,7 @@ const deserializeAws_restJson1ErrorDetails = (output, context) => {
|
|
|
4726
3637
|
}
|
|
4727
3638
|
return deserializeAws_restJson1ErrorDetail(entry, context);
|
|
4728
3639
|
});
|
|
3640
|
+
return retVal;
|
|
4729
3641
|
};
|
|
4730
3642
|
const deserializeAws_restJson1FargateProfile = (output, context) => {
|
|
4731
3643
|
return {
|
|
@@ -4768,7 +3680,7 @@ const deserializeAws_restJson1FargateProfileSelector = (output, context) => {
|
|
|
4768
3680
|
};
|
|
4769
3681
|
};
|
|
4770
3682
|
const deserializeAws_restJson1FargateProfileSelectors = (output, context) => {
|
|
4771
|
-
|
|
3683
|
+
const retVal = (output || [])
|
|
4772
3684
|
.filter((e) => e != null)
|
|
4773
3685
|
.map((entry) => {
|
|
4774
3686
|
if (entry === null) {
|
|
@@ -4776,6 +3688,7 @@ const deserializeAws_restJson1FargateProfileSelectors = (output, context) => {
|
|
|
4776
3688
|
}
|
|
4777
3689
|
return deserializeAws_restJson1FargateProfileSelector(entry, context);
|
|
4778
3690
|
});
|
|
3691
|
+
return retVal;
|
|
4779
3692
|
};
|
|
4780
3693
|
const deserializeAws_restJson1Identity = (output, context) => {
|
|
4781
3694
|
return {
|
|
@@ -4798,7 +3711,7 @@ const deserializeAws_restJson1IdentityProviderConfigResponse = (output, context)
|
|
|
4798
3711
|
};
|
|
4799
3712
|
};
|
|
4800
3713
|
const deserializeAws_restJson1IdentityProviderConfigs = (output, context) => {
|
|
4801
|
-
|
|
3714
|
+
const retVal = (output || [])
|
|
4802
3715
|
.filter((e) => e != null)
|
|
4803
3716
|
.map((entry) => {
|
|
4804
3717
|
if (entry === null) {
|
|
@@ -4806,6 +3719,7 @@ const deserializeAws_restJson1IdentityProviderConfigs = (output, context) => {
|
|
|
4806
3719
|
}
|
|
4807
3720
|
return deserializeAws_restJson1IdentityProviderConfig(entry, context);
|
|
4808
3721
|
});
|
|
3722
|
+
return retVal;
|
|
4809
3723
|
};
|
|
4810
3724
|
const deserializeAws_restJson1Issue = (output, context) => {
|
|
4811
3725
|
return {
|
|
@@ -4817,7 +3731,7 @@ const deserializeAws_restJson1Issue = (output, context) => {
|
|
|
4817
3731
|
};
|
|
4818
3732
|
};
|
|
4819
3733
|
const deserializeAws_restJson1IssueList = (output, context) => {
|
|
4820
|
-
|
|
3734
|
+
const retVal = (output || [])
|
|
4821
3735
|
.filter((e) => e != null)
|
|
4822
3736
|
.map((entry) => {
|
|
4823
3737
|
if (entry === null) {
|
|
@@ -4825,6 +3739,7 @@ const deserializeAws_restJson1IssueList = (output, context) => {
|
|
|
4825
3739
|
}
|
|
4826
3740
|
return deserializeAws_restJson1Issue(entry, context);
|
|
4827
3741
|
});
|
|
3742
|
+
return retVal;
|
|
4828
3743
|
};
|
|
4829
3744
|
const deserializeAws_restJson1KubernetesNetworkConfigResponse = (output, context) => {
|
|
4830
3745
|
return {
|
|
@@ -4867,7 +3782,7 @@ const deserializeAws_restJson1LogSetup = (output, context) => {
|
|
|
4867
3782
|
};
|
|
4868
3783
|
};
|
|
4869
3784
|
const deserializeAws_restJson1LogSetups = (output, context) => {
|
|
4870
|
-
|
|
3785
|
+
const retVal = (output || [])
|
|
4871
3786
|
.filter((e) => e != null)
|
|
4872
3787
|
.map((entry) => {
|
|
4873
3788
|
if (entry === null) {
|
|
@@ -4875,9 +3790,10 @@ const deserializeAws_restJson1LogSetups = (output, context) => {
|
|
|
4875
3790
|
}
|
|
4876
3791
|
return deserializeAws_restJson1LogSetup(entry, context);
|
|
4877
3792
|
});
|
|
3793
|
+
return retVal;
|
|
4878
3794
|
};
|
|
4879
3795
|
const deserializeAws_restJson1LogTypes = (output, context) => {
|
|
4880
|
-
|
|
3796
|
+
const retVal = (output || [])
|
|
4881
3797
|
.filter((e) => e != null)
|
|
4882
3798
|
.map((entry) => {
|
|
4883
3799
|
if (entry === null) {
|
|
@@ -4885,6 +3801,7 @@ const deserializeAws_restJson1LogTypes = (output, context) => {
|
|
|
4885
3801
|
}
|
|
4886
3802
|
return smithy_client_1.expectString(entry);
|
|
4887
3803
|
});
|
|
3804
|
+
return retVal;
|
|
4888
3805
|
};
|
|
4889
3806
|
const deserializeAws_restJson1Nodegroup = (output, context) => {
|
|
4890
3807
|
return {
|
|
@@ -5017,7 +3934,7 @@ const deserializeAws_restJson1requiredClaimsMap = (output, context) => {
|
|
|
5017
3934
|
}, {});
|
|
5018
3935
|
};
|
|
5019
3936
|
const deserializeAws_restJson1StringList = (output, context) => {
|
|
5020
|
-
|
|
3937
|
+
const retVal = (output || [])
|
|
5021
3938
|
.filter((e) => e != null)
|
|
5022
3939
|
.map((entry) => {
|
|
5023
3940
|
if (entry === null) {
|
|
@@ -5025,6 +3942,7 @@ const deserializeAws_restJson1StringList = (output, context) => {
|
|
|
5025
3942
|
}
|
|
5026
3943
|
return smithy_client_1.expectString(entry);
|
|
5027
3944
|
});
|
|
3945
|
+
return retVal;
|
|
5028
3946
|
};
|
|
5029
3947
|
const deserializeAws_restJson1TagMap = (output, context) => {
|
|
5030
3948
|
return Object.entries(output).reduce((acc, [key, value]) => {
|
|
@@ -5045,7 +3963,7 @@ const deserializeAws_restJson1Taint = (output, context) => {
|
|
|
5045
3963
|
};
|
|
5046
3964
|
};
|
|
5047
3965
|
const deserializeAws_restJson1taintsList = (output, context) => {
|
|
5048
|
-
|
|
3966
|
+
const retVal = (output || [])
|
|
5049
3967
|
.filter((e) => e != null)
|
|
5050
3968
|
.map((entry) => {
|
|
5051
3969
|
if (entry === null) {
|
|
@@ -5053,6 +3971,7 @@ const deserializeAws_restJson1taintsList = (output, context) => {
|
|
|
5053
3971
|
}
|
|
5054
3972
|
return deserializeAws_restJson1Taint(entry, context);
|
|
5055
3973
|
});
|
|
3974
|
+
return retVal;
|
|
5056
3975
|
};
|
|
5057
3976
|
const deserializeAws_restJson1Update = (output, context) => {
|
|
5058
3977
|
return {
|
|
@@ -5077,7 +3996,7 @@ const deserializeAws_restJson1UpdateParam = (output, context) => {
|
|
|
5077
3996
|
};
|
|
5078
3997
|
};
|
|
5079
3998
|
const deserializeAws_restJson1UpdateParams = (output, context) => {
|
|
5080
|
-
|
|
3999
|
+
const retVal = (output || [])
|
|
5081
4000
|
.filter((e) => e != null)
|
|
5082
4001
|
.map((entry) => {
|
|
5083
4002
|
if (entry === null) {
|
|
@@ -5085,6 +4004,7 @@ const deserializeAws_restJson1UpdateParams = (output, context) => {
|
|
|
5085
4004
|
}
|
|
5086
4005
|
return deserializeAws_restJson1UpdateParam(entry, context);
|
|
5087
4006
|
});
|
|
4007
|
+
return retVal;
|
|
5088
4008
|
};
|
|
5089
4009
|
const deserializeAws_restJson1VpcConfigResponse = (output, context) => {
|
|
5090
4010
|
return {
|