@aws-sdk/client-eks 3.31.0 → 3.32.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +8 -0
- package/dist/cjs/EKSClient.js +13 -13
- package/dist/cjs/EKSClient.js.map +1 -1
- package/dist/cjs/commands/AssociateEncryptionConfigCommand.js +3 -3
- package/dist/cjs/commands/AssociateEncryptionConfigCommand.js.map +1 -1
- package/dist/cjs/commands/AssociateIdentityProviderConfigCommand.js +3 -3
- package/dist/cjs/commands/AssociateIdentityProviderConfigCommand.js.map +1 -1
- package/dist/cjs/commands/CreateAddonCommand.js +3 -3
- package/dist/cjs/commands/CreateAddonCommand.js.map +1 -1
- package/dist/cjs/commands/CreateClusterCommand.js +3 -3
- package/dist/cjs/commands/CreateClusterCommand.js.map +1 -1
- package/dist/cjs/commands/CreateFargateProfileCommand.js +3 -3
- package/dist/cjs/commands/CreateFargateProfileCommand.js.map +1 -1
- package/dist/cjs/commands/CreateNodegroupCommand.js +3 -3
- package/dist/cjs/commands/CreateNodegroupCommand.js.map +1 -1
- package/dist/cjs/commands/DeleteAddonCommand.js +3 -3
- package/dist/cjs/commands/DeleteAddonCommand.js.map +1 -1
- package/dist/cjs/commands/DeleteClusterCommand.js +3 -3
- package/dist/cjs/commands/DeleteClusterCommand.js.map +1 -1
- package/dist/cjs/commands/DeleteFargateProfileCommand.js +3 -3
- package/dist/cjs/commands/DeleteFargateProfileCommand.js.map +1 -1
- package/dist/cjs/commands/DeleteNodegroupCommand.js +3 -3
- package/dist/cjs/commands/DeleteNodegroupCommand.js.map +1 -1
- package/dist/cjs/commands/DeregisterClusterCommand.js +3 -3
- package/dist/cjs/commands/DeregisterClusterCommand.js.map +1 -1
- package/dist/cjs/commands/DescribeAddonCommand.js +3 -3
- package/dist/cjs/commands/DescribeAddonCommand.js.map +1 -1
- package/dist/cjs/commands/DescribeAddonVersionsCommand.js +3 -3
- package/dist/cjs/commands/DescribeAddonVersionsCommand.js.map +1 -1
- package/dist/cjs/commands/DescribeClusterCommand.js +3 -3
- package/dist/cjs/commands/DescribeClusterCommand.js.map +1 -1
- package/dist/cjs/commands/DescribeFargateProfileCommand.js +3 -3
- package/dist/cjs/commands/DescribeFargateProfileCommand.js.map +1 -1
- package/dist/cjs/commands/DescribeIdentityProviderConfigCommand.js +3 -3
- package/dist/cjs/commands/DescribeIdentityProviderConfigCommand.js.map +1 -1
- package/dist/cjs/commands/DescribeNodegroupCommand.js +3 -3
- package/dist/cjs/commands/DescribeNodegroupCommand.js.map +1 -1
- package/dist/cjs/commands/DescribeUpdateCommand.js +3 -3
- package/dist/cjs/commands/DescribeUpdateCommand.js.map +1 -1
- package/dist/cjs/commands/DisassociateIdentityProviderConfigCommand.js +3 -3
- package/dist/cjs/commands/DisassociateIdentityProviderConfigCommand.js.map +1 -1
- package/dist/cjs/commands/ListAddonsCommand.js +3 -3
- package/dist/cjs/commands/ListAddonsCommand.js.map +1 -1
- package/dist/cjs/commands/ListClustersCommand.js +3 -3
- package/dist/cjs/commands/ListClustersCommand.js.map +1 -1
- package/dist/cjs/commands/ListFargateProfilesCommand.js +3 -3
- package/dist/cjs/commands/ListFargateProfilesCommand.js.map +1 -1
- package/dist/cjs/commands/ListIdentityProviderConfigsCommand.js +3 -3
- package/dist/cjs/commands/ListIdentityProviderConfigsCommand.js.map +1 -1
- package/dist/cjs/commands/ListNodegroupsCommand.js +3 -3
- package/dist/cjs/commands/ListNodegroupsCommand.js.map +1 -1
- package/dist/cjs/commands/ListTagsForResourceCommand.js +3 -3
- package/dist/cjs/commands/ListTagsForResourceCommand.js.map +1 -1
- package/dist/cjs/commands/ListUpdatesCommand.js +3 -3
- package/dist/cjs/commands/ListUpdatesCommand.js.map +1 -1
- package/dist/cjs/commands/RegisterClusterCommand.js +3 -3
- package/dist/cjs/commands/RegisterClusterCommand.js.map +1 -1
- package/dist/cjs/commands/TagResourceCommand.js +3 -3
- package/dist/cjs/commands/TagResourceCommand.js.map +1 -1
- package/dist/cjs/commands/UntagResourceCommand.js +3 -3
- package/dist/cjs/commands/UntagResourceCommand.js.map +1 -1
- package/dist/cjs/commands/UpdateAddonCommand.js +3 -3
- package/dist/cjs/commands/UpdateAddonCommand.js.map +1 -1
- package/dist/cjs/commands/UpdateClusterConfigCommand.js +3 -3
- package/dist/cjs/commands/UpdateClusterConfigCommand.js.map +1 -1
- package/dist/cjs/commands/UpdateClusterVersionCommand.js +3 -3
- package/dist/cjs/commands/UpdateClusterVersionCommand.js.map +1 -1
- package/dist/cjs/commands/UpdateNodegroupConfigCommand.js +3 -3
- package/dist/cjs/commands/UpdateNodegroupConfigCommand.js.map +1 -1
- package/dist/cjs/commands/UpdateNodegroupVersionCommand.js +3 -3
- package/dist/cjs/commands/UpdateNodegroupVersionCommand.js.map +1 -1
- package/dist/cjs/endpoints.js +1 -1
- package/dist/cjs/endpoints.js.map +1 -1
- package/dist/cjs/index.js +53 -53
- package/dist/cjs/index.js.map +1 -1
- package/dist/cjs/models/index.js +1 -1
- package/dist/cjs/models/index.js.map +1 -1
- package/dist/cjs/package.json +32 -32
- package/dist/cjs/protocols/Aws_restJson1.js +226 -226
- package/dist/cjs/protocols/Aws_restJson1.js.map +1 -1
- package/dist/cjs/runtimeConfig.browser.js +4 -4
- package/dist/cjs/runtimeConfig.browser.js.map +1 -1
- package/dist/cjs/runtimeConfig.js +8 -8
- package/dist/cjs/runtimeConfig.js.map +1 -1
- package/dist/cjs/runtimeConfig.native.js +1 -1
- package/dist/cjs/runtimeConfig.native.js.map +1 -1
- package/dist/cjs/waiters/waitForAddonActive.js +3 -3
- package/dist/cjs/waiters/waitForAddonActive.js.map +1 -1
- package/dist/cjs/waiters/waitForAddonDeleted.js +3 -3
- package/dist/cjs/waiters/waitForAddonDeleted.js.map +1 -1
- package/dist/cjs/waiters/waitForClusterActive.js +3 -3
- package/dist/cjs/waiters/waitForClusterActive.js.map +1 -1
- package/dist/cjs/waiters/waitForClusterDeleted.js +3 -3
- package/dist/cjs/waiters/waitForClusterDeleted.js.map +1 -1
- package/dist/cjs/waiters/waitForFargateProfileActive.js +3 -3
- package/dist/cjs/waiters/waitForFargateProfileActive.js.map +1 -1
- package/dist/cjs/waiters/waitForFargateProfileDeleted.js +3 -3
- package/dist/cjs/waiters/waitForFargateProfileDeleted.js.map +1 -1
- package/dist/cjs/waiters/waitForNodegroupActive.js +3 -3
- package/dist/cjs/waiters/waitForNodegroupActive.js.map +1 -1
- package/dist/cjs/waiters/waitForNodegroupDeleted.js +3 -3
- package/dist/cjs/waiters/waitForNodegroupDeleted.js.map +1 -1
- package/dist/es/package.json +32 -32
- package/dist/es/pagination/DescribeAddonVersionsPaginator.js +4 -4
- package/dist/es/pagination/DescribeAddonVersionsPaginator.js.map +1 -1
- package/dist/es/pagination/ListAddonsPaginator.js +4 -4
- package/dist/es/pagination/ListAddonsPaginator.js.map +1 -1
- package/dist/es/pagination/ListClustersPaginator.js +4 -4
- package/dist/es/pagination/ListClustersPaginator.js.map +1 -1
- package/dist/es/pagination/ListFargateProfilesPaginator.js +4 -4
- package/dist/es/pagination/ListFargateProfilesPaginator.js.map +1 -1
- package/dist/es/pagination/ListIdentityProviderConfigsPaginator.js +4 -4
- package/dist/es/pagination/ListIdentityProviderConfigsPaginator.js.map +1 -1
- package/dist/es/pagination/ListNodegroupsPaginator.js +4 -4
- package/dist/es/pagination/ListNodegroupsPaginator.js.map +1 -1
- package/dist/es/pagination/ListUpdatesPaginator.js +4 -4
- package/dist/es/pagination/ListUpdatesPaginator.js.map +1 -1
- package/package.json +32 -32
- package/tsconfig.json +1 -2
|
@@ -18,14 +18,14 @@ const serializeAws_restJson1AssociateEncryptionConfigCommand = async (input, con
|
|
|
18
18
|
if (labelValue.length <= 0) {
|
|
19
19
|
throw new Error("Empty value provided for input HTTP label: clusterName.");
|
|
20
20
|
}
|
|
21
|
-
resolvedPath = resolvedPath.replace("{clusterName}",
|
|
21
|
+
resolvedPath = resolvedPath.replace("{clusterName}", smithy_client_1.extendedEncodeURIComponent(labelValue));
|
|
22
22
|
}
|
|
23
23
|
else {
|
|
24
24
|
throw new Error("No value provided for input HTTP label: clusterName.");
|
|
25
25
|
}
|
|
26
26
|
let body;
|
|
27
27
|
body = JSON.stringify({
|
|
28
|
-
clientRequestToken: (_a = input.clientRequestToken) !== null && _a !== void 0 ? _a :
|
|
28
|
+
clientRequestToken: (_a = input.clientRequestToken) !== null && _a !== void 0 ? _a : uuid_1.v4(),
|
|
29
29
|
...(input.encryptionConfig !== undefined &&
|
|
30
30
|
input.encryptionConfig !== null && {
|
|
31
31
|
encryptionConfig: serializeAws_restJson1EncryptionConfigList(input.encryptionConfig, context),
|
|
@@ -55,14 +55,14 @@ const serializeAws_restJson1AssociateIdentityProviderConfigCommand = async (inpu
|
|
|
55
55
|
if (labelValue.length <= 0) {
|
|
56
56
|
throw new Error("Empty value provided for input HTTP label: clusterName.");
|
|
57
57
|
}
|
|
58
|
-
resolvedPath = resolvedPath.replace("{clusterName}",
|
|
58
|
+
resolvedPath = resolvedPath.replace("{clusterName}", smithy_client_1.extendedEncodeURIComponent(labelValue));
|
|
59
59
|
}
|
|
60
60
|
else {
|
|
61
61
|
throw new Error("No value provided for input HTTP label: clusterName.");
|
|
62
62
|
}
|
|
63
63
|
let body;
|
|
64
64
|
body = JSON.stringify({
|
|
65
|
-
clientRequestToken: (_a = input.clientRequestToken) !== null && _a !== void 0 ? _a :
|
|
65
|
+
clientRequestToken: (_a = input.clientRequestToken) !== null && _a !== void 0 ? _a : uuid_1.v4(),
|
|
66
66
|
...(input.oidc !== undefined &&
|
|
67
67
|
input.oidc !== null && { oidc: serializeAws_restJson1OidcIdentityProviderConfigRequest(input.oidc, context) }),
|
|
68
68
|
...(input.tags !== undefined && input.tags !== null && { tags: serializeAws_restJson1TagMap(input.tags, context) }),
|
|
@@ -90,7 +90,7 @@ const serializeAws_restJson1CreateAddonCommand = async (input, context) => {
|
|
|
90
90
|
if (labelValue.length <= 0) {
|
|
91
91
|
throw new Error("Empty value provided for input HTTP label: clusterName.");
|
|
92
92
|
}
|
|
93
|
-
resolvedPath = resolvedPath.replace("{clusterName}",
|
|
93
|
+
resolvedPath = resolvedPath.replace("{clusterName}", smithy_client_1.extendedEncodeURIComponent(labelValue));
|
|
94
94
|
}
|
|
95
95
|
else {
|
|
96
96
|
throw new Error("No value provided for input HTTP label: clusterName.");
|
|
@@ -99,7 +99,7 @@ const serializeAws_restJson1CreateAddonCommand = async (input, context) => {
|
|
|
99
99
|
body = JSON.stringify({
|
|
100
100
|
...(input.addonName !== undefined && input.addonName !== null && { addonName: input.addonName }),
|
|
101
101
|
...(input.addonVersion !== undefined && input.addonVersion !== null && { addonVersion: input.addonVersion }),
|
|
102
|
-
clientRequestToken: (_a = input.clientRequestToken) !== null && _a !== void 0 ? _a :
|
|
102
|
+
clientRequestToken: (_a = input.clientRequestToken) !== null && _a !== void 0 ? _a : uuid_1.v4(),
|
|
103
103
|
...(input.resolveConflicts !== undefined &&
|
|
104
104
|
input.resolveConflicts !== null && { resolveConflicts: input.resolveConflicts }),
|
|
105
105
|
...(input.serviceAccountRoleArn !== undefined &&
|
|
@@ -126,7 +126,7 @@ const serializeAws_restJson1CreateClusterCommand = async (input, context) => {
|
|
|
126
126
|
let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/clusters";
|
|
127
127
|
let body;
|
|
128
128
|
body = JSON.stringify({
|
|
129
|
-
clientRequestToken: (_a = input.clientRequestToken) !== null && _a !== void 0 ? _a :
|
|
129
|
+
clientRequestToken: (_a = input.clientRequestToken) !== null && _a !== void 0 ? _a : uuid_1.v4(),
|
|
130
130
|
...(input.encryptionConfig !== undefined &&
|
|
131
131
|
input.encryptionConfig !== null && {
|
|
132
132
|
encryptionConfig: serializeAws_restJson1EncryptionConfigList(input.encryptionConfig, context),
|
|
@@ -169,14 +169,14 @@ const serializeAws_restJson1CreateFargateProfileCommand = async (input, context)
|
|
|
169
169
|
if (labelValue.length <= 0) {
|
|
170
170
|
throw new Error("Empty value provided for input HTTP label: clusterName.");
|
|
171
171
|
}
|
|
172
|
-
resolvedPath = resolvedPath.replace("{clusterName}",
|
|
172
|
+
resolvedPath = resolvedPath.replace("{clusterName}", smithy_client_1.extendedEncodeURIComponent(labelValue));
|
|
173
173
|
}
|
|
174
174
|
else {
|
|
175
175
|
throw new Error("No value provided for input HTTP label: clusterName.");
|
|
176
176
|
}
|
|
177
177
|
let body;
|
|
178
178
|
body = JSON.stringify({
|
|
179
|
-
clientRequestToken: (_a = input.clientRequestToken) !== null && _a !== void 0 ? _a :
|
|
179
|
+
clientRequestToken: (_a = input.clientRequestToken) !== null && _a !== void 0 ? _a : uuid_1.v4(),
|
|
180
180
|
...(input.fargateProfileName !== undefined &&
|
|
181
181
|
input.fargateProfileName !== null && { fargateProfileName: input.fargateProfileName }),
|
|
182
182
|
...(input.podExecutionRoleArn !== undefined &&
|
|
@@ -212,7 +212,7 @@ const serializeAws_restJson1CreateNodegroupCommand = async (input, context) => {
|
|
|
212
212
|
if (labelValue.length <= 0) {
|
|
213
213
|
throw new Error("Empty value provided for input HTTP label: clusterName.");
|
|
214
214
|
}
|
|
215
|
-
resolvedPath = resolvedPath.replace("{clusterName}",
|
|
215
|
+
resolvedPath = resolvedPath.replace("{clusterName}", smithy_client_1.extendedEncodeURIComponent(labelValue));
|
|
216
216
|
}
|
|
217
217
|
else {
|
|
218
218
|
throw new Error("No value provided for input HTTP label: clusterName.");
|
|
@@ -221,7 +221,7 @@ const serializeAws_restJson1CreateNodegroupCommand = async (input, context) => {
|
|
|
221
221
|
body = JSON.stringify({
|
|
222
222
|
...(input.amiType !== undefined && input.amiType !== null && { amiType: input.amiType }),
|
|
223
223
|
...(input.capacityType !== undefined && input.capacityType !== null && { capacityType: input.capacityType }),
|
|
224
|
-
clientRequestToken: (_a = input.clientRequestToken) !== null && _a !== void 0 ? _a :
|
|
224
|
+
clientRequestToken: (_a = input.clientRequestToken) !== null && _a !== void 0 ? _a : uuid_1.v4(),
|
|
225
225
|
...(input.diskSize !== undefined && input.diskSize !== null && { diskSize: input.diskSize }),
|
|
226
226
|
...(input.instanceTypes !== undefined &&
|
|
227
227
|
input.instanceTypes !== null && {
|
|
@@ -277,7 +277,7 @@ const serializeAws_restJson1DeleteAddonCommand = async (input, context) => {
|
|
|
277
277
|
if (labelValue.length <= 0) {
|
|
278
278
|
throw new Error("Empty value provided for input HTTP label: clusterName.");
|
|
279
279
|
}
|
|
280
|
-
resolvedPath = resolvedPath.replace("{clusterName}",
|
|
280
|
+
resolvedPath = resolvedPath.replace("{clusterName}", smithy_client_1.extendedEncodeURIComponent(labelValue));
|
|
281
281
|
}
|
|
282
282
|
else {
|
|
283
283
|
throw new Error("No value provided for input HTTP label: clusterName.");
|
|
@@ -287,7 +287,7 @@ const serializeAws_restJson1DeleteAddonCommand = async (input, context) => {
|
|
|
287
287
|
if (labelValue.length <= 0) {
|
|
288
288
|
throw new Error("Empty value provided for input HTTP label: addonName.");
|
|
289
289
|
}
|
|
290
|
-
resolvedPath = resolvedPath.replace("{addonName}",
|
|
290
|
+
resolvedPath = resolvedPath.replace("{addonName}", smithy_client_1.extendedEncodeURIComponent(labelValue));
|
|
291
291
|
}
|
|
292
292
|
else {
|
|
293
293
|
throw new Error("No value provided for input HTTP label: addonName.");
|
|
@@ -317,7 +317,7 @@ const serializeAws_restJson1DeleteClusterCommand = async (input, context) => {
|
|
|
317
317
|
if (labelValue.length <= 0) {
|
|
318
318
|
throw new Error("Empty value provided for input HTTP label: name.");
|
|
319
319
|
}
|
|
320
|
-
resolvedPath = resolvedPath.replace("{name}",
|
|
320
|
+
resolvedPath = resolvedPath.replace("{name}", smithy_client_1.extendedEncodeURIComponent(labelValue));
|
|
321
321
|
}
|
|
322
322
|
else {
|
|
323
323
|
throw new Error("No value provided for input HTTP label: name.");
|
|
@@ -344,7 +344,7 @@ const serializeAws_restJson1DeleteFargateProfileCommand = async (input, context)
|
|
|
344
344
|
if (labelValue.length <= 0) {
|
|
345
345
|
throw new Error("Empty value provided for input HTTP label: clusterName.");
|
|
346
346
|
}
|
|
347
|
-
resolvedPath = resolvedPath.replace("{clusterName}",
|
|
347
|
+
resolvedPath = resolvedPath.replace("{clusterName}", smithy_client_1.extendedEncodeURIComponent(labelValue));
|
|
348
348
|
}
|
|
349
349
|
else {
|
|
350
350
|
throw new Error("No value provided for input HTTP label: clusterName.");
|
|
@@ -354,7 +354,7 @@ const serializeAws_restJson1DeleteFargateProfileCommand = async (input, context)
|
|
|
354
354
|
if (labelValue.length <= 0) {
|
|
355
355
|
throw new Error("Empty value provided for input HTTP label: fargateProfileName.");
|
|
356
356
|
}
|
|
357
|
-
resolvedPath = resolvedPath.replace("{fargateProfileName}",
|
|
357
|
+
resolvedPath = resolvedPath.replace("{fargateProfileName}", smithy_client_1.extendedEncodeURIComponent(labelValue));
|
|
358
358
|
}
|
|
359
359
|
else {
|
|
360
360
|
throw new Error("No value provided for input HTTP label: fargateProfileName.");
|
|
@@ -381,7 +381,7 @@ const serializeAws_restJson1DeleteNodegroupCommand = async (input, context) => {
|
|
|
381
381
|
if (labelValue.length <= 0) {
|
|
382
382
|
throw new Error("Empty value provided for input HTTP label: clusterName.");
|
|
383
383
|
}
|
|
384
|
-
resolvedPath = resolvedPath.replace("{clusterName}",
|
|
384
|
+
resolvedPath = resolvedPath.replace("{clusterName}", smithy_client_1.extendedEncodeURIComponent(labelValue));
|
|
385
385
|
}
|
|
386
386
|
else {
|
|
387
387
|
throw new Error("No value provided for input HTTP label: clusterName.");
|
|
@@ -391,7 +391,7 @@ const serializeAws_restJson1DeleteNodegroupCommand = async (input, context) => {
|
|
|
391
391
|
if (labelValue.length <= 0) {
|
|
392
392
|
throw new Error("Empty value provided for input HTTP label: nodegroupName.");
|
|
393
393
|
}
|
|
394
|
-
resolvedPath = resolvedPath.replace("{nodegroupName}",
|
|
394
|
+
resolvedPath = resolvedPath.replace("{nodegroupName}", smithy_client_1.extendedEncodeURIComponent(labelValue));
|
|
395
395
|
}
|
|
396
396
|
else {
|
|
397
397
|
throw new Error("No value provided for input HTTP label: nodegroupName.");
|
|
@@ -417,7 +417,7 @@ const serializeAws_restJson1DeregisterClusterCommand = async (input, context) =>
|
|
|
417
417
|
if (labelValue.length <= 0) {
|
|
418
418
|
throw new Error("Empty value provided for input HTTP label: name.");
|
|
419
419
|
}
|
|
420
|
-
resolvedPath = resolvedPath.replace("{name}",
|
|
420
|
+
resolvedPath = resolvedPath.replace("{name}", smithy_client_1.extendedEncodeURIComponent(labelValue));
|
|
421
421
|
}
|
|
422
422
|
else {
|
|
423
423
|
throw new Error("No value provided for input HTTP label: name.");
|
|
@@ -444,7 +444,7 @@ const serializeAws_restJson1DescribeAddonCommand = async (input, context) => {
|
|
|
444
444
|
if (labelValue.length <= 0) {
|
|
445
445
|
throw new Error("Empty value provided for input HTTP label: clusterName.");
|
|
446
446
|
}
|
|
447
|
-
resolvedPath = resolvedPath.replace("{clusterName}",
|
|
447
|
+
resolvedPath = resolvedPath.replace("{clusterName}", smithy_client_1.extendedEncodeURIComponent(labelValue));
|
|
448
448
|
}
|
|
449
449
|
else {
|
|
450
450
|
throw new Error("No value provided for input HTTP label: clusterName.");
|
|
@@ -454,7 +454,7 @@ const serializeAws_restJson1DescribeAddonCommand = async (input, context) => {
|
|
|
454
454
|
if (labelValue.length <= 0) {
|
|
455
455
|
throw new Error("Empty value provided for input HTTP label: addonName.");
|
|
456
456
|
}
|
|
457
|
-
resolvedPath = resolvedPath.replace("{addonName}",
|
|
457
|
+
resolvedPath = resolvedPath.replace("{addonName}", smithy_client_1.extendedEncodeURIComponent(labelValue));
|
|
458
458
|
}
|
|
459
459
|
else {
|
|
460
460
|
throw new Error("No value provided for input HTTP label: addonName.");
|
|
@@ -503,7 +503,7 @@ const serializeAws_restJson1DescribeClusterCommand = async (input, context) => {
|
|
|
503
503
|
if (labelValue.length <= 0) {
|
|
504
504
|
throw new Error("Empty value provided for input HTTP label: name.");
|
|
505
505
|
}
|
|
506
|
-
resolvedPath = resolvedPath.replace("{name}",
|
|
506
|
+
resolvedPath = resolvedPath.replace("{name}", smithy_client_1.extendedEncodeURIComponent(labelValue));
|
|
507
507
|
}
|
|
508
508
|
else {
|
|
509
509
|
throw new Error("No value provided for input HTTP label: name.");
|
|
@@ -530,7 +530,7 @@ const serializeAws_restJson1DescribeFargateProfileCommand = async (input, contex
|
|
|
530
530
|
if (labelValue.length <= 0) {
|
|
531
531
|
throw new Error("Empty value provided for input HTTP label: clusterName.");
|
|
532
532
|
}
|
|
533
|
-
resolvedPath = resolvedPath.replace("{clusterName}",
|
|
533
|
+
resolvedPath = resolvedPath.replace("{clusterName}", smithy_client_1.extendedEncodeURIComponent(labelValue));
|
|
534
534
|
}
|
|
535
535
|
else {
|
|
536
536
|
throw new Error("No value provided for input HTTP label: clusterName.");
|
|
@@ -540,7 +540,7 @@ const serializeAws_restJson1DescribeFargateProfileCommand = async (input, contex
|
|
|
540
540
|
if (labelValue.length <= 0) {
|
|
541
541
|
throw new Error("Empty value provided for input HTTP label: fargateProfileName.");
|
|
542
542
|
}
|
|
543
|
-
resolvedPath = resolvedPath.replace("{fargateProfileName}",
|
|
543
|
+
resolvedPath = resolvedPath.replace("{fargateProfileName}", smithy_client_1.extendedEncodeURIComponent(labelValue));
|
|
544
544
|
}
|
|
545
545
|
else {
|
|
546
546
|
throw new Error("No value provided for input HTTP label: fargateProfileName.");
|
|
@@ -569,7 +569,7 @@ const serializeAws_restJson1DescribeIdentityProviderConfigCommand = async (input
|
|
|
569
569
|
if (labelValue.length <= 0) {
|
|
570
570
|
throw new Error("Empty value provided for input HTTP label: clusterName.");
|
|
571
571
|
}
|
|
572
|
-
resolvedPath = resolvedPath.replace("{clusterName}",
|
|
572
|
+
resolvedPath = resolvedPath.replace("{clusterName}", smithy_client_1.extendedEncodeURIComponent(labelValue));
|
|
573
573
|
}
|
|
574
574
|
else {
|
|
575
575
|
throw new Error("No value provided for input HTTP label: clusterName.");
|
|
@@ -602,7 +602,7 @@ const serializeAws_restJson1DescribeNodegroupCommand = async (input, context) =>
|
|
|
602
602
|
if (labelValue.length <= 0) {
|
|
603
603
|
throw new Error("Empty value provided for input HTTP label: clusterName.");
|
|
604
604
|
}
|
|
605
|
-
resolvedPath = resolvedPath.replace("{clusterName}",
|
|
605
|
+
resolvedPath = resolvedPath.replace("{clusterName}", smithy_client_1.extendedEncodeURIComponent(labelValue));
|
|
606
606
|
}
|
|
607
607
|
else {
|
|
608
608
|
throw new Error("No value provided for input HTTP label: clusterName.");
|
|
@@ -612,7 +612,7 @@ const serializeAws_restJson1DescribeNodegroupCommand = async (input, context) =>
|
|
|
612
612
|
if (labelValue.length <= 0) {
|
|
613
613
|
throw new Error("Empty value provided for input HTTP label: nodegroupName.");
|
|
614
614
|
}
|
|
615
|
-
resolvedPath = resolvedPath.replace("{nodegroupName}",
|
|
615
|
+
resolvedPath = resolvedPath.replace("{nodegroupName}", smithy_client_1.extendedEncodeURIComponent(labelValue));
|
|
616
616
|
}
|
|
617
617
|
else {
|
|
618
618
|
throw new Error("No value provided for input HTTP label: nodegroupName.");
|
|
@@ -638,7 +638,7 @@ const serializeAws_restJson1DescribeUpdateCommand = async (input, context) => {
|
|
|
638
638
|
if (labelValue.length <= 0) {
|
|
639
639
|
throw new Error("Empty value provided for input HTTP label: name.");
|
|
640
640
|
}
|
|
641
|
-
resolvedPath = resolvedPath.replace("{name}",
|
|
641
|
+
resolvedPath = resolvedPath.replace("{name}", smithy_client_1.extendedEncodeURIComponent(labelValue));
|
|
642
642
|
}
|
|
643
643
|
else {
|
|
644
644
|
throw new Error("No value provided for input HTTP label: name.");
|
|
@@ -648,7 +648,7 @@ const serializeAws_restJson1DescribeUpdateCommand = async (input, context) => {
|
|
|
648
648
|
if (labelValue.length <= 0) {
|
|
649
649
|
throw new Error("Empty value provided for input HTTP label: updateId.");
|
|
650
650
|
}
|
|
651
|
-
resolvedPath = resolvedPath.replace("{updateId}",
|
|
651
|
+
resolvedPath = resolvedPath.replace("{updateId}", smithy_client_1.extendedEncodeURIComponent(labelValue));
|
|
652
652
|
}
|
|
653
653
|
else {
|
|
654
654
|
throw new Error("No value provided for input HTTP label: updateId.");
|
|
@@ -683,14 +683,14 @@ const serializeAws_restJson1DisassociateIdentityProviderConfigCommand = async (i
|
|
|
683
683
|
if (labelValue.length <= 0) {
|
|
684
684
|
throw new Error("Empty value provided for input HTTP label: clusterName.");
|
|
685
685
|
}
|
|
686
|
-
resolvedPath = resolvedPath.replace("{clusterName}",
|
|
686
|
+
resolvedPath = resolvedPath.replace("{clusterName}", smithy_client_1.extendedEncodeURIComponent(labelValue));
|
|
687
687
|
}
|
|
688
688
|
else {
|
|
689
689
|
throw new Error("No value provided for input HTTP label: clusterName.");
|
|
690
690
|
}
|
|
691
691
|
let body;
|
|
692
692
|
body = JSON.stringify({
|
|
693
|
-
clientRequestToken: (_a = input.clientRequestToken) !== null && _a !== void 0 ? _a :
|
|
693
|
+
clientRequestToken: (_a = input.clientRequestToken) !== null && _a !== void 0 ? _a : uuid_1.v4(),
|
|
694
694
|
...(input.identityProviderConfig !== undefined &&
|
|
695
695
|
input.identityProviderConfig !== null && {
|
|
696
696
|
identityProviderConfig: serializeAws_restJson1IdentityProviderConfig(input.identityProviderConfig, context),
|
|
@@ -716,7 +716,7 @@ const serializeAws_restJson1ListAddonsCommand = async (input, context) => {
|
|
|
716
716
|
if (labelValue.length <= 0) {
|
|
717
717
|
throw new Error("Empty value provided for input HTTP label: clusterName.");
|
|
718
718
|
}
|
|
719
|
-
resolvedPath = resolvedPath.replace("{clusterName}",
|
|
719
|
+
resolvedPath = resolvedPath.replace("{clusterName}", smithy_client_1.extendedEncodeURIComponent(labelValue));
|
|
720
720
|
}
|
|
721
721
|
else {
|
|
722
722
|
throw new Error("No value provided for input HTTP label: clusterName.");
|
|
@@ -769,7 +769,7 @@ const serializeAws_restJson1ListFargateProfilesCommand = async (input, context)
|
|
|
769
769
|
if (labelValue.length <= 0) {
|
|
770
770
|
throw new Error("Empty value provided for input HTTP label: clusterName.");
|
|
771
771
|
}
|
|
772
|
-
resolvedPath = resolvedPath.replace("{clusterName}",
|
|
772
|
+
resolvedPath = resolvedPath.replace("{clusterName}", smithy_client_1.extendedEncodeURIComponent(labelValue));
|
|
773
773
|
}
|
|
774
774
|
else {
|
|
775
775
|
throw new Error("No value provided for input HTTP label: clusterName.");
|
|
@@ -801,7 +801,7 @@ const serializeAws_restJson1ListIdentityProviderConfigsCommand = async (input, c
|
|
|
801
801
|
if (labelValue.length <= 0) {
|
|
802
802
|
throw new Error("Empty value provided for input HTTP label: clusterName.");
|
|
803
803
|
}
|
|
804
|
-
resolvedPath = resolvedPath.replace("{clusterName}",
|
|
804
|
+
resolvedPath = resolvedPath.replace("{clusterName}", smithy_client_1.extendedEncodeURIComponent(labelValue));
|
|
805
805
|
}
|
|
806
806
|
else {
|
|
807
807
|
throw new Error("No value provided for input HTTP label: clusterName.");
|
|
@@ -832,7 +832,7 @@ const serializeAws_restJson1ListNodegroupsCommand = async (input, context) => {
|
|
|
832
832
|
if (labelValue.length <= 0) {
|
|
833
833
|
throw new Error("Empty value provided for input HTTP label: clusterName.");
|
|
834
834
|
}
|
|
835
|
-
resolvedPath = resolvedPath.replace("{clusterName}",
|
|
835
|
+
resolvedPath = resolvedPath.replace("{clusterName}", smithy_client_1.extendedEncodeURIComponent(labelValue));
|
|
836
836
|
}
|
|
837
837
|
else {
|
|
838
838
|
throw new Error("No value provided for input HTTP label: clusterName.");
|
|
@@ -863,7 +863,7 @@ const serializeAws_restJson1ListTagsForResourceCommand = async (input, context)
|
|
|
863
863
|
if (labelValue.length <= 0) {
|
|
864
864
|
throw new Error("Empty value provided for input HTTP label: resourceArn.");
|
|
865
865
|
}
|
|
866
|
-
resolvedPath = resolvedPath.replace("{resourceArn}",
|
|
866
|
+
resolvedPath = resolvedPath.replace("{resourceArn}", smithy_client_1.extendedEncodeURIComponent(labelValue));
|
|
867
867
|
}
|
|
868
868
|
else {
|
|
869
869
|
throw new Error("No value provided for input HTTP label: resourceArn.");
|
|
@@ -889,7 +889,7 @@ const serializeAws_restJson1ListUpdatesCommand = async (input, context) => {
|
|
|
889
889
|
if (labelValue.length <= 0) {
|
|
890
890
|
throw new Error("Empty value provided for input HTTP label: name.");
|
|
891
891
|
}
|
|
892
|
-
resolvedPath = resolvedPath.replace("{name}",
|
|
892
|
+
resolvedPath = resolvedPath.replace("{name}", smithy_client_1.extendedEncodeURIComponent(labelValue));
|
|
893
893
|
}
|
|
894
894
|
else {
|
|
895
895
|
throw new Error("No value provided for input HTTP label: name.");
|
|
@@ -922,7 +922,7 @@ const serializeAws_restJson1RegisterClusterCommand = async (input, context) => {
|
|
|
922
922
|
let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/cluster-registrations";
|
|
923
923
|
let body;
|
|
924
924
|
body = JSON.stringify({
|
|
925
|
-
clientRequestToken: (_a = input.clientRequestToken) !== null && _a !== void 0 ? _a :
|
|
925
|
+
clientRequestToken: (_a = input.clientRequestToken) !== null && _a !== void 0 ? _a : uuid_1.v4(),
|
|
926
926
|
...(input.connectorConfig !== undefined &&
|
|
927
927
|
input.connectorConfig !== null && {
|
|
928
928
|
connectorConfig: serializeAws_restJson1ConnectorConfigRequest(input.connectorConfig, context),
|
|
@@ -951,7 +951,7 @@ const serializeAws_restJson1TagResourceCommand = async (input, context) => {
|
|
|
951
951
|
if (labelValue.length <= 0) {
|
|
952
952
|
throw new Error("Empty value provided for input HTTP label: resourceArn.");
|
|
953
953
|
}
|
|
954
|
-
resolvedPath = resolvedPath.replace("{resourceArn}",
|
|
954
|
+
resolvedPath = resolvedPath.replace("{resourceArn}", smithy_client_1.extendedEncodeURIComponent(labelValue));
|
|
955
955
|
}
|
|
956
956
|
else {
|
|
957
957
|
throw new Error("No value provided for input HTTP label: resourceArn.");
|
|
@@ -980,7 +980,7 @@ const serializeAws_restJson1UntagResourceCommand = async (input, context) => {
|
|
|
980
980
|
if (labelValue.length <= 0) {
|
|
981
981
|
throw new Error("Empty value provided for input HTTP label: resourceArn.");
|
|
982
982
|
}
|
|
983
|
-
resolvedPath = resolvedPath.replace("{resourceArn}",
|
|
983
|
+
resolvedPath = resolvedPath.replace("{resourceArn}", smithy_client_1.extendedEncodeURIComponent(labelValue));
|
|
984
984
|
}
|
|
985
985
|
else {
|
|
986
986
|
throw new Error("No value provided for input HTTP label: resourceArn.");
|
|
@@ -1014,7 +1014,7 @@ const serializeAws_restJson1UpdateAddonCommand = async (input, context) => {
|
|
|
1014
1014
|
if (labelValue.length <= 0) {
|
|
1015
1015
|
throw new Error("Empty value provided for input HTTP label: clusterName.");
|
|
1016
1016
|
}
|
|
1017
|
-
resolvedPath = resolvedPath.replace("{clusterName}",
|
|
1017
|
+
resolvedPath = resolvedPath.replace("{clusterName}", smithy_client_1.extendedEncodeURIComponent(labelValue));
|
|
1018
1018
|
}
|
|
1019
1019
|
else {
|
|
1020
1020
|
throw new Error("No value provided for input HTTP label: clusterName.");
|
|
@@ -1024,7 +1024,7 @@ const serializeAws_restJson1UpdateAddonCommand = async (input, context) => {
|
|
|
1024
1024
|
if (labelValue.length <= 0) {
|
|
1025
1025
|
throw new Error("Empty value provided for input HTTP label: addonName.");
|
|
1026
1026
|
}
|
|
1027
|
-
resolvedPath = resolvedPath.replace("{addonName}",
|
|
1027
|
+
resolvedPath = resolvedPath.replace("{addonName}", smithy_client_1.extendedEncodeURIComponent(labelValue));
|
|
1028
1028
|
}
|
|
1029
1029
|
else {
|
|
1030
1030
|
throw new Error("No value provided for input HTTP label: addonName.");
|
|
@@ -1032,7 +1032,7 @@ const serializeAws_restJson1UpdateAddonCommand = async (input, context) => {
|
|
|
1032
1032
|
let body;
|
|
1033
1033
|
body = JSON.stringify({
|
|
1034
1034
|
...(input.addonVersion !== undefined && input.addonVersion !== null && { addonVersion: input.addonVersion }),
|
|
1035
|
-
clientRequestToken: (_a = input.clientRequestToken) !== null && _a !== void 0 ? _a :
|
|
1035
|
+
clientRequestToken: (_a = input.clientRequestToken) !== null && _a !== void 0 ? _a : uuid_1.v4(),
|
|
1036
1036
|
...(input.resolveConflicts !== undefined &&
|
|
1037
1037
|
input.resolveConflicts !== null && { resolveConflicts: input.resolveConflicts }),
|
|
1038
1038
|
...(input.serviceAccountRoleArn !== undefined &&
|
|
@@ -1061,14 +1061,14 @@ const serializeAws_restJson1UpdateClusterConfigCommand = async (input, context)
|
|
|
1061
1061
|
if (labelValue.length <= 0) {
|
|
1062
1062
|
throw new Error("Empty value provided for input HTTP label: name.");
|
|
1063
1063
|
}
|
|
1064
|
-
resolvedPath = resolvedPath.replace("{name}",
|
|
1064
|
+
resolvedPath = resolvedPath.replace("{name}", smithy_client_1.extendedEncodeURIComponent(labelValue));
|
|
1065
1065
|
}
|
|
1066
1066
|
else {
|
|
1067
1067
|
throw new Error("No value provided for input HTTP label: name.");
|
|
1068
1068
|
}
|
|
1069
1069
|
let body;
|
|
1070
1070
|
body = JSON.stringify({
|
|
1071
|
-
clientRequestToken: (_a = input.clientRequestToken) !== null && _a !== void 0 ? _a :
|
|
1071
|
+
clientRequestToken: (_a = input.clientRequestToken) !== null && _a !== void 0 ? _a : uuid_1.v4(),
|
|
1072
1072
|
...(input.logging !== undefined &&
|
|
1073
1073
|
input.logging !== null && { logging: serializeAws_restJson1Logging(input.logging, context) }),
|
|
1074
1074
|
...(input.resourcesVpcConfig !== undefined &&
|
|
@@ -1099,14 +1099,14 @@ const serializeAws_restJson1UpdateClusterVersionCommand = async (input, context)
|
|
|
1099
1099
|
if (labelValue.length <= 0) {
|
|
1100
1100
|
throw new Error("Empty value provided for input HTTP label: name.");
|
|
1101
1101
|
}
|
|
1102
|
-
resolvedPath = resolvedPath.replace("{name}",
|
|
1102
|
+
resolvedPath = resolvedPath.replace("{name}", smithy_client_1.extendedEncodeURIComponent(labelValue));
|
|
1103
1103
|
}
|
|
1104
1104
|
else {
|
|
1105
1105
|
throw new Error("No value provided for input HTTP label: name.");
|
|
1106
1106
|
}
|
|
1107
1107
|
let body;
|
|
1108
1108
|
body = JSON.stringify({
|
|
1109
|
-
clientRequestToken: (_a = input.clientRequestToken) !== null && _a !== void 0 ? _a :
|
|
1109
|
+
clientRequestToken: (_a = input.clientRequestToken) !== null && _a !== void 0 ? _a : uuid_1.v4(),
|
|
1110
1110
|
...(input.version !== undefined && input.version !== null && { version: input.version }),
|
|
1111
1111
|
});
|
|
1112
1112
|
return new protocol_http_1.HttpRequest({
|
|
@@ -1133,7 +1133,7 @@ const serializeAws_restJson1UpdateNodegroupConfigCommand = async (input, context
|
|
|
1133
1133
|
if (labelValue.length <= 0) {
|
|
1134
1134
|
throw new Error("Empty value provided for input HTTP label: clusterName.");
|
|
1135
1135
|
}
|
|
1136
|
-
resolvedPath = resolvedPath.replace("{clusterName}",
|
|
1136
|
+
resolvedPath = resolvedPath.replace("{clusterName}", smithy_client_1.extendedEncodeURIComponent(labelValue));
|
|
1137
1137
|
}
|
|
1138
1138
|
else {
|
|
1139
1139
|
throw new Error("No value provided for input HTTP label: clusterName.");
|
|
@@ -1143,14 +1143,14 @@ const serializeAws_restJson1UpdateNodegroupConfigCommand = async (input, context
|
|
|
1143
1143
|
if (labelValue.length <= 0) {
|
|
1144
1144
|
throw new Error("Empty value provided for input HTTP label: nodegroupName.");
|
|
1145
1145
|
}
|
|
1146
|
-
resolvedPath = resolvedPath.replace("{nodegroupName}",
|
|
1146
|
+
resolvedPath = resolvedPath.replace("{nodegroupName}", smithy_client_1.extendedEncodeURIComponent(labelValue));
|
|
1147
1147
|
}
|
|
1148
1148
|
else {
|
|
1149
1149
|
throw new Error("No value provided for input HTTP label: nodegroupName.");
|
|
1150
1150
|
}
|
|
1151
1151
|
let body;
|
|
1152
1152
|
body = JSON.stringify({
|
|
1153
|
-
clientRequestToken: (_a = input.clientRequestToken) !== null && _a !== void 0 ? _a :
|
|
1153
|
+
clientRequestToken: (_a = input.clientRequestToken) !== null && _a !== void 0 ? _a : uuid_1.v4(),
|
|
1154
1154
|
...(input.labels !== undefined &&
|
|
1155
1155
|
input.labels !== null && { labels: serializeAws_restJson1UpdateLabelsPayload(input.labels, context) }),
|
|
1156
1156
|
...(input.scalingConfig !== undefined &&
|
|
@@ -1188,7 +1188,7 @@ const serializeAws_restJson1UpdateNodegroupVersionCommand = async (input, contex
|
|
|
1188
1188
|
if (labelValue.length <= 0) {
|
|
1189
1189
|
throw new Error("Empty value provided for input HTTP label: clusterName.");
|
|
1190
1190
|
}
|
|
1191
|
-
resolvedPath = resolvedPath.replace("{clusterName}",
|
|
1191
|
+
resolvedPath = resolvedPath.replace("{clusterName}", smithy_client_1.extendedEncodeURIComponent(labelValue));
|
|
1192
1192
|
}
|
|
1193
1193
|
else {
|
|
1194
1194
|
throw new Error("No value provided for input HTTP label: clusterName.");
|
|
@@ -1198,14 +1198,14 @@ const serializeAws_restJson1UpdateNodegroupVersionCommand = async (input, contex
|
|
|
1198
1198
|
if (labelValue.length <= 0) {
|
|
1199
1199
|
throw new Error("Empty value provided for input HTTP label: nodegroupName.");
|
|
1200
1200
|
}
|
|
1201
|
-
resolvedPath = resolvedPath.replace("{nodegroupName}",
|
|
1201
|
+
resolvedPath = resolvedPath.replace("{nodegroupName}", smithy_client_1.extendedEncodeURIComponent(labelValue));
|
|
1202
1202
|
}
|
|
1203
1203
|
else {
|
|
1204
1204
|
throw new Error("No value provided for input HTTP label: nodegroupName.");
|
|
1205
1205
|
}
|
|
1206
1206
|
let body;
|
|
1207
1207
|
body = JSON.stringify({
|
|
1208
|
-
clientRequestToken: (_a = input.clientRequestToken) !== null && _a !== void 0 ? _a :
|
|
1208
|
+
clientRequestToken: (_a = input.clientRequestToken) !== null && _a !== void 0 ? _a : uuid_1.v4(),
|
|
1209
1209
|
...(input.force !== undefined && input.force !== null && { force: input.force }),
|
|
1210
1210
|
...(input.launchTemplate !== undefined &&
|
|
1211
1211
|
input.launchTemplate !== null && {
|
|
@@ -1234,7 +1234,7 @@ const deserializeAws_restJson1AssociateEncryptionConfigCommand = async (output,
|
|
|
1234
1234
|
$metadata: deserializeMetadata(output),
|
|
1235
1235
|
update: undefined,
|
|
1236
1236
|
};
|
|
1237
|
-
const data =
|
|
1237
|
+
const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
|
|
1238
1238
|
if (data.update !== undefined && data.update !== null) {
|
|
1239
1239
|
contents.update = deserializeAws_restJson1Update(data.update, context);
|
|
1240
1240
|
}
|
|
@@ -1323,7 +1323,7 @@ const deserializeAws_restJson1AssociateIdentityProviderConfigCommand = async (ou
|
|
|
1323
1323
|
tags: undefined,
|
|
1324
1324
|
update: undefined,
|
|
1325
1325
|
};
|
|
1326
|
-
const data =
|
|
1326
|
+
const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
|
|
1327
1327
|
if (data.tags !== undefined && data.tags !== null) {
|
|
1328
1328
|
contents.tags = deserializeAws_restJson1TagMap(data.tags, context);
|
|
1329
1329
|
}
|
|
@@ -1414,7 +1414,7 @@ const deserializeAws_restJson1CreateAddonCommand = async (output, context) => {
|
|
|
1414
1414
|
$metadata: deserializeMetadata(output),
|
|
1415
1415
|
addon: undefined,
|
|
1416
1416
|
};
|
|
1417
|
-
const data =
|
|
1417
|
+
const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
|
|
1418
1418
|
if (data.addon !== undefined && data.addon !== null) {
|
|
1419
1419
|
contents.addon = deserializeAws_restJson1Addon(data.addon, context);
|
|
1420
1420
|
}
|
|
@@ -1502,7 +1502,7 @@ const deserializeAws_restJson1CreateClusterCommand = async (output, context) =>
|
|
|
1502
1502
|
$metadata: deserializeMetadata(output),
|
|
1503
1503
|
cluster: undefined,
|
|
1504
1504
|
};
|
|
1505
|
-
const data =
|
|
1505
|
+
const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
|
|
1506
1506
|
if (data.cluster !== undefined && data.cluster !== null) {
|
|
1507
1507
|
contents.cluster = deserializeAws_restJson1Cluster(data.cluster, context);
|
|
1508
1508
|
}
|
|
@@ -1598,7 +1598,7 @@ const deserializeAws_restJson1CreateFargateProfileCommand = async (output, conte
|
|
|
1598
1598
|
$metadata: deserializeMetadata(output),
|
|
1599
1599
|
fargateProfile: undefined,
|
|
1600
1600
|
};
|
|
1601
|
-
const data =
|
|
1601
|
+
const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
|
|
1602
1602
|
if (data.fargateProfile !== undefined && data.fargateProfile !== null) {
|
|
1603
1603
|
contents.fargateProfile = deserializeAws_restJson1FargateProfile(data.fargateProfile, context);
|
|
1604
1604
|
}
|
|
@@ -1686,7 +1686,7 @@ const deserializeAws_restJson1CreateNodegroupCommand = async (output, context) =
|
|
|
1686
1686
|
$metadata: deserializeMetadata(output),
|
|
1687
1687
|
nodegroup: undefined,
|
|
1688
1688
|
};
|
|
1689
|
-
const data =
|
|
1689
|
+
const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
|
|
1690
1690
|
if (data.nodegroup !== undefined && data.nodegroup !== null) {
|
|
1691
1691
|
contents.nodegroup = deserializeAws_restJson1Nodegroup(data.nodegroup, context);
|
|
1692
1692
|
}
|
|
@@ -1782,7 +1782,7 @@ const deserializeAws_restJson1DeleteAddonCommand = async (output, context) => {
|
|
|
1782
1782
|
$metadata: deserializeMetadata(output),
|
|
1783
1783
|
addon: undefined,
|
|
1784
1784
|
};
|
|
1785
|
-
const data =
|
|
1785
|
+
const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
|
|
1786
1786
|
if (data.addon !== undefined && data.addon !== null) {
|
|
1787
1787
|
contents.addon = deserializeAws_restJson1Addon(data.addon, context);
|
|
1788
1788
|
}
|
|
@@ -1862,7 +1862,7 @@ const deserializeAws_restJson1DeleteClusterCommand = async (output, context) =>
|
|
|
1862
1862
|
$metadata: deserializeMetadata(output),
|
|
1863
1863
|
cluster: undefined,
|
|
1864
1864
|
};
|
|
1865
|
-
const data =
|
|
1865
|
+
const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
|
|
1866
1866
|
if (data.cluster !== undefined && data.cluster !== null) {
|
|
1867
1867
|
contents.cluster = deserializeAws_restJson1Cluster(data.cluster, context);
|
|
1868
1868
|
}
|
|
@@ -1942,7 +1942,7 @@ const deserializeAws_restJson1DeleteFargateProfileCommand = async (output, conte
|
|
|
1942
1942
|
$metadata: deserializeMetadata(output),
|
|
1943
1943
|
fargateProfile: undefined,
|
|
1944
1944
|
};
|
|
1945
|
-
const data =
|
|
1945
|
+
const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
|
|
1946
1946
|
if (data.fargateProfile !== undefined && data.fargateProfile !== null) {
|
|
1947
1947
|
contents.fargateProfile = deserializeAws_restJson1FargateProfile(data.fargateProfile, context);
|
|
1948
1948
|
}
|
|
@@ -2014,7 +2014,7 @@ const deserializeAws_restJson1DeleteNodegroupCommand = async (output, context) =
|
|
|
2014
2014
|
$metadata: deserializeMetadata(output),
|
|
2015
2015
|
nodegroup: undefined,
|
|
2016
2016
|
};
|
|
2017
|
-
const data =
|
|
2017
|
+
const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
|
|
2018
2018
|
if (data.nodegroup !== undefined && data.nodegroup !== null) {
|
|
2019
2019
|
contents.nodegroup = deserializeAws_restJson1Nodegroup(data.nodegroup, context);
|
|
2020
2020
|
}
|
|
@@ -2102,7 +2102,7 @@ const deserializeAws_restJson1DeregisterClusterCommand = async (output, context)
|
|
|
2102
2102
|
$metadata: deserializeMetadata(output),
|
|
2103
2103
|
cluster: undefined,
|
|
2104
2104
|
};
|
|
2105
|
-
const data =
|
|
2105
|
+
const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
|
|
2106
2106
|
if (data.cluster !== undefined && data.cluster !== null) {
|
|
2107
2107
|
contents.cluster = deserializeAws_restJson1Cluster(data.cluster, context);
|
|
2108
2108
|
}
|
|
@@ -2182,7 +2182,7 @@ const deserializeAws_restJson1DescribeAddonCommand = async (output, context) =>
|
|
|
2182
2182
|
$metadata: deserializeMetadata(output),
|
|
2183
2183
|
addon: undefined,
|
|
2184
2184
|
};
|
|
2185
|
-
const data =
|
|
2185
|
+
const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
|
|
2186
2186
|
if (data.addon !== undefined && data.addon !== null) {
|
|
2187
2187
|
contents.addon = deserializeAws_restJson1Addon(data.addon, context);
|
|
2188
2188
|
}
|
|
@@ -2263,12 +2263,12 @@ const deserializeAws_restJson1DescribeAddonVersionsCommand = async (output, cont
|
|
|
2263
2263
|
addons: undefined,
|
|
2264
2264
|
nextToken: undefined,
|
|
2265
2265
|
};
|
|
2266
|
-
const data =
|
|
2266
|
+
const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
|
|
2267
2267
|
if (data.addons !== undefined && data.addons !== null) {
|
|
2268
2268
|
contents.addons = deserializeAws_restJson1Addons(data.addons, context);
|
|
2269
2269
|
}
|
|
2270
2270
|
if (data.nextToken !== undefined && data.nextToken !== null) {
|
|
2271
|
-
contents.nextToken =
|
|
2271
|
+
contents.nextToken = smithy_client_1.expectString(data.nextToken);
|
|
2272
2272
|
}
|
|
2273
2273
|
return Promise.resolve(contents);
|
|
2274
2274
|
};
|
|
@@ -2330,7 +2330,7 @@ const deserializeAws_restJson1DescribeClusterCommand = async (output, context) =
|
|
|
2330
2330
|
$metadata: deserializeMetadata(output),
|
|
2331
2331
|
cluster: undefined,
|
|
2332
2332
|
};
|
|
2333
|
-
const data =
|
|
2333
|
+
const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
|
|
2334
2334
|
if (data.cluster !== undefined && data.cluster !== null) {
|
|
2335
2335
|
contents.cluster = deserializeAws_restJson1Cluster(data.cluster, context);
|
|
2336
2336
|
}
|
|
@@ -2402,7 +2402,7 @@ const deserializeAws_restJson1DescribeFargateProfileCommand = async (output, con
|
|
|
2402
2402
|
$metadata: deserializeMetadata(output),
|
|
2403
2403
|
fargateProfile: undefined,
|
|
2404
2404
|
};
|
|
2405
|
-
const data =
|
|
2405
|
+
const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
|
|
2406
2406
|
if (data.fargateProfile !== undefined && data.fargateProfile !== null) {
|
|
2407
2407
|
contents.fargateProfile = deserializeAws_restJson1FargateProfile(data.fargateProfile, context);
|
|
2408
2408
|
}
|
|
@@ -2474,7 +2474,7 @@ const deserializeAws_restJson1DescribeIdentityProviderConfigCommand = async (out
|
|
|
2474
2474
|
$metadata: deserializeMetadata(output),
|
|
2475
2475
|
identityProviderConfig: undefined,
|
|
2476
2476
|
};
|
|
2477
|
-
const data =
|
|
2477
|
+
const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
|
|
2478
2478
|
if (data.identityProviderConfig !== undefined && data.identityProviderConfig !== null) {
|
|
2479
2479
|
contents.identityProviderConfig = deserializeAws_restJson1IdentityProviderConfigResponse(data.identityProviderConfig, context);
|
|
2480
2480
|
}
|
|
@@ -2554,7 +2554,7 @@ const deserializeAws_restJson1DescribeNodegroupCommand = async (output, context)
|
|
|
2554
2554
|
$metadata: deserializeMetadata(output),
|
|
2555
2555
|
nodegroup: undefined,
|
|
2556
2556
|
};
|
|
2557
|
-
const data =
|
|
2557
|
+
const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
|
|
2558
2558
|
if (data.nodegroup !== undefined && data.nodegroup !== null) {
|
|
2559
2559
|
contents.nodegroup = deserializeAws_restJson1Nodegroup(data.nodegroup, context);
|
|
2560
2560
|
}
|
|
@@ -2634,7 +2634,7 @@ const deserializeAws_restJson1DescribeUpdateCommand = async (output, context) =>
|
|
|
2634
2634
|
$metadata: deserializeMetadata(output),
|
|
2635
2635
|
update: undefined,
|
|
2636
2636
|
};
|
|
2637
|
-
const data =
|
|
2637
|
+
const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
|
|
2638
2638
|
if (data.update !== undefined && data.update !== null) {
|
|
2639
2639
|
contents.update = deserializeAws_restJson1Update(data.update, context);
|
|
2640
2640
|
}
|
|
@@ -2706,7 +2706,7 @@ const deserializeAws_restJson1DisassociateIdentityProviderConfigCommand = async
|
|
|
2706
2706
|
$metadata: deserializeMetadata(output),
|
|
2707
2707
|
update: undefined,
|
|
2708
2708
|
};
|
|
2709
|
-
const data =
|
|
2709
|
+
const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
|
|
2710
2710
|
if (data.update !== undefined && data.update !== null) {
|
|
2711
2711
|
contents.update = deserializeAws_restJson1Update(data.update, context);
|
|
2712
2712
|
}
|
|
@@ -2795,12 +2795,12 @@ const deserializeAws_restJson1ListAddonsCommand = async (output, context) => {
|
|
|
2795
2795
|
addons: undefined,
|
|
2796
2796
|
nextToken: undefined,
|
|
2797
2797
|
};
|
|
2798
|
-
const data =
|
|
2798
|
+
const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
|
|
2799
2799
|
if (data.addons !== undefined && data.addons !== null) {
|
|
2800
2800
|
contents.addons = deserializeAws_restJson1StringList(data.addons, context);
|
|
2801
2801
|
}
|
|
2802
2802
|
if (data.nextToken !== undefined && data.nextToken !== null) {
|
|
2803
|
-
contents.nextToken =
|
|
2803
|
+
contents.nextToken = smithy_client_1.expectString(data.nextToken);
|
|
2804
2804
|
}
|
|
2805
2805
|
return Promise.resolve(contents);
|
|
2806
2806
|
};
|
|
@@ -2879,12 +2879,12 @@ const deserializeAws_restJson1ListClustersCommand = async (output, context) => {
|
|
|
2879
2879
|
clusters: undefined,
|
|
2880
2880
|
nextToken: undefined,
|
|
2881
2881
|
};
|
|
2882
|
-
const data =
|
|
2882
|
+
const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
|
|
2883
2883
|
if (data.clusters !== undefined && data.clusters !== null) {
|
|
2884
2884
|
contents.clusters = deserializeAws_restJson1StringList(data.clusters, context);
|
|
2885
2885
|
}
|
|
2886
2886
|
if (data.nextToken !== undefined && data.nextToken !== null) {
|
|
2887
|
-
contents.nextToken =
|
|
2887
|
+
contents.nextToken = smithy_client_1.expectString(data.nextToken);
|
|
2888
2888
|
}
|
|
2889
2889
|
return Promise.resolve(contents);
|
|
2890
2890
|
};
|
|
@@ -2955,12 +2955,12 @@ const deserializeAws_restJson1ListFargateProfilesCommand = async (output, contex
|
|
|
2955
2955
|
fargateProfileNames: undefined,
|
|
2956
2956
|
nextToken: undefined,
|
|
2957
2957
|
};
|
|
2958
|
-
const data =
|
|
2958
|
+
const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
|
|
2959
2959
|
if (data.fargateProfileNames !== undefined && data.fargateProfileNames !== null) {
|
|
2960
2960
|
contents.fargateProfileNames = deserializeAws_restJson1StringList(data.fargateProfileNames, context);
|
|
2961
2961
|
}
|
|
2962
2962
|
if (data.nextToken !== undefined && data.nextToken !== null) {
|
|
2963
|
-
contents.nextToken =
|
|
2963
|
+
contents.nextToken = smithy_client_1.expectString(data.nextToken);
|
|
2964
2964
|
}
|
|
2965
2965
|
return Promise.resolve(contents);
|
|
2966
2966
|
};
|
|
@@ -3031,12 +3031,12 @@ const deserializeAws_restJson1ListIdentityProviderConfigsCommand = async (output
|
|
|
3031
3031
|
identityProviderConfigs: undefined,
|
|
3032
3032
|
nextToken: undefined,
|
|
3033
3033
|
};
|
|
3034
|
-
const data =
|
|
3034
|
+
const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
|
|
3035
3035
|
if (data.identityProviderConfigs !== undefined && data.identityProviderConfigs !== null) {
|
|
3036
3036
|
contents.identityProviderConfigs = deserializeAws_restJson1IdentityProviderConfigs(data.identityProviderConfigs, context);
|
|
3037
3037
|
}
|
|
3038
3038
|
if (data.nextToken !== undefined && data.nextToken !== null) {
|
|
3039
|
-
contents.nextToken =
|
|
3039
|
+
contents.nextToken = smithy_client_1.expectString(data.nextToken);
|
|
3040
3040
|
}
|
|
3041
3041
|
return Promise.resolve(contents);
|
|
3042
3042
|
};
|
|
@@ -3115,9 +3115,9 @@ const deserializeAws_restJson1ListNodegroupsCommand = async (output, context) =>
|
|
|
3115
3115
|
nextToken: undefined,
|
|
3116
3116
|
nodegroups: undefined,
|
|
3117
3117
|
};
|
|
3118
|
-
const data =
|
|
3118
|
+
const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
|
|
3119
3119
|
if (data.nextToken !== undefined && data.nextToken !== null) {
|
|
3120
|
-
contents.nextToken =
|
|
3120
|
+
contents.nextToken = smithy_client_1.expectString(data.nextToken);
|
|
3121
3121
|
}
|
|
3122
3122
|
if (data.nodegroups !== undefined && data.nodegroups !== null) {
|
|
3123
3123
|
contents.nodegroups = deserializeAws_restJson1StringList(data.nodegroups, context);
|
|
@@ -3198,7 +3198,7 @@ const deserializeAws_restJson1ListTagsForResourceCommand = async (output, contex
|
|
|
3198
3198
|
$metadata: deserializeMetadata(output),
|
|
3199
3199
|
tags: undefined,
|
|
3200
3200
|
};
|
|
3201
|
-
const data =
|
|
3201
|
+
const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
|
|
3202
3202
|
if (data.tags !== undefined && data.tags !== null) {
|
|
3203
3203
|
contents.tags = deserializeAws_restJson1TagMap(data.tags, context);
|
|
3204
3204
|
}
|
|
@@ -3255,9 +3255,9 @@ const deserializeAws_restJson1ListUpdatesCommand = async (output, context) => {
|
|
|
3255
3255
|
nextToken: undefined,
|
|
3256
3256
|
updateIds: undefined,
|
|
3257
3257
|
};
|
|
3258
|
-
const data =
|
|
3258
|
+
const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
|
|
3259
3259
|
if (data.nextToken !== undefined && data.nextToken !== null) {
|
|
3260
|
-
contents.nextToken =
|
|
3260
|
+
contents.nextToken = smithy_client_1.expectString(data.nextToken);
|
|
3261
3261
|
}
|
|
3262
3262
|
if (data.updateIds !== undefined && data.updateIds !== null) {
|
|
3263
3263
|
contents.updateIds = deserializeAws_restJson1StringList(data.updateIds, context);
|
|
@@ -3330,7 +3330,7 @@ const deserializeAws_restJson1RegisterClusterCommand = async (output, context) =
|
|
|
3330
3330
|
$metadata: deserializeMetadata(output),
|
|
3331
3331
|
cluster: undefined,
|
|
3332
3332
|
};
|
|
3333
|
-
const data =
|
|
3333
|
+
const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
|
|
3334
3334
|
if (data.cluster !== undefined && data.cluster !== null) {
|
|
3335
3335
|
contents.cluster = deserializeAws_restJson1Cluster(data.cluster, context);
|
|
3336
3336
|
}
|
|
@@ -3514,7 +3514,7 @@ const deserializeAws_restJson1UpdateAddonCommand = async (output, context) => {
|
|
|
3514
3514
|
$metadata: deserializeMetadata(output),
|
|
3515
3515
|
update: undefined,
|
|
3516
3516
|
};
|
|
3517
|
-
const data =
|
|
3517
|
+
const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
|
|
3518
3518
|
if (data.update !== undefined && data.update !== null) {
|
|
3519
3519
|
contents.update = deserializeAws_restJson1Update(data.update, context);
|
|
3520
3520
|
}
|
|
@@ -3602,7 +3602,7 @@ const deserializeAws_restJson1UpdateClusterConfigCommand = async (output, contex
|
|
|
3602
3602
|
$metadata: deserializeMetadata(output),
|
|
3603
3603
|
update: undefined,
|
|
3604
3604
|
};
|
|
3605
|
-
const data =
|
|
3605
|
+
const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
|
|
3606
3606
|
if (data.update !== undefined && data.update !== null) {
|
|
3607
3607
|
contents.update = deserializeAws_restJson1Update(data.update, context);
|
|
3608
3608
|
}
|
|
@@ -3690,7 +3690,7 @@ const deserializeAws_restJson1UpdateClusterVersionCommand = async (output, conte
|
|
|
3690
3690
|
$metadata: deserializeMetadata(output),
|
|
3691
3691
|
update: undefined,
|
|
3692
3692
|
};
|
|
3693
|
-
const data =
|
|
3693
|
+
const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
|
|
3694
3694
|
if (data.update !== undefined && data.update !== null) {
|
|
3695
3695
|
contents.update = deserializeAws_restJson1Update(data.update, context);
|
|
3696
3696
|
}
|
|
@@ -3778,7 +3778,7 @@ const deserializeAws_restJson1UpdateNodegroupConfigCommand = async (output, cont
|
|
|
3778
3778
|
$metadata: deserializeMetadata(output),
|
|
3779
3779
|
update: undefined,
|
|
3780
3780
|
};
|
|
3781
|
-
const data =
|
|
3781
|
+
const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
|
|
3782
3782
|
if (data.update !== undefined && data.update !== null) {
|
|
3783
3783
|
contents.update = deserializeAws_restJson1Update(data.update, context);
|
|
3784
3784
|
}
|
|
@@ -3866,7 +3866,7 @@ const deserializeAws_restJson1UpdateNodegroupVersionCommand = async (output, con
|
|
|
3866
3866
|
$metadata: deserializeMetadata(output),
|
|
3867
3867
|
update: undefined,
|
|
3868
3868
|
};
|
|
3869
|
-
const data =
|
|
3869
|
+
const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
|
|
3870
3870
|
if (data.update !== undefined && data.update !== null) {
|
|
3871
3871
|
contents.update = deserializeAws_restJson1Update(data.update, context);
|
|
3872
3872
|
}
|
|
@@ -3955,7 +3955,7 @@ const deserializeAws_restJson1BadRequestExceptionResponse = async (parsedOutput,
|
|
|
3955
3955
|
};
|
|
3956
3956
|
const data = parsedOutput.body;
|
|
3957
3957
|
if (data.message !== undefined && data.message !== null) {
|
|
3958
|
-
contents.message =
|
|
3958
|
+
contents.message = smithy_client_1.expectString(data.message);
|
|
3959
3959
|
}
|
|
3960
3960
|
return contents;
|
|
3961
3961
|
};
|
|
@@ -3971,16 +3971,16 @@ const deserializeAws_restJson1ClientExceptionResponse = async (parsedOutput, con
|
|
|
3971
3971
|
};
|
|
3972
3972
|
const data = parsedOutput.body;
|
|
3973
3973
|
if (data.addonName !== undefined && data.addonName !== null) {
|
|
3974
|
-
contents.addonName =
|
|
3974
|
+
contents.addonName = smithy_client_1.expectString(data.addonName);
|
|
3975
3975
|
}
|
|
3976
3976
|
if (data.clusterName !== undefined && data.clusterName !== null) {
|
|
3977
|
-
contents.clusterName =
|
|
3977
|
+
contents.clusterName = smithy_client_1.expectString(data.clusterName);
|
|
3978
3978
|
}
|
|
3979
3979
|
if (data.message !== undefined && data.message !== null) {
|
|
3980
|
-
contents.message =
|
|
3980
|
+
contents.message = smithy_client_1.expectString(data.message);
|
|
3981
3981
|
}
|
|
3982
3982
|
if (data.nodegroupName !== undefined && data.nodegroupName !== null) {
|
|
3983
|
-
contents.nodegroupName =
|
|
3983
|
+
contents.nodegroupName = smithy_client_1.expectString(data.nodegroupName);
|
|
3984
3984
|
}
|
|
3985
3985
|
return contents;
|
|
3986
3986
|
};
|
|
@@ -3997,19 +3997,19 @@ const deserializeAws_restJson1InvalidParameterExceptionResponse = async (parsedO
|
|
|
3997
3997
|
};
|
|
3998
3998
|
const data = parsedOutput.body;
|
|
3999
3999
|
if (data.addonName !== undefined && data.addonName !== null) {
|
|
4000
|
-
contents.addonName =
|
|
4000
|
+
contents.addonName = smithy_client_1.expectString(data.addonName);
|
|
4001
4001
|
}
|
|
4002
4002
|
if (data.clusterName !== undefined && data.clusterName !== null) {
|
|
4003
|
-
contents.clusterName =
|
|
4003
|
+
contents.clusterName = smithy_client_1.expectString(data.clusterName);
|
|
4004
4004
|
}
|
|
4005
4005
|
if (data.fargateProfileName !== undefined && data.fargateProfileName !== null) {
|
|
4006
|
-
contents.fargateProfileName =
|
|
4006
|
+
contents.fargateProfileName = smithy_client_1.expectString(data.fargateProfileName);
|
|
4007
4007
|
}
|
|
4008
4008
|
if (data.message !== undefined && data.message !== null) {
|
|
4009
|
-
contents.message =
|
|
4009
|
+
contents.message = smithy_client_1.expectString(data.message);
|
|
4010
4010
|
}
|
|
4011
4011
|
if (data.nodegroupName !== undefined && data.nodegroupName !== null) {
|
|
4012
|
-
contents.nodegroupName =
|
|
4012
|
+
contents.nodegroupName = smithy_client_1.expectString(data.nodegroupName);
|
|
4013
4013
|
}
|
|
4014
4014
|
return contents;
|
|
4015
4015
|
};
|
|
@@ -4025,16 +4025,16 @@ const deserializeAws_restJson1InvalidRequestExceptionResponse = async (parsedOut
|
|
|
4025
4025
|
};
|
|
4026
4026
|
const data = parsedOutput.body;
|
|
4027
4027
|
if (data.addonName !== undefined && data.addonName !== null) {
|
|
4028
|
-
contents.addonName =
|
|
4028
|
+
contents.addonName = smithy_client_1.expectString(data.addonName);
|
|
4029
4029
|
}
|
|
4030
4030
|
if (data.clusterName !== undefined && data.clusterName !== null) {
|
|
4031
|
-
contents.clusterName =
|
|
4031
|
+
contents.clusterName = smithy_client_1.expectString(data.clusterName);
|
|
4032
4032
|
}
|
|
4033
4033
|
if (data.message !== undefined && data.message !== null) {
|
|
4034
|
-
contents.message =
|
|
4034
|
+
contents.message = smithy_client_1.expectString(data.message);
|
|
4035
4035
|
}
|
|
4036
4036
|
if (data.nodegroupName !== undefined && data.nodegroupName !== null) {
|
|
4037
|
-
contents.nodegroupName =
|
|
4037
|
+
contents.nodegroupName = smithy_client_1.expectString(data.nodegroupName);
|
|
4038
4038
|
}
|
|
4039
4039
|
return contents;
|
|
4040
4040
|
};
|
|
@@ -4047,7 +4047,7 @@ const deserializeAws_restJson1NotFoundExceptionResponse = async (parsedOutput, c
|
|
|
4047
4047
|
};
|
|
4048
4048
|
const data = parsedOutput.body;
|
|
4049
4049
|
if (data.message !== undefined && data.message !== null) {
|
|
4050
|
-
contents.message =
|
|
4050
|
+
contents.message = smithy_client_1.expectString(data.message);
|
|
4051
4051
|
}
|
|
4052
4052
|
return contents;
|
|
4053
4053
|
};
|
|
@@ -4063,16 +4063,16 @@ const deserializeAws_restJson1ResourceInUseExceptionResponse = async (parsedOutp
|
|
|
4063
4063
|
};
|
|
4064
4064
|
const data = parsedOutput.body;
|
|
4065
4065
|
if (data.addonName !== undefined && data.addonName !== null) {
|
|
4066
|
-
contents.addonName =
|
|
4066
|
+
contents.addonName = smithy_client_1.expectString(data.addonName);
|
|
4067
4067
|
}
|
|
4068
4068
|
if (data.clusterName !== undefined && data.clusterName !== null) {
|
|
4069
|
-
contents.clusterName =
|
|
4069
|
+
contents.clusterName = smithy_client_1.expectString(data.clusterName);
|
|
4070
4070
|
}
|
|
4071
4071
|
if (data.message !== undefined && data.message !== null) {
|
|
4072
|
-
contents.message =
|
|
4072
|
+
contents.message = smithy_client_1.expectString(data.message);
|
|
4073
4073
|
}
|
|
4074
4074
|
if (data.nodegroupName !== undefined && data.nodegroupName !== null) {
|
|
4075
|
-
contents.nodegroupName =
|
|
4075
|
+
contents.nodegroupName = smithy_client_1.expectString(data.nodegroupName);
|
|
4076
4076
|
}
|
|
4077
4077
|
return contents;
|
|
4078
4078
|
};
|
|
@@ -4087,13 +4087,13 @@ const deserializeAws_restJson1ResourceLimitExceededExceptionResponse = async (pa
|
|
|
4087
4087
|
};
|
|
4088
4088
|
const data = parsedOutput.body;
|
|
4089
4089
|
if (data.clusterName !== undefined && data.clusterName !== null) {
|
|
4090
|
-
contents.clusterName =
|
|
4090
|
+
contents.clusterName = smithy_client_1.expectString(data.clusterName);
|
|
4091
4091
|
}
|
|
4092
4092
|
if (data.message !== undefined && data.message !== null) {
|
|
4093
|
-
contents.message =
|
|
4093
|
+
contents.message = smithy_client_1.expectString(data.message);
|
|
4094
4094
|
}
|
|
4095
4095
|
if (data.nodegroupName !== undefined && data.nodegroupName !== null) {
|
|
4096
|
-
contents.nodegroupName =
|
|
4096
|
+
contents.nodegroupName = smithy_client_1.expectString(data.nodegroupName);
|
|
4097
4097
|
}
|
|
4098
4098
|
return contents;
|
|
4099
4099
|
};
|
|
@@ -4110,19 +4110,19 @@ const deserializeAws_restJson1ResourceNotFoundExceptionResponse = async (parsedO
|
|
|
4110
4110
|
};
|
|
4111
4111
|
const data = parsedOutput.body;
|
|
4112
4112
|
if (data.addonName !== undefined && data.addonName !== null) {
|
|
4113
|
-
contents.addonName =
|
|
4113
|
+
contents.addonName = smithy_client_1.expectString(data.addonName);
|
|
4114
4114
|
}
|
|
4115
4115
|
if (data.clusterName !== undefined && data.clusterName !== null) {
|
|
4116
|
-
contents.clusterName =
|
|
4116
|
+
contents.clusterName = smithy_client_1.expectString(data.clusterName);
|
|
4117
4117
|
}
|
|
4118
4118
|
if (data.fargateProfileName !== undefined && data.fargateProfileName !== null) {
|
|
4119
|
-
contents.fargateProfileName =
|
|
4119
|
+
contents.fargateProfileName = smithy_client_1.expectString(data.fargateProfileName);
|
|
4120
4120
|
}
|
|
4121
4121
|
if (data.message !== undefined && data.message !== null) {
|
|
4122
|
-
contents.message =
|
|
4122
|
+
contents.message = smithy_client_1.expectString(data.message);
|
|
4123
4123
|
}
|
|
4124
4124
|
if (data.nodegroupName !== undefined && data.nodegroupName !== null) {
|
|
4125
|
-
contents.nodegroupName =
|
|
4125
|
+
contents.nodegroupName = smithy_client_1.expectString(data.nodegroupName);
|
|
4126
4126
|
}
|
|
4127
4127
|
return contents;
|
|
4128
4128
|
};
|
|
@@ -4138,16 +4138,16 @@ const deserializeAws_restJson1ServerExceptionResponse = async (parsedOutput, con
|
|
|
4138
4138
|
};
|
|
4139
4139
|
const data = parsedOutput.body;
|
|
4140
4140
|
if (data.addonName !== undefined && data.addonName !== null) {
|
|
4141
|
-
contents.addonName =
|
|
4141
|
+
contents.addonName = smithy_client_1.expectString(data.addonName);
|
|
4142
4142
|
}
|
|
4143
4143
|
if (data.clusterName !== undefined && data.clusterName !== null) {
|
|
4144
|
-
contents.clusterName =
|
|
4144
|
+
contents.clusterName = smithy_client_1.expectString(data.clusterName);
|
|
4145
4145
|
}
|
|
4146
4146
|
if (data.message !== undefined && data.message !== null) {
|
|
4147
|
-
contents.message =
|
|
4147
|
+
contents.message = smithy_client_1.expectString(data.message);
|
|
4148
4148
|
}
|
|
4149
4149
|
if (data.nodegroupName !== undefined && data.nodegroupName !== null) {
|
|
4150
|
-
contents.nodegroupName =
|
|
4150
|
+
contents.nodegroupName = smithy_client_1.expectString(data.nodegroupName);
|
|
4151
4151
|
}
|
|
4152
4152
|
return contents;
|
|
4153
4153
|
};
|
|
@@ -4160,7 +4160,7 @@ const deserializeAws_restJson1ServiceUnavailableExceptionResponse = async (parse
|
|
|
4160
4160
|
};
|
|
4161
4161
|
const data = parsedOutput.body;
|
|
4162
4162
|
if (data.message !== undefined && data.message !== null) {
|
|
4163
|
-
contents.message =
|
|
4163
|
+
contents.message = smithy_client_1.expectString(data.message);
|
|
4164
4164
|
}
|
|
4165
4165
|
return contents;
|
|
4166
4166
|
};
|
|
@@ -4176,13 +4176,13 @@ const deserializeAws_restJson1UnsupportedAvailabilityZoneExceptionResponse = asy
|
|
|
4176
4176
|
};
|
|
4177
4177
|
const data = parsedOutput.body;
|
|
4178
4178
|
if (data.clusterName !== undefined && data.clusterName !== null) {
|
|
4179
|
-
contents.clusterName =
|
|
4179
|
+
contents.clusterName = smithy_client_1.expectString(data.clusterName);
|
|
4180
4180
|
}
|
|
4181
4181
|
if (data.message !== undefined && data.message !== null) {
|
|
4182
|
-
contents.message =
|
|
4182
|
+
contents.message = smithy_client_1.expectString(data.message);
|
|
4183
4183
|
}
|
|
4184
4184
|
if (data.nodegroupName !== undefined && data.nodegroupName !== null) {
|
|
4185
|
-
contents.nodegroupName =
|
|
4185
|
+
contents.nodegroupName = smithy_client_1.expectString(data.nodegroupName);
|
|
4186
4186
|
}
|
|
4187
4187
|
if (data.validZones !== undefined && data.validZones !== null) {
|
|
4188
4188
|
contents.validZones = deserializeAws_restJson1StringList(data.validZones, context);
|
|
@@ -4453,21 +4453,21 @@ const serializeAws_restJson1VpcConfigRequest = (input, context) => {
|
|
|
4453
4453
|
};
|
|
4454
4454
|
const deserializeAws_restJson1Addon = (output, context) => {
|
|
4455
4455
|
return {
|
|
4456
|
-
addonArn:
|
|
4457
|
-
addonName:
|
|
4458
|
-
addonVersion:
|
|
4459
|
-
clusterName:
|
|
4456
|
+
addonArn: smithy_client_1.expectString(output.addonArn),
|
|
4457
|
+
addonName: smithy_client_1.expectString(output.addonName),
|
|
4458
|
+
addonVersion: smithy_client_1.expectString(output.addonVersion),
|
|
4459
|
+
clusterName: smithy_client_1.expectString(output.clusterName),
|
|
4460
4460
|
createdAt: output.createdAt !== undefined && output.createdAt !== null
|
|
4461
|
-
?
|
|
4461
|
+
? smithy_client_1.expectNonNull(smithy_client_1.parseEpochTimestamp(smithy_client_1.expectNumber(output.createdAt)))
|
|
4462
4462
|
: undefined,
|
|
4463
4463
|
health: output.health !== undefined && output.health !== null
|
|
4464
4464
|
? deserializeAws_restJson1AddonHealth(output.health, context)
|
|
4465
4465
|
: undefined,
|
|
4466
4466
|
modifiedAt: output.modifiedAt !== undefined && output.modifiedAt !== null
|
|
4467
|
-
?
|
|
4467
|
+
? smithy_client_1.expectNonNull(smithy_client_1.parseEpochTimestamp(smithy_client_1.expectNumber(output.modifiedAt)))
|
|
4468
4468
|
: undefined,
|
|
4469
|
-
serviceAccountRoleArn:
|
|
4470
|
-
status:
|
|
4469
|
+
serviceAccountRoleArn: smithy_client_1.expectString(output.serviceAccountRoleArn),
|
|
4470
|
+
status: smithy_client_1.expectString(output.status),
|
|
4471
4471
|
tags: output.tags !== undefined && output.tags !== null
|
|
4472
4472
|
? deserializeAws_restJson1TagMap(output.tags, context)
|
|
4473
4473
|
: undefined,
|
|
@@ -4482,17 +4482,17 @@ const deserializeAws_restJson1AddonHealth = (output, context) => {
|
|
|
4482
4482
|
};
|
|
4483
4483
|
const deserializeAws_restJson1AddonInfo = (output, context) => {
|
|
4484
4484
|
return {
|
|
4485
|
-
addonName:
|
|
4485
|
+
addonName: smithy_client_1.expectString(output.addonName),
|
|
4486
4486
|
addonVersions: output.addonVersions !== undefined && output.addonVersions !== null
|
|
4487
4487
|
? deserializeAws_restJson1AddonVersionInfoList(output.addonVersions, context)
|
|
4488
4488
|
: undefined,
|
|
4489
|
-
type:
|
|
4489
|
+
type: smithy_client_1.expectString(output.type),
|
|
4490
4490
|
};
|
|
4491
4491
|
};
|
|
4492
4492
|
const deserializeAws_restJson1AddonIssue = (output, context) => {
|
|
4493
4493
|
return {
|
|
4494
|
-
code:
|
|
4495
|
-
message:
|
|
4494
|
+
code: smithy_client_1.expectString(output.code),
|
|
4495
|
+
message: smithy_client_1.expectString(output.message),
|
|
4496
4496
|
resourceIds: output.resourceIds !== undefined && output.resourceIds !== null
|
|
4497
4497
|
? deserializeAws_restJson1StringList(output.resourceIds, context)
|
|
4498
4498
|
: undefined,
|
|
@@ -4520,7 +4520,7 @@ const deserializeAws_restJson1Addons = (output, context) => {
|
|
|
4520
4520
|
};
|
|
4521
4521
|
const deserializeAws_restJson1AddonVersionInfo = (output, context) => {
|
|
4522
4522
|
return {
|
|
4523
|
-
addonVersion:
|
|
4523
|
+
addonVersion: smithy_client_1.expectString(output.addonVersion),
|
|
4524
4524
|
architecture: output.architecture !== undefined && output.architecture !== null
|
|
4525
4525
|
? deserializeAws_restJson1StringList(output.architecture, context)
|
|
4526
4526
|
: undefined,
|
|
@@ -4541,7 +4541,7 @@ const deserializeAws_restJson1AddonVersionInfoList = (output, context) => {
|
|
|
4541
4541
|
};
|
|
4542
4542
|
const deserializeAws_restJson1AutoScalingGroup = (output, context) => {
|
|
4543
4543
|
return {
|
|
4544
|
-
name:
|
|
4544
|
+
name: smithy_client_1.expectString(output.name),
|
|
4545
4545
|
};
|
|
4546
4546
|
};
|
|
4547
4547
|
const deserializeAws_restJson1AutoScalingGroupList = (output, context) => {
|
|
@@ -4556,26 +4556,26 @@ const deserializeAws_restJson1AutoScalingGroupList = (output, context) => {
|
|
|
4556
4556
|
};
|
|
4557
4557
|
const deserializeAws_restJson1Certificate = (output, context) => {
|
|
4558
4558
|
return {
|
|
4559
|
-
data:
|
|
4559
|
+
data: smithy_client_1.expectString(output.data),
|
|
4560
4560
|
};
|
|
4561
4561
|
};
|
|
4562
4562
|
const deserializeAws_restJson1Cluster = (output, context) => {
|
|
4563
4563
|
return {
|
|
4564
|
-
arn:
|
|
4564
|
+
arn: smithy_client_1.expectString(output.arn),
|
|
4565
4565
|
certificateAuthority: output.certificateAuthority !== undefined && output.certificateAuthority !== null
|
|
4566
4566
|
? deserializeAws_restJson1Certificate(output.certificateAuthority, context)
|
|
4567
4567
|
: undefined,
|
|
4568
|
-
clientRequestToken:
|
|
4568
|
+
clientRequestToken: smithy_client_1.expectString(output.clientRequestToken),
|
|
4569
4569
|
connectorConfig: output.connectorConfig !== undefined && output.connectorConfig !== null
|
|
4570
4570
|
? deserializeAws_restJson1ConnectorConfigResponse(output.connectorConfig, context)
|
|
4571
4571
|
: undefined,
|
|
4572
4572
|
createdAt: output.createdAt !== undefined && output.createdAt !== null
|
|
4573
|
-
?
|
|
4573
|
+
? smithy_client_1.expectNonNull(smithy_client_1.parseEpochTimestamp(smithy_client_1.expectNumber(output.createdAt)))
|
|
4574
4574
|
: undefined,
|
|
4575
4575
|
encryptionConfig: output.encryptionConfig !== undefined && output.encryptionConfig !== null
|
|
4576
4576
|
? deserializeAws_restJson1EncryptionConfigList(output.encryptionConfig, context)
|
|
4577
4577
|
: undefined,
|
|
4578
|
-
endpoint:
|
|
4578
|
+
endpoint: smithy_client_1.expectString(output.endpoint),
|
|
4579
4579
|
identity: output.identity !== undefined && output.identity !== null
|
|
4580
4580
|
? deserializeAws_restJson1Identity(output.identity, context)
|
|
4581
4581
|
: undefined,
|
|
@@ -4585,17 +4585,17 @@ const deserializeAws_restJson1Cluster = (output, context) => {
|
|
|
4585
4585
|
logging: output.logging !== undefined && output.logging !== null
|
|
4586
4586
|
? deserializeAws_restJson1Logging(output.logging, context)
|
|
4587
4587
|
: undefined,
|
|
4588
|
-
name:
|
|
4589
|
-
platformVersion:
|
|
4588
|
+
name: smithy_client_1.expectString(output.name),
|
|
4589
|
+
platformVersion: smithy_client_1.expectString(output.platformVersion),
|
|
4590
4590
|
resourcesVpcConfig: output.resourcesVpcConfig !== undefined && output.resourcesVpcConfig !== null
|
|
4591
4591
|
? deserializeAws_restJson1VpcConfigResponse(output.resourcesVpcConfig, context)
|
|
4592
4592
|
: undefined,
|
|
4593
|
-
roleArn:
|
|
4594
|
-
status:
|
|
4593
|
+
roleArn: smithy_client_1.expectString(output.roleArn),
|
|
4594
|
+
status: smithy_client_1.expectString(output.status),
|
|
4595
4595
|
tags: output.tags !== undefined && output.tags !== null
|
|
4596
4596
|
? deserializeAws_restJson1TagMap(output.tags, context)
|
|
4597
4597
|
: undefined,
|
|
4598
|
-
version:
|
|
4598
|
+
version: smithy_client_1.expectString(output.version),
|
|
4599
4599
|
};
|
|
4600
4600
|
};
|
|
4601
4601
|
const deserializeAws_restJson1Compatibilities = (output, context) => {
|
|
@@ -4610,8 +4610,8 @@ const deserializeAws_restJson1Compatibilities = (output, context) => {
|
|
|
4610
4610
|
};
|
|
4611
4611
|
const deserializeAws_restJson1Compatibility = (output, context) => {
|
|
4612
4612
|
return {
|
|
4613
|
-
clusterVersion:
|
|
4614
|
-
defaultVersion:
|
|
4613
|
+
clusterVersion: smithy_client_1.expectString(output.clusterVersion),
|
|
4614
|
+
defaultVersion: smithy_client_1.expectBoolean(output.defaultVersion),
|
|
4615
4615
|
platformVersions: output.platformVersions !== undefined && output.platformVersions !== null
|
|
4616
4616
|
? deserializeAws_restJson1StringList(output.platformVersions, context)
|
|
4617
4617
|
: undefined,
|
|
@@ -4619,13 +4619,13 @@ const deserializeAws_restJson1Compatibility = (output, context) => {
|
|
|
4619
4619
|
};
|
|
4620
4620
|
const deserializeAws_restJson1ConnectorConfigResponse = (output, context) => {
|
|
4621
4621
|
return {
|
|
4622
|
-
activationCode:
|
|
4622
|
+
activationCode: smithy_client_1.expectString(output.activationCode),
|
|
4623
4623
|
activationExpiry: output.activationExpiry !== undefined && output.activationExpiry !== null
|
|
4624
|
-
?
|
|
4624
|
+
? smithy_client_1.expectNonNull(smithy_client_1.parseEpochTimestamp(smithy_client_1.expectNumber(output.activationExpiry)))
|
|
4625
4625
|
: undefined,
|
|
4626
|
-
activationId:
|
|
4627
|
-
provider:
|
|
4628
|
-
roleArn:
|
|
4626
|
+
activationId: smithy_client_1.expectString(output.activationId),
|
|
4627
|
+
provider: smithy_client_1.expectString(output.provider),
|
|
4628
|
+
roleArn: smithy_client_1.expectString(output.roleArn),
|
|
4629
4629
|
};
|
|
4630
4630
|
};
|
|
4631
4631
|
const deserializeAws_restJson1EncryptionConfig = (output, context) => {
|
|
@@ -4650,8 +4650,8 @@ const deserializeAws_restJson1EncryptionConfigList = (output, context) => {
|
|
|
4650
4650
|
};
|
|
4651
4651
|
const deserializeAws_restJson1ErrorDetail = (output, context) => {
|
|
4652
4652
|
return {
|
|
4653
|
-
errorCode:
|
|
4654
|
-
errorMessage:
|
|
4653
|
+
errorCode: smithy_client_1.expectString(output.errorCode),
|
|
4654
|
+
errorMessage: smithy_client_1.expectString(output.errorMessage),
|
|
4655
4655
|
resourceIds: output.resourceIds !== undefined && output.resourceIds !== null
|
|
4656
4656
|
? deserializeAws_restJson1StringList(output.resourceIds, context)
|
|
4657
4657
|
: undefined,
|
|
@@ -4669,17 +4669,17 @@ const deserializeAws_restJson1ErrorDetails = (output, context) => {
|
|
|
4669
4669
|
};
|
|
4670
4670
|
const deserializeAws_restJson1FargateProfile = (output, context) => {
|
|
4671
4671
|
return {
|
|
4672
|
-
clusterName:
|
|
4672
|
+
clusterName: smithy_client_1.expectString(output.clusterName),
|
|
4673
4673
|
createdAt: output.createdAt !== undefined && output.createdAt !== null
|
|
4674
|
-
?
|
|
4674
|
+
? smithy_client_1.expectNonNull(smithy_client_1.parseEpochTimestamp(smithy_client_1.expectNumber(output.createdAt)))
|
|
4675
4675
|
: undefined,
|
|
4676
|
-
fargateProfileArn:
|
|
4677
|
-
fargateProfileName:
|
|
4678
|
-
podExecutionRoleArn:
|
|
4676
|
+
fargateProfileArn: smithy_client_1.expectString(output.fargateProfileArn),
|
|
4677
|
+
fargateProfileName: smithy_client_1.expectString(output.fargateProfileName),
|
|
4678
|
+
podExecutionRoleArn: smithy_client_1.expectString(output.podExecutionRoleArn),
|
|
4679
4679
|
selectors: output.selectors !== undefined && output.selectors !== null
|
|
4680
4680
|
? deserializeAws_restJson1FargateProfileSelectors(output.selectors, context)
|
|
4681
4681
|
: undefined,
|
|
4682
|
-
status:
|
|
4682
|
+
status: smithy_client_1.expectString(output.status),
|
|
4683
4683
|
subnets: output.subnets !== undefined && output.subnets !== null
|
|
4684
4684
|
? deserializeAws_restJson1StringList(output.subnets, context)
|
|
4685
4685
|
: undefined,
|
|
@@ -4695,7 +4695,7 @@ const deserializeAws_restJson1FargateProfileLabel = (output, context) => {
|
|
|
4695
4695
|
}
|
|
4696
4696
|
return {
|
|
4697
4697
|
...acc,
|
|
4698
|
-
[key]:
|
|
4698
|
+
[key]: smithy_client_1.expectString(value),
|
|
4699
4699
|
};
|
|
4700
4700
|
}, {});
|
|
4701
4701
|
};
|
|
@@ -4704,7 +4704,7 @@ const deserializeAws_restJson1FargateProfileSelector = (output, context) => {
|
|
|
4704
4704
|
labels: output.labels !== undefined && output.labels !== null
|
|
4705
4705
|
? deserializeAws_restJson1FargateProfileLabel(output.labels, context)
|
|
4706
4706
|
: undefined,
|
|
4707
|
-
namespace:
|
|
4707
|
+
namespace: smithy_client_1.expectString(output.namespace),
|
|
4708
4708
|
};
|
|
4709
4709
|
};
|
|
4710
4710
|
const deserializeAws_restJson1FargateProfileSelectors = (output, context) => {
|
|
@@ -4726,8 +4726,8 @@ const deserializeAws_restJson1Identity = (output, context) => {
|
|
|
4726
4726
|
};
|
|
4727
4727
|
const deserializeAws_restJson1IdentityProviderConfig = (output, context) => {
|
|
4728
4728
|
return {
|
|
4729
|
-
name:
|
|
4730
|
-
type:
|
|
4729
|
+
name: smithy_client_1.expectString(output.name),
|
|
4730
|
+
type: smithy_client_1.expectString(output.type),
|
|
4731
4731
|
};
|
|
4732
4732
|
};
|
|
4733
4733
|
const deserializeAws_restJson1IdentityProviderConfigResponse = (output, context) => {
|
|
@@ -4749,8 +4749,8 @@ const deserializeAws_restJson1IdentityProviderConfigs = (output, context) => {
|
|
|
4749
4749
|
};
|
|
4750
4750
|
const deserializeAws_restJson1Issue = (output, context) => {
|
|
4751
4751
|
return {
|
|
4752
|
-
code:
|
|
4753
|
-
message:
|
|
4752
|
+
code: smithy_client_1.expectString(output.code),
|
|
4753
|
+
message: smithy_client_1.expectString(output.message),
|
|
4754
4754
|
resourceIds: output.resourceIds !== undefined && output.resourceIds !== null
|
|
4755
4755
|
? deserializeAws_restJson1StringList(output.resourceIds, context)
|
|
4756
4756
|
: undefined,
|
|
@@ -4768,7 +4768,7 @@ const deserializeAws_restJson1IssueList = (output, context) => {
|
|
|
4768
4768
|
};
|
|
4769
4769
|
const deserializeAws_restJson1KubernetesNetworkConfigResponse = (output, context) => {
|
|
4770
4770
|
return {
|
|
4771
|
-
serviceIpv4Cidr:
|
|
4771
|
+
serviceIpv4Cidr: smithy_client_1.expectString(output.serviceIpv4Cidr),
|
|
4772
4772
|
};
|
|
4773
4773
|
};
|
|
4774
4774
|
const deserializeAws_restJson1labelsMap = (output, context) => {
|
|
@@ -4778,15 +4778,15 @@ const deserializeAws_restJson1labelsMap = (output, context) => {
|
|
|
4778
4778
|
}
|
|
4779
4779
|
return {
|
|
4780
4780
|
...acc,
|
|
4781
|
-
[key]:
|
|
4781
|
+
[key]: smithy_client_1.expectString(value),
|
|
4782
4782
|
};
|
|
4783
4783
|
}, {});
|
|
4784
4784
|
};
|
|
4785
4785
|
const deserializeAws_restJson1LaunchTemplateSpecification = (output, context) => {
|
|
4786
4786
|
return {
|
|
4787
|
-
id:
|
|
4788
|
-
name:
|
|
4789
|
-
version:
|
|
4787
|
+
id: smithy_client_1.expectString(output.id),
|
|
4788
|
+
name: smithy_client_1.expectString(output.name),
|
|
4789
|
+
version: smithy_client_1.expectString(output.version),
|
|
4790
4790
|
};
|
|
4791
4791
|
};
|
|
4792
4792
|
const deserializeAws_restJson1Logging = (output, context) => {
|
|
@@ -4798,7 +4798,7 @@ const deserializeAws_restJson1Logging = (output, context) => {
|
|
|
4798
4798
|
};
|
|
4799
4799
|
const deserializeAws_restJson1LogSetup = (output, context) => {
|
|
4800
4800
|
return {
|
|
4801
|
-
enabled:
|
|
4801
|
+
enabled: smithy_client_1.expectBoolean(output.enabled),
|
|
4802
4802
|
types: output.types !== undefined && output.types !== null
|
|
4803
4803
|
? deserializeAws_restJson1LogTypes(output.types, context)
|
|
4804
4804
|
: undefined,
|
|
@@ -4821,18 +4821,18 @@ const deserializeAws_restJson1LogTypes = (output, context) => {
|
|
|
4821
4821
|
if (entry === null) {
|
|
4822
4822
|
return null;
|
|
4823
4823
|
}
|
|
4824
|
-
return
|
|
4824
|
+
return smithy_client_1.expectString(entry);
|
|
4825
4825
|
});
|
|
4826
4826
|
};
|
|
4827
4827
|
const deserializeAws_restJson1Nodegroup = (output, context) => {
|
|
4828
4828
|
return {
|
|
4829
|
-
amiType:
|
|
4830
|
-
capacityType:
|
|
4831
|
-
clusterName:
|
|
4829
|
+
amiType: smithy_client_1.expectString(output.amiType),
|
|
4830
|
+
capacityType: smithy_client_1.expectString(output.capacityType),
|
|
4831
|
+
clusterName: smithy_client_1.expectString(output.clusterName),
|
|
4832
4832
|
createdAt: output.createdAt !== undefined && output.createdAt !== null
|
|
4833
|
-
?
|
|
4833
|
+
? smithy_client_1.expectNonNull(smithy_client_1.parseEpochTimestamp(smithy_client_1.expectNumber(output.createdAt)))
|
|
4834
4834
|
: undefined,
|
|
4835
|
-
diskSize:
|
|
4835
|
+
diskSize: smithy_client_1.expectInt32(output.diskSize),
|
|
4836
4836
|
health: output.health !== undefined && output.health !== null
|
|
4837
4837
|
? deserializeAws_restJson1NodegroupHealth(output.health, context)
|
|
4838
4838
|
: undefined,
|
|
@@ -4846,12 +4846,12 @@ const deserializeAws_restJson1Nodegroup = (output, context) => {
|
|
|
4846
4846
|
? deserializeAws_restJson1LaunchTemplateSpecification(output.launchTemplate, context)
|
|
4847
4847
|
: undefined,
|
|
4848
4848
|
modifiedAt: output.modifiedAt !== undefined && output.modifiedAt !== null
|
|
4849
|
-
?
|
|
4849
|
+
? smithy_client_1.expectNonNull(smithy_client_1.parseEpochTimestamp(smithy_client_1.expectNumber(output.modifiedAt)))
|
|
4850
4850
|
: undefined,
|
|
4851
|
-
nodeRole:
|
|
4852
|
-
nodegroupArn:
|
|
4853
|
-
nodegroupName:
|
|
4854
|
-
releaseVersion:
|
|
4851
|
+
nodeRole: smithy_client_1.expectString(output.nodeRole),
|
|
4852
|
+
nodegroupArn: smithy_client_1.expectString(output.nodegroupArn),
|
|
4853
|
+
nodegroupName: smithy_client_1.expectString(output.nodegroupName),
|
|
4854
|
+
releaseVersion: smithy_client_1.expectString(output.releaseVersion),
|
|
4855
4855
|
remoteAccess: output.remoteAccess !== undefined && output.remoteAccess !== null
|
|
4856
4856
|
? deserializeAws_restJson1RemoteAccessConfig(output.remoteAccess, context)
|
|
4857
4857
|
: undefined,
|
|
@@ -4861,7 +4861,7 @@ const deserializeAws_restJson1Nodegroup = (output, context) => {
|
|
|
4861
4861
|
scalingConfig: output.scalingConfig !== undefined && output.scalingConfig !== null
|
|
4862
4862
|
? deserializeAws_restJson1NodegroupScalingConfig(output.scalingConfig, context)
|
|
4863
4863
|
: undefined,
|
|
4864
|
-
status:
|
|
4864
|
+
status: smithy_client_1.expectString(output.status),
|
|
4865
4865
|
subnets: output.subnets !== undefined && output.subnets !== null
|
|
4866
4866
|
? deserializeAws_restJson1StringList(output.subnets, context)
|
|
4867
4867
|
: undefined,
|
|
@@ -4874,7 +4874,7 @@ const deserializeAws_restJson1Nodegroup = (output, context) => {
|
|
|
4874
4874
|
updateConfig: output.updateConfig !== undefined && output.updateConfig !== null
|
|
4875
4875
|
? deserializeAws_restJson1NodegroupUpdateConfig(output.updateConfig, context)
|
|
4876
4876
|
: undefined,
|
|
4877
|
-
version:
|
|
4877
|
+
version: smithy_client_1.expectString(output.version),
|
|
4878
4878
|
};
|
|
4879
4879
|
};
|
|
4880
4880
|
const deserializeAws_restJson1NodegroupHealth = (output, context) => {
|
|
@@ -4889,55 +4889,55 @@ const deserializeAws_restJson1NodegroupResources = (output, context) => {
|
|
|
4889
4889
|
autoScalingGroups: output.autoScalingGroups !== undefined && output.autoScalingGroups !== null
|
|
4890
4890
|
? deserializeAws_restJson1AutoScalingGroupList(output.autoScalingGroups, context)
|
|
4891
4891
|
: undefined,
|
|
4892
|
-
remoteAccessSecurityGroup:
|
|
4892
|
+
remoteAccessSecurityGroup: smithy_client_1.expectString(output.remoteAccessSecurityGroup),
|
|
4893
4893
|
};
|
|
4894
4894
|
};
|
|
4895
4895
|
const deserializeAws_restJson1NodegroupScalingConfig = (output, context) => {
|
|
4896
4896
|
return {
|
|
4897
|
-
desiredSize:
|
|
4898
|
-
maxSize:
|
|
4899
|
-
minSize:
|
|
4897
|
+
desiredSize: smithy_client_1.expectInt32(output.desiredSize),
|
|
4898
|
+
maxSize: smithy_client_1.expectInt32(output.maxSize),
|
|
4899
|
+
minSize: smithy_client_1.expectInt32(output.minSize),
|
|
4900
4900
|
};
|
|
4901
4901
|
};
|
|
4902
4902
|
const deserializeAws_restJson1NodegroupUpdateConfig = (output, context) => {
|
|
4903
4903
|
return {
|
|
4904
|
-
maxUnavailable:
|
|
4905
|
-
maxUnavailablePercentage:
|
|
4904
|
+
maxUnavailable: smithy_client_1.expectInt32(output.maxUnavailable),
|
|
4905
|
+
maxUnavailablePercentage: smithy_client_1.expectInt32(output.maxUnavailablePercentage),
|
|
4906
4906
|
};
|
|
4907
4907
|
};
|
|
4908
4908
|
const deserializeAws_restJson1OIDC = (output, context) => {
|
|
4909
4909
|
return {
|
|
4910
|
-
issuer:
|
|
4910
|
+
issuer: smithy_client_1.expectString(output.issuer),
|
|
4911
4911
|
};
|
|
4912
4912
|
};
|
|
4913
4913
|
const deserializeAws_restJson1OidcIdentityProviderConfig = (output, context) => {
|
|
4914
4914
|
return {
|
|
4915
|
-
clientId:
|
|
4916
|
-
clusterName:
|
|
4917
|
-
groupsClaim:
|
|
4918
|
-
groupsPrefix:
|
|
4919
|
-
identityProviderConfigArn:
|
|
4920
|
-
identityProviderConfigName:
|
|
4921
|
-
issuerUrl:
|
|
4915
|
+
clientId: smithy_client_1.expectString(output.clientId),
|
|
4916
|
+
clusterName: smithy_client_1.expectString(output.clusterName),
|
|
4917
|
+
groupsClaim: smithy_client_1.expectString(output.groupsClaim),
|
|
4918
|
+
groupsPrefix: smithy_client_1.expectString(output.groupsPrefix),
|
|
4919
|
+
identityProviderConfigArn: smithy_client_1.expectString(output.identityProviderConfigArn),
|
|
4920
|
+
identityProviderConfigName: smithy_client_1.expectString(output.identityProviderConfigName),
|
|
4921
|
+
issuerUrl: smithy_client_1.expectString(output.issuerUrl),
|
|
4922
4922
|
requiredClaims: output.requiredClaims !== undefined && output.requiredClaims !== null
|
|
4923
4923
|
? deserializeAws_restJson1requiredClaimsMap(output.requiredClaims, context)
|
|
4924
4924
|
: undefined,
|
|
4925
|
-
status:
|
|
4925
|
+
status: smithy_client_1.expectString(output.status),
|
|
4926
4926
|
tags: output.tags !== undefined && output.tags !== null
|
|
4927
4927
|
? deserializeAws_restJson1TagMap(output.tags, context)
|
|
4928
4928
|
: undefined,
|
|
4929
|
-
usernameClaim:
|
|
4930
|
-
usernamePrefix:
|
|
4929
|
+
usernameClaim: smithy_client_1.expectString(output.usernameClaim),
|
|
4930
|
+
usernamePrefix: smithy_client_1.expectString(output.usernamePrefix),
|
|
4931
4931
|
};
|
|
4932
4932
|
};
|
|
4933
4933
|
const deserializeAws_restJson1Provider = (output, context) => {
|
|
4934
4934
|
return {
|
|
4935
|
-
keyArn:
|
|
4935
|
+
keyArn: smithy_client_1.expectString(output.keyArn),
|
|
4936
4936
|
};
|
|
4937
4937
|
};
|
|
4938
4938
|
const deserializeAws_restJson1RemoteAccessConfig = (output, context) => {
|
|
4939
4939
|
return {
|
|
4940
|
-
ec2SshKey:
|
|
4940
|
+
ec2SshKey: smithy_client_1.expectString(output.ec2SshKey),
|
|
4941
4941
|
sourceSecurityGroups: output.sourceSecurityGroups !== undefined && output.sourceSecurityGroups !== null
|
|
4942
4942
|
? deserializeAws_restJson1StringList(output.sourceSecurityGroups, context)
|
|
4943
4943
|
: undefined,
|
|
@@ -4950,7 +4950,7 @@ const deserializeAws_restJson1requiredClaimsMap = (output, context) => {
|
|
|
4950
4950
|
}
|
|
4951
4951
|
return {
|
|
4952
4952
|
...acc,
|
|
4953
|
-
[key]:
|
|
4953
|
+
[key]: smithy_client_1.expectString(value),
|
|
4954
4954
|
};
|
|
4955
4955
|
}, {});
|
|
4956
4956
|
};
|
|
@@ -4961,7 +4961,7 @@ const deserializeAws_restJson1StringList = (output, context) => {
|
|
|
4961
4961
|
if (entry === null) {
|
|
4962
4962
|
return null;
|
|
4963
4963
|
}
|
|
4964
|
-
return
|
|
4964
|
+
return smithy_client_1.expectString(entry);
|
|
4965
4965
|
});
|
|
4966
4966
|
};
|
|
4967
4967
|
const deserializeAws_restJson1TagMap = (output, context) => {
|
|
@@ -4971,15 +4971,15 @@ const deserializeAws_restJson1TagMap = (output, context) => {
|
|
|
4971
4971
|
}
|
|
4972
4972
|
return {
|
|
4973
4973
|
...acc,
|
|
4974
|
-
[key]:
|
|
4974
|
+
[key]: smithy_client_1.expectString(value),
|
|
4975
4975
|
};
|
|
4976
4976
|
}, {});
|
|
4977
4977
|
};
|
|
4978
4978
|
const deserializeAws_restJson1Taint = (output, context) => {
|
|
4979
4979
|
return {
|
|
4980
|
-
effect:
|
|
4981
|
-
key:
|
|
4982
|
-
value:
|
|
4980
|
+
effect: smithy_client_1.expectString(output.effect),
|
|
4981
|
+
key: smithy_client_1.expectString(output.key),
|
|
4982
|
+
value: smithy_client_1.expectString(output.value),
|
|
4983
4983
|
};
|
|
4984
4984
|
};
|
|
4985
4985
|
const deserializeAws_restJson1taintsList = (output, context) => {
|
|
@@ -4995,23 +4995,23 @@ const deserializeAws_restJson1taintsList = (output, context) => {
|
|
|
4995
4995
|
const deserializeAws_restJson1Update = (output, context) => {
|
|
4996
4996
|
return {
|
|
4997
4997
|
createdAt: output.createdAt !== undefined && output.createdAt !== null
|
|
4998
|
-
?
|
|
4998
|
+
? smithy_client_1.expectNonNull(smithy_client_1.parseEpochTimestamp(smithy_client_1.expectNumber(output.createdAt)))
|
|
4999
4999
|
: undefined,
|
|
5000
5000
|
errors: output.errors !== undefined && output.errors !== null
|
|
5001
5001
|
? deserializeAws_restJson1ErrorDetails(output.errors, context)
|
|
5002
5002
|
: undefined,
|
|
5003
|
-
id:
|
|
5003
|
+
id: smithy_client_1.expectString(output.id),
|
|
5004
5004
|
params: output.params !== undefined && output.params !== null
|
|
5005
5005
|
? deserializeAws_restJson1UpdateParams(output.params, context)
|
|
5006
5006
|
: undefined,
|
|
5007
|
-
status:
|
|
5008
|
-
type:
|
|
5007
|
+
status: smithy_client_1.expectString(output.status),
|
|
5008
|
+
type: smithy_client_1.expectString(output.type),
|
|
5009
5009
|
};
|
|
5010
5010
|
};
|
|
5011
5011
|
const deserializeAws_restJson1UpdateParam = (output, context) => {
|
|
5012
5012
|
return {
|
|
5013
|
-
type:
|
|
5014
|
-
value:
|
|
5013
|
+
type: smithy_client_1.expectString(output.type),
|
|
5014
|
+
value: smithy_client_1.expectString(output.value),
|
|
5015
5015
|
};
|
|
5016
5016
|
};
|
|
5017
5017
|
const deserializeAws_restJson1UpdateParams = (output, context) => {
|
|
@@ -5026,9 +5026,9 @@ const deserializeAws_restJson1UpdateParams = (output, context) => {
|
|
|
5026
5026
|
};
|
|
5027
5027
|
const deserializeAws_restJson1VpcConfigResponse = (output, context) => {
|
|
5028
5028
|
return {
|
|
5029
|
-
clusterSecurityGroupId:
|
|
5030
|
-
endpointPrivateAccess:
|
|
5031
|
-
endpointPublicAccess:
|
|
5029
|
+
clusterSecurityGroupId: smithy_client_1.expectString(output.clusterSecurityGroupId),
|
|
5030
|
+
endpointPrivateAccess: smithy_client_1.expectBoolean(output.endpointPrivateAccess),
|
|
5031
|
+
endpointPublicAccess: smithy_client_1.expectBoolean(output.endpointPublicAccess),
|
|
5032
5032
|
publicAccessCidrs: output.publicAccessCidrs !== undefined && output.publicAccessCidrs !== null
|
|
5033
5033
|
? deserializeAws_restJson1StringList(output.publicAccessCidrs, context)
|
|
5034
5034
|
: undefined,
|
|
@@ -5038,7 +5038,7 @@ const deserializeAws_restJson1VpcConfigResponse = (output, context) => {
|
|
|
5038
5038
|
subnetIds: output.subnetIds !== undefined && output.subnetIds !== null
|
|
5039
5039
|
? deserializeAws_restJson1StringList(output.subnetIds, context)
|
|
5040
5040
|
: undefined,
|
|
5041
|
-
vpcId:
|
|
5041
|
+
vpcId: smithy_client_1.expectString(output.vpcId),
|
|
5042
5042
|
};
|
|
5043
5043
|
};
|
|
5044
5044
|
const deserializeMetadata = (output) => {
|