@aws-sdk/client-eks 3.476.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.
@@ -1,3 +1,4 @@
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";
@@ -28,51 +29,35 @@ export const se_AssociateAccessPolicyCommand = async (input, context) => {
28
29
  });
29
30
  };
30
31
  export const se_AssociateEncryptionConfigCommand = async (input, context) => {
31
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
32
+ const b = rb(input, context);
32
33
  const headers = {
33
34
  "content-type": "application/json",
34
35
  };
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);
36
+ b.bp("/clusters/{clusterName}/encryption-config/associate");
37
+ b.p("clusterName", () => input.clusterName, "{clusterName}", false);
38
38
  let body;
39
39
  body = JSON.stringify(take(input, {
40
40
  clientRequestToken: [true, (_) => _ ?? generateIdempotencyToken()],
41
41
  encryptionConfig: (_) => _json(_),
42
42
  }));
43
- return new __HttpRequest({
44
- protocol,
45
- hostname,
46
- port,
47
- method: "POST",
48
- headers,
49
- path: resolvedPath,
50
- body,
51
- });
43
+ b.m("POST").h(headers).b(body);
44
+ return b.build();
52
45
  };
53
46
  export const se_AssociateIdentityProviderConfigCommand = async (input, context) => {
54
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
47
+ const b = rb(input, context);
55
48
  const headers = {
56
49
  "content-type": "application/json",
57
50
  };
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);
51
+ b.bp("/clusters/{clusterName}/identity-provider-configs/associate");
52
+ b.p("clusterName", () => input.clusterName, "{clusterName}", false);
61
53
  let body;
62
54
  body = JSON.stringify(take(input, {
63
55
  clientRequestToken: [true, (_) => _ ?? generateIdempotencyToken()],
64
56
  oidc: (_) => _json(_),
65
57
  tags: (_) => _json(_),
66
58
  }));
67
- return new __HttpRequest({
68
- protocol,
69
- hostname,
70
- port,
71
- method: "POST",
72
- headers,
73
- path: resolvedPath,
74
- body,
75
- });
59
+ b.m("POST").h(headers).b(body);
60
+ return b.build();
76
61
  };
77
62
  export const se_CreateAccessEntryCommand = async (input, context) => {
78
63
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
@@ -101,12 +86,12 @@ export const se_CreateAccessEntryCommand = async (input, context) => {
101
86
  });
102
87
  };
103
88
  export const se_CreateAddonCommand = async (input, context) => {
104
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
89
+ const b = rb(input, context);
105
90
  const headers = {
106
91
  "content-type": "application/json",
107
92
  };
108
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/clusters/{clusterName}/addons";
109
- resolvedPath = __resolvedPath(resolvedPath, input, "clusterName", () => input.clusterName, "{clusterName}", false);
93
+ b.bp("/clusters/{clusterName}/addons");
94
+ b.p("clusterName", () => input.clusterName, "{clusterName}", false);
110
95
  let body;
111
96
  body = JSON.stringify(take(input, {
112
97
  addonName: [],
@@ -117,22 +102,15 @@ export const se_CreateAddonCommand = async (input, context) => {
117
102
  serviceAccountRoleArn: [],
118
103
  tags: (_) => _json(_),
119
104
  }));
120
- return new __HttpRequest({
121
- protocol,
122
- hostname,
123
- port,
124
- method: "POST",
125
- headers,
126
- path: resolvedPath,
127
- body,
128
- });
105
+ b.m("POST").h(headers).b(body);
106
+ return b.build();
129
107
  };
130
108
  export const se_CreateClusterCommand = async (input, context) => {
131
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
109
+ const b = rb(input, context);
132
110
  const headers = {
133
111
  "content-type": "application/json",
134
112
  };
135
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/clusters";
113
+ b.bp("/clusters");
136
114
  let body;
137
115
  body = JSON.stringify(take(input, {
138
116
  accessConfig: (_) => _json(_),
@@ -147,22 +125,15 @@ export const se_CreateClusterCommand = async (input, context) => {
147
125
  tags: (_) => _json(_),
148
126
  version: [],
149
127
  }));
150
- return new __HttpRequest({
151
- protocol,
152
- hostname,
153
- port,
154
- method: "POST",
155
- headers,
156
- path: resolvedPath,
157
- body,
158
- });
128
+ b.m("POST").h(headers).b(body);
129
+ return b.build();
159
130
  };
160
131
  export const se_CreateEksAnywhereSubscriptionCommand = async (input, context) => {
161
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
132
+ const b = rb(input, context);
162
133
  const headers = {
163
134
  "content-type": "application/json",
164
135
  };
165
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/eks-anywhere-subscriptions";
136
+ b.bp("/eks-anywhere-subscriptions");
166
137
  let body;
167
138
  body = JSON.stringify(take(input, {
168
139
  autoRenew: [],
@@ -173,23 +144,16 @@ export const se_CreateEksAnywhereSubscriptionCommand = async (input, context) =>
173
144
  tags: (_) => _json(_),
174
145
  term: (_) => _json(_),
175
146
  }));
176
- return new __HttpRequest({
177
- protocol,
178
- hostname,
179
- port,
180
- method: "POST",
181
- headers,
182
- path: resolvedPath,
183
- body,
184
- });
147
+ b.m("POST").h(headers).b(body);
148
+ return b.build();
185
149
  };
186
150
  export const se_CreateFargateProfileCommand = async (input, context) => {
187
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
151
+ const b = rb(input, context);
188
152
  const headers = {
189
153
  "content-type": "application/json",
190
154
  };
191
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/clusters/{clusterName}/fargate-profiles";
192
- resolvedPath = __resolvedPath(resolvedPath, input, "clusterName", () => input.clusterName, "{clusterName}", false);
155
+ b.bp("/clusters/{clusterName}/fargate-profiles");
156
+ b.p("clusterName", () => input.clusterName, "{clusterName}", false);
193
157
  let body;
194
158
  body = JSON.stringify(take(input, {
195
159
  clientRequestToken: [true, (_) => _ ?? generateIdempotencyToken()],
@@ -199,23 +163,16 @@ export const se_CreateFargateProfileCommand = async (input, context) => {
199
163
  subnets: (_) => _json(_),
200
164
  tags: (_) => _json(_),
201
165
  }));
202
- return new __HttpRequest({
203
- protocol,
204
- hostname,
205
- port,
206
- method: "POST",
207
- headers,
208
- path: resolvedPath,
209
- body,
210
- });
166
+ b.m("POST").h(headers).b(body);
167
+ return b.build();
211
168
  };
212
169
  export const se_CreateNodegroupCommand = async (input, context) => {
213
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
170
+ const b = rb(input, context);
214
171
  const headers = {
215
172
  "content-type": "application/json",
216
173
  };
217
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/clusters/{clusterName}/node-groups";
218
- resolvedPath = __resolvedPath(resolvedPath, input, "clusterName", () => input.clusterName, "{clusterName}", false);
174
+ b.bp("/clusters/{clusterName}/node-groups");
175
+ b.p("clusterName", () => input.clusterName, "{clusterName}", false);
219
176
  let body;
220
177
  body = JSON.stringify(take(input, {
221
178
  amiType: [],
@@ -236,24 +193,16 @@ export const se_CreateNodegroupCommand = async (input, context) => {
236
193
  updateConfig: (_) => _json(_),
237
194
  version: [],
238
195
  }));
239
- return new __HttpRequest({
240
- protocol,
241
- hostname,
242
- port,
243
- method: "POST",
244
- headers,
245
- path: resolvedPath,
246
- body,
247
- });
196
+ b.m("POST").h(headers).b(body);
197
+ return b.build();
248
198
  };
249
199
  export const se_CreatePodIdentityAssociationCommand = async (input, context) => {
250
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
200
+ const b = rb(input, context);
251
201
  const headers = {
252
202
  "content-type": "application/json",
253
203
  };
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);
204
+ b.bp("/clusters/{clusterName}/pod-identity-associations");
205
+ b.p("clusterName", () => input.clusterName, "{clusterName}", false);
257
206
  let body;
258
207
  body = JSON.stringify(take(input, {
259
208
  clientRequestToken: [true, (_) => _ ?? generateIdempotencyToken()],
@@ -262,15 +211,8 @@ export const se_CreatePodIdentityAssociationCommand = async (input, context) =>
262
211
  serviceAccount: [],
263
212
  tags: (_) => _json(_),
264
213
  }));
265
- return new __HttpRequest({
266
- protocol,
267
- hostname,
268
- port,
269
- method: "POST",
270
- headers,
271
- path: resolvedPath,
272
- body,
273
- });
214
+ b.m("POST").h(headers).b(body);
215
+ return b.build();
274
216
  };
275
217
  export const se_DeleteAccessEntryCommand = async (input, context) => {
276
218
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
@@ -291,128 +233,74 @@ export const se_DeleteAccessEntryCommand = async (input, context) => {
291
233
  });
292
234
  };
293
235
  export const se_DeleteAddonCommand = async (input, context) => {
294
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
236
+ const b = rb(input, context);
295
237
  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);
238
+ b.bp("/clusters/{clusterName}/addons/{addonName}");
239
+ b.p("clusterName", () => input.clusterName, "{clusterName}", false);
240
+ b.p("addonName", () => input.addonName, "{addonName}", false);
300
241
  const query = map({
301
- preserve: [() => input.preserve !== void 0, () => input.preserve.toString()],
242
+ [_p]: [() => input.preserve !== void 0, () => input[_p].toString()],
302
243
  });
303
244
  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
- });
245
+ b.m("DELETE").h(headers).q(query).b(body);
246
+ return b.build();
314
247
  };
315
248
  export const se_DeleteClusterCommand = async (input, context) => {
316
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
249
+ const b = rb(input, context);
317
250
  const headers = {};
318
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/clusters/{name}";
319
- resolvedPath = __resolvedPath(resolvedPath, input, "name", () => input.name, "{name}", false);
251
+ b.bp("/clusters/{name}");
252
+ b.p("name", () => input.name, "{name}", false);
320
253
  let body;
321
- return new __HttpRequest({
322
- protocol,
323
- hostname,
324
- port,
325
- method: "DELETE",
326
- headers,
327
- path: resolvedPath,
328
- body,
329
- });
254
+ b.m("DELETE").h(headers).b(body);
255
+ return b.build();
330
256
  };
331
257
  export const se_DeleteEksAnywhereSubscriptionCommand = async (input, context) => {
332
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
258
+ const b = rb(input, context);
333
259
  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);
260
+ b.bp("/eks-anywhere-subscriptions/{id}");
261
+ b.p("id", () => input.id, "{id}", false);
336
262
  let body;
337
- return new __HttpRequest({
338
- protocol,
339
- hostname,
340
- port,
341
- method: "DELETE",
342
- headers,
343
- path: resolvedPath,
344
- body,
345
- });
263
+ b.m("DELETE").h(headers).b(body);
264
+ return b.build();
346
265
  };
347
266
  export const se_DeleteFargateProfileCommand = async (input, context) => {
348
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
267
+ const b = rb(input, context);
349
268
  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);
269
+ b.bp("/clusters/{clusterName}/fargate-profiles/{fargateProfileName}");
270
+ b.p("clusterName", () => input.clusterName, "{clusterName}", false);
271
+ b.p("fargateProfileName", () => input.fargateProfileName, "{fargateProfileName}", false);
354
272
  let body;
355
- return new __HttpRequest({
356
- protocol,
357
- hostname,
358
- port,
359
- method: "DELETE",
360
- headers,
361
- path: resolvedPath,
362
- body,
363
- });
273
+ b.m("DELETE").h(headers).b(body);
274
+ return b.build();
364
275
  };
365
276
  export const se_DeleteNodegroupCommand = async (input, context) => {
366
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
277
+ const b = rb(input, context);
367
278
  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);
279
+ b.bp("/clusters/{clusterName}/node-groups/{nodegroupName}");
280
+ b.p("clusterName", () => input.clusterName, "{clusterName}", false);
281
+ b.p("nodegroupName", () => input.nodegroupName, "{nodegroupName}", false);
372
282
  let body;
373
- return new __HttpRequest({
374
- protocol,
375
- hostname,
376
- port,
377
- method: "DELETE",
378
- headers,
379
- path: resolvedPath,
380
- body,
381
- });
283
+ b.m("DELETE").h(headers).b(body);
284
+ return b.build();
382
285
  };
383
286
  export const se_DeletePodIdentityAssociationCommand = async (input, context) => {
384
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
287
+ const b = rb(input, context);
385
288
  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);
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);
390
292
  let body;
391
- return new __HttpRequest({
392
- protocol,
393
- hostname,
394
- port,
395
- method: "DELETE",
396
- headers,
397
- path: resolvedPath,
398
- body,
399
- });
293
+ b.m("DELETE").h(headers).b(body);
294
+ return b.build();
400
295
  };
401
296
  export const se_DeregisterClusterCommand = async (input, context) => {
402
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
297
+ const b = rb(input, context);
403
298
  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);
299
+ b.bp("/cluster-registrations/{name}");
300
+ b.p("name", () => input.name, "{name}", false);
406
301
  let body;
407
- return new __HttpRequest({
408
- protocol,
409
- hostname,
410
- port,
411
- method: "DELETE",
412
- headers,
413
- path: resolvedPath,
414
- body,
415
- });
302
+ b.m("DELETE").h(headers).b(body);
303
+ return b.build();
416
304
  };
417
305
  export const se_DescribeAccessEntryCommand = async (input, context) => {
418
306
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
@@ -433,197 +321,119 @@ export const se_DescribeAccessEntryCommand = async (input, context) => {
433
321
  });
434
322
  };
435
323
  export const se_DescribeAddonCommand = async (input, context) => {
436
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
324
+ const b = rb(input, context);
437
325
  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);
326
+ b.bp("/clusters/{clusterName}/addons/{addonName}");
327
+ b.p("clusterName", () => input.clusterName, "{clusterName}", false);
328
+ b.p("addonName", () => input.addonName, "{addonName}", false);
442
329
  let body;
443
- return new __HttpRequest({
444
- protocol,
445
- hostname,
446
- port,
447
- method: "GET",
448
- headers,
449
- path: resolvedPath,
450
- body,
451
- });
330
+ b.m("GET").h(headers).b(body);
331
+ return b.build();
452
332
  };
453
333
  export const se_DescribeAddonConfigurationCommand = async (input, context) => {
454
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
334
+ const b = rb(input, context);
455
335
  const headers = {};
456
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/addons/configuration-schemas";
336
+ b.bp("/addons/configuration-schemas");
457
337
  const query = map({
458
- addonName: [, __expectNonNull(input.addonName, `addonName`)],
459
- addonVersion: [, __expectNonNull(input.addonVersion, `addonVersion`)],
338
+ [_aN]: [, __expectNonNull(input[_aN], `addonName`)],
339
+ [_aV]: [, __expectNonNull(input[_aV], `addonVersion`)],
460
340
  });
461
341
  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
- });
342
+ b.m("GET").h(headers).q(query).b(body);
343
+ return b.build();
472
344
  };
473
345
  export const se_DescribeAddonVersionsCommand = async (input, context) => {
474
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
346
+ const b = rb(input, context);
475
347
  const headers = {};
476
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/addons/supported-versions";
348
+ b.bp("/addons/supported-versions");
477
349
  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)],
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)],
485
357
  });
486
358
  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
- });
359
+ b.m("GET").h(headers).q(query).b(body);
360
+ return b.build();
497
361
  };
498
362
  export const se_DescribeClusterCommand = async (input, context) => {
499
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
363
+ const b = rb(input, context);
500
364
  const headers = {};
501
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/clusters/{name}";
502
- resolvedPath = __resolvedPath(resolvedPath, input, "name", () => input.name, "{name}", false);
365
+ b.bp("/clusters/{name}");
366
+ b.p("name", () => input.name, "{name}", false);
503
367
  let body;
504
- return new __HttpRequest({
505
- protocol,
506
- hostname,
507
- port,
508
- method: "GET",
509
- headers,
510
- path: resolvedPath,
511
- body,
512
- });
368
+ b.m("GET").h(headers).b(body);
369
+ return b.build();
513
370
  };
514
371
  export const se_DescribeEksAnywhereSubscriptionCommand = async (input, context) => {
515
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
372
+ const b = rb(input, context);
516
373
  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);
374
+ b.bp("/eks-anywhere-subscriptions/{id}");
375
+ b.p("id", () => input.id, "{id}", false);
519
376
  let body;
520
- return new __HttpRequest({
521
- protocol,
522
- hostname,
523
- port,
524
- method: "GET",
525
- headers,
526
- path: resolvedPath,
527
- body,
528
- });
377
+ b.m("GET").h(headers).b(body);
378
+ return b.build();
529
379
  };
530
380
  export const se_DescribeFargateProfileCommand = async (input, context) => {
531
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
381
+ const b = rb(input, context);
532
382
  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);
383
+ b.bp("/clusters/{clusterName}/fargate-profiles/{fargateProfileName}");
384
+ b.p("clusterName", () => input.clusterName, "{clusterName}", false);
385
+ b.p("fargateProfileName", () => input.fargateProfileName, "{fargateProfileName}", false);
537
386
  let body;
538
- return new __HttpRequest({
539
- protocol,
540
- hostname,
541
- port,
542
- method: "GET",
543
- headers,
544
- path: resolvedPath,
545
- body,
546
- });
387
+ b.m("GET").h(headers).b(body);
388
+ return b.build();
547
389
  };
548
390
  export const se_DescribeIdentityProviderConfigCommand = async (input, context) => {
549
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
391
+ const b = rb(input, context);
550
392
  const headers = {
551
393
  "content-type": "application/json",
552
394
  };
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);
395
+ b.bp("/clusters/{clusterName}/identity-provider-configs/describe");
396
+ b.p("clusterName", () => input.clusterName, "{clusterName}", false);
556
397
  let body;
557
398
  body = JSON.stringify(take(input, {
558
399
  identityProviderConfig: (_) => _json(_),
559
400
  }));
560
- return new __HttpRequest({
561
- protocol,
562
- hostname,
563
- port,
564
- method: "POST",
565
- headers,
566
- path: resolvedPath,
567
- body,
568
- });
401
+ b.m("POST").h(headers).b(body);
402
+ return b.build();
569
403
  };
570
404
  export const se_DescribeNodegroupCommand = async (input, context) => {
571
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
405
+ const b = rb(input, context);
572
406
  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);
407
+ b.bp("/clusters/{clusterName}/node-groups/{nodegroupName}");
408
+ b.p("clusterName", () => input.clusterName, "{clusterName}", false);
409
+ b.p("nodegroupName", () => input.nodegroupName, "{nodegroupName}", false);
577
410
  let body;
578
- return new __HttpRequest({
579
- protocol,
580
- hostname,
581
- port,
582
- method: "GET",
583
- headers,
584
- path: resolvedPath,
585
- body,
586
- });
411
+ b.m("GET").h(headers).b(body);
412
+ return b.build();
587
413
  };
588
414
  export const se_DescribePodIdentityAssociationCommand = async (input, context) => {
589
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
590
- 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);
595
- let body;
596
- return new __HttpRequest({
597
- protocol,
598
- hostname,
599
- port,
600
- method: "GET",
601
- headers,
602
- path: resolvedPath,
603
- body,
604
- });
415
+ const b = rb(input, context);
416
+ const headers = {};
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);
420
+ let body;
421
+ b.m("GET").h(headers).b(body);
422
+ return b.build();
605
423
  };
606
424
  export const se_DescribeUpdateCommand = async (input, context) => {
607
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
425
+ const b = rb(input, context);
608
426
  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);
427
+ b.bp("/clusters/{name}/updates/{updateId}");
428
+ b.p("name", () => input.name, "{name}", false);
429
+ b.p("updateId", () => input.updateId, "{updateId}", false);
612
430
  const query = map({
613
- nodegroupName: [, input.nodegroupName],
614
- addonName: [, input.addonName],
431
+ [_nN]: [, input[_nN]],
432
+ [_aN]: [, input[_aN]],
615
433
  });
616
434
  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
- });
435
+ b.m("GET").h(headers).q(query).b(body);
436
+ return b.build();
627
437
  };
628
438
  export const se_DisassociateAccessPolicyCommand = async (input, context) => {
629
439
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
@@ -645,27 +455,19 @@ export const se_DisassociateAccessPolicyCommand = async (input, context) => {
645
455
  });
646
456
  };
647
457
  export const se_DisassociateIdentityProviderConfigCommand = async (input, context) => {
648
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
458
+ const b = rb(input, context);
649
459
  const headers = {
650
460
  "content-type": "application/json",
651
461
  };
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);
462
+ b.bp("/clusters/{clusterName}/identity-provider-configs/disassociate");
463
+ b.p("clusterName", () => input.clusterName, "{clusterName}", false);
655
464
  let body;
656
465
  body = JSON.stringify(take(input, {
657
466
  clientRequestToken: [true, (_) => _ ?? generateIdempotencyToken()],
658
467
  identityProviderConfig: (_) => _json(_),
659
468
  }));
660
- return new __HttpRequest({
661
- protocol,
662
- hostname,
663
- port,
664
- method: "POST",
665
- headers,
666
- path: resolvedPath,
667
- body,
668
- });
469
+ b.m("POST").h(headers).b(body);
470
+ return b.build();
669
471
  };
670
472
  export const se_ListAccessEntriesCommand = async (input, context) => {
671
473
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
@@ -710,25 +512,17 @@ export const se_ListAccessPoliciesCommand = async (input, context) => {
710
512
  });
711
513
  };
712
514
  export const se_ListAddonsCommand = async (input, context) => {
713
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
515
+ const b = rb(input, context);
714
516
  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);
517
+ b.bp("/clusters/{clusterName}/addons");
518
+ b.p("clusterName", () => input.clusterName, "{clusterName}", false);
717
519
  const query = map({
718
- maxResults: [() => input.maxResults !== void 0, () => input.maxResults.toString()],
719
- nextToken: [, input.nextToken],
520
+ [_mR]: [() => input.maxResults !== void 0, () => input[_mR].toString()],
521
+ [_nT]: [, input[_nT]],
720
522
  });
721
523
  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
- });
524
+ b.m("GET").h(headers).q(query).b(body);
525
+ return b.build();
732
526
  };
733
527
  export const se_ListAssociatedAccessPoliciesCommand = async (input, context) => {
734
528
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
@@ -754,183 +548,115 @@ export const se_ListAssociatedAccessPoliciesCommand = async (input, context) =>
754
548
  });
755
549
  };
756
550
  export const se_ListClustersCommand = async (input, context) => {
757
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
551
+ const b = rb(input, context);
758
552
  const headers = {};
759
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/clusters";
553
+ b.bp("/clusters");
760
554
  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)],
555
+ [_mR]: [() => input.maxResults !== void 0, () => input[_mR].toString()],
556
+ [_nT]: [, input[_nT]],
557
+ [_i]: [() => input.include !== void 0, () => (input[_i] || []).map((_entry) => _entry)],
764
558
  });
765
559
  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
- });
560
+ b.m("GET").h(headers).q(query).b(body);
561
+ return b.build();
776
562
  };
777
563
  export const se_ListEksAnywhereSubscriptionsCommand = async (input, context) => {
778
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
564
+ const b = rb(input, context);
779
565
  const headers = {};
780
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/eks-anywhere-subscriptions";
566
+ b.bp("/eks-anywhere-subscriptions");
781
567
  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
- ],
568
+ [_mR]: [() => input.maxResults !== void 0, () => input[_mR].toString()],
569
+ [_nT]: [, input[_nT]],
570
+ [_iS]: [() => input.includeStatus !== void 0, () => (input[_iS] || []).map((_entry) => _entry)],
788
571
  });
789
572
  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
- });
573
+ b.m("GET").h(headers).q(query).b(body);
574
+ return b.build();
800
575
  };
801
576
  export const se_ListFargateProfilesCommand = async (input, context) => {
802
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
577
+ const b = rb(input, context);
803
578
  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);
579
+ b.bp("/clusters/{clusterName}/fargate-profiles");
580
+ b.p("clusterName", () => input.clusterName, "{clusterName}", false);
806
581
  const query = map({
807
- maxResults: [() => input.maxResults !== void 0, () => input.maxResults.toString()],
808
- nextToken: [, input.nextToken],
582
+ [_mR]: [() => input.maxResults !== void 0, () => input[_mR].toString()],
583
+ [_nT]: [, input[_nT]],
809
584
  });
810
585
  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
- });
586
+ b.m("GET").h(headers).q(query).b(body);
587
+ return b.build();
821
588
  };
822
589
  export const se_ListIdentityProviderConfigsCommand = async (input, context) => {
823
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
590
+ const b = rb(input, context);
824
591
  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);
592
+ b.bp("/clusters/{clusterName}/identity-provider-configs");
593
+ b.p("clusterName", () => input.clusterName, "{clusterName}", false);
828
594
  const query = map({
829
- maxResults: [() => input.maxResults !== void 0, () => input.maxResults.toString()],
830
- nextToken: [, input.nextToken],
595
+ [_mR]: [() => input.maxResults !== void 0, () => input[_mR].toString()],
596
+ [_nT]: [, input[_nT]],
831
597
  });
832
598
  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
- });
599
+ b.m("GET").h(headers).q(query).b(body);
600
+ return b.build();
843
601
  };
844
602
  export const se_ListNodegroupsCommand = async (input, context) => {
845
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
603
+ const b = rb(input, context);
846
604
  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);
605
+ b.bp("/clusters/{clusterName}/node-groups");
606
+ b.p("clusterName", () => input.clusterName, "{clusterName}", false);
849
607
  const query = map({
850
- maxResults: [() => input.maxResults !== void 0, () => input.maxResults.toString()],
851
- nextToken: [, input.nextToken],
608
+ [_mR]: [() => input.maxResults !== void 0, () => input[_mR].toString()],
609
+ [_nT]: [, input[_nT]],
852
610
  });
853
611
  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
- });
612
+ b.m("GET").h(headers).q(query).b(body);
613
+ return b.build();
864
614
  };
865
615
  export const se_ListPodIdentityAssociationsCommand = async (input, context) => {
866
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
616
+ const b = rb(input, context);
867
617
  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);
618
+ b.bp("/clusters/{clusterName}/pod-identity-associations");
619
+ b.p("clusterName", () => input.clusterName, "{clusterName}", false);
871
620
  const query = map({
872
- namespace: [, input.namespace],
873
- serviceAccount: [, input.serviceAccount],
874
- maxResults: [() => input.maxResults !== void 0, () => input.maxResults.toString()],
875
- nextToken: [, input.nextToken],
621
+ [_n]: [, input[_n]],
622
+ [_sA]: [, input[_sA]],
623
+ [_mR]: [() => input.maxResults !== void 0, () => input[_mR].toString()],
624
+ [_nT]: [, input[_nT]],
876
625
  });
877
626
  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
- });
627
+ b.m("GET").h(headers).q(query).b(body);
628
+ return b.build();
888
629
  };
889
630
  export const se_ListTagsForResourceCommand = async (input, context) => {
890
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
631
+ const b = rb(input, context);
891
632
  const headers = {};
892
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/tags/{resourceArn}";
893
- resolvedPath = __resolvedPath(resolvedPath, input, "resourceArn", () => input.resourceArn, "{resourceArn}", false);
633
+ b.bp("/tags/{resourceArn}");
634
+ b.p("resourceArn", () => input.resourceArn, "{resourceArn}", false);
894
635
  let body;
895
- return new __HttpRequest({
896
- protocol,
897
- hostname,
898
- port,
899
- method: "GET",
900
- headers,
901
- path: resolvedPath,
902
- body,
903
- });
636
+ b.m("GET").h(headers).b(body);
637
+ return b.build();
904
638
  };
905
639
  export const se_ListUpdatesCommand = async (input, context) => {
906
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
640
+ const b = rb(input, context);
907
641
  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);
642
+ b.bp("/clusters/{name}/updates");
643
+ b.p("name", () => input.name, "{name}", false);
910
644
  const query = map({
911
- nodegroupName: [, input.nodegroupName],
912
- addonName: [, input.addonName],
913
- nextToken: [, input.nextToken],
914
- maxResults: [() => input.maxResults !== void 0, () => input.maxResults.toString()],
645
+ [_nN]: [, input[_nN]],
646
+ [_aN]: [, input[_aN]],
647
+ [_nT]: [, input[_nT]],
648
+ [_mR]: [() => input.maxResults !== void 0, () => input[_mR].toString()],
915
649
  });
916
650
  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
- });
651
+ b.m("GET").h(headers).q(query).b(body);
652
+ return b.build();
927
653
  };
928
654
  export const se_RegisterClusterCommand = async (input, context) => {
929
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
655
+ const b = rb(input, context);
930
656
  const headers = {
931
657
  "content-type": "application/json",
932
658
  };
933
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/cluster-registrations";
659
+ b.bp("/cluster-registrations");
934
660
  let body;
935
661
  body = JSON.stringify(take(input, {
936
662
  clientRequestToken: [true, (_) => _ ?? generateIdempotencyToken()],
@@ -938,59 +664,37 @@ export const se_RegisterClusterCommand = async (input, context) => {
938
664
  name: [],
939
665
  tags: (_) => _json(_),
940
666
  }));
941
- return new __HttpRequest({
942
- protocol,
943
- hostname,
944
- port,
945
- method: "POST",
946
- headers,
947
- path: resolvedPath,
948
- body,
949
- });
667
+ b.m("POST").h(headers).b(body);
668
+ return b.build();
950
669
  };
951
670
  export const se_TagResourceCommand = async (input, context) => {
952
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
671
+ const b = rb(input, context);
953
672
  const headers = {
954
673
  "content-type": "application/json",
955
674
  };
956
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/tags/{resourceArn}";
957
- resolvedPath = __resolvedPath(resolvedPath, input, "resourceArn", () => input.resourceArn, "{resourceArn}", false);
675
+ b.bp("/tags/{resourceArn}");
676
+ b.p("resourceArn", () => input.resourceArn, "{resourceArn}", false);
958
677
  let body;
959
678
  body = JSON.stringify(take(input, {
960
679
  tags: (_) => _json(_),
961
680
  }));
962
- return new __HttpRequest({
963
- protocol,
964
- hostname,
965
- port,
966
- method: "POST",
967
- headers,
968
- path: resolvedPath,
969
- body,
970
- });
681
+ b.m("POST").h(headers).b(body);
682
+ return b.build();
971
683
  };
972
684
  export const se_UntagResourceCommand = async (input, context) => {
973
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
685
+ const b = rb(input, context);
974
686
  const headers = {};
975
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/tags/{resourceArn}";
976
- resolvedPath = __resolvedPath(resolvedPath, input, "resourceArn", () => input.resourceArn, "{resourceArn}", false);
687
+ b.bp("/tags/{resourceArn}");
688
+ b.p("resourceArn", () => input.resourceArn, "{resourceArn}", false);
977
689
  const query = map({
978
- tagKeys: [
690
+ [_tK]: [
979
691
  __expectNonNull(input.tagKeys, `tagKeys`) != null,
980
- () => (input.tagKeys || []).map((_entry) => _entry),
692
+ () => (input[_tK] || []).map((_entry) => _entry),
981
693
  ],
982
694
  });
983
695
  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
- });
696
+ b.m("DELETE").h(headers).q(query).b(body);
697
+ return b.build();
994
698
  };
995
699
  export const se_UpdateAccessEntryCommand = async (input, context) => {
996
700
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
@@ -1018,14 +722,13 @@ export const se_UpdateAccessEntryCommand = async (input, context) => {
1018
722
  });
1019
723
  };
1020
724
  export const se_UpdateAddonCommand = async (input, context) => {
1021
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
725
+ const b = rb(input, context);
1022
726
  const headers = {
1023
727
  "content-type": "application/json",
1024
728
  };
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);
729
+ b.bp("/clusters/{clusterName}/addons/{addonName}/update");
730
+ b.p("clusterName", () => input.clusterName, "{clusterName}", false);
731
+ b.p("addonName", () => input.addonName, "{addonName}", false);
1029
732
  let body;
1030
733
  body = JSON.stringify(take(input, {
1031
734
  addonVersion: [],
@@ -1034,23 +737,16 @@ export const se_UpdateAddonCommand = async (input, context) => {
1034
737
  resolveConflicts: [],
1035
738
  serviceAccountRoleArn: [],
1036
739
  }));
1037
- return new __HttpRequest({
1038
- protocol,
1039
- hostname,
1040
- port,
1041
- method: "POST",
1042
- headers,
1043
- path: resolvedPath,
1044
- body,
1045
- });
740
+ b.m("POST").h(headers).b(body);
741
+ return b.build();
1046
742
  };
1047
743
  export const se_UpdateClusterConfigCommand = async (input, context) => {
1048
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
744
+ const b = rb(input, context);
1049
745
  const headers = {
1050
746
  "content-type": "application/json",
1051
747
  };
1052
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/clusters/{name}/update-config";
1053
- resolvedPath = __resolvedPath(resolvedPath, input, "name", () => input.name, "{name}", false);
748
+ b.bp("/clusters/{name}/update-config");
749
+ b.p("name", () => input.name, "{name}", false);
1054
750
  let body;
1055
751
  body = JSON.stringify(take(input, {
1056
752
  accessConfig: (_) => _json(_),
@@ -1058,69 +754,47 @@ export const se_UpdateClusterConfigCommand = async (input, context) => {
1058
754
  logging: (_) => _json(_),
1059
755
  resourcesVpcConfig: (_) => _json(_),
1060
756
  }));
1061
- return new __HttpRequest({
1062
- protocol,
1063
- hostname,
1064
- port,
1065
- method: "POST",
1066
- headers,
1067
- path: resolvedPath,
1068
- body,
1069
- });
757
+ b.m("POST").h(headers).b(body);
758
+ return b.build();
1070
759
  };
1071
760
  export const se_UpdateClusterVersionCommand = async (input, context) => {
1072
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
761
+ const b = rb(input, context);
1073
762
  const headers = {
1074
763
  "content-type": "application/json",
1075
764
  };
1076
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/clusters/{name}/updates";
1077
- resolvedPath = __resolvedPath(resolvedPath, input, "name", () => input.name, "{name}", false);
765
+ b.bp("/clusters/{name}/updates");
766
+ b.p("name", () => input.name, "{name}", false);
1078
767
  let body;
1079
768
  body = JSON.stringify(take(input, {
1080
769
  clientRequestToken: [true, (_) => _ ?? generateIdempotencyToken()],
1081
770
  version: [],
1082
771
  }));
1083
- return new __HttpRequest({
1084
- protocol,
1085
- hostname,
1086
- port,
1087
- method: "POST",
1088
- headers,
1089
- path: resolvedPath,
1090
- body,
1091
- });
772
+ b.m("POST").h(headers).b(body);
773
+ return b.build();
1092
774
  };
1093
775
  export const se_UpdateEksAnywhereSubscriptionCommand = async (input, context) => {
1094
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
776
+ const b = rb(input, context);
1095
777
  const headers = {
1096
778
  "content-type": "application/json",
1097
779
  };
1098
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/eks-anywhere-subscriptions/{id}";
1099
- resolvedPath = __resolvedPath(resolvedPath, input, "id", () => input.id, "{id}", false);
780
+ b.bp("/eks-anywhere-subscriptions/{id}");
781
+ b.p("id", () => input.id, "{id}", false);
1100
782
  let body;
1101
783
  body = JSON.stringify(take(input, {
1102
784
  autoRenew: [],
1103
785
  clientRequestToken: [true, (_) => _ ?? generateIdempotencyToken()],
1104
786
  }));
1105
- return new __HttpRequest({
1106
- protocol,
1107
- hostname,
1108
- port,
1109
- method: "POST",
1110
- headers,
1111
- path: resolvedPath,
1112
- body,
1113
- });
787
+ b.m("POST").h(headers).b(body);
788
+ return b.build();
1114
789
  };
1115
790
  export const se_UpdateNodegroupConfigCommand = async (input, context) => {
1116
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
791
+ const b = rb(input, context);
1117
792
  const headers = {
1118
793
  "content-type": "application/json",
1119
794
  };
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);
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);
1124
798
  let body;
1125
799
  body = JSON.stringify(take(input, {
1126
800
  clientRequestToken: [true, (_) => _ ?? generateIdempotencyToken()],
@@ -1129,25 +803,17 @@ export const se_UpdateNodegroupConfigCommand = async (input, context) => {
1129
803
  taints: (_) => _json(_),
1130
804
  updateConfig: (_) => _json(_),
1131
805
  }));
1132
- return new __HttpRequest({
1133
- protocol,
1134
- hostname,
1135
- port,
1136
- method: "POST",
1137
- headers,
1138
- path: resolvedPath,
1139
- body,
1140
- });
806
+ b.m("POST").h(headers).b(body);
807
+ return b.build();
1141
808
  };
1142
809
  export const se_UpdateNodegroupVersionCommand = async (input, context) => {
1143
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
810
+ const b = rb(input, context);
1144
811
  const headers = {
1145
812
  "content-type": "application/json",
1146
813
  };
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);
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);
1151
817
  let body;
1152
818
  body = JSON.stringify(take(input, {
1153
819
  clientRequestToken: [true, (_) => _ ?? generateIdempotencyToken()],
@@ -1156,39 +822,24 @@ export const se_UpdateNodegroupVersionCommand = async (input, context) => {
1156
822
  releaseVersion: [],
1157
823
  version: [],
1158
824
  }));
1159
- return new __HttpRequest({
1160
- protocol,
1161
- hostname,
1162
- port,
1163
- method: "POST",
1164
- headers,
1165
- path: resolvedPath,
1166
- body,
1167
- });
825
+ b.m("POST").h(headers).b(body);
826
+ return b.build();
1168
827
  };
1169
828
  export const se_UpdatePodIdentityAssociationCommand = async (input, context) => {
1170
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
829
+ const b = rb(input, context);
1171
830
  const headers = {
1172
831
  "content-type": "application/json",
1173
832
  };
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);
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);
1178
836
  let body;
1179
837
  body = JSON.stringify(take(input, {
1180
838
  clientRequestToken: [true, (_) => _ ?? generateIdempotencyToken()],
1181
839
  roleArn: [],
1182
840
  }));
1183
- return new __HttpRequest({
1184
- protocol,
1185
- hostname,
1186
- port,
1187
- method: "POST",
1188
- headers,
1189
- path: resolvedPath,
1190
- body,
1191
- });
841
+ b.m("POST").h(headers).b(body);
842
+ return b.build();
1192
843
  };
1193
844
  export const de_AssociateAccessPolicyCommand = async (output, context) => {
1194
845
  if (output.statusCode !== 200 && output.statusCode >= 300) {
@@ -3941,6 +3592,21 @@ const isSerializableHeaderValue = (value) => value !== undefined &&
3941
3592
  value !== "" &&
3942
3593
  (!Object.getOwnPropertyNames(value).includes("length") || value.length != 0) &&
3943
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";
3944
3610
  const parseBody = (streamBody, context) => collectBodyString(streamBody, context).then((encoded) => {
3945
3611
  if (encoded.length) {
3946
3612
  return JSON.parse(encoded);