@aws-sdk/client-eks 3.315.0 → 3.319.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist-cjs/EKS.js +39 -490
- package/dist-cjs/protocols/Aws_restJson1.js +13 -13
- package/dist-es/EKS.js +39 -490
- package/dist-es/protocols/Aws_restJson1.js +13 -13
- package/dist-types/EKS.d.ts +51 -273
- package/dist-types/ts3.4/EKS.d.ts +2 -1
- package/package.json +8 -8
package/dist-es/EKS.js
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { createAggregatedClient } from "@aws-sdk/smithy-client";
|
|
1
2
|
import { AssociateEncryptionConfigCommand, } from "./commands/AssociateEncryptionConfigCommand";
|
|
2
3
|
import { AssociateIdentityProviderConfigCommand, } from "./commands/AssociateIdentityProviderConfigCommand";
|
|
3
4
|
import { CreateAddonCommand } from "./commands/CreateAddonCommand";
|
|
@@ -34,495 +35,43 @@ import { UpdateClusterVersionCommand, } from "./commands/UpdateClusterVersionCom
|
|
|
34
35
|
import { UpdateNodegroupConfigCommand, } from "./commands/UpdateNodegroupConfigCommand";
|
|
35
36
|
import { UpdateNodegroupVersionCommand, } from "./commands/UpdateNodegroupVersionCommand";
|
|
36
37
|
import { EKSClient } from "./EKSClient";
|
|
38
|
+
const commands = {
|
|
39
|
+
AssociateEncryptionConfigCommand,
|
|
40
|
+
AssociateIdentityProviderConfigCommand,
|
|
41
|
+
CreateAddonCommand,
|
|
42
|
+
CreateClusterCommand,
|
|
43
|
+
CreateFargateProfileCommand,
|
|
44
|
+
CreateNodegroupCommand,
|
|
45
|
+
DeleteAddonCommand,
|
|
46
|
+
DeleteClusterCommand,
|
|
47
|
+
DeleteFargateProfileCommand,
|
|
48
|
+
DeleteNodegroupCommand,
|
|
49
|
+
DeregisterClusterCommand,
|
|
50
|
+
DescribeAddonCommand,
|
|
51
|
+
DescribeAddonConfigurationCommand,
|
|
52
|
+
DescribeAddonVersionsCommand,
|
|
53
|
+
DescribeClusterCommand,
|
|
54
|
+
DescribeFargateProfileCommand,
|
|
55
|
+
DescribeIdentityProviderConfigCommand,
|
|
56
|
+
DescribeNodegroupCommand,
|
|
57
|
+
DescribeUpdateCommand,
|
|
58
|
+
DisassociateIdentityProviderConfigCommand,
|
|
59
|
+
ListAddonsCommand,
|
|
60
|
+
ListClustersCommand,
|
|
61
|
+
ListFargateProfilesCommand,
|
|
62
|
+
ListIdentityProviderConfigsCommand,
|
|
63
|
+
ListNodegroupsCommand,
|
|
64
|
+
ListTagsForResourceCommand,
|
|
65
|
+
ListUpdatesCommand,
|
|
66
|
+
RegisterClusterCommand,
|
|
67
|
+
TagResourceCommand,
|
|
68
|
+
UntagResourceCommand,
|
|
69
|
+
UpdateAddonCommand,
|
|
70
|
+
UpdateClusterConfigCommand,
|
|
71
|
+
UpdateClusterVersionCommand,
|
|
72
|
+
UpdateNodegroupConfigCommand,
|
|
73
|
+
UpdateNodegroupVersionCommand,
|
|
74
|
+
};
|
|
37
75
|
export class EKS extends EKSClient {
|
|
38
|
-
associateEncryptionConfig(args, optionsOrCb, cb) {
|
|
39
|
-
const command = new AssociateEncryptionConfigCommand(args);
|
|
40
|
-
if (typeof optionsOrCb === "function") {
|
|
41
|
-
this.send(command, optionsOrCb);
|
|
42
|
-
}
|
|
43
|
-
else if (typeof cb === "function") {
|
|
44
|
-
if (typeof optionsOrCb !== "object")
|
|
45
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
46
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
47
|
-
}
|
|
48
|
-
else {
|
|
49
|
-
return this.send(command, optionsOrCb);
|
|
50
|
-
}
|
|
51
|
-
}
|
|
52
|
-
associateIdentityProviderConfig(args, optionsOrCb, cb) {
|
|
53
|
-
const command = new AssociateIdentityProviderConfigCommand(args);
|
|
54
|
-
if (typeof optionsOrCb === "function") {
|
|
55
|
-
this.send(command, optionsOrCb);
|
|
56
|
-
}
|
|
57
|
-
else if (typeof cb === "function") {
|
|
58
|
-
if (typeof optionsOrCb !== "object")
|
|
59
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
60
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
61
|
-
}
|
|
62
|
-
else {
|
|
63
|
-
return this.send(command, optionsOrCb);
|
|
64
|
-
}
|
|
65
|
-
}
|
|
66
|
-
createAddon(args, optionsOrCb, cb) {
|
|
67
|
-
const command = new CreateAddonCommand(args);
|
|
68
|
-
if (typeof optionsOrCb === "function") {
|
|
69
|
-
this.send(command, optionsOrCb);
|
|
70
|
-
}
|
|
71
|
-
else if (typeof cb === "function") {
|
|
72
|
-
if (typeof optionsOrCb !== "object")
|
|
73
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
74
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
75
|
-
}
|
|
76
|
-
else {
|
|
77
|
-
return this.send(command, optionsOrCb);
|
|
78
|
-
}
|
|
79
|
-
}
|
|
80
|
-
createCluster(args, optionsOrCb, cb) {
|
|
81
|
-
const command = new CreateClusterCommand(args);
|
|
82
|
-
if (typeof optionsOrCb === "function") {
|
|
83
|
-
this.send(command, optionsOrCb);
|
|
84
|
-
}
|
|
85
|
-
else if (typeof cb === "function") {
|
|
86
|
-
if (typeof optionsOrCb !== "object")
|
|
87
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
88
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
89
|
-
}
|
|
90
|
-
else {
|
|
91
|
-
return this.send(command, optionsOrCb);
|
|
92
|
-
}
|
|
93
|
-
}
|
|
94
|
-
createFargateProfile(args, optionsOrCb, cb) {
|
|
95
|
-
const command = new CreateFargateProfileCommand(args);
|
|
96
|
-
if (typeof optionsOrCb === "function") {
|
|
97
|
-
this.send(command, optionsOrCb);
|
|
98
|
-
}
|
|
99
|
-
else if (typeof cb === "function") {
|
|
100
|
-
if (typeof optionsOrCb !== "object")
|
|
101
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
102
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
103
|
-
}
|
|
104
|
-
else {
|
|
105
|
-
return this.send(command, optionsOrCb);
|
|
106
|
-
}
|
|
107
|
-
}
|
|
108
|
-
createNodegroup(args, optionsOrCb, cb) {
|
|
109
|
-
const command = new CreateNodegroupCommand(args);
|
|
110
|
-
if (typeof optionsOrCb === "function") {
|
|
111
|
-
this.send(command, optionsOrCb);
|
|
112
|
-
}
|
|
113
|
-
else if (typeof cb === "function") {
|
|
114
|
-
if (typeof optionsOrCb !== "object")
|
|
115
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
116
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
117
|
-
}
|
|
118
|
-
else {
|
|
119
|
-
return this.send(command, optionsOrCb);
|
|
120
|
-
}
|
|
121
|
-
}
|
|
122
|
-
deleteAddon(args, optionsOrCb, cb) {
|
|
123
|
-
const command = new DeleteAddonCommand(args);
|
|
124
|
-
if (typeof optionsOrCb === "function") {
|
|
125
|
-
this.send(command, optionsOrCb);
|
|
126
|
-
}
|
|
127
|
-
else if (typeof cb === "function") {
|
|
128
|
-
if (typeof optionsOrCb !== "object")
|
|
129
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
130
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
131
|
-
}
|
|
132
|
-
else {
|
|
133
|
-
return this.send(command, optionsOrCb);
|
|
134
|
-
}
|
|
135
|
-
}
|
|
136
|
-
deleteCluster(args, optionsOrCb, cb) {
|
|
137
|
-
const command = new DeleteClusterCommand(args);
|
|
138
|
-
if (typeof optionsOrCb === "function") {
|
|
139
|
-
this.send(command, optionsOrCb);
|
|
140
|
-
}
|
|
141
|
-
else if (typeof cb === "function") {
|
|
142
|
-
if (typeof optionsOrCb !== "object")
|
|
143
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
144
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
145
|
-
}
|
|
146
|
-
else {
|
|
147
|
-
return this.send(command, optionsOrCb);
|
|
148
|
-
}
|
|
149
|
-
}
|
|
150
|
-
deleteFargateProfile(args, optionsOrCb, cb) {
|
|
151
|
-
const command = new DeleteFargateProfileCommand(args);
|
|
152
|
-
if (typeof optionsOrCb === "function") {
|
|
153
|
-
this.send(command, optionsOrCb);
|
|
154
|
-
}
|
|
155
|
-
else if (typeof cb === "function") {
|
|
156
|
-
if (typeof optionsOrCb !== "object")
|
|
157
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
158
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
159
|
-
}
|
|
160
|
-
else {
|
|
161
|
-
return this.send(command, optionsOrCb);
|
|
162
|
-
}
|
|
163
|
-
}
|
|
164
|
-
deleteNodegroup(args, optionsOrCb, cb) {
|
|
165
|
-
const command = new DeleteNodegroupCommand(args);
|
|
166
|
-
if (typeof optionsOrCb === "function") {
|
|
167
|
-
this.send(command, optionsOrCb);
|
|
168
|
-
}
|
|
169
|
-
else if (typeof cb === "function") {
|
|
170
|
-
if (typeof optionsOrCb !== "object")
|
|
171
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
172
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
173
|
-
}
|
|
174
|
-
else {
|
|
175
|
-
return this.send(command, optionsOrCb);
|
|
176
|
-
}
|
|
177
|
-
}
|
|
178
|
-
deregisterCluster(args, optionsOrCb, cb) {
|
|
179
|
-
const command = new DeregisterClusterCommand(args);
|
|
180
|
-
if (typeof optionsOrCb === "function") {
|
|
181
|
-
this.send(command, optionsOrCb);
|
|
182
|
-
}
|
|
183
|
-
else if (typeof cb === "function") {
|
|
184
|
-
if (typeof optionsOrCb !== "object")
|
|
185
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
186
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
187
|
-
}
|
|
188
|
-
else {
|
|
189
|
-
return this.send(command, optionsOrCb);
|
|
190
|
-
}
|
|
191
|
-
}
|
|
192
|
-
describeAddon(args, optionsOrCb, cb) {
|
|
193
|
-
const command = new DescribeAddonCommand(args);
|
|
194
|
-
if (typeof optionsOrCb === "function") {
|
|
195
|
-
this.send(command, optionsOrCb);
|
|
196
|
-
}
|
|
197
|
-
else if (typeof cb === "function") {
|
|
198
|
-
if (typeof optionsOrCb !== "object")
|
|
199
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
200
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
201
|
-
}
|
|
202
|
-
else {
|
|
203
|
-
return this.send(command, optionsOrCb);
|
|
204
|
-
}
|
|
205
|
-
}
|
|
206
|
-
describeAddonConfiguration(args, optionsOrCb, cb) {
|
|
207
|
-
const command = new DescribeAddonConfigurationCommand(args);
|
|
208
|
-
if (typeof optionsOrCb === "function") {
|
|
209
|
-
this.send(command, optionsOrCb);
|
|
210
|
-
}
|
|
211
|
-
else if (typeof cb === "function") {
|
|
212
|
-
if (typeof optionsOrCb !== "object")
|
|
213
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
214
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
215
|
-
}
|
|
216
|
-
else {
|
|
217
|
-
return this.send(command, optionsOrCb);
|
|
218
|
-
}
|
|
219
|
-
}
|
|
220
|
-
describeAddonVersions(args, optionsOrCb, cb) {
|
|
221
|
-
const command = new DescribeAddonVersionsCommand(args);
|
|
222
|
-
if (typeof optionsOrCb === "function") {
|
|
223
|
-
this.send(command, optionsOrCb);
|
|
224
|
-
}
|
|
225
|
-
else if (typeof cb === "function") {
|
|
226
|
-
if (typeof optionsOrCb !== "object")
|
|
227
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
228
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
229
|
-
}
|
|
230
|
-
else {
|
|
231
|
-
return this.send(command, optionsOrCb);
|
|
232
|
-
}
|
|
233
|
-
}
|
|
234
|
-
describeCluster(args, optionsOrCb, cb) {
|
|
235
|
-
const command = new DescribeClusterCommand(args);
|
|
236
|
-
if (typeof optionsOrCb === "function") {
|
|
237
|
-
this.send(command, optionsOrCb);
|
|
238
|
-
}
|
|
239
|
-
else if (typeof cb === "function") {
|
|
240
|
-
if (typeof optionsOrCb !== "object")
|
|
241
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
242
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
243
|
-
}
|
|
244
|
-
else {
|
|
245
|
-
return this.send(command, optionsOrCb);
|
|
246
|
-
}
|
|
247
|
-
}
|
|
248
|
-
describeFargateProfile(args, optionsOrCb, cb) {
|
|
249
|
-
const command = new DescribeFargateProfileCommand(args);
|
|
250
|
-
if (typeof optionsOrCb === "function") {
|
|
251
|
-
this.send(command, optionsOrCb);
|
|
252
|
-
}
|
|
253
|
-
else if (typeof cb === "function") {
|
|
254
|
-
if (typeof optionsOrCb !== "object")
|
|
255
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
256
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
257
|
-
}
|
|
258
|
-
else {
|
|
259
|
-
return this.send(command, optionsOrCb);
|
|
260
|
-
}
|
|
261
|
-
}
|
|
262
|
-
describeIdentityProviderConfig(args, optionsOrCb, cb) {
|
|
263
|
-
const command = new DescribeIdentityProviderConfigCommand(args);
|
|
264
|
-
if (typeof optionsOrCb === "function") {
|
|
265
|
-
this.send(command, optionsOrCb);
|
|
266
|
-
}
|
|
267
|
-
else if (typeof cb === "function") {
|
|
268
|
-
if (typeof optionsOrCb !== "object")
|
|
269
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
270
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
271
|
-
}
|
|
272
|
-
else {
|
|
273
|
-
return this.send(command, optionsOrCb);
|
|
274
|
-
}
|
|
275
|
-
}
|
|
276
|
-
describeNodegroup(args, optionsOrCb, cb) {
|
|
277
|
-
const command = new DescribeNodegroupCommand(args);
|
|
278
|
-
if (typeof optionsOrCb === "function") {
|
|
279
|
-
this.send(command, optionsOrCb);
|
|
280
|
-
}
|
|
281
|
-
else if (typeof cb === "function") {
|
|
282
|
-
if (typeof optionsOrCb !== "object")
|
|
283
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
284
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
285
|
-
}
|
|
286
|
-
else {
|
|
287
|
-
return this.send(command, optionsOrCb);
|
|
288
|
-
}
|
|
289
|
-
}
|
|
290
|
-
describeUpdate(args, optionsOrCb, cb) {
|
|
291
|
-
const command = new DescribeUpdateCommand(args);
|
|
292
|
-
if (typeof optionsOrCb === "function") {
|
|
293
|
-
this.send(command, optionsOrCb);
|
|
294
|
-
}
|
|
295
|
-
else if (typeof cb === "function") {
|
|
296
|
-
if (typeof optionsOrCb !== "object")
|
|
297
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
298
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
299
|
-
}
|
|
300
|
-
else {
|
|
301
|
-
return this.send(command, optionsOrCb);
|
|
302
|
-
}
|
|
303
|
-
}
|
|
304
|
-
disassociateIdentityProviderConfig(args, optionsOrCb, cb) {
|
|
305
|
-
const command = new DisassociateIdentityProviderConfigCommand(args);
|
|
306
|
-
if (typeof optionsOrCb === "function") {
|
|
307
|
-
this.send(command, optionsOrCb);
|
|
308
|
-
}
|
|
309
|
-
else if (typeof cb === "function") {
|
|
310
|
-
if (typeof optionsOrCb !== "object")
|
|
311
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
312
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
313
|
-
}
|
|
314
|
-
else {
|
|
315
|
-
return this.send(command, optionsOrCb);
|
|
316
|
-
}
|
|
317
|
-
}
|
|
318
|
-
listAddons(args, optionsOrCb, cb) {
|
|
319
|
-
const command = new ListAddonsCommand(args);
|
|
320
|
-
if (typeof optionsOrCb === "function") {
|
|
321
|
-
this.send(command, optionsOrCb);
|
|
322
|
-
}
|
|
323
|
-
else if (typeof cb === "function") {
|
|
324
|
-
if (typeof optionsOrCb !== "object")
|
|
325
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
326
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
327
|
-
}
|
|
328
|
-
else {
|
|
329
|
-
return this.send(command, optionsOrCb);
|
|
330
|
-
}
|
|
331
|
-
}
|
|
332
|
-
listClusters(args, optionsOrCb, cb) {
|
|
333
|
-
const command = new ListClustersCommand(args);
|
|
334
|
-
if (typeof optionsOrCb === "function") {
|
|
335
|
-
this.send(command, optionsOrCb);
|
|
336
|
-
}
|
|
337
|
-
else if (typeof cb === "function") {
|
|
338
|
-
if (typeof optionsOrCb !== "object")
|
|
339
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
340
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
341
|
-
}
|
|
342
|
-
else {
|
|
343
|
-
return this.send(command, optionsOrCb);
|
|
344
|
-
}
|
|
345
|
-
}
|
|
346
|
-
listFargateProfiles(args, optionsOrCb, cb) {
|
|
347
|
-
const command = new ListFargateProfilesCommand(args);
|
|
348
|
-
if (typeof optionsOrCb === "function") {
|
|
349
|
-
this.send(command, optionsOrCb);
|
|
350
|
-
}
|
|
351
|
-
else if (typeof cb === "function") {
|
|
352
|
-
if (typeof optionsOrCb !== "object")
|
|
353
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
354
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
355
|
-
}
|
|
356
|
-
else {
|
|
357
|
-
return this.send(command, optionsOrCb);
|
|
358
|
-
}
|
|
359
|
-
}
|
|
360
|
-
listIdentityProviderConfigs(args, optionsOrCb, cb) {
|
|
361
|
-
const command = new ListIdentityProviderConfigsCommand(args);
|
|
362
|
-
if (typeof optionsOrCb === "function") {
|
|
363
|
-
this.send(command, optionsOrCb);
|
|
364
|
-
}
|
|
365
|
-
else if (typeof cb === "function") {
|
|
366
|
-
if (typeof optionsOrCb !== "object")
|
|
367
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
368
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
369
|
-
}
|
|
370
|
-
else {
|
|
371
|
-
return this.send(command, optionsOrCb);
|
|
372
|
-
}
|
|
373
|
-
}
|
|
374
|
-
listNodegroups(args, optionsOrCb, cb) {
|
|
375
|
-
const command = new ListNodegroupsCommand(args);
|
|
376
|
-
if (typeof optionsOrCb === "function") {
|
|
377
|
-
this.send(command, optionsOrCb);
|
|
378
|
-
}
|
|
379
|
-
else if (typeof cb === "function") {
|
|
380
|
-
if (typeof optionsOrCb !== "object")
|
|
381
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
382
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
383
|
-
}
|
|
384
|
-
else {
|
|
385
|
-
return this.send(command, optionsOrCb);
|
|
386
|
-
}
|
|
387
|
-
}
|
|
388
|
-
listTagsForResource(args, optionsOrCb, cb) {
|
|
389
|
-
const command = new ListTagsForResourceCommand(args);
|
|
390
|
-
if (typeof optionsOrCb === "function") {
|
|
391
|
-
this.send(command, optionsOrCb);
|
|
392
|
-
}
|
|
393
|
-
else if (typeof cb === "function") {
|
|
394
|
-
if (typeof optionsOrCb !== "object")
|
|
395
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
396
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
397
|
-
}
|
|
398
|
-
else {
|
|
399
|
-
return this.send(command, optionsOrCb);
|
|
400
|
-
}
|
|
401
|
-
}
|
|
402
|
-
listUpdates(args, optionsOrCb, cb) {
|
|
403
|
-
const command = new ListUpdatesCommand(args);
|
|
404
|
-
if (typeof optionsOrCb === "function") {
|
|
405
|
-
this.send(command, optionsOrCb);
|
|
406
|
-
}
|
|
407
|
-
else if (typeof cb === "function") {
|
|
408
|
-
if (typeof optionsOrCb !== "object")
|
|
409
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
410
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
411
|
-
}
|
|
412
|
-
else {
|
|
413
|
-
return this.send(command, optionsOrCb);
|
|
414
|
-
}
|
|
415
|
-
}
|
|
416
|
-
registerCluster(args, optionsOrCb, cb) {
|
|
417
|
-
const command = new RegisterClusterCommand(args);
|
|
418
|
-
if (typeof optionsOrCb === "function") {
|
|
419
|
-
this.send(command, optionsOrCb);
|
|
420
|
-
}
|
|
421
|
-
else if (typeof cb === "function") {
|
|
422
|
-
if (typeof optionsOrCb !== "object")
|
|
423
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
424
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
425
|
-
}
|
|
426
|
-
else {
|
|
427
|
-
return this.send(command, optionsOrCb);
|
|
428
|
-
}
|
|
429
|
-
}
|
|
430
|
-
tagResource(args, optionsOrCb, cb) {
|
|
431
|
-
const command = new TagResourceCommand(args);
|
|
432
|
-
if (typeof optionsOrCb === "function") {
|
|
433
|
-
this.send(command, optionsOrCb);
|
|
434
|
-
}
|
|
435
|
-
else if (typeof cb === "function") {
|
|
436
|
-
if (typeof optionsOrCb !== "object")
|
|
437
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
438
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
439
|
-
}
|
|
440
|
-
else {
|
|
441
|
-
return this.send(command, optionsOrCb);
|
|
442
|
-
}
|
|
443
|
-
}
|
|
444
|
-
untagResource(args, optionsOrCb, cb) {
|
|
445
|
-
const command = new UntagResourceCommand(args);
|
|
446
|
-
if (typeof optionsOrCb === "function") {
|
|
447
|
-
this.send(command, optionsOrCb);
|
|
448
|
-
}
|
|
449
|
-
else if (typeof cb === "function") {
|
|
450
|
-
if (typeof optionsOrCb !== "object")
|
|
451
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
452
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
453
|
-
}
|
|
454
|
-
else {
|
|
455
|
-
return this.send(command, optionsOrCb);
|
|
456
|
-
}
|
|
457
|
-
}
|
|
458
|
-
updateAddon(args, optionsOrCb, cb) {
|
|
459
|
-
const command = new UpdateAddonCommand(args);
|
|
460
|
-
if (typeof optionsOrCb === "function") {
|
|
461
|
-
this.send(command, optionsOrCb);
|
|
462
|
-
}
|
|
463
|
-
else if (typeof cb === "function") {
|
|
464
|
-
if (typeof optionsOrCb !== "object")
|
|
465
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
466
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
467
|
-
}
|
|
468
|
-
else {
|
|
469
|
-
return this.send(command, optionsOrCb);
|
|
470
|
-
}
|
|
471
|
-
}
|
|
472
|
-
updateClusterConfig(args, optionsOrCb, cb) {
|
|
473
|
-
const command = new UpdateClusterConfigCommand(args);
|
|
474
|
-
if (typeof optionsOrCb === "function") {
|
|
475
|
-
this.send(command, optionsOrCb);
|
|
476
|
-
}
|
|
477
|
-
else if (typeof cb === "function") {
|
|
478
|
-
if (typeof optionsOrCb !== "object")
|
|
479
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
480
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
481
|
-
}
|
|
482
|
-
else {
|
|
483
|
-
return this.send(command, optionsOrCb);
|
|
484
|
-
}
|
|
485
|
-
}
|
|
486
|
-
updateClusterVersion(args, optionsOrCb, cb) {
|
|
487
|
-
const command = new UpdateClusterVersionCommand(args);
|
|
488
|
-
if (typeof optionsOrCb === "function") {
|
|
489
|
-
this.send(command, optionsOrCb);
|
|
490
|
-
}
|
|
491
|
-
else if (typeof cb === "function") {
|
|
492
|
-
if (typeof optionsOrCb !== "object")
|
|
493
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
494
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
495
|
-
}
|
|
496
|
-
else {
|
|
497
|
-
return this.send(command, optionsOrCb);
|
|
498
|
-
}
|
|
499
|
-
}
|
|
500
|
-
updateNodegroupConfig(args, optionsOrCb, cb) {
|
|
501
|
-
const command = new UpdateNodegroupConfigCommand(args);
|
|
502
|
-
if (typeof optionsOrCb === "function") {
|
|
503
|
-
this.send(command, optionsOrCb);
|
|
504
|
-
}
|
|
505
|
-
else if (typeof cb === "function") {
|
|
506
|
-
if (typeof optionsOrCb !== "object")
|
|
507
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
508
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
509
|
-
}
|
|
510
|
-
else {
|
|
511
|
-
return this.send(command, optionsOrCb);
|
|
512
|
-
}
|
|
513
|
-
}
|
|
514
|
-
updateNodegroupVersion(args, optionsOrCb, cb) {
|
|
515
|
-
const command = new UpdateNodegroupVersionCommand(args);
|
|
516
|
-
if (typeof optionsOrCb === "function") {
|
|
517
|
-
this.send(command, optionsOrCb);
|
|
518
|
-
}
|
|
519
|
-
else if (typeof cb === "function") {
|
|
520
|
-
if (typeof optionsOrCb !== "object")
|
|
521
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
522
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
523
|
-
}
|
|
524
|
-
else {
|
|
525
|
-
return this.send(command, optionsOrCb);
|
|
526
|
-
}
|
|
527
|
-
}
|
|
528
76
|
}
|
|
77
|
+
createAggregatedClient(commands, EKS);
|
|
@@ -13,7 +13,7 @@ export const se_AssociateEncryptionConfigCommand = async (input, context) => {
|
|
|
13
13
|
resolvedPath = __resolvedPath(resolvedPath, input, "clusterName", () => input.clusterName, "{clusterName}", false);
|
|
14
14
|
let body;
|
|
15
15
|
body = JSON.stringify(take(input, {
|
|
16
|
-
clientRequestToken: (_) => _ ?? generateIdempotencyToken(),
|
|
16
|
+
clientRequestToken: [true, (_) => _ ?? generateIdempotencyToken()],
|
|
17
17
|
encryptionConfig: (_) => _json(_),
|
|
18
18
|
}));
|
|
19
19
|
return new __HttpRequest({
|
|
@@ -36,7 +36,7 @@ export const se_AssociateIdentityProviderConfigCommand = async (input, context)
|
|
|
36
36
|
resolvedPath = __resolvedPath(resolvedPath, input, "clusterName", () => input.clusterName, "{clusterName}", false);
|
|
37
37
|
let body;
|
|
38
38
|
body = JSON.stringify(take(input, {
|
|
39
|
-
clientRequestToken: (_) => _ ?? generateIdempotencyToken(),
|
|
39
|
+
clientRequestToken: [true, (_) => _ ?? generateIdempotencyToken()],
|
|
40
40
|
oidc: (_) => _json(_),
|
|
41
41
|
tags: (_) => _json(_),
|
|
42
42
|
}));
|
|
@@ -61,7 +61,7 @@ export const se_CreateAddonCommand = async (input, context) => {
|
|
|
61
61
|
body = JSON.stringify(take(input, {
|
|
62
62
|
addonName: [],
|
|
63
63
|
addonVersion: [],
|
|
64
|
-
clientRequestToken: (_) => _ ?? generateIdempotencyToken(),
|
|
64
|
+
clientRequestToken: [true, (_) => _ ?? generateIdempotencyToken()],
|
|
65
65
|
configurationValues: [],
|
|
66
66
|
resolveConflicts: [],
|
|
67
67
|
serviceAccountRoleArn: [],
|
|
@@ -85,7 +85,7 @@ export const se_CreateClusterCommand = async (input, context) => {
|
|
|
85
85
|
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/clusters";
|
|
86
86
|
let body;
|
|
87
87
|
body = JSON.stringify(take(input, {
|
|
88
|
-
clientRequestToken: (_) => _ ?? generateIdempotencyToken(),
|
|
88
|
+
clientRequestToken: [true, (_) => _ ?? generateIdempotencyToken()],
|
|
89
89
|
encryptionConfig: (_) => _json(_),
|
|
90
90
|
kubernetesNetworkConfig: (_) => _json(_),
|
|
91
91
|
logging: (_) => _json(_),
|
|
@@ -115,7 +115,7 @@ export const se_CreateFargateProfileCommand = async (input, context) => {
|
|
|
115
115
|
resolvedPath = __resolvedPath(resolvedPath, input, "clusterName", () => input.clusterName, "{clusterName}", false);
|
|
116
116
|
let body;
|
|
117
117
|
body = JSON.stringify(take(input, {
|
|
118
|
-
clientRequestToken: (_) => _ ?? generateIdempotencyToken(),
|
|
118
|
+
clientRequestToken: [true, (_) => _ ?? generateIdempotencyToken()],
|
|
119
119
|
fargateProfileName: [],
|
|
120
120
|
podExecutionRoleArn: [],
|
|
121
121
|
selectors: (_) => _json(_),
|
|
@@ -143,7 +143,7 @@ export const se_CreateNodegroupCommand = async (input, context) => {
|
|
|
143
143
|
body = JSON.stringify(take(input, {
|
|
144
144
|
amiType: [],
|
|
145
145
|
capacityType: [],
|
|
146
|
-
clientRequestToken: (_) => _ ?? generateIdempotencyToken(),
|
|
146
|
+
clientRequestToken: [true, (_) => _ ?? generateIdempotencyToken()],
|
|
147
147
|
diskSize: [],
|
|
148
148
|
instanceTypes: (_) => _json(_),
|
|
149
149
|
labels: (_) => _json(_),
|
|
@@ -428,7 +428,7 @@ export const se_DisassociateIdentityProviderConfigCommand = async (input, contex
|
|
|
428
428
|
resolvedPath = __resolvedPath(resolvedPath, input, "clusterName", () => input.clusterName, "{clusterName}", false);
|
|
429
429
|
let body;
|
|
430
430
|
body = JSON.stringify(take(input, {
|
|
431
|
-
clientRequestToken: (_) => _ ?? generateIdempotencyToken(),
|
|
431
|
+
clientRequestToken: [true, (_) => _ ?? generateIdempotencyToken()],
|
|
432
432
|
identityProviderConfig: (_) => _json(_),
|
|
433
433
|
}));
|
|
434
434
|
return new __HttpRequest({
|
|
@@ -594,7 +594,7 @@ export const se_RegisterClusterCommand = async (input, context) => {
|
|
|
594
594
|
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/cluster-registrations";
|
|
595
595
|
let body;
|
|
596
596
|
body = JSON.stringify(take(input, {
|
|
597
|
-
clientRequestToken: (_) => _ ?? generateIdempotencyToken(),
|
|
597
|
+
clientRequestToken: [true, (_) => _ ?? generateIdempotencyToken()],
|
|
598
598
|
connectorConfig: (_) => _json(_),
|
|
599
599
|
name: [],
|
|
600
600
|
tags: (_) => _json(_),
|
|
@@ -665,7 +665,7 @@ export const se_UpdateAddonCommand = async (input, context) => {
|
|
|
665
665
|
let body;
|
|
666
666
|
body = JSON.stringify(take(input, {
|
|
667
667
|
addonVersion: [],
|
|
668
|
-
clientRequestToken: (_) => _ ?? generateIdempotencyToken(),
|
|
668
|
+
clientRequestToken: [true, (_) => _ ?? generateIdempotencyToken()],
|
|
669
669
|
configurationValues: [],
|
|
670
670
|
resolveConflicts: [],
|
|
671
671
|
serviceAccountRoleArn: [],
|
|
@@ -689,7 +689,7 @@ export const se_UpdateClusterConfigCommand = async (input, context) => {
|
|
|
689
689
|
resolvedPath = __resolvedPath(resolvedPath, input, "name", () => input.name, "{name}", false);
|
|
690
690
|
let body;
|
|
691
691
|
body = JSON.stringify(take(input, {
|
|
692
|
-
clientRequestToken: (_) => _ ?? generateIdempotencyToken(),
|
|
692
|
+
clientRequestToken: [true, (_) => _ ?? generateIdempotencyToken()],
|
|
693
693
|
logging: (_) => _json(_),
|
|
694
694
|
resourcesVpcConfig: (_) => _json(_),
|
|
695
695
|
}));
|
|
@@ -712,7 +712,7 @@ export const se_UpdateClusterVersionCommand = async (input, context) => {
|
|
|
712
712
|
resolvedPath = __resolvedPath(resolvedPath, input, "name", () => input.name, "{name}", false);
|
|
713
713
|
let body;
|
|
714
714
|
body = JSON.stringify(take(input, {
|
|
715
|
-
clientRequestToken: (_) => _ ?? generateIdempotencyToken(),
|
|
715
|
+
clientRequestToken: [true, (_) => _ ?? generateIdempotencyToken()],
|
|
716
716
|
version: [],
|
|
717
717
|
}));
|
|
718
718
|
return new __HttpRequest({
|
|
@@ -736,7 +736,7 @@ export const se_UpdateNodegroupConfigCommand = async (input, context) => {
|
|
|
736
736
|
resolvedPath = __resolvedPath(resolvedPath, input, "nodegroupName", () => input.nodegroupName, "{nodegroupName}", false);
|
|
737
737
|
let body;
|
|
738
738
|
body = JSON.stringify(take(input, {
|
|
739
|
-
clientRequestToken: (_) => _ ?? generateIdempotencyToken(),
|
|
739
|
+
clientRequestToken: [true, (_) => _ ?? generateIdempotencyToken()],
|
|
740
740
|
labels: (_) => _json(_),
|
|
741
741
|
scalingConfig: (_) => _json(_),
|
|
742
742
|
taints: (_) => _json(_),
|
|
@@ -763,7 +763,7 @@ export const se_UpdateNodegroupVersionCommand = async (input, context) => {
|
|
|
763
763
|
resolvedPath = __resolvedPath(resolvedPath, input, "nodegroupName", () => input.nodegroupName, "{nodegroupName}", false);
|
|
764
764
|
let body;
|
|
765
765
|
body = JSON.stringify(take(input, {
|
|
766
|
-
clientRequestToken: (_) => _ ?? generateIdempotencyToken(),
|
|
766
|
+
clientRequestToken: [true, (_) => _ ?? generateIdempotencyToken()],
|
|
767
767
|
force: [],
|
|
768
768
|
launchTemplate: (_) => _json(_),
|
|
769
769
|
releaseVersion: [],
|