@aws-sdk/client-eks 3.474.0 → 3.477.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 +828 -554
  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 +803 -548
  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 +5 -4
@@ -1,20 +1,22 @@
1
+ import { requestBuilder as rb } from "@smithy/core";
1
2
  import { HttpRequest as __HttpRequest } from "@smithy/protocol-http";
2
3
  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
4
  import { v4 as generateIdempotencyToken } from "uuid";
4
5
  import { EKSServiceException as __BaseException } from "../models/EKSServiceException";
5
6
  import { AccessDeniedException, BadRequestException, ClientException, InvalidParameterException, InvalidRequestException, NotFoundException, ResourceInUseException, ResourceLimitExceededException, ResourceNotFoundException, ResourcePropagationDelayException, ServerException, ServiceUnavailableException, UnsupportedAvailabilityZoneException, } from "../models/models_0";
6
- export const se_AssociateEncryptionConfigCommand = async (input, context) => {
7
+ export const se_AssociateAccessPolicyCommand = async (input, context) => {
7
8
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
8
9
  const headers = {
9
10
  "content-type": "application/json",
10
11
  };
11
12
  let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
12
- "/clusters/{clusterName}/encryption-config/associate";
13
+ "/clusters/{clusterName}/access-entries/{principalArn}/access-policies";
13
14
  resolvedPath = __resolvedPath(resolvedPath, input, "clusterName", () => input.clusterName, "{clusterName}", false);
15
+ resolvedPath = __resolvedPath(resolvedPath, input, "principalArn", () => input.principalArn, "{principalArn}", false);
14
16
  let body;
15
17
  body = JSON.stringify(take(input, {
16
- clientRequestToken: [true, (_) => _ ?? generateIdempotencyToken()],
17
- encryptionConfig: (_) => _json(_),
18
+ accessScope: (_) => _json(_),
19
+ policyArn: [],
18
20
  }));
19
21
  return new __HttpRequest({
20
22
  protocol,
@@ -26,19 +28,52 @@ export const se_AssociateEncryptionConfigCommand = async (input, context) => {
26
28
  body,
27
29
  });
28
30
  };
31
+ export const se_AssociateEncryptionConfigCommand = async (input, context) => {
32
+ const b = rb(input, context);
33
+ const headers = {
34
+ "content-type": "application/json",
35
+ };
36
+ b.bp("/clusters/{clusterName}/encryption-config/associate");
37
+ b.p("clusterName", () => input.clusterName, "{clusterName}", false);
38
+ let body;
39
+ body = JSON.stringify(take(input, {
40
+ clientRequestToken: [true, (_) => _ ?? generateIdempotencyToken()],
41
+ encryptionConfig: (_) => _json(_),
42
+ }));
43
+ b.m("POST").h(headers).b(body);
44
+ return b.build();
45
+ };
29
46
  export const se_AssociateIdentityProviderConfigCommand = async (input, context) => {
47
+ const b = rb(input, context);
48
+ const headers = {
49
+ "content-type": "application/json",
50
+ };
51
+ b.bp("/clusters/{clusterName}/identity-provider-configs/associate");
52
+ b.p("clusterName", () => input.clusterName, "{clusterName}", false);
53
+ let body;
54
+ body = JSON.stringify(take(input, {
55
+ clientRequestToken: [true, (_) => _ ?? generateIdempotencyToken()],
56
+ oidc: (_) => _json(_),
57
+ tags: (_) => _json(_),
58
+ }));
59
+ b.m("POST").h(headers).b(body);
60
+ return b.build();
61
+ };
62
+ export const se_CreateAccessEntryCommand = async (input, context) => {
30
63
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
31
64
  const headers = {
32
65
  "content-type": "application/json",
33
66
  };
34
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
35
- "/clusters/{clusterName}/identity-provider-configs/associate";
67
+ let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/clusters/{clusterName}/access-entries";
36
68
  resolvedPath = __resolvedPath(resolvedPath, input, "clusterName", () => input.clusterName, "{clusterName}", false);
37
69
  let body;
38
70
  body = JSON.stringify(take(input, {
39
71
  clientRequestToken: [true, (_) => _ ?? generateIdempotencyToken()],
40
- oidc: (_) => _json(_),
72
+ kubernetesGroups: (_) => _json(_),
73
+ principalArn: [],
41
74
  tags: (_) => _json(_),
75
+ type: [],
76
+ username: [],
42
77
  }));
43
78
  return new __HttpRequest({
44
79
  protocol,
@@ -51,12 +86,12 @@ export const se_AssociateIdentityProviderConfigCommand = async (input, context)
51
86
  });
52
87
  };
53
88
  export const se_CreateAddonCommand = async (input, context) => {
54
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
89
+ const b = rb(input, context);
55
90
  const headers = {
56
91
  "content-type": "application/json",
57
92
  };
58
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/clusters/{clusterName}/addons";
59
- resolvedPath = __resolvedPath(resolvedPath, input, "clusterName", () => input.clusterName, "{clusterName}", false);
93
+ b.bp("/clusters/{clusterName}/addons");
94
+ b.p("clusterName", () => input.clusterName, "{clusterName}", false);
60
95
  let body;
61
96
  body = JSON.stringify(take(input, {
62
97
  addonName: [],
@@ -67,24 +102,18 @@ export const se_CreateAddonCommand = async (input, context) => {
67
102
  serviceAccountRoleArn: [],
68
103
  tags: (_) => _json(_),
69
104
  }));
70
- return new __HttpRequest({
71
- protocol,
72
- hostname,
73
- port,
74
- method: "POST",
75
- headers,
76
- path: resolvedPath,
77
- body,
78
- });
105
+ b.m("POST").h(headers).b(body);
106
+ return b.build();
79
107
  };
80
108
  export const se_CreateClusterCommand = async (input, context) => {
81
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
109
+ const b = rb(input, context);
82
110
  const headers = {
83
111
  "content-type": "application/json",
84
112
  };
85
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/clusters";
113
+ b.bp("/clusters");
86
114
  let body;
87
115
  body = JSON.stringify(take(input, {
116
+ accessConfig: (_) => _json(_),
88
117
  clientRequestToken: [true, (_) => _ ?? generateIdempotencyToken()],
89
118
  encryptionConfig: (_) => _json(_),
90
119
  kubernetesNetworkConfig: (_) => _json(_),
@@ -96,22 +125,15 @@ export const se_CreateClusterCommand = async (input, context) => {
96
125
  tags: (_) => _json(_),
97
126
  version: [],
98
127
  }));
99
- return new __HttpRequest({
100
- protocol,
101
- hostname,
102
- port,
103
- method: "POST",
104
- headers,
105
- path: resolvedPath,
106
- body,
107
- });
128
+ b.m("POST").h(headers).b(body);
129
+ return b.build();
108
130
  };
109
131
  export const se_CreateEksAnywhereSubscriptionCommand = async (input, context) => {
110
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
132
+ const b = rb(input, context);
111
133
  const headers = {
112
134
  "content-type": "application/json",
113
135
  };
114
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/eks-anywhere-subscriptions";
136
+ b.bp("/eks-anywhere-subscriptions");
115
137
  let body;
116
138
  body = JSON.stringify(take(input, {
117
139
  autoRenew: [],
@@ -122,23 +144,16 @@ export const se_CreateEksAnywhereSubscriptionCommand = async (input, context) =>
122
144
  tags: (_) => _json(_),
123
145
  term: (_) => _json(_),
124
146
  }));
125
- return new __HttpRequest({
126
- protocol,
127
- hostname,
128
- port,
129
- method: "POST",
130
- headers,
131
- path: resolvedPath,
132
- body,
133
- });
147
+ b.m("POST").h(headers).b(body);
148
+ return b.build();
134
149
  };
135
150
  export const se_CreateFargateProfileCommand = async (input, context) => {
136
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
151
+ const b = rb(input, context);
137
152
  const headers = {
138
153
  "content-type": "application/json",
139
154
  };
140
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/clusters/{clusterName}/fargate-profiles";
141
- resolvedPath = __resolvedPath(resolvedPath, input, "clusterName", () => input.clusterName, "{clusterName}", false);
155
+ b.bp("/clusters/{clusterName}/fargate-profiles");
156
+ b.p("clusterName", () => input.clusterName, "{clusterName}", false);
142
157
  let body;
143
158
  body = JSON.stringify(take(input, {
144
159
  clientRequestToken: [true, (_) => _ ?? generateIdempotencyToken()],
@@ -148,23 +163,16 @@ export const se_CreateFargateProfileCommand = async (input, context) => {
148
163
  subnets: (_) => _json(_),
149
164
  tags: (_) => _json(_),
150
165
  }));
151
- return new __HttpRequest({
152
- protocol,
153
- hostname,
154
- port,
155
- method: "POST",
156
- headers,
157
- path: resolvedPath,
158
- body,
159
- });
166
+ b.m("POST").h(headers).b(body);
167
+ return b.build();
160
168
  };
161
169
  export const se_CreateNodegroupCommand = async (input, context) => {
162
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
170
+ const b = rb(input, context);
163
171
  const headers = {
164
172
  "content-type": "application/json",
165
173
  };
166
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/clusters/{clusterName}/node-groups";
167
- resolvedPath = __resolvedPath(resolvedPath, input, "clusterName", () => input.clusterName, "{clusterName}", false);
174
+ b.bp("/clusters/{clusterName}/node-groups");
175
+ b.p("clusterName", () => input.clusterName, "{clusterName}", false);
168
176
  let body;
169
177
  body = JSON.stringify(take(input, {
170
178
  amiType: [],
@@ -185,24 +193,16 @@ export const se_CreateNodegroupCommand = async (input, context) => {
185
193
  updateConfig: (_) => _json(_),
186
194
  version: [],
187
195
  }));
188
- return new __HttpRequest({
189
- protocol,
190
- hostname,
191
- port,
192
- method: "POST",
193
- headers,
194
- path: resolvedPath,
195
- body,
196
- });
196
+ b.m("POST").h(headers).b(body);
197
+ return b.build();
197
198
  };
198
199
  export const se_CreatePodIdentityAssociationCommand = async (input, context) => {
199
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
200
+ const b = rb(input, context);
200
201
  const headers = {
201
202
  "content-type": "application/json",
202
203
  };
203
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
204
- "/clusters/{clusterName}/pod-identity-associations";
205
- resolvedPath = __resolvedPath(resolvedPath, input, "clusterName", () => input.clusterName, "{clusterName}", false);
204
+ b.bp("/clusters/{clusterName}/pod-identity-associations");
205
+ b.p("clusterName", () => input.clusterName, "{clusterName}", false);
206
206
  let body;
207
207
  body = JSON.stringify(take(input, {
208
208
  clientRequestToken: [true, (_) => _ ?? generateIdempotencyToken()],
@@ -211,26 +211,16 @@ export const se_CreatePodIdentityAssociationCommand = async (input, context) =>
211
211
  serviceAccount: [],
212
212
  tags: (_) => _json(_),
213
213
  }));
214
- return new __HttpRequest({
215
- protocol,
216
- hostname,
217
- port,
218
- method: "POST",
219
- headers,
220
- path: resolvedPath,
221
- body,
222
- });
214
+ b.m("POST").h(headers).b(body);
215
+ return b.build();
223
216
  };
224
- export const se_DeleteAddonCommand = async (input, context) => {
217
+ export const se_DeleteAccessEntryCommand = async (input, context) => {
225
218
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
226
219
  const headers = {};
227
220
  let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
228
- "/clusters/{clusterName}/addons/{addonName}";
221
+ "/clusters/{clusterName}/access-entries/{principalArn}";
229
222
  resolvedPath = __resolvedPath(resolvedPath, input, "clusterName", () => input.clusterName, "{clusterName}", false);
230
- resolvedPath = __resolvedPath(resolvedPath, input, "addonName", () => input.addonName, "{addonName}", false);
231
- const query = map({
232
- preserve: [() => input.preserve !== void 0, () => input.preserve.toString()],
233
- });
223
+ resolvedPath = __resolvedPath(resolvedPath, input, "principalArn", () => input.principalArn, "{principalArn}", false);
234
224
  let body;
235
225
  return new __HttpRequest({
236
226
  protocol,
@@ -239,119 +229,86 @@ export const se_DeleteAddonCommand = async (input, context) => {
239
229
  method: "DELETE",
240
230
  headers,
241
231
  path: resolvedPath,
242
- query,
243
232
  body,
244
233
  });
245
234
  };
235
+ export const se_DeleteAddonCommand = async (input, context) => {
236
+ const b = rb(input, context);
237
+ const headers = {};
238
+ b.bp("/clusters/{clusterName}/addons/{addonName}");
239
+ b.p("clusterName", () => input.clusterName, "{clusterName}", false);
240
+ b.p("addonName", () => input.addonName, "{addonName}", false);
241
+ const query = map({
242
+ [_p]: [() => input.preserve !== void 0, () => input[_p].toString()],
243
+ });
244
+ let body;
245
+ b.m("DELETE").h(headers).q(query).b(body);
246
+ return b.build();
247
+ };
246
248
  export const se_DeleteClusterCommand = async (input, context) => {
247
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
249
+ const b = rb(input, context);
248
250
  const headers = {};
249
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/clusters/{name}";
250
- resolvedPath = __resolvedPath(resolvedPath, input, "name", () => input.name, "{name}", false);
251
+ b.bp("/clusters/{name}");
252
+ b.p("name", () => input.name, "{name}", false);
251
253
  let body;
252
- return new __HttpRequest({
253
- protocol,
254
- hostname,
255
- port,
256
- method: "DELETE",
257
- headers,
258
- path: resolvedPath,
259
- body,
260
- });
254
+ b.m("DELETE").h(headers).b(body);
255
+ return b.build();
261
256
  };
262
257
  export const se_DeleteEksAnywhereSubscriptionCommand = async (input, context) => {
263
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
258
+ const b = rb(input, context);
264
259
  const headers = {};
265
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/eks-anywhere-subscriptions/{id}";
266
- resolvedPath = __resolvedPath(resolvedPath, input, "id", () => input.id, "{id}", false);
260
+ b.bp("/eks-anywhere-subscriptions/{id}");
261
+ b.p("id", () => input.id, "{id}", false);
267
262
  let body;
268
- return new __HttpRequest({
269
- protocol,
270
- hostname,
271
- port,
272
- method: "DELETE",
273
- headers,
274
- path: resolvedPath,
275
- body,
276
- });
263
+ b.m("DELETE").h(headers).b(body);
264
+ return b.build();
277
265
  };
278
266
  export const se_DeleteFargateProfileCommand = async (input, context) => {
279
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
267
+ const b = rb(input, context);
280
268
  const headers = {};
281
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
282
- "/clusters/{clusterName}/fargate-profiles/{fargateProfileName}";
283
- resolvedPath = __resolvedPath(resolvedPath, input, "clusterName", () => input.clusterName, "{clusterName}", false);
284
- resolvedPath = __resolvedPath(resolvedPath, input, "fargateProfileName", () => input.fargateProfileName, "{fargateProfileName}", false);
269
+ b.bp("/clusters/{clusterName}/fargate-profiles/{fargateProfileName}");
270
+ b.p("clusterName", () => input.clusterName, "{clusterName}", false);
271
+ b.p("fargateProfileName", () => input.fargateProfileName, "{fargateProfileName}", false);
285
272
  let body;
286
- return new __HttpRequest({
287
- protocol,
288
- hostname,
289
- port,
290
- method: "DELETE",
291
- headers,
292
- path: resolvedPath,
293
- body,
294
- });
273
+ b.m("DELETE").h(headers).b(body);
274
+ return b.build();
295
275
  };
296
276
  export const se_DeleteNodegroupCommand = async (input, context) => {
297
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
277
+ const b = rb(input, context);
298
278
  const headers = {};
299
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
300
- "/clusters/{clusterName}/node-groups/{nodegroupName}";
301
- resolvedPath = __resolvedPath(resolvedPath, input, "clusterName", () => input.clusterName, "{clusterName}", false);
302
- resolvedPath = __resolvedPath(resolvedPath, input, "nodegroupName", () => input.nodegroupName, "{nodegroupName}", false);
279
+ b.bp("/clusters/{clusterName}/node-groups/{nodegroupName}");
280
+ b.p("clusterName", () => input.clusterName, "{clusterName}", false);
281
+ b.p("nodegroupName", () => input.nodegroupName, "{nodegroupName}", false);
303
282
  let body;
304
- return new __HttpRequest({
305
- protocol,
306
- hostname,
307
- port,
308
- method: "DELETE",
309
- headers,
310
- path: resolvedPath,
311
- body,
312
- });
283
+ b.m("DELETE").h(headers).b(body);
284
+ return b.build();
313
285
  };
314
286
  export const se_DeletePodIdentityAssociationCommand = async (input, context) => {
315
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
287
+ const b = rb(input, context);
316
288
  const headers = {};
317
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
318
- "/clusters/{clusterName}/pod-identity-associations/{associationId}";
319
- resolvedPath = __resolvedPath(resolvedPath, input, "clusterName", () => input.clusterName, "{clusterName}", false);
320
- resolvedPath = __resolvedPath(resolvedPath, input, "associationId", () => input.associationId, "{associationId}", false);
289
+ b.bp("/clusters/{clusterName}/pod-identity-associations/{associationId}");
290
+ b.p("clusterName", () => input.clusterName, "{clusterName}", false);
291
+ b.p("associationId", () => input.associationId, "{associationId}", false);
321
292
  let body;
322
- return new __HttpRequest({
323
- protocol,
324
- hostname,
325
- port,
326
- method: "DELETE",
327
- headers,
328
- path: resolvedPath,
329
- body,
330
- });
293
+ b.m("DELETE").h(headers).b(body);
294
+ return b.build();
331
295
  };
332
296
  export const se_DeregisterClusterCommand = async (input, context) => {
333
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
297
+ const b = rb(input, context);
334
298
  const headers = {};
335
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/cluster-registrations/{name}";
336
- resolvedPath = __resolvedPath(resolvedPath, input, "name", () => input.name, "{name}", false);
299
+ b.bp("/cluster-registrations/{name}");
300
+ b.p("name", () => input.name, "{name}", false);
337
301
  let body;
338
- return new __HttpRequest({
339
- protocol,
340
- hostname,
341
- port,
342
- method: "DELETE",
343
- headers,
344
- path: resolvedPath,
345
- body,
346
- });
302
+ b.m("DELETE").h(headers).b(body);
303
+ return b.build();
347
304
  };
348
- export const se_DescribeAddonCommand = async (input, context) => {
305
+ export const se_DescribeAccessEntryCommand = async (input, context) => {
349
306
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
350
307
  const headers = {};
351
308
  let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
352
- "/clusters/{clusterName}/addons/{addonName}";
309
+ "/clusters/{clusterName}/access-entries/{principalArn}";
353
310
  resolvedPath = __resolvedPath(resolvedPath, input, "clusterName", () => input.clusterName, "{clusterName}", false);
354
- resolvedPath = __resolvedPath(resolvedPath, input, "addonName", () => input.addonName, "{addonName}", false);
311
+ resolvedPath = __resolvedPath(resolvedPath, input, "principalArn", () => input.principalArn, "{principalArn}", false);
355
312
  let body;
356
313
  return new __HttpRequest({
357
314
  protocol,
@@ -363,210 +320,162 @@ export const se_DescribeAddonCommand = async (input, context) => {
363
320
  body,
364
321
  });
365
322
  };
323
+ export const se_DescribeAddonCommand = async (input, context) => {
324
+ const b = rb(input, context);
325
+ const headers = {};
326
+ b.bp("/clusters/{clusterName}/addons/{addonName}");
327
+ b.p("clusterName", () => input.clusterName, "{clusterName}", false);
328
+ b.p("addonName", () => input.addonName, "{addonName}", false);
329
+ let body;
330
+ b.m("GET").h(headers).b(body);
331
+ return b.build();
332
+ };
366
333
  export const se_DescribeAddonConfigurationCommand = async (input, context) => {
367
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
334
+ const b = rb(input, context);
368
335
  const headers = {};
369
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/addons/configuration-schemas";
336
+ b.bp("/addons/configuration-schemas");
370
337
  const query = map({
371
- addonName: [, __expectNonNull(input.addonName, `addonName`)],
372
- addonVersion: [, __expectNonNull(input.addonVersion, `addonVersion`)],
338
+ [_aN]: [, __expectNonNull(input[_aN], `addonName`)],
339
+ [_aV]: [, __expectNonNull(input[_aV], `addonVersion`)],
373
340
  });
374
341
  let body;
375
- return new __HttpRequest({
376
- protocol,
377
- hostname,
378
- port,
379
- method: "GET",
380
- headers,
381
- path: resolvedPath,
382
- query,
383
- body,
384
- });
342
+ b.m("GET").h(headers).q(query).b(body);
343
+ return b.build();
385
344
  };
386
345
  export const se_DescribeAddonVersionsCommand = async (input, context) => {
387
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
346
+ const b = rb(input, context);
388
347
  const headers = {};
389
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/addons/supported-versions";
348
+ b.bp("/addons/supported-versions");
390
349
  const query = map({
391
- kubernetesVersion: [, input.kubernetesVersion],
392
- maxResults: [() => input.maxResults !== void 0, () => input.maxResults.toString()],
393
- nextToken: [, input.nextToken],
394
- addonName: [, input.addonName],
395
- types: [() => input.types !== void 0, () => (input.types || []).map((_entry) => _entry)],
396
- publishers: [() => input.publishers !== void 0, () => (input.publishers || []).map((_entry) => _entry)],
397
- owners: [() => input.owners !== void 0, () => (input.owners || []).map((_entry) => _entry)],
350
+ [_kV]: [, input[_kV]],
351
+ [_mR]: [() => input.maxResults !== void 0, () => input[_mR].toString()],
352
+ [_nT]: [, input[_nT]],
353
+ [_aN]: [, input[_aN]],
354
+ [_t]: [() => input.types !== void 0, () => (input[_t] || []).map((_entry) => _entry)],
355
+ [_pu]: [() => input.publishers !== void 0, () => (input[_pu] || []).map((_entry) => _entry)],
356
+ [_o]: [() => input.owners !== void 0, () => (input[_o] || []).map((_entry) => _entry)],
398
357
  });
399
358
  let body;
400
- return new __HttpRequest({
401
- protocol,
402
- hostname,
403
- port,
404
- method: "GET",
405
- headers,
406
- path: resolvedPath,
407
- query,
408
- body,
409
- });
359
+ b.m("GET").h(headers).q(query).b(body);
360
+ return b.build();
410
361
  };
411
362
  export const se_DescribeClusterCommand = async (input, context) => {
412
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
363
+ const b = rb(input, context);
413
364
  const headers = {};
414
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/clusters/{name}";
415
- resolvedPath = __resolvedPath(resolvedPath, input, "name", () => input.name, "{name}", false);
365
+ b.bp("/clusters/{name}");
366
+ b.p("name", () => input.name, "{name}", false);
416
367
  let body;
417
- return new __HttpRequest({
418
- protocol,
419
- hostname,
420
- port,
421
- method: "GET",
422
- headers,
423
- path: resolvedPath,
424
- body,
425
- });
368
+ b.m("GET").h(headers).b(body);
369
+ return b.build();
426
370
  };
427
371
  export const se_DescribeEksAnywhereSubscriptionCommand = async (input, context) => {
428
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
372
+ const b = rb(input, context);
429
373
  const headers = {};
430
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/eks-anywhere-subscriptions/{id}";
431
- resolvedPath = __resolvedPath(resolvedPath, input, "id", () => input.id, "{id}", false);
374
+ b.bp("/eks-anywhere-subscriptions/{id}");
375
+ b.p("id", () => input.id, "{id}", false);
432
376
  let body;
433
- return new __HttpRequest({
434
- protocol,
435
- hostname,
436
- port,
437
- method: "GET",
438
- headers,
439
- path: resolvedPath,
440
- body,
441
- });
377
+ b.m("GET").h(headers).b(body);
378
+ return b.build();
442
379
  };
443
380
  export const se_DescribeFargateProfileCommand = async (input, context) => {
444
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
381
+ const b = rb(input, context);
445
382
  const headers = {};
446
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
447
- "/clusters/{clusterName}/fargate-profiles/{fargateProfileName}";
448
- resolvedPath = __resolvedPath(resolvedPath, input, "clusterName", () => input.clusterName, "{clusterName}", false);
449
- resolvedPath = __resolvedPath(resolvedPath, input, "fargateProfileName", () => input.fargateProfileName, "{fargateProfileName}", false);
383
+ b.bp("/clusters/{clusterName}/fargate-profiles/{fargateProfileName}");
384
+ b.p("clusterName", () => input.clusterName, "{clusterName}", false);
385
+ b.p("fargateProfileName", () => input.fargateProfileName, "{fargateProfileName}", false);
450
386
  let body;
451
- return new __HttpRequest({
452
- protocol,
453
- hostname,
454
- port,
455
- method: "GET",
456
- headers,
457
- path: resolvedPath,
458
- body,
459
- });
387
+ b.m("GET").h(headers).b(body);
388
+ return b.build();
460
389
  };
461
390
  export const se_DescribeIdentityProviderConfigCommand = async (input, context) => {
462
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
391
+ const b = rb(input, context);
463
392
  const headers = {
464
393
  "content-type": "application/json",
465
394
  };
466
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
467
- "/clusters/{clusterName}/identity-provider-configs/describe";
468
- resolvedPath = __resolvedPath(resolvedPath, input, "clusterName", () => input.clusterName, "{clusterName}", false);
395
+ b.bp("/clusters/{clusterName}/identity-provider-configs/describe");
396
+ b.p("clusterName", () => input.clusterName, "{clusterName}", false);
469
397
  let body;
470
398
  body = JSON.stringify(take(input, {
471
399
  identityProviderConfig: (_) => _json(_),
472
400
  }));
473
- return new __HttpRequest({
474
- protocol,
475
- hostname,
476
- port,
477
- method: "POST",
478
- headers,
479
- path: resolvedPath,
480
- body,
481
- });
401
+ b.m("POST").h(headers).b(body);
402
+ return b.build();
482
403
  };
483
404
  export const se_DescribeNodegroupCommand = async (input, context) => {
484
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
405
+ const b = rb(input, context);
485
406
  const headers = {};
486
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
487
- "/clusters/{clusterName}/node-groups/{nodegroupName}";
488
- resolvedPath = __resolvedPath(resolvedPath, input, "clusterName", () => input.clusterName, "{clusterName}", false);
489
- resolvedPath = __resolvedPath(resolvedPath, input, "nodegroupName", () => input.nodegroupName, "{nodegroupName}", false);
407
+ b.bp("/clusters/{clusterName}/node-groups/{nodegroupName}");
408
+ b.p("clusterName", () => input.clusterName, "{clusterName}", false);
409
+ b.p("nodegroupName", () => input.nodegroupName, "{nodegroupName}", false);
490
410
  let body;
491
- return new __HttpRequest({
492
- protocol,
493
- hostname,
494
- port,
495
- method: "GET",
496
- headers,
497
- path: resolvedPath,
498
- body,
499
- });
411
+ b.m("GET").h(headers).b(body);
412
+ return b.build();
500
413
  };
501
414
  export const se_DescribePodIdentityAssociationCommand = async (input, context) => {
502
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
415
+ const b = rb(input, context);
503
416
  const headers = {};
504
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
505
- "/clusters/{clusterName}/pod-identity-associations/{associationId}";
506
- resolvedPath = __resolvedPath(resolvedPath, input, "clusterName", () => input.clusterName, "{clusterName}", false);
507
- resolvedPath = __resolvedPath(resolvedPath, input, "associationId", () => input.associationId, "{associationId}", false);
417
+ b.bp("/clusters/{clusterName}/pod-identity-associations/{associationId}");
418
+ b.p("clusterName", () => input.clusterName, "{clusterName}", false);
419
+ b.p("associationId", () => input.associationId, "{associationId}", false);
508
420
  let body;
509
- return new __HttpRequest({
510
- protocol,
511
- hostname,
512
- port,
513
- method: "GET",
514
- headers,
515
- path: resolvedPath,
516
- body,
517
- });
421
+ b.m("GET").h(headers).b(body);
422
+ return b.build();
518
423
  };
519
424
  export const se_DescribeUpdateCommand = async (input, context) => {
520
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
425
+ const b = rb(input, context);
521
426
  const headers = {};
522
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/clusters/{name}/updates/{updateId}";
523
- resolvedPath = __resolvedPath(resolvedPath, input, "name", () => input.name, "{name}", false);
524
- resolvedPath = __resolvedPath(resolvedPath, input, "updateId", () => input.updateId, "{updateId}", false);
427
+ b.bp("/clusters/{name}/updates/{updateId}");
428
+ b.p("name", () => input.name, "{name}", false);
429
+ b.p("updateId", () => input.updateId, "{updateId}", false);
525
430
  const query = map({
526
- nodegroupName: [, input.nodegroupName],
527
- addonName: [, input.addonName],
431
+ [_nN]: [, input[_nN]],
432
+ [_aN]: [, input[_aN]],
528
433
  });
529
434
  let body;
435
+ b.m("GET").h(headers).q(query).b(body);
436
+ return b.build();
437
+ };
438
+ export const se_DisassociateAccessPolicyCommand = async (input, context) => {
439
+ const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
440
+ const headers = {};
441
+ let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
442
+ "/clusters/{clusterName}/access-entries/{principalArn}/access-policies/{policyArn}";
443
+ resolvedPath = __resolvedPath(resolvedPath, input, "clusterName", () => input.clusterName, "{clusterName}", false);
444
+ resolvedPath = __resolvedPath(resolvedPath, input, "principalArn", () => input.principalArn, "{principalArn}", false);
445
+ resolvedPath = __resolvedPath(resolvedPath, input, "policyArn", () => input.policyArn, "{policyArn}", false);
446
+ let body;
530
447
  return new __HttpRequest({
531
448
  protocol,
532
449
  hostname,
533
450
  port,
534
- method: "GET",
451
+ method: "DELETE",
535
452
  headers,
536
453
  path: resolvedPath,
537
- query,
538
454
  body,
539
455
  });
540
456
  };
541
457
  export const se_DisassociateIdentityProviderConfigCommand = async (input, context) => {
542
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
458
+ const b = rb(input, context);
543
459
  const headers = {
544
460
  "content-type": "application/json",
545
461
  };
546
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
547
- "/clusters/{clusterName}/identity-provider-configs/disassociate";
548
- resolvedPath = __resolvedPath(resolvedPath, input, "clusterName", () => input.clusterName, "{clusterName}", false);
462
+ b.bp("/clusters/{clusterName}/identity-provider-configs/disassociate");
463
+ b.p("clusterName", () => input.clusterName, "{clusterName}", false);
549
464
  let body;
550
465
  body = JSON.stringify(take(input, {
551
466
  clientRequestToken: [true, (_) => _ ?? generateIdempotencyToken()],
552
467
  identityProviderConfig: (_) => _json(_),
553
468
  }));
554
- return new __HttpRequest({
555
- protocol,
556
- hostname,
557
- port,
558
- method: "POST",
559
- headers,
560
- path: resolvedPath,
561
- body,
562
- });
469
+ b.m("POST").h(headers).b(body);
470
+ return b.build();
563
471
  };
564
- export const se_ListAddonsCommand = async (input, context) => {
472
+ export const se_ListAccessEntriesCommand = async (input, context) => {
565
473
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
566
474
  const headers = {};
567
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/clusters/{clusterName}/addons";
475
+ let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/clusters/{clusterName}/access-entries";
568
476
  resolvedPath = __resolvedPath(resolvedPath, input, "clusterName", () => input.clusterName, "{clusterName}", false);
569
477
  const query = map({
478
+ associatedPolicyArn: [, input.associatedPolicyArn],
570
479
  maxResults: [() => input.maxResults !== void 0, () => input.maxResults.toString()],
571
480
  nextToken: [, input.nextToken],
572
481
  });
@@ -582,14 +491,13 @@ export const se_ListAddonsCommand = async (input, context) => {
582
491
  body,
583
492
  });
584
493
  };
585
- export const se_ListClustersCommand = async (input, context) => {
494
+ export const se_ListAccessPoliciesCommand = async (input, context) => {
586
495
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
587
496
  const headers = {};
588
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/clusters";
497
+ const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/access-policies";
589
498
  const query = map({
590
499
  maxResults: [() => input.maxResults !== void 0, () => input.maxResults.toString()],
591
500
  nextToken: [, input.nextToken],
592
- include: [() => input.include !== void 0, () => (input.include || []).map((_entry) => _entry)],
593
501
  });
594
502
  let body;
595
503
  return new __HttpRequest({
@@ -603,35 +511,26 @@ export const se_ListClustersCommand = async (input, context) => {
603
511
  body,
604
512
  });
605
513
  };
606
- export const se_ListEksAnywhereSubscriptionsCommand = async (input, context) => {
607
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
514
+ export const se_ListAddonsCommand = async (input, context) => {
515
+ const b = rb(input, context);
608
516
  const headers = {};
609
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/eks-anywhere-subscriptions";
517
+ b.bp("/clusters/{clusterName}/addons");
518
+ b.p("clusterName", () => input.clusterName, "{clusterName}", false);
610
519
  const query = map({
611
- maxResults: [() => input.maxResults !== void 0, () => input.maxResults.toString()],
612
- nextToken: [, input.nextToken],
613
- includeStatus: [
614
- () => input.includeStatus !== void 0,
615
- () => (input.includeStatus || []).map((_entry) => _entry),
616
- ],
520
+ [_mR]: [() => input.maxResults !== void 0, () => input[_mR].toString()],
521
+ [_nT]: [, input[_nT]],
617
522
  });
618
523
  let body;
619
- return new __HttpRequest({
620
- protocol,
621
- hostname,
622
- port,
623
- method: "GET",
624
- headers,
625
- path: resolvedPath,
626
- query,
627
- body,
628
- });
524
+ b.m("GET").h(headers).q(query).b(body);
525
+ return b.build();
629
526
  };
630
- export const se_ListFargateProfilesCommand = async (input, context) => {
527
+ export const se_ListAssociatedAccessPoliciesCommand = async (input, context) => {
631
528
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
632
529
  const headers = {};
633
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/clusters/{clusterName}/fargate-profiles";
530
+ let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
531
+ "/clusters/{clusterName}/access-entries/{principalArn}/access-policies";
634
532
  resolvedPath = __resolvedPath(resolvedPath, input, "clusterName", () => input.clusterName, "{clusterName}", false);
533
+ resolvedPath = __resolvedPath(resolvedPath, input, "principalArn", () => input.principalArn, "{principalArn}", false);
635
534
  const query = map({
636
535
  maxResults: [() => input.maxResults !== void 0, () => input.maxResults.toString()],
637
536
  nextToken: [, input.nextToken],
@@ -648,118 +547,116 @@ export const se_ListFargateProfilesCommand = async (input, context) => {
648
547
  body,
649
548
  });
650
549
  };
651
- export const se_ListIdentityProviderConfigsCommand = async (input, context) => {
652
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
550
+ export const se_ListClustersCommand = async (input, context) => {
551
+ const b = rb(input, context);
653
552
  const headers = {};
654
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
655
- "/clusters/{clusterName}/identity-provider-configs";
656
- resolvedPath = __resolvedPath(resolvedPath, input, "clusterName", () => input.clusterName, "{clusterName}", false);
553
+ b.bp("/clusters");
657
554
  const query = map({
658
- maxResults: [() => input.maxResults !== void 0, () => input.maxResults.toString()],
659
- nextToken: [, input.nextToken],
555
+ [_mR]: [() => input.maxResults !== void 0, () => input[_mR].toString()],
556
+ [_nT]: [, input[_nT]],
557
+ [_i]: [() => input.include !== void 0, () => (input[_i] || []).map((_entry) => _entry)],
660
558
  });
661
559
  let body;
662
- return new __HttpRequest({
663
- protocol,
664
- hostname,
665
- port,
666
- method: "GET",
667
- headers,
668
- path: resolvedPath,
669
- query,
670
- body,
560
+ b.m("GET").h(headers).q(query).b(body);
561
+ return b.build();
562
+ };
563
+ export const se_ListEksAnywhereSubscriptionsCommand = async (input, context) => {
564
+ const b = rb(input, context);
565
+ const headers = {};
566
+ b.bp("/eks-anywhere-subscriptions");
567
+ const query = map({
568
+ [_mR]: [() => input.maxResults !== void 0, () => input[_mR].toString()],
569
+ [_nT]: [, input[_nT]],
570
+ [_iS]: [() => input.includeStatus !== void 0, () => (input[_iS] || []).map((_entry) => _entry)],
671
571
  });
572
+ let body;
573
+ b.m("GET").h(headers).q(query).b(body);
574
+ return b.build();
672
575
  };
673
- export const se_ListNodegroupsCommand = async (input, context) => {
674
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
576
+ export const se_ListFargateProfilesCommand = async (input, context) => {
577
+ const b = rb(input, context);
675
578
  const headers = {};
676
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/clusters/{clusterName}/node-groups";
677
- resolvedPath = __resolvedPath(resolvedPath, input, "clusterName", () => input.clusterName, "{clusterName}", false);
579
+ b.bp("/clusters/{clusterName}/fargate-profiles");
580
+ b.p("clusterName", () => input.clusterName, "{clusterName}", false);
678
581
  const query = map({
679
- maxResults: [() => input.maxResults !== void 0, () => input.maxResults.toString()],
680
- nextToken: [, input.nextToken],
582
+ [_mR]: [() => input.maxResults !== void 0, () => input[_mR].toString()],
583
+ [_nT]: [, input[_nT]],
681
584
  });
682
585
  let body;
683
- return new __HttpRequest({
684
- protocol,
685
- hostname,
686
- port,
687
- method: "GET",
688
- headers,
689
- path: resolvedPath,
690
- query,
691
- body,
586
+ b.m("GET").h(headers).q(query).b(body);
587
+ return b.build();
588
+ };
589
+ export const se_ListIdentityProviderConfigsCommand = async (input, context) => {
590
+ const b = rb(input, context);
591
+ const headers = {};
592
+ b.bp("/clusters/{clusterName}/identity-provider-configs");
593
+ b.p("clusterName", () => input.clusterName, "{clusterName}", false);
594
+ const query = map({
595
+ [_mR]: [() => input.maxResults !== void 0, () => input[_mR].toString()],
596
+ [_nT]: [, input[_nT]],
692
597
  });
598
+ let body;
599
+ b.m("GET").h(headers).q(query).b(body);
600
+ return b.build();
693
601
  };
694
- export const se_ListPodIdentityAssociationsCommand = async (input, context) => {
695
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
602
+ export const se_ListNodegroupsCommand = async (input, context) => {
603
+ const b = rb(input, context);
696
604
  const headers = {};
697
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
698
- "/clusters/{clusterName}/pod-identity-associations";
699
- resolvedPath = __resolvedPath(resolvedPath, input, "clusterName", () => input.clusterName, "{clusterName}", false);
605
+ b.bp("/clusters/{clusterName}/node-groups");
606
+ b.p("clusterName", () => input.clusterName, "{clusterName}", false);
700
607
  const query = map({
701
- namespace: [, input.namespace],
702
- serviceAccount: [, input.serviceAccount],
703
- maxResults: [() => input.maxResults !== void 0, () => input.maxResults.toString()],
704
- nextToken: [, input.nextToken],
608
+ [_mR]: [() => input.maxResults !== void 0, () => input[_mR].toString()],
609
+ [_nT]: [, input[_nT]],
705
610
  });
706
611
  let body;
707
- return new __HttpRequest({
708
- protocol,
709
- hostname,
710
- port,
711
- method: "GET",
712
- headers,
713
- path: resolvedPath,
714
- query,
715
- body,
612
+ b.m("GET").h(headers).q(query).b(body);
613
+ return b.build();
614
+ };
615
+ export const se_ListPodIdentityAssociationsCommand = async (input, context) => {
616
+ const b = rb(input, context);
617
+ const headers = {};
618
+ b.bp("/clusters/{clusterName}/pod-identity-associations");
619
+ b.p("clusterName", () => input.clusterName, "{clusterName}", false);
620
+ const query = map({
621
+ [_n]: [, input[_n]],
622
+ [_sA]: [, input[_sA]],
623
+ [_mR]: [() => input.maxResults !== void 0, () => input[_mR].toString()],
624
+ [_nT]: [, input[_nT]],
716
625
  });
626
+ let body;
627
+ b.m("GET").h(headers).q(query).b(body);
628
+ return b.build();
717
629
  };
718
630
  export const se_ListTagsForResourceCommand = async (input, context) => {
719
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
631
+ const b = rb(input, context);
720
632
  const headers = {};
721
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/tags/{resourceArn}";
722
- resolvedPath = __resolvedPath(resolvedPath, input, "resourceArn", () => input.resourceArn, "{resourceArn}", false);
633
+ b.bp("/tags/{resourceArn}");
634
+ b.p("resourceArn", () => input.resourceArn, "{resourceArn}", false);
723
635
  let body;
724
- return new __HttpRequest({
725
- protocol,
726
- hostname,
727
- port,
728
- method: "GET",
729
- headers,
730
- path: resolvedPath,
731
- body,
732
- });
636
+ b.m("GET").h(headers).b(body);
637
+ return b.build();
733
638
  };
734
639
  export const se_ListUpdatesCommand = async (input, context) => {
735
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
640
+ const b = rb(input, context);
736
641
  const headers = {};
737
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/clusters/{name}/updates";
738
- resolvedPath = __resolvedPath(resolvedPath, input, "name", () => input.name, "{name}", false);
739
- const query = map({
740
- nodegroupName: [, input.nodegroupName],
741
- addonName: [, input.addonName],
742
- nextToken: [, input.nextToken],
743
- maxResults: [() => input.maxResults !== void 0, () => input.maxResults.toString()],
642
+ b.bp("/clusters/{name}/updates");
643
+ b.p("name", () => input.name, "{name}", false);
644
+ const query = map({
645
+ [_nN]: [, input[_nN]],
646
+ [_aN]: [, input[_aN]],
647
+ [_nT]: [, input[_nT]],
648
+ [_mR]: [() => input.maxResults !== void 0, () => input[_mR].toString()],
744
649
  });
745
650
  let body;
746
- return new __HttpRequest({
747
- protocol,
748
- hostname,
749
- port,
750
- method: "GET",
751
- headers,
752
- path: resolvedPath,
753
- query,
754
- body,
755
- });
651
+ b.m("GET").h(headers).q(query).b(body);
652
+ return b.build();
756
653
  };
757
654
  export const se_RegisterClusterCommand = async (input, context) => {
758
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
655
+ const b = rb(input, context);
759
656
  const headers = {
760
657
  "content-type": "application/json",
761
658
  };
762
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/cluster-registrations";
659
+ b.bp("/cluster-registrations");
763
660
  let body;
764
661
  body = JSON.stringify(take(input, {
765
662
  clientRequestToken: [true, (_) => _ ?? generateIdempotencyToken()],
@@ -767,69 +664,71 @@ export const se_RegisterClusterCommand = async (input, context) => {
767
664
  name: [],
768
665
  tags: (_) => _json(_),
769
666
  }));
770
- return new __HttpRequest({
771
- protocol,
772
- hostname,
773
- port,
774
- method: "POST",
775
- headers,
776
- path: resolvedPath,
777
- body,
778
- });
667
+ b.m("POST").h(headers).b(body);
668
+ return b.build();
779
669
  };
780
670
  export const se_TagResourceCommand = async (input, context) => {
781
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
671
+ const b = rb(input, context);
782
672
  const headers = {
783
673
  "content-type": "application/json",
784
674
  };
785
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/tags/{resourceArn}";
786
- resolvedPath = __resolvedPath(resolvedPath, input, "resourceArn", () => input.resourceArn, "{resourceArn}", false);
675
+ b.bp("/tags/{resourceArn}");
676
+ b.p("resourceArn", () => input.resourceArn, "{resourceArn}", false);
787
677
  let body;
788
678
  body = JSON.stringify(take(input, {
789
679
  tags: (_) => _json(_),
790
680
  }));
791
- return new __HttpRequest({
792
- protocol,
793
- hostname,
794
- port,
795
- method: "POST",
796
- headers,
797
- path: resolvedPath,
798
- body,
799
- });
681
+ b.m("POST").h(headers).b(body);
682
+ return b.build();
800
683
  };
801
684
  export const se_UntagResourceCommand = async (input, context) => {
802
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
685
+ const b = rb(input, context);
803
686
  const headers = {};
804
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/tags/{resourceArn}";
805
- resolvedPath = __resolvedPath(resolvedPath, input, "resourceArn", () => input.resourceArn, "{resourceArn}", false);
687
+ b.bp("/tags/{resourceArn}");
688
+ b.p("resourceArn", () => input.resourceArn, "{resourceArn}", false);
806
689
  const query = map({
807
- tagKeys: [
690
+ [_tK]: [
808
691
  __expectNonNull(input.tagKeys, `tagKeys`) != null,
809
- () => (input.tagKeys || []).map((_entry) => _entry),
692
+ () => (input[_tK] || []).map((_entry) => _entry),
810
693
  ],
811
694
  });
812
695
  let body;
696
+ b.m("DELETE").h(headers).q(query).b(body);
697
+ return b.build();
698
+ };
699
+ export const se_UpdateAccessEntryCommand = async (input, context) => {
700
+ const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
701
+ const headers = {
702
+ "content-type": "application/json",
703
+ };
704
+ let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
705
+ "/clusters/{clusterName}/access-entries/{principalArn}";
706
+ resolvedPath = __resolvedPath(resolvedPath, input, "clusterName", () => input.clusterName, "{clusterName}", false);
707
+ resolvedPath = __resolvedPath(resolvedPath, input, "principalArn", () => input.principalArn, "{principalArn}", false);
708
+ let body;
709
+ body = JSON.stringify(take(input, {
710
+ clientRequestToken: [true, (_) => _ ?? generateIdempotencyToken()],
711
+ kubernetesGroups: (_) => _json(_),
712
+ username: [],
713
+ }));
813
714
  return new __HttpRequest({
814
715
  protocol,
815
716
  hostname,
816
717
  port,
817
- method: "DELETE",
718
+ method: "POST",
818
719
  headers,
819
720
  path: resolvedPath,
820
- query,
821
721
  body,
822
722
  });
823
723
  };
824
724
  export const se_UpdateAddonCommand = async (input, context) => {
825
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
725
+ const b = rb(input, context);
826
726
  const headers = {
827
727
  "content-type": "application/json",
828
728
  };
829
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
830
- "/clusters/{clusterName}/addons/{addonName}/update";
831
- resolvedPath = __resolvedPath(resolvedPath, input, "clusterName", () => input.clusterName, "{clusterName}", false);
832
- resolvedPath = __resolvedPath(resolvedPath, input, "addonName", () => input.addonName, "{addonName}", false);
729
+ b.bp("/clusters/{clusterName}/addons/{addonName}/update");
730
+ b.p("clusterName", () => input.clusterName, "{clusterName}", false);
731
+ b.p("addonName", () => input.addonName, "{addonName}", false);
833
732
  let body;
834
733
  body = JSON.stringify(take(input, {
835
734
  addonVersion: [],
@@ -838,92 +737,64 @@ export const se_UpdateAddonCommand = async (input, context) => {
838
737
  resolveConflicts: [],
839
738
  serviceAccountRoleArn: [],
840
739
  }));
841
- return new __HttpRequest({
842
- protocol,
843
- hostname,
844
- port,
845
- method: "POST",
846
- headers,
847
- path: resolvedPath,
848
- body,
849
- });
740
+ b.m("POST").h(headers).b(body);
741
+ return b.build();
850
742
  };
851
743
  export const se_UpdateClusterConfigCommand = async (input, context) => {
852
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
744
+ const b = rb(input, context);
853
745
  const headers = {
854
746
  "content-type": "application/json",
855
747
  };
856
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/clusters/{name}/update-config";
857
- resolvedPath = __resolvedPath(resolvedPath, input, "name", () => input.name, "{name}", false);
748
+ b.bp("/clusters/{name}/update-config");
749
+ b.p("name", () => input.name, "{name}", false);
858
750
  let body;
859
751
  body = JSON.stringify(take(input, {
752
+ accessConfig: (_) => _json(_),
860
753
  clientRequestToken: [true, (_) => _ ?? generateIdempotencyToken()],
861
754
  logging: (_) => _json(_),
862
755
  resourcesVpcConfig: (_) => _json(_),
863
756
  }));
864
- return new __HttpRequest({
865
- protocol,
866
- hostname,
867
- port,
868
- method: "POST",
869
- headers,
870
- path: resolvedPath,
871
- body,
872
- });
757
+ b.m("POST").h(headers).b(body);
758
+ return b.build();
873
759
  };
874
760
  export const se_UpdateClusterVersionCommand = async (input, context) => {
875
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
761
+ const b = rb(input, context);
876
762
  const headers = {
877
763
  "content-type": "application/json",
878
764
  };
879
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/clusters/{name}/updates";
880
- resolvedPath = __resolvedPath(resolvedPath, input, "name", () => input.name, "{name}", false);
765
+ b.bp("/clusters/{name}/updates");
766
+ b.p("name", () => input.name, "{name}", false);
881
767
  let body;
882
768
  body = JSON.stringify(take(input, {
883
769
  clientRequestToken: [true, (_) => _ ?? generateIdempotencyToken()],
884
770
  version: [],
885
771
  }));
886
- return new __HttpRequest({
887
- protocol,
888
- hostname,
889
- port,
890
- method: "POST",
891
- headers,
892
- path: resolvedPath,
893
- body,
894
- });
772
+ b.m("POST").h(headers).b(body);
773
+ return b.build();
895
774
  };
896
775
  export const se_UpdateEksAnywhereSubscriptionCommand = async (input, context) => {
897
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
776
+ const b = rb(input, context);
898
777
  const headers = {
899
778
  "content-type": "application/json",
900
779
  };
901
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/eks-anywhere-subscriptions/{id}";
902
- resolvedPath = __resolvedPath(resolvedPath, input, "id", () => input.id, "{id}", false);
780
+ b.bp("/eks-anywhere-subscriptions/{id}");
781
+ b.p("id", () => input.id, "{id}", false);
903
782
  let body;
904
783
  body = JSON.stringify(take(input, {
905
784
  autoRenew: [],
906
785
  clientRequestToken: [true, (_) => _ ?? generateIdempotencyToken()],
907
786
  }));
908
- return new __HttpRequest({
909
- protocol,
910
- hostname,
911
- port,
912
- method: "POST",
913
- headers,
914
- path: resolvedPath,
915
- body,
916
- });
787
+ b.m("POST").h(headers).b(body);
788
+ return b.build();
917
789
  };
918
790
  export const se_UpdateNodegroupConfigCommand = async (input, context) => {
919
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
791
+ const b = rb(input, context);
920
792
  const headers = {
921
793
  "content-type": "application/json",
922
794
  };
923
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
924
- "/clusters/{clusterName}/node-groups/{nodegroupName}/update-config";
925
- resolvedPath = __resolvedPath(resolvedPath, input, "clusterName", () => input.clusterName, "{clusterName}", false);
926
- resolvedPath = __resolvedPath(resolvedPath, input, "nodegroupName", () => input.nodegroupName, "{nodegroupName}", false);
795
+ b.bp("/clusters/{clusterName}/node-groups/{nodegroupName}/update-config");
796
+ b.p("clusterName", () => input.clusterName, "{clusterName}", false);
797
+ b.p("nodegroupName", () => input.nodegroupName, "{nodegroupName}", false);
927
798
  let body;
928
799
  body = JSON.stringify(take(input, {
929
800
  clientRequestToken: [true, (_) => _ ?? generateIdempotencyToken()],
@@ -932,25 +803,17 @@ export const se_UpdateNodegroupConfigCommand = async (input, context) => {
932
803
  taints: (_) => _json(_),
933
804
  updateConfig: (_) => _json(_),
934
805
  }));
935
- return new __HttpRequest({
936
- protocol,
937
- hostname,
938
- port,
939
- method: "POST",
940
- headers,
941
- path: resolvedPath,
942
- body,
943
- });
806
+ b.m("POST").h(headers).b(body);
807
+ return b.build();
944
808
  };
945
809
  export const se_UpdateNodegroupVersionCommand = async (input, context) => {
946
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
810
+ const b = rb(input, context);
947
811
  const headers = {
948
812
  "content-type": "application/json",
949
813
  };
950
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
951
- "/clusters/{clusterName}/node-groups/{nodegroupName}/update-version";
952
- resolvedPath = __resolvedPath(resolvedPath, input, "clusterName", () => input.clusterName, "{clusterName}", false);
953
- resolvedPath = __resolvedPath(resolvedPath, input, "nodegroupName", () => input.nodegroupName, "{nodegroupName}", false);
814
+ b.bp("/clusters/{clusterName}/node-groups/{nodegroupName}/update-version");
815
+ b.p("clusterName", () => input.clusterName, "{clusterName}", false);
816
+ b.p("nodegroupName", () => input.nodegroupName, "{nodegroupName}", false);
954
817
  let body;
955
818
  body = JSON.stringify(take(input, {
956
819
  clientRequestToken: [true, (_) => _ ?? generateIdempotencyToken()],
@@ -959,39 +822,68 @@ export const se_UpdateNodegroupVersionCommand = async (input, context) => {
959
822
  releaseVersion: [],
960
823
  version: [],
961
824
  }));
962
- return new __HttpRequest({
963
- protocol,
964
- hostname,
965
- port,
966
- method: "POST",
967
- headers,
968
- path: resolvedPath,
969
- body,
970
- });
825
+ b.m("POST").h(headers).b(body);
826
+ return b.build();
971
827
  };
972
828
  export const se_UpdatePodIdentityAssociationCommand = async (input, context) => {
973
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
829
+ const b = rb(input, context);
974
830
  const headers = {
975
831
  "content-type": "application/json",
976
832
  };
977
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
978
- "/clusters/{clusterName}/pod-identity-associations/{associationId}";
979
- resolvedPath = __resolvedPath(resolvedPath, input, "clusterName", () => input.clusterName, "{clusterName}", false);
980
- resolvedPath = __resolvedPath(resolvedPath, input, "associationId", () => input.associationId, "{associationId}", false);
833
+ b.bp("/clusters/{clusterName}/pod-identity-associations/{associationId}");
834
+ b.p("clusterName", () => input.clusterName, "{clusterName}", false);
835
+ b.p("associationId", () => input.associationId, "{associationId}", false);
981
836
  let body;
982
837
  body = JSON.stringify(take(input, {
983
838
  clientRequestToken: [true, (_) => _ ?? generateIdempotencyToken()],
984
839
  roleArn: [],
985
840
  }));
986
- return new __HttpRequest({
987
- protocol,
988
- hostname,
989
- port,
990
- method: "POST",
991
- headers,
992
- path: resolvedPath,
993
- body,
841
+ b.m("POST").h(headers).b(body);
842
+ return b.build();
843
+ };
844
+ export const de_AssociateAccessPolicyCommand = async (output, context) => {
845
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
846
+ return de_AssociateAccessPolicyCommandError(output, context);
847
+ }
848
+ const contents = map({
849
+ $metadata: deserializeMetadata(output),
994
850
  });
851
+ const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
852
+ const doc = take(data, {
853
+ associatedAccessPolicy: (_) => de_AssociatedAccessPolicy(_, context),
854
+ clusterName: __expectString,
855
+ principalArn: __expectString,
856
+ });
857
+ Object.assign(contents, doc);
858
+ return contents;
859
+ };
860
+ const de_AssociateAccessPolicyCommandError = async (output, context) => {
861
+ const parsedOutput = {
862
+ ...output,
863
+ body: await parseErrorBody(output.body, context),
864
+ };
865
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
866
+ switch (errorCode) {
867
+ case "InvalidParameterException":
868
+ case "com.amazonaws.eks#InvalidParameterException":
869
+ throw await de_InvalidParameterExceptionRes(parsedOutput, context);
870
+ case "InvalidRequestException":
871
+ case "com.amazonaws.eks#InvalidRequestException":
872
+ throw await de_InvalidRequestExceptionRes(parsedOutput, context);
873
+ case "ResourceNotFoundException":
874
+ case "com.amazonaws.eks#ResourceNotFoundException":
875
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
876
+ case "ServerException":
877
+ case "com.amazonaws.eks#ServerException":
878
+ throw await de_ServerExceptionRes(parsedOutput, context);
879
+ default:
880
+ const parsedBody = parsedOutput.body;
881
+ return throwDefaultError({
882
+ output,
883
+ parsedBody,
884
+ errorCode,
885
+ });
886
+ }
995
887
  };
996
888
  export const de_AssociateEncryptionConfigCommand = async (output, context) => {
997
889
  if (output.statusCode !== 200 && output.statusCode >= 300) {
@@ -1090,6 +982,54 @@ const de_AssociateIdentityProviderConfigCommandError = async (output, context) =
1090
982
  });
1091
983
  }
1092
984
  };
985
+ export const de_CreateAccessEntryCommand = async (output, context) => {
986
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
987
+ return de_CreateAccessEntryCommandError(output, context);
988
+ }
989
+ const contents = map({
990
+ $metadata: deserializeMetadata(output),
991
+ });
992
+ const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
993
+ const doc = take(data, {
994
+ accessEntry: (_) => de_AccessEntry(_, context),
995
+ });
996
+ Object.assign(contents, doc);
997
+ return contents;
998
+ };
999
+ const de_CreateAccessEntryCommandError = async (output, context) => {
1000
+ const parsedOutput = {
1001
+ ...output,
1002
+ body: await parseErrorBody(output.body, context),
1003
+ };
1004
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1005
+ switch (errorCode) {
1006
+ case "InvalidParameterException":
1007
+ case "com.amazonaws.eks#InvalidParameterException":
1008
+ throw await de_InvalidParameterExceptionRes(parsedOutput, context);
1009
+ case "InvalidRequestException":
1010
+ case "com.amazonaws.eks#InvalidRequestException":
1011
+ throw await de_InvalidRequestExceptionRes(parsedOutput, context);
1012
+ case "ResourceInUseException":
1013
+ case "com.amazonaws.eks#ResourceInUseException":
1014
+ throw await de_ResourceInUseExceptionRes(parsedOutput, context);
1015
+ case "ResourceLimitExceededException":
1016
+ case "com.amazonaws.eks#ResourceLimitExceededException":
1017
+ throw await de_ResourceLimitExceededExceptionRes(parsedOutput, context);
1018
+ case "ResourceNotFoundException":
1019
+ case "com.amazonaws.eks#ResourceNotFoundException":
1020
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1021
+ case "ServerException":
1022
+ case "com.amazonaws.eks#ServerException":
1023
+ throw await de_ServerExceptionRes(parsedOutput, context);
1024
+ default:
1025
+ const parsedBody = parsedOutput.body;
1026
+ return throwDefaultError({
1027
+ output,
1028
+ parsedBody,
1029
+ errorCode,
1030
+ });
1031
+ }
1032
+ };
1093
1033
  export const de_CreateAddonCommand = async (output, context) => {
1094
1034
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1095
1035
  return de_CreateAddonCommandError(output, context);
@@ -1303,9 +1243,57 @@ const de_CreateNodegroupCommandError = async (output, context) => {
1303
1243
  };
1304
1244
  const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1305
1245
  switch (errorCode) {
1306
- case "ClientException":
1307
- case "com.amazonaws.eks#ClientException":
1308
- throw await de_ClientExceptionRes(parsedOutput, context);
1246
+ case "ClientException":
1247
+ case "com.amazonaws.eks#ClientException":
1248
+ throw await de_ClientExceptionRes(parsedOutput, context);
1249
+ case "InvalidParameterException":
1250
+ case "com.amazonaws.eks#InvalidParameterException":
1251
+ throw await de_InvalidParameterExceptionRes(parsedOutput, context);
1252
+ case "InvalidRequestException":
1253
+ case "com.amazonaws.eks#InvalidRequestException":
1254
+ throw await de_InvalidRequestExceptionRes(parsedOutput, context);
1255
+ case "ResourceInUseException":
1256
+ case "com.amazonaws.eks#ResourceInUseException":
1257
+ throw await de_ResourceInUseExceptionRes(parsedOutput, context);
1258
+ case "ResourceLimitExceededException":
1259
+ case "com.amazonaws.eks#ResourceLimitExceededException":
1260
+ throw await de_ResourceLimitExceededExceptionRes(parsedOutput, context);
1261
+ case "ServerException":
1262
+ case "com.amazonaws.eks#ServerException":
1263
+ throw await de_ServerExceptionRes(parsedOutput, context);
1264
+ case "ServiceUnavailableException":
1265
+ case "com.amazonaws.eks#ServiceUnavailableException":
1266
+ throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
1267
+ default:
1268
+ const parsedBody = parsedOutput.body;
1269
+ return throwDefaultError({
1270
+ output,
1271
+ parsedBody,
1272
+ errorCode,
1273
+ });
1274
+ }
1275
+ };
1276
+ export const de_CreatePodIdentityAssociationCommand = async (output, context) => {
1277
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
1278
+ return de_CreatePodIdentityAssociationCommandError(output, context);
1279
+ }
1280
+ const contents = map({
1281
+ $metadata: deserializeMetadata(output),
1282
+ });
1283
+ const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
1284
+ const doc = take(data, {
1285
+ association: (_) => de_PodIdentityAssociation(_, context),
1286
+ });
1287
+ Object.assign(contents, doc);
1288
+ return contents;
1289
+ };
1290
+ const de_CreatePodIdentityAssociationCommandError = async (output, context) => {
1291
+ const parsedOutput = {
1292
+ ...output,
1293
+ body: await parseErrorBody(output.body, context),
1294
+ };
1295
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1296
+ switch (errorCode) {
1309
1297
  case "InvalidParameterException":
1310
1298
  case "com.amazonaws.eks#InvalidParameterException":
1311
1299
  throw await de_InvalidParameterExceptionRes(parsedOutput, context);
@@ -1318,12 +1306,12 @@ const de_CreateNodegroupCommandError = async (output, context) => {
1318
1306
  case "ResourceLimitExceededException":
1319
1307
  case "com.amazonaws.eks#ResourceLimitExceededException":
1320
1308
  throw await de_ResourceLimitExceededExceptionRes(parsedOutput, context);
1309
+ case "ResourceNotFoundException":
1310
+ case "com.amazonaws.eks#ResourceNotFoundException":
1311
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1321
1312
  case "ServerException":
1322
1313
  case "com.amazonaws.eks#ServerException":
1323
1314
  throw await de_ServerExceptionRes(parsedOutput, context);
1324
- case "ServiceUnavailableException":
1325
- case "com.amazonaws.eks#ServiceUnavailableException":
1326
- throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
1327
1315
  default:
1328
1316
  const parsedBody = parsedOutput.body;
1329
1317
  return throwDefaultError({
@@ -1333,39 +1321,26 @@ const de_CreateNodegroupCommandError = async (output, context) => {
1333
1321
  });
1334
1322
  }
1335
1323
  };
1336
- export const de_CreatePodIdentityAssociationCommand = async (output, context) => {
1324
+ export const de_DeleteAccessEntryCommand = async (output, context) => {
1337
1325
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1338
- return de_CreatePodIdentityAssociationCommandError(output, context);
1326
+ return de_DeleteAccessEntryCommandError(output, context);
1339
1327
  }
1340
1328
  const contents = map({
1341
1329
  $metadata: deserializeMetadata(output),
1342
1330
  });
1343
- const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
1344
- const doc = take(data, {
1345
- association: (_) => de_PodIdentityAssociation(_, context),
1346
- });
1347
- Object.assign(contents, doc);
1331
+ await collectBody(output.body, context);
1348
1332
  return contents;
1349
1333
  };
1350
- const de_CreatePodIdentityAssociationCommandError = async (output, context) => {
1334
+ const de_DeleteAccessEntryCommandError = async (output, context) => {
1351
1335
  const parsedOutput = {
1352
1336
  ...output,
1353
1337
  body: await parseErrorBody(output.body, context),
1354
1338
  };
1355
1339
  const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1356
1340
  switch (errorCode) {
1357
- case "InvalidParameterException":
1358
- case "com.amazonaws.eks#InvalidParameterException":
1359
- throw await de_InvalidParameterExceptionRes(parsedOutput, context);
1360
1341
  case "InvalidRequestException":
1361
1342
  case "com.amazonaws.eks#InvalidRequestException":
1362
1343
  throw await de_InvalidRequestExceptionRes(parsedOutput, context);
1363
- case "ResourceInUseException":
1364
- case "com.amazonaws.eks#ResourceInUseException":
1365
- throw await de_ResourceInUseExceptionRes(parsedOutput, context);
1366
- case "ResourceLimitExceededException":
1367
- case "com.amazonaws.eks#ResourceLimitExceededException":
1368
- throw await de_ResourceLimitExceededExceptionRes(parsedOutput, context);
1369
1344
  case "ResourceNotFoundException":
1370
1345
  case "com.amazonaws.eks#ResourceNotFoundException":
1371
1346
  throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
@@ -1693,6 +1668,45 @@ const de_DeregisterClusterCommandError = async (output, context) => {
1693
1668
  });
1694
1669
  }
1695
1670
  };
1671
+ export const de_DescribeAccessEntryCommand = async (output, context) => {
1672
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
1673
+ return de_DescribeAccessEntryCommandError(output, context);
1674
+ }
1675
+ const contents = map({
1676
+ $metadata: deserializeMetadata(output),
1677
+ });
1678
+ const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
1679
+ const doc = take(data, {
1680
+ accessEntry: (_) => de_AccessEntry(_, context),
1681
+ });
1682
+ Object.assign(contents, doc);
1683
+ return contents;
1684
+ };
1685
+ const de_DescribeAccessEntryCommandError = async (output, context) => {
1686
+ const parsedOutput = {
1687
+ ...output,
1688
+ body: await parseErrorBody(output.body, context),
1689
+ };
1690
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1691
+ switch (errorCode) {
1692
+ case "InvalidRequestException":
1693
+ case "com.amazonaws.eks#InvalidRequestException":
1694
+ throw await de_InvalidRequestExceptionRes(parsedOutput, context);
1695
+ case "ResourceNotFoundException":
1696
+ case "com.amazonaws.eks#ResourceNotFoundException":
1697
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1698
+ case "ServerException":
1699
+ case "com.amazonaws.eks#ServerException":
1700
+ throw await de_ServerExceptionRes(parsedOutput, context);
1701
+ default:
1702
+ const parsedBody = parsedOutput.body;
1703
+ return throwDefaultError({
1704
+ output,
1705
+ parsedBody,
1706
+ errorCode,
1707
+ });
1708
+ }
1709
+ };
1696
1710
  export const de_DescribeAddonCommand = async (output, context) => {
1697
1711
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1698
1712
  return de_DescribeAddonCommandError(output, context);
@@ -2119,6 +2133,41 @@ const de_DescribeUpdateCommandError = async (output, context) => {
2119
2133
  });
2120
2134
  }
2121
2135
  };
2136
+ export const de_DisassociateAccessPolicyCommand = async (output, context) => {
2137
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
2138
+ return de_DisassociateAccessPolicyCommandError(output, context);
2139
+ }
2140
+ const contents = map({
2141
+ $metadata: deserializeMetadata(output),
2142
+ });
2143
+ await collectBody(output.body, context);
2144
+ return contents;
2145
+ };
2146
+ const de_DisassociateAccessPolicyCommandError = async (output, context) => {
2147
+ const parsedOutput = {
2148
+ ...output,
2149
+ body: await parseErrorBody(output.body, context),
2150
+ };
2151
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2152
+ switch (errorCode) {
2153
+ case "InvalidRequestException":
2154
+ case "com.amazonaws.eks#InvalidRequestException":
2155
+ throw await de_InvalidRequestExceptionRes(parsedOutput, context);
2156
+ case "ResourceNotFoundException":
2157
+ case "com.amazonaws.eks#ResourceNotFoundException":
2158
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
2159
+ case "ServerException":
2160
+ case "com.amazonaws.eks#ServerException":
2161
+ throw await de_ServerExceptionRes(parsedOutput, context);
2162
+ default:
2163
+ const parsedBody = parsedOutput.body;
2164
+ return throwDefaultError({
2165
+ output,
2166
+ parsedBody,
2167
+ errorCode,
2168
+ });
2169
+ }
2170
+ };
2122
2171
  export const de_DisassociateIdentityProviderConfigCommand = async (output, context) => {
2123
2172
  if (output.statusCode !== 200 && output.statusCode >= 300) {
2124
2173
  return de_DisassociateIdentityProviderConfigCommandError(output, context);
@@ -2167,6 +2216,83 @@ const de_DisassociateIdentityProviderConfigCommandError = async (output, context
2167
2216
  });
2168
2217
  }
2169
2218
  };
2219
+ export const de_ListAccessEntriesCommand = async (output, context) => {
2220
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
2221
+ return de_ListAccessEntriesCommandError(output, context);
2222
+ }
2223
+ const contents = map({
2224
+ $metadata: deserializeMetadata(output),
2225
+ });
2226
+ const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
2227
+ const doc = take(data, {
2228
+ accessEntries: _json,
2229
+ nextToken: __expectString,
2230
+ });
2231
+ Object.assign(contents, doc);
2232
+ return contents;
2233
+ };
2234
+ const de_ListAccessEntriesCommandError = async (output, context) => {
2235
+ const parsedOutput = {
2236
+ ...output,
2237
+ body: await parseErrorBody(output.body, context),
2238
+ };
2239
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2240
+ switch (errorCode) {
2241
+ case "InvalidParameterException":
2242
+ case "com.amazonaws.eks#InvalidParameterException":
2243
+ throw await de_InvalidParameterExceptionRes(parsedOutput, context);
2244
+ case "InvalidRequestException":
2245
+ case "com.amazonaws.eks#InvalidRequestException":
2246
+ throw await de_InvalidRequestExceptionRes(parsedOutput, context);
2247
+ case "ResourceNotFoundException":
2248
+ case "com.amazonaws.eks#ResourceNotFoundException":
2249
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
2250
+ case "ServerException":
2251
+ case "com.amazonaws.eks#ServerException":
2252
+ throw await de_ServerExceptionRes(parsedOutput, context);
2253
+ default:
2254
+ const parsedBody = parsedOutput.body;
2255
+ return throwDefaultError({
2256
+ output,
2257
+ parsedBody,
2258
+ errorCode,
2259
+ });
2260
+ }
2261
+ };
2262
+ export const de_ListAccessPoliciesCommand = async (output, context) => {
2263
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
2264
+ return de_ListAccessPoliciesCommandError(output, context);
2265
+ }
2266
+ const contents = map({
2267
+ $metadata: deserializeMetadata(output),
2268
+ });
2269
+ const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
2270
+ const doc = take(data, {
2271
+ accessPolicies: _json,
2272
+ nextToken: __expectString,
2273
+ });
2274
+ Object.assign(contents, doc);
2275
+ return contents;
2276
+ };
2277
+ const de_ListAccessPoliciesCommandError = async (output, context) => {
2278
+ const parsedOutput = {
2279
+ ...output,
2280
+ body: await parseErrorBody(output.body, context),
2281
+ };
2282
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2283
+ switch (errorCode) {
2284
+ case "ServerException":
2285
+ case "com.amazonaws.eks#ServerException":
2286
+ throw await de_ServerExceptionRes(parsedOutput, context);
2287
+ default:
2288
+ const parsedBody = parsedOutput.body;
2289
+ return throwDefaultError({
2290
+ output,
2291
+ parsedBody,
2292
+ errorCode,
2293
+ });
2294
+ }
2295
+ };
2170
2296
  export const de_ListAddonsCommand = async (output, context) => {
2171
2297
  if (output.statusCode !== 200 && output.statusCode >= 300) {
2172
2298
  return de_ListAddonsCommandError(output, context);
@@ -2213,6 +2339,48 @@ const de_ListAddonsCommandError = async (output, context) => {
2213
2339
  });
2214
2340
  }
2215
2341
  };
2342
+ export const de_ListAssociatedAccessPoliciesCommand = async (output, context) => {
2343
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
2344
+ return de_ListAssociatedAccessPoliciesCommandError(output, context);
2345
+ }
2346
+ const contents = map({
2347
+ $metadata: deserializeMetadata(output),
2348
+ });
2349
+ const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
2350
+ const doc = take(data, {
2351
+ associatedAccessPolicies: (_) => de_AssociatedAccessPoliciesList(_, context),
2352
+ clusterName: __expectString,
2353
+ nextToken: __expectString,
2354
+ principalArn: __expectString,
2355
+ });
2356
+ Object.assign(contents, doc);
2357
+ return contents;
2358
+ };
2359
+ const de_ListAssociatedAccessPoliciesCommandError = async (output, context) => {
2360
+ const parsedOutput = {
2361
+ ...output,
2362
+ body: await parseErrorBody(output.body, context),
2363
+ };
2364
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2365
+ switch (errorCode) {
2366
+ case "InvalidRequestException":
2367
+ case "com.amazonaws.eks#InvalidRequestException":
2368
+ throw await de_InvalidRequestExceptionRes(parsedOutput, context);
2369
+ case "ResourceNotFoundException":
2370
+ case "com.amazonaws.eks#ResourceNotFoundException":
2371
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
2372
+ case "ServerException":
2373
+ case "com.amazonaws.eks#ServerException":
2374
+ throw await de_ServerExceptionRes(parsedOutput, context);
2375
+ default:
2376
+ const parsedBody = parsedOutput.body;
2377
+ return throwDefaultError({
2378
+ output,
2379
+ parsedBody,
2380
+ errorCode,
2381
+ });
2382
+ }
2383
+ };
2216
2384
  export const de_ListClustersCommand = async (output, context) => {
2217
2385
  if (output.statusCode !== 200 && output.statusCode >= 300) {
2218
2386
  return de_ListClustersCommandError(output, context);
@@ -2674,6 +2842,48 @@ const de_UntagResourceCommandError = async (output, context) => {
2674
2842
  });
2675
2843
  }
2676
2844
  };
2845
+ export const de_UpdateAccessEntryCommand = async (output, context) => {
2846
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
2847
+ return de_UpdateAccessEntryCommandError(output, context);
2848
+ }
2849
+ const contents = map({
2850
+ $metadata: deserializeMetadata(output),
2851
+ });
2852
+ const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
2853
+ const doc = take(data, {
2854
+ accessEntry: (_) => de_AccessEntry(_, context),
2855
+ });
2856
+ Object.assign(contents, doc);
2857
+ return contents;
2858
+ };
2859
+ const de_UpdateAccessEntryCommandError = async (output, context) => {
2860
+ const parsedOutput = {
2861
+ ...output,
2862
+ body: await parseErrorBody(output.body, context),
2863
+ };
2864
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2865
+ switch (errorCode) {
2866
+ case "InvalidParameterException":
2867
+ case "com.amazonaws.eks#InvalidParameterException":
2868
+ throw await de_InvalidParameterExceptionRes(parsedOutput, context);
2869
+ case "InvalidRequestException":
2870
+ case "com.amazonaws.eks#InvalidRequestException":
2871
+ throw await de_InvalidRequestExceptionRes(parsedOutput, context);
2872
+ case "ResourceNotFoundException":
2873
+ case "com.amazonaws.eks#ResourceNotFoundException":
2874
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
2875
+ case "ServerException":
2876
+ case "com.amazonaws.eks#ServerException":
2877
+ throw await de_ServerExceptionRes(parsedOutput, context);
2878
+ default:
2879
+ const parsedBody = parsedOutput.body;
2880
+ return throwDefaultError({
2881
+ output,
2882
+ parsedBody,
2883
+ errorCode,
2884
+ });
2885
+ }
2886
+ };
2677
2887
  export const de_UpdateAddonCommand = async (output, context) => {
2678
2888
  if (output.statusCode !== 200 && output.statusCode >= 300) {
2679
2889
  return de_UpdateAddonCommandError(output, context);
@@ -3202,6 +3412,19 @@ const de_UnsupportedAvailabilityZoneExceptionRes = async (parsedOutput, context)
3202
3412
  });
3203
3413
  return __decorateServiceException(exception, parsedOutput.body);
3204
3414
  };
3415
+ const de_AccessEntry = (output, context) => {
3416
+ return take(output, {
3417
+ accessEntryArn: __expectString,
3418
+ clusterName: __expectString,
3419
+ createdAt: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
3420
+ kubernetesGroups: _json,
3421
+ modifiedAt: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
3422
+ principalArn: __expectString,
3423
+ tags: _json,
3424
+ type: __expectString,
3425
+ username: __expectString,
3426
+ });
3427
+ };
3205
3428
  const de_Addon = (output, context) => {
3206
3429
  return take(output, {
3207
3430
  addonArn: __expectString,
@@ -3220,8 +3443,25 @@ const de_Addon = (output, context) => {
3220
3443
  tags: _json,
3221
3444
  });
3222
3445
  };
3446
+ const de_AssociatedAccessPoliciesList = (output, context) => {
3447
+ const retVal = (output || [])
3448
+ .filter((e) => e != null)
3449
+ .map((entry) => {
3450
+ return de_AssociatedAccessPolicy(entry, context);
3451
+ });
3452
+ return retVal;
3453
+ };
3454
+ const de_AssociatedAccessPolicy = (output, context) => {
3455
+ return take(output, {
3456
+ accessScope: _json,
3457
+ associatedAt: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
3458
+ modifiedAt: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
3459
+ policyArn: __expectString,
3460
+ });
3461
+ };
3223
3462
  const de_Cluster = (output, context) => {
3224
3463
  return take(output, {
3464
+ accessConfig: _json,
3225
3465
  arn: __expectString,
3226
3466
  certificateAuthority: _json,
3227
3467
  clientRequestToken: __expectString,
@@ -3352,6 +3592,21 @@ const isSerializableHeaderValue = (value) => value !== undefined &&
3352
3592
  value !== "" &&
3353
3593
  (!Object.getOwnPropertyNames(value).includes("length") || value.length != 0) &&
3354
3594
  (!Object.getOwnPropertyNames(value).includes("size") || value.size != 0);
3595
+ const _aN = "addonName";
3596
+ const _aV = "addonVersion";
3597
+ const _i = "include";
3598
+ const _iS = "includeStatus";
3599
+ const _kV = "kubernetesVersion";
3600
+ const _mR = "maxResults";
3601
+ const _n = "namespace";
3602
+ const _nN = "nodegroupName";
3603
+ const _nT = "nextToken";
3604
+ const _o = "owners";
3605
+ const _p = "preserve";
3606
+ const _pu = "publishers";
3607
+ const _sA = "serviceAccount";
3608
+ const _t = "types";
3609
+ const _tK = "tagKeys";
3355
3610
  const parseBody = (streamBody, context) => collectBodyString(streamBody, context).then((encoded) => {
3356
3611
  if (encoded.length) {
3357
3612
  return JSON.parse(encoded);