@aws-sdk/client-eks 3.474.0 → 3.476.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 (115) hide show
  1. package/README.md +75 -3
  2. package/dist-cjs/EKS.js +18 -0
  3. package/dist-cjs/commands/AssociateAccessPolicyCommand.js +51 -0
  4. package/dist-cjs/commands/CreateAccessEntryCommand.js +51 -0
  5. package/dist-cjs/commands/DeleteAccessEntryCommand.js +51 -0
  6. package/dist-cjs/commands/DescribeAccessEntryCommand.js +51 -0
  7. package/dist-cjs/commands/DisassociateAccessPolicyCommand.js +51 -0
  8. package/dist-cjs/commands/ListAccessEntriesCommand.js +51 -0
  9. package/dist-cjs/commands/ListAccessPoliciesCommand.js +51 -0
  10. package/dist-cjs/commands/ListAssociatedAccessPoliciesCommand.js +51 -0
  11. package/dist-cjs/commands/UpdateAccessEntryCommand.js +51 -0
  12. package/dist-cjs/commands/index.js +9 -0
  13. package/dist-cjs/models/models_0.js +87 -76
  14. package/dist-cjs/pagination/ListAccessEntriesPaginator.js +29 -0
  15. package/dist-cjs/pagination/ListAccessPoliciesPaginator.js +29 -0
  16. package/dist-cjs/pagination/ListAssociatedAccessPoliciesPaginator.js +29 -0
  17. package/dist-cjs/pagination/index.js +3 -0
  18. package/dist-cjs/protocols/Aws_restJson1.js +610 -2
  19. package/dist-es/EKS.js +18 -0
  20. package/dist-es/commands/AssociateAccessPolicyCommand.js +47 -0
  21. package/dist-es/commands/CreateAccessEntryCommand.js +47 -0
  22. package/dist-es/commands/DeleteAccessEntryCommand.js +47 -0
  23. package/dist-es/commands/DescribeAccessEntryCommand.js +47 -0
  24. package/dist-es/commands/DisassociateAccessPolicyCommand.js +47 -0
  25. package/dist-es/commands/ListAccessEntriesCommand.js +47 -0
  26. package/dist-es/commands/ListAccessPoliciesCommand.js +47 -0
  27. package/dist-es/commands/ListAssociatedAccessPoliciesCommand.js +47 -0
  28. package/dist-es/commands/UpdateAccessEntryCommand.js +47 -0
  29. package/dist-es/commands/index.js +9 -0
  30. package/dist-es/models/models_0.js +81 -70
  31. package/dist-es/pagination/ListAccessEntriesPaginator.js +25 -0
  32. package/dist-es/pagination/ListAccessPoliciesPaginator.js +25 -0
  33. package/dist-es/pagination/ListAssociatedAccessPoliciesPaginator.js +25 -0
  34. package/dist-es/pagination/index.js +3 -0
  35. package/dist-es/protocols/Aws_restJson1.js +589 -0
  36. package/dist-types/EKS.d.ts +66 -3
  37. package/dist-types/EKSClient.d.ts +14 -5
  38. package/dist-types/commands/AssociateAccessPolicyCommand.d.ts +111 -0
  39. package/dist-types/commands/AssociateEncryptionConfigCommand.d.ts +8 -9
  40. package/dist-types/commands/AssociateIdentityProviderConfigCommand.d.ts +9 -10
  41. package/dist-types/commands/CreateAccessEntryCommand.d.ts +131 -0
  42. package/dist-types/commands/CreateAddonCommand.d.ts +2 -3
  43. package/dist-types/commands/CreateClusterCommand.d.ts +9 -1
  44. package/dist-types/commands/CreateFargateProfileCommand.d.ts +1 -1
  45. package/dist-types/commands/CreateNodegroupCommand.d.ts +8 -5
  46. package/dist-types/commands/CreatePodIdentityAssociationCommand.d.ts +3 -4
  47. package/dist-types/commands/DeleteAccessEntryCommand.d.ts +87 -0
  48. package/dist-types/commands/DeleteAddonCommand.d.ts +5 -6
  49. package/dist-types/commands/DeleteClusterCommand.d.ts +10 -6
  50. package/dist-types/commands/DeleteEksAnywhereSubscriptionCommand.d.ts +2 -3
  51. package/dist-types/commands/DeleteFargateProfileCommand.d.ts +8 -7
  52. package/dist-types/commands/DeleteNodegroupCommand.d.ts +3 -4
  53. package/dist-types/commands/DeletePodIdentityAssociationCommand.d.ts +2 -3
  54. package/dist-types/commands/DeregisterClusterCommand.d.ts +8 -3
  55. package/dist-types/commands/DescribeAccessEntryCommand.d.ts +100 -0
  56. package/dist-types/commands/DescribeAddonCommand.d.ts +2 -3
  57. package/dist-types/commands/DescribeAddonConfigurationCommand.d.ts +2 -3
  58. package/dist-types/commands/DescribeAddonVersionsCommand.d.ts +6 -6
  59. package/dist-types/commands/DescribeClusterCommand.d.ts +10 -6
  60. package/dist-types/commands/DescribeEksAnywhereSubscriptionCommand.d.ts +2 -3
  61. package/dist-types/commands/DescribeFargateProfileCommand.d.ts +3 -4
  62. package/dist-types/commands/DescribeIdentityProviderConfigCommand.d.ts +3 -4
  63. package/dist-types/commands/DescribeNodegroupCommand.d.ts +3 -4
  64. package/dist-types/commands/DescribePodIdentityAssociationCommand.d.ts +2 -3
  65. package/dist-types/commands/DescribeUpdateCommand.d.ts +5 -7
  66. package/dist-types/commands/DisassociateAccessPolicyCommand.d.ts +85 -0
  67. package/dist-types/commands/DisassociateIdentityProviderConfigCommand.d.ts +8 -9
  68. package/dist-types/commands/ListAccessEntriesCommand.d.ts +95 -0
  69. package/dist-types/commands/ListAccessPoliciesCommand.d.ts +83 -0
  70. package/dist-types/commands/ListAddonsCommand.d.ts +2 -3
  71. package/dist-types/commands/ListAssociatedAccessPoliciesCommand.d.ts +103 -0
  72. package/dist-types/commands/ListClustersCommand.d.ts +1 -1
  73. package/dist-types/commands/ListFargateProfilesCommand.d.ts +3 -4
  74. package/dist-types/commands/ListIdentityProviderConfigsCommand.d.ts +3 -4
  75. package/dist-types/commands/ListNodegroupsCommand.d.ts +4 -6
  76. package/dist-types/commands/ListPodIdentityAssociationsCommand.d.ts +2 -3
  77. package/dist-types/commands/ListUpdatesCommand.d.ts +3 -5
  78. package/dist-types/commands/RegisterClusterCommand.d.ts +8 -3
  79. package/dist-types/commands/TagResourceCommand.d.ts +6 -5
  80. package/dist-types/commands/UntagResourceCommand.d.ts +1 -1
  81. package/dist-types/commands/UpdateAccessEntryCommand.d.ts +109 -0
  82. package/dist-types/commands/UpdateAddonCommand.d.ts +4 -5
  83. package/dist-types/commands/UpdateClusterConfigCommand.d.ts +9 -8
  84. package/dist-types/commands/UpdateClusterVersionCommand.d.ts +4 -5
  85. package/dist-types/commands/UpdateEksAnywhereSubscriptionCommand.d.ts +2 -3
  86. package/dist-types/commands/UpdateNodegroupConfigCommand.d.ts +4 -5
  87. package/dist-types/commands/UpdateNodegroupVersionCommand.d.ts +8 -9
  88. package/dist-types/commands/UpdatePodIdentityAssociationCommand.d.ts +3 -4
  89. package/dist-types/commands/index.d.ts +9 -0
  90. package/dist-types/index.d.ts +3 -3
  91. package/dist-types/models/models_0.d.ts +1256 -556
  92. package/dist-types/pagination/ListAccessEntriesPaginator.d.ts +7 -0
  93. package/dist-types/pagination/ListAccessPoliciesPaginator.d.ts +7 -0
  94. package/dist-types/pagination/ListAssociatedAccessPoliciesPaginator.d.ts +7 -0
  95. package/dist-types/pagination/index.d.ts +3 -0
  96. package/dist-types/protocols/Aws_restJson1.d.ts +81 -0
  97. package/dist-types/ts3.4/EKS.d.ts +153 -0
  98. package/dist-types/ts3.4/EKSClient.d.ts +54 -0
  99. package/dist-types/ts3.4/commands/AssociateAccessPolicyCommand.d.ts +42 -0
  100. package/dist-types/ts3.4/commands/CreateAccessEntryCommand.d.ts +39 -0
  101. package/dist-types/ts3.4/commands/DeleteAccessEntryCommand.d.ts +39 -0
  102. package/dist-types/ts3.4/commands/DescribeAccessEntryCommand.d.ts +39 -0
  103. package/dist-types/ts3.4/commands/DisassociateAccessPolicyCommand.d.ts +42 -0
  104. package/dist-types/ts3.4/commands/ListAccessEntriesCommand.d.ts +39 -0
  105. package/dist-types/ts3.4/commands/ListAccessPoliciesCommand.d.ts +39 -0
  106. package/dist-types/ts3.4/commands/ListAssociatedAccessPoliciesCommand.d.ts +42 -0
  107. package/dist-types/ts3.4/commands/UpdateAccessEntryCommand.d.ts +39 -0
  108. package/dist-types/ts3.4/commands/index.d.ts +9 -0
  109. package/dist-types/ts3.4/models/models_0.d.ts +189 -54
  110. package/dist-types/ts3.4/pagination/ListAccessEntriesPaginator.d.ts +11 -0
  111. package/dist-types/ts3.4/pagination/ListAccessPoliciesPaginator.d.ts +11 -0
  112. package/dist-types/ts3.4/pagination/ListAssociatedAccessPoliciesPaginator.d.ts +11 -0
  113. package/dist-types/ts3.4/pagination/index.d.ts +3 -0
  114. package/dist-types/ts3.4/protocols/Aws_restJson1.d.ts +108 -0
  115. package/package.json +4 -4
@@ -3,6 +3,30 @@ import { _json, collectBody, decorateServiceException as __decorateServiceExcept
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";
6
+ export const se_AssociateAccessPolicyCommand = async (input, context) => {
7
+ const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
8
+ const headers = {
9
+ "content-type": "application/json",
10
+ };
11
+ let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
12
+ "/clusters/{clusterName}/access-entries/{principalArn}/access-policies";
13
+ resolvedPath = __resolvedPath(resolvedPath, input, "clusterName", () => input.clusterName, "{clusterName}", false);
14
+ resolvedPath = __resolvedPath(resolvedPath, input, "principalArn", () => input.principalArn, "{principalArn}", false);
15
+ let body;
16
+ body = JSON.stringify(take(input, {
17
+ accessScope: (_) => _json(_),
18
+ policyArn: [],
19
+ }));
20
+ return new __HttpRequest({
21
+ protocol,
22
+ hostname,
23
+ port,
24
+ method: "POST",
25
+ headers,
26
+ path: resolvedPath,
27
+ body,
28
+ });
29
+ };
6
30
  export const se_AssociateEncryptionConfigCommand = async (input, context) => {
7
31
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
8
32
  const headers = {
@@ -50,6 +74,32 @@ export const se_AssociateIdentityProviderConfigCommand = async (input, context)
50
74
  body,
51
75
  });
52
76
  };
77
+ export const se_CreateAccessEntryCommand = async (input, context) => {
78
+ const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
79
+ const headers = {
80
+ "content-type": "application/json",
81
+ };
82
+ let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/clusters/{clusterName}/access-entries";
83
+ resolvedPath = __resolvedPath(resolvedPath, input, "clusterName", () => input.clusterName, "{clusterName}", false);
84
+ let body;
85
+ body = JSON.stringify(take(input, {
86
+ clientRequestToken: [true, (_) => _ ?? generateIdempotencyToken()],
87
+ kubernetesGroups: (_) => _json(_),
88
+ principalArn: [],
89
+ tags: (_) => _json(_),
90
+ type: [],
91
+ username: [],
92
+ }));
93
+ return new __HttpRequest({
94
+ protocol,
95
+ hostname,
96
+ port,
97
+ method: "POST",
98
+ headers,
99
+ path: resolvedPath,
100
+ body,
101
+ });
102
+ };
53
103
  export const se_CreateAddonCommand = async (input, context) => {
54
104
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
55
105
  const headers = {
@@ -85,6 +135,7 @@ export const se_CreateClusterCommand = async (input, context) => {
85
135
  const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/clusters";
86
136
  let body;
87
137
  body = JSON.stringify(take(input, {
138
+ accessConfig: (_) => _json(_),
88
139
  clientRequestToken: [true, (_) => _ ?? generateIdempotencyToken()],
89
140
  encryptionConfig: (_) => _json(_),
90
141
  kubernetesNetworkConfig: (_) => _json(_),
@@ -221,6 +272,24 @@ export const se_CreatePodIdentityAssociationCommand = async (input, context) =>
221
272
  body,
222
273
  });
223
274
  };
275
+ export const se_DeleteAccessEntryCommand = async (input, context) => {
276
+ const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
277
+ const headers = {};
278
+ let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
279
+ "/clusters/{clusterName}/access-entries/{principalArn}";
280
+ resolvedPath = __resolvedPath(resolvedPath, input, "clusterName", () => input.clusterName, "{clusterName}", false);
281
+ resolvedPath = __resolvedPath(resolvedPath, input, "principalArn", () => input.principalArn, "{principalArn}", false);
282
+ let body;
283
+ return new __HttpRequest({
284
+ protocol,
285
+ hostname,
286
+ port,
287
+ method: "DELETE",
288
+ headers,
289
+ path: resolvedPath,
290
+ body,
291
+ });
292
+ };
224
293
  export const se_DeleteAddonCommand = async (input, context) => {
225
294
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
226
295
  const headers = {};
@@ -345,6 +414,24 @@ export const se_DeregisterClusterCommand = async (input, context) => {
345
414
  body,
346
415
  });
347
416
  };
417
+ export const se_DescribeAccessEntryCommand = async (input, context) => {
418
+ const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
419
+ const headers = {};
420
+ let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
421
+ "/clusters/{clusterName}/access-entries/{principalArn}";
422
+ resolvedPath = __resolvedPath(resolvedPath, input, "clusterName", () => input.clusterName, "{clusterName}", false);
423
+ resolvedPath = __resolvedPath(resolvedPath, input, "principalArn", () => input.principalArn, "{principalArn}", false);
424
+ let body;
425
+ return new __HttpRequest({
426
+ protocol,
427
+ hostname,
428
+ port,
429
+ method: "GET",
430
+ headers,
431
+ path: resolvedPath,
432
+ body,
433
+ });
434
+ };
348
435
  export const se_DescribeAddonCommand = async (input, context) => {
349
436
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
350
437
  const headers = {};
@@ -538,6 +625,25 @@ export const se_DescribeUpdateCommand = async (input, context) => {
538
625
  body,
539
626
  });
540
627
  };
628
+ export const se_DisassociateAccessPolicyCommand = async (input, context) => {
629
+ const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
630
+ const headers = {};
631
+ let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
632
+ "/clusters/{clusterName}/access-entries/{principalArn}/access-policies/{policyArn}";
633
+ resolvedPath = __resolvedPath(resolvedPath, input, "clusterName", () => input.clusterName, "{clusterName}", false);
634
+ resolvedPath = __resolvedPath(resolvedPath, input, "principalArn", () => input.principalArn, "{principalArn}", false);
635
+ resolvedPath = __resolvedPath(resolvedPath, input, "policyArn", () => input.policyArn, "{policyArn}", false);
636
+ let body;
637
+ return new __HttpRequest({
638
+ protocol,
639
+ hostname,
640
+ port,
641
+ method: "DELETE",
642
+ headers,
643
+ path: resolvedPath,
644
+ body,
645
+ });
646
+ };
541
647
  export const se_DisassociateIdentityProviderConfigCommand = async (input, context) => {
542
648
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
543
649
  const headers = {
@@ -561,6 +667,48 @@ export const se_DisassociateIdentityProviderConfigCommand = async (input, contex
561
667
  body,
562
668
  });
563
669
  };
670
+ export const se_ListAccessEntriesCommand = async (input, context) => {
671
+ const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
672
+ const headers = {};
673
+ let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/clusters/{clusterName}/access-entries";
674
+ resolvedPath = __resolvedPath(resolvedPath, input, "clusterName", () => input.clusterName, "{clusterName}", false);
675
+ const query = map({
676
+ associatedPolicyArn: [, input.associatedPolicyArn],
677
+ maxResults: [() => input.maxResults !== void 0, () => input.maxResults.toString()],
678
+ nextToken: [, input.nextToken],
679
+ });
680
+ let body;
681
+ return new __HttpRequest({
682
+ protocol,
683
+ hostname,
684
+ port,
685
+ method: "GET",
686
+ headers,
687
+ path: resolvedPath,
688
+ query,
689
+ body,
690
+ });
691
+ };
692
+ export const se_ListAccessPoliciesCommand = async (input, context) => {
693
+ const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
694
+ const headers = {};
695
+ const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/access-policies";
696
+ const query = map({
697
+ maxResults: [() => input.maxResults !== void 0, () => input.maxResults.toString()],
698
+ nextToken: [, input.nextToken],
699
+ });
700
+ let body;
701
+ return new __HttpRequest({
702
+ protocol,
703
+ hostname,
704
+ port,
705
+ method: "GET",
706
+ headers,
707
+ path: resolvedPath,
708
+ query,
709
+ body,
710
+ });
711
+ };
564
712
  export const se_ListAddonsCommand = async (input, context) => {
565
713
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
566
714
  const headers = {};
@@ -582,6 +730,29 @@ export const se_ListAddonsCommand = async (input, context) => {
582
730
  body,
583
731
  });
584
732
  };
733
+ export const se_ListAssociatedAccessPoliciesCommand = async (input, context) => {
734
+ const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
735
+ const headers = {};
736
+ let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
737
+ "/clusters/{clusterName}/access-entries/{principalArn}/access-policies";
738
+ resolvedPath = __resolvedPath(resolvedPath, input, "clusterName", () => input.clusterName, "{clusterName}", false);
739
+ resolvedPath = __resolvedPath(resolvedPath, input, "principalArn", () => input.principalArn, "{principalArn}", false);
740
+ const query = map({
741
+ maxResults: [() => input.maxResults !== void 0, () => input.maxResults.toString()],
742
+ nextToken: [, input.nextToken],
743
+ });
744
+ let body;
745
+ return new __HttpRequest({
746
+ protocol,
747
+ hostname,
748
+ port,
749
+ method: "GET",
750
+ headers,
751
+ path: resolvedPath,
752
+ query,
753
+ body,
754
+ });
755
+ };
585
756
  export const se_ListClustersCommand = async (input, context) => {
586
757
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
587
758
  const headers = {};
@@ -821,6 +992,31 @@ export const se_UntagResourceCommand = async (input, context) => {
821
992
  body,
822
993
  });
823
994
  };
995
+ export const se_UpdateAccessEntryCommand = async (input, context) => {
996
+ const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
997
+ const headers = {
998
+ "content-type": "application/json",
999
+ };
1000
+ let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
1001
+ "/clusters/{clusterName}/access-entries/{principalArn}";
1002
+ resolvedPath = __resolvedPath(resolvedPath, input, "clusterName", () => input.clusterName, "{clusterName}", false);
1003
+ resolvedPath = __resolvedPath(resolvedPath, input, "principalArn", () => input.principalArn, "{principalArn}", false);
1004
+ let body;
1005
+ body = JSON.stringify(take(input, {
1006
+ clientRequestToken: [true, (_) => _ ?? generateIdempotencyToken()],
1007
+ kubernetesGroups: (_) => _json(_),
1008
+ username: [],
1009
+ }));
1010
+ return new __HttpRequest({
1011
+ protocol,
1012
+ hostname,
1013
+ port,
1014
+ method: "POST",
1015
+ headers,
1016
+ path: resolvedPath,
1017
+ body,
1018
+ });
1019
+ };
824
1020
  export const se_UpdateAddonCommand = async (input, context) => {
825
1021
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
826
1022
  const headers = {
@@ -857,6 +1053,7 @@ export const se_UpdateClusterConfigCommand = async (input, context) => {
857
1053
  resolvedPath = __resolvedPath(resolvedPath, input, "name", () => input.name, "{name}", false);
858
1054
  let body;
859
1055
  body = JSON.stringify(take(input, {
1056
+ accessConfig: (_) => _json(_),
860
1057
  clientRequestToken: [true, (_) => _ ?? generateIdempotencyToken()],
861
1058
  logging: (_) => _json(_),
862
1059
  resourcesVpcConfig: (_) => _json(_),
@@ -993,6 +1190,50 @@ export const se_UpdatePodIdentityAssociationCommand = async (input, context) =>
993
1190
  body,
994
1191
  });
995
1192
  };
1193
+ export const de_AssociateAccessPolicyCommand = async (output, context) => {
1194
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
1195
+ return de_AssociateAccessPolicyCommandError(output, context);
1196
+ }
1197
+ const contents = map({
1198
+ $metadata: deserializeMetadata(output),
1199
+ });
1200
+ const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
1201
+ const doc = take(data, {
1202
+ associatedAccessPolicy: (_) => de_AssociatedAccessPolicy(_, context),
1203
+ clusterName: __expectString,
1204
+ principalArn: __expectString,
1205
+ });
1206
+ Object.assign(contents, doc);
1207
+ return contents;
1208
+ };
1209
+ const de_AssociateAccessPolicyCommandError = async (output, context) => {
1210
+ const parsedOutput = {
1211
+ ...output,
1212
+ body: await parseErrorBody(output.body, context),
1213
+ };
1214
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1215
+ switch (errorCode) {
1216
+ case "InvalidParameterException":
1217
+ case "com.amazonaws.eks#InvalidParameterException":
1218
+ throw await de_InvalidParameterExceptionRes(parsedOutput, context);
1219
+ case "InvalidRequestException":
1220
+ case "com.amazonaws.eks#InvalidRequestException":
1221
+ throw await de_InvalidRequestExceptionRes(parsedOutput, context);
1222
+ case "ResourceNotFoundException":
1223
+ case "com.amazonaws.eks#ResourceNotFoundException":
1224
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1225
+ case "ServerException":
1226
+ case "com.amazonaws.eks#ServerException":
1227
+ throw await de_ServerExceptionRes(parsedOutput, context);
1228
+ default:
1229
+ const parsedBody = parsedOutput.body;
1230
+ return throwDefaultError({
1231
+ output,
1232
+ parsedBody,
1233
+ errorCode,
1234
+ });
1235
+ }
1236
+ };
996
1237
  export const de_AssociateEncryptionConfigCommand = async (output, context) => {
997
1238
  if (output.statusCode !== 200 && output.statusCode >= 300) {
998
1239
  return de_AssociateEncryptionConfigCommandError(output, context);
@@ -1090,6 +1331,54 @@ const de_AssociateIdentityProviderConfigCommandError = async (output, context) =
1090
1331
  });
1091
1332
  }
1092
1333
  };
1334
+ export const de_CreateAccessEntryCommand = async (output, context) => {
1335
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
1336
+ return de_CreateAccessEntryCommandError(output, context);
1337
+ }
1338
+ const contents = map({
1339
+ $metadata: deserializeMetadata(output),
1340
+ });
1341
+ const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
1342
+ const doc = take(data, {
1343
+ accessEntry: (_) => de_AccessEntry(_, context),
1344
+ });
1345
+ Object.assign(contents, doc);
1346
+ return contents;
1347
+ };
1348
+ const de_CreateAccessEntryCommandError = async (output, context) => {
1349
+ const parsedOutput = {
1350
+ ...output,
1351
+ body: await parseErrorBody(output.body, context),
1352
+ };
1353
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1354
+ switch (errorCode) {
1355
+ case "InvalidParameterException":
1356
+ case "com.amazonaws.eks#InvalidParameterException":
1357
+ throw await de_InvalidParameterExceptionRes(parsedOutput, context);
1358
+ case "InvalidRequestException":
1359
+ case "com.amazonaws.eks#InvalidRequestException":
1360
+ throw await de_InvalidRequestExceptionRes(parsedOutput, context);
1361
+ case "ResourceInUseException":
1362
+ case "com.amazonaws.eks#ResourceInUseException":
1363
+ throw await de_ResourceInUseExceptionRes(parsedOutput, context);
1364
+ case "ResourceLimitExceededException":
1365
+ case "com.amazonaws.eks#ResourceLimitExceededException":
1366
+ throw await de_ResourceLimitExceededExceptionRes(parsedOutput, context);
1367
+ case "ResourceNotFoundException":
1368
+ case "com.amazonaws.eks#ResourceNotFoundException":
1369
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1370
+ case "ServerException":
1371
+ case "com.amazonaws.eks#ServerException":
1372
+ throw await de_ServerExceptionRes(parsedOutput, context);
1373
+ default:
1374
+ const parsedBody = parsedOutput.body;
1375
+ return throwDefaultError({
1376
+ output,
1377
+ parsedBody,
1378
+ errorCode,
1379
+ });
1380
+ }
1381
+ };
1093
1382
  export const de_CreateAddonCommand = async (output, context) => {
1094
1383
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1095
1384
  return de_CreateAddonCommandError(output, context);
@@ -1381,6 +1670,41 @@ const de_CreatePodIdentityAssociationCommandError = async (output, context) => {
1381
1670
  });
1382
1671
  }
1383
1672
  };
1673
+ export const de_DeleteAccessEntryCommand = async (output, context) => {
1674
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
1675
+ return de_DeleteAccessEntryCommandError(output, context);
1676
+ }
1677
+ const contents = map({
1678
+ $metadata: deserializeMetadata(output),
1679
+ });
1680
+ await collectBody(output.body, context);
1681
+ return contents;
1682
+ };
1683
+ const de_DeleteAccessEntryCommandError = async (output, context) => {
1684
+ const parsedOutput = {
1685
+ ...output,
1686
+ body: await parseErrorBody(output.body, context),
1687
+ };
1688
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1689
+ switch (errorCode) {
1690
+ case "InvalidRequestException":
1691
+ case "com.amazonaws.eks#InvalidRequestException":
1692
+ throw await de_InvalidRequestExceptionRes(parsedOutput, context);
1693
+ case "ResourceNotFoundException":
1694
+ case "com.amazonaws.eks#ResourceNotFoundException":
1695
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1696
+ case "ServerException":
1697
+ case "com.amazonaws.eks#ServerException":
1698
+ throw await de_ServerExceptionRes(parsedOutput, context);
1699
+ default:
1700
+ const parsedBody = parsedOutput.body;
1701
+ return throwDefaultError({
1702
+ output,
1703
+ parsedBody,
1704
+ errorCode,
1705
+ });
1706
+ }
1707
+ };
1384
1708
  export const de_DeleteAddonCommand = async (output, context) => {
1385
1709
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1386
1710
  return de_DeleteAddonCommandError(output, context);
@@ -1693,6 +2017,45 @@ const de_DeregisterClusterCommandError = async (output, context) => {
1693
2017
  });
1694
2018
  }
1695
2019
  };
2020
+ export const de_DescribeAccessEntryCommand = async (output, context) => {
2021
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
2022
+ return de_DescribeAccessEntryCommandError(output, context);
2023
+ }
2024
+ const contents = map({
2025
+ $metadata: deserializeMetadata(output),
2026
+ });
2027
+ const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
2028
+ const doc = take(data, {
2029
+ accessEntry: (_) => de_AccessEntry(_, context),
2030
+ });
2031
+ Object.assign(contents, doc);
2032
+ return contents;
2033
+ };
2034
+ const de_DescribeAccessEntryCommandError = async (output, context) => {
2035
+ const parsedOutput = {
2036
+ ...output,
2037
+ body: await parseErrorBody(output.body, context),
2038
+ };
2039
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2040
+ switch (errorCode) {
2041
+ case "InvalidRequestException":
2042
+ case "com.amazonaws.eks#InvalidRequestException":
2043
+ throw await de_InvalidRequestExceptionRes(parsedOutput, context);
2044
+ case "ResourceNotFoundException":
2045
+ case "com.amazonaws.eks#ResourceNotFoundException":
2046
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
2047
+ case "ServerException":
2048
+ case "com.amazonaws.eks#ServerException":
2049
+ throw await de_ServerExceptionRes(parsedOutput, context);
2050
+ default:
2051
+ const parsedBody = parsedOutput.body;
2052
+ return throwDefaultError({
2053
+ output,
2054
+ parsedBody,
2055
+ errorCode,
2056
+ });
2057
+ }
2058
+ };
1696
2059
  export const de_DescribeAddonCommand = async (output, context) => {
1697
2060
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1698
2061
  return de_DescribeAddonCommandError(output, context);
@@ -2119,6 +2482,41 @@ const de_DescribeUpdateCommandError = async (output, context) => {
2119
2482
  });
2120
2483
  }
2121
2484
  };
2485
+ export const de_DisassociateAccessPolicyCommand = async (output, context) => {
2486
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
2487
+ return de_DisassociateAccessPolicyCommandError(output, context);
2488
+ }
2489
+ const contents = map({
2490
+ $metadata: deserializeMetadata(output),
2491
+ });
2492
+ await collectBody(output.body, context);
2493
+ return contents;
2494
+ };
2495
+ const de_DisassociateAccessPolicyCommandError = async (output, context) => {
2496
+ const parsedOutput = {
2497
+ ...output,
2498
+ body: await parseErrorBody(output.body, context),
2499
+ };
2500
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2501
+ switch (errorCode) {
2502
+ case "InvalidRequestException":
2503
+ case "com.amazonaws.eks#InvalidRequestException":
2504
+ throw await de_InvalidRequestExceptionRes(parsedOutput, context);
2505
+ case "ResourceNotFoundException":
2506
+ case "com.amazonaws.eks#ResourceNotFoundException":
2507
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
2508
+ case "ServerException":
2509
+ case "com.amazonaws.eks#ServerException":
2510
+ throw await de_ServerExceptionRes(parsedOutput, context);
2511
+ default:
2512
+ const parsedBody = parsedOutput.body;
2513
+ return throwDefaultError({
2514
+ output,
2515
+ parsedBody,
2516
+ errorCode,
2517
+ });
2518
+ }
2519
+ };
2122
2520
  export const de_DisassociateIdentityProviderConfigCommand = async (output, context) => {
2123
2521
  if (output.statusCode !== 200 && output.statusCode >= 300) {
2124
2522
  return de_DisassociateIdentityProviderConfigCommandError(output, context);
@@ -2167,6 +2565,83 @@ const de_DisassociateIdentityProviderConfigCommandError = async (output, context
2167
2565
  });
2168
2566
  }
2169
2567
  };
2568
+ export const de_ListAccessEntriesCommand = async (output, context) => {
2569
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
2570
+ return de_ListAccessEntriesCommandError(output, context);
2571
+ }
2572
+ const contents = map({
2573
+ $metadata: deserializeMetadata(output),
2574
+ });
2575
+ const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
2576
+ const doc = take(data, {
2577
+ accessEntries: _json,
2578
+ nextToken: __expectString,
2579
+ });
2580
+ Object.assign(contents, doc);
2581
+ return contents;
2582
+ };
2583
+ const de_ListAccessEntriesCommandError = async (output, context) => {
2584
+ const parsedOutput = {
2585
+ ...output,
2586
+ body: await parseErrorBody(output.body, context),
2587
+ };
2588
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2589
+ switch (errorCode) {
2590
+ case "InvalidParameterException":
2591
+ case "com.amazonaws.eks#InvalidParameterException":
2592
+ throw await de_InvalidParameterExceptionRes(parsedOutput, context);
2593
+ case "InvalidRequestException":
2594
+ case "com.amazonaws.eks#InvalidRequestException":
2595
+ throw await de_InvalidRequestExceptionRes(parsedOutput, context);
2596
+ case "ResourceNotFoundException":
2597
+ case "com.amazonaws.eks#ResourceNotFoundException":
2598
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
2599
+ case "ServerException":
2600
+ case "com.amazonaws.eks#ServerException":
2601
+ throw await de_ServerExceptionRes(parsedOutput, context);
2602
+ default:
2603
+ const parsedBody = parsedOutput.body;
2604
+ return throwDefaultError({
2605
+ output,
2606
+ parsedBody,
2607
+ errorCode,
2608
+ });
2609
+ }
2610
+ };
2611
+ export const de_ListAccessPoliciesCommand = async (output, context) => {
2612
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
2613
+ return de_ListAccessPoliciesCommandError(output, context);
2614
+ }
2615
+ const contents = map({
2616
+ $metadata: deserializeMetadata(output),
2617
+ });
2618
+ const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
2619
+ const doc = take(data, {
2620
+ accessPolicies: _json,
2621
+ nextToken: __expectString,
2622
+ });
2623
+ Object.assign(contents, doc);
2624
+ return contents;
2625
+ };
2626
+ const de_ListAccessPoliciesCommandError = async (output, context) => {
2627
+ const parsedOutput = {
2628
+ ...output,
2629
+ body: await parseErrorBody(output.body, context),
2630
+ };
2631
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2632
+ switch (errorCode) {
2633
+ case "ServerException":
2634
+ case "com.amazonaws.eks#ServerException":
2635
+ throw await de_ServerExceptionRes(parsedOutput, context);
2636
+ default:
2637
+ const parsedBody = parsedOutput.body;
2638
+ return throwDefaultError({
2639
+ output,
2640
+ parsedBody,
2641
+ errorCode,
2642
+ });
2643
+ }
2644
+ };
2170
2645
  export const de_ListAddonsCommand = async (output, context) => {
2171
2646
  if (output.statusCode !== 200 && output.statusCode >= 300) {
2172
2647
  return de_ListAddonsCommandError(output, context);
@@ -2213,6 +2688,48 @@ const de_ListAddonsCommandError = async (output, context) => {
2213
2688
  });
2214
2689
  }
2215
2690
  };
2691
+ export const de_ListAssociatedAccessPoliciesCommand = async (output, context) => {
2692
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
2693
+ return de_ListAssociatedAccessPoliciesCommandError(output, context);
2694
+ }
2695
+ const contents = map({
2696
+ $metadata: deserializeMetadata(output),
2697
+ });
2698
+ const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
2699
+ const doc = take(data, {
2700
+ associatedAccessPolicies: (_) => de_AssociatedAccessPoliciesList(_, context),
2701
+ clusterName: __expectString,
2702
+ nextToken: __expectString,
2703
+ principalArn: __expectString,
2704
+ });
2705
+ Object.assign(contents, doc);
2706
+ return contents;
2707
+ };
2708
+ const de_ListAssociatedAccessPoliciesCommandError = async (output, context) => {
2709
+ const parsedOutput = {
2710
+ ...output,
2711
+ body: await parseErrorBody(output.body, context),
2712
+ };
2713
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2714
+ switch (errorCode) {
2715
+ case "InvalidRequestException":
2716
+ case "com.amazonaws.eks#InvalidRequestException":
2717
+ throw await de_InvalidRequestExceptionRes(parsedOutput, context);
2718
+ case "ResourceNotFoundException":
2719
+ case "com.amazonaws.eks#ResourceNotFoundException":
2720
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
2721
+ case "ServerException":
2722
+ case "com.amazonaws.eks#ServerException":
2723
+ throw await de_ServerExceptionRes(parsedOutput, context);
2724
+ default:
2725
+ const parsedBody = parsedOutput.body;
2726
+ return throwDefaultError({
2727
+ output,
2728
+ parsedBody,
2729
+ errorCode,
2730
+ });
2731
+ }
2732
+ };
2216
2733
  export const de_ListClustersCommand = async (output, context) => {
2217
2734
  if (output.statusCode !== 200 && output.statusCode >= 300) {
2218
2735
  return de_ListClustersCommandError(output, context);
@@ -2674,6 +3191,48 @@ const de_UntagResourceCommandError = async (output, context) => {
2674
3191
  });
2675
3192
  }
2676
3193
  };
3194
+ export const de_UpdateAccessEntryCommand = async (output, context) => {
3195
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
3196
+ return de_UpdateAccessEntryCommandError(output, context);
3197
+ }
3198
+ const contents = map({
3199
+ $metadata: deserializeMetadata(output),
3200
+ });
3201
+ const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
3202
+ const doc = take(data, {
3203
+ accessEntry: (_) => de_AccessEntry(_, context),
3204
+ });
3205
+ Object.assign(contents, doc);
3206
+ return contents;
3207
+ };
3208
+ const de_UpdateAccessEntryCommandError = async (output, context) => {
3209
+ const parsedOutput = {
3210
+ ...output,
3211
+ body: await parseErrorBody(output.body, context),
3212
+ };
3213
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
3214
+ switch (errorCode) {
3215
+ case "InvalidParameterException":
3216
+ case "com.amazonaws.eks#InvalidParameterException":
3217
+ throw await de_InvalidParameterExceptionRes(parsedOutput, context);
3218
+ case "InvalidRequestException":
3219
+ case "com.amazonaws.eks#InvalidRequestException":
3220
+ throw await de_InvalidRequestExceptionRes(parsedOutput, context);
3221
+ case "ResourceNotFoundException":
3222
+ case "com.amazonaws.eks#ResourceNotFoundException":
3223
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
3224
+ case "ServerException":
3225
+ case "com.amazonaws.eks#ServerException":
3226
+ throw await de_ServerExceptionRes(parsedOutput, context);
3227
+ default:
3228
+ const parsedBody = parsedOutput.body;
3229
+ return throwDefaultError({
3230
+ output,
3231
+ parsedBody,
3232
+ errorCode,
3233
+ });
3234
+ }
3235
+ };
2677
3236
  export const de_UpdateAddonCommand = async (output, context) => {
2678
3237
  if (output.statusCode !== 200 && output.statusCode >= 300) {
2679
3238
  return de_UpdateAddonCommandError(output, context);
@@ -3202,6 +3761,19 @@ const de_UnsupportedAvailabilityZoneExceptionRes = async (parsedOutput, context)
3202
3761
  });
3203
3762
  return __decorateServiceException(exception, parsedOutput.body);
3204
3763
  };
3764
+ const de_AccessEntry = (output, context) => {
3765
+ return take(output, {
3766
+ accessEntryArn: __expectString,
3767
+ clusterName: __expectString,
3768
+ createdAt: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
3769
+ kubernetesGroups: _json,
3770
+ modifiedAt: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
3771
+ principalArn: __expectString,
3772
+ tags: _json,
3773
+ type: __expectString,
3774
+ username: __expectString,
3775
+ });
3776
+ };
3205
3777
  const de_Addon = (output, context) => {
3206
3778
  return take(output, {
3207
3779
  addonArn: __expectString,
@@ -3220,8 +3792,25 @@ const de_Addon = (output, context) => {
3220
3792
  tags: _json,
3221
3793
  });
3222
3794
  };
3795
+ const de_AssociatedAccessPoliciesList = (output, context) => {
3796
+ const retVal = (output || [])
3797
+ .filter((e) => e != null)
3798
+ .map((entry) => {
3799
+ return de_AssociatedAccessPolicy(entry, context);
3800
+ });
3801
+ return retVal;
3802
+ };
3803
+ const de_AssociatedAccessPolicy = (output, context) => {
3804
+ return take(output, {
3805
+ accessScope: _json,
3806
+ associatedAt: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
3807
+ modifiedAt: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
3808
+ policyArn: __expectString,
3809
+ });
3810
+ };
3223
3811
  const de_Cluster = (output, context) => {
3224
3812
  return take(output, {
3813
+ accessConfig: _json,
3225
3814
  arn: __expectString,
3226
3815
  certificateAuthority: _json,
3227
3816
  clientRequestToken: __expectString,