@aws-sdk/client-kafka 3.378.0 → 3.380.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 (37) hide show
  1. package/README.md +16 -0
  2. package/dist-cjs/Kafka.js +4 -0
  3. package/dist-cjs/commands/DescribeClusterOperationV2Command.js +46 -0
  4. package/dist-cjs/commands/ListClusterOperationsV2Command.js +46 -0
  5. package/dist-cjs/commands/index.js +2 -0
  6. package/dist-cjs/pagination/ListClusterOperationsV2Paginator.js +29 -0
  7. package/dist-cjs/pagination/index.js +1 -0
  8. package/dist-cjs/protocols/Aws_restJson1.js +200 -2
  9. package/dist-es/Kafka.js +4 -0
  10. package/dist-es/commands/DescribeClusterOperationV2Command.js +42 -0
  11. package/dist-es/commands/ListClusterOperationsV2Command.js +42 -0
  12. package/dist-es/commands/index.js +2 -0
  13. package/dist-es/pagination/ListClusterOperationsV2Paginator.js +25 -0
  14. package/dist-es/pagination/index.js +1 -0
  15. package/dist-es/protocols/Aws_restJson1.js +194 -0
  16. package/dist-types/Kafka.d.ts +14 -0
  17. package/dist-types/KafkaClient.d.ts +4 -2
  18. package/dist-types/commands/DescribeClusterOperationV2Command.d.ts +328 -0
  19. package/dist-types/commands/ListClusterOperationsV2Command.d.ts +107 -0
  20. package/dist-types/commands/index.d.ts +2 -0
  21. package/dist-types/endpoint/EndpointParameters.d.ts +3 -0
  22. package/dist-types/index.d.ts +1 -0
  23. package/dist-types/models/models_0.d.ts +182 -0
  24. package/dist-types/pagination/ListClusterOperationsV2Paginator.d.ts +7 -0
  25. package/dist-types/pagination/index.d.ts +1 -0
  26. package/dist-types/protocols/Aws_restJson1.d.ts +18 -0
  27. package/dist-types/ts3.4/Kafka.d.ts +34 -0
  28. package/dist-types/ts3.4/KafkaClient.d.ts +12 -0
  29. package/dist-types/ts3.4/commands/DescribeClusterOperationV2Command.d.ts +42 -0
  30. package/dist-types/ts3.4/commands/ListClusterOperationsV2Command.d.ts +42 -0
  31. package/dist-types/ts3.4/commands/index.d.ts +2 -0
  32. package/dist-types/ts3.4/index.d.ts +1 -0
  33. package/dist-types/ts3.4/models/models_0.d.ts +51 -0
  34. package/dist-types/ts3.4/pagination/ListClusterOperationsV2Paginator.d.ts +11 -0
  35. package/dist-types/ts3.4/pagination/index.d.ts +1 -0
  36. package/dist-types/ts3.4/protocols/Aws_restJson1.d.ts +24 -0
  37. package/package.json +6 -6
package/README.md CHANGED
@@ -298,6 +298,14 @@ DescribeClusterOperation
298
298
 
299
299
  [Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-kafka/classes/describeclusteroperationcommand.html) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-kafka/interfaces/describeclusteroperationcommandinput.html) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-kafka/interfaces/describeclusteroperationcommandoutput.html)
300
300
 
301
+ </details>
302
+ <details>
303
+ <summary>
304
+ DescribeClusterOperationV2
305
+ </summary>
306
+
307
+ [Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-kafka/classes/describeclusteroperationv2command.html) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-kafka/interfaces/describeclusteroperationv2commandinput.html) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-kafka/interfaces/describeclusteroperationv2commandoutput.html)
308
+
301
309
  </details>
302
310
  <details>
303
311
  <summary>
@@ -370,6 +378,14 @@ ListClusterOperations
370
378
 
371
379
  [Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-kafka/classes/listclusteroperationscommand.html) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-kafka/interfaces/listclusteroperationscommandinput.html) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-kafka/interfaces/listclusteroperationscommandoutput.html)
372
380
 
381
+ </details>
382
+ <details>
383
+ <summary>
384
+ ListClusterOperationsV2
385
+ </summary>
386
+
387
+ [Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-kafka/classes/listclusteroperationsv2command.html) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-kafka/interfaces/listclusteroperationsv2commandinput.html) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-kafka/interfaces/listclusteroperationsv2commandoutput.html)
388
+
373
389
  </details>
374
390
  <details>
375
391
  <summary>
package/dist-cjs/Kafka.js CHANGED
@@ -14,6 +14,7 @@ const DeleteConfigurationCommand_1 = require("./commands/DeleteConfigurationComm
14
14
  const DeleteVpcConnectionCommand_1 = require("./commands/DeleteVpcConnectionCommand");
15
15
  const DescribeClusterCommand_1 = require("./commands/DescribeClusterCommand");
16
16
  const DescribeClusterOperationCommand_1 = require("./commands/DescribeClusterOperationCommand");
17
+ const DescribeClusterOperationV2Command_1 = require("./commands/DescribeClusterOperationV2Command");
17
18
  const DescribeClusterV2Command_1 = require("./commands/DescribeClusterV2Command");
18
19
  const DescribeConfigurationCommand_1 = require("./commands/DescribeConfigurationCommand");
19
20
  const DescribeConfigurationRevisionCommand_1 = require("./commands/DescribeConfigurationRevisionCommand");
@@ -23,6 +24,7 @@ const GetClusterPolicyCommand_1 = require("./commands/GetClusterPolicyCommand");
23
24
  const GetCompatibleKafkaVersionsCommand_1 = require("./commands/GetCompatibleKafkaVersionsCommand");
24
25
  const ListClientVpcConnectionsCommand_1 = require("./commands/ListClientVpcConnectionsCommand");
25
26
  const ListClusterOperationsCommand_1 = require("./commands/ListClusterOperationsCommand");
27
+ const ListClusterOperationsV2Command_1 = require("./commands/ListClusterOperationsV2Command");
26
28
  const ListClustersCommand_1 = require("./commands/ListClustersCommand");
27
29
  const ListClustersV2Command_1 = require("./commands/ListClustersV2Command");
28
30
  const ListConfigurationRevisionsCommand_1 = require("./commands/ListConfigurationRevisionsCommand");
@@ -61,6 +63,7 @@ const commands = {
61
63
  DeleteVpcConnectionCommand: DeleteVpcConnectionCommand_1.DeleteVpcConnectionCommand,
62
64
  DescribeClusterCommand: DescribeClusterCommand_1.DescribeClusterCommand,
63
65
  DescribeClusterOperationCommand: DescribeClusterOperationCommand_1.DescribeClusterOperationCommand,
66
+ DescribeClusterOperationV2Command: DescribeClusterOperationV2Command_1.DescribeClusterOperationV2Command,
64
67
  DescribeClusterV2Command: DescribeClusterV2Command_1.DescribeClusterV2Command,
65
68
  DescribeConfigurationCommand: DescribeConfigurationCommand_1.DescribeConfigurationCommand,
66
69
  DescribeConfigurationRevisionCommand: DescribeConfigurationRevisionCommand_1.DescribeConfigurationRevisionCommand,
@@ -70,6 +73,7 @@ const commands = {
70
73
  GetCompatibleKafkaVersionsCommand: GetCompatibleKafkaVersionsCommand_1.GetCompatibleKafkaVersionsCommand,
71
74
  ListClientVpcConnectionsCommand: ListClientVpcConnectionsCommand_1.ListClientVpcConnectionsCommand,
72
75
  ListClusterOperationsCommand: ListClusterOperationsCommand_1.ListClusterOperationsCommand,
76
+ ListClusterOperationsV2Command: ListClusterOperationsV2Command_1.ListClusterOperationsV2Command,
73
77
  ListClustersCommand: ListClustersCommand_1.ListClustersCommand,
74
78
  ListClustersV2Command: ListClustersV2Command_1.ListClustersV2Command,
75
79
  ListConfigurationRevisionsCommand: ListConfigurationRevisionsCommand_1.ListConfigurationRevisionsCommand,
@@ -0,0 +1,46 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.DescribeClusterOperationV2Command = exports.$Command = void 0;
4
+ const middleware_endpoint_1 = require("@smithy/middleware-endpoint");
5
+ const middleware_serde_1 = require("@smithy/middleware-serde");
6
+ const smithy_client_1 = require("@smithy/smithy-client");
7
+ Object.defineProperty(exports, "$Command", { enumerable: true, get: function () { return smithy_client_1.Command; } });
8
+ const Aws_restJson1_1 = require("../protocols/Aws_restJson1");
9
+ class DescribeClusterOperationV2Command extends smithy_client_1.Command {
10
+ static getEndpointParameterInstructions() {
11
+ return {
12
+ UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
13
+ Endpoint: { type: "builtInParams", name: "endpoint" },
14
+ Region: { type: "builtInParams", name: "region" },
15
+ UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
16
+ };
17
+ }
18
+ constructor(input) {
19
+ super();
20
+ this.input = input;
21
+ }
22
+ resolveMiddleware(clientStack, configuration, options) {
23
+ this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize));
24
+ this.middlewareStack.use((0, middleware_endpoint_1.getEndpointPlugin)(configuration, DescribeClusterOperationV2Command.getEndpointParameterInstructions()));
25
+ const stack = clientStack.concat(this.middlewareStack);
26
+ const { logger } = configuration;
27
+ const clientName = "KafkaClient";
28
+ const commandName = "DescribeClusterOperationV2Command";
29
+ const handlerExecutionContext = {
30
+ logger,
31
+ clientName,
32
+ commandName,
33
+ inputFilterSensitiveLog: (_) => _,
34
+ outputFilterSensitiveLog: (_) => _,
35
+ };
36
+ const { requestHandler } = configuration;
37
+ return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
38
+ }
39
+ serialize(input, context) {
40
+ return (0, Aws_restJson1_1.se_DescribeClusterOperationV2Command)(input, context);
41
+ }
42
+ deserialize(output, context) {
43
+ return (0, Aws_restJson1_1.de_DescribeClusterOperationV2Command)(output, context);
44
+ }
45
+ }
46
+ exports.DescribeClusterOperationV2Command = DescribeClusterOperationV2Command;
@@ -0,0 +1,46 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.ListClusterOperationsV2Command = exports.$Command = void 0;
4
+ const middleware_endpoint_1 = require("@smithy/middleware-endpoint");
5
+ const middleware_serde_1 = require("@smithy/middleware-serde");
6
+ const smithy_client_1 = require("@smithy/smithy-client");
7
+ Object.defineProperty(exports, "$Command", { enumerable: true, get: function () { return smithy_client_1.Command; } });
8
+ const Aws_restJson1_1 = require("../protocols/Aws_restJson1");
9
+ class ListClusterOperationsV2Command extends smithy_client_1.Command {
10
+ static getEndpointParameterInstructions() {
11
+ return {
12
+ UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
13
+ Endpoint: { type: "builtInParams", name: "endpoint" },
14
+ Region: { type: "builtInParams", name: "region" },
15
+ UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
16
+ };
17
+ }
18
+ constructor(input) {
19
+ super();
20
+ this.input = input;
21
+ }
22
+ resolveMiddleware(clientStack, configuration, options) {
23
+ this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize));
24
+ this.middlewareStack.use((0, middleware_endpoint_1.getEndpointPlugin)(configuration, ListClusterOperationsV2Command.getEndpointParameterInstructions()));
25
+ const stack = clientStack.concat(this.middlewareStack);
26
+ const { logger } = configuration;
27
+ const clientName = "KafkaClient";
28
+ const commandName = "ListClusterOperationsV2Command";
29
+ const handlerExecutionContext = {
30
+ logger,
31
+ clientName,
32
+ commandName,
33
+ inputFilterSensitiveLog: (_) => _,
34
+ outputFilterSensitiveLog: (_) => _,
35
+ };
36
+ const { requestHandler } = configuration;
37
+ return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
38
+ }
39
+ serialize(input, context) {
40
+ return (0, Aws_restJson1_1.se_ListClusterOperationsV2Command)(input, context);
41
+ }
42
+ deserialize(output, context) {
43
+ return (0, Aws_restJson1_1.de_ListClusterOperationsV2Command)(output, context);
44
+ }
45
+ }
46
+ exports.ListClusterOperationsV2Command = ListClusterOperationsV2Command;
@@ -13,6 +13,7 @@ tslib_1.__exportStar(require("./DeleteConfigurationCommand"), exports);
13
13
  tslib_1.__exportStar(require("./DeleteVpcConnectionCommand"), exports);
14
14
  tslib_1.__exportStar(require("./DescribeClusterCommand"), exports);
15
15
  tslib_1.__exportStar(require("./DescribeClusterOperationCommand"), exports);
16
+ tslib_1.__exportStar(require("./DescribeClusterOperationV2Command"), exports);
16
17
  tslib_1.__exportStar(require("./DescribeClusterV2Command"), exports);
17
18
  tslib_1.__exportStar(require("./DescribeConfigurationCommand"), exports);
18
19
  tslib_1.__exportStar(require("./DescribeConfigurationRevisionCommand"), exports);
@@ -22,6 +23,7 @@ tslib_1.__exportStar(require("./GetClusterPolicyCommand"), exports);
22
23
  tslib_1.__exportStar(require("./GetCompatibleKafkaVersionsCommand"), exports);
23
24
  tslib_1.__exportStar(require("./ListClientVpcConnectionsCommand"), exports);
24
25
  tslib_1.__exportStar(require("./ListClusterOperationsCommand"), exports);
26
+ tslib_1.__exportStar(require("./ListClusterOperationsV2Command"), exports);
25
27
  tslib_1.__exportStar(require("./ListClustersCommand"), exports);
26
28
  tslib_1.__exportStar(require("./ListClustersV2Command"), exports);
27
29
  tslib_1.__exportStar(require("./ListConfigurationRevisionsCommand"), exports);
@@ -0,0 +1,29 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.paginateListClusterOperationsV2 = void 0;
4
+ const ListClusterOperationsV2Command_1 = require("../commands/ListClusterOperationsV2Command");
5
+ const KafkaClient_1 = require("../KafkaClient");
6
+ const makePagedClientRequest = async (client, input, ...args) => {
7
+ return await client.send(new ListClusterOperationsV2Command_1.ListClusterOperationsV2Command(input), ...args);
8
+ };
9
+ async function* paginateListClusterOperationsV2(config, input, ...additionalArguments) {
10
+ let token = config.startingToken || undefined;
11
+ let hasNext = true;
12
+ let page;
13
+ while (hasNext) {
14
+ input.NextToken = token;
15
+ input["MaxResults"] = config.pageSize;
16
+ if (config.client instanceof KafkaClient_1.KafkaClient) {
17
+ page = await makePagedClientRequest(config.client, input, ...additionalArguments);
18
+ }
19
+ else {
20
+ throw new Error("Invalid client, expected Kafka | KafkaClient");
21
+ }
22
+ yield page;
23
+ const prevToken = token;
24
+ token = page.NextToken;
25
+ hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
26
+ }
27
+ return undefined;
28
+ }
29
+ exports.paginateListClusterOperationsV2 = paginateListClusterOperationsV2;
@@ -4,6 +4,7 @@ const tslib_1 = require("tslib");
4
4
  tslib_1.__exportStar(require("./Interfaces"), exports);
5
5
  tslib_1.__exportStar(require("./ListClientVpcConnectionsPaginator"), exports);
6
6
  tslib_1.__exportStar(require("./ListClusterOperationsPaginator"), exports);
7
+ tslib_1.__exportStar(require("./ListClusterOperationsV2Paginator"), exports);
7
8
  tslib_1.__exportStar(require("./ListClustersPaginator"), exports);
8
9
  tslib_1.__exportStar(require("./ListClustersV2Paginator"), exports);
9
10
  tslib_1.__exportStar(require("./ListConfigurationRevisionsPaginator"), exports);
@@ -1,7 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.de_CreateConfigurationCommand = exports.de_CreateClusterV2Command = exports.de_CreateClusterCommand = exports.de_BatchDisassociateScramSecretCommand = exports.de_BatchAssociateScramSecretCommand = exports.se_UpdateStorageCommand = exports.se_UpdateSecurityCommand = exports.se_UpdateMonitoringCommand = exports.se_UpdateConnectivityCommand = exports.se_UpdateConfigurationCommand = exports.se_UpdateClusterKafkaVersionCommand = exports.se_UpdateClusterConfigurationCommand = exports.se_UpdateBrokerTypeCommand = exports.se_UpdateBrokerStorageCommand = exports.se_UpdateBrokerCountCommand = exports.se_UntagResourceCommand = exports.se_TagResourceCommand = exports.se_RejectClientVpcConnectionCommand = exports.se_RebootBrokerCommand = exports.se_PutClusterPolicyCommand = exports.se_ListVpcConnectionsCommand = exports.se_ListTagsForResourceCommand = exports.se_ListScramSecretsCommand = exports.se_ListNodesCommand = exports.se_ListKafkaVersionsCommand = exports.se_ListConfigurationsCommand = exports.se_ListConfigurationRevisionsCommand = exports.se_ListClustersV2Command = exports.se_ListClustersCommand = exports.se_ListClusterOperationsCommand = exports.se_ListClientVpcConnectionsCommand = exports.se_GetCompatibleKafkaVersionsCommand = exports.se_GetClusterPolicyCommand = exports.se_GetBootstrapBrokersCommand = exports.se_DescribeVpcConnectionCommand = exports.se_DescribeConfigurationRevisionCommand = exports.se_DescribeConfigurationCommand = exports.se_DescribeClusterV2Command = exports.se_DescribeClusterOperationCommand = exports.se_DescribeClusterCommand = exports.se_DeleteVpcConnectionCommand = exports.se_DeleteConfigurationCommand = exports.se_DeleteClusterPolicyCommand = exports.se_DeleteClusterCommand = exports.se_CreateVpcConnectionCommand = exports.se_CreateConfigurationCommand = exports.se_CreateClusterV2Command = exports.se_CreateClusterCommand = exports.se_BatchDisassociateScramSecretCommand = exports.se_BatchAssociateScramSecretCommand = void 0;
4
- exports.de_UpdateStorageCommand = exports.de_UpdateSecurityCommand = exports.de_UpdateMonitoringCommand = exports.de_UpdateConnectivityCommand = exports.de_UpdateConfigurationCommand = exports.de_UpdateClusterKafkaVersionCommand = exports.de_UpdateClusterConfigurationCommand = exports.de_UpdateBrokerTypeCommand = exports.de_UpdateBrokerStorageCommand = exports.de_UpdateBrokerCountCommand = exports.de_UntagResourceCommand = exports.de_TagResourceCommand = exports.de_RejectClientVpcConnectionCommand = exports.de_RebootBrokerCommand = exports.de_PutClusterPolicyCommand = exports.de_ListVpcConnectionsCommand = exports.de_ListTagsForResourceCommand = exports.de_ListScramSecretsCommand = exports.de_ListNodesCommand = exports.de_ListKafkaVersionsCommand = exports.de_ListConfigurationsCommand = exports.de_ListConfigurationRevisionsCommand = exports.de_ListClustersV2Command = exports.de_ListClustersCommand = exports.de_ListClusterOperationsCommand = exports.de_ListClientVpcConnectionsCommand = exports.de_GetCompatibleKafkaVersionsCommand = exports.de_GetClusterPolicyCommand = exports.de_GetBootstrapBrokersCommand = exports.de_DescribeVpcConnectionCommand = exports.de_DescribeConfigurationRevisionCommand = exports.de_DescribeConfigurationCommand = exports.de_DescribeClusterV2Command = exports.de_DescribeClusterOperationCommand = exports.de_DescribeClusterCommand = exports.de_DeleteVpcConnectionCommand = exports.de_DeleteConfigurationCommand = exports.de_DeleteClusterPolicyCommand = exports.de_DeleteClusterCommand = exports.de_CreateVpcConnectionCommand = void 0;
3
+ exports.de_CreateClusterCommand = exports.de_BatchDisassociateScramSecretCommand = exports.de_BatchAssociateScramSecretCommand = exports.se_UpdateStorageCommand = exports.se_UpdateSecurityCommand = exports.se_UpdateMonitoringCommand = exports.se_UpdateConnectivityCommand = exports.se_UpdateConfigurationCommand = exports.se_UpdateClusterKafkaVersionCommand = exports.se_UpdateClusterConfigurationCommand = exports.se_UpdateBrokerTypeCommand = exports.se_UpdateBrokerStorageCommand = exports.se_UpdateBrokerCountCommand = exports.se_UntagResourceCommand = exports.se_TagResourceCommand = exports.se_RejectClientVpcConnectionCommand = exports.se_RebootBrokerCommand = exports.se_PutClusterPolicyCommand = exports.se_ListVpcConnectionsCommand = exports.se_ListTagsForResourceCommand = exports.se_ListScramSecretsCommand = exports.se_ListNodesCommand = exports.se_ListKafkaVersionsCommand = exports.se_ListConfigurationsCommand = exports.se_ListConfigurationRevisionsCommand = exports.se_ListClustersV2Command = exports.se_ListClustersCommand = exports.se_ListClusterOperationsV2Command = exports.se_ListClusterOperationsCommand = exports.se_ListClientVpcConnectionsCommand = exports.se_GetCompatibleKafkaVersionsCommand = exports.se_GetClusterPolicyCommand = exports.se_GetBootstrapBrokersCommand = exports.se_DescribeVpcConnectionCommand = exports.se_DescribeConfigurationRevisionCommand = exports.se_DescribeConfigurationCommand = exports.se_DescribeClusterV2Command = exports.se_DescribeClusterOperationV2Command = exports.se_DescribeClusterOperationCommand = exports.se_DescribeClusterCommand = exports.se_DeleteVpcConnectionCommand = exports.se_DeleteConfigurationCommand = exports.se_DeleteClusterPolicyCommand = exports.se_DeleteClusterCommand = exports.se_CreateVpcConnectionCommand = exports.se_CreateConfigurationCommand = exports.se_CreateClusterV2Command = exports.se_CreateClusterCommand = exports.se_BatchDisassociateScramSecretCommand = exports.se_BatchAssociateScramSecretCommand = void 0;
4
+ exports.de_UpdateStorageCommand = exports.de_UpdateSecurityCommand = exports.de_UpdateMonitoringCommand = exports.de_UpdateConnectivityCommand = exports.de_UpdateConfigurationCommand = exports.de_UpdateClusterKafkaVersionCommand = exports.de_UpdateClusterConfigurationCommand = exports.de_UpdateBrokerTypeCommand = exports.de_UpdateBrokerStorageCommand = exports.de_UpdateBrokerCountCommand = exports.de_UntagResourceCommand = exports.de_TagResourceCommand = exports.de_RejectClientVpcConnectionCommand = exports.de_RebootBrokerCommand = exports.de_PutClusterPolicyCommand = exports.de_ListVpcConnectionsCommand = exports.de_ListTagsForResourceCommand = exports.de_ListScramSecretsCommand = exports.de_ListNodesCommand = exports.de_ListKafkaVersionsCommand = exports.de_ListConfigurationsCommand = exports.de_ListConfigurationRevisionsCommand = exports.de_ListClustersV2Command = exports.de_ListClustersCommand = exports.de_ListClusterOperationsV2Command = exports.de_ListClusterOperationsCommand = exports.de_ListClientVpcConnectionsCommand = exports.de_GetCompatibleKafkaVersionsCommand = exports.de_GetClusterPolicyCommand = exports.de_GetBootstrapBrokersCommand = exports.de_DescribeVpcConnectionCommand = exports.de_DescribeConfigurationRevisionCommand = exports.de_DescribeConfigurationCommand = exports.de_DescribeClusterV2Command = exports.de_DescribeClusterOperationV2Command = exports.de_DescribeClusterOperationCommand = exports.de_DescribeClusterCommand = exports.de_DeleteVpcConnectionCommand = exports.de_DeleteConfigurationCommand = exports.de_DeleteClusterPolicyCommand = exports.de_DeleteClusterCommand = exports.de_CreateVpcConnectionCommand = exports.de_CreateConfigurationCommand = exports.de_CreateClusterV2Command = void 0;
5
5
  const protocol_http_1 = require("@smithy/protocol-http");
6
6
  const smithy_client_1 = require("@smithy/smithy-client");
7
7
  const KafkaServiceException_1 = require("../models/KafkaServiceException");
@@ -262,6 +262,23 @@ const se_DescribeClusterOperationCommand = async (input, context) => {
262
262
  });
263
263
  };
264
264
  exports.se_DescribeClusterOperationCommand = se_DescribeClusterOperationCommand;
265
+ const se_DescribeClusterOperationV2Command = async (input, context) => {
266
+ const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
267
+ const headers = {};
268
+ let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/api/v2/operations/{ClusterOperationArn}";
269
+ resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "ClusterOperationArn", () => input.ClusterOperationArn, "{ClusterOperationArn}", false);
270
+ let body;
271
+ return new protocol_http_1.HttpRequest({
272
+ protocol,
273
+ hostname,
274
+ port,
275
+ method: "GET",
276
+ headers,
277
+ path: resolvedPath,
278
+ body,
279
+ });
280
+ };
281
+ exports.se_DescribeClusterOperationV2Command = se_DescribeClusterOperationV2Command;
265
282
  const se_DescribeClusterV2Command = async (input, context) => {
266
283
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
267
284
  const headers = {};
@@ -432,6 +449,28 @@ const se_ListClusterOperationsCommand = async (input, context) => {
432
449
  });
433
450
  };
434
451
  exports.se_ListClusterOperationsCommand = se_ListClusterOperationsCommand;
452
+ const se_ListClusterOperationsV2Command = async (input, context) => {
453
+ const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
454
+ const headers = {};
455
+ let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/api/v2/clusters/{ClusterArn}/operations";
456
+ resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "ClusterArn", () => input.ClusterArn, "{ClusterArn}", false);
457
+ const query = (0, smithy_client_1.map)({
458
+ maxResults: [() => input.MaxResults !== void 0, () => input.MaxResults.toString()],
459
+ nextToken: [, input.NextToken],
460
+ });
461
+ let body;
462
+ return new protocol_http_1.HttpRequest({
463
+ protocol,
464
+ hostname,
465
+ port,
466
+ method: "GET",
467
+ headers,
468
+ path: resolvedPath,
469
+ query,
470
+ body,
471
+ });
472
+ };
473
+ exports.se_ListClusterOperationsV2Command = se_ListClusterOperationsV2Command;
435
474
  const se_ListClustersCommand = async (input, context) => {
436
475
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
437
476
  const headers = {};
@@ -1563,6 +1602,58 @@ const de_DescribeClusterOperationCommandError = async (output, context) => {
1563
1602
  });
1564
1603
  }
1565
1604
  };
1605
+ const de_DescribeClusterOperationV2Command = async (output, context) => {
1606
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
1607
+ return de_DescribeClusterOperationV2CommandError(output, context);
1608
+ }
1609
+ const contents = (0, smithy_client_1.map)({
1610
+ $metadata: deserializeMetadata(output),
1611
+ });
1612
+ const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
1613
+ const doc = (0, smithy_client_1.take)(data, {
1614
+ ClusterOperationInfo: [, (_) => de_ClusterOperationV2(_, context), `clusterOperationInfo`],
1615
+ });
1616
+ Object.assign(contents, doc);
1617
+ return contents;
1618
+ };
1619
+ exports.de_DescribeClusterOperationV2Command = de_DescribeClusterOperationV2Command;
1620
+ const de_DescribeClusterOperationV2CommandError = async (output, context) => {
1621
+ const parsedOutput = {
1622
+ ...output,
1623
+ body: await parseErrorBody(output.body, context),
1624
+ };
1625
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1626
+ switch (errorCode) {
1627
+ case "BadRequestException":
1628
+ case "com.amazonaws.kafka#BadRequestException":
1629
+ throw await de_BadRequestExceptionRes(parsedOutput, context);
1630
+ case "ForbiddenException":
1631
+ case "com.amazonaws.kafka#ForbiddenException":
1632
+ throw await de_ForbiddenExceptionRes(parsedOutput, context);
1633
+ case "InternalServerErrorException":
1634
+ case "com.amazonaws.kafka#InternalServerErrorException":
1635
+ throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
1636
+ case "NotFoundException":
1637
+ case "com.amazonaws.kafka#NotFoundException":
1638
+ throw await de_NotFoundExceptionRes(parsedOutput, context);
1639
+ case "ServiceUnavailableException":
1640
+ case "com.amazonaws.kafka#ServiceUnavailableException":
1641
+ throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
1642
+ case "TooManyRequestsException":
1643
+ case "com.amazonaws.kafka#TooManyRequestsException":
1644
+ throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
1645
+ case "UnauthorizedException":
1646
+ case "com.amazonaws.kafka#UnauthorizedException":
1647
+ throw await de_UnauthorizedExceptionRes(parsedOutput, context);
1648
+ default:
1649
+ const parsedBody = parsedOutput.body;
1650
+ return throwDefaultError({
1651
+ output,
1652
+ parsedBody,
1653
+ errorCode,
1654
+ });
1655
+ }
1656
+ };
1566
1657
  const de_DescribeClusterV2Command = async (output, context) => {
1567
1658
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1568
1659
  return de_DescribeClusterV2CommandError(output, context);
@@ -2016,6 +2107,59 @@ const de_ListClusterOperationsCommandError = async (output, context) => {
2016
2107
  });
2017
2108
  }
2018
2109
  };
2110
+ const de_ListClusterOperationsV2Command = async (output, context) => {
2111
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
2112
+ return de_ListClusterOperationsV2CommandError(output, context);
2113
+ }
2114
+ const contents = (0, smithy_client_1.map)({
2115
+ $metadata: deserializeMetadata(output),
2116
+ });
2117
+ const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
2118
+ const doc = (0, smithy_client_1.take)(data, {
2119
+ ClusterOperationInfoList: [, (_) => de___listOfClusterOperationV2Summary(_, context), `clusterOperationInfoList`],
2120
+ NextToken: [, smithy_client_1.expectString, `nextToken`],
2121
+ });
2122
+ Object.assign(contents, doc);
2123
+ return contents;
2124
+ };
2125
+ exports.de_ListClusterOperationsV2Command = de_ListClusterOperationsV2Command;
2126
+ const de_ListClusterOperationsV2CommandError = async (output, context) => {
2127
+ const parsedOutput = {
2128
+ ...output,
2129
+ body: await parseErrorBody(output.body, context),
2130
+ };
2131
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2132
+ switch (errorCode) {
2133
+ case "BadRequestException":
2134
+ case "com.amazonaws.kafka#BadRequestException":
2135
+ throw await de_BadRequestExceptionRes(parsedOutput, context);
2136
+ case "ForbiddenException":
2137
+ case "com.amazonaws.kafka#ForbiddenException":
2138
+ throw await de_ForbiddenExceptionRes(parsedOutput, context);
2139
+ case "InternalServerErrorException":
2140
+ case "com.amazonaws.kafka#InternalServerErrorException":
2141
+ throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
2142
+ case "NotFoundException":
2143
+ case "com.amazonaws.kafka#NotFoundException":
2144
+ throw await de_NotFoundExceptionRes(parsedOutput, context);
2145
+ case "ServiceUnavailableException":
2146
+ case "com.amazonaws.kafka#ServiceUnavailableException":
2147
+ throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
2148
+ case "TooManyRequestsException":
2149
+ case "com.amazonaws.kafka#TooManyRequestsException":
2150
+ throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
2151
+ case "UnauthorizedException":
2152
+ case "com.amazonaws.kafka#UnauthorizedException":
2153
+ throw await de_UnauthorizedExceptionRes(parsedOutput, context);
2154
+ default:
2155
+ const parsedBody = parsedOutput.body;
2156
+ return throwDefaultError({
2157
+ output,
2158
+ parsedBody,
2159
+ errorCode,
2160
+ });
2161
+ }
2162
+ };
2019
2163
  const de_ListClustersCommand = async (output, context) => {
2020
2164
  if (output.statusCode !== 200 && output.statusCode >= 300) {
2021
2165
  return de_ListClustersCommandError(output, context);
@@ -3537,6 +3681,14 @@ const de___listOfClusterOperationStep = (output, context) => {
3537
3681
  });
3538
3682
  return retVal;
3539
3683
  };
3684
+ const de___listOfClusterOperationV2Summary = (output, context) => {
3685
+ const retVal = (output || [])
3686
+ .filter((e) => e != null)
3687
+ .map((entry) => {
3688
+ return de_ClusterOperationV2Summary(entry, context);
3689
+ });
3690
+ return retVal;
3691
+ };
3540
3692
  const de___listOfCompatibleKafkaVersion = (output, context) => {
3541
3693
  const retVal = (output || [])
3542
3694
  .filter((e) => e != null)
@@ -3730,6 +3882,44 @@ const de_ClusterOperationStepInfo = (output, context) => {
3730
3882
  StepStatus: [, smithy_client_1.expectString, `stepStatus`],
3731
3883
  });
3732
3884
  };
3885
+ const de_ClusterOperationV2 = (output, context) => {
3886
+ return (0, smithy_client_1.take)(output, {
3887
+ ClusterArn: [, smithy_client_1.expectString, `clusterArn`],
3888
+ ClusterType: [, smithy_client_1.expectString, `clusterType`],
3889
+ EndTime: [, (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTimeWithOffset)(_)), `endTime`],
3890
+ ErrorInfo: [, (_) => de_ErrorInfo(_, context), `errorInfo`],
3891
+ OperationArn: [, smithy_client_1.expectString, `operationArn`],
3892
+ OperationState: [, smithy_client_1.expectString, `operationState`],
3893
+ OperationType: [, smithy_client_1.expectString, `operationType`],
3894
+ Provisioned: [, (_) => de_ClusterOperationV2Provisioned(_, context), `provisioned`],
3895
+ Serverless: [, (_) => de_ClusterOperationV2Serverless(_, context), `serverless`],
3896
+ StartTime: [, (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTimeWithOffset)(_)), `startTime`],
3897
+ });
3898
+ };
3899
+ const de_ClusterOperationV2Provisioned = (output, context) => {
3900
+ return (0, smithy_client_1.take)(output, {
3901
+ OperationSteps: [, (_) => de___listOfClusterOperationStep(_, context), `operationSteps`],
3902
+ SourceClusterInfo: [, (_) => de_MutableClusterInfo(_, context), `sourceClusterInfo`],
3903
+ TargetClusterInfo: [, (_) => de_MutableClusterInfo(_, context), `targetClusterInfo`],
3904
+ VpcConnectionInfo: [, (_) => de_VpcConnectionInfo(_, context), `vpcConnectionInfo`],
3905
+ });
3906
+ };
3907
+ const de_ClusterOperationV2Serverless = (output, context) => {
3908
+ return (0, smithy_client_1.take)(output, {
3909
+ VpcConnectionInfo: [, (_) => de_VpcConnectionInfoServerless(_, context), `vpcConnectionInfo`],
3910
+ });
3911
+ };
3912
+ const de_ClusterOperationV2Summary = (output, context) => {
3913
+ return (0, smithy_client_1.take)(output, {
3914
+ ClusterArn: [, smithy_client_1.expectString, `clusterArn`],
3915
+ ClusterType: [, smithy_client_1.expectString, `clusterType`],
3916
+ EndTime: [, (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTimeWithOffset)(_)), `endTime`],
3917
+ OperationArn: [, smithy_client_1.expectString, `operationArn`],
3918
+ OperationState: [, smithy_client_1.expectString, `operationState`],
3919
+ OperationType: [, smithy_client_1.expectString, `operationType`],
3920
+ StartTime: [, (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTimeWithOffset)(_)), `startTime`],
3921
+ });
3922
+ };
3733
3923
  const de_CompatibleKafkaVersion = (output, context) => {
3734
3924
  return (0, smithy_client_1.take)(output, {
3735
3925
  SourceVersion: [, smithy_client_1.expectString, `sourceVersion`],
@@ -4004,6 +4194,14 @@ const de_VpcConnectionInfo = (output, context) => {
4004
4194
  VpcConnectionArn: [, smithy_client_1.expectString, `vpcConnectionArn`],
4005
4195
  });
4006
4196
  };
4197
+ const de_VpcConnectionInfoServerless = (output, context) => {
4198
+ return (0, smithy_client_1.take)(output, {
4199
+ CreationTime: [, (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTimeWithOffset)(_)), `creationTime`],
4200
+ Owner: [, smithy_client_1.expectString, `owner`],
4201
+ UserIdentity: [, (_) => de_UserIdentity(_, context), `userIdentity`],
4202
+ VpcConnectionArn: [, smithy_client_1.expectString, `vpcConnectionArn`],
4203
+ });
4204
+ };
4007
4205
  const de_VpcConnectivity = (output, context) => {
4008
4206
  return (0, smithy_client_1.take)(output, {
4009
4207
  ClientAuthentication: [, (_) => de_VpcConnectivityClientAuthentication(_, context), `clientAuthentication`],
package/dist-es/Kafka.js CHANGED
@@ -11,6 +11,7 @@ import { DeleteConfigurationCommand, } from "./commands/DeleteConfigurationComma
11
11
  import { DeleteVpcConnectionCommand, } from "./commands/DeleteVpcConnectionCommand";
12
12
  import { DescribeClusterCommand, } from "./commands/DescribeClusterCommand";
13
13
  import { DescribeClusterOperationCommand, } from "./commands/DescribeClusterOperationCommand";
14
+ import { DescribeClusterOperationV2Command, } from "./commands/DescribeClusterOperationV2Command";
14
15
  import { DescribeClusterV2Command, } from "./commands/DescribeClusterV2Command";
15
16
  import { DescribeConfigurationCommand, } from "./commands/DescribeConfigurationCommand";
16
17
  import { DescribeConfigurationRevisionCommand, } from "./commands/DescribeConfigurationRevisionCommand";
@@ -20,6 +21,7 @@ import { GetClusterPolicyCommand, } from "./commands/GetClusterPolicyCommand";
20
21
  import { GetCompatibleKafkaVersionsCommand, } from "./commands/GetCompatibleKafkaVersionsCommand";
21
22
  import { ListClientVpcConnectionsCommand, } from "./commands/ListClientVpcConnectionsCommand";
22
23
  import { ListClusterOperationsCommand, } from "./commands/ListClusterOperationsCommand";
24
+ import { ListClusterOperationsV2Command, } from "./commands/ListClusterOperationsV2Command";
23
25
  import { ListClustersCommand, } from "./commands/ListClustersCommand";
24
26
  import { ListClustersV2Command, } from "./commands/ListClustersV2Command";
25
27
  import { ListConfigurationRevisionsCommand, } from "./commands/ListConfigurationRevisionsCommand";
@@ -58,6 +60,7 @@ const commands = {
58
60
  DeleteVpcConnectionCommand,
59
61
  DescribeClusterCommand,
60
62
  DescribeClusterOperationCommand,
63
+ DescribeClusterOperationV2Command,
61
64
  DescribeClusterV2Command,
62
65
  DescribeConfigurationCommand,
63
66
  DescribeConfigurationRevisionCommand,
@@ -67,6 +70,7 @@ const commands = {
67
70
  GetCompatibleKafkaVersionsCommand,
68
71
  ListClientVpcConnectionsCommand,
69
72
  ListClusterOperationsCommand,
73
+ ListClusterOperationsV2Command,
70
74
  ListClustersCommand,
71
75
  ListClustersV2Command,
72
76
  ListConfigurationRevisionsCommand,
@@ -0,0 +1,42 @@
1
+ import { getEndpointPlugin } from "@smithy/middleware-endpoint";
2
+ import { getSerdePlugin } from "@smithy/middleware-serde";
3
+ import { Command as $Command } from "@smithy/smithy-client";
4
+ import { de_DescribeClusterOperationV2Command, se_DescribeClusterOperationV2Command } from "../protocols/Aws_restJson1";
5
+ export { $Command };
6
+ export class DescribeClusterOperationV2Command extends $Command {
7
+ static getEndpointParameterInstructions() {
8
+ return {
9
+ UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
10
+ Endpoint: { type: "builtInParams", name: "endpoint" },
11
+ Region: { type: "builtInParams", name: "region" },
12
+ UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
13
+ };
14
+ }
15
+ constructor(input) {
16
+ super();
17
+ this.input = input;
18
+ }
19
+ resolveMiddleware(clientStack, configuration, options) {
20
+ this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
21
+ this.middlewareStack.use(getEndpointPlugin(configuration, DescribeClusterOperationV2Command.getEndpointParameterInstructions()));
22
+ const stack = clientStack.concat(this.middlewareStack);
23
+ const { logger } = configuration;
24
+ const clientName = "KafkaClient";
25
+ const commandName = "DescribeClusterOperationV2Command";
26
+ const handlerExecutionContext = {
27
+ logger,
28
+ clientName,
29
+ commandName,
30
+ inputFilterSensitiveLog: (_) => _,
31
+ outputFilterSensitiveLog: (_) => _,
32
+ };
33
+ const { requestHandler } = configuration;
34
+ return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
35
+ }
36
+ serialize(input, context) {
37
+ return se_DescribeClusterOperationV2Command(input, context);
38
+ }
39
+ deserialize(output, context) {
40
+ return de_DescribeClusterOperationV2Command(output, context);
41
+ }
42
+ }
@@ -0,0 +1,42 @@
1
+ import { getEndpointPlugin } from "@smithy/middleware-endpoint";
2
+ import { getSerdePlugin } from "@smithy/middleware-serde";
3
+ import { Command as $Command } from "@smithy/smithy-client";
4
+ import { de_ListClusterOperationsV2Command, se_ListClusterOperationsV2Command } from "../protocols/Aws_restJson1";
5
+ export { $Command };
6
+ export class ListClusterOperationsV2Command extends $Command {
7
+ static getEndpointParameterInstructions() {
8
+ return {
9
+ UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
10
+ Endpoint: { type: "builtInParams", name: "endpoint" },
11
+ Region: { type: "builtInParams", name: "region" },
12
+ UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
13
+ };
14
+ }
15
+ constructor(input) {
16
+ super();
17
+ this.input = input;
18
+ }
19
+ resolveMiddleware(clientStack, configuration, options) {
20
+ this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
21
+ this.middlewareStack.use(getEndpointPlugin(configuration, ListClusterOperationsV2Command.getEndpointParameterInstructions()));
22
+ const stack = clientStack.concat(this.middlewareStack);
23
+ const { logger } = configuration;
24
+ const clientName = "KafkaClient";
25
+ const commandName = "ListClusterOperationsV2Command";
26
+ const handlerExecutionContext = {
27
+ logger,
28
+ clientName,
29
+ commandName,
30
+ inputFilterSensitiveLog: (_) => _,
31
+ outputFilterSensitiveLog: (_) => _,
32
+ };
33
+ const { requestHandler } = configuration;
34
+ return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
35
+ }
36
+ serialize(input, context) {
37
+ return se_ListClusterOperationsV2Command(input, context);
38
+ }
39
+ deserialize(output, context) {
40
+ return de_ListClusterOperationsV2Command(output, context);
41
+ }
42
+ }
@@ -10,6 +10,7 @@ export * from "./DeleteConfigurationCommand";
10
10
  export * from "./DeleteVpcConnectionCommand";
11
11
  export * from "./DescribeClusterCommand";
12
12
  export * from "./DescribeClusterOperationCommand";
13
+ export * from "./DescribeClusterOperationV2Command";
13
14
  export * from "./DescribeClusterV2Command";
14
15
  export * from "./DescribeConfigurationCommand";
15
16
  export * from "./DescribeConfigurationRevisionCommand";
@@ -19,6 +20,7 @@ export * from "./GetClusterPolicyCommand";
19
20
  export * from "./GetCompatibleKafkaVersionsCommand";
20
21
  export * from "./ListClientVpcConnectionsCommand";
21
22
  export * from "./ListClusterOperationsCommand";
23
+ export * from "./ListClusterOperationsV2Command";
22
24
  export * from "./ListClustersCommand";
23
25
  export * from "./ListClustersV2Command";
24
26
  export * from "./ListConfigurationRevisionsCommand";
@@ -0,0 +1,25 @@
1
+ import { ListClusterOperationsV2Command, } from "../commands/ListClusterOperationsV2Command";
2
+ import { KafkaClient } from "../KafkaClient";
3
+ const makePagedClientRequest = async (client, input, ...args) => {
4
+ return await client.send(new ListClusterOperationsV2Command(input), ...args);
5
+ };
6
+ export async function* paginateListClusterOperationsV2(config, input, ...additionalArguments) {
7
+ let token = config.startingToken || undefined;
8
+ let hasNext = true;
9
+ let page;
10
+ while (hasNext) {
11
+ input.NextToken = token;
12
+ input["MaxResults"] = config.pageSize;
13
+ if (config.client instanceof KafkaClient) {
14
+ page = await makePagedClientRequest(config.client, input, ...additionalArguments);
15
+ }
16
+ else {
17
+ throw new Error("Invalid client, expected Kafka | KafkaClient");
18
+ }
19
+ yield page;
20
+ const prevToken = token;
21
+ token = page.NextToken;
22
+ hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
23
+ }
24
+ return undefined;
25
+ }
@@ -1,6 +1,7 @@
1
1
  export * from "./Interfaces";
2
2
  export * from "./ListClientVpcConnectionsPaginator";
3
3
  export * from "./ListClusterOperationsPaginator";
4
+ export * from "./ListClusterOperationsV2Paginator";
4
5
  export * from "./ListClustersPaginator";
5
6
  export * from "./ListClustersV2Paginator";
6
7
  export * from "./ListConfigurationRevisionsPaginator";