@aws-sdk/client-eks 3.441.0 → 3.448.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 (72) hide show
  1. package/README.md +48 -9
  2. package/dist-cjs/EKS.js +10 -0
  3. package/dist-cjs/commands/CreateEksAnywhereSubscriptionCommand.js +51 -0
  4. package/dist-cjs/commands/DeleteEksAnywhereSubscriptionCommand.js +51 -0
  5. package/dist-cjs/commands/DescribeEksAnywhereSubscriptionCommand.js +51 -0
  6. package/dist-cjs/commands/ListEksAnywhereSubscriptionsCommand.js +51 -0
  7. package/dist-cjs/commands/UpdateEksAnywhereSubscriptionCommand.js +51 -0
  8. package/dist-cjs/commands/index.js +5 -0
  9. package/dist-cjs/models/models_0.js +21 -1
  10. package/dist-cjs/protocols/Aws_restJson1.js +363 -2
  11. package/dist-es/EKS.js +10 -0
  12. package/dist-es/commands/CreateEksAnywhereSubscriptionCommand.js +47 -0
  13. package/dist-es/commands/DeleteEksAnywhereSubscriptionCommand.js +47 -0
  14. package/dist-es/commands/DescribeEksAnywhereSubscriptionCommand.js +47 -0
  15. package/dist-es/commands/ListEksAnywhereSubscriptionsCommand.js +47 -0
  16. package/dist-es/commands/UpdateEksAnywhereSubscriptionCommand.js +47 -0
  17. package/dist-es/commands/index.js +5 -0
  18. package/dist-es/models/models_0.js +20 -0
  19. package/dist-es/protocols/Aws_restJson1.js +352 -1
  20. package/dist-types/EKS.d.ts +43 -9
  21. package/dist-types/EKSClient.d.ts +15 -11
  22. package/dist-types/commands/AssociateEncryptionConfigCommand.d.ts +2 -2
  23. package/dist-types/commands/AssociateIdentityProviderConfigCommand.d.ts +2 -2
  24. package/dist-types/commands/CreateAddonCommand.d.ts +2 -2
  25. package/dist-types/commands/CreateClusterCommand.d.ts +11 -13
  26. package/dist-types/commands/CreateEksAnywhereSubscriptionCommand.d.ts +125 -0
  27. package/dist-types/commands/CreateFargateProfileCommand.d.ts +8 -9
  28. package/dist-types/commands/CreateNodegroupCommand.d.ts +3 -6
  29. package/dist-types/commands/DeleteAddonCommand.d.ts +2 -2
  30. package/dist-types/commands/DeleteClusterCommand.d.ts +2 -2
  31. package/dist-types/commands/DeleteEksAnywhereSubscriptionCommand.d.ts +114 -0
  32. package/dist-types/commands/DeleteFargateProfileCommand.d.ts +2 -2
  33. package/dist-types/commands/DeleteNodegroupCommand.d.ts +2 -2
  34. package/dist-types/commands/DeregisterClusterCommand.d.ts +7 -6
  35. package/dist-types/commands/DescribeAddonCommand.d.ts +2 -2
  36. package/dist-types/commands/DescribeClusterCommand.d.ts +2 -2
  37. package/dist-types/commands/DescribeEksAnywhereSubscriptionCommand.d.ts +110 -0
  38. package/dist-types/commands/DescribeFargateProfileCommand.d.ts +2 -2
  39. package/dist-types/commands/DescribeIdentityProviderConfigCommand.d.ts +2 -2
  40. package/dist-types/commands/DescribeNodegroupCommand.d.ts +2 -2
  41. package/dist-types/commands/DescribeUpdateCommand.d.ts +2 -2
  42. package/dist-types/commands/DisassociateIdentityProviderConfigCommand.d.ts +4 -4
  43. package/dist-types/commands/ListAddonsCommand.d.ts +3 -3
  44. package/dist-types/commands/ListClustersCommand.d.ts +2 -2
  45. package/dist-types/commands/ListEksAnywhereSubscriptionsCommand.d.ts +115 -0
  46. package/dist-types/commands/ListFargateProfilesCommand.d.ts +2 -2
  47. package/dist-types/commands/ListIdentityProviderConfigsCommand.d.ts +2 -2
  48. package/dist-types/commands/ListNodegroupsCommand.d.ts +2 -2
  49. package/dist-types/commands/ListUpdatesCommand.d.ts +2 -2
  50. package/dist-types/commands/RegisterClusterCommand.d.ts +11 -10
  51. package/dist-types/commands/UpdateAddonCommand.d.ts +2 -2
  52. package/dist-types/commands/UpdateClusterConfigCommand.d.ts +5 -5
  53. package/dist-types/commands/UpdateClusterVersionCommand.d.ts +8 -8
  54. package/dist-types/commands/UpdateEksAnywhereSubscriptionCommand.d.ts +118 -0
  55. package/dist-types/commands/UpdateNodegroupConfigCommand.d.ts +4 -4
  56. package/dist-types/commands/UpdateNodegroupVersionCommand.d.ts +3 -4
  57. package/dist-types/commands/index.d.ts +5 -0
  58. package/dist-types/index.d.ts +10 -9
  59. package/dist-types/models/models_0.d.ts +443 -102
  60. package/dist-types/protocols/Aws_restJson1.d.ts +45 -0
  61. package/dist-types/ts3.4/EKS.d.ts +85 -0
  62. package/dist-types/ts3.4/EKSClient.d.ts +30 -0
  63. package/dist-types/ts3.4/commands/CreateEksAnywhereSubscriptionCommand.d.ts +42 -0
  64. package/dist-types/ts3.4/commands/DeleteEksAnywhereSubscriptionCommand.d.ts +42 -0
  65. package/dist-types/ts3.4/commands/DescribeEksAnywhereSubscriptionCommand.d.ts +42 -0
  66. package/dist-types/ts3.4/commands/ListEksAnywhereSubscriptionsCommand.d.ts +42 -0
  67. package/dist-types/ts3.4/commands/UpdateEksAnywhereSubscriptionCommand.d.ts +42 -0
  68. package/dist-types/ts3.4/commands/index.d.ts +5 -0
  69. package/dist-types/ts3.4/index.d.ts +2 -0
  70. package/dist-types/ts3.4/models/models_0.d.ts +85 -0
  71. package/dist-types/ts3.4/protocols/Aws_restJson1.d.ts +60 -0
  72. package/package.json +4 -4
@@ -1,5 +1,5 @@
1
1
  import { HttpRequest as __HttpRequest } from "@smithy/protocol-http";
2
- import { _json, collectBody, decorateServiceException as __decorateServiceException, expectInt32 as __expectInt32, expectNonNull as __expectNonNull, expectNumber as __expectNumber, expectObject as __expectObject, expectString as __expectString, map, parseEpochTimestamp as __parseEpochTimestamp, resolvedPath as __resolvedPath, take, withBaseException, } from "@smithy/smithy-client";
2
+ import { _json, collectBody, decorateServiceException as __decorateServiceException, expectBoolean as __expectBoolean, expectInt32 as __expectInt32, expectNonNull as __expectNonNull, expectNumber as __expectNumber, expectObject as __expectObject, expectString as __expectString, map, parseEpochTimestamp as __parseEpochTimestamp, resolvedPath as __resolvedPath, take, withBaseException, } from "@smithy/smithy-client";
3
3
  import { v4 as generateIdempotencyToken } from "uuid";
4
4
  import { EKSServiceException as __BaseException } from "../models/EKSServiceException";
5
5
  import { AccessDeniedException, BadRequestException, ClientException, InvalidParameterException, InvalidRequestException, NotFoundException, ResourceInUseException, ResourceLimitExceededException, ResourceNotFoundException, ResourcePropagationDelayException, ServerException, ServiceUnavailableException, UnsupportedAvailabilityZoneException, } from "../models/models_0";
@@ -106,6 +106,32 @@ export const se_CreateClusterCommand = async (input, context) => {
106
106
  body,
107
107
  });
108
108
  };
109
+ export const se_CreateEksAnywhereSubscriptionCommand = async (input, context) => {
110
+ const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
111
+ const headers = {
112
+ "content-type": "application/json",
113
+ };
114
+ const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/eks-anywhere-subscriptions";
115
+ let body;
116
+ body = JSON.stringify(take(input, {
117
+ autoRenew: [],
118
+ clientRequestToken: [true, (_) => _ ?? generateIdempotencyToken()],
119
+ licenseQuantity: [],
120
+ licenseType: [],
121
+ name: [],
122
+ tags: (_) => _json(_),
123
+ term: (_) => _json(_),
124
+ }));
125
+ return new __HttpRequest({
126
+ protocol,
127
+ hostname,
128
+ port,
129
+ method: "POST",
130
+ headers,
131
+ path: resolvedPath,
132
+ body,
133
+ });
134
+ };
109
135
  export const se_CreateFargateProfileCommand = async (input, context) => {
110
136
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
111
137
  const headers = {
@@ -207,6 +233,22 @@ export const se_DeleteClusterCommand = async (input, context) => {
207
233
  body,
208
234
  });
209
235
  };
236
+ export const se_DeleteEksAnywhereSubscriptionCommand = async (input, context) => {
237
+ const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
238
+ const headers = {};
239
+ let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/eks-anywhere-subscriptions/{id}";
240
+ resolvedPath = __resolvedPath(resolvedPath, input, "id", () => input.id, "{id}", false);
241
+ let body;
242
+ return new __HttpRequest({
243
+ protocol,
244
+ hostname,
245
+ port,
246
+ method: "DELETE",
247
+ headers,
248
+ path: resolvedPath,
249
+ body,
250
+ });
251
+ };
210
252
  export const se_DeleteFargateProfileCommand = async (input, context) => {
211
253
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
212
254
  const headers = {};
@@ -338,6 +380,22 @@ export const se_DescribeClusterCommand = async (input, context) => {
338
380
  body,
339
381
  });
340
382
  };
383
+ export const se_DescribeEksAnywhereSubscriptionCommand = async (input, context) => {
384
+ const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
385
+ const headers = {};
386
+ let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/eks-anywhere-subscriptions/{id}";
387
+ resolvedPath = __resolvedPath(resolvedPath, input, "id", () => input.id, "{id}", false);
388
+ let body;
389
+ return new __HttpRequest({
390
+ protocol,
391
+ hostname,
392
+ port,
393
+ method: "GET",
394
+ headers,
395
+ path: resolvedPath,
396
+ body,
397
+ });
398
+ };
341
399
  export const se_DescribeFargateProfileCommand = async (input, context) => {
342
400
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
343
401
  const headers = {};
@@ -483,6 +541,30 @@ export const se_ListClustersCommand = async (input, context) => {
483
541
  body,
484
542
  });
485
543
  };
544
+ export const se_ListEksAnywhereSubscriptionsCommand = async (input, context) => {
545
+ const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
546
+ const headers = {};
547
+ const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/eks-anywhere-subscriptions";
548
+ const query = map({
549
+ maxResults: [() => input.maxResults !== void 0, () => input.maxResults.toString()],
550
+ nextToken: [, input.nextToken],
551
+ includeStatus: [
552
+ () => input.includeStatus !== void 0,
553
+ () => (input.includeStatus || []).map((_entry) => _entry),
554
+ ],
555
+ });
556
+ let body;
557
+ return new __HttpRequest({
558
+ protocol,
559
+ hostname,
560
+ port,
561
+ method: "GET",
562
+ headers,
563
+ path: resolvedPath,
564
+ query,
565
+ body,
566
+ });
567
+ };
486
568
  export const se_ListFargateProfilesCommand = async (input, context) => {
487
569
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
488
570
  const headers = {};
@@ -725,6 +807,28 @@ export const se_UpdateClusterVersionCommand = async (input, context) => {
725
807
  body,
726
808
  });
727
809
  };
810
+ export const se_UpdateEksAnywhereSubscriptionCommand = async (input, context) => {
811
+ const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
812
+ const headers = {
813
+ "content-type": "application/json",
814
+ };
815
+ let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/eks-anywhere-subscriptions/{id}";
816
+ resolvedPath = __resolvedPath(resolvedPath, input, "id", () => input.id, "{id}", false);
817
+ let body;
818
+ body = JSON.stringify(take(input, {
819
+ autoRenew: [],
820
+ clientRequestToken: [true, (_) => _ ?? generateIdempotencyToken()],
821
+ }));
822
+ return new __HttpRequest({
823
+ protocol,
824
+ hostname,
825
+ port,
826
+ method: "POST",
827
+ headers,
828
+ path: resolvedPath,
829
+ body,
830
+ });
831
+ };
728
832
  export const se_UpdateNodegroupConfigCommand = async (input, context) => {
729
833
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
730
834
  const headers = {
@@ -975,6 +1079,51 @@ const de_CreateClusterCommandError = async (output, context) => {
975
1079
  });
976
1080
  }
977
1081
  };
1082
+ export const de_CreateEksAnywhereSubscriptionCommand = async (output, context) => {
1083
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
1084
+ return de_CreateEksAnywhereSubscriptionCommandError(output, context);
1085
+ }
1086
+ const contents = map({
1087
+ $metadata: deserializeMetadata(output),
1088
+ });
1089
+ const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
1090
+ const doc = take(data, {
1091
+ subscription: (_) => de_EksAnywhereSubscription(_, context),
1092
+ });
1093
+ Object.assign(contents, doc);
1094
+ return contents;
1095
+ };
1096
+ const de_CreateEksAnywhereSubscriptionCommandError = async (output, context) => {
1097
+ const parsedOutput = {
1098
+ ...output,
1099
+ body: await parseErrorBody(output.body, context),
1100
+ };
1101
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1102
+ switch (errorCode) {
1103
+ case "ClientException":
1104
+ case "com.amazonaws.eks#ClientException":
1105
+ throw await de_ClientExceptionRes(parsedOutput, context);
1106
+ case "InvalidParameterException":
1107
+ case "com.amazonaws.eks#InvalidParameterException":
1108
+ throw await de_InvalidParameterExceptionRes(parsedOutput, context);
1109
+ case "ResourceLimitExceededException":
1110
+ case "com.amazonaws.eks#ResourceLimitExceededException":
1111
+ throw await de_ResourceLimitExceededExceptionRes(parsedOutput, context);
1112
+ case "ServerException":
1113
+ case "com.amazonaws.eks#ServerException":
1114
+ throw await de_ServerExceptionRes(parsedOutput, context);
1115
+ case "ServiceUnavailableException":
1116
+ case "com.amazonaws.eks#ServiceUnavailableException":
1117
+ throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
1118
+ default:
1119
+ const parsedBody = parsedOutput.body;
1120
+ return throwDefaultError({
1121
+ output,
1122
+ parsedBody,
1123
+ errorCode,
1124
+ });
1125
+ }
1126
+ };
978
1127
  export const de_CreateFargateProfileCommand = async (output, context) => {
979
1128
  if (output.statusCode !== 200 && output.statusCode >= 300) {
980
1129
  return de_CreateFargateProfileCommandError(output, context);
@@ -1164,6 +1313,48 @@ const de_DeleteClusterCommandError = async (output, context) => {
1164
1313
  });
1165
1314
  }
1166
1315
  };
1316
+ export const de_DeleteEksAnywhereSubscriptionCommand = async (output, context) => {
1317
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
1318
+ return de_DeleteEksAnywhereSubscriptionCommandError(output, context);
1319
+ }
1320
+ const contents = map({
1321
+ $metadata: deserializeMetadata(output),
1322
+ });
1323
+ const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
1324
+ const doc = take(data, {
1325
+ subscription: (_) => de_EksAnywhereSubscription(_, context),
1326
+ });
1327
+ Object.assign(contents, doc);
1328
+ return contents;
1329
+ };
1330
+ const de_DeleteEksAnywhereSubscriptionCommandError = async (output, context) => {
1331
+ const parsedOutput = {
1332
+ ...output,
1333
+ body: await parseErrorBody(output.body, context),
1334
+ };
1335
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1336
+ switch (errorCode) {
1337
+ case "ClientException":
1338
+ case "com.amazonaws.eks#ClientException":
1339
+ throw await de_ClientExceptionRes(parsedOutput, context);
1340
+ case "InvalidRequestException":
1341
+ case "com.amazonaws.eks#InvalidRequestException":
1342
+ throw await de_InvalidRequestExceptionRes(parsedOutput, context);
1343
+ case "ResourceNotFoundException":
1344
+ case "com.amazonaws.eks#ResourceNotFoundException":
1345
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1346
+ case "ServerException":
1347
+ case "com.amazonaws.eks#ServerException":
1348
+ throw await de_ServerExceptionRes(parsedOutput, context);
1349
+ default:
1350
+ const parsedBody = parsedOutput.body;
1351
+ return throwDefaultError({
1352
+ output,
1353
+ parsedBody,
1354
+ errorCode,
1355
+ });
1356
+ }
1357
+ };
1167
1358
  export const de_DeleteFargateProfileCommand = async (output, context) => {
1168
1359
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1169
1360
  return de_DeleteFargateProfileCommandError(output, context);
@@ -1470,6 +1661,48 @@ const de_DescribeClusterCommandError = async (output, context) => {
1470
1661
  });
1471
1662
  }
1472
1663
  };
1664
+ export const de_DescribeEksAnywhereSubscriptionCommand = async (output, context) => {
1665
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
1666
+ return de_DescribeEksAnywhereSubscriptionCommandError(output, context);
1667
+ }
1668
+ const contents = map({
1669
+ $metadata: deserializeMetadata(output),
1670
+ });
1671
+ const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
1672
+ const doc = take(data, {
1673
+ subscription: (_) => de_EksAnywhereSubscription(_, context),
1674
+ });
1675
+ Object.assign(contents, doc);
1676
+ return contents;
1677
+ };
1678
+ const de_DescribeEksAnywhereSubscriptionCommandError = async (output, context) => {
1679
+ const parsedOutput = {
1680
+ ...output,
1681
+ body: await parseErrorBody(output.body, context),
1682
+ };
1683
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1684
+ switch (errorCode) {
1685
+ case "ClientException":
1686
+ case "com.amazonaws.eks#ClientException":
1687
+ throw await de_ClientExceptionRes(parsedOutput, context);
1688
+ case "ResourceNotFoundException":
1689
+ case "com.amazonaws.eks#ResourceNotFoundException":
1690
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1691
+ case "ServerException":
1692
+ case "com.amazonaws.eks#ServerException":
1693
+ throw await de_ServerExceptionRes(parsedOutput, context);
1694
+ case "ServiceUnavailableException":
1695
+ case "com.amazonaws.eks#ServiceUnavailableException":
1696
+ throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
1697
+ default:
1698
+ const parsedBody = parsedOutput.body;
1699
+ return throwDefaultError({
1700
+ output,
1701
+ parsedBody,
1702
+ errorCode,
1703
+ });
1704
+ }
1705
+ };
1473
1706
  export const de_DescribeFargateProfileCommand = async (output, context) => {
1474
1707
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1475
1708
  return de_DescribeFargateProfileCommandError(output, context);
@@ -1781,6 +2014,49 @@ const de_ListClustersCommandError = async (output, context) => {
1781
2014
  });
1782
2015
  }
1783
2016
  };
2017
+ export const de_ListEksAnywhereSubscriptionsCommand = async (output, context) => {
2018
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
2019
+ return de_ListEksAnywhereSubscriptionsCommandError(output, context);
2020
+ }
2021
+ const contents = map({
2022
+ $metadata: deserializeMetadata(output),
2023
+ });
2024
+ const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
2025
+ const doc = take(data, {
2026
+ nextToken: __expectString,
2027
+ subscriptions: (_) => de_EksAnywhereSubscriptionList(_, context),
2028
+ });
2029
+ Object.assign(contents, doc);
2030
+ return contents;
2031
+ };
2032
+ const de_ListEksAnywhereSubscriptionsCommandError = async (output, context) => {
2033
+ const parsedOutput = {
2034
+ ...output,
2035
+ body: await parseErrorBody(output.body, context),
2036
+ };
2037
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2038
+ switch (errorCode) {
2039
+ case "ClientException":
2040
+ case "com.amazonaws.eks#ClientException":
2041
+ throw await de_ClientExceptionRes(parsedOutput, context);
2042
+ case "InvalidParameterException":
2043
+ case "com.amazonaws.eks#InvalidParameterException":
2044
+ throw await de_InvalidParameterExceptionRes(parsedOutput, context);
2045
+ case "ServerException":
2046
+ case "com.amazonaws.eks#ServerException":
2047
+ throw await de_ServerExceptionRes(parsedOutput, context);
2048
+ case "ServiceUnavailableException":
2049
+ case "com.amazonaws.eks#ServiceUnavailableException":
2050
+ throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
2051
+ default:
2052
+ const parsedBody = parsedOutput.body;
2053
+ return throwDefaultError({
2054
+ output,
2055
+ parsedBody,
2056
+ errorCode,
2057
+ });
2058
+ }
2059
+ };
1784
2060
  export const de_ListFargateProfilesCommand = async (output, context) => {
1785
2061
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1786
2062
  return de_ListFargateProfilesCommandError(output, context);
@@ -2257,6 +2533,51 @@ const de_UpdateClusterVersionCommandError = async (output, context) => {
2257
2533
  });
2258
2534
  }
2259
2535
  };
2536
+ export const de_UpdateEksAnywhereSubscriptionCommand = async (output, context) => {
2537
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
2538
+ return de_UpdateEksAnywhereSubscriptionCommandError(output, context);
2539
+ }
2540
+ const contents = map({
2541
+ $metadata: deserializeMetadata(output),
2542
+ });
2543
+ const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
2544
+ const doc = take(data, {
2545
+ subscription: (_) => de_EksAnywhereSubscription(_, context),
2546
+ });
2547
+ Object.assign(contents, doc);
2548
+ return contents;
2549
+ };
2550
+ const de_UpdateEksAnywhereSubscriptionCommandError = async (output, context) => {
2551
+ const parsedOutput = {
2552
+ ...output,
2553
+ body: await parseErrorBody(output.body, context),
2554
+ };
2555
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2556
+ switch (errorCode) {
2557
+ case "ClientException":
2558
+ case "com.amazonaws.eks#ClientException":
2559
+ throw await de_ClientExceptionRes(parsedOutput, context);
2560
+ case "InvalidParameterException":
2561
+ case "com.amazonaws.eks#InvalidParameterException":
2562
+ throw await de_InvalidParameterExceptionRes(parsedOutput, context);
2563
+ case "InvalidRequestException":
2564
+ case "com.amazonaws.eks#InvalidRequestException":
2565
+ throw await de_InvalidRequestExceptionRes(parsedOutput, context);
2566
+ case "ResourceNotFoundException":
2567
+ case "com.amazonaws.eks#ResourceNotFoundException":
2568
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
2569
+ case "ServerException":
2570
+ case "com.amazonaws.eks#ServerException":
2571
+ throw await de_ServerExceptionRes(parsedOutput, context);
2572
+ default:
2573
+ const parsedBody = parsedOutput.body;
2574
+ return throwDefaultError({
2575
+ output,
2576
+ parsedBody,
2577
+ errorCode,
2578
+ });
2579
+ }
2580
+ };
2260
2581
  export const de_UpdateNodegroupConfigCommand = async (output, context) => {
2261
2582
  if (output.statusCode !== 200 && output.statusCode >= 300) {
2262
2583
  return de_UpdateNodegroupConfigCommandError(output, context);
@@ -2388,6 +2709,7 @@ const de_ClientExceptionRes = async (parsedOutput, context) => {
2388
2709
  clusterName: __expectString,
2389
2710
  message: __expectString,
2390
2711
  nodegroupName: __expectString,
2712
+ subscriptionId: __expectString,
2391
2713
  });
2392
2714
  Object.assign(contents, doc);
2393
2715
  const exception = new ClientException({
@@ -2405,6 +2727,7 @@ const de_InvalidParameterExceptionRes = async (parsedOutput, context) => {
2405
2727
  fargateProfileName: __expectString,
2406
2728
  message: __expectString,
2407
2729
  nodegroupName: __expectString,
2730
+ subscriptionId: __expectString,
2408
2731
  });
2409
2732
  Object.assign(contents, doc);
2410
2733
  const exception = new InvalidParameterException({
@@ -2421,6 +2744,7 @@ const de_InvalidRequestExceptionRes = async (parsedOutput, context) => {
2421
2744
  clusterName: __expectString,
2422
2745
  message: __expectString,
2423
2746
  nodegroupName: __expectString,
2747
+ subscriptionId: __expectString,
2424
2748
  });
2425
2749
  Object.assign(contents, doc);
2426
2750
  const exception = new InvalidRequestException({
@@ -2465,6 +2789,7 @@ const de_ResourceLimitExceededExceptionRes = async (parsedOutput, context) => {
2465
2789
  clusterName: __expectString,
2466
2790
  message: __expectString,
2467
2791
  nodegroupName: __expectString,
2792
+ subscriptionId: __expectString,
2468
2793
  });
2469
2794
  Object.assign(contents, doc);
2470
2795
  const exception = new ResourceLimitExceededException({
@@ -2482,6 +2807,7 @@ const de_ResourceNotFoundExceptionRes = async (parsedOutput, context) => {
2482
2807
  fargateProfileName: __expectString,
2483
2808
  message: __expectString,
2484
2809
  nodegroupName: __expectString,
2810
+ subscriptionId: __expectString,
2485
2811
  });
2486
2812
  Object.assign(contents, doc);
2487
2813
  const exception = new ResourceNotFoundException({
@@ -2511,6 +2837,7 @@ const de_ServerExceptionRes = async (parsedOutput, context) => {
2511
2837
  clusterName: __expectString,
2512
2838
  message: __expectString,
2513
2839
  nodegroupName: __expectString,
2840
+ subscriptionId: __expectString,
2514
2841
  });
2515
2842
  Object.assign(contents, doc);
2516
2843
  const exception = new ServerException({
@@ -2599,6 +2926,30 @@ const de_ConnectorConfigResponse = (output, context) => {
2599
2926
  roleArn: __expectString,
2600
2927
  });
2601
2928
  };
2929
+ const de_EksAnywhereSubscription = (output, context) => {
2930
+ return take(output, {
2931
+ arn: __expectString,
2932
+ autoRenew: __expectBoolean,
2933
+ createdAt: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
2934
+ effectiveDate: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
2935
+ expirationDate: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
2936
+ id: __expectString,
2937
+ licenseArns: _json,
2938
+ licenseQuantity: __expectInt32,
2939
+ licenseType: __expectString,
2940
+ status: __expectString,
2941
+ tags: _json,
2942
+ term: _json,
2943
+ });
2944
+ };
2945
+ const de_EksAnywhereSubscriptionList = (output, context) => {
2946
+ const retVal = (output || [])
2947
+ .filter((e) => e != null)
2948
+ .map((entry) => {
2949
+ return de_EksAnywhereSubscription(entry, context);
2950
+ });
2951
+ return retVal;
2952
+ };
2602
2953
  const de_FargateProfile = (output, context) => {
2603
2954
  return take(output, {
2604
2955
  clusterName: __expectString,
@@ -3,10 +3,12 @@ import { AssociateEncryptionConfigCommandInput, AssociateEncryptionConfigCommand
3
3
  import { AssociateIdentityProviderConfigCommandInput, AssociateIdentityProviderConfigCommandOutput } from "./commands/AssociateIdentityProviderConfigCommand";
4
4
  import { CreateAddonCommandInput, CreateAddonCommandOutput } from "./commands/CreateAddonCommand";
5
5
  import { CreateClusterCommandInput, CreateClusterCommandOutput } from "./commands/CreateClusterCommand";
6
+ import { CreateEksAnywhereSubscriptionCommandInput, CreateEksAnywhereSubscriptionCommandOutput } from "./commands/CreateEksAnywhereSubscriptionCommand";
6
7
  import { CreateFargateProfileCommandInput, CreateFargateProfileCommandOutput } from "./commands/CreateFargateProfileCommand";
7
8
  import { CreateNodegroupCommandInput, CreateNodegroupCommandOutput } from "./commands/CreateNodegroupCommand";
8
9
  import { DeleteAddonCommandInput, DeleteAddonCommandOutput } from "./commands/DeleteAddonCommand";
9
10
  import { DeleteClusterCommandInput, DeleteClusterCommandOutput } from "./commands/DeleteClusterCommand";
11
+ import { DeleteEksAnywhereSubscriptionCommandInput, DeleteEksAnywhereSubscriptionCommandOutput } from "./commands/DeleteEksAnywhereSubscriptionCommand";
10
12
  import { DeleteFargateProfileCommandInput, DeleteFargateProfileCommandOutput } from "./commands/DeleteFargateProfileCommand";
11
13
  import { DeleteNodegroupCommandInput, DeleteNodegroupCommandOutput } from "./commands/DeleteNodegroupCommand";
12
14
  import { DeregisterClusterCommandInput, DeregisterClusterCommandOutput } from "./commands/DeregisterClusterCommand";
@@ -14,6 +16,7 @@ import { DescribeAddonCommandInput, DescribeAddonCommandOutput } from "./command
14
16
  import { DescribeAddonConfigurationCommandInput, DescribeAddonConfigurationCommandOutput } from "./commands/DescribeAddonConfigurationCommand";
15
17
  import { DescribeAddonVersionsCommandInput, DescribeAddonVersionsCommandOutput } from "./commands/DescribeAddonVersionsCommand";
16
18
  import { DescribeClusterCommandInput, DescribeClusterCommandOutput } from "./commands/DescribeClusterCommand";
19
+ import { DescribeEksAnywhereSubscriptionCommandInput, DescribeEksAnywhereSubscriptionCommandOutput } from "./commands/DescribeEksAnywhereSubscriptionCommand";
17
20
  import { DescribeFargateProfileCommandInput, DescribeFargateProfileCommandOutput } from "./commands/DescribeFargateProfileCommand";
18
21
  import { DescribeIdentityProviderConfigCommandInput, DescribeIdentityProviderConfigCommandOutput } from "./commands/DescribeIdentityProviderConfigCommand";
19
22
  import { DescribeNodegroupCommandInput, DescribeNodegroupCommandOutput } from "./commands/DescribeNodegroupCommand";
@@ -21,6 +24,7 @@ import { DescribeUpdateCommandInput, DescribeUpdateCommandOutput } from "./comma
21
24
  import { DisassociateIdentityProviderConfigCommandInput, DisassociateIdentityProviderConfigCommandOutput } from "./commands/DisassociateIdentityProviderConfigCommand";
22
25
  import { ListAddonsCommandInput, ListAddonsCommandOutput } from "./commands/ListAddonsCommand";
23
26
  import { ListClustersCommandInput, ListClustersCommandOutput } from "./commands/ListClustersCommand";
27
+ import { ListEksAnywhereSubscriptionsCommandInput, ListEksAnywhereSubscriptionsCommandOutput } from "./commands/ListEksAnywhereSubscriptionsCommand";
24
28
  import { ListFargateProfilesCommandInput, ListFargateProfilesCommandOutput } from "./commands/ListFargateProfilesCommand";
25
29
  import { ListIdentityProviderConfigsCommandInput, ListIdentityProviderConfigsCommandOutput } from "./commands/ListIdentityProviderConfigsCommand";
26
30
  import { ListNodegroupsCommandInput, ListNodegroupsCommandOutput } from "./commands/ListNodegroupsCommand";
@@ -32,6 +36,7 @@ import { UntagResourceCommandInput, UntagResourceCommandOutput } from "./command
32
36
  import { UpdateAddonCommandInput, UpdateAddonCommandOutput } from "./commands/UpdateAddonCommand";
33
37
  import { UpdateClusterConfigCommandInput, UpdateClusterConfigCommandOutput } from "./commands/UpdateClusterConfigCommand";
34
38
  import { UpdateClusterVersionCommandInput, UpdateClusterVersionCommandOutput } from "./commands/UpdateClusterVersionCommand";
39
+ import { UpdateEksAnywhereSubscriptionCommandInput, UpdateEksAnywhereSubscriptionCommandOutput } from "./commands/UpdateEksAnywhereSubscriptionCommand";
35
40
  import { UpdateNodegroupConfigCommandInput, UpdateNodegroupConfigCommandOutput } from "./commands/UpdateNodegroupConfigCommand";
36
41
  import { UpdateNodegroupVersionCommandInput, UpdateNodegroupVersionCommandOutput } from "./commands/UpdateNodegroupVersionCommand";
37
42
  import { EKSClient } from "./EKSClient";
@@ -60,6 +65,12 @@ export interface EKS {
60
65
  createCluster(args: CreateClusterCommandInput, options?: __HttpHandlerOptions): Promise<CreateClusterCommandOutput>;
61
66
  createCluster(args: CreateClusterCommandInput, cb: (err: any, data?: CreateClusterCommandOutput) => void): void;
62
67
  createCluster(args: CreateClusterCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: CreateClusterCommandOutput) => void): void;
68
+ /**
69
+ * @see {@link CreateEksAnywhereSubscriptionCommand}
70
+ */
71
+ createEksAnywhereSubscription(args: CreateEksAnywhereSubscriptionCommandInput, options?: __HttpHandlerOptions): Promise<CreateEksAnywhereSubscriptionCommandOutput>;
72
+ createEksAnywhereSubscription(args: CreateEksAnywhereSubscriptionCommandInput, cb: (err: any, data?: CreateEksAnywhereSubscriptionCommandOutput) => void): void;
73
+ createEksAnywhereSubscription(args: CreateEksAnywhereSubscriptionCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: CreateEksAnywhereSubscriptionCommandOutput) => void): void;
63
74
  /**
64
75
  * @see {@link CreateFargateProfileCommand}
65
76
  */
@@ -84,6 +95,12 @@ export interface EKS {
84
95
  deleteCluster(args: DeleteClusterCommandInput, options?: __HttpHandlerOptions): Promise<DeleteClusterCommandOutput>;
85
96
  deleteCluster(args: DeleteClusterCommandInput, cb: (err: any, data?: DeleteClusterCommandOutput) => void): void;
86
97
  deleteCluster(args: DeleteClusterCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: DeleteClusterCommandOutput) => void): void;
98
+ /**
99
+ * @see {@link DeleteEksAnywhereSubscriptionCommand}
100
+ */
101
+ deleteEksAnywhereSubscription(args: DeleteEksAnywhereSubscriptionCommandInput, options?: __HttpHandlerOptions): Promise<DeleteEksAnywhereSubscriptionCommandOutput>;
102
+ deleteEksAnywhereSubscription(args: DeleteEksAnywhereSubscriptionCommandInput, cb: (err: any, data?: DeleteEksAnywhereSubscriptionCommandOutput) => void): void;
103
+ deleteEksAnywhereSubscription(args: DeleteEksAnywhereSubscriptionCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: DeleteEksAnywhereSubscriptionCommandOutput) => void): void;
87
104
  /**
88
105
  * @see {@link DeleteFargateProfileCommand}
89
106
  */
@@ -126,6 +143,12 @@ export interface EKS {
126
143
  describeCluster(args: DescribeClusterCommandInput, options?: __HttpHandlerOptions): Promise<DescribeClusterCommandOutput>;
127
144
  describeCluster(args: DescribeClusterCommandInput, cb: (err: any, data?: DescribeClusterCommandOutput) => void): void;
128
145
  describeCluster(args: DescribeClusterCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: DescribeClusterCommandOutput) => void): void;
146
+ /**
147
+ * @see {@link DescribeEksAnywhereSubscriptionCommand}
148
+ */
149
+ describeEksAnywhereSubscription(args: DescribeEksAnywhereSubscriptionCommandInput, options?: __HttpHandlerOptions): Promise<DescribeEksAnywhereSubscriptionCommandOutput>;
150
+ describeEksAnywhereSubscription(args: DescribeEksAnywhereSubscriptionCommandInput, cb: (err: any, data?: DescribeEksAnywhereSubscriptionCommandOutput) => void): void;
151
+ describeEksAnywhereSubscription(args: DescribeEksAnywhereSubscriptionCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: DescribeEksAnywhereSubscriptionCommandOutput) => void): void;
129
152
  /**
130
153
  * @see {@link DescribeFargateProfileCommand}
131
154
  */
@@ -168,6 +191,12 @@ export interface EKS {
168
191
  listClusters(args: ListClustersCommandInput, options?: __HttpHandlerOptions): Promise<ListClustersCommandOutput>;
169
192
  listClusters(args: ListClustersCommandInput, cb: (err: any, data?: ListClustersCommandOutput) => void): void;
170
193
  listClusters(args: ListClustersCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: ListClustersCommandOutput) => void): void;
194
+ /**
195
+ * @see {@link ListEksAnywhereSubscriptionsCommand}
196
+ */
197
+ listEksAnywhereSubscriptions(args: ListEksAnywhereSubscriptionsCommandInput, options?: __HttpHandlerOptions): Promise<ListEksAnywhereSubscriptionsCommandOutput>;
198
+ listEksAnywhereSubscriptions(args: ListEksAnywhereSubscriptionsCommandInput, cb: (err: any, data?: ListEksAnywhereSubscriptionsCommandOutput) => void): void;
199
+ listEksAnywhereSubscriptions(args: ListEksAnywhereSubscriptionsCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: ListEksAnywhereSubscriptionsCommandOutput) => void): void;
171
200
  /**
172
201
  * @see {@link ListFargateProfilesCommand}
173
202
  */
@@ -234,6 +263,12 @@ export interface EKS {
234
263
  updateClusterVersion(args: UpdateClusterVersionCommandInput, options?: __HttpHandlerOptions): Promise<UpdateClusterVersionCommandOutput>;
235
264
  updateClusterVersion(args: UpdateClusterVersionCommandInput, cb: (err: any, data?: UpdateClusterVersionCommandOutput) => void): void;
236
265
  updateClusterVersion(args: UpdateClusterVersionCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: UpdateClusterVersionCommandOutput) => void): void;
266
+ /**
267
+ * @see {@link UpdateEksAnywhereSubscriptionCommand}
268
+ */
269
+ updateEksAnywhereSubscription(args: UpdateEksAnywhereSubscriptionCommandInput, options?: __HttpHandlerOptions): Promise<UpdateEksAnywhereSubscriptionCommandOutput>;
270
+ updateEksAnywhereSubscription(args: UpdateEksAnywhereSubscriptionCommandInput, cb: (err: any, data?: UpdateEksAnywhereSubscriptionCommandOutput) => void): void;
271
+ updateEksAnywhereSubscription(args: UpdateEksAnywhereSubscriptionCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: UpdateEksAnywhereSubscriptionCommandOutput) => void): void;
237
272
  /**
238
273
  * @see {@link UpdateNodegroupConfigCommand}
239
274
  */
@@ -250,15 +285,14 @@ export interface EKS {
250
285
  /**
251
286
  * @public
252
287
  * <p>Amazon Elastic Kubernetes Service (Amazon EKS) is a managed service that makes it easy
253
- * for you to run Kubernetes on Amazon Web Services without needing to stand up or maintain
254
- * your own Kubernetes control plane. Kubernetes is an open-source system for automating
255
- * the deployment, scaling, and management of containerized applications. </p>
256
- * <p>Amazon EKS runs up-to-date versions of the open-source Kubernetes software, so
257
- * you can use all the existing plugins and tooling from the Kubernetes community.
258
- * Applications running on Amazon EKS are fully compatible with applications
259
- * running on any standard Kubernetes environment, whether running in on-premises data
260
- * centers or public clouds. This means that you can easily migrate any standard Kubernetes
261
- * application to Amazon EKS without any code modification required.</p>
288
+ * for you to run Kubernetes on Amazon Web Services without needing to stand up or maintain your
289
+ * own Kubernetes control plane. Kubernetes is an open-source system for automating the deployment,
290
+ * scaling, and management of containerized applications. </p>
291
+ * <p>Amazon EKS runs up-to-date versions of the open-source Kubernetes software, so you
292
+ * can use all the existing plugins and tooling from the Kubernetes community. Applications
293
+ * running on Amazon EKS are fully compatible with applications running on any
294
+ * standard Kubernetes environment, whether running in on-premises data centers or public
295
+ * clouds. This means that you can easily migrate any standard Kubernetes application to Amazon EKS without any code modification required.</p>
262
296
  */
263
297
  export declare class EKS extends EKSClient implements EKS {
264
298
  }