@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.
- package/CHANGELOG.md +11 -0
- package/dist-cjs/Kafka.js +45 -0
- package/dist-cjs/commands/CreateClusterV2Command.js +36 -0
- package/dist-cjs/commands/DescribeClusterV2Command.js +36 -0
- package/dist-cjs/commands/ListClustersV2Command.js +36 -0
- package/dist-cjs/commands/index.js +3 -0
- package/dist-cjs/models/models_0.js +132 -43
- package/dist-cjs/pagination/ListClustersV2Paginator.js +35 -0
- package/dist-cjs/pagination/index.js +1 -0
- package/dist-cjs/protocols/Aws_restJson1.js +546 -2
- package/dist-es/Kafka.js +45 -0
- package/dist-es/commands/CreateClusterV2Command.js +39 -0
- package/dist-es/commands/DescribeClusterV2Command.js +39 -0
- package/dist-es/commands/ListClustersV2Command.js +39 -0
- package/dist-es/commands/index.js +3 -0
- package/dist-es/models/models_0.js +92 -31
- package/dist-es/pagination/ListClustersV2Paginator.js +74 -0
- package/dist-es/pagination/index.js +1 -0
- package/dist-es/protocols/Aws_restJson1.js +571 -0
- package/dist-types/Kafka.d.ts +21 -0
- package/dist-types/KafkaClient.d.ts +5 -2
- package/dist-types/commands/CreateClusterV2Command.d.ts +35 -0
- package/dist-types/commands/DescribeClusterV2Command.d.ts +35 -0
- package/dist-types/commands/ListClustersV2Command.d.ts +35 -0
- package/dist-types/commands/index.d.ts +3 -0
- package/dist-types/models/models_0.d.ts +432 -70
- package/dist-types/pagination/ListClustersV2Paginator.d.ts +4 -0
- package/dist-types/pagination/index.d.ts +1 -0
- package/dist-types/protocols/Aws_restJson1.d.ts +9 -0
- package/dist-types/ts3.4/Kafka.d.ts +15 -0
- package/dist-types/ts3.4/KafkaClient.d.ts +5 -2
- package/dist-types/ts3.4/commands/CreateClusterV2Command.d.ts +17 -0
- package/dist-types/ts3.4/commands/DescribeClusterV2Command.d.ts +17 -0
- package/dist-types/ts3.4/commands/ListClustersV2Command.d.ts +17 -0
- package/dist-types/ts3.4/commands/index.d.ts +3 -0
- package/dist-types/ts3.4/models/models_0.d.ts +256 -48
- package/dist-types/ts3.4/pagination/ListClustersV2Paginator.d.ts +4 -0
- package/dist-types/ts3.4/pagination/index.d.ts +1 -0
- package/dist-types/ts3.4/protocols/Aws_restJson1.d.ts +9 -0
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,17 @@
|
|
|
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.44.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.43.0...v3.44.0) (2021-12-02)
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
### Features
|
|
10
|
+
|
|
11
|
+
* **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))
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
|
|
6
17
|
# [3.43.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.42.0...v3.43.0) (2021-11-29)
|
|
7
18
|
|
|
8
19
|
|
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);
|
|
@@ -1,14 +1,19 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
4
|
-
exports.
|
|
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.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.ConflictException = exports.BatchDisassociateScramSecretResponse = exports.BatchDisassociateScramSecretRequest = exports.UnauthorizedException = exports.TooManyRequestsException = exports.ServiceUnavailableException = exports.NotFoundException = exports.InternalServerErrorException = exports.ForbiddenException = exports.BatchAssociateScramSecretResponse = exports.BatchAssociateScramSecretRequest = exports.BadRequestException = 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 = exports.ListKafkaVersionsRequest = exports.ListConfigurationsResponse = exports.ListConfigurationsRequest = exports.ListConfigurationRevisionsResponse = exports.ListConfigurationRevisionsRequest = exports.ListClustersV2Response = exports.ListClustersV2Request = exports.ListClustersResponse = 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
|
|
150
|
-
(function (
|
|
151
|
-
|
|
154
|
+
var JmxExporterInfo;
|
|
155
|
+
(function (JmxExporterInfo) {
|
|
156
|
+
JmxExporterInfo.filterSensitiveLog = (obj) => ({
|
|
152
157
|
...obj,
|
|
153
158
|
});
|
|
154
|
-
})(
|
|
155
|
-
var
|
|
156
|
-
(function (
|
|
157
|
-
|
|
159
|
+
})(JmxExporterInfo = exports.JmxExporterInfo || (exports.JmxExporterInfo = {}));
|
|
160
|
+
var NodeExporterInfo;
|
|
161
|
+
(function (NodeExporterInfo) {
|
|
162
|
+
NodeExporterInfo.filterSensitiveLog = (obj) => ({
|
|
158
163
|
...obj,
|
|
159
164
|
});
|
|
160
|
-
})(
|
|
161
|
-
var
|
|
162
|
-
(function (
|
|
163
|
-
|
|
165
|
+
})(NodeExporterInfo = exports.NodeExporterInfo || (exports.NodeExporterInfo = {}));
|
|
166
|
+
var PrometheusInfo;
|
|
167
|
+
(function (PrometheusInfo) {
|
|
168
|
+
PrometheusInfo.filterSensitiveLog = (obj) => ({
|
|
164
169
|
...obj,
|
|
165
170
|
});
|
|
166
|
-
})(
|
|
167
|
-
var
|
|
168
|
-
(function (
|
|
169
|
-
|
|
171
|
+
})(PrometheusInfo = exports.PrometheusInfo || (exports.PrometheusInfo = {}));
|
|
172
|
+
var OpenMonitoringInfo;
|
|
173
|
+
(function (OpenMonitoringInfo) {
|
|
174
|
+
OpenMonitoringInfo.filterSensitiveLog = (obj) => ({
|
|
170
175
|
...obj,
|
|
171
176
|
});
|
|
172
|
-
})(
|
|
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) => ({
|
|
@@ -364,30 +429,6 @@ var ConflictException;
|
|
|
364
429
|
...obj,
|
|
365
430
|
});
|
|
366
431
|
})(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
432
|
var CreateClusterRequest;
|
|
392
433
|
(function (CreateClusterRequest) {
|
|
393
434
|
CreateClusterRequest.filterSensitiveLog = (obj) => ({
|
|
@@ -400,6 +441,30 @@ var CreateClusterResponse;
|
|
|
400
441
|
...obj,
|
|
401
442
|
});
|
|
402
443
|
})(CreateClusterResponse = exports.CreateClusterResponse || (exports.CreateClusterResponse = {}));
|
|
444
|
+
var ProvisionedRequest;
|
|
445
|
+
(function (ProvisionedRequest) {
|
|
446
|
+
ProvisionedRequest.filterSensitiveLog = (obj) => ({
|
|
447
|
+
...obj,
|
|
448
|
+
});
|
|
449
|
+
})(ProvisionedRequest = exports.ProvisionedRequest || (exports.ProvisionedRequest = {}));
|
|
450
|
+
var ServerlessRequest;
|
|
451
|
+
(function (ServerlessRequest) {
|
|
452
|
+
ServerlessRequest.filterSensitiveLog = (obj) => ({
|
|
453
|
+
...obj,
|
|
454
|
+
});
|
|
455
|
+
})(ServerlessRequest = exports.ServerlessRequest || (exports.ServerlessRequest = {}));
|
|
456
|
+
var CreateClusterV2Request;
|
|
457
|
+
(function (CreateClusterV2Request) {
|
|
458
|
+
CreateClusterV2Request.filterSensitiveLog = (obj) => ({
|
|
459
|
+
...obj,
|
|
460
|
+
});
|
|
461
|
+
})(CreateClusterV2Request = exports.CreateClusterV2Request || (exports.CreateClusterV2Request = {}));
|
|
462
|
+
var CreateClusterV2Response;
|
|
463
|
+
(function (CreateClusterV2Response) {
|
|
464
|
+
CreateClusterV2Response.filterSensitiveLog = (obj) => ({
|
|
465
|
+
...obj,
|
|
466
|
+
});
|
|
467
|
+
})(CreateClusterV2Response = exports.CreateClusterV2Response || (exports.CreateClusterV2Response = {}));
|
|
403
468
|
var CreateConfigurationRequest;
|
|
404
469
|
(function (CreateConfigurationRequest) {
|
|
405
470
|
CreateConfigurationRequest.filterSensitiveLog = (obj) => ({
|
|
@@ -460,6 +525,18 @@ var DescribeClusterOperationResponse;
|
|
|
460
525
|
...obj,
|
|
461
526
|
});
|
|
462
527
|
})(DescribeClusterOperationResponse = exports.DescribeClusterOperationResponse || (exports.DescribeClusterOperationResponse = {}));
|
|
528
|
+
var DescribeClusterV2Request;
|
|
529
|
+
(function (DescribeClusterV2Request) {
|
|
530
|
+
DescribeClusterV2Request.filterSensitiveLog = (obj) => ({
|
|
531
|
+
...obj,
|
|
532
|
+
});
|
|
533
|
+
})(DescribeClusterV2Request = exports.DescribeClusterV2Request || (exports.DescribeClusterV2Request = {}));
|
|
534
|
+
var DescribeClusterV2Response;
|
|
535
|
+
(function (DescribeClusterV2Response) {
|
|
536
|
+
DescribeClusterV2Response.filterSensitiveLog = (obj) => ({
|
|
537
|
+
...obj,
|
|
538
|
+
});
|
|
539
|
+
})(DescribeClusterV2Response = exports.DescribeClusterV2Response || (exports.DescribeClusterV2Response = {}));
|
|
463
540
|
var DescribeConfigurationRequest;
|
|
464
541
|
(function (DescribeConfigurationRequest) {
|
|
465
542
|
DescribeConfigurationRequest.filterSensitiveLog = (obj) => ({
|
|
@@ -532,6 +609,18 @@ var ListClustersResponse;
|
|
|
532
609
|
...obj,
|
|
533
610
|
});
|
|
534
611
|
})(ListClustersResponse = exports.ListClustersResponse || (exports.ListClustersResponse = {}));
|
|
612
|
+
var ListClustersV2Request;
|
|
613
|
+
(function (ListClustersV2Request) {
|
|
614
|
+
ListClustersV2Request.filterSensitiveLog = (obj) => ({
|
|
615
|
+
...obj,
|
|
616
|
+
});
|
|
617
|
+
})(ListClustersV2Request = exports.ListClustersV2Request || (exports.ListClustersV2Request = {}));
|
|
618
|
+
var ListClustersV2Response;
|
|
619
|
+
(function (ListClustersV2Response) {
|
|
620
|
+
ListClustersV2Response.filterSensitiveLog = (obj) => ({
|
|
621
|
+
...obj,
|
|
622
|
+
});
|
|
623
|
+
})(ListClustersV2Response = exports.ListClustersV2Response || (exports.ListClustersV2Response = {}));
|
|
535
624
|
var ListConfigurationRevisionsRequest;
|
|
536
625
|
(function (ListConfigurationRevisionsRequest) {
|
|
537
626
|
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);
|