@aws-sdk/client-kafka 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 (56) hide show
  1. package/CHANGELOG.md +19 -0
  2. package/dist-cjs/protocols/Aws_restJson1.js +2 -2
  3. package/dist-es/Kafka.js +149 -142
  4. package/dist-es/KafkaClient.js +28 -22
  5. package/dist-es/commands/BatchAssociateScramSecretCommand.js +28 -21
  6. package/dist-es/commands/BatchDisassociateScramSecretCommand.js +28 -21
  7. package/dist-es/commands/CreateClusterCommand.js +28 -21
  8. package/dist-es/commands/CreateClusterV2Command.js +28 -21
  9. package/dist-es/commands/CreateConfigurationCommand.js +28 -21
  10. package/dist-es/commands/DeleteClusterCommand.js +28 -21
  11. package/dist-es/commands/DeleteConfigurationCommand.js +28 -21
  12. package/dist-es/commands/DescribeClusterCommand.js +28 -21
  13. package/dist-es/commands/DescribeClusterOperationCommand.js +28 -21
  14. package/dist-es/commands/DescribeClusterV2Command.js +28 -21
  15. package/dist-es/commands/DescribeConfigurationCommand.js +28 -21
  16. package/dist-es/commands/DescribeConfigurationRevisionCommand.js +28 -21
  17. package/dist-es/commands/GetBootstrapBrokersCommand.js +28 -21
  18. package/dist-es/commands/GetCompatibleKafkaVersionsCommand.js +28 -21
  19. package/dist-es/commands/ListClusterOperationsCommand.js +28 -21
  20. package/dist-es/commands/ListClustersCommand.js +28 -21
  21. package/dist-es/commands/ListClustersV2Command.js +28 -21
  22. package/dist-es/commands/ListConfigurationRevisionsCommand.js +28 -21
  23. package/dist-es/commands/ListConfigurationsCommand.js +28 -21
  24. package/dist-es/commands/ListKafkaVersionsCommand.js +28 -21
  25. package/dist-es/commands/ListNodesCommand.js +28 -21
  26. package/dist-es/commands/ListScramSecretsCommand.js +28 -21
  27. package/dist-es/commands/ListTagsForResourceCommand.js +28 -21
  28. package/dist-es/commands/RebootBrokerCommand.js +28 -21
  29. package/dist-es/commands/TagResourceCommand.js +29 -22
  30. package/dist-es/commands/UntagResourceCommand.js +29 -22
  31. package/dist-es/commands/UpdateBrokerCountCommand.js +28 -21
  32. package/dist-es/commands/UpdateBrokerStorageCommand.js +28 -21
  33. package/dist-es/commands/UpdateBrokerTypeCommand.js +28 -21
  34. package/dist-es/commands/UpdateClusterConfigurationCommand.js +28 -21
  35. package/dist-es/commands/UpdateClusterKafkaVersionCommand.js +28 -21
  36. package/dist-es/commands/UpdateConfigurationCommand.js +28 -21
  37. package/dist-es/commands/UpdateConnectivityCommand.js +28 -21
  38. package/dist-es/commands/UpdateMonitoringCommand.js +28 -21
  39. package/dist-es/commands/UpdateSecurityCommand.js +28 -21
  40. package/dist-es/endpoints.js +8 -8
  41. package/dist-es/models/KafkaServiceException.js +10 -5
  42. package/dist-es/models/models_0.js +227 -470
  43. package/dist-es/pagination/ListClusterOperationsPaginator.js +68 -25
  44. package/dist-es/pagination/ListClustersPaginator.js +68 -25
  45. package/dist-es/pagination/ListClustersV2Paginator.js +68 -25
  46. package/dist-es/pagination/ListConfigurationRevisionsPaginator.js +68 -25
  47. package/dist-es/pagination/ListConfigurationsPaginator.js +68 -25
  48. package/dist-es/pagination/ListKafkaVersionsPaginator.js +68 -25
  49. package/dist-es/pagination/ListNodesPaginator.js +68 -25
  50. package/dist-es/pagination/ListScramSecretsPaginator.js +68 -25
  51. package/dist-es/protocols/Aws_restJson1.js +3995 -2968
  52. package/dist-es/runtimeConfig.browser.js +12 -26
  53. package/dist-es/runtimeConfig.js +12 -30
  54. package/dist-es/runtimeConfig.native.js +5 -8
  55. package/dist-es/runtimeConfig.shared.js +11 -8
  56. package/package.json +33 -33
package/dist-es/Kafka.js CHANGED
@@ -1,3 +1,4 @@
1
+ import { __extends } from "tslib";
1
2
  import { BatchAssociateScramSecretCommand, } from "./commands/BatchAssociateScramSecretCommand";
2
3
  import { BatchDisassociateScramSecretCommand, } from "./commands/BatchDisassociateScramSecretCommand";
3
4
  import { CreateClusterCommand, } from "./commands/CreateClusterCommand";
@@ -34,495 +35,501 @@ import { UpdateConnectivityCommand, } from "./commands/UpdateConnectivityCommand
34
35
  import { UpdateMonitoringCommand, } from "./commands/UpdateMonitoringCommand";
35
36
  import { UpdateSecurityCommand, } from "./commands/UpdateSecurityCommand";
36
37
  import { KafkaClient } from "./KafkaClient";
37
- export class Kafka extends KafkaClient {
38
- batchAssociateScramSecret(args, optionsOrCb, cb) {
39
- const command = new BatchAssociateScramSecretCommand(args);
38
+ var Kafka = (function (_super) {
39
+ __extends(Kafka, _super);
40
+ function Kafka() {
41
+ return _super !== null && _super.apply(this, arguments) || this;
42
+ }
43
+ Kafka.prototype.batchAssociateScramSecret = function (args, optionsOrCb, cb) {
44
+ var command = new BatchAssociateScramSecretCommand(args);
40
45
  if (typeof optionsOrCb === "function") {
41
46
  this.send(command, optionsOrCb);
42
47
  }
43
48
  else if (typeof cb === "function") {
44
49
  if (typeof optionsOrCb !== "object")
45
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
50
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
46
51
  this.send(command, optionsOrCb || {}, cb);
47
52
  }
48
53
  else {
49
54
  return this.send(command, optionsOrCb);
50
55
  }
51
- }
52
- batchDisassociateScramSecret(args, optionsOrCb, cb) {
53
- const command = new BatchDisassociateScramSecretCommand(args);
56
+ };
57
+ Kafka.prototype.batchDisassociateScramSecret = function (args, optionsOrCb, cb) {
58
+ var command = new BatchDisassociateScramSecretCommand(args);
54
59
  if (typeof optionsOrCb === "function") {
55
60
  this.send(command, optionsOrCb);
56
61
  }
57
62
  else if (typeof cb === "function") {
58
63
  if (typeof optionsOrCb !== "object")
59
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
64
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
60
65
  this.send(command, optionsOrCb || {}, cb);
61
66
  }
62
67
  else {
63
68
  return this.send(command, optionsOrCb);
64
69
  }
65
- }
66
- createCluster(args, optionsOrCb, cb) {
67
- const command = new CreateClusterCommand(args);
70
+ };
71
+ Kafka.prototype.createCluster = function (args, optionsOrCb, cb) {
72
+ var command = new CreateClusterCommand(args);
68
73
  if (typeof optionsOrCb === "function") {
69
74
  this.send(command, optionsOrCb);
70
75
  }
71
76
  else if (typeof cb === "function") {
72
77
  if (typeof optionsOrCb !== "object")
73
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
78
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
74
79
  this.send(command, optionsOrCb || {}, cb);
75
80
  }
76
81
  else {
77
82
  return this.send(command, optionsOrCb);
78
83
  }
79
- }
80
- createClusterV2(args, optionsOrCb, cb) {
81
- const command = new CreateClusterV2Command(args);
84
+ };
85
+ Kafka.prototype.createClusterV2 = function (args, optionsOrCb, cb) {
86
+ var command = new CreateClusterV2Command(args);
82
87
  if (typeof optionsOrCb === "function") {
83
88
  this.send(command, optionsOrCb);
84
89
  }
85
90
  else if (typeof cb === "function") {
86
91
  if (typeof optionsOrCb !== "object")
87
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
92
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
88
93
  this.send(command, optionsOrCb || {}, cb);
89
94
  }
90
95
  else {
91
96
  return this.send(command, optionsOrCb);
92
97
  }
93
- }
94
- createConfiguration(args, optionsOrCb, cb) {
95
- const command = new CreateConfigurationCommand(args);
98
+ };
99
+ Kafka.prototype.createConfiguration = function (args, optionsOrCb, cb) {
100
+ var command = new CreateConfigurationCommand(args);
96
101
  if (typeof optionsOrCb === "function") {
97
102
  this.send(command, optionsOrCb);
98
103
  }
99
104
  else if (typeof cb === "function") {
100
105
  if (typeof optionsOrCb !== "object")
101
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
106
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
102
107
  this.send(command, optionsOrCb || {}, cb);
103
108
  }
104
109
  else {
105
110
  return this.send(command, optionsOrCb);
106
111
  }
107
- }
108
- deleteCluster(args, optionsOrCb, cb) {
109
- const command = new DeleteClusterCommand(args);
112
+ };
113
+ Kafka.prototype.deleteCluster = function (args, optionsOrCb, cb) {
114
+ var command = new DeleteClusterCommand(args);
110
115
  if (typeof optionsOrCb === "function") {
111
116
  this.send(command, optionsOrCb);
112
117
  }
113
118
  else if (typeof cb === "function") {
114
119
  if (typeof optionsOrCb !== "object")
115
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
120
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
116
121
  this.send(command, optionsOrCb || {}, cb);
117
122
  }
118
123
  else {
119
124
  return this.send(command, optionsOrCb);
120
125
  }
121
- }
122
- deleteConfiguration(args, optionsOrCb, cb) {
123
- const command = new DeleteConfigurationCommand(args);
126
+ };
127
+ Kafka.prototype.deleteConfiguration = function (args, optionsOrCb, cb) {
128
+ var command = new DeleteConfigurationCommand(args);
124
129
  if (typeof optionsOrCb === "function") {
125
130
  this.send(command, optionsOrCb);
126
131
  }
127
132
  else if (typeof cb === "function") {
128
133
  if (typeof optionsOrCb !== "object")
129
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
134
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
130
135
  this.send(command, optionsOrCb || {}, cb);
131
136
  }
132
137
  else {
133
138
  return this.send(command, optionsOrCb);
134
139
  }
135
- }
136
- describeCluster(args, optionsOrCb, cb) {
137
- const command = new DescribeClusterCommand(args);
140
+ };
141
+ Kafka.prototype.describeCluster = function (args, optionsOrCb, cb) {
142
+ var command = new DescribeClusterCommand(args);
138
143
  if (typeof optionsOrCb === "function") {
139
144
  this.send(command, optionsOrCb);
140
145
  }
141
146
  else if (typeof cb === "function") {
142
147
  if (typeof optionsOrCb !== "object")
143
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
148
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
144
149
  this.send(command, optionsOrCb || {}, cb);
145
150
  }
146
151
  else {
147
152
  return this.send(command, optionsOrCb);
148
153
  }
149
- }
150
- describeClusterOperation(args, optionsOrCb, cb) {
151
- const command = new DescribeClusterOperationCommand(args);
154
+ };
155
+ Kafka.prototype.describeClusterOperation = function (args, optionsOrCb, cb) {
156
+ var command = new DescribeClusterOperationCommand(args);
152
157
  if (typeof optionsOrCb === "function") {
153
158
  this.send(command, optionsOrCb);
154
159
  }
155
160
  else if (typeof cb === "function") {
156
161
  if (typeof optionsOrCb !== "object")
157
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
162
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
158
163
  this.send(command, optionsOrCb || {}, cb);
159
164
  }
160
165
  else {
161
166
  return this.send(command, optionsOrCb);
162
167
  }
163
- }
164
- describeClusterV2(args, optionsOrCb, cb) {
165
- const command = new DescribeClusterV2Command(args);
168
+ };
169
+ Kafka.prototype.describeClusterV2 = function (args, optionsOrCb, cb) {
170
+ var command = new DescribeClusterV2Command(args);
166
171
  if (typeof optionsOrCb === "function") {
167
172
  this.send(command, optionsOrCb);
168
173
  }
169
174
  else if (typeof cb === "function") {
170
175
  if (typeof optionsOrCb !== "object")
171
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
176
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
172
177
  this.send(command, optionsOrCb || {}, cb);
173
178
  }
174
179
  else {
175
180
  return this.send(command, optionsOrCb);
176
181
  }
177
- }
178
- describeConfiguration(args, optionsOrCb, cb) {
179
- const command = new DescribeConfigurationCommand(args);
182
+ };
183
+ Kafka.prototype.describeConfiguration = function (args, optionsOrCb, cb) {
184
+ var command = new DescribeConfigurationCommand(args);
180
185
  if (typeof optionsOrCb === "function") {
181
186
  this.send(command, optionsOrCb);
182
187
  }
183
188
  else if (typeof cb === "function") {
184
189
  if (typeof optionsOrCb !== "object")
185
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
190
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
186
191
  this.send(command, optionsOrCb || {}, cb);
187
192
  }
188
193
  else {
189
194
  return this.send(command, optionsOrCb);
190
195
  }
191
- }
192
- describeConfigurationRevision(args, optionsOrCb, cb) {
193
- const command = new DescribeConfigurationRevisionCommand(args);
196
+ };
197
+ Kafka.prototype.describeConfigurationRevision = function (args, optionsOrCb, cb) {
198
+ var command = new DescribeConfigurationRevisionCommand(args);
194
199
  if (typeof optionsOrCb === "function") {
195
200
  this.send(command, optionsOrCb);
196
201
  }
197
202
  else if (typeof cb === "function") {
198
203
  if (typeof optionsOrCb !== "object")
199
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
204
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
200
205
  this.send(command, optionsOrCb || {}, cb);
201
206
  }
202
207
  else {
203
208
  return this.send(command, optionsOrCb);
204
209
  }
205
- }
206
- getBootstrapBrokers(args, optionsOrCb, cb) {
207
- const command = new GetBootstrapBrokersCommand(args);
210
+ };
211
+ Kafka.prototype.getBootstrapBrokers = function (args, optionsOrCb, cb) {
212
+ var command = new GetBootstrapBrokersCommand(args);
208
213
  if (typeof optionsOrCb === "function") {
209
214
  this.send(command, optionsOrCb);
210
215
  }
211
216
  else if (typeof cb === "function") {
212
217
  if (typeof optionsOrCb !== "object")
213
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
218
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
214
219
  this.send(command, optionsOrCb || {}, cb);
215
220
  }
216
221
  else {
217
222
  return this.send(command, optionsOrCb);
218
223
  }
219
- }
220
- getCompatibleKafkaVersions(args, optionsOrCb, cb) {
221
- const command = new GetCompatibleKafkaVersionsCommand(args);
224
+ };
225
+ Kafka.prototype.getCompatibleKafkaVersions = function (args, optionsOrCb, cb) {
226
+ var command = new GetCompatibleKafkaVersionsCommand(args);
222
227
  if (typeof optionsOrCb === "function") {
223
228
  this.send(command, optionsOrCb);
224
229
  }
225
230
  else if (typeof cb === "function") {
226
231
  if (typeof optionsOrCb !== "object")
227
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
232
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
228
233
  this.send(command, optionsOrCb || {}, cb);
229
234
  }
230
235
  else {
231
236
  return this.send(command, optionsOrCb);
232
237
  }
233
- }
234
- listClusterOperations(args, optionsOrCb, cb) {
235
- const command = new ListClusterOperationsCommand(args);
238
+ };
239
+ Kafka.prototype.listClusterOperations = function (args, optionsOrCb, cb) {
240
+ var command = new ListClusterOperationsCommand(args);
236
241
  if (typeof optionsOrCb === "function") {
237
242
  this.send(command, optionsOrCb);
238
243
  }
239
244
  else if (typeof cb === "function") {
240
245
  if (typeof optionsOrCb !== "object")
241
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
246
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
242
247
  this.send(command, optionsOrCb || {}, cb);
243
248
  }
244
249
  else {
245
250
  return this.send(command, optionsOrCb);
246
251
  }
247
- }
248
- listClusters(args, optionsOrCb, cb) {
249
- const command = new ListClustersCommand(args);
252
+ };
253
+ Kafka.prototype.listClusters = function (args, optionsOrCb, cb) {
254
+ var command = new ListClustersCommand(args);
250
255
  if (typeof optionsOrCb === "function") {
251
256
  this.send(command, optionsOrCb);
252
257
  }
253
258
  else if (typeof cb === "function") {
254
259
  if (typeof optionsOrCb !== "object")
255
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
260
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
256
261
  this.send(command, optionsOrCb || {}, cb);
257
262
  }
258
263
  else {
259
264
  return this.send(command, optionsOrCb);
260
265
  }
261
- }
262
- listClustersV2(args, optionsOrCb, cb) {
263
- const command = new ListClustersV2Command(args);
266
+ };
267
+ Kafka.prototype.listClustersV2 = function (args, optionsOrCb, cb) {
268
+ var command = new ListClustersV2Command(args);
264
269
  if (typeof optionsOrCb === "function") {
265
270
  this.send(command, optionsOrCb);
266
271
  }
267
272
  else if (typeof cb === "function") {
268
273
  if (typeof optionsOrCb !== "object")
269
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
274
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
270
275
  this.send(command, optionsOrCb || {}, cb);
271
276
  }
272
277
  else {
273
278
  return this.send(command, optionsOrCb);
274
279
  }
275
- }
276
- listConfigurationRevisions(args, optionsOrCb, cb) {
277
- const command = new ListConfigurationRevisionsCommand(args);
280
+ };
281
+ Kafka.prototype.listConfigurationRevisions = function (args, optionsOrCb, cb) {
282
+ var command = new ListConfigurationRevisionsCommand(args);
278
283
  if (typeof optionsOrCb === "function") {
279
284
  this.send(command, optionsOrCb);
280
285
  }
281
286
  else if (typeof cb === "function") {
282
287
  if (typeof optionsOrCb !== "object")
283
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
288
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
284
289
  this.send(command, optionsOrCb || {}, cb);
285
290
  }
286
291
  else {
287
292
  return this.send(command, optionsOrCb);
288
293
  }
289
- }
290
- listConfigurations(args, optionsOrCb, cb) {
291
- const command = new ListConfigurationsCommand(args);
294
+ };
295
+ Kafka.prototype.listConfigurations = function (args, optionsOrCb, cb) {
296
+ var command = new ListConfigurationsCommand(args);
292
297
  if (typeof optionsOrCb === "function") {
293
298
  this.send(command, optionsOrCb);
294
299
  }
295
300
  else if (typeof cb === "function") {
296
301
  if (typeof optionsOrCb !== "object")
297
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
302
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
298
303
  this.send(command, optionsOrCb || {}, cb);
299
304
  }
300
305
  else {
301
306
  return this.send(command, optionsOrCb);
302
307
  }
303
- }
304
- listKafkaVersions(args, optionsOrCb, cb) {
305
- const command = new ListKafkaVersionsCommand(args);
308
+ };
309
+ Kafka.prototype.listKafkaVersions = function (args, optionsOrCb, cb) {
310
+ var command = new ListKafkaVersionsCommand(args);
306
311
  if (typeof optionsOrCb === "function") {
307
312
  this.send(command, optionsOrCb);
308
313
  }
309
314
  else if (typeof cb === "function") {
310
315
  if (typeof optionsOrCb !== "object")
311
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
316
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
312
317
  this.send(command, optionsOrCb || {}, cb);
313
318
  }
314
319
  else {
315
320
  return this.send(command, optionsOrCb);
316
321
  }
317
- }
318
- listNodes(args, optionsOrCb, cb) {
319
- const command = new ListNodesCommand(args);
322
+ };
323
+ Kafka.prototype.listNodes = function (args, optionsOrCb, cb) {
324
+ var command = new ListNodesCommand(args);
320
325
  if (typeof optionsOrCb === "function") {
321
326
  this.send(command, optionsOrCb);
322
327
  }
323
328
  else if (typeof cb === "function") {
324
329
  if (typeof optionsOrCb !== "object")
325
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
330
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
326
331
  this.send(command, optionsOrCb || {}, cb);
327
332
  }
328
333
  else {
329
334
  return this.send(command, optionsOrCb);
330
335
  }
331
- }
332
- listScramSecrets(args, optionsOrCb, cb) {
333
- const command = new ListScramSecretsCommand(args);
336
+ };
337
+ Kafka.prototype.listScramSecrets = function (args, optionsOrCb, cb) {
338
+ var command = new ListScramSecretsCommand(args);
334
339
  if (typeof optionsOrCb === "function") {
335
340
  this.send(command, optionsOrCb);
336
341
  }
337
342
  else if (typeof cb === "function") {
338
343
  if (typeof optionsOrCb !== "object")
339
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
344
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
340
345
  this.send(command, optionsOrCb || {}, cb);
341
346
  }
342
347
  else {
343
348
  return this.send(command, optionsOrCb);
344
349
  }
345
- }
346
- listTagsForResource(args, optionsOrCb, cb) {
347
- const command = new ListTagsForResourceCommand(args);
350
+ };
351
+ Kafka.prototype.listTagsForResource = function (args, optionsOrCb, cb) {
352
+ var command = new ListTagsForResourceCommand(args);
348
353
  if (typeof optionsOrCb === "function") {
349
354
  this.send(command, optionsOrCb);
350
355
  }
351
356
  else if (typeof cb === "function") {
352
357
  if (typeof optionsOrCb !== "object")
353
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
358
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
354
359
  this.send(command, optionsOrCb || {}, cb);
355
360
  }
356
361
  else {
357
362
  return this.send(command, optionsOrCb);
358
363
  }
359
- }
360
- rebootBroker(args, optionsOrCb, cb) {
361
- const command = new RebootBrokerCommand(args);
364
+ };
365
+ Kafka.prototype.rebootBroker = function (args, optionsOrCb, cb) {
366
+ var command = new RebootBrokerCommand(args);
362
367
  if (typeof optionsOrCb === "function") {
363
368
  this.send(command, optionsOrCb);
364
369
  }
365
370
  else if (typeof cb === "function") {
366
371
  if (typeof optionsOrCb !== "object")
367
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
372
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
368
373
  this.send(command, optionsOrCb || {}, cb);
369
374
  }
370
375
  else {
371
376
  return this.send(command, optionsOrCb);
372
377
  }
373
- }
374
- tagResource(args, optionsOrCb, cb) {
375
- const command = new TagResourceCommand(args);
378
+ };
379
+ Kafka.prototype.tagResource = function (args, optionsOrCb, cb) {
380
+ var command = new TagResourceCommand(args);
376
381
  if (typeof optionsOrCb === "function") {
377
382
  this.send(command, optionsOrCb);
378
383
  }
379
384
  else if (typeof cb === "function") {
380
385
  if (typeof optionsOrCb !== "object")
381
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
386
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
382
387
  this.send(command, optionsOrCb || {}, cb);
383
388
  }
384
389
  else {
385
390
  return this.send(command, optionsOrCb);
386
391
  }
387
- }
388
- untagResource(args, optionsOrCb, cb) {
389
- const command = new UntagResourceCommand(args);
392
+ };
393
+ Kafka.prototype.untagResource = function (args, optionsOrCb, cb) {
394
+ var command = new UntagResourceCommand(args);
390
395
  if (typeof optionsOrCb === "function") {
391
396
  this.send(command, optionsOrCb);
392
397
  }
393
398
  else if (typeof cb === "function") {
394
399
  if (typeof optionsOrCb !== "object")
395
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
400
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
396
401
  this.send(command, optionsOrCb || {}, cb);
397
402
  }
398
403
  else {
399
404
  return this.send(command, optionsOrCb);
400
405
  }
401
- }
402
- updateBrokerCount(args, optionsOrCb, cb) {
403
- const command = new UpdateBrokerCountCommand(args);
406
+ };
407
+ Kafka.prototype.updateBrokerCount = function (args, optionsOrCb, cb) {
408
+ var command = new UpdateBrokerCountCommand(args);
404
409
  if (typeof optionsOrCb === "function") {
405
410
  this.send(command, optionsOrCb);
406
411
  }
407
412
  else if (typeof cb === "function") {
408
413
  if (typeof optionsOrCb !== "object")
409
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
414
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
410
415
  this.send(command, optionsOrCb || {}, cb);
411
416
  }
412
417
  else {
413
418
  return this.send(command, optionsOrCb);
414
419
  }
415
- }
416
- updateBrokerStorage(args, optionsOrCb, cb) {
417
- const command = new UpdateBrokerStorageCommand(args);
420
+ };
421
+ Kafka.prototype.updateBrokerStorage = function (args, optionsOrCb, cb) {
422
+ var command = new UpdateBrokerStorageCommand(args);
418
423
  if (typeof optionsOrCb === "function") {
419
424
  this.send(command, optionsOrCb);
420
425
  }
421
426
  else if (typeof cb === "function") {
422
427
  if (typeof optionsOrCb !== "object")
423
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
428
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
424
429
  this.send(command, optionsOrCb || {}, cb);
425
430
  }
426
431
  else {
427
432
  return this.send(command, optionsOrCb);
428
433
  }
429
- }
430
- updateBrokerType(args, optionsOrCb, cb) {
431
- const command = new UpdateBrokerTypeCommand(args);
434
+ };
435
+ Kafka.prototype.updateBrokerType = function (args, optionsOrCb, cb) {
436
+ var command = new UpdateBrokerTypeCommand(args);
432
437
  if (typeof optionsOrCb === "function") {
433
438
  this.send(command, optionsOrCb);
434
439
  }
435
440
  else if (typeof cb === "function") {
436
441
  if (typeof optionsOrCb !== "object")
437
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
442
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
438
443
  this.send(command, optionsOrCb || {}, cb);
439
444
  }
440
445
  else {
441
446
  return this.send(command, optionsOrCb);
442
447
  }
443
- }
444
- updateClusterConfiguration(args, optionsOrCb, cb) {
445
- const command = new UpdateClusterConfigurationCommand(args);
448
+ };
449
+ Kafka.prototype.updateClusterConfiguration = function (args, optionsOrCb, cb) {
450
+ var command = new UpdateClusterConfigurationCommand(args);
446
451
  if (typeof optionsOrCb === "function") {
447
452
  this.send(command, optionsOrCb);
448
453
  }
449
454
  else if (typeof cb === "function") {
450
455
  if (typeof optionsOrCb !== "object")
451
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
456
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
452
457
  this.send(command, optionsOrCb || {}, cb);
453
458
  }
454
459
  else {
455
460
  return this.send(command, optionsOrCb);
456
461
  }
457
- }
458
- updateClusterKafkaVersion(args, optionsOrCb, cb) {
459
- const command = new UpdateClusterKafkaVersionCommand(args);
462
+ };
463
+ Kafka.prototype.updateClusterKafkaVersion = function (args, optionsOrCb, cb) {
464
+ var command = new UpdateClusterKafkaVersionCommand(args);
460
465
  if (typeof optionsOrCb === "function") {
461
466
  this.send(command, optionsOrCb);
462
467
  }
463
468
  else if (typeof cb === "function") {
464
469
  if (typeof optionsOrCb !== "object")
465
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
470
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
466
471
  this.send(command, optionsOrCb || {}, cb);
467
472
  }
468
473
  else {
469
474
  return this.send(command, optionsOrCb);
470
475
  }
471
- }
472
- updateConfiguration(args, optionsOrCb, cb) {
473
- const command = new UpdateConfigurationCommand(args);
476
+ };
477
+ Kafka.prototype.updateConfiguration = function (args, optionsOrCb, cb) {
478
+ var command = new UpdateConfigurationCommand(args);
474
479
  if (typeof optionsOrCb === "function") {
475
480
  this.send(command, optionsOrCb);
476
481
  }
477
482
  else if (typeof cb === "function") {
478
483
  if (typeof optionsOrCb !== "object")
479
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
484
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
480
485
  this.send(command, optionsOrCb || {}, cb);
481
486
  }
482
487
  else {
483
488
  return this.send(command, optionsOrCb);
484
489
  }
485
- }
486
- updateConnectivity(args, optionsOrCb, cb) {
487
- const command = new UpdateConnectivityCommand(args);
490
+ };
491
+ Kafka.prototype.updateConnectivity = function (args, optionsOrCb, cb) {
492
+ var command = new UpdateConnectivityCommand(args);
488
493
  if (typeof optionsOrCb === "function") {
489
494
  this.send(command, optionsOrCb);
490
495
  }
491
496
  else if (typeof cb === "function") {
492
497
  if (typeof optionsOrCb !== "object")
493
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
498
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
494
499
  this.send(command, optionsOrCb || {}, cb);
495
500
  }
496
501
  else {
497
502
  return this.send(command, optionsOrCb);
498
503
  }
499
- }
500
- updateMonitoring(args, optionsOrCb, cb) {
501
- const command = new UpdateMonitoringCommand(args);
504
+ };
505
+ Kafka.prototype.updateMonitoring = function (args, optionsOrCb, cb) {
506
+ var command = new UpdateMonitoringCommand(args);
502
507
  if (typeof optionsOrCb === "function") {
503
508
  this.send(command, optionsOrCb);
504
509
  }
505
510
  else if (typeof cb === "function") {
506
511
  if (typeof optionsOrCb !== "object")
507
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
512
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
508
513
  this.send(command, optionsOrCb || {}, cb);
509
514
  }
510
515
  else {
511
516
  return this.send(command, optionsOrCb);
512
517
  }
513
- }
514
- updateSecurity(args, optionsOrCb, cb) {
515
- const command = new UpdateSecurityCommand(args);
518
+ };
519
+ Kafka.prototype.updateSecurity = function (args, optionsOrCb, cb) {
520
+ var command = new UpdateSecurityCommand(args);
516
521
  if (typeof optionsOrCb === "function") {
517
522
  this.send(command, optionsOrCb);
518
523
  }
519
524
  else if (typeof cb === "function") {
520
525
  if (typeof optionsOrCb !== "object")
521
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
526
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
522
527
  this.send(command, optionsOrCb || {}, cb);
523
528
  }
524
529
  else {
525
530
  return this.send(command, optionsOrCb);
526
531
  }
527
- }
528
- }
532
+ };
533
+ return Kafka;
534
+ }(KafkaClient));
535
+ export { Kafka };