@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,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
4
|
-
exports.deserializeAws_restJson1UpdateNodegroupVersionCommand = exports.deserializeAws_restJson1UpdateNodegroupConfigCommand = exports.deserializeAws_restJson1UpdateClusterVersionCommand = exports.deserializeAws_restJson1UpdateClusterConfigCommand = exports.deserializeAws_restJson1UpdateAddonCommand = exports.deserializeAws_restJson1UntagResourceCommand = exports.deserializeAws_restJson1TagResourceCommand = exports.deserializeAws_restJson1ListUpdatesCommand = exports.deserializeAws_restJson1ListTagsForResourceCommand = exports.deserializeAws_restJson1ListNodegroupsCommand = exports.deserializeAws_restJson1ListIdentityProviderConfigsCommand = exports.deserializeAws_restJson1ListFargateProfilesCommand = exports.deserializeAws_restJson1ListClustersCommand = exports.deserializeAws_restJson1ListAddonsCommand = void 0;
|
|
3
|
+
exports.deserializeAws_restJson1DescribeIdentityProviderConfigCommand = exports.deserializeAws_restJson1DescribeFargateProfileCommand = exports.deserializeAws_restJson1DescribeClusterCommand = exports.deserializeAws_restJson1DescribeAddonVersionsCommand = exports.deserializeAws_restJson1DescribeAddonCommand = exports.deserializeAws_restJson1DeregisterClusterCommand = exports.deserializeAws_restJson1DeleteNodegroupCommand = exports.deserializeAws_restJson1DeleteFargateProfileCommand = exports.deserializeAws_restJson1DeleteClusterCommand = exports.deserializeAws_restJson1DeleteAddonCommand = exports.deserializeAws_restJson1CreateNodegroupCommand = exports.deserializeAws_restJson1CreateFargateProfileCommand = exports.deserializeAws_restJson1CreateClusterCommand = exports.deserializeAws_restJson1CreateAddonCommand = exports.deserializeAws_restJson1AssociateIdentityProviderConfigCommand = exports.deserializeAws_restJson1AssociateEncryptionConfigCommand = exports.serializeAws_restJson1UpdateNodegroupVersionCommand = exports.serializeAws_restJson1UpdateNodegroupConfigCommand = exports.serializeAws_restJson1UpdateClusterVersionCommand = exports.serializeAws_restJson1UpdateClusterConfigCommand = exports.serializeAws_restJson1UpdateAddonCommand = exports.serializeAws_restJson1UntagResourceCommand = exports.serializeAws_restJson1TagResourceCommand = exports.serializeAws_restJson1RegisterClusterCommand = exports.serializeAws_restJson1ListUpdatesCommand = exports.serializeAws_restJson1ListTagsForResourceCommand = exports.serializeAws_restJson1ListNodegroupsCommand = exports.serializeAws_restJson1ListIdentityProviderConfigsCommand = exports.serializeAws_restJson1ListFargateProfilesCommand = exports.serializeAws_restJson1ListClustersCommand = exports.serializeAws_restJson1ListAddonsCommand = exports.serializeAws_restJson1DisassociateIdentityProviderConfigCommand = exports.serializeAws_restJson1DescribeUpdateCommand = exports.serializeAws_restJson1DescribeNodegroupCommand = exports.serializeAws_restJson1DescribeIdentityProviderConfigCommand = exports.serializeAws_restJson1DescribeFargateProfileCommand = exports.serializeAws_restJson1DescribeClusterCommand = exports.serializeAws_restJson1DescribeAddonVersionsCommand = exports.serializeAws_restJson1DescribeAddonCommand = exports.serializeAws_restJson1DeregisterClusterCommand = exports.serializeAws_restJson1DeleteNodegroupCommand = exports.serializeAws_restJson1DeleteFargateProfileCommand = exports.serializeAws_restJson1DeleteClusterCommand = exports.serializeAws_restJson1DeleteAddonCommand = exports.serializeAws_restJson1CreateNodegroupCommand = exports.serializeAws_restJson1CreateFargateProfileCommand = exports.serializeAws_restJson1CreateClusterCommand = exports.serializeAws_restJson1CreateAddonCommand = exports.serializeAws_restJson1AssociateIdentityProviderConfigCommand = exports.serializeAws_restJson1AssociateEncryptionConfigCommand = void 0;
|
|
4
|
+
exports.deserializeAws_restJson1UpdateNodegroupVersionCommand = exports.deserializeAws_restJson1UpdateNodegroupConfigCommand = exports.deserializeAws_restJson1UpdateClusterVersionCommand = exports.deserializeAws_restJson1UpdateClusterConfigCommand = exports.deserializeAws_restJson1UpdateAddonCommand = exports.deserializeAws_restJson1UntagResourceCommand = exports.deserializeAws_restJson1TagResourceCommand = exports.deserializeAws_restJson1RegisterClusterCommand = exports.deserializeAws_restJson1ListUpdatesCommand = exports.deserializeAws_restJson1ListTagsForResourceCommand = exports.deserializeAws_restJson1ListNodegroupsCommand = exports.deserializeAws_restJson1ListIdentityProviderConfigsCommand = exports.deserializeAws_restJson1ListFargateProfilesCommand = exports.deserializeAws_restJson1ListClustersCommand = exports.deserializeAws_restJson1ListAddonsCommand = exports.deserializeAws_restJson1DisassociateIdentityProviderConfigCommand = exports.deserializeAws_restJson1DescribeUpdateCommand = exports.deserializeAws_restJson1DescribeNodegroupCommand = void 0;
|
|
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");
|
|
@@ -408,6 +408,32 @@ const serializeAws_restJson1DeleteNodegroupCommand = async (input, context) => {
|
|
|
408
408
|
});
|
|
409
409
|
};
|
|
410
410
|
exports.serializeAws_restJson1DeleteNodegroupCommand = serializeAws_restJson1DeleteNodegroupCommand;
|
|
411
|
+
const serializeAws_restJson1DeregisterClusterCommand = async (input, context) => {
|
|
412
|
+
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
413
|
+
const headers = {};
|
|
414
|
+
let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/cluster-registrations/{name}";
|
|
415
|
+
if (input.name !== undefined) {
|
|
416
|
+
const labelValue = input.name;
|
|
417
|
+
if (labelValue.length <= 0) {
|
|
418
|
+
throw new Error("Empty value provided for input HTTP label: name.");
|
|
419
|
+
}
|
|
420
|
+
resolvedPath = resolvedPath.replace("{name}", smithy_client_1.extendedEncodeURIComponent(labelValue));
|
|
421
|
+
}
|
|
422
|
+
else {
|
|
423
|
+
throw new Error("No value provided for input HTTP label: name.");
|
|
424
|
+
}
|
|
425
|
+
let body;
|
|
426
|
+
return new protocol_http_1.HttpRequest({
|
|
427
|
+
protocol,
|
|
428
|
+
hostname,
|
|
429
|
+
port,
|
|
430
|
+
method: "DELETE",
|
|
431
|
+
headers,
|
|
432
|
+
path: resolvedPath,
|
|
433
|
+
body,
|
|
434
|
+
});
|
|
435
|
+
};
|
|
436
|
+
exports.serializeAws_restJson1DeregisterClusterCommand = serializeAws_restJson1DeregisterClusterCommand;
|
|
411
437
|
const serializeAws_restJson1DescribeAddonCommand = async (input, context) => {
|
|
412
438
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
413
439
|
const headers = {};
|
|
@@ -719,6 +745,7 @@ const serializeAws_restJson1ListClustersCommand = async (input, context) => {
|
|
|
719
745
|
const query = {
|
|
720
746
|
...(input.maxResults !== undefined && { maxResults: input.maxResults.toString() }),
|
|
721
747
|
...(input.nextToken !== undefined && { nextToken: input.nextToken }),
|
|
748
|
+
...(input.include !== undefined && { include: (input.include || []).map((_entry) => _entry) }),
|
|
722
749
|
};
|
|
723
750
|
let body;
|
|
724
751
|
return new protocol_http_1.HttpRequest({
|
|
@@ -886,6 +913,33 @@ const serializeAws_restJson1ListUpdatesCommand = async (input, context) => {
|
|
|
886
913
|
});
|
|
887
914
|
};
|
|
888
915
|
exports.serializeAws_restJson1ListUpdatesCommand = serializeAws_restJson1ListUpdatesCommand;
|
|
916
|
+
const serializeAws_restJson1RegisterClusterCommand = async (input, context) => {
|
|
917
|
+
var _a;
|
|
918
|
+
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
919
|
+
const headers = {
|
|
920
|
+
"content-type": "application/json",
|
|
921
|
+
};
|
|
922
|
+
let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/cluster-registrations";
|
|
923
|
+
let body;
|
|
924
|
+
body = JSON.stringify({
|
|
925
|
+
clientRequestToken: (_a = input.clientRequestToken) !== null && _a !== void 0 ? _a : uuid_1.v4(),
|
|
926
|
+
...(input.connectorConfig !== undefined &&
|
|
927
|
+
input.connectorConfig !== null && {
|
|
928
|
+
connectorConfig: serializeAws_restJson1ConnectorConfigRequest(input.connectorConfig, context),
|
|
929
|
+
}),
|
|
930
|
+
...(input.name !== undefined && input.name !== null && { name: input.name }),
|
|
931
|
+
});
|
|
932
|
+
return new protocol_http_1.HttpRequest({
|
|
933
|
+
protocol,
|
|
934
|
+
hostname,
|
|
935
|
+
port,
|
|
936
|
+
method: "POST",
|
|
937
|
+
headers,
|
|
938
|
+
path: resolvedPath,
|
|
939
|
+
body,
|
|
940
|
+
});
|
|
941
|
+
};
|
|
942
|
+
exports.serializeAws_restJson1RegisterClusterCommand = serializeAws_restJson1RegisterClusterCommand;
|
|
889
943
|
const serializeAws_restJson1TagResourceCommand = async (input, context) => {
|
|
890
944
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
891
945
|
const headers = {
|
|
@@ -1180,7 +1234,7 @@ const deserializeAws_restJson1AssociateEncryptionConfigCommand = async (output,
|
|
|
1180
1234
|
$metadata: deserializeMetadata(output),
|
|
1181
1235
|
update: undefined,
|
|
1182
1236
|
};
|
|
1183
|
-
const data = await parseBody(output.body, context);
|
|
1237
|
+
const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
|
|
1184
1238
|
if (data.update !== undefined && data.update !== null) {
|
|
1185
1239
|
contents.update = deserializeAws_restJson1Update(data.update, context);
|
|
1186
1240
|
}
|
|
@@ -1269,7 +1323,7 @@ const deserializeAws_restJson1AssociateIdentityProviderConfigCommand = async (ou
|
|
|
1269
1323
|
tags: undefined,
|
|
1270
1324
|
update: undefined,
|
|
1271
1325
|
};
|
|
1272
|
-
const data = await parseBody(output.body, context);
|
|
1326
|
+
const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
|
|
1273
1327
|
if (data.tags !== undefined && data.tags !== null) {
|
|
1274
1328
|
contents.tags = deserializeAws_restJson1TagMap(data.tags, context);
|
|
1275
1329
|
}
|
|
@@ -1360,7 +1414,7 @@ const deserializeAws_restJson1CreateAddonCommand = async (output, context) => {
|
|
|
1360
1414
|
$metadata: deserializeMetadata(output),
|
|
1361
1415
|
addon: undefined,
|
|
1362
1416
|
};
|
|
1363
|
-
const data = await parseBody(output.body, context);
|
|
1417
|
+
const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
|
|
1364
1418
|
if (data.addon !== undefined && data.addon !== null) {
|
|
1365
1419
|
contents.addon = deserializeAws_restJson1Addon(data.addon, context);
|
|
1366
1420
|
}
|
|
@@ -1448,7 +1502,7 @@ const deserializeAws_restJson1CreateClusterCommand = async (output, context) =>
|
|
|
1448
1502
|
$metadata: deserializeMetadata(output),
|
|
1449
1503
|
cluster: undefined,
|
|
1450
1504
|
};
|
|
1451
|
-
const data = await parseBody(output.body, context);
|
|
1505
|
+
const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
|
|
1452
1506
|
if (data.cluster !== undefined && data.cluster !== null) {
|
|
1453
1507
|
contents.cluster = deserializeAws_restJson1Cluster(data.cluster, context);
|
|
1454
1508
|
}
|
|
@@ -1544,7 +1598,7 @@ const deserializeAws_restJson1CreateFargateProfileCommand = async (output, conte
|
|
|
1544
1598
|
$metadata: deserializeMetadata(output),
|
|
1545
1599
|
fargateProfile: undefined,
|
|
1546
1600
|
};
|
|
1547
|
-
const data = await parseBody(output.body, context);
|
|
1601
|
+
const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
|
|
1548
1602
|
if (data.fargateProfile !== undefined && data.fargateProfile !== null) {
|
|
1549
1603
|
contents.fargateProfile = deserializeAws_restJson1FargateProfile(data.fargateProfile, context);
|
|
1550
1604
|
}
|
|
@@ -1632,7 +1686,7 @@ const deserializeAws_restJson1CreateNodegroupCommand = async (output, context) =
|
|
|
1632
1686
|
$metadata: deserializeMetadata(output),
|
|
1633
1687
|
nodegroup: undefined,
|
|
1634
1688
|
};
|
|
1635
|
-
const data = await parseBody(output.body, context);
|
|
1689
|
+
const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
|
|
1636
1690
|
if (data.nodegroup !== undefined && data.nodegroup !== null) {
|
|
1637
1691
|
contents.nodegroup = deserializeAws_restJson1Nodegroup(data.nodegroup, context);
|
|
1638
1692
|
}
|
|
@@ -1728,7 +1782,7 @@ const deserializeAws_restJson1DeleteAddonCommand = async (output, context) => {
|
|
|
1728
1782
|
$metadata: deserializeMetadata(output),
|
|
1729
1783
|
addon: undefined,
|
|
1730
1784
|
};
|
|
1731
|
-
const data = await parseBody(output.body, context);
|
|
1785
|
+
const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
|
|
1732
1786
|
if (data.addon !== undefined && data.addon !== null) {
|
|
1733
1787
|
contents.addon = deserializeAws_restJson1Addon(data.addon, context);
|
|
1734
1788
|
}
|
|
@@ -1808,7 +1862,7 @@ const deserializeAws_restJson1DeleteClusterCommand = async (output, context) =>
|
|
|
1808
1862
|
$metadata: deserializeMetadata(output),
|
|
1809
1863
|
cluster: undefined,
|
|
1810
1864
|
};
|
|
1811
|
-
const data = await parseBody(output.body, context);
|
|
1865
|
+
const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
|
|
1812
1866
|
if (data.cluster !== undefined && data.cluster !== null) {
|
|
1813
1867
|
contents.cluster = deserializeAws_restJson1Cluster(data.cluster, context);
|
|
1814
1868
|
}
|
|
@@ -1888,7 +1942,7 @@ const deserializeAws_restJson1DeleteFargateProfileCommand = async (output, conte
|
|
|
1888
1942
|
$metadata: deserializeMetadata(output),
|
|
1889
1943
|
fargateProfile: undefined,
|
|
1890
1944
|
};
|
|
1891
|
-
const data = await parseBody(output.body, context);
|
|
1945
|
+
const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
|
|
1892
1946
|
if (data.fargateProfile !== undefined && data.fargateProfile !== null) {
|
|
1893
1947
|
contents.fargateProfile = deserializeAws_restJson1FargateProfile(data.fargateProfile, context);
|
|
1894
1948
|
}
|
|
@@ -1960,7 +2014,7 @@ const deserializeAws_restJson1DeleteNodegroupCommand = async (output, context) =
|
|
|
1960
2014
|
$metadata: deserializeMetadata(output),
|
|
1961
2015
|
nodegroup: undefined,
|
|
1962
2016
|
};
|
|
1963
|
-
const data = await parseBody(output.body, context);
|
|
2017
|
+
const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
|
|
1964
2018
|
if (data.nodegroup !== undefined && data.nodegroup !== null) {
|
|
1965
2019
|
contents.nodegroup = deserializeAws_restJson1Nodegroup(data.nodegroup, context);
|
|
1966
2020
|
}
|
|
@@ -2040,6 +2094,86 @@ const deserializeAws_restJson1DeleteNodegroupCommandError = async (output, conte
|
|
|
2040
2094
|
delete response.Message;
|
|
2041
2095
|
return Promise.reject(Object.assign(new Error(message), response));
|
|
2042
2096
|
};
|
|
2097
|
+
const deserializeAws_restJson1DeregisterClusterCommand = async (output, context) => {
|
|
2098
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2099
|
+
return deserializeAws_restJson1DeregisterClusterCommandError(output, context);
|
|
2100
|
+
}
|
|
2101
|
+
const contents = {
|
|
2102
|
+
$metadata: deserializeMetadata(output),
|
|
2103
|
+
cluster: undefined,
|
|
2104
|
+
};
|
|
2105
|
+
const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
|
|
2106
|
+
if (data.cluster !== undefined && data.cluster !== null) {
|
|
2107
|
+
contents.cluster = deserializeAws_restJson1Cluster(data.cluster, context);
|
|
2108
|
+
}
|
|
2109
|
+
return Promise.resolve(contents);
|
|
2110
|
+
};
|
|
2111
|
+
exports.deserializeAws_restJson1DeregisterClusterCommand = deserializeAws_restJson1DeregisterClusterCommand;
|
|
2112
|
+
const deserializeAws_restJson1DeregisterClusterCommandError = async (output, context) => {
|
|
2113
|
+
const parsedOutput = {
|
|
2114
|
+
...output,
|
|
2115
|
+
body: await parseBody(output.body, context),
|
|
2116
|
+
};
|
|
2117
|
+
let response;
|
|
2118
|
+
let errorCode = "UnknownError";
|
|
2119
|
+
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2120
|
+
switch (errorCode) {
|
|
2121
|
+
case "ClientException":
|
|
2122
|
+
case "com.amazonaws.eks#ClientException":
|
|
2123
|
+
response = {
|
|
2124
|
+
...(await deserializeAws_restJson1ClientExceptionResponse(parsedOutput, context)),
|
|
2125
|
+
name: errorCode,
|
|
2126
|
+
$metadata: deserializeMetadata(output),
|
|
2127
|
+
};
|
|
2128
|
+
break;
|
|
2129
|
+
case "ResourceInUseException":
|
|
2130
|
+
case "com.amazonaws.eks#ResourceInUseException":
|
|
2131
|
+
response = {
|
|
2132
|
+
...(await deserializeAws_restJson1ResourceInUseExceptionResponse(parsedOutput, context)),
|
|
2133
|
+
name: errorCode,
|
|
2134
|
+
$metadata: deserializeMetadata(output),
|
|
2135
|
+
};
|
|
2136
|
+
break;
|
|
2137
|
+
case "ResourceNotFoundException":
|
|
2138
|
+
case "com.amazonaws.eks#ResourceNotFoundException":
|
|
2139
|
+
response = {
|
|
2140
|
+
...(await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)),
|
|
2141
|
+
name: errorCode,
|
|
2142
|
+
$metadata: deserializeMetadata(output),
|
|
2143
|
+
};
|
|
2144
|
+
break;
|
|
2145
|
+
case "ServerException":
|
|
2146
|
+
case "com.amazonaws.eks#ServerException":
|
|
2147
|
+
response = {
|
|
2148
|
+
...(await deserializeAws_restJson1ServerExceptionResponse(parsedOutput, context)),
|
|
2149
|
+
name: errorCode,
|
|
2150
|
+
$metadata: deserializeMetadata(output),
|
|
2151
|
+
};
|
|
2152
|
+
break;
|
|
2153
|
+
case "ServiceUnavailableException":
|
|
2154
|
+
case "com.amazonaws.eks#ServiceUnavailableException":
|
|
2155
|
+
response = {
|
|
2156
|
+
...(await deserializeAws_restJson1ServiceUnavailableExceptionResponse(parsedOutput, context)),
|
|
2157
|
+
name: errorCode,
|
|
2158
|
+
$metadata: deserializeMetadata(output),
|
|
2159
|
+
};
|
|
2160
|
+
break;
|
|
2161
|
+
default:
|
|
2162
|
+
const parsedBody = parsedOutput.body;
|
|
2163
|
+
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
2164
|
+
response = {
|
|
2165
|
+
...parsedBody,
|
|
2166
|
+
name: `${errorCode}`,
|
|
2167
|
+
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
2168
|
+
$fault: "client",
|
|
2169
|
+
$metadata: deserializeMetadata(output),
|
|
2170
|
+
};
|
|
2171
|
+
}
|
|
2172
|
+
const message = response.message || response.Message || errorCode;
|
|
2173
|
+
response.message = message;
|
|
2174
|
+
delete response.Message;
|
|
2175
|
+
return Promise.reject(Object.assign(new Error(message), response));
|
|
2176
|
+
};
|
|
2043
2177
|
const deserializeAws_restJson1DescribeAddonCommand = async (output, context) => {
|
|
2044
2178
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2045
2179
|
return deserializeAws_restJson1DescribeAddonCommandError(output, context);
|
|
@@ -2048,7 +2182,7 @@ const deserializeAws_restJson1DescribeAddonCommand = async (output, context) =>
|
|
|
2048
2182
|
$metadata: deserializeMetadata(output),
|
|
2049
2183
|
addon: undefined,
|
|
2050
2184
|
};
|
|
2051
|
-
const data = await parseBody(output.body, context);
|
|
2185
|
+
const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
|
|
2052
2186
|
if (data.addon !== undefined && data.addon !== null) {
|
|
2053
2187
|
contents.addon = deserializeAws_restJson1Addon(data.addon, context);
|
|
2054
2188
|
}
|
|
@@ -2129,7 +2263,7 @@ const deserializeAws_restJson1DescribeAddonVersionsCommand = async (output, cont
|
|
|
2129
2263
|
addons: undefined,
|
|
2130
2264
|
nextToken: undefined,
|
|
2131
2265
|
};
|
|
2132
|
-
const data = await parseBody(output.body, context);
|
|
2266
|
+
const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
|
|
2133
2267
|
if (data.addons !== undefined && data.addons !== null) {
|
|
2134
2268
|
contents.addons = deserializeAws_restJson1Addons(data.addons, context);
|
|
2135
2269
|
}
|
|
@@ -2196,7 +2330,7 @@ const deserializeAws_restJson1DescribeClusterCommand = async (output, context) =
|
|
|
2196
2330
|
$metadata: deserializeMetadata(output),
|
|
2197
2331
|
cluster: undefined,
|
|
2198
2332
|
};
|
|
2199
|
-
const data = await parseBody(output.body, context);
|
|
2333
|
+
const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
|
|
2200
2334
|
if (data.cluster !== undefined && data.cluster !== null) {
|
|
2201
2335
|
contents.cluster = deserializeAws_restJson1Cluster(data.cluster, context);
|
|
2202
2336
|
}
|
|
@@ -2268,7 +2402,7 @@ const deserializeAws_restJson1DescribeFargateProfileCommand = async (output, con
|
|
|
2268
2402
|
$metadata: deserializeMetadata(output),
|
|
2269
2403
|
fargateProfile: undefined,
|
|
2270
2404
|
};
|
|
2271
|
-
const data = await parseBody(output.body, context);
|
|
2405
|
+
const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
|
|
2272
2406
|
if (data.fargateProfile !== undefined && data.fargateProfile !== null) {
|
|
2273
2407
|
contents.fargateProfile = deserializeAws_restJson1FargateProfile(data.fargateProfile, context);
|
|
2274
2408
|
}
|
|
@@ -2340,7 +2474,7 @@ const deserializeAws_restJson1DescribeIdentityProviderConfigCommand = async (out
|
|
|
2340
2474
|
$metadata: deserializeMetadata(output),
|
|
2341
2475
|
identityProviderConfig: undefined,
|
|
2342
2476
|
};
|
|
2343
|
-
const data = await parseBody(output.body, context);
|
|
2477
|
+
const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
|
|
2344
2478
|
if (data.identityProviderConfig !== undefined && data.identityProviderConfig !== null) {
|
|
2345
2479
|
contents.identityProviderConfig = deserializeAws_restJson1IdentityProviderConfigResponse(data.identityProviderConfig, context);
|
|
2346
2480
|
}
|
|
@@ -2420,7 +2554,7 @@ const deserializeAws_restJson1DescribeNodegroupCommand = async (output, context)
|
|
|
2420
2554
|
$metadata: deserializeMetadata(output),
|
|
2421
2555
|
nodegroup: undefined,
|
|
2422
2556
|
};
|
|
2423
|
-
const data = await parseBody(output.body, context);
|
|
2557
|
+
const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
|
|
2424
2558
|
if (data.nodegroup !== undefined && data.nodegroup !== null) {
|
|
2425
2559
|
contents.nodegroup = deserializeAws_restJson1Nodegroup(data.nodegroup, context);
|
|
2426
2560
|
}
|
|
@@ -2500,7 +2634,7 @@ const deserializeAws_restJson1DescribeUpdateCommand = async (output, context) =>
|
|
|
2500
2634
|
$metadata: deserializeMetadata(output),
|
|
2501
2635
|
update: undefined,
|
|
2502
2636
|
};
|
|
2503
|
-
const data = await parseBody(output.body, context);
|
|
2637
|
+
const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
|
|
2504
2638
|
if (data.update !== undefined && data.update !== null) {
|
|
2505
2639
|
contents.update = deserializeAws_restJson1Update(data.update, context);
|
|
2506
2640
|
}
|
|
@@ -2572,7 +2706,7 @@ const deserializeAws_restJson1DisassociateIdentityProviderConfigCommand = async
|
|
|
2572
2706
|
$metadata: deserializeMetadata(output),
|
|
2573
2707
|
update: undefined,
|
|
2574
2708
|
};
|
|
2575
|
-
const data = await parseBody(output.body, context);
|
|
2709
|
+
const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
|
|
2576
2710
|
if (data.update !== undefined && data.update !== null) {
|
|
2577
2711
|
contents.update = deserializeAws_restJson1Update(data.update, context);
|
|
2578
2712
|
}
|
|
@@ -2661,7 +2795,7 @@ const deserializeAws_restJson1ListAddonsCommand = async (output, context) => {
|
|
|
2661
2795
|
addons: undefined,
|
|
2662
2796
|
nextToken: undefined,
|
|
2663
2797
|
};
|
|
2664
|
-
const data = await parseBody(output.body, context);
|
|
2798
|
+
const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
|
|
2665
2799
|
if (data.addons !== undefined && data.addons !== null) {
|
|
2666
2800
|
contents.addons = deserializeAws_restJson1StringList(data.addons, context);
|
|
2667
2801
|
}
|
|
@@ -2745,7 +2879,7 @@ const deserializeAws_restJson1ListClustersCommand = async (output, context) => {
|
|
|
2745
2879
|
clusters: undefined,
|
|
2746
2880
|
nextToken: undefined,
|
|
2747
2881
|
};
|
|
2748
|
-
const data = await parseBody(output.body, context);
|
|
2882
|
+
const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
|
|
2749
2883
|
if (data.clusters !== undefined && data.clusters !== null) {
|
|
2750
2884
|
contents.clusters = deserializeAws_restJson1StringList(data.clusters, context);
|
|
2751
2885
|
}
|
|
@@ -2821,7 +2955,7 @@ const deserializeAws_restJson1ListFargateProfilesCommand = async (output, contex
|
|
|
2821
2955
|
fargateProfileNames: undefined,
|
|
2822
2956
|
nextToken: undefined,
|
|
2823
2957
|
};
|
|
2824
|
-
const data = await parseBody(output.body, context);
|
|
2958
|
+
const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
|
|
2825
2959
|
if (data.fargateProfileNames !== undefined && data.fargateProfileNames !== null) {
|
|
2826
2960
|
contents.fargateProfileNames = deserializeAws_restJson1StringList(data.fargateProfileNames, context);
|
|
2827
2961
|
}
|
|
@@ -2897,7 +3031,7 @@ const deserializeAws_restJson1ListIdentityProviderConfigsCommand = async (output
|
|
|
2897
3031
|
identityProviderConfigs: undefined,
|
|
2898
3032
|
nextToken: undefined,
|
|
2899
3033
|
};
|
|
2900
|
-
const data = await parseBody(output.body, context);
|
|
3034
|
+
const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
|
|
2901
3035
|
if (data.identityProviderConfigs !== undefined && data.identityProviderConfigs !== null) {
|
|
2902
3036
|
contents.identityProviderConfigs = deserializeAws_restJson1IdentityProviderConfigs(data.identityProviderConfigs, context);
|
|
2903
3037
|
}
|
|
@@ -2981,7 +3115,7 @@ const deserializeAws_restJson1ListNodegroupsCommand = async (output, context) =>
|
|
|
2981
3115
|
nextToken: undefined,
|
|
2982
3116
|
nodegroups: undefined,
|
|
2983
3117
|
};
|
|
2984
|
-
const data = await parseBody(output.body, context);
|
|
3118
|
+
const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
|
|
2985
3119
|
if (data.nextToken !== undefined && data.nextToken !== null) {
|
|
2986
3120
|
contents.nextToken = smithy_client_1.expectString(data.nextToken);
|
|
2987
3121
|
}
|
|
@@ -3064,7 +3198,7 @@ const deserializeAws_restJson1ListTagsForResourceCommand = async (output, contex
|
|
|
3064
3198
|
$metadata: deserializeMetadata(output),
|
|
3065
3199
|
tags: undefined,
|
|
3066
3200
|
};
|
|
3067
|
-
const data = await parseBody(output.body, context);
|
|
3201
|
+
const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
|
|
3068
3202
|
if (data.tags !== undefined && data.tags !== null) {
|
|
3069
3203
|
contents.tags = deserializeAws_restJson1TagMap(data.tags, context);
|
|
3070
3204
|
}
|
|
@@ -3121,7 +3255,7 @@ const deserializeAws_restJson1ListUpdatesCommand = async (output, context) => {
|
|
|
3121
3255
|
nextToken: undefined,
|
|
3122
3256
|
updateIds: undefined,
|
|
3123
3257
|
};
|
|
3124
|
-
const data = await parseBody(output.body, context);
|
|
3258
|
+
const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
|
|
3125
3259
|
if (data.nextToken !== undefined && data.nextToken !== null) {
|
|
3126
3260
|
contents.nextToken = smithy_client_1.expectString(data.nextToken);
|
|
3127
3261
|
}
|
|
@@ -3188,6 +3322,86 @@ const deserializeAws_restJson1ListUpdatesCommandError = async (output, context)
|
|
|
3188
3322
|
delete response.Message;
|
|
3189
3323
|
return Promise.reject(Object.assign(new Error(message), response));
|
|
3190
3324
|
};
|
|
3325
|
+
const deserializeAws_restJson1RegisterClusterCommand = async (output, context) => {
|
|
3326
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3327
|
+
return deserializeAws_restJson1RegisterClusterCommandError(output, context);
|
|
3328
|
+
}
|
|
3329
|
+
const contents = {
|
|
3330
|
+
$metadata: deserializeMetadata(output),
|
|
3331
|
+
cluster: undefined,
|
|
3332
|
+
};
|
|
3333
|
+
const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
|
|
3334
|
+
if (data.cluster !== undefined && data.cluster !== null) {
|
|
3335
|
+
contents.cluster = deserializeAws_restJson1Cluster(data.cluster, context);
|
|
3336
|
+
}
|
|
3337
|
+
return Promise.resolve(contents);
|
|
3338
|
+
};
|
|
3339
|
+
exports.deserializeAws_restJson1RegisterClusterCommand = deserializeAws_restJson1RegisterClusterCommand;
|
|
3340
|
+
const deserializeAws_restJson1RegisterClusterCommandError = async (output, context) => {
|
|
3341
|
+
const parsedOutput = {
|
|
3342
|
+
...output,
|
|
3343
|
+
body: await parseBody(output.body, context),
|
|
3344
|
+
};
|
|
3345
|
+
let response;
|
|
3346
|
+
let errorCode = "UnknownError";
|
|
3347
|
+
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3348
|
+
switch (errorCode) {
|
|
3349
|
+
case "ClientException":
|
|
3350
|
+
case "com.amazonaws.eks#ClientException":
|
|
3351
|
+
response = {
|
|
3352
|
+
...(await deserializeAws_restJson1ClientExceptionResponse(parsedOutput, context)),
|
|
3353
|
+
name: errorCode,
|
|
3354
|
+
$metadata: deserializeMetadata(output),
|
|
3355
|
+
};
|
|
3356
|
+
break;
|
|
3357
|
+
case "InvalidParameterException":
|
|
3358
|
+
case "com.amazonaws.eks#InvalidParameterException":
|
|
3359
|
+
response = {
|
|
3360
|
+
...(await deserializeAws_restJson1InvalidParameterExceptionResponse(parsedOutput, context)),
|
|
3361
|
+
name: errorCode,
|
|
3362
|
+
$metadata: deserializeMetadata(output),
|
|
3363
|
+
};
|
|
3364
|
+
break;
|
|
3365
|
+
case "ResourceLimitExceededException":
|
|
3366
|
+
case "com.amazonaws.eks#ResourceLimitExceededException":
|
|
3367
|
+
response = {
|
|
3368
|
+
...(await deserializeAws_restJson1ResourceLimitExceededExceptionResponse(parsedOutput, context)),
|
|
3369
|
+
name: errorCode,
|
|
3370
|
+
$metadata: deserializeMetadata(output),
|
|
3371
|
+
};
|
|
3372
|
+
break;
|
|
3373
|
+
case "ServerException":
|
|
3374
|
+
case "com.amazonaws.eks#ServerException":
|
|
3375
|
+
response = {
|
|
3376
|
+
...(await deserializeAws_restJson1ServerExceptionResponse(parsedOutput, context)),
|
|
3377
|
+
name: errorCode,
|
|
3378
|
+
$metadata: deserializeMetadata(output),
|
|
3379
|
+
};
|
|
3380
|
+
break;
|
|
3381
|
+
case "ServiceUnavailableException":
|
|
3382
|
+
case "com.amazonaws.eks#ServiceUnavailableException":
|
|
3383
|
+
response = {
|
|
3384
|
+
...(await deserializeAws_restJson1ServiceUnavailableExceptionResponse(parsedOutput, context)),
|
|
3385
|
+
name: errorCode,
|
|
3386
|
+
$metadata: deserializeMetadata(output),
|
|
3387
|
+
};
|
|
3388
|
+
break;
|
|
3389
|
+
default:
|
|
3390
|
+
const parsedBody = parsedOutput.body;
|
|
3391
|
+
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
3392
|
+
response = {
|
|
3393
|
+
...parsedBody,
|
|
3394
|
+
name: `${errorCode}`,
|
|
3395
|
+
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
3396
|
+
$fault: "client",
|
|
3397
|
+
$metadata: deserializeMetadata(output),
|
|
3398
|
+
};
|
|
3399
|
+
}
|
|
3400
|
+
const message = response.message || response.Message || errorCode;
|
|
3401
|
+
response.message = message;
|
|
3402
|
+
delete response.Message;
|
|
3403
|
+
return Promise.reject(Object.assign(new Error(message), response));
|
|
3404
|
+
};
|
|
3191
3405
|
const deserializeAws_restJson1TagResourceCommand = async (output, context) => {
|
|
3192
3406
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3193
3407
|
return deserializeAws_restJson1TagResourceCommandError(output, context);
|
|
@@ -3300,7 +3514,7 @@ const deserializeAws_restJson1UpdateAddonCommand = async (output, context) => {
|
|
|
3300
3514
|
$metadata: deserializeMetadata(output),
|
|
3301
3515
|
update: undefined,
|
|
3302
3516
|
};
|
|
3303
|
-
const data = await parseBody(output.body, context);
|
|
3517
|
+
const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
|
|
3304
3518
|
if (data.update !== undefined && data.update !== null) {
|
|
3305
3519
|
contents.update = deserializeAws_restJson1Update(data.update, context);
|
|
3306
3520
|
}
|
|
@@ -3388,7 +3602,7 @@ const deserializeAws_restJson1UpdateClusterConfigCommand = async (output, contex
|
|
|
3388
3602
|
$metadata: deserializeMetadata(output),
|
|
3389
3603
|
update: undefined,
|
|
3390
3604
|
};
|
|
3391
|
-
const data = await parseBody(output.body, context);
|
|
3605
|
+
const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
|
|
3392
3606
|
if (data.update !== undefined && data.update !== null) {
|
|
3393
3607
|
contents.update = deserializeAws_restJson1Update(data.update, context);
|
|
3394
3608
|
}
|
|
@@ -3476,7 +3690,7 @@ const deserializeAws_restJson1UpdateClusterVersionCommand = async (output, conte
|
|
|
3476
3690
|
$metadata: deserializeMetadata(output),
|
|
3477
3691
|
update: undefined,
|
|
3478
3692
|
};
|
|
3479
|
-
const data = await parseBody(output.body, context);
|
|
3693
|
+
const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
|
|
3480
3694
|
if (data.update !== undefined && data.update !== null) {
|
|
3481
3695
|
contents.update = deserializeAws_restJson1Update(data.update, context);
|
|
3482
3696
|
}
|
|
@@ -3564,7 +3778,7 @@ const deserializeAws_restJson1UpdateNodegroupConfigCommand = async (output, cont
|
|
|
3564
3778
|
$metadata: deserializeMetadata(output),
|
|
3565
3779
|
update: undefined,
|
|
3566
3780
|
};
|
|
3567
|
-
const data = await parseBody(output.body, context);
|
|
3781
|
+
const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
|
|
3568
3782
|
if (data.update !== undefined && data.update !== null) {
|
|
3569
3783
|
contents.update = deserializeAws_restJson1Update(data.update, context);
|
|
3570
3784
|
}
|
|
@@ -3652,7 +3866,7 @@ const deserializeAws_restJson1UpdateNodegroupVersionCommand = async (output, con
|
|
|
3652
3866
|
$metadata: deserializeMetadata(output),
|
|
3653
3867
|
update: undefined,
|
|
3654
3868
|
};
|
|
3655
|
-
const data = await parseBody(output.body, context);
|
|
3869
|
+
const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
|
|
3656
3870
|
if (data.update !== undefined && data.update !== null) {
|
|
3657
3871
|
contents.update = deserializeAws_restJson1Update(data.update, context);
|
|
3658
3872
|
}
|
|
@@ -3975,6 +4189,12 @@ const deserializeAws_restJson1UnsupportedAvailabilityZoneExceptionResponse = asy
|
|
|
3975
4189
|
}
|
|
3976
4190
|
return contents;
|
|
3977
4191
|
};
|
|
4192
|
+
const serializeAws_restJson1ConnectorConfigRequest = (input, context) => {
|
|
4193
|
+
return {
|
|
4194
|
+
...(input.provider !== undefined && input.provider !== null && { provider: input.provider }),
|
|
4195
|
+
...(input.roleArn !== undefined && input.roleArn !== null && { roleArn: input.roleArn }),
|
|
4196
|
+
};
|
|
4197
|
+
};
|
|
3978
4198
|
const serializeAws_restJson1EncryptionConfig = (input, context) => {
|
|
3979
4199
|
return {
|
|
3980
4200
|
...(input.provider !== undefined &&
|
|
@@ -4238,13 +4458,13 @@ const deserializeAws_restJson1Addon = (output, context) => {
|
|
|
4238
4458
|
addonVersion: smithy_client_1.expectString(output.addonVersion),
|
|
4239
4459
|
clusterName: smithy_client_1.expectString(output.clusterName),
|
|
4240
4460
|
createdAt: output.createdAt !== undefined && output.createdAt !== null
|
|
4241
|
-
?
|
|
4461
|
+
? smithy_client_1.expectNonNull(smithy_client_1.parseEpochTimestamp(smithy_client_1.expectNumber(output.createdAt)))
|
|
4242
4462
|
: undefined,
|
|
4243
4463
|
health: output.health !== undefined && output.health !== null
|
|
4244
4464
|
? deserializeAws_restJson1AddonHealth(output.health, context)
|
|
4245
4465
|
: undefined,
|
|
4246
4466
|
modifiedAt: output.modifiedAt !== undefined && output.modifiedAt !== null
|
|
4247
|
-
?
|
|
4467
|
+
? smithy_client_1.expectNonNull(smithy_client_1.parseEpochTimestamp(smithy_client_1.expectNumber(output.modifiedAt)))
|
|
4248
4468
|
: undefined,
|
|
4249
4469
|
serviceAccountRoleArn: smithy_client_1.expectString(output.serviceAccountRoleArn),
|
|
4250
4470
|
status: smithy_client_1.expectString(output.status),
|
|
@@ -4346,8 +4566,11 @@ const deserializeAws_restJson1Cluster = (output, context) => {
|
|
|
4346
4566
|
? deserializeAws_restJson1Certificate(output.certificateAuthority, context)
|
|
4347
4567
|
: undefined,
|
|
4348
4568
|
clientRequestToken: smithy_client_1.expectString(output.clientRequestToken),
|
|
4569
|
+
connectorConfig: output.connectorConfig !== undefined && output.connectorConfig !== null
|
|
4570
|
+
? deserializeAws_restJson1ConnectorConfigResponse(output.connectorConfig, context)
|
|
4571
|
+
: undefined,
|
|
4349
4572
|
createdAt: output.createdAt !== undefined && output.createdAt !== null
|
|
4350
|
-
?
|
|
4573
|
+
? smithy_client_1.expectNonNull(smithy_client_1.parseEpochTimestamp(smithy_client_1.expectNumber(output.createdAt)))
|
|
4351
4574
|
: undefined,
|
|
4352
4575
|
encryptionConfig: output.encryptionConfig !== undefined && output.encryptionConfig !== null
|
|
4353
4576
|
? deserializeAws_restJson1EncryptionConfigList(output.encryptionConfig, context)
|
|
@@ -4394,6 +4617,17 @@ const deserializeAws_restJson1Compatibility = (output, context) => {
|
|
|
4394
4617
|
: undefined,
|
|
4395
4618
|
};
|
|
4396
4619
|
};
|
|
4620
|
+
const deserializeAws_restJson1ConnectorConfigResponse = (output, context) => {
|
|
4621
|
+
return {
|
|
4622
|
+
activationCode: smithy_client_1.expectString(output.activationCode),
|
|
4623
|
+
activationExpiry: output.activationExpiry !== undefined && output.activationExpiry !== null
|
|
4624
|
+
? smithy_client_1.expectNonNull(smithy_client_1.parseEpochTimestamp(smithy_client_1.expectNumber(output.activationExpiry)))
|
|
4625
|
+
: undefined,
|
|
4626
|
+
activationId: smithy_client_1.expectString(output.activationId),
|
|
4627
|
+
provider: smithy_client_1.expectString(output.provider),
|
|
4628
|
+
roleArn: smithy_client_1.expectString(output.roleArn),
|
|
4629
|
+
};
|
|
4630
|
+
};
|
|
4397
4631
|
const deserializeAws_restJson1EncryptionConfig = (output, context) => {
|
|
4398
4632
|
return {
|
|
4399
4633
|
provider: output.provider !== undefined && output.provider !== null
|
|
@@ -4437,7 +4671,7 @@ const deserializeAws_restJson1FargateProfile = (output, context) => {
|
|
|
4437
4671
|
return {
|
|
4438
4672
|
clusterName: smithy_client_1.expectString(output.clusterName),
|
|
4439
4673
|
createdAt: output.createdAt !== undefined && output.createdAt !== null
|
|
4440
|
-
?
|
|
4674
|
+
? smithy_client_1.expectNonNull(smithy_client_1.parseEpochTimestamp(smithy_client_1.expectNumber(output.createdAt)))
|
|
4441
4675
|
: undefined,
|
|
4442
4676
|
fargateProfileArn: smithy_client_1.expectString(output.fargateProfileArn),
|
|
4443
4677
|
fargateProfileName: smithy_client_1.expectString(output.fargateProfileName),
|
|
@@ -4596,9 +4830,9 @@ const deserializeAws_restJson1Nodegroup = (output, context) => {
|
|
|
4596
4830
|
capacityType: smithy_client_1.expectString(output.capacityType),
|
|
4597
4831
|
clusterName: smithy_client_1.expectString(output.clusterName),
|
|
4598
4832
|
createdAt: output.createdAt !== undefined && output.createdAt !== null
|
|
4599
|
-
?
|
|
4833
|
+
? smithy_client_1.expectNonNull(smithy_client_1.parseEpochTimestamp(smithy_client_1.expectNumber(output.createdAt)))
|
|
4600
4834
|
: undefined,
|
|
4601
|
-
diskSize: smithy_client_1.
|
|
4835
|
+
diskSize: smithy_client_1.expectInt32(output.diskSize),
|
|
4602
4836
|
health: output.health !== undefined && output.health !== null
|
|
4603
4837
|
? deserializeAws_restJson1NodegroupHealth(output.health, context)
|
|
4604
4838
|
: undefined,
|
|
@@ -4612,7 +4846,7 @@ const deserializeAws_restJson1Nodegroup = (output, context) => {
|
|
|
4612
4846
|
? deserializeAws_restJson1LaunchTemplateSpecification(output.launchTemplate, context)
|
|
4613
4847
|
: undefined,
|
|
4614
4848
|
modifiedAt: output.modifiedAt !== undefined && output.modifiedAt !== null
|
|
4615
|
-
?
|
|
4849
|
+
? smithy_client_1.expectNonNull(smithy_client_1.parseEpochTimestamp(smithy_client_1.expectNumber(output.modifiedAt)))
|
|
4616
4850
|
: undefined,
|
|
4617
4851
|
nodeRole: smithy_client_1.expectString(output.nodeRole),
|
|
4618
4852
|
nodegroupArn: smithy_client_1.expectString(output.nodegroupArn),
|
|
@@ -4660,15 +4894,15 @@ const deserializeAws_restJson1NodegroupResources = (output, context) => {
|
|
|
4660
4894
|
};
|
|
4661
4895
|
const deserializeAws_restJson1NodegroupScalingConfig = (output, context) => {
|
|
4662
4896
|
return {
|
|
4663
|
-
desiredSize: smithy_client_1.
|
|
4664
|
-
maxSize: smithy_client_1.
|
|
4665
|
-
minSize: smithy_client_1.
|
|
4897
|
+
desiredSize: smithy_client_1.expectInt32(output.desiredSize),
|
|
4898
|
+
maxSize: smithy_client_1.expectInt32(output.maxSize),
|
|
4899
|
+
minSize: smithy_client_1.expectInt32(output.minSize),
|
|
4666
4900
|
};
|
|
4667
4901
|
};
|
|
4668
4902
|
const deserializeAws_restJson1NodegroupUpdateConfig = (output, context) => {
|
|
4669
4903
|
return {
|
|
4670
|
-
maxUnavailable: smithy_client_1.
|
|
4671
|
-
maxUnavailablePercentage: smithy_client_1.
|
|
4904
|
+
maxUnavailable: smithy_client_1.expectInt32(output.maxUnavailable),
|
|
4905
|
+
maxUnavailablePercentage: smithy_client_1.expectInt32(output.maxUnavailablePercentage),
|
|
4672
4906
|
};
|
|
4673
4907
|
};
|
|
4674
4908
|
const deserializeAws_restJson1OIDC = (output, context) => {
|
|
@@ -4761,7 +4995,7 @@ const deserializeAws_restJson1taintsList = (output, context) => {
|
|
|
4761
4995
|
const deserializeAws_restJson1Update = (output, context) => {
|
|
4762
4996
|
return {
|
|
4763
4997
|
createdAt: output.createdAt !== undefined && output.createdAt !== null
|
|
4764
|
-
?
|
|
4998
|
+
? smithy_client_1.expectNonNull(smithy_client_1.parseEpochTimestamp(smithy_client_1.expectNumber(output.createdAt)))
|
|
4765
4999
|
: undefined,
|
|
4766
5000
|
errors: output.errors !== undefined && output.errors !== null
|
|
4767
5001
|
? deserializeAws_restJson1ErrorDetails(output.errors, context)
|