@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.
Files changed (257) hide show
  1. package/CHANGELOG.md +38 -0
  2. package/EKS.ts +83 -0
  3. package/EKSClient.ts +6 -0
  4. package/commands/DeregisterClusterCommand.ts +94 -0
  5. package/commands/RegisterClusterCommand.ts +103 -0
  6. package/dist/cjs/EKS.js +30 -0
  7. package/dist/cjs/EKS.js.map +1 -1
  8. package/dist/cjs/EKSClient.js +13 -13
  9. package/dist/cjs/EKSClient.js.map +1 -1
  10. package/dist/cjs/commands/AssociateEncryptionConfigCommand.js +3 -3
  11. package/dist/cjs/commands/AssociateEncryptionConfigCommand.js.map +1 -1
  12. package/dist/cjs/commands/AssociateIdentityProviderConfigCommand.js +3 -3
  13. package/dist/cjs/commands/AssociateIdentityProviderConfigCommand.js.map +1 -1
  14. package/dist/cjs/commands/CreateAddonCommand.js +3 -3
  15. package/dist/cjs/commands/CreateAddonCommand.js.map +1 -1
  16. package/dist/cjs/commands/CreateClusterCommand.js +3 -3
  17. package/dist/cjs/commands/CreateClusterCommand.js.map +1 -1
  18. package/dist/cjs/commands/CreateFargateProfileCommand.js +3 -3
  19. package/dist/cjs/commands/CreateFargateProfileCommand.js.map +1 -1
  20. package/dist/cjs/commands/CreateNodegroupCommand.js +3 -3
  21. package/dist/cjs/commands/CreateNodegroupCommand.js.map +1 -1
  22. package/dist/cjs/commands/DeleteAddonCommand.js +3 -3
  23. package/dist/cjs/commands/DeleteAddonCommand.js.map +1 -1
  24. package/dist/cjs/commands/DeleteClusterCommand.js +3 -3
  25. package/dist/cjs/commands/DeleteClusterCommand.js.map +1 -1
  26. package/dist/cjs/commands/DeleteFargateProfileCommand.js +3 -3
  27. package/dist/cjs/commands/DeleteFargateProfileCommand.js.map +1 -1
  28. package/dist/cjs/commands/DeleteNodegroupCommand.js +3 -3
  29. package/dist/cjs/commands/DeleteNodegroupCommand.js.map +1 -1
  30. package/dist/cjs/commands/DeregisterClusterCommand.js +61 -0
  31. package/dist/cjs/commands/DeregisterClusterCommand.js.map +1 -0
  32. package/dist/cjs/commands/DescribeAddonCommand.js +3 -3
  33. package/dist/cjs/commands/DescribeAddonCommand.js.map +1 -1
  34. package/dist/cjs/commands/DescribeAddonVersionsCommand.js +3 -3
  35. package/dist/cjs/commands/DescribeAddonVersionsCommand.js.map +1 -1
  36. package/dist/cjs/commands/DescribeClusterCommand.js +3 -3
  37. package/dist/cjs/commands/DescribeClusterCommand.js.map +1 -1
  38. package/dist/cjs/commands/DescribeFargateProfileCommand.js +3 -3
  39. package/dist/cjs/commands/DescribeFargateProfileCommand.js.map +1 -1
  40. package/dist/cjs/commands/DescribeIdentityProviderConfigCommand.js +3 -3
  41. package/dist/cjs/commands/DescribeIdentityProviderConfigCommand.js.map +1 -1
  42. package/dist/cjs/commands/DescribeNodegroupCommand.js +3 -3
  43. package/dist/cjs/commands/DescribeNodegroupCommand.js.map +1 -1
  44. package/dist/cjs/commands/DescribeUpdateCommand.js +3 -3
  45. package/dist/cjs/commands/DescribeUpdateCommand.js.map +1 -1
  46. package/dist/cjs/commands/DisassociateIdentityProviderConfigCommand.js +3 -3
  47. package/dist/cjs/commands/DisassociateIdentityProviderConfigCommand.js.map +1 -1
  48. package/dist/cjs/commands/ListAddonsCommand.js +3 -3
  49. package/dist/cjs/commands/ListAddonsCommand.js.map +1 -1
  50. package/dist/cjs/commands/ListClustersCommand.js +3 -3
  51. package/dist/cjs/commands/ListClustersCommand.js.map +1 -1
  52. package/dist/cjs/commands/ListFargateProfilesCommand.js +3 -3
  53. package/dist/cjs/commands/ListFargateProfilesCommand.js.map +1 -1
  54. package/dist/cjs/commands/ListIdentityProviderConfigsCommand.js +3 -3
  55. package/dist/cjs/commands/ListIdentityProviderConfigsCommand.js.map +1 -1
  56. package/dist/cjs/commands/ListNodegroupsCommand.js +3 -3
  57. package/dist/cjs/commands/ListNodegroupsCommand.js.map +1 -1
  58. package/dist/cjs/commands/ListTagsForResourceCommand.js +3 -3
  59. package/dist/cjs/commands/ListTagsForResourceCommand.js.map +1 -1
  60. package/dist/cjs/commands/ListUpdatesCommand.js +3 -3
  61. package/dist/cjs/commands/ListUpdatesCommand.js.map +1 -1
  62. package/dist/cjs/commands/RegisterClusterCommand.js +70 -0
  63. package/dist/cjs/commands/RegisterClusterCommand.js.map +1 -0
  64. package/dist/cjs/commands/TagResourceCommand.js +3 -3
  65. package/dist/cjs/commands/TagResourceCommand.js.map +1 -1
  66. package/dist/cjs/commands/UntagResourceCommand.js +3 -3
  67. package/dist/cjs/commands/UntagResourceCommand.js.map +1 -1
  68. package/dist/cjs/commands/UpdateAddonCommand.js +3 -3
  69. package/dist/cjs/commands/UpdateAddonCommand.js.map +1 -1
  70. package/dist/cjs/commands/UpdateClusterConfigCommand.js +3 -3
  71. package/dist/cjs/commands/UpdateClusterConfigCommand.js.map +1 -1
  72. package/dist/cjs/commands/UpdateClusterVersionCommand.js +3 -3
  73. package/dist/cjs/commands/UpdateClusterVersionCommand.js.map +1 -1
  74. package/dist/cjs/commands/UpdateNodegroupConfigCommand.js +3 -3
  75. package/dist/cjs/commands/UpdateNodegroupConfigCommand.js.map +1 -1
  76. package/dist/cjs/commands/UpdateNodegroupVersionCommand.js +3 -3
  77. package/dist/cjs/commands/UpdateNodegroupVersionCommand.js.map +1 -1
  78. package/dist/cjs/endpoints.js +1 -1
  79. package/dist/cjs/endpoints.js.map +1 -1
  80. package/dist/cjs/index.js +53 -51
  81. package/dist/cjs/index.js.map +1 -1
  82. package/dist/cjs/models/index.js +1 -1
  83. package/dist/cjs/models/index.js.map +1 -1
  84. package/dist/cjs/models/models_0.js +69 -3
  85. package/dist/cjs/models/models_0.js.map +1 -1
  86. package/dist/cjs/package.json +40 -40
  87. package/dist/cjs/protocols/Aws_restJson1.js +453 -219
  88. package/dist/cjs/protocols/Aws_restJson1.js.map +1 -1
  89. package/dist/cjs/runtimeConfig.browser.js +4 -4
  90. package/dist/cjs/runtimeConfig.browser.js.map +1 -1
  91. package/dist/cjs/runtimeConfig.js +8 -8
  92. package/dist/cjs/runtimeConfig.js.map +1 -1
  93. package/dist/cjs/runtimeConfig.native.js +1 -1
  94. package/dist/cjs/runtimeConfig.native.js.map +1 -1
  95. package/dist/cjs/waiters/waitForAddonActive.js +3 -3
  96. package/dist/cjs/waiters/waitForAddonActive.js.map +1 -1
  97. package/dist/cjs/waiters/waitForAddonDeleted.js +3 -3
  98. package/dist/cjs/waiters/waitForAddonDeleted.js.map +1 -1
  99. package/dist/cjs/waiters/waitForClusterActive.js +3 -3
  100. package/dist/cjs/waiters/waitForClusterActive.js.map +1 -1
  101. package/dist/cjs/waiters/waitForClusterDeleted.js +12 -3
  102. package/dist/cjs/waiters/waitForClusterDeleted.js.map +1 -1
  103. package/dist/cjs/waiters/waitForFargateProfileActive.js +3 -3
  104. package/dist/cjs/waiters/waitForFargateProfileActive.js.map +1 -1
  105. package/dist/cjs/waiters/waitForFargateProfileDeleted.js +3 -3
  106. package/dist/cjs/waiters/waitForFargateProfileDeleted.js.map +1 -1
  107. package/dist/cjs/waiters/waitForNodegroupActive.js +3 -3
  108. package/dist/cjs/waiters/waitForNodegroupActive.js.map +1 -1
  109. package/dist/cjs/waiters/waitForNodegroupDeleted.js +3 -3
  110. package/dist/cjs/waiters/waitForNodegroupDeleted.js.map +1 -1
  111. package/dist/es/EKS.js +31 -13
  112. package/dist/es/EKS.js.map +1 -1
  113. package/dist/es/EKSClient.js +1 -18
  114. package/dist/es/EKSClient.js.map +1 -1
  115. package/dist/es/commands/AssociateEncryptionConfigCommand.js +2 -30
  116. package/dist/es/commands/AssociateEncryptionConfigCommand.js.map +1 -1
  117. package/dist/es/commands/AssociateIdentityProviderConfigCommand.js +2 -34
  118. package/dist/es/commands/AssociateIdentityProviderConfigCommand.js.map +1 -1
  119. package/dist/es/commands/CreateAddonCommand.js +2 -32
  120. package/dist/es/commands/CreateAddonCommand.js.map +1 -1
  121. package/dist/es/commands/CreateClusterCommand.js +2 -45
  122. package/dist/es/commands/CreateClusterCommand.js.map +1 -1
  123. package/dist/es/commands/CreateFargateProfileCommand.js +2 -50
  124. package/dist/es/commands/CreateFargateProfileCommand.js.map +1 -1
  125. package/dist/es/commands/CreateNodegroupCommand.js +2 -36
  126. package/dist/es/commands/CreateNodegroupCommand.js.map +1 -1
  127. package/dist/es/commands/DeleteAddonCommand.js +2 -29
  128. package/dist/es/commands/DeleteAddonCommand.js.map +1 -1
  129. package/dist/es/commands/DeleteClusterCommand.js +2 -34
  130. package/dist/es/commands/DeleteClusterCommand.js.map +1 -1
  131. package/dist/es/commands/DeleteFargateProfileCommand.js +2 -34
  132. package/dist/es/commands/DeleteFargateProfileCommand.js.map +1 -1
  133. package/dist/es/commands/DeleteNodegroupCommand.js +2 -27
  134. package/dist/es/commands/DeleteNodegroupCommand.js.map +1 -1
  135. package/dist/es/commands/DeregisterClusterCommand.js +40 -0
  136. package/dist/es/commands/DeregisterClusterCommand.js.map +1 -0
  137. package/dist/es/commands/DescribeAddonCommand.js +2 -27
  138. package/dist/es/commands/DescribeAddonCommand.js.map +1 -1
  139. package/dist/es/commands/DescribeAddonVersionsCommand.js +2 -27
  140. package/dist/es/commands/DescribeAddonVersionsCommand.js.map +1 -1
  141. package/dist/es/commands/DescribeClusterCommand.js +2 -35
  142. package/dist/es/commands/DescribeClusterCommand.js.map +1 -1
  143. package/dist/es/commands/DescribeFargateProfileCommand.js +2 -27
  144. package/dist/es/commands/DescribeFargateProfileCommand.js.map +1 -1
  145. package/dist/es/commands/DescribeIdentityProviderConfigCommand.js +2 -27
  146. package/dist/es/commands/DescribeIdentityProviderConfigCommand.js.map +1 -1
  147. package/dist/es/commands/DescribeNodegroupCommand.js +2 -27
  148. package/dist/es/commands/DescribeNodegroupCommand.js.map +1 -1
  149. package/dist/es/commands/DescribeUpdateCommand.js +2 -31
  150. package/dist/es/commands/DescribeUpdateCommand.js.map +1 -1
  151. package/dist/es/commands/DisassociateIdentityProviderConfigCommand.js +2 -30
  152. package/dist/es/commands/DisassociateIdentityProviderConfigCommand.js.map +1 -1
  153. package/dist/es/commands/ListAddonsCommand.js +2 -27
  154. package/dist/es/commands/ListAddonsCommand.js.map +1 -1
  155. package/dist/es/commands/ListClustersCommand.js +2 -27
  156. package/dist/es/commands/ListClustersCommand.js.map +1 -1
  157. package/dist/es/commands/ListFargateProfilesCommand.js +2 -28
  158. package/dist/es/commands/ListFargateProfilesCommand.js.map +1 -1
  159. package/dist/es/commands/ListIdentityProviderConfigsCommand.js +2 -27
  160. package/dist/es/commands/ListIdentityProviderConfigsCommand.js.map +1 -1
  161. package/dist/es/commands/ListNodegroupsCommand.js +2 -28
  162. package/dist/es/commands/ListNodegroupsCommand.js.map +1 -1
  163. package/dist/es/commands/ListTagsForResourceCommand.js +2 -27
  164. package/dist/es/commands/ListTagsForResourceCommand.js.map +1 -1
  165. package/dist/es/commands/ListUpdatesCommand.js +2 -28
  166. package/dist/es/commands/ListUpdatesCommand.js.map +1 -1
  167. package/dist/es/commands/RegisterClusterCommand.js +40 -0
  168. package/dist/es/commands/RegisterClusterCommand.js.map +1 -0
  169. package/dist/es/commands/TagResourceCommand.js +2 -33
  170. package/dist/es/commands/TagResourceCommand.js.map +1 -1
  171. package/dist/es/commands/UntagResourceCommand.js +2 -27
  172. package/dist/es/commands/UntagResourceCommand.js.map +1 -1
  173. package/dist/es/commands/UpdateAddonCommand.js +2 -27
  174. package/dist/es/commands/UpdateAddonCommand.js.map +1 -1
  175. package/dist/es/commands/UpdateClusterConfigCommand.js +2 -53
  176. package/dist/es/commands/UpdateClusterConfigCommand.js.map +1 -1
  177. package/dist/es/commands/UpdateClusterVersionCommand.js +2 -37
  178. package/dist/es/commands/UpdateClusterVersionCommand.js.map +1 -1
  179. package/dist/es/commands/UpdateNodegroupConfigCommand.js +2 -31
  180. package/dist/es/commands/UpdateNodegroupConfigCommand.js.map +1 -1
  181. package/dist/es/commands/UpdateNodegroupVersionCommand.js +2 -44
  182. package/dist/es/commands/UpdateNodegroupVersionCommand.js.map +1 -1
  183. package/dist/es/endpoints.js +1 -1
  184. package/dist/es/endpoints.js.map +1 -1
  185. package/dist/es/index.js +2 -0
  186. package/dist/es/index.js.map +1 -1
  187. package/dist/es/models/models_0.js +36 -342
  188. package/dist/es/models/models_0.js.map +1 -1
  189. package/dist/es/package.json +40 -40
  190. package/dist/es/pagination/DescribeAddonVersionsPaginator.js +16 -28
  191. package/dist/es/pagination/DescribeAddonVersionsPaginator.js.map +1 -1
  192. package/dist/es/pagination/ListAddonsPaginator.js +16 -28
  193. package/dist/es/pagination/ListAddonsPaginator.js.map +1 -1
  194. package/dist/es/pagination/ListClustersPaginator.js +16 -28
  195. package/dist/es/pagination/ListClustersPaginator.js.map +1 -1
  196. package/dist/es/pagination/ListFargateProfilesPaginator.js +16 -28
  197. package/dist/es/pagination/ListFargateProfilesPaginator.js.map +1 -1
  198. package/dist/es/pagination/ListIdentityProviderConfigsPaginator.js +16 -28
  199. package/dist/es/pagination/ListIdentityProviderConfigsPaginator.js.map +1 -1
  200. package/dist/es/pagination/ListNodegroupsPaginator.js +16 -28
  201. package/dist/es/pagination/ListNodegroupsPaginator.js.map +1 -1
  202. package/dist/es/pagination/ListUpdatesPaginator.js +16 -28
  203. package/dist/es/pagination/ListUpdatesPaginator.js.map +1 -1
  204. package/dist/es/protocols/Aws_restJson1.js +1197 -938
  205. package/dist/es/protocols/Aws_restJson1.js.map +1 -1
  206. package/dist/es/runtimeConfig.browser.js +0 -3
  207. package/dist/es/runtimeConfig.browser.js.map +1 -1
  208. package/dist/es/runtimeConfig.js +0 -3
  209. package/dist/es/runtimeConfig.js.map +1 -1
  210. package/dist/es/runtimeConfig.native.js +0 -3
  211. package/dist/es/runtimeConfig.native.js.map +1 -1
  212. package/dist/es/runtimeConfig.shared.js +0 -3
  213. package/dist/es/runtimeConfig.shared.js.map +1 -1
  214. package/dist/es/waiters/waitForAddonActive.js +10 -19
  215. package/dist/es/waiters/waitForAddonActive.js.map +1 -1
  216. package/dist/es/waiters/waitForAddonDeleted.js +9 -18
  217. package/dist/es/waiters/waitForAddonDeleted.js.map +1 -1
  218. package/dist/es/waiters/waitForClusterActive.js +10 -19
  219. package/dist/es/waiters/waitForClusterActive.js.map +1 -1
  220. package/dist/es/waiters/waitForClusterDeleted.js +20 -20
  221. package/dist/es/waiters/waitForClusterDeleted.js.map +1 -1
  222. package/dist/es/waiters/waitForFargateProfileActive.js +9 -18
  223. package/dist/es/waiters/waitForFargateProfileActive.js.map +1 -1
  224. package/dist/es/waiters/waitForFargateProfileDeleted.js +9 -18
  225. package/dist/es/waiters/waitForFargateProfileDeleted.js.map +1 -1
  226. package/dist/es/waiters/waitForNodegroupActive.js +9 -18
  227. package/dist/es/waiters/waitForNodegroupActive.js.map +1 -1
  228. package/dist/es/waiters/waitForNodegroupDeleted.js +9 -18
  229. package/dist/es/waiters/waitForNodegroupDeleted.js.map +1 -1
  230. package/dist/types/EKS.d.ts +23 -0
  231. package/dist/types/EKSClient.d.ts +4 -2
  232. package/dist/types/commands/DeregisterClusterCommand.d.ts +35 -0
  233. package/dist/types/commands/RegisterClusterCommand.d.ts +44 -0
  234. package/dist/types/index.d.ts +2 -0
  235. package/dist/types/models/models_0.d.ts +129 -3
  236. package/dist/types/protocols/Aws_restJson1.d.ts +6 -0
  237. package/dist/types/runtimeConfig.browser.d.ts +1 -0
  238. package/dist/types/runtimeConfig.d.ts +1 -0
  239. package/dist/types/runtimeConfig.native.d.ts +1 -0
  240. package/dist/types/ts3.4/EKS.d.ts +23 -0
  241. package/dist/types/ts3.4/EKSClient.d.ts +4 -2
  242. package/dist/types/ts3.4/commands/DeregisterClusterCommand.d.ts +35 -0
  243. package/dist/types/ts3.4/commands/RegisterClusterCommand.d.ts +44 -0
  244. package/dist/types/ts3.4/index.d.ts +2 -0
  245. package/dist/types/ts3.4/models/models_0.d.ts +129 -3
  246. package/dist/types/ts3.4/protocols/Aws_restJson1.d.ts +6 -0
  247. package/dist/types/ts3.4/runtimeConfig.browser.d.ts +1 -0
  248. package/dist/types/ts3.4/runtimeConfig.d.ts +1 -0
  249. package/dist/types/ts3.4/runtimeConfig.native.d.ts +1 -0
  250. package/index.ts +2 -0
  251. package/models/models_0.ts +163 -3
  252. package/package.json +40 -40
  253. package/protocols/Aws_restJson1.ts +273 -7
  254. package/tsconfig.es.json +0 -2
  255. package/tsconfig.json +3 -5
  256. package/tsconfig.types.json +8 -0
  257. 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
- ? new Date(Math.round(output.createdAt * 1000))
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
- ? new Date(Math.round(output.modifiedAt * 1000))
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
- ? new Date(Math.round(output.createdAt * 1000))
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
- ? new Date(Math.round(output.createdAt * 1000))
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
- ? new Date(Math.round(output.createdAt * 1000))
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
- ? new Date(Math.round(output.modifiedAt * 1000))
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
- ? new Date(Math.round(output.createdAt * 1000))
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
@@ -4,8 +4,6 @@
4
4
  "target": "es5",
5
5
  "module": "esnext",
6
6
  "moduleResolution": "node",
7
- "declaration": false,
8
- "declarationDir": null,
9
7
  "lib": ["dom", "es5", "es2015.promise", "es2015.collection", "es2015.iterable", "es2015.symbol.wellknown"],
10
8
  "outDir": "dist/es"
11
9
  }
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
- "useUnknownInCatchVariables": false
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": "./README.md",
25
+ "readme": "README.md",
28
26
  "mode": "file",
29
- "out": "./docs",
27
+ "out": "docs",
30
28
  "theme": "minimal",
31
29
  "plugin": ["@aws-sdk/client-documentation-generator"]
32
30
  }
@@ -0,0 +1,8 @@
1
+ {
2
+ "extends": "./tsconfig",
3
+ "compilerOptions": {
4
+ "removeComments": false,
5
+ "declaration": true,
6
+ "declarationDir": "dist/types"
7
+ }
8
+ }
@@ -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") {