@aws-sdk/client-kafka 3.43.0 → 3.47.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 (52) hide show
  1. package/CHANGELOG.md +50 -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/endpoints.js +1 -0
  8. package/dist-cjs/models/models_0.js +132 -91
  9. package/dist-cjs/pagination/ListClustersV2Paginator.js +35 -0
  10. package/dist-cjs/pagination/index.js +1 -0
  11. package/dist-cjs/protocols/Aws_restJson1.js +546 -2
  12. package/dist-cjs/runtimeConfig.browser.js +7 -2
  13. package/dist-cjs/runtimeConfig.js +9 -3
  14. package/dist-es/Kafka.js +45 -0
  15. package/dist-es/commands/CreateClusterV2Command.js +39 -0
  16. package/dist-es/commands/DescribeClusterV2Command.js +39 -0
  17. package/dist-es/commands/ListClustersV2Command.js +39 -0
  18. package/dist-es/commands/index.js +3 -0
  19. package/dist-es/endpoints.js +1 -0
  20. package/dist-es/models/models_0.js +92 -63
  21. package/dist-es/pagination/ListClustersV2Paginator.js +74 -0
  22. package/dist-es/pagination/index.js +1 -0
  23. package/dist-es/protocols/Aws_restJson1.js +571 -0
  24. package/dist-es/runtimeConfig.browser.js +12 -3
  25. package/dist-es/runtimeConfig.js +13 -6
  26. package/dist-types/Kafka.d.ts +21 -0
  27. package/dist-types/KafkaClient.d.ts +10 -3
  28. package/dist-types/commands/CreateClusterV2Command.d.ts +35 -0
  29. package/dist-types/commands/DescribeClusterV2Command.d.ts +35 -0
  30. package/dist-types/commands/ListClustersV2Command.d.ts +35 -0
  31. package/dist-types/commands/index.d.ts +3 -0
  32. package/dist-types/models/models_0.d.ts +430 -116
  33. package/dist-types/pagination/ListClustersV2Paginator.d.ts +4 -0
  34. package/dist-types/pagination/index.d.ts +1 -0
  35. package/dist-types/protocols/Aws_restJson1.d.ts +9 -0
  36. package/dist-types/runtimeConfig.browser.d.ts +3 -2
  37. package/dist-types/runtimeConfig.d.ts +4 -3
  38. package/dist-types/runtimeConfig.native.d.ts +1 -0
  39. package/dist-types/ts3.4/Kafka.d.ts +15 -0
  40. package/dist-types/ts3.4/KafkaClient.d.ts +8 -3
  41. package/dist-types/ts3.4/commands/CreateClusterV2Command.d.ts +17 -0
  42. package/dist-types/ts3.4/commands/DescribeClusterV2Command.d.ts +17 -0
  43. package/dist-types/ts3.4/commands/ListClustersV2Command.d.ts +17 -0
  44. package/dist-types/ts3.4/commands/index.d.ts +3 -0
  45. package/dist-types/ts3.4/models/models_0.d.ts +255 -79
  46. package/dist-types/ts3.4/pagination/ListClustersV2Paginator.d.ts +4 -0
  47. package/dist-types/ts3.4/pagination/index.d.ts +1 -0
  48. package/dist-types/ts3.4/protocols/Aws_restJson1.d.ts +9 -0
  49. package/dist-types/ts3.4/runtimeConfig.browser.d.ts +3 -2
  50. package/dist-types/ts3.4/runtimeConfig.d.ts +4 -3
  51. package/dist-types/ts3.4/runtimeConfig.native.d.ts +1 -0
  52. package/package.json +38 -45
package/CHANGELOG.md CHANGED
@@ -3,6 +3,56 @@
3
3
  All notable changes to this project will be documented in this file.
4
4
  See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5
5
 
6
+ # [3.47.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.46.0...v3.47.0) (2022-01-15)
7
+
8
+
9
+ ### Features
10
+
11
+ * **clients:** update clients to use default values inferred from defaults mode ([#3192](https://github.com/aws/aws-sdk-js-v3/issues/3192)) ([9152e21](https://github.com/aws/aws-sdk-js-v3/commit/9152e210c6ec29f34bb070eaf2874039022e6ab7))
12
+
13
+
14
+
15
+
16
+
17
+ # [3.46.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.45.0...v3.46.0) (2022-01-07)
18
+
19
+
20
+ ### Bug Fixes
21
+
22
+ * **clients:** update clean:dist script to delete dist-* folder ([#3155](https://github.com/aws/aws-sdk-js-v3/issues/3155)) ([cdb1709](https://github.com/aws/aws-sdk-js-v3/commit/cdb17090f82d1fc8755811c82cbed5976ec7e60b))
23
+
24
+
25
+ ### Features
26
+
27
+ * **clients:** extend typedoc.json from root ([#3136](https://github.com/aws/aws-sdk-js-v3/issues/3136)) ([f6a3ef5](https://github.com/aws/aws-sdk-js-v3/commit/f6a3ef541ae2d92872d09d8cab6727911287ebb2))
28
+ * end support for Node.js 10.x ([#3122](https://github.com/aws/aws-sdk-js-v3/issues/3122)) ([7acf18a](https://github.com/aws/aws-sdk-js-v3/commit/7acf18abd3fb1cc461f809110cdb0d7968c2070e))
29
+
30
+
31
+
32
+
33
+
34
+ # [3.45.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.44.0...v3.45.0) (2021-12-23)
35
+
36
+
37
+ ### Features
38
+
39
+ * **clients:** update clients as of 2021/12/23 ([#3110](https://github.com/aws/aws-sdk-js-v3/issues/3110)) ([5d638e1](https://github.com/aws/aws-sdk-js-v3/commit/5d638e188ce64fa80fe36b8cba79ba63b80b50b7))
40
+
41
+
42
+
43
+
44
+
45
+ # [3.44.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.43.0...v3.44.0) (2021-12-02)
46
+
47
+
48
+ ### Features
49
+
50
+ * **clients:** update clients as of 2021/11/30 ([#3077](https://github.com/aws/aws-sdk-js-v3/issues/3077)) ([2bdba30](https://github.com/aws/aws-sdk-js-v3/commit/2bdba30963e550728ba2903d57daa1e666a29d71))
51
+
52
+
53
+
54
+
55
+
6
56
  # [3.43.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.42.0...v3.43.0) (2021-11-29)
7
57
 
8
58
 
package/dist-cjs/Kafka.js CHANGED
@@ -4,17 +4,20 @@ exports.Kafka = void 0;
4
4
  const BatchAssociateScramSecretCommand_1 = require("./commands/BatchAssociateScramSecretCommand");
5
5
  const BatchDisassociateScramSecretCommand_1 = require("./commands/BatchDisassociateScramSecretCommand");
6
6
  const CreateClusterCommand_1 = require("./commands/CreateClusterCommand");
7
+ const CreateClusterV2Command_1 = require("./commands/CreateClusterV2Command");
7
8
  const CreateConfigurationCommand_1 = require("./commands/CreateConfigurationCommand");
8
9
  const DeleteClusterCommand_1 = require("./commands/DeleteClusterCommand");
9
10
  const DeleteConfigurationCommand_1 = require("./commands/DeleteConfigurationCommand");
10
11
  const DescribeClusterCommand_1 = require("./commands/DescribeClusterCommand");
11
12
  const DescribeClusterOperationCommand_1 = require("./commands/DescribeClusterOperationCommand");
13
+ const DescribeClusterV2Command_1 = require("./commands/DescribeClusterV2Command");
12
14
  const DescribeConfigurationCommand_1 = require("./commands/DescribeConfigurationCommand");
13
15
  const DescribeConfigurationRevisionCommand_1 = require("./commands/DescribeConfigurationRevisionCommand");
14
16
  const GetBootstrapBrokersCommand_1 = require("./commands/GetBootstrapBrokersCommand");
15
17
  const GetCompatibleKafkaVersionsCommand_1 = require("./commands/GetCompatibleKafkaVersionsCommand");
16
18
  const ListClusterOperationsCommand_1 = require("./commands/ListClusterOperationsCommand");
17
19
  const ListClustersCommand_1 = require("./commands/ListClustersCommand");
20
+ const ListClustersV2Command_1 = require("./commands/ListClustersV2Command");
18
21
  const ListConfigurationRevisionsCommand_1 = require("./commands/ListConfigurationRevisionsCommand");
19
22
  const ListConfigurationsCommand_1 = require("./commands/ListConfigurationsCommand");
20
23
  const ListKafkaVersionsCommand_1 = require("./commands/ListKafkaVersionsCommand");
@@ -77,6 +80,20 @@ class Kafka extends KafkaClient_1.KafkaClient {
77
80
  return this.send(command, optionsOrCb);
78
81
  }
79
82
  }
83
+ createClusterV2(args, optionsOrCb, cb) {
84
+ const command = new CreateClusterV2Command_1.CreateClusterV2Command(args);
85
+ if (typeof optionsOrCb === "function") {
86
+ this.send(command, optionsOrCb);
87
+ }
88
+ else if (typeof cb === "function") {
89
+ if (typeof optionsOrCb !== "object")
90
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
91
+ this.send(command, optionsOrCb || {}, cb);
92
+ }
93
+ else {
94
+ return this.send(command, optionsOrCb);
95
+ }
96
+ }
80
97
  createConfiguration(args, optionsOrCb, cb) {
81
98
  const command = new CreateConfigurationCommand_1.CreateConfigurationCommand(args);
82
99
  if (typeof optionsOrCb === "function") {
@@ -147,6 +164,20 @@ class Kafka extends KafkaClient_1.KafkaClient {
147
164
  return this.send(command, optionsOrCb);
148
165
  }
149
166
  }
167
+ describeClusterV2(args, optionsOrCb, cb) {
168
+ const command = new DescribeClusterV2Command_1.DescribeClusterV2Command(args);
169
+ if (typeof optionsOrCb === "function") {
170
+ this.send(command, optionsOrCb);
171
+ }
172
+ else if (typeof cb === "function") {
173
+ if (typeof optionsOrCb !== "object")
174
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
175
+ this.send(command, optionsOrCb || {}, cb);
176
+ }
177
+ else {
178
+ return this.send(command, optionsOrCb);
179
+ }
180
+ }
150
181
  describeConfiguration(args, optionsOrCb, cb) {
151
182
  const command = new DescribeConfigurationCommand_1.DescribeConfigurationCommand(args);
152
183
  if (typeof optionsOrCb === "function") {
@@ -231,6 +262,20 @@ class Kafka extends KafkaClient_1.KafkaClient {
231
262
  return this.send(command, optionsOrCb);
232
263
  }
233
264
  }
265
+ listClustersV2(args, optionsOrCb, cb) {
266
+ const command = new ListClustersV2Command_1.ListClustersV2Command(args);
267
+ if (typeof optionsOrCb === "function") {
268
+ this.send(command, optionsOrCb);
269
+ }
270
+ else if (typeof cb === "function") {
271
+ if (typeof optionsOrCb !== "object")
272
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
273
+ this.send(command, optionsOrCb || {}, cb);
274
+ }
275
+ else {
276
+ return this.send(command, optionsOrCb);
277
+ }
278
+ }
234
279
  listConfigurationRevisions(args, optionsOrCb, cb) {
235
280
  const command = new ListConfigurationRevisionsCommand_1.ListConfigurationRevisionsCommand(args);
236
281
  if (typeof optionsOrCb === "function") {
@@ -0,0 +1,36 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.CreateClusterV2Command = void 0;
4
+ const middleware_serde_1 = require("@aws-sdk/middleware-serde");
5
+ const smithy_client_1 = require("@aws-sdk/smithy-client");
6
+ const models_0_1 = require("../models/models_0");
7
+ const Aws_restJson1_1 = require("../protocols/Aws_restJson1");
8
+ class CreateClusterV2Command extends smithy_client_1.Command {
9
+ constructor(input) {
10
+ super();
11
+ this.input = input;
12
+ }
13
+ resolveMiddleware(clientStack, configuration, options) {
14
+ this.middlewareStack.use(middleware_serde_1.getSerdePlugin(configuration, this.serialize, this.deserialize));
15
+ const stack = clientStack.concat(this.middlewareStack);
16
+ const { logger } = configuration;
17
+ const clientName = "KafkaClient";
18
+ const commandName = "CreateClusterV2Command";
19
+ const handlerExecutionContext = {
20
+ logger,
21
+ clientName,
22
+ commandName,
23
+ inputFilterSensitiveLog: models_0_1.CreateClusterV2Request.filterSensitiveLog,
24
+ outputFilterSensitiveLog: models_0_1.CreateClusterV2Response.filterSensitiveLog,
25
+ };
26
+ const { requestHandler } = configuration;
27
+ return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
28
+ }
29
+ serialize(input, context) {
30
+ return Aws_restJson1_1.serializeAws_restJson1CreateClusterV2Command(input, context);
31
+ }
32
+ deserialize(output, context) {
33
+ return Aws_restJson1_1.deserializeAws_restJson1CreateClusterV2Command(output, context);
34
+ }
35
+ }
36
+ exports.CreateClusterV2Command = CreateClusterV2Command;
@@ -0,0 +1,36 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.DescribeClusterV2Command = void 0;
4
+ const middleware_serde_1 = require("@aws-sdk/middleware-serde");
5
+ const smithy_client_1 = require("@aws-sdk/smithy-client");
6
+ const models_0_1 = require("../models/models_0");
7
+ const Aws_restJson1_1 = require("../protocols/Aws_restJson1");
8
+ class DescribeClusterV2Command extends smithy_client_1.Command {
9
+ constructor(input) {
10
+ super();
11
+ this.input = input;
12
+ }
13
+ resolveMiddleware(clientStack, configuration, options) {
14
+ this.middlewareStack.use(middleware_serde_1.getSerdePlugin(configuration, this.serialize, this.deserialize));
15
+ const stack = clientStack.concat(this.middlewareStack);
16
+ const { logger } = configuration;
17
+ const clientName = "KafkaClient";
18
+ const commandName = "DescribeClusterV2Command";
19
+ const handlerExecutionContext = {
20
+ logger,
21
+ clientName,
22
+ commandName,
23
+ inputFilterSensitiveLog: models_0_1.DescribeClusterV2Request.filterSensitiveLog,
24
+ outputFilterSensitiveLog: models_0_1.DescribeClusterV2Response.filterSensitiveLog,
25
+ };
26
+ const { requestHandler } = configuration;
27
+ return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
28
+ }
29
+ serialize(input, context) {
30
+ return Aws_restJson1_1.serializeAws_restJson1DescribeClusterV2Command(input, context);
31
+ }
32
+ deserialize(output, context) {
33
+ return Aws_restJson1_1.deserializeAws_restJson1DescribeClusterV2Command(output, context);
34
+ }
35
+ }
36
+ exports.DescribeClusterV2Command = DescribeClusterV2Command;
@@ -0,0 +1,36 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.ListClustersV2Command = void 0;
4
+ const middleware_serde_1 = require("@aws-sdk/middleware-serde");
5
+ const smithy_client_1 = require("@aws-sdk/smithy-client");
6
+ const models_0_1 = require("../models/models_0");
7
+ const Aws_restJson1_1 = require("../protocols/Aws_restJson1");
8
+ class ListClustersV2Command extends smithy_client_1.Command {
9
+ constructor(input) {
10
+ super();
11
+ this.input = input;
12
+ }
13
+ resolveMiddleware(clientStack, configuration, options) {
14
+ this.middlewareStack.use(middleware_serde_1.getSerdePlugin(configuration, this.serialize, this.deserialize));
15
+ const stack = clientStack.concat(this.middlewareStack);
16
+ const { logger } = configuration;
17
+ const clientName = "KafkaClient";
18
+ const commandName = "ListClustersV2Command";
19
+ const handlerExecutionContext = {
20
+ logger,
21
+ clientName,
22
+ commandName,
23
+ inputFilterSensitiveLog: models_0_1.ListClustersV2Request.filterSensitiveLog,
24
+ outputFilterSensitiveLog: models_0_1.ListClustersV2Response.filterSensitiveLog,
25
+ };
26
+ const { requestHandler } = configuration;
27
+ return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
28
+ }
29
+ serialize(input, context) {
30
+ return Aws_restJson1_1.serializeAws_restJson1ListClustersV2Command(input, context);
31
+ }
32
+ deserialize(output, context) {
33
+ return Aws_restJson1_1.deserializeAws_restJson1ListClustersV2Command(output, context);
34
+ }
35
+ }
36
+ exports.ListClustersV2Command = ListClustersV2Command;
@@ -4,17 +4,20 @@ const tslib_1 = require("tslib");
4
4
  tslib_1.__exportStar(require("./BatchAssociateScramSecretCommand"), exports);
5
5
  tslib_1.__exportStar(require("./BatchDisassociateScramSecretCommand"), exports);
6
6
  tslib_1.__exportStar(require("./CreateClusterCommand"), exports);
7
+ tslib_1.__exportStar(require("./CreateClusterV2Command"), exports);
7
8
  tslib_1.__exportStar(require("./CreateConfigurationCommand"), exports);
8
9
  tslib_1.__exportStar(require("./DeleteClusterCommand"), exports);
9
10
  tslib_1.__exportStar(require("./DeleteConfigurationCommand"), exports);
10
11
  tslib_1.__exportStar(require("./DescribeClusterCommand"), exports);
11
12
  tslib_1.__exportStar(require("./DescribeClusterOperationCommand"), exports);
13
+ tslib_1.__exportStar(require("./DescribeClusterV2Command"), exports);
12
14
  tslib_1.__exportStar(require("./DescribeConfigurationCommand"), exports);
13
15
  tslib_1.__exportStar(require("./DescribeConfigurationRevisionCommand"), exports);
14
16
  tslib_1.__exportStar(require("./GetBootstrapBrokersCommand"), exports);
15
17
  tslib_1.__exportStar(require("./GetCompatibleKafkaVersionsCommand"), exports);
16
18
  tslib_1.__exportStar(require("./ListClusterOperationsCommand"), exports);
17
19
  tslib_1.__exportStar(require("./ListClustersCommand"), exports);
20
+ tslib_1.__exportStar(require("./ListClustersV2Command"), exports);
18
21
  tslib_1.__exportStar(require("./ListConfigurationRevisionsCommand"), exports);
19
22
  tslib_1.__exportStar(require("./ListConfigurationsCommand"), exports);
20
23
  tslib_1.__exportStar(require("./ListKafkaVersionsCommand"), exports);
@@ -14,6 +14,7 @@ const partitionHash = {
14
14
  "ap-south-1",
15
15
  "ap-southeast-1",
16
16
  "ap-southeast-2",
17
+ "ap-southeast-3",
17
18
  "ca-central-1",
18
19
  "eu-central-1",
19
20
  "eu-north-1",
@@ -1,14 +1,19 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.BatchAssociateScramSecretRequest = exports.BadRequestException = exports.UnprocessedScramSecret = exports.NodeInfo = exports.ZookeeperNodeInfo = exports.NodeType = exports.BrokerNodeInfo = exports.KafkaVersion = exports.KafkaVersionStatus = exports.Configuration = exports.ConfigurationState = exports.ConfigurationRevision = exports.CompatibleKafkaVersion = exports.ClusterOperationInfo = exports.MutableClusterInfo = exports.ConfigurationInfo = exports.ClusterOperationStep = exports.ClusterOperationStepInfo = exports.ErrorInfo = exports.ClusterInfo = exports.StateInfo = exports.ClusterState = exports.OpenMonitoring = exports.Prometheus = exports.NodeExporter = exports.JmxExporter = exports.LoggingInfo = exports.BrokerLogs = exports.S3 = exports.Firehose = exports.CloudWatchLogs = exports.EnhancedMonitoring = exports.EncryptionInfo = exports.EncryptionInTransit = exports.ClientBroker = exports.EncryptionAtRest = exports.BrokerSoftwareInfo = exports.ClientAuthentication = exports.Unauthenticated = exports.Tls = exports.Sasl = exports.Scram = exports.Iam = exports.BrokerNodeGroupInfo = exports.StorageInfo = exports.EBSStorageInfo = exports.ConnectivityInfo = exports.PublicAccess = exports.BrokerAZDistribution = exports.BrokerEBSVolumeInfo = void 0;
4
- exports.ListTagsForResourceResponse = exports.ListTagsForResourceRequest = exports.ListScramSecretsResponse = exports.ListScramSecretsRequest = exports.ListNodesResponse = exports.ListNodesRequest = exports.ListKafkaVersionsResponse = exports.ListKafkaVersionsRequest = exports.ListConfigurationsResponse = exports.ListConfigurationsRequest = exports.ListConfigurationRevisionsResponse = exports.ListConfigurationRevisionsRequest = exports.ListClustersResponse = exports.ListClustersRequest = exports.ListClusterOperationsResponse = exports.ListClusterOperationsRequest = exports.GetCompatibleKafkaVersionsResponse = exports.GetCompatibleKafkaVersionsRequest = exports.GetBootstrapBrokersResponse = exports.GetBootstrapBrokersRequest = exports.DescribeConfigurationRevisionResponse = exports.DescribeConfigurationRevisionRequest = exports.DescribeConfigurationResponse = exports.DescribeConfigurationRequest = exports.DescribeClusterOperationResponse = exports.DescribeClusterOperationRequest = exports.DescribeClusterResponse = exports.DescribeClusterRequest = exports.DeleteConfigurationResponse = exports.DeleteConfigurationRequest = exports.DeleteClusterResponse = exports.DeleteClusterRequest = exports.CreateConfigurationResponse = exports.CreateConfigurationRequest = exports.CreateClusterResponse = exports.CreateClusterRequest = exports.OpenMonitoringInfo = exports.PrometheusInfo = exports.NodeExporterInfo = exports.JmxExporterInfo = exports.ConflictException = exports.BatchDisassociateScramSecretResponse = exports.BatchDisassociateScramSecretRequest = exports.UnauthorizedException = exports.TooManyRequestsException = exports.ServiceUnavailableException = exports.NotFoundException = exports.InternalServerErrorException = exports.ForbiddenException = exports.BatchAssociateScramSecretResponse = void 0;
5
- exports.UpdateSecurityResponse = exports.UpdateSecurityRequest = exports.UpdateMonitoringResponse = exports.UpdateMonitoringRequest = exports.UpdateConnectivityResponse = exports.UpdateConnectivityRequest = exports.UpdateConfigurationResponse = exports.UpdateConfigurationRequest = exports.UpdateClusterKafkaVersionResponse = exports.UpdateClusterKafkaVersionRequest = exports.UpdateClusterConfigurationResponse = exports.UpdateClusterConfigurationRequest = exports.UpdateBrokerTypeResponse = exports.UpdateBrokerTypeRequest = exports.UpdateBrokerStorageResponse = exports.UpdateBrokerStorageRequest = exports.UpdateBrokerCountResponse = exports.UpdateBrokerCountRequest = exports.UntagResourceRequest = exports.TagResourceRequest = exports.RebootBrokerResponse = exports.RebootBrokerRequest = void 0;
3
+ exports.ConfigurationRevision = exports.CompatibleKafkaVersion = exports.ClusterOperationInfo = exports.MutableClusterInfo = exports.ConfigurationInfo = exports.ClusterOperationStep = exports.ClusterOperationStepInfo = exports.ErrorInfo = exports.ClusterInfo = exports.OpenMonitoring = exports.Prometheus = exports.NodeExporter = exports.JmxExporter = exports.Cluster = exports.StateInfo = exports.ClusterState = exports.Serverless = exports.VpcConfig = exports.ServerlessClientAuthentication = exports.ServerlessSasl = exports.Provisioned = exports.OpenMonitoringInfo = exports.PrometheusInfo = exports.NodeExporterInfo = exports.JmxExporterInfo = exports.LoggingInfo = exports.BrokerLogs = exports.S3 = exports.Firehose = exports.CloudWatchLogs = exports.EnhancedMonitoring = exports.EncryptionInfo = exports.EncryptionInTransit = exports.ClientBroker = exports.EncryptionAtRest = exports.BrokerSoftwareInfo = exports.ClientAuthentication = exports.Unauthenticated = exports.Tls = exports.Sasl = exports.Scram = exports.Iam = exports.BrokerNodeGroupInfo = exports.StorageInfo = exports.EBSStorageInfo = exports.ConnectivityInfo = exports.PublicAccess = exports.BrokerAZDistribution = exports.ClusterType = exports.BrokerEBSVolumeInfo = void 0;
4
+ exports.ListKafkaVersionsRequest = exports.ListConfigurationsResponse = exports.ListConfigurationsRequest = exports.ListConfigurationRevisionsResponse = exports.ListConfigurationRevisionsRequest = exports.ListClustersV2Response = exports.ListClustersV2Request = exports.ListClustersResponse = exports.ListClustersRequest = exports.ListClusterOperationsResponse = exports.ListClusterOperationsRequest = exports.GetCompatibleKafkaVersionsResponse = exports.GetCompatibleKafkaVersionsRequest = exports.GetBootstrapBrokersResponse = exports.GetBootstrapBrokersRequest = exports.DescribeConfigurationRevisionResponse = exports.DescribeConfigurationRevisionRequest = exports.DescribeConfigurationResponse = exports.DescribeConfigurationRequest = exports.DescribeClusterV2Response = exports.DescribeClusterV2Request = exports.DescribeClusterOperationResponse = exports.DescribeClusterOperationRequest = exports.DescribeClusterResponse = exports.DescribeClusterRequest = exports.DeleteConfigurationResponse = exports.DeleteConfigurationRequest = exports.DeleteClusterResponse = exports.DeleteClusterRequest = exports.CreateConfigurationResponse = exports.CreateConfigurationRequest = exports.CreateClusterV2Response = exports.CreateClusterV2Request = exports.ServerlessRequest = exports.ProvisionedRequest = exports.CreateClusterResponse = exports.CreateClusterRequest = exports.BatchDisassociateScramSecretResponse = exports.BatchDisassociateScramSecretRequest = exports.BatchAssociateScramSecretResponse = exports.BatchAssociateScramSecretRequest = exports.UnprocessedScramSecret = exports.NodeInfo = exports.ZookeeperNodeInfo = exports.NodeType = exports.BrokerNodeInfo = exports.KafkaVersion = exports.KafkaVersionStatus = exports.Configuration = exports.ConfigurationState = void 0;
5
+ exports.UpdateSecurityResponse = exports.UpdateSecurityRequest = exports.UpdateMonitoringResponse = exports.UpdateMonitoringRequest = exports.UpdateConnectivityResponse = exports.UpdateConnectivityRequest = exports.UpdateConfigurationResponse = exports.UpdateConfigurationRequest = exports.UpdateClusterKafkaVersionResponse = exports.UpdateClusterKafkaVersionRequest = exports.UpdateClusterConfigurationResponse = exports.UpdateClusterConfigurationRequest = exports.UpdateBrokerTypeResponse = exports.UpdateBrokerTypeRequest = exports.UpdateBrokerStorageResponse = exports.UpdateBrokerStorageRequest = exports.UpdateBrokerCountResponse = exports.UpdateBrokerCountRequest = exports.UntagResourceRequest = exports.TagResourceRequest = exports.RebootBrokerResponse = exports.RebootBrokerRequest = exports.ListTagsForResourceResponse = exports.ListTagsForResourceRequest = exports.ListScramSecretsResponse = exports.ListScramSecretsRequest = exports.ListNodesResponse = exports.ListNodesRequest = exports.ListKafkaVersionsResponse = void 0;
6
6
  var BrokerEBSVolumeInfo;
7
7
  (function (BrokerEBSVolumeInfo) {
8
8
  BrokerEBSVolumeInfo.filterSensitiveLog = (obj) => ({
9
9
  ...obj,
10
10
  });
11
11
  })(BrokerEBSVolumeInfo = exports.BrokerEBSVolumeInfo || (exports.BrokerEBSVolumeInfo = {}));
12
+ var ClusterType;
13
+ (function (ClusterType) {
14
+ ClusterType["PROVISIONED"] = "PROVISIONED";
15
+ ClusterType["SERVERLESS"] = "SERVERLESS";
16
+ })(ClusterType = exports.ClusterType || (exports.ClusterType = {}));
12
17
  var BrokerAZDistribution;
13
18
  (function (BrokerAZDistribution) {
14
19
  BrokerAZDistribution["DEFAULT"] = "DEFAULT";
@@ -146,30 +151,60 @@ var LoggingInfo;
146
151
  ...obj,
147
152
  });
148
153
  })(LoggingInfo = exports.LoggingInfo || (exports.LoggingInfo = {}));
149
- var JmxExporter;
150
- (function (JmxExporter) {
151
- JmxExporter.filterSensitiveLog = (obj) => ({
154
+ var JmxExporterInfo;
155
+ (function (JmxExporterInfo) {
156
+ JmxExporterInfo.filterSensitiveLog = (obj) => ({
152
157
  ...obj,
153
158
  });
154
- })(JmxExporter = exports.JmxExporter || (exports.JmxExporter = {}));
155
- var NodeExporter;
156
- (function (NodeExporter) {
157
- NodeExporter.filterSensitiveLog = (obj) => ({
159
+ })(JmxExporterInfo = exports.JmxExporterInfo || (exports.JmxExporterInfo = {}));
160
+ var NodeExporterInfo;
161
+ (function (NodeExporterInfo) {
162
+ NodeExporterInfo.filterSensitiveLog = (obj) => ({
158
163
  ...obj,
159
164
  });
160
- })(NodeExporter = exports.NodeExporter || (exports.NodeExporter = {}));
161
- var Prometheus;
162
- (function (Prometheus) {
163
- Prometheus.filterSensitiveLog = (obj) => ({
165
+ })(NodeExporterInfo = exports.NodeExporterInfo || (exports.NodeExporterInfo = {}));
166
+ var PrometheusInfo;
167
+ (function (PrometheusInfo) {
168
+ PrometheusInfo.filterSensitiveLog = (obj) => ({
164
169
  ...obj,
165
170
  });
166
- })(Prometheus = exports.Prometheus || (exports.Prometheus = {}));
167
- var OpenMonitoring;
168
- (function (OpenMonitoring) {
169
- OpenMonitoring.filterSensitiveLog = (obj) => ({
171
+ })(PrometheusInfo = exports.PrometheusInfo || (exports.PrometheusInfo = {}));
172
+ var OpenMonitoringInfo;
173
+ (function (OpenMonitoringInfo) {
174
+ OpenMonitoringInfo.filterSensitiveLog = (obj) => ({
170
175
  ...obj,
171
176
  });
172
- })(OpenMonitoring = exports.OpenMonitoring || (exports.OpenMonitoring = {}));
177
+ })(OpenMonitoringInfo = exports.OpenMonitoringInfo || (exports.OpenMonitoringInfo = {}));
178
+ var Provisioned;
179
+ (function (Provisioned) {
180
+ Provisioned.filterSensitiveLog = (obj) => ({
181
+ ...obj,
182
+ });
183
+ })(Provisioned = exports.Provisioned || (exports.Provisioned = {}));
184
+ var ServerlessSasl;
185
+ (function (ServerlessSasl) {
186
+ ServerlessSasl.filterSensitiveLog = (obj) => ({
187
+ ...obj,
188
+ });
189
+ })(ServerlessSasl = exports.ServerlessSasl || (exports.ServerlessSasl = {}));
190
+ var ServerlessClientAuthentication;
191
+ (function (ServerlessClientAuthentication) {
192
+ ServerlessClientAuthentication.filterSensitiveLog = (obj) => ({
193
+ ...obj,
194
+ });
195
+ })(ServerlessClientAuthentication = exports.ServerlessClientAuthentication || (exports.ServerlessClientAuthentication = {}));
196
+ var VpcConfig;
197
+ (function (VpcConfig) {
198
+ VpcConfig.filterSensitiveLog = (obj) => ({
199
+ ...obj,
200
+ });
201
+ })(VpcConfig = exports.VpcConfig || (exports.VpcConfig = {}));
202
+ var Serverless;
203
+ (function (Serverless) {
204
+ Serverless.filterSensitiveLog = (obj) => ({
205
+ ...obj,
206
+ });
207
+ })(Serverless = exports.Serverless || (exports.Serverless = {}));
173
208
  var ClusterState;
174
209
  (function (ClusterState) {
175
210
  ClusterState["ACTIVE"] = "ACTIVE";
@@ -187,6 +222,36 @@ var StateInfo;
187
222
  ...obj,
188
223
  });
189
224
  })(StateInfo = exports.StateInfo || (exports.StateInfo = {}));
225
+ var Cluster;
226
+ (function (Cluster) {
227
+ Cluster.filterSensitiveLog = (obj) => ({
228
+ ...obj,
229
+ });
230
+ })(Cluster = exports.Cluster || (exports.Cluster = {}));
231
+ var JmxExporter;
232
+ (function (JmxExporter) {
233
+ JmxExporter.filterSensitiveLog = (obj) => ({
234
+ ...obj,
235
+ });
236
+ })(JmxExporter = exports.JmxExporter || (exports.JmxExporter = {}));
237
+ var NodeExporter;
238
+ (function (NodeExporter) {
239
+ NodeExporter.filterSensitiveLog = (obj) => ({
240
+ ...obj,
241
+ });
242
+ })(NodeExporter = exports.NodeExporter || (exports.NodeExporter = {}));
243
+ var Prometheus;
244
+ (function (Prometheus) {
245
+ Prometheus.filterSensitiveLog = (obj) => ({
246
+ ...obj,
247
+ });
248
+ })(Prometheus = exports.Prometheus || (exports.Prometheus = {}));
249
+ var OpenMonitoring;
250
+ (function (OpenMonitoring) {
251
+ OpenMonitoring.filterSensitiveLog = (obj) => ({
252
+ ...obj,
253
+ });
254
+ })(OpenMonitoring = exports.OpenMonitoring || (exports.OpenMonitoring = {}));
190
255
  var ClusterInfo;
191
256
  (function (ClusterInfo) {
192
257
  ClusterInfo.filterSensitiveLog = (obj) => ({
@@ -292,12 +357,6 @@ var UnprocessedScramSecret;
292
357
  ...obj,
293
358
  });
294
359
  })(UnprocessedScramSecret = exports.UnprocessedScramSecret || (exports.UnprocessedScramSecret = {}));
295
- var BadRequestException;
296
- (function (BadRequestException) {
297
- BadRequestException.filterSensitiveLog = (obj) => ({
298
- ...obj,
299
- });
300
- })(BadRequestException = exports.BadRequestException || (exports.BadRequestException = {}));
301
360
  var BatchAssociateScramSecretRequest;
302
361
  (function (BatchAssociateScramSecretRequest) {
303
362
  BatchAssociateScramSecretRequest.filterSensitiveLog = (obj) => ({
@@ -310,42 +369,6 @@ var BatchAssociateScramSecretResponse;
310
369
  ...obj,
311
370
  });
312
371
  })(BatchAssociateScramSecretResponse = exports.BatchAssociateScramSecretResponse || (exports.BatchAssociateScramSecretResponse = {}));
313
- var ForbiddenException;
314
- (function (ForbiddenException) {
315
- ForbiddenException.filterSensitiveLog = (obj) => ({
316
- ...obj,
317
- });
318
- })(ForbiddenException = exports.ForbiddenException || (exports.ForbiddenException = {}));
319
- var InternalServerErrorException;
320
- (function (InternalServerErrorException) {
321
- InternalServerErrorException.filterSensitiveLog = (obj) => ({
322
- ...obj,
323
- });
324
- })(InternalServerErrorException = exports.InternalServerErrorException || (exports.InternalServerErrorException = {}));
325
- var NotFoundException;
326
- (function (NotFoundException) {
327
- NotFoundException.filterSensitiveLog = (obj) => ({
328
- ...obj,
329
- });
330
- })(NotFoundException = exports.NotFoundException || (exports.NotFoundException = {}));
331
- var ServiceUnavailableException;
332
- (function (ServiceUnavailableException) {
333
- ServiceUnavailableException.filterSensitiveLog = (obj) => ({
334
- ...obj,
335
- });
336
- })(ServiceUnavailableException = exports.ServiceUnavailableException || (exports.ServiceUnavailableException = {}));
337
- var TooManyRequestsException;
338
- (function (TooManyRequestsException) {
339
- TooManyRequestsException.filterSensitiveLog = (obj) => ({
340
- ...obj,
341
- });
342
- })(TooManyRequestsException = exports.TooManyRequestsException || (exports.TooManyRequestsException = {}));
343
- var UnauthorizedException;
344
- (function (UnauthorizedException) {
345
- UnauthorizedException.filterSensitiveLog = (obj) => ({
346
- ...obj,
347
- });
348
- })(UnauthorizedException = exports.UnauthorizedException || (exports.UnauthorizedException = {}));
349
372
  var BatchDisassociateScramSecretRequest;
350
373
  (function (BatchDisassociateScramSecretRequest) {
351
374
  BatchDisassociateScramSecretRequest.filterSensitiveLog = (obj) => ({
@@ -358,36 +381,6 @@ var BatchDisassociateScramSecretResponse;
358
381
  ...obj,
359
382
  });
360
383
  })(BatchDisassociateScramSecretResponse = exports.BatchDisassociateScramSecretResponse || (exports.BatchDisassociateScramSecretResponse = {}));
361
- var ConflictException;
362
- (function (ConflictException) {
363
- ConflictException.filterSensitiveLog = (obj) => ({
364
- ...obj,
365
- });
366
- })(ConflictException = exports.ConflictException || (exports.ConflictException = {}));
367
- var JmxExporterInfo;
368
- (function (JmxExporterInfo) {
369
- JmxExporterInfo.filterSensitiveLog = (obj) => ({
370
- ...obj,
371
- });
372
- })(JmxExporterInfo = exports.JmxExporterInfo || (exports.JmxExporterInfo = {}));
373
- var NodeExporterInfo;
374
- (function (NodeExporterInfo) {
375
- NodeExporterInfo.filterSensitiveLog = (obj) => ({
376
- ...obj,
377
- });
378
- })(NodeExporterInfo = exports.NodeExporterInfo || (exports.NodeExporterInfo = {}));
379
- var PrometheusInfo;
380
- (function (PrometheusInfo) {
381
- PrometheusInfo.filterSensitiveLog = (obj) => ({
382
- ...obj,
383
- });
384
- })(PrometheusInfo = exports.PrometheusInfo || (exports.PrometheusInfo = {}));
385
- var OpenMonitoringInfo;
386
- (function (OpenMonitoringInfo) {
387
- OpenMonitoringInfo.filterSensitiveLog = (obj) => ({
388
- ...obj,
389
- });
390
- })(OpenMonitoringInfo = exports.OpenMonitoringInfo || (exports.OpenMonitoringInfo = {}));
391
384
  var CreateClusterRequest;
392
385
  (function (CreateClusterRequest) {
393
386
  CreateClusterRequest.filterSensitiveLog = (obj) => ({
@@ -400,6 +393,30 @@ var CreateClusterResponse;
400
393
  ...obj,
401
394
  });
402
395
  })(CreateClusterResponse = exports.CreateClusterResponse || (exports.CreateClusterResponse = {}));
396
+ var ProvisionedRequest;
397
+ (function (ProvisionedRequest) {
398
+ ProvisionedRequest.filterSensitiveLog = (obj) => ({
399
+ ...obj,
400
+ });
401
+ })(ProvisionedRequest = exports.ProvisionedRequest || (exports.ProvisionedRequest = {}));
402
+ var ServerlessRequest;
403
+ (function (ServerlessRequest) {
404
+ ServerlessRequest.filterSensitiveLog = (obj) => ({
405
+ ...obj,
406
+ });
407
+ })(ServerlessRequest = exports.ServerlessRequest || (exports.ServerlessRequest = {}));
408
+ var CreateClusterV2Request;
409
+ (function (CreateClusterV2Request) {
410
+ CreateClusterV2Request.filterSensitiveLog = (obj) => ({
411
+ ...obj,
412
+ });
413
+ })(CreateClusterV2Request = exports.CreateClusterV2Request || (exports.CreateClusterV2Request = {}));
414
+ var CreateClusterV2Response;
415
+ (function (CreateClusterV2Response) {
416
+ CreateClusterV2Response.filterSensitiveLog = (obj) => ({
417
+ ...obj,
418
+ });
419
+ })(CreateClusterV2Response = exports.CreateClusterV2Response || (exports.CreateClusterV2Response = {}));
403
420
  var CreateConfigurationRequest;
404
421
  (function (CreateConfigurationRequest) {
405
422
  CreateConfigurationRequest.filterSensitiveLog = (obj) => ({
@@ -460,6 +477,18 @@ var DescribeClusterOperationResponse;
460
477
  ...obj,
461
478
  });
462
479
  })(DescribeClusterOperationResponse = exports.DescribeClusterOperationResponse || (exports.DescribeClusterOperationResponse = {}));
480
+ var DescribeClusterV2Request;
481
+ (function (DescribeClusterV2Request) {
482
+ DescribeClusterV2Request.filterSensitiveLog = (obj) => ({
483
+ ...obj,
484
+ });
485
+ })(DescribeClusterV2Request = exports.DescribeClusterV2Request || (exports.DescribeClusterV2Request = {}));
486
+ var DescribeClusterV2Response;
487
+ (function (DescribeClusterV2Response) {
488
+ DescribeClusterV2Response.filterSensitiveLog = (obj) => ({
489
+ ...obj,
490
+ });
491
+ })(DescribeClusterV2Response = exports.DescribeClusterV2Response || (exports.DescribeClusterV2Response = {}));
463
492
  var DescribeConfigurationRequest;
464
493
  (function (DescribeConfigurationRequest) {
465
494
  DescribeConfigurationRequest.filterSensitiveLog = (obj) => ({
@@ -532,6 +561,18 @@ var ListClustersResponse;
532
561
  ...obj,
533
562
  });
534
563
  })(ListClustersResponse = exports.ListClustersResponse || (exports.ListClustersResponse = {}));
564
+ var ListClustersV2Request;
565
+ (function (ListClustersV2Request) {
566
+ ListClustersV2Request.filterSensitiveLog = (obj) => ({
567
+ ...obj,
568
+ });
569
+ })(ListClustersV2Request = exports.ListClustersV2Request || (exports.ListClustersV2Request = {}));
570
+ var ListClustersV2Response;
571
+ (function (ListClustersV2Response) {
572
+ ListClustersV2Response.filterSensitiveLog = (obj) => ({
573
+ ...obj,
574
+ });
575
+ })(ListClustersV2Response = exports.ListClustersV2Response || (exports.ListClustersV2Response = {}));
535
576
  var ListConfigurationRevisionsRequest;
536
577
  (function (ListConfigurationRevisionsRequest) {
537
578
  ListConfigurationRevisionsRequest.filterSensitiveLog = (obj) => ({
@@ -0,0 +1,35 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.paginateListClustersV2 = void 0;
4
+ const ListClustersV2Command_1 = require("../commands/ListClustersV2Command");
5
+ const Kafka_1 = require("../Kafka");
6
+ const KafkaClient_1 = require("../KafkaClient");
7
+ const makePagedClientRequest = async (client, input, ...args) => {
8
+ return await client.send(new ListClustersV2Command_1.ListClustersV2Command(input), ...args);
9
+ };
10
+ const makePagedRequest = async (client, input, ...args) => {
11
+ return await client.listClustersV2(input, ...args);
12
+ };
13
+ async function* paginateListClustersV2(config, input, ...additionalArguments) {
14
+ let token = config.startingToken || undefined;
15
+ let hasNext = true;
16
+ let page;
17
+ while (hasNext) {
18
+ input.NextToken = token;
19
+ input["MaxResults"] = config.pageSize;
20
+ if (config.client instanceof Kafka_1.Kafka) {
21
+ page = await makePagedRequest(config.client, input, ...additionalArguments);
22
+ }
23
+ else if (config.client instanceof KafkaClient_1.KafkaClient) {
24
+ page = await makePagedClientRequest(config.client, input, ...additionalArguments);
25
+ }
26
+ else {
27
+ throw new Error("Invalid client, expected Kafka | KafkaClient");
28
+ }
29
+ yield page;
30
+ token = page.NextToken;
31
+ hasNext = !!token;
32
+ }
33
+ return undefined;
34
+ }
35
+ exports.paginateListClustersV2 = paginateListClustersV2;
@@ -4,6 +4,7 @@ const tslib_1 = require("tslib");
4
4
  tslib_1.__exportStar(require("./Interfaces"), exports);
5
5
  tslib_1.__exportStar(require("./ListClusterOperationsPaginator"), exports);
6
6
  tslib_1.__exportStar(require("./ListClustersPaginator"), exports);
7
+ tslib_1.__exportStar(require("./ListClustersV2Paginator"), exports);
7
8
  tslib_1.__exportStar(require("./ListConfigurationRevisionsPaginator"), exports);
8
9
  tslib_1.__exportStar(require("./ListConfigurationsPaginator"), exports);
9
10
  tslib_1.__exportStar(require("./ListKafkaVersionsPaginator"), exports);