@aws-sdk/client-eks 3.30.0 → 3.34.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 +38 -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 +13 -13
- package/dist/cjs/EKSClient.js.map +1 -1
- package/dist/cjs/commands/AssociateEncryptionConfigCommand.js +3 -3
- package/dist/cjs/commands/AssociateEncryptionConfigCommand.js.map +1 -1
- package/dist/cjs/commands/AssociateIdentityProviderConfigCommand.js +3 -3
- package/dist/cjs/commands/AssociateIdentityProviderConfigCommand.js.map +1 -1
- package/dist/cjs/commands/CreateAddonCommand.js +3 -3
- package/dist/cjs/commands/CreateAddonCommand.js.map +1 -1
- package/dist/cjs/commands/CreateClusterCommand.js +3 -3
- package/dist/cjs/commands/CreateClusterCommand.js.map +1 -1
- package/dist/cjs/commands/CreateFargateProfileCommand.js +3 -3
- package/dist/cjs/commands/CreateFargateProfileCommand.js.map +1 -1
- package/dist/cjs/commands/CreateNodegroupCommand.js +3 -3
- package/dist/cjs/commands/CreateNodegroupCommand.js.map +1 -1
- package/dist/cjs/commands/DeleteAddonCommand.js +3 -3
- package/dist/cjs/commands/DeleteAddonCommand.js.map +1 -1
- package/dist/cjs/commands/DeleteClusterCommand.js +3 -3
- package/dist/cjs/commands/DeleteClusterCommand.js.map +1 -1
- package/dist/cjs/commands/DeleteFargateProfileCommand.js +3 -3
- package/dist/cjs/commands/DeleteFargateProfileCommand.js.map +1 -1
- package/dist/cjs/commands/DeleteNodegroupCommand.js +3 -3
- package/dist/cjs/commands/DeleteNodegroupCommand.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/DescribeAddonCommand.js +3 -3
- package/dist/cjs/commands/DescribeAddonCommand.js.map +1 -1
- package/dist/cjs/commands/DescribeAddonVersionsCommand.js +3 -3
- package/dist/cjs/commands/DescribeAddonVersionsCommand.js.map +1 -1
- package/dist/cjs/commands/DescribeClusterCommand.js +3 -3
- package/dist/cjs/commands/DescribeClusterCommand.js.map +1 -1
- package/dist/cjs/commands/DescribeFargateProfileCommand.js +3 -3
- package/dist/cjs/commands/DescribeFargateProfileCommand.js.map +1 -1
- package/dist/cjs/commands/DescribeIdentityProviderConfigCommand.js +3 -3
- package/dist/cjs/commands/DescribeIdentityProviderConfigCommand.js.map +1 -1
- package/dist/cjs/commands/DescribeNodegroupCommand.js +3 -3
- package/dist/cjs/commands/DescribeNodegroupCommand.js.map +1 -1
- package/dist/cjs/commands/DescribeUpdateCommand.js +3 -3
- package/dist/cjs/commands/DescribeUpdateCommand.js.map +1 -1
- package/dist/cjs/commands/DisassociateIdentityProviderConfigCommand.js +3 -3
- package/dist/cjs/commands/DisassociateIdentityProviderConfigCommand.js.map +1 -1
- package/dist/cjs/commands/ListAddonsCommand.js +3 -3
- package/dist/cjs/commands/ListAddonsCommand.js.map +1 -1
- package/dist/cjs/commands/ListClustersCommand.js +3 -3
- package/dist/cjs/commands/ListClustersCommand.js.map +1 -1
- package/dist/cjs/commands/ListFargateProfilesCommand.js +3 -3
- package/dist/cjs/commands/ListFargateProfilesCommand.js.map +1 -1
- package/dist/cjs/commands/ListIdentityProviderConfigsCommand.js +3 -3
- package/dist/cjs/commands/ListIdentityProviderConfigsCommand.js.map +1 -1
- package/dist/cjs/commands/ListNodegroupsCommand.js +3 -3
- package/dist/cjs/commands/ListNodegroupsCommand.js.map +1 -1
- package/dist/cjs/commands/ListTagsForResourceCommand.js +3 -3
- package/dist/cjs/commands/ListTagsForResourceCommand.js.map +1 -1
- package/dist/cjs/commands/ListUpdatesCommand.js +3 -3
- package/dist/cjs/commands/ListUpdatesCommand.js.map +1 -1
- package/dist/cjs/commands/RegisterClusterCommand.js +70 -0
- package/dist/cjs/commands/RegisterClusterCommand.js.map +1 -0
- package/dist/cjs/commands/TagResourceCommand.js +3 -3
- package/dist/cjs/commands/TagResourceCommand.js.map +1 -1
- package/dist/cjs/commands/UntagResourceCommand.js +3 -3
- package/dist/cjs/commands/UntagResourceCommand.js.map +1 -1
- package/dist/cjs/commands/UpdateAddonCommand.js +3 -3
- package/dist/cjs/commands/UpdateAddonCommand.js.map +1 -1
- package/dist/cjs/commands/UpdateClusterConfigCommand.js +3 -3
- package/dist/cjs/commands/UpdateClusterConfigCommand.js.map +1 -1
- package/dist/cjs/commands/UpdateClusterVersionCommand.js +3 -3
- package/dist/cjs/commands/UpdateClusterVersionCommand.js.map +1 -1
- package/dist/cjs/commands/UpdateNodegroupConfigCommand.js +3 -3
- package/dist/cjs/commands/UpdateNodegroupConfigCommand.js.map +1 -1
- package/dist/cjs/commands/UpdateNodegroupVersionCommand.js +3 -3
- package/dist/cjs/commands/UpdateNodegroupVersionCommand.js.map +1 -1
- package/dist/cjs/endpoints.js +1 -1
- package/dist/cjs/endpoints.js.map +1 -1
- package/dist/cjs/index.js +53 -51
- package/dist/cjs/index.js.map +1 -1
- package/dist/cjs/models/index.js +1 -1
- package/dist/cjs/models/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 +40 -40
- package/dist/cjs/protocols/Aws_restJson1.js +453 -219
- package/dist/cjs/protocols/Aws_restJson1.js.map +1 -1
- package/dist/cjs/runtimeConfig.browser.js +4 -4
- package/dist/cjs/runtimeConfig.browser.js.map +1 -1
- package/dist/cjs/runtimeConfig.js +8 -8
- package/dist/cjs/runtimeConfig.js.map +1 -1
- package/dist/cjs/runtimeConfig.native.js +1 -1
- package/dist/cjs/runtimeConfig.native.js.map +1 -1
- package/dist/cjs/waiters/waitForAddonActive.js +3 -3
- package/dist/cjs/waiters/waitForAddonActive.js.map +1 -1
- package/dist/cjs/waiters/waitForAddonDeleted.js +3 -3
- package/dist/cjs/waiters/waitForAddonDeleted.js.map +1 -1
- package/dist/cjs/waiters/waitForClusterActive.js +3 -3
- package/dist/cjs/waiters/waitForClusterActive.js.map +1 -1
- package/dist/cjs/waiters/waitForClusterDeleted.js +12 -3
- package/dist/cjs/waiters/waitForClusterDeleted.js.map +1 -1
- package/dist/cjs/waiters/waitForFargateProfileActive.js +3 -3
- package/dist/cjs/waiters/waitForFargateProfileActive.js.map +1 -1
- package/dist/cjs/waiters/waitForFargateProfileDeleted.js +3 -3
- package/dist/cjs/waiters/waitForFargateProfileDeleted.js.map +1 -1
- package/dist/cjs/waiters/waitForNodegroupActive.js +3 -3
- package/dist/cjs/waiters/waitForNodegroupActive.js.map +1 -1
- package/dist/cjs/waiters/waitForNodegroupDeleted.js +3 -3
- package/dist/cjs/waiters/waitForNodegroupDeleted.js.map +1 -1
- package/dist/es/EKS.js +31 -13
- package/dist/es/EKS.js.map +1 -1
- package/dist/es/EKSClient.js +1 -18
- package/dist/es/EKSClient.js.map +1 -1
- package/dist/es/commands/AssociateEncryptionConfigCommand.js +2 -30
- package/dist/es/commands/AssociateEncryptionConfigCommand.js.map +1 -1
- package/dist/es/commands/AssociateIdentityProviderConfigCommand.js +2 -34
- package/dist/es/commands/AssociateIdentityProviderConfigCommand.js.map +1 -1
- package/dist/es/commands/CreateAddonCommand.js +2 -32
- package/dist/es/commands/CreateAddonCommand.js.map +1 -1
- package/dist/es/commands/CreateClusterCommand.js +2 -45
- package/dist/es/commands/CreateClusterCommand.js.map +1 -1
- package/dist/es/commands/CreateFargateProfileCommand.js +2 -50
- package/dist/es/commands/CreateFargateProfileCommand.js.map +1 -1
- package/dist/es/commands/CreateNodegroupCommand.js +2 -36
- package/dist/es/commands/CreateNodegroupCommand.js.map +1 -1
- package/dist/es/commands/DeleteAddonCommand.js +2 -29
- package/dist/es/commands/DeleteAddonCommand.js.map +1 -1
- package/dist/es/commands/DeleteClusterCommand.js +2 -34
- package/dist/es/commands/DeleteClusterCommand.js.map +1 -1
- package/dist/es/commands/DeleteFargateProfileCommand.js +2 -34
- package/dist/es/commands/DeleteFargateProfileCommand.js.map +1 -1
- package/dist/es/commands/DeleteNodegroupCommand.js +2 -27
- package/dist/es/commands/DeleteNodegroupCommand.js.map +1 -1
- package/dist/es/commands/DeregisterClusterCommand.js +40 -0
- package/dist/es/commands/DeregisterClusterCommand.js.map +1 -0
- package/dist/es/commands/DescribeAddonCommand.js +2 -27
- package/dist/es/commands/DescribeAddonCommand.js.map +1 -1
- package/dist/es/commands/DescribeAddonVersionsCommand.js +2 -27
- package/dist/es/commands/DescribeAddonVersionsCommand.js.map +1 -1
- package/dist/es/commands/DescribeClusterCommand.js +2 -35
- package/dist/es/commands/DescribeClusterCommand.js.map +1 -1
- package/dist/es/commands/DescribeFargateProfileCommand.js +2 -27
- package/dist/es/commands/DescribeFargateProfileCommand.js.map +1 -1
- package/dist/es/commands/DescribeIdentityProviderConfigCommand.js +2 -27
- package/dist/es/commands/DescribeIdentityProviderConfigCommand.js.map +1 -1
- package/dist/es/commands/DescribeNodegroupCommand.js +2 -27
- package/dist/es/commands/DescribeNodegroupCommand.js.map +1 -1
- package/dist/es/commands/DescribeUpdateCommand.js +2 -31
- package/dist/es/commands/DescribeUpdateCommand.js.map +1 -1
- package/dist/es/commands/DisassociateIdentityProviderConfigCommand.js +2 -30
- package/dist/es/commands/DisassociateIdentityProviderConfigCommand.js.map +1 -1
- package/dist/es/commands/ListAddonsCommand.js +2 -27
- package/dist/es/commands/ListAddonsCommand.js.map +1 -1
- package/dist/es/commands/ListClustersCommand.js +2 -27
- package/dist/es/commands/ListClustersCommand.js.map +1 -1
- package/dist/es/commands/ListFargateProfilesCommand.js +2 -28
- package/dist/es/commands/ListFargateProfilesCommand.js.map +1 -1
- package/dist/es/commands/ListIdentityProviderConfigsCommand.js +2 -27
- package/dist/es/commands/ListIdentityProviderConfigsCommand.js.map +1 -1
- package/dist/es/commands/ListNodegroupsCommand.js +2 -28
- package/dist/es/commands/ListNodegroupsCommand.js.map +1 -1
- package/dist/es/commands/ListTagsForResourceCommand.js +2 -27
- package/dist/es/commands/ListTagsForResourceCommand.js.map +1 -1
- package/dist/es/commands/ListUpdatesCommand.js +2 -28
- package/dist/es/commands/ListUpdatesCommand.js.map +1 -1
- package/dist/es/commands/RegisterClusterCommand.js +40 -0
- package/dist/es/commands/RegisterClusterCommand.js.map +1 -0
- package/dist/es/commands/TagResourceCommand.js +2 -33
- package/dist/es/commands/TagResourceCommand.js.map +1 -1
- package/dist/es/commands/UntagResourceCommand.js +2 -27
- package/dist/es/commands/UntagResourceCommand.js.map +1 -1
- package/dist/es/commands/UpdateAddonCommand.js +2 -27
- package/dist/es/commands/UpdateAddonCommand.js.map +1 -1
- package/dist/es/commands/UpdateClusterConfigCommand.js +2 -53
- package/dist/es/commands/UpdateClusterConfigCommand.js.map +1 -1
- package/dist/es/commands/UpdateClusterVersionCommand.js +2 -37
- package/dist/es/commands/UpdateClusterVersionCommand.js.map +1 -1
- package/dist/es/commands/UpdateNodegroupConfigCommand.js +2 -31
- package/dist/es/commands/UpdateNodegroupConfigCommand.js.map +1 -1
- package/dist/es/commands/UpdateNodegroupVersionCommand.js +2 -44
- package/dist/es/commands/UpdateNodegroupVersionCommand.js.map +1 -1
- package/dist/es/endpoints.js +1 -1
- 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 +36 -342
- package/dist/es/models/models_0.js.map +1 -1
- package/dist/es/package.json +40 -40
- package/dist/es/pagination/DescribeAddonVersionsPaginator.js +16 -28
- package/dist/es/pagination/DescribeAddonVersionsPaginator.js.map +1 -1
- package/dist/es/pagination/ListAddonsPaginator.js +16 -28
- package/dist/es/pagination/ListAddonsPaginator.js.map +1 -1
- package/dist/es/pagination/ListClustersPaginator.js +16 -28
- package/dist/es/pagination/ListClustersPaginator.js.map +1 -1
- package/dist/es/pagination/ListFargateProfilesPaginator.js +16 -28
- package/dist/es/pagination/ListFargateProfilesPaginator.js.map +1 -1
- package/dist/es/pagination/ListIdentityProviderConfigsPaginator.js +16 -28
- package/dist/es/pagination/ListIdentityProviderConfigsPaginator.js.map +1 -1
- package/dist/es/pagination/ListNodegroupsPaginator.js +16 -28
- package/dist/es/pagination/ListNodegroupsPaginator.js.map +1 -1
- package/dist/es/pagination/ListUpdatesPaginator.js +16 -28
- package/dist/es/pagination/ListUpdatesPaginator.js.map +1 -1
- package/dist/es/protocols/Aws_restJson1.js +1197 -938
- package/dist/es/protocols/Aws_restJson1.js.map +1 -1
- package/dist/es/runtimeConfig.browser.js +0 -3
- package/dist/es/runtimeConfig.browser.js.map +1 -1
- package/dist/es/runtimeConfig.js +0 -3
- package/dist/es/runtimeConfig.js.map +1 -1
- package/dist/es/runtimeConfig.native.js +0 -3
- package/dist/es/runtimeConfig.native.js.map +1 -1
- package/dist/es/runtimeConfig.shared.js +0 -3
- package/dist/es/runtimeConfig.shared.js.map +1 -1
- package/dist/es/waiters/waitForAddonActive.js +10 -19
- package/dist/es/waiters/waitForAddonActive.js.map +1 -1
- package/dist/es/waiters/waitForAddonDeleted.js +9 -18
- package/dist/es/waiters/waitForAddonDeleted.js.map +1 -1
- package/dist/es/waiters/waitForClusterActive.js +10 -19
- package/dist/es/waiters/waitForClusterActive.js.map +1 -1
- package/dist/es/waiters/waitForClusterDeleted.js +20 -20
- package/dist/es/waiters/waitForClusterDeleted.js.map +1 -1
- package/dist/es/waiters/waitForFargateProfileActive.js +9 -18
- package/dist/es/waiters/waitForFargateProfileActive.js.map +1 -1
- package/dist/es/waiters/waitForFargateProfileDeleted.js +9 -18
- package/dist/es/waiters/waitForFargateProfileDeleted.js.map +1 -1
- package/dist/es/waiters/waitForNodegroupActive.js +9 -18
- package/dist/es/waiters/waitForNodegroupActive.js.map +1 -1
- package/dist/es/waiters/waitForNodegroupDeleted.js +9 -18
- package/dist/es/waiters/waitForNodegroupDeleted.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/runtimeConfig.browser.d.ts +1 -0
- package/dist/types/runtimeConfig.d.ts +1 -0
- package/dist/types/runtimeConfig.native.d.ts +1 -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/dist/types/ts3.4/runtimeConfig.browser.d.ts +1 -0
- package/dist/types/ts3.4/runtimeConfig.d.ts +1 -0
- package/dist/types/ts3.4/runtimeConfig.native.d.ts +1 -0
- package/index.ts +2 -0
- package/models/models_0.ts +163 -3
- package/package.json +40 -40
- package/protocols/Aws_restJson1.ts +273 -7
- package/tsconfig.es.json +0 -2
- package/tsconfig.json +3 -5
- package/tsconfig.types.json +8 -0
- package/waiters/waitForClusterDeleted.ts +8 -0
|
@@ -20,6 +20,7 @@ import {
|
|
|
20
20
|
DeleteFargateProfileCommandOutput,
|
|
21
21
|
} from "../commands/DeleteFargateProfileCommand";
|
|
22
22
|
import { DeleteNodegroupCommandInput, DeleteNodegroupCommandOutput } from "../commands/DeleteNodegroupCommand";
|
|
23
|
+
import { DeregisterClusterCommandInput, DeregisterClusterCommandOutput } from "../commands/DeregisterClusterCommand";
|
|
23
24
|
import { DescribeAddonCommandInput, DescribeAddonCommandOutput } from "../commands/DescribeAddonCommand";
|
|
24
25
|
import {
|
|
25
26
|
DescribeAddonVersionsCommandInput,
|
|
@@ -56,6 +57,7 @@ import {
|
|
|
56
57
|
ListTagsForResourceCommandOutput,
|
|
57
58
|
} from "../commands/ListTagsForResourceCommand";
|
|
58
59
|
import { ListUpdatesCommandInput, ListUpdatesCommandOutput } from "../commands/ListUpdatesCommand";
|
|
60
|
+
import { RegisterClusterCommandInput, RegisterClusterCommandOutput } from "../commands/RegisterClusterCommand";
|
|
59
61
|
import { TagResourceCommandInput, TagResourceCommandOutput } from "../commands/TagResourceCommand";
|
|
60
62
|
import { UntagResourceCommandInput, UntagResourceCommandOutput } from "../commands/UntagResourceCommand";
|
|
61
63
|
import { UpdateAddonCommandInput, UpdateAddonCommandOutput } from "../commands/UpdateAddonCommand";
|
|
@@ -87,6 +89,8 @@ import {
|
|
|
87
89
|
ClientException,
|
|
88
90
|
Cluster,
|
|
89
91
|
Compatibility,
|
|
92
|
+
ConnectorConfigRequest,
|
|
93
|
+
ConnectorConfigResponse,
|
|
90
94
|
EncryptionConfig,
|
|
91
95
|
ErrorDetail,
|
|
92
96
|
FargateProfile,
|
|
@@ -133,9 +137,11 @@ import {
|
|
|
133
137
|
expectBoolean as __expectBoolean,
|
|
134
138
|
expectInt32 as __expectInt32,
|
|
135
139
|
expectNonNull as __expectNonNull,
|
|
140
|
+
expectNumber as __expectNumber,
|
|
136
141
|
expectObject as __expectObject,
|
|
137
142
|
expectString as __expectString,
|
|
138
143
|
extendedEncodeURIComponent as __extendedEncodeURIComponent,
|
|
144
|
+
parseEpochTimestamp as __parseEpochTimestamp,
|
|
139
145
|
} from "@aws-sdk/smithy-client";
|
|
140
146
|
import {
|
|
141
147
|
Endpoint as __Endpoint,
|
|
@@ -572,6 +578,35 @@ export const serializeAws_restJson1DeleteNodegroupCommand = async (
|
|
|
572
578
|
});
|
|
573
579
|
};
|
|
574
580
|
|
|
581
|
+
export const serializeAws_restJson1DeregisterClusterCommand = async (
|
|
582
|
+
input: DeregisterClusterCommandInput,
|
|
583
|
+
context: __SerdeContext
|
|
584
|
+
): Promise<__HttpRequest> => {
|
|
585
|
+
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
586
|
+
const headers: any = {};
|
|
587
|
+
let resolvedPath =
|
|
588
|
+
`${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/cluster-registrations/{name}";
|
|
589
|
+
if (input.name !== undefined) {
|
|
590
|
+
const labelValue: string = input.name;
|
|
591
|
+
if (labelValue.length <= 0) {
|
|
592
|
+
throw new Error("Empty value provided for input HTTP label: name.");
|
|
593
|
+
}
|
|
594
|
+
resolvedPath = resolvedPath.replace("{name}", __extendedEncodeURIComponent(labelValue));
|
|
595
|
+
} else {
|
|
596
|
+
throw new Error("No value provided for input HTTP label: name.");
|
|
597
|
+
}
|
|
598
|
+
let body: any;
|
|
599
|
+
return new __HttpRequest({
|
|
600
|
+
protocol,
|
|
601
|
+
hostname,
|
|
602
|
+
port,
|
|
603
|
+
method: "DELETE",
|
|
604
|
+
headers,
|
|
605
|
+
path: resolvedPath,
|
|
606
|
+
body,
|
|
607
|
+
});
|
|
608
|
+
};
|
|
609
|
+
|
|
575
610
|
export const serializeAws_restJson1DescribeAddonCommand = async (
|
|
576
611
|
input: DescribeAddonCommandInput,
|
|
577
612
|
context: __SerdeContext
|
|
@@ -908,6 +943,7 @@ export const serializeAws_restJson1ListClustersCommand = async (
|
|
|
908
943
|
const query: any = {
|
|
909
944
|
...(input.maxResults !== undefined && { maxResults: input.maxResults.toString() }),
|
|
910
945
|
...(input.nextToken !== undefined && { nextToken: input.nextToken }),
|
|
946
|
+
...(input.include !== undefined && { include: (input.include || []).map((_entry) => _entry as any) }),
|
|
911
947
|
};
|
|
912
948
|
let body: any;
|
|
913
949
|
return new __HttpRequest({
|
|
@@ -1088,6 +1124,35 @@ export const serializeAws_restJson1ListUpdatesCommand = async (
|
|
|
1088
1124
|
});
|
|
1089
1125
|
};
|
|
1090
1126
|
|
|
1127
|
+
export const serializeAws_restJson1RegisterClusterCommand = async (
|
|
1128
|
+
input: RegisterClusterCommandInput,
|
|
1129
|
+
context: __SerdeContext
|
|
1130
|
+
): Promise<__HttpRequest> => {
|
|
1131
|
+
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
1132
|
+
const headers: any = {
|
|
1133
|
+
"content-type": "application/json",
|
|
1134
|
+
};
|
|
1135
|
+
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/cluster-registrations";
|
|
1136
|
+
let body: any;
|
|
1137
|
+
body = JSON.stringify({
|
|
1138
|
+
clientRequestToken: input.clientRequestToken ?? generateIdempotencyToken(),
|
|
1139
|
+
...(input.connectorConfig !== undefined &&
|
|
1140
|
+
input.connectorConfig !== null && {
|
|
1141
|
+
connectorConfig: serializeAws_restJson1ConnectorConfigRequest(input.connectorConfig, context),
|
|
1142
|
+
}),
|
|
1143
|
+
...(input.name !== undefined && input.name !== null && { name: input.name }),
|
|
1144
|
+
});
|
|
1145
|
+
return new __HttpRequest({
|
|
1146
|
+
protocol,
|
|
1147
|
+
hostname,
|
|
1148
|
+
port,
|
|
1149
|
+
method: "POST",
|
|
1150
|
+
headers,
|
|
1151
|
+
path: resolvedPath,
|
|
1152
|
+
body,
|
|
1153
|
+
});
|
|
1154
|
+
};
|
|
1155
|
+
|
|
1091
1156
|
export const serializeAws_restJson1TagResourceCommand = async (
|
|
1092
1157
|
input: TagResourceCommandInput,
|
|
1093
1158
|
context: __SerdeContext
|
|
@@ -2322,6 +2387,93 @@ const deserializeAws_restJson1DeleteNodegroupCommandError = async (
|
|
|
2322
2387
|
return Promise.reject(Object.assign(new Error(message), response));
|
|
2323
2388
|
};
|
|
2324
2389
|
|
|
2390
|
+
export const deserializeAws_restJson1DeregisterClusterCommand = async (
|
|
2391
|
+
output: __HttpResponse,
|
|
2392
|
+
context: __SerdeContext
|
|
2393
|
+
): Promise<DeregisterClusterCommandOutput> => {
|
|
2394
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2395
|
+
return deserializeAws_restJson1DeregisterClusterCommandError(output, context);
|
|
2396
|
+
}
|
|
2397
|
+
const contents: DeregisterClusterCommandOutput = {
|
|
2398
|
+
$metadata: deserializeMetadata(output),
|
|
2399
|
+
cluster: undefined,
|
|
2400
|
+
};
|
|
2401
|
+
const data: { [key: string]: any } = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
2402
|
+
if (data.cluster !== undefined && data.cluster !== null) {
|
|
2403
|
+
contents.cluster = deserializeAws_restJson1Cluster(data.cluster, context);
|
|
2404
|
+
}
|
|
2405
|
+
return Promise.resolve(contents);
|
|
2406
|
+
};
|
|
2407
|
+
|
|
2408
|
+
const deserializeAws_restJson1DeregisterClusterCommandError = async (
|
|
2409
|
+
output: __HttpResponse,
|
|
2410
|
+
context: __SerdeContext
|
|
2411
|
+
): Promise<DeregisterClusterCommandOutput> => {
|
|
2412
|
+
const parsedOutput: any = {
|
|
2413
|
+
...output,
|
|
2414
|
+
body: await parseBody(output.body, context),
|
|
2415
|
+
};
|
|
2416
|
+
let response: __SmithyException & __MetadataBearer & { [key: string]: any };
|
|
2417
|
+
let errorCode: string = "UnknownError";
|
|
2418
|
+
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2419
|
+
switch (errorCode) {
|
|
2420
|
+
case "ClientException":
|
|
2421
|
+
case "com.amazonaws.eks#ClientException":
|
|
2422
|
+
response = {
|
|
2423
|
+
...(await deserializeAws_restJson1ClientExceptionResponse(parsedOutput, context)),
|
|
2424
|
+
name: errorCode,
|
|
2425
|
+
$metadata: deserializeMetadata(output),
|
|
2426
|
+
};
|
|
2427
|
+
break;
|
|
2428
|
+
case "ResourceInUseException":
|
|
2429
|
+
case "com.amazonaws.eks#ResourceInUseException":
|
|
2430
|
+
response = {
|
|
2431
|
+
...(await deserializeAws_restJson1ResourceInUseExceptionResponse(parsedOutput, context)),
|
|
2432
|
+
name: errorCode,
|
|
2433
|
+
$metadata: deserializeMetadata(output),
|
|
2434
|
+
};
|
|
2435
|
+
break;
|
|
2436
|
+
case "ResourceNotFoundException":
|
|
2437
|
+
case "com.amazonaws.eks#ResourceNotFoundException":
|
|
2438
|
+
response = {
|
|
2439
|
+
...(await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)),
|
|
2440
|
+
name: errorCode,
|
|
2441
|
+
$metadata: deserializeMetadata(output),
|
|
2442
|
+
};
|
|
2443
|
+
break;
|
|
2444
|
+
case "ServerException":
|
|
2445
|
+
case "com.amazonaws.eks#ServerException":
|
|
2446
|
+
response = {
|
|
2447
|
+
...(await deserializeAws_restJson1ServerExceptionResponse(parsedOutput, context)),
|
|
2448
|
+
name: errorCode,
|
|
2449
|
+
$metadata: deserializeMetadata(output),
|
|
2450
|
+
};
|
|
2451
|
+
break;
|
|
2452
|
+
case "ServiceUnavailableException":
|
|
2453
|
+
case "com.amazonaws.eks#ServiceUnavailableException":
|
|
2454
|
+
response = {
|
|
2455
|
+
...(await deserializeAws_restJson1ServiceUnavailableExceptionResponse(parsedOutput, context)),
|
|
2456
|
+
name: errorCode,
|
|
2457
|
+
$metadata: deserializeMetadata(output),
|
|
2458
|
+
};
|
|
2459
|
+
break;
|
|
2460
|
+
default:
|
|
2461
|
+
const parsedBody = parsedOutput.body;
|
|
2462
|
+
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
2463
|
+
response = {
|
|
2464
|
+
...parsedBody,
|
|
2465
|
+
name: `${errorCode}`,
|
|
2466
|
+
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
2467
|
+
$fault: "client",
|
|
2468
|
+
$metadata: deserializeMetadata(output),
|
|
2469
|
+
} as any;
|
|
2470
|
+
}
|
|
2471
|
+
const message = response.message || response.Message || errorCode;
|
|
2472
|
+
response.message = message;
|
|
2473
|
+
delete response.Message;
|
|
2474
|
+
return Promise.reject(Object.assign(new Error(message), response));
|
|
2475
|
+
};
|
|
2476
|
+
|
|
2325
2477
|
export const deserializeAws_restJson1DescribeAddonCommand = async (
|
|
2326
2478
|
output: __HttpResponse,
|
|
2327
2479
|
context: __SerdeContext
|
|
@@ -3581,6 +3733,93 @@ const deserializeAws_restJson1ListUpdatesCommandError = async (
|
|
|
3581
3733
|
return Promise.reject(Object.assign(new Error(message), response));
|
|
3582
3734
|
};
|
|
3583
3735
|
|
|
3736
|
+
export const deserializeAws_restJson1RegisterClusterCommand = async (
|
|
3737
|
+
output: __HttpResponse,
|
|
3738
|
+
context: __SerdeContext
|
|
3739
|
+
): Promise<RegisterClusterCommandOutput> => {
|
|
3740
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3741
|
+
return deserializeAws_restJson1RegisterClusterCommandError(output, context);
|
|
3742
|
+
}
|
|
3743
|
+
const contents: RegisterClusterCommandOutput = {
|
|
3744
|
+
$metadata: deserializeMetadata(output),
|
|
3745
|
+
cluster: undefined,
|
|
3746
|
+
};
|
|
3747
|
+
const data: { [key: string]: any } = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
3748
|
+
if (data.cluster !== undefined && data.cluster !== null) {
|
|
3749
|
+
contents.cluster = deserializeAws_restJson1Cluster(data.cluster, context);
|
|
3750
|
+
}
|
|
3751
|
+
return Promise.resolve(contents);
|
|
3752
|
+
};
|
|
3753
|
+
|
|
3754
|
+
const deserializeAws_restJson1RegisterClusterCommandError = async (
|
|
3755
|
+
output: __HttpResponse,
|
|
3756
|
+
context: __SerdeContext
|
|
3757
|
+
): Promise<RegisterClusterCommandOutput> => {
|
|
3758
|
+
const parsedOutput: any = {
|
|
3759
|
+
...output,
|
|
3760
|
+
body: await parseBody(output.body, context),
|
|
3761
|
+
};
|
|
3762
|
+
let response: __SmithyException & __MetadataBearer & { [key: string]: any };
|
|
3763
|
+
let errorCode: string = "UnknownError";
|
|
3764
|
+
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3765
|
+
switch (errorCode) {
|
|
3766
|
+
case "ClientException":
|
|
3767
|
+
case "com.amazonaws.eks#ClientException":
|
|
3768
|
+
response = {
|
|
3769
|
+
...(await deserializeAws_restJson1ClientExceptionResponse(parsedOutput, context)),
|
|
3770
|
+
name: errorCode,
|
|
3771
|
+
$metadata: deserializeMetadata(output),
|
|
3772
|
+
};
|
|
3773
|
+
break;
|
|
3774
|
+
case "InvalidParameterException":
|
|
3775
|
+
case "com.amazonaws.eks#InvalidParameterException":
|
|
3776
|
+
response = {
|
|
3777
|
+
...(await deserializeAws_restJson1InvalidParameterExceptionResponse(parsedOutput, context)),
|
|
3778
|
+
name: errorCode,
|
|
3779
|
+
$metadata: deserializeMetadata(output),
|
|
3780
|
+
};
|
|
3781
|
+
break;
|
|
3782
|
+
case "ResourceLimitExceededException":
|
|
3783
|
+
case "com.amazonaws.eks#ResourceLimitExceededException":
|
|
3784
|
+
response = {
|
|
3785
|
+
...(await deserializeAws_restJson1ResourceLimitExceededExceptionResponse(parsedOutput, context)),
|
|
3786
|
+
name: errorCode,
|
|
3787
|
+
$metadata: deserializeMetadata(output),
|
|
3788
|
+
};
|
|
3789
|
+
break;
|
|
3790
|
+
case "ServerException":
|
|
3791
|
+
case "com.amazonaws.eks#ServerException":
|
|
3792
|
+
response = {
|
|
3793
|
+
...(await deserializeAws_restJson1ServerExceptionResponse(parsedOutput, context)),
|
|
3794
|
+
name: errorCode,
|
|
3795
|
+
$metadata: deserializeMetadata(output),
|
|
3796
|
+
};
|
|
3797
|
+
break;
|
|
3798
|
+
case "ServiceUnavailableException":
|
|
3799
|
+
case "com.amazonaws.eks#ServiceUnavailableException":
|
|
3800
|
+
response = {
|
|
3801
|
+
...(await deserializeAws_restJson1ServiceUnavailableExceptionResponse(parsedOutput, context)),
|
|
3802
|
+
name: errorCode,
|
|
3803
|
+
$metadata: deserializeMetadata(output),
|
|
3804
|
+
};
|
|
3805
|
+
break;
|
|
3806
|
+
default:
|
|
3807
|
+
const parsedBody = parsedOutput.body;
|
|
3808
|
+
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
3809
|
+
response = {
|
|
3810
|
+
...parsedBody,
|
|
3811
|
+
name: `${errorCode}`,
|
|
3812
|
+
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
3813
|
+
$fault: "client",
|
|
3814
|
+
$metadata: deserializeMetadata(output),
|
|
3815
|
+
} as any;
|
|
3816
|
+
}
|
|
3817
|
+
const message = response.message || response.Message || errorCode;
|
|
3818
|
+
response.message = message;
|
|
3819
|
+
delete response.Message;
|
|
3820
|
+
return Promise.reject(Object.assign(new Error(message), response));
|
|
3821
|
+
};
|
|
3822
|
+
|
|
3584
3823
|
export const deserializeAws_restJson1TagResourceCommand = async (
|
|
3585
3824
|
output: __HttpResponse,
|
|
3586
3825
|
context: __SerdeContext
|
|
@@ -4461,6 +4700,13 @@ const deserializeAws_restJson1UnsupportedAvailabilityZoneExceptionResponse = asy
|
|
|
4461
4700
|
return contents;
|
|
4462
4701
|
};
|
|
4463
4702
|
|
|
4703
|
+
const serializeAws_restJson1ConnectorConfigRequest = (input: ConnectorConfigRequest, context: __SerdeContext): any => {
|
|
4704
|
+
return {
|
|
4705
|
+
...(input.provider !== undefined && input.provider !== null && { provider: input.provider }),
|
|
4706
|
+
...(input.roleArn !== undefined && input.roleArn !== null && { roleArn: input.roleArn }),
|
|
4707
|
+
};
|
|
4708
|
+
};
|
|
4709
|
+
|
|
4464
4710
|
const serializeAws_restJson1EncryptionConfig = (input: EncryptionConfig, context: __SerdeContext): any => {
|
|
4465
4711
|
return {
|
|
4466
4712
|
...(input.provider !== undefined &&
|
|
@@ -4764,7 +5010,7 @@ const deserializeAws_restJson1Addon = (output: any, context: __SerdeContext): Ad
|
|
|
4764
5010
|
clusterName: __expectString(output.clusterName),
|
|
4765
5011
|
createdAt:
|
|
4766
5012
|
output.createdAt !== undefined && output.createdAt !== null
|
|
4767
|
-
?
|
|
5013
|
+
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.createdAt)))
|
|
4768
5014
|
: undefined,
|
|
4769
5015
|
health:
|
|
4770
5016
|
output.health !== undefined && output.health !== null
|
|
@@ -4772,7 +5018,7 @@ const deserializeAws_restJson1Addon = (output: any, context: __SerdeContext): Ad
|
|
|
4772
5018
|
: undefined,
|
|
4773
5019
|
modifiedAt:
|
|
4774
5020
|
output.modifiedAt !== undefined && output.modifiedAt !== null
|
|
4775
|
-
?
|
|
5021
|
+
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.modifiedAt)))
|
|
4776
5022
|
: undefined,
|
|
4777
5023
|
serviceAccountRoleArn: __expectString(output.serviceAccountRoleArn),
|
|
4778
5024
|
status: __expectString(output.status),
|
|
@@ -4892,9 +5138,13 @@ const deserializeAws_restJson1Cluster = (output: any, context: __SerdeContext):
|
|
|
4892
5138
|
? deserializeAws_restJson1Certificate(output.certificateAuthority, context)
|
|
4893
5139
|
: undefined,
|
|
4894
5140
|
clientRequestToken: __expectString(output.clientRequestToken),
|
|
5141
|
+
connectorConfig:
|
|
5142
|
+
output.connectorConfig !== undefined && output.connectorConfig !== null
|
|
5143
|
+
? deserializeAws_restJson1ConnectorConfigResponse(output.connectorConfig, context)
|
|
5144
|
+
: undefined,
|
|
4895
5145
|
createdAt:
|
|
4896
5146
|
output.createdAt !== undefined && output.createdAt !== null
|
|
4897
|
-
?
|
|
5147
|
+
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.createdAt)))
|
|
4898
5148
|
: undefined,
|
|
4899
5149
|
encryptionConfig:
|
|
4900
5150
|
output.encryptionConfig !== undefined && output.encryptionConfig !== null
|
|
@@ -4951,6 +5201,22 @@ const deserializeAws_restJson1Compatibility = (output: any, context: __SerdeCont
|
|
|
4951
5201
|
} as any;
|
|
4952
5202
|
};
|
|
4953
5203
|
|
|
5204
|
+
const deserializeAws_restJson1ConnectorConfigResponse = (
|
|
5205
|
+
output: any,
|
|
5206
|
+
context: __SerdeContext
|
|
5207
|
+
): ConnectorConfigResponse => {
|
|
5208
|
+
return {
|
|
5209
|
+
activationCode: __expectString(output.activationCode),
|
|
5210
|
+
activationExpiry:
|
|
5211
|
+
output.activationExpiry !== undefined && output.activationExpiry !== null
|
|
5212
|
+
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.activationExpiry)))
|
|
5213
|
+
: undefined,
|
|
5214
|
+
activationId: __expectString(output.activationId),
|
|
5215
|
+
provider: __expectString(output.provider),
|
|
5216
|
+
roleArn: __expectString(output.roleArn),
|
|
5217
|
+
} as any;
|
|
5218
|
+
};
|
|
5219
|
+
|
|
4954
5220
|
const deserializeAws_restJson1EncryptionConfig = (output: any, context: __SerdeContext): EncryptionConfig => {
|
|
4955
5221
|
return {
|
|
4956
5222
|
provider:
|
|
@@ -5002,7 +5268,7 @@ const deserializeAws_restJson1FargateProfile = (output: any, context: __SerdeCon
|
|
|
5002
5268
|
clusterName: __expectString(output.clusterName),
|
|
5003
5269
|
createdAt:
|
|
5004
5270
|
output.createdAt !== undefined && output.createdAt !== null
|
|
5005
|
-
?
|
|
5271
|
+
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.createdAt)))
|
|
5006
5272
|
: undefined,
|
|
5007
5273
|
fargateProfileArn: __expectString(output.fargateProfileArn),
|
|
5008
5274
|
fargateProfileName: __expectString(output.fargateProfileName),
|
|
@@ -5212,7 +5478,7 @@ const deserializeAws_restJson1Nodegroup = (output: any, context: __SerdeContext)
|
|
|
5212
5478
|
clusterName: __expectString(output.clusterName),
|
|
5213
5479
|
createdAt:
|
|
5214
5480
|
output.createdAt !== undefined && output.createdAt !== null
|
|
5215
|
-
?
|
|
5481
|
+
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.createdAt)))
|
|
5216
5482
|
: undefined,
|
|
5217
5483
|
diskSize: __expectInt32(output.diskSize),
|
|
5218
5484
|
health:
|
|
@@ -5233,7 +5499,7 @@ const deserializeAws_restJson1Nodegroup = (output: any, context: __SerdeContext)
|
|
|
5233
5499
|
: undefined,
|
|
5234
5500
|
modifiedAt:
|
|
5235
5501
|
output.modifiedAt !== undefined && output.modifiedAt !== null
|
|
5236
|
-
?
|
|
5502
|
+
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.modifiedAt)))
|
|
5237
5503
|
: undefined,
|
|
5238
5504
|
nodeRole: __expectString(output.nodeRole),
|
|
5239
5505
|
nodegroupArn: __expectString(output.nodegroupArn),
|
|
@@ -5415,7 +5681,7 @@ const deserializeAws_restJson1Update = (output: any, context: __SerdeContext): U
|
|
|
5415
5681
|
return {
|
|
5416
5682
|
createdAt:
|
|
5417
5683
|
output.createdAt !== undefined && output.createdAt !== null
|
|
5418
|
-
?
|
|
5684
|
+
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.createdAt)))
|
|
5419
5685
|
: undefined,
|
|
5420
5686
|
errors:
|
|
5421
5687
|
output.errors !== undefined && output.errors !== null
|
package/tsconfig.es.json
CHANGED
package/tsconfig.json
CHANGED
|
@@ -3,7 +3,6 @@
|
|
|
3
3
|
"alwaysStrict": true,
|
|
4
4
|
"target": "ES2018",
|
|
5
5
|
"module": "commonjs",
|
|
6
|
-
"declaration": true,
|
|
7
6
|
"strict": true,
|
|
8
7
|
"sourceMap": true,
|
|
9
8
|
"downlevelIteration": true,
|
|
@@ -12,9 +11,8 @@
|
|
|
12
11
|
"incremental": true,
|
|
13
12
|
"resolveJsonModule": true,
|
|
14
13
|
"esModuleInterop": true,
|
|
15
|
-
"declarationDir": "./dist/types",
|
|
16
14
|
"outDir": "dist/cjs",
|
|
17
|
-
"
|
|
15
|
+
"removeComments": true
|
|
18
16
|
},
|
|
19
17
|
"typedocOptions": {
|
|
20
18
|
"exclude": ["**/node_modules/**", "**/*.spec.ts", "**/protocols/*.ts", "**/e2e/*.ts", "**/endpoints.ts"],
|
|
@@ -24,9 +22,9 @@
|
|
|
24
22
|
"ignoreCompilerErrors": true,
|
|
25
23
|
"includeDeclarations": true,
|
|
26
24
|
"stripInternal": true,
|
|
27
|
-
"readme": "
|
|
25
|
+
"readme": "README.md",
|
|
28
26
|
"mode": "file",
|
|
29
|
-
"out": "
|
|
27
|
+
"out": "docs",
|
|
30
28
|
"theme": "minimal",
|
|
31
29
|
"plugin": ["@aws-sdk/client-documentation-generator"]
|
|
32
30
|
}
|
|
@@ -23,6 +23,14 @@ const checkState = async (client: EKSClient, input: DescribeClusterCommandInput)
|
|
|
23
23
|
return { state: WaiterState.FAILURE, reason };
|
|
24
24
|
}
|
|
25
25
|
} catch (e) {}
|
|
26
|
+
try {
|
|
27
|
+
let returnComparator = () => {
|
|
28
|
+
return result.cluster.status;
|
|
29
|
+
};
|
|
30
|
+
if (returnComparator() === "PENDING") {
|
|
31
|
+
return { state: WaiterState.FAILURE, reason };
|
|
32
|
+
}
|
|
33
|
+
} catch (e) {}
|
|
26
34
|
} catch (exception) {
|
|
27
35
|
reason = exception;
|
|
28
36
|
if (exception.name && exception.name == "ResourceNotFoundException") {
|