@aws-sdk/client-kafka 3.43.0 → 3.44.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 (40) hide show
  1. package/CHANGELOG.md +11 -0
  2. package/dist-cjs/Kafka.js +45 -0
  3. package/dist-cjs/commands/CreateClusterV2Command.js +36 -0
  4. package/dist-cjs/commands/DescribeClusterV2Command.js +36 -0
  5. package/dist-cjs/commands/ListClustersV2Command.js +36 -0
  6. package/dist-cjs/commands/index.js +3 -0
  7. package/dist-cjs/models/models_0.js +132 -43
  8. package/dist-cjs/pagination/ListClustersV2Paginator.js +35 -0
  9. package/dist-cjs/pagination/index.js +1 -0
  10. package/dist-cjs/protocols/Aws_restJson1.js +546 -2
  11. package/dist-es/Kafka.js +45 -0
  12. package/dist-es/commands/CreateClusterV2Command.js +39 -0
  13. package/dist-es/commands/DescribeClusterV2Command.js +39 -0
  14. package/dist-es/commands/ListClustersV2Command.js +39 -0
  15. package/dist-es/commands/index.js +3 -0
  16. package/dist-es/models/models_0.js +92 -31
  17. package/dist-es/pagination/ListClustersV2Paginator.js +74 -0
  18. package/dist-es/pagination/index.js +1 -0
  19. package/dist-es/protocols/Aws_restJson1.js +571 -0
  20. package/dist-types/Kafka.d.ts +21 -0
  21. package/dist-types/KafkaClient.d.ts +5 -2
  22. package/dist-types/commands/CreateClusterV2Command.d.ts +35 -0
  23. package/dist-types/commands/DescribeClusterV2Command.d.ts +35 -0
  24. package/dist-types/commands/ListClustersV2Command.d.ts +35 -0
  25. package/dist-types/commands/index.d.ts +3 -0
  26. package/dist-types/models/models_0.d.ts +432 -70
  27. package/dist-types/pagination/ListClustersV2Paginator.d.ts +4 -0
  28. package/dist-types/pagination/index.d.ts +1 -0
  29. package/dist-types/protocols/Aws_restJson1.d.ts +9 -0
  30. package/dist-types/ts3.4/Kafka.d.ts +15 -0
  31. package/dist-types/ts3.4/KafkaClient.d.ts +5 -2
  32. package/dist-types/ts3.4/commands/CreateClusterV2Command.d.ts +17 -0
  33. package/dist-types/ts3.4/commands/DescribeClusterV2Command.d.ts +17 -0
  34. package/dist-types/ts3.4/commands/ListClustersV2Command.d.ts +17 -0
  35. package/dist-types/ts3.4/commands/index.d.ts +3 -0
  36. package/dist-types/ts3.4/models/models_0.d.ts +256 -48
  37. package/dist-types/ts3.4/pagination/ListClustersV2Paginator.d.ts +4 -0
  38. package/dist-types/ts3.4/pagination/index.d.ts +1 -0
  39. package/dist-types/ts3.4/protocols/Aws_restJson1.d.ts +9 -0
  40. package/package.json +1 -1
package/dist-es/Kafka.js CHANGED
@@ -2,17 +2,20 @@ import { __extends } from "tslib";
2
2
  import { BatchAssociateScramSecretCommand, } from "./commands/BatchAssociateScramSecretCommand";
3
3
  import { BatchDisassociateScramSecretCommand, } from "./commands/BatchDisassociateScramSecretCommand";
4
4
  import { CreateClusterCommand, } from "./commands/CreateClusterCommand";
5
+ import { CreateClusterV2Command, } from "./commands/CreateClusterV2Command";
5
6
  import { CreateConfigurationCommand, } from "./commands/CreateConfigurationCommand";
6
7
  import { DeleteClusterCommand, } from "./commands/DeleteClusterCommand";
7
8
  import { DeleteConfigurationCommand, } from "./commands/DeleteConfigurationCommand";
8
9
  import { DescribeClusterCommand, } from "./commands/DescribeClusterCommand";
9
10
  import { DescribeClusterOperationCommand, } from "./commands/DescribeClusterOperationCommand";
11
+ import { DescribeClusterV2Command, } from "./commands/DescribeClusterV2Command";
10
12
  import { DescribeConfigurationCommand, } from "./commands/DescribeConfigurationCommand";
11
13
  import { DescribeConfigurationRevisionCommand, } from "./commands/DescribeConfigurationRevisionCommand";
12
14
  import { GetBootstrapBrokersCommand, } from "./commands/GetBootstrapBrokersCommand";
13
15
  import { GetCompatibleKafkaVersionsCommand, } from "./commands/GetCompatibleKafkaVersionsCommand";
14
16
  import { ListClusterOperationsCommand, } from "./commands/ListClusterOperationsCommand";
15
17
  import { ListClustersCommand, } from "./commands/ListClustersCommand";
18
+ import { ListClustersV2Command, } from "./commands/ListClustersV2Command";
16
19
  import { ListConfigurationRevisionsCommand, } from "./commands/ListConfigurationRevisionsCommand";
17
20
  import { ListConfigurationsCommand, } from "./commands/ListConfigurationsCommand";
18
21
  import { ListKafkaVersionsCommand, } from "./commands/ListKafkaVersionsCommand";
@@ -79,6 +82,20 @@ var Kafka = (function (_super) {
79
82
  return this.send(command, optionsOrCb);
80
83
  }
81
84
  };
85
+ Kafka.prototype.createClusterV2 = function (args, optionsOrCb, cb) {
86
+ var command = new CreateClusterV2Command(args);
87
+ if (typeof optionsOrCb === "function") {
88
+ this.send(command, optionsOrCb);
89
+ }
90
+ else if (typeof cb === "function") {
91
+ if (typeof optionsOrCb !== "object")
92
+ throw new Error("Expect http options but get " + typeof optionsOrCb);
93
+ this.send(command, optionsOrCb || {}, cb);
94
+ }
95
+ else {
96
+ return this.send(command, optionsOrCb);
97
+ }
98
+ };
82
99
  Kafka.prototype.createConfiguration = function (args, optionsOrCb, cb) {
83
100
  var command = new CreateConfigurationCommand(args);
84
101
  if (typeof optionsOrCb === "function") {
@@ -149,6 +166,20 @@ var Kafka = (function (_super) {
149
166
  return this.send(command, optionsOrCb);
150
167
  }
151
168
  };
169
+ Kafka.prototype.describeClusterV2 = function (args, optionsOrCb, cb) {
170
+ var command = new DescribeClusterV2Command(args);
171
+ if (typeof optionsOrCb === "function") {
172
+ this.send(command, optionsOrCb);
173
+ }
174
+ else if (typeof cb === "function") {
175
+ if (typeof optionsOrCb !== "object")
176
+ throw new Error("Expect http options but get " + typeof optionsOrCb);
177
+ this.send(command, optionsOrCb || {}, cb);
178
+ }
179
+ else {
180
+ return this.send(command, optionsOrCb);
181
+ }
182
+ };
152
183
  Kafka.prototype.describeConfiguration = function (args, optionsOrCb, cb) {
153
184
  var command = new DescribeConfigurationCommand(args);
154
185
  if (typeof optionsOrCb === "function") {
@@ -233,6 +264,20 @@ var Kafka = (function (_super) {
233
264
  return this.send(command, optionsOrCb);
234
265
  }
235
266
  };
267
+ Kafka.prototype.listClustersV2 = function (args, optionsOrCb, cb) {
268
+ var command = new ListClustersV2Command(args);
269
+ if (typeof optionsOrCb === "function") {
270
+ this.send(command, optionsOrCb);
271
+ }
272
+ else if (typeof cb === "function") {
273
+ if (typeof optionsOrCb !== "object")
274
+ throw new Error("Expect http options but get " + typeof optionsOrCb);
275
+ this.send(command, optionsOrCb || {}, cb);
276
+ }
277
+ else {
278
+ return this.send(command, optionsOrCb);
279
+ }
280
+ };
236
281
  Kafka.prototype.listConfigurationRevisions = function (args, optionsOrCb, cb) {
237
282
  var command = new ListConfigurationRevisionsCommand(args);
238
283
  if (typeof optionsOrCb === "function") {
@@ -0,0 +1,39 @@
1
+ import { __extends } from "tslib";
2
+ import { getSerdePlugin } from "@aws-sdk/middleware-serde";
3
+ import { Command as $Command } from "@aws-sdk/smithy-client";
4
+ import { CreateClusterV2Request, CreateClusterV2Response } from "../models/models_0";
5
+ import { deserializeAws_restJson1CreateClusterV2Command, serializeAws_restJson1CreateClusterV2Command, } from "../protocols/Aws_restJson1";
6
+ var CreateClusterV2Command = (function (_super) {
7
+ __extends(CreateClusterV2Command, _super);
8
+ function CreateClusterV2Command(input) {
9
+ var _this = _super.call(this) || this;
10
+ _this.input = input;
11
+ return _this;
12
+ }
13
+ CreateClusterV2Command.prototype.resolveMiddleware = function (clientStack, configuration, options) {
14
+ this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
15
+ var stack = clientStack.concat(this.middlewareStack);
16
+ var logger = configuration.logger;
17
+ var clientName = "KafkaClient";
18
+ var commandName = "CreateClusterV2Command";
19
+ var handlerExecutionContext = {
20
+ logger: logger,
21
+ clientName: clientName,
22
+ commandName: commandName,
23
+ inputFilterSensitiveLog: CreateClusterV2Request.filterSensitiveLog,
24
+ outputFilterSensitiveLog: CreateClusterV2Response.filterSensitiveLog,
25
+ };
26
+ var requestHandler = configuration.requestHandler;
27
+ return stack.resolve(function (request) {
28
+ return requestHandler.handle(request.request, options || {});
29
+ }, handlerExecutionContext);
30
+ };
31
+ CreateClusterV2Command.prototype.serialize = function (input, context) {
32
+ return serializeAws_restJson1CreateClusterV2Command(input, context);
33
+ };
34
+ CreateClusterV2Command.prototype.deserialize = function (output, context) {
35
+ return deserializeAws_restJson1CreateClusterV2Command(output, context);
36
+ };
37
+ return CreateClusterV2Command;
38
+ }($Command));
39
+ export { CreateClusterV2Command };
@@ -0,0 +1,39 @@
1
+ import { __extends } from "tslib";
2
+ import { getSerdePlugin } from "@aws-sdk/middleware-serde";
3
+ import { Command as $Command } from "@aws-sdk/smithy-client";
4
+ import { DescribeClusterV2Request, DescribeClusterV2Response } from "../models/models_0";
5
+ import { deserializeAws_restJson1DescribeClusterV2Command, serializeAws_restJson1DescribeClusterV2Command, } from "../protocols/Aws_restJson1";
6
+ var DescribeClusterV2Command = (function (_super) {
7
+ __extends(DescribeClusterV2Command, _super);
8
+ function DescribeClusterV2Command(input) {
9
+ var _this = _super.call(this) || this;
10
+ _this.input = input;
11
+ return _this;
12
+ }
13
+ DescribeClusterV2Command.prototype.resolveMiddleware = function (clientStack, configuration, options) {
14
+ this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
15
+ var stack = clientStack.concat(this.middlewareStack);
16
+ var logger = configuration.logger;
17
+ var clientName = "KafkaClient";
18
+ var commandName = "DescribeClusterV2Command";
19
+ var handlerExecutionContext = {
20
+ logger: logger,
21
+ clientName: clientName,
22
+ commandName: commandName,
23
+ inputFilterSensitiveLog: DescribeClusterV2Request.filterSensitiveLog,
24
+ outputFilterSensitiveLog: DescribeClusterV2Response.filterSensitiveLog,
25
+ };
26
+ var requestHandler = configuration.requestHandler;
27
+ return stack.resolve(function (request) {
28
+ return requestHandler.handle(request.request, options || {});
29
+ }, handlerExecutionContext);
30
+ };
31
+ DescribeClusterV2Command.prototype.serialize = function (input, context) {
32
+ return serializeAws_restJson1DescribeClusterV2Command(input, context);
33
+ };
34
+ DescribeClusterV2Command.prototype.deserialize = function (output, context) {
35
+ return deserializeAws_restJson1DescribeClusterV2Command(output, context);
36
+ };
37
+ return DescribeClusterV2Command;
38
+ }($Command));
39
+ export { DescribeClusterV2Command };
@@ -0,0 +1,39 @@
1
+ import { __extends } from "tslib";
2
+ import { getSerdePlugin } from "@aws-sdk/middleware-serde";
3
+ import { Command as $Command } from "@aws-sdk/smithy-client";
4
+ import { ListClustersV2Request, ListClustersV2Response } from "../models/models_0";
5
+ import { deserializeAws_restJson1ListClustersV2Command, serializeAws_restJson1ListClustersV2Command, } from "../protocols/Aws_restJson1";
6
+ var ListClustersV2Command = (function (_super) {
7
+ __extends(ListClustersV2Command, _super);
8
+ function ListClustersV2Command(input) {
9
+ var _this = _super.call(this) || this;
10
+ _this.input = input;
11
+ return _this;
12
+ }
13
+ ListClustersV2Command.prototype.resolveMiddleware = function (clientStack, configuration, options) {
14
+ this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
15
+ var stack = clientStack.concat(this.middlewareStack);
16
+ var logger = configuration.logger;
17
+ var clientName = "KafkaClient";
18
+ var commandName = "ListClustersV2Command";
19
+ var handlerExecutionContext = {
20
+ logger: logger,
21
+ clientName: clientName,
22
+ commandName: commandName,
23
+ inputFilterSensitiveLog: ListClustersV2Request.filterSensitiveLog,
24
+ outputFilterSensitiveLog: ListClustersV2Response.filterSensitiveLog,
25
+ };
26
+ var requestHandler = configuration.requestHandler;
27
+ return stack.resolve(function (request) {
28
+ return requestHandler.handle(request.request, options || {});
29
+ }, handlerExecutionContext);
30
+ };
31
+ ListClustersV2Command.prototype.serialize = function (input, context) {
32
+ return serializeAws_restJson1ListClustersV2Command(input, context);
33
+ };
34
+ ListClustersV2Command.prototype.deserialize = function (output, context) {
35
+ return deserializeAws_restJson1ListClustersV2Command(output, context);
36
+ };
37
+ return ListClustersV2Command;
38
+ }($Command));
39
+ export { ListClustersV2Command };
@@ -1,17 +1,20 @@
1
1
  export * from "./BatchAssociateScramSecretCommand";
2
2
  export * from "./BatchDisassociateScramSecretCommand";
3
3
  export * from "./CreateClusterCommand";
4
+ export * from "./CreateClusterV2Command";
4
5
  export * from "./CreateConfigurationCommand";
5
6
  export * from "./DeleteClusterCommand";
6
7
  export * from "./DeleteConfigurationCommand";
7
8
  export * from "./DescribeClusterCommand";
8
9
  export * from "./DescribeClusterOperationCommand";
10
+ export * from "./DescribeClusterV2Command";
9
11
  export * from "./DescribeConfigurationCommand";
10
12
  export * from "./DescribeConfigurationRevisionCommand";
11
13
  export * from "./GetBootstrapBrokersCommand";
12
14
  export * from "./GetCompatibleKafkaVersionsCommand";
13
15
  export * from "./ListClusterOperationsCommand";
14
16
  export * from "./ListClustersCommand";
17
+ export * from "./ListClustersV2Command";
15
18
  export * from "./ListConfigurationRevisionsCommand";
16
19
  export * from "./ListConfigurationsCommand";
17
20
  export * from "./ListKafkaVersionsCommand";
@@ -3,6 +3,11 @@ export var BrokerEBSVolumeInfo;
3
3
  (function (BrokerEBSVolumeInfo) {
4
4
  BrokerEBSVolumeInfo.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
5
5
  })(BrokerEBSVolumeInfo || (BrokerEBSVolumeInfo = {}));
6
+ export var ClusterType;
7
+ (function (ClusterType) {
8
+ ClusterType["PROVISIONED"] = "PROVISIONED";
9
+ ClusterType["SERVERLESS"] = "SERVERLESS";
10
+ })(ClusterType || (ClusterType = {}));
6
11
  export var BrokerAZDistribution;
7
12
  (function (BrokerAZDistribution) {
8
13
  BrokerAZDistribution["DEFAULT"] = "DEFAULT";
@@ -100,6 +105,61 @@ export var LoggingInfo;
100
105
  (function (LoggingInfo) {
101
106
  LoggingInfo.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
102
107
  })(LoggingInfo || (LoggingInfo = {}));
108
+ export var JmxExporterInfo;
109
+ (function (JmxExporterInfo) {
110
+ JmxExporterInfo.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
111
+ })(JmxExporterInfo || (JmxExporterInfo = {}));
112
+ export var NodeExporterInfo;
113
+ (function (NodeExporterInfo) {
114
+ NodeExporterInfo.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
115
+ })(NodeExporterInfo || (NodeExporterInfo = {}));
116
+ export var PrometheusInfo;
117
+ (function (PrometheusInfo) {
118
+ PrometheusInfo.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
119
+ })(PrometheusInfo || (PrometheusInfo = {}));
120
+ export var OpenMonitoringInfo;
121
+ (function (OpenMonitoringInfo) {
122
+ OpenMonitoringInfo.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
123
+ })(OpenMonitoringInfo || (OpenMonitoringInfo = {}));
124
+ export var Provisioned;
125
+ (function (Provisioned) {
126
+ Provisioned.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
127
+ })(Provisioned || (Provisioned = {}));
128
+ export var ServerlessSasl;
129
+ (function (ServerlessSasl) {
130
+ ServerlessSasl.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
131
+ })(ServerlessSasl || (ServerlessSasl = {}));
132
+ export var ServerlessClientAuthentication;
133
+ (function (ServerlessClientAuthentication) {
134
+ ServerlessClientAuthentication.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
135
+ })(ServerlessClientAuthentication || (ServerlessClientAuthentication = {}));
136
+ export var VpcConfig;
137
+ (function (VpcConfig) {
138
+ VpcConfig.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
139
+ })(VpcConfig || (VpcConfig = {}));
140
+ export var Serverless;
141
+ (function (Serverless) {
142
+ Serverless.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
143
+ })(Serverless || (Serverless = {}));
144
+ export var ClusterState;
145
+ (function (ClusterState) {
146
+ ClusterState["ACTIVE"] = "ACTIVE";
147
+ ClusterState["CREATING"] = "CREATING";
148
+ ClusterState["DELETING"] = "DELETING";
149
+ ClusterState["FAILED"] = "FAILED";
150
+ ClusterState["HEALING"] = "HEALING";
151
+ ClusterState["MAINTENANCE"] = "MAINTENANCE";
152
+ ClusterState["REBOOTING_BROKER"] = "REBOOTING_BROKER";
153
+ ClusterState["UPDATING"] = "UPDATING";
154
+ })(ClusterState || (ClusterState = {}));
155
+ export var StateInfo;
156
+ (function (StateInfo) {
157
+ StateInfo.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
158
+ })(StateInfo || (StateInfo = {}));
159
+ export var Cluster;
160
+ (function (Cluster) {
161
+ Cluster.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
162
+ })(Cluster || (Cluster = {}));
103
163
  export var JmxExporter;
104
164
  (function (JmxExporter) {
105
165
  JmxExporter.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
@@ -116,21 +176,6 @@ export var OpenMonitoring;
116
176
  (function (OpenMonitoring) {
117
177
  OpenMonitoring.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
118
178
  })(OpenMonitoring || (OpenMonitoring = {}));
119
- export var ClusterState;
120
- (function (ClusterState) {
121
- ClusterState["ACTIVE"] = "ACTIVE";
122
- ClusterState["CREATING"] = "CREATING";
123
- ClusterState["DELETING"] = "DELETING";
124
- ClusterState["FAILED"] = "FAILED";
125
- ClusterState["HEALING"] = "HEALING";
126
- ClusterState["MAINTENANCE"] = "MAINTENANCE";
127
- ClusterState["REBOOTING_BROKER"] = "REBOOTING_BROKER";
128
- ClusterState["UPDATING"] = "UPDATING";
129
- })(ClusterState || (ClusterState = {}));
130
- export var StateInfo;
131
- (function (StateInfo) {
132
- StateInfo.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
133
- })(StateInfo || (StateInfo = {}));
134
179
  export var ClusterInfo;
135
180
  (function (ClusterInfo) {
136
181
  ClusterInfo.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
@@ -254,22 +299,6 @@ export var ConflictException;
254
299
  (function (ConflictException) {
255
300
  ConflictException.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
256
301
  })(ConflictException || (ConflictException = {}));
257
- export var JmxExporterInfo;
258
- (function (JmxExporterInfo) {
259
- JmxExporterInfo.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
260
- })(JmxExporterInfo || (JmxExporterInfo = {}));
261
- export var NodeExporterInfo;
262
- (function (NodeExporterInfo) {
263
- NodeExporterInfo.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
264
- })(NodeExporterInfo || (NodeExporterInfo = {}));
265
- export var PrometheusInfo;
266
- (function (PrometheusInfo) {
267
- PrometheusInfo.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
268
- })(PrometheusInfo || (PrometheusInfo = {}));
269
- export var OpenMonitoringInfo;
270
- (function (OpenMonitoringInfo) {
271
- OpenMonitoringInfo.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
272
- })(OpenMonitoringInfo || (OpenMonitoringInfo = {}));
273
302
  export var CreateClusterRequest;
274
303
  (function (CreateClusterRequest) {
275
304
  CreateClusterRequest.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
@@ -278,6 +307,22 @@ export var CreateClusterResponse;
278
307
  (function (CreateClusterResponse) {
279
308
  CreateClusterResponse.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
280
309
  })(CreateClusterResponse || (CreateClusterResponse = {}));
310
+ export var ProvisionedRequest;
311
+ (function (ProvisionedRequest) {
312
+ ProvisionedRequest.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
313
+ })(ProvisionedRequest || (ProvisionedRequest = {}));
314
+ export var ServerlessRequest;
315
+ (function (ServerlessRequest) {
316
+ ServerlessRequest.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
317
+ })(ServerlessRequest || (ServerlessRequest = {}));
318
+ export var CreateClusterV2Request;
319
+ (function (CreateClusterV2Request) {
320
+ CreateClusterV2Request.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
321
+ })(CreateClusterV2Request || (CreateClusterV2Request = {}));
322
+ export var CreateClusterV2Response;
323
+ (function (CreateClusterV2Response) {
324
+ CreateClusterV2Response.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
325
+ })(CreateClusterV2Response || (CreateClusterV2Response = {}));
281
326
  export var CreateConfigurationRequest;
282
327
  (function (CreateConfigurationRequest) {
283
328
  CreateConfigurationRequest.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
@@ -318,6 +363,14 @@ export var DescribeClusterOperationResponse;
318
363
  (function (DescribeClusterOperationResponse) {
319
364
  DescribeClusterOperationResponse.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
320
365
  })(DescribeClusterOperationResponse || (DescribeClusterOperationResponse = {}));
366
+ export var DescribeClusterV2Request;
367
+ (function (DescribeClusterV2Request) {
368
+ DescribeClusterV2Request.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
369
+ })(DescribeClusterV2Request || (DescribeClusterV2Request = {}));
370
+ export var DescribeClusterV2Response;
371
+ (function (DescribeClusterV2Response) {
372
+ DescribeClusterV2Response.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
373
+ })(DescribeClusterV2Response || (DescribeClusterV2Response = {}));
321
374
  export var DescribeConfigurationRequest;
322
375
  (function (DescribeConfigurationRequest) {
323
376
  DescribeConfigurationRequest.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
@@ -366,6 +419,14 @@ export var ListClustersResponse;
366
419
  (function (ListClustersResponse) {
367
420
  ListClustersResponse.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
368
421
  })(ListClustersResponse || (ListClustersResponse = {}));
422
+ export var ListClustersV2Request;
423
+ (function (ListClustersV2Request) {
424
+ ListClustersV2Request.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
425
+ })(ListClustersV2Request || (ListClustersV2Request = {}));
426
+ export var ListClustersV2Response;
427
+ (function (ListClustersV2Response) {
428
+ ListClustersV2Response.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
429
+ })(ListClustersV2Response || (ListClustersV2Response = {}));
369
430
  export var ListConfigurationRevisionsRequest;
370
431
  (function (ListConfigurationRevisionsRequest) {
371
432
  ListConfigurationRevisionsRequest.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
@@ -0,0 +1,74 @@
1
+ import { __asyncGenerator, __await, __awaiter, __generator, __read, __spreadArray } from "tslib";
2
+ import { ListClustersV2Command, } from "../commands/ListClustersV2Command";
3
+ import { Kafka } from "../Kafka";
4
+ import { KafkaClient } from "../KafkaClient";
5
+ var makePagedClientRequest = function (client, input) {
6
+ var args = [];
7
+ for (var _i = 2; _i < arguments.length; _i++) {
8
+ args[_i - 2] = arguments[_i];
9
+ }
10
+ return __awaiter(void 0, void 0, void 0, function () {
11
+ return __generator(this, function (_a) {
12
+ switch (_a.label) {
13
+ case 0: return [4, client.send.apply(client, __spreadArray([new ListClustersV2Command(input)], __read(args)))];
14
+ case 1: return [2, _a.sent()];
15
+ }
16
+ });
17
+ });
18
+ };
19
+ var makePagedRequest = function (client, input) {
20
+ var args = [];
21
+ for (var _i = 2; _i < arguments.length; _i++) {
22
+ args[_i - 2] = arguments[_i];
23
+ }
24
+ return __awaiter(void 0, void 0, void 0, function () {
25
+ return __generator(this, function (_a) {
26
+ switch (_a.label) {
27
+ case 0: return [4, client.listClustersV2.apply(client, __spreadArray([input], __read(args)))];
28
+ case 1: return [2, _a.sent()];
29
+ }
30
+ });
31
+ });
32
+ };
33
+ export function paginateListClustersV2(config, input) {
34
+ var additionalArguments = [];
35
+ for (var _i = 2; _i < arguments.length; _i++) {
36
+ additionalArguments[_i - 2] = arguments[_i];
37
+ }
38
+ return __asyncGenerator(this, arguments, function paginateListClustersV2_1() {
39
+ var token, hasNext, page;
40
+ return __generator(this, function (_a) {
41
+ switch (_a.label) {
42
+ case 0:
43
+ token = config.startingToken || undefined;
44
+ hasNext = true;
45
+ _a.label = 1;
46
+ case 1:
47
+ if (!hasNext) return [3, 9];
48
+ input.NextToken = token;
49
+ input["MaxResults"] = config.pageSize;
50
+ if (!(config.client instanceof Kafka)) return [3, 3];
51
+ return [4, __await(makePagedRequest.apply(void 0, __spreadArray([config.client, input], __read(additionalArguments))))];
52
+ case 2:
53
+ page = _a.sent();
54
+ return [3, 6];
55
+ case 3:
56
+ if (!(config.client instanceof KafkaClient)) return [3, 5];
57
+ return [4, __await(makePagedClientRequest.apply(void 0, __spreadArray([config.client, input], __read(additionalArguments))))];
58
+ case 4:
59
+ page = _a.sent();
60
+ return [3, 6];
61
+ case 5: throw new Error("Invalid client, expected Kafka | KafkaClient");
62
+ case 6: return [4, __await(page)];
63
+ case 7: return [4, _a.sent()];
64
+ case 8:
65
+ _a.sent();
66
+ token = page.NextToken;
67
+ hasNext = !!token;
68
+ return [3, 1];
69
+ case 9: return [4, __await(undefined)];
70
+ case 10: return [2, _a.sent()];
71
+ }
72
+ });
73
+ });
74
+ }
@@ -1,6 +1,7 @@
1
1
  export * from "./Interfaces";
2
2
  export * from "./ListClusterOperationsPaginator";
3
3
  export * from "./ListClustersPaginator";
4
+ export * from "./ListClustersV2Paginator";
4
5
  export * from "./ListConfigurationRevisionsPaginator";
5
6
  export * from "./ListConfigurationsPaginator";
6
7
  export * from "./ListKafkaVersionsPaginator";