@aws-sdk/client-eks 3.137.0 → 3.145.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.
- package/CHANGELOG.md +30 -0
- package/README.md +1 -1
- package/dist-cjs/protocols/Aws_restJson1.js +447 -969
- package/dist-es/protocols/Aws_restJson1.js +580 -967
- package/package.json +11 -6
|
@@ -15,16 +15,7 @@ const serializeAws_restJson1AssociateEncryptionConfigCommand = async (input, con
|
|
|
15
15
|
};
|
|
16
16
|
let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` +
|
|
17
17
|
"/clusters/{clusterName}/encryption-config/associate";
|
|
18
|
-
|
|
19
|
-
const labelValue = input.clusterName;
|
|
20
|
-
if (labelValue.length <= 0) {
|
|
21
|
-
throw new Error("Empty value provided for input HTTP label: clusterName.");
|
|
22
|
-
}
|
|
23
|
-
resolvedPath = resolvedPath.replace("{clusterName}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
|
|
24
|
-
}
|
|
25
|
-
else {
|
|
26
|
-
throw new Error("No value provided for input HTTP label: clusterName.");
|
|
27
|
-
}
|
|
18
|
+
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "clusterName", () => input.clusterName, "{clusterName}", false);
|
|
28
19
|
let body;
|
|
29
20
|
body = JSON.stringify({
|
|
30
21
|
clientRequestToken: (_a = input.clientRequestToken) !== null && _a !== void 0 ? _a : (0, uuid_1.v4)(),
|
|
@@ -51,16 +42,7 @@ const serializeAws_restJson1AssociateIdentityProviderConfigCommand = async (inpu
|
|
|
51
42
|
};
|
|
52
43
|
let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` +
|
|
53
44
|
"/clusters/{clusterName}/identity-provider-configs/associate";
|
|
54
|
-
|
|
55
|
-
const labelValue = input.clusterName;
|
|
56
|
-
if (labelValue.length <= 0) {
|
|
57
|
-
throw new Error("Empty value provided for input HTTP label: clusterName.");
|
|
58
|
-
}
|
|
59
|
-
resolvedPath = resolvedPath.replace("{clusterName}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
|
|
60
|
-
}
|
|
61
|
-
else {
|
|
62
|
-
throw new Error("No value provided for input HTTP label: clusterName.");
|
|
63
|
-
}
|
|
45
|
+
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "clusterName", () => input.clusterName, "{clusterName}", false);
|
|
64
46
|
let body;
|
|
65
47
|
body = JSON.stringify({
|
|
66
48
|
clientRequestToken: (_a = input.clientRequestToken) !== null && _a !== void 0 ? _a : (0, uuid_1.v4)(),
|
|
@@ -85,16 +67,7 @@ const serializeAws_restJson1CreateAddonCommand = async (input, context) => {
|
|
|
85
67
|
"content-type": "application/json",
|
|
86
68
|
};
|
|
87
69
|
let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/clusters/{clusterName}/addons";
|
|
88
|
-
|
|
89
|
-
const labelValue = input.clusterName;
|
|
90
|
-
if (labelValue.length <= 0) {
|
|
91
|
-
throw new Error("Empty value provided for input HTTP label: clusterName.");
|
|
92
|
-
}
|
|
93
|
-
resolvedPath = resolvedPath.replace("{clusterName}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
|
|
94
|
-
}
|
|
95
|
-
else {
|
|
96
|
-
throw new Error("No value provided for input HTTP label: clusterName.");
|
|
97
|
-
}
|
|
70
|
+
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "clusterName", () => input.clusterName, "{clusterName}", false);
|
|
98
71
|
let body;
|
|
99
72
|
body = JSON.stringify({
|
|
100
73
|
...(input.addonName != null && { addonName: input.addonName }),
|
|
@@ -158,16 +131,7 @@ const serializeAws_restJson1CreateFargateProfileCommand = async (input, context)
|
|
|
158
131
|
"content-type": "application/json",
|
|
159
132
|
};
|
|
160
133
|
let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/clusters/{clusterName}/fargate-profiles";
|
|
161
|
-
|
|
162
|
-
const labelValue = input.clusterName;
|
|
163
|
-
if (labelValue.length <= 0) {
|
|
164
|
-
throw new Error("Empty value provided for input HTTP label: clusterName.");
|
|
165
|
-
}
|
|
166
|
-
resolvedPath = resolvedPath.replace("{clusterName}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
|
|
167
|
-
}
|
|
168
|
-
else {
|
|
169
|
-
throw new Error("No value provided for input HTTP label: clusterName.");
|
|
170
|
-
}
|
|
134
|
+
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "clusterName", () => input.clusterName, "{clusterName}", false);
|
|
171
135
|
let body;
|
|
172
136
|
body = JSON.stringify({
|
|
173
137
|
clientRequestToken: (_a = input.clientRequestToken) !== null && _a !== void 0 ? _a : (0, uuid_1.v4)(),
|
|
@@ -197,16 +161,7 @@ const serializeAws_restJson1CreateNodegroupCommand = async (input, context) => {
|
|
|
197
161
|
"content-type": "application/json",
|
|
198
162
|
};
|
|
199
163
|
let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/clusters/{clusterName}/node-groups";
|
|
200
|
-
|
|
201
|
-
const labelValue = input.clusterName;
|
|
202
|
-
if (labelValue.length <= 0) {
|
|
203
|
-
throw new Error("Empty value provided for input HTTP label: clusterName.");
|
|
204
|
-
}
|
|
205
|
-
resolvedPath = resolvedPath.replace("{clusterName}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
|
|
206
|
-
}
|
|
207
|
-
else {
|
|
208
|
-
throw new Error("No value provided for input HTTP label: clusterName.");
|
|
209
|
-
}
|
|
164
|
+
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "clusterName", () => input.clusterName, "{clusterName}", false);
|
|
210
165
|
let body;
|
|
211
166
|
body = JSON.stringify({
|
|
212
167
|
...(input.amiType != null && { amiType: input.amiType }),
|
|
@@ -253,29 +208,11 @@ const serializeAws_restJson1DeleteAddonCommand = async (input, context) => {
|
|
|
253
208
|
const headers = {};
|
|
254
209
|
let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` +
|
|
255
210
|
"/clusters/{clusterName}/addons/{addonName}";
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
resolvedPath = resolvedPath.replace("{clusterName}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
|
|
262
|
-
}
|
|
263
|
-
else {
|
|
264
|
-
throw new Error("No value provided for input HTTP label: clusterName.");
|
|
265
|
-
}
|
|
266
|
-
if (input.addonName !== undefined) {
|
|
267
|
-
const labelValue = input.addonName;
|
|
268
|
-
if (labelValue.length <= 0) {
|
|
269
|
-
throw new Error("Empty value provided for input HTTP label: addonName.");
|
|
270
|
-
}
|
|
271
|
-
resolvedPath = resolvedPath.replace("{addonName}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
|
|
272
|
-
}
|
|
273
|
-
else {
|
|
274
|
-
throw new Error("No value provided for input HTTP label: addonName.");
|
|
275
|
-
}
|
|
276
|
-
const query = {
|
|
277
|
-
...(input.preserve !== undefined && { preserve: input.preserve.toString() }),
|
|
278
|
-
};
|
|
211
|
+
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "clusterName", () => input.clusterName, "{clusterName}", false);
|
|
212
|
+
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "addonName", () => input.addonName, "{addonName}", false);
|
|
213
|
+
const query = map({
|
|
214
|
+
preserve: [() => input.preserve !== void 0, () => input.preserve.toString()],
|
|
215
|
+
});
|
|
279
216
|
let body;
|
|
280
217
|
return new protocol_http_1.HttpRequest({
|
|
281
218
|
protocol,
|
|
@@ -293,16 +230,7 @@ const serializeAws_restJson1DeleteClusterCommand = async (input, context) => {
|
|
|
293
230
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
294
231
|
const headers = {};
|
|
295
232
|
let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/clusters/{name}";
|
|
296
|
-
|
|
297
|
-
const labelValue = input.name;
|
|
298
|
-
if (labelValue.length <= 0) {
|
|
299
|
-
throw new Error("Empty value provided for input HTTP label: name.");
|
|
300
|
-
}
|
|
301
|
-
resolvedPath = resolvedPath.replace("{name}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
|
|
302
|
-
}
|
|
303
|
-
else {
|
|
304
|
-
throw new Error("No value provided for input HTTP label: name.");
|
|
305
|
-
}
|
|
233
|
+
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "name", () => input.name, "{name}", false);
|
|
306
234
|
let body;
|
|
307
235
|
return new protocol_http_1.HttpRequest({
|
|
308
236
|
protocol,
|
|
@@ -320,26 +248,8 @@ const serializeAws_restJson1DeleteFargateProfileCommand = async (input, context)
|
|
|
320
248
|
const headers = {};
|
|
321
249
|
let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` +
|
|
322
250
|
"/clusters/{clusterName}/fargate-profiles/{fargateProfileName}";
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
if (labelValue.length <= 0) {
|
|
326
|
-
throw new Error("Empty value provided for input HTTP label: clusterName.");
|
|
327
|
-
}
|
|
328
|
-
resolvedPath = resolvedPath.replace("{clusterName}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
|
|
329
|
-
}
|
|
330
|
-
else {
|
|
331
|
-
throw new Error("No value provided for input HTTP label: clusterName.");
|
|
332
|
-
}
|
|
333
|
-
if (input.fargateProfileName !== undefined) {
|
|
334
|
-
const labelValue = input.fargateProfileName;
|
|
335
|
-
if (labelValue.length <= 0) {
|
|
336
|
-
throw new Error("Empty value provided for input HTTP label: fargateProfileName.");
|
|
337
|
-
}
|
|
338
|
-
resolvedPath = resolvedPath.replace("{fargateProfileName}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
|
|
339
|
-
}
|
|
340
|
-
else {
|
|
341
|
-
throw new Error("No value provided for input HTTP label: fargateProfileName.");
|
|
342
|
-
}
|
|
251
|
+
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "clusterName", () => input.clusterName, "{clusterName}", false);
|
|
252
|
+
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "fargateProfileName", () => input.fargateProfileName, "{fargateProfileName}", false);
|
|
343
253
|
let body;
|
|
344
254
|
return new protocol_http_1.HttpRequest({
|
|
345
255
|
protocol,
|
|
@@ -357,26 +267,8 @@ const serializeAws_restJson1DeleteNodegroupCommand = async (input, context) => {
|
|
|
357
267
|
const headers = {};
|
|
358
268
|
let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` +
|
|
359
269
|
"/clusters/{clusterName}/node-groups/{nodegroupName}";
|
|
360
|
-
|
|
361
|
-
|
|
362
|
-
if (labelValue.length <= 0) {
|
|
363
|
-
throw new Error("Empty value provided for input HTTP label: clusterName.");
|
|
364
|
-
}
|
|
365
|
-
resolvedPath = resolvedPath.replace("{clusterName}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
|
|
366
|
-
}
|
|
367
|
-
else {
|
|
368
|
-
throw new Error("No value provided for input HTTP label: clusterName.");
|
|
369
|
-
}
|
|
370
|
-
if (input.nodegroupName !== undefined) {
|
|
371
|
-
const labelValue = input.nodegroupName;
|
|
372
|
-
if (labelValue.length <= 0) {
|
|
373
|
-
throw new Error("Empty value provided for input HTTP label: nodegroupName.");
|
|
374
|
-
}
|
|
375
|
-
resolvedPath = resolvedPath.replace("{nodegroupName}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
|
|
376
|
-
}
|
|
377
|
-
else {
|
|
378
|
-
throw new Error("No value provided for input HTTP label: nodegroupName.");
|
|
379
|
-
}
|
|
270
|
+
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "clusterName", () => input.clusterName, "{clusterName}", false);
|
|
271
|
+
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "nodegroupName", () => input.nodegroupName, "{nodegroupName}", false);
|
|
380
272
|
let body;
|
|
381
273
|
return new protocol_http_1.HttpRequest({
|
|
382
274
|
protocol,
|
|
@@ -393,16 +285,7 @@ const serializeAws_restJson1DeregisterClusterCommand = async (input, context) =>
|
|
|
393
285
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
394
286
|
const headers = {};
|
|
395
287
|
let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/cluster-registrations/{name}";
|
|
396
|
-
|
|
397
|
-
const labelValue = input.name;
|
|
398
|
-
if (labelValue.length <= 0) {
|
|
399
|
-
throw new Error("Empty value provided for input HTTP label: name.");
|
|
400
|
-
}
|
|
401
|
-
resolvedPath = resolvedPath.replace("{name}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
|
|
402
|
-
}
|
|
403
|
-
else {
|
|
404
|
-
throw new Error("No value provided for input HTTP label: name.");
|
|
405
|
-
}
|
|
288
|
+
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "name", () => input.name, "{name}", false);
|
|
406
289
|
let body;
|
|
407
290
|
return new protocol_http_1.HttpRequest({
|
|
408
291
|
protocol,
|
|
@@ -420,26 +303,8 @@ const serializeAws_restJson1DescribeAddonCommand = async (input, context) => {
|
|
|
420
303
|
const headers = {};
|
|
421
304
|
let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` +
|
|
422
305
|
"/clusters/{clusterName}/addons/{addonName}";
|
|
423
|
-
|
|
424
|
-
|
|
425
|
-
if (labelValue.length <= 0) {
|
|
426
|
-
throw new Error("Empty value provided for input HTTP label: clusterName.");
|
|
427
|
-
}
|
|
428
|
-
resolvedPath = resolvedPath.replace("{clusterName}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
|
|
429
|
-
}
|
|
430
|
-
else {
|
|
431
|
-
throw new Error("No value provided for input HTTP label: clusterName.");
|
|
432
|
-
}
|
|
433
|
-
if (input.addonName !== undefined) {
|
|
434
|
-
const labelValue = input.addonName;
|
|
435
|
-
if (labelValue.length <= 0) {
|
|
436
|
-
throw new Error("Empty value provided for input HTTP label: addonName.");
|
|
437
|
-
}
|
|
438
|
-
resolvedPath = resolvedPath.replace("{addonName}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
|
|
439
|
-
}
|
|
440
|
-
else {
|
|
441
|
-
throw new Error("No value provided for input HTTP label: addonName.");
|
|
442
|
-
}
|
|
306
|
+
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "clusterName", () => input.clusterName, "{clusterName}", false);
|
|
307
|
+
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "addonName", () => input.addonName, "{addonName}", false);
|
|
443
308
|
let body;
|
|
444
309
|
return new protocol_http_1.HttpRequest({
|
|
445
310
|
protocol,
|
|
@@ -456,12 +321,12 @@ const serializeAws_restJson1DescribeAddonVersionsCommand = async (input, context
|
|
|
456
321
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
457
322
|
const headers = {};
|
|
458
323
|
const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/addons/supported-versions";
|
|
459
|
-
const query = {
|
|
460
|
-
|
|
461
|
-
|
|
462
|
-
|
|
463
|
-
|
|
464
|
-
};
|
|
324
|
+
const query = map({
|
|
325
|
+
kubernetesVersion: [, input.kubernetesVersion],
|
|
326
|
+
maxResults: [() => input.maxResults !== void 0, () => input.maxResults.toString()],
|
|
327
|
+
nextToken: [, input.nextToken],
|
|
328
|
+
addonName: [, input.addonName],
|
|
329
|
+
});
|
|
465
330
|
let body;
|
|
466
331
|
return new protocol_http_1.HttpRequest({
|
|
467
332
|
protocol,
|
|
@@ -479,16 +344,7 @@ const serializeAws_restJson1DescribeClusterCommand = async (input, context) => {
|
|
|
479
344
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
480
345
|
const headers = {};
|
|
481
346
|
let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/clusters/{name}";
|
|
482
|
-
|
|
483
|
-
const labelValue = input.name;
|
|
484
|
-
if (labelValue.length <= 0) {
|
|
485
|
-
throw new Error("Empty value provided for input HTTP label: name.");
|
|
486
|
-
}
|
|
487
|
-
resolvedPath = resolvedPath.replace("{name}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
|
|
488
|
-
}
|
|
489
|
-
else {
|
|
490
|
-
throw new Error("No value provided for input HTTP label: name.");
|
|
491
|
-
}
|
|
347
|
+
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "name", () => input.name, "{name}", false);
|
|
492
348
|
let body;
|
|
493
349
|
return new protocol_http_1.HttpRequest({
|
|
494
350
|
protocol,
|
|
@@ -506,26 +362,8 @@ const serializeAws_restJson1DescribeFargateProfileCommand = async (input, contex
|
|
|
506
362
|
const headers = {};
|
|
507
363
|
let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` +
|
|
508
364
|
"/clusters/{clusterName}/fargate-profiles/{fargateProfileName}";
|
|
509
|
-
|
|
510
|
-
|
|
511
|
-
if (labelValue.length <= 0) {
|
|
512
|
-
throw new Error("Empty value provided for input HTTP label: clusterName.");
|
|
513
|
-
}
|
|
514
|
-
resolvedPath = resolvedPath.replace("{clusterName}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
|
|
515
|
-
}
|
|
516
|
-
else {
|
|
517
|
-
throw new Error("No value provided for input HTTP label: clusterName.");
|
|
518
|
-
}
|
|
519
|
-
if (input.fargateProfileName !== undefined) {
|
|
520
|
-
const labelValue = input.fargateProfileName;
|
|
521
|
-
if (labelValue.length <= 0) {
|
|
522
|
-
throw new Error("Empty value provided for input HTTP label: fargateProfileName.");
|
|
523
|
-
}
|
|
524
|
-
resolvedPath = resolvedPath.replace("{fargateProfileName}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
|
|
525
|
-
}
|
|
526
|
-
else {
|
|
527
|
-
throw new Error("No value provided for input HTTP label: fargateProfileName.");
|
|
528
|
-
}
|
|
365
|
+
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "clusterName", () => input.clusterName, "{clusterName}", false);
|
|
366
|
+
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "fargateProfileName", () => input.fargateProfileName, "{fargateProfileName}", false);
|
|
529
367
|
let body;
|
|
530
368
|
return new protocol_http_1.HttpRequest({
|
|
531
369
|
protocol,
|
|
@@ -545,16 +383,7 @@ const serializeAws_restJson1DescribeIdentityProviderConfigCommand = async (input
|
|
|
545
383
|
};
|
|
546
384
|
let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` +
|
|
547
385
|
"/clusters/{clusterName}/identity-provider-configs/describe";
|
|
548
|
-
|
|
549
|
-
const labelValue = input.clusterName;
|
|
550
|
-
if (labelValue.length <= 0) {
|
|
551
|
-
throw new Error("Empty value provided for input HTTP label: clusterName.");
|
|
552
|
-
}
|
|
553
|
-
resolvedPath = resolvedPath.replace("{clusterName}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
|
|
554
|
-
}
|
|
555
|
-
else {
|
|
556
|
-
throw new Error("No value provided for input HTTP label: clusterName.");
|
|
557
|
-
}
|
|
386
|
+
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "clusterName", () => input.clusterName, "{clusterName}", false);
|
|
558
387
|
let body;
|
|
559
388
|
body = JSON.stringify({
|
|
560
389
|
...(input.identityProviderConfig != null && {
|
|
@@ -577,26 +406,8 @@ const serializeAws_restJson1DescribeNodegroupCommand = async (input, context) =>
|
|
|
577
406
|
const headers = {};
|
|
578
407
|
let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` +
|
|
579
408
|
"/clusters/{clusterName}/node-groups/{nodegroupName}";
|
|
580
|
-
|
|
581
|
-
|
|
582
|
-
if (labelValue.length <= 0) {
|
|
583
|
-
throw new Error("Empty value provided for input HTTP label: clusterName.");
|
|
584
|
-
}
|
|
585
|
-
resolvedPath = resolvedPath.replace("{clusterName}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
|
|
586
|
-
}
|
|
587
|
-
else {
|
|
588
|
-
throw new Error("No value provided for input HTTP label: clusterName.");
|
|
589
|
-
}
|
|
590
|
-
if (input.nodegroupName !== undefined) {
|
|
591
|
-
const labelValue = input.nodegroupName;
|
|
592
|
-
if (labelValue.length <= 0) {
|
|
593
|
-
throw new Error("Empty value provided for input HTTP label: nodegroupName.");
|
|
594
|
-
}
|
|
595
|
-
resolvedPath = resolvedPath.replace("{nodegroupName}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
|
|
596
|
-
}
|
|
597
|
-
else {
|
|
598
|
-
throw new Error("No value provided for input HTTP label: nodegroupName.");
|
|
599
|
-
}
|
|
409
|
+
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "clusterName", () => input.clusterName, "{clusterName}", false);
|
|
410
|
+
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "nodegroupName", () => input.nodegroupName, "{nodegroupName}", false);
|
|
600
411
|
let body;
|
|
601
412
|
return new protocol_http_1.HttpRequest({
|
|
602
413
|
protocol,
|
|
@@ -613,30 +424,12 @@ const serializeAws_restJson1DescribeUpdateCommand = async (input, context) => {
|
|
|
613
424
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
614
425
|
const headers = {};
|
|
615
426
|
let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/clusters/{name}/updates/{updateId}";
|
|
616
|
-
|
|
617
|
-
|
|
618
|
-
|
|
619
|
-
|
|
620
|
-
|
|
621
|
-
|
|
622
|
-
}
|
|
623
|
-
else {
|
|
624
|
-
throw new Error("No value provided for input HTTP label: name.");
|
|
625
|
-
}
|
|
626
|
-
if (input.updateId !== undefined) {
|
|
627
|
-
const labelValue = input.updateId;
|
|
628
|
-
if (labelValue.length <= 0) {
|
|
629
|
-
throw new Error("Empty value provided for input HTTP label: updateId.");
|
|
630
|
-
}
|
|
631
|
-
resolvedPath = resolvedPath.replace("{updateId}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
|
|
632
|
-
}
|
|
633
|
-
else {
|
|
634
|
-
throw new Error("No value provided for input HTTP label: updateId.");
|
|
635
|
-
}
|
|
636
|
-
const query = {
|
|
637
|
-
...(input.nodegroupName !== undefined && { nodegroupName: input.nodegroupName }),
|
|
638
|
-
...(input.addonName !== undefined && { addonName: input.addonName }),
|
|
639
|
-
};
|
|
427
|
+
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "name", () => input.name, "{name}", false);
|
|
428
|
+
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "updateId", () => input.updateId, "{updateId}", false);
|
|
429
|
+
const query = map({
|
|
430
|
+
nodegroupName: [, input.nodegroupName],
|
|
431
|
+
addonName: [, input.addonName],
|
|
432
|
+
});
|
|
640
433
|
let body;
|
|
641
434
|
return new protocol_http_1.HttpRequest({
|
|
642
435
|
protocol,
|
|
@@ -658,16 +451,7 @@ const serializeAws_restJson1DisassociateIdentityProviderConfigCommand = async (i
|
|
|
658
451
|
};
|
|
659
452
|
let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` +
|
|
660
453
|
"/clusters/{clusterName}/identity-provider-configs/disassociate";
|
|
661
|
-
|
|
662
|
-
const labelValue = input.clusterName;
|
|
663
|
-
if (labelValue.length <= 0) {
|
|
664
|
-
throw new Error("Empty value provided for input HTTP label: clusterName.");
|
|
665
|
-
}
|
|
666
|
-
resolvedPath = resolvedPath.replace("{clusterName}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
|
|
667
|
-
}
|
|
668
|
-
else {
|
|
669
|
-
throw new Error("No value provided for input HTTP label: clusterName.");
|
|
670
|
-
}
|
|
454
|
+
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "clusterName", () => input.clusterName, "{clusterName}", false);
|
|
671
455
|
let body;
|
|
672
456
|
body = JSON.stringify({
|
|
673
457
|
clientRequestToken: (_a = input.clientRequestToken) !== null && _a !== void 0 ? _a : (0, uuid_1.v4)(),
|
|
@@ -690,20 +474,11 @@ const serializeAws_restJson1ListAddonsCommand = async (input, context) => {
|
|
|
690
474
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
691
475
|
const headers = {};
|
|
692
476
|
let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/clusters/{clusterName}/addons";
|
|
693
|
-
|
|
694
|
-
|
|
695
|
-
|
|
696
|
-
|
|
697
|
-
|
|
698
|
-
resolvedPath = resolvedPath.replace("{clusterName}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
|
|
699
|
-
}
|
|
700
|
-
else {
|
|
701
|
-
throw new Error("No value provided for input HTTP label: clusterName.");
|
|
702
|
-
}
|
|
703
|
-
const query = {
|
|
704
|
-
...(input.maxResults !== undefined && { maxResults: input.maxResults.toString() }),
|
|
705
|
-
...(input.nextToken !== undefined && { nextToken: input.nextToken }),
|
|
706
|
-
};
|
|
477
|
+
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "clusterName", () => input.clusterName, "{clusterName}", false);
|
|
478
|
+
const query = map({
|
|
479
|
+
maxResults: [() => input.maxResults !== void 0, () => input.maxResults.toString()],
|
|
480
|
+
nextToken: [, input.nextToken],
|
|
481
|
+
});
|
|
707
482
|
let body;
|
|
708
483
|
return new protocol_http_1.HttpRequest({
|
|
709
484
|
protocol,
|
|
@@ -721,11 +496,11 @@ const serializeAws_restJson1ListClustersCommand = async (input, context) => {
|
|
|
721
496
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
722
497
|
const headers = {};
|
|
723
498
|
const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/clusters";
|
|
724
|
-
const query = {
|
|
725
|
-
|
|
726
|
-
|
|
727
|
-
|
|
728
|
-
};
|
|
499
|
+
const query = map({
|
|
500
|
+
maxResults: [() => input.maxResults !== void 0, () => input.maxResults.toString()],
|
|
501
|
+
nextToken: [, input.nextToken],
|
|
502
|
+
include: [() => input.include !== void 0, () => (input.include || []).map((_entry) => _entry)],
|
|
503
|
+
});
|
|
729
504
|
let body;
|
|
730
505
|
return new protocol_http_1.HttpRequest({
|
|
731
506
|
protocol,
|
|
@@ -743,20 +518,11 @@ const serializeAws_restJson1ListFargateProfilesCommand = async (input, context)
|
|
|
743
518
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
744
519
|
const headers = {};
|
|
745
520
|
let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/clusters/{clusterName}/fargate-profiles";
|
|
746
|
-
|
|
747
|
-
|
|
748
|
-
|
|
749
|
-
|
|
750
|
-
|
|
751
|
-
resolvedPath = resolvedPath.replace("{clusterName}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
|
|
752
|
-
}
|
|
753
|
-
else {
|
|
754
|
-
throw new Error("No value provided for input HTTP label: clusterName.");
|
|
755
|
-
}
|
|
756
|
-
const query = {
|
|
757
|
-
...(input.maxResults !== undefined && { maxResults: input.maxResults.toString() }),
|
|
758
|
-
...(input.nextToken !== undefined && { nextToken: input.nextToken }),
|
|
759
|
-
};
|
|
521
|
+
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "clusterName", () => input.clusterName, "{clusterName}", false);
|
|
522
|
+
const query = map({
|
|
523
|
+
maxResults: [() => input.maxResults !== void 0, () => input.maxResults.toString()],
|
|
524
|
+
nextToken: [, input.nextToken],
|
|
525
|
+
});
|
|
760
526
|
let body;
|
|
761
527
|
return new protocol_http_1.HttpRequest({
|
|
762
528
|
protocol,
|
|
@@ -775,20 +541,11 @@ const serializeAws_restJson1ListIdentityProviderConfigsCommand = async (input, c
|
|
|
775
541
|
const headers = {};
|
|
776
542
|
let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` +
|
|
777
543
|
"/clusters/{clusterName}/identity-provider-configs";
|
|
778
|
-
|
|
779
|
-
|
|
780
|
-
|
|
781
|
-
|
|
782
|
-
|
|
783
|
-
resolvedPath = resolvedPath.replace("{clusterName}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
|
|
784
|
-
}
|
|
785
|
-
else {
|
|
786
|
-
throw new Error("No value provided for input HTTP label: clusterName.");
|
|
787
|
-
}
|
|
788
|
-
const query = {
|
|
789
|
-
...(input.maxResults !== undefined && { maxResults: input.maxResults.toString() }),
|
|
790
|
-
...(input.nextToken !== undefined && { nextToken: input.nextToken }),
|
|
791
|
-
};
|
|
544
|
+
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "clusterName", () => input.clusterName, "{clusterName}", false);
|
|
545
|
+
const query = map({
|
|
546
|
+
maxResults: [() => input.maxResults !== void 0, () => input.maxResults.toString()],
|
|
547
|
+
nextToken: [, input.nextToken],
|
|
548
|
+
});
|
|
792
549
|
let body;
|
|
793
550
|
return new protocol_http_1.HttpRequest({
|
|
794
551
|
protocol,
|
|
@@ -806,20 +563,11 @@ const serializeAws_restJson1ListNodegroupsCommand = async (input, context) => {
|
|
|
806
563
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
807
564
|
const headers = {};
|
|
808
565
|
let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/clusters/{clusterName}/node-groups";
|
|
809
|
-
|
|
810
|
-
|
|
811
|
-
|
|
812
|
-
|
|
813
|
-
|
|
814
|
-
resolvedPath = resolvedPath.replace("{clusterName}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
|
|
815
|
-
}
|
|
816
|
-
else {
|
|
817
|
-
throw new Error("No value provided for input HTTP label: clusterName.");
|
|
818
|
-
}
|
|
819
|
-
const query = {
|
|
820
|
-
...(input.maxResults !== undefined && { maxResults: input.maxResults.toString() }),
|
|
821
|
-
...(input.nextToken !== undefined && { nextToken: input.nextToken }),
|
|
822
|
-
};
|
|
566
|
+
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "clusterName", () => input.clusterName, "{clusterName}", false);
|
|
567
|
+
const query = map({
|
|
568
|
+
maxResults: [() => input.maxResults !== void 0, () => input.maxResults.toString()],
|
|
569
|
+
nextToken: [, input.nextToken],
|
|
570
|
+
});
|
|
823
571
|
let body;
|
|
824
572
|
return new protocol_http_1.HttpRequest({
|
|
825
573
|
protocol,
|
|
@@ -837,16 +585,7 @@ const serializeAws_restJson1ListTagsForResourceCommand = async (input, context)
|
|
|
837
585
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
838
586
|
const headers = {};
|
|
839
587
|
let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/tags/{resourceArn}";
|
|
840
|
-
|
|
841
|
-
const labelValue = input.resourceArn;
|
|
842
|
-
if (labelValue.length <= 0) {
|
|
843
|
-
throw new Error("Empty value provided for input HTTP label: resourceArn.");
|
|
844
|
-
}
|
|
845
|
-
resolvedPath = resolvedPath.replace("{resourceArn}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
|
|
846
|
-
}
|
|
847
|
-
else {
|
|
848
|
-
throw new Error("No value provided for input HTTP label: resourceArn.");
|
|
849
|
-
}
|
|
588
|
+
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "resourceArn", () => input.resourceArn, "{resourceArn}", false);
|
|
850
589
|
let body;
|
|
851
590
|
return new protocol_http_1.HttpRequest({
|
|
852
591
|
protocol,
|
|
@@ -863,22 +602,13 @@ const serializeAws_restJson1ListUpdatesCommand = async (input, context) => {
|
|
|
863
602
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
864
603
|
const headers = {};
|
|
865
604
|
let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/clusters/{name}/updates";
|
|
866
|
-
|
|
867
|
-
|
|
868
|
-
|
|
869
|
-
|
|
870
|
-
|
|
871
|
-
|
|
872
|
-
}
|
|
873
|
-
else {
|
|
874
|
-
throw new Error("No value provided for input HTTP label: name.");
|
|
875
|
-
}
|
|
876
|
-
const query = {
|
|
877
|
-
...(input.nodegroupName !== undefined && { nodegroupName: input.nodegroupName }),
|
|
878
|
-
...(input.addonName !== undefined && { addonName: input.addonName }),
|
|
879
|
-
...(input.nextToken !== undefined && { nextToken: input.nextToken }),
|
|
880
|
-
...(input.maxResults !== undefined && { maxResults: input.maxResults.toString() }),
|
|
881
|
-
};
|
|
605
|
+
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "name", () => input.name, "{name}", false);
|
|
606
|
+
const query = map({
|
|
607
|
+
nodegroupName: [, input.nodegroupName],
|
|
608
|
+
addonName: [, input.addonName],
|
|
609
|
+
nextToken: [, input.nextToken],
|
|
610
|
+
maxResults: [() => input.maxResults !== void 0, () => input.maxResults.toString()],
|
|
611
|
+
});
|
|
882
612
|
let body;
|
|
883
613
|
return new protocol_http_1.HttpRequest({
|
|
884
614
|
protocol,
|
|
@@ -925,16 +655,7 @@ const serializeAws_restJson1TagResourceCommand = async (input, context) => {
|
|
|
925
655
|
"content-type": "application/json",
|
|
926
656
|
};
|
|
927
657
|
let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/tags/{resourceArn}";
|
|
928
|
-
|
|
929
|
-
const labelValue = input.resourceArn;
|
|
930
|
-
if (labelValue.length <= 0) {
|
|
931
|
-
throw new Error("Empty value provided for input HTTP label: resourceArn.");
|
|
932
|
-
}
|
|
933
|
-
resolvedPath = resolvedPath.replace("{resourceArn}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
|
|
934
|
-
}
|
|
935
|
-
else {
|
|
936
|
-
throw new Error("No value provided for input HTTP label: resourceArn.");
|
|
937
|
-
}
|
|
658
|
+
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "resourceArn", () => input.resourceArn, "{resourceArn}", false);
|
|
938
659
|
let body;
|
|
939
660
|
body = JSON.stringify({
|
|
940
661
|
...(input.tags != null && { tags: serializeAws_restJson1TagMap(input.tags, context) }),
|
|
@@ -954,19 +675,10 @@ const serializeAws_restJson1UntagResourceCommand = async (input, context) => {
|
|
|
954
675
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
955
676
|
const headers = {};
|
|
956
677
|
let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/tags/{resourceArn}";
|
|
957
|
-
|
|
958
|
-
|
|
959
|
-
|
|
960
|
-
|
|
961
|
-
}
|
|
962
|
-
resolvedPath = resolvedPath.replace("{resourceArn}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
|
|
963
|
-
}
|
|
964
|
-
else {
|
|
965
|
-
throw new Error("No value provided for input HTTP label: resourceArn.");
|
|
966
|
-
}
|
|
967
|
-
const query = {
|
|
968
|
-
...(input.tagKeys !== undefined && { tagKeys: (input.tagKeys || []).map((_entry) => _entry) }),
|
|
969
|
-
};
|
|
678
|
+
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "resourceArn", () => input.resourceArn, "{resourceArn}", false);
|
|
679
|
+
const query = map({
|
|
680
|
+
tagKeys: [() => input.tagKeys !== void 0, () => (input.tagKeys || []).map((_entry) => _entry)],
|
|
681
|
+
});
|
|
970
682
|
let body;
|
|
971
683
|
return new protocol_http_1.HttpRequest({
|
|
972
684
|
protocol,
|
|
@@ -988,26 +700,8 @@ const serializeAws_restJson1UpdateAddonCommand = async (input, context) => {
|
|
|
988
700
|
};
|
|
989
701
|
let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` +
|
|
990
702
|
"/clusters/{clusterName}/addons/{addonName}/update";
|
|
991
|
-
|
|
992
|
-
|
|
993
|
-
if (labelValue.length <= 0) {
|
|
994
|
-
throw new Error("Empty value provided for input HTTP label: clusterName.");
|
|
995
|
-
}
|
|
996
|
-
resolvedPath = resolvedPath.replace("{clusterName}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
|
|
997
|
-
}
|
|
998
|
-
else {
|
|
999
|
-
throw new Error("No value provided for input HTTP label: clusterName.");
|
|
1000
|
-
}
|
|
1001
|
-
if (input.addonName !== undefined) {
|
|
1002
|
-
const labelValue = input.addonName;
|
|
1003
|
-
if (labelValue.length <= 0) {
|
|
1004
|
-
throw new Error("Empty value provided for input HTTP label: addonName.");
|
|
1005
|
-
}
|
|
1006
|
-
resolvedPath = resolvedPath.replace("{addonName}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
|
|
1007
|
-
}
|
|
1008
|
-
else {
|
|
1009
|
-
throw new Error("No value provided for input HTTP label: addonName.");
|
|
1010
|
-
}
|
|
703
|
+
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "clusterName", () => input.clusterName, "{clusterName}", false);
|
|
704
|
+
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "addonName", () => input.addonName, "{addonName}", false);
|
|
1011
705
|
let body;
|
|
1012
706
|
body = JSON.stringify({
|
|
1013
707
|
...(input.addonVersion != null && { addonVersion: input.addonVersion }),
|
|
@@ -1033,16 +727,7 @@ const serializeAws_restJson1UpdateClusterConfigCommand = async (input, context)
|
|
|
1033
727
|
"content-type": "application/json",
|
|
1034
728
|
};
|
|
1035
729
|
let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/clusters/{name}/update-config";
|
|
1036
|
-
|
|
1037
|
-
const labelValue = input.name;
|
|
1038
|
-
if (labelValue.length <= 0) {
|
|
1039
|
-
throw new Error("Empty value provided for input HTTP label: name.");
|
|
1040
|
-
}
|
|
1041
|
-
resolvedPath = resolvedPath.replace("{name}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
|
|
1042
|
-
}
|
|
1043
|
-
else {
|
|
1044
|
-
throw new Error("No value provided for input HTTP label: name.");
|
|
1045
|
-
}
|
|
730
|
+
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "name", () => input.name, "{name}", false);
|
|
1046
731
|
let body;
|
|
1047
732
|
body = JSON.stringify({
|
|
1048
733
|
clientRequestToken: (_a = input.clientRequestToken) !== null && _a !== void 0 ? _a : (0, uuid_1.v4)(),
|
|
@@ -1069,16 +754,7 @@ const serializeAws_restJson1UpdateClusterVersionCommand = async (input, context)
|
|
|
1069
754
|
"content-type": "application/json",
|
|
1070
755
|
};
|
|
1071
756
|
let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/clusters/{name}/updates";
|
|
1072
|
-
|
|
1073
|
-
const labelValue = input.name;
|
|
1074
|
-
if (labelValue.length <= 0) {
|
|
1075
|
-
throw new Error("Empty value provided for input HTTP label: name.");
|
|
1076
|
-
}
|
|
1077
|
-
resolvedPath = resolvedPath.replace("{name}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
|
|
1078
|
-
}
|
|
1079
|
-
else {
|
|
1080
|
-
throw new Error("No value provided for input HTTP label: name.");
|
|
1081
|
-
}
|
|
757
|
+
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "name", () => input.name, "{name}", false);
|
|
1082
758
|
let body;
|
|
1083
759
|
body = JSON.stringify({
|
|
1084
760
|
clientRequestToken: (_a = input.clientRequestToken) !== null && _a !== void 0 ? _a : (0, uuid_1.v4)(),
|
|
@@ -1103,26 +779,8 @@ const serializeAws_restJson1UpdateNodegroupConfigCommand = async (input, context
|
|
|
1103
779
|
};
|
|
1104
780
|
let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` +
|
|
1105
781
|
"/clusters/{clusterName}/node-groups/{nodegroupName}/update-config";
|
|
1106
|
-
|
|
1107
|
-
|
|
1108
|
-
if (labelValue.length <= 0) {
|
|
1109
|
-
throw new Error("Empty value provided for input HTTP label: clusterName.");
|
|
1110
|
-
}
|
|
1111
|
-
resolvedPath = resolvedPath.replace("{clusterName}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
|
|
1112
|
-
}
|
|
1113
|
-
else {
|
|
1114
|
-
throw new Error("No value provided for input HTTP label: clusterName.");
|
|
1115
|
-
}
|
|
1116
|
-
if (input.nodegroupName !== undefined) {
|
|
1117
|
-
const labelValue = input.nodegroupName;
|
|
1118
|
-
if (labelValue.length <= 0) {
|
|
1119
|
-
throw new Error("Empty value provided for input HTTP label: nodegroupName.");
|
|
1120
|
-
}
|
|
1121
|
-
resolvedPath = resolvedPath.replace("{nodegroupName}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
|
|
1122
|
-
}
|
|
1123
|
-
else {
|
|
1124
|
-
throw new Error("No value provided for input HTTP label: nodegroupName.");
|
|
1125
|
-
}
|
|
782
|
+
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "clusterName", () => input.clusterName, "{clusterName}", false);
|
|
783
|
+
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "nodegroupName", () => input.nodegroupName, "{nodegroupName}", false);
|
|
1126
784
|
let body;
|
|
1127
785
|
body = JSON.stringify({
|
|
1128
786
|
clientRequestToken: (_a = input.clientRequestToken) !== null && _a !== void 0 ? _a : (0, uuid_1.v4)(),
|
|
@@ -1154,26 +812,8 @@ const serializeAws_restJson1UpdateNodegroupVersionCommand = async (input, contex
|
|
|
1154
812
|
};
|
|
1155
813
|
let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` +
|
|
1156
814
|
"/clusters/{clusterName}/node-groups/{nodegroupName}/update-version";
|
|
1157
|
-
|
|
1158
|
-
|
|
1159
|
-
if (labelValue.length <= 0) {
|
|
1160
|
-
throw new Error("Empty value provided for input HTTP label: clusterName.");
|
|
1161
|
-
}
|
|
1162
|
-
resolvedPath = resolvedPath.replace("{clusterName}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
|
|
1163
|
-
}
|
|
1164
|
-
else {
|
|
1165
|
-
throw new Error("No value provided for input HTTP label: clusterName.");
|
|
1166
|
-
}
|
|
1167
|
-
if (input.nodegroupName !== undefined) {
|
|
1168
|
-
const labelValue = input.nodegroupName;
|
|
1169
|
-
if (labelValue.length <= 0) {
|
|
1170
|
-
throw new Error("Empty value provided for input HTTP label: nodegroupName.");
|
|
1171
|
-
}
|
|
1172
|
-
resolvedPath = resolvedPath.replace("{nodegroupName}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
|
|
1173
|
-
}
|
|
1174
|
-
else {
|
|
1175
|
-
throw new Error("No value provided for input HTTP label: nodegroupName.");
|
|
1176
|
-
}
|
|
815
|
+
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "clusterName", () => input.clusterName, "{clusterName}", false);
|
|
816
|
+
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "nodegroupName", () => input.nodegroupName, "{nodegroupName}", false);
|
|
1177
817
|
let body;
|
|
1178
818
|
body = JSON.stringify({
|
|
1179
819
|
clientRequestToken: (_a = input.clientRequestToken) !== null && _a !== void 0 ? _a : (0, uuid_1.v4)(),
|
|
@@ -1199,15 +839,14 @@ const deserializeAws_restJson1AssociateEncryptionConfigCommand = async (output,
|
|
|
1199
839
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1200
840
|
return deserializeAws_restJson1AssociateEncryptionConfigCommandError(output, context);
|
|
1201
841
|
}
|
|
1202
|
-
const contents = {
|
|
842
|
+
const contents = map({
|
|
1203
843
|
$metadata: deserializeMetadata(output),
|
|
1204
|
-
|
|
1205
|
-
};
|
|
844
|
+
});
|
|
1206
845
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1207
|
-
if (data.update
|
|
846
|
+
if (data.update != null) {
|
|
1208
847
|
contents.update = deserializeAws_restJson1Update(data.update, context);
|
|
1209
848
|
}
|
|
1210
|
-
return
|
|
849
|
+
return contents;
|
|
1211
850
|
};
|
|
1212
851
|
exports.deserializeAws_restJson1AssociateEncryptionConfigCommand = deserializeAws_restJson1AssociateEncryptionConfigCommand;
|
|
1213
852
|
const deserializeAws_restJson1AssociateEncryptionConfigCommandError = async (output, context) => {
|
|
@@ -1215,7 +854,6 @@ const deserializeAws_restJson1AssociateEncryptionConfigCommandError = async (out
|
|
|
1215
854
|
...output,
|
|
1216
855
|
body: await parseBody(output.body, context),
|
|
1217
856
|
};
|
|
1218
|
-
let response;
|
|
1219
857
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1220
858
|
switch (errorCode) {
|
|
1221
859
|
case "ClientException":
|
|
@@ -1238,33 +876,29 @@ const deserializeAws_restJson1AssociateEncryptionConfigCommandError = async (out
|
|
|
1238
876
|
throw await deserializeAws_restJson1ServerExceptionResponse(parsedOutput, context);
|
|
1239
877
|
default:
|
|
1240
878
|
const parsedBody = parsedOutput.body;
|
|
1241
|
-
|
|
1242
|
-
|
|
1243
|
-
|
|
1244
|
-
|
|
1245
|
-
|
|
1246
|
-
$metadata,
|
|
879
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
880
|
+
output,
|
|
881
|
+
parsedBody,
|
|
882
|
+
exceptionCtor: EKSServiceException_1.EKSServiceException,
|
|
883
|
+
errorCode,
|
|
1247
884
|
});
|
|
1248
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1249
885
|
}
|
|
1250
886
|
};
|
|
1251
887
|
const deserializeAws_restJson1AssociateIdentityProviderConfigCommand = async (output, context) => {
|
|
1252
888
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1253
889
|
return deserializeAws_restJson1AssociateIdentityProviderConfigCommandError(output, context);
|
|
1254
890
|
}
|
|
1255
|
-
const contents = {
|
|
891
|
+
const contents = map({
|
|
1256
892
|
$metadata: deserializeMetadata(output),
|
|
1257
|
-
|
|
1258
|
-
update: undefined,
|
|
1259
|
-
};
|
|
893
|
+
});
|
|
1260
894
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1261
|
-
if (data.tags
|
|
895
|
+
if (data.tags != null) {
|
|
1262
896
|
contents.tags = deserializeAws_restJson1TagMap(data.tags, context);
|
|
1263
897
|
}
|
|
1264
|
-
if (data.update
|
|
898
|
+
if (data.update != null) {
|
|
1265
899
|
contents.update = deserializeAws_restJson1Update(data.update, context);
|
|
1266
900
|
}
|
|
1267
|
-
return
|
|
901
|
+
return contents;
|
|
1268
902
|
};
|
|
1269
903
|
exports.deserializeAws_restJson1AssociateIdentityProviderConfigCommand = deserializeAws_restJson1AssociateIdentityProviderConfigCommand;
|
|
1270
904
|
const deserializeAws_restJson1AssociateIdentityProviderConfigCommandError = async (output, context) => {
|
|
@@ -1272,7 +906,6 @@ const deserializeAws_restJson1AssociateIdentityProviderConfigCommandError = asyn
|
|
|
1272
906
|
...output,
|
|
1273
907
|
body: await parseBody(output.body, context),
|
|
1274
908
|
};
|
|
1275
|
-
let response;
|
|
1276
909
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1277
910
|
switch (errorCode) {
|
|
1278
911
|
case "ClientException":
|
|
@@ -1295,29 +928,26 @@ const deserializeAws_restJson1AssociateIdentityProviderConfigCommandError = asyn
|
|
|
1295
928
|
throw await deserializeAws_restJson1ServerExceptionResponse(parsedOutput, context);
|
|
1296
929
|
default:
|
|
1297
930
|
const parsedBody = parsedOutput.body;
|
|
1298
|
-
|
|
1299
|
-
|
|
1300
|
-
|
|
1301
|
-
|
|
1302
|
-
|
|
1303
|
-
$metadata,
|
|
931
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
932
|
+
output,
|
|
933
|
+
parsedBody,
|
|
934
|
+
exceptionCtor: EKSServiceException_1.EKSServiceException,
|
|
935
|
+
errorCode,
|
|
1304
936
|
});
|
|
1305
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1306
937
|
}
|
|
1307
938
|
};
|
|
1308
939
|
const deserializeAws_restJson1CreateAddonCommand = async (output, context) => {
|
|
1309
940
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1310
941
|
return deserializeAws_restJson1CreateAddonCommandError(output, context);
|
|
1311
942
|
}
|
|
1312
|
-
const contents = {
|
|
943
|
+
const contents = map({
|
|
1313
944
|
$metadata: deserializeMetadata(output),
|
|
1314
|
-
|
|
1315
|
-
};
|
|
945
|
+
});
|
|
1316
946
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1317
|
-
if (data.addon
|
|
947
|
+
if (data.addon != null) {
|
|
1318
948
|
contents.addon = deserializeAws_restJson1Addon(data.addon, context);
|
|
1319
949
|
}
|
|
1320
|
-
return
|
|
950
|
+
return contents;
|
|
1321
951
|
};
|
|
1322
952
|
exports.deserializeAws_restJson1CreateAddonCommand = deserializeAws_restJson1CreateAddonCommand;
|
|
1323
953
|
const deserializeAws_restJson1CreateAddonCommandError = async (output, context) => {
|
|
@@ -1325,7 +955,6 @@ const deserializeAws_restJson1CreateAddonCommandError = async (output, context)
|
|
|
1325
955
|
...output,
|
|
1326
956
|
body: await parseBody(output.body, context),
|
|
1327
957
|
};
|
|
1328
|
-
let response;
|
|
1329
958
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1330
959
|
switch (errorCode) {
|
|
1331
960
|
case "ClientException":
|
|
@@ -1348,29 +977,26 @@ const deserializeAws_restJson1CreateAddonCommandError = async (output, context)
|
|
|
1348
977
|
throw await deserializeAws_restJson1ServerExceptionResponse(parsedOutput, context);
|
|
1349
978
|
default:
|
|
1350
979
|
const parsedBody = parsedOutput.body;
|
|
1351
|
-
|
|
1352
|
-
|
|
1353
|
-
|
|
1354
|
-
|
|
1355
|
-
|
|
1356
|
-
$metadata,
|
|
980
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
981
|
+
output,
|
|
982
|
+
parsedBody,
|
|
983
|
+
exceptionCtor: EKSServiceException_1.EKSServiceException,
|
|
984
|
+
errorCode,
|
|
1357
985
|
});
|
|
1358
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1359
986
|
}
|
|
1360
987
|
};
|
|
1361
988
|
const deserializeAws_restJson1CreateClusterCommand = async (output, context) => {
|
|
1362
989
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1363
990
|
return deserializeAws_restJson1CreateClusterCommandError(output, context);
|
|
1364
991
|
}
|
|
1365
|
-
const contents = {
|
|
992
|
+
const contents = map({
|
|
1366
993
|
$metadata: deserializeMetadata(output),
|
|
1367
|
-
|
|
1368
|
-
};
|
|
994
|
+
});
|
|
1369
995
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1370
|
-
if (data.cluster
|
|
996
|
+
if (data.cluster != null) {
|
|
1371
997
|
contents.cluster = deserializeAws_restJson1Cluster(data.cluster, context);
|
|
1372
998
|
}
|
|
1373
|
-
return
|
|
999
|
+
return contents;
|
|
1374
1000
|
};
|
|
1375
1001
|
exports.deserializeAws_restJson1CreateClusterCommand = deserializeAws_restJson1CreateClusterCommand;
|
|
1376
1002
|
const deserializeAws_restJson1CreateClusterCommandError = async (output, context) => {
|
|
@@ -1378,7 +1004,6 @@ const deserializeAws_restJson1CreateClusterCommandError = async (output, context
|
|
|
1378
1004
|
...output,
|
|
1379
1005
|
body: await parseBody(output.body, context),
|
|
1380
1006
|
};
|
|
1381
|
-
let response;
|
|
1382
1007
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1383
1008
|
switch (errorCode) {
|
|
1384
1009
|
case "ClientException":
|
|
@@ -1404,29 +1029,26 @@ const deserializeAws_restJson1CreateClusterCommandError = async (output, context
|
|
|
1404
1029
|
throw await deserializeAws_restJson1UnsupportedAvailabilityZoneExceptionResponse(parsedOutput, context);
|
|
1405
1030
|
default:
|
|
1406
1031
|
const parsedBody = parsedOutput.body;
|
|
1407
|
-
|
|
1408
|
-
|
|
1409
|
-
|
|
1410
|
-
|
|
1411
|
-
|
|
1412
|
-
$metadata,
|
|
1032
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1033
|
+
output,
|
|
1034
|
+
parsedBody,
|
|
1035
|
+
exceptionCtor: EKSServiceException_1.EKSServiceException,
|
|
1036
|
+
errorCode,
|
|
1413
1037
|
});
|
|
1414
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1415
1038
|
}
|
|
1416
1039
|
};
|
|
1417
1040
|
const deserializeAws_restJson1CreateFargateProfileCommand = async (output, context) => {
|
|
1418
1041
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1419
1042
|
return deserializeAws_restJson1CreateFargateProfileCommandError(output, context);
|
|
1420
1043
|
}
|
|
1421
|
-
const contents = {
|
|
1044
|
+
const contents = map({
|
|
1422
1045
|
$metadata: deserializeMetadata(output),
|
|
1423
|
-
|
|
1424
|
-
};
|
|
1046
|
+
});
|
|
1425
1047
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1426
|
-
if (data.fargateProfile
|
|
1048
|
+
if (data.fargateProfile != null) {
|
|
1427
1049
|
contents.fargateProfile = deserializeAws_restJson1FargateProfile(data.fargateProfile, context);
|
|
1428
1050
|
}
|
|
1429
|
-
return
|
|
1051
|
+
return contents;
|
|
1430
1052
|
};
|
|
1431
1053
|
exports.deserializeAws_restJson1CreateFargateProfileCommand = deserializeAws_restJson1CreateFargateProfileCommand;
|
|
1432
1054
|
const deserializeAws_restJson1CreateFargateProfileCommandError = async (output, context) => {
|
|
@@ -1434,7 +1056,6 @@ const deserializeAws_restJson1CreateFargateProfileCommandError = async (output,
|
|
|
1434
1056
|
...output,
|
|
1435
1057
|
body: await parseBody(output.body, context),
|
|
1436
1058
|
};
|
|
1437
|
-
let response;
|
|
1438
1059
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1439
1060
|
switch (errorCode) {
|
|
1440
1061
|
case "ClientException":
|
|
@@ -1457,29 +1078,26 @@ const deserializeAws_restJson1CreateFargateProfileCommandError = async (output,
|
|
|
1457
1078
|
throw await deserializeAws_restJson1UnsupportedAvailabilityZoneExceptionResponse(parsedOutput, context);
|
|
1458
1079
|
default:
|
|
1459
1080
|
const parsedBody = parsedOutput.body;
|
|
1460
|
-
|
|
1461
|
-
|
|
1462
|
-
|
|
1463
|
-
|
|
1464
|
-
|
|
1465
|
-
$metadata,
|
|
1081
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1082
|
+
output,
|
|
1083
|
+
parsedBody,
|
|
1084
|
+
exceptionCtor: EKSServiceException_1.EKSServiceException,
|
|
1085
|
+
errorCode,
|
|
1466
1086
|
});
|
|
1467
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1468
1087
|
}
|
|
1469
1088
|
};
|
|
1470
1089
|
const deserializeAws_restJson1CreateNodegroupCommand = async (output, context) => {
|
|
1471
1090
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1472
1091
|
return deserializeAws_restJson1CreateNodegroupCommandError(output, context);
|
|
1473
1092
|
}
|
|
1474
|
-
const contents = {
|
|
1093
|
+
const contents = map({
|
|
1475
1094
|
$metadata: deserializeMetadata(output),
|
|
1476
|
-
|
|
1477
|
-
};
|
|
1095
|
+
});
|
|
1478
1096
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1479
|
-
if (data.nodegroup
|
|
1097
|
+
if (data.nodegroup != null) {
|
|
1480
1098
|
contents.nodegroup = deserializeAws_restJson1Nodegroup(data.nodegroup, context);
|
|
1481
1099
|
}
|
|
1482
|
-
return
|
|
1100
|
+
return contents;
|
|
1483
1101
|
};
|
|
1484
1102
|
exports.deserializeAws_restJson1CreateNodegroupCommand = deserializeAws_restJson1CreateNodegroupCommand;
|
|
1485
1103
|
const deserializeAws_restJson1CreateNodegroupCommandError = async (output, context) => {
|
|
@@ -1487,7 +1105,6 @@ const deserializeAws_restJson1CreateNodegroupCommandError = async (output, conte
|
|
|
1487
1105
|
...output,
|
|
1488
1106
|
body: await parseBody(output.body, context),
|
|
1489
1107
|
};
|
|
1490
|
-
let response;
|
|
1491
1108
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1492
1109
|
switch (errorCode) {
|
|
1493
1110
|
case "ClientException":
|
|
@@ -1513,29 +1130,26 @@ const deserializeAws_restJson1CreateNodegroupCommandError = async (output, conte
|
|
|
1513
1130
|
throw await deserializeAws_restJson1ServiceUnavailableExceptionResponse(parsedOutput, context);
|
|
1514
1131
|
default:
|
|
1515
1132
|
const parsedBody = parsedOutput.body;
|
|
1516
|
-
|
|
1517
|
-
|
|
1518
|
-
|
|
1519
|
-
|
|
1520
|
-
|
|
1521
|
-
$metadata,
|
|
1133
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1134
|
+
output,
|
|
1135
|
+
parsedBody,
|
|
1136
|
+
exceptionCtor: EKSServiceException_1.EKSServiceException,
|
|
1137
|
+
errorCode,
|
|
1522
1138
|
});
|
|
1523
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1524
1139
|
}
|
|
1525
1140
|
};
|
|
1526
1141
|
const deserializeAws_restJson1DeleteAddonCommand = async (output, context) => {
|
|
1527
1142
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1528
1143
|
return deserializeAws_restJson1DeleteAddonCommandError(output, context);
|
|
1529
1144
|
}
|
|
1530
|
-
const contents = {
|
|
1145
|
+
const contents = map({
|
|
1531
1146
|
$metadata: deserializeMetadata(output),
|
|
1532
|
-
|
|
1533
|
-
};
|
|
1147
|
+
});
|
|
1534
1148
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1535
|
-
if (data.addon
|
|
1149
|
+
if (data.addon != null) {
|
|
1536
1150
|
contents.addon = deserializeAws_restJson1Addon(data.addon, context);
|
|
1537
1151
|
}
|
|
1538
|
-
return
|
|
1152
|
+
return contents;
|
|
1539
1153
|
};
|
|
1540
1154
|
exports.deserializeAws_restJson1DeleteAddonCommand = deserializeAws_restJson1DeleteAddonCommand;
|
|
1541
1155
|
const deserializeAws_restJson1DeleteAddonCommandError = async (output, context) => {
|
|
@@ -1543,7 +1157,6 @@ const deserializeAws_restJson1DeleteAddonCommandError = async (output, context)
|
|
|
1543
1157
|
...output,
|
|
1544
1158
|
body: await parseBody(output.body, context),
|
|
1545
1159
|
};
|
|
1546
|
-
let response;
|
|
1547
1160
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1548
1161
|
switch (errorCode) {
|
|
1549
1162
|
case "ClientException":
|
|
@@ -1563,29 +1176,26 @@ const deserializeAws_restJson1DeleteAddonCommandError = async (output, context)
|
|
|
1563
1176
|
throw await deserializeAws_restJson1ServerExceptionResponse(parsedOutput, context);
|
|
1564
1177
|
default:
|
|
1565
1178
|
const parsedBody = parsedOutput.body;
|
|
1566
|
-
|
|
1567
|
-
|
|
1568
|
-
|
|
1569
|
-
|
|
1570
|
-
|
|
1571
|
-
$metadata,
|
|
1179
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1180
|
+
output,
|
|
1181
|
+
parsedBody,
|
|
1182
|
+
exceptionCtor: EKSServiceException_1.EKSServiceException,
|
|
1183
|
+
errorCode,
|
|
1572
1184
|
});
|
|
1573
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1574
1185
|
}
|
|
1575
1186
|
};
|
|
1576
1187
|
const deserializeAws_restJson1DeleteClusterCommand = async (output, context) => {
|
|
1577
1188
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1578
1189
|
return deserializeAws_restJson1DeleteClusterCommandError(output, context);
|
|
1579
1190
|
}
|
|
1580
|
-
const contents = {
|
|
1191
|
+
const contents = map({
|
|
1581
1192
|
$metadata: deserializeMetadata(output),
|
|
1582
|
-
|
|
1583
|
-
};
|
|
1193
|
+
});
|
|
1584
1194
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1585
|
-
if (data.cluster
|
|
1195
|
+
if (data.cluster != null) {
|
|
1586
1196
|
contents.cluster = deserializeAws_restJson1Cluster(data.cluster, context);
|
|
1587
1197
|
}
|
|
1588
|
-
return
|
|
1198
|
+
return contents;
|
|
1589
1199
|
};
|
|
1590
1200
|
exports.deserializeAws_restJson1DeleteClusterCommand = deserializeAws_restJson1DeleteClusterCommand;
|
|
1591
1201
|
const deserializeAws_restJson1DeleteClusterCommandError = async (output, context) => {
|
|
@@ -1593,7 +1203,6 @@ const deserializeAws_restJson1DeleteClusterCommandError = async (output, context
|
|
|
1593
1203
|
...output,
|
|
1594
1204
|
body: await parseBody(output.body, context),
|
|
1595
1205
|
};
|
|
1596
|
-
let response;
|
|
1597
1206
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1598
1207
|
switch (errorCode) {
|
|
1599
1208
|
case "ClientException":
|
|
@@ -1613,29 +1222,26 @@ const deserializeAws_restJson1DeleteClusterCommandError = async (output, context
|
|
|
1613
1222
|
throw await deserializeAws_restJson1ServiceUnavailableExceptionResponse(parsedOutput, context);
|
|
1614
1223
|
default:
|
|
1615
1224
|
const parsedBody = parsedOutput.body;
|
|
1616
|
-
|
|
1617
|
-
|
|
1618
|
-
|
|
1619
|
-
|
|
1620
|
-
|
|
1621
|
-
$metadata,
|
|
1225
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1226
|
+
output,
|
|
1227
|
+
parsedBody,
|
|
1228
|
+
exceptionCtor: EKSServiceException_1.EKSServiceException,
|
|
1229
|
+
errorCode,
|
|
1622
1230
|
});
|
|
1623
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1624
1231
|
}
|
|
1625
1232
|
};
|
|
1626
1233
|
const deserializeAws_restJson1DeleteFargateProfileCommand = async (output, context) => {
|
|
1627
1234
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1628
1235
|
return deserializeAws_restJson1DeleteFargateProfileCommandError(output, context);
|
|
1629
1236
|
}
|
|
1630
|
-
const contents = {
|
|
1237
|
+
const contents = map({
|
|
1631
1238
|
$metadata: deserializeMetadata(output),
|
|
1632
|
-
|
|
1633
|
-
};
|
|
1239
|
+
});
|
|
1634
1240
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1635
|
-
if (data.fargateProfile
|
|
1241
|
+
if (data.fargateProfile != null) {
|
|
1636
1242
|
contents.fargateProfile = deserializeAws_restJson1FargateProfile(data.fargateProfile, context);
|
|
1637
1243
|
}
|
|
1638
|
-
return
|
|
1244
|
+
return contents;
|
|
1639
1245
|
};
|
|
1640
1246
|
exports.deserializeAws_restJson1DeleteFargateProfileCommand = deserializeAws_restJson1DeleteFargateProfileCommand;
|
|
1641
1247
|
const deserializeAws_restJson1DeleteFargateProfileCommandError = async (output, context) => {
|
|
@@ -1643,7 +1249,6 @@ const deserializeAws_restJson1DeleteFargateProfileCommandError = async (output,
|
|
|
1643
1249
|
...output,
|
|
1644
1250
|
body: await parseBody(output.body, context),
|
|
1645
1251
|
};
|
|
1646
|
-
let response;
|
|
1647
1252
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1648
1253
|
switch (errorCode) {
|
|
1649
1254
|
case "ClientException":
|
|
@@ -1660,29 +1265,26 @@ const deserializeAws_restJson1DeleteFargateProfileCommandError = async (output,
|
|
|
1660
1265
|
throw await deserializeAws_restJson1ServerExceptionResponse(parsedOutput, context);
|
|
1661
1266
|
default:
|
|
1662
1267
|
const parsedBody = parsedOutput.body;
|
|
1663
|
-
|
|
1664
|
-
|
|
1665
|
-
|
|
1666
|
-
|
|
1667
|
-
|
|
1668
|
-
$metadata,
|
|
1268
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1269
|
+
output,
|
|
1270
|
+
parsedBody,
|
|
1271
|
+
exceptionCtor: EKSServiceException_1.EKSServiceException,
|
|
1272
|
+
errorCode,
|
|
1669
1273
|
});
|
|
1670
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1671
1274
|
}
|
|
1672
1275
|
};
|
|
1673
1276
|
const deserializeAws_restJson1DeleteNodegroupCommand = async (output, context) => {
|
|
1674
1277
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1675
1278
|
return deserializeAws_restJson1DeleteNodegroupCommandError(output, context);
|
|
1676
1279
|
}
|
|
1677
|
-
const contents = {
|
|
1280
|
+
const contents = map({
|
|
1678
1281
|
$metadata: deserializeMetadata(output),
|
|
1679
|
-
|
|
1680
|
-
};
|
|
1282
|
+
});
|
|
1681
1283
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1682
|
-
if (data.nodegroup
|
|
1284
|
+
if (data.nodegroup != null) {
|
|
1683
1285
|
contents.nodegroup = deserializeAws_restJson1Nodegroup(data.nodegroup, context);
|
|
1684
1286
|
}
|
|
1685
|
-
return
|
|
1287
|
+
return contents;
|
|
1686
1288
|
};
|
|
1687
1289
|
exports.deserializeAws_restJson1DeleteNodegroupCommand = deserializeAws_restJson1DeleteNodegroupCommand;
|
|
1688
1290
|
const deserializeAws_restJson1DeleteNodegroupCommandError = async (output, context) => {
|
|
@@ -1690,7 +1292,6 @@ const deserializeAws_restJson1DeleteNodegroupCommandError = async (output, conte
|
|
|
1690
1292
|
...output,
|
|
1691
1293
|
body: await parseBody(output.body, context),
|
|
1692
1294
|
};
|
|
1693
|
-
let response;
|
|
1694
1295
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1695
1296
|
switch (errorCode) {
|
|
1696
1297
|
case "ClientException":
|
|
@@ -1713,29 +1314,26 @@ const deserializeAws_restJson1DeleteNodegroupCommandError = async (output, conte
|
|
|
1713
1314
|
throw await deserializeAws_restJson1ServiceUnavailableExceptionResponse(parsedOutput, context);
|
|
1714
1315
|
default:
|
|
1715
1316
|
const parsedBody = parsedOutput.body;
|
|
1716
|
-
|
|
1717
|
-
|
|
1718
|
-
|
|
1719
|
-
|
|
1720
|
-
|
|
1721
|
-
$metadata,
|
|
1317
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1318
|
+
output,
|
|
1319
|
+
parsedBody,
|
|
1320
|
+
exceptionCtor: EKSServiceException_1.EKSServiceException,
|
|
1321
|
+
errorCode,
|
|
1722
1322
|
});
|
|
1723
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1724
1323
|
}
|
|
1725
1324
|
};
|
|
1726
1325
|
const deserializeAws_restJson1DeregisterClusterCommand = async (output, context) => {
|
|
1727
1326
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1728
1327
|
return deserializeAws_restJson1DeregisterClusterCommandError(output, context);
|
|
1729
1328
|
}
|
|
1730
|
-
const contents = {
|
|
1329
|
+
const contents = map({
|
|
1731
1330
|
$metadata: deserializeMetadata(output),
|
|
1732
|
-
|
|
1733
|
-
};
|
|
1331
|
+
});
|
|
1734
1332
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1735
|
-
if (data.cluster
|
|
1333
|
+
if (data.cluster != null) {
|
|
1736
1334
|
contents.cluster = deserializeAws_restJson1Cluster(data.cluster, context);
|
|
1737
1335
|
}
|
|
1738
|
-
return
|
|
1336
|
+
return contents;
|
|
1739
1337
|
};
|
|
1740
1338
|
exports.deserializeAws_restJson1DeregisterClusterCommand = deserializeAws_restJson1DeregisterClusterCommand;
|
|
1741
1339
|
const deserializeAws_restJson1DeregisterClusterCommandError = async (output, context) => {
|
|
@@ -1743,7 +1341,6 @@ const deserializeAws_restJson1DeregisterClusterCommandError = async (output, con
|
|
|
1743
1341
|
...output,
|
|
1744
1342
|
body: await parseBody(output.body, context),
|
|
1745
1343
|
};
|
|
1746
|
-
let response;
|
|
1747
1344
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1748
1345
|
switch (errorCode) {
|
|
1749
1346
|
case "AccessDeniedException":
|
|
@@ -1766,29 +1363,26 @@ const deserializeAws_restJson1DeregisterClusterCommandError = async (output, con
|
|
|
1766
1363
|
throw await deserializeAws_restJson1ServiceUnavailableExceptionResponse(parsedOutput, context);
|
|
1767
1364
|
default:
|
|
1768
1365
|
const parsedBody = parsedOutput.body;
|
|
1769
|
-
|
|
1770
|
-
|
|
1771
|
-
|
|
1772
|
-
|
|
1773
|
-
|
|
1774
|
-
$metadata,
|
|
1366
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1367
|
+
output,
|
|
1368
|
+
parsedBody,
|
|
1369
|
+
exceptionCtor: EKSServiceException_1.EKSServiceException,
|
|
1370
|
+
errorCode,
|
|
1775
1371
|
});
|
|
1776
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1777
1372
|
}
|
|
1778
1373
|
};
|
|
1779
1374
|
const deserializeAws_restJson1DescribeAddonCommand = async (output, context) => {
|
|
1780
1375
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1781
1376
|
return deserializeAws_restJson1DescribeAddonCommandError(output, context);
|
|
1782
1377
|
}
|
|
1783
|
-
const contents = {
|
|
1378
|
+
const contents = map({
|
|
1784
1379
|
$metadata: deserializeMetadata(output),
|
|
1785
|
-
|
|
1786
|
-
};
|
|
1380
|
+
});
|
|
1787
1381
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1788
|
-
if (data.addon
|
|
1382
|
+
if (data.addon != null) {
|
|
1789
1383
|
contents.addon = deserializeAws_restJson1Addon(data.addon, context);
|
|
1790
1384
|
}
|
|
1791
|
-
return
|
|
1385
|
+
return contents;
|
|
1792
1386
|
};
|
|
1793
1387
|
exports.deserializeAws_restJson1DescribeAddonCommand = deserializeAws_restJson1DescribeAddonCommand;
|
|
1794
1388
|
const deserializeAws_restJson1DescribeAddonCommandError = async (output, context) => {
|
|
@@ -1796,7 +1390,6 @@ const deserializeAws_restJson1DescribeAddonCommandError = async (output, context
|
|
|
1796
1390
|
...output,
|
|
1797
1391
|
body: await parseBody(output.body, context),
|
|
1798
1392
|
};
|
|
1799
|
-
let response;
|
|
1800
1393
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1801
1394
|
switch (errorCode) {
|
|
1802
1395
|
case "ClientException":
|
|
@@ -1816,33 +1409,29 @@ const deserializeAws_restJson1DescribeAddonCommandError = async (output, context
|
|
|
1816
1409
|
throw await deserializeAws_restJson1ServerExceptionResponse(parsedOutput, context);
|
|
1817
1410
|
default:
|
|
1818
1411
|
const parsedBody = parsedOutput.body;
|
|
1819
|
-
|
|
1820
|
-
|
|
1821
|
-
|
|
1822
|
-
|
|
1823
|
-
|
|
1824
|
-
$metadata,
|
|
1412
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1413
|
+
output,
|
|
1414
|
+
parsedBody,
|
|
1415
|
+
exceptionCtor: EKSServiceException_1.EKSServiceException,
|
|
1416
|
+
errorCode,
|
|
1825
1417
|
});
|
|
1826
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1827
1418
|
}
|
|
1828
1419
|
};
|
|
1829
1420
|
const deserializeAws_restJson1DescribeAddonVersionsCommand = async (output, context) => {
|
|
1830
1421
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1831
1422
|
return deserializeAws_restJson1DescribeAddonVersionsCommandError(output, context);
|
|
1832
1423
|
}
|
|
1833
|
-
const contents = {
|
|
1424
|
+
const contents = map({
|
|
1834
1425
|
$metadata: deserializeMetadata(output),
|
|
1835
|
-
|
|
1836
|
-
nextToken: undefined,
|
|
1837
|
-
};
|
|
1426
|
+
});
|
|
1838
1427
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1839
|
-
if (data.addons
|
|
1428
|
+
if (data.addons != null) {
|
|
1840
1429
|
contents.addons = deserializeAws_restJson1Addons(data.addons, context);
|
|
1841
1430
|
}
|
|
1842
|
-
if (data.nextToken
|
|
1431
|
+
if (data.nextToken != null) {
|
|
1843
1432
|
contents.nextToken = (0, smithy_client_1.expectString)(data.nextToken);
|
|
1844
1433
|
}
|
|
1845
|
-
return
|
|
1434
|
+
return contents;
|
|
1846
1435
|
};
|
|
1847
1436
|
exports.deserializeAws_restJson1DescribeAddonVersionsCommand = deserializeAws_restJson1DescribeAddonVersionsCommand;
|
|
1848
1437
|
const deserializeAws_restJson1DescribeAddonVersionsCommandError = async (output, context) => {
|
|
@@ -1850,7 +1439,6 @@ const deserializeAws_restJson1DescribeAddonVersionsCommandError = async (output,
|
|
|
1850
1439
|
...output,
|
|
1851
1440
|
body: await parseBody(output.body, context),
|
|
1852
1441
|
};
|
|
1853
|
-
let response;
|
|
1854
1442
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1855
1443
|
switch (errorCode) {
|
|
1856
1444
|
case "InvalidParameterException":
|
|
@@ -1864,29 +1452,26 @@ const deserializeAws_restJson1DescribeAddonVersionsCommandError = async (output,
|
|
|
1864
1452
|
throw await deserializeAws_restJson1ServerExceptionResponse(parsedOutput, context);
|
|
1865
1453
|
default:
|
|
1866
1454
|
const parsedBody = parsedOutput.body;
|
|
1867
|
-
|
|
1868
|
-
|
|
1869
|
-
|
|
1870
|
-
|
|
1871
|
-
|
|
1872
|
-
$metadata,
|
|
1455
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1456
|
+
output,
|
|
1457
|
+
parsedBody,
|
|
1458
|
+
exceptionCtor: EKSServiceException_1.EKSServiceException,
|
|
1459
|
+
errorCode,
|
|
1873
1460
|
});
|
|
1874
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1875
1461
|
}
|
|
1876
1462
|
};
|
|
1877
1463
|
const deserializeAws_restJson1DescribeClusterCommand = async (output, context) => {
|
|
1878
1464
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1879
1465
|
return deserializeAws_restJson1DescribeClusterCommandError(output, context);
|
|
1880
1466
|
}
|
|
1881
|
-
const contents = {
|
|
1467
|
+
const contents = map({
|
|
1882
1468
|
$metadata: deserializeMetadata(output),
|
|
1883
|
-
|
|
1884
|
-
};
|
|
1469
|
+
});
|
|
1885
1470
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1886
|
-
if (data.cluster
|
|
1471
|
+
if (data.cluster != null) {
|
|
1887
1472
|
contents.cluster = deserializeAws_restJson1Cluster(data.cluster, context);
|
|
1888
1473
|
}
|
|
1889
|
-
return
|
|
1474
|
+
return contents;
|
|
1890
1475
|
};
|
|
1891
1476
|
exports.deserializeAws_restJson1DescribeClusterCommand = deserializeAws_restJson1DescribeClusterCommand;
|
|
1892
1477
|
const deserializeAws_restJson1DescribeClusterCommandError = async (output, context) => {
|
|
@@ -1894,7 +1479,6 @@ const deserializeAws_restJson1DescribeClusterCommandError = async (output, conte
|
|
|
1894
1479
|
...output,
|
|
1895
1480
|
body: await parseBody(output.body, context),
|
|
1896
1481
|
};
|
|
1897
|
-
let response;
|
|
1898
1482
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1899
1483
|
switch (errorCode) {
|
|
1900
1484
|
case "ClientException":
|
|
@@ -1911,29 +1495,26 @@ const deserializeAws_restJson1DescribeClusterCommandError = async (output, conte
|
|
|
1911
1495
|
throw await deserializeAws_restJson1ServiceUnavailableExceptionResponse(parsedOutput, context);
|
|
1912
1496
|
default:
|
|
1913
1497
|
const parsedBody = parsedOutput.body;
|
|
1914
|
-
|
|
1915
|
-
|
|
1916
|
-
|
|
1917
|
-
|
|
1918
|
-
|
|
1919
|
-
$metadata,
|
|
1498
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1499
|
+
output,
|
|
1500
|
+
parsedBody,
|
|
1501
|
+
exceptionCtor: EKSServiceException_1.EKSServiceException,
|
|
1502
|
+
errorCode,
|
|
1920
1503
|
});
|
|
1921
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1922
1504
|
}
|
|
1923
1505
|
};
|
|
1924
1506
|
const deserializeAws_restJson1DescribeFargateProfileCommand = async (output, context) => {
|
|
1925
1507
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1926
1508
|
return deserializeAws_restJson1DescribeFargateProfileCommandError(output, context);
|
|
1927
1509
|
}
|
|
1928
|
-
const contents = {
|
|
1510
|
+
const contents = map({
|
|
1929
1511
|
$metadata: deserializeMetadata(output),
|
|
1930
|
-
|
|
1931
|
-
};
|
|
1512
|
+
});
|
|
1932
1513
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1933
|
-
if (data.fargateProfile
|
|
1514
|
+
if (data.fargateProfile != null) {
|
|
1934
1515
|
contents.fargateProfile = deserializeAws_restJson1FargateProfile(data.fargateProfile, context);
|
|
1935
1516
|
}
|
|
1936
|
-
return
|
|
1517
|
+
return contents;
|
|
1937
1518
|
};
|
|
1938
1519
|
exports.deserializeAws_restJson1DescribeFargateProfileCommand = deserializeAws_restJson1DescribeFargateProfileCommand;
|
|
1939
1520
|
const deserializeAws_restJson1DescribeFargateProfileCommandError = async (output, context) => {
|
|
@@ -1941,7 +1522,6 @@ const deserializeAws_restJson1DescribeFargateProfileCommandError = async (output
|
|
|
1941
1522
|
...output,
|
|
1942
1523
|
body: await parseBody(output.body, context),
|
|
1943
1524
|
};
|
|
1944
|
-
let response;
|
|
1945
1525
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1946
1526
|
switch (errorCode) {
|
|
1947
1527
|
case "ClientException":
|
|
@@ -1958,29 +1538,26 @@ const deserializeAws_restJson1DescribeFargateProfileCommandError = async (output
|
|
|
1958
1538
|
throw await deserializeAws_restJson1ServerExceptionResponse(parsedOutput, context);
|
|
1959
1539
|
default:
|
|
1960
1540
|
const parsedBody = parsedOutput.body;
|
|
1961
|
-
|
|
1962
|
-
|
|
1963
|
-
|
|
1964
|
-
|
|
1965
|
-
|
|
1966
|
-
$metadata,
|
|
1541
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1542
|
+
output,
|
|
1543
|
+
parsedBody,
|
|
1544
|
+
exceptionCtor: EKSServiceException_1.EKSServiceException,
|
|
1545
|
+
errorCode,
|
|
1967
1546
|
});
|
|
1968
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1969
1547
|
}
|
|
1970
1548
|
};
|
|
1971
1549
|
const deserializeAws_restJson1DescribeIdentityProviderConfigCommand = async (output, context) => {
|
|
1972
1550
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1973
1551
|
return deserializeAws_restJson1DescribeIdentityProviderConfigCommandError(output, context);
|
|
1974
1552
|
}
|
|
1975
|
-
const contents = {
|
|
1553
|
+
const contents = map({
|
|
1976
1554
|
$metadata: deserializeMetadata(output),
|
|
1977
|
-
|
|
1978
|
-
};
|
|
1555
|
+
});
|
|
1979
1556
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1980
|
-
if (data.identityProviderConfig
|
|
1557
|
+
if (data.identityProviderConfig != null) {
|
|
1981
1558
|
contents.identityProviderConfig = deserializeAws_restJson1IdentityProviderConfigResponse(data.identityProviderConfig, context);
|
|
1982
1559
|
}
|
|
1983
|
-
return
|
|
1560
|
+
return contents;
|
|
1984
1561
|
};
|
|
1985
1562
|
exports.deserializeAws_restJson1DescribeIdentityProviderConfigCommand = deserializeAws_restJson1DescribeIdentityProviderConfigCommand;
|
|
1986
1563
|
const deserializeAws_restJson1DescribeIdentityProviderConfigCommandError = async (output, context) => {
|
|
@@ -1988,7 +1565,6 @@ const deserializeAws_restJson1DescribeIdentityProviderConfigCommandError = async
|
|
|
1988
1565
|
...output,
|
|
1989
1566
|
body: await parseBody(output.body, context),
|
|
1990
1567
|
};
|
|
1991
|
-
let response;
|
|
1992
1568
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1993
1569
|
switch (errorCode) {
|
|
1994
1570
|
case "ClientException":
|
|
@@ -2008,29 +1584,26 @@ const deserializeAws_restJson1DescribeIdentityProviderConfigCommandError = async
|
|
|
2008
1584
|
throw await deserializeAws_restJson1ServiceUnavailableExceptionResponse(parsedOutput, context);
|
|
2009
1585
|
default:
|
|
2010
1586
|
const parsedBody = parsedOutput.body;
|
|
2011
|
-
|
|
2012
|
-
|
|
2013
|
-
|
|
2014
|
-
|
|
2015
|
-
|
|
2016
|
-
$metadata,
|
|
1587
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1588
|
+
output,
|
|
1589
|
+
parsedBody,
|
|
1590
|
+
exceptionCtor: EKSServiceException_1.EKSServiceException,
|
|
1591
|
+
errorCode,
|
|
2017
1592
|
});
|
|
2018
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2019
1593
|
}
|
|
2020
1594
|
};
|
|
2021
1595
|
const deserializeAws_restJson1DescribeNodegroupCommand = async (output, context) => {
|
|
2022
1596
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2023
1597
|
return deserializeAws_restJson1DescribeNodegroupCommandError(output, context);
|
|
2024
1598
|
}
|
|
2025
|
-
const contents = {
|
|
1599
|
+
const contents = map({
|
|
2026
1600
|
$metadata: deserializeMetadata(output),
|
|
2027
|
-
|
|
2028
|
-
};
|
|
1601
|
+
});
|
|
2029
1602
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
2030
|
-
if (data.nodegroup
|
|
1603
|
+
if (data.nodegroup != null) {
|
|
2031
1604
|
contents.nodegroup = deserializeAws_restJson1Nodegroup(data.nodegroup, context);
|
|
2032
1605
|
}
|
|
2033
|
-
return
|
|
1606
|
+
return contents;
|
|
2034
1607
|
};
|
|
2035
1608
|
exports.deserializeAws_restJson1DescribeNodegroupCommand = deserializeAws_restJson1DescribeNodegroupCommand;
|
|
2036
1609
|
const deserializeAws_restJson1DescribeNodegroupCommandError = async (output, context) => {
|
|
@@ -2038,7 +1611,6 @@ const deserializeAws_restJson1DescribeNodegroupCommandError = async (output, con
|
|
|
2038
1611
|
...output,
|
|
2039
1612
|
body: await parseBody(output.body, context),
|
|
2040
1613
|
};
|
|
2041
|
-
let response;
|
|
2042
1614
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2043
1615
|
switch (errorCode) {
|
|
2044
1616
|
case "ClientException":
|
|
@@ -2058,29 +1630,26 @@ const deserializeAws_restJson1DescribeNodegroupCommandError = async (output, con
|
|
|
2058
1630
|
throw await deserializeAws_restJson1ServiceUnavailableExceptionResponse(parsedOutput, context);
|
|
2059
1631
|
default:
|
|
2060
1632
|
const parsedBody = parsedOutput.body;
|
|
2061
|
-
|
|
2062
|
-
|
|
2063
|
-
|
|
2064
|
-
|
|
2065
|
-
|
|
2066
|
-
$metadata,
|
|
1633
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1634
|
+
output,
|
|
1635
|
+
parsedBody,
|
|
1636
|
+
exceptionCtor: EKSServiceException_1.EKSServiceException,
|
|
1637
|
+
errorCode,
|
|
2067
1638
|
});
|
|
2068
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2069
1639
|
}
|
|
2070
1640
|
};
|
|
2071
1641
|
const deserializeAws_restJson1DescribeUpdateCommand = async (output, context) => {
|
|
2072
1642
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2073
1643
|
return deserializeAws_restJson1DescribeUpdateCommandError(output, context);
|
|
2074
1644
|
}
|
|
2075
|
-
const contents = {
|
|
1645
|
+
const contents = map({
|
|
2076
1646
|
$metadata: deserializeMetadata(output),
|
|
2077
|
-
|
|
2078
|
-
};
|
|
1647
|
+
});
|
|
2079
1648
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
2080
|
-
if (data.update
|
|
1649
|
+
if (data.update != null) {
|
|
2081
1650
|
contents.update = deserializeAws_restJson1Update(data.update, context);
|
|
2082
1651
|
}
|
|
2083
|
-
return
|
|
1652
|
+
return contents;
|
|
2084
1653
|
};
|
|
2085
1654
|
exports.deserializeAws_restJson1DescribeUpdateCommand = deserializeAws_restJson1DescribeUpdateCommand;
|
|
2086
1655
|
const deserializeAws_restJson1DescribeUpdateCommandError = async (output, context) => {
|
|
@@ -2088,7 +1657,6 @@ const deserializeAws_restJson1DescribeUpdateCommandError = async (output, contex
|
|
|
2088
1657
|
...output,
|
|
2089
1658
|
body: await parseBody(output.body, context),
|
|
2090
1659
|
};
|
|
2091
|
-
let response;
|
|
2092
1660
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2093
1661
|
switch (errorCode) {
|
|
2094
1662
|
case "ClientException":
|
|
@@ -2105,29 +1673,26 @@ const deserializeAws_restJson1DescribeUpdateCommandError = async (output, contex
|
|
|
2105
1673
|
throw await deserializeAws_restJson1ServerExceptionResponse(parsedOutput, context);
|
|
2106
1674
|
default:
|
|
2107
1675
|
const parsedBody = parsedOutput.body;
|
|
2108
|
-
|
|
2109
|
-
|
|
2110
|
-
|
|
2111
|
-
|
|
2112
|
-
|
|
2113
|
-
$metadata,
|
|
1676
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1677
|
+
output,
|
|
1678
|
+
parsedBody,
|
|
1679
|
+
exceptionCtor: EKSServiceException_1.EKSServiceException,
|
|
1680
|
+
errorCode,
|
|
2114
1681
|
});
|
|
2115
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2116
1682
|
}
|
|
2117
1683
|
};
|
|
2118
1684
|
const deserializeAws_restJson1DisassociateIdentityProviderConfigCommand = async (output, context) => {
|
|
2119
1685
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2120
1686
|
return deserializeAws_restJson1DisassociateIdentityProviderConfigCommandError(output, context);
|
|
2121
1687
|
}
|
|
2122
|
-
const contents = {
|
|
1688
|
+
const contents = map({
|
|
2123
1689
|
$metadata: deserializeMetadata(output),
|
|
2124
|
-
|
|
2125
|
-
};
|
|
1690
|
+
});
|
|
2126
1691
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
2127
|
-
if (data.update
|
|
1692
|
+
if (data.update != null) {
|
|
2128
1693
|
contents.update = deserializeAws_restJson1Update(data.update, context);
|
|
2129
1694
|
}
|
|
2130
|
-
return
|
|
1695
|
+
return contents;
|
|
2131
1696
|
};
|
|
2132
1697
|
exports.deserializeAws_restJson1DisassociateIdentityProviderConfigCommand = deserializeAws_restJson1DisassociateIdentityProviderConfigCommand;
|
|
2133
1698
|
const deserializeAws_restJson1DisassociateIdentityProviderConfigCommandError = async (output, context) => {
|
|
@@ -2135,7 +1700,6 @@ const deserializeAws_restJson1DisassociateIdentityProviderConfigCommandError = a
|
|
|
2135
1700
|
...output,
|
|
2136
1701
|
body: await parseBody(output.body, context),
|
|
2137
1702
|
};
|
|
2138
|
-
let response;
|
|
2139
1703
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2140
1704
|
switch (errorCode) {
|
|
2141
1705
|
case "ClientException":
|
|
@@ -2158,33 +1722,29 @@ const deserializeAws_restJson1DisassociateIdentityProviderConfigCommandError = a
|
|
|
2158
1722
|
throw await deserializeAws_restJson1ServerExceptionResponse(parsedOutput, context);
|
|
2159
1723
|
default:
|
|
2160
1724
|
const parsedBody = parsedOutput.body;
|
|
2161
|
-
|
|
2162
|
-
|
|
2163
|
-
|
|
2164
|
-
|
|
2165
|
-
|
|
2166
|
-
$metadata,
|
|
1725
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1726
|
+
output,
|
|
1727
|
+
parsedBody,
|
|
1728
|
+
exceptionCtor: EKSServiceException_1.EKSServiceException,
|
|
1729
|
+
errorCode,
|
|
2167
1730
|
});
|
|
2168
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2169
1731
|
}
|
|
2170
1732
|
};
|
|
2171
1733
|
const deserializeAws_restJson1ListAddonsCommand = async (output, context) => {
|
|
2172
1734
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2173
1735
|
return deserializeAws_restJson1ListAddonsCommandError(output, context);
|
|
2174
1736
|
}
|
|
2175
|
-
const contents = {
|
|
1737
|
+
const contents = map({
|
|
2176
1738
|
$metadata: deserializeMetadata(output),
|
|
2177
|
-
|
|
2178
|
-
nextToken: undefined,
|
|
2179
|
-
};
|
|
1739
|
+
});
|
|
2180
1740
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
2181
|
-
if (data.addons
|
|
1741
|
+
if (data.addons != null) {
|
|
2182
1742
|
contents.addons = deserializeAws_restJson1StringList(data.addons, context);
|
|
2183
1743
|
}
|
|
2184
|
-
if (data.nextToken
|
|
1744
|
+
if (data.nextToken != null) {
|
|
2185
1745
|
contents.nextToken = (0, smithy_client_1.expectString)(data.nextToken);
|
|
2186
1746
|
}
|
|
2187
|
-
return
|
|
1747
|
+
return contents;
|
|
2188
1748
|
};
|
|
2189
1749
|
exports.deserializeAws_restJson1ListAddonsCommand = deserializeAws_restJson1ListAddonsCommand;
|
|
2190
1750
|
const deserializeAws_restJson1ListAddonsCommandError = async (output, context) => {
|
|
@@ -2192,7 +1752,6 @@ const deserializeAws_restJson1ListAddonsCommandError = async (output, context) =
|
|
|
2192
1752
|
...output,
|
|
2193
1753
|
body: await parseBody(output.body, context),
|
|
2194
1754
|
};
|
|
2195
|
-
let response;
|
|
2196
1755
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2197
1756
|
switch (errorCode) {
|
|
2198
1757
|
case "ClientException":
|
|
@@ -2212,33 +1771,29 @@ const deserializeAws_restJson1ListAddonsCommandError = async (output, context) =
|
|
|
2212
1771
|
throw await deserializeAws_restJson1ServerExceptionResponse(parsedOutput, context);
|
|
2213
1772
|
default:
|
|
2214
1773
|
const parsedBody = parsedOutput.body;
|
|
2215
|
-
|
|
2216
|
-
|
|
2217
|
-
|
|
2218
|
-
|
|
2219
|
-
|
|
2220
|
-
$metadata,
|
|
1774
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1775
|
+
output,
|
|
1776
|
+
parsedBody,
|
|
1777
|
+
exceptionCtor: EKSServiceException_1.EKSServiceException,
|
|
1778
|
+
errorCode,
|
|
2221
1779
|
});
|
|
2222
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2223
1780
|
}
|
|
2224
1781
|
};
|
|
2225
1782
|
const deserializeAws_restJson1ListClustersCommand = async (output, context) => {
|
|
2226
1783
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2227
1784
|
return deserializeAws_restJson1ListClustersCommandError(output, context);
|
|
2228
1785
|
}
|
|
2229
|
-
const contents = {
|
|
1786
|
+
const contents = map({
|
|
2230
1787
|
$metadata: deserializeMetadata(output),
|
|
2231
|
-
|
|
2232
|
-
nextToken: undefined,
|
|
2233
|
-
};
|
|
1788
|
+
});
|
|
2234
1789
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
2235
|
-
if (data.clusters
|
|
1790
|
+
if (data.clusters != null) {
|
|
2236
1791
|
contents.clusters = deserializeAws_restJson1StringList(data.clusters, context);
|
|
2237
1792
|
}
|
|
2238
|
-
if (data.nextToken
|
|
1793
|
+
if (data.nextToken != null) {
|
|
2239
1794
|
contents.nextToken = (0, smithy_client_1.expectString)(data.nextToken);
|
|
2240
1795
|
}
|
|
2241
|
-
return
|
|
1796
|
+
return contents;
|
|
2242
1797
|
};
|
|
2243
1798
|
exports.deserializeAws_restJson1ListClustersCommand = deserializeAws_restJson1ListClustersCommand;
|
|
2244
1799
|
const deserializeAws_restJson1ListClustersCommandError = async (output, context) => {
|
|
@@ -2246,7 +1801,6 @@ const deserializeAws_restJson1ListClustersCommandError = async (output, context)
|
|
|
2246
1801
|
...output,
|
|
2247
1802
|
body: await parseBody(output.body, context),
|
|
2248
1803
|
};
|
|
2249
|
-
let response;
|
|
2250
1804
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2251
1805
|
switch (errorCode) {
|
|
2252
1806
|
case "ClientException":
|
|
@@ -2263,33 +1817,29 @@ const deserializeAws_restJson1ListClustersCommandError = async (output, context)
|
|
|
2263
1817
|
throw await deserializeAws_restJson1ServiceUnavailableExceptionResponse(parsedOutput, context);
|
|
2264
1818
|
default:
|
|
2265
1819
|
const parsedBody = parsedOutput.body;
|
|
2266
|
-
|
|
2267
|
-
|
|
2268
|
-
|
|
2269
|
-
|
|
2270
|
-
|
|
2271
|
-
$metadata,
|
|
1820
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1821
|
+
output,
|
|
1822
|
+
parsedBody,
|
|
1823
|
+
exceptionCtor: EKSServiceException_1.EKSServiceException,
|
|
1824
|
+
errorCode,
|
|
2272
1825
|
});
|
|
2273
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2274
1826
|
}
|
|
2275
1827
|
};
|
|
2276
1828
|
const deserializeAws_restJson1ListFargateProfilesCommand = async (output, context) => {
|
|
2277
1829
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2278
1830
|
return deserializeAws_restJson1ListFargateProfilesCommandError(output, context);
|
|
2279
1831
|
}
|
|
2280
|
-
const contents = {
|
|
1832
|
+
const contents = map({
|
|
2281
1833
|
$metadata: deserializeMetadata(output),
|
|
2282
|
-
|
|
2283
|
-
nextToken: undefined,
|
|
2284
|
-
};
|
|
1834
|
+
});
|
|
2285
1835
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
2286
|
-
if (data.fargateProfileNames
|
|
1836
|
+
if (data.fargateProfileNames != null) {
|
|
2287
1837
|
contents.fargateProfileNames = deserializeAws_restJson1StringList(data.fargateProfileNames, context);
|
|
2288
1838
|
}
|
|
2289
|
-
if (data.nextToken
|
|
1839
|
+
if (data.nextToken != null) {
|
|
2290
1840
|
contents.nextToken = (0, smithy_client_1.expectString)(data.nextToken);
|
|
2291
1841
|
}
|
|
2292
|
-
return
|
|
1842
|
+
return contents;
|
|
2293
1843
|
};
|
|
2294
1844
|
exports.deserializeAws_restJson1ListFargateProfilesCommand = deserializeAws_restJson1ListFargateProfilesCommand;
|
|
2295
1845
|
const deserializeAws_restJson1ListFargateProfilesCommandError = async (output, context) => {
|
|
@@ -2297,7 +1847,6 @@ const deserializeAws_restJson1ListFargateProfilesCommandError = async (output, c
|
|
|
2297
1847
|
...output,
|
|
2298
1848
|
body: await parseBody(output.body, context),
|
|
2299
1849
|
};
|
|
2300
|
-
let response;
|
|
2301
1850
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2302
1851
|
switch (errorCode) {
|
|
2303
1852
|
case "ClientException":
|
|
@@ -2314,33 +1863,29 @@ const deserializeAws_restJson1ListFargateProfilesCommandError = async (output, c
|
|
|
2314
1863
|
throw await deserializeAws_restJson1ServerExceptionResponse(parsedOutput, context);
|
|
2315
1864
|
default:
|
|
2316
1865
|
const parsedBody = parsedOutput.body;
|
|
2317
|
-
|
|
2318
|
-
|
|
2319
|
-
|
|
2320
|
-
|
|
2321
|
-
|
|
2322
|
-
$metadata,
|
|
1866
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1867
|
+
output,
|
|
1868
|
+
parsedBody,
|
|
1869
|
+
exceptionCtor: EKSServiceException_1.EKSServiceException,
|
|
1870
|
+
errorCode,
|
|
2323
1871
|
});
|
|
2324
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2325
1872
|
}
|
|
2326
1873
|
};
|
|
2327
1874
|
const deserializeAws_restJson1ListIdentityProviderConfigsCommand = async (output, context) => {
|
|
2328
1875
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2329
1876
|
return deserializeAws_restJson1ListIdentityProviderConfigsCommandError(output, context);
|
|
2330
1877
|
}
|
|
2331
|
-
const contents = {
|
|
1878
|
+
const contents = map({
|
|
2332
1879
|
$metadata: deserializeMetadata(output),
|
|
2333
|
-
|
|
2334
|
-
nextToken: undefined,
|
|
2335
|
-
};
|
|
1880
|
+
});
|
|
2336
1881
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
2337
|
-
if (data.identityProviderConfigs
|
|
1882
|
+
if (data.identityProviderConfigs != null) {
|
|
2338
1883
|
contents.identityProviderConfigs = deserializeAws_restJson1IdentityProviderConfigs(data.identityProviderConfigs, context);
|
|
2339
1884
|
}
|
|
2340
|
-
if (data.nextToken
|
|
1885
|
+
if (data.nextToken != null) {
|
|
2341
1886
|
contents.nextToken = (0, smithy_client_1.expectString)(data.nextToken);
|
|
2342
1887
|
}
|
|
2343
|
-
return
|
|
1888
|
+
return contents;
|
|
2344
1889
|
};
|
|
2345
1890
|
exports.deserializeAws_restJson1ListIdentityProviderConfigsCommand = deserializeAws_restJson1ListIdentityProviderConfigsCommand;
|
|
2346
1891
|
const deserializeAws_restJson1ListIdentityProviderConfigsCommandError = async (output, context) => {
|
|
@@ -2348,7 +1893,6 @@ const deserializeAws_restJson1ListIdentityProviderConfigsCommandError = async (o
|
|
|
2348
1893
|
...output,
|
|
2349
1894
|
body: await parseBody(output.body, context),
|
|
2350
1895
|
};
|
|
2351
|
-
let response;
|
|
2352
1896
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2353
1897
|
switch (errorCode) {
|
|
2354
1898
|
case "ClientException":
|
|
@@ -2368,33 +1912,29 @@ const deserializeAws_restJson1ListIdentityProviderConfigsCommandError = async (o
|
|
|
2368
1912
|
throw await deserializeAws_restJson1ServiceUnavailableExceptionResponse(parsedOutput, context);
|
|
2369
1913
|
default:
|
|
2370
1914
|
const parsedBody = parsedOutput.body;
|
|
2371
|
-
|
|
2372
|
-
|
|
2373
|
-
|
|
2374
|
-
|
|
2375
|
-
|
|
2376
|
-
$metadata,
|
|
1915
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1916
|
+
output,
|
|
1917
|
+
parsedBody,
|
|
1918
|
+
exceptionCtor: EKSServiceException_1.EKSServiceException,
|
|
1919
|
+
errorCode,
|
|
2377
1920
|
});
|
|
2378
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2379
1921
|
}
|
|
2380
1922
|
};
|
|
2381
1923
|
const deserializeAws_restJson1ListNodegroupsCommand = async (output, context) => {
|
|
2382
1924
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2383
1925
|
return deserializeAws_restJson1ListNodegroupsCommandError(output, context);
|
|
2384
1926
|
}
|
|
2385
|
-
const contents = {
|
|
1927
|
+
const contents = map({
|
|
2386
1928
|
$metadata: deserializeMetadata(output),
|
|
2387
|
-
|
|
2388
|
-
nodegroups: undefined,
|
|
2389
|
-
};
|
|
1929
|
+
});
|
|
2390
1930
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
2391
|
-
if (data.nextToken
|
|
1931
|
+
if (data.nextToken != null) {
|
|
2392
1932
|
contents.nextToken = (0, smithy_client_1.expectString)(data.nextToken);
|
|
2393
1933
|
}
|
|
2394
|
-
if (data.nodegroups
|
|
1934
|
+
if (data.nodegroups != null) {
|
|
2395
1935
|
contents.nodegroups = deserializeAws_restJson1StringList(data.nodegroups, context);
|
|
2396
1936
|
}
|
|
2397
|
-
return
|
|
1937
|
+
return contents;
|
|
2398
1938
|
};
|
|
2399
1939
|
exports.deserializeAws_restJson1ListNodegroupsCommand = deserializeAws_restJson1ListNodegroupsCommand;
|
|
2400
1940
|
const deserializeAws_restJson1ListNodegroupsCommandError = async (output, context) => {
|
|
@@ -2402,7 +1942,6 @@ const deserializeAws_restJson1ListNodegroupsCommandError = async (output, contex
|
|
|
2402
1942
|
...output,
|
|
2403
1943
|
body: await parseBody(output.body, context),
|
|
2404
1944
|
};
|
|
2405
|
-
let response;
|
|
2406
1945
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2407
1946
|
switch (errorCode) {
|
|
2408
1947
|
case "ClientException":
|
|
@@ -2422,29 +1961,26 @@ const deserializeAws_restJson1ListNodegroupsCommandError = async (output, contex
|
|
|
2422
1961
|
throw await deserializeAws_restJson1ServiceUnavailableExceptionResponse(parsedOutput, context);
|
|
2423
1962
|
default:
|
|
2424
1963
|
const parsedBody = parsedOutput.body;
|
|
2425
|
-
|
|
2426
|
-
|
|
2427
|
-
|
|
2428
|
-
|
|
2429
|
-
|
|
2430
|
-
$metadata,
|
|
1964
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1965
|
+
output,
|
|
1966
|
+
parsedBody,
|
|
1967
|
+
exceptionCtor: EKSServiceException_1.EKSServiceException,
|
|
1968
|
+
errorCode,
|
|
2431
1969
|
});
|
|
2432
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2433
1970
|
}
|
|
2434
1971
|
};
|
|
2435
1972
|
const deserializeAws_restJson1ListTagsForResourceCommand = async (output, context) => {
|
|
2436
1973
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2437
1974
|
return deserializeAws_restJson1ListTagsForResourceCommandError(output, context);
|
|
2438
1975
|
}
|
|
2439
|
-
const contents = {
|
|
1976
|
+
const contents = map({
|
|
2440
1977
|
$metadata: deserializeMetadata(output),
|
|
2441
|
-
|
|
2442
|
-
};
|
|
1978
|
+
});
|
|
2443
1979
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
2444
|
-
if (data.tags
|
|
1980
|
+
if (data.tags != null) {
|
|
2445
1981
|
contents.tags = deserializeAws_restJson1TagMap(data.tags, context);
|
|
2446
1982
|
}
|
|
2447
|
-
return
|
|
1983
|
+
return contents;
|
|
2448
1984
|
};
|
|
2449
1985
|
exports.deserializeAws_restJson1ListTagsForResourceCommand = deserializeAws_restJson1ListTagsForResourceCommand;
|
|
2450
1986
|
const deserializeAws_restJson1ListTagsForResourceCommandError = async (output, context) => {
|
|
@@ -2452,7 +1988,6 @@ const deserializeAws_restJson1ListTagsForResourceCommandError = async (output, c
|
|
|
2452
1988
|
...output,
|
|
2453
1989
|
body: await parseBody(output.body, context),
|
|
2454
1990
|
};
|
|
2455
|
-
let response;
|
|
2456
1991
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2457
1992
|
switch (errorCode) {
|
|
2458
1993
|
case "BadRequestException":
|
|
@@ -2463,33 +1998,29 @@ const deserializeAws_restJson1ListTagsForResourceCommandError = async (output, c
|
|
|
2463
1998
|
throw await deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context);
|
|
2464
1999
|
default:
|
|
2465
2000
|
const parsedBody = parsedOutput.body;
|
|
2466
|
-
|
|
2467
|
-
|
|
2468
|
-
|
|
2469
|
-
|
|
2470
|
-
|
|
2471
|
-
$metadata,
|
|
2001
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
2002
|
+
output,
|
|
2003
|
+
parsedBody,
|
|
2004
|
+
exceptionCtor: EKSServiceException_1.EKSServiceException,
|
|
2005
|
+
errorCode,
|
|
2472
2006
|
});
|
|
2473
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2474
2007
|
}
|
|
2475
2008
|
};
|
|
2476
2009
|
const deserializeAws_restJson1ListUpdatesCommand = async (output, context) => {
|
|
2477
2010
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2478
2011
|
return deserializeAws_restJson1ListUpdatesCommandError(output, context);
|
|
2479
2012
|
}
|
|
2480
|
-
const contents = {
|
|
2013
|
+
const contents = map({
|
|
2481
2014
|
$metadata: deserializeMetadata(output),
|
|
2482
|
-
|
|
2483
|
-
updateIds: undefined,
|
|
2484
|
-
};
|
|
2015
|
+
});
|
|
2485
2016
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
2486
|
-
if (data.nextToken
|
|
2017
|
+
if (data.nextToken != null) {
|
|
2487
2018
|
contents.nextToken = (0, smithy_client_1.expectString)(data.nextToken);
|
|
2488
2019
|
}
|
|
2489
|
-
if (data.updateIds
|
|
2020
|
+
if (data.updateIds != null) {
|
|
2490
2021
|
contents.updateIds = deserializeAws_restJson1StringList(data.updateIds, context);
|
|
2491
2022
|
}
|
|
2492
|
-
return
|
|
2023
|
+
return contents;
|
|
2493
2024
|
};
|
|
2494
2025
|
exports.deserializeAws_restJson1ListUpdatesCommand = deserializeAws_restJson1ListUpdatesCommand;
|
|
2495
2026
|
const deserializeAws_restJson1ListUpdatesCommandError = async (output, context) => {
|
|
@@ -2497,7 +2028,6 @@ const deserializeAws_restJson1ListUpdatesCommandError = async (output, context)
|
|
|
2497
2028
|
...output,
|
|
2498
2029
|
body: await parseBody(output.body, context),
|
|
2499
2030
|
};
|
|
2500
|
-
let response;
|
|
2501
2031
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2502
2032
|
switch (errorCode) {
|
|
2503
2033
|
case "ClientException":
|
|
@@ -2514,29 +2044,26 @@ const deserializeAws_restJson1ListUpdatesCommandError = async (output, context)
|
|
|
2514
2044
|
throw await deserializeAws_restJson1ServerExceptionResponse(parsedOutput, context);
|
|
2515
2045
|
default:
|
|
2516
2046
|
const parsedBody = parsedOutput.body;
|
|
2517
|
-
|
|
2518
|
-
|
|
2519
|
-
|
|
2520
|
-
|
|
2521
|
-
|
|
2522
|
-
$metadata,
|
|
2047
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
2048
|
+
output,
|
|
2049
|
+
parsedBody,
|
|
2050
|
+
exceptionCtor: EKSServiceException_1.EKSServiceException,
|
|
2051
|
+
errorCode,
|
|
2523
2052
|
});
|
|
2524
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2525
2053
|
}
|
|
2526
2054
|
};
|
|
2527
2055
|
const deserializeAws_restJson1RegisterClusterCommand = async (output, context) => {
|
|
2528
2056
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2529
2057
|
return deserializeAws_restJson1RegisterClusterCommandError(output, context);
|
|
2530
2058
|
}
|
|
2531
|
-
const contents = {
|
|
2059
|
+
const contents = map({
|
|
2532
2060
|
$metadata: deserializeMetadata(output),
|
|
2533
|
-
|
|
2534
|
-
};
|
|
2061
|
+
});
|
|
2535
2062
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
2536
|
-
if (data.cluster
|
|
2063
|
+
if (data.cluster != null) {
|
|
2537
2064
|
contents.cluster = deserializeAws_restJson1Cluster(data.cluster, context);
|
|
2538
2065
|
}
|
|
2539
|
-
return
|
|
2066
|
+
return contents;
|
|
2540
2067
|
};
|
|
2541
2068
|
exports.deserializeAws_restJson1RegisterClusterCommand = deserializeAws_restJson1RegisterClusterCommand;
|
|
2542
2069
|
const deserializeAws_restJson1RegisterClusterCommandError = async (output, context) => {
|
|
@@ -2544,7 +2071,6 @@ const deserializeAws_restJson1RegisterClusterCommandError = async (output, conte
|
|
|
2544
2071
|
...output,
|
|
2545
2072
|
body: await parseBody(output.body, context),
|
|
2546
2073
|
};
|
|
2547
|
-
let response;
|
|
2548
2074
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2549
2075
|
switch (errorCode) {
|
|
2550
2076
|
case "AccessDeniedException":
|
|
@@ -2573,25 +2099,23 @@ const deserializeAws_restJson1RegisterClusterCommandError = async (output, conte
|
|
|
2573
2099
|
throw await deserializeAws_restJson1ServiceUnavailableExceptionResponse(parsedOutput, context);
|
|
2574
2100
|
default:
|
|
2575
2101
|
const parsedBody = parsedOutput.body;
|
|
2576
|
-
|
|
2577
|
-
|
|
2578
|
-
|
|
2579
|
-
|
|
2580
|
-
|
|
2581
|
-
$metadata,
|
|
2102
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
2103
|
+
output,
|
|
2104
|
+
parsedBody,
|
|
2105
|
+
exceptionCtor: EKSServiceException_1.EKSServiceException,
|
|
2106
|
+
errorCode,
|
|
2582
2107
|
});
|
|
2583
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2584
2108
|
}
|
|
2585
2109
|
};
|
|
2586
2110
|
const deserializeAws_restJson1TagResourceCommand = async (output, context) => {
|
|
2587
2111
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2588
2112
|
return deserializeAws_restJson1TagResourceCommandError(output, context);
|
|
2589
2113
|
}
|
|
2590
|
-
const contents = {
|
|
2114
|
+
const contents = map({
|
|
2591
2115
|
$metadata: deserializeMetadata(output),
|
|
2592
|
-
};
|
|
2116
|
+
});
|
|
2593
2117
|
await collectBody(output.body, context);
|
|
2594
|
-
return
|
|
2118
|
+
return contents;
|
|
2595
2119
|
};
|
|
2596
2120
|
exports.deserializeAws_restJson1TagResourceCommand = deserializeAws_restJson1TagResourceCommand;
|
|
2597
2121
|
const deserializeAws_restJson1TagResourceCommandError = async (output, context) => {
|
|
@@ -2599,7 +2123,6 @@ const deserializeAws_restJson1TagResourceCommandError = async (output, context)
|
|
|
2599
2123
|
...output,
|
|
2600
2124
|
body: await parseBody(output.body, context),
|
|
2601
2125
|
};
|
|
2602
|
-
let response;
|
|
2603
2126
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2604
2127
|
switch (errorCode) {
|
|
2605
2128
|
case "BadRequestException":
|
|
@@ -2610,25 +2133,23 @@ const deserializeAws_restJson1TagResourceCommandError = async (output, context)
|
|
|
2610
2133
|
throw await deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context);
|
|
2611
2134
|
default:
|
|
2612
2135
|
const parsedBody = parsedOutput.body;
|
|
2613
|
-
|
|
2614
|
-
|
|
2615
|
-
|
|
2616
|
-
|
|
2617
|
-
|
|
2618
|
-
$metadata,
|
|
2136
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
2137
|
+
output,
|
|
2138
|
+
parsedBody,
|
|
2139
|
+
exceptionCtor: EKSServiceException_1.EKSServiceException,
|
|
2140
|
+
errorCode,
|
|
2619
2141
|
});
|
|
2620
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2621
2142
|
}
|
|
2622
2143
|
};
|
|
2623
2144
|
const deserializeAws_restJson1UntagResourceCommand = async (output, context) => {
|
|
2624
2145
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2625
2146
|
return deserializeAws_restJson1UntagResourceCommandError(output, context);
|
|
2626
2147
|
}
|
|
2627
|
-
const contents = {
|
|
2148
|
+
const contents = map({
|
|
2628
2149
|
$metadata: deserializeMetadata(output),
|
|
2629
|
-
};
|
|
2150
|
+
});
|
|
2630
2151
|
await collectBody(output.body, context);
|
|
2631
|
-
return
|
|
2152
|
+
return contents;
|
|
2632
2153
|
};
|
|
2633
2154
|
exports.deserializeAws_restJson1UntagResourceCommand = deserializeAws_restJson1UntagResourceCommand;
|
|
2634
2155
|
const deserializeAws_restJson1UntagResourceCommandError = async (output, context) => {
|
|
@@ -2636,7 +2157,6 @@ const deserializeAws_restJson1UntagResourceCommandError = async (output, context
|
|
|
2636
2157
|
...output,
|
|
2637
2158
|
body: await parseBody(output.body, context),
|
|
2638
2159
|
};
|
|
2639
|
-
let response;
|
|
2640
2160
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2641
2161
|
switch (errorCode) {
|
|
2642
2162
|
case "BadRequestException":
|
|
@@ -2647,29 +2167,26 @@ const deserializeAws_restJson1UntagResourceCommandError = async (output, context
|
|
|
2647
2167
|
throw await deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context);
|
|
2648
2168
|
default:
|
|
2649
2169
|
const parsedBody = parsedOutput.body;
|
|
2650
|
-
|
|
2651
|
-
|
|
2652
|
-
|
|
2653
|
-
|
|
2654
|
-
|
|
2655
|
-
$metadata,
|
|
2170
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
2171
|
+
output,
|
|
2172
|
+
parsedBody,
|
|
2173
|
+
exceptionCtor: EKSServiceException_1.EKSServiceException,
|
|
2174
|
+
errorCode,
|
|
2656
2175
|
});
|
|
2657
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2658
2176
|
}
|
|
2659
2177
|
};
|
|
2660
2178
|
const deserializeAws_restJson1UpdateAddonCommand = async (output, context) => {
|
|
2661
2179
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2662
2180
|
return deserializeAws_restJson1UpdateAddonCommandError(output, context);
|
|
2663
2181
|
}
|
|
2664
|
-
const contents = {
|
|
2182
|
+
const contents = map({
|
|
2665
2183
|
$metadata: deserializeMetadata(output),
|
|
2666
|
-
|
|
2667
|
-
};
|
|
2184
|
+
});
|
|
2668
2185
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
2669
|
-
if (data.update
|
|
2186
|
+
if (data.update != null) {
|
|
2670
2187
|
contents.update = deserializeAws_restJson1Update(data.update, context);
|
|
2671
2188
|
}
|
|
2672
|
-
return
|
|
2189
|
+
return contents;
|
|
2673
2190
|
};
|
|
2674
2191
|
exports.deserializeAws_restJson1UpdateAddonCommand = deserializeAws_restJson1UpdateAddonCommand;
|
|
2675
2192
|
const deserializeAws_restJson1UpdateAddonCommandError = async (output, context) => {
|
|
@@ -2677,7 +2194,6 @@ const deserializeAws_restJson1UpdateAddonCommandError = async (output, context)
|
|
|
2677
2194
|
...output,
|
|
2678
2195
|
body: await parseBody(output.body, context),
|
|
2679
2196
|
};
|
|
2680
|
-
let response;
|
|
2681
2197
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2682
2198
|
switch (errorCode) {
|
|
2683
2199
|
case "ClientException":
|
|
@@ -2700,29 +2216,26 @@ const deserializeAws_restJson1UpdateAddonCommandError = async (output, context)
|
|
|
2700
2216
|
throw await deserializeAws_restJson1ServerExceptionResponse(parsedOutput, context);
|
|
2701
2217
|
default:
|
|
2702
2218
|
const parsedBody = parsedOutput.body;
|
|
2703
|
-
|
|
2704
|
-
|
|
2705
|
-
|
|
2706
|
-
|
|
2707
|
-
|
|
2708
|
-
$metadata,
|
|
2219
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
2220
|
+
output,
|
|
2221
|
+
parsedBody,
|
|
2222
|
+
exceptionCtor: EKSServiceException_1.EKSServiceException,
|
|
2223
|
+
errorCode,
|
|
2709
2224
|
});
|
|
2710
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2711
2225
|
}
|
|
2712
2226
|
};
|
|
2713
2227
|
const deserializeAws_restJson1UpdateClusterConfigCommand = async (output, context) => {
|
|
2714
2228
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2715
2229
|
return deserializeAws_restJson1UpdateClusterConfigCommandError(output, context);
|
|
2716
2230
|
}
|
|
2717
|
-
const contents = {
|
|
2231
|
+
const contents = map({
|
|
2718
2232
|
$metadata: deserializeMetadata(output),
|
|
2719
|
-
|
|
2720
|
-
};
|
|
2233
|
+
});
|
|
2721
2234
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
2722
|
-
if (data.update
|
|
2235
|
+
if (data.update != null) {
|
|
2723
2236
|
contents.update = deserializeAws_restJson1Update(data.update, context);
|
|
2724
2237
|
}
|
|
2725
|
-
return
|
|
2238
|
+
return contents;
|
|
2726
2239
|
};
|
|
2727
2240
|
exports.deserializeAws_restJson1UpdateClusterConfigCommand = deserializeAws_restJson1UpdateClusterConfigCommand;
|
|
2728
2241
|
const deserializeAws_restJson1UpdateClusterConfigCommandError = async (output, context) => {
|
|
@@ -2730,7 +2243,6 @@ const deserializeAws_restJson1UpdateClusterConfigCommandError = async (output, c
|
|
|
2730
2243
|
...output,
|
|
2731
2244
|
body: await parseBody(output.body, context),
|
|
2732
2245
|
};
|
|
2733
|
-
let response;
|
|
2734
2246
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2735
2247
|
switch (errorCode) {
|
|
2736
2248
|
case "ClientException":
|
|
@@ -2753,29 +2265,26 @@ const deserializeAws_restJson1UpdateClusterConfigCommandError = async (output, c
|
|
|
2753
2265
|
throw await deserializeAws_restJson1ServerExceptionResponse(parsedOutput, context);
|
|
2754
2266
|
default:
|
|
2755
2267
|
const parsedBody = parsedOutput.body;
|
|
2756
|
-
|
|
2757
|
-
|
|
2758
|
-
|
|
2759
|
-
|
|
2760
|
-
|
|
2761
|
-
$metadata,
|
|
2268
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
2269
|
+
output,
|
|
2270
|
+
parsedBody,
|
|
2271
|
+
exceptionCtor: EKSServiceException_1.EKSServiceException,
|
|
2272
|
+
errorCode,
|
|
2762
2273
|
});
|
|
2763
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2764
2274
|
}
|
|
2765
2275
|
};
|
|
2766
2276
|
const deserializeAws_restJson1UpdateClusterVersionCommand = async (output, context) => {
|
|
2767
2277
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2768
2278
|
return deserializeAws_restJson1UpdateClusterVersionCommandError(output, context);
|
|
2769
2279
|
}
|
|
2770
|
-
const contents = {
|
|
2280
|
+
const contents = map({
|
|
2771
2281
|
$metadata: deserializeMetadata(output),
|
|
2772
|
-
|
|
2773
|
-
};
|
|
2282
|
+
});
|
|
2774
2283
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
2775
|
-
if (data.update
|
|
2284
|
+
if (data.update != null) {
|
|
2776
2285
|
contents.update = deserializeAws_restJson1Update(data.update, context);
|
|
2777
2286
|
}
|
|
2778
|
-
return
|
|
2287
|
+
return contents;
|
|
2779
2288
|
};
|
|
2780
2289
|
exports.deserializeAws_restJson1UpdateClusterVersionCommand = deserializeAws_restJson1UpdateClusterVersionCommand;
|
|
2781
2290
|
const deserializeAws_restJson1UpdateClusterVersionCommandError = async (output, context) => {
|
|
@@ -2783,7 +2292,6 @@ const deserializeAws_restJson1UpdateClusterVersionCommandError = async (output,
|
|
|
2783
2292
|
...output,
|
|
2784
2293
|
body: await parseBody(output.body, context),
|
|
2785
2294
|
};
|
|
2786
|
-
let response;
|
|
2787
2295
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2788
2296
|
switch (errorCode) {
|
|
2789
2297
|
case "ClientException":
|
|
@@ -2806,29 +2314,26 @@ const deserializeAws_restJson1UpdateClusterVersionCommandError = async (output,
|
|
|
2806
2314
|
throw await deserializeAws_restJson1ServerExceptionResponse(parsedOutput, context);
|
|
2807
2315
|
default:
|
|
2808
2316
|
const parsedBody = parsedOutput.body;
|
|
2809
|
-
|
|
2810
|
-
|
|
2811
|
-
|
|
2812
|
-
|
|
2813
|
-
|
|
2814
|
-
$metadata,
|
|
2317
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
2318
|
+
output,
|
|
2319
|
+
parsedBody,
|
|
2320
|
+
exceptionCtor: EKSServiceException_1.EKSServiceException,
|
|
2321
|
+
errorCode,
|
|
2815
2322
|
});
|
|
2816
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2817
2323
|
}
|
|
2818
2324
|
};
|
|
2819
2325
|
const deserializeAws_restJson1UpdateNodegroupConfigCommand = async (output, context) => {
|
|
2820
2326
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2821
2327
|
return deserializeAws_restJson1UpdateNodegroupConfigCommandError(output, context);
|
|
2822
2328
|
}
|
|
2823
|
-
const contents = {
|
|
2329
|
+
const contents = map({
|
|
2824
2330
|
$metadata: deserializeMetadata(output),
|
|
2825
|
-
|
|
2826
|
-
};
|
|
2331
|
+
});
|
|
2827
2332
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
2828
|
-
if (data.update
|
|
2333
|
+
if (data.update != null) {
|
|
2829
2334
|
contents.update = deserializeAws_restJson1Update(data.update, context);
|
|
2830
2335
|
}
|
|
2831
|
-
return
|
|
2336
|
+
return contents;
|
|
2832
2337
|
};
|
|
2833
2338
|
exports.deserializeAws_restJson1UpdateNodegroupConfigCommand = deserializeAws_restJson1UpdateNodegroupConfigCommand;
|
|
2834
2339
|
const deserializeAws_restJson1UpdateNodegroupConfigCommandError = async (output, context) => {
|
|
@@ -2836,7 +2341,6 @@ const deserializeAws_restJson1UpdateNodegroupConfigCommandError = async (output,
|
|
|
2836
2341
|
...output,
|
|
2837
2342
|
body: await parseBody(output.body, context),
|
|
2838
2343
|
};
|
|
2839
|
-
let response;
|
|
2840
2344
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2841
2345
|
switch (errorCode) {
|
|
2842
2346
|
case "ClientException":
|
|
@@ -2859,29 +2363,26 @@ const deserializeAws_restJson1UpdateNodegroupConfigCommandError = async (output,
|
|
|
2859
2363
|
throw await deserializeAws_restJson1ServerExceptionResponse(parsedOutput, context);
|
|
2860
2364
|
default:
|
|
2861
2365
|
const parsedBody = parsedOutput.body;
|
|
2862
|
-
|
|
2863
|
-
|
|
2864
|
-
|
|
2865
|
-
|
|
2866
|
-
|
|
2867
|
-
$metadata,
|
|
2366
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
2367
|
+
output,
|
|
2368
|
+
parsedBody,
|
|
2369
|
+
exceptionCtor: EKSServiceException_1.EKSServiceException,
|
|
2370
|
+
errorCode,
|
|
2868
2371
|
});
|
|
2869
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2870
2372
|
}
|
|
2871
2373
|
};
|
|
2872
2374
|
const deserializeAws_restJson1UpdateNodegroupVersionCommand = async (output, context) => {
|
|
2873
2375
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2874
2376
|
return deserializeAws_restJson1UpdateNodegroupVersionCommandError(output, context);
|
|
2875
2377
|
}
|
|
2876
|
-
const contents = {
|
|
2378
|
+
const contents = map({
|
|
2877
2379
|
$metadata: deserializeMetadata(output),
|
|
2878
|
-
|
|
2879
|
-
};
|
|
2380
|
+
});
|
|
2880
2381
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
2881
|
-
if (data.update
|
|
2382
|
+
if (data.update != null) {
|
|
2882
2383
|
contents.update = deserializeAws_restJson1Update(data.update, context);
|
|
2883
2384
|
}
|
|
2884
|
-
return
|
|
2385
|
+
return contents;
|
|
2885
2386
|
};
|
|
2886
2387
|
exports.deserializeAws_restJson1UpdateNodegroupVersionCommand = deserializeAws_restJson1UpdateNodegroupVersionCommand;
|
|
2887
2388
|
const deserializeAws_restJson1UpdateNodegroupVersionCommandError = async (output, context) => {
|
|
@@ -2889,7 +2390,6 @@ const deserializeAws_restJson1UpdateNodegroupVersionCommandError = async (output
|
|
|
2889
2390
|
...output,
|
|
2890
2391
|
body: await parseBody(output.body, context),
|
|
2891
2392
|
};
|
|
2892
|
-
let response;
|
|
2893
2393
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2894
2394
|
switch (errorCode) {
|
|
2895
2395
|
case "ClientException":
|
|
@@ -2912,20 +2412,19 @@ const deserializeAws_restJson1UpdateNodegroupVersionCommandError = async (output
|
|
|
2912
2412
|
throw await deserializeAws_restJson1ServerExceptionResponse(parsedOutput, context);
|
|
2913
2413
|
default:
|
|
2914
2414
|
const parsedBody = parsedOutput.body;
|
|
2915
|
-
|
|
2916
|
-
|
|
2917
|
-
|
|
2918
|
-
|
|
2919
|
-
|
|
2920
|
-
$metadata,
|
|
2415
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
2416
|
+
output,
|
|
2417
|
+
parsedBody,
|
|
2418
|
+
exceptionCtor: EKSServiceException_1.EKSServiceException,
|
|
2419
|
+
errorCode,
|
|
2921
2420
|
});
|
|
2922
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2923
2421
|
}
|
|
2924
2422
|
};
|
|
2423
|
+
const map = smithy_client_1.map;
|
|
2925
2424
|
const deserializeAws_restJson1AccessDeniedExceptionResponse = async (parsedOutput, context) => {
|
|
2926
|
-
const contents = {};
|
|
2425
|
+
const contents = map({});
|
|
2927
2426
|
const data = parsedOutput.body;
|
|
2928
|
-
if (data.message
|
|
2427
|
+
if (data.message != null) {
|
|
2929
2428
|
contents.message = (0, smithy_client_1.expectString)(data.message);
|
|
2930
2429
|
}
|
|
2931
2430
|
const exception = new models_0_1.AccessDeniedException({
|
|
@@ -2935,9 +2434,9 @@ const deserializeAws_restJson1AccessDeniedExceptionResponse = async (parsedOutpu
|
|
|
2935
2434
|
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
2936
2435
|
};
|
|
2937
2436
|
const deserializeAws_restJson1BadRequestExceptionResponse = async (parsedOutput, context) => {
|
|
2938
|
-
const contents = {};
|
|
2437
|
+
const contents = map({});
|
|
2939
2438
|
const data = parsedOutput.body;
|
|
2940
|
-
if (data.message
|
|
2439
|
+
if (data.message != null) {
|
|
2941
2440
|
contents.message = (0, smithy_client_1.expectString)(data.message);
|
|
2942
2441
|
}
|
|
2943
2442
|
const exception = new models_0_1.BadRequestException({
|
|
@@ -2947,18 +2446,18 @@ const deserializeAws_restJson1BadRequestExceptionResponse = async (parsedOutput,
|
|
|
2947
2446
|
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
2948
2447
|
};
|
|
2949
2448
|
const deserializeAws_restJson1ClientExceptionResponse = async (parsedOutput, context) => {
|
|
2950
|
-
const contents = {};
|
|
2449
|
+
const contents = map({});
|
|
2951
2450
|
const data = parsedOutput.body;
|
|
2952
|
-
if (data.addonName
|
|
2451
|
+
if (data.addonName != null) {
|
|
2953
2452
|
contents.addonName = (0, smithy_client_1.expectString)(data.addonName);
|
|
2954
2453
|
}
|
|
2955
|
-
if (data.clusterName
|
|
2454
|
+
if (data.clusterName != null) {
|
|
2956
2455
|
contents.clusterName = (0, smithy_client_1.expectString)(data.clusterName);
|
|
2957
2456
|
}
|
|
2958
|
-
if (data.message
|
|
2457
|
+
if (data.message != null) {
|
|
2959
2458
|
contents.message = (0, smithy_client_1.expectString)(data.message);
|
|
2960
2459
|
}
|
|
2961
|
-
if (data.nodegroupName
|
|
2460
|
+
if (data.nodegroupName != null) {
|
|
2962
2461
|
contents.nodegroupName = (0, smithy_client_1.expectString)(data.nodegroupName);
|
|
2963
2462
|
}
|
|
2964
2463
|
const exception = new models_0_1.ClientException({
|
|
@@ -2968,21 +2467,21 @@ const deserializeAws_restJson1ClientExceptionResponse = async (parsedOutput, con
|
|
|
2968
2467
|
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
2969
2468
|
};
|
|
2970
2469
|
const deserializeAws_restJson1InvalidParameterExceptionResponse = async (parsedOutput, context) => {
|
|
2971
|
-
const contents = {};
|
|
2470
|
+
const contents = map({});
|
|
2972
2471
|
const data = parsedOutput.body;
|
|
2973
|
-
if (data.addonName
|
|
2472
|
+
if (data.addonName != null) {
|
|
2974
2473
|
contents.addonName = (0, smithy_client_1.expectString)(data.addonName);
|
|
2975
2474
|
}
|
|
2976
|
-
if (data.clusterName
|
|
2475
|
+
if (data.clusterName != null) {
|
|
2977
2476
|
contents.clusterName = (0, smithy_client_1.expectString)(data.clusterName);
|
|
2978
2477
|
}
|
|
2979
|
-
if (data.fargateProfileName
|
|
2478
|
+
if (data.fargateProfileName != null) {
|
|
2980
2479
|
contents.fargateProfileName = (0, smithy_client_1.expectString)(data.fargateProfileName);
|
|
2981
2480
|
}
|
|
2982
|
-
if (data.message
|
|
2481
|
+
if (data.message != null) {
|
|
2983
2482
|
contents.message = (0, smithy_client_1.expectString)(data.message);
|
|
2984
2483
|
}
|
|
2985
|
-
if (data.nodegroupName
|
|
2484
|
+
if (data.nodegroupName != null) {
|
|
2986
2485
|
contents.nodegroupName = (0, smithy_client_1.expectString)(data.nodegroupName);
|
|
2987
2486
|
}
|
|
2988
2487
|
const exception = new models_0_1.InvalidParameterException({
|
|
@@ -2992,18 +2491,18 @@ const deserializeAws_restJson1InvalidParameterExceptionResponse = async (parsedO
|
|
|
2992
2491
|
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
2993
2492
|
};
|
|
2994
2493
|
const deserializeAws_restJson1InvalidRequestExceptionResponse = async (parsedOutput, context) => {
|
|
2995
|
-
const contents = {};
|
|
2494
|
+
const contents = map({});
|
|
2996
2495
|
const data = parsedOutput.body;
|
|
2997
|
-
if (data.addonName
|
|
2496
|
+
if (data.addonName != null) {
|
|
2998
2497
|
contents.addonName = (0, smithy_client_1.expectString)(data.addonName);
|
|
2999
2498
|
}
|
|
3000
|
-
if (data.clusterName
|
|
2499
|
+
if (data.clusterName != null) {
|
|
3001
2500
|
contents.clusterName = (0, smithy_client_1.expectString)(data.clusterName);
|
|
3002
2501
|
}
|
|
3003
|
-
if (data.message
|
|
2502
|
+
if (data.message != null) {
|
|
3004
2503
|
contents.message = (0, smithy_client_1.expectString)(data.message);
|
|
3005
2504
|
}
|
|
3006
|
-
if (data.nodegroupName
|
|
2505
|
+
if (data.nodegroupName != null) {
|
|
3007
2506
|
contents.nodegroupName = (0, smithy_client_1.expectString)(data.nodegroupName);
|
|
3008
2507
|
}
|
|
3009
2508
|
const exception = new models_0_1.InvalidRequestException({
|
|
@@ -3013,9 +2512,9 @@ const deserializeAws_restJson1InvalidRequestExceptionResponse = async (parsedOut
|
|
|
3013
2512
|
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
3014
2513
|
};
|
|
3015
2514
|
const deserializeAws_restJson1NotFoundExceptionResponse = async (parsedOutput, context) => {
|
|
3016
|
-
const contents = {};
|
|
2515
|
+
const contents = map({});
|
|
3017
2516
|
const data = parsedOutput.body;
|
|
3018
|
-
if (data.message
|
|
2517
|
+
if (data.message != null) {
|
|
3019
2518
|
contents.message = (0, smithy_client_1.expectString)(data.message);
|
|
3020
2519
|
}
|
|
3021
2520
|
const exception = new models_0_1.NotFoundException({
|
|
@@ -3025,18 +2524,18 @@ const deserializeAws_restJson1NotFoundExceptionResponse = async (parsedOutput, c
|
|
|
3025
2524
|
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
3026
2525
|
};
|
|
3027
2526
|
const deserializeAws_restJson1ResourceInUseExceptionResponse = async (parsedOutput, context) => {
|
|
3028
|
-
const contents = {};
|
|
2527
|
+
const contents = map({});
|
|
3029
2528
|
const data = parsedOutput.body;
|
|
3030
|
-
if (data.addonName
|
|
2529
|
+
if (data.addonName != null) {
|
|
3031
2530
|
contents.addonName = (0, smithy_client_1.expectString)(data.addonName);
|
|
3032
2531
|
}
|
|
3033
|
-
if (data.clusterName
|
|
2532
|
+
if (data.clusterName != null) {
|
|
3034
2533
|
contents.clusterName = (0, smithy_client_1.expectString)(data.clusterName);
|
|
3035
2534
|
}
|
|
3036
|
-
if (data.message
|
|
2535
|
+
if (data.message != null) {
|
|
3037
2536
|
contents.message = (0, smithy_client_1.expectString)(data.message);
|
|
3038
2537
|
}
|
|
3039
|
-
if (data.nodegroupName
|
|
2538
|
+
if (data.nodegroupName != null) {
|
|
3040
2539
|
contents.nodegroupName = (0, smithy_client_1.expectString)(data.nodegroupName);
|
|
3041
2540
|
}
|
|
3042
2541
|
const exception = new models_0_1.ResourceInUseException({
|
|
@@ -3046,15 +2545,15 @@ const deserializeAws_restJson1ResourceInUseExceptionResponse = async (parsedOutp
|
|
|
3046
2545
|
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
3047
2546
|
};
|
|
3048
2547
|
const deserializeAws_restJson1ResourceLimitExceededExceptionResponse = async (parsedOutput, context) => {
|
|
3049
|
-
const contents = {};
|
|
2548
|
+
const contents = map({});
|
|
3050
2549
|
const data = parsedOutput.body;
|
|
3051
|
-
if (data.clusterName
|
|
2550
|
+
if (data.clusterName != null) {
|
|
3052
2551
|
contents.clusterName = (0, smithy_client_1.expectString)(data.clusterName);
|
|
3053
2552
|
}
|
|
3054
|
-
if (data.message
|
|
2553
|
+
if (data.message != null) {
|
|
3055
2554
|
contents.message = (0, smithy_client_1.expectString)(data.message);
|
|
3056
2555
|
}
|
|
3057
|
-
if (data.nodegroupName
|
|
2556
|
+
if (data.nodegroupName != null) {
|
|
3058
2557
|
contents.nodegroupName = (0, smithy_client_1.expectString)(data.nodegroupName);
|
|
3059
2558
|
}
|
|
3060
2559
|
const exception = new models_0_1.ResourceLimitExceededException({
|
|
@@ -3064,21 +2563,21 @@ const deserializeAws_restJson1ResourceLimitExceededExceptionResponse = async (pa
|
|
|
3064
2563
|
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
3065
2564
|
};
|
|
3066
2565
|
const deserializeAws_restJson1ResourceNotFoundExceptionResponse = async (parsedOutput, context) => {
|
|
3067
|
-
const contents = {};
|
|
2566
|
+
const contents = map({});
|
|
3068
2567
|
const data = parsedOutput.body;
|
|
3069
|
-
if (data.addonName
|
|
2568
|
+
if (data.addonName != null) {
|
|
3070
2569
|
contents.addonName = (0, smithy_client_1.expectString)(data.addonName);
|
|
3071
2570
|
}
|
|
3072
|
-
if (data.clusterName
|
|
2571
|
+
if (data.clusterName != null) {
|
|
3073
2572
|
contents.clusterName = (0, smithy_client_1.expectString)(data.clusterName);
|
|
3074
2573
|
}
|
|
3075
|
-
if (data.fargateProfileName
|
|
2574
|
+
if (data.fargateProfileName != null) {
|
|
3076
2575
|
contents.fargateProfileName = (0, smithy_client_1.expectString)(data.fargateProfileName);
|
|
3077
2576
|
}
|
|
3078
|
-
if (data.message
|
|
2577
|
+
if (data.message != null) {
|
|
3079
2578
|
contents.message = (0, smithy_client_1.expectString)(data.message);
|
|
3080
2579
|
}
|
|
3081
|
-
if (data.nodegroupName
|
|
2580
|
+
if (data.nodegroupName != null) {
|
|
3082
2581
|
contents.nodegroupName = (0, smithy_client_1.expectString)(data.nodegroupName);
|
|
3083
2582
|
}
|
|
3084
2583
|
const exception = new models_0_1.ResourceNotFoundException({
|
|
@@ -3088,9 +2587,9 @@ const deserializeAws_restJson1ResourceNotFoundExceptionResponse = async (parsedO
|
|
|
3088
2587
|
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
3089
2588
|
};
|
|
3090
2589
|
const deserializeAws_restJson1ResourcePropagationDelayExceptionResponse = async (parsedOutput, context) => {
|
|
3091
|
-
const contents = {};
|
|
2590
|
+
const contents = map({});
|
|
3092
2591
|
const data = parsedOutput.body;
|
|
3093
|
-
if (data.message
|
|
2592
|
+
if (data.message != null) {
|
|
3094
2593
|
contents.message = (0, smithy_client_1.expectString)(data.message);
|
|
3095
2594
|
}
|
|
3096
2595
|
const exception = new models_0_1.ResourcePropagationDelayException({
|
|
@@ -3100,18 +2599,18 @@ const deserializeAws_restJson1ResourcePropagationDelayExceptionResponse = async
|
|
|
3100
2599
|
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
3101
2600
|
};
|
|
3102
2601
|
const deserializeAws_restJson1ServerExceptionResponse = async (parsedOutput, context) => {
|
|
3103
|
-
const contents = {};
|
|
2602
|
+
const contents = map({});
|
|
3104
2603
|
const data = parsedOutput.body;
|
|
3105
|
-
if (data.addonName
|
|
2604
|
+
if (data.addonName != null) {
|
|
3106
2605
|
contents.addonName = (0, smithy_client_1.expectString)(data.addonName);
|
|
3107
2606
|
}
|
|
3108
|
-
if (data.clusterName
|
|
2607
|
+
if (data.clusterName != null) {
|
|
3109
2608
|
contents.clusterName = (0, smithy_client_1.expectString)(data.clusterName);
|
|
3110
2609
|
}
|
|
3111
|
-
if (data.message
|
|
2610
|
+
if (data.message != null) {
|
|
3112
2611
|
contents.message = (0, smithy_client_1.expectString)(data.message);
|
|
3113
2612
|
}
|
|
3114
|
-
if (data.nodegroupName
|
|
2613
|
+
if (data.nodegroupName != null) {
|
|
3115
2614
|
contents.nodegroupName = (0, smithy_client_1.expectString)(data.nodegroupName);
|
|
3116
2615
|
}
|
|
3117
2616
|
const exception = new models_0_1.ServerException({
|
|
@@ -3121,9 +2620,9 @@ const deserializeAws_restJson1ServerExceptionResponse = async (parsedOutput, con
|
|
|
3121
2620
|
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
3122
2621
|
};
|
|
3123
2622
|
const deserializeAws_restJson1ServiceUnavailableExceptionResponse = async (parsedOutput, context) => {
|
|
3124
|
-
const contents = {};
|
|
2623
|
+
const contents = map({});
|
|
3125
2624
|
const data = parsedOutput.body;
|
|
3126
|
-
if (data.message
|
|
2625
|
+
if (data.message != null) {
|
|
3127
2626
|
contents.message = (0, smithy_client_1.expectString)(data.message);
|
|
3128
2627
|
}
|
|
3129
2628
|
const exception = new models_0_1.ServiceUnavailableException({
|
|
@@ -3133,18 +2632,18 @@ const deserializeAws_restJson1ServiceUnavailableExceptionResponse = async (parse
|
|
|
3133
2632
|
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
3134
2633
|
};
|
|
3135
2634
|
const deserializeAws_restJson1UnsupportedAvailabilityZoneExceptionResponse = async (parsedOutput, context) => {
|
|
3136
|
-
const contents = {};
|
|
2635
|
+
const contents = map({});
|
|
3137
2636
|
const data = parsedOutput.body;
|
|
3138
|
-
if (data.clusterName
|
|
2637
|
+
if (data.clusterName != null) {
|
|
3139
2638
|
contents.clusterName = (0, smithy_client_1.expectString)(data.clusterName);
|
|
3140
2639
|
}
|
|
3141
|
-
if (data.message
|
|
2640
|
+
if (data.message != null) {
|
|
3142
2641
|
contents.message = (0, smithy_client_1.expectString)(data.message);
|
|
3143
2642
|
}
|
|
3144
|
-
if (data.nodegroupName
|
|
2643
|
+
if (data.nodegroupName != null) {
|
|
3145
2644
|
contents.nodegroupName = (0, smithy_client_1.expectString)(data.nodegroupName);
|
|
3146
2645
|
}
|
|
3147
|
-
if (data.validZones
|
|
2646
|
+
if (data.validZones != null) {
|
|
3148
2647
|
contents.validZones = deserializeAws_restJson1StringList(data.validZones, context);
|
|
3149
2648
|
}
|
|
3150
2649
|
const exception = new models_0_1.UnsupportedAvailabilityZoneException({
|
|
@@ -3169,9 +2668,6 @@ const serializeAws_restJson1EncryptionConfigList = (input, context) => {
|
|
|
3169
2668
|
return input
|
|
3170
2669
|
.filter((e) => e != null)
|
|
3171
2670
|
.map((entry) => {
|
|
3172
|
-
if (entry === null) {
|
|
3173
|
-
return null;
|
|
3174
|
-
}
|
|
3175
2671
|
return serializeAws_restJson1EncryptionConfig(entry, context);
|
|
3176
2672
|
});
|
|
3177
2673
|
};
|
|
@@ -3196,9 +2692,6 @@ const serializeAws_restJson1FargateProfileSelectors = (input, context) => {
|
|
|
3196
2692
|
return input
|
|
3197
2693
|
.filter((e) => e != null)
|
|
3198
2694
|
.map((entry) => {
|
|
3199
|
-
if (entry === null) {
|
|
3200
|
-
return null;
|
|
3201
|
-
}
|
|
3202
2695
|
return serializeAws_restJson1FargateProfileSelector(entry, context);
|
|
3203
2696
|
});
|
|
3204
2697
|
};
|
|
@@ -3218,9 +2711,6 @@ const serializeAws_restJson1labelsKeyList = (input, context) => {
|
|
|
3218
2711
|
return input
|
|
3219
2712
|
.filter((e) => e != null)
|
|
3220
2713
|
.map((entry) => {
|
|
3221
|
-
if (entry === null) {
|
|
3222
|
-
return null;
|
|
3223
|
-
}
|
|
3224
2714
|
return entry;
|
|
3225
2715
|
});
|
|
3226
2716
|
};
|
|
@@ -3259,9 +2749,6 @@ const serializeAws_restJson1LogSetups = (input, context) => {
|
|
|
3259
2749
|
return input
|
|
3260
2750
|
.filter((e) => e != null)
|
|
3261
2751
|
.map((entry) => {
|
|
3262
|
-
if (entry === null) {
|
|
3263
|
-
return null;
|
|
3264
|
-
}
|
|
3265
2752
|
return serializeAws_restJson1LogSetup(entry, context);
|
|
3266
2753
|
});
|
|
3267
2754
|
};
|
|
@@ -3269,9 +2756,6 @@ const serializeAws_restJson1LogTypes = (input, context) => {
|
|
|
3269
2756
|
return input
|
|
3270
2757
|
.filter((e) => e != null)
|
|
3271
2758
|
.map((entry) => {
|
|
3272
|
-
if (entry === null) {
|
|
3273
|
-
return null;
|
|
3274
|
-
}
|
|
3275
2759
|
return entry;
|
|
3276
2760
|
});
|
|
3277
2761
|
};
|
|
@@ -3330,9 +2814,6 @@ const serializeAws_restJson1StringList = (input, context) => {
|
|
|
3330
2814
|
return input
|
|
3331
2815
|
.filter((e) => e != null)
|
|
3332
2816
|
.map((entry) => {
|
|
3333
|
-
if (entry === null) {
|
|
3334
|
-
return null;
|
|
3335
|
-
}
|
|
3336
2817
|
return entry;
|
|
3337
2818
|
});
|
|
3338
2819
|
};
|
|
@@ -3358,9 +2839,6 @@ const serializeAws_restJson1taintsList = (input, context) => {
|
|
|
3358
2839
|
return input
|
|
3359
2840
|
.filter((e) => e != null)
|
|
3360
2841
|
.map((entry) => {
|
|
3361
|
-
if (entry === null) {
|
|
3362
|
-
return null;
|
|
3363
|
-
}
|
|
3364
2842
|
return serializeAws_restJson1Taint(entry, context);
|
|
3365
2843
|
});
|
|
3366
2844
|
};
|