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