@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
@@ -1,12 +1,38 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.de_CreateEksAnywhereSubscriptionCommand = exports.de_CreateClusterCommand = exports.de_CreateAddonCommand = exports.de_AssociateIdentityProviderConfigCommand = exports.de_AssociateEncryptionConfigCommand = exports.se_UpdatePodIdentityAssociationCommand = exports.se_UpdateNodegroupVersionCommand = exports.se_UpdateNodegroupConfigCommand = exports.se_UpdateEksAnywhereSubscriptionCommand = exports.se_UpdateClusterVersionCommand = exports.se_UpdateClusterConfigCommand = exports.se_UpdateAddonCommand = exports.se_UntagResourceCommand = exports.se_TagResourceCommand = exports.se_RegisterClusterCommand = exports.se_ListUpdatesCommand = exports.se_ListTagsForResourceCommand = exports.se_ListPodIdentityAssociationsCommand = exports.se_ListNodegroupsCommand = exports.se_ListIdentityProviderConfigsCommand = exports.se_ListFargateProfilesCommand = exports.se_ListEksAnywhereSubscriptionsCommand = exports.se_ListClustersCommand = exports.se_ListAddonsCommand = exports.se_DisassociateIdentityProviderConfigCommand = exports.se_DescribeUpdateCommand = exports.se_DescribePodIdentityAssociationCommand = exports.se_DescribeNodegroupCommand = exports.se_DescribeIdentityProviderConfigCommand = exports.se_DescribeFargateProfileCommand = exports.se_DescribeEksAnywhereSubscriptionCommand = exports.se_DescribeClusterCommand = exports.se_DescribeAddonVersionsCommand = exports.se_DescribeAddonConfigurationCommand = exports.se_DescribeAddonCommand = exports.se_DeregisterClusterCommand = exports.se_DeletePodIdentityAssociationCommand = exports.se_DeleteNodegroupCommand = exports.se_DeleteFargateProfileCommand = exports.se_DeleteEksAnywhereSubscriptionCommand = exports.se_DeleteClusterCommand = exports.se_DeleteAddonCommand = exports.se_CreatePodIdentityAssociationCommand = exports.se_CreateNodegroupCommand = exports.se_CreateFargateProfileCommand = exports.se_CreateEksAnywhereSubscriptionCommand = exports.se_CreateClusterCommand = exports.se_CreateAddonCommand = exports.se_AssociateIdentityProviderConfigCommand = exports.se_AssociateEncryptionConfigCommand = void 0;
4
- exports.de_UpdatePodIdentityAssociationCommand = exports.de_UpdateNodegroupVersionCommand = exports.de_UpdateNodegroupConfigCommand = exports.de_UpdateEksAnywhereSubscriptionCommand = exports.de_UpdateClusterVersionCommand = exports.de_UpdateClusterConfigCommand = exports.de_UpdateAddonCommand = exports.de_UntagResourceCommand = exports.de_TagResourceCommand = exports.de_RegisterClusterCommand = exports.de_ListUpdatesCommand = exports.de_ListTagsForResourceCommand = exports.de_ListPodIdentityAssociationsCommand = exports.de_ListNodegroupsCommand = exports.de_ListIdentityProviderConfigsCommand = exports.de_ListFargateProfilesCommand = exports.de_ListEksAnywhereSubscriptionsCommand = exports.de_ListClustersCommand = exports.de_ListAddonsCommand = exports.de_DisassociateIdentityProviderConfigCommand = exports.de_DescribeUpdateCommand = exports.de_DescribePodIdentityAssociationCommand = exports.de_DescribeNodegroupCommand = exports.de_DescribeIdentityProviderConfigCommand = exports.de_DescribeFargateProfileCommand = exports.de_DescribeEksAnywhereSubscriptionCommand = exports.de_DescribeClusterCommand = exports.de_DescribeAddonVersionsCommand = exports.de_DescribeAddonConfigurationCommand = exports.de_DescribeAddonCommand = exports.de_DeregisterClusterCommand = exports.de_DeletePodIdentityAssociationCommand = exports.de_DeleteNodegroupCommand = exports.de_DeleteFargateProfileCommand = exports.de_DeleteEksAnywhereSubscriptionCommand = exports.de_DeleteClusterCommand = exports.de_DeleteAddonCommand = exports.de_CreatePodIdentityAssociationCommand = exports.de_CreateNodegroupCommand = exports.de_CreateFargateProfileCommand = void 0;
3
+ exports.se_UpdateClusterVersionCommand = exports.se_UpdateClusterConfigCommand = exports.se_UpdateAddonCommand = exports.se_UpdateAccessEntryCommand = exports.se_UntagResourceCommand = exports.se_TagResourceCommand = exports.se_RegisterClusterCommand = exports.se_ListUpdatesCommand = exports.se_ListTagsForResourceCommand = exports.se_ListPodIdentityAssociationsCommand = exports.se_ListNodegroupsCommand = exports.se_ListIdentityProviderConfigsCommand = exports.se_ListFargateProfilesCommand = exports.se_ListEksAnywhereSubscriptionsCommand = exports.se_ListClustersCommand = exports.se_ListAssociatedAccessPoliciesCommand = exports.se_ListAddonsCommand = exports.se_ListAccessPoliciesCommand = exports.se_ListAccessEntriesCommand = exports.se_DisassociateIdentityProviderConfigCommand = exports.se_DisassociateAccessPolicyCommand = exports.se_DescribeUpdateCommand = exports.se_DescribePodIdentityAssociationCommand = exports.se_DescribeNodegroupCommand = exports.se_DescribeIdentityProviderConfigCommand = exports.se_DescribeFargateProfileCommand = exports.se_DescribeEksAnywhereSubscriptionCommand = exports.se_DescribeClusterCommand = exports.se_DescribeAddonVersionsCommand = exports.se_DescribeAddonConfigurationCommand = exports.se_DescribeAddonCommand = exports.se_DescribeAccessEntryCommand = exports.se_DeregisterClusterCommand = exports.se_DeletePodIdentityAssociationCommand = exports.se_DeleteNodegroupCommand = exports.se_DeleteFargateProfileCommand = exports.se_DeleteEksAnywhereSubscriptionCommand = exports.se_DeleteClusterCommand = exports.se_DeleteAddonCommand = exports.se_DeleteAccessEntryCommand = exports.se_CreatePodIdentityAssociationCommand = exports.se_CreateNodegroupCommand = exports.se_CreateFargateProfileCommand = exports.se_CreateEksAnywhereSubscriptionCommand = exports.se_CreateClusterCommand = exports.se_CreateAddonCommand = exports.se_CreateAccessEntryCommand = exports.se_AssociateIdentityProviderConfigCommand = exports.se_AssociateEncryptionConfigCommand = exports.se_AssociateAccessPolicyCommand = void 0;
4
+ exports.de_UntagResourceCommand = exports.de_TagResourceCommand = exports.de_RegisterClusterCommand = exports.de_ListUpdatesCommand = exports.de_ListTagsForResourceCommand = exports.de_ListPodIdentityAssociationsCommand = exports.de_ListNodegroupsCommand = exports.de_ListIdentityProviderConfigsCommand = exports.de_ListFargateProfilesCommand = exports.de_ListEksAnywhereSubscriptionsCommand = exports.de_ListClustersCommand = exports.de_ListAssociatedAccessPoliciesCommand = exports.de_ListAddonsCommand = exports.de_ListAccessPoliciesCommand = exports.de_ListAccessEntriesCommand = exports.de_DisassociateIdentityProviderConfigCommand = exports.de_DisassociateAccessPolicyCommand = exports.de_DescribeUpdateCommand = exports.de_DescribePodIdentityAssociationCommand = exports.de_DescribeNodegroupCommand = exports.de_DescribeIdentityProviderConfigCommand = exports.de_DescribeFargateProfileCommand = exports.de_DescribeEksAnywhereSubscriptionCommand = exports.de_DescribeClusterCommand = exports.de_DescribeAddonVersionsCommand = exports.de_DescribeAddonConfigurationCommand = exports.de_DescribeAddonCommand = exports.de_DescribeAccessEntryCommand = exports.de_DeregisterClusterCommand = exports.de_DeletePodIdentityAssociationCommand = exports.de_DeleteNodegroupCommand = exports.de_DeleteFargateProfileCommand = exports.de_DeleteEksAnywhereSubscriptionCommand = exports.de_DeleteClusterCommand = exports.de_DeleteAddonCommand = exports.de_DeleteAccessEntryCommand = exports.de_CreatePodIdentityAssociationCommand = exports.de_CreateNodegroupCommand = exports.de_CreateFargateProfileCommand = exports.de_CreateEksAnywhereSubscriptionCommand = exports.de_CreateClusterCommand = exports.de_CreateAddonCommand = exports.de_CreateAccessEntryCommand = exports.de_AssociateIdentityProviderConfigCommand = exports.de_AssociateEncryptionConfigCommand = exports.de_AssociateAccessPolicyCommand = exports.se_UpdatePodIdentityAssociationCommand = exports.se_UpdateNodegroupVersionCommand = exports.se_UpdateNodegroupConfigCommand = exports.se_UpdateEksAnywhereSubscriptionCommand = void 0;
5
+ exports.de_UpdatePodIdentityAssociationCommand = exports.de_UpdateNodegroupVersionCommand = exports.de_UpdateNodegroupConfigCommand = exports.de_UpdateEksAnywhereSubscriptionCommand = exports.de_UpdateClusterVersionCommand = exports.de_UpdateClusterConfigCommand = exports.de_UpdateAddonCommand = exports.de_UpdateAccessEntryCommand = void 0;
5
6
  const protocol_http_1 = require("@smithy/protocol-http");
6
7
  const smithy_client_1 = require("@smithy/smithy-client");
7
8
  const uuid_1 = require("uuid");
8
9
  const EKSServiceException_1 = require("../models/EKSServiceException");
9
10
  const models_0_1 = require("../models/models_0");
11
+ const se_AssociateAccessPolicyCommand = async (input, context) => {
12
+ const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
13
+ const headers = {
14
+ "content-type": "application/json",
15
+ };
16
+ let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
17
+ "/clusters/{clusterName}/access-entries/{principalArn}/access-policies";
18
+ resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "clusterName", () => input.clusterName, "{clusterName}", false);
19
+ resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "principalArn", () => input.principalArn, "{principalArn}", false);
20
+ let body;
21
+ body = JSON.stringify((0, smithy_client_1.take)(input, {
22
+ accessScope: (_) => (0, smithy_client_1._json)(_),
23
+ policyArn: [],
24
+ }));
25
+ return new protocol_http_1.HttpRequest({
26
+ protocol,
27
+ hostname,
28
+ port,
29
+ method: "POST",
30
+ headers,
31
+ path: resolvedPath,
32
+ body,
33
+ });
34
+ };
35
+ exports.se_AssociateAccessPolicyCommand = se_AssociateAccessPolicyCommand;
10
36
  const se_AssociateEncryptionConfigCommand = async (input, context) => {
11
37
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
12
38
  const headers = {
@@ -56,6 +82,33 @@ const se_AssociateIdentityProviderConfigCommand = async (input, context) => {
56
82
  });
57
83
  };
58
84
  exports.se_AssociateIdentityProviderConfigCommand = se_AssociateIdentityProviderConfigCommand;
85
+ const se_CreateAccessEntryCommand = async (input, context) => {
86
+ const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
87
+ const headers = {
88
+ "content-type": "application/json",
89
+ };
90
+ let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/clusters/{clusterName}/access-entries";
91
+ resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "clusterName", () => input.clusterName, "{clusterName}", false);
92
+ let body;
93
+ body = JSON.stringify((0, smithy_client_1.take)(input, {
94
+ clientRequestToken: [true, (_) => _ ?? (0, uuid_1.v4)()],
95
+ kubernetesGroups: (_) => (0, smithy_client_1._json)(_),
96
+ principalArn: [],
97
+ tags: (_) => (0, smithy_client_1._json)(_),
98
+ type: [],
99
+ username: [],
100
+ }));
101
+ return new protocol_http_1.HttpRequest({
102
+ protocol,
103
+ hostname,
104
+ port,
105
+ method: "POST",
106
+ headers,
107
+ path: resolvedPath,
108
+ body,
109
+ });
110
+ };
111
+ exports.se_CreateAccessEntryCommand = se_CreateAccessEntryCommand;
59
112
  const se_CreateAddonCommand = async (input, context) => {
60
113
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
61
114
  const headers = {
@@ -92,6 +145,7 @@ const se_CreateClusterCommand = async (input, context) => {
92
145
  const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/clusters";
93
146
  let body;
94
147
  body = JSON.stringify((0, smithy_client_1.take)(input, {
148
+ accessConfig: (_) => (0, smithy_client_1._json)(_),
95
149
  clientRequestToken: [true, (_) => _ ?? (0, uuid_1.v4)()],
96
150
  encryptionConfig: (_) => (0, smithy_client_1._json)(_),
97
151
  kubernetesNetworkConfig: (_) => (0, smithy_client_1._json)(_),
@@ -233,6 +287,25 @@ const se_CreatePodIdentityAssociationCommand = async (input, context) => {
233
287
  });
234
288
  };
235
289
  exports.se_CreatePodIdentityAssociationCommand = se_CreatePodIdentityAssociationCommand;
290
+ const se_DeleteAccessEntryCommand = async (input, context) => {
291
+ const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
292
+ const headers = {};
293
+ let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
294
+ "/clusters/{clusterName}/access-entries/{principalArn}";
295
+ resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "clusterName", () => input.clusterName, "{clusterName}", false);
296
+ resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "principalArn", () => input.principalArn, "{principalArn}", false);
297
+ let body;
298
+ return new protocol_http_1.HttpRequest({
299
+ protocol,
300
+ hostname,
301
+ port,
302
+ method: "DELETE",
303
+ headers,
304
+ path: resolvedPath,
305
+ body,
306
+ });
307
+ };
308
+ exports.se_DeleteAccessEntryCommand = se_DeleteAccessEntryCommand;
236
309
  const se_DeleteAddonCommand = async (input, context) => {
237
310
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
238
311
  const headers = {};
@@ -364,6 +437,25 @@ const se_DeregisterClusterCommand = async (input, context) => {
364
437
  });
365
438
  };
366
439
  exports.se_DeregisterClusterCommand = se_DeregisterClusterCommand;
440
+ const se_DescribeAccessEntryCommand = async (input, context) => {
441
+ const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
442
+ const headers = {};
443
+ let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
444
+ "/clusters/{clusterName}/access-entries/{principalArn}";
445
+ resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "clusterName", () => input.clusterName, "{clusterName}", false);
446
+ resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "principalArn", () => input.principalArn, "{principalArn}", false);
447
+ let body;
448
+ return new protocol_http_1.HttpRequest({
449
+ protocol,
450
+ hostname,
451
+ port,
452
+ method: "GET",
453
+ headers,
454
+ path: resolvedPath,
455
+ body,
456
+ });
457
+ };
458
+ exports.se_DescribeAccessEntryCommand = se_DescribeAccessEntryCommand;
367
459
  const se_DescribeAddonCommand = async (input, context) => {
368
460
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
369
461
  const headers = {};
@@ -567,6 +659,26 @@ const se_DescribeUpdateCommand = async (input, context) => {
567
659
  });
568
660
  };
569
661
  exports.se_DescribeUpdateCommand = se_DescribeUpdateCommand;
662
+ const se_DisassociateAccessPolicyCommand = async (input, context) => {
663
+ const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
664
+ const headers = {};
665
+ let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
666
+ "/clusters/{clusterName}/access-entries/{principalArn}/access-policies/{policyArn}";
667
+ resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "clusterName", () => input.clusterName, "{clusterName}", false);
668
+ resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "principalArn", () => input.principalArn, "{principalArn}", false);
669
+ resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "policyArn", () => input.policyArn, "{policyArn}", false);
670
+ let body;
671
+ return new protocol_http_1.HttpRequest({
672
+ protocol,
673
+ hostname,
674
+ port,
675
+ method: "DELETE",
676
+ headers,
677
+ path: resolvedPath,
678
+ body,
679
+ });
680
+ };
681
+ exports.se_DisassociateAccessPolicyCommand = se_DisassociateAccessPolicyCommand;
570
682
  const se_DisassociateIdentityProviderConfigCommand = async (input, context) => {
571
683
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
572
684
  const headers = {
@@ -591,6 +703,50 @@ const se_DisassociateIdentityProviderConfigCommand = async (input, context) => {
591
703
  });
592
704
  };
593
705
  exports.se_DisassociateIdentityProviderConfigCommand = se_DisassociateIdentityProviderConfigCommand;
706
+ const se_ListAccessEntriesCommand = async (input, context) => {
707
+ const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
708
+ const headers = {};
709
+ let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/clusters/{clusterName}/access-entries";
710
+ resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "clusterName", () => input.clusterName, "{clusterName}", false);
711
+ const query = (0, smithy_client_1.map)({
712
+ associatedPolicyArn: [, input.associatedPolicyArn],
713
+ maxResults: [() => input.maxResults !== void 0, () => input.maxResults.toString()],
714
+ nextToken: [, input.nextToken],
715
+ });
716
+ let body;
717
+ return new protocol_http_1.HttpRequest({
718
+ protocol,
719
+ hostname,
720
+ port,
721
+ method: "GET",
722
+ headers,
723
+ path: resolvedPath,
724
+ query,
725
+ body,
726
+ });
727
+ };
728
+ exports.se_ListAccessEntriesCommand = se_ListAccessEntriesCommand;
729
+ const se_ListAccessPoliciesCommand = async (input, context) => {
730
+ const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
731
+ const headers = {};
732
+ const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/access-policies";
733
+ const query = (0, smithy_client_1.map)({
734
+ maxResults: [() => input.maxResults !== void 0, () => input.maxResults.toString()],
735
+ nextToken: [, input.nextToken],
736
+ });
737
+ let body;
738
+ return new protocol_http_1.HttpRequest({
739
+ protocol,
740
+ hostname,
741
+ port,
742
+ method: "GET",
743
+ headers,
744
+ path: resolvedPath,
745
+ query,
746
+ body,
747
+ });
748
+ };
749
+ exports.se_ListAccessPoliciesCommand = se_ListAccessPoliciesCommand;
594
750
  const se_ListAddonsCommand = async (input, context) => {
595
751
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
596
752
  const headers = {};
@@ -613,6 +769,30 @@ const se_ListAddonsCommand = async (input, context) => {
613
769
  });
614
770
  };
615
771
  exports.se_ListAddonsCommand = se_ListAddonsCommand;
772
+ const se_ListAssociatedAccessPoliciesCommand = async (input, context) => {
773
+ const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
774
+ const headers = {};
775
+ let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
776
+ "/clusters/{clusterName}/access-entries/{principalArn}/access-policies";
777
+ resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "clusterName", () => input.clusterName, "{clusterName}", false);
778
+ resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "principalArn", () => input.principalArn, "{principalArn}", false);
779
+ const query = (0, smithy_client_1.map)({
780
+ maxResults: [() => input.maxResults !== void 0, () => input.maxResults.toString()],
781
+ nextToken: [, input.nextToken],
782
+ });
783
+ let body;
784
+ return new protocol_http_1.HttpRequest({
785
+ protocol,
786
+ hostname,
787
+ port,
788
+ method: "GET",
789
+ headers,
790
+ path: resolvedPath,
791
+ query,
792
+ body,
793
+ });
794
+ };
795
+ exports.se_ListAssociatedAccessPoliciesCommand = se_ListAssociatedAccessPoliciesCommand;
616
796
  const se_ListClustersCommand = async (input, context) => {
617
797
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
618
798
  const headers = {};
@@ -863,6 +1043,32 @@ const se_UntagResourceCommand = async (input, context) => {
863
1043
  });
864
1044
  };
865
1045
  exports.se_UntagResourceCommand = se_UntagResourceCommand;
1046
+ const se_UpdateAccessEntryCommand = async (input, context) => {
1047
+ const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
1048
+ const headers = {
1049
+ "content-type": "application/json",
1050
+ };
1051
+ let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
1052
+ "/clusters/{clusterName}/access-entries/{principalArn}";
1053
+ resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "clusterName", () => input.clusterName, "{clusterName}", false);
1054
+ resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "principalArn", () => input.principalArn, "{principalArn}", false);
1055
+ let body;
1056
+ body = JSON.stringify((0, smithy_client_1.take)(input, {
1057
+ clientRequestToken: [true, (_) => _ ?? (0, uuid_1.v4)()],
1058
+ kubernetesGroups: (_) => (0, smithy_client_1._json)(_),
1059
+ username: [],
1060
+ }));
1061
+ return new protocol_http_1.HttpRequest({
1062
+ protocol,
1063
+ hostname,
1064
+ port,
1065
+ method: "POST",
1066
+ headers,
1067
+ path: resolvedPath,
1068
+ body,
1069
+ });
1070
+ };
1071
+ exports.se_UpdateAccessEntryCommand = se_UpdateAccessEntryCommand;
866
1072
  const se_UpdateAddonCommand = async (input, context) => {
867
1073
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
868
1074
  const headers = {
@@ -900,6 +1106,7 @@ const se_UpdateClusterConfigCommand = async (input, context) => {
900
1106
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "name", () => input.name, "{name}", false);
901
1107
  let body;
902
1108
  body = JSON.stringify((0, smithy_client_1.take)(input, {
1109
+ accessConfig: (_) => (0, smithy_client_1._json)(_),
903
1110
  clientRequestToken: [true, (_) => _ ?? (0, uuid_1.v4)()],
904
1111
  logging: (_) => (0, smithy_client_1._json)(_),
905
1112
  resourcesVpcConfig: (_) => (0, smithy_client_1._json)(_),
@@ -1042,6 +1249,51 @@ const se_UpdatePodIdentityAssociationCommand = async (input, context) => {
1042
1249
  });
1043
1250
  };
1044
1251
  exports.se_UpdatePodIdentityAssociationCommand = se_UpdatePodIdentityAssociationCommand;
1252
+ const de_AssociateAccessPolicyCommand = async (output, context) => {
1253
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
1254
+ return de_AssociateAccessPolicyCommandError(output, context);
1255
+ }
1256
+ const contents = (0, smithy_client_1.map)({
1257
+ $metadata: deserializeMetadata(output),
1258
+ });
1259
+ const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
1260
+ const doc = (0, smithy_client_1.take)(data, {
1261
+ associatedAccessPolicy: (_) => de_AssociatedAccessPolicy(_, context),
1262
+ clusterName: smithy_client_1.expectString,
1263
+ principalArn: smithy_client_1.expectString,
1264
+ });
1265
+ Object.assign(contents, doc);
1266
+ return contents;
1267
+ };
1268
+ exports.de_AssociateAccessPolicyCommand = de_AssociateAccessPolicyCommand;
1269
+ const de_AssociateAccessPolicyCommandError = async (output, context) => {
1270
+ const parsedOutput = {
1271
+ ...output,
1272
+ body: await parseErrorBody(output.body, context),
1273
+ };
1274
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1275
+ switch (errorCode) {
1276
+ case "InvalidParameterException":
1277
+ case "com.amazonaws.eks#InvalidParameterException":
1278
+ throw await de_InvalidParameterExceptionRes(parsedOutput, context);
1279
+ case "InvalidRequestException":
1280
+ case "com.amazonaws.eks#InvalidRequestException":
1281
+ throw await de_InvalidRequestExceptionRes(parsedOutput, context);
1282
+ case "ResourceNotFoundException":
1283
+ case "com.amazonaws.eks#ResourceNotFoundException":
1284
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1285
+ case "ServerException":
1286
+ case "com.amazonaws.eks#ServerException":
1287
+ throw await de_ServerExceptionRes(parsedOutput, context);
1288
+ default:
1289
+ const parsedBody = parsedOutput.body;
1290
+ return throwDefaultError({
1291
+ output,
1292
+ parsedBody,
1293
+ errorCode,
1294
+ });
1295
+ }
1296
+ };
1045
1297
  const de_AssociateEncryptionConfigCommand = async (output, context) => {
1046
1298
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1047
1299
  return de_AssociateEncryptionConfigCommandError(output, context);
@@ -1141,6 +1393,55 @@ const de_AssociateIdentityProviderConfigCommandError = async (output, context) =
1141
1393
  });
1142
1394
  }
1143
1395
  };
1396
+ const de_CreateAccessEntryCommand = async (output, context) => {
1397
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
1398
+ return de_CreateAccessEntryCommandError(output, context);
1399
+ }
1400
+ const contents = (0, smithy_client_1.map)({
1401
+ $metadata: deserializeMetadata(output),
1402
+ });
1403
+ const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
1404
+ const doc = (0, smithy_client_1.take)(data, {
1405
+ accessEntry: (_) => de_AccessEntry(_, context),
1406
+ });
1407
+ Object.assign(contents, doc);
1408
+ return contents;
1409
+ };
1410
+ exports.de_CreateAccessEntryCommand = de_CreateAccessEntryCommand;
1411
+ const de_CreateAccessEntryCommandError = async (output, context) => {
1412
+ const parsedOutput = {
1413
+ ...output,
1414
+ body: await parseErrorBody(output.body, context),
1415
+ };
1416
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1417
+ switch (errorCode) {
1418
+ case "InvalidParameterException":
1419
+ case "com.amazonaws.eks#InvalidParameterException":
1420
+ throw await de_InvalidParameterExceptionRes(parsedOutput, context);
1421
+ case "InvalidRequestException":
1422
+ case "com.amazonaws.eks#InvalidRequestException":
1423
+ throw await de_InvalidRequestExceptionRes(parsedOutput, context);
1424
+ case "ResourceInUseException":
1425
+ case "com.amazonaws.eks#ResourceInUseException":
1426
+ throw await de_ResourceInUseExceptionRes(parsedOutput, context);
1427
+ case "ResourceLimitExceededException":
1428
+ case "com.amazonaws.eks#ResourceLimitExceededException":
1429
+ throw await de_ResourceLimitExceededExceptionRes(parsedOutput, context);
1430
+ case "ResourceNotFoundException":
1431
+ case "com.amazonaws.eks#ResourceNotFoundException":
1432
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1433
+ case "ServerException":
1434
+ case "com.amazonaws.eks#ServerException":
1435
+ throw await de_ServerExceptionRes(parsedOutput, context);
1436
+ default:
1437
+ const parsedBody = parsedOutput.body;
1438
+ return throwDefaultError({
1439
+ output,
1440
+ parsedBody,
1441
+ errorCode,
1442
+ });
1443
+ }
1444
+ };
1144
1445
  const de_CreateAddonCommand = async (output, context) => {
1145
1446
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1146
1447
  return de_CreateAddonCommandError(output, context);
@@ -1438,6 +1739,42 @@ const de_CreatePodIdentityAssociationCommandError = async (output, context) => {
1438
1739
  });
1439
1740
  }
1440
1741
  };
1742
+ const de_DeleteAccessEntryCommand = async (output, context) => {
1743
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
1744
+ return de_DeleteAccessEntryCommandError(output, context);
1745
+ }
1746
+ const contents = (0, smithy_client_1.map)({
1747
+ $metadata: deserializeMetadata(output),
1748
+ });
1749
+ await (0, smithy_client_1.collectBody)(output.body, context);
1750
+ return contents;
1751
+ };
1752
+ exports.de_DeleteAccessEntryCommand = de_DeleteAccessEntryCommand;
1753
+ const de_DeleteAccessEntryCommandError = async (output, context) => {
1754
+ const parsedOutput = {
1755
+ ...output,
1756
+ body: await parseErrorBody(output.body, context),
1757
+ };
1758
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1759
+ switch (errorCode) {
1760
+ case "InvalidRequestException":
1761
+ case "com.amazonaws.eks#InvalidRequestException":
1762
+ throw await de_InvalidRequestExceptionRes(parsedOutput, context);
1763
+ case "ResourceNotFoundException":
1764
+ case "com.amazonaws.eks#ResourceNotFoundException":
1765
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1766
+ case "ServerException":
1767
+ case "com.amazonaws.eks#ServerException":
1768
+ throw await de_ServerExceptionRes(parsedOutput, context);
1769
+ default:
1770
+ const parsedBody = parsedOutput.body;
1771
+ return throwDefaultError({
1772
+ output,
1773
+ parsedBody,
1774
+ errorCode,
1775
+ });
1776
+ }
1777
+ };
1441
1778
  const de_DeleteAddonCommand = async (output, context) => {
1442
1779
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1443
1780
  return de_DeleteAddonCommandError(output, context);
@@ -1757,6 +2094,46 @@ const de_DeregisterClusterCommandError = async (output, context) => {
1757
2094
  });
1758
2095
  }
1759
2096
  };
2097
+ const de_DescribeAccessEntryCommand = async (output, context) => {
2098
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
2099
+ return de_DescribeAccessEntryCommandError(output, context);
2100
+ }
2101
+ const contents = (0, smithy_client_1.map)({
2102
+ $metadata: deserializeMetadata(output),
2103
+ });
2104
+ const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
2105
+ const doc = (0, smithy_client_1.take)(data, {
2106
+ accessEntry: (_) => de_AccessEntry(_, context),
2107
+ });
2108
+ Object.assign(contents, doc);
2109
+ return contents;
2110
+ };
2111
+ exports.de_DescribeAccessEntryCommand = de_DescribeAccessEntryCommand;
2112
+ const de_DescribeAccessEntryCommandError = async (output, context) => {
2113
+ const parsedOutput = {
2114
+ ...output,
2115
+ body: await parseErrorBody(output.body, context),
2116
+ };
2117
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2118
+ switch (errorCode) {
2119
+ case "InvalidRequestException":
2120
+ case "com.amazonaws.eks#InvalidRequestException":
2121
+ throw await de_InvalidRequestExceptionRes(parsedOutput, context);
2122
+ case "ResourceNotFoundException":
2123
+ case "com.amazonaws.eks#ResourceNotFoundException":
2124
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
2125
+ case "ServerException":
2126
+ case "com.amazonaws.eks#ServerException":
2127
+ throw await de_ServerExceptionRes(parsedOutput, context);
2128
+ default:
2129
+ const parsedBody = parsedOutput.body;
2130
+ return throwDefaultError({
2131
+ output,
2132
+ parsedBody,
2133
+ errorCode,
2134
+ });
2135
+ }
2136
+ };
1760
2137
  const de_DescribeAddonCommand = async (output, context) => {
1761
2138
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1762
2139
  return de_DescribeAddonCommandError(output, context);
@@ -2193,6 +2570,42 @@ const de_DescribeUpdateCommandError = async (output, context) => {
2193
2570
  });
2194
2571
  }
2195
2572
  };
2573
+ const de_DisassociateAccessPolicyCommand = async (output, context) => {
2574
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
2575
+ return de_DisassociateAccessPolicyCommandError(output, context);
2576
+ }
2577
+ const contents = (0, smithy_client_1.map)({
2578
+ $metadata: deserializeMetadata(output),
2579
+ });
2580
+ await (0, smithy_client_1.collectBody)(output.body, context);
2581
+ return contents;
2582
+ };
2583
+ exports.de_DisassociateAccessPolicyCommand = de_DisassociateAccessPolicyCommand;
2584
+ const de_DisassociateAccessPolicyCommandError = async (output, context) => {
2585
+ const parsedOutput = {
2586
+ ...output,
2587
+ body: await parseErrorBody(output.body, context),
2588
+ };
2589
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2590
+ switch (errorCode) {
2591
+ case "InvalidRequestException":
2592
+ case "com.amazonaws.eks#InvalidRequestException":
2593
+ throw await de_InvalidRequestExceptionRes(parsedOutput, context);
2594
+ case "ResourceNotFoundException":
2595
+ case "com.amazonaws.eks#ResourceNotFoundException":
2596
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
2597
+ case "ServerException":
2598
+ case "com.amazonaws.eks#ServerException":
2599
+ throw await de_ServerExceptionRes(parsedOutput, context);
2600
+ default:
2601
+ const parsedBody = parsedOutput.body;
2602
+ return throwDefaultError({
2603
+ output,
2604
+ parsedBody,
2605
+ errorCode,
2606
+ });
2607
+ }
2608
+ };
2196
2609
  const de_DisassociateIdentityProviderConfigCommand = async (output, context) => {
2197
2610
  if (output.statusCode !== 200 && output.statusCode >= 300) {
2198
2611
  return de_DisassociateIdentityProviderConfigCommandError(output, context);
@@ -2242,6 +2655,85 @@ const de_DisassociateIdentityProviderConfigCommandError = async (output, context
2242
2655
  });
2243
2656
  }
2244
2657
  };
2658
+ const de_ListAccessEntriesCommand = async (output, context) => {
2659
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
2660
+ return de_ListAccessEntriesCommandError(output, context);
2661
+ }
2662
+ const contents = (0, smithy_client_1.map)({
2663
+ $metadata: deserializeMetadata(output),
2664
+ });
2665
+ const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
2666
+ const doc = (0, smithy_client_1.take)(data, {
2667
+ accessEntries: smithy_client_1._json,
2668
+ nextToken: smithy_client_1.expectString,
2669
+ });
2670
+ Object.assign(contents, doc);
2671
+ return contents;
2672
+ };
2673
+ exports.de_ListAccessEntriesCommand = de_ListAccessEntriesCommand;
2674
+ const de_ListAccessEntriesCommandError = async (output, context) => {
2675
+ const parsedOutput = {
2676
+ ...output,
2677
+ body: await parseErrorBody(output.body, context),
2678
+ };
2679
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2680
+ switch (errorCode) {
2681
+ case "InvalidParameterException":
2682
+ case "com.amazonaws.eks#InvalidParameterException":
2683
+ throw await de_InvalidParameterExceptionRes(parsedOutput, context);
2684
+ case "InvalidRequestException":
2685
+ case "com.amazonaws.eks#InvalidRequestException":
2686
+ throw await de_InvalidRequestExceptionRes(parsedOutput, context);
2687
+ case "ResourceNotFoundException":
2688
+ case "com.amazonaws.eks#ResourceNotFoundException":
2689
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
2690
+ case "ServerException":
2691
+ case "com.amazonaws.eks#ServerException":
2692
+ throw await de_ServerExceptionRes(parsedOutput, context);
2693
+ default:
2694
+ const parsedBody = parsedOutput.body;
2695
+ return throwDefaultError({
2696
+ output,
2697
+ parsedBody,
2698
+ errorCode,
2699
+ });
2700
+ }
2701
+ };
2702
+ const de_ListAccessPoliciesCommand = async (output, context) => {
2703
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
2704
+ return de_ListAccessPoliciesCommandError(output, context);
2705
+ }
2706
+ const contents = (0, smithy_client_1.map)({
2707
+ $metadata: deserializeMetadata(output),
2708
+ });
2709
+ const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
2710
+ const doc = (0, smithy_client_1.take)(data, {
2711
+ accessPolicies: smithy_client_1._json,
2712
+ nextToken: smithy_client_1.expectString,
2713
+ });
2714
+ Object.assign(contents, doc);
2715
+ return contents;
2716
+ };
2717
+ exports.de_ListAccessPoliciesCommand = de_ListAccessPoliciesCommand;
2718
+ const de_ListAccessPoliciesCommandError = async (output, context) => {
2719
+ const parsedOutput = {
2720
+ ...output,
2721
+ body: await parseErrorBody(output.body, context),
2722
+ };
2723
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2724
+ switch (errorCode) {
2725
+ case "ServerException":
2726
+ case "com.amazonaws.eks#ServerException":
2727
+ throw await de_ServerExceptionRes(parsedOutput, context);
2728
+ default:
2729
+ const parsedBody = parsedOutput.body;
2730
+ return throwDefaultError({
2731
+ output,
2732
+ parsedBody,
2733
+ errorCode,
2734
+ });
2735
+ }
2736
+ };
2245
2737
  const de_ListAddonsCommand = async (output, context) => {
2246
2738
  if (output.statusCode !== 200 && output.statusCode >= 300) {
2247
2739
  return de_ListAddonsCommandError(output, context);
@@ -2289,6 +2781,49 @@ const de_ListAddonsCommandError = async (output, context) => {
2289
2781
  });
2290
2782
  }
2291
2783
  };
2784
+ const de_ListAssociatedAccessPoliciesCommand = async (output, context) => {
2785
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
2786
+ return de_ListAssociatedAccessPoliciesCommandError(output, context);
2787
+ }
2788
+ const contents = (0, smithy_client_1.map)({
2789
+ $metadata: deserializeMetadata(output),
2790
+ });
2791
+ const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
2792
+ const doc = (0, smithy_client_1.take)(data, {
2793
+ associatedAccessPolicies: (_) => de_AssociatedAccessPoliciesList(_, context),
2794
+ clusterName: smithy_client_1.expectString,
2795
+ nextToken: smithy_client_1.expectString,
2796
+ principalArn: smithy_client_1.expectString,
2797
+ });
2798
+ Object.assign(contents, doc);
2799
+ return contents;
2800
+ };
2801
+ exports.de_ListAssociatedAccessPoliciesCommand = de_ListAssociatedAccessPoliciesCommand;
2802
+ const de_ListAssociatedAccessPoliciesCommandError = async (output, context) => {
2803
+ const parsedOutput = {
2804
+ ...output,
2805
+ body: await parseErrorBody(output.body, context),
2806
+ };
2807
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2808
+ switch (errorCode) {
2809
+ case "InvalidRequestException":
2810
+ case "com.amazonaws.eks#InvalidRequestException":
2811
+ throw await de_InvalidRequestExceptionRes(parsedOutput, context);
2812
+ case "ResourceNotFoundException":
2813
+ case "com.amazonaws.eks#ResourceNotFoundException":
2814
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
2815
+ case "ServerException":
2816
+ case "com.amazonaws.eks#ServerException":
2817
+ throw await de_ServerExceptionRes(parsedOutput, context);
2818
+ default:
2819
+ const parsedBody = parsedOutput.body;
2820
+ return throwDefaultError({
2821
+ output,
2822
+ parsedBody,
2823
+ errorCode,
2824
+ });
2825
+ }
2826
+ };
2292
2827
  const de_ListClustersCommand = async (output, context) => {
2293
2828
  if (output.statusCode !== 200 && output.statusCode >= 300) {
2294
2829
  return de_ListClustersCommandError(output, context);
@@ -2761,6 +3296,49 @@ const de_UntagResourceCommandError = async (output, context) => {
2761
3296
  });
2762
3297
  }
2763
3298
  };
3299
+ const de_UpdateAccessEntryCommand = async (output, context) => {
3300
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
3301
+ return de_UpdateAccessEntryCommandError(output, context);
3302
+ }
3303
+ const contents = (0, smithy_client_1.map)({
3304
+ $metadata: deserializeMetadata(output),
3305
+ });
3306
+ const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
3307
+ const doc = (0, smithy_client_1.take)(data, {
3308
+ accessEntry: (_) => de_AccessEntry(_, context),
3309
+ });
3310
+ Object.assign(contents, doc);
3311
+ return contents;
3312
+ };
3313
+ exports.de_UpdateAccessEntryCommand = de_UpdateAccessEntryCommand;
3314
+ const de_UpdateAccessEntryCommandError = async (output, context) => {
3315
+ const parsedOutput = {
3316
+ ...output,
3317
+ body: await parseErrorBody(output.body, context),
3318
+ };
3319
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
3320
+ switch (errorCode) {
3321
+ case "InvalidParameterException":
3322
+ case "com.amazonaws.eks#InvalidParameterException":
3323
+ throw await de_InvalidParameterExceptionRes(parsedOutput, context);
3324
+ case "InvalidRequestException":
3325
+ case "com.amazonaws.eks#InvalidRequestException":
3326
+ throw await de_InvalidRequestExceptionRes(parsedOutput, context);
3327
+ case "ResourceNotFoundException":
3328
+ case "com.amazonaws.eks#ResourceNotFoundException":
3329
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
3330
+ case "ServerException":
3331
+ case "com.amazonaws.eks#ServerException":
3332
+ throw await de_ServerExceptionRes(parsedOutput, context);
3333
+ default:
3334
+ const parsedBody = parsedOutput.body;
3335
+ return throwDefaultError({
3336
+ output,
3337
+ parsedBody,
3338
+ errorCode,
3339
+ });
3340
+ }
3341
+ };
2764
3342
  const de_UpdateAddonCommand = async (output, context) => {
2765
3343
  if (output.statusCode !== 200 && output.statusCode >= 300) {
2766
3344
  return de_UpdateAddonCommandError(output, context);
@@ -3296,6 +3874,19 @@ const de_UnsupportedAvailabilityZoneExceptionRes = async (parsedOutput, context)
3296
3874
  });
3297
3875
  return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
3298
3876
  };
3877
+ const de_AccessEntry = (output, context) => {
3878
+ return (0, smithy_client_1.take)(output, {
3879
+ accessEntryArn: smithy_client_1.expectString,
3880
+ clusterName: smithy_client_1.expectString,
3881
+ createdAt: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
3882
+ kubernetesGroups: smithy_client_1._json,
3883
+ modifiedAt: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
3884
+ principalArn: smithy_client_1.expectString,
3885
+ tags: smithy_client_1._json,
3886
+ type: smithy_client_1.expectString,
3887
+ username: smithy_client_1.expectString,
3888
+ });
3889
+ };
3299
3890
  const de_Addon = (output, context) => {
3300
3891
  return (0, smithy_client_1.take)(output, {
3301
3892
  addonArn: smithy_client_1.expectString,
@@ -3314,8 +3905,25 @@ const de_Addon = (output, context) => {
3314
3905
  tags: smithy_client_1._json,
3315
3906
  });
3316
3907
  };
3908
+ const de_AssociatedAccessPoliciesList = (output, context) => {
3909
+ const retVal = (output || [])
3910
+ .filter((e) => e != null)
3911
+ .map((entry) => {
3912
+ return de_AssociatedAccessPolicy(entry, context);
3913
+ });
3914
+ return retVal;
3915
+ };
3916
+ const de_AssociatedAccessPolicy = (output, context) => {
3917
+ return (0, smithy_client_1.take)(output, {
3918
+ accessScope: smithy_client_1._json,
3919
+ associatedAt: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
3920
+ modifiedAt: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
3921
+ policyArn: smithy_client_1.expectString,
3922
+ });
3923
+ };
3317
3924
  const de_Cluster = (output, context) => {
3318
3925
  return (0, smithy_client_1.take)(output, {
3926
+ accessConfig: smithy_client_1._json,
3319
3927
  arn: smithy_client_1.expectString,
3320
3928
  certificateAuthority: smithy_client_1._json,
3321
3929
  clientRequestToken: smithy_client_1.expectString,