@aws-sdk/client-eks 3.28.0 → 3.32.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 +35 -0
- package/EKS.ts +83 -0
- package/EKSClient.ts +6 -0
- package/commands/DeregisterClusterCommand.ts +94 -0
- package/commands/RegisterClusterCommand.ts +103 -0
- package/dist/cjs/EKS.js +30 -0
- package/dist/cjs/EKS.js.map +1 -1
- package/dist/cjs/EKSClient.js.map +1 -1
- package/dist/cjs/commands/DeregisterClusterCommand.js +61 -0
- package/dist/cjs/commands/DeregisterClusterCommand.js.map +1 -0
- package/dist/cjs/commands/RegisterClusterCommand.js +70 -0
- package/dist/cjs/commands/RegisterClusterCommand.js.map +1 -0
- package/dist/cjs/index.js +2 -0
- package/dist/cjs/index.js.map +1 -1
- package/dist/cjs/models/models_0.js +69 -3
- package/dist/cjs/models/models_0.js.map +1 -1
- package/dist/cjs/package.json +32 -32
- package/dist/cjs/protocols/Aws_restJson1.js +279 -45
- package/dist/cjs/protocols/Aws_restJson1.js.map +1 -1
- package/dist/cjs/waiters/waitForClusterDeleted.js +9 -0
- package/dist/cjs/waiters/waitForClusterDeleted.js.map +1 -1
- package/dist/es/EKS.js +30 -0
- package/dist/es/EKS.js.map +1 -1
- package/dist/es/EKSClient.js.map +1 -1
- package/dist/es/commands/DeregisterClusterCommand.js +65 -0
- package/dist/es/commands/DeregisterClusterCommand.js.map +1 -0
- package/dist/es/commands/RegisterClusterCommand.js +74 -0
- package/dist/es/commands/RegisterClusterCommand.js.map +1 -0
- package/dist/es/endpoints.js +1 -2
- package/dist/es/endpoints.js.map +1 -1
- package/dist/es/index.js +2 -0
- package/dist/es/index.js.map +1 -1
- package/dist/es/models/models_0.js +54 -0
- package/dist/es/models/models_0.js.map +1 -1
- package/dist/es/package.json +32 -32
- package/dist/es/protocols/Aws_restJson1.js +459 -135
- package/dist/es/protocols/Aws_restJson1.js.map +1 -1
- package/dist/es/waiters/waitForClusterDeleted.js +10 -1
- package/dist/es/waiters/waitForClusterDeleted.js.map +1 -1
- package/dist/types/EKS.d.ts +23 -0
- package/dist/types/EKSClient.d.ts +4 -2
- package/dist/types/commands/DeregisterClusterCommand.d.ts +35 -0
- package/dist/types/commands/RegisterClusterCommand.d.ts +44 -0
- package/dist/types/index.d.ts +2 -0
- package/dist/types/models/models_0.d.ts +129 -3
- package/dist/types/protocols/Aws_restJson1.d.ts +6 -0
- package/dist/types/ts3.4/EKS.d.ts +23 -0
- package/dist/types/ts3.4/EKSClient.d.ts +4 -2
- package/dist/types/ts3.4/commands/DeregisterClusterCommand.d.ts +35 -0
- package/dist/types/ts3.4/commands/RegisterClusterCommand.d.ts +44 -0
- package/dist/types/ts3.4/index.d.ts +2 -0
- package/dist/types/ts3.4/models/models_0.d.ts +129 -3
- package/dist/types/ts3.4/protocols/Aws_restJson1.d.ts +6 -0
- package/index.ts +2 -0
- package/models/models_0.ts +163 -3
- package/package.json +32 -32
- package/protocols/Aws_restJson1.ts +312 -44
- package/waiters/waitForClusterDeleted.ts +8 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { __assign, __awaiter, __generator, __read } from "tslib";
|
|
2
2
|
import { HttpRequest as __HttpRequest } from "@aws-sdk/protocol-http";
|
|
3
|
-
import { expectBoolean as __expectBoolean,
|
|
3
|
+
import { expectBoolean as __expectBoolean, expectInt32 as __expectInt32, expectNonNull as __expectNonNull, expectNumber as __expectNumber, expectObject as __expectObject, expectString as __expectString, extendedEncodeURIComponent as __extendedEncodeURIComponent, parseEpochTimestamp as __parseEpochTimestamp, } from "@aws-sdk/smithy-client";
|
|
4
4
|
import { v4 as generateIdempotencyToken } from "uuid";
|
|
5
5
|
export var serializeAws_restJson1AssociateEncryptionConfigCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
6
6
|
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, labelValue, body;
|
|
@@ -404,6 +404,37 @@ export var serializeAws_restJson1DeleteNodegroupCommand = function (input, conte
|
|
|
404
404
|
}
|
|
405
405
|
});
|
|
406
406
|
}); };
|
|
407
|
+
export var serializeAws_restJson1DeregisterClusterCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
408
|
+
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, labelValue, body;
|
|
409
|
+
return __generator(this, function (_c) {
|
|
410
|
+
switch (_c.label) {
|
|
411
|
+
case 0: return [4 /*yield*/, context.endpoint()];
|
|
412
|
+
case 1:
|
|
413
|
+
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
414
|
+
headers = {};
|
|
415
|
+
resolvedPath = "" + ((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/cluster-registrations/{name}";
|
|
416
|
+
if (input.name !== undefined) {
|
|
417
|
+
labelValue = input.name;
|
|
418
|
+
if (labelValue.length <= 0) {
|
|
419
|
+
throw new Error("Empty value provided for input HTTP label: name.");
|
|
420
|
+
}
|
|
421
|
+
resolvedPath = resolvedPath.replace("{name}", __extendedEncodeURIComponent(labelValue));
|
|
422
|
+
}
|
|
423
|
+
else {
|
|
424
|
+
throw new Error("No value provided for input HTTP label: name.");
|
|
425
|
+
}
|
|
426
|
+
return [2 /*return*/, new __HttpRequest({
|
|
427
|
+
protocol: protocol,
|
|
428
|
+
hostname: hostname,
|
|
429
|
+
port: port,
|
|
430
|
+
method: "DELETE",
|
|
431
|
+
headers: headers,
|
|
432
|
+
path: resolvedPath,
|
|
433
|
+
body: body,
|
|
434
|
+
})];
|
|
435
|
+
}
|
|
436
|
+
});
|
|
437
|
+
}); };
|
|
407
438
|
export var serializeAws_restJson1DescribeAddonCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
408
439
|
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, labelValue, labelValue, body;
|
|
409
440
|
return __generator(this, function (_c) {
|
|
@@ -746,7 +777,7 @@ export var serializeAws_restJson1ListClustersCommand = function (input, context)
|
|
|
746
777
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
747
778
|
headers = {};
|
|
748
779
|
resolvedPath = "" + ((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/clusters";
|
|
749
|
-
query = __assign(__assign({}, (input.maxResults !== undefined && { maxResults: input.maxResults.toString() })), (input.nextToken !== undefined && { nextToken: input.nextToken }));
|
|
780
|
+
query = __assign(__assign(__assign({}, (input.maxResults !== undefined && { maxResults: input.maxResults.toString() })), (input.nextToken !== undefined && { nextToken: input.nextToken })), (input.include !== undefined && { include: (input.include || []).map(function (_entry) { return _entry; }) }));
|
|
750
781
|
return [2 /*return*/, new __HttpRequest({
|
|
751
782
|
protocol: protocol,
|
|
752
783
|
hostname: hostname,
|
|
@@ -924,6 +955,34 @@ export var serializeAws_restJson1ListUpdatesCommand = function (input, context)
|
|
|
924
955
|
}
|
|
925
956
|
});
|
|
926
957
|
}); };
|
|
958
|
+
export var serializeAws_restJson1RegisterClusterCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
959
|
+
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, body;
|
|
960
|
+
var _c;
|
|
961
|
+
return __generator(this, function (_d) {
|
|
962
|
+
switch (_d.label) {
|
|
963
|
+
case 0: return [4 /*yield*/, context.endpoint()];
|
|
964
|
+
case 1:
|
|
965
|
+
_a = _d.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
966
|
+
headers = {
|
|
967
|
+
"content-type": "application/json",
|
|
968
|
+
};
|
|
969
|
+
resolvedPath = "" + ((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/cluster-registrations";
|
|
970
|
+
body = JSON.stringify(__assign(__assign({ clientRequestToken: (_c = input.clientRequestToken) !== null && _c !== void 0 ? _c : generateIdempotencyToken() }, (input.connectorConfig !== undefined &&
|
|
971
|
+
input.connectorConfig !== null && {
|
|
972
|
+
connectorConfig: serializeAws_restJson1ConnectorConfigRequest(input.connectorConfig, context),
|
|
973
|
+
})), (input.name !== undefined && input.name !== null && { name: input.name })));
|
|
974
|
+
return [2 /*return*/, new __HttpRequest({
|
|
975
|
+
protocol: protocol,
|
|
976
|
+
hostname: hostname,
|
|
977
|
+
port: port,
|
|
978
|
+
method: "POST",
|
|
979
|
+
headers: headers,
|
|
980
|
+
path: resolvedPath,
|
|
981
|
+
body: body,
|
|
982
|
+
})];
|
|
983
|
+
}
|
|
984
|
+
});
|
|
985
|
+
}); };
|
|
927
986
|
export var serializeAws_restJson1TagResourceCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
928
987
|
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, labelValue, body;
|
|
929
988
|
return __generator(this, function (_c) {
|
|
@@ -1218,9 +1277,9 @@ export var serializeAws_restJson1UpdateNodegroupVersionCommand = function (input
|
|
|
1218
1277
|
});
|
|
1219
1278
|
}); };
|
|
1220
1279
|
export var deserializeAws_restJson1AssociateEncryptionConfigCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1221
|
-
var contents, data;
|
|
1222
|
-
return __generator(this, function (
|
|
1223
|
-
switch (
|
|
1280
|
+
var contents, data, _a, _b;
|
|
1281
|
+
return __generator(this, function (_c) {
|
|
1282
|
+
switch (_c.label) {
|
|
1224
1283
|
case 0:
|
|
1225
1284
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1226
1285
|
return [2 /*return*/, deserializeAws_restJson1AssociateEncryptionConfigCommandError(output, context)];
|
|
@@ -1229,9 +1288,11 @@ export var deserializeAws_restJson1AssociateEncryptionConfigCommand = function (
|
|
|
1229
1288
|
$metadata: deserializeMetadata(output),
|
|
1230
1289
|
update: undefined,
|
|
1231
1290
|
};
|
|
1291
|
+
_a = __expectNonNull;
|
|
1292
|
+
_b = __expectObject;
|
|
1232
1293
|
return [4 /*yield*/, parseBody(output.body, context)];
|
|
1233
1294
|
case 1:
|
|
1234
|
-
data = _a.sent();
|
|
1295
|
+
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
1235
1296
|
if (data.update !== undefined && data.update !== null) {
|
|
1236
1297
|
contents.update = deserializeAws_restJson1Update(data.update, context);
|
|
1237
1298
|
}
|
|
@@ -1318,9 +1379,9 @@ var deserializeAws_restJson1AssociateEncryptionConfigCommandError = function (ou
|
|
|
1318
1379
|
});
|
|
1319
1380
|
}); };
|
|
1320
1381
|
export var deserializeAws_restJson1AssociateIdentityProviderConfigCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1321
|
-
var contents, data;
|
|
1322
|
-
return __generator(this, function (
|
|
1323
|
-
switch (
|
|
1382
|
+
var contents, data, _a, _b;
|
|
1383
|
+
return __generator(this, function (_c) {
|
|
1384
|
+
switch (_c.label) {
|
|
1324
1385
|
case 0:
|
|
1325
1386
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1326
1387
|
return [2 /*return*/, deserializeAws_restJson1AssociateIdentityProviderConfigCommandError(output, context)];
|
|
@@ -1330,9 +1391,11 @@ export var deserializeAws_restJson1AssociateIdentityProviderConfigCommand = func
|
|
|
1330
1391
|
tags: undefined,
|
|
1331
1392
|
update: undefined,
|
|
1332
1393
|
};
|
|
1394
|
+
_a = __expectNonNull;
|
|
1395
|
+
_b = __expectObject;
|
|
1333
1396
|
return [4 /*yield*/, parseBody(output.body, context)];
|
|
1334
1397
|
case 1:
|
|
1335
|
-
data = _a.sent();
|
|
1398
|
+
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
1336
1399
|
if (data.tags !== undefined && data.tags !== null) {
|
|
1337
1400
|
contents.tags = deserializeAws_restJson1TagMap(data.tags, context);
|
|
1338
1401
|
}
|
|
@@ -1422,9 +1485,9 @@ var deserializeAws_restJson1AssociateIdentityProviderConfigCommandError = functi
|
|
|
1422
1485
|
});
|
|
1423
1486
|
}); };
|
|
1424
1487
|
export var deserializeAws_restJson1CreateAddonCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1425
|
-
var contents, data;
|
|
1426
|
-
return __generator(this, function (
|
|
1427
|
-
switch (
|
|
1488
|
+
var contents, data, _a, _b;
|
|
1489
|
+
return __generator(this, function (_c) {
|
|
1490
|
+
switch (_c.label) {
|
|
1428
1491
|
case 0:
|
|
1429
1492
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1430
1493
|
return [2 /*return*/, deserializeAws_restJson1CreateAddonCommandError(output, context)];
|
|
@@ -1433,9 +1496,11 @@ export var deserializeAws_restJson1CreateAddonCommand = function (output, contex
|
|
|
1433
1496
|
$metadata: deserializeMetadata(output),
|
|
1434
1497
|
addon: undefined,
|
|
1435
1498
|
};
|
|
1499
|
+
_a = __expectNonNull;
|
|
1500
|
+
_b = __expectObject;
|
|
1436
1501
|
return [4 /*yield*/, parseBody(output.body, context)];
|
|
1437
1502
|
case 1:
|
|
1438
|
-
data = _a.sent();
|
|
1503
|
+
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
1439
1504
|
if (data.addon !== undefined && data.addon !== null) {
|
|
1440
1505
|
contents.addon = deserializeAws_restJson1Addon(data.addon, context);
|
|
1441
1506
|
}
|
|
@@ -1522,9 +1587,9 @@ var deserializeAws_restJson1CreateAddonCommandError = function (output, context)
|
|
|
1522
1587
|
});
|
|
1523
1588
|
}); };
|
|
1524
1589
|
export var deserializeAws_restJson1CreateClusterCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1525
|
-
var contents, data;
|
|
1526
|
-
return __generator(this, function (
|
|
1527
|
-
switch (
|
|
1590
|
+
var contents, data, _a, _b;
|
|
1591
|
+
return __generator(this, function (_c) {
|
|
1592
|
+
switch (_c.label) {
|
|
1528
1593
|
case 0:
|
|
1529
1594
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1530
1595
|
return [2 /*return*/, deserializeAws_restJson1CreateClusterCommandError(output, context)];
|
|
@@ -1533,9 +1598,11 @@ export var deserializeAws_restJson1CreateClusterCommand = function (output, cont
|
|
|
1533
1598
|
$metadata: deserializeMetadata(output),
|
|
1534
1599
|
cluster: undefined,
|
|
1535
1600
|
};
|
|
1601
|
+
_a = __expectNonNull;
|
|
1602
|
+
_b = __expectObject;
|
|
1536
1603
|
return [4 /*yield*/, parseBody(output.body, context)];
|
|
1537
1604
|
case 1:
|
|
1538
|
-
data = _a.sent();
|
|
1605
|
+
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
1539
1606
|
if (data.cluster !== undefined && data.cluster !== null) {
|
|
1540
1607
|
contents.cluster = deserializeAws_restJson1Cluster(data.cluster, context);
|
|
1541
1608
|
}
|
|
@@ -1630,9 +1697,9 @@ var deserializeAws_restJson1CreateClusterCommandError = function (output, contex
|
|
|
1630
1697
|
});
|
|
1631
1698
|
}); };
|
|
1632
1699
|
export var deserializeAws_restJson1CreateFargateProfileCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1633
|
-
var contents, data;
|
|
1634
|
-
return __generator(this, function (
|
|
1635
|
-
switch (
|
|
1700
|
+
var contents, data, _a, _b;
|
|
1701
|
+
return __generator(this, function (_c) {
|
|
1702
|
+
switch (_c.label) {
|
|
1636
1703
|
case 0:
|
|
1637
1704
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1638
1705
|
return [2 /*return*/, deserializeAws_restJson1CreateFargateProfileCommandError(output, context)];
|
|
@@ -1641,9 +1708,11 @@ export var deserializeAws_restJson1CreateFargateProfileCommand = function (outpu
|
|
|
1641
1708
|
$metadata: deserializeMetadata(output),
|
|
1642
1709
|
fargateProfile: undefined,
|
|
1643
1710
|
};
|
|
1711
|
+
_a = __expectNonNull;
|
|
1712
|
+
_b = __expectObject;
|
|
1644
1713
|
return [4 /*yield*/, parseBody(output.body, context)];
|
|
1645
1714
|
case 1:
|
|
1646
|
-
data = _a.sent();
|
|
1715
|
+
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
1647
1716
|
if (data.fargateProfile !== undefined && data.fargateProfile !== null) {
|
|
1648
1717
|
contents.fargateProfile = deserializeAws_restJson1FargateProfile(data.fargateProfile, context);
|
|
1649
1718
|
}
|
|
@@ -1730,9 +1799,9 @@ var deserializeAws_restJson1CreateFargateProfileCommandError = function (output,
|
|
|
1730
1799
|
});
|
|
1731
1800
|
}); };
|
|
1732
1801
|
export var deserializeAws_restJson1CreateNodegroupCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1733
|
-
var contents, data;
|
|
1734
|
-
return __generator(this, function (
|
|
1735
|
-
switch (
|
|
1802
|
+
var contents, data, _a, _b;
|
|
1803
|
+
return __generator(this, function (_c) {
|
|
1804
|
+
switch (_c.label) {
|
|
1736
1805
|
case 0:
|
|
1737
1806
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1738
1807
|
return [2 /*return*/, deserializeAws_restJson1CreateNodegroupCommandError(output, context)];
|
|
@@ -1741,9 +1810,11 @@ export var deserializeAws_restJson1CreateNodegroupCommand = function (output, co
|
|
|
1741
1810
|
$metadata: deserializeMetadata(output),
|
|
1742
1811
|
nodegroup: undefined,
|
|
1743
1812
|
};
|
|
1813
|
+
_a = __expectNonNull;
|
|
1814
|
+
_b = __expectObject;
|
|
1744
1815
|
return [4 /*yield*/, parseBody(output.body, context)];
|
|
1745
1816
|
case 1:
|
|
1746
|
-
data = _a.sent();
|
|
1817
|
+
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
1747
1818
|
if (data.nodegroup !== undefined && data.nodegroup !== null) {
|
|
1748
1819
|
contents.nodegroup = deserializeAws_restJson1Nodegroup(data.nodegroup, context);
|
|
1749
1820
|
}
|
|
@@ -1838,9 +1909,9 @@ var deserializeAws_restJson1CreateNodegroupCommandError = function (output, cont
|
|
|
1838
1909
|
});
|
|
1839
1910
|
}); };
|
|
1840
1911
|
export var deserializeAws_restJson1DeleteAddonCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1841
|
-
var contents, data;
|
|
1842
|
-
return __generator(this, function (
|
|
1843
|
-
switch (
|
|
1912
|
+
var contents, data, _a, _b;
|
|
1913
|
+
return __generator(this, function (_c) {
|
|
1914
|
+
switch (_c.label) {
|
|
1844
1915
|
case 0:
|
|
1845
1916
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1846
1917
|
return [2 /*return*/, deserializeAws_restJson1DeleteAddonCommandError(output, context)];
|
|
@@ -1849,9 +1920,11 @@ export var deserializeAws_restJson1DeleteAddonCommand = function (output, contex
|
|
|
1849
1920
|
$metadata: deserializeMetadata(output),
|
|
1850
1921
|
addon: undefined,
|
|
1851
1922
|
};
|
|
1923
|
+
_a = __expectNonNull;
|
|
1924
|
+
_b = __expectObject;
|
|
1852
1925
|
return [4 /*yield*/, parseBody(output.body, context)];
|
|
1853
1926
|
case 1:
|
|
1854
|
-
data = _a.sent();
|
|
1927
|
+
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
1855
1928
|
if (data.addon !== undefined && data.addon !== null) {
|
|
1856
1929
|
contents.addon = deserializeAws_restJson1Addon(data.addon, context);
|
|
1857
1930
|
}
|
|
@@ -1930,9 +2003,9 @@ var deserializeAws_restJson1DeleteAddonCommandError = function (output, context)
|
|
|
1930
2003
|
});
|
|
1931
2004
|
}); };
|
|
1932
2005
|
export var deserializeAws_restJson1DeleteClusterCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1933
|
-
var contents, data;
|
|
1934
|
-
return __generator(this, function (
|
|
1935
|
-
switch (
|
|
2006
|
+
var contents, data, _a, _b;
|
|
2007
|
+
return __generator(this, function (_c) {
|
|
2008
|
+
switch (_c.label) {
|
|
1936
2009
|
case 0:
|
|
1937
2010
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1938
2011
|
return [2 /*return*/, deserializeAws_restJson1DeleteClusterCommandError(output, context)];
|
|
@@ -1941,9 +2014,11 @@ export var deserializeAws_restJson1DeleteClusterCommand = function (output, cont
|
|
|
1941
2014
|
$metadata: deserializeMetadata(output),
|
|
1942
2015
|
cluster: undefined,
|
|
1943
2016
|
};
|
|
2017
|
+
_a = __expectNonNull;
|
|
2018
|
+
_b = __expectObject;
|
|
1944
2019
|
return [4 /*yield*/, parseBody(output.body, context)];
|
|
1945
2020
|
case 1:
|
|
1946
|
-
data = _a.sent();
|
|
2021
|
+
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
1947
2022
|
if (data.cluster !== undefined && data.cluster !== null) {
|
|
1948
2023
|
contents.cluster = deserializeAws_restJson1Cluster(data.cluster, context);
|
|
1949
2024
|
}
|
|
@@ -2022,9 +2097,9 @@ var deserializeAws_restJson1DeleteClusterCommandError = function (output, contex
|
|
|
2022
2097
|
});
|
|
2023
2098
|
}); };
|
|
2024
2099
|
export var deserializeAws_restJson1DeleteFargateProfileCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2025
|
-
var contents, data;
|
|
2026
|
-
return __generator(this, function (
|
|
2027
|
-
switch (
|
|
2100
|
+
var contents, data, _a, _b;
|
|
2101
|
+
return __generator(this, function (_c) {
|
|
2102
|
+
switch (_c.label) {
|
|
2028
2103
|
case 0:
|
|
2029
2104
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2030
2105
|
return [2 /*return*/, deserializeAws_restJson1DeleteFargateProfileCommandError(output, context)];
|
|
@@ -2033,9 +2108,11 @@ export var deserializeAws_restJson1DeleteFargateProfileCommand = function (outpu
|
|
|
2033
2108
|
$metadata: deserializeMetadata(output),
|
|
2034
2109
|
fargateProfile: undefined,
|
|
2035
2110
|
};
|
|
2111
|
+
_a = __expectNonNull;
|
|
2112
|
+
_b = __expectObject;
|
|
2036
2113
|
return [4 /*yield*/, parseBody(output.body, context)];
|
|
2037
2114
|
case 1:
|
|
2038
|
-
data = _a.sent();
|
|
2115
|
+
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
2039
2116
|
if (data.fargateProfile !== undefined && data.fargateProfile !== null) {
|
|
2040
2117
|
contents.fargateProfile = deserializeAws_restJson1FargateProfile(data.fargateProfile, context);
|
|
2041
2118
|
}
|
|
@@ -2106,9 +2183,9 @@ var deserializeAws_restJson1DeleteFargateProfileCommandError = function (output,
|
|
|
2106
2183
|
});
|
|
2107
2184
|
}); };
|
|
2108
2185
|
export var deserializeAws_restJson1DeleteNodegroupCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2109
|
-
var contents, data;
|
|
2110
|
-
return __generator(this, function (
|
|
2111
|
-
switch (
|
|
2186
|
+
var contents, data, _a, _b;
|
|
2187
|
+
return __generator(this, function (_c) {
|
|
2188
|
+
switch (_c.label) {
|
|
2112
2189
|
case 0:
|
|
2113
2190
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2114
2191
|
return [2 /*return*/, deserializeAws_restJson1DeleteNodegroupCommandError(output, context)];
|
|
@@ -2117,9 +2194,11 @@ export var deserializeAws_restJson1DeleteNodegroupCommand = function (output, co
|
|
|
2117
2194
|
$metadata: deserializeMetadata(output),
|
|
2118
2195
|
nodegroup: undefined,
|
|
2119
2196
|
};
|
|
2197
|
+
_a = __expectNonNull;
|
|
2198
|
+
_b = __expectObject;
|
|
2120
2199
|
return [4 /*yield*/, parseBody(output.body, context)];
|
|
2121
2200
|
case 1:
|
|
2122
|
-
data = _a.sent();
|
|
2201
|
+
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
2123
2202
|
if (data.nodegroup !== undefined && data.nodegroup !== null) {
|
|
2124
2203
|
contents.nodegroup = deserializeAws_restJson1Nodegroup(data.nodegroup, context);
|
|
2125
2204
|
}
|
|
@@ -2205,10 +2284,104 @@ var deserializeAws_restJson1DeleteNodegroupCommandError = function (output, cont
|
|
|
2205
2284
|
}
|
|
2206
2285
|
});
|
|
2207
2286
|
}); };
|
|
2287
|
+
export var deserializeAws_restJson1DeregisterClusterCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2288
|
+
var contents, data, _a, _b;
|
|
2289
|
+
return __generator(this, function (_c) {
|
|
2290
|
+
switch (_c.label) {
|
|
2291
|
+
case 0:
|
|
2292
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2293
|
+
return [2 /*return*/, deserializeAws_restJson1DeregisterClusterCommandError(output, context)];
|
|
2294
|
+
}
|
|
2295
|
+
contents = {
|
|
2296
|
+
$metadata: deserializeMetadata(output),
|
|
2297
|
+
cluster: undefined,
|
|
2298
|
+
};
|
|
2299
|
+
_a = __expectNonNull;
|
|
2300
|
+
_b = __expectObject;
|
|
2301
|
+
return [4 /*yield*/, parseBody(output.body, context)];
|
|
2302
|
+
case 1:
|
|
2303
|
+
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
2304
|
+
if (data.cluster !== undefined && data.cluster !== null) {
|
|
2305
|
+
contents.cluster = deserializeAws_restJson1Cluster(data.cluster, context);
|
|
2306
|
+
}
|
|
2307
|
+
return [2 /*return*/, Promise.resolve(contents)];
|
|
2308
|
+
}
|
|
2309
|
+
});
|
|
2310
|
+
}); };
|
|
2311
|
+
var deserializeAws_restJson1DeregisterClusterCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2312
|
+
var parsedOutput, _a, response, errorCode, _b, _c, _d, _e, _f, _g, parsedBody, message;
|
|
2313
|
+
var _h;
|
|
2314
|
+
return __generator(this, function (_j) {
|
|
2315
|
+
switch (_j.label) {
|
|
2316
|
+
case 0:
|
|
2317
|
+
_a = [__assign({}, output)];
|
|
2318
|
+
_h = {};
|
|
2319
|
+
return [4 /*yield*/, parseBody(output.body, context)];
|
|
2320
|
+
case 1:
|
|
2321
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_h.body = _j.sent(), _h)]));
|
|
2322
|
+
errorCode = "UnknownError";
|
|
2323
|
+
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2324
|
+
_b = errorCode;
|
|
2325
|
+
switch (_b) {
|
|
2326
|
+
case "ClientException": return [3 /*break*/, 2];
|
|
2327
|
+
case "com.amazonaws.eks#ClientException": return [3 /*break*/, 2];
|
|
2328
|
+
case "ResourceInUseException": return [3 /*break*/, 4];
|
|
2329
|
+
case "com.amazonaws.eks#ResourceInUseException": return [3 /*break*/, 4];
|
|
2330
|
+
case "ResourceNotFoundException": return [3 /*break*/, 6];
|
|
2331
|
+
case "com.amazonaws.eks#ResourceNotFoundException": return [3 /*break*/, 6];
|
|
2332
|
+
case "ServerException": return [3 /*break*/, 8];
|
|
2333
|
+
case "com.amazonaws.eks#ServerException": return [3 /*break*/, 8];
|
|
2334
|
+
case "ServiceUnavailableException": return [3 /*break*/, 10];
|
|
2335
|
+
case "com.amazonaws.eks#ServiceUnavailableException": return [3 /*break*/, 10];
|
|
2336
|
+
}
|
|
2337
|
+
return [3 /*break*/, 12];
|
|
2338
|
+
case 2:
|
|
2339
|
+
_c = [{}];
|
|
2340
|
+
return [4 /*yield*/, deserializeAws_restJson1ClientExceptionResponse(parsedOutput, context)];
|
|
2341
|
+
case 3:
|
|
2342
|
+
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2343
|
+
return [3 /*break*/, 13];
|
|
2344
|
+
case 4:
|
|
2345
|
+
_d = [{}];
|
|
2346
|
+
return [4 /*yield*/, deserializeAws_restJson1ResourceInUseExceptionResponse(parsedOutput, context)];
|
|
2347
|
+
case 5:
|
|
2348
|
+
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2349
|
+
return [3 /*break*/, 13];
|
|
2350
|
+
case 6:
|
|
2351
|
+
_e = [{}];
|
|
2352
|
+
return [4 /*yield*/, deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
2353
|
+
case 7:
|
|
2354
|
+
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2355
|
+
return [3 /*break*/, 13];
|
|
2356
|
+
case 8:
|
|
2357
|
+
_f = [{}];
|
|
2358
|
+
return [4 /*yield*/, deserializeAws_restJson1ServerExceptionResponse(parsedOutput, context)];
|
|
2359
|
+
case 9:
|
|
2360
|
+
response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2361
|
+
return [3 /*break*/, 13];
|
|
2362
|
+
case 10:
|
|
2363
|
+
_g = [{}];
|
|
2364
|
+
return [4 /*yield*/, deserializeAws_restJson1ServiceUnavailableExceptionResponse(parsedOutput, context)];
|
|
2365
|
+
case 11:
|
|
2366
|
+
response = __assign.apply(void 0, [__assign.apply(void 0, _g.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2367
|
+
return [3 /*break*/, 13];
|
|
2368
|
+
case 12:
|
|
2369
|
+
parsedBody = parsedOutput.body;
|
|
2370
|
+
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
2371
|
+
response = __assign(__assign({}, parsedBody), { name: "" + errorCode, message: parsedBody.message || parsedBody.Message || errorCode, $fault: "client", $metadata: deserializeMetadata(output) });
|
|
2372
|
+
_j.label = 13;
|
|
2373
|
+
case 13:
|
|
2374
|
+
message = response.message || response.Message || errorCode;
|
|
2375
|
+
response.message = message;
|
|
2376
|
+
delete response.Message;
|
|
2377
|
+
return [2 /*return*/, Promise.reject(Object.assign(new Error(message), response))];
|
|
2378
|
+
}
|
|
2379
|
+
});
|
|
2380
|
+
}); };
|
|
2208
2381
|
export var deserializeAws_restJson1DescribeAddonCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2209
|
-
var contents, data;
|
|
2210
|
-
return __generator(this, function (
|
|
2211
|
-
switch (
|
|
2382
|
+
var contents, data, _a, _b;
|
|
2383
|
+
return __generator(this, function (_c) {
|
|
2384
|
+
switch (_c.label) {
|
|
2212
2385
|
case 0:
|
|
2213
2386
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2214
2387
|
return [2 /*return*/, deserializeAws_restJson1DescribeAddonCommandError(output, context)];
|
|
@@ -2217,9 +2390,11 @@ export var deserializeAws_restJson1DescribeAddonCommand = function (output, cont
|
|
|
2217
2390
|
$metadata: deserializeMetadata(output),
|
|
2218
2391
|
addon: undefined,
|
|
2219
2392
|
};
|
|
2393
|
+
_a = __expectNonNull;
|
|
2394
|
+
_b = __expectObject;
|
|
2220
2395
|
return [4 /*yield*/, parseBody(output.body, context)];
|
|
2221
2396
|
case 1:
|
|
2222
|
-
data = _a.sent();
|
|
2397
|
+
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
2223
2398
|
if (data.addon !== undefined && data.addon !== null) {
|
|
2224
2399
|
contents.addon = deserializeAws_restJson1Addon(data.addon, context);
|
|
2225
2400
|
}
|
|
@@ -2298,9 +2473,9 @@ var deserializeAws_restJson1DescribeAddonCommandError = function (output, contex
|
|
|
2298
2473
|
});
|
|
2299
2474
|
}); };
|
|
2300
2475
|
export var deserializeAws_restJson1DescribeAddonVersionsCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2301
|
-
var contents, data;
|
|
2302
|
-
return __generator(this, function (
|
|
2303
|
-
switch (
|
|
2476
|
+
var contents, data, _a, _b;
|
|
2477
|
+
return __generator(this, function (_c) {
|
|
2478
|
+
switch (_c.label) {
|
|
2304
2479
|
case 0:
|
|
2305
2480
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2306
2481
|
return [2 /*return*/, deserializeAws_restJson1DescribeAddonVersionsCommandError(output, context)];
|
|
@@ -2310,9 +2485,11 @@ export var deserializeAws_restJson1DescribeAddonVersionsCommand = function (outp
|
|
|
2310
2485
|
addons: undefined,
|
|
2311
2486
|
nextToken: undefined,
|
|
2312
2487
|
};
|
|
2488
|
+
_a = __expectNonNull;
|
|
2489
|
+
_b = __expectObject;
|
|
2313
2490
|
return [4 /*yield*/, parseBody(output.body, context)];
|
|
2314
2491
|
case 1:
|
|
2315
|
-
data = _a.sent();
|
|
2492
|
+
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
2316
2493
|
if (data.addons !== undefined && data.addons !== null) {
|
|
2317
2494
|
contents.addons = deserializeAws_restJson1Addons(data.addons, context);
|
|
2318
2495
|
}
|
|
@@ -2378,9 +2555,9 @@ var deserializeAws_restJson1DescribeAddonVersionsCommandError = function (output
|
|
|
2378
2555
|
});
|
|
2379
2556
|
}); };
|
|
2380
2557
|
export var deserializeAws_restJson1DescribeClusterCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2381
|
-
var contents, data;
|
|
2382
|
-
return __generator(this, function (
|
|
2383
|
-
switch (
|
|
2558
|
+
var contents, data, _a, _b;
|
|
2559
|
+
return __generator(this, function (_c) {
|
|
2560
|
+
switch (_c.label) {
|
|
2384
2561
|
case 0:
|
|
2385
2562
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2386
2563
|
return [2 /*return*/, deserializeAws_restJson1DescribeClusterCommandError(output, context)];
|
|
@@ -2389,9 +2566,11 @@ export var deserializeAws_restJson1DescribeClusterCommand = function (output, co
|
|
|
2389
2566
|
$metadata: deserializeMetadata(output),
|
|
2390
2567
|
cluster: undefined,
|
|
2391
2568
|
};
|
|
2569
|
+
_a = __expectNonNull;
|
|
2570
|
+
_b = __expectObject;
|
|
2392
2571
|
return [4 /*yield*/, parseBody(output.body, context)];
|
|
2393
2572
|
case 1:
|
|
2394
|
-
data = _a.sent();
|
|
2573
|
+
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
2395
2574
|
if (data.cluster !== undefined && data.cluster !== null) {
|
|
2396
2575
|
contents.cluster = deserializeAws_restJson1Cluster(data.cluster, context);
|
|
2397
2576
|
}
|
|
@@ -2462,9 +2641,9 @@ var deserializeAws_restJson1DescribeClusterCommandError = function (output, cont
|
|
|
2462
2641
|
});
|
|
2463
2642
|
}); };
|
|
2464
2643
|
export var deserializeAws_restJson1DescribeFargateProfileCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2465
|
-
var contents, data;
|
|
2466
|
-
return __generator(this, function (
|
|
2467
|
-
switch (
|
|
2644
|
+
var contents, data, _a, _b;
|
|
2645
|
+
return __generator(this, function (_c) {
|
|
2646
|
+
switch (_c.label) {
|
|
2468
2647
|
case 0:
|
|
2469
2648
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2470
2649
|
return [2 /*return*/, deserializeAws_restJson1DescribeFargateProfileCommandError(output, context)];
|
|
@@ -2473,9 +2652,11 @@ export var deserializeAws_restJson1DescribeFargateProfileCommand = function (out
|
|
|
2473
2652
|
$metadata: deserializeMetadata(output),
|
|
2474
2653
|
fargateProfile: undefined,
|
|
2475
2654
|
};
|
|
2655
|
+
_a = __expectNonNull;
|
|
2656
|
+
_b = __expectObject;
|
|
2476
2657
|
return [4 /*yield*/, parseBody(output.body, context)];
|
|
2477
2658
|
case 1:
|
|
2478
|
-
data = _a.sent();
|
|
2659
|
+
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
2479
2660
|
if (data.fargateProfile !== undefined && data.fargateProfile !== null) {
|
|
2480
2661
|
contents.fargateProfile = deserializeAws_restJson1FargateProfile(data.fargateProfile, context);
|
|
2481
2662
|
}
|
|
@@ -2546,9 +2727,9 @@ var deserializeAws_restJson1DescribeFargateProfileCommandError = function (outpu
|
|
|
2546
2727
|
});
|
|
2547
2728
|
}); };
|
|
2548
2729
|
export var deserializeAws_restJson1DescribeIdentityProviderConfigCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2549
|
-
var contents, data;
|
|
2550
|
-
return __generator(this, function (
|
|
2551
|
-
switch (
|
|
2730
|
+
var contents, data, _a, _b;
|
|
2731
|
+
return __generator(this, function (_c) {
|
|
2732
|
+
switch (_c.label) {
|
|
2552
2733
|
case 0:
|
|
2553
2734
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2554
2735
|
return [2 /*return*/, deserializeAws_restJson1DescribeIdentityProviderConfigCommandError(output, context)];
|
|
@@ -2557,9 +2738,11 @@ export var deserializeAws_restJson1DescribeIdentityProviderConfigCommand = funct
|
|
|
2557
2738
|
$metadata: deserializeMetadata(output),
|
|
2558
2739
|
identityProviderConfig: undefined,
|
|
2559
2740
|
};
|
|
2741
|
+
_a = __expectNonNull;
|
|
2742
|
+
_b = __expectObject;
|
|
2560
2743
|
return [4 /*yield*/, parseBody(output.body, context)];
|
|
2561
2744
|
case 1:
|
|
2562
|
-
data = _a.sent();
|
|
2745
|
+
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
2563
2746
|
if (data.identityProviderConfig !== undefined && data.identityProviderConfig !== null) {
|
|
2564
2747
|
contents.identityProviderConfig = deserializeAws_restJson1IdentityProviderConfigResponse(data.identityProviderConfig, context);
|
|
2565
2748
|
}
|
|
@@ -2638,9 +2821,9 @@ var deserializeAws_restJson1DescribeIdentityProviderConfigCommandError = functio
|
|
|
2638
2821
|
});
|
|
2639
2822
|
}); };
|
|
2640
2823
|
export var deserializeAws_restJson1DescribeNodegroupCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2641
|
-
var contents, data;
|
|
2642
|
-
return __generator(this, function (
|
|
2643
|
-
switch (
|
|
2824
|
+
var contents, data, _a, _b;
|
|
2825
|
+
return __generator(this, function (_c) {
|
|
2826
|
+
switch (_c.label) {
|
|
2644
2827
|
case 0:
|
|
2645
2828
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2646
2829
|
return [2 /*return*/, deserializeAws_restJson1DescribeNodegroupCommandError(output, context)];
|
|
@@ -2649,9 +2832,11 @@ export var deserializeAws_restJson1DescribeNodegroupCommand = function (output,
|
|
|
2649
2832
|
$metadata: deserializeMetadata(output),
|
|
2650
2833
|
nodegroup: undefined,
|
|
2651
2834
|
};
|
|
2835
|
+
_a = __expectNonNull;
|
|
2836
|
+
_b = __expectObject;
|
|
2652
2837
|
return [4 /*yield*/, parseBody(output.body, context)];
|
|
2653
2838
|
case 1:
|
|
2654
|
-
data = _a.sent();
|
|
2839
|
+
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
2655
2840
|
if (data.nodegroup !== undefined && data.nodegroup !== null) {
|
|
2656
2841
|
contents.nodegroup = deserializeAws_restJson1Nodegroup(data.nodegroup, context);
|
|
2657
2842
|
}
|
|
@@ -2730,9 +2915,9 @@ var deserializeAws_restJson1DescribeNodegroupCommandError = function (output, co
|
|
|
2730
2915
|
});
|
|
2731
2916
|
}); };
|
|
2732
2917
|
export var deserializeAws_restJson1DescribeUpdateCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2733
|
-
var contents, data;
|
|
2734
|
-
return __generator(this, function (
|
|
2735
|
-
switch (
|
|
2918
|
+
var contents, data, _a, _b;
|
|
2919
|
+
return __generator(this, function (_c) {
|
|
2920
|
+
switch (_c.label) {
|
|
2736
2921
|
case 0:
|
|
2737
2922
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2738
2923
|
return [2 /*return*/, deserializeAws_restJson1DescribeUpdateCommandError(output, context)];
|
|
@@ -2741,9 +2926,11 @@ export var deserializeAws_restJson1DescribeUpdateCommand = function (output, con
|
|
|
2741
2926
|
$metadata: deserializeMetadata(output),
|
|
2742
2927
|
update: undefined,
|
|
2743
2928
|
};
|
|
2929
|
+
_a = __expectNonNull;
|
|
2930
|
+
_b = __expectObject;
|
|
2744
2931
|
return [4 /*yield*/, parseBody(output.body, context)];
|
|
2745
2932
|
case 1:
|
|
2746
|
-
data = _a.sent();
|
|
2933
|
+
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
2747
2934
|
if (data.update !== undefined && data.update !== null) {
|
|
2748
2935
|
contents.update = deserializeAws_restJson1Update(data.update, context);
|
|
2749
2936
|
}
|
|
@@ -2814,9 +3001,9 @@ var deserializeAws_restJson1DescribeUpdateCommandError = function (output, conte
|
|
|
2814
3001
|
});
|
|
2815
3002
|
}); };
|
|
2816
3003
|
export var deserializeAws_restJson1DisassociateIdentityProviderConfigCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2817
|
-
var contents, data;
|
|
2818
|
-
return __generator(this, function (
|
|
2819
|
-
switch (
|
|
3004
|
+
var contents, data, _a, _b;
|
|
3005
|
+
return __generator(this, function (_c) {
|
|
3006
|
+
switch (_c.label) {
|
|
2820
3007
|
case 0:
|
|
2821
3008
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2822
3009
|
return [2 /*return*/, deserializeAws_restJson1DisassociateIdentityProviderConfigCommandError(output, context)];
|
|
@@ -2825,9 +3012,11 @@ export var deserializeAws_restJson1DisassociateIdentityProviderConfigCommand = f
|
|
|
2825
3012
|
$metadata: deserializeMetadata(output),
|
|
2826
3013
|
update: undefined,
|
|
2827
3014
|
};
|
|
3015
|
+
_a = __expectNonNull;
|
|
3016
|
+
_b = __expectObject;
|
|
2828
3017
|
return [4 /*yield*/, parseBody(output.body, context)];
|
|
2829
3018
|
case 1:
|
|
2830
|
-
data = _a.sent();
|
|
3019
|
+
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
2831
3020
|
if (data.update !== undefined && data.update !== null) {
|
|
2832
3021
|
contents.update = deserializeAws_restJson1Update(data.update, context);
|
|
2833
3022
|
}
|
|
@@ -2914,9 +3103,9 @@ var deserializeAws_restJson1DisassociateIdentityProviderConfigCommandError = fun
|
|
|
2914
3103
|
});
|
|
2915
3104
|
}); };
|
|
2916
3105
|
export var deserializeAws_restJson1ListAddonsCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2917
|
-
var contents, data;
|
|
2918
|
-
return __generator(this, function (
|
|
2919
|
-
switch (
|
|
3106
|
+
var contents, data, _a, _b;
|
|
3107
|
+
return __generator(this, function (_c) {
|
|
3108
|
+
switch (_c.label) {
|
|
2920
3109
|
case 0:
|
|
2921
3110
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2922
3111
|
return [2 /*return*/, deserializeAws_restJson1ListAddonsCommandError(output, context)];
|
|
@@ -2926,9 +3115,11 @@ export var deserializeAws_restJson1ListAddonsCommand = function (output, context
|
|
|
2926
3115
|
addons: undefined,
|
|
2927
3116
|
nextToken: undefined,
|
|
2928
3117
|
};
|
|
3118
|
+
_a = __expectNonNull;
|
|
3119
|
+
_b = __expectObject;
|
|
2929
3120
|
return [4 /*yield*/, parseBody(output.body, context)];
|
|
2930
3121
|
case 1:
|
|
2931
|
-
data = _a.sent();
|
|
3122
|
+
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
2932
3123
|
if (data.addons !== undefined && data.addons !== null) {
|
|
2933
3124
|
contents.addons = deserializeAws_restJson1StringList(data.addons, context);
|
|
2934
3125
|
}
|
|
@@ -3010,9 +3201,9 @@ var deserializeAws_restJson1ListAddonsCommandError = function (output, context)
|
|
|
3010
3201
|
});
|
|
3011
3202
|
}); };
|
|
3012
3203
|
export var deserializeAws_restJson1ListClustersCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
3013
|
-
var contents, data;
|
|
3014
|
-
return __generator(this, function (
|
|
3015
|
-
switch (
|
|
3204
|
+
var contents, data, _a, _b;
|
|
3205
|
+
return __generator(this, function (_c) {
|
|
3206
|
+
switch (_c.label) {
|
|
3016
3207
|
case 0:
|
|
3017
3208
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3018
3209
|
return [2 /*return*/, deserializeAws_restJson1ListClustersCommandError(output, context)];
|
|
@@ -3022,9 +3213,11 @@ export var deserializeAws_restJson1ListClustersCommand = function (output, conte
|
|
|
3022
3213
|
clusters: undefined,
|
|
3023
3214
|
nextToken: undefined,
|
|
3024
3215
|
};
|
|
3216
|
+
_a = __expectNonNull;
|
|
3217
|
+
_b = __expectObject;
|
|
3025
3218
|
return [4 /*yield*/, parseBody(output.body, context)];
|
|
3026
3219
|
case 1:
|
|
3027
|
-
data = _a.sent();
|
|
3220
|
+
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
3028
3221
|
if (data.clusters !== undefined && data.clusters !== null) {
|
|
3029
3222
|
contents.clusters = deserializeAws_restJson1StringList(data.clusters, context);
|
|
3030
3223
|
}
|
|
@@ -3098,9 +3291,9 @@ var deserializeAws_restJson1ListClustersCommandError = function (output, context
|
|
|
3098
3291
|
});
|
|
3099
3292
|
}); };
|
|
3100
3293
|
export var deserializeAws_restJson1ListFargateProfilesCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
3101
|
-
var contents, data;
|
|
3102
|
-
return __generator(this, function (
|
|
3103
|
-
switch (
|
|
3294
|
+
var contents, data, _a, _b;
|
|
3295
|
+
return __generator(this, function (_c) {
|
|
3296
|
+
switch (_c.label) {
|
|
3104
3297
|
case 0:
|
|
3105
3298
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3106
3299
|
return [2 /*return*/, deserializeAws_restJson1ListFargateProfilesCommandError(output, context)];
|
|
@@ -3110,9 +3303,11 @@ export var deserializeAws_restJson1ListFargateProfilesCommand = function (output
|
|
|
3110
3303
|
fargateProfileNames: undefined,
|
|
3111
3304
|
nextToken: undefined,
|
|
3112
3305
|
};
|
|
3306
|
+
_a = __expectNonNull;
|
|
3307
|
+
_b = __expectObject;
|
|
3113
3308
|
return [4 /*yield*/, parseBody(output.body, context)];
|
|
3114
3309
|
case 1:
|
|
3115
|
-
data = _a.sent();
|
|
3310
|
+
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
3116
3311
|
if (data.fargateProfileNames !== undefined && data.fargateProfileNames !== null) {
|
|
3117
3312
|
contents.fargateProfileNames = deserializeAws_restJson1StringList(data.fargateProfileNames, context);
|
|
3118
3313
|
}
|
|
@@ -3186,9 +3381,9 @@ var deserializeAws_restJson1ListFargateProfilesCommandError = function (output,
|
|
|
3186
3381
|
});
|
|
3187
3382
|
}); };
|
|
3188
3383
|
export var deserializeAws_restJson1ListIdentityProviderConfigsCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
3189
|
-
var contents, data;
|
|
3190
|
-
return __generator(this, function (
|
|
3191
|
-
switch (
|
|
3384
|
+
var contents, data, _a, _b;
|
|
3385
|
+
return __generator(this, function (_c) {
|
|
3386
|
+
switch (_c.label) {
|
|
3192
3387
|
case 0:
|
|
3193
3388
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3194
3389
|
return [2 /*return*/, deserializeAws_restJson1ListIdentityProviderConfigsCommandError(output, context)];
|
|
@@ -3198,9 +3393,11 @@ export var deserializeAws_restJson1ListIdentityProviderConfigsCommand = function
|
|
|
3198
3393
|
identityProviderConfigs: undefined,
|
|
3199
3394
|
nextToken: undefined,
|
|
3200
3395
|
};
|
|
3396
|
+
_a = __expectNonNull;
|
|
3397
|
+
_b = __expectObject;
|
|
3201
3398
|
return [4 /*yield*/, parseBody(output.body, context)];
|
|
3202
3399
|
case 1:
|
|
3203
|
-
data = _a.sent();
|
|
3400
|
+
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
3204
3401
|
if (data.identityProviderConfigs !== undefined && data.identityProviderConfigs !== null) {
|
|
3205
3402
|
contents.identityProviderConfigs = deserializeAws_restJson1IdentityProviderConfigs(data.identityProviderConfigs, context);
|
|
3206
3403
|
}
|
|
@@ -3282,9 +3479,9 @@ var deserializeAws_restJson1ListIdentityProviderConfigsCommandError = function (
|
|
|
3282
3479
|
});
|
|
3283
3480
|
}); };
|
|
3284
3481
|
export var deserializeAws_restJson1ListNodegroupsCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
3285
|
-
var contents, data;
|
|
3286
|
-
return __generator(this, function (
|
|
3287
|
-
switch (
|
|
3482
|
+
var contents, data, _a, _b;
|
|
3483
|
+
return __generator(this, function (_c) {
|
|
3484
|
+
switch (_c.label) {
|
|
3288
3485
|
case 0:
|
|
3289
3486
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3290
3487
|
return [2 /*return*/, deserializeAws_restJson1ListNodegroupsCommandError(output, context)];
|
|
@@ -3294,9 +3491,11 @@ export var deserializeAws_restJson1ListNodegroupsCommand = function (output, con
|
|
|
3294
3491
|
nextToken: undefined,
|
|
3295
3492
|
nodegroups: undefined,
|
|
3296
3493
|
};
|
|
3494
|
+
_a = __expectNonNull;
|
|
3495
|
+
_b = __expectObject;
|
|
3297
3496
|
return [4 /*yield*/, parseBody(output.body, context)];
|
|
3298
3497
|
case 1:
|
|
3299
|
-
data = _a.sent();
|
|
3498
|
+
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
3300
3499
|
if (data.nextToken !== undefined && data.nextToken !== null) {
|
|
3301
3500
|
contents.nextToken = __expectString(data.nextToken);
|
|
3302
3501
|
}
|
|
@@ -3378,9 +3577,9 @@ var deserializeAws_restJson1ListNodegroupsCommandError = function (output, conte
|
|
|
3378
3577
|
});
|
|
3379
3578
|
}); };
|
|
3380
3579
|
export var deserializeAws_restJson1ListTagsForResourceCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
3381
|
-
var contents, data;
|
|
3382
|
-
return __generator(this, function (
|
|
3383
|
-
switch (
|
|
3580
|
+
var contents, data, _a, _b;
|
|
3581
|
+
return __generator(this, function (_c) {
|
|
3582
|
+
switch (_c.label) {
|
|
3384
3583
|
case 0:
|
|
3385
3584
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3386
3585
|
return [2 /*return*/, deserializeAws_restJson1ListTagsForResourceCommandError(output, context)];
|
|
@@ -3389,9 +3588,11 @@ export var deserializeAws_restJson1ListTagsForResourceCommand = function (output
|
|
|
3389
3588
|
$metadata: deserializeMetadata(output),
|
|
3390
3589
|
tags: undefined,
|
|
3391
3590
|
};
|
|
3591
|
+
_a = __expectNonNull;
|
|
3592
|
+
_b = __expectObject;
|
|
3392
3593
|
return [4 /*yield*/, parseBody(output.body, context)];
|
|
3393
3594
|
case 1:
|
|
3394
|
-
data = _a.sent();
|
|
3595
|
+
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
3395
3596
|
if (data.tags !== undefined && data.tags !== null) {
|
|
3396
3597
|
contents.tags = deserializeAws_restJson1TagMap(data.tags, context);
|
|
3397
3598
|
}
|
|
@@ -3446,9 +3647,9 @@ var deserializeAws_restJson1ListTagsForResourceCommandError = function (output,
|
|
|
3446
3647
|
});
|
|
3447
3648
|
}); };
|
|
3448
3649
|
export var deserializeAws_restJson1ListUpdatesCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
3449
|
-
var contents, data;
|
|
3450
|
-
return __generator(this, function (
|
|
3451
|
-
switch (
|
|
3650
|
+
var contents, data, _a, _b;
|
|
3651
|
+
return __generator(this, function (_c) {
|
|
3652
|
+
switch (_c.label) {
|
|
3452
3653
|
case 0:
|
|
3453
3654
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3454
3655
|
return [2 /*return*/, deserializeAws_restJson1ListUpdatesCommandError(output, context)];
|
|
@@ -3458,9 +3659,11 @@ export var deserializeAws_restJson1ListUpdatesCommand = function (output, contex
|
|
|
3458
3659
|
nextToken: undefined,
|
|
3459
3660
|
updateIds: undefined,
|
|
3460
3661
|
};
|
|
3662
|
+
_a = __expectNonNull;
|
|
3663
|
+
_b = __expectObject;
|
|
3461
3664
|
return [4 /*yield*/, parseBody(output.body, context)];
|
|
3462
3665
|
case 1:
|
|
3463
|
-
data = _a.sent();
|
|
3666
|
+
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
3464
3667
|
if (data.nextToken !== undefined && data.nextToken !== null) {
|
|
3465
3668
|
contents.nextToken = __expectString(data.nextToken);
|
|
3466
3669
|
}
|
|
@@ -3533,6 +3736,100 @@ var deserializeAws_restJson1ListUpdatesCommandError = function (output, context)
|
|
|
3533
3736
|
}
|
|
3534
3737
|
});
|
|
3535
3738
|
}); };
|
|
3739
|
+
export var deserializeAws_restJson1RegisterClusterCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
3740
|
+
var contents, data, _a, _b;
|
|
3741
|
+
return __generator(this, function (_c) {
|
|
3742
|
+
switch (_c.label) {
|
|
3743
|
+
case 0:
|
|
3744
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3745
|
+
return [2 /*return*/, deserializeAws_restJson1RegisterClusterCommandError(output, context)];
|
|
3746
|
+
}
|
|
3747
|
+
contents = {
|
|
3748
|
+
$metadata: deserializeMetadata(output),
|
|
3749
|
+
cluster: undefined,
|
|
3750
|
+
};
|
|
3751
|
+
_a = __expectNonNull;
|
|
3752
|
+
_b = __expectObject;
|
|
3753
|
+
return [4 /*yield*/, parseBody(output.body, context)];
|
|
3754
|
+
case 1:
|
|
3755
|
+
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
3756
|
+
if (data.cluster !== undefined && data.cluster !== null) {
|
|
3757
|
+
contents.cluster = deserializeAws_restJson1Cluster(data.cluster, context);
|
|
3758
|
+
}
|
|
3759
|
+
return [2 /*return*/, Promise.resolve(contents)];
|
|
3760
|
+
}
|
|
3761
|
+
});
|
|
3762
|
+
}); };
|
|
3763
|
+
var deserializeAws_restJson1RegisterClusterCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
3764
|
+
var parsedOutput, _a, response, errorCode, _b, _c, _d, _e, _f, _g, parsedBody, message;
|
|
3765
|
+
var _h;
|
|
3766
|
+
return __generator(this, function (_j) {
|
|
3767
|
+
switch (_j.label) {
|
|
3768
|
+
case 0:
|
|
3769
|
+
_a = [__assign({}, output)];
|
|
3770
|
+
_h = {};
|
|
3771
|
+
return [4 /*yield*/, parseBody(output.body, context)];
|
|
3772
|
+
case 1:
|
|
3773
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_h.body = _j.sent(), _h)]));
|
|
3774
|
+
errorCode = "UnknownError";
|
|
3775
|
+
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3776
|
+
_b = errorCode;
|
|
3777
|
+
switch (_b) {
|
|
3778
|
+
case "ClientException": return [3 /*break*/, 2];
|
|
3779
|
+
case "com.amazonaws.eks#ClientException": return [3 /*break*/, 2];
|
|
3780
|
+
case "InvalidParameterException": return [3 /*break*/, 4];
|
|
3781
|
+
case "com.amazonaws.eks#InvalidParameterException": return [3 /*break*/, 4];
|
|
3782
|
+
case "ResourceLimitExceededException": return [3 /*break*/, 6];
|
|
3783
|
+
case "com.amazonaws.eks#ResourceLimitExceededException": return [3 /*break*/, 6];
|
|
3784
|
+
case "ServerException": return [3 /*break*/, 8];
|
|
3785
|
+
case "com.amazonaws.eks#ServerException": return [3 /*break*/, 8];
|
|
3786
|
+
case "ServiceUnavailableException": return [3 /*break*/, 10];
|
|
3787
|
+
case "com.amazonaws.eks#ServiceUnavailableException": return [3 /*break*/, 10];
|
|
3788
|
+
}
|
|
3789
|
+
return [3 /*break*/, 12];
|
|
3790
|
+
case 2:
|
|
3791
|
+
_c = [{}];
|
|
3792
|
+
return [4 /*yield*/, deserializeAws_restJson1ClientExceptionResponse(parsedOutput, context)];
|
|
3793
|
+
case 3:
|
|
3794
|
+
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
3795
|
+
return [3 /*break*/, 13];
|
|
3796
|
+
case 4:
|
|
3797
|
+
_d = [{}];
|
|
3798
|
+
return [4 /*yield*/, deserializeAws_restJson1InvalidParameterExceptionResponse(parsedOutput, context)];
|
|
3799
|
+
case 5:
|
|
3800
|
+
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
3801
|
+
return [3 /*break*/, 13];
|
|
3802
|
+
case 6:
|
|
3803
|
+
_e = [{}];
|
|
3804
|
+
return [4 /*yield*/, deserializeAws_restJson1ResourceLimitExceededExceptionResponse(parsedOutput, context)];
|
|
3805
|
+
case 7:
|
|
3806
|
+
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
3807
|
+
return [3 /*break*/, 13];
|
|
3808
|
+
case 8:
|
|
3809
|
+
_f = [{}];
|
|
3810
|
+
return [4 /*yield*/, deserializeAws_restJson1ServerExceptionResponse(parsedOutput, context)];
|
|
3811
|
+
case 9:
|
|
3812
|
+
response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
3813
|
+
return [3 /*break*/, 13];
|
|
3814
|
+
case 10:
|
|
3815
|
+
_g = [{}];
|
|
3816
|
+
return [4 /*yield*/, deserializeAws_restJson1ServiceUnavailableExceptionResponse(parsedOutput, context)];
|
|
3817
|
+
case 11:
|
|
3818
|
+
response = __assign.apply(void 0, [__assign.apply(void 0, _g.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
3819
|
+
return [3 /*break*/, 13];
|
|
3820
|
+
case 12:
|
|
3821
|
+
parsedBody = parsedOutput.body;
|
|
3822
|
+
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
3823
|
+
response = __assign(__assign({}, parsedBody), { name: "" + errorCode, message: parsedBody.message || parsedBody.Message || errorCode, $fault: "client", $metadata: deserializeMetadata(output) });
|
|
3824
|
+
_j.label = 13;
|
|
3825
|
+
case 13:
|
|
3826
|
+
message = response.message || response.Message || errorCode;
|
|
3827
|
+
response.message = message;
|
|
3828
|
+
delete response.Message;
|
|
3829
|
+
return [2 /*return*/, Promise.reject(Object.assign(new Error(message), response))];
|
|
3830
|
+
}
|
|
3831
|
+
});
|
|
3832
|
+
}); };
|
|
3536
3833
|
export var deserializeAws_restJson1TagResourceCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
3537
3834
|
var contents;
|
|
3538
3835
|
return __generator(this, function (_a) {
|
|
@@ -3662,9 +3959,9 @@ var deserializeAws_restJson1UntagResourceCommandError = function (output, contex
|
|
|
3662
3959
|
});
|
|
3663
3960
|
}); };
|
|
3664
3961
|
export var deserializeAws_restJson1UpdateAddonCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
3665
|
-
var contents, data;
|
|
3666
|
-
return __generator(this, function (
|
|
3667
|
-
switch (
|
|
3962
|
+
var contents, data, _a, _b;
|
|
3963
|
+
return __generator(this, function (_c) {
|
|
3964
|
+
switch (_c.label) {
|
|
3668
3965
|
case 0:
|
|
3669
3966
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3670
3967
|
return [2 /*return*/, deserializeAws_restJson1UpdateAddonCommandError(output, context)];
|
|
@@ -3673,9 +3970,11 @@ export var deserializeAws_restJson1UpdateAddonCommand = function (output, contex
|
|
|
3673
3970
|
$metadata: deserializeMetadata(output),
|
|
3674
3971
|
update: undefined,
|
|
3675
3972
|
};
|
|
3973
|
+
_a = __expectNonNull;
|
|
3974
|
+
_b = __expectObject;
|
|
3676
3975
|
return [4 /*yield*/, parseBody(output.body, context)];
|
|
3677
3976
|
case 1:
|
|
3678
|
-
data = _a.sent();
|
|
3977
|
+
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
3679
3978
|
if (data.update !== undefined && data.update !== null) {
|
|
3680
3979
|
contents.update = deserializeAws_restJson1Update(data.update, context);
|
|
3681
3980
|
}
|
|
@@ -3762,9 +4061,9 @@ var deserializeAws_restJson1UpdateAddonCommandError = function (output, context)
|
|
|
3762
4061
|
});
|
|
3763
4062
|
}); };
|
|
3764
4063
|
export var deserializeAws_restJson1UpdateClusterConfigCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
3765
|
-
var contents, data;
|
|
3766
|
-
return __generator(this, function (
|
|
3767
|
-
switch (
|
|
4064
|
+
var contents, data, _a, _b;
|
|
4065
|
+
return __generator(this, function (_c) {
|
|
4066
|
+
switch (_c.label) {
|
|
3768
4067
|
case 0:
|
|
3769
4068
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3770
4069
|
return [2 /*return*/, deserializeAws_restJson1UpdateClusterConfigCommandError(output, context)];
|
|
@@ -3773,9 +4072,11 @@ export var deserializeAws_restJson1UpdateClusterConfigCommand = function (output
|
|
|
3773
4072
|
$metadata: deserializeMetadata(output),
|
|
3774
4073
|
update: undefined,
|
|
3775
4074
|
};
|
|
4075
|
+
_a = __expectNonNull;
|
|
4076
|
+
_b = __expectObject;
|
|
3776
4077
|
return [4 /*yield*/, parseBody(output.body, context)];
|
|
3777
4078
|
case 1:
|
|
3778
|
-
data = _a.sent();
|
|
4079
|
+
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
3779
4080
|
if (data.update !== undefined && data.update !== null) {
|
|
3780
4081
|
contents.update = deserializeAws_restJson1Update(data.update, context);
|
|
3781
4082
|
}
|
|
@@ -3862,9 +4163,9 @@ var deserializeAws_restJson1UpdateClusterConfigCommandError = function (output,
|
|
|
3862
4163
|
});
|
|
3863
4164
|
}); };
|
|
3864
4165
|
export var deserializeAws_restJson1UpdateClusterVersionCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
3865
|
-
var contents, data;
|
|
3866
|
-
return __generator(this, function (
|
|
3867
|
-
switch (
|
|
4166
|
+
var contents, data, _a, _b;
|
|
4167
|
+
return __generator(this, function (_c) {
|
|
4168
|
+
switch (_c.label) {
|
|
3868
4169
|
case 0:
|
|
3869
4170
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3870
4171
|
return [2 /*return*/, deserializeAws_restJson1UpdateClusterVersionCommandError(output, context)];
|
|
@@ -3873,9 +4174,11 @@ export var deserializeAws_restJson1UpdateClusterVersionCommand = function (outpu
|
|
|
3873
4174
|
$metadata: deserializeMetadata(output),
|
|
3874
4175
|
update: undefined,
|
|
3875
4176
|
};
|
|
4177
|
+
_a = __expectNonNull;
|
|
4178
|
+
_b = __expectObject;
|
|
3876
4179
|
return [4 /*yield*/, parseBody(output.body, context)];
|
|
3877
4180
|
case 1:
|
|
3878
|
-
data = _a.sent();
|
|
4181
|
+
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
3879
4182
|
if (data.update !== undefined && data.update !== null) {
|
|
3880
4183
|
contents.update = deserializeAws_restJson1Update(data.update, context);
|
|
3881
4184
|
}
|
|
@@ -3962,9 +4265,9 @@ var deserializeAws_restJson1UpdateClusterVersionCommandError = function (output,
|
|
|
3962
4265
|
});
|
|
3963
4266
|
}); };
|
|
3964
4267
|
export var deserializeAws_restJson1UpdateNodegroupConfigCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
3965
|
-
var contents, data;
|
|
3966
|
-
return __generator(this, function (
|
|
3967
|
-
switch (
|
|
4268
|
+
var contents, data, _a, _b;
|
|
4269
|
+
return __generator(this, function (_c) {
|
|
4270
|
+
switch (_c.label) {
|
|
3968
4271
|
case 0:
|
|
3969
4272
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3970
4273
|
return [2 /*return*/, deserializeAws_restJson1UpdateNodegroupConfigCommandError(output, context)];
|
|
@@ -3973,9 +4276,11 @@ export var deserializeAws_restJson1UpdateNodegroupConfigCommand = function (outp
|
|
|
3973
4276
|
$metadata: deserializeMetadata(output),
|
|
3974
4277
|
update: undefined,
|
|
3975
4278
|
};
|
|
4279
|
+
_a = __expectNonNull;
|
|
4280
|
+
_b = __expectObject;
|
|
3976
4281
|
return [4 /*yield*/, parseBody(output.body, context)];
|
|
3977
4282
|
case 1:
|
|
3978
|
-
data = _a.sent();
|
|
4283
|
+
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
3979
4284
|
if (data.update !== undefined && data.update !== null) {
|
|
3980
4285
|
contents.update = deserializeAws_restJson1Update(data.update, context);
|
|
3981
4286
|
}
|
|
@@ -4062,9 +4367,9 @@ var deserializeAws_restJson1UpdateNodegroupConfigCommandError = function (output
|
|
|
4062
4367
|
});
|
|
4063
4368
|
}); };
|
|
4064
4369
|
export var deserializeAws_restJson1UpdateNodegroupVersionCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
4065
|
-
var contents, data;
|
|
4066
|
-
return __generator(this, function (
|
|
4067
|
-
switch (
|
|
4370
|
+
var contents, data, _a, _b;
|
|
4371
|
+
return __generator(this, function (_c) {
|
|
4372
|
+
switch (_c.label) {
|
|
4068
4373
|
case 0:
|
|
4069
4374
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
4070
4375
|
return [2 /*return*/, deserializeAws_restJson1UpdateNodegroupVersionCommandError(output, context)];
|
|
@@ -4073,9 +4378,11 @@ export var deserializeAws_restJson1UpdateNodegroupVersionCommand = function (out
|
|
|
4073
4378
|
$metadata: deserializeMetadata(output),
|
|
4074
4379
|
update: undefined,
|
|
4075
4380
|
};
|
|
4381
|
+
_a = __expectNonNull;
|
|
4382
|
+
_b = __expectObject;
|
|
4076
4383
|
return [4 /*yield*/, parseBody(output.body, context)];
|
|
4077
4384
|
case 1:
|
|
4078
|
-
data = _a.sent();
|
|
4385
|
+
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
4079
4386
|
if (data.update !== undefined && data.update !== null) {
|
|
4080
4387
|
contents.update = deserializeAws_restJson1Update(data.update, context);
|
|
4081
4388
|
}
|
|
@@ -4437,6 +4744,9 @@ var deserializeAws_restJson1UnsupportedAvailabilityZoneExceptionResponse = funct
|
|
|
4437
4744
|
return [2 /*return*/, contents];
|
|
4438
4745
|
});
|
|
4439
4746
|
}); };
|
|
4747
|
+
var serializeAws_restJson1ConnectorConfigRequest = function (input, context) {
|
|
4748
|
+
return __assign(__assign({}, (input.provider !== undefined && input.provider !== null && { provider: input.provider })), (input.roleArn !== undefined && input.roleArn !== null && { roleArn: input.roleArn }));
|
|
4749
|
+
};
|
|
4440
4750
|
var serializeAws_restJson1EncryptionConfig = function (input, context) {
|
|
4441
4751
|
return __assign(__assign({}, (input.provider !== undefined &&
|
|
4442
4752
|
input.provider !== null && { provider: serializeAws_restJson1Provider(input.provider, context) })), (input.resources !== undefined &&
|
|
@@ -4639,13 +4949,13 @@ var deserializeAws_restJson1Addon = function (output, context) {
|
|
|
4639
4949
|
addonVersion: __expectString(output.addonVersion),
|
|
4640
4950
|
clusterName: __expectString(output.clusterName),
|
|
4641
4951
|
createdAt: output.createdAt !== undefined && output.createdAt !== null
|
|
4642
|
-
?
|
|
4952
|
+
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.createdAt)))
|
|
4643
4953
|
: undefined,
|
|
4644
4954
|
health: output.health !== undefined && output.health !== null
|
|
4645
4955
|
? deserializeAws_restJson1AddonHealth(output.health, context)
|
|
4646
4956
|
: undefined,
|
|
4647
4957
|
modifiedAt: output.modifiedAt !== undefined && output.modifiedAt !== null
|
|
4648
|
-
?
|
|
4958
|
+
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.modifiedAt)))
|
|
4649
4959
|
: undefined,
|
|
4650
4960
|
serviceAccountRoleArn: __expectString(output.serviceAccountRoleArn),
|
|
4651
4961
|
status: __expectString(output.status),
|
|
@@ -4747,8 +5057,11 @@ var deserializeAws_restJson1Cluster = function (output, context) {
|
|
|
4747
5057
|
? deserializeAws_restJson1Certificate(output.certificateAuthority, context)
|
|
4748
5058
|
: undefined,
|
|
4749
5059
|
clientRequestToken: __expectString(output.clientRequestToken),
|
|
5060
|
+
connectorConfig: output.connectorConfig !== undefined && output.connectorConfig !== null
|
|
5061
|
+
? deserializeAws_restJson1ConnectorConfigResponse(output.connectorConfig, context)
|
|
5062
|
+
: undefined,
|
|
4750
5063
|
createdAt: output.createdAt !== undefined && output.createdAt !== null
|
|
4751
|
-
?
|
|
5064
|
+
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.createdAt)))
|
|
4752
5065
|
: undefined,
|
|
4753
5066
|
encryptionConfig: output.encryptionConfig !== undefined && output.encryptionConfig !== null
|
|
4754
5067
|
? deserializeAws_restJson1EncryptionConfigList(output.encryptionConfig, context)
|
|
@@ -4795,6 +5108,17 @@ var deserializeAws_restJson1Compatibility = function (output, context) {
|
|
|
4795
5108
|
: undefined,
|
|
4796
5109
|
};
|
|
4797
5110
|
};
|
|
5111
|
+
var deserializeAws_restJson1ConnectorConfigResponse = function (output, context) {
|
|
5112
|
+
return {
|
|
5113
|
+
activationCode: __expectString(output.activationCode),
|
|
5114
|
+
activationExpiry: output.activationExpiry !== undefined && output.activationExpiry !== null
|
|
5115
|
+
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.activationExpiry)))
|
|
5116
|
+
: undefined,
|
|
5117
|
+
activationId: __expectString(output.activationId),
|
|
5118
|
+
provider: __expectString(output.provider),
|
|
5119
|
+
roleArn: __expectString(output.roleArn),
|
|
5120
|
+
};
|
|
5121
|
+
};
|
|
4798
5122
|
var deserializeAws_restJson1EncryptionConfig = function (output, context) {
|
|
4799
5123
|
return {
|
|
4800
5124
|
provider: output.provider !== undefined && output.provider !== null
|
|
@@ -4838,7 +5162,7 @@ var deserializeAws_restJson1FargateProfile = function (output, context) {
|
|
|
4838
5162
|
return {
|
|
4839
5163
|
clusterName: __expectString(output.clusterName),
|
|
4840
5164
|
createdAt: output.createdAt !== undefined && output.createdAt !== null
|
|
4841
|
-
?
|
|
5165
|
+
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.createdAt)))
|
|
4842
5166
|
: undefined,
|
|
4843
5167
|
fargateProfileArn: __expectString(output.fargateProfileArn),
|
|
4844
5168
|
fargateProfileName: __expectString(output.fargateProfileName),
|
|
@@ -4995,9 +5319,9 @@ var deserializeAws_restJson1Nodegroup = function (output, context) {
|
|
|
4995
5319
|
capacityType: __expectString(output.capacityType),
|
|
4996
5320
|
clusterName: __expectString(output.clusterName),
|
|
4997
5321
|
createdAt: output.createdAt !== undefined && output.createdAt !== null
|
|
4998
|
-
?
|
|
5322
|
+
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.createdAt)))
|
|
4999
5323
|
: undefined,
|
|
5000
|
-
diskSize:
|
|
5324
|
+
diskSize: __expectInt32(output.diskSize),
|
|
5001
5325
|
health: output.health !== undefined && output.health !== null
|
|
5002
5326
|
? deserializeAws_restJson1NodegroupHealth(output.health, context)
|
|
5003
5327
|
: undefined,
|
|
@@ -5011,7 +5335,7 @@ var deserializeAws_restJson1Nodegroup = function (output, context) {
|
|
|
5011
5335
|
? deserializeAws_restJson1LaunchTemplateSpecification(output.launchTemplate, context)
|
|
5012
5336
|
: undefined,
|
|
5013
5337
|
modifiedAt: output.modifiedAt !== undefined && output.modifiedAt !== null
|
|
5014
|
-
?
|
|
5338
|
+
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.modifiedAt)))
|
|
5015
5339
|
: undefined,
|
|
5016
5340
|
nodeRole: __expectString(output.nodeRole),
|
|
5017
5341
|
nodegroupArn: __expectString(output.nodegroupArn),
|
|
@@ -5059,15 +5383,15 @@ var deserializeAws_restJson1NodegroupResources = function (output, context) {
|
|
|
5059
5383
|
};
|
|
5060
5384
|
var deserializeAws_restJson1NodegroupScalingConfig = function (output, context) {
|
|
5061
5385
|
return {
|
|
5062
|
-
desiredSize:
|
|
5063
|
-
maxSize:
|
|
5064
|
-
minSize:
|
|
5386
|
+
desiredSize: __expectInt32(output.desiredSize),
|
|
5387
|
+
maxSize: __expectInt32(output.maxSize),
|
|
5388
|
+
minSize: __expectInt32(output.minSize),
|
|
5065
5389
|
};
|
|
5066
5390
|
};
|
|
5067
5391
|
var deserializeAws_restJson1NodegroupUpdateConfig = function (output, context) {
|
|
5068
5392
|
return {
|
|
5069
|
-
maxUnavailable:
|
|
5070
|
-
maxUnavailablePercentage:
|
|
5393
|
+
maxUnavailable: __expectInt32(output.maxUnavailable),
|
|
5394
|
+
maxUnavailablePercentage: __expectInt32(output.maxUnavailablePercentage),
|
|
5071
5395
|
};
|
|
5072
5396
|
};
|
|
5073
5397
|
var deserializeAws_restJson1OIDC = function (output, context) {
|
|
@@ -5158,7 +5482,7 @@ var deserializeAws_restJson1taintsList = function (output, context) {
|
|
|
5158
5482
|
var deserializeAws_restJson1Update = function (output, context) {
|
|
5159
5483
|
return {
|
|
5160
5484
|
createdAt: output.createdAt !== undefined && output.createdAt !== null
|
|
5161
|
-
?
|
|
5485
|
+
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.createdAt)))
|
|
5162
5486
|
: undefined,
|
|
5163
5487
|
errors: output.errors !== undefined && output.errors !== null
|
|
5164
5488
|
? deserializeAws_restJson1ErrorDetails(output.errors, context)
|