@aws-sdk/client-eks 3.121.0 → 3.130.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.
@@ -27,8 +27,7 @@ export var serializeAws_restJson1AssociateEncryptionConfigCommand = function (in
27
27
  else {
28
28
  throw new Error("No value provided for input HTTP label: clusterName.");
29
29
  }
30
- body = JSON.stringify(__assign({ clientRequestToken: (_c = input.clientRequestToken) !== null && _c !== void 0 ? _c : generateIdempotencyToken() }, (input.encryptionConfig !== undefined &&
31
- input.encryptionConfig !== null && {
30
+ body = JSON.stringify(__assign({ clientRequestToken: (_c = input.clientRequestToken) !== null && _c !== void 0 ? _c : generateIdempotencyToken() }, (input.encryptionConfig != null && {
32
31
  encryptionConfig: serializeAws_restJson1EncryptionConfigList(input.encryptionConfig, context),
33
32
  })));
34
33
  return [2, new __HttpRequest({
@@ -66,8 +65,7 @@ export var serializeAws_restJson1AssociateIdentityProviderConfigCommand = functi
66
65
  else {
67
66
  throw new Error("No value provided for input HTTP label: clusterName.");
68
67
  }
69
- body = JSON.stringify(__assign(__assign({ clientRequestToken: (_c = input.clientRequestToken) !== null && _c !== void 0 ? _c : generateIdempotencyToken() }, (input.oidc !== undefined &&
70
- input.oidc !== null && { oidc: serializeAws_restJson1OidcIdentityProviderConfigRequest(input.oidc, context) })), (input.tags !== undefined && input.tags !== null && { tags: serializeAws_restJson1TagMap(input.tags, context) })));
68
+ body = JSON.stringify(__assign(__assign({ clientRequestToken: (_c = input.clientRequestToken) !== null && _c !== void 0 ? _c : generateIdempotencyToken() }, (input.oidc != null && { oidc: serializeAws_restJson1OidcIdentityProviderConfigRequest(input.oidc, context) })), (input.tags != null && { tags: serializeAws_restJson1TagMap(input.tags, context) })));
71
69
  return [2, new __HttpRequest({
72
70
  protocol: protocol,
73
71
  hostname: hostname,
@@ -102,9 +100,7 @@ export var serializeAws_restJson1CreateAddonCommand = function (input, context)
102
100
  else {
103
101
  throw new Error("No value provided for input HTTP label: clusterName.");
104
102
  }
105
- body = JSON.stringify(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.addonName !== undefined && input.addonName !== null && { addonName: input.addonName })), (input.addonVersion !== undefined && input.addonVersion !== null && { addonVersion: input.addonVersion })), { clientRequestToken: (_c = input.clientRequestToken) !== null && _c !== void 0 ? _c : generateIdempotencyToken() }), (input.resolveConflicts !== undefined &&
106
- input.resolveConflicts !== null && { resolveConflicts: input.resolveConflicts })), (input.serviceAccountRoleArn !== undefined &&
107
- input.serviceAccountRoleArn !== null && { serviceAccountRoleArn: input.serviceAccountRoleArn })), (input.tags !== undefined && input.tags !== null && { tags: serializeAws_restJson1TagMap(input.tags, context) })));
103
+ body = JSON.stringify(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.addonName != null && { addonName: input.addonName })), (input.addonVersion != null && { addonVersion: input.addonVersion })), { clientRequestToken: (_c = input.clientRequestToken) !== null && _c !== void 0 ? _c : generateIdempotencyToken() }), (input.resolveConflicts != null && { resolveConflicts: input.resolveConflicts })), (input.serviceAccountRoleArn != null && { serviceAccountRoleArn: input.serviceAccountRoleArn })), (input.tags != null && { tags: serializeAws_restJson1TagMap(input.tags, context) })));
108
104
  return [2, new __HttpRequest({
109
105
  protocol: protocol,
110
106
  hostname: hostname,
@@ -129,17 +125,13 @@ export var serializeAws_restJson1CreateClusterCommand = function (input, context
129
125
  "content-type": "application/json",
130
126
  };
131
127
  resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/clusters";
132
- body = JSON.stringify(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign({ clientRequestToken: (_c = input.clientRequestToken) !== null && _c !== void 0 ? _c : generateIdempotencyToken() }, (input.encryptionConfig !== undefined &&
133
- input.encryptionConfig !== null && {
128
+ body = JSON.stringify(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign({ clientRequestToken: (_c = input.clientRequestToken) !== null && _c !== void 0 ? _c : generateIdempotencyToken() }, (input.encryptionConfig != null && {
134
129
  encryptionConfig: serializeAws_restJson1EncryptionConfigList(input.encryptionConfig, context),
135
- })), (input.kubernetesNetworkConfig !== undefined &&
136
- input.kubernetesNetworkConfig !== null && {
130
+ })), (input.kubernetesNetworkConfig != null && {
137
131
  kubernetesNetworkConfig: serializeAws_restJson1KubernetesNetworkConfigRequest(input.kubernetesNetworkConfig, context),
138
- })), (input.logging !== undefined &&
139
- input.logging !== null && { logging: serializeAws_restJson1Logging(input.logging, context) })), (input.name !== undefined && input.name !== null && { name: input.name })), (input.resourcesVpcConfig !== undefined &&
140
- input.resourcesVpcConfig !== null && {
132
+ })), (input.logging != null && { logging: serializeAws_restJson1Logging(input.logging, context) })), (input.name != null && { name: input.name })), (input.resourcesVpcConfig != null && {
141
133
  resourcesVpcConfig: serializeAws_restJson1VpcConfigRequest(input.resourcesVpcConfig, context),
142
- })), (input.roleArn !== undefined && input.roleArn !== null && { roleArn: input.roleArn })), (input.tags !== undefined && input.tags !== null && { tags: serializeAws_restJson1TagMap(input.tags, context) })), (input.version !== undefined && input.version !== null && { version: input.version })));
134
+ })), (input.roleArn != null && { roleArn: input.roleArn })), (input.tags != null && { tags: serializeAws_restJson1TagMap(input.tags, context) })), (input.version != null && { version: input.version })));
143
135
  return [2, new __HttpRequest({
144
136
  protocol: protocol,
145
137
  hostname: hostname,
@@ -174,13 +166,9 @@ export var serializeAws_restJson1CreateFargateProfileCommand = function (input,
174
166
  else {
175
167
  throw new Error("No value provided for input HTTP label: clusterName.");
176
168
  }
177
- body = JSON.stringify(__assign(__assign(__assign(__assign(__assign({ clientRequestToken: (_c = input.clientRequestToken) !== null && _c !== void 0 ? _c : generateIdempotencyToken() }, (input.fargateProfileName !== undefined &&
178
- input.fargateProfileName !== null && { fargateProfileName: input.fargateProfileName })), (input.podExecutionRoleArn !== undefined &&
179
- input.podExecutionRoleArn !== null && { podExecutionRoleArn: input.podExecutionRoleArn })), (input.selectors !== undefined &&
180
- input.selectors !== null && {
169
+ body = JSON.stringify(__assign(__assign(__assign(__assign(__assign({ clientRequestToken: (_c = input.clientRequestToken) !== null && _c !== void 0 ? _c : generateIdempotencyToken() }, (input.fargateProfileName != null && { fargateProfileName: input.fargateProfileName })), (input.podExecutionRoleArn != null && { podExecutionRoleArn: input.podExecutionRoleArn })), (input.selectors != null && {
181
170
  selectors: serializeAws_restJson1FargateProfileSelectors(input.selectors, context),
182
- })), (input.subnets !== undefined &&
183
- input.subnets !== null && { subnets: serializeAws_restJson1StringList(input.subnets, context) })), (input.tags !== undefined && input.tags !== null && { tags: serializeAws_restJson1TagMap(input.tags, context) })));
171
+ })), (input.subnets != null && { subnets: serializeAws_restJson1StringList(input.subnets, context) })), (input.tags != null && { tags: serializeAws_restJson1TagMap(input.tags, context) })));
184
172
  return [2, new __HttpRequest({
185
173
  protocol: protocol,
186
174
  hostname: hostname,
@@ -215,26 +203,17 @@ export var serializeAws_restJson1CreateNodegroupCommand = function (input, conte
215
203
  else {
216
204
  throw new Error("No value provided for input HTTP label: clusterName.");
217
205
  }
218
- body = JSON.stringify(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.amiType !== undefined && input.amiType !== null && { amiType: input.amiType })), (input.capacityType !== undefined && input.capacityType !== null && { capacityType: input.capacityType })), { clientRequestToken: (_c = input.clientRequestToken) !== null && _c !== void 0 ? _c : generateIdempotencyToken() }), (input.diskSize !== undefined && input.diskSize !== null && { diskSize: input.diskSize })), (input.instanceTypes !== undefined &&
219
- input.instanceTypes !== null && {
206
+ body = JSON.stringify(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.amiType != null && { amiType: input.amiType })), (input.capacityType != null && { capacityType: input.capacityType })), { clientRequestToken: (_c = input.clientRequestToken) !== null && _c !== void 0 ? _c : generateIdempotencyToken() }), (input.diskSize != null && { diskSize: input.diskSize })), (input.instanceTypes != null && {
220
207
  instanceTypes: serializeAws_restJson1StringList(input.instanceTypes, context),
221
- })), (input.labels !== undefined &&
222
- input.labels !== null && { labels: serializeAws_restJson1labelsMap(input.labels, context) })), (input.launchTemplate !== undefined &&
223
- input.launchTemplate !== null && {
208
+ })), (input.labels != null && { labels: serializeAws_restJson1labelsMap(input.labels, context) })), (input.launchTemplate != null && {
224
209
  launchTemplate: serializeAws_restJson1LaunchTemplateSpecification(input.launchTemplate, context),
225
- })), (input.nodeRole !== undefined && input.nodeRole !== null && { nodeRole: input.nodeRole })), (input.nodegroupName !== undefined && input.nodegroupName !== null && { nodegroupName: input.nodegroupName })), (input.releaseVersion !== undefined &&
226
- input.releaseVersion !== null && { releaseVersion: input.releaseVersion })), (input.remoteAccess !== undefined &&
227
- input.remoteAccess !== null && {
210
+ })), (input.nodeRole != null && { nodeRole: input.nodeRole })), (input.nodegroupName != null && { nodegroupName: input.nodegroupName })), (input.releaseVersion != null && { releaseVersion: input.releaseVersion })), (input.remoteAccess != null && {
228
211
  remoteAccess: serializeAws_restJson1RemoteAccessConfig(input.remoteAccess, context),
229
- })), (input.scalingConfig !== undefined &&
230
- input.scalingConfig !== null && {
212
+ })), (input.scalingConfig != null && {
231
213
  scalingConfig: serializeAws_restJson1NodegroupScalingConfig(input.scalingConfig, context),
232
- })), (input.subnets !== undefined &&
233
- input.subnets !== null && { subnets: serializeAws_restJson1StringList(input.subnets, context) })), (input.tags !== undefined && input.tags !== null && { tags: serializeAws_restJson1TagMap(input.tags, context) })), (input.taints !== undefined &&
234
- input.taints !== null && { taints: serializeAws_restJson1taintsList(input.taints, context) })), (input.updateConfig !== undefined &&
235
- input.updateConfig !== null && {
214
+ })), (input.subnets != null && { subnets: serializeAws_restJson1StringList(input.subnets, context) })), (input.tags != null && { tags: serializeAws_restJson1TagMap(input.tags, context) })), (input.taints != null && { taints: serializeAws_restJson1taintsList(input.taints, context) })), (input.updateConfig != null && {
236
215
  updateConfig: serializeAws_restJson1NodegroupUpdateConfig(input.updateConfig, context),
237
- })), (input.version !== undefined && input.version !== null && { version: input.version })));
216
+ })), (input.version != null && { version: input.version })));
238
217
  return [2, new __HttpRequest({
239
218
  protocol: protocol,
240
219
  hostname: hostname,
@@ -597,8 +576,7 @@ export var serializeAws_restJson1DescribeIdentityProviderConfigCommand = functio
597
576
  else {
598
577
  throw new Error("No value provided for input HTTP label: clusterName.");
599
578
  }
600
- body = JSON.stringify(__assign({}, (input.identityProviderConfig !== undefined &&
601
- input.identityProviderConfig !== null && {
579
+ body = JSON.stringify(__assign({}, (input.identityProviderConfig != null && {
602
580
  identityProviderConfig: serializeAws_restJson1IdentityProviderConfig(input.identityProviderConfig, context),
603
581
  })));
604
582
  return [2, new __HttpRequest({
@@ -721,8 +699,7 @@ export var serializeAws_restJson1DisassociateIdentityProviderConfigCommand = fun
721
699
  else {
722
700
  throw new Error("No value provided for input HTTP label: clusterName.");
723
701
  }
724
- body = JSON.stringify(__assign({ clientRequestToken: (_c = input.clientRequestToken) !== null && _c !== void 0 ? _c : generateIdempotencyToken() }, (input.identityProviderConfig !== undefined &&
725
- input.identityProviderConfig !== null && {
702
+ body = JSON.stringify(__assign({ clientRequestToken: (_c = input.clientRequestToken) !== null && _c !== void 0 ? _c : generateIdempotencyToken() }, (input.identityProviderConfig != null && {
726
703
  identityProviderConfig: serializeAws_restJson1IdentityProviderConfig(input.identityProviderConfig, context),
727
704
  })));
728
705
  return [2, new __HttpRequest({
@@ -969,10 +946,9 @@ export var serializeAws_restJson1RegisterClusterCommand = function (input, conte
969
946
  "content-type": "application/json",
970
947
  };
971
948
  resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/cluster-registrations";
972
- body = JSON.stringify(__assign(__assign(__assign({ clientRequestToken: (_c = input.clientRequestToken) !== null && _c !== void 0 ? _c : generateIdempotencyToken() }, (input.connectorConfig !== undefined &&
973
- input.connectorConfig !== null && {
949
+ body = JSON.stringify(__assign(__assign(__assign({ clientRequestToken: (_c = input.clientRequestToken) !== null && _c !== void 0 ? _c : generateIdempotencyToken() }, (input.connectorConfig != null && {
974
950
  connectorConfig: serializeAws_restJson1ConnectorConfigRequest(input.connectorConfig, context),
975
- })), (input.name !== undefined && input.name !== null && { name: input.name })), (input.tags !== undefined && input.tags !== null && { tags: serializeAws_restJson1TagMap(input.tags, context) })));
951
+ })), (input.name != null && { name: input.name })), (input.tags != null && { tags: serializeAws_restJson1TagMap(input.tags, context) })));
976
952
  return [2, new __HttpRequest({
977
953
  protocol: protocol,
978
954
  hostname: hostname,
@@ -1006,7 +982,7 @@ export var serializeAws_restJson1TagResourceCommand = function (input, context)
1006
982
  else {
1007
983
  throw new Error("No value provided for input HTTP label: resourceArn.");
1008
984
  }
1009
- body = JSON.stringify(__assign({}, (input.tags !== undefined && input.tags !== null && { tags: serializeAws_restJson1TagMap(input.tags, context) })));
985
+ body = JSON.stringify(__assign({}, (input.tags != null && { tags: serializeAws_restJson1TagMap(input.tags, context) })));
1010
986
  return [2, new __HttpRequest({
1011
987
  protocol: protocol,
1012
988
  hostname: hostname,
@@ -1085,9 +1061,7 @@ export var serializeAws_restJson1UpdateAddonCommand = function (input, context)
1085
1061
  else {
1086
1062
  throw new Error("No value provided for input HTTP label: addonName.");
1087
1063
  }
1088
- body = JSON.stringify(__assign(__assign(__assign(__assign({}, (input.addonVersion !== undefined && input.addonVersion !== null && { addonVersion: input.addonVersion })), { clientRequestToken: (_c = input.clientRequestToken) !== null && _c !== void 0 ? _c : generateIdempotencyToken() }), (input.resolveConflicts !== undefined &&
1089
- input.resolveConflicts !== null && { resolveConflicts: input.resolveConflicts })), (input.serviceAccountRoleArn !== undefined &&
1090
- input.serviceAccountRoleArn !== null && { serviceAccountRoleArn: input.serviceAccountRoleArn })));
1064
+ body = JSON.stringify(__assign(__assign(__assign(__assign({}, (input.addonVersion != null && { addonVersion: input.addonVersion })), { clientRequestToken: (_c = input.clientRequestToken) !== null && _c !== void 0 ? _c : generateIdempotencyToken() }), (input.resolveConflicts != null && { resolveConflicts: input.resolveConflicts })), (input.serviceAccountRoleArn != null && { serviceAccountRoleArn: input.serviceAccountRoleArn })));
1091
1065
  return [2, new __HttpRequest({
1092
1066
  protocol: protocol,
1093
1067
  hostname: hostname,
@@ -1122,9 +1096,7 @@ export var serializeAws_restJson1UpdateClusterConfigCommand = function (input, c
1122
1096
  else {
1123
1097
  throw new Error("No value provided for input HTTP label: name.");
1124
1098
  }
1125
- body = JSON.stringify(__assign(__assign({ clientRequestToken: (_c = input.clientRequestToken) !== null && _c !== void 0 ? _c : generateIdempotencyToken() }, (input.logging !== undefined &&
1126
- input.logging !== null && { logging: serializeAws_restJson1Logging(input.logging, context) })), (input.resourcesVpcConfig !== undefined &&
1127
- input.resourcesVpcConfig !== null && {
1099
+ body = JSON.stringify(__assign(__assign({ clientRequestToken: (_c = input.clientRequestToken) !== null && _c !== void 0 ? _c : generateIdempotencyToken() }, (input.logging != null && { logging: serializeAws_restJson1Logging(input.logging, context) })), (input.resourcesVpcConfig != null && {
1128
1100
  resourcesVpcConfig: serializeAws_restJson1VpcConfigRequest(input.resourcesVpcConfig, context),
1129
1101
  })));
1130
1102
  return [2, new __HttpRequest({
@@ -1161,7 +1133,7 @@ export var serializeAws_restJson1UpdateClusterVersionCommand = function (input,
1161
1133
  else {
1162
1134
  throw new Error("No value provided for input HTTP label: name.");
1163
1135
  }
1164
- body = JSON.stringify(__assign({ clientRequestToken: (_c = input.clientRequestToken) !== null && _c !== void 0 ? _c : generateIdempotencyToken() }, (input.version !== undefined && input.version !== null && { version: input.version })));
1136
+ body = JSON.stringify(__assign({ clientRequestToken: (_c = input.clientRequestToken) !== null && _c !== void 0 ? _c : generateIdempotencyToken() }, (input.version != null && { version: input.version })));
1165
1137
  return [2, new __HttpRequest({
1166
1138
  protocol: protocol,
1167
1139
  hostname: hostname,
@@ -1207,13 +1179,9 @@ export var serializeAws_restJson1UpdateNodegroupConfigCommand = function (input,
1207
1179
  else {
1208
1180
  throw new Error("No value provided for input HTTP label: nodegroupName.");
1209
1181
  }
1210
- body = JSON.stringify(__assign(__assign(__assign(__assign({ clientRequestToken: (_c = input.clientRequestToken) !== null && _c !== void 0 ? _c : generateIdempotencyToken() }, (input.labels !== undefined &&
1211
- input.labels !== null && { labels: serializeAws_restJson1UpdateLabelsPayload(input.labels, context) })), (input.scalingConfig !== undefined &&
1212
- input.scalingConfig !== null && {
1182
+ body = JSON.stringify(__assign(__assign(__assign(__assign({ clientRequestToken: (_c = input.clientRequestToken) !== null && _c !== void 0 ? _c : generateIdempotencyToken() }, (input.labels != null && { labels: serializeAws_restJson1UpdateLabelsPayload(input.labels, context) })), (input.scalingConfig != null && {
1213
1183
  scalingConfig: serializeAws_restJson1NodegroupScalingConfig(input.scalingConfig, context),
1214
- })), (input.taints !== undefined &&
1215
- input.taints !== null && { taints: serializeAws_restJson1UpdateTaintsPayload(input.taints, context) })), (input.updateConfig !== undefined &&
1216
- input.updateConfig !== null && {
1184
+ })), (input.taints != null && { taints: serializeAws_restJson1UpdateTaintsPayload(input.taints, context) })), (input.updateConfig != null && {
1217
1185
  updateConfig: serializeAws_restJson1NodegroupUpdateConfig(input.updateConfig, context),
1218
1186
  })));
1219
1187
  return [2, new __HttpRequest({
@@ -1261,11 +1229,9 @@ export var serializeAws_restJson1UpdateNodegroupVersionCommand = function (input
1261
1229
  else {
1262
1230
  throw new Error("No value provided for input HTTP label: nodegroupName.");
1263
1231
  }
1264
- body = JSON.stringify(__assign(__assign(__assign(__assign({ clientRequestToken: (_c = input.clientRequestToken) !== null && _c !== void 0 ? _c : generateIdempotencyToken() }, (input.force !== undefined && input.force !== null && { force: input.force })), (input.launchTemplate !== undefined &&
1265
- input.launchTemplate !== null && {
1232
+ body = JSON.stringify(__assign(__assign(__assign(__assign({ clientRequestToken: (_c = input.clientRequestToken) !== null && _c !== void 0 ? _c : generateIdempotencyToken() }, (input.force != null && { force: input.force })), (input.launchTemplate != null && {
1266
1233
  launchTemplate: serializeAws_restJson1LaunchTemplateSpecification(input.launchTemplate, context),
1267
- })), (input.releaseVersion !== undefined &&
1268
- input.releaseVersion !== null && { releaseVersion: input.releaseVersion })), (input.version !== undefined && input.version !== null && { version: input.version })));
1234
+ })), (input.releaseVersion != null && { releaseVersion: input.releaseVersion })), (input.version != null && { version: input.version })));
1269
1235
  return [2, new __HttpRequest({
1270
1236
  protocol: protocol,
1271
1237
  hostname: hostname,
@@ -4016,12 +3982,10 @@ var deserializeAws_restJson1UnsupportedAvailabilityZoneExceptionResponse = funct
4016
3982
  });
4017
3983
  }); };
4018
3984
  var serializeAws_restJson1ConnectorConfigRequest = function (input, context) {
4019
- return __assign(__assign({}, (input.provider !== undefined && input.provider !== null && { provider: input.provider })), (input.roleArn !== undefined && input.roleArn !== null && { roleArn: input.roleArn }));
3985
+ return __assign(__assign({}, (input.provider != null && { provider: input.provider })), (input.roleArn != null && { roleArn: input.roleArn }));
4020
3986
  };
4021
3987
  var serializeAws_restJson1EncryptionConfig = function (input, context) {
4022
- return __assign(__assign({}, (input.provider !== undefined &&
4023
- input.provider !== null && { provider: serializeAws_restJson1Provider(input.provider, context) })), (input.resources !== undefined &&
4024
- input.resources !== null && { resources: serializeAws_restJson1StringList(input.resources, context) }));
3988
+ return __assign(__assign({}, (input.provider != null && { provider: serializeAws_restJson1Provider(input.provider, context) })), (input.resources != null && { resources: serializeAws_restJson1StringList(input.resources, context) }));
4025
3989
  };
4026
3990
  var serializeAws_restJson1EncryptionConfigList = function (input, context) {
4027
3991
  return input
@@ -4044,8 +4008,7 @@ var serializeAws_restJson1FargateProfileLabel = function (input, context) {
4044
4008
  }, {});
4045
4009
  };
4046
4010
  var serializeAws_restJson1FargateProfileSelector = function (input, context) {
4047
- return __assign(__assign({}, (input.labels !== undefined &&
4048
- input.labels !== null && { labels: serializeAws_restJson1FargateProfileLabel(input.labels, context) })), (input.namespace !== undefined && input.namespace !== null && { namespace: input.namespace }));
4011
+ return __assign(__assign({}, (input.labels != null && { labels: serializeAws_restJson1FargateProfileLabel(input.labels, context) })), (input.namespace != null && { namespace: input.namespace }));
4049
4012
  };
4050
4013
  var serializeAws_restJson1FargateProfileSelectors = function (input, context) {
4051
4014
  return input
@@ -4058,11 +4021,10 @@ var serializeAws_restJson1FargateProfileSelectors = function (input, context) {
4058
4021
  });
4059
4022
  };
4060
4023
  var serializeAws_restJson1IdentityProviderConfig = function (input, context) {
4061
- return __assign(__assign({}, (input.name !== undefined && input.name !== null && { name: input.name })), (input.type !== undefined && input.type !== null && { type: input.type }));
4024
+ return __assign(__assign({}, (input.name != null && { name: input.name })), (input.type != null && { type: input.type }));
4062
4025
  };
4063
4026
  var serializeAws_restJson1KubernetesNetworkConfigRequest = function (input, context) {
4064
- return __assign(__assign({}, (input.ipFamily !== undefined && input.ipFamily !== null && { ipFamily: input.ipFamily })), (input.serviceIpv4Cidr !== undefined &&
4065
- input.serviceIpv4Cidr !== null && { serviceIpv4Cidr: input.serviceIpv4Cidr }));
4027
+ return __assign(__assign({}, (input.ipFamily != null && { ipFamily: input.ipFamily })), (input.serviceIpv4Cidr != null && { serviceIpv4Cidr: input.serviceIpv4Cidr }));
4066
4028
  };
4067
4029
  var serializeAws_restJson1labelsKeyList = function (input, context) {
4068
4030
  return input
@@ -4085,17 +4047,15 @@ var serializeAws_restJson1labelsMap = function (input, context) {
4085
4047
  }, {});
4086
4048
  };
4087
4049
  var serializeAws_restJson1LaunchTemplateSpecification = function (input, context) {
4088
- return __assign(__assign(__assign({}, (input.id !== undefined && input.id !== null && { id: input.id })), (input.name !== undefined && input.name !== null && { name: input.name })), (input.version !== undefined && input.version !== null && { version: input.version }));
4050
+ return __assign(__assign(__assign({}, (input.id != null && { id: input.id })), (input.name != null && { name: input.name })), (input.version != null && { version: input.version }));
4089
4051
  };
4090
4052
  var serializeAws_restJson1Logging = function (input, context) {
4091
- return __assign({}, (input.clusterLogging !== undefined &&
4092
- input.clusterLogging !== null && {
4053
+ return __assign({}, (input.clusterLogging != null && {
4093
4054
  clusterLogging: serializeAws_restJson1LogSetups(input.clusterLogging, context),
4094
4055
  }));
4095
4056
  };
4096
4057
  var serializeAws_restJson1LogSetup = function (input, context) {
4097
- return __assign(__assign({}, (input.enabled !== undefined && input.enabled !== null && { enabled: input.enabled })), (input.types !== undefined &&
4098
- input.types !== null && { types: serializeAws_restJson1LogTypes(input.types, context) }));
4058
+ return __assign(__assign({}, (input.enabled != null && { enabled: input.enabled })), (input.types != null && { types: serializeAws_restJson1LogTypes(input.types, context) }));
4099
4059
  };
4100
4060
  var serializeAws_restJson1LogSetups = function (input, context) {
4101
4061
  return input
@@ -4118,27 +4078,21 @@ var serializeAws_restJson1LogTypes = function (input, context) {
4118
4078
  });
4119
4079
  };
4120
4080
  var serializeAws_restJson1NodegroupScalingConfig = function (input, context) {
4121
- return __assign(__assign(__assign({}, (input.desiredSize !== undefined && input.desiredSize !== null && { desiredSize: input.desiredSize })), (input.maxSize !== undefined && input.maxSize !== null && { maxSize: input.maxSize })), (input.minSize !== undefined && input.minSize !== null && { minSize: input.minSize }));
4081
+ return __assign(__assign(__assign({}, (input.desiredSize != null && { desiredSize: input.desiredSize })), (input.maxSize != null && { maxSize: input.maxSize })), (input.minSize != null && { minSize: input.minSize }));
4122
4082
  };
4123
4083
  var serializeAws_restJson1NodegroupUpdateConfig = function (input, context) {
4124
- return __assign(__assign({}, (input.maxUnavailable !== undefined &&
4125
- input.maxUnavailable !== null && { maxUnavailable: input.maxUnavailable })), (input.maxUnavailablePercentage !== undefined &&
4126
- input.maxUnavailablePercentage !== null && { maxUnavailablePercentage: input.maxUnavailablePercentage }));
4084
+ return __assign(__assign({}, (input.maxUnavailable != null && { maxUnavailable: input.maxUnavailable })), (input.maxUnavailablePercentage != null && { maxUnavailablePercentage: input.maxUnavailablePercentage }));
4127
4085
  };
4128
4086
  var serializeAws_restJson1OidcIdentityProviderConfigRequest = function (input, context) {
4129
- return __assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.clientId !== undefined && input.clientId !== null && { clientId: input.clientId })), (input.groupsClaim !== undefined && input.groupsClaim !== null && { groupsClaim: input.groupsClaim })), (input.groupsPrefix !== undefined && input.groupsPrefix !== null && { groupsPrefix: input.groupsPrefix })), (input.identityProviderConfigName !== undefined &&
4130
- input.identityProviderConfigName !== null && { identityProviderConfigName: input.identityProviderConfigName })), (input.issuerUrl !== undefined && input.issuerUrl !== null && { issuerUrl: input.issuerUrl })), (input.requiredClaims !== undefined &&
4131
- input.requiredClaims !== null && {
4087
+ return __assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.clientId != null && { clientId: input.clientId })), (input.groupsClaim != null && { groupsClaim: input.groupsClaim })), (input.groupsPrefix != null && { groupsPrefix: input.groupsPrefix })), (input.identityProviderConfigName != null && { identityProviderConfigName: input.identityProviderConfigName })), (input.issuerUrl != null && { issuerUrl: input.issuerUrl })), (input.requiredClaims != null && {
4132
4088
  requiredClaims: serializeAws_restJson1requiredClaimsMap(input.requiredClaims, context),
4133
- })), (input.usernameClaim !== undefined && input.usernameClaim !== null && { usernameClaim: input.usernameClaim })), (input.usernamePrefix !== undefined &&
4134
- input.usernamePrefix !== null && { usernamePrefix: input.usernamePrefix }));
4089
+ })), (input.usernameClaim != null && { usernameClaim: input.usernameClaim })), (input.usernamePrefix != null && { usernamePrefix: input.usernamePrefix }));
4135
4090
  };
4136
4091
  var serializeAws_restJson1Provider = function (input, context) {
4137
- return __assign({}, (input.keyArn !== undefined && input.keyArn !== null && { keyArn: input.keyArn }));
4092
+ return __assign({}, (input.keyArn != null && { keyArn: input.keyArn }));
4138
4093
  };
4139
4094
  var serializeAws_restJson1RemoteAccessConfig = function (input, context) {
4140
- return __assign(__assign({}, (input.ec2SshKey !== undefined && input.ec2SshKey !== null && { ec2SshKey: input.ec2SshKey })), (input.sourceSecurityGroups !== undefined &&
4141
- input.sourceSecurityGroups !== null && {
4095
+ return __assign(__assign({}, (input.ec2SshKey != null && { ec2SshKey: input.ec2SshKey })), (input.sourceSecurityGroups != null && {
4142
4096
  sourceSecurityGroups: serializeAws_restJson1StringList(input.sourceSecurityGroups, context),
4143
4097
  }));
4144
4098
  };
@@ -4173,7 +4127,7 @@ var serializeAws_restJson1TagMap = function (input, context) {
4173
4127
  }, {});
4174
4128
  };
4175
4129
  var serializeAws_restJson1Taint = function (input, context) {
4176
- return __assign(__assign(__assign({}, (input.effect !== undefined && input.effect !== null && { effect: input.effect })), (input.key !== undefined && input.key !== null && { key: input.key })), (input.value !== undefined && input.value !== null && { value: input.value }));
4130
+ return __assign(__assign(__assign({}, (input.effect != null && { effect: input.effect })), (input.key != null && { key: input.key })), (input.value != null && { value: input.value }));
4177
4131
  };
4178
4132
  var serializeAws_restJson1taintsList = function (input, context) {
4179
4133
  return input
@@ -4186,32 +4140,23 @@ var serializeAws_restJson1taintsList = function (input, context) {
4186
4140
  });
4187
4141
  };
4188
4142
  var serializeAws_restJson1UpdateLabelsPayload = function (input, context) {
4189
- return __assign(__assign({}, (input.addOrUpdateLabels !== undefined &&
4190
- input.addOrUpdateLabels !== null && {
4143
+ return __assign(__assign({}, (input.addOrUpdateLabels != null && {
4191
4144
  addOrUpdateLabels: serializeAws_restJson1labelsMap(input.addOrUpdateLabels, context),
4192
- })), (input.removeLabels !== undefined &&
4193
- input.removeLabels !== null && {
4145
+ })), (input.removeLabels != null && {
4194
4146
  removeLabels: serializeAws_restJson1labelsKeyList(input.removeLabels, context),
4195
4147
  }));
4196
4148
  };
4197
4149
  var serializeAws_restJson1UpdateTaintsPayload = function (input, context) {
4198
- return __assign(__assign({}, (input.addOrUpdateTaints !== undefined &&
4199
- input.addOrUpdateTaints !== null && {
4150
+ return __assign(__assign({}, (input.addOrUpdateTaints != null && {
4200
4151
  addOrUpdateTaints: serializeAws_restJson1taintsList(input.addOrUpdateTaints, context),
4201
- })), (input.removeTaints !== undefined &&
4202
- input.removeTaints !== null && { removeTaints: serializeAws_restJson1taintsList(input.removeTaints, context) }));
4152
+ })), (input.removeTaints != null && { removeTaints: serializeAws_restJson1taintsList(input.removeTaints, context) }));
4203
4153
  };
4204
4154
  var serializeAws_restJson1VpcConfigRequest = function (input, context) {
4205
- return __assign(__assign(__assign(__assign(__assign({}, (input.endpointPrivateAccess !== undefined &&
4206
- input.endpointPrivateAccess !== null && { endpointPrivateAccess: input.endpointPrivateAccess })), (input.endpointPublicAccess !== undefined &&
4207
- input.endpointPublicAccess !== null && { endpointPublicAccess: input.endpointPublicAccess })), (input.publicAccessCidrs !== undefined &&
4208
- input.publicAccessCidrs !== null && {
4155
+ return __assign(__assign(__assign(__assign(__assign({}, (input.endpointPrivateAccess != null && { endpointPrivateAccess: input.endpointPrivateAccess })), (input.endpointPublicAccess != null && { endpointPublicAccess: input.endpointPublicAccess })), (input.publicAccessCidrs != null && {
4209
4156
  publicAccessCidrs: serializeAws_restJson1StringList(input.publicAccessCidrs, context),
4210
- })), (input.securityGroupIds !== undefined &&
4211
- input.securityGroupIds !== null && {
4157
+ })), (input.securityGroupIds != null && {
4212
4158
  securityGroupIds: serializeAws_restJson1StringList(input.securityGroupIds, context),
4213
- })), (input.subnetIds !== undefined &&
4214
- input.subnetIds !== null && { subnetIds: serializeAws_restJson1StringList(input.subnetIds, context) }));
4159
+ })), (input.subnetIds != null && { subnetIds: serializeAws_restJson1StringList(input.subnetIds, context) }));
4215
4160
  };
4216
4161
  var deserializeAws_restJson1Addon = function (output, context) {
4217
4162
  return {
@@ -4219,33 +4164,23 @@ var deserializeAws_restJson1Addon = function (output, context) {
4219
4164
  addonName: __expectString(output.addonName),
4220
4165
  addonVersion: __expectString(output.addonVersion),
4221
4166
  clusterName: __expectString(output.clusterName),
4222
- createdAt: output.createdAt !== undefined && output.createdAt !== null
4223
- ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.createdAt)))
4224
- : undefined,
4225
- health: output.health !== undefined && output.health !== null
4226
- ? deserializeAws_restJson1AddonHealth(output.health, context)
4227
- : undefined,
4228
- modifiedAt: output.modifiedAt !== undefined && output.modifiedAt !== null
4229
- ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.modifiedAt)))
4230
- : undefined,
4167
+ createdAt: output.createdAt != null ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.createdAt))) : undefined,
4168
+ health: output.health != null ? deserializeAws_restJson1AddonHealth(output.health, context) : undefined,
4169
+ modifiedAt: output.modifiedAt != null ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.modifiedAt))) : undefined,
4231
4170
  serviceAccountRoleArn: __expectString(output.serviceAccountRoleArn),
4232
4171
  status: __expectString(output.status),
4233
- tags: output.tags !== undefined && output.tags !== null
4234
- ? deserializeAws_restJson1TagMap(output.tags, context)
4235
- : undefined,
4172
+ tags: output.tags != null ? deserializeAws_restJson1TagMap(output.tags, context) : undefined,
4236
4173
  };
4237
4174
  };
4238
4175
  var deserializeAws_restJson1AddonHealth = function (output, context) {
4239
4176
  return {
4240
- issues: output.issues !== undefined && output.issues !== null
4241
- ? deserializeAws_restJson1AddonIssueList(output.issues, context)
4242
- : undefined,
4177
+ issues: output.issues != null ? deserializeAws_restJson1AddonIssueList(output.issues, context) : undefined,
4243
4178
  };
4244
4179
  };
4245
4180
  var deserializeAws_restJson1AddonInfo = function (output, context) {
4246
4181
  return {
4247
4182
  addonName: __expectString(output.addonName),
4248
- addonVersions: output.addonVersions !== undefined && output.addonVersions !== null
4183
+ addonVersions: output.addonVersions != null
4249
4184
  ? deserializeAws_restJson1AddonVersionInfoList(output.addonVersions, context)
4250
4185
  : undefined,
4251
4186
  type: __expectString(output.type),
@@ -4255,9 +4190,7 @@ var deserializeAws_restJson1AddonIssue = function (output, context) {
4255
4190
  return {
4256
4191
  code: __expectString(output.code),
4257
4192
  message: __expectString(output.message),
4258
- resourceIds: output.resourceIds !== undefined && output.resourceIds !== null
4259
- ? deserializeAws_restJson1StringList(output.resourceIds, context)
4260
- : undefined,
4193
+ resourceIds: output.resourceIds != null ? deserializeAws_restJson1StringList(output.resourceIds, context) : undefined,
4261
4194
  };
4262
4195
  };
4263
4196
  var deserializeAws_restJson1AddonIssueList = function (output, context) {
@@ -4285,10 +4218,8 @@ var deserializeAws_restJson1Addons = function (output, context) {
4285
4218
  var deserializeAws_restJson1AddonVersionInfo = function (output, context) {
4286
4219
  return {
4287
4220
  addonVersion: __expectString(output.addonVersion),
4288
- architecture: output.architecture !== undefined && output.architecture !== null
4289
- ? deserializeAws_restJson1StringList(output.architecture, context)
4290
- : undefined,
4291
- compatibilities: output.compatibilities !== undefined && output.compatibilities !== null
4221
+ architecture: output.architecture != null ? deserializeAws_restJson1StringList(output.architecture, context) : undefined,
4222
+ compatibilities: output.compatibilities != null
4292
4223
  ? deserializeAws_restJson1Compatibilities(output.compatibilities, context)
4293
4224
  : undefined,
4294
4225
  };
@@ -4328,39 +4259,31 @@ var deserializeAws_restJson1Certificate = function (output, context) {
4328
4259
  var deserializeAws_restJson1Cluster = function (output, context) {
4329
4260
  return {
4330
4261
  arn: __expectString(output.arn),
4331
- certificateAuthority: output.certificateAuthority !== undefined && output.certificateAuthority !== null
4262
+ certificateAuthority: output.certificateAuthority != null
4332
4263
  ? deserializeAws_restJson1Certificate(output.certificateAuthority, context)
4333
4264
  : undefined,
4334
4265
  clientRequestToken: __expectString(output.clientRequestToken),
4335
- connectorConfig: output.connectorConfig !== undefined && output.connectorConfig !== null
4266
+ connectorConfig: output.connectorConfig != null
4336
4267
  ? deserializeAws_restJson1ConnectorConfigResponse(output.connectorConfig, context)
4337
4268
  : undefined,
4338
- createdAt: output.createdAt !== undefined && output.createdAt !== null
4339
- ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.createdAt)))
4340
- : undefined,
4341
- encryptionConfig: output.encryptionConfig !== undefined && output.encryptionConfig !== null
4269
+ createdAt: output.createdAt != null ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.createdAt))) : undefined,
4270
+ encryptionConfig: output.encryptionConfig != null
4342
4271
  ? deserializeAws_restJson1EncryptionConfigList(output.encryptionConfig, context)
4343
4272
  : undefined,
4344
4273
  endpoint: __expectString(output.endpoint),
4345
- identity: output.identity !== undefined && output.identity !== null
4346
- ? deserializeAws_restJson1Identity(output.identity, context)
4347
- : undefined,
4348
- kubernetesNetworkConfig: output.kubernetesNetworkConfig !== undefined && output.kubernetesNetworkConfig !== null
4274
+ identity: output.identity != null ? deserializeAws_restJson1Identity(output.identity, context) : undefined,
4275
+ kubernetesNetworkConfig: output.kubernetesNetworkConfig != null
4349
4276
  ? deserializeAws_restJson1KubernetesNetworkConfigResponse(output.kubernetesNetworkConfig, context)
4350
4277
  : undefined,
4351
- logging: output.logging !== undefined && output.logging !== null
4352
- ? deserializeAws_restJson1Logging(output.logging, context)
4353
- : undefined,
4278
+ logging: output.logging != null ? deserializeAws_restJson1Logging(output.logging, context) : undefined,
4354
4279
  name: __expectString(output.name),
4355
4280
  platformVersion: __expectString(output.platformVersion),
4356
- resourcesVpcConfig: output.resourcesVpcConfig !== undefined && output.resourcesVpcConfig !== null
4281
+ resourcesVpcConfig: output.resourcesVpcConfig != null
4357
4282
  ? deserializeAws_restJson1VpcConfigResponse(output.resourcesVpcConfig, context)
4358
4283
  : undefined,
4359
4284
  roleArn: __expectString(output.roleArn),
4360
4285
  status: __expectString(output.status),
4361
- tags: output.tags !== undefined && output.tags !== null
4362
- ? deserializeAws_restJson1TagMap(output.tags, context)
4363
- : undefined,
4286
+ tags: output.tags != null ? deserializeAws_restJson1TagMap(output.tags, context) : undefined,
4364
4287
  version: __expectString(output.version),
4365
4288
  };
4366
4289
  };
@@ -4379,7 +4302,7 @@ var deserializeAws_restJson1Compatibility = function (output, context) {
4379
4302
  return {
4380
4303
  clusterVersion: __expectString(output.clusterVersion),
4381
4304
  defaultVersion: __expectBoolean(output.defaultVersion),
4382
- platformVersions: output.platformVersions !== undefined && output.platformVersions !== null
4305
+ platformVersions: output.platformVersions != null
4383
4306
  ? deserializeAws_restJson1StringList(output.platformVersions, context)
4384
4307
  : undefined,
4385
4308
  };
@@ -4387,7 +4310,7 @@ var deserializeAws_restJson1Compatibility = function (output, context) {
4387
4310
  var deserializeAws_restJson1ConnectorConfigResponse = function (output, context) {
4388
4311
  return {
4389
4312
  activationCode: __expectString(output.activationCode),
4390
- activationExpiry: output.activationExpiry !== undefined && output.activationExpiry !== null
4313
+ activationExpiry: output.activationExpiry != null
4391
4314
  ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.activationExpiry)))
4392
4315
  : undefined,
4393
4316
  activationId: __expectString(output.activationId),
@@ -4397,12 +4320,8 @@ var deserializeAws_restJson1ConnectorConfigResponse = function (output, context)
4397
4320
  };
4398
4321
  var deserializeAws_restJson1EncryptionConfig = function (output, context) {
4399
4322
  return {
4400
- provider: output.provider !== undefined && output.provider !== null
4401
- ? deserializeAws_restJson1Provider(output.provider, context)
4402
- : undefined,
4403
- resources: output.resources !== undefined && output.resources !== null
4404
- ? deserializeAws_restJson1StringList(output.resources, context)
4405
- : undefined,
4323
+ provider: output.provider != null ? deserializeAws_restJson1Provider(output.provider, context) : undefined,
4324
+ resources: output.resources != null ? deserializeAws_restJson1StringList(output.resources, context) : undefined,
4406
4325
  };
4407
4326
  };
4408
4327
  var deserializeAws_restJson1EncryptionConfigList = function (output, context) {
@@ -4420,9 +4339,7 @@ var deserializeAws_restJson1ErrorDetail = function (output, context) {
4420
4339
  return {
4421
4340
  errorCode: __expectString(output.errorCode),
4422
4341
  errorMessage: __expectString(output.errorMessage),
4423
- resourceIds: output.resourceIds !== undefined && output.resourceIds !== null
4424
- ? deserializeAws_restJson1StringList(output.resourceIds, context)
4425
- : undefined,
4342
+ resourceIds: output.resourceIds != null ? deserializeAws_restJson1StringList(output.resourceIds, context) : undefined,
4426
4343
  };
4427
4344
  };
4428
4345
  var deserializeAws_restJson1ErrorDetails = function (output, context) {
@@ -4439,22 +4356,14 @@ var deserializeAws_restJson1ErrorDetails = function (output, context) {
4439
4356
  var deserializeAws_restJson1FargateProfile = function (output, context) {
4440
4357
  return {
4441
4358
  clusterName: __expectString(output.clusterName),
4442
- createdAt: output.createdAt !== undefined && output.createdAt !== null
4443
- ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.createdAt)))
4444
- : undefined,
4359
+ createdAt: output.createdAt != null ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.createdAt))) : undefined,
4445
4360
  fargateProfileArn: __expectString(output.fargateProfileArn),
4446
4361
  fargateProfileName: __expectString(output.fargateProfileName),
4447
4362
  podExecutionRoleArn: __expectString(output.podExecutionRoleArn),
4448
- selectors: output.selectors !== undefined && output.selectors !== null
4449
- ? deserializeAws_restJson1FargateProfileSelectors(output.selectors, context)
4450
- : undefined,
4363
+ selectors: output.selectors != null ? deserializeAws_restJson1FargateProfileSelectors(output.selectors, context) : undefined,
4451
4364
  status: __expectString(output.status),
4452
- subnets: output.subnets !== undefined && output.subnets !== null
4453
- ? deserializeAws_restJson1StringList(output.subnets, context)
4454
- : undefined,
4455
- tags: output.tags !== undefined && output.tags !== null
4456
- ? deserializeAws_restJson1TagMap(output.tags, context)
4457
- : undefined,
4365
+ subnets: output.subnets != null ? deserializeAws_restJson1StringList(output.subnets, context) : undefined,
4366
+ tags: output.tags != null ? deserializeAws_restJson1TagMap(output.tags, context) : undefined,
4458
4367
  };
4459
4368
  };
4460
4369
  var deserializeAws_restJson1FargateProfileLabel = function (output, context) {
@@ -4469,9 +4378,7 @@ var deserializeAws_restJson1FargateProfileLabel = function (output, context) {
4469
4378
  };
4470
4379
  var deserializeAws_restJson1FargateProfileSelector = function (output, context) {
4471
4380
  return {
4472
- labels: output.labels !== undefined && output.labels !== null
4473
- ? deserializeAws_restJson1FargateProfileLabel(output.labels, context)
4474
- : undefined,
4381
+ labels: output.labels != null ? deserializeAws_restJson1FargateProfileLabel(output.labels, context) : undefined,
4475
4382
  namespace: __expectString(output.namespace),
4476
4383
  };
4477
4384
  };
@@ -4488,9 +4395,7 @@ var deserializeAws_restJson1FargateProfileSelectors = function (output, context)
4488
4395
  };
4489
4396
  var deserializeAws_restJson1Identity = function (output, context) {
4490
4397
  return {
4491
- oidc: output.oidc !== undefined && output.oidc !== null
4492
- ? deserializeAws_restJson1OIDC(output.oidc, context)
4493
- : undefined,
4398
+ oidc: output.oidc != null ? deserializeAws_restJson1OIDC(output.oidc, context) : undefined,
4494
4399
  };
4495
4400
  };
4496
4401
  var deserializeAws_restJson1IdentityProviderConfig = function (output, context) {
@@ -4501,9 +4406,7 @@ var deserializeAws_restJson1IdentityProviderConfig = function (output, context)
4501
4406
  };
4502
4407
  var deserializeAws_restJson1IdentityProviderConfigResponse = function (output, context) {
4503
4408
  return {
4504
- oidc: output.oidc !== undefined && output.oidc !== null
4505
- ? deserializeAws_restJson1OidcIdentityProviderConfig(output.oidc, context)
4506
- : undefined,
4409
+ oidc: output.oidc != null ? deserializeAws_restJson1OidcIdentityProviderConfig(output.oidc, context) : undefined,
4507
4410
  };
4508
4411
  };
4509
4412
  var deserializeAws_restJson1IdentityProviderConfigs = function (output, context) {
@@ -4521,9 +4424,7 @@ var deserializeAws_restJson1Issue = function (output, context) {
4521
4424
  return {
4522
4425
  code: __expectString(output.code),
4523
4426
  message: __expectString(output.message),
4524
- resourceIds: output.resourceIds !== undefined && output.resourceIds !== null
4525
- ? deserializeAws_restJson1StringList(output.resourceIds, context)
4526
- : undefined,
4427
+ resourceIds: output.resourceIds != null ? deserializeAws_restJson1StringList(output.resourceIds, context) : undefined,
4527
4428
  };
4528
4429
  };
4529
4430
  var deserializeAws_restJson1IssueList = function (output, context) {
@@ -4563,17 +4464,13 @@ var deserializeAws_restJson1LaunchTemplateSpecification = function (output, cont
4563
4464
  };
4564
4465
  var deserializeAws_restJson1Logging = function (output, context) {
4565
4466
  return {
4566
- clusterLogging: output.clusterLogging !== undefined && output.clusterLogging !== null
4567
- ? deserializeAws_restJson1LogSetups(output.clusterLogging, context)
4568
- : undefined,
4467
+ clusterLogging: output.clusterLogging != null ? deserializeAws_restJson1LogSetups(output.clusterLogging, context) : undefined,
4569
4468
  };
4570
4469
  };
4571
4470
  var deserializeAws_restJson1LogSetup = function (output, context) {
4572
4471
  return {
4573
4472
  enabled: __expectBoolean(output.enabled),
4574
- types: output.types !== undefined && output.types !== null
4575
- ? deserializeAws_restJson1LogTypes(output.types, context)
4576
- : undefined,
4473
+ types: output.types != null ? deserializeAws_restJson1LogTypes(output.types, context) : undefined,
4577
4474
  };
4578
4475
  };
4579
4476
  var deserializeAws_restJson1LogSetups = function (output, context) {
@@ -4603,49 +4500,31 @@ var deserializeAws_restJson1Nodegroup = function (output, context) {
4603
4500
  amiType: __expectString(output.amiType),
4604
4501
  capacityType: __expectString(output.capacityType),
4605
4502
  clusterName: __expectString(output.clusterName),
4606
- createdAt: output.createdAt !== undefined && output.createdAt !== null
4607
- ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.createdAt)))
4608
- : undefined,
4503
+ createdAt: output.createdAt != null ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.createdAt))) : undefined,
4609
4504
  diskSize: __expectInt32(output.diskSize),
4610
- health: output.health !== undefined && output.health !== null
4611
- ? deserializeAws_restJson1NodegroupHealth(output.health, context)
4612
- : undefined,
4613
- instanceTypes: output.instanceTypes !== undefined && output.instanceTypes !== null
4614
- ? deserializeAws_restJson1StringList(output.instanceTypes, context)
4615
- : undefined,
4616
- labels: output.labels !== undefined && output.labels !== null
4617
- ? deserializeAws_restJson1labelsMap(output.labels, context)
4618
- : undefined,
4619
- launchTemplate: output.launchTemplate !== undefined && output.launchTemplate !== null
4505
+ health: output.health != null ? deserializeAws_restJson1NodegroupHealth(output.health, context) : undefined,
4506
+ instanceTypes: output.instanceTypes != null ? deserializeAws_restJson1StringList(output.instanceTypes, context) : undefined,
4507
+ labels: output.labels != null ? deserializeAws_restJson1labelsMap(output.labels, context) : undefined,
4508
+ launchTemplate: output.launchTemplate != null
4620
4509
  ? deserializeAws_restJson1LaunchTemplateSpecification(output.launchTemplate, context)
4621
4510
  : undefined,
4622
- modifiedAt: output.modifiedAt !== undefined && output.modifiedAt !== null
4623
- ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.modifiedAt)))
4624
- : undefined,
4511
+ modifiedAt: output.modifiedAt != null ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.modifiedAt))) : undefined,
4625
4512
  nodeRole: __expectString(output.nodeRole),
4626
4513
  nodegroupArn: __expectString(output.nodegroupArn),
4627
4514
  nodegroupName: __expectString(output.nodegroupName),
4628
4515
  releaseVersion: __expectString(output.releaseVersion),
4629
- remoteAccess: output.remoteAccess !== undefined && output.remoteAccess !== null
4516
+ remoteAccess: output.remoteAccess != null
4630
4517
  ? deserializeAws_restJson1RemoteAccessConfig(output.remoteAccess, context)
4631
4518
  : undefined,
4632
- resources: output.resources !== undefined && output.resources !== null
4633
- ? deserializeAws_restJson1NodegroupResources(output.resources, context)
4634
- : undefined,
4635
- scalingConfig: output.scalingConfig !== undefined && output.scalingConfig !== null
4519
+ resources: output.resources != null ? deserializeAws_restJson1NodegroupResources(output.resources, context) : undefined,
4520
+ scalingConfig: output.scalingConfig != null
4636
4521
  ? deserializeAws_restJson1NodegroupScalingConfig(output.scalingConfig, context)
4637
4522
  : undefined,
4638
4523
  status: __expectString(output.status),
4639
- subnets: output.subnets !== undefined && output.subnets !== null
4640
- ? deserializeAws_restJson1StringList(output.subnets, context)
4641
- : undefined,
4642
- tags: output.tags !== undefined && output.tags !== null
4643
- ? deserializeAws_restJson1TagMap(output.tags, context)
4644
- : undefined,
4645
- taints: output.taints !== undefined && output.taints !== null
4646
- ? deserializeAws_restJson1taintsList(output.taints, context)
4647
- : undefined,
4648
- updateConfig: output.updateConfig !== undefined && output.updateConfig !== null
4524
+ subnets: output.subnets != null ? deserializeAws_restJson1StringList(output.subnets, context) : undefined,
4525
+ tags: output.tags != null ? deserializeAws_restJson1TagMap(output.tags, context) : undefined,
4526
+ taints: output.taints != null ? deserializeAws_restJson1taintsList(output.taints, context) : undefined,
4527
+ updateConfig: output.updateConfig != null
4649
4528
  ? deserializeAws_restJson1NodegroupUpdateConfig(output.updateConfig, context)
4650
4529
  : undefined,
4651
4530
  version: __expectString(output.version),
@@ -4653,14 +4532,12 @@ var deserializeAws_restJson1Nodegroup = function (output, context) {
4653
4532
  };
4654
4533
  var deserializeAws_restJson1NodegroupHealth = function (output, context) {
4655
4534
  return {
4656
- issues: output.issues !== undefined && output.issues !== null
4657
- ? deserializeAws_restJson1IssueList(output.issues, context)
4658
- : undefined,
4535
+ issues: output.issues != null ? deserializeAws_restJson1IssueList(output.issues, context) : undefined,
4659
4536
  };
4660
4537
  };
4661
4538
  var deserializeAws_restJson1NodegroupResources = function (output, context) {
4662
4539
  return {
4663
- autoScalingGroups: output.autoScalingGroups !== undefined && output.autoScalingGroups !== null
4540
+ autoScalingGroups: output.autoScalingGroups != null
4664
4541
  ? deserializeAws_restJson1AutoScalingGroupList(output.autoScalingGroups, context)
4665
4542
  : undefined,
4666
4543
  remoteAccessSecurityGroup: __expectString(output.remoteAccessSecurityGroup),
@@ -4693,13 +4570,11 @@ var deserializeAws_restJson1OidcIdentityProviderConfig = function (output, conte
4693
4570
  identityProviderConfigArn: __expectString(output.identityProviderConfigArn),
4694
4571
  identityProviderConfigName: __expectString(output.identityProviderConfigName),
4695
4572
  issuerUrl: __expectString(output.issuerUrl),
4696
- requiredClaims: output.requiredClaims !== undefined && output.requiredClaims !== null
4573
+ requiredClaims: output.requiredClaims != null
4697
4574
  ? deserializeAws_restJson1requiredClaimsMap(output.requiredClaims, context)
4698
4575
  : undefined,
4699
4576
  status: __expectString(output.status),
4700
- tags: output.tags !== undefined && output.tags !== null
4701
- ? deserializeAws_restJson1TagMap(output.tags, context)
4702
- : undefined,
4577
+ tags: output.tags != null ? deserializeAws_restJson1TagMap(output.tags, context) : undefined,
4703
4578
  usernameClaim: __expectString(output.usernameClaim),
4704
4579
  usernamePrefix: __expectString(output.usernamePrefix),
4705
4580
  };
@@ -4712,7 +4587,7 @@ var deserializeAws_restJson1Provider = function (output, context) {
4712
4587
  var deserializeAws_restJson1RemoteAccessConfig = function (output, context) {
4713
4588
  return {
4714
4589
  ec2SshKey: __expectString(output.ec2SshKey),
4715
- sourceSecurityGroups: output.sourceSecurityGroups !== undefined && output.sourceSecurityGroups !== null
4590
+ sourceSecurityGroups: output.sourceSecurityGroups != null
4716
4591
  ? deserializeAws_restJson1StringList(output.sourceSecurityGroups, context)
4717
4592
  : undefined,
4718
4593
  };
@@ -4768,16 +4643,10 @@ var deserializeAws_restJson1taintsList = function (output, context) {
4768
4643
  };
4769
4644
  var deserializeAws_restJson1Update = function (output, context) {
4770
4645
  return {
4771
- createdAt: output.createdAt !== undefined && output.createdAt !== null
4772
- ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.createdAt)))
4773
- : undefined,
4774
- errors: output.errors !== undefined && output.errors !== null
4775
- ? deserializeAws_restJson1ErrorDetails(output.errors, context)
4776
- : undefined,
4646
+ createdAt: output.createdAt != null ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.createdAt))) : undefined,
4647
+ errors: output.errors != null ? deserializeAws_restJson1ErrorDetails(output.errors, context) : undefined,
4777
4648
  id: __expectString(output.id),
4778
- params: output.params !== undefined && output.params !== null
4779
- ? deserializeAws_restJson1UpdateParams(output.params, context)
4780
- : undefined,
4649
+ params: output.params != null ? deserializeAws_restJson1UpdateParams(output.params, context) : undefined,
4781
4650
  status: __expectString(output.status),
4782
4651
  type: __expectString(output.type),
4783
4652
  };
@@ -4804,15 +4673,13 @@ var deserializeAws_restJson1VpcConfigResponse = function (output, context) {
4804
4673
  clusterSecurityGroupId: __expectString(output.clusterSecurityGroupId),
4805
4674
  endpointPrivateAccess: __expectBoolean(output.endpointPrivateAccess),
4806
4675
  endpointPublicAccess: __expectBoolean(output.endpointPublicAccess),
4807
- publicAccessCidrs: output.publicAccessCidrs !== undefined && output.publicAccessCidrs !== null
4676
+ publicAccessCidrs: output.publicAccessCidrs != null
4808
4677
  ? deserializeAws_restJson1StringList(output.publicAccessCidrs, context)
4809
4678
  : undefined,
4810
- securityGroupIds: output.securityGroupIds !== undefined && output.securityGroupIds !== null
4679
+ securityGroupIds: output.securityGroupIds != null
4811
4680
  ? deserializeAws_restJson1StringList(output.securityGroupIds, context)
4812
4681
  : undefined,
4813
- subnetIds: output.subnetIds !== undefined && output.subnetIds !== null
4814
- ? deserializeAws_restJson1StringList(output.subnetIds, context)
4815
- : undefined,
4682
+ subnetIds: output.subnetIds != null ? deserializeAws_restJson1StringList(output.subnetIds, context) : undefined,
4816
4683
  vpcId: __expectString(output.vpcId),
4817
4684
  };
4818
4685
  };
@@ -4854,6 +4721,9 @@ var loadRestJsonErrorCode = function (output, data) {
4854
4721
  var findKey = function (object, key) { return Object.keys(object).find(function (k) { return k.toLowerCase() === key.toLowerCase(); }); };
4855
4722
  var sanitizeErrorCode = function (rawValue) {
4856
4723
  var cleanValue = rawValue;
4724
+ if (typeof cleanValue === "number") {
4725
+ cleanValue = cleanValue.toString();
4726
+ }
4857
4727
  if (cleanValue.indexOf(":") >= 0) {
4858
4728
  cleanValue = cleanValue.split(":")[0];
4859
4729
  }