@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
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { __assign, __awaiter, __generator, __read } from "tslib";
|
|
2
2
|
import { HttpRequest as __HttpRequest } from "@aws-sdk/protocol-http";
|
|
3
|
-
import { decorateServiceException as __decorateServiceException, expectBoolean as __expectBoolean, expectInt32 as __expectInt32, expectNonNull as __expectNonNull, expectNumber as __expectNumber, expectObject as __expectObject, expectString as __expectString,
|
|
3
|
+
import { decorateServiceException as __decorateServiceException, expectBoolean as __expectBoolean, expectInt32 as __expectInt32, expectNonNull as __expectNonNull, expectNumber as __expectNumber, expectObject as __expectObject, expectString as __expectString, map as __map, parseEpochTimestamp as __parseEpochTimestamp, resolvedPath as __resolvedPath, throwDefaultError, } from "@aws-sdk/smithy-client";
|
|
4
4
|
import { v4 as generateIdempotencyToken } from "uuid";
|
|
5
5
|
import { EKSServiceException as __BaseException } from "../models/EKSServiceException";
|
|
6
6
|
import { AccessDeniedException, BadRequestException, ClientException, InvalidParameterException, InvalidRequestException, NotFoundException, ResourceInUseException, ResourceLimitExceededException, ResourceNotFoundException, ResourcePropagationDelayException, ServerException, ServiceUnavailableException, UnsupportedAvailabilityZoneException, } from "../models/models_0";
|
|
7
7
|
export var serializeAws_restJson1AssociateEncryptionConfigCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
8
|
-
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath,
|
|
8
|
+
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, body;
|
|
9
9
|
var _c;
|
|
10
10
|
return __generator(this, function (_d) {
|
|
11
11
|
switch (_d.label) {
|
|
@@ -17,16 +17,7 @@ export var serializeAws_restJson1AssociateEncryptionConfigCommand = function (in
|
|
|
17
17
|
};
|
|
18
18
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") +
|
|
19
19
|
"/clusters/{clusterName}/encryption-config/associate";
|
|
20
|
-
|
|
21
|
-
labelValue = input.clusterName;
|
|
22
|
-
if (labelValue.length <= 0) {
|
|
23
|
-
throw new Error("Empty value provided for input HTTP label: clusterName.");
|
|
24
|
-
}
|
|
25
|
-
resolvedPath = resolvedPath.replace("{clusterName}", __extendedEncodeURIComponent(labelValue));
|
|
26
|
-
}
|
|
27
|
-
else {
|
|
28
|
-
throw new Error("No value provided for input HTTP label: clusterName.");
|
|
29
|
-
}
|
|
20
|
+
resolvedPath = __resolvedPath(resolvedPath, input, "clusterName", function () { return input.clusterName; }, "{clusterName}", false);
|
|
30
21
|
body = JSON.stringify(__assign({ clientRequestToken: (_c = input.clientRequestToken) !== null && _c !== void 0 ? _c : generateIdempotencyToken() }, (input.encryptionConfig != null && {
|
|
31
22
|
encryptionConfig: serializeAws_restJson1EncryptionConfigList(input.encryptionConfig, context),
|
|
32
23
|
})));
|
|
@@ -43,7 +34,7 @@ export var serializeAws_restJson1AssociateEncryptionConfigCommand = function (in
|
|
|
43
34
|
});
|
|
44
35
|
}); };
|
|
45
36
|
export var serializeAws_restJson1AssociateIdentityProviderConfigCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
46
|
-
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath,
|
|
37
|
+
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, body;
|
|
47
38
|
var _c;
|
|
48
39
|
return __generator(this, function (_d) {
|
|
49
40
|
switch (_d.label) {
|
|
@@ -55,16 +46,7 @@ export var serializeAws_restJson1AssociateIdentityProviderConfigCommand = functi
|
|
|
55
46
|
};
|
|
56
47
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") +
|
|
57
48
|
"/clusters/{clusterName}/identity-provider-configs/associate";
|
|
58
|
-
|
|
59
|
-
labelValue = input.clusterName;
|
|
60
|
-
if (labelValue.length <= 0) {
|
|
61
|
-
throw new Error("Empty value provided for input HTTP label: clusterName.");
|
|
62
|
-
}
|
|
63
|
-
resolvedPath = resolvedPath.replace("{clusterName}", __extendedEncodeURIComponent(labelValue));
|
|
64
|
-
}
|
|
65
|
-
else {
|
|
66
|
-
throw new Error("No value provided for input HTTP label: clusterName.");
|
|
67
|
-
}
|
|
49
|
+
resolvedPath = __resolvedPath(resolvedPath, input, "clusterName", function () { return input.clusterName; }, "{clusterName}", false);
|
|
68
50
|
body = JSON.stringify(__assign(__assign({ clientRequestToken: (_c = input.clientRequestToken) !== null && _c !== void 0 ? _c : generateIdempotencyToken() }, (input.oidc != null && { oidc: serializeAws_restJson1OidcIdentityProviderConfigRequest(input.oidc, context) })), (input.tags != null && { tags: serializeAws_restJson1TagMap(input.tags, context) })));
|
|
69
51
|
return [2, new __HttpRequest({
|
|
70
52
|
protocol: protocol,
|
|
@@ -79,7 +61,7 @@ export var serializeAws_restJson1AssociateIdentityProviderConfigCommand = functi
|
|
|
79
61
|
});
|
|
80
62
|
}); };
|
|
81
63
|
export var serializeAws_restJson1CreateAddonCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
82
|
-
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath,
|
|
64
|
+
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, body;
|
|
83
65
|
var _c;
|
|
84
66
|
return __generator(this, function (_d) {
|
|
85
67
|
switch (_d.label) {
|
|
@@ -90,16 +72,7 @@ export var serializeAws_restJson1CreateAddonCommand = function (input, context)
|
|
|
90
72
|
"content-type": "application/json",
|
|
91
73
|
};
|
|
92
74
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/clusters/{clusterName}/addons";
|
|
93
|
-
|
|
94
|
-
labelValue = input.clusterName;
|
|
95
|
-
if (labelValue.length <= 0) {
|
|
96
|
-
throw new Error("Empty value provided for input HTTP label: clusterName.");
|
|
97
|
-
}
|
|
98
|
-
resolvedPath = resolvedPath.replace("{clusterName}", __extendedEncodeURIComponent(labelValue));
|
|
99
|
-
}
|
|
100
|
-
else {
|
|
101
|
-
throw new Error("No value provided for input HTTP label: clusterName.");
|
|
102
|
-
}
|
|
75
|
+
resolvedPath = __resolvedPath(resolvedPath, input, "clusterName", function () { return input.clusterName; }, "{clusterName}", false);
|
|
103
76
|
body = JSON.stringify(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.addonName != null && { addonName: input.addonName })), (input.addonVersion != null && { addonVersion: input.addonVersion })), { clientRequestToken: (_c = input.clientRequestToken) !== null && _c !== void 0 ? _c : generateIdempotencyToken() }), (input.resolveConflicts != null && { resolveConflicts: input.resolveConflicts })), (input.serviceAccountRoleArn != null && { serviceAccountRoleArn: input.serviceAccountRoleArn })), (input.tags != null && { tags: serializeAws_restJson1TagMap(input.tags, context) })));
|
|
104
77
|
return [2, new __HttpRequest({
|
|
105
78
|
protocol: protocol,
|
|
@@ -145,7 +118,7 @@ export var serializeAws_restJson1CreateClusterCommand = function (input, context
|
|
|
145
118
|
});
|
|
146
119
|
}); };
|
|
147
120
|
export var serializeAws_restJson1CreateFargateProfileCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
148
|
-
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath,
|
|
121
|
+
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, body;
|
|
149
122
|
var _c;
|
|
150
123
|
return __generator(this, function (_d) {
|
|
151
124
|
switch (_d.label) {
|
|
@@ -156,16 +129,7 @@ export var serializeAws_restJson1CreateFargateProfileCommand = function (input,
|
|
|
156
129
|
"content-type": "application/json",
|
|
157
130
|
};
|
|
158
131
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/clusters/{clusterName}/fargate-profiles";
|
|
159
|
-
|
|
160
|
-
labelValue = input.clusterName;
|
|
161
|
-
if (labelValue.length <= 0) {
|
|
162
|
-
throw new Error("Empty value provided for input HTTP label: clusterName.");
|
|
163
|
-
}
|
|
164
|
-
resolvedPath = resolvedPath.replace("{clusterName}", __extendedEncodeURIComponent(labelValue));
|
|
165
|
-
}
|
|
166
|
-
else {
|
|
167
|
-
throw new Error("No value provided for input HTTP label: clusterName.");
|
|
168
|
-
}
|
|
132
|
+
resolvedPath = __resolvedPath(resolvedPath, input, "clusterName", function () { return input.clusterName; }, "{clusterName}", false);
|
|
169
133
|
body = JSON.stringify(__assign(__assign(__assign(__assign(__assign({ clientRequestToken: (_c = input.clientRequestToken) !== null && _c !== void 0 ? _c : generateIdempotencyToken() }, (input.fargateProfileName != null && { fargateProfileName: input.fargateProfileName })), (input.podExecutionRoleArn != null && { podExecutionRoleArn: input.podExecutionRoleArn })), (input.selectors != null && {
|
|
170
134
|
selectors: serializeAws_restJson1FargateProfileSelectors(input.selectors, context),
|
|
171
135
|
})), (input.subnets != null && { subnets: serializeAws_restJson1StringList(input.subnets, context) })), (input.tags != null && { tags: serializeAws_restJson1TagMap(input.tags, context) })));
|
|
@@ -182,7 +146,7 @@ export var serializeAws_restJson1CreateFargateProfileCommand = function (input,
|
|
|
182
146
|
});
|
|
183
147
|
}); };
|
|
184
148
|
export var serializeAws_restJson1CreateNodegroupCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
185
|
-
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath,
|
|
149
|
+
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, body;
|
|
186
150
|
var _c;
|
|
187
151
|
return __generator(this, function (_d) {
|
|
188
152
|
switch (_d.label) {
|
|
@@ -193,16 +157,7 @@ export var serializeAws_restJson1CreateNodegroupCommand = function (input, conte
|
|
|
193
157
|
"content-type": "application/json",
|
|
194
158
|
};
|
|
195
159
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/clusters/{clusterName}/node-groups";
|
|
196
|
-
|
|
197
|
-
labelValue = input.clusterName;
|
|
198
|
-
if (labelValue.length <= 0) {
|
|
199
|
-
throw new Error("Empty value provided for input HTTP label: clusterName.");
|
|
200
|
-
}
|
|
201
|
-
resolvedPath = resolvedPath.replace("{clusterName}", __extendedEncodeURIComponent(labelValue));
|
|
202
|
-
}
|
|
203
|
-
else {
|
|
204
|
-
throw new Error("No value provided for input HTTP label: clusterName.");
|
|
205
|
-
}
|
|
160
|
+
resolvedPath = __resolvedPath(resolvedPath, input, "clusterName", function () { return input.clusterName; }, "{clusterName}", false);
|
|
206
161
|
body = JSON.stringify(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.amiType != null && { amiType: input.amiType })), (input.capacityType != null && { capacityType: input.capacityType })), { clientRequestToken: (_c = input.clientRequestToken) !== null && _c !== void 0 ? _c : generateIdempotencyToken() }), (input.diskSize != null && { diskSize: input.diskSize })), (input.instanceTypes != null && {
|
|
207
162
|
instanceTypes: serializeAws_restJson1StringList(input.instanceTypes, context),
|
|
208
163
|
})), (input.labels != null && { labels: serializeAws_restJson1labelsMap(input.labels, context) })), (input.launchTemplate != null && {
|
|
@@ -227,7 +182,7 @@ export var serializeAws_restJson1CreateNodegroupCommand = function (input, conte
|
|
|
227
182
|
});
|
|
228
183
|
}); };
|
|
229
184
|
export var serializeAws_restJson1DeleteAddonCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
230
|
-
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath,
|
|
185
|
+
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, query, body;
|
|
231
186
|
return __generator(this, function (_c) {
|
|
232
187
|
switch (_c.label) {
|
|
233
188
|
case 0: return [4, context.endpoint()];
|
|
@@ -236,27 +191,11 @@ export var serializeAws_restJson1DeleteAddonCommand = function (input, context)
|
|
|
236
191
|
headers = {};
|
|
237
192
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") +
|
|
238
193
|
"/clusters/{clusterName}/addons/{addonName}";
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
resolvedPath = resolvedPath.replace("{clusterName}", __extendedEncodeURIComponent(labelValue));
|
|
245
|
-
}
|
|
246
|
-
else {
|
|
247
|
-
throw new Error("No value provided for input HTTP label: clusterName.");
|
|
248
|
-
}
|
|
249
|
-
if (input.addonName !== undefined) {
|
|
250
|
-
labelValue = input.addonName;
|
|
251
|
-
if (labelValue.length <= 0) {
|
|
252
|
-
throw new Error("Empty value provided for input HTTP label: addonName.");
|
|
253
|
-
}
|
|
254
|
-
resolvedPath = resolvedPath.replace("{addonName}", __extendedEncodeURIComponent(labelValue));
|
|
255
|
-
}
|
|
256
|
-
else {
|
|
257
|
-
throw new Error("No value provided for input HTTP label: addonName.");
|
|
258
|
-
}
|
|
259
|
-
query = __assign({}, (input.preserve !== undefined && { preserve: input.preserve.toString() }));
|
|
194
|
+
resolvedPath = __resolvedPath(resolvedPath, input, "clusterName", function () { return input.clusterName; }, "{clusterName}", false);
|
|
195
|
+
resolvedPath = __resolvedPath(resolvedPath, input, "addonName", function () { return input.addonName; }, "{addonName}", false);
|
|
196
|
+
query = map({
|
|
197
|
+
preserve: [function () { return input.preserve !== void 0; }, function () { return input.preserve.toString(); }],
|
|
198
|
+
});
|
|
260
199
|
return [2, new __HttpRequest({
|
|
261
200
|
protocol: protocol,
|
|
262
201
|
hostname: hostname,
|
|
@@ -271,7 +210,7 @@ export var serializeAws_restJson1DeleteAddonCommand = function (input, context)
|
|
|
271
210
|
});
|
|
272
211
|
}); };
|
|
273
212
|
export var serializeAws_restJson1DeleteClusterCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
274
|
-
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath,
|
|
213
|
+
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, body;
|
|
275
214
|
return __generator(this, function (_c) {
|
|
276
215
|
switch (_c.label) {
|
|
277
216
|
case 0: return [4, context.endpoint()];
|
|
@@ -279,16 +218,7 @@ export var serializeAws_restJson1DeleteClusterCommand = function (input, context
|
|
|
279
218
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
280
219
|
headers = {};
|
|
281
220
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/clusters/{name}";
|
|
282
|
-
|
|
283
|
-
labelValue = input.name;
|
|
284
|
-
if (labelValue.length <= 0) {
|
|
285
|
-
throw new Error("Empty value provided for input HTTP label: name.");
|
|
286
|
-
}
|
|
287
|
-
resolvedPath = resolvedPath.replace("{name}", __extendedEncodeURIComponent(labelValue));
|
|
288
|
-
}
|
|
289
|
-
else {
|
|
290
|
-
throw new Error("No value provided for input HTTP label: name.");
|
|
291
|
-
}
|
|
221
|
+
resolvedPath = __resolvedPath(resolvedPath, input, "name", function () { return input.name; }, "{name}", false);
|
|
292
222
|
return [2, new __HttpRequest({
|
|
293
223
|
protocol: protocol,
|
|
294
224
|
hostname: hostname,
|
|
@@ -302,7 +232,7 @@ export var serializeAws_restJson1DeleteClusterCommand = function (input, context
|
|
|
302
232
|
});
|
|
303
233
|
}); };
|
|
304
234
|
export var serializeAws_restJson1DeleteFargateProfileCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
305
|
-
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath,
|
|
235
|
+
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, body;
|
|
306
236
|
return __generator(this, function (_c) {
|
|
307
237
|
switch (_c.label) {
|
|
308
238
|
case 0: return [4, context.endpoint()];
|
|
@@ -311,26 +241,8 @@ export var serializeAws_restJson1DeleteFargateProfileCommand = function (input,
|
|
|
311
241
|
headers = {};
|
|
312
242
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") +
|
|
313
243
|
"/clusters/{clusterName}/fargate-profiles/{fargateProfileName}";
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
if (labelValue.length <= 0) {
|
|
317
|
-
throw new Error("Empty value provided for input HTTP label: clusterName.");
|
|
318
|
-
}
|
|
319
|
-
resolvedPath = resolvedPath.replace("{clusterName}", __extendedEncodeURIComponent(labelValue));
|
|
320
|
-
}
|
|
321
|
-
else {
|
|
322
|
-
throw new Error("No value provided for input HTTP label: clusterName.");
|
|
323
|
-
}
|
|
324
|
-
if (input.fargateProfileName !== undefined) {
|
|
325
|
-
labelValue = input.fargateProfileName;
|
|
326
|
-
if (labelValue.length <= 0) {
|
|
327
|
-
throw new Error("Empty value provided for input HTTP label: fargateProfileName.");
|
|
328
|
-
}
|
|
329
|
-
resolvedPath = resolvedPath.replace("{fargateProfileName}", __extendedEncodeURIComponent(labelValue));
|
|
330
|
-
}
|
|
331
|
-
else {
|
|
332
|
-
throw new Error("No value provided for input HTTP label: fargateProfileName.");
|
|
333
|
-
}
|
|
244
|
+
resolvedPath = __resolvedPath(resolvedPath, input, "clusterName", function () { return input.clusterName; }, "{clusterName}", false);
|
|
245
|
+
resolvedPath = __resolvedPath(resolvedPath, input, "fargateProfileName", function () { return input.fargateProfileName; }, "{fargateProfileName}", false);
|
|
334
246
|
return [2, new __HttpRequest({
|
|
335
247
|
protocol: protocol,
|
|
336
248
|
hostname: hostname,
|
|
@@ -344,7 +256,7 @@ export var serializeAws_restJson1DeleteFargateProfileCommand = function (input,
|
|
|
344
256
|
});
|
|
345
257
|
}); };
|
|
346
258
|
export var serializeAws_restJson1DeleteNodegroupCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
347
|
-
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath,
|
|
259
|
+
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, body;
|
|
348
260
|
return __generator(this, function (_c) {
|
|
349
261
|
switch (_c.label) {
|
|
350
262
|
case 0: return [4, context.endpoint()];
|
|
@@ -353,26 +265,8 @@ export var serializeAws_restJson1DeleteNodegroupCommand = function (input, conte
|
|
|
353
265
|
headers = {};
|
|
354
266
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") +
|
|
355
267
|
"/clusters/{clusterName}/node-groups/{nodegroupName}";
|
|
356
|
-
|
|
357
|
-
|
|
358
|
-
if (labelValue.length <= 0) {
|
|
359
|
-
throw new Error("Empty value provided for input HTTP label: clusterName.");
|
|
360
|
-
}
|
|
361
|
-
resolvedPath = resolvedPath.replace("{clusterName}", __extendedEncodeURIComponent(labelValue));
|
|
362
|
-
}
|
|
363
|
-
else {
|
|
364
|
-
throw new Error("No value provided for input HTTP label: clusterName.");
|
|
365
|
-
}
|
|
366
|
-
if (input.nodegroupName !== undefined) {
|
|
367
|
-
labelValue = input.nodegroupName;
|
|
368
|
-
if (labelValue.length <= 0) {
|
|
369
|
-
throw new Error("Empty value provided for input HTTP label: nodegroupName.");
|
|
370
|
-
}
|
|
371
|
-
resolvedPath = resolvedPath.replace("{nodegroupName}", __extendedEncodeURIComponent(labelValue));
|
|
372
|
-
}
|
|
373
|
-
else {
|
|
374
|
-
throw new Error("No value provided for input HTTP label: nodegroupName.");
|
|
375
|
-
}
|
|
268
|
+
resolvedPath = __resolvedPath(resolvedPath, input, "clusterName", function () { return input.clusterName; }, "{clusterName}", false);
|
|
269
|
+
resolvedPath = __resolvedPath(resolvedPath, input, "nodegroupName", function () { return input.nodegroupName; }, "{nodegroupName}", false);
|
|
376
270
|
return [2, new __HttpRequest({
|
|
377
271
|
protocol: protocol,
|
|
378
272
|
hostname: hostname,
|
|
@@ -386,7 +280,7 @@ export var serializeAws_restJson1DeleteNodegroupCommand = function (input, conte
|
|
|
386
280
|
});
|
|
387
281
|
}); };
|
|
388
282
|
export var serializeAws_restJson1DeregisterClusterCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
389
|
-
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath,
|
|
283
|
+
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, body;
|
|
390
284
|
return __generator(this, function (_c) {
|
|
391
285
|
switch (_c.label) {
|
|
392
286
|
case 0: return [4, context.endpoint()];
|
|
@@ -394,16 +288,7 @@ export var serializeAws_restJson1DeregisterClusterCommand = function (input, con
|
|
|
394
288
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
395
289
|
headers = {};
|
|
396
290
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/cluster-registrations/{name}";
|
|
397
|
-
|
|
398
|
-
labelValue = input.name;
|
|
399
|
-
if (labelValue.length <= 0) {
|
|
400
|
-
throw new Error("Empty value provided for input HTTP label: name.");
|
|
401
|
-
}
|
|
402
|
-
resolvedPath = resolvedPath.replace("{name}", __extendedEncodeURIComponent(labelValue));
|
|
403
|
-
}
|
|
404
|
-
else {
|
|
405
|
-
throw new Error("No value provided for input HTTP label: name.");
|
|
406
|
-
}
|
|
291
|
+
resolvedPath = __resolvedPath(resolvedPath, input, "name", function () { return input.name; }, "{name}", false);
|
|
407
292
|
return [2, new __HttpRequest({
|
|
408
293
|
protocol: protocol,
|
|
409
294
|
hostname: hostname,
|
|
@@ -417,7 +302,7 @@ export var serializeAws_restJson1DeregisterClusterCommand = function (input, con
|
|
|
417
302
|
});
|
|
418
303
|
}); };
|
|
419
304
|
export var serializeAws_restJson1DescribeAddonCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
420
|
-
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath,
|
|
305
|
+
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, body;
|
|
421
306
|
return __generator(this, function (_c) {
|
|
422
307
|
switch (_c.label) {
|
|
423
308
|
case 0: return [4, context.endpoint()];
|
|
@@ -426,26 +311,8 @@ export var serializeAws_restJson1DescribeAddonCommand = function (input, context
|
|
|
426
311
|
headers = {};
|
|
427
312
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") +
|
|
428
313
|
"/clusters/{clusterName}/addons/{addonName}";
|
|
429
|
-
|
|
430
|
-
|
|
431
|
-
if (labelValue.length <= 0) {
|
|
432
|
-
throw new Error("Empty value provided for input HTTP label: clusterName.");
|
|
433
|
-
}
|
|
434
|
-
resolvedPath = resolvedPath.replace("{clusterName}", __extendedEncodeURIComponent(labelValue));
|
|
435
|
-
}
|
|
436
|
-
else {
|
|
437
|
-
throw new Error("No value provided for input HTTP label: clusterName.");
|
|
438
|
-
}
|
|
439
|
-
if (input.addonName !== undefined) {
|
|
440
|
-
labelValue = input.addonName;
|
|
441
|
-
if (labelValue.length <= 0) {
|
|
442
|
-
throw new Error("Empty value provided for input HTTP label: addonName.");
|
|
443
|
-
}
|
|
444
|
-
resolvedPath = resolvedPath.replace("{addonName}", __extendedEncodeURIComponent(labelValue));
|
|
445
|
-
}
|
|
446
|
-
else {
|
|
447
|
-
throw new Error("No value provided for input HTTP label: addonName.");
|
|
448
|
-
}
|
|
314
|
+
resolvedPath = __resolvedPath(resolvedPath, input, "clusterName", function () { return input.clusterName; }, "{clusterName}", false);
|
|
315
|
+
resolvedPath = __resolvedPath(resolvedPath, input, "addonName", function () { return input.addonName; }, "{addonName}", false);
|
|
449
316
|
return [2, new __HttpRequest({
|
|
450
317
|
protocol: protocol,
|
|
451
318
|
hostname: hostname,
|
|
@@ -467,7 +334,12 @@ export var serializeAws_restJson1DescribeAddonVersionsCommand = function (input,
|
|
|
467
334
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
468
335
|
headers = {};
|
|
469
336
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/addons/supported-versions";
|
|
470
|
-
query =
|
|
337
|
+
query = map({
|
|
338
|
+
kubernetesVersion: [, input.kubernetesVersion],
|
|
339
|
+
maxResults: [function () { return input.maxResults !== void 0; }, function () { return input.maxResults.toString(); }],
|
|
340
|
+
nextToken: [, input.nextToken],
|
|
341
|
+
addonName: [, input.addonName],
|
|
342
|
+
});
|
|
471
343
|
return [2, new __HttpRequest({
|
|
472
344
|
protocol: protocol,
|
|
473
345
|
hostname: hostname,
|
|
@@ -482,7 +354,7 @@ export var serializeAws_restJson1DescribeAddonVersionsCommand = function (input,
|
|
|
482
354
|
});
|
|
483
355
|
}); };
|
|
484
356
|
export var serializeAws_restJson1DescribeClusterCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
485
|
-
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath,
|
|
357
|
+
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, body;
|
|
486
358
|
return __generator(this, function (_c) {
|
|
487
359
|
switch (_c.label) {
|
|
488
360
|
case 0: return [4, context.endpoint()];
|
|
@@ -490,16 +362,7 @@ export var serializeAws_restJson1DescribeClusterCommand = function (input, conte
|
|
|
490
362
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
491
363
|
headers = {};
|
|
492
364
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/clusters/{name}";
|
|
493
|
-
|
|
494
|
-
labelValue = input.name;
|
|
495
|
-
if (labelValue.length <= 0) {
|
|
496
|
-
throw new Error("Empty value provided for input HTTP label: name.");
|
|
497
|
-
}
|
|
498
|
-
resolvedPath = resolvedPath.replace("{name}", __extendedEncodeURIComponent(labelValue));
|
|
499
|
-
}
|
|
500
|
-
else {
|
|
501
|
-
throw new Error("No value provided for input HTTP label: name.");
|
|
502
|
-
}
|
|
365
|
+
resolvedPath = __resolvedPath(resolvedPath, input, "name", function () { return input.name; }, "{name}", false);
|
|
503
366
|
return [2, new __HttpRequest({
|
|
504
367
|
protocol: protocol,
|
|
505
368
|
hostname: hostname,
|
|
@@ -513,7 +376,7 @@ export var serializeAws_restJson1DescribeClusterCommand = function (input, conte
|
|
|
513
376
|
});
|
|
514
377
|
}); };
|
|
515
378
|
export var serializeAws_restJson1DescribeFargateProfileCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
516
|
-
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath,
|
|
379
|
+
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, body;
|
|
517
380
|
return __generator(this, function (_c) {
|
|
518
381
|
switch (_c.label) {
|
|
519
382
|
case 0: return [4, context.endpoint()];
|
|
@@ -522,26 +385,8 @@ export var serializeAws_restJson1DescribeFargateProfileCommand = function (input
|
|
|
522
385
|
headers = {};
|
|
523
386
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") +
|
|
524
387
|
"/clusters/{clusterName}/fargate-profiles/{fargateProfileName}";
|
|
525
|
-
|
|
526
|
-
|
|
527
|
-
if (labelValue.length <= 0) {
|
|
528
|
-
throw new Error("Empty value provided for input HTTP label: clusterName.");
|
|
529
|
-
}
|
|
530
|
-
resolvedPath = resolvedPath.replace("{clusterName}", __extendedEncodeURIComponent(labelValue));
|
|
531
|
-
}
|
|
532
|
-
else {
|
|
533
|
-
throw new Error("No value provided for input HTTP label: clusterName.");
|
|
534
|
-
}
|
|
535
|
-
if (input.fargateProfileName !== undefined) {
|
|
536
|
-
labelValue = input.fargateProfileName;
|
|
537
|
-
if (labelValue.length <= 0) {
|
|
538
|
-
throw new Error("Empty value provided for input HTTP label: fargateProfileName.");
|
|
539
|
-
}
|
|
540
|
-
resolvedPath = resolvedPath.replace("{fargateProfileName}", __extendedEncodeURIComponent(labelValue));
|
|
541
|
-
}
|
|
542
|
-
else {
|
|
543
|
-
throw new Error("No value provided for input HTTP label: fargateProfileName.");
|
|
544
|
-
}
|
|
388
|
+
resolvedPath = __resolvedPath(resolvedPath, input, "clusterName", function () { return input.clusterName; }, "{clusterName}", false);
|
|
389
|
+
resolvedPath = __resolvedPath(resolvedPath, input, "fargateProfileName", function () { return input.fargateProfileName; }, "{fargateProfileName}", false);
|
|
545
390
|
return [2, new __HttpRequest({
|
|
546
391
|
protocol: protocol,
|
|
547
392
|
hostname: hostname,
|
|
@@ -555,7 +400,7 @@ export var serializeAws_restJson1DescribeFargateProfileCommand = function (input
|
|
|
555
400
|
});
|
|
556
401
|
}); };
|
|
557
402
|
export var serializeAws_restJson1DescribeIdentityProviderConfigCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
558
|
-
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath,
|
|
403
|
+
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, body;
|
|
559
404
|
return __generator(this, function (_c) {
|
|
560
405
|
switch (_c.label) {
|
|
561
406
|
case 0: return [4, context.endpoint()];
|
|
@@ -566,16 +411,7 @@ export var serializeAws_restJson1DescribeIdentityProviderConfigCommand = functio
|
|
|
566
411
|
};
|
|
567
412
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") +
|
|
568
413
|
"/clusters/{clusterName}/identity-provider-configs/describe";
|
|
569
|
-
|
|
570
|
-
labelValue = input.clusterName;
|
|
571
|
-
if (labelValue.length <= 0) {
|
|
572
|
-
throw new Error("Empty value provided for input HTTP label: clusterName.");
|
|
573
|
-
}
|
|
574
|
-
resolvedPath = resolvedPath.replace("{clusterName}", __extendedEncodeURIComponent(labelValue));
|
|
575
|
-
}
|
|
576
|
-
else {
|
|
577
|
-
throw new Error("No value provided for input HTTP label: clusterName.");
|
|
578
|
-
}
|
|
414
|
+
resolvedPath = __resolvedPath(resolvedPath, input, "clusterName", function () { return input.clusterName; }, "{clusterName}", false);
|
|
579
415
|
body = JSON.stringify(__assign({}, (input.identityProviderConfig != null && {
|
|
580
416
|
identityProviderConfig: serializeAws_restJson1IdentityProviderConfig(input.identityProviderConfig, context),
|
|
581
417
|
})));
|
|
@@ -592,7 +428,7 @@ export var serializeAws_restJson1DescribeIdentityProviderConfigCommand = functio
|
|
|
592
428
|
});
|
|
593
429
|
}); };
|
|
594
430
|
export var serializeAws_restJson1DescribeNodegroupCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
595
|
-
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath,
|
|
431
|
+
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, body;
|
|
596
432
|
return __generator(this, function (_c) {
|
|
597
433
|
switch (_c.label) {
|
|
598
434
|
case 0: return [4, context.endpoint()];
|
|
@@ -601,26 +437,8 @@ export var serializeAws_restJson1DescribeNodegroupCommand = function (input, con
|
|
|
601
437
|
headers = {};
|
|
602
438
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") +
|
|
603
439
|
"/clusters/{clusterName}/node-groups/{nodegroupName}";
|
|
604
|
-
|
|
605
|
-
|
|
606
|
-
if (labelValue.length <= 0) {
|
|
607
|
-
throw new Error("Empty value provided for input HTTP label: clusterName.");
|
|
608
|
-
}
|
|
609
|
-
resolvedPath = resolvedPath.replace("{clusterName}", __extendedEncodeURIComponent(labelValue));
|
|
610
|
-
}
|
|
611
|
-
else {
|
|
612
|
-
throw new Error("No value provided for input HTTP label: clusterName.");
|
|
613
|
-
}
|
|
614
|
-
if (input.nodegroupName !== undefined) {
|
|
615
|
-
labelValue = input.nodegroupName;
|
|
616
|
-
if (labelValue.length <= 0) {
|
|
617
|
-
throw new Error("Empty value provided for input HTTP label: nodegroupName.");
|
|
618
|
-
}
|
|
619
|
-
resolvedPath = resolvedPath.replace("{nodegroupName}", __extendedEncodeURIComponent(labelValue));
|
|
620
|
-
}
|
|
621
|
-
else {
|
|
622
|
-
throw new Error("No value provided for input HTTP label: nodegroupName.");
|
|
623
|
-
}
|
|
440
|
+
resolvedPath = __resolvedPath(resolvedPath, input, "clusterName", function () { return input.clusterName; }, "{clusterName}", false);
|
|
441
|
+
resolvedPath = __resolvedPath(resolvedPath, input, "nodegroupName", function () { return input.nodegroupName; }, "{nodegroupName}", false);
|
|
624
442
|
return [2, new __HttpRequest({
|
|
625
443
|
protocol: protocol,
|
|
626
444
|
hostname: hostname,
|
|
@@ -634,7 +452,7 @@ export var serializeAws_restJson1DescribeNodegroupCommand = function (input, con
|
|
|
634
452
|
});
|
|
635
453
|
}); };
|
|
636
454
|
export var serializeAws_restJson1DescribeUpdateCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
637
|
-
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath,
|
|
455
|
+
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, query, body;
|
|
638
456
|
return __generator(this, function (_c) {
|
|
639
457
|
switch (_c.label) {
|
|
640
458
|
case 0: return [4, context.endpoint()];
|
|
@@ -642,27 +460,12 @@ export var serializeAws_restJson1DescribeUpdateCommand = function (input, contex
|
|
|
642
460
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
643
461
|
headers = {};
|
|
644
462
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/clusters/{name}/updates/{updateId}";
|
|
645
|
-
|
|
646
|
-
|
|
647
|
-
|
|
648
|
-
|
|
649
|
-
|
|
650
|
-
|
|
651
|
-
}
|
|
652
|
-
else {
|
|
653
|
-
throw new Error("No value provided for input HTTP label: name.");
|
|
654
|
-
}
|
|
655
|
-
if (input.updateId !== undefined) {
|
|
656
|
-
labelValue = input.updateId;
|
|
657
|
-
if (labelValue.length <= 0) {
|
|
658
|
-
throw new Error("Empty value provided for input HTTP label: updateId.");
|
|
659
|
-
}
|
|
660
|
-
resolvedPath = resolvedPath.replace("{updateId}", __extendedEncodeURIComponent(labelValue));
|
|
661
|
-
}
|
|
662
|
-
else {
|
|
663
|
-
throw new Error("No value provided for input HTTP label: updateId.");
|
|
664
|
-
}
|
|
665
|
-
query = __assign(__assign({}, (input.nodegroupName !== undefined && { nodegroupName: input.nodegroupName })), (input.addonName !== undefined && { addonName: input.addonName }));
|
|
463
|
+
resolvedPath = __resolvedPath(resolvedPath, input, "name", function () { return input.name; }, "{name}", false);
|
|
464
|
+
resolvedPath = __resolvedPath(resolvedPath, input, "updateId", function () { return input.updateId; }, "{updateId}", false);
|
|
465
|
+
query = map({
|
|
466
|
+
nodegroupName: [, input.nodegroupName],
|
|
467
|
+
addonName: [, input.addonName],
|
|
468
|
+
});
|
|
666
469
|
return [2, new __HttpRequest({
|
|
667
470
|
protocol: protocol,
|
|
668
471
|
hostname: hostname,
|
|
@@ -677,7 +480,7 @@ export var serializeAws_restJson1DescribeUpdateCommand = function (input, contex
|
|
|
677
480
|
});
|
|
678
481
|
}); };
|
|
679
482
|
export var serializeAws_restJson1DisassociateIdentityProviderConfigCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
680
|
-
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath,
|
|
483
|
+
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, body;
|
|
681
484
|
var _c;
|
|
682
485
|
return __generator(this, function (_d) {
|
|
683
486
|
switch (_d.label) {
|
|
@@ -689,16 +492,7 @@ export var serializeAws_restJson1DisassociateIdentityProviderConfigCommand = fun
|
|
|
689
492
|
};
|
|
690
493
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") +
|
|
691
494
|
"/clusters/{clusterName}/identity-provider-configs/disassociate";
|
|
692
|
-
|
|
693
|
-
labelValue = input.clusterName;
|
|
694
|
-
if (labelValue.length <= 0) {
|
|
695
|
-
throw new Error("Empty value provided for input HTTP label: clusterName.");
|
|
696
|
-
}
|
|
697
|
-
resolvedPath = resolvedPath.replace("{clusterName}", __extendedEncodeURIComponent(labelValue));
|
|
698
|
-
}
|
|
699
|
-
else {
|
|
700
|
-
throw new Error("No value provided for input HTTP label: clusterName.");
|
|
701
|
-
}
|
|
495
|
+
resolvedPath = __resolvedPath(resolvedPath, input, "clusterName", function () { return input.clusterName; }, "{clusterName}", false);
|
|
702
496
|
body = JSON.stringify(__assign({ clientRequestToken: (_c = input.clientRequestToken) !== null && _c !== void 0 ? _c : generateIdempotencyToken() }, (input.identityProviderConfig != null && {
|
|
703
497
|
identityProviderConfig: serializeAws_restJson1IdentityProviderConfig(input.identityProviderConfig, context),
|
|
704
498
|
})));
|
|
@@ -715,7 +509,7 @@ export var serializeAws_restJson1DisassociateIdentityProviderConfigCommand = fun
|
|
|
715
509
|
});
|
|
716
510
|
}); };
|
|
717
511
|
export var serializeAws_restJson1ListAddonsCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
718
|
-
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath,
|
|
512
|
+
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, query, body;
|
|
719
513
|
return __generator(this, function (_c) {
|
|
720
514
|
switch (_c.label) {
|
|
721
515
|
case 0: return [4, context.endpoint()];
|
|
@@ -723,17 +517,11 @@ export var serializeAws_restJson1ListAddonsCommand = function (input, context) {
|
|
|
723
517
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
724
518
|
headers = {};
|
|
725
519
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/clusters/{clusterName}/addons";
|
|
726
|
-
|
|
727
|
-
|
|
728
|
-
|
|
729
|
-
|
|
730
|
-
|
|
731
|
-
resolvedPath = resolvedPath.replace("{clusterName}", __extendedEncodeURIComponent(labelValue));
|
|
732
|
-
}
|
|
733
|
-
else {
|
|
734
|
-
throw new Error("No value provided for input HTTP label: clusterName.");
|
|
735
|
-
}
|
|
736
|
-
query = __assign(__assign({}, (input.maxResults !== undefined && { maxResults: input.maxResults.toString() })), (input.nextToken !== undefined && { nextToken: input.nextToken }));
|
|
520
|
+
resolvedPath = __resolvedPath(resolvedPath, input, "clusterName", function () { return input.clusterName; }, "{clusterName}", false);
|
|
521
|
+
query = map({
|
|
522
|
+
maxResults: [function () { return input.maxResults !== void 0; }, function () { return input.maxResults.toString(); }],
|
|
523
|
+
nextToken: [, input.nextToken],
|
|
524
|
+
});
|
|
737
525
|
return [2, new __HttpRequest({
|
|
738
526
|
protocol: protocol,
|
|
739
527
|
hostname: hostname,
|
|
@@ -756,7 +544,11 @@ export var serializeAws_restJson1ListClustersCommand = function (input, context)
|
|
|
756
544
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
757
545
|
headers = {};
|
|
758
546
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/clusters";
|
|
759
|
-
query =
|
|
547
|
+
query = map({
|
|
548
|
+
maxResults: [function () { return input.maxResults !== void 0; }, function () { return input.maxResults.toString(); }],
|
|
549
|
+
nextToken: [, input.nextToken],
|
|
550
|
+
include: [function () { return input.include !== void 0; }, function () { return (input.include || []).map(function (_entry) { return _entry; }); }],
|
|
551
|
+
});
|
|
760
552
|
return [2, new __HttpRequest({
|
|
761
553
|
protocol: protocol,
|
|
762
554
|
hostname: hostname,
|
|
@@ -771,7 +563,7 @@ export var serializeAws_restJson1ListClustersCommand = function (input, context)
|
|
|
771
563
|
});
|
|
772
564
|
}); };
|
|
773
565
|
export var serializeAws_restJson1ListFargateProfilesCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
774
|
-
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath,
|
|
566
|
+
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, query, body;
|
|
775
567
|
return __generator(this, function (_c) {
|
|
776
568
|
switch (_c.label) {
|
|
777
569
|
case 0: return [4, context.endpoint()];
|
|
@@ -779,17 +571,11 @@ export var serializeAws_restJson1ListFargateProfilesCommand = function (input, c
|
|
|
779
571
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
780
572
|
headers = {};
|
|
781
573
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/clusters/{clusterName}/fargate-profiles";
|
|
782
|
-
|
|
783
|
-
|
|
784
|
-
|
|
785
|
-
|
|
786
|
-
|
|
787
|
-
resolvedPath = resolvedPath.replace("{clusterName}", __extendedEncodeURIComponent(labelValue));
|
|
788
|
-
}
|
|
789
|
-
else {
|
|
790
|
-
throw new Error("No value provided for input HTTP label: clusterName.");
|
|
791
|
-
}
|
|
792
|
-
query = __assign(__assign({}, (input.maxResults !== undefined && { maxResults: input.maxResults.toString() })), (input.nextToken !== undefined && { nextToken: input.nextToken }));
|
|
574
|
+
resolvedPath = __resolvedPath(resolvedPath, input, "clusterName", function () { return input.clusterName; }, "{clusterName}", false);
|
|
575
|
+
query = map({
|
|
576
|
+
maxResults: [function () { return input.maxResults !== void 0; }, function () { return input.maxResults.toString(); }],
|
|
577
|
+
nextToken: [, input.nextToken],
|
|
578
|
+
});
|
|
793
579
|
return [2, new __HttpRequest({
|
|
794
580
|
protocol: protocol,
|
|
795
581
|
hostname: hostname,
|
|
@@ -804,7 +590,7 @@ export var serializeAws_restJson1ListFargateProfilesCommand = function (input, c
|
|
|
804
590
|
});
|
|
805
591
|
}); };
|
|
806
592
|
export var serializeAws_restJson1ListIdentityProviderConfigsCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
807
|
-
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath,
|
|
593
|
+
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, query, body;
|
|
808
594
|
return __generator(this, function (_c) {
|
|
809
595
|
switch (_c.label) {
|
|
810
596
|
case 0: return [4, context.endpoint()];
|
|
@@ -813,17 +599,11 @@ export var serializeAws_restJson1ListIdentityProviderConfigsCommand = function (
|
|
|
813
599
|
headers = {};
|
|
814
600
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") +
|
|
815
601
|
"/clusters/{clusterName}/identity-provider-configs";
|
|
816
|
-
|
|
817
|
-
|
|
818
|
-
|
|
819
|
-
|
|
820
|
-
|
|
821
|
-
resolvedPath = resolvedPath.replace("{clusterName}", __extendedEncodeURIComponent(labelValue));
|
|
822
|
-
}
|
|
823
|
-
else {
|
|
824
|
-
throw new Error("No value provided for input HTTP label: clusterName.");
|
|
825
|
-
}
|
|
826
|
-
query = __assign(__assign({}, (input.maxResults !== undefined && { maxResults: input.maxResults.toString() })), (input.nextToken !== undefined && { nextToken: input.nextToken }));
|
|
602
|
+
resolvedPath = __resolvedPath(resolvedPath, input, "clusterName", function () { return input.clusterName; }, "{clusterName}", false);
|
|
603
|
+
query = map({
|
|
604
|
+
maxResults: [function () { return input.maxResults !== void 0; }, function () { return input.maxResults.toString(); }],
|
|
605
|
+
nextToken: [, input.nextToken],
|
|
606
|
+
});
|
|
827
607
|
return [2, new __HttpRequest({
|
|
828
608
|
protocol: protocol,
|
|
829
609
|
hostname: hostname,
|
|
@@ -838,7 +618,7 @@ export var serializeAws_restJson1ListIdentityProviderConfigsCommand = function (
|
|
|
838
618
|
});
|
|
839
619
|
}); };
|
|
840
620
|
export var serializeAws_restJson1ListNodegroupsCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
841
|
-
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath,
|
|
621
|
+
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, query, body;
|
|
842
622
|
return __generator(this, function (_c) {
|
|
843
623
|
switch (_c.label) {
|
|
844
624
|
case 0: return [4, context.endpoint()];
|
|
@@ -846,17 +626,11 @@ export var serializeAws_restJson1ListNodegroupsCommand = function (input, contex
|
|
|
846
626
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
847
627
|
headers = {};
|
|
848
628
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/clusters/{clusterName}/node-groups";
|
|
849
|
-
|
|
850
|
-
|
|
851
|
-
|
|
852
|
-
|
|
853
|
-
|
|
854
|
-
resolvedPath = resolvedPath.replace("{clusterName}", __extendedEncodeURIComponent(labelValue));
|
|
855
|
-
}
|
|
856
|
-
else {
|
|
857
|
-
throw new Error("No value provided for input HTTP label: clusterName.");
|
|
858
|
-
}
|
|
859
|
-
query = __assign(__assign({}, (input.maxResults !== undefined && { maxResults: input.maxResults.toString() })), (input.nextToken !== undefined && { nextToken: input.nextToken }));
|
|
629
|
+
resolvedPath = __resolvedPath(resolvedPath, input, "clusterName", function () { return input.clusterName; }, "{clusterName}", false);
|
|
630
|
+
query = map({
|
|
631
|
+
maxResults: [function () { return input.maxResults !== void 0; }, function () { return input.maxResults.toString(); }],
|
|
632
|
+
nextToken: [, input.nextToken],
|
|
633
|
+
});
|
|
860
634
|
return [2, new __HttpRequest({
|
|
861
635
|
protocol: protocol,
|
|
862
636
|
hostname: hostname,
|
|
@@ -871,7 +645,7 @@ export var serializeAws_restJson1ListNodegroupsCommand = function (input, contex
|
|
|
871
645
|
});
|
|
872
646
|
}); };
|
|
873
647
|
export var serializeAws_restJson1ListTagsForResourceCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
874
|
-
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath,
|
|
648
|
+
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, body;
|
|
875
649
|
return __generator(this, function (_c) {
|
|
876
650
|
switch (_c.label) {
|
|
877
651
|
case 0: return [4, context.endpoint()];
|
|
@@ -879,16 +653,7 @@ export var serializeAws_restJson1ListTagsForResourceCommand = function (input, c
|
|
|
879
653
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
880
654
|
headers = {};
|
|
881
655
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/tags/{resourceArn}";
|
|
882
|
-
|
|
883
|
-
labelValue = input.resourceArn;
|
|
884
|
-
if (labelValue.length <= 0) {
|
|
885
|
-
throw new Error("Empty value provided for input HTTP label: resourceArn.");
|
|
886
|
-
}
|
|
887
|
-
resolvedPath = resolvedPath.replace("{resourceArn}", __extendedEncodeURIComponent(labelValue));
|
|
888
|
-
}
|
|
889
|
-
else {
|
|
890
|
-
throw new Error("No value provided for input HTTP label: resourceArn.");
|
|
891
|
-
}
|
|
656
|
+
resolvedPath = __resolvedPath(resolvedPath, input, "resourceArn", function () { return input.resourceArn; }, "{resourceArn}", false);
|
|
892
657
|
return [2, new __HttpRequest({
|
|
893
658
|
protocol: protocol,
|
|
894
659
|
hostname: hostname,
|
|
@@ -902,7 +667,7 @@ export var serializeAws_restJson1ListTagsForResourceCommand = function (input, c
|
|
|
902
667
|
});
|
|
903
668
|
}); };
|
|
904
669
|
export var serializeAws_restJson1ListUpdatesCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
905
|
-
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath,
|
|
670
|
+
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, query, body;
|
|
906
671
|
return __generator(this, function (_c) {
|
|
907
672
|
switch (_c.label) {
|
|
908
673
|
case 0: return [4, context.endpoint()];
|
|
@@ -910,17 +675,13 @@ export var serializeAws_restJson1ListUpdatesCommand = function (input, context)
|
|
|
910
675
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
911
676
|
headers = {};
|
|
912
677
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/clusters/{name}/updates";
|
|
913
|
-
|
|
914
|
-
|
|
915
|
-
|
|
916
|
-
|
|
917
|
-
|
|
918
|
-
|
|
919
|
-
}
|
|
920
|
-
else {
|
|
921
|
-
throw new Error("No value provided for input HTTP label: name.");
|
|
922
|
-
}
|
|
923
|
-
query = __assign(__assign(__assign(__assign({}, (input.nodegroupName !== undefined && { nodegroupName: input.nodegroupName })), (input.addonName !== undefined && { addonName: input.addonName })), (input.nextToken !== undefined && { nextToken: input.nextToken })), (input.maxResults !== undefined && { maxResults: input.maxResults.toString() }));
|
|
678
|
+
resolvedPath = __resolvedPath(resolvedPath, input, "name", function () { return input.name; }, "{name}", false);
|
|
679
|
+
query = map({
|
|
680
|
+
nodegroupName: [, input.nodegroupName],
|
|
681
|
+
addonName: [, input.addonName],
|
|
682
|
+
nextToken: [, input.nextToken],
|
|
683
|
+
maxResults: [function () { return input.maxResults !== void 0; }, function () { return input.maxResults.toString(); }],
|
|
684
|
+
});
|
|
924
685
|
return [2, new __HttpRequest({
|
|
925
686
|
protocol: protocol,
|
|
926
687
|
hostname: hostname,
|
|
@@ -962,7 +723,7 @@ export var serializeAws_restJson1RegisterClusterCommand = function (input, conte
|
|
|
962
723
|
});
|
|
963
724
|
}); };
|
|
964
725
|
export var serializeAws_restJson1TagResourceCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
965
|
-
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath,
|
|
726
|
+
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, body;
|
|
966
727
|
return __generator(this, function (_c) {
|
|
967
728
|
switch (_c.label) {
|
|
968
729
|
case 0: return [4, context.endpoint()];
|
|
@@ -972,16 +733,7 @@ export var serializeAws_restJson1TagResourceCommand = function (input, context)
|
|
|
972
733
|
"content-type": "application/json",
|
|
973
734
|
};
|
|
974
735
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/tags/{resourceArn}";
|
|
975
|
-
|
|
976
|
-
labelValue = input.resourceArn;
|
|
977
|
-
if (labelValue.length <= 0) {
|
|
978
|
-
throw new Error("Empty value provided for input HTTP label: resourceArn.");
|
|
979
|
-
}
|
|
980
|
-
resolvedPath = resolvedPath.replace("{resourceArn}", __extendedEncodeURIComponent(labelValue));
|
|
981
|
-
}
|
|
982
|
-
else {
|
|
983
|
-
throw new Error("No value provided for input HTTP label: resourceArn.");
|
|
984
|
-
}
|
|
736
|
+
resolvedPath = __resolvedPath(resolvedPath, input, "resourceArn", function () { return input.resourceArn; }, "{resourceArn}", false);
|
|
985
737
|
body = JSON.stringify(__assign({}, (input.tags != null && { tags: serializeAws_restJson1TagMap(input.tags, context) })));
|
|
986
738
|
return [2, new __HttpRequest({
|
|
987
739
|
protocol: protocol,
|
|
@@ -996,7 +748,7 @@ export var serializeAws_restJson1TagResourceCommand = function (input, context)
|
|
|
996
748
|
});
|
|
997
749
|
}); };
|
|
998
750
|
export var serializeAws_restJson1UntagResourceCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
999
|
-
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath,
|
|
751
|
+
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, query, body;
|
|
1000
752
|
return __generator(this, function (_c) {
|
|
1001
753
|
switch (_c.label) {
|
|
1002
754
|
case 0: return [4, context.endpoint()];
|
|
@@ -1004,17 +756,10 @@ export var serializeAws_restJson1UntagResourceCommand = function (input, context
|
|
|
1004
756
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
1005
757
|
headers = {};
|
|
1006
758
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/tags/{resourceArn}";
|
|
1007
|
-
|
|
1008
|
-
|
|
1009
|
-
|
|
1010
|
-
|
|
1011
|
-
}
|
|
1012
|
-
resolvedPath = resolvedPath.replace("{resourceArn}", __extendedEncodeURIComponent(labelValue));
|
|
1013
|
-
}
|
|
1014
|
-
else {
|
|
1015
|
-
throw new Error("No value provided for input HTTP label: resourceArn.");
|
|
1016
|
-
}
|
|
1017
|
-
query = __assign({}, (input.tagKeys !== undefined && { tagKeys: (input.tagKeys || []).map(function (_entry) { return _entry; }) }));
|
|
759
|
+
resolvedPath = __resolvedPath(resolvedPath, input, "resourceArn", function () { return input.resourceArn; }, "{resourceArn}", false);
|
|
760
|
+
query = map({
|
|
761
|
+
tagKeys: [function () { return input.tagKeys !== void 0; }, function () { return (input.tagKeys || []).map(function (_entry) { return _entry; }); }],
|
|
762
|
+
});
|
|
1018
763
|
return [2, new __HttpRequest({
|
|
1019
764
|
protocol: protocol,
|
|
1020
765
|
hostname: hostname,
|
|
@@ -1029,7 +774,7 @@ export var serializeAws_restJson1UntagResourceCommand = function (input, context
|
|
|
1029
774
|
});
|
|
1030
775
|
}); };
|
|
1031
776
|
export var serializeAws_restJson1UpdateAddonCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1032
|
-
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath,
|
|
777
|
+
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, body;
|
|
1033
778
|
var _c;
|
|
1034
779
|
return __generator(this, function (_d) {
|
|
1035
780
|
switch (_d.label) {
|
|
@@ -1041,26 +786,8 @@ export var serializeAws_restJson1UpdateAddonCommand = function (input, context)
|
|
|
1041
786
|
};
|
|
1042
787
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") +
|
|
1043
788
|
"/clusters/{clusterName}/addons/{addonName}/update";
|
|
1044
|
-
|
|
1045
|
-
|
|
1046
|
-
if (labelValue.length <= 0) {
|
|
1047
|
-
throw new Error("Empty value provided for input HTTP label: clusterName.");
|
|
1048
|
-
}
|
|
1049
|
-
resolvedPath = resolvedPath.replace("{clusterName}", __extendedEncodeURIComponent(labelValue));
|
|
1050
|
-
}
|
|
1051
|
-
else {
|
|
1052
|
-
throw new Error("No value provided for input HTTP label: clusterName.");
|
|
1053
|
-
}
|
|
1054
|
-
if (input.addonName !== undefined) {
|
|
1055
|
-
labelValue = input.addonName;
|
|
1056
|
-
if (labelValue.length <= 0) {
|
|
1057
|
-
throw new Error("Empty value provided for input HTTP label: addonName.");
|
|
1058
|
-
}
|
|
1059
|
-
resolvedPath = resolvedPath.replace("{addonName}", __extendedEncodeURIComponent(labelValue));
|
|
1060
|
-
}
|
|
1061
|
-
else {
|
|
1062
|
-
throw new Error("No value provided for input HTTP label: addonName.");
|
|
1063
|
-
}
|
|
789
|
+
resolvedPath = __resolvedPath(resolvedPath, input, "clusterName", function () { return input.clusterName; }, "{clusterName}", false);
|
|
790
|
+
resolvedPath = __resolvedPath(resolvedPath, input, "addonName", function () { return input.addonName; }, "{addonName}", false);
|
|
1064
791
|
body = JSON.stringify(__assign(__assign(__assign(__assign({}, (input.addonVersion != null && { addonVersion: input.addonVersion })), { clientRequestToken: (_c = input.clientRequestToken) !== null && _c !== void 0 ? _c : generateIdempotencyToken() }), (input.resolveConflicts != null && { resolveConflicts: input.resolveConflicts })), (input.serviceAccountRoleArn != null && { serviceAccountRoleArn: input.serviceAccountRoleArn })));
|
|
1065
792
|
return [2, new __HttpRequest({
|
|
1066
793
|
protocol: protocol,
|
|
@@ -1075,7 +802,7 @@ export var serializeAws_restJson1UpdateAddonCommand = function (input, context)
|
|
|
1075
802
|
});
|
|
1076
803
|
}); };
|
|
1077
804
|
export var serializeAws_restJson1UpdateClusterConfigCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1078
|
-
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath,
|
|
805
|
+
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, body;
|
|
1079
806
|
var _c;
|
|
1080
807
|
return __generator(this, function (_d) {
|
|
1081
808
|
switch (_d.label) {
|
|
@@ -1086,16 +813,7 @@ export var serializeAws_restJson1UpdateClusterConfigCommand = function (input, c
|
|
|
1086
813
|
"content-type": "application/json",
|
|
1087
814
|
};
|
|
1088
815
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/clusters/{name}/update-config";
|
|
1089
|
-
|
|
1090
|
-
labelValue = input.name;
|
|
1091
|
-
if (labelValue.length <= 0) {
|
|
1092
|
-
throw new Error("Empty value provided for input HTTP label: name.");
|
|
1093
|
-
}
|
|
1094
|
-
resolvedPath = resolvedPath.replace("{name}", __extendedEncodeURIComponent(labelValue));
|
|
1095
|
-
}
|
|
1096
|
-
else {
|
|
1097
|
-
throw new Error("No value provided for input HTTP label: name.");
|
|
1098
|
-
}
|
|
816
|
+
resolvedPath = __resolvedPath(resolvedPath, input, "name", function () { return input.name; }, "{name}", false);
|
|
1099
817
|
body = JSON.stringify(__assign(__assign({ clientRequestToken: (_c = input.clientRequestToken) !== null && _c !== void 0 ? _c : generateIdempotencyToken() }, (input.logging != null && { logging: serializeAws_restJson1Logging(input.logging, context) })), (input.resourcesVpcConfig != null && {
|
|
1100
818
|
resourcesVpcConfig: serializeAws_restJson1VpcConfigRequest(input.resourcesVpcConfig, context),
|
|
1101
819
|
})));
|
|
@@ -1112,7 +830,7 @@ export var serializeAws_restJson1UpdateClusterConfigCommand = function (input, c
|
|
|
1112
830
|
});
|
|
1113
831
|
}); };
|
|
1114
832
|
export var serializeAws_restJson1UpdateClusterVersionCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1115
|
-
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath,
|
|
833
|
+
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, body;
|
|
1116
834
|
var _c;
|
|
1117
835
|
return __generator(this, function (_d) {
|
|
1118
836
|
switch (_d.label) {
|
|
@@ -1123,16 +841,7 @@ export var serializeAws_restJson1UpdateClusterVersionCommand = function (input,
|
|
|
1123
841
|
"content-type": "application/json",
|
|
1124
842
|
};
|
|
1125
843
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/clusters/{name}/updates";
|
|
1126
|
-
|
|
1127
|
-
labelValue = input.name;
|
|
1128
|
-
if (labelValue.length <= 0) {
|
|
1129
|
-
throw new Error("Empty value provided for input HTTP label: name.");
|
|
1130
|
-
}
|
|
1131
|
-
resolvedPath = resolvedPath.replace("{name}", __extendedEncodeURIComponent(labelValue));
|
|
1132
|
-
}
|
|
1133
|
-
else {
|
|
1134
|
-
throw new Error("No value provided for input HTTP label: name.");
|
|
1135
|
-
}
|
|
844
|
+
resolvedPath = __resolvedPath(resolvedPath, input, "name", function () { return input.name; }, "{name}", false);
|
|
1136
845
|
body = JSON.stringify(__assign({ clientRequestToken: (_c = input.clientRequestToken) !== null && _c !== void 0 ? _c : generateIdempotencyToken() }, (input.version != null && { version: input.version })));
|
|
1137
846
|
return [2, new __HttpRequest({
|
|
1138
847
|
protocol: protocol,
|
|
@@ -1147,7 +856,7 @@ export var serializeAws_restJson1UpdateClusterVersionCommand = function (input,
|
|
|
1147
856
|
});
|
|
1148
857
|
}); };
|
|
1149
858
|
export var serializeAws_restJson1UpdateNodegroupConfigCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1150
|
-
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath,
|
|
859
|
+
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, body;
|
|
1151
860
|
var _c;
|
|
1152
861
|
return __generator(this, function (_d) {
|
|
1153
862
|
switch (_d.label) {
|
|
@@ -1159,26 +868,8 @@ export var serializeAws_restJson1UpdateNodegroupConfigCommand = function (input,
|
|
|
1159
868
|
};
|
|
1160
869
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") +
|
|
1161
870
|
"/clusters/{clusterName}/node-groups/{nodegroupName}/update-config";
|
|
1162
|
-
|
|
1163
|
-
|
|
1164
|
-
if (labelValue.length <= 0) {
|
|
1165
|
-
throw new Error("Empty value provided for input HTTP label: clusterName.");
|
|
1166
|
-
}
|
|
1167
|
-
resolvedPath = resolvedPath.replace("{clusterName}", __extendedEncodeURIComponent(labelValue));
|
|
1168
|
-
}
|
|
1169
|
-
else {
|
|
1170
|
-
throw new Error("No value provided for input HTTP label: clusterName.");
|
|
1171
|
-
}
|
|
1172
|
-
if (input.nodegroupName !== undefined) {
|
|
1173
|
-
labelValue = input.nodegroupName;
|
|
1174
|
-
if (labelValue.length <= 0) {
|
|
1175
|
-
throw new Error("Empty value provided for input HTTP label: nodegroupName.");
|
|
1176
|
-
}
|
|
1177
|
-
resolvedPath = resolvedPath.replace("{nodegroupName}", __extendedEncodeURIComponent(labelValue));
|
|
1178
|
-
}
|
|
1179
|
-
else {
|
|
1180
|
-
throw new Error("No value provided for input HTTP label: nodegroupName.");
|
|
1181
|
-
}
|
|
871
|
+
resolvedPath = __resolvedPath(resolvedPath, input, "clusterName", function () { return input.clusterName; }, "{clusterName}", false);
|
|
872
|
+
resolvedPath = __resolvedPath(resolvedPath, input, "nodegroupName", function () { return input.nodegroupName; }, "{nodegroupName}", false);
|
|
1182
873
|
body = JSON.stringify(__assign(__assign(__assign(__assign({ clientRequestToken: (_c = input.clientRequestToken) !== null && _c !== void 0 ? _c : generateIdempotencyToken() }, (input.labels != null && { labels: serializeAws_restJson1UpdateLabelsPayload(input.labels, context) })), (input.scalingConfig != null && {
|
|
1183
874
|
scalingConfig: serializeAws_restJson1NodegroupScalingConfig(input.scalingConfig, context),
|
|
1184
875
|
})), (input.taints != null && { taints: serializeAws_restJson1UpdateTaintsPayload(input.taints, context) })), (input.updateConfig != null && {
|
|
@@ -1197,7 +888,7 @@ export var serializeAws_restJson1UpdateNodegroupConfigCommand = function (input,
|
|
|
1197
888
|
});
|
|
1198
889
|
}); };
|
|
1199
890
|
export var serializeAws_restJson1UpdateNodegroupVersionCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1200
|
-
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath,
|
|
891
|
+
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, body;
|
|
1201
892
|
var _c;
|
|
1202
893
|
return __generator(this, function (_d) {
|
|
1203
894
|
switch (_d.label) {
|
|
@@ -1209,26 +900,8 @@ export var serializeAws_restJson1UpdateNodegroupVersionCommand = function (input
|
|
|
1209
900
|
};
|
|
1210
901
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") +
|
|
1211
902
|
"/clusters/{clusterName}/node-groups/{nodegroupName}/update-version";
|
|
1212
|
-
|
|
1213
|
-
|
|
1214
|
-
if (labelValue.length <= 0) {
|
|
1215
|
-
throw new Error("Empty value provided for input HTTP label: clusterName.");
|
|
1216
|
-
}
|
|
1217
|
-
resolvedPath = resolvedPath.replace("{clusterName}", __extendedEncodeURIComponent(labelValue));
|
|
1218
|
-
}
|
|
1219
|
-
else {
|
|
1220
|
-
throw new Error("No value provided for input HTTP label: clusterName.");
|
|
1221
|
-
}
|
|
1222
|
-
if (input.nodegroupName !== undefined) {
|
|
1223
|
-
labelValue = input.nodegroupName;
|
|
1224
|
-
if (labelValue.length <= 0) {
|
|
1225
|
-
throw new Error("Empty value provided for input HTTP label: nodegroupName.");
|
|
1226
|
-
}
|
|
1227
|
-
resolvedPath = resolvedPath.replace("{nodegroupName}", __extendedEncodeURIComponent(labelValue));
|
|
1228
|
-
}
|
|
1229
|
-
else {
|
|
1230
|
-
throw new Error("No value provided for input HTTP label: nodegroupName.");
|
|
1231
|
-
}
|
|
903
|
+
resolvedPath = __resolvedPath(resolvedPath, input, "clusterName", function () { return input.clusterName; }, "{clusterName}", false);
|
|
904
|
+
resolvedPath = __resolvedPath(resolvedPath, input, "nodegroupName", function () { return input.nodegroupName; }, "{nodegroupName}", false);
|
|
1232
905
|
body = JSON.stringify(__assign(__assign(__assign(__assign({ clientRequestToken: (_c = input.clientRequestToken) !== null && _c !== void 0 ? _c : generateIdempotencyToken() }, (input.force != null && { force: input.force })), (input.launchTemplate != null && {
|
|
1233
906
|
launchTemplate: serializeAws_restJson1LaunchTemplateSpecification(input.launchTemplate, context),
|
|
1234
907
|
})), (input.releaseVersion != null && { releaseVersion: input.releaseVersion })), (input.version != null && { version: input.version })));
|
|
@@ -1252,24 +925,23 @@ export var deserializeAws_restJson1AssociateEncryptionConfigCommand = function (
|
|
|
1252
925
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1253
926
|
return [2, deserializeAws_restJson1AssociateEncryptionConfigCommandError(output, context)];
|
|
1254
927
|
}
|
|
1255
|
-
contents = {
|
|
928
|
+
contents = map({
|
|
1256
929
|
$metadata: deserializeMetadata(output),
|
|
1257
|
-
|
|
1258
|
-
};
|
|
930
|
+
});
|
|
1259
931
|
_a = __expectNonNull;
|
|
1260
932
|
_b = __expectObject;
|
|
1261
933
|
return [4, parseBody(output.body, context)];
|
|
1262
934
|
case 1:
|
|
1263
935
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
1264
|
-
if (data.update
|
|
936
|
+
if (data.update != null) {
|
|
1265
937
|
contents.update = deserializeAws_restJson1Update(data.update, context);
|
|
1266
938
|
}
|
|
1267
|
-
return [2,
|
|
939
|
+
return [2, contents];
|
|
1268
940
|
}
|
|
1269
941
|
});
|
|
1270
942
|
}); };
|
|
1271
943
|
var deserializeAws_restJson1AssociateEncryptionConfigCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1272
|
-
var parsedOutput, _a,
|
|
944
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
1273
945
|
var _c;
|
|
1274
946
|
return __generator(this, function (_d) {
|
|
1275
947
|
switch (_d.label) {
|
|
@@ -1310,14 +982,14 @@ var deserializeAws_restJson1AssociateEncryptionConfigCommandError = function (ou
|
|
|
1310
982
|
case 13: throw _d.sent();
|
|
1311
983
|
case 14:
|
|
1312
984
|
parsedBody = parsedOutput.body;
|
|
1313
|
-
|
|
1314
|
-
|
|
1315
|
-
|
|
1316
|
-
|
|
1317
|
-
|
|
1318
|
-
$metadata: $metadata,
|
|
985
|
+
throwDefaultError({
|
|
986
|
+
output: output,
|
|
987
|
+
parsedBody: parsedBody,
|
|
988
|
+
exceptionCtor: __BaseException,
|
|
989
|
+
errorCode: errorCode,
|
|
1319
990
|
});
|
|
1320
|
-
|
|
991
|
+
_d.label = 15;
|
|
992
|
+
case 15: return [2];
|
|
1321
993
|
}
|
|
1322
994
|
});
|
|
1323
995
|
}); };
|
|
@@ -1329,28 +1001,26 @@ export var deserializeAws_restJson1AssociateIdentityProviderConfigCommand = func
|
|
|
1329
1001
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1330
1002
|
return [2, deserializeAws_restJson1AssociateIdentityProviderConfigCommandError(output, context)];
|
|
1331
1003
|
}
|
|
1332
|
-
contents = {
|
|
1004
|
+
contents = map({
|
|
1333
1005
|
$metadata: deserializeMetadata(output),
|
|
1334
|
-
|
|
1335
|
-
update: undefined,
|
|
1336
|
-
};
|
|
1006
|
+
});
|
|
1337
1007
|
_a = __expectNonNull;
|
|
1338
1008
|
_b = __expectObject;
|
|
1339
1009
|
return [4, parseBody(output.body, context)];
|
|
1340
1010
|
case 1:
|
|
1341
1011
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
1342
|
-
if (data.tags
|
|
1012
|
+
if (data.tags != null) {
|
|
1343
1013
|
contents.tags = deserializeAws_restJson1TagMap(data.tags, context);
|
|
1344
1014
|
}
|
|
1345
|
-
if (data.update
|
|
1015
|
+
if (data.update != null) {
|
|
1346
1016
|
contents.update = deserializeAws_restJson1Update(data.update, context);
|
|
1347
1017
|
}
|
|
1348
|
-
return [2,
|
|
1018
|
+
return [2, contents];
|
|
1349
1019
|
}
|
|
1350
1020
|
});
|
|
1351
1021
|
}); };
|
|
1352
1022
|
var deserializeAws_restJson1AssociateIdentityProviderConfigCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1353
|
-
var parsedOutput, _a,
|
|
1023
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
1354
1024
|
var _c;
|
|
1355
1025
|
return __generator(this, function (_d) {
|
|
1356
1026
|
switch (_d.label) {
|
|
@@ -1391,14 +1061,14 @@ var deserializeAws_restJson1AssociateIdentityProviderConfigCommandError = functi
|
|
|
1391
1061
|
case 13: throw _d.sent();
|
|
1392
1062
|
case 14:
|
|
1393
1063
|
parsedBody = parsedOutput.body;
|
|
1394
|
-
|
|
1395
|
-
|
|
1396
|
-
|
|
1397
|
-
|
|
1398
|
-
|
|
1399
|
-
$metadata: $metadata,
|
|
1064
|
+
throwDefaultError({
|
|
1065
|
+
output: output,
|
|
1066
|
+
parsedBody: parsedBody,
|
|
1067
|
+
exceptionCtor: __BaseException,
|
|
1068
|
+
errorCode: errorCode,
|
|
1400
1069
|
});
|
|
1401
|
-
|
|
1070
|
+
_d.label = 15;
|
|
1071
|
+
case 15: return [2];
|
|
1402
1072
|
}
|
|
1403
1073
|
});
|
|
1404
1074
|
}); };
|
|
@@ -1410,24 +1080,23 @@ export var deserializeAws_restJson1CreateAddonCommand = function (output, contex
|
|
|
1410
1080
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1411
1081
|
return [2, deserializeAws_restJson1CreateAddonCommandError(output, context)];
|
|
1412
1082
|
}
|
|
1413
|
-
contents = {
|
|
1083
|
+
contents = map({
|
|
1414
1084
|
$metadata: deserializeMetadata(output),
|
|
1415
|
-
|
|
1416
|
-
};
|
|
1085
|
+
});
|
|
1417
1086
|
_a = __expectNonNull;
|
|
1418
1087
|
_b = __expectObject;
|
|
1419
1088
|
return [4, parseBody(output.body, context)];
|
|
1420
1089
|
case 1:
|
|
1421
1090
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
1422
|
-
if (data.addon
|
|
1091
|
+
if (data.addon != null) {
|
|
1423
1092
|
contents.addon = deserializeAws_restJson1Addon(data.addon, context);
|
|
1424
1093
|
}
|
|
1425
|
-
return [2,
|
|
1094
|
+
return [2, contents];
|
|
1426
1095
|
}
|
|
1427
1096
|
});
|
|
1428
1097
|
}); };
|
|
1429
1098
|
var deserializeAws_restJson1CreateAddonCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1430
|
-
var parsedOutput, _a,
|
|
1099
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
1431
1100
|
var _c;
|
|
1432
1101
|
return __generator(this, function (_d) {
|
|
1433
1102
|
switch (_d.label) {
|
|
@@ -1468,14 +1137,14 @@ var deserializeAws_restJson1CreateAddonCommandError = function (output, context)
|
|
|
1468
1137
|
case 13: throw _d.sent();
|
|
1469
1138
|
case 14:
|
|
1470
1139
|
parsedBody = parsedOutput.body;
|
|
1471
|
-
|
|
1472
|
-
|
|
1473
|
-
|
|
1474
|
-
|
|
1475
|
-
|
|
1476
|
-
$metadata: $metadata,
|
|
1140
|
+
throwDefaultError({
|
|
1141
|
+
output: output,
|
|
1142
|
+
parsedBody: parsedBody,
|
|
1143
|
+
exceptionCtor: __BaseException,
|
|
1144
|
+
errorCode: errorCode,
|
|
1477
1145
|
});
|
|
1478
|
-
|
|
1146
|
+
_d.label = 15;
|
|
1147
|
+
case 15: return [2];
|
|
1479
1148
|
}
|
|
1480
1149
|
});
|
|
1481
1150
|
}); };
|
|
@@ -1487,24 +1156,23 @@ export var deserializeAws_restJson1CreateClusterCommand = function (output, cont
|
|
|
1487
1156
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1488
1157
|
return [2, deserializeAws_restJson1CreateClusterCommandError(output, context)];
|
|
1489
1158
|
}
|
|
1490
|
-
contents = {
|
|
1159
|
+
contents = map({
|
|
1491
1160
|
$metadata: deserializeMetadata(output),
|
|
1492
|
-
|
|
1493
|
-
};
|
|
1161
|
+
});
|
|
1494
1162
|
_a = __expectNonNull;
|
|
1495
1163
|
_b = __expectObject;
|
|
1496
1164
|
return [4, parseBody(output.body, context)];
|
|
1497
1165
|
case 1:
|
|
1498
1166
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
1499
|
-
if (data.cluster
|
|
1167
|
+
if (data.cluster != null) {
|
|
1500
1168
|
contents.cluster = deserializeAws_restJson1Cluster(data.cluster, context);
|
|
1501
1169
|
}
|
|
1502
|
-
return [2,
|
|
1170
|
+
return [2, contents];
|
|
1503
1171
|
}
|
|
1504
1172
|
});
|
|
1505
1173
|
}); };
|
|
1506
1174
|
var deserializeAws_restJson1CreateClusterCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1507
|
-
var parsedOutput, _a,
|
|
1175
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
1508
1176
|
var _c;
|
|
1509
1177
|
return __generator(this, function (_d) {
|
|
1510
1178
|
switch (_d.label) {
|
|
@@ -1549,14 +1217,14 @@ var deserializeAws_restJson1CreateClusterCommandError = function (output, contex
|
|
|
1549
1217
|
case 15: throw _d.sent();
|
|
1550
1218
|
case 16:
|
|
1551
1219
|
parsedBody = parsedOutput.body;
|
|
1552
|
-
|
|
1553
|
-
|
|
1554
|
-
|
|
1555
|
-
|
|
1556
|
-
|
|
1557
|
-
$metadata: $metadata,
|
|
1220
|
+
throwDefaultError({
|
|
1221
|
+
output: output,
|
|
1222
|
+
parsedBody: parsedBody,
|
|
1223
|
+
exceptionCtor: __BaseException,
|
|
1224
|
+
errorCode: errorCode,
|
|
1558
1225
|
});
|
|
1559
|
-
|
|
1226
|
+
_d.label = 17;
|
|
1227
|
+
case 17: return [2];
|
|
1560
1228
|
}
|
|
1561
1229
|
});
|
|
1562
1230
|
}); };
|
|
@@ -1568,24 +1236,23 @@ export var deserializeAws_restJson1CreateFargateProfileCommand = function (outpu
|
|
|
1568
1236
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1569
1237
|
return [2, deserializeAws_restJson1CreateFargateProfileCommandError(output, context)];
|
|
1570
1238
|
}
|
|
1571
|
-
contents = {
|
|
1239
|
+
contents = map({
|
|
1572
1240
|
$metadata: deserializeMetadata(output),
|
|
1573
|
-
|
|
1574
|
-
};
|
|
1241
|
+
});
|
|
1575
1242
|
_a = __expectNonNull;
|
|
1576
1243
|
_b = __expectObject;
|
|
1577
1244
|
return [4, parseBody(output.body, context)];
|
|
1578
1245
|
case 1:
|
|
1579
1246
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
1580
|
-
if (data.fargateProfile
|
|
1247
|
+
if (data.fargateProfile != null) {
|
|
1581
1248
|
contents.fargateProfile = deserializeAws_restJson1FargateProfile(data.fargateProfile, context);
|
|
1582
1249
|
}
|
|
1583
|
-
return [2,
|
|
1250
|
+
return [2, contents];
|
|
1584
1251
|
}
|
|
1585
1252
|
});
|
|
1586
1253
|
}); };
|
|
1587
1254
|
var deserializeAws_restJson1CreateFargateProfileCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1588
|
-
var parsedOutput, _a,
|
|
1255
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
1589
1256
|
var _c;
|
|
1590
1257
|
return __generator(this, function (_d) {
|
|
1591
1258
|
switch (_d.label) {
|
|
@@ -1626,14 +1293,14 @@ var deserializeAws_restJson1CreateFargateProfileCommandError = function (output,
|
|
|
1626
1293
|
case 13: throw _d.sent();
|
|
1627
1294
|
case 14:
|
|
1628
1295
|
parsedBody = parsedOutput.body;
|
|
1629
|
-
|
|
1630
|
-
|
|
1631
|
-
|
|
1632
|
-
|
|
1633
|
-
|
|
1634
|
-
$metadata: $metadata,
|
|
1296
|
+
throwDefaultError({
|
|
1297
|
+
output: output,
|
|
1298
|
+
parsedBody: parsedBody,
|
|
1299
|
+
exceptionCtor: __BaseException,
|
|
1300
|
+
errorCode: errorCode,
|
|
1635
1301
|
});
|
|
1636
|
-
|
|
1302
|
+
_d.label = 15;
|
|
1303
|
+
case 15: return [2];
|
|
1637
1304
|
}
|
|
1638
1305
|
});
|
|
1639
1306
|
}); };
|
|
@@ -1645,24 +1312,23 @@ export var deserializeAws_restJson1CreateNodegroupCommand = function (output, co
|
|
|
1645
1312
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1646
1313
|
return [2, deserializeAws_restJson1CreateNodegroupCommandError(output, context)];
|
|
1647
1314
|
}
|
|
1648
|
-
contents = {
|
|
1315
|
+
contents = map({
|
|
1649
1316
|
$metadata: deserializeMetadata(output),
|
|
1650
|
-
|
|
1651
|
-
};
|
|
1317
|
+
});
|
|
1652
1318
|
_a = __expectNonNull;
|
|
1653
1319
|
_b = __expectObject;
|
|
1654
1320
|
return [4, parseBody(output.body, context)];
|
|
1655
1321
|
case 1:
|
|
1656
1322
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
1657
|
-
if (data.nodegroup
|
|
1323
|
+
if (data.nodegroup != null) {
|
|
1658
1324
|
contents.nodegroup = deserializeAws_restJson1Nodegroup(data.nodegroup, context);
|
|
1659
1325
|
}
|
|
1660
|
-
return [2,
|
|
1326
|
+
return [2, contents];
|
|
1661
1327
|
}
|
|
1662
1328
|
});
|
|
1663
1329
|
}); };
|
|
1664
1330
|
var deserializeAws_restJson1CreateNodegroupCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1665
|
-
var parsedOutput, _a,
|
|
1331
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
1666
1332
|
var _c;
|
|
1667
1333
|
return __generator(this, function (_d) {
|
|
1668
1334
|
switch (_d.label) {
|
|
@@ -1707,14 +1373,14 @@ var deserializeAws_restJson1CreateNodegroupCommandError = function (output, cont
|
|
|
1707
1373
|
case 15: throw _d.sent();
|
|
1708
1374
|
case 16:
|
|
1709
1375
|
parsedBody = parsedOutput.body;
|
|
1710
|
-
|
|
1711
|
-
|
|
1712
|
-
|
|
1713
|
-
|
|
1714
|
-
|
|
1715
|
-
$metadata: $metadata,
|
|
1376
|
+
throwDefaultError({
|
|
1377
|
+
output: output,
|
|
1378
|
+
parsedBody: parsedBody,
|
|
1379
|
+
exceptionCtor: __BaseException,
|
|
1380
|
+
errorCode: errorCode,
|
|
1716
1381
|
});
|
|
1717
|
-
|
|
1382
|
+
_d.label = 17;
|
|
1383
|
+
case 17: return [2];
|
|
1718
1384
|
}
|
|
1719
1385
|
});
|
|
1720
1386
|
}); };
|
|
@@ -1726,24 +1392,23 @@ export var deserializeAws_restJson1DeleteAddonCommand = function (output, contex
|
|
|
1726
1392
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1727
1393
|
return [2, deserializeAws_restJson1DeleteAddonCommandError(output, context)];
|
|
1728
1394
|
}
|
|
1729
|
-
contents = {
|
|
1395
|
+
contents = map({
|
|
1730
1396
|
$metadata: deserializeMetadata(output),
|
|
1731
|
-
|
|
1732
|
-
};
|
|
1397
|
+
});
|
|
1733
1398
|
_a = __expectNonNull;
|
|
1734
1399
|
_b = __expectObject;
|
|
1735
1400
|
return [4, parseBody(output.body, context)];
|
|
1736
1401
|
case 1:
|
|
1737
1402
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
1738
|
-
if (data.addon
|
|
1403
|
+
if (data.addon != null) {
|
|
1739
1404
|
contents.addon = deserializeAws_restJson1Addon(data.addon, context);
|
|
1740
1405
|
}
|
|
1741
|
-
return [2,
|
|
1406
|
+
return [2, contents];
|
|
1742
1407
|
}
|
|
1743
1408
|
});
|
|
1744
1409
|
}); };
|
|
1745
1410
|
var deserializeAws_restJson1DeleteAddonCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1746
|
-
var parsedOutput, _a,
|
|
1411
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
1747
1412
|
var _c;
|
|
1748
1413
|
return __generator(this, function (_d) {
|
|
1749
1414
|
switch (_d.label) {
|
|
@@ -1780,14 +1445,14 @@ var deserializeAws_restJson1DeleteAddonCommandError = function (output, context)
|
|
|
1780
1445
|
case 11: throw _d.sent();
|
|
1781
1446
|
case 12:
|
|
1782
1447
|
parsedBody = parsedOutput.body;
|
|
1783
|
-
|
|
1784
|
-
|
|
1785
|
-
|
|
1786
|
-
|
|
1787
|
-
|
|
1788
|
-
$metadata: $metadata,
|
|
1448
|
+
throwDefaultError({
|
|
1449
|
+
output: output,
|
|
1450
|
+
parsedBody: parsedBody,
|
|
1451
|
+
exceptionCtor: __BaseException,
|
|
1452
|
+
errorCode: errorCode,
|
|
1789
1453
|
});
|
|
1790
|
-
|
|
1454
|
+
_d.label = 13;
|
|
1455
|
+
case 13: return [2];
|
|
1791
1456
|
}
|
|
1792
1457
|
});
|
|
1793
1458
|
}); };
|
|
@@ -1799,24 +1464,23 @@ export var deserializeAws_restJson1DeleteClusterCommand = function (output, cont
|
|
|
1799
1464
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1800
1465
|
return [2, deserializeAws_restJson1DeleteClusterCommandError(output, context)];
|
|
1801
1466
|
}
|
|
1802
|
-
contents = {
|
|
1467
|
+
contents = map({
|
|
1803
1468
|
$metadata: deserializeMetadata(output),
|
|
1804
|
-
|
|
1805
|
-
};
|
|
1469
|
+
});
|
|
1806
1470
|
_a = __expectNonNull;
|
|
1807
1471
|
_b = __expectObject;
|
|
1808
1472
|
return [4, parseBody(output.body, context)];
|
|
1809
1473
|
case 1:
|
|
1810
1474
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
1811
|
-
if (data.cluster
|
|
1475
|
+
if (data.cluster != null) {
|
|
1812
1476
|
contents.cluster = deserializeAws_restJson1Cluster(data.cluster, context);
|
|
1813
1477
|
}
|
|
1814
|
-
return [2,
|
|
1478
|
+
return [2, contents];
|
|
1815
1479
|
}
|
|
1816
1480
|
});
|
|
1817
1481
|
}); };
|
|
1818
1482
|
var deserializeAws_restJson1DeleteClusterCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1819
|
-
var parsedOutput, _a,
|
|
1483
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
1820
1484
|
var _c;
|
|
1821
1485
|
return __generator(this, function (_d) {
|
|
1822
1486
|
switch (_d.label) {
|
|
@@ -1853,14 +1517,14 @@ var deserializeAws_restJson1DeleteClusterCommandError = function (output, contex
|
|
|
1853
1517
|
case 11: throw _d.sent();
|
|
1854
1518
|
case 12:
|
|
1855
1519
|
parsedBody = parsedOutput.body;
|
|
1856
|
-
|
|
1857
|
-
|
|
1858
|
-
|
|
1859
|
-
|
|
1860
|
-
|
|
1861
|
-
$metadata: $metadata,
|
|
1520
|
+
throwDefaultError({
|
|
1521
|
+
output: output,
|
|
1522
|
+
parsedBody: parsedBody,
|
|
1523
|
+
exceptionCtor: __BaseException,
|
|
1524
|
+
errorCode: errorCode,
|
|
1862
1525
|
});
|
|
1863
|
-
|
|
1526
|
+
_d.label = 13;
|
|
1527
|
+
case 13: return [2];
|
|
1864
1528
|
}
|
|
1865
1529
|
});
|
|
1866
1530
|
}); };
|
|
@@ -1872,24 +1536,23 @@ export var deserializeAws_restJson1DeleteFargateProfileCommand = function (outpu
|
|
|
1872
1536
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1873
1537
|
return [2, deserializeAws_restJson1DeleteFargateProfileCommandError(output, context)];
|
|
1874
1538
|
}
|
|
1875
|
-
contents = {
|
|
1539
|
+
contents = map({
|
|
1876
1540
|
$metadata: deserializeMetadata(output),
|
|
1877
|
-
|
|
1878
|
-
};
|
|
1541
|
+
});
|
|
1879
1542
|
_a = __expectNonNull;
|
|
1880
1543
|
_b = __expectObject;
|
|
1881
1544
|
return [4, parseBody(output.body, context)];
|
|
1882
1545
|
case 1:
|
|
1883
1546
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
1884
|
-
if (data.fargateProfile
|
|
1547
|
+
if (data.fargateProfile != null) {
|
|
1885
1548
|
contents.fargateProfile = deserializeAws_restJson1FargateProfile(data.fargateProfile, context);
|
|
1886
1549
|
}
|
|
1887
|
-
return [2,
|
|
1550
|
+
return [2, contents];
|
|
1888
1551
|
}
|
|
1889
1552
|
});
|
|
1890
1553
|
}); };
|
|
1891
1554
|
var deserializeAws_restJson1DeleteFargateProfileCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1892
|
-
var parsedOutput, _a,
|
|
1555
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
1893
1556
|
var _c;
|
|
1894
1557
|
return __generator(this, function (_d) {
|
|
1895
1558
|
switch (_d.label) {
|
|
@@ -1922,14 +1585,14 @@ var deserializeAws_restJson1DeleteFargateProfileCommandError = function (output,
|
|
|
1922
1585
|
case 9: throw _d.sent();
|
|
1923
1586
|
case 10:
|
|
1924
1587
|
parsedBody = parsedOutput.body;
|
|
1925
|
-
|
|
1926
|
-
|
|
1927
|
-
|
|
1928
|
-
|
|
1929
|
-
|
|
1930
|
-
$metadata: $metadata,
|
|
1588
|
+
throwDefaultError({
|
|
1589
|
+
output: output,
|
|
1590
|
+
parsedBody: parsedBody,
|
|
1591
|
+
exceptionCtor: __BaseException,
|
|
1592
|
+
errorCode: errorCode,
|
|
1931
1593
|
});
|
|
1932
|
-
|
|
1594
|
+
_d.label = 11;
|
|
1595
|
+
case 11: return [2];
|
|
1933
1596
|
}
|
|
1934
1597
|
});
|
|
1935
1598
|
}); };
|
|
@@ -1941,24 +1604,23 @@ export var deserializeAws_restJson1DeleteNodegroupCommand = function (output, co
|
|
|
1941
1604
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1942
1605
|
return [2, deserializeAws_restJson1DeleteNodegroupCommandError(output, context)];
|
|
1943
1606
|
}
|
|
1944
|
-
contents = {
|
|
1607
|
+
contents = map({
|
|
1945
1608
|
$metadata: deserializeMetadata(output),
|
|
1946
|
-
|
|
1947
|
-
};
|
|
1609
|
+
});
|
|
1948
1610
|
_a = __expectNonNull;
|
|
1949
1611
|
_b = __expectObject;
|
|
1950
1612
|
return [4, parseBody(output.body, context)];
|
|
1951
1613
|
case 1:
|
|
1952
1614
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
1953
|
-
if (data.nodegroup
|
|
1615
|
+
if (data.nodegroup != null) {
|
|
1954
1616
|
contents.nodegroup = deserializeAws_restJson1Nodegroup(data.nodegroup, context);
|
|
1955
1617
|
}
|
|
1956
|
-
return [2,
|
|
1618
|
+
return [2, contents];
|
|
1957
1619
|
}
|
|
1958
1620
|
});
|
|
1959
1621
|
}); };
|
|
1960
1622
|
var deserializeAws_restJson1DeleteNodegroupCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1961
|
-
var parsedOutput, _a,
|
|
1623
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
1962
1624
|
var _c;
|
|
1963
1625
|
return __generator(this, function (_d) {
|
|
1964
1626
|
switch (_d.label) {
|
|
@@ -1999,14 +1661,14 @@ var deserializeAws_restJson1DeleteNodegroupCommandError = function (output, cont
|
|
|
1999
1661
|
case 13: throw _d.sent();
|
|
2000
1662
|
case 14:
|
|
2001
1663
|
parsedBody = parsedOutput.body;
|
|
2002
|
-
|
|
2003
|
-
|
|
2004
|
-
|
|
2005
|
-
|
|
2006
|
-
|
|
2007
|
-
$metadata: $metadata,
|
|
1664
|
+
throwDefaultError({
|
|
1665
|
+
output: output,
|
|
1666
|
+
parsedBody: parsedBody,
|
|
1667
|
+
exceptionCtor: __BaseException,
|
|
1668
|
+
errorCode: errorCode,
|
|
2008
1669
|
});
|
|
2009
|
-
|
|
1670
|
+
_d.label = 15;
|
|
1671
|
+
case 15: return [2];
|
|
2010
1672
|
}
|
|
2011
1673
|
});
|
|
2012
1674
|
}); };
|
|
@@ -2018,24 +1680,23 @@ export var deserializeAws_restJson1DeregisterClusterCommand = function (output,
|
|
|
2018
1680
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2019
1681
|
return [2, deserializeAws_restJson1DeregisterClusterCommandError(output, context)];
|
|
2020
1682
|
}
|
|
2021
|
-
contents = {
|
|
1683
|
+
contents = map({
|
|
2022
1684
|
$metadata: deserializeMetadata(output),
|
|
2023
|
-
|
|
2024
|
-
};
|
|
1685
|
+
});
|
|
2025
1686
|
_a = __expectNonNull;
|
|
2026
1687
|
_b = __expectObject;
|
|
2027
1688
|
return [4, parseBody(output.body, context)];
|
|
2028
1689
|
case 1:
|
|
2029
1690
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
2030
|
-
if (data.cluster
|
|
1691
|
+
if (data.cluster != null) {
|
|
2031
1692
|
contents.cluster = deserializeAws_restJson1Cluster(data.cluster, context);
|
|
2032
1693
|
}
|
|
2033
|
-
return [2,
|
|
1694
|
+
return [2, contents];
|
|
2034
1695
|
}
|
|
2035
1696
|
});
|
|
2036
1697
|
}); };
|
|
2037
1698
|
var deserializeAws_restJson1DeregisterClusterCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2038
|
-
var parsedOutput, _a,
|
|
1699
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
2039
1700
|
var _c;
|
|
2040
1701
|
return __generator(this, function (_d) {
|
|
2041
1702
|
switch (_d.label) {
|
|
@@ -2076,14 +1737,14 @@ var deserializeAws_restJson1DeregisterClusterCommandError = function (output, co
|
|
|
2076
1737
|
case 13: throw _d.sent();
|
|
2077
1738
|
case 14:
|
|
2078
1739
|
parsedBody = parsedOutput.body;
|
|
2079
|
-
|
|
2080
|
-
|
|
2081
|
-
|
|
2082
|
-
|
|
2083
|
-
|
|
2084
|
-
$metadata: $metadata,
|
|
1740
|
+
throwDefaultError({
|
|
1741
|
+
output: output,
|
|
1742
|
+
parsedBody: parsedBody,
|
|
1743
|
+
exceptionCtor: __BaseException,
|
|
1744
|
+
errorCode: errorCode,
|
|
2085
1745
|
});
|
|
2086
|
-
|
|
1746
|
+
_d.label = 15;
|
|
1747
|
+
case 15: return [2];
|
|
2087
1748
|
}
|
|
2088
1749
|
});
|
|
2089
1750
|
}); };
|
|
@@ -2095,24 +1756,23 @@ export var deserializeAws_restJson1DescribeAddonCommand = function (output, cont
|
|
|
2095
1756
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2096
1757
|
return [2, deserializeAws_restJson1DescribeAddonCommandError(output, context)];
|
|
2097
1758
|
}
|
|
2098
|
-
contents = {
|
|
1759
|
+
contents = map({
|
|
2099
1760
|
$metadata: deserializeMetadata(output),
|
|
2100
|
-
|
|
2101
|
-
};
|
|
1761
|
+
});
|
|
2102
1762
|
_a = __expectNonNull;
|
|
2103
1763
|
_b = __expectObject;
|
|
2104
1764
|
return [4, parseBody(output.body, context)];
|
|
2105
1765
|
case 1:
|
|
2106
1766
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
2107
|
-
if (data.addon
|
|
1767
|
+
if (data.addon != null) {
|
|
2108
1768
|
contents.addon = deserializeAws_restJson1Addon(data.addon, context);
|
|
2109
1769
|
}
|
|
2110
|
-
return [2,
|
|
1770
|
+
return [2, contents];
|
|
2111
1771
|
}
|
|
2112
1772
|
});
|
|
2113
1773
|
}); };
|
|
2114
1774
|
var deserializeAws_restJson1DescribeAddonCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2115
|
-
var parsedOutput, _a,
|
|
1775
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
2116
1776
|
var _c;
|
|
2117
1777
|
return __generator(this, function (_d) {
|
|
2118
1778
|
switch (_d.label) {
|
|
@@ -2149,14 +1809,14 @@ var deserializeAws_restJson1DescribeAddonCommandError = function (output, contex
|
|
|
2149
1809
|
case 11: throw _d.sent();
|
|
2150
1810
|
case 12:
|
|
2151
1811
|
parsedBody = parsedOutput.body;
|
|
2152
|
-
|
|
2153
|
-
|
|
2154
|
-
|
|
2155
|
-
|
|
2156
|
-
|
|
2157
|
-
$metadata: $metadata,
|
|
1812
|
+
throwDefaultError({
|
|
1813
|
+
output: output,
|
|
1814
|
+
parsedBody: parsedBody,
|
|
1815
|
+
exceptionCtor: __BaseException,
|
|
1816
|
+
errorCode: errorCode,
|
|
2158
1817
|
});
|
|
2159
|
-
|
|
1818
|
+
_d.label = 13;
|
|
1819
|
+
case 13: return [2];
|
|
2160
1820
|
}
|
|
2161
1821
|
});
|
|
2162
1822
|
}); };
|
|
@@ -2168,28 +1828,26 @@ export var deserializeAws_restJson1DescribeAddonVersionsCommand = function (outp
|
|
|
2168
1828
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2169
1829
|
return [2, deserializeAws_restJson1DescribeAddonVersionsCommandError(output, context)];
|
|
2170
1830
|
}
|
|
2171
|
-
contents = {
|
|
1831
|
+
contents = map({
|
|
2172
1832
|
$metadata: deserializeMetadata(output),
|
|
2173
|
-
|
|
2174
|
-
nextToken: undefined,
|
|
2175
|
-
};
|
|
1833
|
+
});
|
|
2176
1834
|
_a = __expectNonNull;
|
|
2177
1835
|
_b = __expectObject;
|
|
2178
1836
|
return [4, parseBody(output.body, context)];
|
|
2179
1837
|
case 1:
|
|
2180
1838
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
2181
|
-
if (data.addons
|
|
1839
|
+
if (data.addons != null) {
|
|
2182
1840
|
contents.addons = deserializeAws_restJson1Addons(data.addons, context);
|
|
2183
1841
|
}
|
|
2184
|
-
if (data.nextToken
|
|
1842
|
+
if (data.nextToken != null) {
|
|
2185
1843
|
contents.nextToken = __expectString(data.nextToken);
|
|
2186
1844
|
}
|
|
2187
|
-
return [2,
|
|
1845
|
+
return [2, contents];
|
|
2188
1846
|
}
|
|
2189
1847
|
});
|
|
2190
1848
|
}); };
|
|
2191
1849
|
var deserializeAws_restJson1DescribeAddonVersionsCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2192
|
-
var parsedOutput, _a,
|
|
1850
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
2193
1851
|
var _c;
|
|
2194
1852
|
return __generator(this, function (_d) {
|
|
2195
1853
|
switch (_d.label) {
|
|
@@ -2218,14 +1876,14 @@ var deserializeAws_restJson1DescribeAddonVersionsCommandError = function (output
|
|
|
2218
1876
|
case 7: throw _d.sent();
|
|
2219
1877
|
case 8:
|
|
2220
1878
|
parsedBody = parsedOutput.body;
|
|
2221
|
-
|
|
2222
|
-
|
|
2223
|
-
|
|
2224
|
-
|
|
2225
|
-
|
|
2226
|
-
$metadata: $metadata,
|
|
1879
|
+
throwDefaultError({
|
|
1880
|
+
output: output,
|
|
1881
|
+
parsedBody: parsedBody,
|
|
1882
|
+
exceptionCtor: __BaseException,
|
|
1883
|
+
errorCode: errorCode,
|
|
2227
1884
|
});
|
|
2228
|
-
|
|
1885
|
+
_d.label = 9;
|
|
1886
|
+
case 9: return [2];
|
|
2229
1887
|
}
|
|
2230
1888
|
});
|
|
2231
1889
|
}); };
|
|
@@ -2237,24 +1895,23 @@ export var deserializeAws_restJson1DescribeClusterCommand = function (output, co
|
|
|
2237
1895
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2238
1896
|
return [2, deserializeAws_restJson1DescribeClusterCommandError(output, context)];
|
|
2239
1897
|
}
|
|
2240
|
-
contents = {
|
|
1898
|
+
contents = map({
|
|
2241
1899
|
$metadata: deserializeMetadata(output),
|
|
2242
|
-
|
|
2243
|
-
};
|
|
1900
|
+
});
|
|
2244
1901
|
_a = __expectNonNull;
|
|
2245
1902
|
_b = __expectObject;
|
|
2246
1903
|
return [4, parseBody(output.body, context)];
|
|
2247
1904
|
case 1:
|
|
2248
1905
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
2249
|
-
if (data.cluster
|
|
1906
|
+
if (data.cluster != null) {
|
|
2250
1907
|
contents.cluster = deserializeAws_restJson1Cluster(data.cluster, context);
|
|
2251
1908
|
}
|
|
2252
|
-
return [2,
|
|
1909
|
+
return [2, contents];
|
|
2253
1910
|
}
|
|
2254
1911
|
});
|
|
2255
1912
|
}); };
|
|
2256
1913
|
var deserializeAws_restJson1DescribeClusterCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2257
|
-
var parsedOutput, _a,
|
|
1914
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
2258
1915
|
var _c;
|
|
2259
1916
|
return __generator(this, function (_d) {
|
|
2260
1917
|
switch (_d.label) {
|
|
@@ -2287,14 +1944,14 @@ var deserializeAws_restJson1DescribeClusterCommandError = function (output, cont
|
|
|
2287
1944
|
case 9: throw _d.sent();
|
|
2288
1945
|
case 10:
|
|
2289
1946
|
parsedBody = parsedOutput.body;
|
|
2290
|
-
|
|
2291
|
-
|
|
2292
|
-
|
|
2293
|
-
|
|
2294
|
-
|
|
2295
|
-
$metadata: $metadata,
|
|
1947
|
+
throwDefaultError({
|
|
1948
|
+
output: output,
|
|
1949
|
+
parsedBody: parsedBody,
|
|
1950
|
+
exceptionCtor: __BaseException,
|
|
1951
|
+
errorCode: errorCode,
|
|
2296
1952
|
});
|
|
2297
|
-
|
|
1953
|
+
_d.label = 11;
|
|
1954
|
+
case 11: return [2];
|
|
2298
1955
|
}
|
|
2299
1956
|
});
|
|
2300
1957
|
}); };
|
|
@@ -2306,24 +1963,23 @@ export var deserializeAws_restJson1DescribeFargateProfileCommand = function (out
|
|
|
2306
1963
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2307
1964
|
return [2, deserializeAws_restJson1DescribeFargateProfileCommandError(output, context)];
|
|
2308
1965
|
}
|
|
2309
|
-
contents = {
|
|
1966
|
+
contents = map({
|
|
2310
1967
|
$metadata: deserializeMetadata(output),
|
|
2311
|
-
|
|
2312
|
-
};
|
|
1968
|
+
});
|
|
2313
1969
|
_a = __expectNonNull;
|
|
2314
1970
|
_b = __expectObject;
|
|
2315
1971
|
return [4, parseBody(output.body, context)];
|
|
2316
1972
|
case 1:
|
|
2317
1973
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
2318
|
-
if (data.fargateProfile
|
|
1974
|
+
if (data.fargateProfile != null) {
|
|
2319
1975
|
contents.fargateProfile = deserializeAws_restJson1FargateProfile(data.fargateProfile, context);
|
|
2320
1976
|
}
|
|
2321
|
-
return [2,
|
|
1977
|
+
return [2, contents];
|
|
2322
1978
|
}
|
|
2323
1979
|
});
|
|
2324
1980
|
}); };
|
|
2325
1981
|
var deserializeAws_restJson1DescribeFargateProfileCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2326
|
-
var parsedOutput, _a,
|
|
1982
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
2327
1983
|
var _c;
|
|
2328
1984
|
return __generator(this, function (_d) {
|
|
2329
1985
|
switch (_d.label) {
|
|
@@ -2356,14 +2012,14 @@ var deserializeAws_restJson1DescribeFargateProfileCommandError = function (outpu
|
|
|
2356
2012
|
case 9: throw _d.sent();
|
|
2357
2013
|
case 10:
|
|
2358
2014
|
parsedBody = parsedOutput.body;
|
|
2359
|
-
|
|
2360
|
-
|
|
2361
|
-
|
|
2362
|
-
|
|
2363
|
-
|
|
2364
|
-
$metadata: $metadata,
|
|
2015
|
+
throwDefaultError({
|
|
2016
|
+
output: output,
|
|
2017
|
+
parsedBody: parsedBody,
|
|
2018
|
+
exceptionCtor: __BaseException,
|
|
2019
|
+
errorCode: errorCode,
|
|
2365
2020
|
});
|
|
2366
|
-
|
|
2021
|
+
_d.label = 11;
|
|
2022
|
+
case 11: return [2];
|
|
2367
2023
|
}
|
|
2368
2024
|
});
|
|
2369
2025
|
}); };
|
|
@@ -2375,24 +2031,23 @@ export var deserializeAws_restJson1DescribeIdentityProviderConfigCommand = funct
|
|
|
2375
2031
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2376
2032
|
return [2, deserializeAws_restJson1DescribeIdentityProviderConfigCommandError(output, context)];
|
|
2377
2033
|
}
|
|
2378
|
-
contents = {
|
|
2034
|
+
contents = map({
|
|
2379
2035
|
$metadata: deserializeMetadata(output),
|
|
2380
|
-
|
|
2381
|
-
};
|
|
2036
|
+
});
|
|
2382
2037
|
_a = __expectNonNull;
|
|
2383
2038
|
_b = __expectObject;
|
|
2384
2039
|
return [4, parseBody(output.body, context)];
|
|
2385
2040
|
case 1:
|
|
2386
2041
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
2387
|
-
if (data.identityProviderConfig
|
|
2042
|
+
if (data.identityProviderConfig != null) {
|
|
2388
2043
|
contents.identityProviderConfig = deserializeAws_restJson1IdentityProviderConfigResponse(data.identityProviderConfig, context);
|
|
2389
2044
|
}
|
|
2390
|
-
return [2,
|
|
2045
|
+
return [2, contents];
|
|
2391
2046
|
}
|
|
2392
2047
|
});
|
|
2393
2048
|
}); };
|
|
2394
2049
|
var deserializeAws_restJson1DescribeIdentityProviderConfigCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2395
|
-
var parsedOutput, _a,
|
|
2050
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
2396
2051
|
var _c;
|
|
2397
2052
|
return __generator(this, function (_d) {
|
|
2398
2053
|
switch (_d.label) {
|
|
@@ -2429,14 +2084,14 @@ var deserializeAws_restJson1DescribeIdentityProviderConfigCommandError = functio
|
|
|
2429
2084
|
case 11: throw _d.sent();
|
|
2430
2085
|
case 12:
|
|
2431
2086
|
parsedBody = parsedOutput.body;
|
|
2432
|
-
|
|
2433
|
-
|
|
2434
|
-
|
|
2435
|
-
|
|
2436
|
-
|
|
2437
|
-
$metadata: $metadata,
|
|
2087
|
+
throwDefaultError({
|
|
2088
|
+
output: output,
|
|
2089
|
+
parsedBody: parsedBody,
|
|
2090
|
+
exceptionCtor: __BaseException,
|
|
2091
|
+
errorCode: errorCode,
|
|
2438
2092
|
});
|
|
2439
|
-
|
|
2093
|
+
_d.label = 13;
|
|
2094
|
+
case 13: return [2];
|
|
2440
2095
|
}
|
|
2441
2096
|
});
|
|
2442
2097
|
}); };
|
|
@@ -2448,24 +2103,23 @@ export var deserializeAws_restJson1DescribeNodegroupCommand = function (output,
|
|
|
2448
2103
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2449
2104
|
return [2, deserializeAws_restJson1DescribeNodegroupCommandError(output, context)];
|
|
2450
2105
|
}
|
|
2451
|
-
contents = {
|
|
2106
|
+
contents = map({
|
|
2452
2107
|
$metadata: deserializeMetadata(output),
|
|
2453
|
-
|
|
2454
|
-
};
|
|
2108
|
+
});
|
|
2455
2109
|
_a = __expectNonNull;
|
|
2456
2110
|
_b = __expectObject;
|
|
2457
2111
|
return [4, parseBody(output.body, context)];
|
|
2458
2112
|
case 1:
|
|
2459
2113
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
2460
|
-
if (data.nodegroup
|
|
2114
|
+
if (data.nodegroup != null) {
|
|
2461
2115
|
contents.nodegroup = deserializeAws_restJson1Nodegroup(data.nodegroup, context);
|
|
2462
2116
|
}
|
|
2463
|
-
return [2,
|
|
2117
|
+
return [2, contents];
|
|
2464
2118
|
}
|
|
2465
2119
|
});
|
|
2466
2120
|
}); };
|
|
2467
2121
|
var deserializeAws_restJson1DescribeNodegroupCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2468
|
-
var parsedOutput, _a,
|
|
2122
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
2469
2123
|
var _c;
|
|
2470
2124
|
return __generator(this, function (_d) {
|
|
2471
2125
|
switch (_d.label) {
|
|
@@ -2502,14 +2156,14 @@ var deserializeAws_restJson1DescribeNodegroupCommandError = function (output, co
|
|
|
2502
2156
|
case 11: throw _d.sent();
|
|
2503
2157
|
case 12:
|
|
2504
2158
|
parsedBody = parsedOutput.body;
|
|
2505
|
-
|
|
2506
|
-
|
|
2507
|
-
|
|
2508
|
-
|
|
2509
|
-
|
|
2510
|
-
$metadata: $metadata,
|
|
2159
|
+
throwDefaultError({
|
|
2160
|
+
output: output,
|
|
2161
|
+
parsedBody: parsedBody,
|
|
2162
|
+
exceptionCtor: __BaseException,
|
|
2163
|
+
errorCode: errorCode,
|
|
2511
2164
|
});
|
|
2512
|
-
|
|
2165
|
+
_d.label = 13;
|
|
2166
|
+
case 13: return [2];
|
|
2513
2167
|
}
|
|
2514
2168
|
});
|
|
2515
2169
|
}); };
|
|
@@ -2521,24 +2175,23 @@ export var deserializeAws_restJson1DescribeUpdateCommand = function (output, con
|
|
|
2521
2175
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2522
2176
|
return [2, deserializeAws_restJson1DescribeUpdateCommandError(output, context)];
|
|
2523
2177
|
}
|
|
2524
|
-
contents = {
|
|
2178
|
+
contents = map({
|
|
2525
2179
|
$metadata: deserializeMetadata(output),
|
|
2526
|
-
|
|
2527
|
-
};
|
|
2180
|
+
});
|
|
2528
2181
|
_a = __expectNonNull;
|
|
2529
2182
|
_b = __expectObject;
|
|
2530
2183
|
return [4, parseBody(output.body, context)];
|
|
2531
2184
|
case 1:
|
|
2532
2185
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
2533
|
-
if (data.update
|
|
2186
|
+
if (data.update != null) {
|
|
2534
2187
|
contents.update = deserializeAws_restJson1Update(data.update, context);
|
|
2535
2188
|
}
|
|
2536
|
-
return [2,
|
|
2189
|
+
return [2, contents];
|
|
2537
2190
|
}
|
|
2538
2191
|
});
|
|
2539
2192
|
}); };
|
|
2540
2193
|
var deserializeAws_restJson1DescribeUpdateCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2541
|
-
var parsedOutput, _a,
|
|
2194
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
2542
2195
|
var _c;
|
|
2543
2196
|
return __generator(this, function (_d) {
|
|
2544
2197
|
switch (_d.label) {
|
|
@@ -2571,14 +2224,14 @@ var deserializeAws_restJson1DescribeUpdateCommandError = function (output, conte
|
|
|
2571
2224
|
case 9: throw _d.sent();
|
|
2572
2225
|
case 10:
|
|
2573
2226
|
parsedBody = parsedOutput.body;
|
|
2574
|
-
|
|
2575
|
-
|
|
2576
|
-
|
|
2577
|
-
|
|
2578
|
-
|
|
2579
|
-
$metadata: $metadata,
|
|
2227
|
+
throwDefaultError({
|
|
2228
|
+
output: output,
|
|
2229
|
+
parsedBody: parsedBody,
|
|
2230
|
+
exceptionCtor: __BaseException,
|
|
2231
|
+
errorCode: errorCode,
|
|
2580
2232
|
});
|
|
2581
|
-
|
|
2233
|
+
_d.label = 11;
|
|
2234
|
+
case 11: return [2];
|
|
2582
2235
|
}
|
|
2583
2236
|
});
|
|
2584
2237
|
}); };
|
|
@@ -2590,24 +2243,23 @@ export var deserializeAws_restJson1DisassociateIdentityProviderConfigCommand = f
|
|
|
2590
2243
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2591
2244
|
return [2, deserializeAws_restJson1DisassociateIdentityProviderConfigCommandError(output, context)];
|
|
2592
2245
|
}
|
|
2593
|
-
contents = {
|
|
2246
|
+
contents = map({
|
|
2594
2247
|
$metadata: deserializeMetadata(output),
|
|
2595
|
-
|
|
2596
|
-
};
|
|
2248
|
+
});
|
|
2597
2249
|
_a = __expectNonNull;
|
|
2598
2250
|
_b = __expectObject;
|
|
2599
2251
|
return [4, parseBody(output.body, context)];
|
|
2600
2252
|
case 1:
|
|
2601
2253
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
2602
|
-
if (data.update
|
|
2254
|
+
if (data.update != null) {
|
|
2603
2255
|
contents.update = deserializeAws_restJson1Update(data.update, context);
|
|
2604
2256
|
}
|
|
2605
|
-
return [2,
|
|
2257
|
+
return [2, contents];
|
|
2606
2258
|
}
|
|
2607
2259
|
});
|
|
2608
2260
|
}); };
|
|
2609
2261
|
var deserializeAws_restJson1DisassociateIdentityProviderConfigCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2610
|
-
var parsedOutput, _a,
|
|
2262
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
2611
2263
|
var _c;
|
|
2612
2264
|
return __generator(this, function (_d) {
|
|
2613
2265
|
switch (_d.label) {
|
|
@@ -2648,14 +2300,14 @@ var deserializeAws_restJson1DisassociateIdentityProviderConfigCommandError = fun
|
|
|
2648
2300
|
case 13: throw _d.sent();
|
|
2649
2301
|
case 14:
|
|
2650
2302
|
parsedBody = parsedOutput.body;
|
|
2651
|
-
|
|
2652
|
-
|
|
2653
|
-
|
|
2654
|
-
|
|
2655
|
-
|
|
2656
|
-
$metadata: $metadata,
|
|
2303
|
+
throwDefaultError({
|
|
2304
|
+
output: output,
|
|
2305
|
+
parsedBody: parsedBody,
|
|
2306
|
+
exceptionCtor: __BaseException,
|
|
2307
|
+
errorCode: errorCode,
|
|
2657
2308
|
});
|
|
2658
|
-
|
|
2309
|
+
_d.label = 15;
|
|
2310
|
+
case 15: return [2];
|
|
2659
2311
|
}
|
|
2660
2312
|
});
|
|
2661
2313
|
}); };
|
|
@@ -2667,28 +2319,26 @@ export var deserializeAws_restJson1ListAddonsCommand = function (output, context
|
|
|
2667
2319
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2668
2320
|
return [2, deserializeAws_restJson1ListAddonsCommandError(output, context)];
|
|
2669
2321
|
}
|
|
2670
|
-
contents = {
|
|
2322
|
+
contents = map({
|
|
2671
2323
|
$metadata: deserializeMetadata(output),
|
|
2672
|
-
|
|
2673
|
-
nextToken: undefined,
|
|
2674
|
-
};
|
|
2324
|
+
});
|
|
2675
2325
|
_a = __expectNonNull;
|
|
2676
2326
|
_b = __expectObject;
|
|
2677
2327
|
return [4, parseBody(output.body, context)];
|
|
2678
2328
|
case 1:
|
|
2679
2329
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
2680
|
-
if (data.addons
|
|
2330
|
+
if (data.addons != null) {
|
|
2681
2331
|
contents.addons = deserializeAws_restJson1StringList(data.addons, context);
|
|
2682
2332
|
}
|
|
2683
|
-
if (data.nextToken
|
|
2333
|
+
if (data.nextToken != null) {
|
|
2684
2334
|
contents.nextToken = __expectString(data.nextToken);
|
|
2685
2335
|
}
|
|
2686
|
-
return [2,
|
|
2336
|
+
return [2, contents];
|
|
2687
2337
|
}
|
|
2688
2338
|
});
|
|
2689
2339
|
}); };
|
|
2690
2340
|
var deserializeAws_restJson1ListAddonsCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2691
|
-
var parsedOutput, _a,
|
|
2341
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
2692
2342
|
var _c;
|
|
2693
2343
|
return __generator(this, function (_d) {
|
|
2694
2344
|
switch (_d.label) {
|
|
@@ -2725,14 +2375,14 @@ var deserializeAws_restJson1ListAddonsCommandError = function (output, context)
|
|
|
2725
2375
|
case 11: throw _d.sent();
|
|
2726
2376
|
case 12:
|
|
2727
2377
|
parsedBody = parsedOutput.body;
|
|
2728
|
-
|
|
2729
|
-
|
|
2730
|
-
|
|
2731
|
-
|
|
2732
|
-
|
|
2733
|
-
$metadata: $metadata,
|
|
2378
|
+
throwDefaultError({
|
|
2379
|
+
output: output,
|
|
2380
|
+
parsedBody: parsedBody,
|
|
2381
|
+
exceptionCtor: __BaseException,
|
|
2382
|
+
errorCode: errorCode,
|
|
2734
2383
|
});
|
|
2735
|
-
|
|
2384
|
+
_d.label = 13;
|
|
2385
|
+
case 13: return [2];
|
|
2736
2386
|
}
|
|
2737
2387
|
});
|
|
2738
2388
|
}); };
|
|
@@ -2744,28 +2394,26 @@ export var deserializeAws_restJson1ListClustersCommand = function (output, conte
|
|
|
2744
2394
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2745
2395
|
return [2, deserializeAws_restJson1ListClustersCommandError(output, context)];
|
|
2746
2396
|
}
|
|
2747
|
-
contents = {
|
|
2397
|
+
contents = map({
|
|
2748
2398
|
$metadata: deserializeMetadata(output),
|
|
2749
|
-
|
|
2750
|
-
nextToken: undefined,
|
|
2751
|
-
};
|
|
2399
|
+
});
|
|
2752
2400
|
_a = __expectNonNull;
|
|
2753
2401
|
_b = __expectObject;
|
|
2754
2402
|
return [4, parseBody(output.body, context)];
|
|
2755
2403
|
case 1:
|
|
2756
2404
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
2757
|
-
if (data.clusters
|
|
2405
|
+
if (data.clusters != null) {
|
|
2758
2406
|
contents.clusters = deserializeAws_restJson1StringList(data.clusters, context);
|
|
2759
2407
|
}
|
|
2760
|
-
if (data.nextToken
|
|
2408
|
+
if (data.nextToken != null) {
|
|
2761
2409
|
contents.nextToken = __expectString(data.nextToken);
|
|
2762
2410
|
}
|
|
2763
|
-
return [2,
|
|
2411
|
+
return [2, contents];
|
|
2764
2412
|
}
|
|
2765
2413
|
});
|
|
2766
2414
|
}); };
|
|
2767
2415
|
var deserializeAws_restJson1ListClustersCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2768
|
-
var parsedOutput, _a,
|
|
2416
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
2769
2417
|
var _c;
|
|
2770
2418
|
return __generator(this, function (_d) {
|
|
2771
2419
|
switch (_d.label) {
|
|
@@ -2798,14 +2446,14 @@ var deserializeAws_restJson1ListClustersCommandError = function (output, context
|
|
|
2798
2446
|
case 9: throw _d.sent();
|
|
2799
2447
|
case 10:
|
|
2800
2448
|
parsedBody = parsedOutput.body;
|
|
2801
|
-
|
|
2802
|
-
|
|
2803
|
-
|
|
2804
|
-
|
|
2805
|
-
|
|
2806
|
-
$metadata: $metadata,
|
|
2449
|
+
throwDefaultError({
|
|
2450
|
+
output: output,
|
|
2451
|
+
parsedBody: parsedBody,
|
|
2452
|
+
exceptionCtor: __BaseException,
|
|
2453
|
+
errorCode: errorCode,
|
|
2807
2454
|
});
|
|
2808
|
-
|
|
2455
|
+
_d.label = 11;
|
|
2456
|
+
case 11: return [2];
|
|
2809
2457
|
}
|
|
2810
2458
|
});
|
|
2811
2459
|
}); };
|
|
@@ -2817,28 +2465,26 @@ export var deserializeAws_restJson1ListFargateProfilesCommand = function (output
|
|
|
2817
2465
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2818
2466
|
return [2, deserializeAws_restJson1ListFargateProfilesCommandError(output, context)];
|
|
2819
2467
|
}
|
|
2820
|
-
contents = {
|
|
2468
|
+
contents = map({
|
|
2821
2469
|
$metadata: deserializeMetadata(output),
|
|
2822
|
-
|
|
2823
|
-
nextToken: undefined,
|
|
2824
|
-
};
|
|
2470
|
+
});
|
|
2825
2471
|
_a = __expectNonNull;
|
|
2826
2472
|
_b = __expectObject;
|
|
2827
2473
|
return [4, parseBody(output.body, context)];
|
|
2828
2474
|
case 1:
|
|
2829
2475
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
2830
|
-
if (data.fargateProfileNames
|
|
2476
|
+
if (data.fargateProfileNames != null) {
|
|
2831
2477
|
contents.fargateProfileNames = deserializeAws_restJson1StringList(data.fargateProfileNames, context);
|
|
2832
2478
|
}
|
|
2833
|
-
if (data.nextToken
|
|
2479
|
+
if (data.nextToken != null) {
|
|
2834
2480
|
contents.nextToken = __expectString(data.nextToken);
|
|
2835
2481
|
}
|
|
2836
|
-
return [2,
|
|
2482
|
+
return [2, contents];
|
|
2837
2483
|
}
|
|
2838
2484
|
});
|
|
2839
2485
|
}); };
|
|
2840
2486
|
var deserializeAws_restJson1ListFargateProfilesCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2841
|
-
var parsedOutput, _a,
|
|
2487
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
2842
2488
|
var _c;
|
|
2843
2489
|
return __generator(this, function (_d) {
|
|
2844
2490
|
switch (_d.label) {
|
|
@@ -2871,14 +2517,14 @@ var deserializeAws_restJson1ListFargateProfilesCommandError = function (output,
|
|
|
2871
2517
|
case 9: throw _d.sent();
|
|
2872
2518
|
case 10:
|
|
2873
2519
|
parsedBody = parsedOutput.body;
|
|
2874
|
-
|
|
2875
|
-
|
|
2876
|
-
|
|
2877
|
-
|
|
2878
|
-
|
|
2879
|
-
$metadata: $metadata,
|
|
2520
|
+
throwDefaultError({
|
|
2521
|
+
output: output,
|
|
2522
|
+
parsedBody: parsedBody,
|
|
2523
|
+
exceptionCtor: __BaseException,
|
|
2524
|
+
errorCode: errorCode,
|
|
2880
2525
|
});
|
|
2881
|
-
|
|
2526
|
+
_d.label = 11;
|
|
2527
|
+
case 11: return [2];
|
|
2882
2528
|
}
|
|
2883
2529
|
});
|
|
2884
2530
|
}); };
|
|
@@ -2890,28 +2536,26 @@ export var deserializeAws_restJson1ListIdentityProviderConfigsCommand = function
|
|
|
2890
2536
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2891
2537
|
return [2, deserializeAws_restJson1ListIdentityProviderConfigsCommandError(output, context)];
|
|
2892
2538
|
}
|
|
2893
|
-
contents = {
|
|
2539
|
+
contents = map({
|
|
2894
2540
|
$metadata: deserializeMetadata(output),
|
|
2895
|
-
|
|
2896
|
-
nextToken: undefined,
|
|
2897
|
-
};
|
|
2541
|
+
});
|
|
2898
2542
|
_a = __expectNonNull;
|
|
2899
2543
|
_b = __expectObject;
|
|
2900
2544
|
return [4, parseBody(output.body, context)];
|
|
2901
2545
|
case 1:
|
|
2902
2546
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
2903
|
-
if (data.identityProviderConfigs
|
|
2547
|
+
if (data.identityProviderConfigs != null) {
|
|
2904
2548
|
contents.identityProviderConfigs = deserializeAws_restJson1IdentityProviderConfigs(data.identityProviderConfigs, context);
|
|
2905
2549
|
}
|
|
2906
|
-
if (data.nextToken
|
|
2550
|
+
if (data.nextToken != null) {
|
|
2907
2551
|
contents.nextToken = __expectString(data.nextToken);
|
|
2908
2552
|
}
|
|
2909
|
-
return [2,
|
|
2553
|
+
return [2, contents];
|
|
2910
2554
|
}
|
|
2911
2555
|
});
|
|
2912
2556
|
}); };
|
|
2913
2557
|
var deserializeAws_restJson1ListIdentityProviderConfigsCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2914
|
-
var parsedOutput, _a,
|
|
2558
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
2915
2559
|
var _c;
|
|
2916
2560
|
return __generator(this, function (_d) {
|
|
2917
2561
|
switch (_d.label) {
|
|
@@ -2948,14 +2592,14 @@ var deserializeAws_restJson1ListIdentityProviderConfigsCommandError = function (
|
|
|
2948
2592
|
case 11: throw _d.sent();
|
|
2949
2593
|
case 12:
|
|
2950
2594
|
parsedBody = parsedOutput.body;
|
|
2951
|
-
|
|
2952
|
-
|
|
2953
|
-
|
|
2954
|
-
|
|
2955
|
-
|
|
2956
|
-
$metadata: $metadata,
|
|
2595
|
+
throwDefaultError({
|
|
2596
|
+
output: output,
|
|
2597
|
+
parsedBody: parsedBody,
|
|
2598
|
+
exceptionCtor: __BaseException,
|
|
2599
|
+
errorCode: errorCode,
|
|
2957
2600
|
});
|
|
2958
|
-
|
|
2601
|
+
_d.label = 13;
|
|
2602
|
+
case 13: return [2];
|
|
2959
2603
|
}
|
|
2960
2604
|
});
|
|
2961
2605
|
}); };
|
|
@@ -2967,28 +2611,26 @@ export var deserializeAws_restJson1ListNodegroupsCommand = function (output, con
|
|
|
2967
2611
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2968
2612
|
return [2, deserializeAws_restJson1ListNodegroupsCommandError(output, context)];
|
|
2969
2613
|
}
|
|
2970
|
-
contents = {
|
|
2614
|
+
contents = map({
|
|
2971
2615
|
$metadata: deserializeMetadata(output),
|
|
2972
|
-
|
|
2973
|
-
nodegroups: undefined,
|
|
2974
|
-
};
|
|
2616
|
+
});
|
|
2975
2617
|
_a = __expectNonNull;
|
|
2976
2618
|
_b = __expectObject;
|
|
2977
2619
|
return [4, parseBody(output.body, context)];
|
|
2978
2620
|
case 1:
|
|
2979
2621
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
2980
|
-
if (data.nextToken
|
|
2622
|
+
if (data.nextToken != null) {
|
|
2981
2623
|
contents.nextToken = __expectString(data.nextToken);
|
|
2982
2624
|
}
|
|
2983
|
-
if (data.nodegroups
|
|
2625
|
+
if (data.nodegroups != null) {
|
|
2984
2626
|
contents.nodegroups = deserializeAws_restJson1StringList(data.nodegroups, context);
|
|
2985
2627
|
}
|
|
2986
|
-
return [2,
|
|
2628
|
+
return [2, contents];
|
|
2987
2629
|
}
|
|
2988
2630
|
});
|
|
2989
2631
|
}); };
|
|
2990
2632
|
var deserializeAws_restJson1ListNodegroupsCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2991
|
-
var parsedOutput, _a,
|
|
2633
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
2992
2634
|
var _c;
|
|
2993
2635
|
return __generator(this, function (_d) {
|
|
2994
2636
|
switch (_d.label) {
|
|
@@ -3025,14 +2667,14 @@ var deserializeAws_restJson1ListNodegroupsCommandError = function (output, conte
|
|
|
3025
2667
|
case 11: throw _d.sent();
|
|
3026
2668
|
case 12:
|
|
3027
2669
|
parsedBody = parsedOutput.body;
|
|
3028
|
-
|
|
3029
|
-
|
|
3030
|
-
|
|
3031
|
-
|
|
3032
|
-
|
|
3033
|
-
$metadata: $metadata,
|
|
2670
|
+
throwDefaultError({
|
|
2671
|
+
output: output,
|
|
2672
|
+
parsedBody: parsedBody,
|
|
2673
|
+
exceptionCtor: __BaseException,
|
|
2674
|
+
errorCode: errorCode,
|
|
3034
2675
|
});
|
|
3035
|
-
|
|
2676
|
+
_d.label = 13;
|
|
2677
|
+
case 13: return [2];
|
|
3036
2678
|
}
|
|
3037
2679
|
});
|
|
3038
2680
|
}); };
|
|
@@ -3044,24 +2686,23 @@ export var deserializeAws_restJson1ListTagsForResourceCommand = function (output
|
|
|
3044
2686
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3045
2687
|
return [2, deserializeAws_restJson1ListTagsForResourceCommandError(output, context)];
|
|
3046
2688
|
}
|
|
3047
|
-
contents = {
|
|
2689
|
+
contents = map({
|
|
3048
2690
|
$metadata: deserializeMetadata(output),
|
|
3049
|
-
|
|
3050
|
-
};
|
|
2691
|
+
});
|
|
3051
2692
|
_a = __expectNonNull;
|
|
3052
2693
|
_b = __expectObject;
|
|
3053
2694
|
return [4, parseBody(output.body, context)];
|
|
3054
2695
|
case 1:
|
|
3055
2696
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
3056
|
-
if (data.tags
|
|
2697
|
+
if (data.tags != null) {
|
|
3057
2698
|
contents.tags = deserializeAws_restJson1TagMap(data.tags, context);
|
|
3058
2699
|
}
|
|
3059
|
-
return [2,
|
|
2700
|
+
return [2, contents];
|
|
3060
2701
|
}
|
|
3061
2702
|
});
|
|
3062
2703
|
}); };
|
|
3063
2704
|
var deserializeAws_restJson1ListTagsForResourceCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
3064
|
-
var parsedOutput, _a,
|
|
2705
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
3065
2706
|
var _c;
|
|
3066
2707
|
return __generator(this, function (_d) {
|
|
3067
2708
|
switch (_d.label) {
|
|
@@ -3086,14 +2727,14 @@ var deserializeAws_restJson1ListTagsForResourceCommandError = function (output,
|
|
|
3086
2727
|
case 5: throw _d.sent();
|
|
3087
2728
|
case 6:
|
|
3088
2729
|
parsedBody = parsedOutput.body;
|
|
3089
|
-
|
|
3090
|
-
|
|
3091
|
-
|
|
3092
|
-
|
|
3093
|
-
|
|
3094
|
-
$metadata: $metadata,
|
|
2730
|
+
throwDefaultError({
|
|
2731
|
+
output: output,
|
|
2732
|
+
parsedBody: parsedBody,
|
|
2733
|
+
exceptionCtor: __BaseException,
|
|
2734
|
+
errorCode: errorCode,
|
|
3095
2735
|
});
|
|
3096
|
-
|
|
2736
|
+
_d.label = 7;
|
|
2737
|
+
case 7: return [2];
|
|
3097
2738
|
}
|
|
3098
2739
|
});
|
|
3099
2740
|
}); };
|
|
@@ -3105,28 +2746,26 @@ export var deserializeAws_restJson1ListUpdatesCommand = function (output, contex
|
|
|
3105
2746
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3106
2747
|
return [2, deserializeAws_restJson1ListUpdatesCommandError(output, context)];
|
|
3107
2748
|
}
|
|
3108
|
-
contents = {
|
|
2749
|
+
contents = map({
|
|
3109
2750
|
$metadata: deserializeMetadata(output),
|
|
3110
|
-
|
|
3111
|
-
updateIds: undefined,
|
|
3112
|
-
};
|
|
2751
|
+
});
|
|
3113
2752
|
_a = __expectNonNull;
|
|
3114
2753
|
_b = __expectObject;
|
|
3115
2754
|
return [4, parseBody(output.body, context)];
|
|
3116
2755
|
case 1:
|
|
3117
2756
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
3118
|
-
if (data.nextToken
|
|
2757
|
+
if (data.nextToken != null) {
|
|
3119
2758
|
contents.nextToken = __expectString(data.nextToken);
|
|
3120
2759
|
}
|
|
3121
|
-
if (data.updateIds
|
|
2760
|
+
if (data.updateIds != null) {
|
|
3122
2761
|
contents.updateIds = deserializeAws_restJson1StringList(data.updateIds, context);
|
|
3123
2762
|
}
|
|
3124
|
-
return [2,
|
|
2763
|
+
return [2, contents];
|
|
3125
2764
|
}
|
|
3126
2765
|
});
|
|
3127
2766
|
}); };
|
|
3128
2767
|
var deserializeAws_restJson1ListUpdatesCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
3129
|
-
var parsedOutput, _a,
|
|
2768
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
3130
2769
|
var _c;
|
|
3131
2770
|
return __generator(this, function (_d) {
|
|
3132
2771
|
switch (_d.label) {
|
|
@@ -3159,14 +2798,14 @@ var deserializeAws_restJson1ListUpdatesCommandError = function (output, context)
|
|
|
3159
2798
|
case 9: throw _d.sent();
|
|
3160
2799
|
case 10:
|
|
3161
2800
|
parsedBody = parsedOutput.body;
|
|
3162
|
-
|
|
3163
|
-
|
|
3164
|
-
|
|
3165
|
-
|
|
3166
|
-
|
|
3167
|
-
$metadata: $metadata,
|
|
2801
|
+
throwDefaultError({
|
|
2802
|
+
output: output,
|
|
2803
|
+
parsedBody: parsedBody,
|
|
2804
|
+
exceptionCtor: __BaseException,
|
|
2805
|
+
errorCode: errorCode,
|
|
3168
2806
|
});
|
|
3169
|
-
|
|
2807
|
+
_d.label = 11;
|
|
2808
|
+
case 11: return [2];
|
|
3170
2809
|
}
|
|
3171
2810
|
});
|
|
3172
2811
|
}); };
|
|
@@ -3178,24 +2817,23 @@ export var deserializeAws_restJson1RegisterClusterCommand = function (output, co
|
|
|
3178
2817
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3179
2818
|
return [2, deserializeAws_restJson1RegisterClusterCommandError(output, context)];
|
|
3180
2819
|
}
|
|
3181
|
-
contents = {
|
|
2820
|
+
contents = map({
|
|
3182
2821
|
$metadata: deserializeMetadata(output),
|
|
3183
|
-
|
|
3184
|
-
};
|
|
2822
|
+
});
|
|
3185
2823
|
_a = __expectNonNull;
|
|
3186
2824
|
_b = __expectObject;
|
|
3187
2825
|
return [4, parseBody(output.body, context)];
|
|
3188
2826
|
case 1:
|
|
3189
2827
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
3190
|
-
if (data.cluster
|
|
2828
|
+
if (data.cluster != null) {
|
|
3191
2829
|
contents.cluster = deserializeAws_restJson1Cluster(data.cluster, context);
|
|
3192
2830
|
}
|
|
3193
|
-
return [2,
|
|
2831
|
+
return [2, contents];
|
|
3194
2832
|
}
|
|
3195
2833
|
});
|
|
3196
2834
|
}); };
|
|
3197
2835
|
var deserializeAws_restJson1RegisterClusterCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
3198
|
-
var parsedOutput, _a,
|
|
2836
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
3199
2837
|
var _c;
|
|
3200
2838
|
return __generator(this, function (_d) {
|
|
3201
2839
|
switch (_d.label) {
|
|
@@ -3244,14 +2882,14 @@ var deserializeAws_restJson1RegisterClusterCommandError = function (output, cont
|
|
|
3244
2882
|
case 17: throw _d.sent();
|
|
3245
2883
|
case 18:
|
|
3246
2884
|
parsedBody = parsedOutput.body;
|
|
3247
|
-
|
|
3248
|
-
|
|
3249
|
-
|
|
3250
|
-
|
|
3251
|
-
|
|
3252
|
-
$metadata: $metadata,
|
|
2885
|
+
throwDefaultError({
|
|
2886
|
+
output: output,
|
|
2887
|
+
parsedBody: parsedBody,
|
|
2888
|
+
exceptionCtor: __BaseException,
|
|
2889
|
+
errorCode: errorCode,
|
|
3253
2890
|
});
|
|
3254
|
-
|
|
2891
|
+
_d.label = 19;
|
|
2892
|
+
case 19: return [2];
|
|
3255
2893
|
}
|
|
3256
2894
|
});
|
|
3257
2895
|
}); };
|
|
@@ -3263,18 +2901,18 @@ export var deserializeAws_restJson1TagResourceCommand = function (output, contex
|
|
|
3263
2901
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3264
2902
|
return [2, deserializeAws_restJson1TagResourceCommandError(output, context)];
|
|
3265
2903
|
}
|
|
3266
|
-
contents = {
|
|
2904
|
+
contents = map({
|
|
3267
2905
|
$metadata: deserializeMetadata(output),
|
|
3268
|
-
};
|
|
2906
|
+
});
|
|
3269
2907
|
return [4, collectBody(output.body, context)];
|
|
3270
2908
|
case 1:
|
|
3271
2909
|
_a.sent();
|
|
3272
|
-
return [2,
|
|
2910
|
+
return [2, contents];
|
|
3273
2911
|
}
|
|
3274
2912
|
});
|
|
3275
2913
|
}); };
|
|
3276
2914
|
var deserializeAws_restJson1TagResourceCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
3277
|
-
var parsedOutput, _a,
|
|
2915
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
3278
2916
|
var _c;
|
|
3279
2917
|
return __generator(this, function (_d) {
|
|
3280
2918
|
switch (_d.label) {
|
|
@@ -3299,14 +2937,14 @@ var deserializeAws_restJson1TagResourceCommandError = function (output, context)
|
|
|
3299
2937
|
case 5: throw _d.sent();
|
|
3300
2938
|
case 6:
|
|
3301
2939
|
parsedBody = parsedOutput.body;
|
|
3302
|
-
|
|
3303
|
-
|
|
3304
|
-
|
|
3305
|
-
|
|
3306
|
-
|
|
3307
|
-
$metadata: $metadata,
|
|
2940
|
+
throwDefaultError({
|
|
2941
|
+
output: output,
|
|
2942
|
+
parsedBody: parsedBody,
|
|
2943
|
+
exceptionCtor: __BaseException,
|
|
2944
|
+
errorCode: errorCode,
|
|
3308
2945
|
});
|
|
3309
|
-
|
|
2946
|
+
_d.label = 7;
|
|
2947
|
+
case 7: return [2];
|
|
3310
2948
|
}
|
|
3311
2949
|
});
|
|
3312
2950
|
}); };
|
|
@@ -3318,18 +2956,18 @@ export var deserializeAws_restJson1UntagResourceCommand = function (output, cont
|
|
|
3318
2956
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3319
2957
|
return [2, deserializeAws_restJson1UntagResourceCommandError(output, context)];
|
|
3320
2958
|
}
|
|
3321
|
-
contents = {
|
|
2959
|
+
contents = map({
|
|
3322
2960
|
$metadata: deserializeMetadata(output),
|
|
3323
|
-
};
|
|
2961
|
+
});
|
|
3324
2962
|
return [4, collectBody(output.body, context)];
|
|
3325
2963
|
case 1:
|
|
3326
2964
|
_a.sent();
|
|
3327
|
-
return [2,
|
|
2965
|
+
return [2, contents];
|
|
3328
2966
|
}
|
|
3329
2967
|
});
|
|
3330
2968
|
}); };
|
|
3331
2969
|
var deserializeAws_restJson1UntagResourceCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
3332
|
-
var parsedOutput, _a,
|
|
2970
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
3333
2971
|
var _c;
|
|
3334
2972
|
return __generator(this, function (_d) {
|
|
3335
2973
|
switch (_d.label) {
|
|
@@ -3354,14 +2992,14 @@ var deserializeAws_restJson1UntagResourceCommandError = function (output, contex
|
|
|
3354
2992
|
case 5: throw _d.sent();
|
|
3355
2993
|
case 6:
|
|
3356
2994
|
parsedBody = parsedOutput.body;
|
|
3357
|
-
|
|
3358
|
-
|
|
3359
|
-
|
|
3360
|
-
|
|
3361
|
-
|
|
3362
|
-
$metadata: $metadata,
|
|
2995
|
+
throwDefaultError({
|
|
2996
|
+
output: output,
|
|
2997
|
+
parsedBody: parsedBody,
|
|
2998
|
+
exceptionCtor: __BaseException,
|
|
2999
|
+
errorCode: errorCode,
|
|
3363
3000
|
});
|
|
3364
|
-
|
|
3001
|
+
_d.label = 7;
|
|
3002
|
+
case 7: return [2];
|
|
3365
3003
|
}
|
|
3366
3004
|
});
|
|
3367
3005
|
}); };
|
|
@@ -3373,24 +3011,23 @@ export var deserializeAws_restJson1UpdateAddonCommand = function (output, contex
|
|
|
3373
3011
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3374
3012
|
return [2, deserializeAws_restJson1UpdateAddonCommandError(output, context)];
|
|
3375
3013
|
}
|
|
3376
|
-
contents = {
|
|
3014
|
+
contents = map({
|
|
3377
3015
|
$metadata: deserializeMetadata(output),
|
|
3378
|
-
|
|
3379
|
-
};
|
|
3016
|
+
});
|
|
3380
3017
|
_a = __expectNonNull;
|
|
3381
3018
|
_b = __expectObject;
|
|
3382
3019
|
return [4, parseBody(output.body, context)];
|
|
3383
3020
|
case 1:
|
|
3384
3021
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
3385
|
-
if (data.update
|
|
3022
|
+
if (data.update != null) {
|
|
3386
3023
|
contents.update = deserializeAws_restJson1Update(data.update, context);
|
|
3387
3024
|
}
|
|
3388
|
-
return [2,
|
|
3025
|
+
return [2, contents];
|
|
3389
3026
|
}
|
|
3390
3027
|
});
|
|
3391
3028
|
}); };
|
|
3392
3029
|
var deserializeAws_restJson1UpdateAddonCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
3393
|
-
var parsedOutput, _a,
|
|
3030
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
3394
3031
|
var _c;
|
|
3395
3032
|
return __generator(this, function (_d) {
|
|
3396
3033
|
switch (_d.label) {
|
|
@@ -3431,14 +3068,14 @@ var deserializeAws_restJson1UpdateAddonCommandError = function (output, context)
|
|
|
3431
3068
|
case 13: throw _d.sent();
|
|
3432
3069
|
case 14:
|
|
3433
3070
|
parsedBody = parsedOutput.body;
|
|
3434
|
-
|
|
3435
|
-
|
|
3436
|
-
|
|
3437
|
-
|
|
3438
|
-
|
|
3439
|
-
$metadata: $metadata,
|
|
3071
|
+
throwDefaultError({
|
|
3072
|
+
output: output,
|
|
3073
|
+
parsedBody: parsedBody,
|
|
3074
|
+
exceptionCtor: __BaseException,
|
|
3075
|
+
errorCode: errorCode,
|
|
3440
3076
|
});
|
|
3441
|
-
|
|
3077
|
+
_d.label = 15;
|
|
3078
|
+
case 15: return [2];
|
|
3442
3079
|
}
|
|
3443
3080
|
});
|
|
3444
3081
|
}); };
|
|
@@ -3450,24 +3087,23 @@ export var deserializeAws_restJson1UpdateClusterConfigCommand = function (output
|
|
|
3450
3087
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3451
3088
|
return [2, deserializeAws_restJson1UpdateClusterConfigCommandError(output, context)];
|
|
3452
3089
|
}
|
|
3453
|
-
contents = {
|
|
3090
|
+
contents = map({
|
|
3454
3091
|
$metadata: deserializeMetadata(output),
|
|
3455
|
-
|
|
3456
|
-
};
|
|
3092
|
+
});
|
|
3457
3093
|
_a = __expectNonNull;
|
|
3458
3094
|
_b = __expectObject;
|
|
3459
3095
|
return [4, parseBody(output.body, context)];
|
|
3460
3096
|
case 1:
|
|
3461
3097
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
3462
|
-
if (data.update
|
|
3098
|
+
if (data.update != null) {
|
|
3463
3099
|
contents.update = deserializeAws_restJson1Update(data.update, context);
|
|
3464
3100
|
}
|
|
3465
|
-
return [2,
|
|
3101
|
+
return [2, contents];
|
|
3466
3102
|
}
|
|
3467
3103
|
});
|
|
3468
3104
|
}); };
|
|
3469
3105
|
var deserializeAws_restJson1UpdateClusterConfigCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
3470
|
-
var parsedOutput, _a,
|
|
3106
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
3471
3107
|
var _c;
|
|
3472
3108
|
return __generator(this, function (_d) {
|
|
3473
3109
|
switch (_d.label) {
|
|
@@ -3508,14 +3144,14 @@ var deserializeAws_restJson1UpdateClusterConfigCommandError = function (output,
|
|
|
3508
3144
|
case 13: throw _d.sent();
|
|
3509
3145
|
case 14:
|
|
3510
3146
|
parsedBody = parsedOutput.body;
|
|
3511
|
-
|
|
3512
|
-
|
|
3513
|
-
|
|
3514
|
-
|
|
3515
|
-
|
|
3516
|
-
$metadata: $metadata,
|
|
3147
|
+
throwDefaultError({
|
|
3148
|
+
output: output,
|
|
3149
|
+
parsedBody: parsedBody,
|
|
3150
|
+
exceptionCtor: __BaseException,
|
|
3151
|
+
errorCode: errorCode,
|
|
3517
3152
|
});
|
|
3518
|
-
|
|
3153
|
+
_d.label = 15;
|
|
3154
|
+
case 15: return [2];
|
|
3519
3155
|
}
|
|
3520
3156
|
});
|
|
3521
3157
|
}); };
|
|
@@ -3527,24 +3163,23 @@ export var deserializeAws_restJson1UpdateClusterVersionCommand = function (outpu
|
|
|
3527
3163
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3528
3164
|
return [2, deserializeAws_restJson1UpdateClusterVersionCommandError(output, context)];
|
|
3529
3165
|
}
|
|
3530
|
-
contents = {
|
|
3166
|
+
contents = map({
|
|
3531
3167
|
$metadata: deserializeMetadata(output),
|
|
3532
|
-
|
|
3533
|
-
};
|
|
3168
|
+
});
|
|
3534
3169
|
_a = __expectNonNull;
|
|
3535
3170
|
_b = __expectObject;
|
|
3536
3171
|
return [4, parseBody(output.body, context)];
|
|
3537
3172
|
case 1:
|
|
3538
3173
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
3539
|
-
if (data.update
|
|
3174
|
+
if (data.update != null) {
|
|
3540
3175
|
contents.update = deserializeAws_restJson1Update(data.update, context);
|
|
3541
3176
|
}
|
|
3542
|
-
return [2,
|
|
3177
|
+
return [2, contents];
|
|
3543
3178
|
}
|
|
3544
3179
|
});
|
|
3545
3180
|
}); };
|
|
3546
3181
|
var deserializeAws_restJson1UpdateClusterVersionCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
3547
|
-
var parsedOutput, _a,
|
|
3182
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
3548
3183
|
var _c;
|
|
3549
3184
|
return __generator(this, function (_d) {
|
|
3550
3185
|
switch (_d.label) {
|
|
@@ -3585,14 +3220,14 @@ var deserializeAws_restJson1UpdateClusterVersionCommandError = function (output,
|
|
|
3585
3220
|
case 13: throw _d.sent();
|
|
3586
3221
|
case 14:
|
|
3587
3222
|
parsedBody = parsedOutput.body;
|
|
3588
|
-
|
|
3589
|
-
|
|
3590
|
-
|
|
3591
|
-
|
|
3592
|
-
|
|
3593
|
-
$metadata: $metadata,
|
|
3223
|
+
throwDefaultError({
|
|
3224
|
+
output: output,
|
|
3225
|
+
parsedBody: parsedBody,
|
|
3226
|
+
exceptionCtor: __BaseException,
|
|
3227
|
+
errorCode: errorCode,
|
|
3594
3228
|
});
|
|
3595
|
-
|
|
3229
|
+
_d.label = 15;
|
|
3230
|
+
case 15: return [2];
|
|
3596
3231
|
}
|
|
3597
3232
|
});
|
|
3598
3233
|
}); };
|
|
@@ -3604,24 +3239,23 @@ export var deserializeAws_restJson1UpdateNodegroupConfigCommand = function (outp
|
|
|
3604
3239
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3605
3240
|
return [2, deserializeAws_restJson1UpdateNodegroupConfigCommandError(output, context)];
|
|
3606
3241
|
}
|
|
3607
|
-
contents = {
|
|
3242
|
+
contents = map({
|
|
3608
3243
|
$metadata: deserializeMetadata(output),
|
|
3609
|
-
|
|
3610
|
-
};
|
|
3244
|
+
});
|
|
3611
3245
|
_a = __expectNonNull;
|
|
3612
3246
|
_b = __expectObject;
|
|
3613
3247
|
return [4, parseBody(output.body, context)];
|
|
3614
3248
|
case 1:
|
|
3615
3249
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
3616
|
-
if (data.update
|
|
3250
|
+
if (data.update != null) {
|
|
3617
3251
|
contents.update = deserializeAws_restJson1Update(data.update, context);
|
|
3618
3252
|
}
|
|
3619
|
-
return [2,
|
|
3253
|
+
return [2, contents];
|
|
3620
3254
|
}
|
|
3621
3255
|
});
|
|
3622
3256
|
}); };
|
|
3623
3257
|
var deserializeAws_restJson1UpdateNodegroupConfigCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
3624
|
-
var parsedOutput, _a,
|
|
3258
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
3625
3259
|
var _c;
|
|
3626
3260
|
return __generator(this, function (_d) {
|
|
3627
3261
|
switch (_d.label) {
|
|
@@ -3662,14 +3296,14 @@ var deserializeAws_restJson1UpdateNodegroupConfigCommandError = function (output
|
|
|
3662
3296
|
case 13: throw _d.sent();
|
|
3663
3297
|
case 14:
|
|
3664
3298
|
parsedBody = parsedOutput.body;
|
|
3665
|
-
|
|
3666
|
-
|
|
3667
|
-
|
|
3668
|
-
|
|
3669
|
-
|
|
3670
|
-
$metadata: $metadata,
|
|
3299
|
+
throwDefaultError({
|
|
3300
|
+
output: output,
|
|
3301
|
+
parsedBody: parsedBody,
|
|
3302
|
+
exceptionCtor: __BaseException,
|
|
3303
|
+
errorCode: errorCode,
|
|
3671
3304
|
});
|
|
3672
|
-
|
|
3305
|
+
_d.label = 15;
|
|
3306
|
+
case 15: return [2];
|
|
3673
3307
|
}
|
|
3674
3308
|
});
|
|
3675
3309
|
}); };
|
|
@@ -3681,24 +3315,23 @@ export var deserializeAws_restJson1UpdateNodegroupVersionCommand = function (out
|
|
|
3681
3315
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3682
3316
|
return [2, deserializeAws_restJson1UpdateNodegroupVersionCommandError(output, context)];
|
|
3683
3317
|
}
|
|
3684
|
-
contents = {
|
|
3318
|
+
contents = map({
|
|
3685
3319
|
$metadata: deserializeMetadata(output),
|
|
3686
|
-
|
|
3687
|
-
};
|
|
3320
|
+
});
|
|
3688
3321
|
_a = __expectNonNull;
|
|
3689
3322
|
_b = __expectObject;
|
|
3690
3323
|
return [4, parseBody(output.body, context)];
|
|
3691
3324
|
case 1:
|
|
3692
3325
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
3693
|
-
if (data.update
|
|
3326
|
+
if (data.update != null) {
|
|
3694
3327
|
contents.update = deserializeAws_restJson1Update(data.update, context);
|
|
3695
3328
|
}
|
|
3696
|
-
return [2,
|
|
3329
|
+
return [2, contents];
|
|
3697
3330
|
}
|
|
3698
3331
|
});
|
|
3699
3332
|
}); };
|
|
3700
3333
|
var deserializeAws_restJson1UpdateNodegroupVersionCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
3701
|
-
var parsedOutput, _a,
|
|
3334
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
3702
3335
|
var _c;
|
|
3703
3336
|
return __generator(this, function (_d) {
|
|
3704
3337
|
switch (_d.label) {
|
|
@@ -3739,23 +3372,24 @@ var deserializeAws_restJson1UpdateNodegroupVersionCommandError = function (outpu
|
|
|
3739
3372
|
case 13: throw _d.sent();
|
|
3740
3373
|
case 14:
|
|
3741
3374
|
parsedBody = parsedOutput.body;
|
|
3742
|
-
|
|
3743
|
-
|
|
3744
|
-
|
|
3745
|
-
|
|
3746
|
-
|
|
3747
|
-
$metadata: $metadata,
|
|
3375
|
+
throwDefaultError({
|
|
3376
|
+
output: output,
|
|
3377
|
+
parsedBody: parsedBody,
|
|
3378
|
+
exceptionCtor: __BaseException,
|
|
3379
|
+
errorCode: errorCode,
|
|
3748
3380
|
});
|
|
3749
|
-
|
|
3381
|
+
_d.label = 15;
|
|
3382
|
+
case 15: return [2];
|
|
3750
3383
|
}
|
|
3751
3384
|
});
|
|
3752
3385
|
}); };
|
|
3386
|
+
var map = __map;
|
|
3753
3387
|
var deserializeAws_restJson1AccessDeniedExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
3754
3388
|
var contents, data, exception;
|
|
3755
3389
|
return __generator(this, function (_a) {
|
|
3756
|
-
contents = {};
|
|
3390
|
+
contents = map({});
|
|
3757
3391
|
data = parsedOutput.body;
|
|
3758
|
-
if (data.message
|
|
3392
|
+
if (data.message != null) {
|
|
3759
3393
|
contents.message = __expectString(data.message);
|
|
3760
3394
|
}
|
|
3761
3395
|
exception = new AccessDeniedException(__assign({ $metadata: deserializeMetadata(parsedOutput) }, contents));
|
|
@@ -3765,9 +3399,9 @@ var deserializeAws_restJson1AccessDeniedExceptionResponse = function (parsedOutp
|
|
|
3765
3399
|
var deserializeAws_restJson1BadRequestExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
3766
3400
|
var contents, data, exception;
|
|
3767
3401
|
return __generator(this, function (_a) {
|
|
3768
|
-
contents = {};
|
|
3402
|
+
contents = map({});
|
|
3769
3403
|
data = parsedOutput.body;
|
|
3770
|
-
if (data.message
|
|
3404
|
+
if (data.message != null) {
|
|
3771
3405
|
contents.message = __expectString(data.message);
|
|
3772
3406
|
}
|
|
3773
3407
|
exception = new BadRequestException(__assign({ $metadata: deserializeMetadata(parsedOutput) }, contents));
|
|
@@ -3777,18 +3411,18 @@ var deserializeAws_restJson1BadRequestExceptionResponse = function (parsedOutput
|
|
|
3777
3411
|
var deserializeAws_restJson1ClientExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
3778
3412
|
var contents, data, exception;
|
|
3779
3413
|
return __generator(this, function (_a) {
|
|
3780
|
-
contents = {};
|
|
3414
|
+
contents = map({});
|
|
3781
3415
|
data = parsedOutput.body;
|
|
3782
|
-
if (data.addonName
|
|
3416
|
+
if (data.addonName != null) {
|
|
3783
3417
|
contents.addonName = __expectString(data.addonName);
|
|
3784
3418
|
}
|
|
3785
|
-
if (data.clusterName
|
|
3419
|
+
if (data.clusterName != null) {
|
|
3786
3420
|
contents.clusterName = __expectString(data.clusterName);
|
|
3787
3421
|
}
|
|
3788
|
-
if (data.message
|
|
3422
|
+
if (data.message != null) {
|
|
3789
3423
|
contents.message = __expectString(data.message);
|
|
3790
3424
|
}
|
|
3791
|
-
if (data.nodegroupName
|
|
3425
|
+
if (data.nodegroupName != null) {
|
|
3792
3426
|
contents.nodegroupName = __expectString(data.nodegroupName);
|
|
3793
3427
|
}
|
|
3794
3428
|
exception = new ClientException(__assign({ $metadata: deserializeMetadata(parsedOutput) }, contents));
|
|
@@ -3798,21 +3432,21 @@ var deserializeAws_restJson1ClientExceptionResponse = function (parsedOutput, co
|
|
|
3798
3432
|
var deserializeAws_restJson1InvalidParameterExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
3799
3433
|
var contents, data, exception;
|
|
3800
3434
|
return __generator(this, function (_a) {
|
|
3801
|
-
contents = {};
|
|
3435
|
+
contents = map({});
|
|
3802
3436
|
data = parsedOutput.body;
|
|
3803
|
-
if (data.addonName
|
|
3437
|
+
if (data.addonName != null) {
|
|
3804
3438
|
contents.addonName = __expectString(data.addonName);
|
|
3805
3439
|
}
|
|
3806
|
-
if (data.clusterName
|
|
3440
|
+
if (data.clusterName != null) {
|
|
3807
3441
|
contents.clusterName = __expectString(data.clusterName);
|
|
3808
3442
|
}
|
|
3809
|
-
if (data.fargateProfileName
|
|
3443
|
+
if (data.fargateProfileName != null) {
|
|
3810
3444
|
contents.fargateProfileName = __expectString(data.fargateProfileName);
|
|
3811
3445
|
}
|
|
3812
|
-
if (data.message
|
|
3446
|
+
if (data.message != null) {
|
|
3813
3447
|
contents.message = __expectString(data.message);
|
|
3814
3448
|
}
|
|
3815
|
-
if (data.nodegroupName
|
|
3449
|
+
if (data.nodegroupName != null) {
|
|
3816
3450
|
contents.nodegroupName = __expectString(data.nodegroupName);
|
|
3817
3451
|
}
|
|
3818
3452
|
exception = new InvalidParameterException(__assign({ $metadata: deserializeMetadata(parsedOutput) }, contents));
|
|
@@ -3822,18 +3456,18 @@ var deserializeAws_restJson1InvalidParameterExceptionResponse = function (parsed
|
|
|
3822
3456
|
var deserializeAws_restJson1InvalidRequestExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
3823
3457
|
var contents, data, exception;
|
|
3824
3458
|
return __generator(this, function (_a) {
|
|
3825
|
-
contents = {};
|
|
3459
|
+
contents = map({});
|
|
3826
3460
|
data = parsedOutput.body;
|
|
3827
|
-
if (data.addonName
|
|
3461
|
+
if (data.addonName != null) {
|
|
3828
3462
|
contents.addonName = __expectString(data.addonName);
|
|
3829
3463
|
}
|
|
3830
|
-
if (data.clusterName
|
|
3464
|
+
if (data.clusterName != null) {
|
|
3831
3465
|
contents.clusterName = __expectString(data.clusterName);
|
|
3832
3466
|
}
|
|
3833
|
-
if (data.message
|
|
3467
|
+
if (data.message != null) {
|
|
3834
3468
|
contents.message = __expectString(data.message);
|
|
3835
3469
|
}
|
|
3836
|
-
if (data.nodegroupName
|
|
3470
|
+
if (data.nodegroupName != null) {
|
|
3837
3471
|
contents.nodegroupName = __expectString(data.nodegroupName);
|
|
3838
3472
|
}
|
|
3839
3473
|
exception = new InvalidRequestException(__assign({ $metadata: deserializeMetadata(parsedOutput) }, contents));
|
|
@@ -3843,9 +3477,9 @@ var deserializeAws_restJson1InvalidRequestExceptionResponse = function (parsedOu
|
|
|
3843
3477
|
var deserializeAws_restJson1NotFoundExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
3844
3478
|
var contents, data, exception;
|
|
3845
3479
|
return __generator(this, function (_a) {
|
|
3846
|
-
contents = {};
|
|
3480
|
+
contents = map({});
|
|
3847
3481
|
data = parsedOutput.body;
|
|
3848
|
-
if (data.message
|
|
3482
|
+
if (data.message != null) {
|
|
3849
3483
|
contents.message = __expectString(data.message);
|
|
3850
3484
|
}
|
|
3851
3485
|
exception = new NotFoundException(__assign({ $metadata: deserializeMetadata(parsedOutput) }, contents));
|
|
@@ -3855,18 +3489,18 @@ var deserializeAws_restJson1NotFoundExceptionResponse = function (parsedOutput,
|
|
|
3855
3489
|
var deserializeAws_restJson1ResourceInUseExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
3856
3490
|
var contents, data, exception;
|
|
3857
3491
|
return __generator(this, function (_a) {
|
|
3858
|
-
contents = {};
|
|
3492
|
+
contents = map({});
|
|
3859
3493
|
data = parsedOutput.body;
|
|
3860
|
-
if (data.addonName
|
|
3494
|
+
if (data.addonName != null) {
|
|
3861
3495
|
contents.addonName = __expectString(data.addonName);
|
|
3862
3496
|
}
|
|
3863
|
-
if (data.clusterName
|
|
3497
|
+
if (data.clusterName != null) {
|
|
3864
3498
|
contents.clusterName = __expectString(data.clusterName);
|
|
3865
3499
|
}
|
|
3866
|
-
if (data.message
|
|
3500
|
+
if (data.message != null) {
|
|
3867
3501
|
contents.message = __expectString(data.message);
|
|
3868
3502
|
}
|
|
3869
|
-
if (data.nodegroupName
|
|
3503
|
+
if (data.nodegroupName != null) {
|
|
3870
3504
|
contents.nodegroupName = __expectString(data.nodegroupName);
|
|
3871
3505
|
}
|
|
3872
3506
|
exception = new ResourceInUseException(__assign({ $metadata: deserializeMetadata(parsedOutput) }, contents));
|
|
@@ -3876,15 +3510,15 @@ var deserializeAws_restJson1ResourceInUseExceptionResponse = function (parsedOut
|
|
|
3876
3510
|
var deserializeAws_restJson1ResourceLimitExceededExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
3877
3511
|
var contents, data, exception;
|
|
3878
3512
|
return __generator(this, function (_a) {
|
|
3879
|
-
contents = {};
|
|
3513
|
+
contents = map({});
|
|
3880
3514
|
data = parsedOutput.body;
|
|
3881
|
-
if (data.clusterName
|
|
3515
|
+
if (data.clusterName != null) {
|
|
3882
3516
|
contents.clusterName = __expectString(data.clusterName);
|
|
3883
3517
|
}
|
|
3884
|
-
if (data.message
|
|
3518
|
+
if (data.message != null) {
|
|
3885
3519
|
contents.message = __expectString(data.message);
|
|
3886
3520
|
}
|
|
3887
|
-
if (data.nodegroupName
|
|
3521
|
+
if (data.nodegroupName != null) {
|
|
3888
3522
|
contents.nodegroupName = __expectString(data.nodegroupName);
|
|
3889
3523
|
}
|
|
3890
3524
|
exception = new ResourceLimitExceededException(__assign({ $metadata: deserializeMetadata(parsedOutput) }, contents));
|
|
@@ -3894,21 +3528,21 @@ var deserializeAws_restJson1ResourceLimitExceededExceptionResponse = function (p
|
|
|
3894
3528
|
var deserializeAws_restJson1ResourceNotFoundExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
3895
3529
|
var contents, data, exception;
|
|
3896
3530
|
return __generator(this, function (_a) {
|
|
3897
|
-
contents = {};
|
|
3531
|
+
contents = map({});
|
|
3898
3532
|
data = parsedOutput.body;
|
|
3899
|
-
if (data.addonName
|
|
3533
|
+
if (data.addonName != null) {
|
|
3900
3534
|
contents.addonName = __expectString(data.addonName);
|
|
3901
3535
|
}
|
|
3902
|
-
if (data.clusterName
|
|
3536
|
+
if (data.clusterName != null) {
|
|
3903
3537
|
contents.clusterName = __expectString(data.clusterName);
|
|
3904
3538
|
}
|
|
3905
|
-
if (data.fargateProfileName
|
|
3539
|
+
if (data.fargateProfileName != null) {
|
|
3906
3540
|
contents.fargateProfileName = __expectString(data.fargateProfileName);
|
|
3907
3541
|
}
|
|
3908
|
-
if (data.message
|
|
3542
|
+
if (data.message != null) {
|
|
3909
3543
|
contents.message = __expectString(data.message);
|
|
3910
3544
|
}
|
|
3911
|
-
if (data.nodegroupName
|
|
3545
|
+
if (data.nodegroupName != null) {
|
|
3912
3546
|
contents.nodegroupName = __expectString(data.nodegroupName);
|
|
3913
3547
|
}
|
|
3914
3548
|
exception = new ResourceNotFoundException(__assign({ $metadata: deserializeMetadata(parsedOutput) }, contents));
|
|
@@ -3918,9 +3552,9 @@ var deserializeAws_restJson1ResourceNotFoundExceptionResponse = function (parsed
|
|
|
3918
3552
|
var deserializeAws_restJson1ResourcePropagationDelayExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
3919
3553
|
var contents, data, exception;
|
|
3920
3554
|
return __generator(this, function (_a) {
|
|
3921
|
-
contents = {};
|
|
3555
|
+
contents = map({});
|
|
3922
3556
|
data = parsedOutput.body;
|
|
3923
|
-
if (data.message
|
|
3557
|
+
if (data.message != null) {
|
|
3924
3558
|
contents.message = __expectString(data.message);
|
|
3925
3559
|
}
|
|
3926
3560
|
exception = new ResourcePropagationDelayException(__assign({ $metadata: deserializeMetadata(parsedOutput) }, contents));
|
|
@@ -3930,18 +3564,18 @@ var deserializeAws_restJson1ResourcePropagationDelayExceptionResponse = function
|
|
|
3930
3564
|
var deserializeAws_restJson1ServerExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
3931
3565
|
var contents, data, exception;
|
|
3932
3566
|
return __generator(this, function (_a) {
|
|
3933
|
-
contents = {};
|
|
3567
|
+
contents = map({});
|
|
3934
3568
|
data = parsedOutput.body;
|
|
3935
|
-
if (data.addonName
|
|
3569
|
+
if (data.addonName != null) {
|
|
3936
3570
|
contents.addonName = __expectString(data.addonName);
|
|
3937
3571
|
}
|
|
3938
|
-
if (data.clusterName
|
|
3572
|
+
if (data.clusterName != null) {
|
|
3939
3573
|
contents.clusterName = __expectString(data.clusterName);
|
|
3940
3574
|
}
|
|
3941
|
-
if (data.message
|
|
3575
|
+
if (data.message != null) {
|
|
3942
3576
|
contents.message = __expectString(data.message);
|
|
3943
3577
|
}
|
|
3944
|
-
if (data.nodegroupName
|
|
3578
|
+
if (data.nodegroupName != null) {
|
|
3945
3579
|
contents.nodegroupName = __expectString(data.nodegroupName);
|
|
3946
3580
|
}
|
|
3947
3581
|
exception = new ServerException(__assign({ $metadata: deserializeMetadata(parsedOutput) }, contents));
|
|
@@ -3951,9 +3585,9 @@ var deserializeAws_restJson1ServerExceptionResponse = function (parsedOutput, co
|
|
|
3951
3585
|
var deserializeAws_restJson1ServiceUnavailableExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
3952
3586
|
var contents, data, exception;
|
|
3953
3587
|
return __generator(this, function (_a) {
|
|
3954
|
-
contents = {};
|
|
3588
|
+
contents = map({});
|
|
3955
3589
|
data = parsedOutput.body;
|
|
3956
|
-
if (data.message
|
|
3590
|
+
if (data.message != null) {
|
|
3957
3591
|
contents.message = __expectString(data.message);
|
|
3958
3592
|
}
|
|
3959
3593
|
exception = new ServiceUnavailableException(__assign({ $metadata: deserializeMetadata(parsedOutput) }, contents));
|
|
@@ -3963,18 +3597,18 @@ var deserializeAws_restJson1ServiceUnavailableExceptionResponse = function (pars
|
|
|
3963
3597
|
var deserializeAws_restJson1UnsupportedAvailabilityZoneExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
3964
3598
|
var contents, data, exception;
|
|
3965
3599
|
return __generator(this, function (_a) {
|
|
3966
|
-
contents = {};
|
|
3600
|
+
contents = map({});
|
|
3967
3601
|
data = parsedOutput.body;
|
|
3968
|
-
if (data.clusterName
|
|
3602
|
+
if (data.clusterName != null) {
|
|
3969
3603
|
contents.clusterName = __expectString(data.clusterName);
|
|
3970
3604
|
}
|
|
3971
|
-
if (data.message
|
|
3605
|
+
if (data.message != null) {
|
|
3972
3606
|
contents.message = __expectString(data.message);
|
|
3973
3607
|
}
|
|
3974
|
-
if (data.nodegroupName
|
|
3608
|
+
if (data.nodegroupName != null) {
|
|
3975
3609
|
contents.nodegroupName = __expectString(data.nodegroupName);
|
|
3976
3610
|
}
|
|
3977
|
-
if (data.validZones
|
|
3611
|
+
if (data.validZones != null) {
|
|
3978
3612
|
contents.validZones = deserializeAws_restJson1StringList(data.validZones, context);
|
|
3979
3613
|
}
|
|
3980
3614
|
exception = new UnsupportedAvailabilityZoneException(__assign({ $metadata: deserializeMetadata(parsedOutput) }, contents));
|
|
@@ -3991,9 +3625,6 @@ var serializeAws_restJson1EncryptionConfigList = function (input, context) {
|
|
|
3991
3625
|
return input
|
|
3992
3626
|
.filter(function (e) { return e != null; })
|
|
3993
3627
|
.map(function (entry) {
|
|
3994
|
-
if (entry === null) {
|
|
3995
|
-
return null;
|
|
3996
|
-
}
|
|
3997
3628
|
return serializeAws_restJson1EncryptionConfig(entry, context);
|
|
3998
3629
|
});
|
|
3999
3630
|
};
|
|
@@ -4014,9 +3645,6 @@ var serializeAws_restJson1FargateProfileSelectors = function (input, context) {
|
|
|
4014
3645
|
return input
|
|
4015
3646
|
.filter(function (e) { return e != null; })
|
|
4016
3647
|
.map(function (entry) {
|
|
4017
|
-
if (entry === null) {
|
|
4018
|
-
return null;
|
|
4019
|
-
}
|
|
4020
3648
|
return serializeAws_restJson1FargateProfileSelector(entry, context);
|
|
4021
3649
|
});
|
|
4022
3650
|
};
|
|
@@ -4030,9 +3658,6 @@ var serializeAws_restJson1labelsKeyList = function (input, context) {
|
|
|
4030
3658
|
return input
|
|
4031
3659
|
.filter(function (e) { return e != null; })
|
|
4032
3660
|
.map(function (entry) {
|
|
4033
|
-
if (entry === null) {
|
|
4034
|
-
return null;
|
|
4035
|
-
}
|
|
4036
3661
|
return entry;
|
|
4037
3662
|
});
|
|
4038
3663
|
};
|
|
@@ -4061,9 +3686,6 @@ var serializeAws_restJson1LogSetups = function (input, context) {
|
|
|
4061
3686
|
return input
|
|
4062
3687
|
.filter(function (e) { return e != null; })
|
|
4063
3688
|
.map(function (entry) {
|
|
4064
|
-
if (entry === null) {
|
|
4065
|
-
return null;
|
|
4066
|
-
}
|
|
4067
3689
|
return serializeAws_restJson1LogSetup(entry, context);
|
|
4068
3690
|
});
|
|
4069
3691
|
};
|
|
@@ -4071,9 +3693,6 @@ var serializeAws_restJson1LogTypes = function (input, context) {
|
|
|
4071
3693
|
return input
|
|
4072
3694
|
.filter(function (e) { return e != null; })
|
|
4073
3695
|
.map(function (entry) {
|
|
4074
|
-
if (entry === null) {
|
|
4075
|
-
return null;
|
|
4076
|
-
}
|
|
4077
3696
|
return entry;
|
|
4078
3697
|
});
|
|
4079
3698
|
};
|
|
@@ -4110,9 +3729,6 @@ var serializeAws_restJson1StringList = function (input, context) {
|
|
|
4110
3729
|
return input
|
|
4111
3730
|
.filter(function (e) { return e != null; })
|
|
4112
3731
|
.map(function (entry) {
|
|
4113
|
-
if (entry === null) {
|
|
4114
|
-
return null;
|
|
4115
|
-
}
|
|
4116
3732
|
return entry;
|
|
4117
3733
|
});
|
|
4118
3734
|
};
|
|
@@ -4133,9 +3749,6 @@ var serializeAws_restJson1taintsList = function (input, context) {
|
|
|
4133
3749
|
return input
|
|
4134
3750
|
.filter(function (e) { return e != null; })
|
|
4135
3751
|
.map(function (entry) {
|
|
4136
|
-
if (entry === null) {
|
|
4137
|
-
return null;
|
|
4138
|
-
}
|
|
4139
3752
|
return serializeAws_restJson1Taint(entry, context);
|
|
4140
3753
|
});
|
|
4141
3754
|
};
|