@aws-sdk/client-eks 3.476.0 → 3.478.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 (84) hide show
  1. package/README.md +16 -0
  2. package/dist-cjs/EKS.js +4 -0
  3. package/dist-cjs/commands/DescribeInsightCommand.js +51 -0
  4. package/dist-cjs/commands/ListInsightsCommand.js +51 -0
  5. package/dist-cjs/commands/index.js +2 -0
  6. package/dist-cjs/models/models_0.js +10 -1
  7. package/dist-cjs/pagination/DescribeAddonVersionsPaginator.js +2 -24
  8. package/dist-cjs/pagination/ListAccessEntriesPaginator.js +2 -24
  9. package/dist-cjs/pagination/ListAccessPoliciesPaginator.js +2 -24
  10. package/dist-cjs/pagination/ListAddonsPaginator.js +2 -24
  11. package/dist-cjs/pagination/ListAssociatedAccessPoliciesPaginator.js +2 -24
  12. package/dist-cjs/pagination/ListClustersPaginator.js +2 -24
  13. package/dist-cjs/pagination/ListEksAnywhereSubscriptionsPaginator.js +2 -24
  14. package/dist-cjs/pagination/ListFargateProfilesPaginator.js +2 -24
  15. package/dist-cjs/pagination/ListIdentityProviderConfigsPaginator.js +2 -24
  16. package/dist-cjs/pagination/ListInsightsPaginator.js +7 -0
  17. package/dist-cjs/pagination/ListNodegroupsPaginator.js +2 -24
  18. package/dist-cjs/pagination/ListPodIdentityAssociationsPaginator.js +2 -24
  19. package/dist-cjs/pagination/ListUpdatesPaginator.js +2 -24
  20. package/dist-cjs/pagination/index.js +1 -0
  21. package/dist-cjs/protocols/Aws_restJson1.js +533 -751
  22. package/dist-es/EKS.js +4 -0
  23. package/dist-es/commands/DescribeInsightCommand.js +47 -0
  24. package/dist-es/commands/ListInsightsCommand.js +47 -0
  25. package/dist-es/commands/index.js +2 -0
  26. package/dist-es/models/models_0.js +9 -0
  27. package/dist-es/pagination/DescribeAddonVersionsPaginator.js +2 -23
  28. package/dist-es/pagination/ListAccessEntriesPaginator.js +2 -23
  29. package/dist-es/pagination/ListAccessPoliciesPaginator.js +2 -23
  30. package/dist-es/pagination/ListAddonsPaginator.js +2 -23
  31. package/dist-es/pagination/ListAssociatedAccessPoliciesPaginator.js +2 -23
  32. package/dist-es/pagination/ListClustersPaginator.js +2 -23
  33. package/dist-es/pagination/ListEksAnywhereSubscriptionsPaginator.js +2 -23
  34. package/dist-es/pagination/ListFargateProfilesPaginator.js +2 -23
  35. package/dist-es/pagination/ListIdentityProviderConfigsPaginator.js +2 -23
  36. package/dist-es/pagination/ListInsightsPaginator.js +4 -0
  37. package/dist-es/pagination/ListNodegroupsPaginator.js +2 -23
  38. package/dist-es/pagination/ListPodIdentityAssociationsPaginator.js +2 -23
  39. package/dist-es/pagination/ListUpdatesPaginator.js +2 -23
  40. package/dist-es/pagination/index.js +1 -0
  41. package/dist-es/protocols/Aws_restJson1.js +527 -749
  42. package/dist-types/EKS.d.ts +14 -0
  43. package/dist-types/EKSClient.d.ts +4 -2
  44. package/dist-types/commands/DescribeInsightCommand.d.ts +133 -0
  45. package/dist-types/commands/ListInsightsCommand.d.ts +117 -0
  46. package/dist-types/commands/index.d.ts +2 -0
  47. package/dist-types/models/models_0.d.ts +359 -5
  48. package/dist-types/pagination/DescribeAddonVersionsPaginator.d.ts +1 -1
  49. package/dist-types/pagination/ListAccessEntriesPaginator.d.ts +1 -1
  50. package/dist-types/pagination/ListAccessPoliciesPaginator.d.ts +1 -1
  51. package/dist-types/pagination/ListAddonsPaginator.d.ts +1 -1
  52. package/dist-types/pagination/ListAssociatedAccessPoliciesPaginator.d.ts +1 -1
  53. package/dist-types/pagination/ListClustersPaginator.d.ts +1 -1
  54. package/dist-types/pagination/ListEksAnywhereSubscriptionsPaginator.d.ts +1 -1
  55. package/dist-types/pagination/ListFargateProfilesPaginator.d.ts +1 -1
  56. package/dist-types/pagination/ListIdentityProviderConfigsPaginator.d.ts +1 -1
  57. package/dist-types/pagination/ListInsightsPaginator.d.ts +7 -0
  58. package/dist-types/pagination/ListNodegroupsPaginator.d.ts +1 -1
  59. package/dist-types/pagination/ListPodIdentityAssociationsPaginator.d.ts +1 -1
  60. package/dist-types/pagination/ListUpdatesPaginator.d.ts +1 -1
  61. package/dist-types/pagination/index.d.ts +1 -0
  62. package/dist-types/protocols/Aws_restJson1.d.ts +18 -0
  63. package/dist-types/ts3.4/EKS.d.ts +34 -0
  64. package/dist-types/ts3.4/EKSClient.d.ts +12 -0
  65. package/dist-types/ts3.4/commands/DescribeInsightCommand.d.ts +38 -0
  66. package/dist-types/ts3.4/commands/ListInsightsCommand.d.ts +35 -0
  67. package/dist-types/ts3.4/commands/index.d.ts +2 -0
  68. package/dist-types/ts3.4/models/models_0.d.ts +82 -0
  69. package/dist-types/ts3.4/pagination/DescribeAddonVersionsPaginator.d.ts +3 -3
  70. package/dist-types/ts3.4/pagination/ListAccessEntriesPaginator.d.ts +3 -3
  71. package/dist-types/ts3.4/pagination/ListAccessPoliciesPaginator.d.ts +3 -3
  72. package/dist-types/ts3.4/pagination/ListAddonsPaginator.d.ts +3 -3
  73. package/dist-types/ts3.4/pagination/ListAssociatedAccessPoliciesPaginator.d.ts +3 -3
  74. package/dist-types/ts3.4/pagination/ListClustersPaginator.d.ts +3 -3
  75. package/dist-types/ts3.4/pagination/ListEksAnywhereSubscriptionsPaginator.d.ts +3 -3
  76. package/dist-types/ts3.4/pagination/ListFargateProfilesPaginator.d.ts +3 -3
  77. package/dist-types/ts3.4/pagination/ListIdentityProviderConfigsPaginator.d.ts +3 -3
  78. package/dist-types/ts3.4/pagination/ListInsightsPaginator.d.ts +11 -0
  79. package/dist-types/ts3.4/pagination/ListNodegroupsPaginator.d.ts +3 -3
  80. package/dist-types/ts3.4/pagination/ListPodIdentityAssociationsPaginator.d.ts +3 -3
  81. package/dist-types/ts3.4/pagination/ListUpdatesPaginator.d.ts +3 -3
  82. package/dist-types/ts3.4/pagination/index.d.ts +1 -0
  83. package/dist-types/ts3.4/protocols/Aws_restJson1.d.ts +24 -0
  84. package/package.json +7 -6
@@ -1,86 +1,62 @@
1
- import { HttpRequest as __HttpRequest } from "@smithy/protocol-http";
2
- import { _json, collectBody, decorateServiceException as __decorateServiceException, expectBoolean as __expectBoolean, expectInt32 as __expectInt32, expectNonNull as __expectNonNull, expectNumber as __expectNumber, expectObject as __expectObject, expectString as __expectString, map, parseEpochTimestamp as __parseEpochTimestamp, resolvedPath as __resolvedPath, take, withBaseException, } from "@smithy/smithy-client";
1
+ import { requestBuilder as rb } from "@smithy/core";
2
+ import { _json, collectBody, decorateServiceException as __decorateServiceException, expectBoolean as __expectBoolean, expectInt32 as __expectInt32, expectNonNull as __expectNonNull, expectNumber as __expectNumber, expectObject as __expectObject, expectString as __expectString, map, parseEpochTimestamp as __parseEpochTimestamp, take, withBaseException, } from "@smithy/smithy-client";
3
3
  import { v4 as generateIdempotencyToken } from "uuid";
4
4
  import { EKSServiceException as __BaseException } from "../models/EKSServiceException";
5
5
  import { AccessDeniedException, BadRequestException, ClientException, InvalidParameterException, InvalidRequestException, NotFoundException, ResourceInUseException, ResourceLimitExceededException, ResourceNotFoundException, ResourcePropagationDelayException, ServerException, ServiceUnavailableException, UnsupportedAvailabilityZoneException, } from "../models/models_0";
6
6
  export const se_AssociateAccessPolicyCommand = async (input, context) => {
7
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
7
+ const b = rb(input, context);
8
8
  const headers = {
9
9
  "content-type": "application/json",
10
10
  };
11
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
12
- "/clusters/{clusterName}/access-entries/{principalArn}/access-policies";
13
- resolvedPath = __resolvedPath(resolvedPath, input, "clusterName", () => input.clusterName, "{clusterName}", false);
14
- resolvedPath = __resolvedPath(resolvedPath, input, "principalArn", () => input.principalArn, "{principalArn}", false);
11
+ b.bp("/clusters/{clusterName}/access-entries/{principalArn}/access-policies");
12
+ b.p("clusterName", () => input.clusterName, "{clusterName}", false);
13
+ b.p("principalArn", () => input.principalArn, "{principalArn}", false);
15
14
  let body;
16
15
  body = JSON.stringify(take(input, {
17
16
  accessScope: (_) => _json(_),
18
17
  policyArn: [],
19
18
  }));
20
- return new __HttpRequest({
21
- protocol,
22
- hostname,
23
- port,
24
- method: "POST",
25
- headers,
26
- path: resolvedPath,
27
- body,
28
- });
19
+ b.m("POST").h(headers).b(body);
20
+ return b.build();
29
21
  };
30
22
  export const se_AssociateEncryptionConfigCommand = async (input, context) => {
31
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
23
+ const b = rb(input, context);
32
24
  const headers = {
33
25
  "content-type": "application/json",
34
26
  };
35
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
36
- "/clusters/{clusterName}/encryption-config/associate";
37
- resolvedPath = __resolvedPath(resolvedPath, input, "clusterName", () => input.clusterName, "{clusterName}", false);
27
+ b.bp("/clusters/{clusterName}/encryption-config/associate");
28
+ b.p("clusterName", () => input.clusterName, "{clusterName}", false);
38
29
  let body;
39
30
  body = JSON.stringify(take(input, {
40
31
  clientRequestToken: [true, (_) => _ ?? generateIdempotencyToken()],
41
32
  encryptionConfig: (_) => _json(_),
42
33
  }));
43
- return new __HttpRequest({
44
- protocol,
45
- hostname,
46
- port,
47
- method: "POST",
48
- headers,
49
- path: resolvedPath,
50
- body,
51
- });
34
+ b.m("POST").h(headers).b(body);
35
+ return b.build();
52
36
  };
53
37
  export const se_AssociateIdentityProviderConfigCommand = async (input, context) => {
54
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
38
+ const b = rb(input, context);
55
39
  const headers = {
56
40
  "content-type": "application/json",
57
41
  };
58
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
59
- "/clusters/{clusterName}/identity-provider-configs/associate";
60
- resolvedPath = __resolvedPath(resolvedPath, input, "clusterName", () => input.clusterName, "{clusterName}", false);
42
+ b.bp("/clusters/{clusterName}/identity-provider-configs/associate");
43
+ b.p("clusterName", () => input.clusterName, "{clusterName}", false);
61
44
  let body;
62
45
  body = JSON.stringify(take(input, {
63
46
  clientRequestToken: [true, (_) => _ ?? generateIdempotencyToken()],
64
47
  oidc: (_) => _json(_),
65
48
  tags: (_) => _json(_),
66
49
  }));
67
- return new __HttpRequest({
68
- protocol,
69
- hostname,
70
- port,
71
- method: "POST",
72
- headers,
73
- path: resolvedPath,
74
- body,
75
- });
50
+ b.m("POST").h(headers).b(body);
51
+ return b.build();
76
52
  };
77
53
  export const se_CreateAccessEntryCommand = async (input, context) => {
78
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
54
+ const b = rb(input, context);
79
55
  const headers = {
80
56
  "content-type": "application/json",
81
57
  };
82
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/clusters/{clusterName}/access-entries";
83
- resolvedPath = __resolvedPath(resolvedPath, input, "clusterName", () => input.clusterName, "{clusterName}", false);
58
+ b.bp("/clusters/{clusterName}/access-entries");
59
+ b.p("clusterName", () => input.clusterName, "{clusterName}", false);
84
60
  let body;
85
61
  body = JSON.stringify(take(input, {
86
62
  clientRequestToken: [true, (_) => _ ?? generateIdempotencyToken()],
@@ -90,23 +66,16 @@ export const se_CreateAccessEntryCommand = async (input, context) => {
90
66
  type: [],
91
67
  username: [],
92
68
  }));
93
- return new __HttpRequest({
94
- protocol,
95
- hostname,
96
- port,
97
- method: "POST",
98
- headers,
99
- path: resolvedPath,
100
- body,
101
- });
69
+ b.m("POST").h(headers).b(body);
70
+ return b.build();
102
71
  };
103
72
  export const se_CreateAddonCommand = async (input, context) => {
104
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
73
+ const b = rb(input, context);
105
74
  const headers = {
106
75
  "content-type": "application/json",
107
76
  };
108
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/clusters/{clusterName}/addons";
109
- resolvedPath = __resolvedPath(resolvedPath, input, "clusterName", () => input.clusterName, "{clusterName}", false);
77
+ b.bp("/clusters/{clusterName}/addons");
78
+ b.p("clusterName", () => input.clusterName, "{clusterName}", false);
110
79
  let body;
111
80
  body = JSON.stringify(take(input, {
112
81
  addonName: [],
@@ -117,22 +86,15 @@ export const se_CreateAddonCommand = async (input, context) => {
117
86
  serviceAccountRoleArn: [],
118
87
  tags: (_) => _json(_),
119
88
  }));
120
- return new __HttpRequest({
121
- protocol,
122
- hostname,
123
- port,
124
- method: "POST",
125
- headers,
126
- path: resolvedPath,
127
- body,
128
- });
89
+ b.m("POST").h(headers).b(body);
90
+ return b.build();
129
91
  };
130
92
  export const se_CreateClusterCommand = async (input, context) => {
131
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
93
+ const b = rb(input, context);
132
94
  const headers = {
133
95
  "content-type": "application/json",
134
96
  };
135
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/clusters";
97
+ b.bp("/clusters");
136
98
  let body;
137
99
  body = JSON.stringify(take(input, {
138
100
  accessConfig: (_) => _json(_),
@@ -147,22 +109,15 @@ export const se_CreateClusterCommand = async (input, context) => {
147
109
  tags: (_) => _json(_),
148
110
  version: [],
149
111
  }));
150
- return new __HttpRequest({
151
- protocol,
152
- hostname,
153
- port,
154
- method: "POST",
155
- headers,
156
- path: resolvedPath,
157
- body,
158
- });
112
+ b.m("POST").h(headers).b(body);
113
+ return b.build();
159
114
  };
160
115
  export const se_CreateEksAnywhereSubscriptionCommand = async (input, context) => {
161
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
116
+ const b = rb(input, context);
162
117
  const headers = {
163
118
  "content-type": "application/json",
164
119
  };
165
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/eks-anywhere-subscriptions";
120
+ b.bp("/eks-anywhere-subscriptions");
166
121
  let body;
167
122
  body = JSON.stringify(take(input, {
168
123
  autoRenew: [],
@@ -173,23 +128,16 @@ export const se_CreateEksAnywhereSubscriptionCommand = async (input, context) =>
173
128
  tags: (_) => _json(_),
174
129
  term: (_) => _json(_),
175
130
  }));
176
- return new __HttpRequest({
177
- protocol,
178
- hostname,
179
- port,
180
- method: "POST",
181
- headers,
182
- path: resolvedPath,
183
- body,
184
- });
131
+ b.m("POST").h(headers).b(body);
132
+ return b.build();
185
133
  };
186
134
  export const se_CreateFargateProfileCommand = async (input, context) => {
187
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
135
+ const b = rb(input, context);
188
136
  const headers = {
189
137
  "content-type": "application/json",
190
138
  };
191
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/clusters/{clusterName}/fargate-profiles";
192
- resolvedPath = __resolvedPath(resolvedPath, input, "clusterName", () => input.clusterName, "{clusterName}", false);
139
+ b.bp("/clusters/{clusterName}/fargate-profiles");
140
+ b.p("clusterName", () => input.clusterName, "{clusterName}", false);
193
141
  let body;
194
142
  body = JSON.stringify(take(input, {
195
143
  clientRequestToken: [true, (_) => _ ?? generateIdempotencyToken()],
@@ -199,23 +147,16 @@ export const se_CreateFargateProfileCommand = async (input, context) => {
199
147
  subnets: (_) => _json(_),
200
148
  tags: (_) => _json(_),
201
149
  }));
202
- return new __HttpRequest({
203
- protocol,
204
- hostname,
205
- port,
206
- method: "POST",
207
- headers,
208
- path: resolvedPath,
209
- body,
210
- });
150
+ b.m("POST").h(headers).b(body);
151
+ return b.build();
211
152
  };
212
153
  export const se_CreateNodegroupCommand = async (input, context) => {
213
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
154
+ const b = rb(input, context);
214
155
  const headers = {
215
156
  "content-type": "application/json",
216
157
  };
217
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/clusters/{clusterName}/node-groups";
218
- resolvedPath = __resolvedPath(resolvedPath, input, "clusterName", () => input.clusterName, "{clusterName}", false);
158
+ b.bp("/clusters/{clusterName}/node-groups");
159
+ b.p("clusterName", () => input.clusterName, "{clusterName}", false);
219
160
  let body;
220
161
  body = JSON.stringify(take(input, {
221
162
  amiType: [],
@@ -236,24 +177,16 @@ export const se_CreateNodegroupCommand = async (input, context) => {
236
177
  updateConfig: (_) => _json(_),
237
178
  version: [],
238
179
  }));
239
- return new __HttpRequest({
240
- protocol,
241
- hostname,
242
- port,
243
- method: "POST",
244
- headers,
245
- path: resolvedPath,
246
- body,
247
- });
180
+ b.m("POST").h(headers).b(body);
181
+ return b.build();
248
182
  };
249
183
  export const se_CreatePodIdentityAssociationCommand = async (input, context) => {
250
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
184
+ const b = rb(input, context);
251
185
  const headers = {
252
186
  "content-type": "application/json",
253
187
  };
254
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
255
- "/clusters/{clusterName}/pod-identity-associations";
256
- resolvedPath = __resolvedPath(resolvedPath, input, "clusterName", () => input.clusterName, "{clusterName}", false);
188
+ b.bp("/clusters/{clusterName}/pod-identity-associations");
189
+ b.p("clusterName", () => input.clusterName, "{clusterName}", false);
257
190
  let body;
258
191
  body = JSON.stringify(take(input, {
259
192
  clientRequestToken: [true, (_) => _ ?? generateIdempotencyToken()],
@@ -262,675 +195,429 @@ export const se_CreatePodIdentityAssociationCommand = async (input, context) =>
262
195
  serviceAccount: [],
263
196
  tags: (_) => _json(_),
264
197
  }));
265
- return new __HttpRequest({
266
- protocol,
267
- hostname,
268
- port,
269
- method: "POST",
270
- headers,
271
- path: resolvedPath,
272
- body,
273
- });
198
+ b.m("POST").h(headers).b(body);
199
+ return b.build();
274
200
  };
275
201
  export const se_DeleteAccessEntryCommand = async (input, context) => {
276
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
202
+ const b = rb(input, context);
277
203
  const headers = {};
278
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
279
- "/clusters/{clusterName}/access-entries/{principalArn}";
280
- resolvedPath = __resolvedPath(resolvedPath, input, "clusterName", () => input.clusterName, "{clusterName}", false);
281
- resolvedPath = __resolvedPath(resolvedPath, input, "principalArn", () => input.principalArn, "{principalArn}", false);
204
+ b.bp("/clusters/{clusterName}/access-entries/{principalArn}");
205
+ b.p("clusterName", () => input.clusterName, "{clusterName}", false);
206
+ b.p("principalArn", () => input.principalArn, "{principalArn}", false);
282
207
  let body;
283
- return new __HttpRequest({
284
- protocol,
285
- hostname,
286
- port,
287
- method: "DELETE",
288
- headers,
289
- path: resolvedPath,
290
- body,
291
- });
208
+ b.m("DELETE").h(headers).b(body);
209
+ return b.build();
292
210
  };
293
211
  export const se_DeleteAddonCommand = async (input, context) => {
294
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
212
+ const b = rb(input, context);
295
213
  const headers = {};
296
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
297
- "/clusters/{clusterName}/addons/{addonName}";
298
- resolvedPath = __resolvedPath(resolvedPath, input, "clusterName", () => input.clusterName, "{clusterName}", false);
299
- resolvedPath = __resolvedPath(resolvedPath, input, "addonName", () => input.addonName, "{addonName}", false);
214
+ b.bp("/clusters/{clusterName}/addons/{addonName}");
215
+ b.p("clusterName", () => input.clusterName, "{clusterName}", false);
216
+ b.p("addonName", () => input.addonName, "{addonName}", false);
300
217
  const query = map({
301
- preserve: [() => input.preserve !== void 0, () => input.preserve.toString()],
218
+ [_p]: [() => input.preserve !== void 0, () => input[_p].toString()],
302
219
  });
303
220
  let body;
304
- return new __HttpRequest({
305
- protocol,
306
- hostname,
307
- port,
308
- method: "DELETE",
309
- headers,
310
- path: resolvedPath,
311
- query,
312
- body,
313
- });
221
+ b.m("DELETE").h(headers).q(query).b(body);
222
+ return b.build();
314
223
  };
315
224
  export const se_DeleteClusterCommand = async (input, context) => {
316
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
225
+ const b = rb(input, context);
317
226
  const headers = {};
318
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/clusters/{name}";
319
- resolvedPath = __resolvedPath(resolvedPath, input, "name", () => input.name, "{name}", false);
227
+ b.bp("/clusters/{name}");
228
+ b.p("name", () => input.name, "{name}", false);
320
229
  let body;
321
- return new __HttpRequest({
322
- protocol,
323
- hostname,
324
- port,
325
- method: "DELETE",
326
- headers,
327
- path: resolvedPath,
328
- body,
329
- });
230
+ b.m("DELETE").h(headers).b(body);
231
+ return b.build();
330
232
  };
331
233
  export const se_DeleteEksAnywhereSubscriptionCommand = async (input, context) => {
332
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
234
+ const b = rb(input, context);
333
235
  const headers = {};
334
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/eks-anywhere-subscriptions/{id}";
335
- resolvedPath = __resolvedPath(resolvedPath, input, "id", () => input.id, "{id}", false);
236
+ b.bp("/eks-anywhere-subscriptions/{id}");
237
+ b.p("id", () => input.id, "{id}", false);
336
238
  let body;
337
- return new __HttpRequest({
338
- protocol,
339
- hostname,
340
- port,
341
- method: "DELETE",
342
- headers,
343
- path: resolvedPath,
344
- body,
345
- });
239
+ b.m("DELETE").h(headers).b(body);
240
+ return b.build();
346
241
  };
347
242
  export const se_DeleteFargateProfileCommand = async (input, context) => {
348
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
243
+ const b = rb(input, context);
349
244
  const headers = {};
350
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
351
- "/clusters/{clusterName}/fargate-profiles/{fargateProfileName}";
352
- resolvedPath = __resolvedPath(resolvedPath, input, "clusterName", () => input.clusterName, "{clusterName}", false);
353
- resolvedPath = __resolvedPath(resolvedPath, input, "fargateProfileName", () => input.fargateProfileName, "{fargateProfileName}", false);
245
+ b.bp("/clusters/{clusterName}/fargate-profiles/{fargateProfileName}");
246
+ b.p("clusterName", () => input.clusterName, "{clusterName}", false);
247
+ b.p("fargateProfileName", () => input.fargateProfileName, "{fargateProfileName}", false);
354
248
  let body;
355
- return new __HttpRequest({
356
- protocol,
357
- hostname,
358
- port,
359
- method: "DELETE",
360
- headers,
361
- path: resolvedPath,
362
- body,
363
- });
249
+ b.m("DELETE").h(headers).b(body);
250
+ return b.build();
364
251
  };
365
252
  export const se_DeleteNodegroupCommand = async (input, context) => {
366
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
253
+ const b = rb(input, context);
367
254
  const headers = {};
368
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
369
- "/clusters/{clusterName}/node-groups/{nodegroupName}";
370
- resolvedPath = __resolvedPath(resolvedPath, input, "clusterName", () => input.clusterName, "{clusterName}", false);
371
- resolvedPath = __resolvedPath(resolvedPath, input, "nodegroupName", () => input.nodegroupName, "{nodegroupName}", false);
255
+ b.bp("/clusters/{clusterName}/node-groups/{nodegroupName}");
256
+ b.p("clusterName", () => input.clusterName, "{clusterName}", false);
257
+ b.p("nodegroupName", () => input.nodegroupName, "{nodegroupName}", false);
372
258
  let body;
373
- return new __HttpRequest({
374
- protocol,
375
- hostname,
376
- port,
377
- method: "DELETE",
378
- headers,
379
- path: resolvedPath,
380
- body,
381
- });
259
+ b.m("DELETE").h(headers).b(body);
260
+ return b.build();
382
261
  };
383
262
  export const se_DeletePodIdentityAssociationCommand = async (input, context) => {
384
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
263
+ const b = rb(input, context);
385
264
  const headers = {};
386
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
387
- "/clusters/{clusterName}/pod-identity-associations/{associationId}";
388
- resolvedPath = __resolvedPath(resolvedPath, input, "clusterName", () => input.clusterName, "{clusterName}", false);
389
- resolvedPath = __resolvedPath(resolvedPath, input, "associationId", () => input.associationId, "{associationId}", false);
265
+ b.bp("/clusters/{clusterName}/pod-identity-associations/{associationId}");
266
+ b.p("clusterName", () => input.clusterName, "{clusterName}", false);
267
+ b.p("associationId", () => input.associationId, "{associationId}", false);
390
268
  let body;
391
- return new __HttpRequest({
392
- protocol,
393
- hostname,
394
- port,
395
- method: "DELETE",
396
- headers,
397
- path: resolvedPath,
398
- body,
399
- });
269
+ b.m("DELETE").h(headers).b(body);
270
+ return b.build();
400
271
  };
401
272
  export const se_DeregisterClusterCommand = async (input, context) => {
402
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
273
+ const b = rb(input, context);
403
274
  const headers = {};
404
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/cluster-registrations/{name}";
405
- resolvedPath = __resolvedPath(resolvedPath, input, "name", () => input.name, "{name}", false);
275
+ b.bp("/cluster-registrations/{name}");
276
+ b.p("name", () => input.name, "{name}", false);
406
277
  let body;
407
- return new __HttpRequest({
408
- protocol,
409
- hostname,
410
- port,
411
- method: "DELETE",
412
- headers,
413
- path: resolvedPath,
414
- body,
415
- });
278
+ b.m("DELETE").h(headers).b(body);
279
+ return b.build();
416
280
  };
417
281
  export const se_DescribeAccessEntryCommand = async (input, context) => {
418
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
282
+ const b = rb(input, context);
419
283
  const headers = {};
420
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
421
- "/clusters/{clusterName}/access-entries/{principalArn}";
422
- resolvedPath = __resolvedPath(resolvedPath, input, "clusterName", () => input.clusterName, "{clusterName}", false);
423
- resolvedPath = __resolvedPath(resolvedPath, input, "principalArn", () => input.principalArn, "{principalArn}", false);
284
+ b.bp("/clusters/{clusterName}/access-entries/{principalArn}");
285
+ b.p("clusterName", () => input.clusterName, "{clusterName}", false);
286
+ b.p("principalArn", () => input.principalArn, "{principalArn}", false);
424
287
  let body;
425
- return new __HttpRequest({
426
- protocol,
427
- hostname,
428
- port,
429
- method: "GET",
430
- headers,
431
- path: resolvedPath,
432
- body,
433
- });
288
+ b.m("GET").h(headers).b(body);
289
+ return b.build();
434
290
  };
435
291
  export const se_DescribeAddonCommand = async (input, context) => {
436
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
292
+ const b = rb(input, context);
437
293
  const headers = {};
438
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
439
- "/clusters/{clusterName}/addons/{addonName}";
440
- resolvedPath = __resolvedPath(resolvedPath, input, "clusterName", () => input.clusterName, "{clusterName}", false);
441
- resolvedPath = __resolvedPath(resolvedPath, input, "addonName", () => input.addonName, "{addonName}", false);
294
+ b.bp("/clusters/{clusterName}/addons/{addonName}");
295
+ b.p("clusterName", () => input.clusterName, "{clusterName}", false);
296
+ b.p("addonName", () => input.addonName, "{addonName}", false);
442
297
  let body;
443
- return new __HttpRequest({
444
- protocol,
445
- hostname,
446
- port,
447
- method: "GET",
448
- headers,
449
- path: resolvedPath,
450
- body,
451
- });
298
+ b.m("GET").h(headers).b(body);
299
+ return b.build();
452
300
  };
453
301
  export const se_DescribeAddonConfigurationCommand = async (input, context) => {
454
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
302
+ const b = rb(input, context);
455
303
  const headers = {};
456
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/addons/configuration-schemas";
304
+ b.bp("/addons/configuration-schemas");
457
305
  const query = map({
458
- addonName: [, __expectNonNull(input.addonName, `addonName`)],
459
- addonVersion: [, __expectNonNull(input.addonVersion, `addonVersion`)],
306
+ [_aN]: [, __expectNonNull(input[_aN], `addonName`)],
307
+ [_aV]: [, __expectNonNull(input[_aV], `addonVersion`)],
460
308
  });
461
309
  let body;
462
- return new __HttpRequest({
463
- protocol,
464
- hostname,
465
- port,
466
- method: "GET",
467
- headers,
468
- path: resolvedPath,
469
- query,
470
- body,
471
- });
310
+ b.m("GET").h(headers).q(query).b(body);
311
+ return b.build();
472
312
  };
473
313
  export const se_DescribeAddonVersionsCommand = async (input, context) => {
474
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
314
+ const b = rb(input, context);
475
315
  const headers = {};
476
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/addons/supported-versions";
316
+ b.bp("/addons/supported-versions");
477
317
  const query = map({
478
- kubernetesVersion: [, input.kubernetesVersion],
479
- maxResults: [() => input.maxResults !== void 0, () => input.maxResults.toString()],
480
- nextToken: [, input.nextToken],
481
- addonName: [, input.addonName],
482
- types: [() => input.types !== void 0, () => (input.types || []).map((_entry) => _entry)],
483
- publishers: [() => input.publishers !== void 0, () => (input.publishers || []).map((_entry) => _entry)],
484
- owners: [() => input.owners !== void 0, () => (input.owners || []).map((_entry) => _entry)],
318
+ [_kV]: [, input[_kV]],
319
+ [_mR]: [() => input.maxResults !== void 0, () => input[_mR].toString()],
320
+ [_nT]: [, input[_nT]],
321
+ [_aN]: [, input[_aN]],
322
+ [_t]: [() => input.types !== void 0, () => (input[_t] || []).map((_entry) => _entry)],
323
+ [_pu]: [() => input.publishers !== void 0, () => (input[_pu] || []).map((_entry) => _entry)],
324
+ [_o]: [() => input.owners !== void 0, () => (input[_o] || []).map((_entry) => _entry)],
485
325
  });
486
326
  let body;
487
- return new __HttpRequest({
488
- protocol,
489
- hostname,
490
- port,
491
- method: "GET",
492
- headers,
493
- path: resolvedPath,
494
- query,
495
- body,
496
- });
327
+ b.m("GET").h(headers).q(query).b(body);
328
+ return b.build();
497
329
  };
498
330
  export const se_DescribeClusterCommand = async (input, context) => {
499
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
331
+ const b = rb(input, context);
500
332
  const headers = {};
501
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/clusters/{name}";
502
- resolvedPath = __resolvedPath(resolvedPath, input, "name", () => input.name, "{name}", false);
333
+ b.bp("/clusters/{name}");
334
+ b.p("name", () => input.name, "{name}", false);
503
335
  let body;
504
- return new __HttpRequest({
505
- protocol,
506
- hostname,
507
- port,
508
- method: "GET",
509
- headers,
510
- path: resolvedPath,
511
- body,
512
- });
336
+ b.m("GET").h(headers).b(body);
337
+ return b.build();
513
338
  };
514
339
  export const se_DescribeEksAnywhereSubscriptionCommand = async (input, context) => {
515
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
340
+ const b = rb(input, context);
516
341
  const headers = {};
517
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/eks-anywhere-subscriptions/{id}";
518
- resolvedPath = __resolvedPath(resolvedPath, input, "id", () => input.id, "{id}", false);
342
+ b.bp("/eks-anywhere-subscriptions/{id}");
343
+ b.p("id", () => input.id, "{id}", false);
519
344
  let body;
520
- return new __HttpRequest({
521
- protocol,
522
- hostname,
523
- port,
524
- method: "GET",
525
- headers,
526
- path: resolvedPath,
527
- body,
528
- });
345
+ b.m("GET").h(headers).b(body);
346
+ return b.build();
529
347
  };
530
348
  export const se_DescribeFargateProfileCommand = async (input, context) => {
531
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
349
+ const b = rb(input, context);
532
350
  const headers = {};
533
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
534
- "/clusters/{clusterName}/fargate-profiles/{fargateProfileName}";
535
- resolvedPath = __resolvedPath(resolvedPath, input, "clusterName", () => input.clusterName, "{clusterName}", false);
536
- resolvedPath = __resolvedPath(resolvedPath, input, "fargateProfileName", () => input.fargateProfileName, "{fargateProfileName}", false);
351
+ b.bp("/clusters/{clusterName}/fargate-profiles/{fargateProfileName}");
352
+ b.p("clusterName", () => input.clusterName, "{clusterName}", false);
353
+ b.p("fargateProfileName", () => input.fargateProfileName, "{fargateProfileName}", false);
537
354
  let body;
538
- return new __HttpRequest({
539
- protocol,
540
- hostname,
541
- port,
542
- method: "GET",
543
- headers,
544
- path: resolvedPath,
545
- body,
546
- });
355
+ b.m("GET").h(headers).b(body);
356
+ return b.build();
547
357
  };
548
358
  export const se_DescribeIdentityProviderConfigCommand = async (input, context) => {
549
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
359
+ const b = rb(input, context);
550
360
  const headers = {
551
361
  "content-type": "application/json",
552
362
  };
553
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
554
- "/clusters/{clusterName}/identity-provider-configs/describe";
555
- resolvedPath = __resolvedPath(resolvedPath, input, "clusterName", () => input.clusterName, "{clusterName}", false);
363
+ b.bp("/clusters/{clusterName}/identity-provider-configs/describe");
364
+ b.p("clusterName", () => input.clusterName, "{clusterName}", false);
556
365
  let body;
557
366
  body = JSON.stringify(take(input, {
558
367
  identityProviderConfig: (_) => _json(_),
559
368
  }));
560
- return new __HttpRequest({
561
- protocol,
562
- hostname,
563
- port,
564
- method: "POST",
565
- headers,
566
- path: resolvedPath,
567
- body,
568
- });
369
+ b.m("POST").h(headers).b(body);
370
+ return b.build();
371
+ };
372
+ export const se_DescribeInsightCommand = async (input, context) => {
373
+ const b = rb(input, context);
374
+ const headers = {};
375
+ b.bp("/clusters/{clusterName}/insights/{id}");
376
+ b.p("clusterName", () => input.clusterName, "{clusterName}", false);
377
+ b.p("id", () => input.id, "{id}", false);
378
+ let body;
379
+ b.m("GET").h(headers).b(body);
380
+ return b.build();
569
381
  };
570
382
  export const se_DescribeNodegroupCommand = async (input, context) => {
571
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
383
+ const b = rb(input, context);
572
384
  const headers = {};
573
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
574
- "/clusters/{clusterName}/node-groups/{nodegroupName}";
575
- resolvedPath = __resolvedPath(resolvedPath, input, "clusterName", () => input.clusterName, "{clusterName}", false);
576
- resolvedPath = __resolvedPath(resolvedPath, input, "nodegroupName", () => input.nodegroupName, "{nodegroupName}", false);
385
+ b.bp("/clusters/{clusterName}/node-groups/{nodegroupName}");
386
+ b.p("clusterName", () => input.clusterName, "{clusterName}", false);
387
+ b.p("nodegroupName", () => input.nodegroupName, "{nodegroupName}", false);
577
388
  let body;
578
- return new __HttpRequest({
579
- protocol,
580
- hostname,
581
- port,
582
- method: "GET",
583
- headers,
584
- path: resolvedPath,
585
- body,
586
- });
389
+ b.m("GET").h(headers).b(body);
390
+ return b.build();
587
391
  };
588
392
  export const se_DescribePodIdentityAssociationCommand = async (input, context) => {
589
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
393
+ const b = rb(input, context);
590
394
  const headers = {};
591
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
592
- "/clusters/{clusterName}/pod-identity-associations/{associationId}";
593
- resolvedPath = __resolvedPath(resolvedPath, input, "clusterName", () => input.clusterName, "{clusterName}", false);
594
- resolvedPath = __resolvedPath(resolvedPath, input, "associationId", () => input.associationId, "{associationId}", false);
395
+ b.bp("/clusters/{clusterName}/pod-identity-associations/{associationId}");
396
+ b.p("clusterName", () => input.clusterName, "{clusterName}", false);
397
+ b.p("associationId", () => input.associationId, "{associationId}", false);
595
398
  let body;
596
- return new __HttpRequest({
597
- protocol,
598
- hostname,
599
- port,
600
- method: "GET",
601
- headers,
602
- path: resolvedPath,
603
- body,
604
- });
399
+ b.m("GET").h(headers).b(body);
400
+ return b.build();
605
401
  };
606
402
  export const se_DescribeUpdateCommand = async (input, context) => {
607
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
403
+ const b = rb(input, context);
608
404
  const headers = {};
609
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/clusters/{name}/updates/{updateId}";
610
- resolvedPath = __resolvedPath(resolvedPath, input, "name", () => input.name, "{name}", false);
611
- resolvedPath = __resolvedPath(resolvedPath, input, "updateId", () => input.updateId, "{updateId}", false);
405
+ b.bp("/clusters/{name}/updates/{updateId}");
406
+ b.p("name", () => input.name, "{name}", false);
407
+ b.p("updateId", () => input.updateId, "{updateId}", false);
612
408
  const query = map({
613
- nodegroupName: [, input.nodegroupName],
614
- addonName: [, input.addonName],
409
+ [_nN]: [, input[_nN]],
410
+ [_aN]: [, input[_aN]],
615
411
  });
616
412
  let body;
617
- return new __HttpRequest({
618
- protocol,
619
- hostname,
620
- port,
621
- method: "GET",
622
- headers,
623
- path: resolvedPath,
624
- query,
625
- body,
626
- });
413
+ b.m("GET").h(headers).q(query).b(body);
414
+ return b.build();
627
415
  };
628
416
  export const se_DisassociateAccessPolicyCommand = async (input, context) => {
629
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
417
+ const b = rb(input, context);
630
418
  const headers = {};
631
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
632
- "/clusters/{clusterName}/access-entries/{principalArn}/access-policies/{policyArn}";
633
- resolvedPath = __resolvedPath(resolvedPath, input, "clusterName", () => input.clusterName, "{clusterName}", false);
634
- resolvedPath = __resolvedPath(resolvedPath, input, "principalArn", () => input.principalArn, "{principalArn}", false);
635
- resolvedPath = __resolvedPath(resolvedPath, input, "policyArn", () => input.policyArn, "{policyArn}", false);
419
+ b.bp("/clusters/{clusterName}/access-entries/{principalArn}/access-policies/{policyArn}");
420
+ b.p("clusterName", () => input.clusterName, "{clusterName}", false);
421
+ b.p("principalArn", () => input.principalArn, "{principalArn}", false);
422
+ b.p("policyArn", () => input.policyArn, "{policyArn}", false);
636
423
  let body;
637
- return new __HttpRequest({
638
- protocol,
639
- hostname,
640
- port,
641
- method: "DELETE",
642
- headers,
643
- path: resolvedPath,
644
- body,
645
- });
424
+ b.m("DELETE").h(headers).b(body);
425
+ return b.build();
646
426
  };
647
427
  export const se_DisassociateIdentityProviderConfigCommand = async (input, context) => {
648
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
428
+ const b = rb(input, context);
649
429
  const headers = {
650
430
  "content-type": "application/json",
651
431
  };
652
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
653
- "/clusters/{clusterName}/identity-provider-configs/disassociate";
654
- resolvedPath = __resolvedPath(resolvedPath, input, "clusterName", () => input.clusterName, "{clusterName}", false);
432
+ b.bp("/clusters/{clusterName}/identity-provider-configs/disassociate");
433
+ b.p("clusterName", () => input.clusterName, "{clusterName}", false);
655
434
  let body;
656
435
  body = JSON.stringify(take(input, {
657
436
  clientRequestToken: [true, (_) => _ ?? generateIdempotencyToken()],
658
437
  identityProviderConfig: (_) => _json(_),
659
438
  }));
660
- return new __HttpRequest({
661
- protocol,
662
- hostname,
663
- port,
664
- method: "POST",
665
- headers,
666
- path: resolvedPath,
667
- body,
668
- });
439
+ b.m("POST").h(headers).b(body);
440
+ return b.build();
669
441
  };
670
442
  export const se_ListAccessEntriesCommand = async (input, context) => {
671
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
443
+ const b = rb(input, context);
672
444
  const headers = {};
673
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/clusters/{clusterName}/access-entries";
674
- resolvedPath = __resolvedPath(resolvedPath, input, "clusterName", () => input.clusterName, "{clusterName}", false);
445
+ b.bp("/clusters/{clusterName}/access-entries");
446
+ b.p("clusterName", () => input.clusterName, "{clusterName}", false);
675
447
  const query = map({
676
- associatedPolicyArn: [, input.associatedPolicyArn],
677
- maxResults: [() => input.maxResults !== void 0, () => input.maxResults.toString()],
678
- nextToken: [, input.nextToken],
448
+ [_aPA]: [, input[_aPA]],
449
+ [_mR]: [() => input.maxResults !== void 0, () => input[_mR].toString()],
450
+ [_nT]: [, input[_nT]],
679
451
  });
680
452
  let body;
681
- return new __HttpRequest({
682
- protocol,
683
- hostname,
684
- port,
685
- method: "GET",
686
- headers,
687
- path: resolvedPath,
688
- query,
689
- body,
690
- });
453
+ b.m("GET").h(headers).q(query).b(body);
454
+ return b.build();
691
455
  };
692
456
  export const se_ListAccessPoliciesCommand = async (input, context) => {
693
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
457
+ const b = rb(input, context);
694
458
  const headers = {};
695
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/access-policies";
459
+ b.bp("/access-policies");
696
460
  const query = map({
697
- maxResults: [() => input.maxResults !== void 0, () => input.maxResults.toString()],
698
- nextToken: [, input.nextToken],
461
+ [_mR]: [() => input.maxResults !== void 0, () => input[_mR].toString()],
462
+ [_nT]: [, input[_nT]],
699
463
  });
700
464
  let body;
701
- return new __HttpRequest({
702
- protocol,
703
- hostname,
704
- port,
705
- method: "GET",
706
- headers,
707
- path: resolvedPath,
708
- query,
709
- body,
710
- });
465
+ b.m("GET").h(headers).q(query).b(body);
466
+ return b.build();
711
467
  };
712
468
  export const se_ListAddonsCommand = async (input, context) => {
713
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
469
+ const b = rb(input, context);
714
470
  const headers = {};
715
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/clusters/{clusterName}/addons";
716
- resolvedPath = __resolvedPath(resolvedPath, input, "clusterName", () => input.clusterName, "{clusterName}", false);
471
+ b.bp("/clusters/{clusterName}/addons");
472
+ b.p("clusterName", () => input.clusterName, "{clusterName}", false);
717
473
  const query = map({
718
- maxResults: [() => input.maxResults !== void 0, () => input.maxResults.toString()],
719
- nextToken: [, input.nextToken],
474
+ [_mR]: [() => input.maxResults !== void 0, () => input[_mR].toString()],
475
+ [_nT]: [, input[_nT]],
720
476
  });
721
477
  let body;
722
- return new __HttpRequest({
723
- protocol,
724
- hostname,
725
- port,
726
- method: "GET",
727
- headers,
728
- path: resolvedPath,
729
- query,
730
- body,
731
- });
478
+ b.m("GET").h(headers).q(query).b(body);
479
+ return b.build();
732
480
  };
733
481
  export const se_ListAssociatedAccessPoliciesCommand = async (input, context) => {
734
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
482
+ const b = rb(input, context);
735
483
  const headers = {};
736
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
737
- "/clusters/{clusterName}/access-entries/{principalArn}/access-policies";
738
- resolvedPath = __resolvedPath(resolvedPath, input, "clusterName", () => input.clusterName, "{clusterName}", false);
739
- resolvedPath = __resolvedPath(resolvedPath, input, "principalArn", () => input.principalArn, "{principalArn}", false);
484
+ b.bp("/clusters/{clusterName}/access-entries/{principalArn}/access-policies");
485
+ b.p("clusterName", () => input.clusterName, "{clusterName}", false);
486
+ b.p("principalArn", () => input.principalArn, "{principalArn}", false);
740
487
  const query = map({
741
- maxResults: [() => input.maxResults !== void 0, () => input.maxResults.toString()],
742
- nextToken: [, input.nextToken],
488
+ [_mR]: [() => input.maxResults !== void 0, () => input[_mR].toString()],
489
+ [_nT]: [, input[_nT]],
743
490
  });
744
491
  let body;
745
- return new __HttpRequest({
746
- protocol,
747
- hostname,
748
- port,
749
- method: "GET",
750
- headers,
751
- path: resolvedPath,
752
- query,
753
- body,
754
- });
492
+ b.m("GET").h(headers).q(query).b(body);
493
+ return b.build();
755
494
  };
756
495
  export const se_ListClustersCommand = async (input, context) => {
757
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
496
+ const b = rb(input, context);
758
497
  const headers = {};
759
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/clusters";
498
+ b.bp("/clusters");
760
499
  const query = map({
761
- maxResults: [() => input.maxResults !== void 0, () => input.maxResults.toString()],
762
- nextToken: [, input.nextToken],
763
- include: [() => input.include !== void 0, () => (input.include || []).map((_entry) => _entry)],
500
+ [_mR]: [() => input.maxResults !== void 0, () => input[_mR].toString()],
501
+ [_nT]: [, input[_nT]],
502
+ [_i]: [() => input.include !== void 0, () => (input[_i] || []).map((_entry) => _entry)],
764
503
  });
765
504
  let body;
766
- return new __HttpRequest({
767
- protocol,
768
- hostname,
769
- port,
770
- method: "GET",
771
- headers,
772
- path: resolvedPath,
773
- query,
774
- body,
775
- });
505
+ b.m("GET").h(headers).q(query).b(body);
506
+ return b.build();
776
507
  };
777
508
  export const se_ListEksAnywhereSubscriptionsCommand = async (input, context) => {
778
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
509
+ const b = rb(input, context);
779
510
  const headers = {};
780
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/eks-anywhere-subscriptions";
511
+ b.bp("/eks-anywhere-subscriptions");
781
512
  const query = map({
782
- maxResults: [() => input.maxResults !== void 0, () => input.maxResults.toString()],
783
- nextToken: [, input.nextToken],
784
- includeStatus: [
785
- () => input.includeStatus !== void 0,
786
- () => (input.includeStatus || []).map((_entry) => _entry),
787
- ],
513
+ [_mR]: [() => input.maxResults !== void 0, () => input[_mR].toString()],
514
+ [_nT]: [, input[_nT]],
515
+ [_iS]: [() => input.includeStatus !== void 0, () => (input[_iS] || []).map((_entry) => _entry)],
788
516
  });
789
517
  let body;
790
- return new __HttpRequest({
791
- protocol,
792
- hostname,
793
- port,
794
- method: "GET",
795
- headers,
796
- path: resolvedPath,
797
- query,
798
- body,
799
- });
518
+ b.m("GET").h(headers).q(query).b(body);
519
+ return b.build();
800
520
  };
801
521
  export const se_ListFargateProfilesCommand = async (input, context) => {
802
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
522
+ const b = rb(input, context);
803
523
  const headers = {};
804
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/clusters/{clusterName}/fargate-profiles";
805
- resolvedPath = __resolvedPath(resolvedPath, input, "clusterName", () => input.clusterName, "{clusterName}", false);
524
+ b.bp("/clusters/{clusterName}/fargate-profiles");
525
+ b.p("clusterName", () => input.clusterName, "{clusterName}", false);
806
526
  const query = map({
807
- maxResults: [() => input.maxResults !== void 0, () => input.maxResults.toString()],
808
- nextToken: [, input.nextToken],
527
+ [_mR]: [() => input.maxResults !== void 0, () => input[_mR].toString()],
528
+ [_nT]: [, input[_nT]],
809
529
  });
810
530
  let body;
811
- return new __HttpRequest({
812
- protocol,
813
- hostname,
814
- port,
815
- method: "GET",
816
- headers,
817
- path: resolvedPath,
818
- query,
819
- body,
820
- });
531
+ b.m("GET").h(headers).q(query).b(body);
532
+ return b.build();
821
533
  };
822
534
  export const se_ListIdentityProviderConfigsCommand = async (input, context) => {
823
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
535
+ const b = rb(input, context);
824
536
  const headers = {};
825
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
826
- "/clusters/{clusterName}/identity-provider-configs";
827
- resolvedPath = __resolvedPath(resolvedPath, input, "clusterName", () => input.clusterName, "{clusterName}", false);
537
+ b.bp("/clusters/{clusterName}/identity-provider-configs");
538
+ b.p("clusterName", () => input.clusterName, "{clusterName}", false);
828
539
  const query = map({
829
- maxResults: [() => input.maxResults !== void 0, () => input.maxResults.toString()],
830
- nextToken: [, input.nextToken],
540
+ [_mR]: [() => input.maxResults !== void 0, () => input[_mR].toString()],
541
+ [_nT]: [, input[_nT]],
831
542
  });
832
543
  let body;
833
- return new __HttpRequest({
834
- protocol,
835
- hostname,
836
- port,
837
- method: "GET",
838
- headers,
839
- path: resolvedPath,
840
- query,
841
- body,
842
- });
544
+ b.m("GET").h(headers).q(query).b(body);
545
+ return b.build();
546
+ };
547
+ export const se_ListInsightsCommand = async (input, context) => {
548
+ const b = rb(input, context);
549
+ const headers = {
550
+ "content-type": "application/json",
551
+ };
552
+ b.bp("/clusters/{clusterName}/insights");
553
+ b.p("clusterName", () => input.clusterName, "{clusterName}", false);
554
+ let body;
555
+ body = JSON.stringify(take(input, {
556
+ filter: (_) => _json(_),
557
+ maxResults: [],
558
+ nextToken: [],
559
+ }));
560
+ b.m("POST").h(headers).b(body);
561
+ return b.build();
843
562
  };
844
563
  export const se_ListNodegroupsCommand = async (input, context) => {
845
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
564
+ const b = rb(input, context);
846
565
  const headers = {};
847
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/clusters/{clusterName}/node-groups";
848
- resolvedPath = __resolvedPath(resolvedPath, input, "clusterName", () => input.clusterName, "{clusterName}", false);
566
+ b.bp("/clusters/{clusterName}/node-groups");
567
+ b.p("clusterName", () => input.clusterName, "{clusterName}", false);
849
568
  const query = map({
850
- maxResults: [() => input.maxResults !== void 0, () => input.maxResults.toString()],
851
- nextToken: [, input.nextToken],
569
+ [_mR]: [() => input.maxResults !== void 0, () => input[_mR].toString()],
570
+ [_nT]: [, input[_nT]],
852
571
  });
853
572
  let body;
854
- return new __HttpRequest({
855
- protocol,
856
- hostname,
857
- port,
858
- method: "GET",
859
- headers,
860
- path: resolvedPath,
861
- query,
862
- body,
863
- });
573
+ b.m("GET").h(headers).q(query).b(body);
574
+ return b.build();
864
575
  };
865
576
  export const se_ListPodIdentityAssociationsCommand = async (input, context) => {
866
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
577
+ const b = rb(input, context);
867
578
  const headers = {};
868
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
869
- "/clusters/{clusterName}/pod-identity-associations";
870
- resolvedPath = __resolvedPath(resolvedPath, input, "clusterName", () => input.clusterName, "{clusterName}", false);
579
+ b.bp("/clusters/{clusterName}/pod-identity-associations");
580
+ b.p("clusterName", () => input.clusterName, "{clusterName}", false);
871
581
  const query = map({
872
- namespace: [, input.namespace],
873
- serviceAccount: [, input.serviceAccount],
874
- maxResults: [() => input.maxResults !== void 0, () => input.maxResults.toString()],
875
- nextToken: [, input.nextToken],
582
+ [_n]: [, input[_n]],
583
+ [_sA]: [, input[_sA]],
584
+ [_mR]: [() => input.maxResults !== void 0, () => input[_mR].toString()],
585
+ [_nT]: [, input[_nT]],
876
586
  });
877
587
  let body;
878
- return new __HttpRequest({
879
- protocol,
880
- hostname,
881
- port,
882
- method: "GET",
883
- headers,
884
- path: resolvedPath,
885
- query,
886
- body,
887
- });
588
+ b.m("GET").h(headers).q(query).b(body);
589
+ return b.build();
888
590
  };
889
591
  export const se_ListTagsForResourceCommand = async (input, context) => {
890
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
592
+ const b = rb(input, context);
891
593
  const headers = {};
892
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/tags/{resourceArn}";
893
- resolvedPath = __resolvedPath(resolvedPath, input, "resourceArn", () => input.resourceArn, "{resourceArn}", false);
594
+ b.bp("/tags/{resourceArn}");
595
+ b.p("resourceArn", () => input.resourceArn, "{resourceArn}", false);
894
596
  let body;
895
- return new __HttpRequest({
896
- protocol,
897
- hostname,
898
- port,
899
- method: "GET",
900
- headers,
901
- path: resolvedPath,
902
- body,
903
- });
597
+ b.m("GET").h(headers).b(body);
598
+ return b.build();
904
599
  };
905
600
  export const se_ListUpdatesCommand = async (input, context) => {
906
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
601
+ const b = rb(input, context);
907
602
  const headers = {};
908
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/clusters/{name}/updates";
909
- resolvedPath = __resolvedPath(resolvedPath, input, "name", () => input.name, "{name}", false);
603
+ b.bp("/clusters/{name}/updates");
604
+ b.p("name", () => input.name, "{name}", false);
910
605
  const query = map({
911
- nodegroupName: [, input.nodegroupName],
912
- addonName: [, input.addonName],
913
- nextToken: [, input.nextToken],
914
- maxResults: [() => input.maxResults !== void 0, () => input.maxResults.toString()],
606
+ [_nN]: [, input[_nN]],
607
+ [_aN]: [, input[_aN]],
608
+ [_nT]: [, input[_nT]],
609
+ [_mR]: [() => input.maxResults !== void 0, () => input[_mR].toString()],
915
610
  });
916
611
  let body;
917
- return new __HttpRequest({
918
- protocol,
919
- hostname,
920
- port,
921
- method: "GET",
922
- headers,
923
- path: resolvedPath,
924
- query,
925
- body,
926
- });
612
+ b.m("GET").h(headers).q(query).b(body);
613
+ return b.build();
927
614
  };
928
615
  export const se_RegisterClusterCommand = async (input, context) => {
929
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
616
+ const b = rb(input, context);
930
617
  const headers = {
931
618
  "content-type": "application/json",
932
619
  };
933
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/cluster-registrations";
620
+ b.bp("/cluster-registrations");
934
621
  let body;
935
622
  body = JSON.stringify(take(input, {
936
623
  clientRequestToken: [true, (_) => _ ?? generateIdempotencyToken()],
@@ -938,94 +625,63 @@ export const se_RegisterClusterCommand = async (input, context) => {
938
625
  name: [],
939
626
  tags: (_) => _json(_),
940
627
  }));
941
- return new __HttpRequest({
942
- protocol,
943
- hostname,
944
- port,
945
- method: "POST",
946
- headers,
947
- path: resolvedPath,
948
- body,
949
- });
628
+ b.m("POST").h(headers).b(body);
629
+ return b.build();
950
630
  };
951
631
  export const se_TagResourceCommand = async (input, context) => {
952
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
632
+ const b = rb(input, context);
953
633
  const headers = {
954
634
  "content-type": "application/json",
955
635
  };
956
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/tags/{resourceArn}";
957
- resolvedPath = __resolvedPath(resolvedPath, input, "resourceArn", () => input.resourceArn, "{resourceArn}", false);
636
+ b.bp("/tags/{resourceArn}");
637
+ b.p("resourceArn", () => input.resourceArn, "{resourceArn}", false);
958
638
  let body;
959
639
  body = JSON.stringify(take(input, {
960
640
  tags: (_) => _json(_),
961
641
  }));
962
- return new __HttpRequest({
963
- protocol,
964
- hostname,
965
- port,
966
- method: "POST",
967
- headers,
968
- path: resolvedPath,
969
- body,
970
- });
642
+ b.m("POST").h(headers).b(body);
643
+ return b.build();
971
644
  };
972
645
  export const se_UntagResourceCommand = async (input, context) => {
973
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
646
+ const b = rb(input, context);
974
647
  const headers = {};
975
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/tags/{resourceArn}";
976
- resolvedPath = __resolvedPath(resolvedPath, input, "resourceArn", () => input.resourceArn, "{resourceArn}", false);
648
+ b.bp("/tags/{resourceArn}");
649
+ b.p("resourceArn", () => input.resourceArn, "{resourceArn}", false);
977
650
  const query = map({
978
- tagKeys: [
651
+ [_tK]: [
979
652
  __expectNonNull(input.tagKeys, `tagKeys`) != null,
980
- () => (input.tagKeys || []).map((_entry) => _entry),
653
+ () => (input[_tK] || []).map((_entry) => _entry),
981
654
  ],
982
655
  });
983
656
  let body;
984
- return new __HttpRequest({
985
- protocol,
986
- hostname,
987
- port,
988
- method: "DELETE",
989
- headers,
990
- path: resolvedPath,
991
- query,
992
- body,
993
- });
657
+ b.m("DELETE").h(headers).q(query).b(body);
658
+ return b.build();
994
659
  };
995
660
  export const se_UpdateAccessEntryCommand = async (input, context) => {
996
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
661
+ const b = rb(input, context);
997
662
  const headers = {
998
663
  "content-type": "application/json",
999
664
  };
1000
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
1001
- "/clusters/{clusterName}/access-entries/{principalArn}";
1002
- resolvedPath = __resolvedPath(resolvedPath, input, "clusterName", () => input.clusterName, "{clusterName}", false);
1003
- resolvedPath = __resolvedPath(resolvedPath, input, "principalArn", () => input.principalArn, "{principalArn}", false);
665
+ b.bp("/clusters/{clusterName}/access-entries/{principalArn}");
666
+ b.p("clusterName", () => input.clusterName, "{clusterName}", false);
667
+ b.p("principalArn", () => input.principalArn, "{principalArn}", false);
1004
668
  let body;
1005
669
  body = JSON.stringify(take(input, {
1006
670
  clientRequestToken: [true, (_) => _ ?? generateIdempotencyToken()],
1007
671
  kubernetesGroups: (_) => _json(_),
1008
672
  username: [],
1009
673
  }));
1010
- return new __HttpRequest({
1011
- protocol,
1012
- hostname,
1013
- port,
1014
- method: "POST",
1015
- headers,
1016
- path: resolvedPath,
1017
- body,
1018
- });
674
+ b.m("POST").h(headers).b(body);
675
+ return b.build();
1019
676
  };
1020
677
  export const se_UpdateAddonCommand = async (input, context) => {
1021
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
678
+ const b = rb(input, context);
1022
679
  const headers = {
1023
680
  "content-type": "application/json",
1024
681
  };
1025
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
1026
- "/clusters/{clusterName}/addons/{addonName}/update";
1027
- resolvedPath = __resolvedPath(resolvedPath, input, "clusterName", () => input.clusterName, "{clusterName}", false);
1028
- resolvedPath = __resolvedPath(resolvedPath, input, "addonName", () => input.addonName, "{addonName}", false);
682
+ b.bp("/clusters/{clusterName}/addons/{addonName}/update");
683
+ b.p("clusterName", () => input.clusterName, "{clusterName}", false);
684
+ b.p("addonName", () => input.addonName, "{addonName}", false);
1029
685
  let body;
1030
686
  body = JSON.stringify(take(input, {
1031
687
  addonVersion: [],
@@ -1034,23 +690,16 @@ export const se_UpdateAddonCommand = async (input, context) => {
1034
690
  resolveConflicts: [],
1035
691
  serviceAccountRoleArn: [],
1036
692
  }));
1037
- return new __HttpRequest({
1038
- protocol,
1039
- hostname,
1040
- port,
1041
- method: "POST",
1042
- headers,
1043
- path: resolvedPath,
1044
- body,
1045
- });
693
+ b.m("POST").h(headers).b(body);
694
+ return b.build();
1046
695
  };
1047
696
  export const se_UpdateClusterConfigCommand = async (input, context) => {
1048
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
697
+ const b = rb(input, context);
1049
698
  const headers = {
1050
699
  "content-type": "application/json",
1051
700
  };
1052
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/clusters/{name}/update-config";
1053
- resolvedPath = __resolvedPath(resolvedPath, input, "name", () => input.name, "{name}", false);
701
+ b.bp("/clusters/{name}/update-config");
702
+ b.p("name", () => input.name, "{name}", false);
1054
703
  let body;
1055
704
  body = JSON.stringify(take(input, {
1056
705
  accessConfig: (_) => _json(_),
@@ -1058,69 +707,47 @@ export const se_UpdateClusterConfigCommand = async (input, context) => {
1058
707
  logging: (_) => _json(_),
1059
708
  resourcesVpcConfig: (_) => _json(_),
1060
709
  }));
1061
- return new __HttpRequest({
1062
- protocol,
1063
- hostname,
1064
- port,
1065
- method: "POST",
1066
- headers,
1067
- path: resolvedPath,
1068
- body,
1069
- });
710
+ b.m("POST").h(headers).b(body);
711
+ return b.build();
1070
712
  };
1071
713
  export const se_UpdateClusterVersionCommand = async (input, context) => {
1072
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
714
+ const b = rb(input, context);
1073
715
  const headers = {
1074
716
  "content-type": "application/json",
1075
717
  };
1076
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/clusters/{name}/updates";
1077
- resolvedPath = __resolvedPath(resolvedPath, input, "name", () => input.name, "{name}", false);
718
+ b.bp("/clusters/{name}/updates");
719
+ b.p("name", () => input.name, "{name}", false);
1078
720
  let body;
1079
721
  body = JSON.stringify(take(input, {
1080
722
  clientRequestToken: [true, (_) => _ ?? generateIdempotencyToken()],
1081
723
  version: [],
1082
724
  }));
1083
- return new __HttpRequest({
1084
- protocol,
1085
- hostname,
1086
- port,
1087
- method: "POST",
1088
- headers,
1089
- path: resolvedPath,
1090
- body,
1091
- });
725
+ b.m("POST").h(headers).b(body);
726
+ return b.build();
1092
727
  };
1093
728
  export const se_UpdateEksAnywhereSubscriptionCommand = async (input, context) => {
1094
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
729
+ const b = rb(input, context);
1095
730
  const headers = {
1096
731
  "content-type": "application/json",
1097
732
  };
1098
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/eks-anywhere-subscriptions/{id}";
1099
- resolvedPath = __resolvedPath(resolvedPath, input, "id", () => input.id, "{id}", false);
733
+ b.bp("/eks-anywhere-subscriptions/{id}");
734
+ b.p("id", () => input.id, "{id}", false);
1100
735
  let body;
1101
736
  body = JSON.stringify(take(input, {
1102
737
  autoRenew: [],
1103
738
  clientRequestToken: [true, (_) => _ ?? generateIdempotencyToken()],
1104
739
  }));
1105
- return new __HttpRequest({
1106
- protocol,
1107
- hostname,
1108
- port,
1109
- method: "POST",
1110
- headers,
1111
- path: resolvedPath,
1112
- body,
1113
- });
740
+ b.m("POST").h(headers).b(body);
741
+ return b.build();
1114
742
  };
1115
743
  export const se_UpdateNodegroupConfigCommand = async (input, context) => {
1116
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
744
+ const b = rb(input, context);
1117
745
  const headers = {
1118
746
  "content-type": "application/json",
1119
747
  };
1120
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
1121
- "/clusters/{clusterName}/node-groups/{nodegroupName}/update-config";
1122
- resolvedPath = __resolvedPath(resolvedPath, input, "clusterName", () => input.clusterName, "{clusterName}", false);
1123
- resolvedPath = __resolvedPath(resolvedPath, input, "nodegroupName", () => input.nodegroupName, "{nodegroupName}", false);
748
+ b.bp("/clusters/{clusterName}/node-groups/{nodegroupName}/update-config");
749
+ b.p("clusterName", () => input.clusterName, "{clusterName}", false);
750
+ b.p("nodegroupName", () => input.nodegroupName, "{nodegroupName}", false);
1124
751
  let body;
1125
752
  body = JSON.stringify(take(input, {
1126
753
  clientRequestToken: [true, (_) => _ ?? generateIdempotencyToken()],
@@ -1129,25 +756,17 @@ export const se_UpdateNodegroupConfigCommand = async (input, context) => {
1129
756
  taints: (_) => _json(_),
1130
757
  updateConfig: (_) => _json(_),
1131
758
  }));
1132
- return new __HttpRequest({
1133
- protocol,
1134
- hostname,
1135
- port,
1136
- method: "POST",
1137
- headers,
1138
- path: resolvedPath,
1139
- body,
1140
- });
759
+ b.m("POST").h(headers).b(body);
760
+ return b.build();
1141
761
  };
1142
762
  export const se_UpdateNodegroupVersionCommand = async (input, context) => {
1143
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
763
+ const b = rb(input, context);
1144
764
  const headers = {
1145
765
  "content-type": "application/json",
1146
766
  };
1147
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
1148
- "/clusters/{clusterName}/node-groups/{nodegroupName}/update-version";
1149
- resolvedPath = __resolvedPath(resolvedPath, input, "clusterName", () => input.clusterName, "{clusterName}", false);
1150
- resolvedPath = __resolvedPath(resolvedPath, input, "nodegroupName", () => input.nodegroupName, "{nodegroupName}", false);
767
+ b.bp("/clusters/{clusterName}/node-groups/{nodegroupName}/update-version");
768
+ b.p("clusterName", () => input.clusterName, "{clusterName}", false);
769
+ b.p("nodegroupName", () => input.nodegroupName, "{nodegroupName}", false);
1151
770
  let body;
1152
771
  body = JSON.stringify(take(input, {
1153
772
  clientRequestToken: [true, (_) => _ ?? generateIdempotencyToken()],
@@ -1156,39 +775,24 @@ export const se_UpdateNodegroupVersionCommand = async (input, context) => {
1156
775
  releaseVersion: [],
1157
776
  version: [],
1158
777
  }));
1159
- return new __HttpRequest({
1160
- protocol,
1161
- hostname,
1162
- port,
1163
- method: "POST",
1164
- headers,
1165
- path: resolvedPath,
1166
- body,
1167
- });
778
+ b.m("POST").h(headers).b(body);
779
+ return b.build();
1168
780
  };
1169
781
  export const se_UpdatePodIdentityAssociationCommand = async (input, context) => {
1170
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
782
+ const b = rb(input, context);
1171
783
  const headers = {
1172
784
  "content-type": "application/json",
1173
785
  };
1174
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
1175
- "/clusters/{clusterName}/pod-identity-associations/{associationId}";
1176
- resolvedPath = __resolvedPath(resolvedPath, input, "clusterName", () => input.clusterName, "{clusterName}", false);
1177
- resolvedPath = __resolvedPath(resolvedPath, input, "associationId", () => input.associationId, "{associationId}", false);
786
+ b.bp("/clusters/{clusterName}/pod-identity-associations/{associationId}");
787
+ b.p("clusterName", () => input.clusterName, "{clusterName}", false);
788
+ b.p("associationId", () => input.associationId, "{associationId}", false);
1178
789
  let body;
1179
790
  body = JSON.stringify(take(input, {
1180
791
  clientRequestToken: [true, (_) => _ ?? generateIdempotencyToken()],
1181
792
  roleArn: [],
1182
793
  }));
1183
- return new __HttpRequest({
1184
- protocol,
1185
- hostname,
1186
- port,
1187
- method: "POST",
1188
- headers,
1189
- path: resolvedPath,
1190
- body,
1191
- });
794
+ b.m("POST").h(headers).b(body);
795
+ return b.build();
1192
796
  };
1193
797
  export const de_AssociateAccessPolicyCommand = async (output, context) => {
1194
798
  if (output.statusCode !== 200 && output.statusCode >= 300) {
@@ -2353,6 +1957,48 @@ const de_DescribeIdentityProviderConfigCommandError = async (output, context) =>
2353
1957
  });
2354
1958
  }
2355
1959
  };
1960
+ export const de_DescribeInsightCommand = async (output, context) => {
1961
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
1962
+ return de_DescribeInsightCommandError(output, context);
1963
+ }
1964
+ const contents = map({
1965
+ $metadata: deserializeMetadata(output),
1966
+ });
1967
+ const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
1968
+ const doc = take(data, {
1969
+ insight: (_) => de_Insight(_, context),
1970
+ });
1971
+ Object.assign(contents, doc);
1972
+ return contents;
1973
+ };
1974
+ const de_DescribeInsightCommandError = async (output, context) => {
1975
+ const parsedOutput = {
1976
+ ...output,
1977
+ body: await parseErrorBody(output.body, context),
1978
+ };
1979
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1980
+ switch (errorCode) {
1981
+ case "InvalidParameterException":
1982
+ case "com.amazonaws.eks#InvalidParameterException":
1983
+ throw await de_InvalidParameterExceptionRes(parsedOutput, context);
1984
+ case "InvalidRequestException":
1985
+ case "com.amazonaws.eks#InvalidRequestException":
1986
+ throw await de_InvalidRequestExceptionRes(parsedOutput, context);
1987
+ case "ResourceNotFoundException":
1988
+ case "com.amazonaws.eks#ResourceNotFoundException":
1989
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1990
+ case "ServerException":
1991
+ case "com.amazonaws.eks#ServerException":
1992
+ throw await de_ServerExceptionRes(parsedOutput, context);
1993
+ default:
1994
+ const parsedBody = parsedOutput.body;
1995
+ return throwDefaultError({
1996
+ output,
1997
+ parsedBody,
1998
+ errorCode,
1999
+ });
2000
+ }
2001
+ };
2356
2002
  export const de_DescribeNodegroupCommand = async (output, context) => {
2357
2003
  if (output.statusCode !== 200 && output.statusCode >= 300) {
2358
2004
  return de_DescribeNodegroupCommandError(output, context);
@@ -2905,6 +2551,49 @@ const de_ListIdentityProviderConfigsCommandError = async (output, context) => {
2905
2551
  });
2906
2552
  }
2907
2553
  };
2554
+ export const de_ListInsightsCommand = async (output, context) => {
2555
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
2556
+ return de_ListInsightsCommandError(output, context);
2557
+ }
2558
+ const contents = map({
2559
+ $metadata: deserializeMetadata(output),
2560
+ });
2561
+ const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
2562
+ const doc = take(data, {
2563
+ insights: (_) => de_InsightSummaries(_, context),
2564
+ nextToken: __expectString,
2565
+ });
2566
+ Object.assign(contents, doc);
2567
+ return contents;
2568
+ };
2569
+ const de_ListInsightsCommandError = async (output, context) => {
2570
+ const parsedOutput = {
2571
+ ...output,
2572
+ body: await parseErrorBody(output.body, context),
2573
+ };
2574
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2575
+ switch (errorCode) {
2576
+ case "InvalidParameterException":
2577
+ case "com.amazonaws.eks#InvalidParameterException":
2578
+ throw await de_InvalidParameterExceptionRes(parsedOutput, context);
2579
+ case "InvalidRequestException":
2580
+ case "com.amazonaws.eks#InvalidRequestException":
2581
+ throw await de_InvalidRequestExceptionRes(parsedOutput, context);
2582
+ case "ResourceNotFoundException":
2583
+ case "com.amazonaws.eks#ResourceNotFoundException":
2584
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
2585
+ case "ServerException":
2586
+ case "com.amazonaws.eks#ServerException":
2587
+ throw await de_ServerExceptionRes(parsedOutput, context);
2588
+ default:
2589
+ const parsedBody = parsedOutput.body;
2590
+ return throwDefaultError({
2591
+ output,
2592
+ parsedBody,
2593
+ errorCode,
2594
+ });
2595
+ }
2596
+ };
2908
2597
  export const de_ListNodegroupsCommand = async (output, context) => {
2909
2598
  if (output.statusCode !== 200 && output.statusCode >= 300) {
2910
2599
  return de_ListNodegroupsCommandError(output, context);
@@ -3808,6 +3497,21 @@ const de_AssociatedAccessPolicy = (output, context) => {
3808
3497
  policyArn: __expectString,
3809
3498
  });
3810
3499
  };
3500
+ const de_ClientStat = (output, context) => {
3501
+ return take(output, {
3502
+ lastRequestTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
3503
+ numberOfRequestsLast30Days: __expectInt32,
3504
+ userAgent: __expectString,
3505
+ });
3506
+ };
3507
+ const de_ClientStats = (output, context) => {
3508
+ const retVal = (output || [])
3509
+ .filter((e) => e != null)
3510
+ .map((entry) => {
3511
+ return de_ClientStat(entry, context);
3512
+ });
3513
+ return retVal;
3514
+ };
3811
3515
  const de_Cluster = (output, context) => {
3812
3516
  return take(output, {
3813
3517
  accessConfig: _json,
@@ -3842,6 +3546,23 @@ const de_ConnectorConfigResponse = (output, context) => {
3842
3546
  roleArn: __expectString,
3843
3547
  });
3844
3548
  };
3549
+ const de_DeprecationDetail = (output, context) => {
3550
+ return take(output, {
3551
+ clientStats: (_) => de_ClientStats(_, context),
3552
+ replacedWith: __expectString,
3553
+ startServingReplacementVersion: __expectString,
3554
+ stopServingVersion: __expectString,
3555
+ usage: __expectString,
3556
+ });
3557
+ };
3558
+ const de_DeprecationDetails = (output, context) => {
3559
+ const retVal = (output || [])
3560
+ .filter((e) => e != null)
3561
+ .map((entry) => {
3562
+ return de_DeprecationDetail(entry, context);
3563
+ });
3564
+ return retVal;
3565
+ };
3845
3566
  const de_EksAnywhereSubscription = (output, context) => {
3846
3567
  return take(output, {
3847
3568
  arn: __expectString,
@@ -3879,6 +3600,47 @@ const de_FargateProfile = (output, context) => {
3879
3600
  tags: _json,
3880
3601
  });
3881
3602
  };
3603
+ const de_Insight = (output, context) => {
3604
+ return take(output, {
3605
+ additionalInfo: _json,
3606
+ category: __expectString,
3607
+ categorySpecificSummary: (_) => de_InsightCategorySpecificSummary(_, context),
3608
+ description: __expectString,
3609
+ id: __expectString,
3610
+ insightStatus: _json,
3611
+ kubernetesVersion: __expectString,
3612
+ lastRefreshTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
3613
+ lastTransitionTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
3614
+ name: __expectString,
3615
+ recommendation: __expectString,
3616
+ resources: _json,
3617
+ });
3618
+ };
3619
+ const de_InsightCategorySpecificSummary = (output, context) => {
3620
+ return take(output, {
3621
+ deprecationDetails: (_) => de_DeprecationDetails(_, context),
3622
+ });
3623
+ };
3624
+ const de_InsightSummaries = (output, context) => {
3625
+ const retVal = (output || [])
3626
+ .filter((e) => e != null)
3627
+ .map((entry) => {
3628
+ return de_InsightSummary(entry, context);
3629
+ });
3630
+ return retVal;
3631
+ };
3632
+ const de_InsightSummary = (output, context) => {
3633
+ return take(output, {
3634
+ category: __expectString,
3635
+ description: __expectString,
3636
+ id: __expectString,
3637
+ insightStatus: _json,
3638
+ kubernetesVersion: __expectString,
3639
+ lastRefreshTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
3640
+ lastTransitionTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
3641
+ name: __expectString,
3642
+ });
3643
+ };
3882
3644
  const de_Nodegroup = (output, context) => {
3883
3645
  return take(output, {
3884
3646
  amiType: __expectString,
@@ -3941,6 +3703,22 @@ const isSerializableHeaderValue = (value) => value !== undefined &&
3941
3703
  value !== "" &&
3942
3704
  (!Object.getOwnPropertyNames(value).includes("length") || value.length != 0) &&
3943
3705
  (!Object.getOwnPropertyNames(value).includes("size") || value.size != 0);
3706
+ const _aN = "addonName";
3707
+ const _aPA = "associatedPolicyArn";
3708
+ const _aV = "addonVersion";
3709
+ const _i = "include";
3710
+ const _iS = "includeStatus";
3711
+ const _kV = "kubernetesVersion";
3712
+ const _mR = "maxResults";
3713
+ const _n = "namespace";
3714
+ const _nN = "nodegroupName";
3715
+ const _nT = "nextToken";
3716
+ const _o = "owners";
3717
+ const _p = "preserve";
3718
+ const _pu = "publishers";
3719
+ const _sA = "serviceAccount";
3720
+ const _t = "types";
3721
+ const _tK = "tagKeys";
3944
3722
  const parseBody = (streamBody, context) => collectBodyString(streamBody, context).then((encoded) => {
3945
3723
  if (encoded.length) {
3946
3724
  return JSON.parse(encoded);