@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.
- package/CHANGELOG.md +50 -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/endpoints.js +1 -0
- package/dist-cjs/models/models_0.js +132 -91
- 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-cjs/runtimeConfig.browser.js +7 -2
- package/dist-cjs/runtimeConfig.js +9 -3
- 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/endpoints.js +1 -0
- package/dist-es/models/models_0.js +92 -63
- 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-es/runtimeConfig.browser.js +12 -3
- package/dist-es/runtimeConfig.js +13 -6
- package/dist-types/Kafka.d.ts +21 -0
- package/dist-types/KafkaClient.d.ts +10 -3
- 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 +430 -116
- 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/runtimeConfig.browser.d.ts +3 -2
- package/dist-types/runtimeConfig.d.ts +4 -3
- package/dist-types/runtimeConfig.native.d.ts +1 -0
- package/dist-types/ts3.4/Kafka.d.ts +15 -0
- package/dist-types/ts3.4/KafkaClient.d.ts +8 -3
- 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 +255 -79
- 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/dist-types/ts3.4/runtimeConfig.browser.d.ts +3 -2
- package/dist-types/ts3.4/runtimeConfig.d.ts +4 -3
- package/dist-types/ts3.4/runtimeConfig.native.d.ts +1 -0
- package/package.json +38 -45
|
@@ -13,13 +13,18 @@ const util_body_length_browser_1 = require("@aws-sdk/util-body-length-browser");
|
|
|
13
13
|
const util_user_agent_browser_1 = require("@aws-sdk/util-user-agent-browser");
|
|
14
14
|
const util_utf8_browser_1 = require("@aws-sdk/util-utf8-browser");
|
|
15
15
|
const runtimeConfig_shared_1 = require("./runtimeConfig.shared");
|
|
16
|
+
const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
17
|
+
const util_defaults_mode_browser_1 = require("@aws-sdk/util-defaults-mode-browser");
|
|
16
18
|
const getRuntimeConfig = (config) => {
|
|
17
19
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q;
|
|
20
|
+
const defaultsMode = util_defaults_mode_browser_1.resolveDefaultsModeConfig(config);
|
|
21
|
+
const defaultConfigProvider = () => defaultsMode().then(smithy_client_1.loadConfigsForDefaultMode);
|
|
18
22
|
const clientSharedValues = runtimeConfig_shared_1.getRuntimeConfig(config);
|
|
19
23
|
return {
|
|
20
24
|
...clientSharedValues,
|
|
21
25
|
...config,
|
|
22
26
|
runtime: "browser",
|
|
27
|
+
defaultsMode,
|
|
23
28
|
base64Decoder: (_a = config === null || config === void 0 ? void 0 : config.base64Decoder) !== null && _a !== void 0 ? _a : util_base64_browser_1.fromBase64,
|
|
24
29
|
base64Encoder: (_b = config === null || config === void 0 ? void 0 : config.base64Encoder) !== null && _b !== void 0 ? _b : util_base64_browser_1.toBase64,
|
|
25
30
|
bodyLengthChecker: (_c = config === null || config === void 0 ? void 0 : config.bodyLengthChecker) !== null && _c !== void 0 ? _c : util_body_length_browser_1.calculateBodyLength,
|
|
@@ -27,8 +32,8 @@ const getRuntimeConfig = (config) => {
|
|
|
27
32
|
defaultUserAgentProvider: (_e = config === null || config === void 0 ? void 0 : config.defaultUserAgentProvider) !== null && _e !== void 0 ? _e : util_user_agent_browser_1.defaultUserAgent({ serviceId: clientSharedValues.serviceId, clientVersion: package_json_1.default.version }),
|
|
28
33
|
maxAttempts: (_f = config === null || config === void 0 ? void 0 : config.maxAttempts) !== null && _f !== void 0 ? _f : middleware_retry_1.DEFAULT_MAX_ATTEMPTS,
|
|
29
34
|
region: (_g = config === null || config === void 0 ? void 0 : config.region) !== null && _g !== void 0 ? _g : invalid_dependency_1.invalidProvider("Region is missing"),
|
|
30
|
-
requestHandler: (_h = config === null || config === void 0 ? void 0 : config.requestHandler) !== null && _h !== void 0 ? _h : new fetch_http_handler_1.FetchHttpHandler(),
|
|
31
|
-
retryMode: (_j = config === null || config === void 0 ? void 0 : config.retryMode) !== null && _j !== void 0 ? _j : (() =>
|
|
35
|
+
requestHandler: (_h = config === null || config === void 0 ? void 0 : config.requestHandler) !== null && _h !== void 0 ? _h : new fetch_http_handler_1.FetchHttpHandler(defaultConfigProvider),
|
|
36
|
+
retryMode: (_j = config === null || config === void 0 ? void 0 : config.retryMode) !== null && _j !== void 0 ? _j : (async () => (await defaultConfigProvider()).retryMode || middleware_retry_1.DEFAULT_RETRY_MODE),
|
|
32
37
|
sha256: (_k = config === null || config === void 0 ? void 0 : config.sha256) !== null && _k !== void 0 ? _k : sha256_browser_1.Sha256,
|
|
33
38
|
streamCollector: (_l = config === null || config === void 0 ? void 0 : config.streamCollector) !== null && _l !== void 0 ? _l : fetch_http_handler_1.streamCollector,
|
|
34
39
|
useDualstackEndpoint: (_m = config === null || config === void 0 ? void 0 : config.useDualstackEndpoint) !== null && _m !== void 0 ? _m : (() => Promise.resolve(config_resolver_1.DEFAULT_USE_DUALSTACK_ENDPOINT)),
|
|
@@ -16,14 +16,17 @@ const util_user_agent_node_1 = require("@aws-sdk/util-user-agent-node");
|
|
|
16
16
|
const util_utf8_node_1 = require("@aws-sdk/util-utf8-node");
|
|
17
17
|
const runtimeConfig_shared_1 = require("./runtimeConfig.shared");
|
|
18
18
|
const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
19
|
+
const util_defaults_mode_node_1 = require("@aws-sdk/util-defaults-mode-node");
|
|
19
20
|
const getRuntimeConfig = (config) => {
|
|
20
21
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q;
|
|
21
|
-
|
|
22
|
+
const defaultsMode = util_defaults_mode_node_1.resolveDefaultsModeConfig(config);
|
|
23
|
+
const defaultConfigProvider = () => defaultsMode().then(smithy_client_1.loadConfigsForDefaultMode);
|
|
22
24
|
const clientSharedValues = runtimeConfig_shared_1.getRuntimeConfig(config);
|
|
23
25
|
return {
|
|
24
26
|
...clientSharedValues,
|
|
25
27
|
...config,
|
|
26
28
|
runtime: "node",
|
|
29
|
+
defaultsMode,
|
|
27
30
|
base64Decoder: (_a = config === null || config === void 0 ? void 0 : config.base64Decoder) !== null && _a !== void 0 ? _a : util_base64_node_1.fromBase64,
|
|
28
31
|
base64Encoder: (_b = config === null || config === void 0 ? void 0 : config.base64Encoder) !== null && _b !== void 0 ? _b : util_base64_node_1.toBase64,
|
|
29
32
|
bodyLengthChecker: (_c = config === null || config === void 0 ? void 0 : config.bodyLengthChecker) !== null && _c !== void 0 ? _c : util_body_length_node_1.calculateBodyLength,
|
|
@@ -31,8 +34,11 @@ const getRuntimeConfig = (config) => {
|
|
|
31
34
|
defaultUserAgentProvider: (_e = config === null || config === void 0 ? void 0 : config.defaultUserAgentProvider) !== null && _e !== void 0 ? _e : util_user_agent_node_1.defaultUserAgent({ serviceId: clientSharedValues.serviceId, clientVersion: package_json_1.default.version }),
|
|
32
35
|
maxAttempts: (_f = config === null || config === void 0 ? void 0 : config.maxAttempts) !== null && _f !== void 0 ? _f : node_config_provider_1.loadConfig(middleware_retry_1.NODE_MAX_ATTEMPT_CONFIG_OPTIONS),
|
|
33
36
|
region: (_g = config === null || config === void 0 ? void 0 : config.region) !== null && _g !== void 0 ? _g : node_config_provider_1.loadConfig(config_resolver_1.NODE_REGION_CONFIG_OPTIONS, config_resolver_1.NODE_REGION_CONFIG_FILE_OPTIONS),
|
|
34
|
-
requestHandler: (_h = config === null || config === void 0 ? void 0 : config.requestHandler) !== null && _h !== void 0 ? _h : new node_http_handler_1.NodeHttpHandler(),
|
|
35
|
-
retryMode: (_j = config === null || config === void 0 ? void 0 : config.retryMode) !== null && _j !== void 0 ? _j : node_config_provider_1.loadConfig(
|
|
37
|
+
requestHandler: (_h = config === null || config === void 0 ? void 0 : config.requestHandler) !== null && _h !== void 0 ? _h : new node_http_handler_1.NodeHttpHandler(defaultConfigProvider),
|
|
38
|
+
retryMode: (_j = config === null || config === void 0 ? void 0 : config.retryMode) !== null && _j !== void 0 ? _j : node_config_provider_1.loadConfig({
|
|
39
|
+
...middleware_retry_1.NODE_RETRY_MODE_CONFIG_OPTIONS,
|
|
40
|
+
default: async () => (await defaultConfigProvider()).retryMode || middleware_retry_1.DEFAULT_RETRY_MODE,
|
|
41
|
+
}),
|
|
36
42
|
sha256: (_k = config === null || config === void 0 ? void 0 : config.sha256) !== null && _k !== void 0 ? _k : hash_node_1.Hash.bind(null, "sha256"),
|
|
37
43
|
streamCollector: (_l = config === null || config === void 0 ? void 0 : config.streamCollector) !== null && _l !== void 0 ? _l : node_http_handler_1.streamCollector,
|
|
38
44
|
useDualstackEndpoint: (_m = config === null || config === void 0 ? void 0 : config.useDualstackEndpoint) !== null && _m !== void 0 ? _m : node_config_provider_1.loadConfig(config_resolver_1.NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS),
|
package/dist-es/Kafka.js
CHANGED
|
@@ -2,17 +2,20 @@ import { __extends } from "tslib";
|
|
|
2
2
|
import { BatchAssociateScramSecretCommand, } from "./commands/BatchAssociateScramSecretCommand";
|
|
3
3
|
import { BatchDisassociateScramSecretCommand, } from "./commands/BatchDisassociateScramSecretCommand";
|
|
4
4
|
import { CreateClusterCommand, } from "./commands/CreateClusterCommand";
|
|
5
|
+
import { CreateClusterV2Command, } from "./commands/CreateClusterV2Command";
|
|
5
6
|
import { CreateConfigurationCommand, } from "./commands/CreateConfigurationCommand";
|
|
6
7
|
import { DeleteClusterCommand, } from "./commands/DeleteClusterCommand";
|
|
7
8
|
import { DeleteConfigurationCommand, } from "./commands/DeleteConfigurationCommand";
|
|
8
9
|
import { DescribeClusterCommand, } from "./commands/DescribeClusterCommand";
|
|
9
10
|
import { DescribeClusterOperationCommand, } from "./commands/DescribeClusterOperationCommand";
|
|
11
|
+
import { DescribeClusterV2Command, } from "./commands/DescribeClusterV2Command";
|
|
10
12
|
import { DescribeConfigurationCommand, } from "./commands/DescribeConfigurationCommand";
|
|
11
13
|
import { DescribeConfigurationRevisionCommand, } from "./commands/DescribeConfigurationRevisionCommand";
|
|
12
14
|
import { GetBootstrapBrokersCommand, } from "./commands/GetBootstrapBrokersCommand";
|
|
13
15
|
import { GetCompatibleKafkaVersionsCommand, } from "./commands/GetCompatibleKafkaVersionsCommand";
|
|
14
16
|
import { ListClusterOperationsCommand, } from "./commands/ListClusterOperationsCommand";
|
|
15
17
|
import { ListClustersCommand, } from "./commands/ListClustersCommand";
|
|
18
|
+
import { ListClustersV2Command, } from "./commands/ListClustersV2Command";
|
|
16
19
|
import { ListConfigurationRevisionsCommand, } from "./commands/ListConfigurationRevisionsCommand";
|
|
17
20
|
import { ListConfigurationsCommand, } from "./commands/ListConfigurationsCommand";
|
|
18
21
|
import { ListKafkaVersionsCommand, } from "./commands/ListKafkaVersionsCommand";
|
|
@@ -79,6 +82,20 @@ var Kafka = (function (_super) {
|
|
|
79
82
|
return this.send(command, optionsOrCb);
|
|
80
83
|
}
|
|
81
84
|
};
|
|
85
|
+
Kafka.prototype.createClusterV2 = function (args, optionsOrCb, cb) {
|
|
86
|
+
var command = new CreateClusterV2Command(args);
|
|
87
|
+
if (typeof optionsOrCb === "function") {
|
|
88
|
+
this.send(command, optionsOrCb);
|
|
89
|
+
}
|
|
90
|
+
else if (typeof cb === "function") {
|
|
91
|
+
if (typeof optionsOrCb !== "object")
|
|
92
|
+
throw new Error("Expect http options but get " + typeof optionsOrCb);
|
|
93
|
+
this.send(command, optionsOrCb || {}, cb);
|
|
94
|
+
}
|
|
95
|
+
else {
|
|
96
|
+
return this.send(command, optionsOrCb);
|
|
97
|
+
}
|
|
98
|
+
};
|
|
82
99
|
Kafka.prototype.createConfiguration = function (args, optionsOrCb, cb) {
|
|
83
100
|
var command = new CreateConfigurationCommand(args);
|
|
84
101
|
if (typeof optionsOrCb === "function") {
|
|
@@ -149,6 +166,20 @@ var Kafka = (function (_super) {
|
|
|
149
166
|
return this.send(command, optionsOrCb);
|
|
150
167
|
}
|
|
151
168
|
};
|
|
169
|
+
Kafka.prototype.describeClusterV2 = function (args, optionsOrCb, cb) {
|
|
170
|
+
var command = new DescribeClusterV2Command(args);
|
|
171
|
+
if (typeof optionsOrCb === "function") {
|
|
172
|
+
this.send(command, optionsOrCb);
|
|
173
|
+
}
|
|
174
|
+
else if (typeof cb === "function") {
|
|
175
|
+
if (typeof optionsOrCb !== "object")
|
|
176
|
+
throw new Error("Expect http options but get " + typeof optionsOrCb);
|
|
177
|
+
this.send(command, optionsOrCb || {}, cb);
|
|
178
|
+
}
|
|
179
|
+
else {
|
|
180
|
+
return this.send(command, optionsOrCb);
|
|
181
|
+
}
|
|
182
|
+
};
|
|
152
183
|
Kafka.prototype.describeConfiguration = function (args, optionsOrCb, cb) {
|
|
153
184
|
var command = new DescribeConfigurationCommand(args);
|
|
154
185
|
if (typeof optionsOrCb === "function") {
|
|
@@ -233,6 +264,20 @@ var Kafka = (function (_super) {
|
|
|
233
264
|
return this.send(command, optionsOrCb);
|
|
234
265
|
}
|
|
235
266
|
};
|
|
267
|
+
Kafka.prototype.listClustersV2 = function (args, optionsOrCb, cb) {
|
|
268
|
+
var command = new ListClustersV2Command(args);
|
|
269
|
+
if (typeof optionsOrCb === "function") {
|
|
270
|
+
this.send(command, optionsOrCb);
|
|
271
|
+
}
|
|
272
|
+
else if (typeof cb === "function") {
|
|
273
|
+
if (typeof optionsOrCb !== "object")
|
|
274
|
+
throw new Error("Expect http options but get " + typeof optionsOrCb);
|
|
275
|
+
this.send(command, optionsOrCb || {}, cb);
|
|
276
|
+
}
|
|
277
|
+
else {
|
|
278
|
+
return this.send(command, optionsOrCb);
|
|
279
|
+
}
|
|
280
|
+
};
|
|
236
281
|
Kafka.prototype.listConfigurationRevisions = function (args, optionsOrCb, cb) {
|
|
237
282
|
var command = new ListConfigurationRevisionsCommand(args);
|
|
238
283
|
if (typeof optionsOrCb === "function") {
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import { __extends } from "tslib";
|
|
2
|
+
import { getSerdePlugin } from "@aws-sdk/middleware-serde";
|
|
3
|
+
import { Command as $Command } from "@aws-sdk/smithy-client";
|
|
4
|
+
import { CreateClusterV2Request, CreateClusterV2Response } from "../models/models_0";
|
|
5
|
+
import { deserializeAws_restJson1CreateClusterV2Command, serializeAws_restJson1CreateClusterV2Command, } from "../protocols/Aws_restJson1";
|
|
6
|
+
var CreateClusterV2Command = (function (_super) {
|
|
7
|
+
__extends(CreateClusterV2Command, _super);
|
|
8
|
+
function CreateClusterV2Command(input) {
|
|
9
|
+
var _this = _super.call(this) || this;
|
|
10
|
+
_this.input = input;
|
|
11
|
+
return _this;
|
|
12
|
+
}
|
|
13
|
+
CreateClusterV2Command.prototype.resolveMiddleware = function (clientStack, configuration, options) {
|
|
14
|
+
this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
15
|
+
var stack = clientStack.concat(this.middlewareStack);
|
|
16
|
+
var logger = configuration.logger;
|
|
17
|
+
var clientName = "KafkaClient";
|
|
18
|
+
var commandName = "CreateClusterV2Command";
|
|
19
|
+
var handlerExecutionContext = {
|
|
20
|
+
logger: logger,
|
|
21
|
+
clientName: clientName,
|
|
22
|
+
commandName: commandName,
|
|
23
|
+
inputFilterSensitiveLog: CreateClusterV2Request.filterSensitiveLog,
|
|
24
|
+
outputFilterSensitiveLog: CreateClusterV2Response.filterSensitiveLog,
|
|
25
|
+
};
|
|
26
|
+
var requestHandler = configuration.requestHandler;
|
|
27
|
+
return stack.resolve(function (request) {
|
|
28
|
+
return requestHandler.handle(request.request, options || {});
|
|
29
|
+
}, handlerExecutionContext);
|
|
30
|
+
};
|
|
31
|
+
CreateClusterV2Command.prototype.serialize = function (input, context) {
|
|
32
|
+
return serializeAws_restJson1CreateClusterV2Command(input, context);
|
|
33
|
+
};
|
|
34
|
+
CreateClusterV2Command.prototype.deserialize = function (output, context) {
|
|
35
|
+
return deserializeAws_restJson1CreateClusterV2Command(output, context);
|
|
36
|
+
};
|
|
37
|
+
return CreateClusterV2Command;
|
|
38
|
+
}($Command));
|
|
39
|
+
export { CreateClusterV2Command };
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import { __extends } from "tslib";
|
|
2
|
+
import { getSerdePlugin } from "@aws-sdk/middleware-serde";
|
|
3
|
+
import { Command as $Command } from "@aws-sdk/smithy-client";
|
|
4
|
+
import { DescribeClusterV2Request, DescribeClusterV2Response } from "../models/models_0";
|
|
5
|
+
import { deserializeAws_restJson1DescribeClusterV2Command, serializeAws_restJson1DescribeClusterV2Command, } from "../protocols/Aws_restJson1";
|
|
6
|
+
var DescribeClusterV2Command = (function (_super) {
|
|
7
|
+
__extends(DescribeClusterV2Command, _super);
|
|
8
|
+
function DescribeClusterV2Command(input) {
|
|
9
|
+
var _this = _super.call(this) || this;
|
|
10
|
+
_this.input = input;
|
|
11
|
+
return _this;
|
|
12
|
+
}
|
|
13
|
+
DescribeClusterV2Command.prototype.resolveMiddleware = function (clientStack, configuration, options) {
|
|
14
|
+
this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
15
|
+
var stack = clientStack.concat(this.middlewareStack);
|
|
16
|
+
var logger = configuration.logger;
|
|
17
|
+
var clientName = "KafkaClient";
|
|
18
|
+
var commandName = "DescribeClusterV2Command";
|
|
19
|
+
var handlerExecutionContext = {
|
|
20
|
+
logger: logger,
|
|
21
|
+
clientName: clientName,
|
|
22
|
+
commandName: commandName,
|
|
23
|
+
inputFilterSensitiveLog: DescribeClusterV2Request.filterSensitiveLog,
|
|
24
|
+
outputFilterSensitiveLog: DescribeClusterV2Response.filterSensitiveLog,
|
|
25
|
+
};
|
|
26
|
+
var requestHandler = configuration.requestHandler;
|
|
27
|
+
return stack.resolve(function (request) {
|
|
28
|
+
return requestHandler.handle(request.request, options || {});
|
|
29
|
+
}, handlerExecutionContext);
|
|
30
|
+
};
|
|
31
|
+
DescribeClusterV2Command.prototype.serialize = function (input, context) {
|
|
32
|
+
return serializeAws_restJson1DescribeClusterV2Command(input, context);
|
|
33
|
+
};
|
|
34
|
+
DescribeClusterV2Command.prototype.deserialize = function (output, context) {
|
|
35
|
+
return deserializeAws_restJson1DescribeClusterV2Command(output, context);
|
|
36
|
+
};
|
|
37
|
+
return DescribeClusterV2Command;
|
|
38
|
+
}($Command));
|
|
39
|
+
export { DescribeClusterV2Command };
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import { __extends } from "tslib";
|
|
2
|
+
import { getSerdePlugin } from "@aws-sdk/middleware-serde";
|
|
3
|
+
import { Command as $Command } from "@aws-sdk/smithy-client";
|
|
4
|
+
import { ListClustersV2Request, ListClustersV2Response } from "../models/models_0";
|
|
5
|
+
import { deserializeAws_restJson1ListClustersV2Command, serializeAws_restJson1ListClustersV2Command, } from "../protocols/Aws_restJson1";
|
|
6
|
+
var ListClustersV2Command = (function (_super) {
|
|
7
|
+
__extends(ListClustersV2Command, _super);
|
|
8
|
+
function ListClustersV2Command(input) {
|
|
9
|
+
var _this = _super.call(this) || this;
|
|
10
|
+
_this.input = input;
|
|
11
|
+
return _this;
|
|
12
|
+
}
|
|
13
|
+
ListClustersV2Command.prototype.resolveMiddleware = function (clientStack, configuration, options) {
|
|
14
|
+
this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
15
|
+
var stack = clientStack.concat(this.middlewareStack);
|
|
16
|
+
var logger = configuration.logger;
|
|
17
|
+
var clientName = "KafkaClient";
|
|
18
|
+
var commandName = "ListClustersV2Command";
|
|
19
|
+
var handlerExecutionContext = {
|
|
20
|
+
logger: logger,
|
|
21
|
+
clientName: clientName,
|
|
22
|
+
commandName: commandName,
|
|
23
|
+
inputFilterSensitiveLog: ListClustersV2Request.filterSensitiveLog,
|
|
24
|
+
outputFilterSensitiveLog: ListClustersV2Response.filterSensitiveLog,
|
|
25
|
+
};
|
|
26
|
+
var requestHandler = configuration.requestHandler;
|
|
27
|
+
return stack.resolve(function (request) {
|
|
28
|
+
return requestHandler.handle(request.request, options || {});
|
|
29
|
+
}, handlerExecutionContext);
|
|
30
|
+
};
|
|
31
|
+
ListClustersV2Command.prototype.serialize = function (input, context) {
|
|
32
|
+
return serializeAws_restJson1ListClustersV2Command(input, context);
|
|
33
|
+
};
|
|
34
|
+
ListClustersV2Command.prototype.deserialize = function (output, context) {
|
|
35
|
+
return deserializeAws_restJson1ListClustersV2Command(output, context);
|
|
36
|
+
};
|
|
37
|
+
return ListClustersV2Command;
|
|
38
|
+
}($Command));
|
|
39
|
+
export { ListClustersV2Command };
|
|
@@ -1,17 +1,20 @@
|
|
|
1
1
|
export * from "./BatchAssociateScramSecretCommand";
|
|
2
2
|
export * from "./BatchDisassociateScramSecretCommand";
|
|
3
3
|
export * from "./CreateClusterCommand";
|
|
4
|
+
export * from "./CreateClusterV2Command";
|
|
4
5
|
export * from "./CreateConfigurationCommand";
|
|
5
6
|
export * from "./DeleteClusterCommand";
|
|
6
7
|
export * from "./DeleteConfigurationCommand";
|
|
7
8
|
export * from "./DescribeClusterCommand";
|
|
8
9
|
export * from "./DescribeClusterOperationCommand";
|
|
10
|
+
export * from "./DescribeClusterV2Command";
|
|
9
11
|
export * from "./DescribeConfigurationCommand";
|
|
10
12
|
export * from "./DescribeConfigurationRevisionCommand";
|
|
11
13
|
export * from "./GetBootstrapBrokersCommand";
|
|
12
14
|
export * from "./GetCompatibleKafkaVersionsCommand";
|
|
13
15
|
export * from "./ListClusterOperationsCommand";
|
|
14
16
|
export * from "./ListClustersCommand";
|
|
17
|
+
export * from "./ListClustersV2Command";
|
|
15
18
|
export * from "./ListConfigurationRevisionsCommand";
|
|
16
19
|
export * from "./ListConfigurationsCommand";
|
|
17
20
|
export * from "./ListKafkaVersionsCommand";
|
package/dist-es/endpoints.js
CHANGED
|
@@ -3,6 +3,11 @@ export var BrokerEBSVolumeInfo;
|
|
|
3
3
|
(function (BrokerEBSVolumeInfo) {
|
|
4
4
|
BrokerEBSVolumeInfo.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
5
5
|
})(BrokerEBSVolumeInfo || (BrokerEBSVolumeInfo = {}));
|
|
6
|
+
export var ClusterType;
|
|
7
|
+
(function (ClusterType) {
|
|
8
|
+
ClusterType["PROVISIONED"] = "PROVISIONED";
|
|
9
|
+
ClusterType["SERVERLESS"] = "SERVERLESS";
|
|
10
|
+
})(ClusterType || (ClusterType = {}));
|
|
6
11
|
export var BrokerAZDistribution;
|
|
7
12
|
(function (BrokerAZDistribution) {
|
|
8
13
|
BrokerAZDistribution["DEFAULT"] = "DEFAULT";
|
|
@@ -100,6 +105,61 @@ export var LoggingInfo;
|
|
|
100
105
|
(function (LoggingInfo) {
|
|
101
106
|
LoggingInfo.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
102
107
|
})(LoggingInfo || (LoggingInfo = {}));
|
|
108
|
+
export var JmxExporterInfo;
|
|
109
|
+
(function (JmxExporterInfo) {
|
|
110
|
+
JmxExporterInfo.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
111
|
+
})(JmxExporterInfo || (JmxExporterInfo = {}));
|
|
112
|
+
export var NodeExporterInfo;
|
|
113
|
+
(function (NodeExporterInfo) {
|
|
114
|
+
NodeExporterInfo.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
115
|
+
})(NodeExporterInfo || (NodeExporterInfo = {}));
|
|
116
|
+
export var PrometheusInfo;
|
|
117
|
+
(function (PrometheusInfo) {
|
|
118
|
+
PrometheusInfo.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
119
|
+
})(PrometheusInfo || (PrometheusInfo = {}));
|
|
120
|
+
export var OpenMonitoringInfo;
|
|
121
|
+
(function (OpenMonitoringInfo) {
|
|
122
|
+
OpenMonitoringInfo.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
123
|
+
})(OpenMonitoringInfo || (OpenMonitoringInfo = {}));
|
|
124
|
+
export var Provisioned;
|
|
125
|
+
(function (Provisioned) {
|
|
126
|
+
Provisioned.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
127
|
+
})(Provisioned || (Provisioned = {}));
|
|
128
|
+
export var ServerlessSasl;
|
|
129
|
+
(function (ServerlessSasl) {
|
|
130
|
+
ServerlessSasl.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
131
|
+
})(ServerlessSasl || (ServerlessSasl = {}));
|
|
132
|
+
export var ServerlessClientAuthentication;
|
|
133
|
+
(function (ServerlessClientAuthentication) {
|
|
134
|
+
ServerlessClientAuthentication.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
135
|
+
})(ServerlessClientAuthentication || (ServerlessClientAuthentication = {}));
|
|
136
|
+
export var VpcConfig;
|
|
137
|
+
(function (VpcConfig) {
|
|
138
|
+
VpcConfig.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
139
|
+
})(VpcConfig || (VpcConfig = {}));
|
|
140
|
+
export var Serverless;
|
|
141
|
+
(function (Serverless) {
|
|
142
|
+
Serverless.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
143
|
+
})(Serverless || (Serverless = {}));
|
|
144
|
+
export var ClusterState;
|
|
145
|
+
(function (ClusterState) {
|
|
146
|
+
ClusterState["ACTIVE"] = "ACTIVE";
|
|
147
|
+
ClusterState["CREATING"] = "CREATING";
|
|
148
|
+
ClusterState["DELETING"] = "DELETING";
|
|
149
|
+
ClusterState["FAILED"] = "FAILED";
|
|
150
|
+
ClusterState["HEALING"] = "HEALING";
|
|
151
|
+
ClusterState["MAINTENANCE"] = "MAINTENANCE";
|
|
152
|
+
ClusterState["REBOOTING_BROKER"] = "REBOOTING_BROKER";
|
|
153
|
+
ClusterState["UPDATING"] = "UPDATING";
|
|
154
|
+
})(ClusterState || (ClusterState = {}));
|
|
155
|
+
export var StateInfo;
|
|
156
|
+
(function (StateInfo) {
|
|
157
|
+
StateInfo.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
158
|
+
})(StateInfo || (StateInfo = {}));
|
|
159
|
+
export var Cluster;
|
|
160
|
+
(function (Cluster) {
|
|
161
|
+
Cluster.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
162
|
+
})(Cluster || (Cluster = {}));
|
|
103
163
|
export var JmxExporter;
|
|
104
164
|
(function (JmxExporter) {
|
|
105
165
|
JmxExporter.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
@@ -116,21 +176,6 @@ export var OpenMonitoring;
|
|
|
116
176
|
(function (OpenMonitoring) {
|
|
117
177
|
OpenMonitoring.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
118
178
|
})(OpenMonitoring || (OpenMonitoring = {}));
|
|
119
|
-
export var ClusterState;
|
|
120
|
-
(function (ClusterState) {
|
|
121
|
-
ClusterState["ACTIVE"] = "ACTIVE";
|
|
122
|
-
ClusterState["CREATING"] = "CREATING";
|
|
123
|
-
ClusterState["DELETING"] = "DELETING";
|
|
124
|
-
ClusterState["FAILED"] = "FAILED";
|
|
125
|
-
ClusterState["HEALING"] = "HEALING";
|
|
126
|
-
ClusterState["MAINTENANCE"] = "MAINTENANCE";
|
|
127
|
-
ClusterState["REBOOTING_BROKER"] = "REBOOTING_BROKER";
|
|
128
|
-
ClusterState["UPDATING"] = "UPDATING";
|
|
129
|
-
})(ClusterState || (ClusterState = {}));
|
|
130
|
-
export var StateInfo;
|
|
131
|
-
(function (StateInfo) {
|
|
132
|
-
StateInfo.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
133
|
-
})(StateInfo || (StateInfo = {}));
|
|
134
179
|
export var ClusterInfo;
|
|
135
180
|
(function (ClusterInfo) {
|
|
136
181
|
ClusterInfo.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
@@ -206,10 +251,6 @@ export var UnprocessedScramSecret;
|
|
|
206
251
|
(function (UnprocessedScramSecret) {
|
|
207
252
|
UnprocessedScramSecret.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
208
253
|
})(UnprocessedScramSecret || (UnprocessedScramSecret = {}));
|
|
209
|
-
export var BadRequestException;
|
|
210
|
-
(function (BadRequestException) {
|
|
211
|
-
BadRequestException.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
212
|
-
})(BadRequestException || (BadRequestException = {}));
|
|
213
254
|
export var BatchAssociateScramSecretRequest;
|
|
214
255
|
(function (BatchAssociateScramSecretRequest) {
|
|
215
256
|
BatchAssociateScramSecretRequest.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
@@ -218,30 +259,6 @@ export var BatchAssociateScramSecretResponse;
|
|
|
218
259
|
(function (BatchAssociateScramSecretResponse) {
|
|
219
260
|
BatchAssociateScramSecretResponse.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
220
261
|
})(BatchAssociateScramSecretResponse || (BatchAssociateScramSecretResponse = {}));
|
|
221
|
-
export var ForbiddenException;
|
|
222
|
-
(function (ForbiddenException) {
|
|
223
|
-
ForbiddenException.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
224
|
-
})(ForbiddenException || (ForbiddenException = {}));
|
|
225
|
-
export var InternalServerErrorException;
|
|
226
|
-
(function (InternalServerErrorException) {
|
|
227
|
-
InternalServerErrorException.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
228
|
-
})(InternalServerErrorException || (InternalServerErrorException = {}));
|
|
229
|
-
export var NotFoundException;
|
|
230
|
-
(function (NotFoundException) {
|
|
231
|
-
NotFoundException.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
232
|
-
})(NotFoundException || (NotFoundException = {}));
|
|
233
|
-
export var ServiceUnavailableException;
|
|
234
|
-
(function (ServiceUnavailableException) {
|
|
235
|
-
ServiceUnavailableException.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
236
|
-
})(ServiceUnavailableException || (ServiceUnavailableException = {}));
|
|
237
|
-
export var TooManyRequestsException;
|
|
238
|
-
(function (TooManyRequestsException) {
|
|
239
|
-
TooManyRequestsException.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
240
|
-
})(TooManyRequestsException || (TooManyRequestsException = {}));
|
|
241
|
-
export var UnauthorizedException;
|
|
242
|
-
(function (UnauthorizedException) {
|
|
243
|
-
UnauthorizedException.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
244
|
-
})(UnauthorizedException || (UnauthorizedException = {}));
|
|
245
262
|
export var BatchDisassociateScramSecretRequest;
|
|
246
263
|
(function (BatchDisassociateScramSecretRequest) {
|
|
247
264
|
BatchDisassociateScramSecretRequest.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
@@ -250,26 +267,6 @@ export var BatchDisassociateScramSecretResponse;
|
|
|
250
267
|
(function (BatchDisassociateScramSecretResponse) {
|
|
251
268
|
BatchDisassociateScramSecretResponse.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
252
269
|
})(BatchDisassociateScramSecretResponse || (BatchDisassociateScramSecretResponse = {}));
|
|
253
|
-
export var ConflictException;
|
|
254
|
-
(function (ConflictException) {
|
|
255
|
-
ConflictException.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
256
|
-
})(ConflictException || (ConflictException = {}));
|
|
257
|
-
export var JmxExporterInfo;
|
|
258
|
-
(function (JmxExporterInfo) {
|
|
259
|
-
JmxExporterInfo.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
260
|
-
})(JmxExporterInfo || (JmxExporterInfo = {}));
|
|
261
|
-
export var NodeExporterInfo;
|
|
262
|
-
(function (NodeExporterInfo) {
|
|
263
|
-
NodeExporterInfo.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
264
|
-
})(NodeExporterInfo || (NodeExporterInfo = {}));
|
|
265
|
-
export var PrometheusInfo;
|
|
266
|
-
(function (PrometheusInfo) {
|
|
267
|
-
PrometheusInfo.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
268
|
-
})(PrometheusInfo || (PrometheusInfo = {}));
|
|
269
|
-
export var OpenMonitoringInfo;
|
|
270
|
-
(function (OpenMonitoringInfo) {
|
|
271
|
-
OpenMonitoringInfo.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
272
|
-
})(OpenMonitoringInfo || (OpenMonitoringInfo = {}));
|
|
273
270
|
export var CreateClusterRequest;
|
|
274
271
|
(function (CreateClusterRequest) {
|
|
275
272
|
CreateClusterRequest.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
@@ -278,6 +275,22 @@ export var CreateClusterResponse;
|
|
|
278
275
|
(function (CreateClusterResponse) {
|
|
279
276
|
CreateClusterResponse.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
280
277
|
})(CreateClusterResponse || (CreateClusterResponse = {}));
|
|
278
|
+
export var ProvisionedRequest;
|
|
279
|
+
(function (ProvisionedRequest) {
|
|
280
|
+
ProvisionedRequest.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
281
|
+
})(ProvisionedRequest || (ProvisionedRequest = {}));
|
|
282
|
+
export var ServerlessRequest;
|
|
283
|
+
(function (ServerlessRequest) {
|
|
284
|
+
ServerlessRequest.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
285
|
+
})(ServerlessRequest || (ServerlessRequest = {}));
|
|
286
|
+
export var CreateClusterV2Request;
|
|
287
|
+
(function (CreateClusterV2Request) {
|
|
288
|
+
CreateClusterV2Request.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
289
|
+
})(CreateClusterV2Request || (CreateClusterV2Request = {}));
|
|
290
|
+
export var CreateClusterV2Response;
|
|
291
|
+
(function (CreateClusterV2Response) {
|
|
292
|
+
CreateClusterV2Response.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
293
|
+
})(CreateClusterV2Response || (CreateClusterV2Response = {}));
|
|
281
294
|
export var CreateConfigurationRequest;
|
|
282
295
|
(function (CreateConfigurationRequest) {
|
|
283
296
|
CreateConfigurationRequest.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
@@ -318,6 +331,14 @@ export var DescribeClusterOperationResponse;
|
|
|
318
331
|
(function (DescribeClusterOperationResponse) {
|
|
319
332
|
DescribeClusterOperationResponse.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
320
333
|
})(DescribeClusterOperationResponse || (DescribeClusterOperationResponse = {}));
|
|
334
|
+
export var DescribeClusterV2Request;
|
|
335
|
+
(function (DescribeClusterV2Request) {
|
|
336
|
+
DescribeClusterV2Request.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
337
|
+
})(DescribeClusterV2Request || (DescribeClusterV2Request = {}));
|
|
338
|
+
export var DescribeClusterV2Response;
|
|
339
|
+
(function (DescribeClusterV2Response) {
|
|
340
|
+
DescribeClusterV2Response.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
341
|
+
})(DescribeClusterV2Response || (DescribeClusterV2Response = {}));
|
|
321
342
|
export var DescribeConfigurationRequest;
|
|
322
343
|
(function (DescribeConfigurationRequest) {
|
|
323
344
|
DescribeConfigurationRequest.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
@@ -366,6 +387,14 @@ export var ListClustersResponse;
|
|
|
366
387
|
(function (ListClustersResponse) {
|
|
367
388
|
ListClustersResponse.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
368
389
|
})(ListClustersResponse || (ListClustersResponse = {}));
|
|
390
|
+
export var ListClustersV2Request;
|
|
391
|
+
(function (ListClustersV2Request) {
|
|
392
|
+
ListClustersV2Request.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
393
|
+
})(ListClustersV2Request || (ListClustersV2Request = {}));
|
|
394
|
+
export var ListClustersV2Response;
|
|
395
|
+
(function (ListClustersV2Response) {
|
|
396
|
+
ListClustersV2Response.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
397
|
+
})(ListClustersV2Response || (ListClustersV2Response = {}));
|
|
369
398
|
export var ListConfigurationRevisionsRequest;
|
|
370
399
|
(function (ListConfigurationRevisionsRequest) {
|
|
371
400
|
ListConfigurationRevisionsRequest.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
@@ -0,0 +1,74 @@
|
|
|
1
|
+
import { __asyncGenerator, __await, __awaiter, __generator, __read, __spreadArray } from "tslib";
|
|
2
|
+
import { ListClustersV2Command, } from "../commands/ListClustersV2Command";
|
|
3
|
+
import { Kafka } from "../Kafka";
|
|
4
|
+
import { KafkaClient } from "../KafkaClient";
|
|
5
|
+
var makePagedClientRequest = function (client, input) {
|
|
6
|
+
var args = [];
|
|
7
|
+
for (var _i = 2; _i < arguments.length; _i++) {
|
|
8
|
+
args[_i - 2] = arguments[_i];
|
|
9
|
+
}
|
|
10
|
+
return __awaiter(void 0, void 0, void 0, function () {
|
|
11
|
+
return __generator(this, function (_a) {
|
|
12
|
+
switch (_a.label) {
|
|
13
|
+
case 0: return [4, client.send.apply(client, __spreadArray([new ListClustersV2Command(input)], __read(args)))];
|
|
14
|
+
case 1: return [2, _a.sent()];
|
|
15
|
+
}
|
|
16
|
+
});
|
|
17
|
+
});
|
|
18
|
+
};
|
|
19
|
+
var makePagedRequest = function (client, input) {
|
|
20
|
+
var args = [];
|
|
21
|
+
for (var _i = 2; _i < arguments.length; _i++) {
|
|
22
|
+
args[_i - 2] = arguments[_i];
|
|
23
|
+
}
|
|
24
|
+
return __awaiter(void 0, void 0, void 0, function () {
|
|
25
|
+
return __generator(this, function (_a) {
|
|
26
|
+
switch (_a.label) {
|
|
27
|
+
case 0: return [4, client.listClustersV2.apply(client, __spreadArray([input], __read(args)))];
|
|
28
|
+
case 1: return [2, _a.sent()];
|
|
29
|
+
}
|
|
30
|
+
});
|
|
31
|
+
});
|
|
32
|
+
};
|
|
33
|
+
export function paginateListClustersV2(config, input) {
|
|
34
|
+
var additionalArguments = [];
|
|
35
|
+
for (var _i = 2; _i < arguments.length; _i++) {
|
|
36
|
+
additionalArguments[_i - 2] = arguments[_i];
|
|
37
|
+
}
|
|
38
|
+
return __asyncGenerator(this, arguments, function paginateListClustersV2_1() {
|
|
39
|
+
var token, hasNext, page;
|
|
40
|
+
return __generator(this, function (_a) {
|
|
41
|
+
switch (_a.label) {
|
|
42
|
+
case 0:
|
|
43
|
+
token = config.startingToken || undefined;
|
|
44
|
+
hasNext = true;
|
|
45
|
+
_a.label = 1;
|
|
46
|
+
case 1:
|
|
47
|
+
if (!hasNext) return [3, 9];
|
|
48
|
+
input.NextToken = token;
|
|
49
|
+
input["MaxResults"] = config.pageSize;
|
|
50
|
+
if (!(config.client instanceof Kafka)) return [3, 3];
|
|
51
|
+
return [4, __await(makePagedRequest.apply(void 0, __spreadArray([config.client, input], __read(additionalArguments))))];
|
|
52
|
+
case 2:
|
|
53
|
+
page = _a.sent();
|
|
54
|
+
return [3, 6];
|
|
55
|
+
case 3:
|
|
56
|
+
if (!(config.client instanceof KafkaClient)) return [3, 5];
|
|
57
|
+
return [4, __await(makePagedClientRequest.apply(void 0, __spreadArray([config.client, input], __read(additionalArguments))))];
|
|
58
|
+
case 4:
|
|
59
|
+
page = _a.sent();
|
|
60
|
+
return [3, 6];
|
|
61
|
+
case 5: throw new Error("Invalid client, expected Kafka | KafkaClient");
|
|
62
|
+
case 6: return [4, __await(page)];
|
|
63
|
+
case 7: return [4, _a.sent()];
|
|
64
|
+
case 8:
|
|
65
|
+
_a.sent();
|
|
66
|
+
token = page.NextToken;
|
|
67
|
+
hasNext = !!token;
|
|
68
|
+
return [3, 1];
|
|
69
|
+
case 9: return [4, __await(undefined)];
|
|
70
|
+
case 10: return [2, _a.sent()];
|
|
71
|
+
}
|
|
72
|
+
});
|
|
73
|
+
});
|
|
74
|
+
}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
export * from "./Interfaces";
|
|
2
2
|
export * from "./ListClusterOperationsPaginator";
|
|
3
3
|
export * from "./ListClustersPaginator";
|
|
4
|
+
export * from "./ListClustersV2Paginator";
|
|
4
5
|
export * from "./ListConfigurationRevisionsPaginator";
|
|
5
6
|
export * from "./ListConfigurationsPaginator";
|
|
6
7
|
export * from "./ListKafkaVersionsPaginator";
|