@aws-sdk/client-eks 3.118.1 → 3.128.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.
@@ -28,8 +28,7 @@ const serializeAws_restJson1AssociateEncryptionConfigCommand = async (input, con
28
28
  let body;
29
29
  body = JSON.stringify({
30
30
  clientRequestToken: (_a = input.clientRequestToken) !== null && _a !== void 0 ? _a : (0, uuid_1.v4)(),
31
- ...(input.encryptionConfig !== undefined &&
32
- input.encryptionConfig !== null && {
31
+ ...(input.encryptionConfig != null && {
33
32
  encryptionConfig: serializeAws_restJson1EncryptionConfigList(input.encryptionConfig, context),
34
33
  }),
35
34
  });
@@ -65,9 +64,8 @@ const serializeAws_restJson1AssociateIdentityProviderConfigCommand = async (inpu
65
64
  let body;
66
65
  body = JSON.stringify({
67
66
  clientRequestToken: (_a = input.clientRequestToken) !== null && _a !== void 0 ? _a : (0, uuid_1.v4)(),
68
- ...(input.oidc !== undefined &&
69
- input.oidc !== null && { oidc: serializeAws_restJson1OidcIdentityProviderConfigRequest(input.oidc, context) }),
70
- ...(input.tags !== undefined && input.tags !== null && { tags: serializeAws_restJson1TagMap(input.tags, context) }),
67
+ ...(input.oidc != null && { oidc: serializeAws_restJson1OidcIdentityProviderConfigRequest(input.oidc, context) }),
68
+ ...(input.tags != null && { tags: serializeAws_restJson1TagMap(input.tags, context) }),
71
69
  });
72
70
  return new protocol_http_1.HttpRequest({
73
71
  protocol,
@@ -99,14 +97,12 @@ const serializeAws_restJson1CreateAddonCommand = async (input, context) => {
99
97
  }
100
98
  let body;
101
99
  body = JSON.stringify({
102
- ...(input.addonName !== undefined && input.addonName !== null && { addonName: input.addonName }),
103
- ...(input.addonVersion !== undefined && input.addonVersion !== null && { addonVersion: input.addonVersion }),
100
+ ...(input.addonName != null && { addonName: input.addonName }),
101
+ ...(input.addonVersion != null && { addonVersion: input.addonVersion }),
104
102
  clientRequestToken: (_a = input.clientRequestToken) !== null && _a !== void 0 ? _a : (0, uuid_1.v4)(),
105
- ...(input.resolveConflicts !== undefined &&
106
- input.resolveConflicts !== null && { resolveConflicts: input.resolveConflicts }),
107
- ...(input.serviceAccountRoleArn !== undefined &&
108
- input.serviceAccountRoleArn !== null && { serviceAccountRoleArn: input.serviceAccountRoleArn }),
109
- ...(input.tags !== undefined && input.tags !== null && { tags: serializeAws_restJson1TagMap(input.tags, context) }),
103
+ ...(input.resolveConflicts != null && { resolveConflicts: input.resolveConflicts }),
104
+ ...(input.serviceAccountRoleArn != null && { serviceAccountRoleArn: input.serviceAccountRoleArn }),
105
+ ...(input.tags != null && { tags: serializeAws_restJson1TagMap(input.tags, context) }),
110
106
  });
111
107
  return new protocol_http_1.HttpRequest({
112
108
  protocol,
@@ -129,24 +125,20 @@ const serializeAws_restJson1CreateClusterCommand = async (input, context) => {
129
125
  let body;
130
126
  body = JSON.stringify({
131
127
  clientRequestToken: (_a = input.clientRequestToken) !== null && _a !== void 0 ? _a : (0, uuid_1.v4)(),
132
- ...(input.encryptionConfig !== undefined &&
133
- input.encryptionConfig !== null && {
128
+ ...(input.encryptionConfig != null && {
134
129
  encryptionConfig: serializeAws_restJson1EncryptionConfigList(input.encryptionConfig, context),
135
130
  }),
136
- ...(input.kubernetesNetworkConfig !== undefined &&
137
- input.kubernetesNetworkConfig !== null && {
131
+ ...(input.kubernetesNetworkConfig != null && {
138
132
  kubernetesNetworkConfig: serializeAws_restJson1KubernetesNetworkConfigRequest(input.kubernetesNetworkConfig, context),
139
133
  }),
140
- ...(input.logging !== undefined &&
141
- input.logging !== null && { logging: serializeAws_restJson1Logging(input.logging, context) }),
142
- ...(input.name !== undefined && input.name !== null && { name: input.name }),
143
- ...(input.resourcesVpcConfig !== undefined &&
144
- input.resourcesVpcConfig !== null && {
134
+ ...(input.logging != null && { logging: serializeAws_restJson1Logging(input.logging, context) }),
135
+ ...(input.name != null && { name: input.name }),
136
+ ...(input.resourcesVpcConfig != null && {
145
137
  resourcesVpcConfig: serializeAws_restJson1VpcConfigRequest(input.resourcesVpcConfig, context),
146
138
  }),
147
- ...(input.roleArn !== undefined && input.roleArn !== null && { roleArn: input.roleArn }),
148
- ...(input.tags !== undefined && input.tags !== null && { tags: serializeAws_restJson1TagMap(input.tags, context) }),
149
- ...(input.version !== undefined && input.version !== null && { version: input.version }),
139
+ ...(input.roleArn != null && { roleArn: input.roleArn }),
140
+ ...(input.tags != null && { tags: serializeAws_restJson1TagMap(input.tags, context) }),
141
+ ...(input.version != null && { version: input.version }),
150
142
  });
151
143
  return new protocol_http_1.HttpRequest({
152
144
  protocol,
@@ -179,17 +171,13 @@ const serializeAws_restJson1CreateFargateProfileCommand = async (input, context)
179
171
  let body;
180
172
  body = JSON.stringify({
181
173
  clientRequestToken: (_a = input.clientRequestToken) !== null && _a !== void 0 ? _a : (0, uuid_1.v4)(),
182
- ...(input.fargateProfileName !== undefined &&
183
- input.fargateProfileName !== null && { fargateProfileName: input.fargateProfileName }),
184
- ...(input.podExecutionRoleArn !== undefined &&
185
- input.podExecutionRoleArn !== null && { podExecutionRoleArn: input.podExecutionRoleArn }),
186
- ...(input.selectors !== undefined &&
187
- input.selectors !== null && {
174
+ ...(input.fargateProfileName != null && { fargateProfileName: input.fargateProfileName }),
175
+ ...(input.podExecutionRoleArn != null && { podExecutionRoleArn: input.podExecutionRoleArn }),
176
+ ...(input.selectors != null && {
188
177
  selectors: serializeAws_restJson1FargateProfileSelectors(input.selectors, context),
189
178
  }),
190
- ...(input.subnets !== undefined &&
191
- input.subnets !== null && { subnets: serializeAws_restJson1StringList(input.subnets, context) }),
192
- ...(input.tags !== undefined && input.tags !== null && { tags: serializeAws_restJson1TagMap(input.tags, context) }),
179
+ ...(input.subnets != null && { subnets: serializeAws_restJson1StringList(input.subnets, context) }),
180
+ ...(input.tags != null && { tags: serializeAws_restJson1TagMap(input.tags, context) }),
193
181
  });
194
182
  return new protocol_http_1.HttpRequest({
195
183
  protocol,
@@ -221,42 +209,33 @@ const serializeAws_restJson1CreateNodegroupCommand = async (input, context) => {
221
209
  }
222
210
  let body;
223
211
  body = JSON.stringify({
224
- ...(input.amiType !== undefined && input.amiType !== null && { amiType: input.amiType }),
225
- ...(input.capacityType !== undefined && input.capacityType !== null && { capacityType: input.capacityType }),
212
+ ...(input.amiType != null && { amiType: input.amiType }),
213
+ ...(input.capacityType != null && { capacityType: input.capacityType }),
226
214
  clientRequestToken: (_a = input.clientRequestToken) !== null && _a !== void 0 ? _a : (0, uuid_1.v4)(),
227
- ...(input.diskSize !== undefined && input.diskSize !== null && { diskSize: input.diskSize }),
228
- ...(input.instanceTypes !== undefined &&
229
- input.instanceTypes !== null && {
215
+ ...(input.diskSize != null && { diskSize: input.diskSize }),
216
+ ...(input.instanceTypes != null && {
230
217
  instanceTypes: serializeAws_restJson1StringList(input.instanceTypes, context),
231
218
  }),
232
- ...(input.labels !== undefined &&
233
- input.labels !== null && { labels: serializeAws_restJson1labelsMap(input.labels, context) }),
234
- ...(input.launchTemplate !== undefined &&
235
- input.launchTemplate !== null && {
219
+ ...(input.labels != null && { labels: serializeAws_restJson1labelsMap(input.labels, context) }),
220
+ ...(input.launchTemplate != null && {
236
221
  launchTemplate: serializeAws_restJson1LaunchTemplateSpecification(input.launchTemplate, context),
237
222
  }),
238
- ...(input.nodeRole !== undefined && input.nodeRole !== null && { nodeRole: input.nodeRole }),
239
- ...(input.nodegroupName !== undefined && input.nodegroupName !== null && { nodegroupName: input.nodegroupName }),
240
- ...(input.releaseVersion !== undefined &&
241
- input.releaseVersion !== null && { releaseVersion: input.releaseVersion }),
242
- ...(input.remoteAccess !== undefined &&
243
- input.remoteAccess !== null && {
223
+ ...(input.nodeRole != null && { nodeRole: input.nodeRole }),
224
+ ...(input.nodegroupName != null && { nodegroupName: input.nodegroupName }),
225
+ ...(input.releaseVersion != null && { releaseVersion: input.releaseVersion }),
226
+ ...(input.remoteAccess != null && {
244
227
  remoteAccess: serializeAws_restJson1RemoteAccessConfig(input.remoteAccess, context),
245
228
  }),
246
- ...(input.scalingConfig !== undefined &&
247
- input.scalingConfig !== null && {
229
+ ...(input.scalingConfig != null && {
248
230
  scalingConfig: serializeAws_restJson1NodegroupScalingConfig(input.scalingConfig, context),
249
231
  }),
250
- ...(input.subnets !== undefined &&
251
- input.subnets !== null && { subnets: serializeAws_restJson1StringList(input.subnets, context) }),
252
- ...(input.tags !== undefined && input.tags !== null && { tags: serializeAws_restJson1TagMap(input.tags, context) }),
253
- ...(input.taints !== undefined &&
254
- input.taints !== null && { taints: serializeAws_restJson1taintsList(input.taints, context) }),
255
- ...(input.updateConfig !== undefined &&
256
- input.updateConfig !== null && {
232
+ ...(input.subnets != null && { subnets: serializeAws_restJson1StringList(input.subnets, context) }),
233
+ ...(input.tags != null && { tags: serializeAws_restJson1TagMap(input.tags, context) }),
234
+ ...(input.taints != null && { taints: serializeAws_restJson1taintsList(input.taints, context) }),
235
+ ...(input.updateConfig != null && {
257
236
  updateConfig: serializeAws_restJson1NodegroupUpdateConfig(input.updateConfig, context),
258
237
  }),
259
- ...(input.version !== undefined && input.version !== null && { version: input.version }),
238
+ ...(input.version != null && { version: input.version }),
260
239
  });
261
240
  return new protocol_http_1.HttpRequest({
262
241
  protocol,
@@ -578,8 +557,7 @@ const serializeAws_restJson1DescribeIdentityProviderConfigCommand = async (input
578
557
  }
579
558
  let body;
580
559
  body = JSON.stringify({
581
- ...(input.identityProviderConfig !== undefined &&
582
- input.identityProviderConfig !== null && {
560
+ ...(input.identityProviderConfig != null && {
583
561
  identityProviderConfig: serializeAws_restJson1IdentityProviderConfig(input.identityProviderConfig, context),
584
562
  }),
585
563
  });
@@ -693,8 +671,7 @@ const serializeAws_restJson1DisassociateIdentityProviderConfigCommand = async (i
693
671
  let body;
694
672
  body = JSON.stringify({
695
673
  clientRequestToken: (_a = input.clientRequestToken) !== null && _a !== void 0 ? _a : (0, uuid_1.v4)(),
696
- ...(input.identityProviderConfig !== undefined &&
697
- input.identityProviderConfig !== null && {
674
+ ...(input.identityProviderConfig != null && {
698
675
  identityProviderConfig: serializeAws_restJson1IdentityProviderConfig(input.identityProviderConfig, context),
699
676
  }),
700
677
  });
@@ -925,12 +902,11 @@ const serializeAws_restJson1RegisterClusterCommand = async (input, context) => {
925
902
  let body;
926
903
  body = JSON.stringify({
927
904
  clientRequestToken: (_a = input.clientRequestToken) !== null && _a !== void 0 ? _a : (0, uuid_1.v4)(),
928
- ...(input.connectorConfig !== undefined &&
929
- input.connectorConfig !== null && {
905
+ ...(input.connectorConfig != null && {
930
906
  connectorConfig: serializeAws_restJson1ConnectorConfigRequest(input.connectorConfig, context),
931
907
  }),
932
- ...(input.name !== undefined && input.name !== null && { name: input.name }),
933
- ...(input.tags !== undefined && input.tags !== null && { tags: serializeAws_restJson1TagMap(input.tags, context) }),
908
+ ...(input.name != null && { name: input.name }),
909
+ ...(input.tags != null && { tags: serializeAws_restJson1TagMap(input.tags, context) }),
934
910
  });
935
911
  return new protocol_http_1.HttpRequest({
936
912
  protocol,
@@ -961,7 +937,7 @@ const serializeAws_restJson1TagResourceCommand = async (input, context) => {
961
937
  }
962
938
  let body;
963
939
  body = JSON.stringify({
964
- ...(input.tags !== undefined && input.tags !== null && { tags: serializeAws_restJson1TagMap(input.tags, context) }),
940
+ ...(input.tags != null && { tags: serializeAws_restJson1TagMap(input.tags, context) }),
965
941
  });
966
942
  return new protocol_http_1.HttpRequest({
967
943
  protocol,
@@ -1034,12 +1010,10 @@ const serializeAws_restJson1UpdateAddonCommand = async (input, context) => {
1034
1010
  }
1035
1011
  let body;
1036
1012
  body = JSON.stringify({
1037
- ...(input.addonVersion !== undefined && input.addonVersion !== null && { addonVersion: input.addonVersion }),
1013
+ ...(input.addonVersion != null && { addonVersion: input.addonVersion }),
1038
1014
  clientRequestToken: (_a = input.clientRequestToken) !== null && _a !== void 0 ? _a : (0, uuid_1.v4)(),
1039
- ...(input.resolveConflicts !== undefined &&
1040
- input.resolveConflicts !== null && { resolveConflicts: input.resolveConflicts }),
1041
- ...(input.serviceAccountRoleArn !== undefined &&
1042
- input.serviceAccountRoleArn !== null && { serviceAccountRoleArn: input.serviceAccountRoleArn }),
1015
+ ...(input.resolveConflicts != null && { resolveConflicts: input.resolveConflicts }),
1016
+ ...(input.serviceAccountRoleArn != null && { serviceAccountRoleArn: input.serviceAccountRoleArn }),
1043
1017
  });
1044
1018
  return new protocol_http_1.HttpRequest({
1045
1019
  protocol,
@@ -1072,10 +1046,8 @@ const serializeAws_restJson1UpdateClusterConfigCommand = async (input, context)
1072
1046
  let body;
1073
1047
  body = JSON.stringify({
1074
1048
  clientRequestToken: (_a = input.clientRequestToken) !== null && _a !== void 0 ? _a : (0, uuid_1.v4)(),
1075
- ...(input.logging !== undefined &&
1076
- input.logging !== null && { logging: serializeAws_restJson1Logging(input.logging, context) }),
1077
- ...(input.resourcesVpcConfig !== undefined &&
1078
- input.resourcesVpcConfig !== null && {
1049
+ ...(input.logging != null && { logging: serializeAws_restJson1Logging(input.logging, context) }),
1050
+ ...(input.resourcesVpcConfig != null && {
1079
1051
  resourcesVpcConfig: serializeAws_restJson1VpcConfigRequest(input.resourcesVpcConfig, context),
1080
1052
  }),
1081
1053
  });
@@ -1110,7 +1082,7 @@ const serializeAws_restJson1UpdateClusterVersionCommand = async (input, context)
1110
1082
  let body;
1111
1083
  body = JSON.stringify({
1112
1084
  clientRequestToken: (_a = input.clientRequestToken) !== null && _a !== void 0 ? _a : (0, uuid_1.v4)(),
1113
- ...(input.version !== undefined && input.version !== null && { version: input.version }),
1085
+ ...(input.version != null && { version: input.version }),
1114
1086
  });
1115
1087
  return new protocol_http_1.HttpRequest({
1116
1088
  protocol,
@@ -1154,16 +1126,12 @@ const serializeAws_restJson1UpdateNodegroupConfigCommand = async (input, context
1154
1126
  let body;
1155
1127
  body = JSON.stringify({
1156
1128
  clientRequestToken: (_a = input.clientRequestToken) !== null && _a !== void 0 ? _a : (0, uuid_1.v4)(),
1157
- ...(input.labels !== undefined &&
1158
- input.labels !== null && { labels: serializeAws_restJson1UpdateLabelsPayload(input.labels, context) }),
1159
- ...(input.scalingConfig !== undefined &&
1160
- input.scalingConfig !== null && {
1129
+ ...(input.labels != null && { labels: serializeAws_restJson1UpdateLabelsPayload(input.labels, context) }),
1130
+ ...(input.scalingConfig != null && {
1161
1131
  scalingConfig: serializeAws_restJson1NodegroupScalingConfig(input.scalingConfig, context),
1162
1132
  }),
1163
- ...(input.taints !== undefined &&
1164
- input.taints !== null && { taints: serializeAws_restJson1UpdateTaintsPayload(input.taints, context) }),
1165
- ...(input.updateConfig !== undefined &&
1166
- input.updateConfig !== null && {
1133
+ ...(input.taints != null && { taints: serializeAws_restJson1UpdateTaintsPayload(input.taints, context) }),
1134
+ ...(input.updateConfig != null && {
1167
1135
  updateConfig: serializeAws_restJson1NodegroupUpdateConfig(input.updateConfig, context),
1168
1136
  }),
1169
1137
  });
@@ -1209,14 +1177,12 @@ const serializeAws_restJson1UpdateNodegroupVersionCommand = async (input, contex
1209
1177
  let body;
1210
1178
  body = JSON.stringify({
1211
1179
  clientRequestToken: (_a = input.clientRequestToken) !== null && _a !== void 0 ? _a : (0, uuid_1.v4)(),
1212
- ...(input.force !== undefined && input.force !== null && { force: input.force }),
1213
- ...(input.launchTemplate !== undefined &&
1214
- input.launchTemplate !== null && {
1180
+ ...(input.force != null && { force: input.force }),
1181
+ ...(input.launchTemplate != null && {
1215
1182
  launchTemplate: serializeAws_restJson1LaunchTemplateSpecification(input.launchTemplate, context),
1216
1183
  }),
1217
- ...(input.releaseVersion !== undefined &&
1218
- input.releaseVersion !== null && { releaseVersion: input.releaseVersion }),
1219
- ...(input.version !== undefined && input.version !== null && { version: input.version }),
1184
+ ...(input.releaseVersion != null && { releaseVersion: input.releaseVersion }),
1185
+ ...(input.version != null && { version: input.version }),
1220
1186
  });
1221
1187
  return new protocol_http_1.HttpRequest({
1222
1188
  protocol,
@@ -1250,8 +1216,7 @@ const deserializeAws_restJson1AssociateEncryptionConfigCommandError = async (out
1250
1216
  body: await parseBody(output.body, context),
1251
1217
  };
1252
1218
  let response;
1253
- let errorCode = "UnknownError";
1254
- errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1219
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1255
1220
  switch (errorCode) {
1256
1221
  case "ClientException":
1257
1222
  case "com.amazonaws.eks#ClientException":
@@ -1273,10 +1238,12 @@ const deserializeAws_restJson1AssociateEncryptionConfigCommandError = async (out
1273
1238
  throw await deserializeAws_restJson1ServerExceptionResponse(parsedOutput, context);
1274
1239
  default:
1275
1240
  const parsedBody = parsedOutput.body;
1241
+ const $metadata = deserializeMetadata(output);
1242
+ const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
1276
1243
  response = new EKSServiceException_1.EKSServiceException({
1277
- name: parsedBody.code || parsedBody.Code || errorCode,
1244
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
1278
1245
  $fault: "client",
1279
- $metadata: deserializeMetadata(output),
1246
+ $metadata,
1280
1247
  });
1281
1248
  throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
1282
1249
  }
@@ -1306,8 +1273,7 @@ const deserializeAws_restJson1AssociateIdentityProviderConfigCommandError = asyn
1306
1273
  body: await parseBody(output.body, context),
1307
1274
  };
1308
1275
  let response;
1309
- let errorCode = "UnknownError";
1310
- errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1276
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1311
1277
  switch (errorCode) {
1312
1278
  case "ClientException":
1313
1279
  case "com.amazonaws.eks#ClientException":
@@ -1329,10 +1295,12 @@ const deserializeAws_restJson1AssociateIdentityProviderConfigCommandError = asyn
1329
1295
  throw await deserializeAws_restJson1ServerExceptionResponse(parsedOutput, context);
1330
1296
  default:
1331
1297
  const parsedBody = parsedOutput.body;
1298
+ const $metadata = deserializeMetadata(output);
1299
+ const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
1332
1300
  response = new EKSServiceException_1.EKSServiceException({
1333
- name: parsedBody.code || parsedBody.Code || errorCode,
1301
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
1334
1302
  $fault: "client",
1335
- $metadata: deserializeMetadata(output),
1303
+ $metadata,
1336
1304
  });
1337
1305
  throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
1338
1306
  }
@@ -1358,8 +1326,7 @@ const deserializeAws_restJson1CreateAddonCommandError = async (output, context)
1358
1326
  body: await parseBody(output.body, context),
1359
1327
  };
1360
1328
  let response;
1361
- let errorCode = "UnknownError";
1362
- errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1329
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1363
1330
  switch (errorCode) {
1364
1331
  case "ClientException":
1365
1332
  case "com.amazonaws.eks#ClientException":
@@ -1381,10 +1348,12 @@ const deserializeAws_restJson1CreateAddonCommandError = async (output, context)
1381
1348
  throw await deserializeAws_restJson1ServerExceptionResponse(parsedOutput, context);
1382
1349
  default:
1383
1350
  const parsedBody = parsedOutput.body;
1351
+ const $metadata = deserializeMetadata(output);
1352
+ const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
1384
1353
  response = new EKSServiceException_1.EKSServiceException({
1385
- name: parsedBody.code || parsedBody.Code || errorCode,
1354
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
1386
1355
  $fault: "client",
1387
- $metadata: deserializeMetadata(output),
1356
+ $metadata,
1388
1357
  });
1389
1358
  throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
1390
1359
  }
@@ -1410,8 +1379,7 @@ const deserializeAws_restJson1CreateClusterCommandError = async (output, context
1410
1379
  body: await parseBody(output.body, context),
1411
1380
  };
1412
1381
  let response;
1413
- let errorCode = "UnknownError";
1414
- errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1382
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1415
1383
  switch (errorCode) {
1416
1384
  case "ClientException":
1417
1385
  case "com.amazonaws.eks#ClientException":
@@ -1436,10 +1404,12 @@ const deserializeAws_restJson1CreateClusterCommandError = async (output, context
1436
1404
  throw await deserializeAws_restJson1UnsupportedAvailabilityZoneExceptionResponse(parsedOutput, context);
1437
1405
  default:
1438
1406
  const parsedBody = parsedOutput.body;
1407
+ const $metadata = deserializeMetadata(output);
1408
+ const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
1439
1409
  response = new EKSServiceException_1.EKSServiceException({
1440
- name: parsedBody.code || parsedBody.Code || errorCode,
1410
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
1441
1411
  $fault: "client",
1442
- $metadata: deserializeMetadata(output),
1412
+ $metadata,
1443
1413
  });
1444
1414
  throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
1445
1415
  }
@@ -1465,8 +1435,7 @@ const deserializeAws_restJson1CreateFargateProfileCommandError = async (output,
1465
1435
  body: await parseBody(output.body, context),
1466
1436
  };
1467
1437
  let response;
1468
- let errorCode = "UnknownError";
1469
- errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1438
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1470
1439
  switch (errorCode) {
1471
1440
  case "ClientException":
1472
1441
  case "com.amazonaws.eks#ClientException":
@@ -1488,10 +1457,12 @@ const deserializeAws_restJson1CreateFargateProfileCommandError = async (output,
1488
1457
  throw await deserializeAws_restJson1UnsupportedAvailabilityZoneExceptionResponse(parsedOutput, context);
1489
1458
  default:
1490
1459
  const parsedBody = parsedOutput.body;
1460
+ const $metadata = deserializeMetadata(output);
1461
+ const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
1491
1462
  response = new EKSServiceException_1.EKSServiceException({
1492
- name: parsedBody.code || parsedBody.Code || errorCode,
1463
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
1493
1464
  $fault: "client",
1494
- $metadata: deserializeMetadata(output),
1465
+ $metadata,
1495
1466
  });
1496
1467
  throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
1497
1468
  }
@@ -1517,8 +1488,7 @@ const deserializeAws_restJson1CreateNodegroupCommandError = async (output, conte
1517
1488
  body: await parseBody(output.body, context),
1518
1489
  };
1519
1490
  let response;
1520
- let errorCode = "UnknownError";
1521
- errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1491
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1522
1492
  switch (errorCode) {
1523
1493
  case "ClientException":
1524
1494
  case "com.amazonaws.eks#ClientException":
@@ -1543,10 +1513,12 @@ const deserializeAws_restJson1CreateNodegroupCommandError = async (output, conte
1543
1513
  throw await deserializeAws_restJson1ServiceUnavailableExceptionResponse(parsedOutput, context);
1544
1514
  default:
1545
1515
  const parsedBody = parsedOutput.body;
1516
+ const $metadata = deserializeMetadata(output);
1517
+ const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
1546
1518
  response = new EKSServiceException_1.EKSServiceException({
1547
- name: parsedBody.code || parsedBody.Code || errorCode,
1519
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
1548
1520
  $fault: "client",
1549
- $metadata: deserializeMetadata(output),
1521
+ $metadata,
1550
1522
  });
1551
1523
  throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
1552
1524
  }
@@ -1572,8 +1544,7 @@ const deserializeAws_restJson1DeleteAddonCommandError = async (output, context)
1572
1544
  body: await parseBody(output.body, context),
1573
1545
  };
1574
1546
  let response;
1575
- let errorCode = "UnknownError";
1576
- errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1547
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1577
1548
  switch (errorCode) {
1578
1549
  case "ClientException":
1579
1550
  case "com.amazonaws.eks#ClientException":
@@ -1592,10 +1563,12 @@ const deserializeAws_restJson1DeleteAddonCommandError = async (output, context)
1592
1563
  throw await deserializeAws_restJson1ServerExceptionResponse(parsedOutput, context);
1593
1564
  default:
1594
1565
  const parsedBody = parsedOutput.body;
1566
+ const $metadata = deserializeMetadata(output);
1567
+ const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
1595
1568
  response = new EKSServiceException_1.EKSServiceException({
1596
- name: parsedBody.code || parsedBody.Code || errorCode,
1569
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
1597
1570
  $fault: "client",
1598
- $metadata: deserializeMetadata(output),
1571
+ $metadata,
1599
1572
  });
1600
1573
  throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
1601
1574
  }
@@ -1621,8 +1594,7 @@ const deserializeAws_restJson1DeleteClusterCommandError = async (output, context
1621
1594
  body: await parseBody(output.body, context),
1622
1595
  };
1623
1596
  let response;
1624
- let errorCode = "UnknownError";
1625
- errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1597
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1626
1598
  switch (errorCode) {
1627
1599
  case "ClientException":
1628
1600
  case "com.amazonaws.eks#ClientException":
@@ -1641,10 +1613,12 @@ const deserializeAws_restJson1DeleteClusterCommandError = async (output, context
1641
1613
  throw await deserializeAws_restJson1ServiceUnavailableExceptionResponse(parsedOutput, context);
1642
1614
  default:
1643
1615
  const parsedBody = parsedOutput.body;
1616
+ const $metadata = deserializeMetadata(output);
1617
+ const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
1644
1618
  response = new EKSServiceException_1.EKSServiceException({
1645
- name: parsedBody.code || parsedBody.Code || errorCode,
1619
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
1646
1620
  $fault: "client",
1647
- $metadata: deserializeMetadata(output),
1621
+ $metadata,
1648
1622
  });
1649
1623
  throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
1650
1624
  }
@@ -1670,8 +1644,7 @@ const deserializeAws_restJson1DeleteFargateProfileCommandError = async (output,
1670
1644
  body: await parseBody(output.body, context),
1671
1645
  };
1672
1646
  let response;
1673
- let errorCode = "UnknownError";
1674
- errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1647
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1675
1648
  switch (errorCode) {
1676
1649
  case "ClientException":
1677
1650
  case "com.amazonaws.eks#ClientException":
@@ -1687,10 +1660,12 @@ const deserializeAws_restJson1DeleteFargateProfileCommandError = async (output,
1687
1660
  throw await deserializeAws_restJson1ServerExceptionResponse(parsedOutput, context);
1688
1661
  default:
1689
1662
  const parsedBody = parsedOutput.body;
1663
+ const $metadata = deserializeMetadata(output);
1664
+ const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
1690
1665
  response = new EKSServiceException_1.EKSServiceException({
1691
- name: parsedBody.code || parsedBody.Code || errorCode,
1666
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
1692
1667
  $fault: "client",
1693
- $metadata: deserializeMetadata(output),
1668
+ $metadata,
1694
1669
  });
1695
1670
  throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
1696
1671
  }
@@ -1716,8 +1691,7 @@ const deserializeAws_restJson1DeleteNodegroupCommandError = async (output, conte
1716
1691
  body: await parseBody(output.body, context),
1717
1692
  };
1718
1693
  let response;
1719
- let errorCode = "UnknownError";
1720
- errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1694
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1721
1695
  switch (errorCode) {
1722
1696
  case "ClientException":
1723
1697
  case "com.amazonaws.eks#ClientException":
@@ -1739,10 +1713,12 @@ const deserializeAws_restJson1DeleteNodegroupCommandError = async (output, conte
1739
1713
  throw await deserializeAws_restJson1ServiceUnavailableExceptionResponse(parsedOutput, context);
1740
1714
  default:
1741
1715
  const parsedBody = parsedOutput.body;
1716
+ const $metadata = deserializeMetadata(output);
1717
+ const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
1742
1718
  response = new EKSServiceException_1.EKSServiceException({
1743
- name: parsedBody.code || parsedBody.Code || errorCode,
1719
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
1744
1720
  $fault: "client",
1745
- $metadata: deserializeMetadata(output),
1721
+ $metadata,
1746
1722
  });
1747
1723
  throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
1748
1724
  }
@@ -1768,8 +1744,7 @@ const deserializeAws_restJson1DeregisterClusterCommandError = async (output, con
1768
1744
  body: await parseBody(output.body, context),
1769
1745
  };
1770
1746
  let response;
1771
- let errorCode = "UnknownError";
1772
- errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1747
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1773
1748
  switch (errorCode) {
1774
1749
  case "AccessDeniedException":
1775
1750
  case "com.amazonaws.eks#AccessDeniedException":
@@ -1791,10 +1766,12 @@ const deserializeAws_restJson1DeregisterClusterCommandError = async (output, con
1791
1766
  throw await deserializeAws_restJson1ServiceUnavailableExceptionResponse(parsedOutput, context);
1792
1767
  default:
1793
1768
  const parsedBody = parsedOutput.body;
1769
+ const $metadata = deserializeMetadata(output);
1770
+ const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
1794
1771
  response = new EKSServiceException_1.EKSServiceException({
1795
- name: parsedBody.code || parsedBody.Code || errorCode,
1772
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
1796
1773
  $fault: "client",
1797
- $metadata: deserializeMetadata(output),
1774
+ $metadata,
1798
1775
  });
1799
1776
  throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
1800
1777
  }
@@ -1820,8 +1797,7 @@ const deserializeAws_restJson1DescribeAddonCommandError = async (output, context
1820
1797
  body: await parseBody(output.body, context),
1821
1798
  };
1822
1799
  let response;
1823
- let errorCode = "UnknownError";
1824
- errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1800
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1825
1801
  switch (errorCode) {
1826
1802
  case "ClientException":
1827
1803
  case "com.amazonaws.eks#ClientException":
@@ -1840,10 +1816,12 @@ const deserializeAws_restJson1DescribeAddonCommandError = async (output, context
1840
1816
  throw await deserializeAws_restJson1ServerExceptionResponse(parsedOutput, context);
1841
1817
  default:
1842
1818
  const parsedBody = parsedOutput.body;
1819
+ const $metadata = deserializeMetadata(output);
1820
+ const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
1843
1821
  response = new EKSServiceException_1.EKSServiceException({
1844
- name: parsedBody.code || parsedBody.Code || errorCode,
1822
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
1845
1823
  $fault: "client",
1846
- $metadata: deserializeMetadata(output),
1824
+ $metadata,
1847
1825
  });
1848
1826
  throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
1849
1827
  }
@@ -1873,8 +1851,7 @@ const deserializeAws_restJson1DescribeAddonVersionsCommandError = async (output,
1873
1851
  body: await parseBody(output.body, context),
1874
1852
  };
1875
1853
  let response;
1876
- let errorCode = "UnknownError";
1877
- errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1854
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1878
1855
  switch (errorCode) {
1879
1856
  case "InvalidParameterException":
1880
1857
  case "com.amazonaws.eks#InvalidParameterException":
@@ -1887,10 +1864,12 @@ const deserializeAws_restJson1DescribeAddonVersionsCommandError = async (output,
1887
1864
  throw await deserializeAws_restJson1ServerExceptionResponse(parsedOutput, context);
1888
1865
  default:
1889
1866
  const parsedBody = parsedOutput.body;
1867
+ const $metadata = deserializeMetadata(output);
1868
+ const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
1890
1869
  response = new EKSServiceException_1.EKSServiceException({
1891
- name: parsedBody.code || parsedBody.Code || errorCode,
1870
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
1892
1871
  $fault: "client",
1893
- $metadata: deserializeMetadata(output),
1872
+ $metadata,
1894
1873
  });
1895
1874
  throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
1896
1875
  }
@@ -1916,8 +1895,7 @@ const deserializeAws_restJson1DescribeClusterCommandError = async (output, conte
1916
1895
  body: await parseBody(output.body, context),
1917
1896
  };
1918
1897
  let response;
1919
- let errorCode = "UnknownError";
1920
- errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1898
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1921
1899
  switch (errorCode) {
1922
1900
  case "ClientException":
1923
1901
  case "com.amazonaws.eks#ClientException":
@@ -1933,10 +1911,12 @@ const deserializeAws_restJson1DescribeClusterCommandError = async (output, conte
1933
1911
  throw await deserializeAws_restJson1ServiceUnavailableExceptionResponse(parsedOutput, context);
1934
1912
  default:
1935
1913
  const parsedBody = parsedOutput.body;
1914
+ const $metadata = deserializeMetadata(output);
1915
+ const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
1936
1916
  response = new EKSServiceException_1.EKSServiceException({
1937
- name: parsedBody.code || parsedBody.Code || errorCode,
1917
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
1938
1918
  $fault: "client",
1939
- $metadata: deserializeMetadata(output),
1919
+ $metadata,
1940
1920
  });
1941
1921
  throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
1942
1922
  }
@@ -1962,8 +1942,7 @@ const deserializeAws_restJson1DescribeFargateProfileCommandError = async (output
1962
1942
  body: await parseBody(output.body, context),
1963
1943
  };
1964
1944
  let response;
1965
- let errorCode = "UnknownError";
1966
- errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1945
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1967
1946
  switch (errorCode) {
1968
1947
  case "ClientException":
1969
1948
  case "com.amazonaws.eks#ClientException":
@@ -1979,10 +1958,12 @@ const deserializeAws_restJson1DescribeFargateProfileCommandError = async (output
1979
1958
  throw await deserializeAws_restJson1ServerExceptionResponse(parsedOutput, context);
1980
1959
  default:
1981
1960
  const parsedBody = parsedOutput.body;
1961
+ const $metadata = deserializeMetadata(output);
1962
+ const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
1982
1963
  response = new EKSServiceException_1.EKSServiceException({
1983
- name: parsedBody.code || parsedBody.Code || errorCode,
1964
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
1984
1965
  $fault: "client",
1985
- $metadata: deserializeMetadata(output),
1966
+ $metadata,
1986
1967
  });
1987
1968
  throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
1988
1969
  }
@@ -2008,8 +1989,7 @@ const deserializeAws_restJson1DescribeIdentityProviderConfigCommandError = async
2008
1989
  body: await parseBody(output.body, context),
2009
1990
  };
2010
1991
  let response;
2011
- let errorCode = "UnknownError";
2012
- errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1992
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2013
1993
  switch (errorCode) {
2014
1994
  case "ClientException":
2015
1995
  case "com.amazonaws.eks#ClientException":
@@ -2028,10 +2008,12 @@ const deserializeAws_restJson1DescribeIdentityProviderConfigCommandError = async
2028
2008
  throw await deserializeAws_restJson1ServiceUnavailableExceptionResponse(parsedOutput, context);
2029
2009
  default:
2030
2010
  const parsedBody = parsedOutput.body;
2011
+ const $metadata = deserializeMetadata(output);
2012
+ const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
2031
2013
  response = new EKSServiceException_1.EKSServiceException({
2032
- name: parsedBody.code || parsedBody.Code || errorCode,
2014
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
2033
2015
  $fault: "client",
2034
- $metadata: deserializeMetadata(output),
2016
+ $metadata,
2035
2017
  });
2036
2018
  throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
2037
2019
  }
@@ -2057,8 +2039,7 @@ const deserializeAws_restJson1DescribeNodegroupCommandError = async (output, con
2057
2039
  body: await parseBody(output.body, context),
2058
2040
  };
2059
2041
  let response;
2060
- let errorCode = "UnknownError";
2061
- errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2042
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2062
2043
  switch (errorCode) {
2063
2044
  case "ClientException":
2064
2045
  case "com.amazonaws.eks#ClientException":
@@ -2077,10 +2058,12 @@ const deserializeAws_restJson1DescribeNodegroupCommandError = async (output, con
2077
2058
  throw await deserializeAws_restJson1ServiceUnavailableExceptionResponse(parsedOutput, context);
2078
2059
  default:
2079
2060
  const parsedBody = parsedOutput.body;
2061
+ const $metadata = deserializeMetadata(output);
2062
+ const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
2080
2063
  response = new EKSServiceException_1.EKSServiceException({
2081
- name: parsedBody.code || parsedBody.Code || errorCode,
2064
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
2082
2065
  $fault: "client",
2083
- $metadata: deserializeMetadata(output),
2066
+ $metadata,
2084
2067
  });
2085
2068
  throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
2086
2069
  }
@@ -2106,8 +2089,7 @@ const deserializeAws_restJson1DescribeUpdateCommandError = async (output, contex
2106
2089
  body: await parseBody(output.body, context),
2107
2090
  };
2108
2091
  let response;
2109
- let errorCode = "UnknownError";
2110
- errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2092
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2111
2093
  switch (errorCode) {
2112
2094
  case "ClientException":
2113
2095
  case "com.amazonaws.eks#ClientException":
@@ -2123,10 +2105,12 @@ const deserializeAws_restJson1DescribeUpdateCommandError = async (output, contex
2123
2105
  throw await deserializeAws_restJson1ServerExceptionResponse(parsedOutput, context);
2124
2106
  default:
2125
2107
  const parsedBody = parsedOutput.body;
2108
+ const $metadata = deserializeMetadata(output);
2109
+ const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
2126
2110
  response = new EKSServiceException_1.EKSServiceException({
2127
- name: parsedBody.code || parsedBody.Code || errorCode,
2111
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
2128
2112
  $fault: "client",
2129
- $metadata: deserializeMetadata(output),
2113
+ $metadata,
2130
2114
  });
2131
2115
  throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
2132
2116
  }
@@ -2152,8 +2136,7 @@ const deserializeAws_restJson1DisassociateIdentityProviderConfigCommandError = a
2152
2136
  body: await parseBody(output.body, context),
2153
2137
  };
2154
2138
  let response;
2155
- let errorCode = "UnknownError";
2156
- errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2139
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2157
2140
  switch (errorCode) {
2158
2141
  case "ClientException":
2159
2142
  case "com.amazonaws.eks#ClientException":
@@ -2175,10 +2158,12 @@ const deserializeAws_restJson1DisassociateIdentityProviderConfigCommandError = a
2175
2158
  throw await deserializeAws_restJson1ServerExceptionResponse(parsedOutput, context);
2176
2159
  default:
2177
2160
  const parsedBody = parsedOutput.body;
2161
+ const $metadata = deserializeMetadata(output);
2162
+ const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
2178
2163
  response = new EKSServiceException_1.EKSServiceException({
2179
- name: parsedBody.code || parsedBody.Code || errorCode,
2164
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
2180
2165
  $fault: "client",
2181
- $metadata: deserializeMetadata(output),
2166
+ $metadata,
2182
2167
  });
2183
2168
  throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
2184
2169
  }
@@ -2208,8 +2193,7 @@ const deserializeAws_restJson1ListAddonsCommandError = async (output, context) =
2208
2193
  body: await parseBody(output.body, context),
2209
2194
  };
2210
2195
  let response;
2211
- let errorCode = "UnknownError";
2212
- errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2196
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2213
2197
  switch (errorCode) {
2214
2198
  case "ClientException":
2215
2199
  case "com.amazonaws.eks#ClientException":
@@ -2228,10 +2212,12 @@ const deserializeAws_restJson1ListAddonsCommandError = async (output, context) =
2228
2212
  throw await deserializeAws_restJson1ServerExceptionResponse(parsedOutput, context);
2229
2213
  default:
2230
2214
  const parsedBody = parsedOutput.body;
2215
+ const $metadata = deserializeMetadata(output);
2216
+ const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
2231
2217
  response = new EKSServiceException_1.EKSServiceException({
2232
- name: parsedBody.code || parsedBody.Code || errorCode,
2218
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
2233
2219
  $fault: "client",
2234
- $metadata: deserializeMetadata(output),
2220
+ $metadata,
2235
2221
  });
2236
2222
  throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
2237
2223
  }
@@ -2261,8 +2247,7 @@ const deserializeAws_restJson1ListClustersCommandError = async (output, context)
2261
2247
  body: await parseBody(output.body, context),
2262
2248
  };
2263
2249
  let response;
2264
- let errorCode = "UnknownError";
2265
- errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2250
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2266
2251
  switch (errorCode) {
2267
2252
  case "ClientException":
2268
2253
  case "com.amazonaws.eks#ClientException":
@@ -2278,10 +2263,12 @@ const deserializeAws_restJson1ListClustersCommandError = async (output, context)
2278
2263
  throw await deserializeAws_restJson1ServiceUnavailableExceptionResponse(parsedOutput, context);
2279
2264
  default:
2280
2265
  const parsedBody = parsedOutput.body;
2266
+ const $metadata = deserializeMetadata(output);
2267
+ const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
2281
2268
  response = new EKSServiceException_1.EKSServiceException({
2282
- name: parsedBody.code || parsedBody.Code || errorCode,
2269
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
2283
2270
  $fault: "client",
2284
- $metadata: deserializeMetadata(output),
2271
+ $metadata,
2285
2272
  });
2286
2273
  throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
2287
2274
  }
@@ -2311,8 +2298,7 @@ const deserializeAws_restJson1ListFargateProfilesCommandError = async (output, c
2311
2298
  body: await parseBody(output.body, context),
2312
2299
  };
2313
2300
  let response;
2314
- let errorCode = "UnknownError";
2315
- errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2301
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2316
2302
  switch (errorCode) {
2317
2303
  case "ClientException":
2318
2304
  case "com.amazonaws.eks#ClientException":
@@ -2328,10 +2314,12 @@ const deserializeAws_restJson1ListFargateProfilesCommandError = async (output, c
2328
2314
  throw await deserializeAws_restJson1ServerExceptionResponse(parsedOutput, context);
2329
2315
  default:
2330
2316
  const parsedBody = parsedOutput.body;
2317
+ const $metadata = deserializeMetadata(output);
2318
+ const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
2331
2319
  response = new EKSServiceException_1.EKSServiceException({
2332
- name: parsedBody.code || parsedBody.Code || errorCode,
2320
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
2333
2321
  $fault: "client",
2334
- $metadata: deserializeMetadata(output),
2322
+ $metadata,
2335
2323
  });
2336
2324
  throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
2337
2325
  }
@@ -2361,8 +2349,7 @@ const deserializeAws_restJson1ListIdentityProviderConfigsCommandError = async (o
2361
2349
  body: await parseBody(output.body, context),
2362
2350
  };
2363
2351
  let response;
2364
- let errorCode = "UnknownError";
2365
- errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2352
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2366
2353
  switch (errorCode) {
2367
2354
  case "ClientException":
2368
2355
  case "com.amazonaws.eks#ClientException":
@@ -2381,10 +2368,12 @@ const deserializeAws_restJson1ListIdentityProviderConfigsCommandError = async (o
2381
2368
  throw await deserializeAws_restJson1ServiceUnavailableExceptionResponse(parsedOutput, context);
2382
2369
  default:
2383
2370
  const parsedBody = parsedOutput.body;
2371
+ const $metadata = deserializeMetadata(output);
2372
+ const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
2384
2373
  response = new EKSServiceException_1.EKSServiceException({
2385
- name: parsedBody.code || parsedBody.Code || errorCode,
2374
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
2386
2375
  $fault: "client",
2387
- $metadata: deserializeMetadata(output),
2376
+ $metadata,
2388
2377
  });
2389
2378
  throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
2390
2379
  }
@@ -2414,8 +2403,7 @@ const deserializeAws_restJson1ListNodegroupsCommandError = async (output, contex
2414
2403
  body: await parseBody(output.body, context),
2415
2404
  };
2416
2405
  let response;
2417
- let errorCode = "UnknownError";
2418
- errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2406
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2419
2407
  switch (errorCode) {
2420
2408
  case "ClientException":
2421
2409
  case "com.amazonaws.eks#ClientException":
@@ -2434,10 +2422,12 @@ const deserializeAws_restJson1ListNodegroupsCommandError = async (output, contex
2434
2422
  throw await deserializeAws_restJson1ServiceUnavailableExceptionResponse(parsedOutput, context);
2435
2423
  default:
2436
2424
  const parsedBody = parsedOutput.body;
2425
+ const $metadata = deserializeMetadata(output);
2426
+ const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
2437
2427
  response = new EKSServiceException_1.EKSServiceException({
2438
- name: parsedBody.code || parsedBody.Code || errorCode,
2428
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
2439
2429
  $fault: "client",
2440
- $metadata: deserializeMetadata(output),
2430
+ $metadata,
2441
2431
  });
2442
2432
  throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
2443
2433
  }
@@ -2463,8 +2453,7 @@ const deserializeAws_restJson1ListTagsForResourceCommandError = async (output, c
2463
2453
  body: await parseBody(output.body, context),
2464
2454
  };
2465
2455
  let response;
2466
- let errorCode = "UnknownError";
2467
- errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2456
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2468
2457
  switch (errorCode) {
2469
2458
  case "BadRequestException":
2470
2459
  case "com.amazonaws.eks#BadRequestException":
@@ -2474,10 +2463,12 @@ const deserializeAws_restJson1ListTagsForResourceCommandError = async (output, c
2474
2463
  throw await deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context);
2475
2464
  default:
2476
2465
  const parsedBody = parsedOutput.body;
2466
+ const $metadata = deserializeMetadata(output);
2467
+ const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
2477
2468
  response = new EKSServiceException_1.EKSServiceException({
2478
- name: parsedBody.code || parsedBody.Code || errorCode,
2469
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
2479
2470
  $fault: "client",
2480
- $metadata: deserializeMetadata(output),
2471
+ $metadata,
2481
2472
  });
2482
2473
  throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
2483
2474
  }
@@ -2507,8 +2498,7 @@ const deserializeAws_restJson1ListUpdatesCommandError = async (output, context)
2507
2498
  body: await parseBody(output.body, context),
2508
2499
  };
2509
2500
  let response;
2510
- let errorCode = "UnknownError";
2511
- errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2501
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2512
2502
  switch (errorCode) {
2513
2503
  case "ClientException":
2514
2504
  case "com.amazonaws.eks#ClientException":
@@ -2524,10 +2514,12 @@ const deserializeAws_restJson1ListUpdatesCommandError = async (output, context)
2524
2514
  throw await deserializeAws_restJson1ServerExceptionResponse(parsedOutput, context);
2525
2515
  default:
2526
2516
  const parsedBody = parsedOutput.body;
2517
+ const $metadata = deserializeMetadata(output);
2518
+ const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
2527
2519
  response = new EKSServiceException_1.EKSServiceException({
2528
- name: parsedBody.code || parsedBody.Code || errorCode,
2520
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
2529
2521
  $fault: "client",
2530
- $metadata: deserializeMetadata(output),
2522
+ $metadata,
2531
2523
  });
2532
2524
  throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
2533
2525
  }
@@ -2553,8 +2545,7 @@ const deserializeAws_restJson1RegisterClusterCommandError = async (output, conte
2553
2545
  body: await parseBody(output.body, context),
2554
2546
  };
2555
2547
  let response;
2556
- let errorCode = "UnknownError";
2557
- errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2548
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2558
2549
  switch (errorCode) {
2559
2550
  case "AccessDeniedException":
2560
2551
  case "com.amazonaws.eks#AccessDeniedException":
@@ -2582,10 +2573,12 @@ const deserializeAws_restJson1RegisterClusterCommandError = async (output, conte
2582
2573
  throw await deserializeAws_restJson1ServiceUnavailableExceptionResponse(parsedOutput, context);
2583
2574
  default:
2584
2575
  const parsedBody = parsedOutput.body;
2576
+ const $metadata = deserializeMetadata(output);
2577
+ const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
2585
2578
  response = new EKSServiceException_1.EKSServiceException({
2586
- name: parsedBody.code || parsedBody.Code || errorCode,
2579
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
2587
2580
  $fault: "client",
2588
- $metadata: deserializeMetadata(output),
2581
+ $metadata,
2589
2582
  });
2590
2583
  throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
2591
2584
  }
@@ -2607,8 +2600,7 @@ const deserializeAws_restJson1TagResourceCommandError = async (output, context)
2607
2600
  body: await parseBody(output.body, context),
2608
2601
  };
2609
2602
  let response;
2610
- let errorCode = "UnknownError";
2611
- errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2603
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2612
2604
  switch (errorCode) {
2613
2605
  case "BadRequestException":
2614
2606
  case "com.amazonaws.eks#BadRequestException":
@@ -2618,10 +2610,12 @@ const deserializeAws_restJson1TagResourceCommandError = async (output, context)
2618
2610
  throw await deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context);
2619
2611
  default:
2620
2612
  const parsedBody = parsedOutput.body;
2613
+ const $metadata = deserializeMetadata(output);
2614
+ const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
2621
2615
  response = new EKSServiceException_1.EKSServiceException({
2622
- name: parsedBody.code || parsedBody.Code || errorCode,
2616
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
2623
2617
  $fault: "client",
2624
- $metadata: deserializeMetadata(output),
2618
+ $metadata,
2625
2619
  });
2626
2620
  throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
2627
2621
  }
@@ -2643,8 +2637,7 @@ const deserializeAws_restJson1UntagResourceCommandError = async (output, context
2643
2637
  body: await parseBody(output.body, context),
2644
2638
  };
2645
2639
  let response;
2646
- let errorCode = "UnknownError";
2647
- errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2640
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2648
2641
  switch (errorCode) {
2649
2642
  case "BadRequestException":
2650
2643
  case "com.amazonaws.eks#BadRequestException":
@@ -2654,10 +2647,12 @@ const deserializeAws_restJson1UntagResourceCommandError = async (output, context
2654
2647
  throw await deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context);
2655
2648
  default:
2656
2649
  const parsedBody = parsedOutput.body;
2650
+ const $metadata = deserializeMetadata(output);
2651
+ const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
2657
2652
  response = new EKSServiceException_1.EKSServiceException({
2658
- name: parsedBody.code || parsedBody.Code || errorCode,
2653
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
2659
2654
  $fault: "client",
2660
- $metadata: deserializeMetadata(output),
2655
+ $metadata,
2661
2656
  });
2662
2657
  throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
2663
2658
  }
@@ -2683,8 +2678,7 @@ const deserializeAws_restJson1UpdateAddonCommandError = async (output, context)
2683
2678
  body: await parseBody(output.body, context),
2684
2679
  };
2685
2680
  let response;
2686
- let errorCode = "UnknownError";
2687
- errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2681
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2688
2682
  switch (errorCode) {
2689
2683
  case "ClientException":
2690
2684
  case "com.amazonaws.eks#ClientException":
@@ -2706,10 +2700,12 @@ const deserializeAws_restJson1UpdateAddonCommandError = async (output, context)
2706
2700
  throw await deserializeAws_restJson1ServerExceptionResponse(parsedOutput, context);
2707
2701
  default:
2708
2702
  const parsedBody = parsedOutput.body;
2703
+ const $metadata = deserializeMetadata(output);
2704
+ const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
2709
2705
  response = new EKSServiceException_1.EKSServiceException({
2710
- name: parsedBody.code || parsedBody.Code || errorCode,
2706
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
2711
2707
  $fault: "client",
2712
- $metadata: deserializeMetadata(output),
2708
+ $metadata,
2713
2709
  });
2714
2710
  throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
2715
2711
  }
@@ -2735,8 +2731,7 @@ const deserializeAws_restJson1UpdateClusterConfigCommandError = async (output, c
2735
2731
  body: await parseBody(output.body, context),
2736
2732
  };
2737
2733
  let response;
2738
- let errorCode = "UnknownError";
2739
- errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2734
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2740
2735
  switch (errorCode) {
2741
2736
  case "ClientException":
2742
2737
  case "com.amazonaws.eks#ClientException":
@@ -2758,10 +2753,12 @@ const deserializeAws_restJson1UpdateClusterConfigCommandError = async (output, c
2758
2753
  throw await deserializeAws_restJson1ServerExceptionResponse(parsedOutput, context);
2759
2754
  default:
2760
2755
  const parsedBody = parsedOutput.body;
2756
+ const $metadata = deserializeMetadata(output);
2757
+ const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
2761
2758
  response = new EKSServiceException_1.EKSServiceException({
2762
- name: parsedBody.code || parsedBody.Code || errorCode,
2759
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
2763
2760
  $fault: "client",
2764
- $metadata: deserializeMetadata(output),
2761
+ $metadata,
2765
2762
  });
2766
2763
  throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
2767
2764
  }
@@ -2787,8 +2784,7 @@ const deserializeAws_restJson1UpdateClusterVersionCommandError = async (output,
2787
2784
  body: await parseBody(output.body, context),
2788
2785
  };
2789
2786
  let response;
2790
- let errorCode = "UnknownError";
2791
- errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2787
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2792
2788
  switch (errorCode) {
2793
2789
  case "ClientException":
2794
2790
  case "com.amazonaws.eks#ClientException":
@@ -2810,10 +2806,12 @@ const deserializeAws_restJson1UpdateClusterVersionCommandError = async (output,
2810
2806
  throw await deserializeAws_restJson1ServerExceptionResponse(parsedOutput, context);
2811
2807
  default:
2812
2808
  const parsedBody = parsedOutput.body;
2809
+ const $metadata = deserializeMetadata(output);
2810
+ const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
2813
2811
  response = new EKSServiceException_1.EKSServiceException({
2814
- name: parsedBody.code || parsedBody.Code || errorCode,
2812
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
2815
2813
  $fault: "client",
2816
- $metadata: deserializeMetadata(output),
2814
+ $metadata,
2817
2815
  });
2818
2816
  throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
2819
2817
  }
@@ -2839,8 +2837,7 @@ const deserializeAws_restJson1UpdateNodegroupConfigCommandError = async (output,
2839
2837
  body: await parseBody(output.body, context),
2840
2838
  };
2841
2839
  let response;
2842
- let errorCode = "UnknownError";
2843
- errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2840
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2844
2841
  switch (errorCode) {
2845
2842
  case "ClientException":
2846
2843
  case "com.amazonaws.eks#ClientException":
@@ -2862,10 +2859,12 @@ const deserializeAws_restJson1UpdateNodegroupConfigCommandError = async (output,
2862
2859
  throw await deserializeAws_restJson1ServerExceptionResponse(parsedOutput, context);
2863
2860
  default:
2864
2861
  const parsedBody = parsedOutput.body;
2862
+ const $metadata = deserializeMetadata(output);
2863
+ const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
2865
2864
  response = new EKSServiceException_1.EKSServiceException({
2866
- name: parsedBody.code || parsedBody.Code || errorCode,
2865
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
2867
2866
  $fault: "client",
2868
- $metadata: deserializeMetadata(output),
2867
+ $metadata,
2869
2868
  });
2870
2869
  throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
2871
2870
  }
@@ -2891,8 +2890,7 @@ const deserializeAws_restJson1UpdateNodegroupVersionCommandError = async (output
2891
2890
  body: await parseBody(output.body, context),
2892
2891
  };
2893
2892
  let response;
2894
- let errorCode = "UnknownError";
2895
- errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2893
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2896
2894
  switch (errorCode) {
2897
2895
  case "ClientException":
2898
2896
  case "com.amazonaws.eks#ClientException":
@@ -2914,10 +2912,12 @@ const deserializeAws_restJson1UpdateNodegroupVersionCommandError = async (output
2914
2912
  throw await deserializeAws_restJson1ServerExceptionResponse(parsedOutput, context);
2915
2913
  default:
2916
2914
  const parsedBody = parsedOutput.body;
2915
+ const $metadata = deserializeMetadata(output);
2916
+ const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
2917
2917
  response = new EKSServiceException_1.EKSServiceException({
2918
- name: parsedBody.code || parsedBody.Code || errorCode,
2918
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
2919
2919
  $fault: "client",
2920
- $metadata: deserializeMetadata(output),
2920
+ $metadata,
2921
2921
  });
2922
2922
  throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
2923
2923
  }
@@ -3155,16 +3155,14 @@ const deserializeAws_restJson1UnsupportedAvailabilityZoneExceptionResponse = asy
3155
3155
  };
3156
3156
  const serializeAws_restJson1ConnectorConfigRequest = (input, context) => {
3157
3157
  return {
3158
- ...(input.provider !== undefined && input.provider !== null && { provider: input.provider }),
3159
- ...(input.roleArn !== undefined && input.roleArn !== null && { roleArn: input.roleArn }),
3158
+ ...(input.provider != null && { provider: input.provider }),
3159
+ ...(input.roleArn != null && { roleArn: input.roleArn }),
3160
3160
  };
3161
3161
  };
3162
3162
  const serializeAws_restJson1EncryptionConfig = (input, context) => {
3163
3163
  return {
3164
- ...(input.provider !== undefined &&
3165
- input.provider !== null && { provider: serializeAws_restJson1Provider(input.provider, context) }),
3166
- ...(input.resources !== undefined &&
3167
- input.resources !== null && { resources: serializeAws_restJson1StringList(input.resources, context) }),
3164
+ ...(input.provider != null && { provider: serializeAws_restJson1Provider(input.provider, context) }),
3165
+ ...(input.resources != null && { resources: serializeAws_restJson1StringList(input.resources, context) }),
3168
3166
  };
3169
3167
  };
3170
3168
  const serializeAws_restJson1EncryptionConfigList = (input, context) => {
@@ -3190,9 +3188,8 @@ const serializeAws_restJson1FargateProfileLabel = (input, context) => {
3190
3188
  };
3191
3189
  const serializeAws_restJson1FargateProfileSelector = (input, context) => {
3192
3190
  return {
3193
- ...(input.labels !== undefined &&
3194
- input.labels !== null && { labels: serializeAws_restJson1FargateProfileLabel(input.labels, context) }),
3195
- ...(input.namespace !== undefined && input.namespace !== null && { namespace: input.namespace }),
3191
+ ...(input.labels != null && { labels: serializeAws_restJson1FargateProfileLabel(input.labels, context) }),
3192
+ ...(input.namespace != null && { namespace: input.namespace }),
3196
3193
  };
3197
3194
  };
3198
3195
  const serializeAws_restJson1FargateProfileSelectors = (input, context) => {
@@ -3207,15 +3204,14 @@ const serializeAws_restJson1FargateProfileSelectors = (input, context) => {
3207
3204
  };
3208
3205
  const serializeAws_restJson1IdentityProviderConfig = (input, context) => {
3209
3206
  return {
3210
- ...(input.name !== undefined && input.name !== null && { name: input.name }),
3211
- ...(input.type !== undefined && input.type !== null && { type: input.type }),
3207
+ ...(input.name != null && { name: input.name }),
3208
+ ...(input.type != null && { type: input.type }),
3212
3209
  };
3213
3210
  };
3214
3211
  const serializeAws_restJson1KubernetesNetworkConfigRequest = (input, context) => {
3215
3212
  return {
3216
- ...(input.ipFamily !== undefined && input.ipFamily !== null && { ipFamily: input.ipFamily }),
3217
- ...(input.serviceIpv4Cidr !== undefined &&
3218
- input.serviceIpv4Cidr !== null && { serviceIpv4Cidr: input.serviceIpv4Cidr }),
3213
+ ...(input.ipFamily != null && { ipFamily: input.ipFamily }),
3214
+ ...(input.serviceIpv4Cidr != null && { serviceIpv4Cidr: input.serviceIpv4Cidr }),
3219
3215
  };
3220
3216
  };
3221
3217
  const serializeAws_restJson1labelsKeyList = (input, context) => {
@@ -3241,24 +3237,22 @@ const serializeAws_restJson1labelsMap = (input, context) => {
3241
3237
  };
3242
3238
  const serializeAws_restJson1LaunchTemplateSpecification = (input, context) => {
3243
3239
  return {
3244
- ...(input.id !== undefined && input.id !== null && { id: input.id }),
3245
- ...(input.name !== undefined && input.name !== null && { name: input.name }),
3246
- ...(input.version !== undefined && input.version !== null && { version: input.version }),
3240
+ ...(input.id != null && { id: input.id }),
3241
+ ...(input.name != null && { name: input.name }),
3242
+ ...(input.version != null && { version: input.version }),
3247
3243
  };
3248
3244
  };
3249
3245
  const serializeAws_restJson1Logging = (input, context) => {
3250
3246
  return {
3251
- ...(input.clusterLogging !== undefined &&
3252
- input.clusterLogging !== null && {
3247
+ ...(input.clusterLogging != null && {
3253
3248
  clusterLogging: serializeAws_restJson1LogSetups(input.clusterLogging, context),
3254
3249
  }),
3255
3250
  };
3256
3251
  };
3257
3252
  const serializeAws_restJson1LogSetup = (input, context) => {
3258
3253
  return {
3259
- ...(input.enabled !== undefined && input.enabled !== null && { enabled: input.enabled }),
3260
- ...(input.types !== undefined &&
3261
- input.types !== null && { types: serializeAws_restJson1LogTypes(input.types, context) }),
3254
+ ...(input.enabled != null && { enabled: input.enabled }),
3255
+ ...(input.types != null && { types: serializeAws_restJson1LogTypes(input.types, context) }),
3262
3256
  };
3263
3257
  };
3264
3258
  const serializeAws_restJson1LogSetups = (input, context) => {
@@ -3283,46 +3277,40 @@ const serializeAws_restJson1LogTypes = (input, context) => {
3283
3277
  };
3284
3278
  const serializeAws_restJson1NodegroupScalingConfig = (input, context) => {
3285
3279
  return {
3286
- ...(input.desiredSize !== undefined && input.desiredSize !== null && { desiredSize: input.desiredSize }),
3287
- ...(input.maxSize !== undefined && input.maxSize !== null && { maxSize: input.maxSize }),
3288
- ...(input.minSize !== undefined && input.minSize !== null && { minSize: input.minSize }),
3280
+ ...(input.desiredSize != null && { desiredSize: input.desiredSize }),
3281
+ ...(input.maxSize != null && { maxSize: input.maxSize }),
3282
+ ...(input.minSize != null && { minSize: input.minSize }),
3289
3283
  };
3290
3284
  };
3291
3285
  const serializeAws_restJson1NodegroupUpdateConfig = (input, context) => {
3292
3286
  return {
3293
- ...(input.maxUnavailable !== undefined &&
3294
- input.maxUnavailable !== null && { maxUnavailable: input.maxUnavailable }),
3295
- ...(input.maxUnavailablePercentage !== undefined &&
3296
- input.maxUnavailablePercentage !== null && { maxUnavailablePercentage: input.maxUnavailablePercentage }),
3287
+ ...(input.maxUnavailable != null && { maxUnavailable: input.maxUnavailable }),
3288
+ ...(input.maxUnavailablePercentage != null && { maxUnavailablePercentage: input.maxUnavailablePercentage }),
3297
3289
  };
3298
3290
  };
3299
3291
  const serializeAws_restJson1OidcIdentityProviderConfigRequest = (input, context) => {
3300
3292
  return {
3301
- ...(input.clientId !== undefined && input.clientId !== null && { clientId: input.clientId }),
3302
- ...(input.groupsClaim !== undefined && input.groupsClaim !== null && { groupsClaim: input.groupsClaim }),
3303
- ...(input.groupsPrefix !== undefined && input.groupsPrefix !== null && { groupsPrefix: input.groupsPrefix }),
3304
- ...(input.identityProviderConfigName !== undefined &&
3305
- input.identityProviderConfigName !== null && { identityProviderConfigName: input.identityProviderConfigName }),
3306
- ...(input.issuerUrl !== undefined && input.issuerUrl !== null && { issuerUrl: input.issuerUrl }),
3307
- ...(input.requiredClaims !== undefined &&
3308
- input.requiredClaims !== null && {
3293
+ ...(input.clientId != null && { clientId: input.clientId }),
3294
+ ...(input.groupsClaim != null && { groupsClaim: input.groupsClaim }),
3295
+ ...(input.groupsPrefix != null && { groupsPrefix: input.groupsPrefix }),
3296
+ ...(input.identityProviderConfigName != null && { identityProviderConfigName: input.identityProviderConfigName }),
3297
+ ...(input.issuerUrl != null && { issuerUrl: input.issuerUrl }),
3298
+ ...(input.requiredClaims != null && {
3309
3299
  requiredClaims: serializeAws_restJson1requiredClaimsMap(input.requiredClaims, context),
3310
3300
  }),
3311
- ...(input.usernameClaim !== undefined && input.usernameClaim !== null && { usernameClaim: input.usernameClaim }),
3312
- ...(input.usernamePrefix !== undefined &&
3313
- input.usernamePrefix !== null && { usernamePrefix: input.usernamePrefix }),
3301
+ ...(input.usernameClaim != null && { usernameClaim: input.usernameClaim }),
3302
+ ...(input.usernamePrefix != null && { usernamePrefix: input.usernamePrefix }),
3314
3303
  };
3315
3304
  };
3316
3305
  const serializeAws_restJson1Provider = (input, context) => {
3317
3306
  return {
3318
- ...(input.keyArn !== undefined && input.keyArn !== null && { keyArn: input.keyArn }),
3307
+ ...(input.keyArn != null && { keyArn: input.keyArn }),
3319
3308
  };
3320
3309
  };
3321
3310
  const serializeAws_restJson1RemoteAccessConfig = (input, context) => {
3322
3311
  return {
3323
- ...(input.ec2SshKey !== undefined && input.ec2SshKey !== null && { ec2SshKey: input.ec2SshKey }),
3324
- ...(input.sourceSecurityGroups !== undefined &&
3325
- input.sourceSecurityGroups !== null && {
3312
+ ...(input.ec2SshKey != null && { ec2SshKey: input.ec2SshKey }),
3313
+ ...(input.sourceSecurityGroups != null && {
3326
3314
  sourceSecurityGroups: serializeAws_restJson1StringList(input.sourceSecurityGroups, context),
3327
3315
  }),
3328
3316
  };
@@ -3361,9 +3349,9 @@ const serializeAws_restJson1TagMap = (input, context) => {
3361
3349
  };
3362
3350
  const serializeAws_restJson1Taint = (input, context) => {
3363
3351
  return {
3364
- ...(input.effect !== undefined && input.effect !== null && { effect: input.effect }),
3365
- ...(input.key !== undefined && input.key !== null && { key: input.key }),
3366
- ...(input.value !== undefined && input.value !== null && { value: input.value }),
3352
+ ...(input.effect != null && { effect: input.effect }),
3353
+ ...(input.key != null && { key: input.key }),
3354
+ ...(input.value != null && { value: input.value }),
3367
3355
  };
3368
3356
  };
3369
3357
  const serializeAws_restJson1taintsList = (input, context) => {
@@ -3378,42 +3366,33 @@ const serializeAws_restJson1taintsList = (input, context) => {
3378
3366
  };
3379
3367
  const serializeAws_restJson1UpdateLabelsPayload = (input, context) => {
3380
3368
  return {
3381
- ...(input.addOrUpdateLabels !== undefined &&
3382
- input.addOrUpdateLabels !== null && {
3369
+ ...(input.addOrUpdateLabels != null && {
3383
3370
  addOrUpdateLabels: serializeAws_restJson1labelsMap(input.addOrUpdateLabels, context),
3384
3371
  }),
3385
- ...(input.removeLabels !== undefined &&
3386
- input.removeLabels !== null && {
3372
+ ...(input.removeLabels != null && {
3387
3373
  removeLabels: serializeAws_restJson1labelsKeyList(input.removeLabels, context),
3388
3374
  }),
3389
3375
  };
3390
3376
  };
3391
3377
  const serializeAws_restJson1UpdateTaintsPayload = (input, context) => {
3392
3378
  return {
3393
- ...(input.addOrUpdateTaints !== undefined &&
3394
- input.addOrUpdateTaints !== null && {
3379
+ ...(input.addOrUpdateTaints != null && {
3395
3380
  addOrUpdateTaints: serializeAws_restJson1taintsList(input.addOrUpdateTaints, context),
3396
3381
  }),
3397
- ...(input.removeTaints !== undefined &&
3398
- input.removeTaints !== null && { removeTaints: serializeAws_restJson1taintsList(input.removeTaints, context) }),
3382
+ ...(input.removeTaints != null && { removeTaints: serializeAws_restJson1taintsList(input.removeTaints, context) }),
3399
3383
  };
3400
3384
  };
3401
3385
  const serializeAws_restJson1VpcConfigRequest = (input, context) => {
3402
3386
  return {
3403
- ...(input.endpointPrivateAccess !== undefined &&
3404
- input.endpointPrivateAccess !== null && { endpointPrivateAccess: input.endpointPrivateAccess }),
3405
- ...(input.endpointPublicAccess !== undefined &&
3406
- input.endpointPublicAccess !== null && { endpointPublicAccess: input.endpointPublicAccess }),
3407
- ...(input.publicAccessCidrs !== undefined &&
3408
- input.publicAccessCidrs !== null && {
3387
+ ...(input.endpointPrivateAccess != null && { endpointPrivateAccess: input.endpointPrivateAccess }),
3388
+ ...(input.endpointPublicAccess != null && { endpointPublicAccess: input.endpointPublicAccess }),
3389
+ ...(input.publicAccessCidrs != null && {
3409
3390
  publicAccessCidrs: serializeAws_restJson1StringList(input.publicAccessCidrs, context),
3410
3391
  }),
3411
- ...(input.securityGroupIds !== undefined &&
3412
- input.securityGroupIds !== null && {
3392
+ ...(input.securityGroupIds != null && {
3413
3393
  securityGroupIds: serializeAws_restJson1StringList(input.securityGroupIds, context),
3414
3394
  }),
3415
- ...(input.subnetIds !== undefined &&
3416
- input.subnetIds !== null && { subnetIds: serializeAws_restJson1StringList(input.subnetIds, context) }),
3395
+ ...(input.subnetIds != null && { subnetIds: serializeAws_restJson1StringList(input.subnetIds, context) }),
3417
3396
  };
3418
3397
  };
3419
3398
  const deserializeAws_restJson1Addon = (output, context) => {
@@ -3422,33 +3401,23 @@ const deserializeAws_restJson1Addon = (output, context) => {
3422
3401
  addonName: (0, smithy_client_1.expectString)(output.addonName),
3423
3402
  addonVersion: (0, smithy_client_1.expectString)(output.addonVersion),
3424
3403
  clusterName: (0, smithy_client_1.expectString)(output.clusterName),
3425
- createdAt: output.createdAt !== undefined && output.createdAt !== null
3426
- ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.createdAt)))
3427
- : undefined,
3428
- health: output.health !== undefined && output.health !== null
3429
- ? deserializeAws_restJson1AddonHealth(output.health, context)
3430
- : undefined,
3431
- modifiedAt: output.modifiedAt !== undefined && output.modifiedAt !== null
3432
- ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.modifiedAt)))
3433
- : undefined,
3404
+ createdAt: output.createdAt != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.createdAt))) : undefined,
3405
+ health: output.health != null ? deserializeAws_restJson1AddonHealth(output.health, context) : undefined,
3406
+ modifiedAt: output.modifiedAt != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.modifiedAt))) : undefined,
3434
3407
  serviceAccountRoleArn: (0, smithy_client_1.expectString)(output.serviceAccountRoleArn),
3435
3408
  status: (0, smithy_client_1.expectString)(output.status),
3436
- tags: output.tags !== undefined && output.tags !== null
3437
- ? deserializeAws_restJson1TagMap(output.tags, context)
3438
- : undefined,
3409
+ tags: output.tags != null ? deserializeAws_restJson1TagMap(output.tags, context) : undefined,
3439
3410
  };
3440
3411
  };
3441
3412
  const deserializeAws_restJson1AddonHealth = (output, context) => {
3442
3413
  return {
3443
- issues: output.issues !== undefined && output.issues !== null
3444
- ? deserializeAws_restJson1AddonIssueList(output.issues, context)
3445
- : undefined,
3414
+ issues: output.issues != null ? deserializeAws_restJson1AddonIssueList(output.issues, context) : undefined,
3446
3415
  };
3447
3416
  };
3448
3417
  const deserializeAws_restJson1AddonInfo = (output, context) => {
3449
3418
  return {
3450
3419
  addonName: (0, smithy_client_1.expectString)(output.addonName),
3451
- addonVersions: output.addonVersions !== undefined && output.addonVersions !== null
3420
+ addonVersions: output.addonVersions != null
3452
3421
  ? deserializeAws_restJson1AddonVersionInfoList(output.addonVersions, context)
3453
3422
  : undefined,
3454
3423
  type: (0, smithy_client_1.expectString)(output.type),
@@ -3458,9 +3427,7 @@ const deserializeAws_restJson1AddonIssue = (output, context) => {
3458
3427
  return {
3459
3428
  code: (0, smithy_client_1.expectString)(output.code),
3460
3429
  message: (0, smithy_client_1.expectString)(output.message),
3461
- resourceIds: output.resourceIds !== undefined && output.resourceIds !== null
3462
- ? deserializeAws_restJson1StringList(output.resourceIds, context)
3463
- : undefined,
3430
+ resourceIds: output.resourceIds != null ? deserializeAws_restJson1StringList(output.resourceIds, context) : undefined,
3464
3431
  };
3465
3432
  };
3466
3433
  const deserializeAws_restJson1AddonIssueList = (output, context) => {
@@ -3488,10 +3455,8 @@ const deserializeAws_restJson1Addons = (output, context) => {
3488
3455
  const deserializeAws_restJson1AddonVersionInfo = (output, context) => {
3489
3456
  return {
3490
3457
  addonVersion: (0, smithy_client_1.expectString)(output.addonVersion),
3491
- architecture: output.architecture !== undefined && output.architecture !== null
3492
- ? deserializeAws_restJson1StringList(output.architecture, context)
3493
- : undefined,
3494
- compatibilities: output.compatibilities !== undefined && output.compatibilities !== null
3458
+ architecture: output.architecture != null ? deserializeAws_restJson1StringList(output.architecture, context) : undefined,
3459
+ compatibilities: output.compatibilities != null
3495
3460
  ? deserializeAws_restJson1Compatibilities(output.compatibilities, context)
3496
3461
  : undefined,
3497
3462
  };
@@ -3531,39 +3496,31 @@ const deserializeAws_restJson1Certificate = (output, context) => {
3531
3496
  const deserializeAws_restJson1Cluster = (output, context) => {
3532
3497
  return {
3533
3498
  arn: (0, smithy_client_1.expectString)(output.arn),
3534
- certificateAuthority: output.certificateAuthority !== undefined && output.certificateAuthority !== null
3499
+ certificateAuthority: output.certificateAuthority != null
3535
3500
  ? deserializeAws_restJson1Certificate(output.certificateAuthority, context)
3536
3501
  : undefined,
3537
3502
  clientRequestToken: (0, smithy_client_1.expectString)(output.clientRequestToken),
3538
- connectorConfig: output.connectorConfig !== undefined && output.connectorConfig !== null
3503
+ connectorConfig: output.connectorConfig != null
3539
3504
  ? deserializeAws_restJson1ConnectorConfigResponse(output.connectorConfig, context)
3540
3505
  : undefined,
3541
- createdAt: output.createdAt !== undefined && output.createdAt !== null
3542
- ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.createdAt)))
3543
- : undefined,
3544
- encryptionConfig: output.encryptionConfig !== undefined && output.encryptionConfig !== null
3506
+ createdAt: output.createdAt != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.createdAt))) : undefined,
3507
+ encryptionConfig: output.encryptionConfig != null
3545
3508
  ? deserializeAws_restJson1EncryptionConfigList(output.encryptionConfig, context)
3546
3509
  : undefined,
3547
3510
  endpoint: (0, smithy_client_1.expectString)(output.endpoint),
3548
- identity: output.identity !== undefined && output.identity !== null
3549
- ? deserializeAws_restJson1Identity(output.identity, context)
3550
- : undefined,
3551
- kubernetesNetworkConfig: output.kubernetesNetworkConfig !== undefined && output.kubernetesNetworkConfig !== null
3511
+ identity: output.identity != null ? deserializeAws_restJson1Identity(output.identity, context) : undefined,
3512
+ kubernetesNetworkConfig: output.kubernetesNetworkConfig != null
3552
3513
  ? deserializeAws_restJson1KubernetesNetworkConfigResponse(output.kubernetesNetworkConfig, context)
3553
3514
  : undefined,
3554
- logging: output.logging !== undefined && output.logging !== null
3555
- ? deserializeAws_restJson1Logging(output.logging, context)
3556
- : undefined,
3515
+ logging: output.logging != null ? deserializeAws_restJson1Logging(output.logging, context) : undefined,
3557
3516
  name: (0, smithy_client_1.expectString)(output.name),
3558
3517
  platformVersion: (0, smithy_client_1.expectString)(output.platformVersion),
3559
- resourcesVpcConfig: output.resourcesVpcConfig !== undefined && output.resourcesVpcConfig !== null
3518
+ resourcesVpcConfig: output.resourcesVpcConfig != null
3560
3519
  ? deserializeAws_restJson1VpcConfigResponse(output.resourcesVpcConfig, context)
3561
3520
  : undefined,
3562
3521
  roleArn: (0, smithy_client_1.expectString)(output.roleArn),
3563
3522
  status: (0, smithy_client_1.expectString)(output.status),
3564
- tags: output.tags !== undefined && output.tags !== null
3565
- ? deserializeAws_restJson1TagMap(output.tags, context)
3566
- : undefined,
3523
+ tags: output.tags != null ? deserializeAws_restJson1TagMap(output.tags, context) : undefined,
3567
3524
  version: (0, smithy_client_1.expectString)(output.version),
3568
3525
  };
3569
3526
  };
@@ -3582,7 +3539,7 @@ const deserializeAws_restJson1Compatibility = (output, context) => {
3582
3539
  return {
3583
3540
  clusterVersion: (0, smithy_client_1.expectString)(output.clusterVersion),
3584
3541
  defaultVersion: (0, smithy_client_1.expectBoolean)(output.defaultVersion),
3585
- platformVersions: output.platformVersions !== undefined && output.platformVersions !== null
3542
+ platformVersions: output.platformVersions != null
3586
3543
  ? deserializeAws_restJson1StringList(output.platformVersions, context)
3587
3544
  : undefined,
3588
3545
  };
@@ -3590,7 +3547,7 @@ const deserializeAws_restJson1Compatibility = (output, context) => {
3590
3547
  const deserializeAws_restJson1ConnectorConfigResponse = (output, context) => {
3591
3548
  return {
3592
3549
  activationCode: (0, smithy_client_1.expectString)(output.activationCode),
3593
- activationExpiry: output.activationExpiry !== undefined && output.activationExpiry !== null
3550
+ activationExpiry: output.activationExpiry != null
3594
3551
  ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.activationExpiry)))
3595
3552
  : undefined,
3596
3553
  activationId: (0, smithy_client_1.expectString)(output.activationId),
@@ -3600,12 +3557,8 @@ const deserializeAws_restJson1ConnectorConfigResponse = (output, context) => {
3600
3557
  };
3601
3558
  const deserializeAws_restJson1EncryptionConfig = (output, context) => {
3602
3559
  return {
3603
- provider: output.provider !== undefined && output.provider !== null
3604
- ? deserializeAws_restJson1Provider(output.provider, context)
3605
- : undefined,
3606
- resources: output.resources !== undefined && output.resources !== null
3607
- ? deserializeAws_restJson1StringList(output.resources, context)
3608
- : undefined,
3560
+ provider: output.provider != null ? deserializeAws_restJson1Provider(output.provider, context) : undefined,
3561
+ resources: output.resources != null ? deserializeAws_restJson1StringList(output.resources, context) : undefined,
3609
3562
  };
3610
3563
  };
3611
3564
  const deserializeAws_restJson1EncryptionConfigList = (output, context) => {
@@ -3623,9 +3576,7 @@ const deserializeAws_restJson1ErrorDetail = (output, context) => {
3623
3576
  return {
3624
3577
  errorCode: (0, smithy_client_1.expectString)(output.errorCode),
3625
3578
  errorMessage: (0, smithy_client_1.expectString)(output.errorMessage),
3626
- resourceIds: output.resourceIds !== undefined && output.resourceIds !== null
3627
- ? deserializeAws_restJson1StringList(output.resourceIds, context)
3628
- : undefined,
3579
+ resourceIds: output.resourceIds != null ? deserializeAws_restJson1StringList(output.resourceIds, context) : undefined,
3629
3580
  };
3630
3581
  };
3631
3582
  const deserializeAws_restJson1ErrorDetails = (output, context) => {
@@ -3642,22 +3593,14 @@ const deserializeAws_restJson1ErrorDetails = (output, context) => {
3642
3593
  const deserializeAws_restJson1FargateProfile = (output, context) => {
3643
3594
  return {
3644
3595
  clusterName: (0, smithy_client_1.expectString)(output.clusterName),
3645
- createdAt: output.createdAt !== undefined && output.createdAt !== null
3646
- ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.createdAt)))
3647
- : undefined,
3596
+ createdAt: output.createdAt != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.createdAt))) : undefined,
3648
3597
  fargateProfileArn: (0, smithy_client_1.expectString)(output.fargateProfileArn),
3649
3598
  fargateProfileName: (0, smithy_client_1.expectString)(output.fargateProfileName),
3650
3599
  podExecutionRoleArn: (0, smithy_client_1.expectString)(output.podExecutionRoleArn),
3651
- selectors: output.selectors !== undefined && output.selectors !== null
3652
- ? deserializeAws_restJson1FargateProfileSelectors(output.selectors, context)
3653
- : undefined,
3600
+ selectors: output.selectors != null ? deserializeAws_restJson1FargateProfileSelectors(output.selectors, context) : undefined,
3654
3601
  status: (0, smithy_client_1.expectString)(output.status),
3655
- subnets: output.subnets !== undefined && output.subnets !== null
3656
- ? deserializeAws_restJson1StringList(output.subnets, context)
3657
- : undefined,
3658
- tags: output.tags !== undefined && output.tags !== null
3659
- ? deserializeAws_restJson1TagMap(output.tags, context)
3660
- : undefined,
3602
+ subnets: output.subnets != null ? deserializeAws_restJson1StringList(output.subnets, context) : undefined,
3603
+ tags: output.tags != null ? deserializeAws_restJson1TagMap(output.tags, context) : undefined,
3661
3604
  };
3662
3605
  };
3663
3606
  const deserializeAws_restJson1FargateProfileLabel = (output, context) => {
@@ -3673,9 +3616,7 @@ const deserializeAws_restJson1FargateProfileLabel = (output, context) => {
3673
3616
  };
3674
3617
  const deserializeAws_restJson1FargateProfileSelector = (output, context) => {
3675
3618
  return {
3676
- labels: output.labels !== undefined && output.labels !== null
3677
- ? deserializeAws_restJson1FargateProfileLabel(output.labels, context)
3678
- : undefined,
3619
+ labels: output.labels != null ? deserializeAws_restJson1FargateProfileLabel(output.labels, context) : undefined,
3679
3620
  namespace: (0, smithy_client_1.expectString)(output.namespace),
3680
3621
  };
3681
3622
  };
@@ -3692,9 +3633,7 @@ const deserializeAws_restJson1FargateProfileSelectors = (output, context) => {
3692
3633
  };
3693
3634
  const deserializeAws_restJson1Identity = (output, context) => {
3694
3635
  return {
3695
- oidc: output.oidc !== undefined && output.oidc !== null
3696
- ? deserializeAws_restJson1OIDC(output.oidc, context)
3697
- : undefined,
3636
+ oidc: output.oidc != null ? deserializeAws_restJson1OIDC(output.oidc, context) : undefined,
3698
3637
  };
3699
3638
  };
3700
3639
  const deserializeAws_restJson1IdentityProviderConfig = (output, context) => {
@@ -3705,9 +3644,7 @@ const deserializeAws_restJson1IdentityProviderConfig = (output, context) => {
3705
3644
  };
3706
3645
  const deserializeAws_restJson1IdentityProviderConfigResponse = (output, context) => {
3707
3646
  return {
3708
- oidc: output.oidc !== undefined && output.oidc !== null
3709
- ? deserializeAws_restJson1OidcIdentityProviderConfig(output.oidc, context)
3710
- : undefined,
3647
+ oidc: output.oidc != null ? deserializeAws_restJson1OidcIdentityProviderConfig(output.oidc, context) : undefined,
3711
3648
  };
3712
3649
  };
3713
3650
  const deserializeAws_restJson1IdentityProviderConfigs = (output, context) => {
@@ -3725,9 +3662,7 @@ const deserializeAws_restJson1Issue = (output, context) => {
3725
3662
  return {
3726
3663
  code: (0, smithy_client_1.expectString)(output.code),
3727
3664
  message: (0, smithy_client_1.expectString)(output.message),
3728
- resourceIds: output.resourceIds !== undefined && output.resourceIds !== null
3729
- ? deserializeAws_restJson1StringList(output.resourceIds, context)
3730
- : undefined,
3665
+ resourceIds: output.resourceIds != null ? deserializeAws_restJson1StringList(output.resourceIds, context) : undefined,
3731
3666
  };
3732
3667
  };
3733
3668
  const deserializeAws_restJson1IssueList = (output, context) => {
@@ -3768,17 +3703,13 @@ const deserializeAws_restJson1LaunchTemplateSpecification = (output, context) =>
3768
3703
  };
3769
3704
  const deserializeAws_restJson1Logging = (output, context) => {
3770
3705
  return {
3771
- clusterLogging: output.clusterLogging !== undefined && output.clusterLogging !== null
3772
- ? deserializeAws_restJson1LogSetups(output.clusterLogging, context)
3773
- : undefined,
3706
+ clusterLogging: output.clusterLogging != null ? deserializeAws_restJson1LogSetups(output.clusterLogging, context) : undefined,
3774
3707
  };
3775
3708
  };
3776
3709
  const deserializeAws_restJson1LogSetup = (output, context) => {
3777
3710
  return {
3778
3711
  enabled: (0, smithy_client_1.expectBoolean)(output.enabled),
3779
- types: output.types !== undefined && output.types !== null
3780
- ? deserializeAws_restJson1LogTypes(output.types, context)
3781
- : undefined,
3712
+ types: output.types != null ? deserializeAws_restJson1LogTypes(output.types, context) : undefined,
3782
3713
  };
3783
3714
  };
3784
3715
  const deserializeAws_restJson1LogSetups = (output, context) => {
@@ -3808,49 +3739,31 @@ const deserializeAws_restJson1Nodegroup = (output, context) => {
3808
3739
  amiType: (0, smithy_client_1.expectString)(output.amiType),
3809
3740
  capacityType: (0, smithy_client_1.expectString)(output.capacityType),
3810
3741
  clusterName: (0, smithy_client_1.expectString)(output.clusterName),
3811
- createdAt: output.createdAt !== undefined && output.createdAt !== null
3812
- ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.createdAt)))
3813
- : undefined,
3742
+ createdAt: output.createdAt != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.createdAt))) : undefined,
3814
3743
  diskSize: (0, smithy_client_1.expectInt32)(output.diskSize),
3815
- health: output.health !== undefined && output.health !== null
3816
- ? deserializeAws_restJson1NodegroupHealth(output.health, context)
3817
- : undefined,
3818
- instanceTypes: output.instanceTypes !== undefined && output.instanceTypes !== null
3819
- ? deserializeAws_restJson1StringList(output.instanceTypes, context)
3820
- : undefined,
3821
- labels: output.labels !== undefined && output.labels !== null
3822
- ? deserializeAws_restJson1labelsMap(output.labels, context)
3823
- : undefined,
3824
- launchTemplate: output.launchTemplate !== undefined && output.launchTemplate !== null
3744
+ health: output.health != null ? deserializeAws_restJson1NodegroupHealth(output.health, context) : undefined,
3745
+ instanceTypes: output.instanceTypes != null ? deserializeAws_restJson1StringList(output.instanceTypes, context) : undefined,
3746
+ labels: output.labels != null ? deserializeAws_restJson1labelsMap(output.labels, context) : undefined,
3747
+ launchTemplate: output.launchTemplate != null
3825
3748
  ? deserializeAws_restJson1LaunchTemplateSpecification(output.launchTemplate, context)
3826
3749
  : undefined,
3827
- modifiedAt: output.modifiedAt !== undefined && output.modifiedAt !== null
3828
- ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.modifiedAt)))
3829
- : undefined,
3750
+ modifiedAt: output.modifiedAt != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.modifiedAt))) : undefined,
3830
3751
  nodeRole: (0, smithy_client_1.expectString)(output.nodeRole),
3831
3752
  nodegroupArn: (0, smithy_client_1.expectString)(output.nodegroupArn),
3832
3753
  nodegroupName: (0, smithy_client_1.expectString)(output.nodegroupName),
3833
3754
  releaseVersion: (0, smithy_client_1.expectString)(output.releaseVersion),
3834
- remoteAccess: output.remoteAccess !== undefined && output.remoteAccess !== null
3755
+ remoteAccess: output.remoteAccess != null
3835
3756
  ? deserializeAws_restJson1RemoteAccessConfig(output.remoteAccess, context)
3836
3757
  : undefined,
3837
- resources: output.resources !== undefined && output.resources !== null
3838
- ? deserializeAws_restJson1NodegroupResources(output.resources, context)
3839
- : undefined,
3840
- scalingConfig: output.scalingConfig !== undefined && output.scalingConfig !== null
3758
+ resources: output.resources != null ? deserializeAws_restJson1NodegroupResources(output.resources, context) : undefined,
3759
+ scalingConfig: output.scalingConfig != null
3841
3760
  ? deserializeAws_restJson1NodegroupScalingConfig(output.scalingConfig, context)
3842
3761
  : undefined,
3843
3762
  status: (0, smithy_client_1.expectString)(output.status),
3844
- subnets: output.subnets !== undefined && output.subnets !== null
3845
- ? deserializeAws_restJson1StringList(output.subnets, context)
3846
- : undefined,
3847
- tags: output.tags !== undefined && output.tags !== null
3848
- ? deserializeAws_restJson1TagMap(output.tags, context)
3849
- : undefined,
3850
- taints: output.taints !== undefined && output.taints !== null
3851
- ? deserializeAws_restJson1taintsList(output.taints, context)
3852
- : undefined,
3853
- updateConfig: output.updateConfig !== undefined && output.updateConfig !== null
3763
+ subnets: output.subnets != null ? deserializeAws_restJson1StringList(output.subnets, context) : undefined,
3764
+ tags: output.tags != null ? deserializeAws_restJson1TagMap(output.tags, context) : undefined,
3765
+ taints: output.taints != null ? deserializeAws_restJson1taintsList(output.taints, context) : undefined,
3766
+ updateConfig: output.updateConfig != null
3854
3767
  ? deserializeAws_restJson1NodegroupUpdateConfig(output.updateConfig, context)
3855
3768
  : undefined,
3856
3769
  version: (0, smithy_client_1.expectString)(output.version),
@@ -3858,14 +3771,12 @@ const deserializeAws_restJson1Nodegroup = (output, context) => {
3858
3771
  };
3859
3772
  const deserializeAws_restJson1NodegroupHealth = (output, context) => {
3860
3773
  return {
3861
- issues: output.issues !== undefined && output.issues !== null
3862
- ? deserializeAws_restJson1IssueList(output.issues, context)
3863
- : undefined,
3774
+ issues: output.issues != null ? deserializeAws_restJson1IssueList(output.issues, context) : undefined,
3864
3775
  };
3865
3776
  };
3866
3777
  const deserializeAws_restJson1NodegroupResources = (output, context) => {
3867
3778
  return {
3868
- autoScalingGroups: output.autoScalingGroups !== undefined && output.autoScalingGroups !== null
3779
+ autoScalingGroups: output.autoScalingGroups != null
3869
3780
  ? deserializeAws_restJson1AutoScalingGroupList(output.autoScalingGroups, context)
3870
3781
  : undefined,
3871
3782
  remoteAccessSecurityGroup: (0, smithy_client_1.expectString)(output.remoteAccessSecurityGroup),
@@ -3898,13 +3809,11 @@ const deserializeAws_restJson1OidcIdentityProviderConfig = (output, context) =>
3898
3809
  identityProviderConfigArn: (0, smithy_client_1.expectString)(output.identityProviderConfigArn),
3899
3810
  identityProviderConfigName: (0, smithy_client_1.expectString)(output.identityProviderConfigName),
3900
3811
  issuerUrl: (0, smithy_client_1.expectString)(output.issuerUrl),
3901
- requiredClaims: output.requiredClaims !== undefined && output.requiredClaims !== null
3812
+ requiredClaims: output.requiredClaims != null
3902
3813
  ? deserializeAws_restJson1requiredClaimsMap(output.requiredClaims, context)
3903
3814
  : undefined,
3904
3815
  status: (0, smithy_client_1.expectString)(output.status),
3905
- tags: output.tags !== undefined && output.tags !== null
3906
- ? deserializeAws_restJson1TagMap(output.tags, context)
3907
- : undefined,
3816
+ tags: output.tags != null ? deserializeAws_restJson1TagMap(output.tags, context) : undefined,
3908
3817
  usernameClaim: (0, smithy_client_1.expectString)(output.usernameClaim),
3909
3818
  usernamePrefix: (0, smithy_client_1.expectString)(output.usernamePrefix),
3910
3819
  };
@@ -3917,7 +3826,7 @@ const deserializeAws_restJson1Provider = (output, context) => {
3917
3826
  const deserializeAws_restJson1RemoteAccessConfig = (output, context) => {
3918
3827
  return {
3919
3828
  ec2SshKey: (0, smithy_client_1.expectString)(output.ec2SshKey),
3920
- sourceSecurityGroups: output.sourceSecurityGroups !== undefined && output.sourceSecurityGroups !== null
3829
+ sourceSecurityGroups: output.sourceSecurityGroups != null
3921
3830
  ? deserializeAws_restJson1StringList(output.sourceSecurityGroups, context)
3922
3831
  : undefined,
3923
3832
  };
@@ -3975,16 +3884,10 @@ const deserializeAws_restJson1taintsList = (output, context) => {
3975
3884
  };
3976
3885
  const deserializeAws_restJson1Update = (output, context) => {
3977
3886
  return {
3978
- createdAt: output.createdAt !== undefined && output.createdAt !== null
3979
- ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.createdAt)))
3980
- : undefined,
3981
- errors: output.errors !== undefined && output.errors !== null
3982
- ? deserializeAws_restJson1ErrorDetails(output.errors, context)
3983
- : undefined,
3887
+ createdAt: output.createdAt != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.createdAt))) : undefined,
3888
+ errors: output.errors != null ? deserializeAws_restJson1ErrorDetails(output.errors, context) : undefined,
3984
3889
  id: (0, smithy_client_1.expectString)(output.id),
3985
- params: output.params !== undefined && output.params !== null
3986
- ? deserializeAws_restJson1UpdateParams(output.params, context)
3987
- : undefined,
3890
+ params: output.params != null ? deserializeAws_restJson1UpdateParams(output.params, context) : undefined,
3988
3891
  status: (0, smithy_client_1.expectString)(output.status),
3989
3892
  type: (0, smithy_client_1.expectString)(output.type),
3990
3893
  };
@@ -4011,15 +3914,13 @@ const deserializeAws_restJson1VpcConfigResponse = (output, context) => {
4011
3914
  clusterSecurityGroupId: (0, smithy_client_1.expectString)(output.clusterSecurityGroupId),
4012
3915
  endpointPrivateAccess: (0, smithy_client_1.expectBoolean)(output.endpointPrivateAccess),
4013
3916
  endpointPublicAccess: (0, smithy_client_1.expectBoolean)(output.endpointPublicAccess),
4014
- publicAccessCidrs: output.publicAccessCidrs !== undefined && output.publicAccessCidrs !== null
3917
+ publicAccessCidrs: output.publicAccessCidrs != null
4015
3918
  ? deserializeAws_restJson1StringList(output.publicAccessCidrs, context)
4016
3919
  : undefined,
4017
- securityGroupIds: output.securityGroupIds !== undefined && output.securityGroupIds !== null
3920
+ securityGroupIds: output.securityGroupIds != null
4018
3921
  ? deserializeAws_restJson1StringList(output.securityGroupIds, context)
4019
3922
  : undefined,
4020
- subnetIds: output.subnetIds !== undefined && output.subnetIds !== null
4021
- ? deserializeAws_restJson1StringList(output.subnetIds, context)
4022
- : undefined,
3923
+ subnetIds: output.subnetIds != null ? deserializeAws_restJson1StringList(output.subnetIds, context) : undefined,
4023
3924
  vpcId: (0, smithy_client_1.expectString)(output.vpcId),
4024
3925
  };
4025
3926
  };
@@ -4072,5 +3973,4 @@ const loadRestJsonErrorCode = (output, data) => {
4072
3973
  if (data["__type"] !== undefined) {
4073
3974
  return sanitizeErrorCode(data["__type"]);
4074
3975
  }
4075
- return "";
4076
3976
  };