@aws-sdk/client-eks 3.306.0 → 3.310.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/dist-cjs/commands/AssociateEncryptionConfigCommand.js +2 -2
- package/dist-cjs/commands/AssociateIdentityProviderConfigCommand.js +2 -2
- package/dist-cjs/commands/CreateAddonCommand.js +2 -2
- package/dist-cjs/commands/CreateClusterCommand.js +2 -2
- package/dist-cjs/commands/CreateFargateProfileCommand.js +2 -2
- package/dist-cjs/commands/CreateNodegroupCommand.js +2 -2
- package/dist-cjs/commands/DeleteAddonCommand.js +2 -2
- package/dist-cjs/commands/DeleteClusterCommand.js +2 -2
- package/dist-cjs/commands/DeleteFargateProfileCommand.js +2 -2
- package/dist-cjs/commands/DeleteNodegroupCommand.js +2 -2
- package/dist-cjs/commands/DeregisterClusterCommand.js +2 -2
- package/dist-cjs/commands/DescribeAddonCommand.js +2 -2
- package/dist-cjs/commands/DescribeAddonConfigurationCommand.js +2 -2
- package/dist-cjs/commands/DescribeAddonVersionsCommand.js +2 -2
- package/dist-cjs/commands/DescribeClusterCommand.js +2 -2
- package/dist-cjs/commands/DescribeFargateProfileCommand.js +2 -2
- package/dist-cjs/commands/DescribeIdentityProviderConfigCommand.js +2 -2
- package/dist-cjs/commands/DescribeNodegroupCommand.js +2 -2
- package/dist-cjs/commands/DescribeUpdateCommand.js +2 -2
- package/dist-cjs/commands/DisassociateIdentityProviderConfigCommand.js +2 -2
- package/dist-cjs/commands/ListAddonsCommand.js +2 -2
- package/dist-cjs/commands/ListClustersCommand.js +2 -2
- package/dist-cjs/commands/ListFargateProfilesCommand.js +2 -2
- package/dist-cjs/commands/ListIdentityProviderConfigsCommand.js +2 -2
- package/dist-cjs/commands/ListNodegroupsCommand.js +2 -2
- package/dist-cjs/commands/ListTagsForResourceCommand.js +2 -2
- package/dist-cjs/commands/ListUpdatesCommand.js +2 -2
- package/dist-cjs/commands/RegisterClusterCommand.js +2 -2
- package/dist-cjs/commands/TagResourceCommand.js +2 -2
- package/dist-cjs/commands/UntagResourceCommand.js +2 -2
- package/dist-cjs/commands/UpdateAddonCommand.js +2 -2
- package/dist-cjs/commands/UpdateClusterConfigCommand.js +2 -2
- package/dist-cjs/commands/UpdateClusterVersionCommand.js +2 -2
- package/dist-cjs/commands/UpdateNodegroupConfigCommand.js +2 -2
- package/dist-cjs/commands/UpdateNodegroupVersionCommand.js +2 -2
- package/dist-cjs/protocols/Aws_restJson1.js +648 -712
- package/dist-es/commands/AssociateEncryptionConfigCommand.js +3 -3
- package/dist-es/commands/AssociateIdentityProviderConfigCommand.js +3 -3
- package/dist-es/commands/CreateAddonCommand.js +3 -3
- package/dist-es/commands/CreateClusterCommand.js +3 -3
- package/dist-es/commands/CreateFargateProfileCommand.js +3 -3
- package/dist-es/commands/CreateNodegroupCommand.js +3 -3
- package/dist-es/commands/DeleteAddonCommand.js +3 -3
- package/dist-es/commands/DeleteClusterCommand.js +3 -3
- package/dist-es/commands/DeleteFargateProfileCommand.js +3 -3
- package/dist-es/commands/DeleteNodegroupCommand.js +3 -3
- package/dist-es/commands/DeregisterClusterCommand.js +3 -3
- package/dist-es/commands/DescribeAddonCommand.js +3 -3
- package/dist-es/commands/DescribeAddonConfigurationCommand.js +3 -3
- package/dist-es/commands/DescribeAddonVersionsCommand.js +3 -3
- package/dist-es/commands/DescribeClusterCommand.js +3 -3
- package/dist-es/commands/DescribeFargateProfileCommand.js +3 -3
- package/dist-es/commands/DescribeIdentityProviderConfigCommand.js +3 -3
- package/dist-es/commands/DescribeNodegroupCommand.js +3 -3
- package/dist-es/commands/DescribeUpdateCommand.js +3 -3
- package/dist-es/commands/DisassociateIdentityProviderConfigCommand.js +3 -3
- package/dist-es/commands/ListAddonsCommand.js +3 -3
- package/dist-es/commands/ListClustersCommand.js +3 -3
- package/dist-es/commands/ListFargateProfilesCommand.js +3 -3
- package/dist-es/commands/ListIdentityProviderConfigsCommand.js +3 -3
- package/dist-es/commands/ListNodegroupsCommand.js +3 -3
- package/dist-es/commands/ListTagsForResourceCommand.js +3 -3
- package/dist-es/commands/ListUpdatesCommand.js +3 -3
- package/dist-es/commands/RegisterClusterCommand.js +3 -3
- package/dist-es/commands/TagResourceCommand.js +3 -3
- package/dist-es/commands/UntagResourceCommand.js +3 -3
- package/dist-es/commands/UpdateAddonCommand.js +3 -3
- package/dist-es/commands/UpdateClusterConfigCommand.js +3 -3
- package/dist-es/commands/UpdateClusterVersionCommand.js +3 -3
- package/dist-es/commands/UpdateNodegroupConfigCommand.js +3 -3
- package/dist-es/commands/UpdateNodegroupVersionCommand.js +3 -3
- package/dist-es/protocols/Aws_restJson1.js +576 -640
- package/dist-types/protocols/Aws_restJson1.d.ts +280 -70
- package/dist-types/ts3.4/protocols/Aws_restJson1.d.ts +70 -70
- package/package.json +36 -36
|
@@ -3,7 +3,7 @@ import { decorateServiceException as __decorateServiceException, expectBoolean a
|
|
|
3
3
|
import { v4 as generateIdempotencyToken } from "uuid";
|
|
4
4
|
import { EKSServiceException as __BaseException } from "../models/EKSServiceException";
|
|
5
5
|
import { AccessDeniedException, BadRequestException, ClientException, InvalidParameterException, InvalidRequestException, NotFoundException, ResourceInUseException, ResourceLimitExceededException, ResourceNotFoundException, ResourcePropagationDelayException, ServerException, ServiceUnavailableException, UnsupportedAvailabilityZoneException, } from "../models/models_0";
|
|
6
|
-
export const
|
|
6
|
+
export const se_AssociateEncryptionConfigCommand = async (input, context) => {
|
|
7
7
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
8
8
|
const headers = {
|
|
9
9
|
"content-type": "application/json",
|
|
@@ -15,7 +15,7 @@ export const serializeAws_restJson1AssociateEncryptionConfigCommand = async (inp
|
|
|
15
15
|
body = JSON.stringify({
|
|
16
16
|
clientRequestToken: input.clientRequestToken ?? generateIdempotencyToken(),
|
|
17
17
|
...(input.encryptionConfig != null && {
|
|
18
|
-
encryptionConfig:
|
|
18
|
+
encryptionConfig: se_EncryptionConfigList(input.encryptionConfig, context),
|
|
19
19
|
}),
|
|
20
20
|
});
|
|
21
21
|
return new __HttpRequest({
|
|
@@ -28,7 +28,7 @@ export const serializeAws_restJson1AssociateEncryptionConfigCommand = async (inp
|
|
|
28
28
|
body,
|
|
29
29
|
});
|
|
30
30
|
};
|
|
31
|
-
export const
|
|
31
|
+
export const se_AssociateIdentityProviderConfigCommand = async (input, context) => {
|
|
32
32
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
33
33
|
const headers = {
|
|
34
34
|
"content-type": "application/json",
|
|
@@ -39,8 +39,8 @@ export const serializeAws_restJson1AssociateIdentityProviderConfigCommand = asyn
|
|
|
39
39
|
let body;
|
|
40
40
|
body = JSON.stringify({
|
|
41
41
|
clientRequestToken: input.clientRequestToken ?? generateIdempotencyToken(),
|
|
42
|
-
...(input.oidc != null && { oidc:
|
|
43
|
-
...(input.tags != null && { tags:
|
|
42
|
+
...(input.oidc != null && { oidc: se_OidcIdentityProviderConfigRequest(input.oidc, context) }),
|
|
43
|
+
...(input.tags != null && { tags: se_TagMap(input.tags, context) }),
|
|
44
44
|
});
|
|
45
45
|
return new __HttpRequest({
|
|
46
46
|
protocol,
|
|
@@ -52,7 +52,7 @@ export const serializeAws_restJson1AssociateIdentityProviderConfigCommand = asyn
|
|
|
52
52
|
body,
|
|
53
53
|
});
|
|
54
54
|
};
|
|
55
|
-
export const
|
|
55
|
+
export const se_CreateAddonCommand = async (input, context) => {
|
|
56
56
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
57
57
|
const headers = {
|
|
58
58
|
"content-type": "application/json",
|
|
@@ -67,7 +67,7 @@ export const serializeAws_restJson1CreateAddonCommand = async (input, context) =
|
|
|
67
67
|
...(input.configurationValues != null && { configurationValues: input.configurationValues }),
|
|
68
68
|
...(input.resolveConflicts != null && { resolveConflicts: input.resolveConflicts }),
|
|
69
69
|
...(input.serviceAccountRoleArn != null && { serviceAccountRoleArn: input.serviceAccountRoleArn }),
|
|
70
|
-
...(input.tags != null && { tags:
|
|
70
|
+
...(input.tags != null && { tags: se_TagMap(input.tags, context) }),
|
|
71
71
|
});
|
|
72
72
|
return new __HttpRequest({
|
|
73
73
|
protocol,
|
|
@@ -79,7 +79,7 @@ export const serializeAws_restJson1CreateAddonCommand = async (input, context) =
|
|
|
79
79
|
body,
|
|
80
80
|
});
|
|
81
81
|
};
|
|
82
|
-
export const
|
|
82
|
+
export const se_CreateClusterCommand = async (input, context) => {
|
|
83
83
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
84
84
|
const headers = {
|
|
85
85
|
"content-type": "application/json",
|
|
@@ -89,21 +89,19 @@ export const serializeAws_restJson1CreateClusterCommand = async (input, context)
|
|
|
89
89
|
body = JSON.stringify({
|
|
90
90
|
clientRequestToken: input.clientRequestToken ?? generateIdempotencyToken(),
|
|
91
91
|
...(input.encryptionConfig != null && {
|
|
92
|
-
encryptionConfig:
|
|
92
|
+
encryptionConfig: se_EncryptionConfigList(input.encryptionConfig, context),
|
|
93
93
|
}),
|
|
94
94
|
...(input.kubernetesNetworkConfig != null && {
|
|
95
|
-
kubernetesNetworkConfig:
|
|
95
|
+
kubernetesNetworkConfig: se_KubernetesNetworkConfigRequest(input.kubernetesNetworkConfig, context),
|
|
96
96
|
}),
|
|
97
|
-
...(input.logging != null && { logging:
|
|
97
|
+
...(input.logging != null && { logging: se_Logging(input.logging, context) }),
|
|
98
98
|
...(input.name != null && { name: input.name }),
|
|
99
|
-
...(input.outpostConfig != null && {
|
|
100
|
-
outpostConfig: serializeAws_restJson1OutpostConfigRequest(input.outpostConfig, context),
|
|
101
|
-
}),
|
|
99
|
+
...(input.outpostConfig != null && { outpostConfig: se_OutpostConfigRequest(input.outpostConfig, context) }),
|
|
102
100
|
...(input.resourcesVpcConfig != null && {
|
|
103
|
-
resourcesVpcConfig:
|
|
101
|
+
resourcesVpcConfig: se_VpcConfigRequest(input.resourcesVpcConfig, context),
|
|
104
102
|
}),
|
|
105
103
|
...(input.roleArn != null && { roleArn: input.roleArn }),
|
|
106
|
-
...(input.tags != null && { tags:
|
|
104
|
+
...(input.tags != null && { tags: se_TagMap(input.tags, context) }),
|
|
107
105
|
...(input.version != null && { version: input.version }),
|
|
108
106
|
});
|
|
109
107
|
return new __HttpRequest({
|
|
@@ -116,7 +114,7 @@ export const serializeAws_restJson1CreateClusterCommand = async (input, context)
|
|
|
116
114
|
body,
|
|
117
115
|
});
|
|
118
116
|
};
|
|
119
|
-
export const
|
|
117
|
+
export const se_CreateFargateProfileCommand = async (input, context) => {
|
|
120
118
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
121
119
|
const headers = {
|
|
122
120
|
"content-type": "application/json",
|
|
@@ -128,11 +126,9 @@ export const serializeAws_restJson1CreateFargateProfileCommand = async (input, c
|
|
|
128
126
|
clientRequestToken: input.clientRequestToken ?? generateIdempotencyToken(),
|
|
129
127
|
...(input.fargateProfileName != null && { fargateProfileName: input.fargateProfileName }),
|
|
130
128
|
...(input.podExecutionRoleArn != null && { podExecutionRoleArn: input.podExecutionRoleArn }),
|
|
131
|
-
...(input.selectors != null && {
|
|
132
|
-
|
|
133
|
-
}),
|
|
134
|
-
...(input.subnets != null && { subnets: serializeAws_restJson1StringList(input.subnets, context) }),
|
|
135
|
-
...(input.tags != null && { tags: serializeAws_restJson1TagMap(input.tags, context) }),
|
|
129
|
+
...(input.selectors != null && { selectors: se_FargateProfileSelectors(input.selectors, context) }),
|
|
130
|
+
...(input.subnets != null && { subnets: se_StringList(input.subnets, context) }),
|
|
131
|
+
...(input.tags != null && { tags: se_TagMap(input.tags, context) }),
|
|
136
132
|
});
|
|
137
133
|
return new __HttpRequest({
|
|
138
134
|
protocol,
|
|
@@ -144,7 +140,7 @@ export const serializeAws_restJson1CreateFargateProfileCommand = async (input, c
|
|
|
144
140
|
body,
|
|
145
141
|
});
|
|
146
142
|
};
|
|
147
|
-
export const
|
|
143
|
+
export const se_CreateNodegroupCommand = async (input, context) => {
|
|
148
144
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
149
145
|
const headers = {
|
|
150
146
|
"content-type": "application/json",
|
|
@@ -157,28 +153,20 @@ export const serializeAws_restJson1CreateNodegroupCommand = async (input, contex
|
|
|
157
153
|
...(input.capacityType != null && { capacityType: input.capacityType }),
|
|
158
154
|
clientRequestToken: input.clientRequestToken ?? generateIdempotencyToken(),
|
|
159
155
|
...(input.diskSize != null && { diskSize: input.diskSize }),
|
|
160
|
-
...(input.instanceTypes != null && {
|
|
161
|
-
|
|
162
|
-
}),
|
|
163
|
-
...(input.labels != null && { labels: serializeAws_restJson1labelsMap(input.labels, context) }),
|
|
156
|
+
...(input.instanceTypes != null && { instanceTypes: se_StringList(input.instanceTypes, context) }),
|
|
157
|
+
...(input.labels != null && { labels: se_labelsMap(input.labels, context) }),
|
|
164
158
|
...(input.launchTemplate != null && {
|
|
165
|
-
launchTemplate:
|
|
159
|
+
launchTemplate: se_LaunchTemplateSpecification(input.launchTemplate, context),
|
|
166
160
|
}),
|
|
167
161
|
...(input.nodeRole != null && { nodeRole: input.nodeRole }),
|
|
168
162
|
...(input.nodegroupName != null && { nodegroupName: input.nodegroupName }),
|
|
169
163
|
...(input.releaseVersion != null && { releaseVersion: input.releaseVersion }),
|
|
170
|
-
...(input.remoteAccess != null && {
|
|
171
|
-
|
|
172
|
-
}),
|
|
173
|
-
...(input.
|
|
174
|
-
|
|
175
|
-
}),
|
|
176
|
-
...(input.subnets != null && { subnets: serializeAws_restJson1StringList(input.subnets, context) }),
|
|
177
|
-
...(input.tags != null && { tags: serializeAws_restJson1TagMap(input.tags, context) }),
|
|
178
|
-
...(input.taints != null && { taints: serializeAws_restJson1taintsList(input.taints, context) }),
|
|
179
|
-
...(input.updateConfig != null && {
|
|
180
|
-
updateConfig: serializeAws_restJson1NodegroupUpdateConfig(input.updateConfig, context),
|
|
181
|
-
}),
|
|
164
|
+
...(input.remoteAccess != null && { remoteAccess: se_RemoteAccessConfig(input.remoteAccess, context) }),
|
|
165
|
+
...(input.scalingConfig != null && { scalingConfig: se_NodegroupScalingConfig(input.scalingConfig, context) }),
|
|
166
|
+
...(input.subnets != null && { subnets: se_StringList(input.subnets, context) }),
|
|
167
|
+
...(input.tags != null && { tags: se_TagMap(input.tags, context) }),
|
|
168
|
+
...(input.taints != null && { taints: se_taintsList(input.taints, context) }),
|
|
169
|
+
...(input.updateConfig != null && { updateConfig: se_NodegroupUpdateConfig(input.updateConfig, context) }),
|
|
182
170
|
...(input.version != null && { version: input.version }),
|
|
183
171
|
});
|
|
184
172
|
return new __HttpRequest({
|
|
@@ -191,7 +179,7 @@ export const serializeAws_restJson1CreateNodegroupCommand = async (input, contex
|
|
|
191
179
|
body,
|
|
192
180
|
});
|
|
193
181
|
};
|
|
194
|
-
export const
|
|
182
|
+
export const se_DeleteAddonCommand = async (input, context) => {
|
|
195
183
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
196
184
|
const headers = {};
|
|
197
185
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
|
|
@@ -213,7 +201,7 @@ export const serializeAws_restJson1DeleteAddonCommand = async (input, context) =
|
|
|
213
201
|
body,
|
|
214
202
|
});
|
|
215
203
|
};
|
|
216
|
-
export const
|
|
204
|
+
export const se_DeleteClusterCommand = async (input, context) => {
|
|
217
205
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
218
206
|
const headers = {};
|
|
219
207
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/clusters/{name}";
|
|
@@ -229,7 +217,7 @@ export const serializeAws_restJson1DeleteClusterCommand = async (input, context)
|
|
|
229
217
|
body,
|
|
230
218
|
});
|
|
231
219
|
};
|
|
232
|
-
export const
|
|
220
|
+
export const se_DeleteFargateProfileCommand = async (input, context) => {
|
|
233
221
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
234
222
|
const headers = {};
|
|
235
223
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
|
|
@@ -247,7 +235,7 @@ export const serializeAws_restJson1DeleteFargateProfileCommand = async (input, c
|
|
|
247
235
|
body,
|
|
248
236
|
});
|
|
249
237
|
};
|
|
250
|
-
export const
|
|
238
|
+
export const se_DeleteNodegroupCommand = async (input, context) => {
|
|
251
239
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
252
240
|
const headers = {};
|
|
253
241
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
|
|
@@ -265,7 +253,7 @@ export const serializeAws_restJson1DeleteNodegroupCommand = async (input, contex
|
|
|
265
253
|
body,
|
|
266
254
|
});
|
|
267
255
|
};
|
|
268
|
-
export const
|
|
256
|
+
export const se_DeregisterClusterCommand = async (input, context) => {
|
|
269
257
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
270
258
|
const headers = {};
|
|
271
259
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/cluster-registrations/{name}";
|
|
@@ -281,7 +269,7 @@ export const serializeAws_restJson1DeregisterClusterCommand = async (input, cont
|
|
|
281
269
|
body,
|
|
282
270
|
});
|
|
283
271
|
};
|
|
284
|
-
export const
|
|
272
|
+
export const se_DescribeAddonCommand = async (input, context) => {
|
|
285
273
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
286
274
|
const headers = {};
|
|
287
275
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
|
|
@@ -299,7 +287,7 @@ export const serializeAws_restJson1DescribeAddonCommand = async (input, context)
|
|
|
299
287
|
body,
|
|
300
288
|
});
|
|
301
289
|
};
|
|
302
|
-
export const
|
|
290
|
+
export const se_DescribeAddonConfigurationCommand = async (input, context) => {
|
|
303
291
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
304
292
|
const headers = {};
|
|
305
293
|
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/addons/configuration-schemas";
|
|
@@ -319,7 +307,7 @@ export const serializeAws_restJson1DescribeAddonConfigurationCommand = async (in
|
|
|
319
307
|
body,
|
|
320
308
|
});
|
|
321
309
|
};
|
|
322
|
-
export const
|
|
310
|
+
export const se_DescribeAddonVersionsCommand = async (input, context) => {
|
|
323
311
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
324
312
|
const headers = {};
|
|
325
313
|
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/addons/supported-versions";
|
|
@@ -344,7 +332,7 @@ export const serializeAws_restJson1DescribeAddonVersionsCommand = async (input,
|
|
|
344
332
|
body,
|
|
345
333
|
});
|
|
346
334
|
};
|
|
347
|
-
export const
|
|
335
|
+
export const se_DescribeClusterCommand = async (input, context) => {
|
|
348
336
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
349
337
|
const headers = {};
|
|
350
338
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/clusters/{name}";
|
|
@@ -360,7 +348,7 @@ export const serializeAws_restJson1DescribeClusterCommand = async (input, contex
|
|
|
360
348
|
body,
|
|
361
349
|
});
|
|
362
350
|
};
|
|
363
|
-
export const
|
|
351
|
+
export const se_DescribeFargateProfileCommand = async (input, context) => {
|
|
364
352
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
365
353
|
const headers = {};
|
|
366
354
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
|
|
@@ -378,7 +366,7 @@ export const serializeAws_restJson1DescribeFargateProfileCommand = async (input,
|
|
|
378
366
|
body,
|
|
379
367
|
});
|
|
380
368
|
};
|
|
381
|
-
export const
|
|
369
|
+
export const se_DescribeIdentityProviderConfigCommand = async (input, context) => {
|
|
382
370
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
383
371
|
const headers = {
|
|
384
372
|
"content-type": "application/json",
|
|
@@ -389,7 +377,7 @@ export const serializeAws_restJson1DescribeIdentityProviderConfigCommand = async
|
|
|
389
377
|
let body;
|
|
390
378
|
body = JSON.stringify({
|
|
391
379
|
...(input.identityProviderConfig != null && {
|
|
392
|
-
identityProviderConfig:
|
|
380
|
+
identityProviderConfig: se_IdentityProviderConfig(input.identityProviderConfig, context),
|
|
393
381
|
}),
|
|
394
382
|
});
|
|
395
383
|
return new __HttpRequest({
|
|
@@ -402,7 +390,7 @@ export const serializeAws_restJson1DescribeIdentityProviderConfigCommand = async
|
|
|
402
390
|
body,
|
|
403
391
|
});
|
|
404
392
|
};
|
|
405
|
-
export const
|
|
393
|
+
export const se_DescribeNodegroupCommand = async (input, context) => {
|
|
406
394
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
407
395
|
const headers = {};
|
|
408
396
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
|
|
@@ -420,7 +408,7 @@ export const serializeAws_restJson1DescribeNodegroupCommand = async (input, cont
|
|
|
420
408
|
body,
|
|
421
409
|
});
|
|
422
410
|
};
|
|
423
|
-
export const
|
|
411
|
+
export const se_DescribeUpdateCommand = async (input, context) => {
|
|
424
412
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
425
413
|
const headers = {};
|
|
426
414
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/clusters/{name}/updates/{updateId}";
|
|
@@ -442,7 +430,7 @@ export const serializeAws_restJson1DescribeUpdateCommand = async (input, context
|
|
|
442
430
|
body,
|
|
443
431
|
});
|
|
444
432
|
};
|
|
445
|
-
export const
|
|
433
|
+
export const se_DisassociateIdentityProviderConfigCommand = async (input, context) => {
|
|
446
434
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
447
435
|
const headers = {
|
|
448
436
|
"content-type": "application/json",
|
|
@@ -454,7 +442,7 @@ export const serializeAws_restJson1DisassociateIdentityProviderConfigCommand = a
|
|
|
454
442
|
body = JSON.stringify({
|
|
455
443
|
clientRequestToken: input.clientRequestToken ?? generateIdempotencyToken(),
|
|
456
444
|
...(input.identityProviderConfig != null && {
|
|
457
|
-
identityProviderConfig:
|
|
445
|
+
identityProviderConfig: se_IdentityProviderConfig(input.identityProviderConfig, context),
|
|
458
446
|
}),
|
|
459
447
|
});
|
|
460
448
|
return new __HttpRequest({
|
|
@@ -467,7 +455,7 @@ export const serializeAws_restJson1DisassociateIdentityProviderConfigCommand = a
|
|
|
467
455
|
body,
|
|
468
456
|
});
|
|
469
457
|
};
|
|
470
|
-
export const
|
|
458
|
+
export const se_ListAddonsCommand = async (input, context) => {
|
|
471
459
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
472
460
|
const headers = {};
|
|
473
461
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/clusters/{clusterName}/addons";
|
|
@@ -488,7 +476,7 @@ export const serializeAws_restJson1ListAddonsCommand = async (input, context) =>
|
|
|
488
476
|
body,
|
|
489
477
|
});
|
|
490
478
|
};
|
|
491
|
-
export const
|
|
479
|
+
export const se_ListClustersCommand = async (input, context) => {
|
|
492
480
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
493
481
|
const headers = {};
|
|
494
482
|
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/clusters";
|
|
@@ -509,7 +497,7 @@ export const serializeAws_restJson1ListClustersCommand = async (input, context)
|
|
|
509
497
|
body,
|
|
510
498
|
});
|
|
511
499
|
};
|
|
512
|
-
export const
|
|
500
|
+
export const se_ListFargateProfilesCommand = async (input, context) => {
|
|
513
501
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
514
502
|
const headers = {};
|
|
515
503
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/clusters/{clusterName}/fargate-profiles";
|
|
@@ -530,7 +518,7 @@ export const serializeAws_restJson1ListFargateProfilesCommand = async (input, co
|
|
|
530
518
|
body,
|
|
531
519
|
});
|
|
532
520
|
};
|
|
533
|
-
export const
|
|
521
|
+
export const se_ListIdentityProviderConfigsCommand = async (input, context) => {
|
|
534
522
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
535
523
|
const headers = {};
|
|
536
524
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
|
|
@@ -552,7 +540,7 @@ export const serializeAws_restJson1ListIdentityProviderConfigsCommand = async (i
|
|
|
552
540
|
body,
|
|
553
541
|
});
|
|
554
542
|
};
|
|
555
|
-
export const
|
|
543
|
+
export const se_ListNodegroupsCommand = async (input, context) => {
|
|
556
544
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
557
545
|
const headers = {};
|
|
558
546
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/clusters/{clusterName}/node-groups";
|
|
@@ -573,7 +561,7 @@ export const serializeAws_restJson1ListNodegroupsCommand = async (input, context
|
|
|
573
561
|
body,
|
|
574
562
|
});
|
|
575
563
|
};
|
|
576
|
-
export const
|
|
564
|
+
export const se_ListTagsForResourceCommand = async (input, context) => {
|
|
577
565
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
578
566
|
const headers = {};
|
|
579
567
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/tags/{resourceArn}";
|
|
@@ -589,7 +577,7 @@ export const serializeAws_restJson1ListTagsForResourceCommand = async (input, co
|
|
|
589
577
|
body,
|
|
590
578
|
});
|
|
591
579
|
};
|
|
592
|
-
export const
|
|
580
|
+
export const se_ListUpdatesCommand = async (input, context) => {
|
|
593
581
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
594
582
|
const headers = {};
|
|
595
583
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/clusters/{name}/updates";
|
|
@@ -612,7 +600,7 @@ export const serializeAws_restJson1ListUpdatesCommand = async (input, context) =
|
|
|
612
600
|
body,
|
|
613
601
|
});
|
|
614
602
|
};
|
|
615
|
-
export const
|
|
603
|
+
export const se_RegisterClusterCommand = async (input, context) => {
|
|
616
604
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
617
605
|
const headers = {
|
|
618
606
|
"content-type": "application/json",
|
|
@@ -622,10 +610,10 @@ export const serializeAws_restJson1RegisterClusterCommand = async (input, contex
|
|
|
622
610
|
body = JSON.stringify({
|
|
623
611
|
clientRequestToken: input.clientRequestToken ?? generateIdempotencyToken(),
|
|
624
612
|
...(input.connectorConfig != null && {
|
|
625
|
-
connectorConfig:
|
|
613
|
+
connectorConfig: se_ConnectorConfigRequest(input.connectorConfig, context),
|
|
626
614
|
}),
|
|
627
615
|
...(input.name != null && { name: input.name }),
|
|
628
|
-
...(input.tags != null && { tags:
|
|
616
|
+
...(input.tags != null && { tags: se_TagMap(input.tags, context) }),
|
|
629
617
|
});
|
|
630
618
|
return new __HttpRequest({
|
|
631
619
|
protocol,
|
|
@@ -637,7 +625,7 @@ export const serializeAws_restJson1RegisterClusterCommand = async (input, contex
|
|
|
637
625
|
body,
|
|
638
626
|
});
|
|
639
627
|
};
|
|
640
|
-
export const
|
|
628
|
+
export const se_TagResourceCommand = async (input, context) => {
|
|
641
629
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
642
630
|
const headers = {
|
|
643
631
|
"content-type": "application/json",
|
|
@@ -646,7 +634,7 @@ export const serializeAws_restJson1TagResourceCommand = async (input, context) =
|
|
|
646
634
|
resolvedPath = __resolvedPath(resolvedPath, input, "resourceArn", () => input.resourceArn, "{resourceArn}", false);
|
|
647
635
|
let body;
|
|
648
636
|
body = JSON.stringify({
|
|
649
|
-
...(input.tags != null && { tags:
|
|
637
|
+
...(input.tags != null && { tags: se_TagMap(input.tags, context) }),
|
|
650
638
|
});
|
|
651
639
|
return new __HttpRequest({
|
|
652
640
|
protocol,
|
|
@@ -658,7 +646,7 @@ export const serializeAws_restJson1TagResourceCommand = async (input, context) =
|
|
|
658
646
|
body,
|
|
659
647
|
});
|
|
660
648
|
};
|
|
661
|
-
export const
|
|
649
|
+
export const se_UntagResourceCommand = async (input, context) => {
|
|
662
650
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
663
651
|
const headers = {};
|
|
664
652
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/tags/{resourceArn}";
|
|
@@ -681,7 +669,7 @@ export const serializeAws_restJson1UntagResourceCommand = async (input, context)
|
|
|
681
669
|
body,
|
|
682
670
|
});
|
|
683
671
|
};
|
|
684
|
-
export const
|
|
672
|
+
export const se_UpdateAddonCommand = async (input, context) => {
|
|
685
673
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
686
674
|
const headers = {
|
|
687
675
|
"content-type": "application/json",
|
|
@@ -708,7 +696,7 @@ export const serializeAws_restJson1UpdateAddonCommand = async (input, context) =
|
|
|
708
696
|
body,
|
|
709
697
|
});
|
|
710
698
|
};
|
|
711
|
-
export const
|
|
699
|
+
export const se_UpdateClusterConfigCommand = async (input, context) => {
|
|
712
700
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
713
701
|
const headers = {
|
|
714
702
|
"content-type": "application/json",
|
|
@@ -718,9 +706,9 @@ export const serializeAws_restJson1UpdateClusterConfigCommand = async (input, co
|
|
|
718
706
|
let body;
|
|
719
707
|
body = JSON.stringify({
|
|
720
708
|
clientRequestToken: input.clientRequestToken ?? generateIdempotencyToken(),
|
|
721
|
-
...(input.logging != null && { logging:
|
|
709
|
+
...(input.logging != null && { logging: se_Logging(input.logging, context) }),
|
|
722
710
|
...(input.resourcesVpcConfig != null && {
|
|
723
|
-
resourcesVpcConfig:
|
|
711
|
+
resourcesVpcConfig: se_VpcConfigRequest(input.resourcesVpcConfig, context),
|
|
724
712
|
}),
|
|
725
713
|
});
|
|
726
714
|
return new __HttpRequest({
|
|
@@ -733,7 +721,7 @@ export const serializeAws_restJson1UpdateClusterConfigCommand = async (input, co
|
|
|
733
721
|
body,
|
|
734
722
|
});
|
|
735
723
|
};
|
|
736
|
-
export const
|
|
724
|
+
export const se_UpdateClusterVersionCommand = async (input, context) => {
|
|
737
725
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
738
726
|
const headers = {
|
|
739
727
|
"content-type": "application/json",
|
|
@@ -755,7 +743,7 @@ export const serializeAws_restJson1UpdateClusterVersionCommand = async (input, c
|
|
|
755
743
|
body,
|
|
756
744
|
});
|
|
757
745
|
};
|
|
758
|
-
export const
|
|
746
|
+
export const se_UpdateNodegroupConfigCommand = async (input, context) => {
|
|
759
747
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
760
748
|
const headers = {
|
|
761
749
|
"content-type": "application/json",
|
|
@@ -767,14 +755,10 @@ export const serializeAws_restJson1UpdateNodegroupConfigCommand = async (input,
|
|
|
767
755
|
let body;
|
|
768
756
|
body = JSON.stringify({
|
|
769
757
|
clientRequestToken: input.clientRequestToken ?? generateIdempotencyToken(),
|
|
770
|
-
...(input.labels != null && { labels:
|
|
771
|
-
...(input.scalingConfig != null && {
|
|
772
|
-
|
|
773
|
-
}),
|
|
774
|
-
...(input.taints != null && { taints: serializeAws_restJson1UpdateTaintsPayload(input.taints, context) }),
|
|
775
|
-
...(input.updateConfig != null && {
|
|
776
|
-
updateConfig: serializeAws_restJson1NodegroupUpdateConfig(input.updateConfig, context),
|
|
777
|
-
}),
|
|
758
|
+
...(input.labels != null && { labels: se_UpdateLabelsPayload(input.labels, context) }),
|
|
759
|
+
...(input.scalingConfig != null && { scalingConfig: se_NodegroupScalingConfig(input.scalingConfig, context) }),
|
|
760
|
+
...(input.taints != null && { taints: se_UpdateTaintsPayload(input.taints, context) }),
|
|
761
|
+
...(input.updateConfig != null && { updateConfig: se_NodegroupUpdateConfig(input.updateConfig, context) }),
|
|
778
762
|
});
|
|
779
763
|
return new __HttpRequest({
|
|
780
764
|
protocol,
|
|
@@ -786,7 +770,7 @@ export const serializeAws_restJson1UpdateNodegroupConfigCommand = async (input,
|
|
|
786
770
|
body,
|
|
787
771
|
});
|
|
788
772
|
};
|
|
789
|
-
export const
|
|
773
|
+
export const se_UpdateNodegroupVersionCommand = async (input, context) => {
|
|
790
774
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
791
775
|
const headers = {
|
|
792
776
|
"content-type": "application/json",
|
|
@@ -800,7 +784,7 @@ export const serializeAws_restJson1UpdateNodegroupVersionCommand = async (input,
|
|
|
800
784
|
clientRequestToken: input.clientRequestToken ?? generateIdempotencyToken(),
|
|
801
785
|
...(input.force != null && { force: input.force }),
|
|
802
786
|
...(input.launchTemplate != null && {
|
|
803
|
-
launchTemplate:
|
|
787
|
+
launchTemplate: se_LaunchTemplateSpecification(input.launchTemplate, context),
|
|
804
788
|
}),
|
|
805
789
|
...(input.releaseVersion != null && { releaseVersion: input.releaseVersion }),
|
|
806
790
|
...(input.version != null && { version: input.version }),
|
|
@@ -815,20 +799,20 @@ export const serializeAws_restJson1UpdateNodegroupVersionCommand = async (input,
|
|
|
815
799
|
body,
|
|
816
800
|
});
|
|
817
801
|
};
|
|
818
|
-
export const
|
|
802
|
+
export const de_AssociateEncryptionConfigCommand = async (output, context) => {
|
|
819
803
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
820
|
-
return
|
|
804
|
+
return de_AssociateEncryptionConfigCommandError(output, context);
|
|
821
805
|
}
|
|
822
806
|
const contents = map({
|
|
823
807
|
$metadata: deserializeMetadata(output),
|
|
824
808
|
});
|
|
825
809
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
826
810
|
if (data.update != null) {
|
|
827
|
-
contents.update =
|
|
811
|
+
contents.update = de_Update(data.update, context);
|
|
828
812
|
}
|
|
829
813
|
return contents;
|
|
830
814
|
};
|
|
831
|
-
const
|
|
815
|
+
const de_AssociateEncryptionConfigCommandError = async (output, context) => {
|
|
832
816
|
const parsedOutput = {
|
|
833
817
|
...output,
|
|
834
818
|
body: await parseErrorBody(output.body, context),
|
|
@@ -837,22 +821,22 @@ const deserializeAws_restJson1AssociateEncryptionConfigCommandError = async (out
|
|
|
837
821
|
switch (errorCode) {
|
|
838
822
|
case "ClientException":
|
|
839
823
|
case "com.amazonaws.eks#ClientException":
|
|
840
|
-
throw await
|
|
824
|
+
throw await de_ClientExceptionRes(parsedOutput, context);
|
|
841
825
|
case "InvalidParameterException":
|
|
842
826
|
case "com.amazonaws.eks#InvalidParameterException":
|
|
843
|
-
throw await
|
|
827
|
+
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
844
828
|
case "InvalidRequestException":
|
|
845
829
|
case "com.amazonaws.eks#InvalidRequestException":
|
|
846
|
-
throw await
|
|
830
|
+
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
847
831
|
case "ResourceInUseException":
|
|
848
832
|
case "com.amazonaws.eks#ResourceInUseException":
|
|
849
|
-
throw await
|
|
833
|
+
throw await de_ResourceInUseExceptionRes(parsedOutput, context);
|
|
850
834
|
case "ResourceNotFoundException":
|
|
851
835
|
case "com.amazonaws.eks#ResourceNotFoundException":
|
|
852
|
-
throw await
|
|
836
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
853
837
|
case "ServerException":
|
|
854
838
|
case "com.amazonaws.eks#ServerException":
|
|
855
|
-
throw await
|
|
839
|
+
throw await de_ServerExceptionRes(parsedOutput, context);
|
|
856
840
|
default:
|
|
857
841
|
const parsedBody = parsedOutput.body;
|
|
858
842
|
throwDefaultError({
|
|
@@ -863,23 +847,23 @@ const deserializeAws_restJson1AssociateEncryptionConfigCommandError = async (out
|
|
|
863
847
|
});
|
|
864
848
|
}
|
|
865
849
|
};
|
|
866
|
-
export const
|
|
850
|
+
export const de_AssociateIdentityProviderConfigCommand = async (output, context) => {
|
|
867
851
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
868
|
-
return
|
|
852
|
+
return de_AssociateIdentityProviderConfigCommandError(output, context);
|
|
869
853
|
}
|
|
870
854
|
const contents = map({
|
|
871
855
|
$metadata: deserializeMetadata(output),
|
|
872
856
|
});
|
|
873
857
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
874
858
|
if (data.tags != null) {
|
|
875
|
-
contents.tags =
|
|
859
|
+
contents.tags = de_TagMap(data.tags, context);
|
|
876
860
|
}
|
|
877
861
|
if (data.update != null) {
|
|
878
|
-
contents.update =
|
|
862
|
+
contents.update = de_Update(data.update, context);
|
|
879
863
|
}
|
|
880
864
|
return contents;
|
|
881
865
|
};
|
|
882
|
-
const
|
|
866
|
+
const de_AssociateIdentityProviderConfigCommandError = async (output, context) => {
|
|
883
867
|
const parsedOutput = {
|
|
884
868
|
...output,
|
|
885
869
|
body: await parseErrorBody(output.body, context),
|
|
@@ -888,22 +872,22 @@ const deserializeAws_restJson1AssociateIdentityProviderConfigCommandError = asyn
|
|
|
888
872
|
switch (errorCode) {
|
|
889
873
|
case "ClientException":
|
|
890
874
|
case "com.amazonaws.eks#ClientException":
|
|
891
|
-
throw await
|
|
875
|
+
throw await de_ClientExceptionRes(parsedOutput, context);
|
|
892
876
|
case "InvalidParameterException":
|
|
893
877
|
case "com.amazonaws.eks#InvalidParameterException":
|
|
894
|
-
throw await
|
|
878
|
+
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
895
879
|
case "InvalidRequestException":
|
|
896
880
|
case "com.amazonaws.eks#InvalidRequestException":
|
|
897
|
-
throw await
|
|
881
|
+
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
898
882
|
case "ResourceInUseException":
|
|
899
883
|
case "com.amazonaws.eks#ResourceInUseException":
|
|
900
|
-
throw await
|
|
884
|
+
throw await de_ResourceInUseExceptionRes(parsedOutput, context);
|
|
901
885
|
case "ResourceNotFoundException":
|
|
902
886
|
case "com.amazonaws.eks#ResourceNotFoundException":
|
|
903
|
-
throw await
|
|
887
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
904
888
|
case "ServerException":
|
|
905
889
|
case "com.amazonaws.eks#ServerException":
|
|
906
|
-
throw await
|
|
890
|
+
throw await de_ServerExceptionRes(parsedOutput, context);
|
|
907
891
|
default:
|
|
908
892
|
const parsedBody = parsedOutput.body;
|
|
909
893
|
throwDefaultError({
|
|
@@ -914,20 +898,20 @@ const deserializeAws_restJson1AssociateIdentityProviderConfigCommandError = asyn
|
|
|
914
898
|
});
|
|
915
899
|
}
|
|
916
900
|
};
|
|
917
|
-
export const
|
|
901
|
+
export const de_CreateAddonCommand = async (output, context) => {
|
|
918
902
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
919
|
-
return
|
|
903
|
+
return de_CreateAddonCommandError(output, context);
|
|
920
904
|
}
|
|
921
905
|
const contents = map({
|
|
922
906
|
$metadata: deserializeMetadata(output),
|
|
923
907
|
});
|
|
924
908
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
925
909
|
if (data.addon != null) {
|
|
926
|
-
contents.addon =
|
|
910
|
+
contents.addon = de_Addon(data.addon, context);
|
|
927
911
|
}
|
|
928
912
|
return contents;
|
|
929
913
|
};
|
|
930
|
-
const
|
|
914
|
+
const de_CreateAddonCommandError = async (output, context) => {
|
|
931
915
|
const parsedOutput = {
|
|
932
916
|
...output,
|
|
933
917
|
body: await parseErrorBody(output.body, context),
|
|
@@ -936,22 +920,22 @@ const deserializeAws_restJson1CreateAddonCommandError = async (output, context)
|
|
|
936
920
|
switch (errorCode) {
|
|
937
921
|
case "ClientException":
|
|
938
922
|
case "com.amazonaws.eks#ClientException":
|
|
939
|
-
throw await
|
|
923
|
+
throw await de_ClientExceptionRes(parsedOutput, context);
|
|
940
924
|
case "InvalidParameterException":
|
|
941
925
|
case "com.amazonaws.eks#InvalidParameterException":
|
|
942
|
-
throw await
|
|
926
|
+
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
943
927
|
case "InvalidRequestException":
|
|
944
928
|
case "com.amazonaws.eks#InvalidRequestException":
|
|
945
|
-
throw await
|
|
929
|
+
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
946
930
|
case "ResourceInUseException":
|
|
947
931
|
case "com.amazonaws.eks#ResourceInUseException":
|
|
948
|
-
throw await
|
|
932
|
+
throw await de_ResourceInUseExceptionRes(parsedOutput, context);
|
|
949
933
|
case "ResourceNotFoundException":
|
|
950
934
|
case "com.amazonaws.eks#ResourceNotFoundException":
|
|
951
|
-
throw await
|
|
935
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
952
936
|
case "ServerException":
|
|
953
937
|
case "com.amazonaws.eks#ServerException":
|
|
954
|
-
throw await
|
|
938
|
+
throw await de_ServerExceptionRes(parsedOutput, context);
|
|
955
939
|
default:
|
|
956
940
|
const parsedBody = parsedOutput.body;
|
|
957
941
|
throwDefaultError({
|
|
@@ -962,20 +946,20 @@ const deserializeAws_restJson1CreateAddonCommandError = async (output, context)
|
|
|
962
946
|
});
|
|
963
947
|
}
|
|
964
948
|
};
|
|
965
|
-
export const
|
|
949
|
+
export const de_CreateClusterCommand = async (output, context) => {
|
|
966
950
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
967
|
-
return
|
|
951
|
+
return de_CreateClusterCommandError(output, context);
|
|
968
952
|
}
|
|
969
953
|
const contents = map({
|
|
970
954
|
$metadata: deserializeMetadata(output),
|
|
971
955
|
});
|
|
972
956
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
973
957
|
if (data.cluster != null) {
|
|
974
|
-
contents.cluster =
|
|
958
|
+
contents.cluster = de_Cluster(data.cluster, context);
|
|
975
959
|
}
|
|
976
960
|
return contents;
|
|
977
961
|
};
|
|
978
|
-
const
|
|
962
|
+
const de_CreateClusterCommandError = async (output, context) => {
|
|
979
963
|
const parsedOutput = {
|
|
980
964
|
...output,
|
|
981
965
|
body: await parseErrorBody(output.body, context),
|
|
@@ -984,25 +968,25 @@ const deserializeAws_restJson1CreateClusterCommandError = async (output, context
|
|
|
984
968
|
switch (errorCode) {
|
|
985
969
|
case "ClientException":
|
|
986
970
|
case "com.amazonaws.eks#ClientException":
|
|
987
|
-
throw await
|
|
971
|
+
throw await de_ClientExceptionRes(parsedOutput, context);
|
|
988
972
|
case "InvalidParameterException":
|
|
989
973
|
case "com.amazonaws.eks#InvalidParameterException":
|
|
990
|
-
throw await
|
|
974
|
+
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
991
975
|
case "ResourceInUseException":
|
|
992
976
|
case "com.amazonaws.eks#ResourceInUseException":
|
|
993
|
-
throw await
|
|
977
|
+
throw await de_ResourceInUseExceptionRes(parsedOutput, context);
|
|
994
978
|
case "ResourceLimitExceededException":
|
|
995
979
|
case "com.amazonaws.eks#ResourceLimitExceededException":
|
|
996
|
-
throw await
|
|
980
|
+
throw await de_ResourceLimitExceededExceptionRes(parsedOutput, context);
|
|
997
981
|
case "ServerException":
|
|
998
982
|
case "com.amazonaws.eks#ServerException":
|
|
999
|
-
throw await
|
|
983
|
+
throw await de_ServerExceptionRes(parsedOutput, context);
|
|
1000
984
|
case "ServiceUnavailableException":
|
|
1001
985
|
case "com.amazonaws.eks#ServiceUnavailableException":
|
|
1002
|
-
throw await
|
|
986
|
+
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
1003
987
|
case "UnsupportedAvailabilityZoneException":
|
|
1004
988
|
case "com.amazonaws.eks#UnsupportedAvailabilityZoneException":
|
|
1005
|
-
throw await
|
|
989
|
+
throw await de_UnsupportedAvailabilityZoneExceptionRes(parsedOutput, context);
|
|
1006
990
|
default:
|
|
1007
991
|
const parsedBody = parsedOutput.body;
|
|
1008
992
|
throwDefaultError({
|
|
@@ -1013,20 +997,20 @@ const deserializeAws_restJson1CreateClusterCommandError = async (output, context
|
|
|
1013
997
|
});
|
|
1014
998
|
}
|
|
1015
999
|
};
|
|
1016
|
-
export const
|
|
1000
|
+
export const de_CreateFargateProfileCommand = async (output, context) => {
|
|
1017
1001
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1018
|
-
return
|
|
1002
|
+
return de_CreateFargateProfileCommandError(output, context);
|
|
1019
1003
|
}
|
|
1020
1004
|
const contents = map({
|
|
1021
1005
|
$metadata: deserializeMetadata(output),
|
|
1022
1006
|
});
|
|
1023
1007
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
1024
1008
|
if (data.fargateProfile != null) {
|
|
1025
|
-
contents.fargateProfile =
|
|
1009
|
+
contents.fargateProfile = de_FargateProfile(data.fargateProfile, context);
|
|
1026
1010
|
}
|
|
1027
1011
|
return contents;
|
|
1028
1012
|
};
|
|
1029
|
-
const
|
|
1013
|
+
const de_CreateFargateProfileCommandError = async (output, context) => {
|
|
1030
1014
|
const parsedOutput = {
|
|
1031
1015
|
...output,
|
|
1032
1016
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1035,22 +1019,22 @@ const deserializeAws_restJson1CreateFargateProfileCommandError = async (output,
|
|
|
1035
1019
|
switch (errorCode) {
|
|
1036
1020
|
case "ClientException":
|
|
1037
1021
|
case "com.amazonaws.eks#ClientException":
|
|
1038
|
-
throw await
|
|
1022
|
+
throw await de_ClientExceptionRes(parsedOutput, context);
|
|
1039
1023
|
case "InvalidParameterException":
|
|
1040
1024
|
case "com.amazonaws.eks#InvalidParameterException":
|
|
1041
|
-
throw await
|
|
1025
|
+
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
1042
1026
|
case "InvalidRequestException":
|
|
1043
1027
|
case "com.amazonaws.eks#InvalidRequestException":
|
|
1044
|
-
throw await
|
|
1028
|
+
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
1045
1029
|
case "ResourceLimitExceededException":
|
|
1046
1030
|
case "com.amazonaws.eks#ResourceLimitExceededException":
|
|
1047
|
-
throw await
|
|
1031
|
+
throw await de_ResourceLimitExceededExceptionRes(parsedOutput, context);
|
|
1048
1032
|
case "ServerException":
|
|
1049
1033
|
case "com.amazonaws.eks#ServerException":
|
|
1050
|
-
throw await
|
|
1034
|
+
throw await de_ServerExceptionRes(parsedOutput, context);
|
|
1051
1035
|
case "UnsupportedAvailabilityZoneException":
|
|
1052
1036
|
case "com.amazonaws.eks#UnsupportedAvailabilityZoneException":
|
|
1053
|
-
throw await
|
|
1037
|
+
throw await de_UnsupportedAvailabilityZoneExceptionRes(parsedOutput, context);
|
|
1054
1038
|
default:
|
|
1055
1039
|
const parsedBody = parsedOutput.body;
|
|
1056
1040
|
throwDefaultError({
|
|
@@ -1061,20 +1045,20 @@ const deserializeAws_restJson1CreateFargateProfileCommandError = async (output,
|
|
|
1061
1045
|
});
|
|
1062
1046
|
}
|
|
1063
1047
|
};
|
|
1064
|
-
export const
|
|
1048
|
+
export const de_CreateNodegroupCommand = async (output, context) => {
|
|
1065
1049
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1066
|
-
return
|
|
1050
|
+
return de_CreateNodegroupCommandError(output, context);
|
|
1067
1051
|
}
|
|
1068
1052
|
const contents = map({
|
|
1069
1053
|
$metadata: deserializeMetadata(output),
|
|
1070
1054
|
});
|
|
1071
1055
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
1072
1056
|
if (data.nodegroup != null) {
|
|
1073
|
-
contents.nodegroup =
|
|
1057
|
+
contents.nodegroup = de_Nodegroup(data.nodegroup, context);
|
|
1074
1058
|
}
|
|
1075
1059
|
return contents;
|
|
1076
1060
|
};
|
|
1077
|
-
const
|
|
1061
|
+
const de_CreateNodegroupCommandError = async (output, context) => {
|
|
1078
1062
|
const parsedOutput = {
|
|
1079
1063
|
...output,
|
|
1080
1064
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1083,25 +1067,25 @@ const deserializeAws_restJson1CreateNodegroupCommandError = async (output, conte
|
|
|
1083
1067
|
switch (errorCode) {
|
|
1084
1068
|
case "ClientException":
|
|
1085
1069
|
case "com.amazonaws.eks#ClientException":
|
|
1086
|
-
throw await
|
|
1070
|
+
throw await de_ClientExceptionRes(parsedOutput, context);
|
|
1087
1071
|
case "InvalidParameterException":
|
|
1088
1072
|
case "com.amazonaws.eks#InvalidParameterException":
|
|
1089
|
-
throw await
|
|
1073
|
+
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
1090
1074
|
case "InvalidRequestException":
|
|
1091
1075
|
case "com.amazonaws.eks#InvalidRequestException":
|
|
1092
|
-
throw await
|
|
1076
|
+
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
1093
1077
|
case "ResourceInUseException":
|
|
1094
1078
|
case "com.amazonaws.eks#ResourceInUseException":
|
|
1095
|
-
throw await
|
|
1079
|
+
throw await de_ResourceInUseExceptionRes(parsedOutput, context);
|
|
1096
1080
|
case "ResourceLimitExceededException":
|
|
1097
1081
|
case "com.amazonaws.eks#ResourceLimitExceededException":
|
|
1098
|
-
throw await
|
|
1082
|
+
throw await de_ResourceLimitExceededExceptionRes(parsedOutput, context);
|
|
1099
1083
|
case "ServerException":
|
|
1100
1084
|
case "com.amazonaws.eks#ServerException":
|
|
1101
|
-
throw await
|
|
1085
|
+
throw await de_ServerExceptionRes(parsedOutput, context);
|
|
1102
1086
|
case "ServiceUnavailableException":
|
|
1103
1087
|
case "com.amazonaws.eks#ServiceUnavailableException":
|
|
1104
|
-
throw await
|
|
1088
|
+
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
1105
1089
|
default:
|
|
1106
1090
|
const parsedBody = parsedOutput.body;
|
|
1107
1091
|
throwDefaultError({
|
|
@@ -1112,20 +1096,20 @@ const deserializeAws_restJson1CreateNodegroupCommandError = async (output, conte
|
|
|
1112
1096
|
});
|
|
1113
1097
|
}
|
|
1114
1098
|
};
|
|
1115
|
-
export const
|
|
1099
|
+
export const de_DeleteAddonCommand = async (output, context) => {
|
|
1116
1100
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1117
|
-
return
|
|
1101
|
+
return de_DeleteAddonCommandError(output, context);
|
|
1118
1102
|
}
|
|
1119
1103
|
const contents = map({
|
|
1120
1104
|
$metadata: deserializeMetadata(output),
|
|
1121
1105
|
});
|
|
1122
1106
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
1123
1107
|
if (data.addon != null) {
|
|
1124
|
-
contents.addon =
|
|
1108
|
+
contents.addon = de_Addon(data.addon, context);
|
|
1125
1109
|
}
|
|
1126
1110
|
return contents;
|
|
1127
1111
|
};
|
|
1128
|
-
const
|
|
1112
|
+
const de_DeleteAddonCommandError = async (output, context) => {
|
|
1129
1113
|
const parsedOutput = {
|
|
1130
1114
|
...output,
|
|
1131
1115
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1134,19 +1118,19 @@ const deserializeAws_restJson1DeleteAddonCommandError = async (output, context)
|
|
|
1134
1118
|
switch (errorCode) {
|
|
1135
1119
|
case "ClientException":
|
|
1136
1120
|
case "com.amazonaws.eks#ClientException":
|
|
1137
|
-
throw await
|
|
1121
|
+
throw await de_ClientExceptionRes(parsedOutput, context);
|
|
1138
1122
|
case "InvalidParameterException":
|
|
1139
1123
|
case "com.amazonaws.eks#InvalidParameterException":
|
|
1140
|
-
throw await
|
|
1124
|
+
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
1141
1125
|
case "InvalidRequestException":
|
|
1142
1126
|
case "com.amazonaws.eks#InvalidRequestException":
|
|
1143
|
-
throw await
|
|
1127
|
+
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
1144
1128
|
case "ResourceNotFoundException":
|
|
1145
1129
|
case "com.amazonaws.eks#ResourceNotFoundException":
|
|
1146
|
-
throw await
|
|
1130
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1147
1131
|
case "ServerException":
|
|
1148
1132
|
case "com.amazonaws.eks#ServerException":
|
|
1149
|
-
throw await
|
|
1133
|
+
throw await de_ServerExceptionRes(parsedOutput, context);
|
|
1150
1134
|
default:
|
|
1151
1135
|
const parsedBody = parsedOutput.body;
|
|
1152
1136
|
throwDefaultError({
|
|
@@ -1157,20 +1141,20 @@ const deserializeAws_restJson1DeleteAddonCommandError = async (output, context)
|
|
|
1157
1141
|
});
|
|
1158
1142
|
}
|
|
1159
1143
|
};
|
|
1160
|
-
export const
|
|
1144
|
+
export const de_DeleteClusterCommand = async (output, context) => {
|
|
1161
1145
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1162
|
-
return
|
|
1146
|
+
return de_DeleteClusterCommandError(output, context);
|
|
1163
1147
|
}
|
|
1164
1148
|
const contents = map({
|
|
1165
1149
|
$metadata: deserializeMetadata(output),
|
|
1166
1150
|
});
|
|
1167
1151
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
1168
1152
|
if (data.cluster != null) {
|
|
1169
|
-
contents.cluster =
|
|
1153
|
+
contents.cluster = de_Cluster(data.cluster, context);
|
|
1170
1154
|
}
|
|
1171
1155
|
return contents;
|
|
1172
1156
|
};
|
|
1173
|
-
const
|
|
1157
|
+
const de_DeleteClusterCommandError = async (output, context) => {
|
|
1174
1158
|
const parsedOutput = {
|
|
1175
1159
|
...output,
|
|
1176
1160
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1179,19 +1163,19 @@ const deserializeAws_restJson1DeleteClusterCommandError = async (output, context
|
|
|
1179
1163
|
switch (errorCode) {
|
|
1180
1164
|
case "ClientException":
|
|
1181
1165
|
case "com.amazonaws.eks#ClientException":
|
|
1182
|
-
throw await
|
|
1166
|
+
throw await de_ClientExceptionRes(parsedOutput, context);
|
|
1183
1167
|
case "ResourceInUseException":
|
|
1184
1168
|
case "com.amazonaws.eks#ResourceInUseException":
|
|
1185
|
-
throw await
|
|
1169
|
+
throw await de_ResourceInUseExceptionRes(parsedOutput, context);
|
|
1186
1170
|
case "ResourceNotFoundException":
|
|
1187
1171
|
case "com.amazonaws.eks#ResourceNotFoundException":
|
|
1188
|
-
throw await
|
|
1172
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1189
1173
|
case "ServerException":
|
|
1190
1174
|
case "com.amazonaws.eks#ServerException":
|
|
1191
|
-
throw await
|
|
1175
|
+
throw await de_ServerExceptionRes(parsedOutput, context);
|
|
1192
1176
|
case "ServiceUnavailableException":
|
|
1193
1177
|
case "com.amazonaws.eks#ServiceUnavailableException":
|
|
1194
|
-
throw await
|
|
1178
|
+
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
1195
1179
|
default:
|
|
1196
1180
|
const parsedBody = parsedOutput.body;
|
|
1197
1181
|
throwDefaultError({
|
|
@@ -1202,20 +1186,20 @@ const deserializeAws_restJson1DeleteClusterCommandError = async (output, context
|
|
|
1202
1186
|
});
|
|
1203
1187
|
}
|
|
1204
1188
|
};
|
|
1205
|
-
export const
|
|
1189
|
+
export const de_DeleteFargateProfileCommand = async (output, context) => {
|
|
1206
1190
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1207
|
-
return
|
|
1191
|
+
return de_DeleteFargateProfileCommandError(output, context);
|
|
1208
1192
|
}
|
|
1209
1193
|
const contents = map({
|
|
1210
1194
|
$metadata: deserializeMetadata(output),
|
|
1211
1195
|
});
|
|
1212
1196
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
1213
1197
|
if (data.fargateProfile != null) {
|
|
1214
|
-
contents.fargateProfile =
|
|
1198
|
+
contents.fargateProfile = de_FargateProfile(data.fargateProfile, context);
|
|
1215
1199
|
}
|
|
1216
1200
|
return contents;
|
|
1217
1201
|
};
|
|
1218
|
-
const
|
|
1202
|
+
const de_DeleteFargateProfileCommandError = async (output, context) => {
|
|
1219
1203
|
const parsedOutput = {
|
|
1220
1204
|
...output,
|
|
1221
1205
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1224,16 +1208,16 @@ const deserializeAws_restJson1DeleteFargateProfileCommandError = async (output,
|
|
|
1224
1208
|
switch (errorCode) {
|
|
1225
1209
|
case "ClientException":
|
|
1226
1210
|
case "com.amazonaws.eks#ClientException":
|
|
1227
|
-
throw await
|
|
1211
|
+
throw await de_ClientExceptionRes(parsedOutput, context);
|
|
1228
1212
|
case "InvalidParameterException":
|
|
1229
1213
|
case "com.amazonaws.eks#InvalidParameterException":
|
|
1230
|
-
throw await
|
|
1214
|
+
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
1231
1215
|
case "ResourceNotFoundException":
|
|
1232
1216
|
case "com.amazonaws.eks#ResourceNotFoundException":
|
|
1233
|
-
throw await
|
|
1217
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1234
1218
|
case "ServerException":
|
|
1235
1219
|
case "com.amazonaws.eks#ServerException":
|
|
1236
|
-
throw await
|
|
1220
|
+
throw await de_ServerExceptionRes(parsedOutput, context);
|
|
1237
1221
|
default:
|
|
1238
1222
|
const parsedBody = parsedOutput.body;
|
|
1239
1223
|
throwDefaultError({
|
|
@@ -1244,20 +1228,20 @@ const deserializeAws_restJson1DeleteFargateProfileCommandError = async (output,
|
|
|
1244
1228
|
});
|
|
1245
1229
|
}
|
|
1246
1230
|
};
|
|
1247
|
-
export const
|
|
1231
|
+
export const de_DeleteNodegroupCommand = async (output, context) => {
|
|
1248
1232
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1249
|
-
return
|
|
1233
|
+
return de_DeleteNodegroupCommandError(output, context);
|
|
1250
1234
|
}
|
|
1251
1235
|
const contents = map({
|
|
1252
1236
|
$metadata: deserializeMetadata(output),
|
|
1253
1237
|
});
|
|
1254
1238
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
1255
1239
|
if (data.nodegroup != null) {
|
|
1256
|
-
contents.nodegroup =
|
|
1240
|
+
contents.nodegroup = de_Nodegroup(data.nodegroup, context);
|
|
1257
1241
|
}
|
|
1258
1242
|
return contents;
|
|
1259
1243
|
};
|
|
1260
|
-
const
|
|
1244
|
+
const de_DeleteNodegroupCommandError = async (output, context) => {
|
|
1261
1245
|
const parsedOutput = {
|
|
1262
1246
|
...output,
|
|
1263
1247
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1266,22 +1250,22 @@ const deserializeAws_restJson1DeleteNodegroupCommandError = async (output, conte
|
|
|
1266
1250
|
switch (errorCode) {
|
|
1267
1251
|
case "ClientException":
|
|
1268
1252
|
case "com.amazonaws.eks#ClientException":
|
|
1269
|
-
throw await
|
|
1253
|
+
throw await de_ClientExceptionRes(parsedOutput, context);
|
|
1270
1254
|
case "InvalidParameterException":
|
|
1271
1255
|
case "com.amazonaws.eks#InvalidParameterException":
|
|
1272
|
-
throw await
|
|
1256
|
+
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
1273
1257
|
case "ResourceInUseException":
|
|
1274
1258
|
case "com.amazonaws.eks#ResourceInUseException":
|
|
1275
|
-
throw await
|
|
1259
|
+
throw await de_ResourceInUseExceptionRes(parsedOutput, context);
|
|
1276
1260
|
case "ResourceNotFoundException":
|
|
1277
1261
|
case "com.amazonaws.eks#ResourceNotFoundException":
|
|
1278
|
-
throw await
|
|
1262
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1279
1263
|
case "ServerException":
|
|
1280
1264
|
case "com.amazonaws.eks#ServerException":
|
|
1281
|
-
throw await
|
|
1265
|
+
throw await de_ServerExceptionRes(parsedOutput, context);
|
|
1282
1266
|
case "ServiceUnavailableException":
|
|
1283
1267
|
case "com.amazonaws.eks#ServiceUnavailableException":
|
|
1284
|
-
throw await
|
|
1268
|
+
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
1285
1269
|
default:
|
|
1286
1270
|
const parsedBody = parsedOutput.body;
|
|
1287
1271
|
throwDefaultError({
|
|
@@ -1292,20 +1276,20 @@ const deserializeAws_restJson1DeleteNodegroupCommandError = async (output, conte
|
|
|
1292
1276
|
});
|
|
1293
1277
|
}
|
|
1294
1278
|
};
|
|
1295
|
-
export const
|
|
1279
|
+
export const de_DeregisterClusterCommand = async (output, context) => {
|
|
1296
1280
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1297
|
-
return
|
|
1281
|
+
return de_DeregisterClusterCommandError(output, context);
|
|
1298
1282
|
}
|
|
1299
1283
|
const contents = map({
|
|
1300
1284
|
$metadata: deserializeMetadata(output),
|
|
1301
1285
|
});
|
|
1302
1286
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
1303
1287
|
if (data.cluster != null) {
|
|
1304
|
-
contents.cluster =
|
|
1288
|
+
contents.cluster = de_Cluster(data.cluster, context);
|
|
1305
1289
|
}
|
|
1306
1290
|
return contents;
|
|
1307
1291
|
};
|
|
1308
|
-
const
|
|
1292
|
+
const de_DeregisterClusterCommandError = async (output, context) => {
|
|
1309
1293
|
const parsedOutput = {
|
|
1310
1294
|
...output,
|
|
1311
1295
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1314,22 +1298,22 @@ const deserializeAws_restJson1DeregisterClusterCommandError = async (output, con
|
|
|
1314
1298
|
switch (errorCode) {
|
|
1315
1299
|
case "AccessDeniedException":
|
|
1316
1300
|
case "com.amazonaws.eks#AccessDeniedException":
|
|
1317
|
-
throw await
|
|
1301
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1318
1302
|
case "ClientException":
|
|
1319
1303
|
case "com.amazonaws.eks#ClientException":
|
|
1320
|
-
throw await
|
|
1304
|
+
throw await de_ClientExceptionRes(parsedOutput, context);
|
|
1321
1305
|
case "ResourceInUseException":
|
|
1322
1306
|
case "com.amazonaws.eks#ResourceInUseException":
|
|
1323
|
-
throw await
|
|
1307
|
+
throw await de_ResourceInUseExceptionRes(parsedOutput, context);
|
|
1324
1308
|
case "ResourceNotFoundException":
|
|
1325
1309
|
case "com.amazonaws.eks#ResourceNotFoundException":
|
|
1326
|
-
throw await
|
|
1310
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1327
1311
|
case "ServerException":
|
|
1328
1312
|
case "com.amazonaws.eks#ServerException":
|
|
1329
|
-
throw await
|
|
1313
|
+
throw await de_ServerExceptionRes(parsedOutput, context);
|
|
1330
1314
|
case "ServiceUnavailableException":
|
|
1331
1315
|
case "com.amazonaws.eks#ServiceUnavailableException":
|
|
1332
|
-
throw await
|
|
1316
|
+
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
1333
1317
|
default:
|
|
1334
1318
|
const parsedBody = parsedOutput.body;
|
|
1335
1319
|
throwDefaultError({
|
|
@@ -1340,20 +1324,20 @@ const deserializeAws_restJson1DeregisterClusterCommandError = async (output, con
|
|
|
1340
1324
|
});
|
|
1341
1325
|
}
|
|
1342
1326
|
};
|
|
1343
|
-
export const
|
|
1327
|
+
export const de_DescribeAddonCommand = async (output, context) => {
|
|
1344
1328
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1345
|
-
return
|
|
1329
|
+
return de_DescribeAddonCommandError(output, context);
|
|
1346
1330
|
}
|
|
1347
1331
|
const contents = map({
|
|
1348
1332
|
$metadata: deserializeMetadata(output),
|
|
1349
1333
|
});
|
|
1350
1334
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
1351
1335
|
if (data.addon != null) {
|
|
1352
|
-
contents.addon =
|
|
1336
|
+
contents.addon = de_Addon(data.addon, context);
|
|
1353
1337
|
}
|
|
1354
1338
|
return contents;
|
|
1355
1339
|
};
|
|
1356
|
-
const
|
|
1340
|
+
const de_DescribeAddonCommandError = async (output, context) => {
|
|
1357
1341
|
const parsedOutput = {
|
|
1358
1342
|
...output,
|
|
1359
1343
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1362,19 +1346,19 @@ const deserializeAws_restJson1DescribeAddonCommandError = async (output, context
|
|
|
1362
1346
|
switch (errorCode) {
|
|
1363
1347
|
case "ClientException":
|
|
1364
1348
|
case "com.amazonaws.eks#ClientException":
|
|
1365
|
-
throw await
|
|
1349
|
+
throw await de_ClientExceptionRes(parsedOutput, context);
|
|
1366
1350
|
case "InvalidParameterException":
|
|
1367
1351
|
case "com.amazonaws.eks#InvalidParameterException":
|
|
1368
|
-
throw await
|
|
1352
|
+
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
1369
1353
|
case "InvalidRequestException":
|
|
1370
1354
|
case "com.amazonaws.eks#InvalidRequestException":
|
|
1371
|
-
throw await
|
|
1355
|
+
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
1372
1356
|
case "ResourceNotFoundException":
|
|
1373
1357
|
case "com.amazonaws.eks#ResourceNotFoundException":
|
|
1374
|
-
throw await
|
|
1358
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1375
1359
|
case "ServerException":
|
|
1376
1360
|
case "com.amazonaws.eks#ServerException":
|
|
1377
|
-
throw await
|
|
1361
|
+
throw await de_ServerExceptionRes(parsedOutput, context);
|
|
1378
1362
|
default:
|
|
1379
1363
|
const parsedBody = parsedOutput.body;
|
|
1380
1364
|
throwDefaultError({
|
|
@@ -1385,9 +1369,9 @@ const deserializeAws_restJson1DescribeAddonCommandError = async (output, context
|
|
|
1385
1369
|
});
|
|
1386
1370
|
}
|
|
1387
1371
|
};
|
|
1388
|
-
export const
|
|
1372
|
+
export const de_DescribeAddonConfigurationCommand = async (output, context) => {
|
|
1389
1373
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1390
|
-
return
|
|
1374
|
+
return de_DescribeAddonConfigurationCommandError(output, context);
|
|
1391
1375
|
}
|
|
1392
1376
|
const contents = map({
|
|
1393
1377
|
$metadata: deserializeMetadata(output),
|
|
@@ -1404,7 +1388,7 @@ export const deserializeAws_restJson1DescribeAddonConfigurationCommand = async (
|
|
|
1404
1388
|
}
|
|
1405
1389
|
return contents;
|
|
1406
1390
|
};
|
|
1407
|
-
const
|
|
1391
|
+
const de_DescribeAddonConfigurationCommandError = async (output, context) => {
|
|
1408
1392
|
const parsedOutput = {
|
|
1409
1393
|
...output,
|
|
1410
1394
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1413,13 +1397,13 @@ const deserializeAws_restJson1DescribeAddonConfigurationCommandError = async (ou
|
|
|
1413
1397
|
switch (errorCode) {
|
|
1414
1398
|
case "InvalidParameterException":
|
|
1415
1399
|
case "com.amazonaws.eks#InvalidParameterException":
|
|
1416
|
-
throw await
|
|
1400
|
+
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
1417
1401
|
case "ResourceNotFoundException":
|
|
1418
1402
|
case "com.amazonaws.eks#ResourceNotFoundException":
|
|
1419
|
-
throw await
|
|
1403
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1420
1404
|
case "ServerException":
|
|
1421
1405
|
case "com.amazonaws.eks#ServerException":
|
|
1422
|
-
throw await
|
|
1406
|
+
throw await de_ServerExceptionRes(parsedOutput, context);
|
|
1423
1407
|
default:
|
|
1424
1408
|
const parsedBody = parsedOutput.body;
|
|
1425
1409
|
throwDefaultError({
|
|
@@ -1430,23 +1414,23 @@ const deserializeAws_restJson1DescribeAddonConfigurationCommandError = async (ou
|
|
|
1430
1414
|
});
|
|
1431
1415
|
}
|
|
1432
1416
|
};
|
|
1433
|
-
export const
|
|
1417
|
+
export const de_DescribeAddonVersionsCommand = async (output, context) => {
|
|
1434
1418
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1435
|
-
return
|
|
1419
|
+
return de_DescribeAddonVersionsCommandError(output, context);
|
|
1436
1420
|
}
|
|
1437
1421
|
const contents = map({
|
|
1438
1422
|
$metadata: deserializeMetadata(output),
|
|
1439
1423
|
});
|
|
1440
1424
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
1441
1425
|
if (data.addons != null) {
|
|
1442
|
-
contents.addons =
|
|
1426
|
+
contents.addons = de_Addons(data.addons, context);
|
|
1443
1427
|
}
|
|
1444
1428
|
if (data.nextToken != null) {
|
|
1445
1429
|
contents.nextToken = __expectString(data.nextToken);
|
|
1446
1430
|
}
|
|
1447
1431
|
return contents;
|
|
1448
1432
|
};
|
|
1449
|
-
const
|
|
1433
|
+
const de_DescribeAddonVersionsCommandError = async (output, context) => {
|
|
1450
1434
|
const parsedOutput = {
|
|
1451
1435
|
...output,
|
|
1452
1436
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1455,13 +1439,13 @@ const deserializeAws_restJson1DescribeAddonVersionsCommandError = async (output,
|
|
|
1455
1439
|
switch (errorCode) {
|
|
1456
1440
|
case "InvalidParameterException":
|
|
1457
1441
|
case "com.amazonaws.eks#InvalidParameterException":
|
|
1458
|
-
throw await
|
|
1442
|
+
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
1459
1443
|
case "ResourceNotFoundException":
|
|
1460
1444
|
case "com.amazonaws.eks#ResourceNotFoundException":
|
|
1461
|
-
throw await
|
|
1445
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1462
1446
|
case "ServerException":
|
|
1463
1447
|
case "com.amazonaws.eks#ServerException":
|
|
1464
|
-
throw await
|
|
1448
|
+
throw await de_ServerExceptionRes(parsedOutput, context);
|
|
1465
1449
|
default:
|
|
1466
1450
|
const parsedBody = parsedOutput.body;
|
|
1467
1451
|
throwDefaultError({
|
|
@@ -1472,20 +1456,20 @@ const deserializeAws_restJson1DescribeAddonVersionsCommandError = async (output,
|
|
|
1472
1456
|
});
|
|
1473
1457
|
}
|
|
1474
1458
|
};
|
|
1475
|
-
export const
|
|
1459
|
+
export const de_DescribeClusterCommand = async (output, context) => {
|
|
1476
1460
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1477
|
-
return
|
|
1461
|
+
return de_DescribeClusterCommandError(output, context);
|
|
1478
1462
|
}
|
|
1479
1463
|
const contents = map({
|
|
1480
1464
|
$metadata: deserializeMetadata(output),
|
|
1481
1465
|
});
|
|
1482
1466
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
1483
1467
|
if (data.cluster != null) {
|
|
1484
|
-
contents.cluster =
|
|
1468
|
+
contents.cluster = de_Cluster(data.cluster, context);
|
|
1485
1469
|
}
|
|
1486
1470
|
return contents;
|
|
1487
1471
|
};
|
|
1488
|
-
const
|
|
1472
|
+
const de_DescribeClusterCommandError = async (output, context) => {
|
|
1489
1473
|
const parsedOutput = {
|
|
1490
1474
|
...output,
|
|
1491
1475
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1494,16 +1478,16 @@ const deserializeAws_restJson1DescribeClusterCommandError = async (output, conte
|
|
|
1494
1478
|
switch (errorCode) {
|
|
1495
1479
|
case "ClientException":
|
|
1496
1480
|
case "com.amazonaws.eks#ClientException":
|
|
1497
|
-
throw await
|
|
1481
|
+
throw await de_ClientExceptionRes(parsedOutput, context);
|
|
1498
1482
|
case "ResourceNotFoundException":
|
|
1499
1483
|
case "com.amazonaws.eks#ResourceNotFoundException":
|
|
1500
|
-
throw await
|
|
1484
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1501
1485
|
case "ServerException":
|
|
1502
1486
|
case "com.amazonaws.eks#ServerException":
|
|
1503
|
-
throw await
|
|
1487
|
+
throw await de_ServerExceptionRes(parsedOutput, context);
|
|
1504
1488
|
case "ServiceUnavailableException":
|
|
1505
1489
|
case "com.amazonaws.eks#ServiceUnavailableException":
|
|
1506
|
-
throw await
|
|
1490
|
+
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
1507
1491
|
default:
|
|
1508
1492
|
const parsedBody = parsedOutput.body;
|
|
1509
1493
|
throwDefaultError({
|
|
@@ -1514,20 +1498,20 @@ const deserializeAws_restJson1DescribeClusterCommandError = async (output, conte
|
|
|
1514
1498
|
});
|
|
1515
1499
|
}
|
|
1516
1500
|
};
|
|
1517
|
-
export const
|
|
1501
|
+
export const de_DescribeFargateProfileCommand = async (output, context) => {
|
|
1518
1502
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1519
|
-
return
|
|
1503
|
+
return de_DescribeFargateProfileCommandError(output, context);
|
|
1520
1504
|
}
|
|
1521
1505
|
const contents = map({
|
|
1522
1506
|
$metadata: deserializeMetadata(output),
|
|
1523
1507
|
});
|
|
1524
1508
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
1525
1509
|
if (data.fargateProfile != null) {
|
|
1526
|
-
contents.fargateProfile =
|
|
1510
|
+
contents.fargateProfile = de_FargateProfile(data.fargateProfile, context);
|
|
1527
1511
|
}
|
|
1528
1512
|
return contents;
|
|
1529
1513
|
};
|
|
1530
|
-
const
|
|
1514
|
+
const de_DescribeFargateProfileCommandError = async (output, context) => {
|
|
1531
1515
|
const parsedOutput = {
|
|
1532
1516
|
...output,
|
|
1533
1517
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1536,16 +1520,16 @@ const deserializeAws_restJson1DescribeFargateProfileCommandError = async (output
|
|
|
1536
1520
|
switch (errorCode) {
|
|
1537
1521
|
case "ClientException":
|
|
1538
1522
|
case "com.amazonaws.eks#ClientException":
|
|
1539
|
-
throw await
|
|
1523
|
+
throw await de_ClientExceptionRes(parsedOutput, context);
|
|
1540
1524
|
case "InvalidParameterException":
|
|
1541
1525
|
case "com.amazonaws.eks#InvalidParameterException":
|
|
1542
|
-
throw await
|
|
1526
|
+
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
1543
1527
|
case "ResourceNotFoundException":
|
|
1544
1528
|
case "com.amazonaws.eks#ResourceNotFoundException":
|
|
1545
|
-
throw await
|
|
1529
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1546
1530
|
case "ServerException":
|
|
1547
1531
|
case "com.amazonaws.eks#ServerException":
|
|
1548
|
-
throw await
|
|
1532
|
+
throw await de_ServerExceptionRes(parsedOutput, context);
|
|
1549
1533
|
default:
|
|
1550
1534
|
const parsedBody = parsedOutput.body;
|
|
1551
1535
|
throwDefaultError({
|
|
@@ -1556,20 +1540,20 @@ const deserializeAws_restJson1DescribeFargateProfileCommandError = async (output
|
|
|
1556
1540
|
});
|
|
1557
1541
|
}
|
|
1558
1542
|
};
|
|
1559
|
-
export const
|
|
1543
|
+
export const de_DescribeIdentityProviderConfigCommand = async (output, context) => {
|
|
1560
1544
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1561
|
-
return
|
|
1545
|
+
return de_DescribeIdentityProviderConfigCommandError(output, context);
|
|
1562
1546
|
}
|
|
1563
1547
|
const contents = map({
|
|
1564
1548
|
$metadata: deserializeMetadata(output),
|
|
1565
1549
|
});
|
|
1566
1550
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
1567
1551
|
if (data.identityProviderConfig != null) {
|
|
1568
|
-
contents.identityProviderConfig =
|
|
1552
|
+
contents.identityProviderConfig = de_IdentityProviderConfigResponse(data.identityProviderConfig, context);
|
|
1569
1553
|
}
|
|
1570
1554
|
return contents;
|
|
1571
1555
|
};
|
|
1572
|
-
const
|
|
1556
|
+
const de_DescribeIdentityProviderConfigCommandError = async (output, context) => {
|
|
1573
1557
|
const parsedOutput = {
|
|
1574
1558
|
...output,
|
|
1575
1559
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1578,19 +1562,19 @@ const deserializeAws_restJson1DescribeIdentityProviderConfigCommandError = async
|
|
|
1578
1562
|
switch (errorCode) {
|
|
1579
1563
|
case "ClientException":
|
|
1580
1564
|
case "com.amazonaws.eks#ClientException":
|
|
1581
|
-
throw await
|
|
1565
|
+
throw await de_ClientExceptionRes(parsedOutput, context);
|
|
1582
1566
|
case "InvalidParameterException":
|
|
1583
1567
|
case "com.amazonaws.eks#InvalidParameterException":
|
|
1584
|
-
throw await
|
|
1568
|
+
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
1585
1569
|
case "ResourceNotFoundException":
|
|
1586
1570
|
case "com.amazonaws.eks#ResourceNotFoundException":
|
|
1587
|
-
throw await
|
|
1571
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1588
1572
|
case "ServerException":
|
|
1589
1573
|
case "com.amazonaws.eks#ServerException":
|
|
1590
|
-
throw await
|
|
1574
|
+
throw await de_ServerExceptionRes(parsedOutput, context);
|
|
1591
1575
|
case "ServiceUnavailableException":
|
|
1592
1576
|
case "com.amazonaws.eks#ServiceUnavailableException":
|
|
1593
|
-
throw await
|
|
1577
|
+
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
1594
1578
|
default:
|
|
1595
1579
|
const parsedBody = parsedOutput.body;
|
|
1596
1580
|
throwDefaultError({
|
|
@@ -1601,20 +1585,20 @@ const deserializeAws_restJson1DescribeIdentityProviderConfigCommandError = async
|
|
|
1601
1585
|
});
|
|
1602
1586
|
}
|
|
1603
1587
|
};
|
|
1604
|
-
export const
|
|
1588
|
+
export const de_DescribeNodegroupCommand = async (output, context) => {
|
|
1605
1589
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1606
|
-
return
|
|
1590
|
+
return de_DescribeNodegroupCommandError(output, context);
|
|
1607
1591
|
}
|
|
1608
1592
|
const contents = map({
|
|
1609
1593
|
$metadata: deserializeMetadata(output),
|
|
1610
1594
|
});
|
|
1611
1595
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
1612
1596
|
if (data.nodegroup != null) {
|
|
1613
|
-
contents.nodegroup =
|
|
1597
|
+
contents.nodegroup = de_Nodegroup(data.nodegroup, context);
|
|
1614
1598
|
}
|
|
1615
1599
|
return contents;
|
|
1616
1600
|
};
|
|
1617
|
-
const
|
|
1601
|
+
const de_DescribeNodegroupCommandError = async (output, context) => {
|
|
1618
1602
|
const parsedOutput = {
|
|
1619
1603
|
...output,
|
|
1620
1604
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1623,19 +1607,19 @@ const deserializeAws_restJson1DescribeNodegroupCommandError = async (output, con
|
|
|
1623
1607
|
switch (errorCode) {
|
|
1624
1608
|
case "ClientException":
|
|
1625
1609
|
case "com.amazonaws.eks#ClientException":
|
|
1626
|
-
throw await
|
|
1610
|
+
throw await de_ClientExceptionRes(parsedOutput, context);
|
|
1627
1611
|
case "InvalidParameterException":
|
|
1628
1612
|
case "com.amazonaws.eks#InvalidParameterException":
|
|
1629
|
-
throw await
|
|
1613
|
+
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
1630
1614
|
case "ResourceNotFoundException":
|
|
1631
1615
|
case "com.amazonaws.eks#ResourceNotFoundException":
|
|
1632
|
-
throw await
|
|
1616
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1633
1617
|
case "ServerException":
|
|
1634
1618
|
case "com.amazonaws.eks#ServerException":
|
|
1635
|
-
throw await
|
|
1619
|
+
throw await de_ServerExceptionRes(parsedOutput, context);
|
|
1636
1620
|
case "ServiceUnavailableException":
|
|
1637
1621
|
case "com.amazonaws.eks#ServiceUnavailableException":
|
|
1638
|
-
throw await
|
|
1622
|
+
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
1639
1623
|
default:
|
|
1640
1624
|
const parsedBody = parsedOutput.body;
|
|
1641
1625
|
throwDefaultError({
|
|
@@ -1646,20 +1630,20 @@ const deserializeAws_restJson1DescribeNodegroupCommandError = async (output, con
|
|
|
1646
1630
|
});
|
|
1647
1631
|
}
|
|
1648
1632
|
};
|
|
1649
|
-
export const
|
|
1633
|
+
export const de_DescribeUpdateCommand = async (output, context) => {
|
|
1650
1634
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1651
|
-
return
|
|
1635
|
+
return de_DescribeUpdateCommandError(output, context);
|
|
1652
1636
|
}
|
|
1653
1637
|
const contents = map({
|
|
1654
1638
|
$metadata: deserializeMetadata(output),
|
|
1655
1639
|
});
|
|
1656
1640
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
1657
1641
|
if (data.update != null) {
|
|
1658
|
-
contents.update =
|
|
1642
|
+
contents.update = de_Update(data.update, context);
|
|
1659
1643
|
}
|
|
1660
1644
|
return contents;
|
|
1661
1645
|
};
|
|
1662
|
-
const
|
|
1646
|
+
const de_DescribeUpdateCommandError = async (output, context) => {
|
|
1663
1647
|
const parsedOutput = {
|
|
1664
1648
|
...output,
|
|
1665
1649
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1668,16 +1652,16 @@ const deserializeAws_restJson1DescribeUpdateCommandError = async (output, contex
|
|
|
1668
1652
|
switch (errorCode) {
|
|
1669
1653
|
case "ClientException":
|
|
1670
1654
|
case "com.amazonaws.eks#ClientException":
|
|
1671
|
-
throw await
|
|
1655
|
+
throw await de_ClientExceptionRes(parsedOutput, context);
|
|
1672
1656
|
case "InvalidParameterException":
|
|
1673
1657
|
case "com.amazonaws.eks#InvalidParameterException":
|
|
1674
|
-
throw await
|
|
1658
|
+
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
1675
1659
|
case "ResourceNotFoundException":
|
|
1676
1660
|
case "com.amazonaws.eks#ResourceNotFoundException":
|
|
1677
|
-
throw await
|
|
1661
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1678
1662
|
case "ServerException":
|
|
1679
1663
|
case "com.amazonaws.eks#ServerException":
|
|
1680
|
-
throw await
|
|
1664
|
+
throw await de_ServerExceptionRes(parsedOutput, context);
|
|
1681
1665
|
default:
|
|
1682
1666
|
const parsedBody = parsedOutput.body;
|
|
1683
1667
|
throwDefaultError({
|
|
@@ -1688,20 +1672,20 @@ const deserializeAws_restJson1DescribeUpdateCommandError = async (output, contex
|
|
|
1688
1672
|
});
|
|
1689
1673
|
}
|
|
1690
1674
|
};
|
|
1691
|
-
export const
|
|
1675
|
+
export const de_DisassociateIdentityProviderConfigCommand = async (output, context) => {
|
|
1692
1676
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1693
|
-
return
|
|
1677
|
+
return de_DisassociateIdentityProviderConfigCommandError(output, context);
|
|
1694
1678
|
}
|
|
1695
1679
|
const contents = map({
|
|
1696
1680
|
$metadata: deserializeMetadata(output),
|
|
1697
1681
|
});
|
|
1698
1682
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
1699
1683
|
if (data.update != null) {
|
|
1700
|
-
contents.update =
|
|
1684
|
+
contents.update = de_Update(data.update, context);
|
|
1701
1685
|
}
|
|
1702
1686
|
return contents;
|
|
1703
1687
|
};
|
|
1704
|
-
const
|
|
1688
|
+
const de_DisassociateIdentityProviderConfigCommandError = async (output, context) => {
|
|
1705
1689
|
const parsedOutput = {
|
|
1706
1690
|
...output,
|
|
1707
1691
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1710,22 +1694,22 @@ const deserializeAws_restJson1DisassociateIdentityProviderConfigCommandError = a
|
|
|
1710
1694
|
switch (errorCode) {
|
|
1711
1695
|
case "ClientException":
|
|
1712
1696
|
case "com.amazonaws.eks#ClientException":
|
|
1713
|
-
throw await
|
|
1697
|
+
throw await de_ClientExceptionRes(parsedOutput, context);
|
|
1714
1698
|
case "InvalidParameterException":
|
|
1715
1699
|
case "com.amazonaws.eks#InvalidParameterException":
|
|
1716
|
-
throw await
|
|
1700
|
+
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
1717
1701
|
case "InvalidRequestException":
|
|
1718
1702
|
case "com.amazonaws.eks#InvalidRequestException":
|
|
1719
|
-
throw await
|
|
1703
|
+
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
1720
1704
|
case "ResourceInUseException":
|
|
1721
1705
|
case "com.amazonaws.eks#ResourceInUseException":
|
|
1722
|
-
throw await
|
|
1706
|
+
throw await de_ResourceInUseExceptionRes(parsedOutput, context);
|
|
1723
1707
|
case "ResourceNotFoundException":
|
|
1724
1708
|
case "com.amazonaws.eks#ResourceNotFoundException":
|
|
1725
|
-
throw await
|
|
1709
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1726
1710
|
case "ServerException":
|
|
1727
1711
|
case "com.amazonaws.eks#ServerException":
|
|
1728
|
-
throw await
|
|
1712
|
+
throw await de_ServerExceptionRes(parsedOutput, context);
|
|
1729
1713
|
default:
|
|
1730
1714
|
const parsedBody = parsedOutput.body;
|
|
1731
1715
|
throwDefaultError({
|
|
@@ -1736,23 +1720,23 @@ const deserializeAws_restJson1DisassociateIdentityProviderConfigCommandError = a
|
|
|
1736
1720
|
});
|
|
1737
1721
|
}
|
|
1738
1722
|
};
|
|
1739
|
-
export const
|
|
1723
|
+
export const de_ListAddonsCommand = async (output, context) => {
|
|
1740
1724
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1741
|
-
return
|
|
1725
|
+
return de_ListAddonsCommandError(output, context);
|
|
1742
1726
|
}
|
|
1743
1727
|
const contents = map({
|
|
1744
1728
|
$metadata: deserializeMetadata(output),
|
|
1745
1729
|
});
|
|
1746
1730
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
1747
1731
|
if (data.addons != null) {
|
|
1748
|
-
contents.addons =
|
|
1732
|
+
contents.addons = de_StringList(data.addons, context);
|
|
1749
1733
|
}
|
|
1750
1734
|
if (data.nextToken != null) {
|
|
1751
1735
|
contents.nextToken = __expectString(data.nextToken);
|
|
1752
1736
|
}
|
|
1753
1737
|
return contents;
|
|
1754
1738
|
};
|
|
1755
|
-
const
|
|
1739
|
+
const de_ListAddonsCommandError = async (output, context) => {
|
|
1756
1740
|
const parsedOutput = {
|
|
1757
1741
|
...output,
|
|
1758
1742
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1761,19 +1745,19 @@ const deserializeAws_restJson1ListAddonsCommandError = async (output, context) =
|
|
|
1761
1745
|
switch (errorCode) {
|
|
1762
1746
|
case "ClientException":
|
|
1763
1747
|
case "com.amazonaws.eks#ClientException":
|
|
1764
|
-
throw await
|
|
1748
|
+
throw await de_ClientExceptionRes(parsedOutput, context);
|
|
1765
1749
|
case "InvalidParameterException":
|
|
1766
1750
|
case "com.amazonaws.eks#InvalidParameterException":
|
|
1767
|
-
throw await
|
|
1751
|
+
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
1768
1752
|
case "InvalidRequestException":
|
|
1769
1753
|
case "com.amazonaws.eks#InvalidRequestException":
|
|
1770
|
-
throw await
|
|
1754
|
+
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
1771
1755
|
case "ResourceNotFoundException":
|
|
1772
1756
|
case "com.amazonaws.eks#ResourceNotFoundException":
|
|
1773
|
-
throw await
|
|
1757
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1774
1758
|
case "ServerException":
|
|
1775
1759
|
case "com.amazonaws.eks#ServerException":
|
|
1776
|
-
throw await
|
|
1760
|
+
throw await de_ServerExceptionRes(parsedOutput, context);
|
|
1777
1761
|
default:
|
|
1778
1762
|
const parsedBody = parsedOutput.body;
|
|
1779
1763
|
throwDefaultError({
|
|
@@ -1784,23 +1768,23 @@ const deserializeAws_restJson1ListAddonsCommandError = async (output, context) =
|
|
|
1784
1768
|
});
|
|
1785
1769
|
}
|
|
1786
1770
|
};
|
|
1787
|
-
export const
|
|
1771
|
+
export const de_ListClustersCommand = async (output, context) => {
|
|
1788
1772
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1789
|
-
return
|
|
1773
|
+
return de_ListClustersCommandError(output, context);
|
|
1790
1774
|
}
|
|
1791
1775
|
const contents = map({
|
|
1792
1776
|
$metadata: deserializeMetadata(output),
|
|
1793
1777
|
});
|
|
1794
1778
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
1795
1779
|
if (data.clusters != null) {
|
|
1796
|
-
contents.clusters =
|
|
1780
|
+
contents.clusters = de_StringList(data.clusters, context);
|
|
1797
1781
|
}
|
|
1798
1782
|
if (data.nextToken != null) {
|
|
1799
1783
|
contents.nextToken = __expectString(data.nextToken);
|
|
1800
1784
|
}
|
|
1801
1785
|
return contents;
|
|
1802
1786
|
};
|
|
1803
|
-
const
|
|
1787
|
+
const de_ListClustersCommandError = async (output, context) => {
|
|
1804
1788
|
const parsedOutput = {
|
|
1805
1789
|
...output,
|
|
1806
1790
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1809,16 +1793,16 @@ const deserializeAws_restJson1ListClustersCommandError = async (output, context)
|
|
|
1809
1793
|
switch (errorCode) {
|
|
1810
1794
|
case "ClientException":
|
|
1811
1795
|
case "com.amazonaws.eks#ClientException":
|
|
1812
|
-
throw await
|
|
1796
|
+
throw await de_ClientExceptionRes(parsedOutput, context);
|
|
1813
1797
|
case "InvalidParameterException":
|
|
1814
1798
|
case "com.amazonaws.eks#InvalidParameterException":
|
|
1815
|
-
throw await
|
|
1799
|
+
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
1816
1800
|
case "ServerException":
|
|
1817
1801
|
case "com.amazonaws.eks#ServerException":
|
|
1818
|
-
throw await
|
|
1802
|
+
throw await de_ServerExceptionRes(parsedOutput, context);
|
|
1819
1803
|
case "ServiceUnavailableException":
|
|
1820
1804
|
case "com.amazonaws.eks#ServiceUnavailableException":
|
|
1821
|
-
throw await
|
|
1805
|
+
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
1822
1806
|
default:
|
|
1823
1807
|
const parsedBody = parsedOutput.body;
|
|
1824
1808
|
throwDefaultError({
|
|
@@ -1829,23 +1813,23 @@ const deserializeAws_restJson1ListClustersCommandError = async (output, context)
|
|
|
1829
1813
|
});
|
|
1830
1814
|
}
|
|
1831
1815
|
};
|
|
1832
|
-
export const
|
|
1816
|
+
export const de_ListFargateProfilesCommand = async (output, context) => {
|
|
1833
1817
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1834
|
-
return
|
|
1818
|
+
return de_ListFargateProfilesCommandError(output, context);
|
|
1835
1819
|
}
|
|
1836
1820
|
const contents = map({
|
|
1837
1821
|
$metadata: deserializeMetadata(output),
|
|
1838
1822
|
});
|
|
1839
1823
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
1840
1824
|
if (data.fargateProfileNames != null) {
|
|
1841
|
-
contents.fargateProfileNames =
|
|
1825
|
+
contents.fargateProfileNames = de_StringList(data.fargateProfileNames, context);
|
|
1842
1826
|
}
|
|
1843
1827
|
if (data.nextToken != null) {
|
|
1844
1828
|
contents.nextToken = __expectString(data.nextToken);
|
|
1845
1829
|
}
|
|
1846
1830
|
return contents;
|
|
1847
1831
|
};
|
|
1848
|
-
const
|
|
1832
|
+
const de_ListFargateProfilesCommandError = async (output, context) => {
|
|
1849
1833
|
const parsedOutput = {
|
|
1850
1834
|
...output,
|
|
1851
1835
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1854,16 +1838,16 @@ const deserializeAws_restJson1ListFargateProfilesCommandError = async (output, c
|
|
|
1854
1838
|
switch (errorCode) {
|
|
1855
1839
|
case "ClientException":
|
|
1856
1840
|
case "com.amazonaws.eks#ClientException":
|
|
1857
|
-
throw await
|
|
1841
|
+
throw await de_ClientExceptionRes(parsedOutput, context);
|
|
1858
1842
|
case "InvalidParameterException":
|
|
1859
1843
|
case "com.amazonaws.eks#InvalidParameterException":
|
|
1860
|
-
throw await
|
|
1844
|
+
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
1861
1845
|
case "ResourceNotFoundException":
|
|
1862
1846
|
case "com.amazonaws.eks#ResourceNotFoundException":
|
|
1863
|
-
throw await
|
|
1847
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1864
1848
|
case "ServerException":
|
|
1865
1849
|
case "com.amazonaws.eks#ServerException":
|
|
1866
|
-
throw await
|
|
1850
|
+
throw await de_ServerExceptionRes(parsedOutput, context);
|
|
1867
1851
|
default:
|
|
1868
1852
|
const parsedBody = parsedOutput.body;
|
|
1869
1853
|
throwDefaultError({
|
|
@@ -1874,23 +1858,23 @@ const deserializeAws_restJson1ListFargateProfilesCommandError = async (output, c
|
|
|
1874
1858
|
});
|
|
1875
1859
|
}
|
|
1876
1860
|
};
|
|
1877
|
-
export const
|
|
1861
|
+
export const de_ListIdentityProviderConfigsCommand = async (output, context) => {
|
|
1878
1862
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1879
|
-
return
|
|
1863
|
+
return de_ListIdentityProviderConfigsCommandError(output, context);
|
|
1880
1864
|
}
|
|
1881
1865
|
const contents = map({
|
|
1882
1866
|
$metadata: deserializeMetadata(output),
|
|
1883
1867
|
});
|
|
1884
1868
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
1885
1869
|
if (data.identityProviderConfigs != null) {
|
|
1886
|
-
contents.identityProviderConfigs =
|
|
1870
|
+
contents.identityProviderConfigs = de_IdentityProviderConfigs(data.identityProviderConfigs, context);
|
|
1887
1871
|
}
|
|
1888
1872
|
if (data.nextToken != null) {
|
|
1889
1873
|
contents.nextToken = __expectString(data.nextToken);
|
|
1890
1874
|
}
|
|
1891
1875
|
return contents;
|
|
1892
1876
|
};
|
|
1893
|
-
const
|
|
1877
|
+
const de_ListIdentityProviderConfigsCommandError = async (output, context) => {
|
|
1894
1878
|
const parsedOutput = {
|
|
1895
1879
|
...output,
|
|
1896
1880
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1899,19 +1883,19 @@ const deserializeAws_restJson1ListIdentityProviderConfigsCommandError = async (o
|
|
|
1899
1883
|
switch (errorCode) {
|
|
1900
1884
|
case "ClientException":
|
|
1901
1885
|
case "com.amazonaws.eks#ClientException":
|
|
1902
|
-
throw await
|
|
1886
|
+
throw await de_ClientExceptionRes(parsedOutput, context);
|
|
1903
1887
|
case "InvalidParameterException":
|
|
1904
1888
|
case "com.amazonaws.eks#InvalidParameterException":
|
|
1905
|
-
throw await
|
|
1889
|
+
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
1906
1890
|
case "ResourceNotFoundException":
|
|
1907
1891
|
case "com.amazonaws.eks#ResourceNotFoundException":
|
|
1908
|
-
throw await
|
|
1892
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1909
1893
|
case "ServerException":
|
|
1910
1894
|
case "com.amazonaws.eks#ServerException":
|
|
1911
|
-
throw await
|
|
1895
|
+
throw await de_ServerExceptionRes(parsedOutput, context);
|
|
1912
1896
|
case "ServiceUnavailableException":
|
|
1913
1897
|
case "com.amazonaws.eks#ServiceUnavailableException":
|
|
1914
|
-
throw await
|
|
1898
|
+
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
1915
1899
|
default:
|
|
1916
1900
|
const parsedBody = parsedOutput.body;
|
|
1917
1901
|
throwDefaultError({
|
|
@@ -1922,9 +1906,9 @@ const deserializeAws_restJson1ListIdentityProviderConfigsCommandError = async (o
|
|
|
1922
1906
|
});
|
|
1923
1907
|
}
|
|
1924
1908
|
};
|
|
1925
|
-
export const
|
|
1909
|
+
export const de_ListNodegroupsCommand = async (output, context) => {
|
|
1926
1910
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1927
|
-
return
|
|
1911
|
+
return de_ListNodegroupsCommandError(output, context);
|
|
1928
1912
|
}
|
|
1929
1913
|
const contents = map({
|
|
1930
1914
|
$metadata: deserializeMetadata(output),
|
|
@@ -1934,11 +1918,11 @@ export const deserializeAws_restJson1ListNodegroupsCommand = async (output, cont
|
|
|
1934
1918
|
contents.nextToken = __expectString(data.nextToken);
|
|
1935
1919
|
}
|
|
1936
1920
|
if (data.nodegroups != null) {
|
|
1937
|
-
contents.nodegroups =
|
|
1921
|
+
contents.nodegroups = de_StringList(data.nodegroups, context);
|
|
1938
1922
|
}
|
|
1939
1923
|
return contents;
|
|
1940
1924
|
};
|
|
1941
|
-
const
|
|
1925
|
+
const de_ListNodegroupsCommandError = async (output, context) => {
|
|
1942
1926
|
const parsedOutput = {
|
|
1943
1927
|
...output,
|
|
1944
1928
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1947,19 +1931,19 @@ const deserializeAws_restJson1ListNodegroupsCommandError = async (output, contex
|
|
|
1947
1931
|
switch (errorCode) {
|
|
1948
1932
|
case "ClientException":
|
|
1949
1933
|
case "com.amazonaws.eks#ClientException":
|
|
1950
|
-
throw await
|
|
1934
|
+
throw await de_ClientExceptionRes(parsedOutput, context);
|
|
1951
1935
|
case "InvalidParameterException":
|
|
1952
1936
|
case "com.amazonaws.eks#InvalidParameterException":
|
|
1953
|
-
throw await
|
|
1937
|
+
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
1954
1938
|
case "ResourceNotFoundException":
|
|
1955
1939
|
case "com.amazonaws.eks#ResourceNotFoundException":
|
|
1956
|
-
throw await
|
|
1940
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1957
1941
|
case "ServerException":
|
|
1958
1942
|
case "com.amazonaws.eks#ServerException":
|
|
1959
|
-
throw await
|
|
1943
|
+
throw await de_ServerExceptionRes(parsedOutput, context);
|
|
1960
1944
|
case "ServiceUnavailableException":
|
|
1961
1945
|
case "com.amazonaws.eks#ServiceUnavailableException":
|
|
1962
|
-
throw await
|
|
1946
|
+
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
1963
1947
|
default:
|
|
1964
1948
|
const parsedBody = parsedOutput.body;
|
|
1965
1949
|
throwDefaultError({
|
|
@@ -1970,20 +1954,20 @@ const deserializeAws_restJson1ListNodegroupsCommandError = async (output, contex
|
|
|
1970
1954
|
});
|
|
1971
1955
|
}
|
|
1972
1956
|
};
|
|
1973
|
-
export const
|
|
1957
|
+
export const de_ListTagsForResourceCommand = async (output, context) => {
|
|
1974
1958
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1975
|
-
return
|
|
1959
|
+
return de_ListTagsForResourceCommandError(output, context);
|
|
1976
1960
|
}
|
|
1977
1961
|
const contents = map({
|
|
1978
1962
|
$metadata: deserializeMetadata(output),
|
|
1979
1963
|
});
|
|
1980
1964
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
1981
1965
|
if (data.tags != null) {
|
|
1982
|
-
contents.tags =
|
|
1966
|
+
contents.tags = de_TagMap(data.tags, context);
|
|
1983
1967
|
}
|
|
1984
1968
|
return contents;
|
|
1985
1969
|
};
|
|
1986
|
-
const
|
|
1970
|
+
const de_ListTagsForResourceCommandError = async (output, context) => {
|
|
1987
1971
|
const parsedOutput = {
|
|
1988
1972
|
...output,
|
|
1989
1973
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1992,10 +1976,10 @@ const deserializeAws_restJson1ListTagsForResourceCommandError = async (output, c
|
|
|
1992
1976
|
switch (errorCode) {
|
|
1993
1977
|
case "BadRequestException":
|
|
1994
1978
|
case "com.amazonaws.eks#BadRequestException":
|
|
1995
|
-
throw await
|
|
1979
|
+
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
1996
1980
|
case "NotFoundException":
|
|
1997
1981
|
case "com.amazonaws.eks#NotFoundException":
|
|
1998
|
-
throw await
|
|
1982
|
+
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
1999
1983
|
default:
|
|
2000
1984
|
const parsedBody = parsedOutput.body;
|
|
2001
1985
|
throwDefaultError({
|
|
@@ -2006,9 +1990,9 @@ const deserializeAws_restJson1ListTagsForResourceCommandError = async (output, c
|
|
|
2006
1990
|
});
|
|
2007
1991
|
}
|
|
2008
1992
|
};
|
|
2009
|
-
export const
|
|
1993
|
+
export const de_ListUpdatesCommand = async (output, context) => {
|
|
2010
1994
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2011
|
-
return
|
|
1995
|
+
return de_ListUpdatesCommandError(output, context);
|
|
2012
1996
|
}
|
|
2013
1997
|
const contents = map({
|
|
2014
1998
|
$metadata: deserializeMetadata(output),
|
|
@@ -2018,11 +2002,11 @@ export const deserializeAws_restJson1ListUpdatesCommand = async (output, context
|
|
|
2018
2002
|
contents.nextToken = __expectString(data.nextToken);
|
|
2019
2003
|
}
|
|
2020
2004
|
if (data.updateIds != null) {
|
|
2021
|
-
contents.updateIds =
|
|
2005
|
+
contents.updateIds = de_StringList(data.updateIds, context);
|
|
2022
2006
|
}
|
|
2023
2007
|
return contents;
|
|
2024
2008
|
};
|
|
2025
|
-
const
|
|
2009
|
+
const de_ListUpdatesCommandError = async (output, context) => {
|
|
2026
2010
|
const parsedOutput = {
|
|
2027
2011
|
...output,
|
|
2028
2012
|
body: await parseErrorBody(output.body, context),
|
|
@@ -2031,16 +2015,16 @@ const deserializeAws_restJson1ListUpdatesCommandError = async (output, context)
|
|
|
2031
2015
|
switch (errorCode) {
|
|
2032
2016
|
case "ClientException":
|
|
2033
2017
|
case "com.amazonaws.eks#ClientException":
|
|
2034
|
-
throw await
|
|
2018
|
+
throw await de_ClientExceptionRes(parsedOutput, context);
|
|
2035
2019
|
case "InvalidParameterException":
|
|
2036
2020
|
case "com.amazonaws.eks#InvalidParameterException":
|
|
2037
|
-
throw await
|
|
2021
|
+
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
2038
2022
|
case "ResourceNotFoundException":
|
|
2039
2023
|
case "com.amazonaws.eks#ResourceNotFoundException":
|
|
2040
|
-
throw await
|
|
2024
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2041
2025
|
case "ServerException":
|
|
2042
2026
|
case "com.amazonaws.eks#ServerException":
|
|
2043
|
-
throw await
|
|
2027
|
+
throw await de_ServerExceptionRes(parsedOutput, context);
|
|
2044
2028
|
default:
|
|
2045
2029
|
const parsedBody = parsedOutput.body;
|
|
2046
2030
|
throwDefaultError({
|
|
@@ -2051,20 +2035,20 @@ const deserializeAws_restJson1ListUpdatesCommandError = async (output, context)
|
|
|
2051
2035
|
});
|
|
2052
2036
|
}
|
|
2053
2037
|
};
|
|
2054
|
-
export const
|
|
2038
|
+
export const de_RegisterClusterCommand = async (output, context) => {
|
|
2055
2039
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2056
|
-
return
|
|
2040
|
+
return de_RegisterClusterCommandError(output, context);
|
|
2057
2041
|
}
|
|
2058
2042
|
const contents = map({
|
|
2059
2043
|
$metadata: deserializeMetadata(output),
|
|
2060
2044
|
});
|
|
2061
2045
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
2062
2046
|
if (data.cluster != null) {
|
|
2063
|
-
contents.cluster =
|
|
2047
|
+
contents.cluster = de_Cluster(data.cluster, context);
|
|
2064
2048
|
}
|
|
2065
2049
|
return contents;
|
|
2066
2050
|
};
|
|
2067
|
-
const
|
|
2051
|
+
const de_RegisterClusterCommandError = async (output, context) => {
|
|
2068
2052
|
const parsedOutput = {
|
|
2069
2053
|
...output,
|
|
2070
2054
|
body: await parseErrorBody(output.body, context),
|
|
@@ -2073,28 +2057,28 @@ const deserializeAws_restJson1RegisterClusterCommandError = async (output, conte
|
|
|
2073
2057
|
switch (errorCode) {
|
|
2074
2058
|
case "AccessDeniedException":
|
|
2075
2059
|
case "com.amazonaws.eks#AccessDeniedException":
|
|
2076
|
-
throw await
|
|
2060
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2077
2061
|
case "ClientException":
|
|
2078
2062
|
case "com.amazonaws.eks#ClientException":
|
|
2079
|
-
throw await
|
|
2063
|
+
throw await de_ClientExceptionRes(parsedOutput, context);
|
|
2080
2064
|
case "InvalidParameterException":
|
|
2081
2065
|
case "com.amazonaws.eks#InvalidParameterException":
|
|
2082
|
-
throw await
|
|
2066
|
+
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
2083
2067
|
case "ResourceInUseException":
|
|
2084
2068
|
case "com.amazonaws.eks#ResourceInUseException":
|
|
2085
|
-
throw await
|
|
2069
|
+
throw await de_ResourceInUseExceptionRes(parsedOutput, context);
|
|
2086
2070
|
case "ResourceLimitExceededException":
|
|
2087
2071
|
case "com.amazonaws.eks#ResourceLimitExceededException":
|
|
2088
|
-
throw await
|
|
2072
|
+
throw await de_ResourceLimitExceededExceptionRes(parsedOutput, context);
|
|
2089
2073
|
case "ResourcePropagationDelayException":
|
|
2090
2074
|
case "com.amazonaws.eks#ResourcePropagationDelayException":
|
|
2091
|
-
throw await
|
|
2075
|
+
throw await de_ResourcePropagationDelayExceptionRes(parsedOutput, context);
|
|
2092
2076
|
case "ServerException":
|
|
2093
2077
|
case "com.amazonaws.eks#ServerException":
|
|
2094
|
-
throw await
|
|
2078
|
+
throw await de_ServerExceptionRes(parsedOutput, context);
|
|
2095
2079
|
case "ServiceUnavailableException":
|
|
2096
2080
|
case "com.amazonaws.eks#ServiceUnavailableException":
|
|
2097
|
-
throw await
|
|
2081
|
+
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
2098
2082
|
default:
|
|
2099
2083
|
const parsedBody = parsedOutput.body;
|
|
2100
2084
|
throwDefaultError({
|
|
@@ -2105,9 +2089,9 @@ const deserializeAws_restJson1RegisterClusterCommandError = async (output, conte
|
|
|
2105
2089
|
});
|
|
2106
2090
|
}
|
|
2107
2091
|
};
|
|
2108
|
-
export const
|
|
2092
|
+
export const de_TagResourceCommand = async (output, context) => {
|
|
2109
2093
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2110
|
-
return
|
|
2094
|
+
return de_TagResourceCommandError(output, context);
|
|
2111
2095
|
}
|
|
2112
2096
|
const contents = map({
|
|
2113
2097
|
$metadata: deserializeMetadata(output),
|
|
@@ -2115,7 +2099,7 @@ export const deserializeAws_restJson1TagResourceCommand = async (output, context
|
|
|
2115
2099
|
await collectBody(output.body, context);
|
|
2116
2100
|
return contents;
|
|
2117
2101
|
};
|
|
2118
|
-
const
|
|
2102
|
+
const de_TagResourceCommandError = async (output, context) => {
|
|
2119
2103
|
const parsedOutput = {
|
|
2120
2104
|
...output,
|
|
2121
2105
|
body: await parseErrorBody(output.body, context),
|
|
@@ -2124,10 +2108,10 @@ const deserializeAws_restJson1TagResourceCommandError = async (output, context)
|
|
|
2124
2108
|
switch (errorCode) {
|
|
2125
2109
|
case "BadRequestException":
|
|
2126
2110
|
case "com.amazonaws.eks#BadRequestException":
|
|
2127
|
-
throw await
|
|
2111
|
+
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
2128
2112
|
case "NotFoundException":
|
|
2129
2113
|
case "com.amazonaws.eks#NotFoundException":
|
|
2130
|
-
throw await
|
|
2114
|
+
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
2131
2115
|
default:
|
|
2132
2116
|
const parsedBody = parsedOutput.body;
|
|
2133
2117
|
throwDefaultError({
|
|
@@ -2138,9 +2122,9 @@ const deserializeAws_restJson1TagResourceCommandError = async (output, context)
|
|
|
2138
2122
|
});
|
|
2139
2123
|
}
|
|
2140
2124
|
};
|
|
2141
|
-
export const
|
|
2125
|
+
export const de_UntagResourceCommand = async (output, context) => {
|
|
2142
2126
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2143
|
-
return
|
|
2127
|
+
return de_UntagResourceCommandError(output, context);
|
|
2144
2128
|
}
|
|
2145
2129
|
const contents = map({
|
|
2146
2130
|
$metadata: deserializeMetadata(output),
|
|
@@ -2148,7 +2132,7 @@ export const deserializeAws_restJson1UntagResourceCommand = async (output, conte
|
|
|
2148
2132
|
await collectBody(output.body, context);
|
|
2149
2133
|
return contents;
|
|
2150
2134
|
};
|
|
2151
|
-
const
|
|
2135
|
+
const de_UntagResourceCommandError = async (output, context) => {
|
|
2152
2136
|
const parsedOutput = {
|
|
2153
2137
|
...output,
|
|
2154
2138
|
body: await parseErrorBody(output.body, context),
|
|
@@ -2157,10 +2141,10 @@ const deserializeAws_restJson1UntagResourceCommandError = async (output, context
|
|
|
2157
2141
|
switch (errorCode) {
|
|
2158
2142
|
case "BadRequestException":
|
|
2159
2143
|
case "com.amazonaws.eks#BadRequestException":
|
|
2160
|
-
throw await
|
|
2144
|
+
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
2161
2145
|
case "NotFoundException":
|
|
2162
2146
|
case "com.amazonaws.eks#NotFoundException":
|
|
2163
|
-
throw await
|
|
2147
|
+
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
2164
2148
|
default:
|
|
2165
2149
|
const parsedBody = parsedOutput.body;
|
|
2166
2150
|
throwDefaultError({
|
|
@@ -2171,20 +2155,20 @@ const deserializeAws_restJson1UntagResourceCommandError = async (output, context
|
|
|
2171
2155
|
});
|
|
2172
2156
|
}
|
|
2173
2157
|
};
|
|
2174
|
-
export const
|
|
2158
|
+
export const de_UpdateAddonCommand = async (output, context) => {
|
|
2175
2159
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2176
|
-
return
|
|
2160
|
+
return de_UpdateAddonCommandError(output, context);
|
|
2177
2161
|
}
|
|
2178
2162
|
const contents = map({
|
|
2179
2163
|
$metadata: deserializeMetadata(output),
|
|
2180
2164
|
});
|
|
2181
2165
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
2182
2166
|
if (data.update != null) {
|
|
2183
|
-
contents.update =
|
|
2167
|
+
contents.update = de_Update(data.update, context);
|
|
2184
2168
|
}
|
|
2185
2169
|
return contents;
|
|
2186
2170
|
};
|
|
2187
|
-
const
|
|
2171
|
+
const de_UpdateAddonCommandError = async (output, context) => {
|
|
2188
2172
|
const parsedOutput = {
|
|
2189
2173
|
...output,
|
|
2190
2174
|
body: await parseErrorBody(output.body, context),
|
|
@@ -2193,22 +2177,22 @@ const deserializeAws_restJson1UpdateAddonCommandError = async (output, context)
|
|
|
2193
2177
|
switch (errorCode) {
|
|
2194
2178
|
case "ClientException":
|
|
2195
2179
|
case "com.amazonaws.eks#ClientException":
|
|
2196
|
-
throw await
|
|
2180
|
+
throw await de_ClientExceptionRes(parsedOutput, context);
|
|
2197
2181
|
case "InvalidParameterException":
|
|
2198
2182
|
case "com.amazonaws.eks#InvalidParameterException":
|
|
2199
|
-
throw await
|
|
2183
|
+
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
2200
2184
|
case "InvalidRequestException":
|
|
2201
2185
|
case "com.amazonaws.eks#InvalidRequestException":
|
|
2202
|
-
throw await
|
|
2186
|
+
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
2203
2187
|
case "ResourceInUseException":
|
|
2204
2188
|
case "com.amazonaws.eks#ResourceInUseException":
|
|
2205
|
-
throw await
|
|
2189
|
+
throw await de_ResourceInUseExceptionRes(parsedOutput, context);
|
|
2206
2190
|
case "ResourceNotFoundException":
|
|
2207
2191
|
case "com.amazonaws.eks#ResourceNotFoundException":
|
|
2208
|
-
throw await
|
|
2192
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2209
2193
|
case "ServerException":
|
|
2210
2194
|
case "com.amazonaws.eks#ServerException":
|
|
2211
|
-
throw await
|
|
2195
|
+
throw await de_ServerExceptionRes(parsedOutput, context);
|
|
2212
2196
|
default:
|
|
2213
2197
|
const parsedBody = parsedOutput.body;
|
|
2214
2198
|
throwDefaultError({
|
|
@@ -2219,20 +2203,20 @@ const deserializeAws_restJson1UpdateAddonCommandError = async (output, context)
|
|
|
2219
2203
|
});
|
|
2220
2204
|
}
|
|
2221
2205
|
};
|
|
2222
|
-
export const
|
|
2206
|
+
export const de_UpdateClusterConfigCommand = async (output, context) => {
|
|
2223
2207
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2224
|
-
return
|
|
2208
|
+
return de_UpdateClusterConfigCommandError(output, context);
|
|
2225
2209
|
}
|
|
2226
2210
|
const contents = map({
|
|
2227
2211
|
$metadata: deserializeMetadata(output),
|
|
2228
2212
|
});
|
|
2229
2213
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
2230
2214
|
if (data.update != null) {
|
|
2231
|
-
contents.update =
|
|
2215
|
+
contents.update = de_Update(data.update, context);
|
|
2232
2216
|
}
|
|
2233
2217
|
return contents;
|
|
2234
2218
|
};
|
|
2235
|
-
const
|
|
2219
|
+
const de_UpdateClusterConfigCommandError = async (output, context) => {
|
|
2236
2220
|
const parsedOutput = {
|
|
2237
2221
|
...output,
|
|
2238
2222
|
body: await parseErrorBody(output.body, context),
|
|
@@ -2241,22 +2225,22 @@ const deserializeAws_restJson1UpdateClusterConfigCommandError = async (output, c
|
|
|
2241
2225
|
switch (errorCode) {
|
|
2242
2226
|
case "ClientException":
|
|
2243
2227
|
case "com.amazonaws.eks#ClientException":
|
|
2244
|
-
throw await
|
|
2228
|
+
throw await de_ClientExceptionRes(parsedOutput, context);
|
|
2245
2229
|
case "InvalidParameterException":
|
|
2246
2230
|
case "com.amazonaws.eks#InvalidParameterException":
|
|
2247
|
-
throw await
|
|
2231
|
+
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
2248
2232
|
case "InvalidRequestException":
|
|
2249
2233
|
case "com.amazonaws.eks#InvalidRequestException":
|
|
2250
|
-
throw await
|
|
2234
|
+
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
2251
2235
|
case "ResourceInUseException":
|
|
2252
2236
|
case "com.amazonaws.eks#ResourceInUseException":
|
|
2253
|
-
throw await
|
|
2237
|
+
throw await de_ResourceInUseExceptionRes(parsedOutput, context);
|
|
2254
2238
|
case "ResourceNotFoundException":
|
|
2255
2239
|
case "com.amazonaws.eks#ResourceNotFoundException":
|
|
2256
|
-
throw await
|
|
2240
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2257
2241
|
case "ServerException":
|
|
2258
2242
|
case "com.amazonaws.eks#ServerException":
|
|
2259
|
-
throw await
|
|
2243
|
+
throw await de_ServerExceptionRes(parsedOutput, context);
|
|
2260
2244
|
default:
|
|
2261
2245
|
const parsedBody = parsedOutput.body;
|
|
2262
2246
|
throwDefaultError({
|
|
@@ -2267,20 +2251,20 @@ const deserializeAws_restJson1UpdateClusterConfigCommandError = async (output, c
|
|
|
2267
2251
|
});
|
|
2268
2252
|
}
|
|
2269
2253
|
};
|
|
2270
|
-
export const
|
|
2254
|
+
export const de_UpdateClusterVersionCommand = async (output, context) => {
|
|
2271
2255
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2272
|
-
return
|
|
2256
|
+
return de_UpdateClusterVersionCommandError(output, context);
|
|
2273
2257
|
}
|
|
2274
2258
|
const contents = map({
|
|
2275
2259
|
$metadata: deserializeMetadata(output),
|
|
2276
2260
|
});
|
|
2277
2261
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
2278
2262
|
if (data.update != null) {
|
|
2279
|
-
contents.update =
|
|
2263
|
+
contents.update = de_Update(data.update, context);
|
|
2280
2264
|
}
|
|
2281
2265
|
return contents;
|
|
2282
2266
|
};
|
|
2283
|
-
const
|
|
2267
|
+
const de_UpdateClusterVersionCommandError = async (output, context) => {
|
|
2284
2268
|
const parsedOutput = {
|
|
2285
2269
|
...output,
|
|
2286
2270
|
body: await parseErrorBody(output.body, context),
|
|
@@ -2289,22 +2273,22 @@ const deserializeAws_restJson1UpdateClusterVersionCommandError = async (output,
|
|
|
2289
2273
|
switch (errorCode) {
|
|
2290
2274
|
case "ClientException":
|
|
2291
2275
|
case "com.amazonaws.eks#ClientException":
|
|
2292
|
-
throw await
|
|
2276
|
+
throw await de_ClientExceptionRes(parsedOutput, context);
|
|
2293
2277
|
case "InvalidParameterException":
|
|
2294
2278
|
case "com.amazonaws.eks#InvalidParameterException":
|
|
2295
|
-
throw await
|
|
2279
|
+
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
2296
2280
|
case "InvalidRequestException":
|
|
2297
2281
|
case "com.amazonaws.eks#InvalidRequestException":
|
|
2298
|
-
throw await
|
|
2282
|
+
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
2299
2283
|
case "ResourceInUseException":
|
|
2300
2284
|
case "com.amazonaws.eks#ResourceInUseException":
|
|
2301
|
-
throw await
|
|
2285
|
+
throw await de_ResourceInUseExceptionRes(parsedOutput, context);
|
|
2302
2286
|
case "ResourceNotFoundException":
|
|
2303
2287
|
case "com.amazonaws.eks#ResourceNotFoundException":
|
|
2304
|
-
throw await
|
|
2288
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2305
2289
|
case "ServerException":
|
|
2306
2290
|
case "com.amazonaws.eks#ServerException":
|
|
2307
|
-
throw await
|
|
2291
|
+
throw await de_ServerExceptionRes(parsedOutput, context);
|
|
2308
2292
|
default:
|
|
2309
2293
|
const parsedBody = parsedOutput.body;
|
|
2310
2294
|
throwDefaultError({
|
|
@@ -2315,20 +2299,20 @@ const deserializeAws_restJson1UpdateClusterVersionCommandError = async (output,
|
|
|
2315
2299
|
});
|
|
2316
2300
|
}
|
|
2317
2301
|
};
|
|
2318
|
-
export const
|
|
2302
|
+
export const de_UpdateNodegroupConfigCommand = async (output, context) => {
|
|
2319
2303
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2320
|
-
return
|
|
2304
|
+
return de_UpdateNodegroupConfigCommandError(output, context);
|
|
2321
2305
|
}
|
|
2322
2306
|
const contents = map({
|
|
2323
2307
|
$metadata: deserializeMetadata(output),
|
|
2324
2308
|
});
|
|
2325
2309
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
2326
2310
|
if (data.update != null) {
|
|
2327
|
-
contents.update =
|
|
2311
|
+
contents.update = de_Update(data.update, context);
|
|
2328
2312
|
}
|
|
2329
2313
|
return contents;
|
|
2330
2314
|
};
|
|
2331
|
-
const
|
|
2315
|
+
const de_UpdateNodegroupConfigCommandError = async (output, context) => {
|
|
2332
2316
|
const parsedOutput = {
|
|
2333
2317
|
...output,
|
|
2334
2318
|
body: await parseErrorBody(output.body, context),
|
|
@@ -2337,22 +2321,22 @@ const deserializeAws_restJson1UpdateNodegroupConfigCommandError = async (output,
|
|
|
2337
2321
|
switch (errorCode) {
|
|
2338
2322
|
case "ClientException":
|
|
2339
2323
|
case "com.amazonaws.eks#ClientException":
|
|
2340
|
-
throw await
|
|
2324
|
+
throw await de_ClientExceptionRes(parsedOutput, context);
|
|
2341
2325
|
case "InvalidParameterException":
|
|
2342
2326
|
case "com.amazonaws.eks#InvalidParameterException":
|
|
2343
|
-
throw await
|
|
2327
|
+
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
2344
2328
|
case "InvalidRequestException":
|
|
2345
2329
|
case "com.amazonaws.eks#InvalidRequestException":
|
|
2346
|
-
throw await
|
|
2330
|
+
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
2347
2331
|
case "ResourceInUseException":
|
|
2348
2332
|
case "com.amazonaws.eks#ResourceInUseException":
|
|
2349
|
-
throw await
|
|
2333
|
+
throw await de_ResourceInUseExceptionRes(parsedOutput, context);
|
|
2350
2334
|
case "ResourceNotFoundException":
|
|
2351
2335
|
case "com.amazonaws.eks#ResourceNotFoundException":
|
|
2352
|
-
throw await
|
|
2336
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2353
2337
|
case "ServerException":
|
|
2354
2338
|
case "com.amazonaws.eks#ServerException":
|
|
2355
|
-
throw await
|
|
2339
|
+
throw await de_ServerExceptionRes(parsedOutput, context);
|
|
2356
2340
|
default:
|
|
2357
2341
|
const parsedBody = parsedOutput.body;
|
|
2358
2342
|
throwDefaultError({
|
|
@@ -2363,20 +2347,20 @@ const deserializeAws_restJson1UpdateNodegroupConfigCommandError = async (output,
|
|
|
2363
2347
|
});
|
|
2364
2348
|
}
|
|
2365
2349
|
};
|
|
2366
|
-
export const
|
|
2350
|
+
export const de_UpdateNodegroupVersionCommand = async (output, context) => {
|
|
2367
2351
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2368
|
-
return
|
|
2352
|
+
return de_UpdateNodegroupVersionCommandError(output, context);
|
|
2369
2353
|
}
|
|
2370
2354
|
const contents = map({
|
|
2371
2355
|
$metadata: deserializeMetadata(output),
|
|
2372
2356
|
});
|
|
2373
2357
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
2374
2358
|
if (data.update != null) {
|
|
2375
|
-
contents.update =
|
|
2359
|
+
contents.update = de_Update(data.update, context);
|
|
2376
2360
|
}
|
|
2377
2361
|
return contents;
|
|
2378
2362
|
};
|
|
2379
|
-
const
|
|
2363
|
+
const de_UpdateNodegroupVersionCommandError = async (output, context) => {
|
|
2380
2364
|
const parsedOutput = {
|
|
2381
2365
|
...output,
|
|
2382
2366
|
body: await parseErrorBody(output.body, context),
|
|
@@ -2385,22 +2369,22 @@ const deserializeAws_restJson1UpdateNodegroupVersionCommandError = async (output
|
|
|
2385
2369
|
switch (errorCode) {
|
|
2386
2370
|
case "ClientException":
|
|
2387
2371
|
case "com.amazonaws.eks#ClientException":
|
|
2388
|
-
throw await
|
|
2372
|
+
throw await de_ClientExceptionRes(parsedOutput, context);
|
|
2389
2373
|
case "InvalidParameterException":
|
|
2390
2374
|
case "com.amazonaws.eks#InvalidParameterException":
|
|
2391
|
-
throw await
|
|
2375
|
+
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
2392
2376
|
case "InvalidRequestException":
|
|
2393
2377
|
case "com.amazonaws.eks#InvalidRequestException":
|
|
2394
|
-
throw await
|
|
2378
|
+
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
2395
2379
|
case "ResourceInUseException":
|
|
2396
2380
|
case "com.amazonaws.eks#ResourceInUseException":
|
|
2397
|
-
throw await
|
|
2381
|
+
throw await de_ResourceInUseExceptionRes(parsedOutput, context);
|
|
2398
2382
|
case "ResourceNotFoundException":
|
|
2399
2383
|
case "com.amazonaws.eks#ResourceNotFoundException":
|
|
2400
|
-
throw await
|
|
2384
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2401
2385
|
case "ServerException":
|
|
2402
2386
|
case "com.amazonaws.eks#ServerException":
|
|
2403
|
-
throw await
|
|
2387
|
+
throw await de_ServerExceptionRes(parsedOutput, context);
|
|
2404
2388
|
default:
|
|
2405
2389
|
const parsedBody = parsedOutput.body;
|
|
2406
2390
|
throwDefaultError({
|
|
@@ -2412,7 +2396,7 @@ const deserializeAws_restJson1UpdateNodegroupVersionCommandError = async (output
|
|
|
2412
2396
|
}
|
|
2413
2397
|
};
|
|
2414
2398
|
const map = __map;
|
|
2415
|
-
const
|
|
2399
|
+
const de_AccessDeniedExceptionRes = async (parsedOutput, context) => {
|
|
2416
2400
|
const contents = map({});
|
|
2417
2401
|
const data = parsedOutput.body;
|
|
2418
2402
|
if (data.message != null) {
|
|
@@ -2424,7 +2408,7 @@ const deserializeAws_restJson1AccessDeniedExceptionResponse = async (parsedOutpu
|
|
|
2424
2408
|
});
|
|
2425
2409
|
return __decorateServiceException(exception, parsedOutput.body);
|
|
2426
2410
|
};
|
|
2427
|
-
const
|
|
2411
|
+
const de_BadRequestExceptionRes = async (parsedOutput, context) => {
|
|
2428
2412
|
const contents = map({});
|
|
2429
2413
|
const data = parsedOutput.body;
|
|
2430
2414
|
if (data.message != null) {
|
|
@@ -2436,7 +2420,7 @@ const deserializeAws_restJson1BadRequestExceptionResponse = async (parsedOutput,
|
|
|
2436
2420
|
});
|
|
2437
2421
|
return __decorateServiceException(exception, parsedOutput.body);
|
|
2438
2422
|
};
|
|
2439
|
-
const
|
|
2423
|
+
const de_ClientExceptionRes = async (parsedOutput, context) => {
|
|
2440
2424
|
const contents = map({});
|
|
2441
2425
|
const data = parsedOutput.body;
|
|
2442
2426
|
if (data.addonName != null) {
|
|
@@ -2457,7 +2441,7 @@ const deserializeAws_restJson1ClientExceptionResponse = async (parsedOutput, con
|
|
|
2457
2441
|
});
|
|
2458
2442
|
return __decorateServiceException(exception, parsedOutput.body);
|
|
2459
2443
|
};
|
|
2460
|
-
const
|
|
2444
|
+
const de_InvalidParameterExceptionRes = async (parsedOutput, context) => {
|
|
2461
2445
|
const contents = map({});
|
|
2462
2446
|
const data = parsedOutput.body;
|
|
2463
2447
|
if (data.addonName != null) {
|
|
@@ -2481,7 +2465,7 @@ const deserializeAws_restJson1InvalidParameterExceptionResponse = async (parsedO
|
|
|
2481
2465
|
});
|
|
2482
2466
|
return __decorateServiceException(exception, parsedOutput.body);
|
|
2483
2467
|
};
|
|
2484
|
-
const
|
|
2468
|
+
const de_InvalidRequestExceptionRes = async (parsedOutput, context) => {
|
|
2485
2469
|
const contents = map({});
|
|
2486
2470
|
const data = parsedOutput.body;
|
|
2487
2471
|
if (data.addonName != null) {
|
|
@@ -2502,7 +2486,7 @@ const deserializeAws_restJson1InvalidRequestExceptionResponse = async (parsedOut
|
|
|
2502
2486
|
});
|
|
2503
2487
|
return __decorateServiceException(exception, parsedOutput.body);
|
|
2504
2488
|
};
|
|
2505
|
-
const
|
|
2489
|
+
const de_NotFoundExceptionRes = async (parsedOutput, context) => {
|
|
2506
2490
|
const contents = map({});
|
|
2507
2491
|
const data = parsedOutput.body;
|
|
2508
2492
|
if (data.message != null) {
|
|
@@ -2514,7 +2498,7 @@ const deserializeAws_restJson1NotFoundExceptionResponse = async (parsedOutput, c
|
|
|
2514
2498
|
});
|
|
2515
2499
|
return __decorateServiceException(exception, parsedOutput.body);
|
|
2516
2500
|
};
|
|
2517
|
-
const
|
|
2501
|
+
const de_ResourceInUseExceptionRes = async (parsedOutput, context) => {
|
|
2518
2502
|
const contents = map({});
|
|
2519
2503
|
const data = parsedOutput.body;
|
|
2520
2504
|
if (data.addonName != null) {
|
|
@@ -2535,7 +2519,7 @@ const deserializeAws_restJson1ResourceInUseExceptionResponse = async (parsedOutp
|
|
|
2535
2519
|
});
|
|
2536
2520
|
return __decorateServiceException(exception, parsedOutput.body);
|
|
2537
2521
|
};
|
|
2538
|
-
const
|
|
2522
|
+
const de_ResourceLimitExceededExceptionRes = async (parsedOutput, context) => {
|
|
2539
2523
|
const contents = map({});
|
|
2540
2524
|
const data = parsedOutput.body;
|
|
2541
2525
|
if (data.clusterName != null) {
|
|
@@ -2553,7 +2537,7 @@ const deserializeAws_restJson1ResourceLimitExceededExceptionResponse = async (pa
|
|
|
2553
2537
|
});
|
|
2554
2538
|
return __decorateServiceException(exception, parsedOutput.body);
|
|
2555
2539
|
};
|
|
2556
|
-
const
|
|
2540
|
+
const de_ResourceNotFoundExceptionRes = async (parsedOutput, context) => {
|
|
2557
2541
|
const contents = map({});
|
|
2558
2542
|
const data = parsedOutput.body;
|
|
2559
2543
|
if (data.addonName != null) {
|
|
@@ -2577,7 +2561,7 @@ const deserializeAws_restJson1ResourceNotFoundExceptionResponse = async (parsedO
|
|
|
2577
2561
|
});
|
|
2578
2562
|
return __decorateServiceException(exception, parsedOutput.body);
|
|
2579
2563
|
};
|
|
2580
|
-
const
|
|
2564
|
+
const de_ResourcePropagationDelayExceptionRes = async (parsedOutput, context) => {
|
|
2581
2565
|
const contents = map({});
|
|
2582
2566
|
const data = parsedOutput.body;
|
|
2583
2567
|
if (data.message != null) {
|
|
@@ -2589,7 +2573,7 @@ const deserializeAws_restJson1ResourcePropagationDelayExceptionResponse = async
|
|
|
2589
2573
|
});
|
|
2590
2574
|
return __decorateServiceException(exception, parsedOutput.body);
|
|
2591
2575
|
};
|
|
2592
|
-
const
|
|
2576
|
+
const de_ServerExceptionRes = async (parsedOutput, context) => {
|
|
2593
2577
|
const contents = map({});
|
|
2594
2578
|
const data = parsedOutput.body;
|
|
2595
2579
|
if (data.addonName != null) {
|
|
@@ -2610,7 +2594,7 @@ const deserializeAws_restJson1ServerExceptionResponse = async (parsedOutput, con
|
|
|
2610
2594
|
});
|
|
2611
2595
|
return __decorateServiceException(exception, parsedOutput.body);
|
|
2612
2596
|
};
|
|
2613
|
-
const
|
|
2597
|
+
const de_ServiceUnavailableExceptionRes = async (parsedOutput, context) => {
|
|
2614
2598
|
const contents = map({});
|
|
2615
2599
|
const data = parsedOutput.body;
|
|
2616
2600
|
if (data.message != null) {
|
|
@@ -2622,7 +2606,7 @@ const deserializeAws_restJson1ServiceUnavailableExceptionResponse = async (parse
|
|
|
2622
2606
|
});
|
|
2623
2607
|
return __decorateServiceException(exception, parsedOutput.body);
|
|
2624
2608
|
};
|
|
2625
|
-
const
|
|
2609
|
+
const de_UnsupportedAvailabilityZoneExceptionRes = async (parsedOutput, context) => {
|
|
2626
2610
|
const contents = map({});
|
|
2627
2611
|
const data = parsedOutput.body;
|
|
2628
2612
|
if (data.clusterName != null) {
|
|
@@ -2635,7 +2619,7 @@ const deserializeAws_restJson1UnsupportedAvailabilityZoneExceptionResponse = asy
|
|
|
2635
2619
|
contents.nodegroupName = __expectString(data.nodegroupName);
|
|
2636
2620
|
}
|
|
2637
2621
|
if (data.validZones != null) {
|
|
2638
|
-
contents.validZones =
|
|
2622
|
+
contents.validZones = de_StringList(data.validZones, context);
|
|
2639
2623
|
}
|
|
2640
2624
|
const exception = new UnsupportedAvailabilityZoneException({
|
|
2641
2625
|
$metadata: deserializeMetadata(parsedOutput),
|
|
@@ -2643,31 +2627,31 @@ const deserializeAws_restJson1UnsupportedAvailabilityZoneExceptionResponse = asy
|
|
|
2643
2627
|
});
|
|
2644
2628
|
return __decorateServiceException(exception, parsedOutput.body);
|
|
2645
2629
|
};
|
|
2646
|
-
const
|
|
2630
|
+
const se_ConnectorConfigRequest = (input, context) => {
|
|
2647
2631
|
return {
|
|
2648
2632
|
...(input.provider != null && { provider: input.provider }),
|
|
2649
2633
|
...(input.roleArn != null && { roleArn: input.roleArn }),
|
|
2650
2634
|
};
|
|
2651
2635
|
};
|
|
2652
|
-
const
|
|
2636
|
+
const se_ControlPlanePlacementRequest = (input, context) => {
|
|
2653
2637
|
return {
|
|
2654
2638
|
...(input.groupName != null && { groupName: input.groupName }),
|
|
2655
2639
|
};
|
|
2656
2640
|
};
|
|
2657
|
-
const
|
|
2641
|
+
const se_EncryptionConfig = (input, context) => {
|
|
2658
2642
|
return {
|
|
2659
|
-
...(input.provider != null && { provider:
|
|
2660
|
-
...(input.resources != null && { resources:
|
|
2643
|
+
...(input.provider != null && { provider: se_Provider(input.provider, context) }),
|
|
2644
|
+
...(input.resources != null && { resources: se_StringList(input.resources, context) }),
|
|
2661
2645
|
};
|
|
2662
2646
|
};
|
|
2663
|
-
const
|
|
2647
|
+
const se_EncryptionConfigList = (input, context) => {
|
|
2664
2648
|
return input
|
|
2665
2649
|
.filter((e) => e != null)
|
|
2666
2650
|
.map((entry) => {
|
|
2667
|
-
return
|
|
2651
|
+
return se_EncryptionConfig(entry, context);
|
|
2668
2652
|
});
|
|
2669
2653
|
};
|
|
2670
|
-
const
|
|
2654
|
+
const se_FargateProfileLabel = (input, context) => {
|
|
2671
2655
|
return Object.entries(input).reduce((acc, [key, value]) => {
|
|
2672
2656
|
if (value === null) {
|
|
2673
2657
|
return acc;
|
|
@@ -2676,39 +2660,39 @@ const serializeAws_restJson1FargateProfileLabel = (input, context) => {
|
|
|
2676
2660
|
return acc;
|
|
2677
2661
|
}, {});
|
|
2678
2662
|
};
|
|
2679
|
-
const
|
|
2663
|
+
const se_FargateProfileSelector = (input, context) => {
|
|
2680
2664
|
return {
|
|
2681
|
-
...(input.labels != null && { labels:
|
|
2665
|
+
...(input.labels != null && { labels: se_FargateProfileLabel(input.labels, context) }),
|
|
2682
2666
|
...(input.namespace != null && { namespace: input.namespace }),
|
|
2683
2667
|
};
|
|
2684
2668
|
};
|
|
2685
|
-
const
|
|
2669
|
+
const se_FargateProfileSelectors = (input, context) => {
|
|
2686
2670
|
return input
|
|
2687
2671
|
.filter((e) => e != null)
|
|
2688
2672
|
.map((entry) => {
|
|
2689
|
-
return
|
|
2673
|
+
return se_FargateProfileSelector(entry, context);
|
|
2690
2674
|
});
|
|
2691
2675
|
};
|
|
2692
|
-
const
|
|
2676
|
+
const se_IdentityProviderConfig = (input, context) => {
|
|
2693
2677
|
return {
|
|
2694
2678
|
...(input.name != null && { name: input.name }),
|
|
2695
2679
|
...(input.type != null && { type: input.type }),
|
|
2696
2680
|
};
|
|
2697
2681
|
};
|
|
2698
|
-
const
|
|
2682
|
+
const se_KubernetesNetworkConfigRequest = (input, context) => {
|
|
2699
2683
|
return {
|
|
2700
2684
|
...(input.ipFamily != null && { ipFamily: input.ipFamily }),
|
|
2701
2685
|
...(input.serviceIpv4Cidr != null && { serviceIpv4Cidr: input.serviceIpv4Cidr }),
|
|
2702
2686
|
};
|
|
2703
2687
|
};
|
|
2704
|
-
const
|
|
2688
|
+
const se_labelsKeyList = (input, context) => {
|
|
2705
2689
|
return input
|
|
2706
2690
|
.filter((e) => e != null)
|
|
2707
2691
|
.map((entry) => {
|
|
2708
2692
|
return entry;
|
|
2709
2693
|
});
|
|
2710
2694
|
};
|
|
2711
|
-
const
|
|
2695
|
+
const se_labelsMap = (input, context) => {
|
|
2712
2696
|
return Object.entries(input).reduce((acc, [key, value]) => {
|
|
2713
2697
|
if (value === null) {
|
|
2714
2698
|
return acc;
|
|
@@ -2717,90 +2701,86 @@ const serializeAws_restJson1labelsMap = (input, context) => {
|
|
|
2717
2701
|
return acc;
|
|
2718
2702
|
}, {});
|
|
2719
2703
|
};
|
|
2720
|
-
const
|
|
2704
|
+
const se_LaunchTemplateSpecification = (input, context) => {
|
|
2721
2705
|
return {
|
|
2722
2706
|
...(input.id != null && { id: input.id }),
|
|
2723
2707
|
...(input.name != null && { name: input.name }),
|
|
2724
2708
|
...(input.version != null && { version: input.version }),
|
|
2725
2709
|
};
|
|
2726
2710
|
};
|
|
2727
|
-
const
|
|
2711
|
+
const se_Logging = (input, context) => {
|
|
2728
2712
|
return {
|
|
2729
|
-
...(input.clusterLogging != null && {
|
|
2730
|
-
clusterLogging: serializeAws_restJson1LogSetups(input.clusterLogging, context),
|
|
2731
|
-
}),
|
|
2713
|
+
...(input.clusterLogging != null && { clusterLogging: se_LogSetups(input.clusterLogging, context) }),
|
|
2732
2714
|
};
|
|
2733
2715
|
};
|
|
2734
|
-
const
|
|
2716
|
+
const se_LogSetup = (input, context) => {
|
|
2735
2717
|
return {
|
|
2736
2718
|
...(input.enabled != null && { enabled: input.enabled }),
|
|
2737
|
-
...(input.types != null && { types:
|
|
2719
|
+
...(input.types != null && { types: se_LogTypes(input.types, context) }),
|
|
2738
2720
|
};
|
|
2739
2721
|
};
|
|
2740
|
-
const
|
|
2722
|
+
const se_LogSetups = (input, context) => {
|
|
2741
2723
|
return input
|
|
2742
2724
|
.filter((e) => e != null)
|
|
2743
2725
|
.map((entry) => {
|
|
2744
|
-
return
|
|
2726
|
+
return se_LogSetup(entry, context);
|
|
2745
2727
|
});
|
|
2746
2728
|
};
|
|
2747
|
-
const
|
|
2729
|
+
const se_LogTypes = (input, context) => {
|
|
2748
2730
|
return input
|
|
2749
2731
|
.filter((e) => e != null)
|
|
2750
2732
|
.map((entry) => {
|
|
2751
2733
|
return entry;
|
|
2752
2734
|
});
|
|
2753
2735
|
};
|
|
2754
|
-
const
|
|
2736
|
+
const se_NodegroupScalingConfig = (input, context) => {
|
|
2755
2737
|
return {
|
|
2756
2738
|
...(input.desiredSize != null && { desiredSize: input.desiredSize }),
|
|
2757
2739
|
...(input.maxSize != null && { maxSize: input.maxSize }),
|
|
2758
2740
|
...(input.minSize != null && { minSize: input.minSize }),
|
|
2759
2741
|
};
|
|
2760
2742
|
};
|
|
2761
|
-
const
|
|
2743
|
+
const se_NodegroupUpdateConfig = (input, context) => {
|
|
2762
2744
|
return {
|
|
2763
2745
|
...(input.maxUnavailable != null && { maxUnavailable: input.maxUnavailable }),
|
|
2764
2746
|
...(input.maxUnavailablePercentage != null && { maxUnavailablePercentage: input.maxUnavailablePercentage }),
|
|
2765
2747
|
};
|
|
2766
2748
|
};
|
|
2767
|
-
const
|
|
2749
|
+
const se_OidcIdentityProviderConfigRequest = (input, context) => {
|
|
2768
2750
|
return {
|
|
2769
2751
|
...(input.clientId != null && { clientId: input.clientId }),
|
|
2770
2752
|
...(input.groupsClaim != null && { groupsClaim: input.groupsClaim }),
|
|
2771
2753
|
...(input.groupsPrefix != null && { groupsPrefix: input.groupsPrefix }),
|
|
2772
2754
|
...(input.identityProviderConfigName != null && { identityProviderConfigName: input.identityProviderConfigName }),
|
|
2773
2755
|
...(input.issuerUrl != null && { issuerUrl: input.issuerUrl }),
|
|
2774
|
-
...(input.requiredClaims != null && {
|
|
2775
|
-
requiredClaims: serializeAws_restJson1requiredClaimsMap(input.requiredClaims, context),
|
|
2776
|
-
}),
|
|
2756
|
+
...(input.requiredClaims != null && { requiredClaims: se_requiredClaimsMap(input.requiredClaims, context) }),
|
|
2777
2757
|
...(input.usernameClaim != null && { usernameClaim: input.usernameClaim }),
|
|
2778
2758
|
...(input.usernamePrefix != null && { usernamePrefix: input.usernamePrefix }),
|
|
2779
2759
|
};
|
|
2780
2760
|
};
|
|
2781
|
-
const
|
|
2761
|
+
const se_OutpostConfigRequest = (input, context) => {
|
|
2782
2762
|
return {
|
|
2783
2763
|
...(input.controlPlaneInstanceType != null && { controlPlaneInstanceType: input.controlPlaneInstanceType }),
|
|
2784
2764
|
...(input.controlPlanePlacement != null && {
|
|
2785
|
-
controlPlanePlacement:
|
|
2765
|
+
controlPlanePlacement: se_ControlPlanePlacementRequest(input.controlPlanePlacement, context),
|
|
2786
2766
|
}),
|
|
2787
|
-
...(input.outpostArns != null && { outpostArns:
|
|
2767
|
+
...(input.outpostArns != null && { outpostArns: se_StringList(input.outpostArns, context) }),
|
|
2788
2768
|
};
|
|
2789
2769
|
};
|
|
2790
|
-
const
|
|
2770
|
+
const se_Provider = (input, context) => {
|
|
2791
2771
|
return {
|
|
2792
2772
|
...(input.keyArn != null && { keyArn: input.keyArn }),
|
|
2793
2773
|
};
|
|
2794
2774
|
};
|
|
2795
|
-
const
|
|
2775
|
+
const se_RemoteAccessConfig = (input, context) => {
|
|
2796
2776
|
return {
|
|
2797
2777
|
...(input.ec2SshKey != null && { ec2SshKey: input.ec2SshKey }),
|
|
2798
2778
|
...(input.sourceSecurityGroups != null && {
|
|
2799
|
-
sourceSecurityGroups:
|
|
2779
|
+
sourceSecurityGroups: se_StringList(input.sourceSecurityGroups, context),
|
|
2800
2780
|
}),
|
|
2801
2781
|
};
|
|
2802
2782
|
};
|
|
2803
|
-
const
|
|
2783
|
+
const se_requiredClaimsMap = (input, context) => {
|
|
2804
2784
|
return Object.entries(input).reduce((acc, [key, value]) => {
|
|
2805
2785
|
if (value === null) {
|
|
2806
2786
|
return acc;
|
|
@@ -2809,14 +2789,14 @@ const serializeAws_restJson1requiredClaimsMap = (input, context) => {
|
|
|
2809
2789
|
return acc;
|
|
2810
2790
|
}, {});
|
|
2811
2791
|
};
|
|
2812
|
-
const
|
|
2792
|
+
const se_StringList = (input, context) => {
|
|
2813
2793
|
return input
|
|
2814
2794
|
.filter((e) => e != null)
|
|
2815
2795
|
.map((entry) => {
|
|
2816
2796
|
return entry;
|
|
2817
2797
|
});
|
|
2818
2798
|
};
|
|
2819
|
-
const
|
|
2799
|
+
const se_TagMap = (input, context) => {
|
|
2820
2800
|
return Object.entries(input).reduce((acc, [key, value]) => {
|
|
2821
2801
|
if (value === null) {
|
|
2822
2802
|
return acc;
|
|
@@ -2825,52 +2805,42 @@ const serializeAws_restJson1TagMap = (input, context) => {
|
|
|
2825
2805
|
return acc;
|
|
2826
2806
|
}, {});
|
|
2827
2807
|
};
|
|
2828
|
-
const
|
|
2808
|
+
const se_Taint = (input, context) => {
|
|
2829
2809
|
return {
|
|
2830
2810
|
...(input.effect != null && { effect: input.effect }),
|
|
2831
2811
|
...(input.key != null && { key: input.key }),
|
|
2832
2812
|
...(input.value != null && { value: input.value }),
|
|
2833
2813
|
};
|
|
2834
2814
|
};
|
|
2835
|
-
const
|
|
2815
|
+
const se_taintsList = (input, context) => {
|
|
2836
2816
|
return input
|
|
2837
2817
|
.filter((e) => e != null)
|
|
2838
2818
|
.map((entry) => {
|
|
2839
|
-
return
|
|
2819
|
+
return se_Taint(entry, context);
|
|
2840
2820
|
});
|
|
2841
2821
|
};
|
|
2842
|
-
const
|
|
2822
|
+
const se_UpdateLabelsPayload = (input, context) => {
|
|
2843
2823
|
return {
|
|
2844
|
-
...(input.addOrUpdateLabels != null && {
|
|
2845
|
-
|
|
2846
|
-
}),
|
|
2847
|
-
...(input.removeLabels != null && {
|
|
2848
|
-
removeLabels: serializeAws_restJson1labelsKeyList(input.removeLabels, context),
|
|
2849
|
-
}),
|
|
2824
|
+
...(input.addOrUpdateLabels != null && { addOrUpdateLabels: se_labelsMap(input.addOrUpdateLabels, context) }),
|
|
2825
|
+
...(input.removeLabels != null && { removeLabels: se_labelsKeyList(input.removeLabels, context) }),
|
|
2850
2826
|
};
|
|
2851
2827
|
};
|
|
2852
|
-
const
|
|
2828
|
+
const se_UpdateTaintsPayload = (input, context) => {
|
|
2853
2829
|
return {
|
|
2854
|
-
...(input.addOrUpdateTaints != null && {
|
|
2855
|
-
|
|
2856
|
-
}),
|
|
2857
|
-
...(input.removeTaints != null && { removeTaints: serializeAws_restJson1taintsList(input.removeTaints, context) }),
|
|
2830
|
+
...(input.addOrUpdateTaints != null && { addOrUpdateTaints: se_taintsList(input.addOrUpdateTaints, context) }),
|
|
2831
|
+
...(input.removeTaints != null && { removeTaints: se_taintsList(input.removeTaints, context) }),
|
|
2858
2832
|
};
|
|
2859
2833
|
};
|
|
2860
|
-
const
|
|
2834
|
+
const se_VpcConfigRequest = (input, context) => {
|
|
2861
2835
|
return {
|
|
2862
2836
|
...(input.endpointPrivateAccess != null && { endpointPrivateAccess: input.endpointPrivateAccess }),
|
|
2863
2837
|
...(input.endpointPublicAccess != null && { endpointPublicAccess: input.endpointPublicAccess }),
|
|
2864
|
-
...(input.publicAccessCidrs != null && {
|
|
2865
|
-
|
|
2866
|
-
}),
|
|
2867
|
-
...(input.securityGroupIds != null && {
|
|
2868
|
-
securityGroupIds: serializeAws_restJson1StringList(input.securityGroupIds, context),
|
|
2869
|
-
}),
|
|
2870
|
-
...(input.subnetIds != null && { subnetIds: serializeAws_restJson1StringList(input.subnetIds, context) }),
|
|
2838
|
+
...(input.publicAccessCidrs != null && { publicAccessCidrs: se_StringList(input.publicAccessCidrs, context) }),
|
|
2839
|
+
...(input.securityGroupIds != null && { securityGroupIds: se_StringList(input.securityGroupIds, context) }),
|
|
2840
|
+
...(input.subnetIds != null && { subnetIds: se_StringList(input.subnetIds, context) }),
|
|
2871
2841
|
};
|
|
2872
2842
|
};
|
|
2873
|
-
const
|
|
2843
|
+
const de_Addon = (output, context) => {
|
|
2874
2844
|
return {
|
|
2875
2845
|
addonArn: __expectString(output.addonArn),
|
|
2876
2846
|
addonName: __expectString(output.addonName),
|
|
@@ -2878,188 +2848,172 @@ const deserializeAws_restJson1Addon = (output, context) => {
|
|
|
2878
2848
|
clusterName: __expectString(output.clusterName),
|
|
2879
2849
|
configurationValues: __expectString(output.configurationValues),
|
|
2880
2850
|
createdAt: output.createdAt != null ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.createdAt))) : undefined,
|
|
2881
|
-
health: output.health != null ?
|
|
2851
|
+
health: output.health != null ? de_AddonHealth(output.health, context) : undefined,
|
|
2882
2852
|
marketplaceInformation: output.marketplaceInformation != null
|
|
2883
|
-
?
|
|
2853
|
+
? de_MarketplaceInformation(output.marketplaceInformation, context)
|
|
2884
2854
|
: undefined,
|
|
2885
2855
|
modifiedAt: output.modifiedAt != null ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.modifiedAt))) : undefined,
|
|
2886
2856
|
owner: __expectString(output.owner),
|
|
2887
2857
|
publisher: __expectString(output.publisher),
|
|
2888
2858
|
serviceAccountRoleArn: __expectString(output.serviceAccountRoleArn),
|
|
2889
2859
|
status: __expectString(output.status),
|
|
2890
|
-
tags: output.tags != null ?
|
|
2860
|
+
tags: output.tags != null ? de_TagMap(output.tags, context) : undefined,
|
|
2891
2861
|
};
|
|
2892
2862
|
};
|
|
2893
|
-
const
|
|
2863
|
+
const de_AddonHealth = (output, context) => {
|
|
2894
2864
|
return {
|
|
2895
|
-
issues: output.issues != null ?
|
|
2865
|
+
issues: output.issues != null ? de_AddonIssueList(output.issues, context) : undefined,
|
|
2896
2866
|
};
|
|
2897
2867
|
};
|
|
2898
|
-
const
|
|
2868
|
+
const de_AddonInfo = (output, context) => {
|
|
2899
2869
|
return {
|
|
2900
2870
|
addonName: __expectString(output.addonName),
|
|
2901
|
-
addonVersions: output.addonVersions != null
|
|
2902
|
-
? deserializeAws_restJson1AddonVersionInfoList(output.addonVersions, context)
|
|
2903
|
-
: undefined,
|
|
2871
|
+
addonVersions: output.addonVersions != null ? de_AddonVersionInfoList(output.addonVersions, context) : undefined,
|
|
2904
2872
|
marketplaceInformation: output.marketplaceInformation != null
|
|
2905
|
-
?
|
|
2873
|
+
? de_MarketplaceInformation(output.marketplaceInformation, context)
|
|
2906
2874
|
: undefined,
|
|
2907
2875
|
owner: __expectString(output.owner),
|
|
2908
2876
|
publisher: __expectString(output.publisher),
|
|
2909
2877
|
type: __expectString(output.type),
|
|
2910
2878
|
};
|
|
2911
2879
|
};
|
|
2912
|
-
const
|
|
2880
|
+
const de_AddonIssue = (output, context) => {
|
|
2913
2881
|
return {
|
|
2914
2882
|
code: __expectString(output.code),
|
|
2915
2883
|
message: __expectString(output.message),
|
|
2916
|
-
resourceIds: output.resourceIds != null ?
|
|
2884
|
+
resourceIds: output.resourceIds != null ? de_StringList(output.resourceIds, context) : undefined,
|
|
2917
2885
|
};
|
|
2918
2886
|
};
|
|
2919
|
-
const
|
|
2887
|
+
const de_AddonIssueList = (output, context) => {
|
|
2920
2888
|
const retVal = (output || [])
|
|
2921
2889
|
.filter((e) => e != null)
|
|
2922
2890
|
.map((entry) => {
|
|
2923
2891
|
if (entry === null) {
|
|
2924
2892
|
return null;
|
|
2925
2893
|
}
|
|
2926
|
-
return
|
|
2894
|
+
return de_AddonIssue(entry, context);
|
|
2927
2895
|
});
|
|
2928
2896
|
return retVal;
|
|
2929
2897
|
};
|
|
2930
|
-
const
|
|
2898
|
+
const de_Addons = (output, context) => {
|
|
2931
2899
|
const retVal = (output || [])
|
|
2932
2900
|
.filter((e) => e != null)
|
|
2933
2901
|
.map((entry) => {
|
|
2934
2902
|
if (entry === null) {
|
|
2935
2903
|
return null;
|
|
2936
2904
|
}
|
|
2937
|
-
return
|
|
2905
|
+
return de_AddonInfo(entry, context);
|
|
2938
2906
|
});
|
|
2939
2907
|
return retVal;
|
|
2940
2908
|
};
|
|
2941
|
-
const
|
|
2909
|
+
const de_AddonVersionInfo = (output, context) => {
|
|
2942
2910
|
return {
|
|
2943
2911
|
addonVersion: __expectString(output.addonVersion),
|
|
2944
|
-
architecture: output.architecture != null ?
|
|
2945
|
-
compatibilities: output.compatibilities != null
|
|
2946
|
-
? deserializeAws_restJson1Compatibilities(output.compatibilities, context)
|
|
2947
|
-
: undefined,
|
|
2912
|
+
architecture: output.architecture != null ? de_StringList(output.architecture, context) : undefined,
|
|
2913
|
+
compatibilities: output.compatibilities != null ? de_Compatibilities(output.compatibilities, context) : undefined,
|
|
2948
2914
|
requiresConfiguration: __expectBoolean(output.requiresConfiguration),
|
|
2949
2915
|
};
|
|
2950
2916
|
};
|
|
2951
|
-
const
|
|
2917
|
+
const de_AddonVersionInfoList = (output, context) => {
|
|
2952
2918
|
const retVal = (output || [])
|
|
2953
2919
|
.filter((e) => e != null)
|
|
2954
2920
|
.map((entry) => {
|
|
2955
2921
|
if (entry === null) {
|
|
2956
2922
|
return null;
|
|
2957
2923
|
}
|
|
2958
|
-
return
|
|
2924
|
+
return de_AddonVersionInfo(entry, context);
|
|
2959
2925
|
});
|
|
2960
2926
|
return retVal;
|
|
2961
2927
|
};
|
|
2962
|
-
const
|
|
2928
|
+
const de_AutoScalingGroup = (output, context) => {
|
|
2963
2929
|
return {
|
|
2964
2930
|
name: __expectString(output.name),
|
|
2965
2931
|
};
|
|
2966
2932
|
};
|
|
2967
|
-
const
|
|
2933
|
+
const de_AutoScalingGroupList = (output, context) => {
|
|
2968
2934
|
const retVal = (output || [])
|
|
2969
2935
|
.filter((e) => e != null)
|
|
2970
2936
|
.map((entry) => {
|
|
2971
2937
|
if (entry === null) {
|
|
2972
2938
|
return null;
|
|
2973
2939
|
}
|
|
2974
|
-
return
|
|
2940
|
+
return de_AutoScalingGroup(entry, context);
|
|
2975
2941
|
});
|
|
2976
2942
|
return retVal;
|
|
2977
2943
|
};
|
|
2978
|
-
const
|
|
2944
|
+
const de_Certificate = (output, context) => {
|
|
2979
2945
|
return {
|
|
2980
2946
|
data: __expectString(output.data),
|
|
2981
2947
|
};
|
|
2982
2948
|
};
|
|
2983
|
-
const
|
|
2949
|
+
const de_Cluster = (output, context) => {
|
|
2984
2950
|
return {
|
|
2985
2951
|
arn: __expectString(output.arn),
|
|
2986
|
-
certificateAuthority: output.certificateAuthority != null
|
|
2987
|
-
? deserializeAws_restJson1Certificate(output.certificateAuthority, context)
|
|
2988
|
-
: undefined,
|
|
2952
|
+
certificateAuthority: output.certificateAuthority != null ? de_Certificate(output.certificateAuthority, context) : undefined,
|
|
2989
2953
|
clientRequestToken: __expectString(output.clientRequestToken),
|
|
2990
|
-
connectorConfig: output.connectorConfig != null
|
|
2991
|
-
? deserializeAws_restJson1ConnectorConfigResponse(output.connectorConfig, context)
|
|
2992
|
-
: undefined,
|
|
2954
|
+
connectorConfig: output.connectorConfig != null ? de_ConnectorConfigResponse(output.connectorConfig, context) : undefined,
|
|
2993
2955
|
createdAt: output.createdAt != null ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.createdAt))) : undefined,
|
|
2994
|
-
encryptionConfig: output.encryptionConfig != null
|
|
2995
|
-
? deserializeAws_restJson1EncryptionConfigList(output.encryptionConfig, context)
|
|
2996
|
-
: undefined,
|
|
2956
|
+
encryptionConfig: output.encryptionConfig != null ? de_EncryptionConfigList(output.encryptionConfig, context) : undefined,
|
|
2997
2957
|
endpoint: __expectString(output.endpoint),
|
|
2998
|
-
health: output.health != null ?
|
|
2958
|
+
health: output.health != null ? de_ClusterHealth(output.health, context) : undefined,
|
|
2999
2959
|
id: __expectString(output.id),
|
|
3000
|
-
identity: output.identity != null ?
|
|
2960
|
+
identity: output.identity != null ? de_Identity(output.identity, context) : undefined,
|
|
3001
2961
|
kubernetesNetworkConfig: output.kubernetesNetworkConfig != null
|
|
3002
|
-
?
|
|
2962
|
+
? de_KubernetesNetworkConfigResponse(output.kubernetesNetworkConfig, context)
|
|
3003
2963
|
: undefined,
|
|
3004
|
-
logging: output.logging != null ?
|
|
2964
|
+
logging: output.logging != null ? de_Logging(output.logging, context) : undefined,
|
|
3005
2965
|
name: __expectString(output.name),
|
|
3006
|
-
outpostConfig: output.outpostConfig != null
|
|
3007
|
-
? deserializeAws_restJson1OutpostConfigResponse(output.outpostConfig, context)
|
|
3008
|
-
: undefined,
|
|
2966
|
+
outpostConfig: output.outpostConfig != null ? de_OutpostConfigResponse(output.outpostConfig, context) : undefined,
|
|
3009
2967
|
platformVersion: __expectString(output.platformVersion),
|
|
3010
|
-
resourcesVpcConfig: output.resourcesVpcConfig != null
|
|
3011
|
-
? deserializeAws_restJson1VpcConfigResponse(output.resourcesVpcConfig, context)
|
|
3012
|
-
: undefined,
|
|
2968
|
+
resourcesVpcConfig: output.resourcesVpcConfig != null ? de_VpcConfigResponse(output.resourcesVpcConfig, context) : undefined,
|
|
3013
2969
|
roleArn: __expectString(output.roleArn),
|
|
3014
2970
|
status: __expectString(output.status),
|
|
3015
|
-
tags: output.tags != null ?
|
|
2971
|
+
tags: output.tags != null ? de_TagMap(output.tags, context) : undefined,
|
|
3016
2972
|
version: __expectString(output.version),
|
|
3017
2973
|
};
|
|
3018
2974
|
};
|
|
3019
|
-
const
|
|
2975
|
+
const de_ClusterHealth = (output, context) => {
|
|
3020
2976
|
return {
|
|
3021
|
-
issues: output.issues != null ?
|
|
2977
|
+
issues: output.issues != null ? de_ClusterIssueList(output.issues, context) : undefined,
|
|
3022
2978
|
};
|
|
3023
2979
|
};
|
|
3024
|
-
const
|
|
2980
|
+
const de_ClusterIssue = (output, context) => {
|
|
3025
2981
|
return {
|
|
3026
2982
|
code: __expectString(output.code),
|
|
3027
2983
|
message: __expectString(output.message),
|
|
3028
|
-
resourceIds: output.resourceIds != null ?
|
|
2984
|
+
resourceIds: output.resourceIds != null ? de_StringList(output.resourceIds, context) : undefined,
|
|
3029
2985
|
};
|
|
3030
2986
|
};
|
|
3031
|
-
const
|
|
2987
|
+
const de_ClusterIssueList = (output, context) => {
|
|
3032
2988
|
const retVal = (output || [])
|
|
3033
2989
|
.filter((e) => e != null)
|
|
3034
2990
|
.map((entry) => {
|
|
3035
2991
|
if (entry === null) {
|
|
3036
2992
|
return null;
|
|
3037
2993
|
}
|
|
3038
|
-
return
|
|
2994
|
+
return de_ClusterIssue(entry, context);
|
|
3039
2995
|
});
|
|
3040
2996
|
return retVal;
|
|
3041
2997
|
};
|
|
3042
|
-
const
|
|
2998
|
+
const de_Compatibilities = (output, context) => {
|
|
3043
2999
|
const retVal = (output || [])
|
|
3044
3000
|
.filter((e) => e != null)
|
|
3045
3001
|
.map((entry) => {
|
|
3046
3002
|
if (entry === null) {
|
|
3047
3003
|
return null;
|
|
3048
3004
|
}
|
|
3049
|
-
return
|
|
3005
|
+
return de_Compatibility(entry, context);
|
|
3050
3006
|
});
|
|
3051
3007
|
return retVal;
|
|
3052
3008
|
};
|
|
3053
|
-
const
|
|
3009
|
+
const de_Compatibility = (output, context) => {
|
|
3054
3010
|
return {
|
|
3055
3011
|
clusterVersion: __expectString(output.clusterVersion),
|
|
3056
3012
|
defaultVersion: __expectBoolean(output.defaultVersion),
|
|
3057
|
-
platformVersions: output.platformVersions != null
|
|
3058
|
-
? deserializeAws_restJson1StringList(output.platformVersions, context)
|
|
3059
|
-
: undefined,
|
|
3013
|
+
platformVersions: output.platformVersions != null ? de_StringList(output.platformVersions, context) : undefined,
|
|
3060
3014
|
};
|
|
3061
3015
|
};
|
|
3062
|
-
const
|
|
3016
|
+
const de_ConnectorConfigResponse = (output, context) => {
|
|
3063
3017
|
return {
|
|
3064
3018
|
activationCode: __expectString(output.activationCode),
|
|
3065
3019
|
activationExpiry: output.activationExpiry != null
|
|
@@ -3070,60 +3024,60 @@ const deserializeAws_restJson1ConnectorConfigResponse = (output, context) => {
|
|
|
3070
3024
|
roleArn: __expectString(output.roleArn),
|
|
3071
3025
|
};
|
|
3072
3026
|
};
|
|
3073
|
-
const
|
|
3027
|
+
const de_ControlPlanePlacementResponse = (output, context) => {
|
|
3074
3028
|
return {
|
|
3075
3029
|
groupName: __expectString(output.groupName),
|
|
3076
3030
|
};
|
|
3077
3031
|
};
|
|
3078
|
-
const
|
|
3032
|
+
const de_EncryptionConfig = (output, context) => {
|
|
3079
3033
|
return {
|
|
3080
|
-
provider: output.provider != null ?
|
|
3081
|
-
resources: output.resources != null ?
|
|
3034
|
+
provider: output.provider != null ? de_Provider(output.provider, context) : undefined,
|
|
3035
|
+
resources: output.resources != null ? de_StringList(output.resources, context) : undefined,
|
|
3082
3036
|
};
|
|
3083
3037
|
};
|
|
3084
|
-
const
|
|
3038
|
+
const de_EncryptionConfigList = (output, context) => {
|
|
3085
3039
|
const retVal = (output || [])
|
|
3086
3040
|
.filter((e) => e != null)
|
|
3087
3041
|
.map((entry) => {
|
|
3088
3042
|
if (entry === null) {
|
|
3089
3043
|
return null;
|
|
3090
3044
|
}
|
|
3091
|
-
return
|
|
3045
|
+
return de_EncryptionConfig(entry, context);
|
|
3092
3046
|
});
|
|
3093
3047
|
return retVal;
|
|
3094
3048
|
};
|
|
3095
|
-
const
|
|
3049
|
+
const de_ErrorDetail = (output, context) => {
|
|
3096
3050
|
return {
|
|
3097
3051
|
errorCode: __expectString(output.errorCode),
|
|
3098
3052
|
errorMessage: __expectString(output.errorMessage),
|
|
3099
|
-
resourceIds: output.resourceIds != null ?
|
|
3053
|
+
resourceIds: output.resourceIds != null ? de_StringList(output.resourceIds, context) : undefined,
|
|
3100
3054
|
};
|
|
3101
3055
|
};
|
|
3102
|
-
const
|
|
3056
|
+
const de_ErrorDetails = (output, context) => {
|
|
3103
3057
|
const retVal = (output || [])
|
|
3104
3058
|
.filter((e) => e != null)
|
|
3105
3059
|
.map((entry) => {
|
|
3106
3060
|
if (entry === null) {
|
|
3107
3061
|
return null;
|
|
3108
3062
|
}
|
|
3109
|
-
return
|
|
3063
|
+
return de_ErrorDetail(entry, context);
|
|
3110
3064
|
});
|
|
3111
3065
|
return retVal;
|
|
3112
3066
|
};
|
|
3113
|
-
const
|
|
3067
|
+
const de_FargateProfile = (output, context) => {
|
|
3114
3068
|
return {
|
|
3115
3069
|
clusterName: __expectString(output.clusterName),
|
|
3116
3070
|
createdAt: output.createdAt != null ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.createdAt))) : undefined,
|
|
3117
3071
|
fargateProfileArn: __expectString(output.fargateProfileArn),
|
|
3118
3072
|
fargateProfileName: __expectString(output.fargateProfileName),
|
|
3119
3073
|
podExecutionRoleArn: __expectString(output.podExecutionRoleArn),
|
|
3120
|
-
selectors: output.selectors != null ?
|
|
3074
|
+
selectors: output.selectors != null ? de_FargateProfileSelectors(output.selectors, context) : undefined,
|
|
3121
3075
|
status: __expectString(output.status),
|
|
3122
|
-
subnets: output.subnets != null ?
|
|
3123
|
-
tags: output.tags != null ?
|
|
3076
|
+
subnets: output.subnets != null ? de_StringList(output.subnets, context) : undefined,
|
|
3077
|
+
tags: output.tags != null ? de_TagMap(output.tags, context) : undefined,
|
|
3124
3078
|
};
|
|
3125
3079
|
};
|
|
3126
|
-
const
|
|
3080
|
+
const de_FargateProfileLabel = (output, context) => {
|
|
3127
3081
|
return Object.entries(output).reduce((acc, [key, value]) => {
|
|
3128
3082
|
if (value === null) {
|
|
3129
3083
|
return acc;
|
|
@@ -3132,76 +3086,76 @@ const deserializeAws_restJson1FargateProfileLabel = (output, context) => {
|
|
|
3132
3086
|
return acc;
|
|
3133
3087
|
}, {});
|
|
3134
3088
|
};
|
|
3135
|
-
const
|
|
3089
|
+
const de_FargateProfileSelector = (output, context) => {
|
|
3136
3090
|
return {
|
|
3137
|
-
labels: output.labels != null ?
|
|
3091
|
+
labels: output.labels != null ? de_FargateProfileLabel(output.labels, context) : undefined,
|
|
3138
3092
|
namespace: __expectString(output.namespace),
|
|
3139
3093
|
};
|
|
3140
3094
|
};
|
|
3141
|
-
const
|
|
3095
|
+
const de_FargateProfileSelectors = (output, context) => {
|
|
3142
3096
|
const retVal = (output || [])
|
|
3143
3097
|
.filter((e) => e != null)
|
|
3144
3098
|
.map((entry) => {
|
|
3145
3099
|
if (entry === null) {
|
|
3146
3100
|
return null;
|
|
3147
3101
|
}
|
|
3148
|
-
return
|
|
3102
|
+
return de_FargateProfileSelector(entry, context);
|
|
3149
3103
|
});
|
|
3150
3104
|
return retVal;
|
|
3151
3105
|
};
|
|
3152
|
-
const
|
|
3106
|
+
const de_Identity = (output, context) => {
|
|
3153
3107
|
return {
|
|
3154
|
-
oidc: output.oidc != null ?
|
|
3108
|
+
oidc: output.oidc != null ? de_OIDC(output.oidc, context) : undefined,
|
|
3155
3109
|
};
|
|
3156
3110
|
};
|
|
3157
|
-
const
|
|
3111
|
+
const de_IdentityProviderConfig = (output, context) => {
|
|
3158
3112
|
return {
|
|
3159
3113
|
name: __expectString(output.name),
|
|
3160
3114
|
type: __expectString(output.type),
|
|
3161
3115
|
};
|
|
3162
3116
|
};
|
|
3163
|
-
const
|
|
3117
|
+
const de_IdentityProviderConfigResponse = (output, context) => {
|
|
3164
3118
|
return {
|
|
3165
|
-
oidc: output.oidc != null ?
|
|
3119
|
+
oidc: output.oidc != null ? de_OidcIdentityProviderConfig(output.oidc, context) : undefined,
|
|
3166
3120
|
};
|
|
3167
3121
|
};
|
|
3168
|
-
const
|
|
3122
|
+
const de_IdentityProviderConfigs = (output, context) => {
|
|
3169
3123
|
const retVal = (output || [])
|
|
3170
3124
|
.filter((e) => e != null)
|
|
3171
3125
|
.map((entry) => {
|
|
3172
3126
|
if (entry === null) {
|
|
3173
3127
|
return null;
|
|
3174
3128
|
}
|
|
3175
|
-
return
|
|
3129
|
+
return de_IdentityProviderConfig(entry, context);
|
|
3176
3130
|
});
|
|
3177
3131
|
return retVal;
|
|
3178
3132
|
};
|
|
3179
|
-
const
|
|
3133
|
+
const de_Issue = (output, context) => {
|
|
3180
3134
|
return {
|
|
3181
3135
|
code: __expectString(output.code),
|
|
3182
3136
|
message: __expectString(output.message),
|
|
3183
|
-
resourceIds: output.resourceIds != null ?
|
|
3137
|
+
resourceIds: output.resourceIds != null ? de_StringList(output.resourceIds, context) : undefined,
|
|
3184
3138
|
};
|
|
3185
3139
|
};
|
|
3186
|
-
const
|
|
3140
|
+
const de_IssueList = (output, context) => {
|
|
3187
3141
|
const retVal = (output || [])
|
|
3188
3142
|
.filter((e) => e != null)
|
|
3189
3143
|
.map((entry) => {
|
|
3190
3144
|
if (entry === null) {
|
|
3191
3145
|
return null;
|
|
3192
3146
|
}
|
|
3193
|
-
return
|
|
3147
|
+
return de_Issue(entry, context);
|
|
3194
3148
|
});
|
|
3195
3149
|
return retVal;
|
|
3196
3150
|
};
|
|
3197
|
-
const
|
|
3151
|
+
const de_KubernetesNetworkConfigResponse = (output, context) => {
|
|
3198
3152
|
return {
|
|
3199
3153
|
ipFamily: __expectString(output.ipFamily),
|
|
3200
3154
|
serviceIpv4Cidr: __expectString(output.serviceIpv4Cidr),
|
|
3201
3155
|
serviceIpv6Cidr: __expectString(output.serviceIpv6Cidr),
|
|
3202
3156
|
};
|
|
3203
3157
|
};
|
|
3204
|
-
const
|
|
3158
|
+
const de_labelsMap = (output, context) => {
|
|
3205
3159
|
return Object.entries(output).reduce((acc, [key, value]) => {
|
|
3206
3160
|
if (value === null) {
|
|
3207
3161
|
return acc;
|
|
@@ -3210,36 +3164,36 @@ const deserializeAws_restJson1labelsMap = (output, context) => {
|
|
|
3210
3164
|
return acc;
|
|
3211
3165
|
}, {});
|
|
3212
3166
|
};
|
|
3213
|
-
const
|
|
3167
|
+
const de_LaunchTemplateSpecification = (output, context) => {
|
|
3214
3168
|
return {
|
|
3215
3169
|
id: __expectString(output.id),
|
|
3216
3170
|
name: __expectString(output.name),
|
|
3217
3171
|
version: __expectString(output.version),
|
|
3218
3172
|
};
|
|
3219
3173
|
};
|
|
3220
|
-
const
|
|
3174
|
+
const de_Logging = (output, context) => {
|
|
3221
3175
|
return {
|
|
3222
|
-
clusterLogging: output.clusterLogging != null ?
|
|
3176
|
+
clusterLogging: output.clusterLogging != null ? de_LogSetups(output.clusterLogging, context) : undefined,
|
|
3223
3177
|
};
|
|
3224
3178
|
};
|
|
3225
|
-
const
|
|
3179
|
+
const de_LogSetup = (output, context) => {
|
|
3226
3180
|
return {
|
|
3227
3181
|
enabled: __expectBoolean(output.enabled),
|
|
3228
|
-
types: output.types != null ?
|
|
3182
|
+
types: output.types != null ? de_LogTypes(output.types, context) : undefined,
|
|
3229
3183
|
};
|
|
3230
3184
|
};
|
|
3231
|
-
const
|
|
3185
|
+
const de_LogSetups = (output, context) => {
|
|
3232
3186
|
const retVal = (output || [])
|
|
3233
3187
|
.filter((e) => e != null)
|
|
3234
3188
|
.map((entry) => {
|
|
3235
3189
|
if (entry === null) {
|
|
3236
3190
|
return null;
|
|
3237
3191
|
}
|
|
3238
|
-
return
|
|
3192
|
+
return de_LogSetup(entry, context);
|
|
3239
3193
|
});
|
|
3240
3194
|
return retVal;
|
|
3241
3195
|
};
|
|
3242
|
-
const
|
|
3196
|
+
const de_LogTypes = (output, context) => {
|
|
3243
3197
|
const retVal = (output || [])
|
|
3244
3198
|
.filter((e) => e != null)
|
|
3245
3199
|
.map((entry) => {
|
|
@@ -3250,79 +3204,69 @@ const deserializeAws_restJson1LogTypes = (output, context) => {
|
|
|
3250
3204
|
});
|
|
3251
3205
|
return retVal;
|
|
3252
3206
|
};
|
|
3253
|
-
const
|
|
3207
|
+
const de_MarketplaceInformation = (output, context) => {
|
|
3254
3208
|
return {
|
|
3255
3209
|
productId: __expectString(output.productId),
|
|
3256
3210
|
productUrl: __expectString(output.productUrl),
|
|
3257
3211
|
};
|
|
3258
3212
|
};
|
|
3259
|
-
const
|
|
3213
|
+
const de_Nodegroup = (output, context) => {
|
|
3260
3214
|
return {
|
|
3261
3215
|
amiType: __expectString(output.amiType),
|
|
3262
3216
|
capacityType: __expectString(output.capacityType),
|
|
3263
3217
|
clusterName: __expectString(output.clusterName),
|
|
3264
3218
|
createdAt: output.createdAt != null ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.createdAt))) : undefined,
|
|
3265
3219
|
diskSize: __expectInt32(output.diskSize),
|
|
3266
|
-
health: output.health != null ?
|
|
3267
|
-
instanceTypes: output.instanceTypes != null ?
|
|
3268
|
-
labels: output.labels != null ?
|
|
3269
|
-
launchTemplate: output.launchTemplate != null
|
|
3270
|
-
? deserializeAws_restJson1LaunchTemplateSpecification(output.launchTemplate, context)
|
|
3271
|
-
: undefined,
|
|
3220
|
+
health: output.health != null ? de_NodegroupHealth(output.health, context) : undefined,
|
|
3221
|
+
instanceTypes: output.instanceTypes != null ? de_StringList(output.instanceTypes, context) : undefined,
|
|
3222
|
+
labels: output.labels != null ? de_labelsMap(output.labels, context) : undefined,
|
|
3223
|
+
launchTemplate: output.launchTemplate != null ? de_LaunchTemplateSpecification(output.launchTemplate, context) : undefined,
|
|
3272
3224
|
modifiedAt: output.modifiedAt != null ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.modifiedAt))) : undefined,
|
|
3273
3225
|
nodeRole: __expectString(output.nodeRole),
|
|
3274
3226
|
nodegroupArn: __expectString(output.nodegroupArn),
|
|
3275
3227
|
nodegroupName: __expectString(output.nodegroupName),
|
|
3276
3228
|
releaseVersion: __expectString(output.releaseVersion),
|
|
3277
|
-
remoteAccess: output.remoteAccess != null
|
|
3278
|
-
|
|
3279
|
-
|
|
3280
|
-
resources: output.resources != null ? deserializeAws_restJson1NodegroupResources(output.resources, context) : undefined,
|
|
3281
|
-
scalingConfig: output.scalingConfig != null
|
|
3282
|
-
? deserializeAws_restJson1NodegroupScalingConfig(output.scalingConfig, context)
|
|
3283
|
-
: undefined,
|
|
3229
|
+
remoteAccess: output.remoteAccess != null ? de_RemoteAccessConfig(output.remoteAccess, context) : undefined,
|
|
3230
|
+
resources: output.resources != null ? de_NodegroupResources(output.resources, context) : undefined,
|
|
3231
|
+
scalingConfig: output.scalingConfig != null ? de_NodegroupScalingConfig(output.scalingConfig, context) : undefined,
|
|
3284
3232
|
status: __expectString(output.status),
|
|
3285
|
-
subnets: output.subnets != null ?
|
|
3286
|
-
tags: output.tags != null ?
|
|
3287
|
-
taints: output.taints != null ?
|
|
3288
|
-
updateConfig: output.updateConfig != null
|
|
3289
|
-
? deserializeAws_restJson1NodegroupUpdateConfig(output.updateConfig, context)
|
|
3290
|
-
: undefined,
|
|
3233
|
+
subnets: output.subnets != null ? de_StringList(output.subnets, context) : undefined,
|
|
3234
|
+
tags: output.tags != null ? de_TagMap(output.tags, context) : undefined,
|
|
3235
|
+
taints: output.taints != null ? de_taintsList(output.taints, context) : undefined,
|
|
3236
|
+
updateConfig: output.updateConfig != null ? de_NodegroupUpdateConfig(output.updateConfig, context) : undefined,
|
|
3291
3237
|
version: __expectString(output.version),
|
|
3292
3238
|
};
|
|
3293
3239
|
};
|
|
3294
|
-
const
|
|
3240
|
+
const de_NodegroupHealth = (output, context) => {
|
|
3295
3241
|
return {
|
|
3296
|
-
issues: output.issues != null ?
|
|
3242
|
+
issues: output.issues != null ? de_IssueList(output.issues, context) : undefined,
|
|
3297
3243
|
};
|
|
3298
3244
|
};
|
|
3299
|
-
const
|
|
3245
|
+
const de_NodegroupResources = (output, context) => {
|
|
3300
3246
|
return {
|
|
3301
|
-
autoScalingGroups: output.autoScalingGroups != null
|
|
3302
|
-
? deserializeAws_restJson1AutoScalingGroupList(output.autoScalingGroups, context)
|
|
3303
|
-
: undefined,
|
|
3247
|
+
autoScalingGroups: output.autoScalingGroups != null ? de_AutoScalingGroupList(output.autoScalingGroups, context) : undefined,
|
|
3304
3248
|
remoteAccessSecurityGroup: __expectString(output.remoteAccessSecurityGroup),
|
|
3305
3249
|
};
|
|
3306
3250
|
};
|
|
3307
|
-
const
|
|
3251
|
+
const de_NodegroupScalingConfig = (output, context) => {
|
|
3308
3252
|
return {
|
|
3309
3253
|
desiredSize: __expectInt32(output.desiredSize),
|
|
3310
3254
|
maxSize: __expectInt32(output.maxSize),
|
|
3311
3255
|
minSize: __expectInt32(output.minSize),
|
|
3312
3256
|
};
|
|
3313
3257
|
};
|
|
3314
|
-
const
|
|
3258
|
+
const de_NodegroupUpdateConfig = (output, context) => {
|
|
3315
3259
|
return {
|
|
3316
3260
|
maxUnavailable: __expectInt32(output.maxUnavailable),
|
|
3317
3261
|
maxUnavailablePercentage: __expectInt32(output.maxUnavailablePercentage),
|
|
3318
3262
|
};
|
|
3319
3263
|
};
|
|
3320
|
-
const
|
|
3264
|
+
const de_OIDC = (output, context) => {
|
|
3321
3265
|
return {
|
|
3322
3266
|
issuer: __expectString(output.issuer),
|
|
3323
3267
|
};
|
|
3324
3268
|
};
|
|
3325
|
-
const
|
|
3269
|
+
const de_OidcIdentityProviderConfig = (output, context) => {
|
|
3326
3270
|
return {
|
|
3327
3271
|
clientId: __expectString(output.clientId),
|
|
3328
3272
|
clusterName: __expectString(output.clusterName),
|
|
@@ -3331,38 +3275,34 @@ const deserializeAws_restJson1OidcIdentityProviderConfig = (output, context) =>
|
|
|
3331
3275
|
identityProviderConfigArn: __expectString(output.identityProviderConfigArn),
|
|
3332
3276
|
identityProviderConfigName: __expectString(output.identityProviderConfigName),
|
|
3333
3277
|
issuerUrl: __expectString(output.issuerUrl),
|
|
3334
|
-
requiredClaims: output.requiredClaims != null
|
|
3335
|
-
? deserializeAws_restJson1requiredClaimsMap(output.requiredClaims, context)
|
|
3336
|
-
: undefined,
|
|
3278
|
+
requiredClaims: output.requiredClaims != null ? de_requiredClaimsMap(output.requiredClaims, context) : undefined,
|
|
3337
3279
|
status: __expectString(output.status),
|
|
3338
|
-
tags: output.tags != null ?
|
|
3280
|
+
tags: output.tags != null ? de_TagMap(output.tags, context) : undefined,
|
|
3339
3281
|
usernameClaim: __expectString(output.usernameClaim),
|
|
3340
3282
|
usernamePrefix: __expectString(output.usernamePrefix),
|
|
3341
3283
|
};
|
|
3342
3284
|
};
|
|
3343
|
-
const
|
|
3285
|
+
const de_OutpostConfigResponse = (output, context) => {
|
|
3344
3286
|
return {
|
|
3345
3287
|
controlPlaneInstanceType: __expectString(output.controlPlaneInstanceType),
|
|
3346
3288
|
controlPlanePlacement: output.controlPlanePlacement != null
|
|
3347
|
-
?
|
|
3289
|
+
? de_ControlPlanePlacementResponse(output.controlPlanePlacement, context)
|
|
3348
3290
|
: undefined,
|
|
3349
|
-
outpostArns: output.outpostArns != null ?
|
|
3291
|
+
outpostArns: output.outpostArns != null ? de_StringList(output.outpostArns, context) : undefined,
|
|
3350
3292
|
};
|
|
3351
3293
|
};
|
|
3352
|
-
const
|
|
3294
|
+
const de_Provider = (output, context) => {
|
|
3353
3295
|
return {
|
|
3354
3296
|
keyArn: __expectString(output.keyArn),
|
|
3355
3297
|
};
|
|
3356
3298
|
};
|
|
3357
|
-
const
|
|
3299
|
+
const de_RemoteAccessConfig = (output, context) => {
|
|
3358
3300
|
return {
|
|
3359
3301
|
ec2SshKey: __expectString(output.ec2SshKey),
|
|
3360
|
-
sourceSecurityGroups: output.sourceSecurityGroups != null
|
|
3361
|
-
? deserializeAws_restJson1StringList(output.sourceSecurityGroups, context)
|
|
3362
|
-
: undefined,
|
|
3302
|
+
sourceSecurityGroups: output.sourceSecurityGroups != null ? de_StringList(output.sourceSecurityGroups, context) : undefined,
|
|
3363
3303
|
};
|
|
3364
3304
|
};
|
|
3365
|
-
const
|
|
3305
|
+
const de_requiredClaimsMap = (output, context) => {
|
|
3366
3306
|
return Object.entries(output).reduce((acc, [key, value]) => {
|
|
3367
3307
|
if (value === null) {
|
|
3368
3308
|
return acc;
|
|
@@ -3371,7 +3311,7 @@ const deserializeAws_restJson1requiredClaimsMap = (output, context) => {
|
|
|
3371
3311
|
return acc;
|
|
3372
3312
|
}, {});
|
|
3373
3313
|
};
|
|
3374
|
-
const
|
|
3314
|
+
const de_StringList = (output, context) => {
|
|
3375
3315
|
const retVal = (output || [])
|
|
3376
3316
|
.filter((e) => e != null)
|
|
3377
3317
|
.map((entry) => {
|
|
@@ -3382,7 +3322,7 @@ const deserializeAws_restJson1StringList = (output, context) => {
|
|
|
3382
3322
|
});
|
|
3383
3323
|
return retVal;
|
|
3384
3324
|
};
|
|
3385
|
-
const
|
|
3325
|
+
const de_TagMap = (output, context) => {
|
|
3386
3326
|
return Object.entries(output).reduce((acc, [key, value]) => {
|
|
3387
3327
|
if (value === null) {
|
|
3388
3328
|
return acc;
|
|
@@ -3391,63 +3331,59 @@ const deserializeAws_restJson1TagMap = (output, context) => {
|
|
|
3391
3331
|
return acc;
|
|
3392
3332
|
}, {});
|
|
3393
3333
|
};
|
|
3394
|
-
const
|
|
3334
|
+
const de_Taint = (output, context) => {
|
|
3395
3335
|
return {
|
|
3396
3336
|
effect: __expectString(output.effect),
|
|
3397
3337
|
key: __expectString(output.key),
|
|
3398
3338
|
value: __expectString(output.value),
|
|
3399
3339
|
};
|
|
3400
3340
|
};
|
|
3401
|
-
const
|
|
3341
|
+
const de_taintsList = (output, context) => {
|
|
3402
3342
|
const retVal = (output || [])
|
|
3403
3343
|
.filter((e) => e != null)
|
|
3404
3344
|
.map((entry) => {
|
|
3405
3345
|
if (entry === null) {
|
|
3406
3346
|
return null;
|
|
3407
3347
|
}
|
|
3408
|
-
return
|
|
3348
|
+
return de_Taint(entry, context);
|
|
3409
3349
|
});
|
|
3410
3350
|
return retVal;
|
|
3411
3351
|
};
|
|
3412
|
-
const
|
|
3352
|
+
const de_Update = (output, context) => {
|
|
3413
3353
|
return {
|
|
3414
3354
|
createdAt: output.createdAt != null ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.createdAt))) : undefined,
|
|
3415
|
-
errors: output.errors != null ?
|
|
3355
|
+
errors: output.errors != null ? de_ErrorDetails(output.errors, context) : undefined,
|
|
3416
3356
|
id: __expectString(output.id),
|
|
3417
|
-
params: output.params != null ?
|
|
3357
|
+
params: output.params != null ? de_UpdateParams(output.params, context) : undefined,
|
|
3418
3358
|
status: __expectString(output.status),
|
|
3419
3359
|
type: __expectString(output.type),
|
|
3420
3360
|
};
|
|
3421
3361
|
};
|
|
3422
|
-
const
|
|
3362
|
+
const de_UpdateParam = (output, context) => {
|
|
3423
3363
|
return {
|
|
3424
3364
|
type: __expectString(output.type),
|
|
3425
3365
|
value: __expectString(output.value),
|
|
3426
3366
|
};
|
|
3427
3367
|
};
|
|
3428
|
-
const
|
|
3368
|
+
const de_UpdateParams = (output, context) => {
|
|
3429
3369
|
const retVal = (output || [])
|
|
3430
3370
|
.filter((e) => e != null)
|
|
3431
3371
|
.map((entry) => {
|
|
3432
3372
|
if (entry === null) {
|
|
3433
3373
|
return null;
|
|
3434
3374
|
}
|
|
3435
|
-
return
|
|
3375
|
+
return de_UpdateParam(entry, context);
|
|
3436
3376
|
});
|
|
3437
3377
|
return retVal;
|
|
3438
3378
|
};
|
|
3439
|
-
const
|
|
3379
|
+
const de_VpcConfigResponse = (output, context) => {
|
|
3440
3380
|
return {
|
|
3441
3381
|
clusterSecurityGroupId: __expectString(output.clusterSecurityGroupId),
|
|
3442
3382
|
endpointPrivateAccess: __expectBoolean(output.endpointPrivateAccess),
|
|
3443
3383
|
endpointPublicAccess: __expectBoolean(output.endpointPublicAccess),
|
|
3444
|
-
publicAccessCidrs: output.publicAccessCidrs != null
|
|
3445
|
-
|
|
3446
|
-
|
|
3447
|
-
securityGroupIds: output.securityGroupIds != null
|
|
3448
|
-
? deserializeAws_restJson1StringList(output.securityGroupIds, context)
|
|
3449
|
-
: undefined,
|
|
3450
|
-
subnetIds: output.subnetIds != null ? deserializeAws_restJson1StringList(output.subnetIds, context) : undefined,
|
|
3384
|
+
publicAccessCidrs: output.publicAccessCidrs != null ? de_StringList(output.publicAccessCidrs, context) : undefined,
|
|
3385
|
+
securityGroupIds: output.securityGroupIds != null ? de_StringList(output.securityGroupIds, context) : undefined,
|
|
3386
|
+
subnetIds: output.subnetIds != null ? de_StringList(output.subnetIds, context) : undefined,
|
|
3451
3387
|
vpcId: __expectString(output.vpcId),
|
|
3452
3388
|
};
|
|
3453
3389
|
};
|