@aws-sdk/client-eks 3.183.0 → 3.186.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.
Files changed (62) hide show
  1. package/CHANGELOG.md +19 -0
  2. package/dist-cjs/protocols/Aws_restJson1.js +2 -2
  3. package/dist-es/EKS.js +145 -138
  4. package/dist-es/EKSClient.js +28 -22
  5. package/dist-es/commands/AssociateEncryptionConfigCommand.js +28 -21
  6. package/dist-es/commands/AssociateIdentityProviderConfigCommand.js +28 -21
  7. package/dist-es/commands/CreateAddonCommand.js +28 -21
  8. package/dist-es/commands/CreateClusterCommand.js +28 -21
  9. package/dist-es/commands/CreateFargateProfileCommand.js +28 -21
  10. package/dist-es/commands/CreateNodegroupCommand.js +28 -21
  11. package/dist-es/commands/DeleteAddonCommand.js +28 -21
  12. package/dist-es/commands/DeleteClusterCommand.js +28 -21
  13. package/dist-es/commands/DeleteFargateProfileCommand.js +28 -21
  14. package/dist-es/commands/DeleteNodegroupCommand.js +28 -21
  15. package/dist-es/commands/DeregisterClusterCommand.js +28 -21
  16. package/dist-es/commands/DescribeAddonCommand.js +28 -21
  17. package/dist-es/commands/DescribeAddonVersionsCommand.js +28 -21
  18. package/dist-es/commands/DescribeClusterCommand.js +28 -21
  19. package/dist-es/commands/DescribeFargateProfileCommand.js +28 -21
  20. package/dist-es/commands/DescribeIdentityProviderConfigCommand.js +28 -21
  21. package/dist-es/commands/DescribeNodegroupCommand.js +28 -21
  22. package/dist-es/commands/DescribeUpdateCommand.js +28 -21
  23. package/dist-es/commands/DisassociateIdentityProviderConfigCommand.js +28 -21
  24. package/dist-es/commands/ListAddonsCommand.js +28 -21
  25. package/dist-es/commands/ListClustersCommand.js +28 -21
  26. package/dist-es/commands/ListFargateProfilesCommand.js +28 -21
  27. package/dist-es/commands/ListIdentityProviderConfigsCommand.js +28 -21
  28. package/dist-es/commands/ListNodegroupsCommand.js +28 -21
  29. package/dist-es/commands/ListTagsForResourceCommand.js +28 -21
  30. package/dist-es/commands/ListUpdatesCommand.js +28 -21
  31. package/dist-es/commands/RegisterClusterCommand.js +28 -21
  32. package/dist-es/commands/TagResourceCommand.js +28 -21
  33. package/dist-es/commands/UntagResourceCommand.js +28 -21
  34. package/dist-es/commands/UpdateAddonCommand.js +28 -21
  35. package/dist-es/commands/UpdateClusterConfigCommand.js +28 -21
  36. package/dist-es/commands/UpdateClusterVersionCommand.js +28 -21
  37. package/dist-es/commands/UpdateNodegroupConfigCommand.js +28 -21
  38. package/dist-es/commands/UpdateNodegroupVersionCommand.js +28 -21
  39. package/dist-es/endpoints.js +8 -8
  40. package/dist-es/models/EKSServiceException.js +10 -5
  41. package/dist-es/models/models_0.js +282 -507
  42. package/dist-es/pagination/DescribeAddonVersionsPaginator.js +68 -25
  43. package/dist-es/pagination/ListAddonsPaginator.js +68 -25
  44. package/dist-es/pagination/ListClustersPaginator.js +68 -25
  45. package/dist-es/pagination/ListFargateProfilesPaginator.js +68 -25
  46. package/dist-es/pagination/ListIdentityProviderConfigsPaginator.js +68 -25
  47. package/dist-es/pagination/ListNodegroupsPaginator.js +68 -25
  48. package/dist-es/pagination/ListUpdatesPaginator.js +68 -25
  49. package/dist-es/protocols/Aws_restJson1.js +3829 -2836
  50. package/dist-es/runtimeConfig.browser.js +12 -26
  51. package/dist-es/runtimeConfig.js +12 -30
  52. package/dist-es/runtimeConfig.native.js +5 -8
  53. package/dist-es/runtimeConfig.shared.js +11 -8
  54. package/dist-es/waiters/waitForAddonActive.js +65 -45
  55. package/dist-es/waiters/waitForAddonDeleted.js +50 -30
  56. package/dist-es/waiters/waitForClusterActive.js +65 -45
  57. package/dist-es/waiters/waitForClusterDeleted.js +68 -48
  58. package/dist-es/waiters/waitForFargateProfileActive.js +56 -36
  59. package/dist-es/waiters/waitForFargateProfileDeleted.js +50 -30
  60. package/dist-es/waiters/waitForNodegroupActive.js +56 -36
  61. package/dist-es/waiters/waitForNodegroupDeleted.js +50 -30
  62. package/package.json +34 -34
package/dist-es/EKS.js CHANGED
@@ -1,3 +1,4 @@
1
+ import { __extends } from "tslib";
1
2
  import { AssociateEncryptionConfigCommand, } from "./commands/AssociateEncryptionConfigCommand";
2
3
  import { AssociateIdentityProviderConfigCommand, } from "./commands/AssociateIdentityProviderConfigCommand";
3
4
  import { CreateAddonCommand } from "./commands/CreateAddonCommand";
@@ -33,481 +34,487 @@ import { UpdateClusterVersionCommand, } from "./commands/UpdateClusterVersionCom
33
34
  import { UpdateNodegroupConfigCommand, } from "./commands/UpdateNodegroupConfigCommand";
34
35
  import { UpdateNodegroupVersionCommand, } from "./commands/UpdateNodegroupVersionCommand";
35
36
  import { EKSClient } from "./EKSClient";
36
- export class EKS extends EKSClient {
37
- associateEncryptionConfig(args, optionsOrCb, cb) {
38
- const command = new AssociateEncryptionConfigCommand(args);
37
+ var EKS = (function (_super) {
38
+ __extends(EKS, _super);
39
+ function EKS() {
40
+ return _super !== null && _super.apply(this, arguments) || this;
41
+ }
42
+ EKS.prototype.associateEncryptionConfig = function (args, optionsOrCb, cb) {
43
+ var command = new AssociateEncryptionConfigCommand(args);
39
44
  if (typeof optionsOrCb === "function") {
40
45
  this.send(command, optionsOrCb);
41
46
  }
42
47
  else if (typeof cb === "function") {
43
48
  if (typeof optionsOrCb !== "object")
44
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
49
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
45
50
  this.send(command, optionsOrCb || {}, cb);
46
51
  }
47
52
  else {
48
53
  return this.send(command, optionsOrCb);
49
54
  }
50
- }
51
- associateIdentityProviderConfig(args, optionsOrCb, cb) {
52
- const command = new AssociateIdentityProviderConfigCommand(args);
55
+ };
56
+ EKS.prototype.associateIdentityProviderConfig = function (args, optionsOrCb, cb) {
57
+ var command = new AssociateIdentityProviderConfigCommand(args);
53
58
  if (typeof optionsOrCb === "function") {
54
59
  this.send(command, optionsOrCb);
55
60
  }
56
61
  else if (typeof cb === "function") {
57
62
  if (typeof optionsOrCb !== "object")
58
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
63
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
59
64
  this.send(command, optionsOrCb || {}, cb);
60
65
  }
61
66
  else {
62
67
  return this.send(command, optionsOrCb);
63
68
  }
64
- }
65
- createAddon(args, optionsOrCb, cb) {
66
- const command = new CreateAddonCommand(args);
69
+ };
70
+ EKS.prototype.createAddon = function (args, optionsOrCb, cb) {
71
+ var command = new CreateAddonCommand(args);
67
72
  if (typeof optionsOrCb === "function") {
68
73
  this.send(command, optionsOrCb);
69
74
  }
70
75
  else if (typeof cb === "function") {
71
76
  if (typeof optionsOrCb !== "object")
72
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
77
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
73
78
  this.send(command, optionsOrCb || {}, cb);
74
79
  }
75
80
  else {
76
81
  return this.send(command, optionsOrCb);
77
82
  }
78
- }
79
- createCluster(args, optionsOrCb, cb) {
80
- const command = new CreateClusterCommand(args);
83
+ };
84
+ EKS.prototype.createCluster = function (args, optionsOrCb, cb) {
85
+ var command = new CreateClusterCommand(args);
81
86
  if (typeof optionsOrCb === "function") {
82
87
  this.send(command, optionsOrCb);
83
88
  }
84
89
  else if (typeof cb === "function") {
85
90
  if (typeof optionsOrCb !== "object")
86
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
91
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
87
92
  this.send(command, optionsOrCb || {}, cb);
88
93
  }
89
94
  else {
90
95
  return this.send(command, optionsOrCb);
91
96
  }
92
- }
93
- createFargateProfile(args, optionsOrCb, cb) {
94
- const command = new CreateFargateProfileCommand(args);
97
+ };
98
+ EKS.prototype.createFargateProfile = function (args, optionsOrCb, cb) {
99
+ var command = new CreateFargateProfileCommand(args);
95
100
  if (typeof optionsOrCb === "function") {
96
101
  this.send(command, optionsOrCb);
97
102
  }
98
103
  else if (typeof cb === "function") {
99
104
  if (typeof optionsOrCb !== "object")
100
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
105
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
101
106
  this.send(command, optionsOrCb || {}, cb);
102
107
  }
103
108
  else {
104
109
  return this.send(command, optionsOrCb);
105
110
  }
106
- }
107
- createNodegroup(args, optionsOrCb, cb) {
108
- const command = new CreateNodegroupCommand(args);
111
+ };
112
+ EKS.prototype.createNodegroup = function (args, optionsOrCb, cb) {
113
+ var command = new CreateNodegroupCommand(args);
109
114
  if (typeof optionsOrCb === "function") {
110
115
  this.send(command, optionsOrCb);
111
116
  }
112
117
  else if (typeof cb === "function") {
113
118
  if (typeof optionsOrCb !== "object")
114
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
119
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
115
120
  this.send(command, optionsOrCb || {}, cb);
116
121
  }
117
122
  else {
118
123
  return this.send(command, optionsOrCb);
119
124
  }
120
- }
121
- deleteAddon(args, optionsOrCb, cb) {
122
- const command = new DeleteAddonCommand(args);
125
+ };
126
+ EKS.prototype.deleteAddon = function (args, optionsOrCb, cb) {
127
+ var command = new DeleteAddonCommand(args);
123
128
  if (typeof optionsOrCb === "function") {
124
129
  this.send(command, optionsOrCb);
125
130
  }
126
131
  else if (typeof cb === "function") {
127
132
  if (typeof optionsOrCb !== "object")
128
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
133
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
129
134
  this.send(command, optionsOrCb || {}, cb);
130
135
  }
131
136
  else {
132
137
  return this.send(command, optionsOrCb);
133
138
  }
134
- }
135
- deleteCluster(args, optionsOrCb, cb) {
136
- const command = new DeleteClusterCommand(args);
139
+ };
140
+ EKS.prototype.deleteCluster = function (args, optionsOrCb, cb) {
141
+ var command = new DeleteClusterCommand(args);
137
142
  if (typeof optionsOrCb === "function") {
138
143
  this.send(command, optionsOrCb);
139
144
  }
140
145
  else if (typeof cb === "function") {
141
146
  if (typeof optionsOrCb !== "object")
142
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
147
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
143
148
  this.send(command, optionsOrCb || {}, cb);
144
149
  }
145
150
  else {
146
151
  return this.send(command, optionsOrCb);
147
152
  }
148
- }
149
- deleteFargateProfile(args, optionsOrCb, cb) {
150
- const command = new DeleteFargateProfileCommand(args);
153
+ };
154
+ EKS.prototype.deleteFargateProfile = function (args, optionsOrCb, cb) {
155
+ var command = new DeleteFargateProfileCommand(args);
151
156
  if (typeof optionsOrCb === "function") {
152
157
  this.send(command, optionsOrCb);
153
158
  }
154
159
  else if (typeof cb === "function") {
155
160
  if (typeof optionsOrCb !== "object")
156
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
161
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
157
162
  this.send(command, optionsOrCb || {}, cb);
158
163
  }
159
164
  else {
160
165
  return this.send(command, optionsOrCb);
161
166
  }
162
- }
163
- deleteNodegroup(args, optionsOrCb, cb) {
164
- const command = new DeleteNodegroupCommand(args);
167
+ };
168
+ EKS.prototype.deleteNodegroup = function (args, optionsOrCb, cb) {
169
+ var command = new DeleteNodegroupCommand(args);
165
170
  if (typeof optionsOrCb === "function") {
166
171
  this.send(command, optionsOrCb);
167
172
  }
168
173
  else if (typeof cb === "function") {
169
174
  if (typeof optionsOrCb !== "object")
170
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
175
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
171
176
  this.send(command, optionsOrCb || {}, cb);
172
177
  }
173
178
  else {
174
179
  return this.send(command, optionsOrCb);
175
180
  }
176
- }
177
- deregisterCluster(args, optionsOrCb, cb) {
178
- const command = new DeregisterClusterCommand(args);
181
+ };
182
+ EKS.prototype.deregisterCluster = function (args, optionsOrCb, cb) {
183
+ var command = new DeregisterClusterCommand(args);
179
184
  if (typeof optionsOrCb === "function") {
180
185
  this.send(command, optionsOrCb);
181
186
  }
182
187
  else if (typeof cb === "function") {
183
188
  if (typeof optionsOrCb !== "object")
184
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
189
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
185
190
  this.send(command, optionsOrCb || {}, cb);
186
191
  }
187
192
  else {
188
193
  return this.send(command, optionsOrCb);
189
194
  }
190
- }
191
- describeAddon(args, optionsOrCb, cb) {
192
- const command = new DescribeAddonCommand(args);
195
+ };
196
+ EKS.prototype.describeAddon = function (args, optionsOrCb, cb) {
197
+ var command = new DescribeAddonCommand(args);
193
198
  if (typeof optionsOrCb === "function") {
194
199
  this.send(command, optionsOrCb);
195
200
  }
196
201
  else if (typeof cb === "function") {
197
202
  if (typeof optionsOrCb !== "object")
198
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
203
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
199
204
  this.send(command, optionsOrCb || {}, cb);
200
205
  }
201
206
  else {
202
207
  return this.send(command, optionsOrCb);
203
208
  }
204
- }
205
- describeAddonVersions(args, optionsOrCb, cb) {
206
- const command = new DescribeAddonVersionsCommand(args);
209
+ };
210
+ EKS.prototype.describeAddonVersions = function (args, optionsOrCb, cb) {
211
+ var command = new DescribeAddonVersionsCommand(args);
207
212
  if (typeof optionsOrCb === "function") {
208
213
  this.send(command, optionsOrCb);
209
214
  }
210
215
  else if (typeof cb === "function") {
211
216
  if (typeof optionsOrCb !== "object")
212
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
217
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
213
218
  this.send(command, optionsOrCb || {}, cb);
214
219
  }
215
220
  else {
216
221
  return this.send(command, optionsOrCb);
217
222
  }
218
- }
219
- describeCluster(args, optionsOrCb, cb) {
220
- const command = new DescribeClusterCommand(args);
223
+ };
224
+ EKS.prototype.describeCluster = function (args, optionsOrCb, cb) {
225
+ var command = new DescribeClusterCommand(args);
221
226
  if (typeof optionsOrCb === "function") {
222
227
  this.send(command, optionsOrCb);
223
228
  }
224
229
  else if (typeof cb === "function") {
225
230
  if (typeof optionsOrCb !== "object")
226
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
231
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
227
232
  this.send(command, optionsOrCb || {}, cb);
228
233
  }
229
234
  else {
230
235
  return this.send(command, optionsOrCb);
231
236
  }
232
- }
233
- describeFargateProfile(args, optionsOrCb, cb) {
234
- const command = new DescribeFargateProfileCommand(args);
237
+ };
238
+ EKS.prototype.describeFargateProfile = function (args, optionsOrCb, cb) {
239
+ var command = new DescribeFargateProfileCommand(args);
235
240
  if (typeof optionsOrCb === "function") {
236
241
  this.send(command, optionsOrCb);
237
242
  }
238
243
  else if (typeof cb === "function") {
239
244
  if (typeof optionsOrCb !== "object")
240
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
245
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
241
246
  this.send(command, optionsOrCb || {}, cb);
242
247
  }
243
248
  else {
244
249
  return this.send(command, optionsOrCb);
245
250
  }
246
- }
247
- describeIdentityProviderConfig(args, optionsOrCb, cb) {
248
- const command = new DescribeIdentityProviderConfigCommand(args);
251
+ };
252
+ EKS.prototype.describeIdentityProviderConfig = function (args, optionsOrCb, cb) {
253
+ var command = new DescribeIdentityProviderConfigCommand(args);
249
254
  if (typeof optionsOrCb === "function") {
250
255
  this.send(command, optionsOrCb);
251
256
  }
252
257
  else if (typeof cb === "function") {
253
258
  if (typeof optionsOrCb !== "object")
254
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
259
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
255
260
  this.send(command, optionsOrCb || {}, cb);
256
261
  }
257
262
  else {
258
263
  return this.send(command, optionsOrCb);
259
264
  }
260
- }
261
- describeNodegroup(args, optionsOrCb, cb) {
262
- const command = new DescribeNodegroupCommand(args);
265
+ };
266
+ EKS.prototype.describeNodegroup = function (args, optionsOrCb, cb) {
267
+ var command = new DescribeNodegroupCommand(args);
263
268
  if (typeof optionsOrCb === "function") {
264
269
  this.send(command, optionsOrCb);
265
270
  }
266
271
  else if (typeof cb === "function") {
267
272
  if (typeof optionsOrCb !== "object")
268
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
273
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
269
274
  this.send(command, optionsOrCb || {}, cb);
270
275
  }
271
276
  else {
272
277
  return this.send(command, optionsOrCb);
273
278
  }
274
- }
275
- describeUpdate(args, optionsOrCb, cb) {
276
- const command = new DescribeUpdateCommand(args);
279
+ };
280
+ EKS.prototype.describeUpdate = function (args, optionsOrCb, cb) {
281
+ var command = new DescribeUpdateCommand(args);
277
282
  if (typeof optionsOrCb === "function") {
278
283
  this.send(command, optionsOrCb);
279
284
  }
280
285
  else if (typeof cb === "function") {
281
286
  if (typeof optionsOrCb !== "object")
282
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
287
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
283
288
  this.send(command, optionsOrCb || {}, cb);
284
289
  }
285
290
  else {
286
291
  return this.send(command, optionsOrCb);
287
292
  }
288
- }
289
- disassociateIdentityProviderConfig(args, optionsOrCb, cb) {
290
- const command = new DisassociateIdentityProviderConfigCommand(args);
293
+ };
294
+ EKS.prototype.disassociateIdentityProviderConfig = function (args, optionsOrCb, cb) {
295
+ var command = new DisassociateIdentityProviderConfigCommand(args);
291
296
  if (typeof optionsOrCb === "function") {
292
297
  this.send(command, optionsOrCb);
293
298
  }
294
299
  else if (typeof cb === "function") {
295
300
  if (typeof optionsOrCb !== "object")
296
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
301
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
297
302
  this.send(command, optionsOrCb || {}, cb);
298
303
  }
299
304
  else {
300
305
  return this.send(command, optionsOrCb);
301
306
  }
302
- }
303
- listAddons(args, optionsOrCb, cb) {
304
- const command = new ListAddonsCommand(args);
307
+ };
308
+ EKS.prototype.listAddons = function (args, optionsOrCb, cb) {
309
+ var command = new ListAddonsCommand(args);
305
310
  if (typeof optionsOrCb === "function") {
306
311
  this.send(command, optionsOrCb);
307
312
  }
308
313
  else if (typeof cb === "function") {
309
314
  if (typeof optionsOrCb !== "object")
310
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
315
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
311
316
  this.send(command, optionsOrCb || {}, cb);
312
317
  }
313
318
  else {
314
319
  return this.send(command, optionsOrCb);
315
320
  }
316
- }
317
- listClusters(args, optionsOrCb, cb) {
318
- const command = new ListClustersCommand(args);
321
+ };
322
+ EKS.prototype.listClusters = function (args, optionsOrCb, cb) {
323
+ var command = new ListClustersCommand(args);
319
324
  if (typeof optionsOrCb === "function") {
320
325
  this.send(command, optionsOrCb);
321
326
  }
322
327
  else if (typeof cb === "function") {
323
328
  if (typeof optionsOrCb !== "object")
324
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
329
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
325
330
  this.send(command, optionsOrCb || {}, cb);
326
331
  }
327
332
  else {
328
333
  return this.send(command, optionsOrCb);
329
334
  }
330
- }
331
- listFargateProfiles(args, optionsOrCb, cb) {
332
- const command = new ListFargateProfilesCommand(args);
335
+ };
336
+ EKS.prototype.listFargateProfiles = function (args, optionsOrCb, cb) {
337
+ var command = new ListFargateProfilesCommand(args);
333
338
  if (typeof optionsOrCb === "function") {
334
339
  this.send(command, optionsOrCb);
335
340
  }
336
341
  else if (typeof cb === "function") {
337
342
  if (typeof optionsOrCb !== "object")
338
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
343
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
339
344
  this.send(command, optionsOrCb || {}, cb);
340
345
  }
341
346
  else {
342
347
  return this.send(command, optionsOrCb);
343
348
  }
344
- }
345
- listIdentityProviderConfigs(args, optionsOrCb, cb) {
346
- const command = new ListIdentityProviderConfigsCommand(args);
349
+ };
350
+ EKS.prototype.listIdentityProviderConfigs = function (args, optionsOrCb, cb) {
351
+ var command = new ListIdentityProviderConfigsCommand(args);
347
352
  if (typeof optionsOrCb === "function") {
348
353
  this.send(command, optionsOrCb);
349
354
  }
350
355
  else if (typeof cb === "function") {
351
356
  if (typeof optionsOrCb !== "object")
352
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
357
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
353
358
  this.send(command, optionsOrCb || {}, cb);
354
359
  }
355
360
  else {
356
361
  return this.send(command, optionsOrCb);
357
362
  }
358
- }
359
- listNodegroups(args, optionsOrCb, cb) {
360
- const command = new ListNodegroupsCommand(args);
363
+ };
364
+ EKS.prototype.listNodegroups = function (args, optionsOrCb, cb) {
365
+ var command = new ListNodegroupsCommand(args);
361
366
  if (typeof optionsOrCb === "function") {
362
367
  this.send(command, optionsOrCb);
363
368
  }
364
369
  else if (typeof cb === "function") {
365
370
  if (typeof optionsOrCb !== "object")
366
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
371
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
367
372
  this.send(command, optionsOrCb || {}, cb);
368
373
  }
369
374
  else {
370
375
  return this.send(command, optionsOrCb);
371
376
  }
372
- }
373
- listTagsForResource(args, optionsOrCb, cb) {
374
- const command = new ListTagsForResourceCommand(args);
377
+ };
378
+ EKS.prototype.listTagsForResource = function (args, optionsOrCb, cb) {
379
+ var command = new ListTagsForResourceCommand(args);
375
380
  if (typeof optionsOrCb === "function") {
376
381
  this.send(command, optionsOrCb);
377
382
  }
378
383
  else if (typeof cb === "function") {
379
384
  if (typeof optionsOrCb !== "object")
380
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
385
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
381
386
  this.send(command, optionsOrCb || {}, cb);
382
387
  }
383
388
  else {
384
389
  return this.send(command, optionsOrCb);
385
390
  }
386
- }
387
- listUpdates(args, optionsOrCb, cb) {
388
- const command = new ListUpdatesCommand(args);
391
+ };
392
+ EKS.prototype.listUpdates = function (args, optionsOrCb, cb) {
393
+ var command = new ListUpdatesCommand(args);
389
394
  if (typeof optionsOrCb === "function") {
390
395
  this.send(command, optionsOrCb);
391
396
  }
392
397
  else if (typeof cb === "function") {
393
398
  if (typeof optionsOrCb !== "object")
394
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
399
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
395
400
  this.send(command, optionsOrCb || {}, cb);
396
401
  }
397
402
  else {
398
403
  return this.send(command, optionsOrCb);
399
404
  }
400
- }
401
- registerCluster(args, optionsOrCb, cb) {
402
- const command = new RegisterClusterCommand(args);
405
+ };
406
+ EKS.prototype.registerCluster = function (args, optionsOrCb, cb) {
407
+ var command = new RegisterClusterCommand(args);
403
408
  if (typeof optionsOrCb === "function") {
404
409
  this.send(command, optionsOrCb);
405
410
  }
406
411
  else if (typeof cb === "function") {
407
412
  if (typeof optionsOrCb !== "object")
408
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
413
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
409
414
  this.send(command, optionsOrCb || {}, cb);
410
415
  }
411
416
  else {
412
417
  return this.send(command, optionsOrCb);
413
418
  }
414
- }
415
- tagResource(args, optionsOrCb, cb) {
416
- const command = new TagResourceCommand(args);
419
+ };
420
+ EKS.prototype.tagResource = function (args, optionsOrCb, cb) {
421
+ var command = new TagResourceCommand(args);
417
422
  if (typeof optionsOrCb === "function") {
418
423
  this.send(command, optionsOrCb);
419
424
  }
420
425
  else if (typeof cb === "function") {
421
426
  if (typeof optionsOrCb !== "object")
422
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
427
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
423
428
  this.send(command, optionsOrCb || {}, cb);
424
429
  }
425
430
  else {
426
431
  return this.send(command, optionsOrCb);
427
432
  }
428
- }
429
- untagResource(args, optionsOrCb, cb) {
430
- const command = new UntagResourceCommand(args);
433
+ };
434
+ EKS.prototype.untagResource = function (args, optionsOrCb, cb) {
435
+ var command = new UntagResourceCommand(args);
431
436
  if (typeof optionsOrCb === "function") {
432
437
  this.send(command, optionsOrCb);
433
438
  }
434
439
  else if (typeof cb === "function") {
435
440
  if (typeof optionsOrCb !== "object")
436
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
441
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
437
442
  this.send(command, optionsOrCb || {}, cb);
438
443
  }
439
444
  else {
440
445
  return this.send(command, optionsOrCb);
441
446
  }
442
- }
443
- updateAddon(args, optionsOrCb, cb) {
444
- const command = new UpdateAddonCommand(args);
447
+ };
448
+ EKS.prototype.updateAddon = function (args, optionsOrCb, cb) {
449
+ var command = new UpdateAddonCommand(args);
445
450
  if (typeof optionsOrCb === "function") {
446
451
  this.send(command, optionsOrCb);
447
452
  }
448
453
  else if (typeof cb === "function") {
449
454
  if (typeof optionsOrCb !== "object")
450
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
455
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
451
456
  this.send(command, optionsOrCb || {}, cb);
452
457
  }
453
458
  else {
454
459
  return this.send(command, optionsOrCb);
455
460
  }
456
- }
457
- updateClusterConfig(args, optionsOrCb, cb) {
458
- const command = new UpdateClusterConfigCommand(args);
461
+ };
462
+ EKS.prototype.updateClusterConfig = function (args, optionsOrCb, cb) {
463
+ var command = new UpdateClusterConfigCommand(args);
459
464
  if (typeof optionsOrCb === "function") {
460
465
  this.send(command, optionsOrCb);
461
466
  }
462
467
  else if (typeof cb === "function") {
463
468
  if (typeof optionsOrCb !== "object")
464
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
469
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
465
470
  this.send(command, optionsOrCb || {}, cb);
466
471
  }
467
472
  else {
468
473
  return this.send(command, optionsOrCb);
469
474
  }
470
- }
471
- updateClusterVersion(args, optionsOrCb, cb) {
472
- const command = new UpdateClusterVersionCommand(args);
475
+ };
476
+ EKS.prototype.updateClusterVersion = function (args, optionsOrCb, cb) {
477
+ var command = new UpdateClusterVersionCommand(args);
473
478
  if (typeof optionsOrCb === "function") {
474
479
  this.send(command, optionsOrCb);
475
480
  }
476
481
  else if (typeof cb === "function") {
477
482
  if (typeof optionsOrCb !== "object")
478
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
483
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
479
484
  this.send(command, optionsOrCb || {}, cb);
480
485
  }
481
486
  else {
482
487
  return this.send(command, optionsOrCb);
483
488
  }
484
- }
485
- updateNodegroupConfig(args, optionsOrCb, cb) {
486
- const command = new UpdateNodegroupConfigCommand(args);
489
+ };
490
+ EKS.prototype.updateNodegroupConfig = function (args, optionsOrCb, cb) {
491
+ var command = new UpdateNodegroupConfigCommand(args);
487
492
  if (typeof optionsOrCb === "function") {
488
493
  this.send(command, optionsOrCb);
489
494
  }
490
495
  else if (typeof cb === "function") {
491
496
  if (typeof optionsOrCb !== "object")
492
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
497
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
493
498
  this.send(command, optionsOrCb || {}, cb);
494
499
  }
495
500
  else {
496
501
  return this.send(command, optionsOrCb);
497
502
  }
498
- }
499
- updateNodegroupVersion(args, optionsOrCb, cb) {
500
- const command = new UpdateNodegroupVersionCommand(args);
503
+ };
504
+ EKS.prototype.updateNodegroupVersion = function (args, optionsOrCb, cb) {
505
+ var command = new UpdateNodegroupVersionCommand(args);
501
506
  if (typeof optionsOrCb === "function") {
502
507
  this.send(command, optionsOrCb);
503
508
  }
504
509
  else if (typeof cb === "function") {
505
510
  if (typeof optionsOrCb !== "object")
506
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
511
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
507
512
  this.send(command, optionsOrCb || {}, cb);
508
513
  }
509
514
  else {
510
515
  return this.send(command, optionsOrCb);
511
516
  }
512
- }
513
- }
517
+ };
518
+ return EKS;
519
+ }(EKSClient));
520
+ export { EKS };