@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
@@ -1,7 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.deserializeAws_restJson1DisassociateIdentityProviderConfigCommand = exports.deserializeAws_restJson1DescribeUpdateCommand = exports.deserializeAws_restJson1DescribeNodegroupCommand = exports.deserializeAws_restJson1DescribeIdentityProviderConfigCommand = exports.deserializeAws_restJson1DescribeFargateProfileCommand = exports.deserializeAws_restJson1DescribeClusterCommand = exports.deserializeAws_restJson1DescribeAddonVersionsCommand = exports.deserializeAws_restJson1DescribeAddonCommand = 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_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_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_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");
@@ -18,14 +18,14 @@ const serializeAws_restJson1AssociateEncryptionConfigCommand = async (input, con
18
18
  if (labelValue.length <= 0) {
19
19
  throw new Error("Empty value provided for input HTTP label: clusterName.");
20
20
  }
21
- resolvedPath = resolvedPath.replace("{clusterName}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
21
+ resolvedPath = resolvedPath.replace("{clusterName}", smithy_client_1.extendedEncodeURIComponent(labelValue));
22
22
  }
23
23
  else {
24
24
  throw new Error("No value provided for input HTTP label: clusterName.");
25
25
  }
26
26
  let body;
27
27
  body = JSON.stringify({
28
- clientRequestToken: (_a = input.clientRequestToken) !== null && _a !== void 0 ? _a : (0, uuid_1.v4)(),
28
+ clientRequestToken: (_a = input.clientRequestToken) !== null && _a !== void 0 ? _a : uuid_1.v4(),
29
29
  ...(input.encryptionConfig !== undefined &&
30
30
  input.encryptionConfig !== null && {
31
31
  encryptionConfig: serializeAws_restJson1EncryptionConfigList(input.encryptionConfig, context),
@@ -55,14 +55,14 @@ const serializeAws_restJson1AssociateIdentityProviderConfigCommand = async (inpu
55
55
  if (labelValue.length <= 0) {
56
56
  throw new Error("Empty value provided for input HTTP label: clusterName.");
57
57
  }
58
- resolvedPath = resolvedPath.replace("{clusterName}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
58
+ resolvedPath = resolvedPath.replace("{clusterName}", smithy_client_1.extendedEncodeURIComponent(labelValue));
59
59
  }
60
60
  else {
61
61
  throw new Error("No value provided for input HTTP label: clusterName.");
62
62
  }
63
63
  let body;
64
64
  body = JSON.stringify({
65
- clientRequestToken: (_a = input.clientRequestToken) !== null && _a !== void 0 ? _a : (0, uuid_1.v4)(),
65
+ clientRequestToken: (_a = input.clientRequestToken) !== null && _a !== void 0 ? _a : uuid_1.v4(),
66
66
  ...(input.oidc !== undefined &&
67
67
  input.oidc !== null && { oidc: serializeAws_restJson1OidcIdentityProviderConfigRequest(input.oidc, context) }),
68
68
  ...(input.tags !== undefined && input.tags !== null && { tags: serializeAws_restJson1TagMap(input.tags, context) }),
@@ -90,7 +90,7 @@ const serializeAws_restJson1CreateAddonCommand = async (input, context) => {
90
90
  if (labelValue.length <= 0) {
91
91
  throw new Error("Empty value provided for input HTTP label: clusterName.");
92
92
  }
93
- resolvedPath = resolvedPath.replace("{clusterName}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
93
+ resolvedPath = resolvedPath.replace("{clusterName}", smithy_client_1.extendedEncodeURIComponent(labelValue));
94
94
  }
95
95
  else {
96
96
  throw new Error("No value provided for input HTTP label: clusterName.");
@@ -99,7 +99,7 @@ const serializeAws_restJson1CreateAddonCommand = async (input, context) => {
99
99
  body = JSON.stringify({
100
100
  ...(input.addonName !== undefined && input.addonName !== null && { addonName: input.addonName }),
101
101
  ...(input.addonVersion !== undefined && input.addonVersion !== null && { addonVersion: input.addonVersion }),
102
- clientRequestToken: (_a = input.clientRequestToken) !== null && _a !== void 0 ? _a : (0, uuid_1.v4)(),
102
+ clientRequestToken: (_a = input.clientRequestToken) !== null && _a !== void 0 ? _a : uuid_1.v4(),
103
103
  ...(input.resolveConflicts !== undefined &&
104
104
  input.resolveConflicts !== null && { resolveConflicts: input.resolveConflicts }),
105
105
  ...(input.serviceAccountRoleArn !== undefined &&
@@ -126,7 +126,7 @@ const serializeAws_restJson1CreateClusterCommand = async (input, context) => {
126
126
  let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/clusters";
127
127
  let body;
128
128
  body = JSON.stringify({
129
- clientRequestToken: (_a = input.clientRequestToken) !== null && _a !== void 0 ? _a : (0, uuid_1.v4)(),
129
+ clientRequestToken: (_a = input.clientRequestToken) !== null && _a !== void 0 ? _a : uuid_1.v4(),
130
130
  ...(input.encryptionConfig !== undefined &&
131
131
  input.encryptionConfig !== null && {
132
132
  encryptionConfig: serializeAws_restJson1EncryptionConfigList(input.encryptionConfig, context),
@@ -169,14 +169,14 @@ const serializeAws_restJson1CreateFargateProfileCommand = async (input, context)
169
169
  if (labelValue.length <= 0) {
170
170
  throw new Error("Empty value provided for input HTTP label: clusterName.");
171
171
  }
172
- resolvedPath = resolvedPath.replace("{clusterName}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
172
+ resolvedPath = resolvedPath.replace("{clusterName}", smithy_client_1.extendedEncodeURIComponent(labelValue));
173
173
  }
174
174
  else {
175
175
  throw new Error("No value provided for input HTTP label: clusterName.");
176
176
  }
177
177
  let body;
178
178
  body = JSON.stringify({
179
- clientRequestToken: (_a = input.clientRequestToken) !== null && _a !== void 0 ? _a : (0, uuid_1.v4)(),
179
+ clientRequestToken: (_a = input.clientRequestToken) !== null && _a !== void 0 ? _a : uuid_1.v4(),
180
180
  ...(input.fargateProfileName !== undefined &&
181
181
  input.fargateProfileName !== null && { fargateProfileName: input.fargateProfileName }),
182
182
  ...(input.podExecutionRoleArn !== undefined &&
@@ -212,7 +212,7 @@ const serializeAws_restJson1CreateNodegroupCommand = async (input, context) => {
212
212
  if (labelValue.length <= 0) {
213
213
  throw new Error("Empty value provided for input HTTP label: clusterName.");
214
214
  }
215
- resolvedPath = resolvedPath.replace("{clusterName}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
215
+ resolvedPath = resolvedPath.replace("{clusterName}", smithy_client_1.extendedEncodeURIComponent(labelValue));
216
216
  }
217
217
  else {
218
218
  throw new Error("No value provided for input HTTP label: clusterName.");
@@ -221,7 +221,7 @@ const serializeAws_restJson1CreateNodegroupCommand = async (input, context) => {
221
221
  body = JSON.stringify({
222
222
  ...(input.amiType !== undefined && input.amiType !== null && { amiType: input.amiType }),
223
223
  ...(input.capacityType !== undefined && input.capacityType !== null && { capacityType: input.capacityType }),
224
- clientRequestToken: (_a = input.clientRequestToken) !== null && _a !== void 0 ? _a : (0, uuid_1.v4)(),
224
+ clientRequestToken: (_a = input.clientRequestToken) !== null && _a !== void 0 ? _a : uuid_1.v4(),
225
225
  ...(input.diskSize !== undefined && input.diskSize !== null && { diskSize: input.diskSize }),
226
226
  ...(input.instanceTypes !== undefined &&
227
227
  input.instanceTypes !== null && {
@@ -277,7 +277,7 @@ const serializeAws_restJson1DeleteAddonCommand = async (input, context) => {
277
277
  if (labelValue.length <= 0) {
278
278
  throw new Error("Empty value provided for input HTTP label: clusterName.");
279
279
  }
280
- resolvedPath = resolvedPath.replace("{clusterName}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
280
+ resolvedPath = resolvedPath.replace("{clusterName}", smithy_client_1.extendedEncodeURIComponent(labelValue));
281
281
  }
282
282
  else {
283
283
  throw new Error("No value provided for input HTTP label: clusterName.");
@@ -287,7 +287,7 @@ const serializeAws_restJson1DeleteAddonCommand = async (input, context) => {
287
287
  if (labelValue.length <= 0) {
288
288
  throw new Error("Empty value provided for input HTTP label: addonName.");
289
289
  }
290
- resolvedPath = resolvedPath.replace("{addonName}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
290
+ resolvedPath = resolvedPath.replace("{addonName}", smithy_client_1.extendedEncodeURIComponent(labelValue));
291
291
  }
292
292
  else {
293
293
  throw new Error("No value provided for input HTTP label: addonName.");
@@ -317,7 +317,7 @@ const serializeAws_restJson1DeleteClusterCommand = async (input, context) => {
317
317
  if (labelValue.length <= 0) {
318
318
  throw new Error("Empty value provided for input HTTP label: name.");
319
319
  }
320
- resolvedPath = resolvedPath.replace("{name}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
320
+ resolvedPath = resolvedPath.replace("{name}", smithy_client_1.extendedEncodeURIComponent(labelValue));
321
321
  }
322
322
  else {
323
323
  throw new Error("No value provided for input HTTP label: name.");
@@ -344,7 +344,7 @@ const serializeAws_restJson1DeleteFargateProfileCommand = async (input, context)
344
344
  if (labelValue.length <= 0) {
345
345
  throw new Error("Empty value provided for input HTTP label: clusterName.");
346
346
  }
347
- resolvedPath = resolvedPath.replace("{clusterName}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
347
+ resolvedPath = resolvedPath.replace("{clusterName}", smithy_client_1.extendedEncodeURIComponent(labelValue));
348
348
  }
349
349
  else {
350
350
  throw new Error("No value provided for input HTTP label: clusterName.");
@@ -354,7 +354,7 @@ const serializeAws_restJson1DeleteFargateProfileCommand = async (input, context)
354
354
  if (labelValue.length <= 0) {
355
355
  throw new Error("Empty value provided for input HTTP label: fargateProfileName.");
356
356
  }
357
- resolvedPath = resolvedPath.replace("{fargateProfileName}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
357
+ resolvedPath = resolvedPath.replace("{fargateProfileName}", smithy_client_1.extendedEncodeURIComponent(labelValue));
358
358
  }
359
359
  else {
360
360
  throw new Error("No value provided for input HTTP label: fargateProfileName.");
@@ -381,7 +381,7 @@ const serializeAws_restJson1DeleteNodegroupCommand = async (input, context) => {
381
381
  if (labelValue.length <= 0) {
382
382
  throw new Error("Empty value provided for input HTTP label: clusterName.");
383
383
  }
384
- resolvedPath = resolvedPath.replace("{clusterName}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
384
+ resolvedPath = resolvedPath.replace("{clusterName}", smithy_client_1.extendedEncodeURIComponent(labelValue));
385
385
  }
386
386
  else {
387
387
  throw new Error("No value provided for input HTTP label: clusterName.");
@@ -391,7 +391,7 @@ const serializeAws_restJson1DeleteNodegroupCommand = async (input, context) => {
391
391
  if (labelValue.length <= 0) {
392
392
  throw new Error("Empty value provided for input HTTP label: nodegroupName.");
393
393
  }
394
- resolvedPath = resolvedPath.replace("{nodegroupName}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
394
+ resolvedPath = resolvedPath.replace("{nodegroupName}", smithy_client_1.extendedEncodeURIComponent(labelValue));
395
395
  }
396
396
  else {
397
397
  throw new Error("No value provided for input HTTP label: nodegroupName.");
@@ -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 = {};
@@ -418,7 +444,7 @@ const serializeAws_restJson1DescribeAddonCommand = async (input, context) => {
418
444
  if (labelValue.length <= 0) {
419
445
  throw new Error("Empty value provided for input HTTP label: clusterName.");
420
446
  }
421
- resolvedPath = resolvedPath.replace("{clusterName}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
447
+ resolvedPath = resolvedPath.replace("{clusterName}", smithy_client_1.extendedEncodeURIComponent(labelValue));
422
448
  }
423
449
  else {
424
450
  throw new Error("No value provided for input HTTP label: clusterName.");
@@ -428,7 +454,7 @@ const serializeAws_restJson1DescribeAddonCommand = async (input, context) => {
428
454
  if (labelValue.length <= 0) {
429
455
  throw new Error("Empty value provided for input HTTP label: addonName.");
430
456
  }
431
- resolvedPath = resolvedPath.replace("{addonName}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
457
+ resolvedPath = resolvedPath.replace("{addonName}", smithy_client_1.extendedEncodeURIComponent(labelValue));
432
458
  }
433
459
  else {
434
460
  throw new Error("No value provided for input HTTP label: addonName.");
@@ -477,7 +503,7 @@ const serializeAws_restJson1DescribeClusterCommand = async (input, context) => {
477
503
  if (labelValue.length <= 0) {
478
504
  throw new Error("Empty value provided for input HTTP label: name.");
479
505
  }
480
- resolvedPath = resolvedPath.replace("{name}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
506
+ resolvedPath = resolvedPath.replace("{name}", smithy_client_1.extendedEncodeURIComponent(labelValue));
481
507
  }
482
508
  else {
483
509
  throw new Error("No value provided for input HTTP label: name.");
@@ -504,7 +530,7 @@ const serializeAws_restJson1DescribeFargateProfileCommand = async (input, contex
504
530
  if (labelValue.length <= 0) {
505
531
  throw new Error("Empty value provided for input HTTP label: clusterName.");
506
532
  }
507
- resolvedPath = resolvedPath.replace("{clusterName}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
533
+ resolvedPath = resolvedPath.replace("{clusterName}", smithy_client_1.extendedEncodeURIComponent(labelValue));
508
534
  }
509
535
  else {
510
536
  throw new Error("No value provided for input HTTP label: clusterName.");
@@ -514,7 +540,7 @@ const serializeAws_restJson1DescribeFargateProfileCommand = async (input, contex
514
540
  if (labelValue.length <= 0) {
515
541
  throw new Error("Empty value provided for input HTTP label: fargateProfileName.");
516
542
  }
517
- resolvedPath = resolvedPath.replace("{fargateProfileName}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
543
+ resolvedPath = resolvedPath.replace("{fargateProfileName}", smithy_client_1.extendedEncodeURIComponent(labelValue));
518
544
  }
519
545
  else {
520
546
  throw new Error("No value provided for input HTTP label: fargateProfileName.");
@@ -543,7 +569,7 @@ const serializeAws_restJson1DescribeIdentityProviderConfigCommand = async (input
543
569
  if (labelValue.length <= 0) {
544
570
  throw new Error("Empty value provided for input HTTP label: clusterName.");
545
571
  }
546
- resolvedPath = resolvedPath.replace("{clusterName}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
572
+ resolvedPath = resolvedPath.replace("{clusterName}", smithy_client_1.extendedEncodeURIComponent(labelValue));
547
573
  }
548
574
  else {
549
575
  throw new Error("No value provided for input HTTP label: clusterName.");
@@ -576,7 +602,7 @@ const serializeAws_restJson1DescribeNodegroupCommand = async (input, context) =>
576
602
  if (labelValue.length <= 0) {
577
603
  throw new Error("Empty value provided for input HTTP label: clusterName.");
578
604
  }
579
- resolvedPath = resolvedPath.replace("{clusterName}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
605
+ resolvedPath = resolvedPath.replace("{clusterName}", smithy_client_1.extendedEncodeURIComponent(labelValue));
580
606
  }
581
607
  else {
582
608
  throw new Error("No value provided for input HTTP label: clusterName.");
@@ -586,7 +612,7 @@ const serializeAws_restJson1DescribeNodegroupCommand = async (input, context) =>
586
612
  if (labelValue.length <= 0) {
587
613
  throw new Error("Empty value provided for input HTTP label: nodegroupName.");
588
614
  }
589
- resolvedPath = resolvedPath.replace("{nodegroupName}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
615
+ resolvedPath = resolvedPath.replace("{nodegroupName}", smithy_client_1.extendedEncodeURIComponent(labelValue));
590
616
  }
591
617
  else {
592
618
  throw new Error("No value provided for input HTTP label: nodegroupName.");
@@ -612,7 +638,7 @@ const serializeAws_restJson1DescribeUpdateCommand = async (input, context) => {
612
638
  if (labelValue.length <= 0) {
613
639
  throw new Error("Empty value provided for input HTTP label: name.");
614
640
  }
615
- resolvedPath = resolvedPath.replace("{name}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
641
+ resolvedPath = resolvedPath.replace("{name}", smithy_client_1.extendedEncodeURIComponent(labelValue));
616
642
  }
617
643
  else {
618
644
  throw new Error("No value provided for input HTTP label: name.");
@@ -622,7 +648,7 @@ const serializeAws_restJson1DescribeUpdateCommand = async (input, context) => {
622
648
  if (labelValue.length <= 0) {
623
649
  throw new Error("Empty value provided for input HTTP label: updateId.");
624
650
  }
625
- resolvedPath = resolvedPath.replace("{updateId}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
651
+ resolvedPath = resolvedPath.replace("{updateId}", smithy_client_1.extendedEncodeURIComponent(labelValue));
626
652
  }
627
653
  else {
628
654
  throw new Error("No value provided for input HTTP label: updateId.");
@@ -657,14 +683,14 @@ const serializeAws_restJson1DisassociateIdentityProviderConfigCommand = async (i
657
683
  if (labelValue.length <= 0) {
658
684
  throw new Error("Empty value provided for input HTTP label: clusterName.");
659
685
  }
660
- resolvedPath = resolvedPath.replace("{clusterName}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
686
+ resolvedPath = resolvedPath.replace("{clusterName}", smithy_client_1.extendedEncodeURIComponent(labelValue));
661
687
  }
662
688
  else {
663
689
  throw new Error("No value provided for input HTTP label: clusterName.");
664
690
  }
665
691
  let body;
666
692
  body = JSON.stringify({
667
- clientRequestToken: (_a = input.clientRequestToken) !== null && _a !== void 0 ? _a : (0, uuid_1.v4)(),
693
+ clientRequestToken: (_a = input.clientRequestToken) !== null && _a !== void 0 ? _a : uuid_1.v4(),
668
694
  ...(input.identityProviderConfig !== undefined &&
669
695
  input.identityProviderConfig !== null && {
670
696
  identityProviderConfig: serializeAws_restJson1IdentityProviderConfig(input.identityProviderConfig, context),
@@ -690,7 +716,7 @@ const serializeAws_restJson1ListAddonsCommand = async (input, context) => {
690
716
  if (labelValue.length <= 0) {
691
717
  throw new Error("Empty value provided for input HTTP label: clusterName.");
692
718
  }
693
- resolvedPath = resolvedPath.replace("{clusterName}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
719
+ resolvedPath = resolvedPath.replace("{clusterName}", smithy_client_1.extendedEncodeURIComponent(labelValue));
694
720
  }
695
721
  else {
696
722
  throw new Error("No value provided for input HTTP label: clusterName.");
@@ -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({
@@ -742,7 +769,7 @@ const serializeAws_restJson1ListFargateProfilesCommand = async (input, context)
742
769
  if (labelValue.length <= 0) {
743
770
  throw new Error("Empty value provided for input HTTP label: clusterName.");
744
771
  }
745
- resolvedPath = resolvedPath.replace("{clusterName}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
772
+ resolvedPath = resolvedPath.replace("{clusterName}", smithy_client_1.extendedEncodeURIComponent(labelValue));
746
773
  }
747
774
  else {
748
775
  throw new Error("No value provided for input HTTP label: clusterName.");
@@ -774,7 +801,7 @@ const serializeAws_restJson1ListIdentityProviderConfigsCommand = async (input, c
774
801
  if (labelValue.length <= 0) {
775
802
  throw new Error("Empty value provided for input HTTP label: clusterName.");
776
803
  }
777
- resolvedPath = resolvedPath.replace("{clusterName}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
804
+ resolvedPath = resolvedPath.replace("{clusterName}", smithy_client_1.extendedEncodeURIComponent(labelValue));
778
805
  }
779
806
  else {
780
807
  throw new Error("No value provided for input HTTP label: clusterName.");
@@ -805,7 +832,7 @@ const serializeAws_restJson1ListNodegroupsCommand = async (input, context) => {
805
832
  if (labelValue.length <= 0) {
806
833
  throw new Error("Empty value provided for input HTTP label: clusterName.");
807
834
  }
808
- resolvedPath = resolvedPath.replace("{clusterName}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
835
+ resolvedPath = resolvedPath.replace("{clusterName}", smithy_client_1.extendedEncodeURIComponent(labelValue));
809
836
  }
810
837
  else {
811
838
  throw new Error("No value provided for input HTTP label: clusterName.");
@@ -836,7 +863,7 @@ const serializeAws_restJson1ListTagsForResourceCommand = async (input, context)
836
863
  if (labelValue.length <= 0) {
837
864
  throw new Error("Empty value provided for input HTTP label: resourceArn.");
838
865
  }
839
- resolvedPath = resolvedPath.replace("{resourceArn}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
866
+ resolvedPath = resolvedPath.replace("{resourceArn}", smithy_client_1.extendedEncodeURIComponent(labelValue));
840
867
  }
841
868
  else {
842
869
  throw new Error("No value provided for input HTTP label: resourceArn.");
@@ -862,7 +889,7 @@ const serializeAws_restJson1ListUpdatesCommand = async (input, context) => {
862
889
  if (labelValue.length <= 0) {
863
890
  throw new Error("Empty value provided for input HTTP label: name.");
864
891
  }
865
- resolvedPath = resolvedPath.replace("{name}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
892
+ resolvedPath = resolvedPath.replace("{name}", smithy_client_1.extendedEncodeURIComponent(labelValue));
866
893
  }
867
894
  else {
868
895
  throw new Error("No value provided for input HTTP label: name.");
@@ -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 = {
@@ -897,7 +951,7 @@ const serializeAws_restJson1TagResourceCommand = async (input, context) => {
897
951
  if (labelValue.length <= 0) {
898
952
  throw new Error("Empty value provided for input HTTP label: resourceArn.");
899
953
  }
900
- resolvedPath = resolvedPath.replace("{resourceArn}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
954
+ resolvedPath = resolvedPath.replace("{resourceArn}", smithy_client_1.extendedEncodeURIComponent(labelValue));
901
955
  }
902
956
  else {
903
957
  throw new Error("No value provided for input HTTP label: resourceArn.");
@@ -926,7 +980,7 @@ const serializeAws_restJson1UntagResourceCommand = async (input, context) => {
926
980
  if (labelValue.length <= 0) {
927
981
  throw new Error("Empty value provided for input HTTP label: resourceArn.");
928
982
  }
929
- resolvedPath = resolvedPath.replace("{resourceArn}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
983
+ resolvedPath = resolvedPath.replace("{resourceArn}", smithy_client_1.extendedEncodeURIComponent(labelValue));
930
984
  }
931
985
  else {
932
986
  throw new Error("No value provided for input HTTP label: resourceArn.");
@@ -960,7 +1014,7 @@ const serializeAws_restJson1UpdateAddonCommand = async (input, context) => {
960
1014
  if (labelValue.length <= 0) {
961
1015
  throw new Error("Empty value provided for input HTTP label: clusterName.");
962
1016
  }
963
- resolvedPath = resolvedPath.replace("{clusterName}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
1017
+ resolvedPath = resolvedPath.replace("{clusterName}", smithy_client_1.extendedEncodeURIComponent(labelValue));
964
1018
  }
965
1019
  else {
966
1020
  throw new Error("No value provided for input HTTP label: clusterName.");
@@ -970,7 +1024,7 @@ const serializeAws_restJson1UpdateAddonCommand = async (input, context) => {
970
1024
  if (labelValue.length <= 0) {
971
1025
  throw new Error("Empty value provided for input HTTP label: addonName.");
972
1026
  }
973
- resolvedPath = resolvedPath.replace("{addonName}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
1027
+ resolvedPath = resolvedPath.replace("{addonName}", smithy_client_1.extendedEncodeURIComponent(labelValue));
974
1028
  }
975
1029
  else {
976
1030
  throw new Error("No value provided for input HTTP label: addonName.");
@@ -978,7 +1032,7 @@ const serializeAws_restJson1UpdateAddonCommand = async (input, context) => {
978
1032
  let body;
979
1033
  body = JSON.stringify({
980
1034
  ...(input.addonVersion !== undefined && input.addonVersion !== null && { addonVersion: input.addonVersion }),
981
- clientRequestToken: (_a = input.clientRequestToken) !== null && _a !== void 0 ? _a : (0, uuid_1.v4)(),
1035
+ clientRequestToken: (_a = input.clientRequestToken) !== null && _a !== void 0 ? _a : uuid_1.v4(),
982
1036
  ...(input.resolveConflicts !== undefined &&
983
1037
  input.resolveConflicts !== null && { resolveConflicts: input.resolveConflicts }),
984
1038
  ...(input.serviceAccountRoleArn !== undefined &&
@@ -1007,14 +1061,14 @@ const serializeAws_restJson1UpdateClusterConfigCommand = async (input, context)
1007
1061
  if (labelValue.length <= 0) {
1008
1062
  throw new Error("Empty value provided for input HTTP label: name.");
1009
1063
  }
1010
- resolvedPath = resolvedPath.replace("{name}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
1064
+ resolvedPath = resolvedPath.replace("{name}", smithy_client_1.extendedEncodeURIComponent(labelValue));
1011
1065
  }
1012
1066
  else {
1013
1067
  throw new Error("No value provided for input HTTP label: name.");
1014
1068
  }
1015
1069
  let body;
1016
1070
  body = JSON.stringify({
1017
- clientRequestToken: (_a = input.clientRequestToken) !== null && _a !== void 0 ? _a : (0, uuid_1.v4)(),
1071
+ clientRequestToken: (_a = input.clientRequestToken) !== null && _a !== void 0 ? _a : uuid_1.v4(),
1018
1072
  ...(input.logging !== undefined &&
1019
1073
  input.logging !== null && { logging: serializeAws_restJson1Logging(input.logging, context) }),
1020
1074
  ...(input.resourcesVpcConfig !== undefined &&
@@ -1045,14 +1099,14 @@ const serializeAws_restJson1UpdateClusterVersionCommand = async (input, context)
1045
1099
  if (labelValue.length <= 0) {
1046
1100
  throw new Error("Empty value provided for input HTTP label: name.");
1047
1101
  }
1048
- resolvedPath = resolvedPath.replace("{name}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
1102
+ resolvedPath = resolvedPath.replace("{name}", smithy_client_1.extendedEncodeURIComponent(labelValue));
1049
1103
  }
1050
1104
  else {
1051
1105
  throw new Error("No value provided for input HTTP label: name.");
1052
1106
  }
1053
1107
  let body;
1054
1108
  body = JSON.stringify({
1055
- clientRequestToken: (_a = input.clientRequestToken) !== null && _a !== void 0 ? _a : (0, uuid_1.v4)(),
1109
+ clientRequestToken: (_a = input.clientRequestToken) !== null && _a !== void 0 ? _a : uuid_1.v4(),
1056
1110
  ...(input.version !== undefined && input.version !== null && { version: input.version }),
1057
1111
  });
1058
1112
  return new protocol_http_1.HttpRequest({
@@ -1079,7 +1133,7 @@ const serializeAws_restJson1UpdateNodegroupConfigCommand = async (input, context
1079
1133
  if (labelValue.length <= 0) {
1080
1134
  throw new Error("Empty value provided for input HTTP label: clusterName.");
1081
1135
  }
1082
- resolvedPath = resolvedPath.replace("{clusterName}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
1136
+ resolvedPath = resolvedPath.replace("{clusterName}", smithy_client_1.extendedEncodeURIComponent(labelValue));
1083
1137
  }
1084
1138
  else {
1085
1139
  throw new Error("No value provided for input HTTP label: clusterName.");
@@ -1089,14 +1143,14 @@ const serializeAws_restJson1UpdateNodegroupConfigCommand = async (input, context
1089
1143
  if (labelValue.length <= 0) {
1090
1144
  throw new Error("Empty value provided for input HTTP label: nodegroupName.");
1091
1145
  }
1092
- resolvedPath = resolvedPath.replace("{nodegroupName}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
1146
+ resolvedPath = resolvedPath.replace("{nodegroupName}", smithy_client_1.extendedEncodeURIComponent(labelValue));
1093
1147
  }
1094
1148
  else {
1095
1149
  throw new Error("No value provided for input HTTP label: nodegroupName.");
1096
1150
  }
1097
1151
  let body;
1098
1152
  body = JSON.stringify({
1099
- clientRequestToken: (_a = input.clientRequestToken) !== null && _a !== void 0 ? _a : (0, uuid_1.v4)(),
1153
+ clientRequestToken: (_a = input.clientRequestToken) !== null && _a !== void 0 ? _a : uuid_1.v4(),
1100
1154
  ...(input.labels !== undefined &&
1101
1155
  input.labels !== null && { labels: serializeAws_restJson1UpdateLabelsPayload(input.labels, context) }),
1102
1156
  ...(input.scalingConfig !== undefined &&
@@ -1134,7 +1188,7 @@ const serializeAws_restJson1UpdateNodegroupVersionCommand = async (input, contex
1134
1188
  if (labelValue.length <= 0) {
1135
1189
  throw new Error("Empty value provided for input HTTP label: clusterName.");
1136
1190
  }
1137
- resolvedPath = resolvedPath.replace("{clusterName}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
1191
+ resolvedPath = resolvedPath.replace("{clusterName}", smithy_client_1.extendedEncodeURIComponent(labelValue));
1138
1192
  }
1139
1193
  else {
1140
1194
  throw new Error("No value provided for input HTTP label: clusterName.");
@@ -1144,14 +1198,14 @@ const serializeAws_restJson1UpdateNodegroupVersionCommand = async (input, contex
1144
1198
  if (labelValue.length <= 0) {
1145
1199
  throw new Error("Empty value provided for input HTTP label: nodegroupName.");
1146
1200
  }
1147
- resolvedPath = resolvedPath.replace("{nodegroupName}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
1201
+ resolvedPath = resolvedPath.replace("{nodegroupName}", smithy_client_1.extendedEncodeURIComponent(labelValue));
1148
1202
  }
1149
1203
  else {
1150
1204
  throw new Error("No value provided for input HTTP label: nodegroupName.");
1151
1205
  }
1152
1206
  let body;
1153
1207
  body = JSON.stringify({
1154
- clientRequestToken: (_a = input.clientRequestToken) !== null && _a !== void 0 ? _a : (0, uuid_1.v4)(),
1208
+ clientRequestToken: (_a = input.clientRequestToken) !== null && _a !== void 0 ? _a : uuid_1.v4(),
1155
1209
  ...(input.force !== undefined && input.force !== null && { force: input.force }),
1156
1210
  ...(input.launchTemplate !== undefined &&
1157
1211
  input.launchTemplate !== null && {
@@ -1180,7 +1234,7 @@ const deserializeAws_restJson1AssociateEncryptionConfigCommand = async (output,
1180
1234
  $metadata: deserializeMetadata(output),
1181
1235
  update: undefined,
1182
1236
  };
1183
- const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
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 = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
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 = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
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 = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
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 = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
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 = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
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 = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
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 = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
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 = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
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 = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
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 = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
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,12 +2263,12 @@ const deserializeAws_restJson1DescribeAddonVersionsCommand = async (output, cont
2129
2263
  addons: undefined,
2130
2264
  nextToken: undefined,
2131
2265
  };
2132
- const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
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
  }
2136
2270
  if (data.nextToken !== undefined && data.nextToken !== null) {
2137
- contents.nextToken = (0, smithy_client_1.expectString)(data.nextToken);
2271
+ contents.nextToken = smithy_client_1.expectString(data.nextToken);
2138
2272
  }
2139
2273
  return Promise.resolve(contents);
2140
2274
  };
@@ -2196,7 +2330,7 @@ const deserializeAws_restJson1DescribeClusterCommand = async (output, context) =
2196
2330
  $metadata: deserializeMetadata(output),
2197
2331
  cluster: undefined,
2198
2332
  };
2199
- const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
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 = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
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 = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
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 = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
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 = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
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 = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
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,12 +2795,12 @@ const deserializeAws_restJson1ListAddonsCommand = async (output, context) => {
2661
2795
  addons: undefined,
2662
2796
  nextToken: undefined,
2663
2797
  };
2664
- const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
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
  }
2668
2802
  if (data.nextToken !== undefined && data.nextToken !== null) {
2669
- contents.nextToken = (0, smithy_client_1.expectString)(data.nextToken);
2803
+ contents.nextToken = smithy_client_1.expectString(data.nextToken);
2670
2804
  }
2671
2805
  return Promise.resolve(contents);
2672
2806
  };
@@ -2745,12 +2879,12 @@ const deserializeAws_restJson1ListClustersCommand = async (output, context) => {
2745
2879
  clusters: undefined,
2746
2880
  nextToken: undefined,
2747
2881
  };
2748
- const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
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
  }
2752
2886
  if (data.nextToken !== undefined && data.nextToken !== null) {
2753
- contents.nextToken = (0, smithy_client_1.expectString)(data.nextToken);
2887
+ contents.nextToken = smithy_client_1.expectString(data.nextToken);
2754
2888
  }
2755
2889
  return Promise.resolve(contents);
2756
2890
  };
@@ -2821,12 +2955,12 @@ const deserializeAws_restJson1ListFargateProfilesCommand = async (output, contex
2821
2955
  fargateProfileNames: undefined,
2822
2956
  nextToken: undefined,
2823
2957
  };
2824
- const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
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
  }
2828
2962
  if (data.nextToken !== undefined && data.nextToken !== null) {
2829
- contents.nextToken = (0, smithy_client_1.expectString)(data.nextToken);
2963
+ contents.nextToken = smithy_client_1.expectString(data.nextToken);
2830
2964
  }
2831
2965
  return Promise.resolve(contents);
2832
2966
  };
@@ -2897,12 +3031,12 @@ const deserializeAws_restJson1ListIdentityProviderConfigsCommand = async (output
2897
3031
  identityProviderConfigs: undefined,
2898
3032
  nextToken: undefined,
2899
3033
  };
2900
- const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
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
  }
2904
3038
  if (data.nextToken !== undefined && data.nextToken !== null) {
2905
- contents.nextToken = (0, smithy_client_1.expectString)(data.nextToken);
3039
+ contents.nextToken = smithy_client_1.expectString(data.nextToken);
2906
3040
  }
2907
3041
  return Promise.resolve(contents);
2908
3042
  };
@@ -2981,9 +3115,9 @@ const deserializeAws_restJson1ListNodegroupsCommand = async (output, context) =>
2981
3115
  nextToken: undefined,
2982
3116
  nodegroups: undefined,
2983
3117
  };
2984
- const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
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
- contents.nextToken = (0, smithy_client_1.expectString)(data.nextToken);
3120
+ contents.nextToken = smithy_client_1.expectString(data.nextToken);
2987
3121
  }
2988
3122
  if (data.nodegroups !== undefined && data.nodegroups !== null) {
2989
3123
  contents.nodegroups = deserializeAws_restJson1StringList(data.nodegroups, context);
@@ -3064,7 +3198,7 @@ const deserializeAws_restJson1ListTagsForResourceCommand = async (output, contex
3064
3198
  $metadata: deserializeMetadata(output),
3065
3199
  tags: undefined,
3066
3200
  };
3067
- const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
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,9 +3255,9 @@ const deserializeAws_restJson1ListUpdatesCommand = async (output, context) => {
3121
3255
  nextToken: undefined,
3122
3256
  updateIds: undefined,
3123
3257
  };
3124
- const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
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
- contents.nextToken = (0, smithy_client_1.expectString)(data.nextToken);
3260
+ contents.nextToken = smithy_client_1.expectString(data.nextToken);
3127
3261
  }
3128
3262
  if (data.updateIds !== undefined && data.updateIds !== null) {
3129
3263
  contents.updateIds = deserializeAws_restJson1StringList(data.updateIds, context);
@@ -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 = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
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 = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
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 = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
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 = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
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 = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
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
  }
@@ -3741,7 +3955,7 @@ const deserializeAws_restJson1BadRequestExceptionResponse = async (parsedOutput,
3741
3955
  };
3742
3956
  const data = parsedOutput.body;
3743
3957
  if (data.message !== undefined && data.message !== null) {
3744
- contents.message = (0, smithy_client_1.expectString)(data.message);
3958
+ contents.message = smithy_client_1.expectString(data.message);
3745
3959
  }
3746
3960
  return contents;
3747
3961
  };
@@ -3757,16 +3971,16 @@ const deserializeAws_restJson1ClientExceptionResponse = async (parsedOutput, con
3757
3971
  };
3758
3972
  const data = parsedOutput.body;
3759
3973
  if (data.addonName !== undefined && data.addonName !== null) {
3760
- contents.addonName = (0, smithy_client_1.expectString)(data.addonName);
3974
+ contents.addonName = smithy_client_1.expectString(data.addonName);
3761
3975
  }
3762
3976
  if (data.clusterName !== undefined && data.clusterName !== null) {
3763
- contents.clusterName = (0, smithy_client_1.expectString)(data.clusterName);
3977
+ contents.clusterName = smithy_client_1.expectString(data.clusterName);
3764
3978
  }
3765
3979
  if (data.message !== undefined && data.message !== null) {
3766
- contents.message = (0, smithy_client_1.expectString)(data.message);
3980
+ contents.message = smithy_client_1.expectString(data.message);
3767
3981
  }
3768
3982
  if (data.nodegroupName !== undefined && data.nodegroupName !== null) {
3769
- contents.nodegroupName = (0, smithy_client_1.expectString)(data.nodegroupName);
3983
+ contents.nodegroupName = smithy_client_1.expectString(data.nodegroupName);
3770
3984
  }
3771
3985
  return contents;
3772
3986
  };
@@ -3783,19 +3997,19 @@ const deserializeAws_restJson1InvalidParameterExceptionResponse = async (parsedO
3783
3997
  };
3784
3998
  const data = parsedOutput.body;
3785
3999
  if (data.addonName !== undefined && data.addonName !== null) {
3786
- contents.addonName = (0, smithy_client_1.expectString)(data.addonName);
4000
+ contents.addonName = smithy_client_1.expectString(data.addonName);
3787
4001
  }
3788
4002
  if (data.clusterName !== undefined && data.clusterName !== null) {
3789
- contents.clusterName = (0, smithy_client_1.expectString)(data.clusterName);
4003
+ contents.clusterName = smithy_client_1.expectString(data.clusterName);
3790
4004
  }
3791
4005
  if (data.fargateProfileName !== undefined && data.fargateProfileName !== null) {
3792
- contents.fargateProfileName = (0, smithy_client_1.expectString)(data.fargateProfileName);
4006
+ contents.fargateProfileName = smithy_client_1.expectString(data.fargateProfileName);
3793
4007
  }
3794
4008
  if (data.message !== undefined && data.message !== null) {
3795
- contents.message = (0, smithy_client_1.expectString)(data.message);
4009
+ contents.message = smithy_client_1.expectString(data.message);
3796
4010
  }
3797
4011
  if (data.nodegroupName !== undefined && data.nodegroupName !== null) {
3798
- contents.nodegroupName = (0, smithy_client_1.expectString)(data.nodegroupName);
4012
+ contents.nodegroupName = smithy_client_1.expectString(data.nodegroupName);
3799
4013
  }
3800
4014
  return contents;
3801
4015
  };
@@ -3811,16 +4025,16 @@ const deserializeAws_restJson1InvalidRequestExceptionResponse = async (parsedOut
3811
4025
  };
3812
4026
  const data = parsedOutput.body;
3813
4027
  if (data.addonName !== undefined && data.addonName !== null) {
3814
- contents.addonName = (0, smithy_client_1.expectString)(data.addonName);
4028
+ contents.addonName = smithy_client_1.expectString(data.addonName);
3815
4029
  }
3816
4030
  if (data.clusterName !== undefined && data.clusterName !== null) {
3817
- contents.clusterName = (0, smithy_client_1.expectString)(data.clusterName);
4031
+ contents.clusterName = smithy_client_1.expectString(data.clusterName);
3818
4032
  }
3819
4033
  if (data.message !== undefined && data.message !== null) {
3820
- contents.message = (0, smithy_client_1.expectString)(data.message);
4034
+ contents.message = smithy_client_1.expectString(data.message);
3821
4035
  }
3822
4036
  if (data.nodegroupName !== undefined && data.nodegroupName !== null) {
3823
- contents.nodegroupName = (0, smithy_client_1.expectString)(data.nodegroupName);
4037
+ contents.nodegroupName = smithy_client_1.expectString(data.nodegroupName);
3824
4038
  }
3825
4039
  return contents;
3826
4040
  };
@@ -3833,7 +4047,7 @@ const deserializeAws_restJson1NotFoundExceptionResponse = async (parsedOutput, c
3833
4047
  };
3834
4048
  const data = parsedOutput.body;
3835
4049
  if (data.message !== undefined && data.message !== null) {
3836
- contents.message = (0, smithy_client_1.expectString)(data.message);
4050
+ contents.message = smithy_client_1.expectString(data.message);
3837
4051
  }
3838
4052
  return contents;
3839
4053
  };
@@ -3849,16 +4063,16 @@ const deserializeAws_restJson1ResourceInUseExceptionResponse = async (parsedOutp
3849
4063
  };
3850
4064
  const data = parsedOutput.body;
3851
4065
  if (data.addonName !== undefined && data.addonName !== null) {
3852
- contents.addonName = (0, smithy_client_1.expectString)(data.addonName);
4066
+ contents.addonName = smithy_client_1.expectString(data.addonName);
3853
4067
  }
3854
4068
  if (data.clusterName !== undefined && data.clusterName !== null) {
3855
- contents.clusterName = (0, smithy_client_1.expectString)(data.clusterName);
4069
+ contents.clusterName = smithy_client_1.expectString(data.clusterName);
3856
4070
  }
3857
4071
  if (data.message !== undefined && data.message !== null) {
3858
- contents.message = (0, smithy_client_1.expectString)(data.message);
4072
+ contents.message = smithy_client_1.expectString(data.message);
3859
4073
  }
3860
4074
  if (data.nodegroupName !== undefined && data.nodegroupName !== null) {
3861
- contents.nodegroupName = (0, smithy_client_1.expectString)(data.nodegroupName);
4075
+ contents.nodegroupName = smithy_client_1.expectString(data.nodegroupName);
3862
4076
  }
3863
4077
  return contents;
3864
4078
  };
@@ -3873,13 +4087,13 @@ const deserializeAws_restJson1ResourceLimitExceededExceptionResponse = async (pa
3873
4087
  };
3874
4088
  const data = parsedOutput.body;
3875
4089
  if (data.clusterName !== undefined && data.clusterName !== null) {
3876
- contents.clusterName = (0, smithy_client_1.expectString)(data.clusterName);
4090
+ contents.clusterName = smithy_client_1.expectString(data.clusterName);
3877
4091
  }
3878
4092
  if (data.message !== undefined && data.message !== null) {
3879
- contents.message = (0, smithy_client_1.expectString)(data.message);
4093
+ contents.message = smithy_client_1.expectString(data.message);
3880
4094
  }
3881
4095
  if (data.nodegroupName !== undefined && data.nodegroupName !== null) {
3882
- contents.nodegroupName = (0, smithy_client_1.expectString)(data.nodegroupName);
4096
+ contents.nodegroupName = smithy_client_1.expectString(data.nodegroupName);
3883
4097
  }
3884
4098
  return contents;
3885
4099
  };
@@ -3896,19 +4110,19 @@ const deserializeAws_restJson1ResourceNotFoundExceptionResponse = async (parsedO
3896
4110
  };
3897
4111
  const data = parsedOutput.body;
3898
4112
  if (data.addonName !== undefined && data.addonName !== null) {
3899
- contents.addonName = (0, smithy_client_1.expectString)(data.addonName);
4113
+ contents.addonName = smithy_client_1.expectString(data.addonName);
3900
4114
  }
3901
4115
  if (data.clusterName !== undefined && data.clusterName !== null) {
3902
- contents.clusterName = (0, smithy_client_1.expectString)(data.clusterName);
4116
+ contents.clusterName = smithy_client_1.expectString(data.clusterName);
3903
4117
  }
3904
4118
  if (data.fargateProfileName !== undefined && data.fargateProfileName !== null) {
3905
- contents.fargateProfileName = (0, smithy_client_1.expectString)(data.fargateProfileName);
4119
+ contents.fargateProfileName = smithy_client_1.expectString(data.fargateProfileName);
3906
4120
  }
3907
4121
  if (data.message !== undefined && data.message !== null) {
3908
- contents.message = (0, smithy_client_1.expectString)(data.message);
4122
+ contents.message = smithy_client_1.expectString(data.message);
3909
4123
  }
3910
4124
  if (data.nodegroupName !== undefined && data.nodegroupName !== null) {
3911
- contents.nodegroupName = (0, smithy_client_1.expectString)(data.nodegroupName);
4125
+ contents.nodegroupName = smithy_client_1.expectString(data.nodegroupName);
3912
4126
  }
3913
4127
  return contents;
3914
4128
  };
@@ -3924,16 +4138,16 @@ const deserializeAws_restJson1ServerExceptionResponse = async (parsedOutput, con
3924
4138
  };
3925
4139
  const data = parsedOutput.body;
3926
4140
  if (data.addonName !== undefined && data.addonName !== null) {
3927
- contents.addonName = (0, smithy_client_1.expectString)(data.addonName);
4141
+ contents.addonName = smithy_client_1.expectString(data.addonName);
3928
4142
  }
3929
4143
  if (data.clusterName !== undefined && data.clusterName !== null) {
3930
- contents.clusterName = (0, smithy_client_1.expectString)(data.clusterName);
4144
+ contents.clusterName = smithy_client_1.expectString(data.clusterName);
3931
4145
  }
3932
4146
  if (data.message !== undefined && data.message !== null) {
3933
- contents.message = (0, smithy_client_1.expectString)(data.message);
4147
+ contents.message = smithy_client_1.expectString(data.message);
3934
4148
  }
3935
4149
  if (data.nodegroupName !== undefined && data.nodegroupName !== null) {
3936
- contents.nodegroupName = (0, smithy_client_1.expectString)(data.nodegroupName);
4150
+ contents.nodegroupName = smithy_client_1.expectString(data.nodegroupName);
3937
4151
  }
3938
4152
  return contents;
3939
4153
  };
@@ -3946,7 +4160,7 @@ const deserializeAws_restJson1ServiceUnavailableExceptionResponse = async (parse
3946
4160
  };
3947
4161
  const data = parsedOutput.body;
3948
4162
  if (data.message !== undefined && data.message !== null) {
3949
- contents.message = (0, smithy_client_1.expectString)(data.message);
4163
+ contents.message = smithy_client_1.expectString(data.message);
3950
4164
  }
3951
4165
  return contents;
3952
4166
  };
@@ -3962,19 +4176,25 @@ const deserializeAws_restJson1UnsupportedAvailabilityZoneExceptionResponse = asy
3962
4176
  };
3963
4177
  const data = parsedOutput.body;
3964
4178
  if (data.clusterName !== undefined && data.clusterName !== null) {
3965
- contents.clusterName = (0, smithy_client_1.expectString)(data.clusterName);
4179
+ contents.clusterName = smithy_client_1.expectString(data.clusterName);
3966
4180
  }
3967
4181
  if (data.message !== undefined && data.message !== null) {
3968
- contents.message = (0, smithy_client_1.expectString)(data.message);
4182
+ contents.message = smithy_client_1.expectString(data.message);
3969
4183
  }
3970
4184
  if (data.nodegroupName !== undefined && data.nodegroupName !== null) {
3971
- contents.nodegroupName = (0, smithy_client_1.expectString)(data.nodegroupName);
4185
+ contents.nodegroupName = smithy_client_1.expectString(data.nodegroupName);
3972
4186
  }
3973
4187
  if (data.validZones !== undefined && data.validZones !== null) {
3974
4188
  contents.validZones = deserializeAws_restJson1StringList(data.validZones, context);
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 &&
@@ -4233,21 +4453,21 @@ const serializeAws_restJson1VpcConfigRequest = (input, context) => {
4233
4453
  };
4234
4454
  const deserializeAws_restJson1Addon = (output, context) => {
4235
4455
  return {
4236
- addonArn: (0, smithy_client_1.expectString)(output.addonArn),
4237
- addonName: (0, smithy_client_1.expectString)(output.addonName),
4238
- addonVersion: (0, smithy_client_1.expectString)(output.addonVersion),
4239
- clusterName: (0, smithy_client_1.expectString)(output.clusterName),
4456
+ addonArn: smithy_client_1.expectString(output.addonArn),
4457
+ addonName: smithy_client_1.expectString(output.addonName),
4458
+ addonVersion: smithy_client_1.expectString(output.addonVersion),
4459
+ clusterName: smithy_client_1.expectString(output.clusterName),
4240
4460
  createdAt: output.createdAt !== undefined && output.createdAt !== null
4241
- ? new Date(Math.round(output.createdAt * 1000))
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
- ? new Date(Math.round(output.modifiedAt * 1000))
4467
+ ? smithy_client_1.expectNonNull(smithy_client_1.parseEpochTimestamp(smithy_client_1.expectNumber(output.modifiedAt)))
4248
4468
  : undefined,
4249
- serviceAccountRoleArn: (0, smithy_client_1.expectString)(output.serviceAccountRoleArn),
4250
- status: (0, smithy_client_1.expectString)(output.status),
4469
+ serviceAccountRoleArn: smithy_client_1.expectString(output.serviceAccountRoleArn),
4470
+ status: smithy_client_1.expectString(output.status),
4251
4471
  tags: output.tags !== undefined && output.tags !== null
4252
4472
  ? deserializeAws_restJson1TagMap(output.tags, context)
4253
4473
  : undefined,
@@ -4262,17 +4482,17 @@ const deserializeAws_restJson1AddonHealth = (output, context) => {
4262
4482
  };
4263
4483
  const deserializeAws_restJson1AddonInfo = (output, context) => {
4264
4484
  return {
4265
- addonName: (0, smithy_client_1.expectString)(output.addonName),
4485
+ addonName: smithy_client_1.expectString(output.addonName),
4266
4486
  addonVersions: output.addonVersions !== undefined && output.addonVersions !== null
4267
4487
  ? deserializeAws_restJson1AddonVersionInfoList(output.addonVersions, context)
4268
4488
  : undefined,
4269
- type: (0, smithy_client_1.expectString)(output.type),
4489
+ type: smithy_client_1.expectString(output.type),
4270
4490
  };
4271
4491
  };
4272
4492
  const deserializeAws_restJson1AddonIssue = (output, context) => {
4273
4493
  return {
4274
- code: (0, smithy_client_1.expectString)(output.code),
4275
- message: (0, smithy_client_1.expectString)(output.message),
4494
+ code: smithy_client_1.expectString(output.code),
4495
+ message: smithy_client_1.expectString(output.message),
4276
4496
  resourceIds: output.resourceIds !== undefined && output.resourceIds !== null
4277
4497
  ? deserializeAws_restJson1StringList(output.resourceIds, context)
4278
4498
  : undefined,
@@ -4300,7 +4520,7 @@ const deserializeAws_restJson1Addons = (output, context) => {
4300
4520
  };
4301
4521
  const deserializeAws_restJson1AddonVersionInfo = (output, context) => {
4302
4522
  return {
4303
- addonVersion: (0, smithy_client_1.expectString)(output.addonVersion),
4523
+ addonVersion: smithy_client_1.expectString(output.addonVersion),
4304
4524
  architecture: output.architecture !== undefined && output.architecture !== null
4305
4525
  ? deserializeAws_restJson1StringList(output.architecture, context)
4306
4526
  : undefined,
@@ -4321,7 +4541,7 @@ const deserializeAws_restJson1AddonVersionInfoList = (output, context) => {
4321
4541
  };
4322
4542
  const deserializeAws_restJson1AutoScalingGroup = (output, context) => {
4323
4543
  return {
4324
- name: (0, smithy_client_1.expectString)(output.name),
4544
+ name: smithy_client_1.expectString(output.name),
4325
4545
  };
4326
4546
  };
4327
4547
  const deserializeAws_restJson1AutoScalingGroupList = (output, context) => {
@@ -4336,23 +4556,26 @@ const deserializeAws_restJson1AutoScalingGroupList = (output, context) => {
4336
4556
  };
4337
4557
  const deserializeAws_restJson1Certificate = (output, context) => {
4338
4558
  return {
4339
- data: (0, smithy_client_1.expectString)(output.data),
4559
+ data: smithy_client_1.expectString(output.data),
4340
4560
  };
4341
4561
  };
4342
4562
  const deserializeAws_restJson1Cluster = (output, context) => {
4343
4563
  return {
4344
- arn: (0, smithy_client_1.expectString)(output.arn),
4564
+ arn: smithy_client_1.expectString(output.arn),
4345
4565
  certificateAuthority: output.certificateAuthority !== undefined && output.certificateAuthority !== null
4346
4566
  ? deserializeAws_restJson1Certificate(output.certificateAuthority, context)
4347
4567
  : undefined,
4348
- clientRequestToken: (0, smithy_client_1.expectString)(output.clientRequestToken),
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
- ? new Date(Math.round(output.createdAt * 1000))
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)
4354
4577
  : undefined,
4355
- endpoint: (0, smithy_client_1.expectString)(output.endpoint),
4578
+ endpoint: smithy_client_1.expectString(output.endpoint),
4356
4579
  identity: output.identity !== undefined && output.identity !== null
4357
4580
  ? deserializeAws_restJson1Identity(output.identity, context)
4358
4581
  : undefined,
@@ -4362,17 +4585,17 @@ const deserializeAws_restJson1Cluster = (output, context) => {
4362
4585
  logging: output.logging !== undefined && output.logging !== null
4363
4586
  ? deserializeAws_restJson1Logging(output.logging, context)
4364
4587
  : undefined,
4365
- name: (0, smithy_client_1.expectString)(output.name),
4366
- platformVersion: (0, smithy_client_1.expectString)(output.platformVersion),
4588
+ name: smithy_client_1.expectString(output.name),
4589
+ platformVersion: smithy_client_1.expectString(output.platformVersion),
4367
4590
  resourcesVpcConfig: output.resourcesVpcConfig !== undefined && output.resourcesVpcConfig !== null
4368
4591
  ? deserializeAws_restJson1VpcConfigResponse(output.resourcesVpcConfig, context)
4369
4592
  : undefined,
4370
- roleArn: (0, smithy_client_1.expectString)(output.roleArn),
4371
- status: (0, smithy_client_1.expectString)(output.status),
4593
+ roleArn: smithy_client_1.expectString(output.roleArn),
4594
+ status: smithy_client_1.expectString(output.status),
4372
4595
  tags: output.tags !== undefined && output.tags !== null
4373
4596
  ? deserializeAws_restJson1TagMap(output.tags, context)
4374
4597
  : undefined,
4375
- version: (0, smithy_client_1.expectString)(output.version),
4598
+ version: smithy_client_1.expectString(output.version),
4376
4599
  };
4377
4600
  };
4378
4601
  const deserializeAws_restJson1Compatibilities = (output, context) => {
@@ -4387,13 +4610,24 @@ const deserializeAws_restJson1Compatibilities = (output, context) => {
4387
4610
  };
4388
4611
  const deserializeAws_restJson1Compatibility = (output, context) => {
4389
4612
  return {
4390
- clusterVersion: (0, smithy_client_1.expectString)(output.clusterVersion),
4391
- defaultVersion: (0, smithy_client_1.expectBoolean)(output.defaultVersion),
4613
+ clusterVersion: smithy_client_1.expectString(output.clusterVersion),
4614
+ defaultVersion: smithy_client_1.expectBoolean(output.defaultVersion),
4392
4615
  platformVersions: output.platformVersions !== undefined && output.platformVersions !== null
4393
4616
  ? deserializeAws_restJson1StringList(output.platformVersions, 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
@@ -4416,8 +4650,8 @@ const deserializeAws_restJson1EncryptionConfigList = (output, context) => {
4416
4650
  };
4417
4651
  const deserializeAws_restJson1ErrorDetail = (output, context) => {
4418
4652
  return {
4419
- errorCode: (0, smithy_client_1.expectString)(output.errorCode),
4420
- errorMessage: (0, smithy_client_1.expectString)(output.errorMessage),
4653
+ errorCode: smithy_client_1.expectString(output.errorCode),
4654
+ errorMessage: smithy_client_1.expectString(output.errorMessage),
4421
4655
  resourceIds: output.resourceIds !== undefined && output.resourceIds !== null
4422
4656
  ? deserializeAws_restJson1StringList(output.resourceIds, context)
4423
4657
  : undefined,
@@ -4435,17 +4669,17 @@ const deserializeAws_restJson1ErrorDetails = (output, context) => {
4435
4669
  };
4436
4670
  const deserializeAws_restJson1FargateProfile = (output, context) => {
4437
4671
  return {
4438
- clusterName: (0, smithy_client_1.expectString)(output.clusterName),
4672
+ clusterName: smithy_client_1.expectString(output.clusterName),
4439
4673
  createdAt: output.createdAt !== undefined && output.createdAt !== null
4440
- ? new Date(Math.round(output.createdAt * 1000))
4674
+ ? smithy_client_1.expectNonNull(smithy_client_1.parseEpochTimestamp(smithy_client_1.expectNumber(output.createdAt)))
4441
4675
  : undefined,
4442
- fargateProfileArn: (0, smithy_client_1.expectString)(output.fargateProfileArn),
4443
- fargateProfileName: (0, smithy_client_1.expectString)(output.fargateProfileName),
4444
- podExecutionRoleArn: (0, smithy_client_1.expectString)(output.podExecutionRoleArn),
4676
+ fargateProfileArn: smithy_client_1.expectString(output.fargateProfileArn),
4677
+ fargateProfileName: smithy_client_1.expectString(output.fargateProfileName),
4678
+ podExecutionRoleArn: smithy_client_1.expectString(output.podExecutionRoleArn),
4445
4679
  selectors: output.selectors !== undefined && output.selectors !== null
4446
4680
  ? deserializeAws_restJson1FargateProfileSelectors(output.selectors, context)
4447
4681
  : undefined,
4448
- status: (0, smithy_client_1.expectString)(output.status),
4682
+ status: smithy_client_1.expectString(output.status),
4449
4683
  subnets: output.subnets !== undefined && output.subnets !== null
4450
4684
  ? deserializeAws_restJson1StringList(output.subnets, context)
4451
4685
  : undefined,
@@ -4461,7 +4695,7 @@ const deserializeAws_restJson1FargateProfileLabel = (output, context) => {
4461
4695
  }
4462
4696
  return {
4463
4697
  ...acc,
4464
- [key]: (0, smithy_client_1.expectString)(value),
4698
+ [key]: smithy_client_1.expectString(value),
4465
4699
  };
4466
4700
  }, {});
4467
4701
  };
@@ -4470,7 +4704,7 @@ const deserializeAws_restJson1FargateProfileSelector = (output, context) => {
4470
4704
  labels: output.labels !== undefined && output.labels !== null
4471
4705
  ? deserializeAws_restJson1FargateProfileLabel(output.labels, context)
4472
4706
  : undefined,
4473
- namespace: (0, smithy_client_1.expectString)(output.namespace),
4707
+ namespace: smithy_client_1.expectString(output.namespace),
4474
4708
  };
4475
4709
  };
4476
4710
  const deserializeAws_restJson1FargateProfileSelectors = (output, context) => {
@@ -4492,8 +4726,8 @@ const deserializeAws_restJson1Identity = (output, context) => {
4492
4726
  };
4493
4727
  const deserializeAws_restJson1IdentityProviderConfig = (output, context) => {
4494
4728
  return {
4495
- name: (0, smithy_client_1.expectString)(output.name),
4496
- type: (0, smithy_client_1.expectString)(output.type),
4729
+ name: smithy_client_1.expectString(output.name),
4730
+ type: smithy_client_1.expectString(output.type),
4497
4731
  };
4498
4732
  };
4499
4733
  const deserializeAws_restJson1IdentityProviderConfigResponse = (output, context) => {
@@ -4515,8 +4749,8 @@ const deserializeAws_restJson1IdentityProviderConfigs = (output, context) => {
4515
4749
  };
4516
4750
  const deserializeAws_restJson1Issue = (output, context) => {
4517
4751
  return {
4518
- code: (0, smithy_client_1.expectString)(output.code),
4519
- message: (0, smithy_client_1.expectString)(output.message),
4752
+ code: smithy_client_1.expectString(output.code),
4753
+ message: smithy_client_1.expectString(output.message),
4520
4754
  resourceIds: output.resourceIds !== undefined && output.resourceIds !== null
4521
4755
  ? deserializeAws_restJson1StringList(output.resourceIds, context)
4522
4756
  : undefined,
@@ -4534,7 +4768,7 @@ const deserializeAws_restJson1IssueList = (output, context) => {
4534
4768
  };
4535
4769
  const deserializeAws_restJson1KubernetesNetworkConfigResponse = (output, context) => {
4536
4770
  return {
4537
- serviceIpv4Cidr: (0, smithy_client_1.expectString)(output.serviceIpv4Cidr),
4771
+ serviceIpv4Cidr: smithy_client_1.expectString(output.serviceIpv4Cidr),
4538
4772
  };
4539
4773
  };
4540
4774
  const deserializeAws_restJson1labelsMap = (output, context) => {
@@ -4544,15 +4778,15 @@ const deserializeAws_restJson1labelsMap = (output, context) => {
4544
4778
  }
4545
4779
  return {
4546
4780
  ...acc,
4547
- [key]: (0, smithy_client_1.expectString)(value),
4781
+ [key]: smithy_client_1.expectString(value),
4548
4782
  };
4549
4783
  }, {});
4550
4784
  };
4551
4785
  const deserializeAws_restJson1LaunchTemplateSpecification = (output, context) => {
4552
4786
  return {
4553
- id: (0, smithy_client_1.expectString)(output.id),
4554
- name: (0, smithy_client_1.expectString)(output.name),
4555
- version: (0, smithy_client_1.expectString)(output.version),
4787
+ id: smithy_client_1.expectString(output.id),
4788
+ name: smithy_client_1.expectString(output.name),
4789
+ version: smithy_client_1.expectString(output.version),
4556
4790
  };
4557
4791
  };
4558
4792
  const deserializeAws_restJson1Logging = (output, context) => {
@@ -4564,7 +4798,7 @@ const deserializeAws_restJson1Logging = (output, context) => {
4564
4798
  };
4565
4799
  const deserializeAws_restJson1LogSetup = (output, context) => {
4566
4800
  return {
4567
- enabled: (0, smithy_client_1.expectBoolean)(output.enabled),
4801
+ enabled: smithy_client_1.expectBoolean(output.enabled),
4568
4802
  types: output.types !== undefined && output.types !== null
4569
4803
  ? deserializeAws_restJson1LogTypes(output.types, context)
4570
4804
  : undefined,
@@ -4587,18 +4821,18 @@ const deserializeAws_restJson1LogTypes = (output, context) => {
4587
4821
  if (entry === null) {
4588
4822
  return null;
4589
4823
  }
4590
- return (0, smithy_client_1.expectString)(entry);
4824
+ return smithy_client_1.expectString(entry);
4591
4825
  });
4592
4826
  };
4593
4827
  const deserializeAws_restJson1Nodegroup = (output, context) => {
4594
4828
  return {
4595
- amiType: (0, smithy_client_1.expectString)(output.amiType),
4596
- capacityType: (0, smithy_client_1.expectString)(output.capacityType),
4597
- clusterName: (0, smithy_client_1.expectString)(output.clusterName),
4829
+ amiType: smithy_client_1.expectString(output.amiType),
4830
+ capacityType: smithy_client_1.expectString(output.capacityType),
4831
+ clusterName: smithy_client_1.expectString(output.clusterName),
4598
4832
  createdAt: output.createdAt !== undefined && output.createdAt !== null
4599
- ? new Date(Math.round(output.createdAt * 1000))
4833
+ ? smithy_client_1.expectNonNull(smithy_client_1.parseEpochTimestamp(smithy_client_1.expectNumber(output.createdAt)))
4600
4834
  : undefined,
4601
- diskSize: (0, smithy_client_1.expectInt32)(output.diskSize),
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,12 +4846,12 @@ 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
- ? new Date(Math.round(output.modifiedAt * 1000))
4849
+ ? smithy_client_1.expectNonNull(smithy_client_1.parseEpochTimestamp(smithy_client_1.expectNumber(output.modifiedAt)))
4616
4850
  : undefined,
4617
- nodeRole: (0, smithy_client_1.expectString)(output.nodeRole),
4618
- nodegroupArn: (0, smithy_client_1.expectString)(output.nodegroupArn),
4619
- nodegroupName: (0, smithy_client_1.expectString)(output.nodegroupName),
4620
- releaseVersion: (0, smithy_client_1.expectString)(output.releaseVersion),
4851
+ nodeRole: smithy_client_1.expectString(output.nodeRole),
4852
+ nodegroupArn: smithy_client_1.expectString(output.nodegroupArn),
4853
+ nodegroupName: smithy_client_1.expectString(output.nodegroupName),
4854
+ releaseVersion: smithy_client_1.expectString(output.releaseVersion),
4621
4855
  remoteAccess: output.remoteAccess !== undefined && output.remoteAccess !== null
4622
4856
  ? deserializeAws_restJson1RemoteAccessConfig(output.remoteAccess, context)
4623
4857
  : undefined,
@@ -4627,7 +4861,7 @@ const deserializeAws_restJson1Nodegroup = (output, context) => {
4627
4861
  scalingConfig: output.scalingConfig !== undefined && output.scalingConfig !== null
4628
4862
  ? deserializeAws_restJson1NodegroupScalingConfig(output.scalingConfig, context)
4629
4863
  : undefined,
4630
- status: (0, smithy_client_1.expectString)(output.status),
4864
+ status: smithy_client_1.expectString(output.status),
4631
4865
  subnets: output.subnets !== undefined && output.subnets !== null
4632
4866
  ? deserializeAws_restJson1StringList(output.subnets, context)
4633
4867
  : undefined,
@@ -4640,7 +4874,7 @@ const deserializeAws_restJson1Nodegroup = (output, context) => {
4640
4874
  updateConfig: output.updateConfig !== undefined && output.updateConfig !== null
4641
4875
  ? deserializeAws_restJson1NodegroupUpdateConfig(output.updateConfig, context)
4642
4876
  : undefined,
4643
- version: (0, smithy_client_1.expectString)(output.version),
4877
+ version: smithy_client_1.expectString(output.version),
4644
4878
  };
4645
4879
  };
4646
4880
  const deserializeAws_restJson1NodegroupHealth = (output, context) => {
@@ -4655,55 +4889,55 @@ const deserializeAws_restJson1NodegroupResources = (output, context) => {
4655
4889
  autoScalingGroups: output.autoScalingGroups !== undefined && output.autoScalingGroups !== null
4656
4890
  ? deserializeAws_restJson1AutoScalingGroupList(output.autoScalingGroups, context)
4657
4891
  : undefined,
4658
- remoteAccessSecurityGroup: (0, smithy_client_1.expectString)(output.remoteAccessSecurityGroup),
4892
+ remoteAccessSecurityGroup: smithy_client_1.expectString(output.remoteAccessSecurityGroup),
4659
4893
  };
4660
4894
  };
4661
4895
  const deserializeAws_restJson1NodegroupScalingConfig = (output, context) => {
4662
4896
  return {
4663
- desiredSize: (0, smithy_client_1.expectInt32)(output.desiredSize),
4664
- maxSize: (0, smithy_client_1.expectInt32)(output.maxSize),
4665
- minSize: (0, smithy_client_1.expectInt32)(output.minSize),
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: (0, smithy_client_1.expectInt32)(output.maxUnavailable),
4671
- maxUnavailablePercentage: (0, smithy_client_1.expectInt32)(output.maxUnavailablePercentage),
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) => {
4675
4909
  return {
4676
- issuer: (0, smithy_client_1.expectString)(output.issuer),
4910
+ issuer: smithy_client_1.expectString(output.issuer),
4677
4911
  };
4678
4912
  };
4679
4913
  const deserializeAws_restJson1OidcIdentityProviderConfig = (output, context) => {
4680
4914
  return {
4681
- clientId: (0, smithy_client_1.expectString)(output.clientId),
4682
- clusterName: (0, smithy_client_1.expectString)(output.clusterName),
4683
- groupsClaim: (0, smithy_client_1.expectString)(output.groupsClaim),
4684
- groupsPrefix: (0, smithy_client_1.expectString)(output.groupsPrefix),
4685
- identityProviderConfigArn: (0, smithy_client_1.expectString)(output.identityProviderConfigArn),
4686
- identityProviderConfigName: (0, smithy_client_1.expectString)(output.identityProviderConfigName),
4687
- issuerUrl: (0, smithy_client_1.expectString)(output.issuerUrl),
4915
+ clientId: smithy_client_1.expectString(output.clientId),
4916
+ clusterName: smithy_client_1.expectString(output.clusterName),
4917
+ groupsClaim: smithy_client_1.expectString(output.groupsClaim),
4918
+ groupsPrefix: smithy_client_1.expectString(output.groupsPrefix),
4919
+ identityProviderConfigArn: smithy_client_1.expectString(output.identityProviderConfigArn),
4920
+ identityProviderConfigName: smithy_client_1.expectString(output.identityProviderConfigName),
4921
+ issuerUrl: smithy_client_1.expectString(output.issuerUrl),
4688
4922
  requiredClaims: output.requiredClaims !== undefined && output.requiredClaims !== null
4689
4923
  ? deserializeAws_restJson1requiredClaimsMap(output.requiredClaims, context)
4690
4924
  : undefined,
4691
- status: (0, smithy_client_1.expectString)(output.status),
4925
+ status: smithy_client_1.expectString(output.status),
4692
4926
  tags: output.tags !== undefined && output.tags !== null
4693
4927
  ? deserializeAws_restJson1TagMap(output.tags, context)
4694
4928
  : undefined,
4695
- usernameClaim: (0, smithy_client_1.expectString)(output.usernameClaim),
4696
- usernamePrefix: (0, smithy_client_1.expectString)(output.usernamePrefix),
4929
+ usernameClaim: smithy_client_1.expectString(output.usernameClaim),
4930
+ usernamePrefix: smithy_client_1.expectString(output.usernamePrefix),
4697
4931
  };
4698
4932
  };
4699
4933
  const deserializeAws_restJson1Provider = (output, context) => {
4700
4934
  return {
4701
- keyArn: (0, smithy_client_1.expectString)(output.keyArn),
4935
+ keyArn: smithy_client_1.expectString(output.keyArn),
4702
4936
  };
4703
4937
  };
4704
4938
  const deserializeAws_restJson1RemoteAccessConfig = (output, context) => {
4705
4939
  return {
4706
- ec2SshKey: (0, smithy_client_1.expectString)(output.ec2SshKey),
4940
+ ec2SshKey: smithy_client_1.expectString(output.ec2SshKey),
4707
4941
  sourceSecurityGroups: output.sourceSecurityGroups !== undefined && output.sourceSecurityGroups !== null
4708
4942
  ? deserializeAws_restJson1StringList(output.sourceSecurityGroups, context)
4709
4943
  : undefined,
@@ -4716,7 +4950,7 @@ const deserializeAws_restJson1requiredClaimsMap = (output, context) => {
4716
4950
  }
4717
4951
  return {
4718
4952
  ...acc,
4719
- [key]: (0, smithy_client_1.expectString)(value),
4953
+ [key]: smithy_client_1.expectString(value),
4720
4954
  };
4721
4955
  }, {});
4722
4956
  };
@@ -4727,7 +4961,7 @@ const deserializeAws_restJson1StringList = (output, context) => {
4727
4961
  if (entry === null) {
4728
4962
  return null;
4729
4963
  }
4730
- return (0, smithy_client_1.expectString)(entry);
4964
+ return smithy_client_1.expectString(entry);
4731
4965
  });
4732
4966
  };
4733
4967
  const deserializeAws_restJson1TagMap = (output, context) => {
@@ -4737,15 +4971,15 @@ const deserializeAws_restJson1TagMap = (output, context) => {
4737
4971
  }
4738
4972
  return {
4739
4973
  ...acc,
4740
- [key]: (0, smithy_client_1.expectString)(value),
4974
+ [key]: smithy_client_1.expectString(value),
4741
4975
  };
4742
4976
  }, {});
4743
4977
  };
4744
4978
  const deserializeAws_restJson1Taint = (output, context) => {
4745
4979
  return {
4746
- effect: (0, smithy_client_1.expectString)(output.effect),
4747
- key: (0, smithy_client_1.expectString)(output.key),
4748
- value: (0, smithy_client_1.expectString)(output.value),
4980
+ effect: smithy_client_1.expectString(output.effect),
4981
+ key: smithy_client_1.expectString(output.key),
4982
+ value: smithy_client_1.expectString(output.value),
4749
4983
  };
4750
4984
  };
4751
4985
  const deserializeAws_restJson1taintsList = (output, context) => {
@@ -4761,23 +4995,23 @@ 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
- ? new Date(Math.round(output.createdAt * 1000))
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)
4768
5002
  : undefined,
4769
- id: (0, smithy_client_1.expectString)(output.id),
5003
+ id: smithy_client_1.expectString(output.id),
4770
5004
  params: output.params !== undefined && output.params !== null
4771
5005
  ? deserializeAws_restJson1UpdateParams(output.params, context)
4772
5006
  : undefined,
4773
- status: (0, smithy_client_1.expectString)(output.status),
4774
- type: (0, smithy_client_1.expectString)(output.type),
5007
+ status: smithy_client_1.expectString(output.status),
5008
+ type: smithy_client_1.expectString(output.type),
4775
5009
  };
4776
5010
  };
4777
5011
  const deserializeAws_restJson1UpdateParam = (output, context) => {
4778
5012
  return {
4779
- type: (0, smithy_client_1.expectString)(output.type),
4780
- value: (0, smithy_client_1.expectString)(output.value),
5013
+ type: smithy_client_1.expectString(output.type),
5014
+ value: smithy_client_1.expectString(output.value),
4781
5015
  };
4782
5016
  };
4783
5017
  const deserializeAws_restJson1UpdateParams = (output, context) => {
@@ -4792,9 +5026,9 @@ const deserializeAws_restJson1UpdateParams = (output, context) => {
4792
5026
  };
4793
5027
  const deserializeAws_restJson1VpcConfigResponse = (output, context) => {
4794
5028
  return {
4795
- clusterSecurityGroupId: (0, smithy_client_1.expectString)(output.clusterSecurityGroupId),
4796
- endpointPrivateAccess: (0, smithy_client_1.expectBoolean)(output.endpointPrivateAccess),
4797
- endpointPublicAccess: (0, smithy_client_1.expectBoolean)(output.endpointPublicAccess),
5029
+ clusterSecurityGroupId: smithy_client_1.expectString(output.clusterSecurityGroupId),
5030
+ endpointPrivateAccess: smithy_client_1.expectBoolean(output.endpointPrivateAccess),
5031
+ endpointPublicAccess: smithy_client_1.expectBoolean(output.endpointPublicAccess),
4798
5032
  publicAccessCidrs: output.publicAccessCidrs !== undefined && output.publicAccessCidrs !== null
4799
5033
  ? deserializeAws_restJson1StringList(output.publicAccessCidrs, context)
4800
5034
  : undefined,
@@ -4804,7 +5038,7 @@ const deserializeAws_restJson1VpcConfigResponse = (output, context) => {
4804
5038
  subnetIds: output.subnetIds !== undefined && output.subnetIds !== null
4805
5039
  ? deserializeAws_restJson1StringList(output.subnetIds, context)
4806
5040
  : undefined,
4807
- vpcId: (0, smithy_client_1.expectString)(output.vpcId),
5041
+ vpcId: smithy_client_1.expectString(output.vpcId),
4808
5042
  };
4809
5043
  };
4810
5044
  const deserializeMetadata = (output) => {