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