@aws-sdk/client-eks 3.121.0 → 3.127.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +8 -0
- package/dist-cjs/protocols/Aws_restJson1.js +158 -291
- package/dist-es/protocols/Aws_restJson1.js +106 -239
- package/package.json +27 -27
|
@@ -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
|
|
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
|
|
69
|
-
|
|
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
|
|
103
|
-
...(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
|
|
106
|
-
|
|
107
|
-
...(input.
|
|
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
|
|
133
|
-
input.encryptionConfig !== null && {
|
|
128
|
+
...(input.encryptionConfig != null && {
|
|
134
129
|
encryptionConfig: serializeAws_restJson1EncryptionConfigList(input.encryptionConfig, context),
|
|
135
130
|
}),
|
|
136
|
-
...(input.kubernetesNetworkConfig
|
|
137
|
-
input.kubernetesNetworkConfig !== null && {
|
|
131
|
+
...(input.kubernetesNetworkConfig != null && {
|
|
138
132
|
kubernetesNetworkConfig: serializeAws_restJson1KubernetesNetworkConfigRequest(input.kubernetesNetworkConfig, context),
|
|
139
133
|
}),
|
|
140
|
-
...(input.logging
|
|
141
|
-
|
|
142
|
-
...(input.
|
|
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
|
|
148
|
-
...(input.tags
|
|
149
|
-
...(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
|
|
183
|
-
|
|
184
|
-
...(input.
|
|
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
|
|
191
|
-
|
|
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
|
|
225
|
-
...(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
|
|
228
|
-
...(input.instanceTypes
|
|
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
|
|
233
|
-
|
|
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
|
|
239
|
-
...(input.nodegroupName
|
|
240
|
-
...(input.releaseVersion
|
|
241
|
-
|
|
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
|
|
247
|
-
input.scalingConfig !== null && {
|
|
229
|
+
...(input.scalingConfig != null && {
|
|
248
230
|
scalingConfig: serializeAws_restJson1NodegroupScalingConfig(input.scalingConfig, context),
|
|
249
231
|
}),
|
|
250
|
-
...(input.subnets
|
|
251
|
-
|
|
252
|
-
...(input.
|
|
253
|
-
...(input.
|
|
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
|
|
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
|
|
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
|
|
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
|
|
929
|
-
input.connectorConfig !== null && {
|
|
905
|
+
...(input.connectorConfig != null && {
|
|
930
906
|
connectorConfig: serializeAws_restJson1ConnectorConfigRequest(input.connectorConfig, context),
|
|
931
907
|
}),
|
|
932
|
-
...(input.name
|
|
933
|
-
...(input.tags
|
|
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
|
|
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
|
|
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
|
|
1040
|
-
|
|
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
|
|
1076
|
-
|
|
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
|
|
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
|
|
1158
|
-
|
|
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
|
|
1164
|
-
|
|
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
|
|
1213
|
-
...(input.launchTemplate
|
|
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
|
|
1218
|
-
|
|
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,
|
|
@@ -3189,16 +3155,14 @@ const deserializeAws_restJson1UnsupportedAvailabilityZoneExceptionResponse = asy
|
|
|
3189
3155
|
};
|
|
3190
3156
|
const serializeAws_restJson1ConnectorConfigRequest = (input, context) => {
|
|
3191
3157
|
return {
|
|
3192
|
-
...(input.provider
|
|
3193
|
-
...(input.roleArn
|
|
3158
|
+
...(input.provider != null && { provider: input.provider }),
|
|
3159
|
+
...(input.roleArn != null && { roleArn: input.roleArn }),
|
|
3194
3160
|
};
|
|
3195
3161
|
};
|
|
3196
3162
|
const serializeAws_restJson1EncryptionConfig = (input, context) => {
|
|
3197
3163
|
return {
|
|
3198
|
-
...(input.provider
|
|
3199
|
-
|
|
3200
|
-
...(input.resources !== undefined &&
|
|
3201
|
-
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) }),
|
|
3202
3166
|
};
|
|
3203
3167
|
};
|
|
3204
3168
|
const serializeAws_restJson1EncryptionConfigList = (input, context) => {
|
|
@@ -3224,9 +3188,8 @@ const serializeAws_restJson1FargateProfileLabel = (input, context) => {
|
|
|
3224
3188
|
};
|
|
3225
3189
|
const serializeAws_restJson1FargateProfileSelector = (input, context) => {
|
|
3226
3190
|
return {
|
|
3227
|
-
...(input.labels
|
|
3228
|
-
|
|
3229
|
-
...(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 }),
|
|
3230
3193
|
};
|
|
3231
3194
|
};
|
|
3232
3195
|
const serializeAws_restJson1FargateProfileSelectors = (input, context) => {
|
|
@@ -3241,15 +3204,14 @@ const serializeAws_restJson1FargateProfileSelectors = (input, context) => {
|
|
|
3241
3204
|
};
|
|
3242
3205
|
const serializeAws_restJson1IdentityProviderConfig = (input, context) => {
|
|
3243
3206
|
return {
|
|
3244
|
-
...(input.name
|
|
3245
|
-
...(input.type
|
|
3207
|
+
...(input.name != null && { name: input.name }),
|
|
3208
|
+
...(input.type != null && { type: input.type }),
|
|
3246
3209
|
};
|
|
3247
3210
|
};
|
|
3248
3211
|
const serializeAws_restJson1KubernetesNetworkConfigRequest = (input, context) => {
|
|
3249
3212
|
return {
|
|
3250
|
-
...(input.ipFamily
|
|
3251
|
-
...(input.serviceIpv4Cidr
|
|
3252
|
-
input.serviceIpv4Cidr !== null && { serviceIpv4Cidr: input.serviceIpv4Cidr }),
|
|
3213
|
+
...(input.ipFamily != null && { ipFamily: input.ipFamily }),
|
|
3214
|
+
...(input.serviceIpv4Cidr != null && { serviceIpv4Cidr: input.serviceIpv4Cidr }),
|
|
3253
3215
|
};
|
|
3254
3216
|
};
|
|
3255
3217
|
const serializeAws_restJson1labelsKeyList = (input, context) => {
|
|
@@ -3275,24 +3237,22 @@ const serializeAws_restJson1labelsMap = (input, context) => {
|
|
|
3275
3237
|
};
|
|
3276
3238
|
const serializeAws_restJson1LaunchTemplateSpecification = (input, context) => {
|
|
3277
3239
|
return {
|
|
3278
|
-
...(input.id
|
|
3279
|
-
...(input.name
|
|
3280
|
-
...(input.version
|
|
3240
|
+
...(input.id != null && { id: input.id }),
|
|
3241
|
+
...(input.name != null && { name: input.name }),
|
|
3242
|
+
...(input.version != null && { version: input.version }),
|
|
3281
3243
|
};
|
|
3282
3244
|
};
|
|
3283
3245
|
const serializeAws_restJson1Logging = (input, context) => {
|
|
3284
3246
|
return {
|
|
3285
|
-
...(input.clusterLogging
|
|
3286
|
-
input.clusterLogging !== null && {
|
|
3247
|
+
...(input.clusterLogging != null && {
|
|
3287
3248
|
clusterLogging: serializeAws_restJson1LogSetups(input.clusterLogging, context),
|
|
3288
3249
|
}),
|
|
3289
3250
|
};
|
|
3290
3251
|
};
|
|
3291
3252
|
const serializeAws_restJson1LogSetup = (input, context) => {
|
|
3292
3253
|
return {
|
|
3293
|
-
...(input.enabled
|
|
3294
|
-
...(input.types
|
|
3295
|
-
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) }),
|
|
3296
3256
|
};
|
|
3297
3257
|
};
|
|
3298
3258
|
const serializeAws_restJson1LogSetups = (input, context) => {
|
|
@@ -3317,46 +3277,40 @@ const serializeAws_restJson1LogTypes = (input, context) => {
|
|
|
3317
3277
|
};
|
|
3318
3278
|
const serializeAws_restJson1NodegroupScalingConfig = (input, context) => {
|
|
3319
3279
|
return {
|
|
3320
|
-
...(input.desiredSize
|
|
3321
|
-
...(input.maxSize
|
|
3322
|
-
...(input.minSize
|
|
3280
|
+
...(input.desiredSize != null && { desiredSize: input.desiredSize }),
|
|
3281
|
+
...(input.maxSize != null && { maxSize: input.maxSize }),
|
|
3282
|
+
...(input.minSize != null && { minSize: input.minSize }),
|
|
3323
3283
|
};
|
|
3324
3284
|
};
|
|
3325
3285
|
const serializeAws_restJson1NodegroupUpdateConfig = (input, context) => {
|
|
3326
3286
|
return {
|
|
3327
|
-
...(input.maxUnavailable
|
|
3328
|
-
|
|
3329
|
-
...(input.maxUnavailablePercentage !== undefined &&
|
|
3330
|
-
input.maxUnavailablePercentage !== null && { maxUnavailablePercentage: input.maxUnavailablePercentage }),
|
|
3287
|
+
...(input.maxUnavailable != null && { maxUnavailable: input.maxUnavailable }),
|
|
3288
|
+
...(input.maxUnavailablePercentage != null && { maxUnavailablePercentage: input.maxUnavailablePercentage }),
|
|
3331
3289
|
};
|
|
3332
3290
|
};
|
|
3333
3291
|
const serializeAws_restJson1OidcIdentityProviderConfigRequest = (input, context) => {
|
|
3334
3292
|
return {
|
|
3335
|
-
...(input.clientId
|
|
3336
|
-
...(input.groupsClaim
|
|
3337
|
-
...(input.groupsPrefix
|
|
3338
|
-
...(input.identityProviderConfigName
|
|
3339
|
-
|
|
3340
|
-
...(input.
|
|
3341
|
-
...(input.requiredClaims !== undefined &&
|
|
3342
|
-
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 && {
|
|
3343
3299
|
requiredClaims: serializeAws_restJson1requiredClaimsMap(input.requiredClaims, context),
|
|
3344
3300
|
}),
|
|
3345
|
-
...(input.usernameClaim
|
|
3346
|
-
...(input.usernamePrefix
|
|
3347
|
-
input.usernamePrefix !== null && { usernamePrefix: input.usernamePrefix }),
|
|
3301
|
+
...(input.usernameClaim != null && { usernameClaim: input.usernameClaim }),
|
|
3302
|
+
...(input.usernamePrefix != null && { usernamePrefix: input.usernamePrefix }),
|
|
3348
3303
|
};
|
|
3349
3304
|
};
|
|
3350
3305
|
const serializeAws_restJson1Provider = (input, context) => {
|
|
3351
3306
|
return {
|
|
3352
|
-
...(input.keyArn
|
|
3307
|
+
...(input.keyArn != null && { keyArn: input.keyArn }),
|
|
3353
3308
|
};
|
|
3354
3309
|
};
|
|
3355
3310
|
const serializeAws_restJson1RemoteAccessConfig = (input, context) => {
|
|
3356
3311
|
return {
|
|
3357
|
-
...(input.ec2SshKey
|
|
3358
|
-
...(input.sourceSecurityGroups
|
|
3359
|
-
input.sourceSecurityGroups !== null && {
|
|
3312
|
+
...(input.ec2SshKey != null && { ec2SshKey: input.ec2SshKey }),
|
|
3313
|
+
...(input.sourceSecurityGroups != null && {
|
|
3360
3314
|
sourceSecurityGroups: serializeAws_restJson1StringList(input.sourceSecurityGroups, context),
|
|
3361
3315
|
}),
|
|
3362
3316
|
};
|
|
@@ -3395,9 +3349,9 @@ const serializeAws_restJson1TagMap = (input, context) => {
|
|
|
3395
3349
|
};
|
|
3396
3350
|
const serializeAws_restJson1Taint = (input, context) => {
|
|
3397
3351
|
return {
|
|
3398
|
-
...(input.effect
|
|
3399
|
-
...(input.key
|
|
3400
|
-
...(input.value
|
|
3352
|
+
...(input.effect != null && { effect: input.effect }),
|
|
3353
|
+
...(input.key != null && { key: input.key }),
|
|
3354
|
+
...(input.value != null && { value: input.value }),
|
|
3401
3355
|
};
|
|
3402
3356
|
};
|
|
3403
3357
|
const serializeAws_restJson1taintsList = (input, context) => {
|
|
@@ -3412,42 +3366,33 @@ const serializeAws_restJson1taintsList = (input, context) => {
|
|
|
3412
3366
|
};
|
|
3413
3367
|
const serializeAws_restJson1UpdateLabelsPayload = (input, context) => {
|
|
3414
3368
|
return {
|
|
3415
|
-
...(input.addOrUpdateLabels
|
|
3416
|
-
input.addOrUpdateLabels !== null && {
|
|
3369
|
+
...(input.addOrUpdateLabels != null && {
|
|
3417
3370
|
addOrUpdateLabels: serializeAws_restJson1labelsMap(input.addOrUpdateLabels, context),
|
|
3418
3371
|
}),
|
|
3419
|
-
...(input.removeLabels
|
|
3420
|
-
input.removeLabels !== null && {
|
|
3372
|
+
...(input.removeLabels != null && {
|
|
3421
3373
|
removeLabels: serializeAws_restJson1labelsKeyList(input.removeLabels, context),
|
|
3422
3374
|
}),
|
|
3423
3375
|
};
|
|
3424
3376
|
};
|
|
3425
3377
|
const serializeAws_restJson1UpdateTaintsPayload = (input, context) => {
|
|
3426
3378
|
return {
|
|
3427
|
-
...(input.addOrUpdateTaints
|
|
3428
|
-
input.addOrUpdateTaints !== null && {
|
|
3379
|
+
...(input.addOrUpdateTaints != null && {
|
|
3429
3380
|
addOrUpdateTaints: serializeAws_restJson1taintsList(input.addOrUpdateTaints, context),
|
|
3430
3381
|
}),
|
|
3431
|
-
...(input.removeTaints
|
|
3432
|
-
input.removeTaints !== null && { removeTaints: serializeAws_restJson1taintsList(input.removeTaints, context) }),
|
|
3382
|
+
...(input.removeTaints != null && { removeTaints: serializeAws_restJson1taintsList(input.removeTaints, context) }),
|
|
3433
3383
|
};
|
|
3434
3384
|
};
|
|
3435
3385
|
const serializeAws_restJson1VpcConfigRequest = (input, context) => {
|
|
3436
3386
|
return {
|
|
3437
|
-
...(input.endpointPrivateAccess
|
|
3438
|
-
|
|
3439
|
-
...(input.
|
|
3440
|
-
input.endpointPublicAccess !== null && { endpointPublicAccess: input.endpointPublicAccess }),
|
|
3441
|
-
...(input.publicAccessCidrs !== undefined &&
|
|
3442
|
-
input.publicAccessCidrs !== null && {
|
|
3387
|
+
...(input.endpointPrivateAccess != null && { endpointPrivateAccess: input.endpointPrivateAccess }),
|
|
3388
|
+
...(input.endpointPublicAccess != null && { endpointPublicAccess: input.endpointPublicAccess }),
|
|
3389
|
+
...(input.publicAccessCidrs != null && {
|
|
3443
3390
|
publicAccessCidrs: serializeAws_restJson1StringList(input.publicAccessCidrs, context),
|
|
3444
3391
|
}),
|
|
3445
|
-
...(input.securityGroupIds
|
|
3446
|
-
input.securityGroupIds !== null && {
|
|
3392
|
+
...(input.securityGroupIds != null && {
|
|
3447
3393
|
securityGroupIds: serializeAws_restJson1StringList(input.securityGroupIds, context),
|
|
3448
3394
|
}),
|
|
3449
|
-
...(input.subnetIds
|
|
3450
|
-
input.subnetIds !== null && { subnetIds: serializeAws_restJson1StringList(input.subnetIds, context) }),
|
|
3395
|
+
...(input.subnetIds != null && { subnetIds: serializeAws_restJson1StringList(input.subnetIds, context) }),
|
|
3451
3396
|
};
|
|
3452
3397
|
};
|
|
3453
3398
|
const deserializeAws_restJson1Addon = (output, context) => {
|
|
@@ -3456,33 +3401,23 @@ const deserializeAws_restJson1Addon = (output, context) => {
|
|
|
3456
3401
|
addonName: (0, smithy_client_1.expectString)(output.addonName),
|
|
3457
3402
|
addonVersion: (0, smithy_client_1.expectString)(output.addonVersion),
|
|
3458
3403
|
clusterName: (0, smithy_client_1.expectString)(output.clusterName),
|
|
3459
|
-
createdAt: output.createdAt
|
|
3460
|
-
|
|
3461
|
-
|
|
3462
|
-
health: output.health !== undefined && output.health !== null
|
|
3463
|
-
? deserializeAws_restJson1AddonHealth(output.health, context)
|
|
3464
|
-
: undefined,
|
|
3465
|
-
modifiedAt: output.modifiedAt !== undefined && output.modifiedAt !== null
|
|
3466
|
-
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.modifiedAt)))
|
|
3467
|
-
: 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,
|
|
3468
3407
|
serviceAccountRoleArn: (0, smithy_client_1.expectString)(output.serviceAccountRoleArn),
|
|
3469
3408
|
status: (0, smithy_client_1.expectString)(output.status),
|
|
3470
|
-
tags: output.tags
|
|
3471
|
-
? deserializeAws_restJson1TagMap(output.tags, context)
|
|
3472
|
-
: undefined,
|
|
3409
|
+
tags: output.tags != null ? deserializeAws_restJson1TagMap(output.tags, context) : undefined,
|
|
3473
3410
|
};
|
|
3474
3411
|
};
|
|
3475
3412
|
const deserializeAws_restJson1AddonHealth = (output, context) => {
|
|
3476
3413
|
return {
|
|
3477
|
-
issues: output.issues
|
|
3478
|
-
? deserializeAws_restJson1AddonIssueList(output.issues, context)
|
|
3479
|
-
: undefined,
|
|
3414
|
+
issues: output.issues != null ? deserializeAws_restJson1AddonIssueList(output.issues, context) : undefined,
|
|
3480
3415
|
};
|
|
3481
3416
|
};
|
|
3482
3417
|
const deserializeAws_restJson1AddonInfo = (output, context) => {
|
|
3483
3418
|
return {
|
|
3484
3419
|
addonName: (0, smithy_client_1.expectString)(output.addonName),
|
|
3485
|
-
addonVersions: output.addonVersions
|
|
3420
|
+
addonVersions: output.addonVersions != null
|
|
3486
3421
|
? deserializeAws_restJson1AddonVersionInfoList(output.addonVersions, context)
|
|
3487
3422
|
: undefined,
|
|
3488
3423
|
type: (0, smithy_client_1.expectString)(output.type),
|
|
@@ -3492,9 +3427,7 @@ const deserializeAws_restJson1AddonIssue = (output, context) => {
|
|
|
3492
3427
|
return {
|
|
3493
3428
|
code: (0, smithy_client_1.expectString)(output.code),
|
|
3494
3429
|
message: (0, smithy_client_1.expectString)(output.message),
|
|
3495
|
-
resourceIds: output.resourceIds
|
|
3496
|
-
? deserializeAws_restJson1StringList(output.resourceIds, context)
|
|
3497
|
-
: undefined,
|
|
3430
|
+
resourceIds: output.resourceIds != null ? deserializeAws_restJson1StringList(output.resourceIds, context) : undefined,
|
|
3498
3431
|
};
|
|
3499
3432
|
};
|
|
3500
3433
|
const deserializeAws_restJson1AddonIssueList = (output, context) => {
|
|
@@ -3522,10 +3455,8 @@ const deserializeAws_restJson1Addons = (output, context) => {
|
|
|
3522
3455
|
const deserializeAws_restJson1AddonVersionInfo = (output, context) => {
|
|
3523
3456
|
return {
|
|
3524
3457
|
addonVersion: (0, smithy_client_1.expectString)(output.addonVersion),
|
|
3525
|
-
architecture: output.architecture
|
|
3526
|
-
|
|
3527
|
-
: undefined,
|
|
3528
|
-
compatibilities: output.compatibilities !== undefined && output.compatibilities !== null
|
|
3458
|
+
architecture: output.architecture != null ? deserializeAws_restJson1StringList(output.architecture, context) : undefined,
|
|
3459
|
+
compatibilities: output.compatibilities != null
|
|
3529
3460
|
? deserializeAws_restJson1Compatibilities(output.compatibilities, context)
|
|
3530
3461
|
: undefined,
|
|
3531
3462
|
};
|
|
@@ -3565,39 +3496,31 @@ const deserializeAws_restJson1Certificate = (output, context) => {
|
|
|
3565
3496
|
const deserializeAws_restJson1Cluster = (output, context) => {
|
|
3566
3497
|
return {
|
|
3567
3498
|
arn: (0, smithy_client_1.expectString)(output.arn),
|
|
3568
|
-
certificateAuthority: output.certificateAuthority
|
|
3499
|
+
certificateAuthority: output.certificateAuthority != null
|
|
3569
3500
|
? deserializeAws_restJson1Certificate(output.certificateAuthority, context)
|
|
3570
3501
|
: undefined,
|
|
3571
3502
|
clientRequestToken: (0, smithy_client_1.expectString)(output.clientRequestToken),
|
|
3572
|
-
connectorConfig: output.connectorConfig
|
|
3503
|
+
connectorConfig: output.connectorConfig != null
|
|
3573
3504
|
? deserializeAws_restJson1ConnectorConfigResponse(output.connectorConfig, context)
|
|
3574
3505
|
: undefined,
|
|
3575
|
-
createdAt: output.createdAt
|
|
3576
|
-
|
|
3577
|
-
: undefined,
|
|
3578
|
-
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
|
|
3579
3508
|
? deserializeAws_restJson1EncryptionConfigList(output.encryptionConfig, context)
|
|
3580
3509
|
: undefined,
|
|
3581
3510
|
endpoint: (0, smithy_client_1.expectString)(output.endpoint),
|
|
3582
|
-
identity: output.identity
|
|
3583
|
-
|
|
3584
|
-
: undefined,
|
|
3585
|
-
kubernetesNetworkConfig: output.kubernetesNetworkConfig !== undefined && output.kubernetesNetworkConfig !== null
|
|
3511
|
+
identity: output.identity != null ? deserializeAws_restJson1Identity(output.identity, context) : undefined,
|
|
3512
|
+
kubernetesNetworkConfig: output.kubernetesNetworkConfig != null
|
|
3586
3513
|
? deserializeAws_restJson1KubernetesNetworkConfigResponse(output.kubernetesNetworkConfig, context)
|
|
3587
3514
|
: undefined,
|
|
3588
|
-
logging: output.logging
|
|
3589
|
-
? deserializeAws_restJson1Logging(output.logging, context)
|
|
3590
|
-
: undefined,
|
|
3515
|
+
logging: output.logging != null ? deserializeAws_restJson1Logging(output.logging, context) : undefined,
|
|
3591
3516
|
name: (0, smithy_client_1.expectString)(output.name),
|
|
3592
3517
|
platformVersion: (0, smithy_client_1.expectString)(output.platformVersion),
|
|
3593
|
-
resourcesVpcConfig: output.resourcesVpcConfig
|
|
3518
|
+
resourcesVpcConfig: output.resourcesVpcConfig != null
|
|
3594
3519
|
? deserializeAws_restJson1VpcConfigResponse(output.resourcesVpcConfig, context)
|
|
3595
3520
|
: undefined,
|
|
3596
3521
|
roleArn: (0, smithy_client_1.expectString)(output.roleArn),
|
|
3597
3522
|
status: (0, smithy_client_1.expectString)(output.status),
|
|
3598
|
-
tags: output.tags
|
|
3599
|
-
? deserializeAws_restJson1TagMap(output.tags, context)
|
|
3600
|
-
: undefined,
|
|
3523
|
+
tags: output.tags != null ? deserializeAws_restJson1TagMap(output.tags, context) : undefined,
|
|
3601
3524
|
version: (0, smithy_client_1.expectString)(output.version),
|
|
3602
3525
|
};
|
|
3603
3526
|
};
|
|
@@ -3616,7 +3539,7 @@ const deserializeAws_restJson1Compatibility = (output, context) => {
|
|
|
3616
3539
|
return {
|
|
3617
3540
|
clusterVersion: (0, smithy_client_1.expectString)(output.clusterVersion),
|
|
3618
3541
|
defaultVersion: (0, smithy_client_1.expectBoolean)(output.defaultVersion),
|
|
3619
|
-
platformVersions: output.platformVersions
|
|
3542
|
+
platformVersions: output.platformVersions != null
|
|
3620
3543
|
? deserializeAws_restJson1StringList(output.platformVersions, context)
|
|
3621
3544
|
: undefined,
|
|
3622
3545
|
};
|
|
@@ -3624,7 +3547,7 @@ const deserializeAws_restJson1Compatibility = (output, context) => {
|
|
|
3624
3547
|
const deserializeAws_restJson1ConnectorConfigResponse = (output, context) => {
|
|
3625
3548
|
return {
|
|
3626
3549
|
activationCode: (0, smithy_client_1.expectString)(output.activationCode),
|
|
3627
|
-
activationExpiry: output.activationExpiry
|
|
3550
|
+
activationExpiry: output.activationExpiry != null
|
|
3628
3551
|
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.activationExpiry)))
|
|
3629
3552
|
: undefined,
|
|
3630
3553
|
activationId: (0, smithy_client_1.expectString)(output.activationId),
|
|
@@ -3634,12 +3557,8 @@ const deserializeAws_restJson1ConnectorConfigResponse = (output, context) => {
|
|
|
3634
3557
|
};
|
|
3635
3558
|
const deserializeAws_restJson1EncryptionConfig = (output, context) => {
|
|
3636
3559
|
return {
|
|
3637
|
-
provider: output.provider
|
|
3638
|
-
|
|
3639
|
-
: undefined,
|
|
3640
|
-
resources: output.resources !== undefined && output.resources !== null
|
|
3641
|
-
? deserializeAws_restJson1StringList(output.resources, context)
|
|
3642
|
-
: undefined,
|
|
3560
|
+
provider: output.provider != null ? deserializeAws_restJson1Provider(output.provider, context) : undefined,
|
|
3561
|
+
resources: output.resources != null ? deserializeAws_restJson1StringList(output.resources, context) : undefined,
|
|
3643
3562
|
};
|
|
3644
3563
|
};
|
|
3645
3564
|
const deserializeAws_restJson1EncryptionConfigList = (output, context) => {
|
|
@@ -3657,9 +3576,7 @@ const deserializeAws_restJson1ErrorDetail = (output, context) => {
|
|
|
3657
3576
|
return {
|
|
3658
3577
|
errorCode: (0, smithy_client_1.expectString)(output.errorCode),
|
|
3659
3578
|
errorMessage: (0, smithy_client_1.expectString)(output.errorMessage),
|
|
3660
|
-
resourceIds: output.resourceIds
|
|
3661
|
-
? deserializeAws_restJson1StringList(output.resourceIds, context)
|
|
3662
|
-
: undefined,
|
|
3579
|
+
resourceIds: output.resourceIds != null ? deserializeAws_restJson1StringList(output.resourceIds, context) : undefined,
|
|
3663
3580
|
};
|
|
3664
3581
|
};
|
|
3665
3582
|
const deserializeAws_restJson1ErrorDetails = (output, context) => {
|
|
@@ -3676,22 +3593,14 @@ const deserializeAws_restJson1ErrorDetails = (output, context) => {
|
|
|
3676
3593
|
const deserializeAws_restJson1FargateProfile = (output, context) => {
|
|
3677
3594
|
return {
|
|
3678
3595
|
clusterName: (0, smithy_client_1.expectString)(output.clusterName),
|
|
3679
|
-
createdAt: output.createdAt
|
|
3680
|
-
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.createdAt)))
|
|
3681
|
-
: undefined,
|
|
3596
|
+
createdAt: output.createdAt != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.createdAt))) : undefined,
|
|
3682
3597
|
fargateProfileArn: (0, smithy_client_1.expectString)(output.fargateProfileArn),
|
|
3683
3598
|
fargateProfileName: (0, smithy_client_1.expectString)(output.fargateProfileName),
|
|
3684
3599
|
podExecutionRoleArn: (0, smithy_client_1.expectString)(output.podExecutionRoleArn),
|
|
3685
|
-
selectors: output.selectors
|
|
3686
|
-
? deserializeAws_restJson1FargateProfileSelectors(output.selectors, context)
|
|
3687
|
-
: undefined,
|
|
3600
|
+
selectors: output.selectors != null ? deserializeAws_restJson1FargateProfileSelectors(output.selectors, context) : undefined,
|
|
3688
3601
|
status: (0, smithy_client_1.expectString)(output.status),
|
|
3689
|
-
subnets: output.subnets
|
|
3690
|
-
|
|
3691
|
-
: undefined,
|
|
3692
|
-
tags: output.tags !== undefined && output.tags !== null
|
|
3693
|
-
? deserializeAws_restJson1TagMap(output.tags, context)
|
|
3694
|
-
: undefined,
|
|
3602
|
+
subnets: output.subnets != null ? deserializeAws_restJson1StringList(output.subnets, context) : undefined,
|
|
3603
|
+
tags: output.tags != null ? deserializeAws_restJson1TagMap(output.tags, context) : undefined,
|
|
3695
3604
|
};
|
|
3696
3605
|
};
|
|
3697
3606
|
const deserializeAws_restJson1FargateProfileLabel = (output, context) => {
|
|
@@ -3707,9 +3616,7 @@ const deserializeAws_restJson1FargateProfileLabel = (output, context) => {
|
|
|
3707
3616
|
};
|
|
3708
3617
|
const deserializeAws_restJson1FargateProfileSelector = (output, context) => {
|
|
3709
3618
|
return {
|
|
3710
|
-
labels: output.labels
|
|
3711
|
-
? deserializeAws_restJson1FargateProfileLabel(output.labels, context)
|
|
3712
|
-
: undefined,
|
|
3619
|
+
labels: output.labels != null ? deserializeAws_restJson1FargateProfileLabel(output.labels, context) : undefined,
|
|
3713
3620
|
namespace: (0, smithy_client_1.expectString)(output.namespace),
|
|
3714
3621
|
};
|
|
3715
3622
|
};
|
|
@@ -3726,9 +3633,7 @@ const deserializeAws_restJson1FargateProfileSelectors = (output, context) => {
|
|
|
3726
3633
|
};
|
|
3727
3634
|
const deserializeAws_restJson1Identity = (output, context) => {
|
|
3728
3635
|
return {
|
|
3729
|
-
oidc: output.oidc
|
|
3730
|
-
? deserializeAws_restJson1OIDC(output.oidc, context)
|
|
3731
|
-
: undefined,
|
|
3636
|
+
oidc: output.oidc != null ? deserializeAws_restJson1OIDC(output.oidc, context) : undefined,
|
|
3732
3637
|
};
|
|
3733
3638
|
};
|
|
3734
3639
|
const deserializeAws_restJson1IdentityProviderConfig = (output, context) => {
|
|
@@ -3739,9 +3644,7 @@ const deserializeAws_restJson1IdentityProviderConfig = (output, context) => {
|
|
|
3739
3644
|
};
|
|
3740
3645
|
const deserializeAws_restJson1IdentityProviderConfigResponse = (output, context) => {
|
|
3741
3646
|
return {
|
|
3742
|
-
oidc: output.oidc
|
|
3743
|
-
? deserializeAws_restJson1OidcIdentityProviderConfig(output.oidc, context)
|
|
3744
|
-
: undefined,
|
|
3647
|
+
oidc: output.oidc != null ? deserializeAws_restJson1OidcIdentityProviderConfig(output.oidc, context) : undefined,
|
|
3745
3648
|
};
|
|
3746
3649
|
};
|
|
3747
3650
|
const deserializeAws_restJson1IdentityProviderConfigs = (output, context) => {
|
|
@@ -3759,9 +3662,7 @@ const deserializeAws_restJson1Issue = (output, context) => {
|
|
|
3759
3662
|
return {
|
|
3760
3663
|
code: (0, smithy_client_1.expectString)(output.code),
|
|
3761
3664
|
message: (0, smithy_client_1.expectString)(output.message),
|
|
3762
|
-
resourceIds: output.resourceIds
|
|
3763
|
-
? deserializeAws_restJson1StringList(output.resourceIds, context)
|
|
3764
|
-
: undefined,
|
|
3665
|
+
resourceIds: output.resourceIds != null ? deserializeAws_restJson1StringList(output.resourceIds, context) : undefined,
|
|
3765
3666
|
};
|
|
3766
3667
|
};
|
|
3767
3668
|
const deserializeAws_restJson1IssueList = (output, context) => {
|
|
@@ -3802,17 +3703,13 @@ const deserializeAws_restJson1LaunchTemplateSpecification = (output, context) =>
|
|
|
3802
3703
|
};
|
|
3803
3704
|
const deserializeAws_restJson1Logging = (output, context) => {
|
|
3804
3705
|
return {
|
|
3805
|
-
clusterLogging: output.clusterLogging
|
|
3806
|
-
? deserializeAws_restJson1LogSetups(output.clusterLogging, context)
|
|
3807
|
-
: undefined,
|
|
3706
|
+
clusterLogging: output.clusterLogging != null ? deserializeAws_restJson1LogSetups(output.clusterLogging, context) : undefined,
|
|
3808
3707
|
};
|
|
3809
3708
|
};
|
|
3810
3709
|
const deserializeAws_restJson1LogSetup = (output, context) => {
|
|
3811
3710
|
return {
|
|
3812
3711
|
enabled: (0, smithy_client_1.expectBoolean)(output.enabled),
|
|
3813
|
-
types: output.types
|
|
3814
|
-
? deserializeAws_restJson1LogTypes(output.types, context)
|
|
3815
|
-
: undefined,
|
|
3712
|
+
types: output.types != null ? deserializeAws_restJson1LogTypes(output.types, context) : undefined,
|
|
3816
3713
|
};
|
|
3817
3714
|
};
|
|
3818
3715
|
const deserializeAws_restJson1LogSetups = (output, context) => {
|
|
@@ -3842,49 +3739,31 @@ const deserializeAws_restJson1Nodegroup = (output, context) => {
|
|
|
3842
3739
|
amiType: (0, smithy_client_1.expectString)(output.amiType),
|
|
3843
3740
|
capacityType: (0, smithy_client_1.expectString)(output.capacityType),
|
|
3844
3741
|
clusterName: (0, smithy_client_1.expectString)(output.clusterName),
|
|
3845
|
-
createdAt: output.createdAt
|
|
3846
|
-
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.createdAt)))
|
|
3847
|
-
: undefined,
|
|
3742
|
+
createdAt: output.createdAt != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.createdAt))) : undefined,
|
|
3848
3743
|
diskSize: (0, smithy_client_1.expectInt32)(output.diskSize),
|
|
3849
|
-
health: output.health
|
|
3850
|
-
|
|
3851
|
-
|
|
3852
|
-
|
|
3853
|
-
? deserializeAws_restJson1StringList(output.instanceTypes, context)
|
|
3854
|
-
: undefined,
|
|
3855
|
-
labels: output.labels !== undefined && output.labels !== null
|
|
3856
|
-
? deserializeAws_restJson1labelsMap(output.labels, context)
|
|
3857
|
-
: undefined,
|
|
3858
|
-
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
|
|
3859
3748
|
? deserializeAws_restJson1LaunchTemplateSpecification(output.launchTemplate, context)
|
|
3860
3749
|
: undefined,
|
|
3861
|
-
modifiedAt: output.modifiedAt
|
|
3862
|
-
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.modifiedAt)))
|
|
3863
|
-
: undefined,
|
|
3750
|
+
modifiedAt: output.modifiedAt != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.modifiedAt))) : undefined,
|
|
3864
3751
|
nodeRole: (0, smithy_client_1.expectString)(output.nodeRole),
|
|
3865
3752
|
nodegroupArn: (0, smithy_client_1.expectString)(output.nodegroupArn),
|
|
3866
3753
|
nodegroupName: (0, smithy_client_1.expectString)(output.nodegroupName),
|
|
3867
3754
|
releaseVersion: (0, smithy_client_1.expectString)(output.releaseVersion),
|
|
3868
|
-
remoteAccess: output.remoteAccess
|
|
3755
|
+
remoteAccess: output.remoteAccess != null
|
|
3869
3756
|
? deserializeAws_restJson1RemoteAccessConfig(output.remoteAccess, context)
|
|
3870
3757
|
: undefined,
|
|
3871
|
-
resources: output.resources
|
|
3872
|
-
|
|
3873
|
-
: undefined,
|
|
3874
|
-
scalingConfig: output.scalingConfig !== undefined && output.scalingConfig !== null
|
|
3758
|
+
resources: output.resources != null ? deserializeAws_restJson1NodegroupResources(output.resources, context) : undefined,
|
|
3759
|
+
scalingConfig: output.scalingConfig != null
|
|
3875
3760
|
? deserializeAws_restJson1NodegroupScalingConfig(output.scalingConfig, context)
|
|
3876
3761
|
: undefined,
|
|
3877
3762
|
status: (0, smithy_client_1.expectString)(output.status),
|
|
3878
|
-
subnets: output.subnets
|
|
3879
|
-
|
|
3880
|
-
|
|
3881
|
-
|
|
3882
|
-
? deserializeAws_restJson1TagMap(output.tags, context)
|
|
3883
|
-
: undefined,
|
|
3884
|
-
taints: output.taints !== undefined && output.taints !== null
|
|
3885
|
-
? deserializeAws_restJson1taintsList(output.taints, context)
|
|
3886
|
-
: undefined,
|
|
3887
|
-
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
|
|
3888
3767
|
? deserializeAws_restJson1NodegroupUpdateConfig(output.updateConfig, context)
|
|
3889
3768
|
: undefined,
|
|
3890
3769
|
version: (0, smithy_client_1.expectString)(output.version),
|
|
@@ -3892,14 +3771,12 @@ const deserializeAws_restJson1Nodegroup = (output, context) => {
|
|
|
3892
3771
|
};
|
|
3893
3772
|
const deserializeAws_restJson1NodegroupHealth = (output, context) => {
|
|
3894
3773
|
return {
|
|
3895
|
-
issues: output.issues
|
|
3896
|
-
? deserializeAws_restJson1IssueList(output.issues, context)
|
|
3897
|
-
: undefined,
|
|
3774
|
+
issues: output.issues != null ? deserializeAws_restJson1IssueList(output.issues, context) : undefined,
|
|
3898
3775
|
};
|
|
3899
3776
|
};
|
|
3900
3777
|
const deserializeAws_restJson1NodegroupResources = (output, context) => {
|
|
3901
3778
|
return {
|
|
3902
|
-
autoScalingGroups: output.autoScalingGroups
|
|
3779
|
+
autoScalingGroups: output.autoScalingGroups != null
|
|
3903
3780
|
? deserializeAws_restJson1AutoScalingGroupList(output.autoScalingGroups, context)
|
|
3904
3781
|
: undefined,
|
|
3905
3782
|
remoteAccessSecurityGroup: (0, smithy_client_1.expectString)(output.remoteAccessSecurityGroup),
|
|
@@ -3932,13 +3809,11 @@ const deserializeAws_restJson1OidcIdentityProviderConfig = (output, context) =>
|
|
|
3932
3809
|
identityProviderConfigArn: (0, smithy_client_1.expectString)(output.identityProviderConfigArn),
|
|
3933
3810
|
identityProviderConfigName: (0, smithy_client_1.expectString)(output.identityProviderConfigName),
|
|
3934
3811
|
issuerUrl: (0, smithy_client_1.expectString)(output.issuerUrl),
|
|
3935
|
-
requiredClaims: output.requiredClaims
|
|
3812
|
+
requiredClaims: output.requiredClaims != null
|
|
3936
3813
|
? deserializeAws_restJson1requiredClaimsMap(output.requiredClaims, context)
|
|
3937
3814
|
: undefined,
|
|
3938
3815
|
status: (0, smithy_client_1.expectString)(output.status),
|
|
3939
|
-
tags: output.tags
|
|
3940
|
-
? deserializeAws_restJson1TagMap(output.tags, context)
|
|
3941
|
-
: undefined,
|
|
3816
|
+
tags: output.tags != null ? deserializeAws_restJson1TagMap(output.tags, context) : undefined,
|
|
3942
3817
|
usernameClaim: (0, smithy_client_1.expectString)(output.usernameClaim),
|
|
3943
3818
|
usernamePrefix: (0, smithy_client_1.expectString)(output.usernamePrefix),
|
|
3944
3819
|
};
|
|
@@ -3951,7 +3826,7 @@ const deserializeAws_restJson1Provider = (output, context) => {
|
|
|
3951
3826
|
const deserializeAws_restJson1RemoteAccessConfig = (output, context) => {
|
|
3952
3827
|
return {
|
|
3953
3828
|
ec2SshKey: (0, smithy_client_1.expectString)(output.ec2SshKey),
|
|
3954
|
-
sourceSecurityGroups: output.sourceSecurityGroups
|
|
3829
|
+
sourceSecurityGroups: output.sourceSecurityGroups != null
|
|
3955
3830
|
? deserializeAws_restJson1StringList(output.sourceSecurityGroups, context)
|
|
3956
3831
|
: undefined,
|
|
3957
3832
|
};
|
|
@@ -4009,16 +3884,10 @@ const deserializeAws_restJson1taintsList = (output, context) => {
|
|
|
4009
3884
|
};
|
|
4010
3885
|
const deserializeAws_restJson1Update = (output, context) => {
|
|
4011
3886
|
return {
|
|
4012
|
-
createdAt: output.createdAt
|
|
4013
|
-
|
|
4014
|
-
: undefined,
|
|
4015
|
-
errors: output.errors !== undefined && output.errors !== null
|
|
4016
|
-
? deserializeAws_restJson1ErrorDetails(output.errors, context)
|
|
4017
|
-
: 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,
|
|
4018
3889
|
id: (0, smithy_client_1.expectString)(output.id),
|
|
4019
|
-
params: output.params
|
|
4020
|
-
? deserializeAws_restJson1UpdateParams(output.params, context)
|
|
4021
|
-
: undefined,
|
|
3890
|
+
params: output.params != null ? deserializeAws_restJson1UpdateParams(output.params, context) : undefined,
|
|
4022
3891
|
status: (0, smithy_client_1.expectString)(output.status),
|
|
4023
3892
|
type: (0, smithy_client_1.expectString)(output.type),
|
|
4024
3893
|
};
|
|
@@ -4045,15 +3914,13 @@ const deserializeAws_restJson1VpcConfigResponse = (output, context) => {
|
|
|
4045
3914
|
clusterSecurityGroupId: (0, smithy_client_1.expectString)(output.clusterSecurityGroupId),
|
|
4046
3915
|
endpointPrivateAccess: (0, smithy_client_1.expectBoolean)(output.endpointPrivateAccess),
|
|
4047
3916
|
endpointPublicAccess: (0, smithy_client_1.expectBoolean)(output.endpointPublicAccess),
|
|
4048
|
-
publicAccessCidrs: output.publicAccessCidrs
|
|
3917
|
+
publicAccessCidrs: output.publicAccessCidrs != null
|
|
4049
3918
|
? deserializeAws_restJson1StringList(output.publicAccessCidrs, context)
|
|
4050
3919
|
: undefined,
|
|
4051
|
-
securityGroupIds: output.securityGroupIds
|
|
3920
|
+
securityGroupIds: output.securityGroupIds != null
|
|
4052
3921
|
? deserializeAws_restJson1StringList(output.securityGroupIds, context)
|
|
4053
3922
|
: undefined,
|
|
4054
|
-
subnetIds: output.subnetIds
|
|
4055
|
-
? deserializeAws_restJson1StringList(output.subnetIds, context)
|
|
4056
|
-
: undefined,
|
|
3923
|
+
subnetIds: output.subnetIds != null ? deserializeAws_restJson1StringList(output.subnetIds, context) : undefined,
|
|
4057
3924
|
vpcId: (0, smithy_client_1.expectString)(output.vpcId),
|
|
4058
3925
|
};
|
|
4059
3926
|
};
|