@aws-sdk/client-kafka 3.476.0 → 3.478.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/dist-cjs/pagination/ListClientVpcConnectionsPaginator.js +2 -24
- package/dist-cjs/pagination/ListClusterOperationsPaginator.js +2 -24
- package/dist-cjs/pagination/ListClusterOperationsV2Paginator.js +2 -24
- package/dist-cjs/pagination/ListClustersPaginator.js +2 -24
- package/dist-cjs/pagination/ListClustersV2Paginator.js +2 -24
- package/dist-cjs/pagination/ListConfigurationRevisionsPaginator.js +2 -24
- package/dist-cjs/pagination/ListConfigurationsPaginator.js +2 -24
- package/dist-cjs/pagination/ListKafkaVersionsPaginator.js +2 -24
- package/dist-cjs/pagination/ListNodesPaginator.js +2 -24
- package/dist-cjs/pagination/ListReplicatorsPaginator.js +2 -24
- package/dist-cjs/pagination/ListScramSecretsPaginator.js +2 -24
- package/dist-cjs/pagination/ListVpcConnectionsPaginator.js +2 -24
- package/dist-cjs/protocols/Aws_restJson1.js +299 -670
- package/dist-es/pagination/ListClientVpcConnectionsPaginator.js +2 -23
- package/dist-es/pagination/ListClusterOperationsPaginator.js +2 -23
- package/dist-es/pagination/ListClusterOperationsV2Paginator.js +2 -23
- package/dist-es/pagination/ListClustersPaginator.js +2 -23
- package/dist-es/pagination/ListClustersV2Paginator.js +2 -23
- package/dist-es/pagination/ListConfigurationRevisionsPaginator.js +2 -23
- package/dist-es/pagination/ListConfigurationsPaginator.js +2 -23
- package/dist-es/pagination/ListKafkaVersionsPaginator.js +2 -23
- package/dist-es/pagination/ListNodesPaginator.js +2 -23
- package/dist-es/pagination/ListReplicatorsPaginator.js +2 -23
- package/dist-es/pagination/ListScramSecretsPaginator.js +2 -23
- package/dist-es/pagination/ListVpcConnectionsPaginator.js +2 -23
- package/dist-es/protocols/Aws_restJson1.js +300 -671
- package/dist-types/pagination/ListClientVpcConnectionsPaginator.d.ts +1 -1
- package/dist-types/pagination/ListClusterOperationsPaginator.d.ts +1 -1
- package/dist-types/pagination/ListClusterOperationsV2Paginator.d.ts +1 -1
- package/dist-types/pagination/ListClustersPaginator.d.ts +1 -1
- package/dist-types/pagination/ListClustersV2Paginator.d.ts +1 -1
- package/dist-types/pagination/ListConfigurationRevisionsPaginator.d.ts +1 -1
- package/dist-types/pagination/ListConfigurationsPaginator.d.ts +1 -1
- package/dist-types/pagination/ListKafkaVersionsPaginator.d.ts +1 -1
- package/dist-types/pagination/ListNodesPaginator.d.ts +1 -1
- package/dist-types/pagination/ListReplicatorsPaginator.d.ts +1 -1
- package/dist-types/pagination/ListScramSecretsPaginator.d.ts +1 -1
- package/dist-types/pagination/ListVpcConnectionsPaginator.d.ts +1 -1
- package/dist-types/ts3.4/pagination/ListClientVpcConnectionsPaginator.d.ts +3 -3
- package/dist-types/ts3.4/pagination/ListClusterOperationsPaginator.d.ts +3 -3
- package/dist-types/ts3.4/pagination/ListClusterOperationsV2Paginator.d.ts +3 -3
- package/dist-types/ts3.4/pagination/ListClustersPaginator.d.ts +3 -3
- package/dist-types/ts3.4/pagination/ListClustersV2Paginator.d.ts +3 -3
- package/dist-types/ts3.4/pagination/ListConfigurationRevisionsPaginator.d.ts +3 -3
- package/dist-types/ts3.4/pagination/ListConfigurationsPaginator.d.ts +3 -3
- package/dist-types/ts3.4/pagination/ListKafkaVersionsPaginator.d.ts +3 -3
- package/dist-types/ts3.4/pagination/ListNodesPaginator.d.ts +3 -3
- package/dist-types/ts3.4/pagination/ListReplicatorsPaginator.d.ts +3 -3
- package/dist-types/ts3.4/pagination/ListScramSecretsPaginator.d.ts +3 -3
- package/dist-types/ts3.4/pagination/ListVpcConnectionsPaginator.d.ts +3 -3
- package/package.json +7 -6
|
@@ -1,29 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.paginateListClientVpcConnections = void 0;
|
|
4
|
+
const core_1 = require("@smithy/core");
|
|
4
5
|
const ListClientVpcConnectionsCommand_1 = require("../commands/ListClientVpcConnectionsCommand");
|
|
5
6
|
const KafkaClient_1 = require("../KafkaClient");
|
|
6
|
-
|
|
7
|
-
return await client.send(new ListClientVpcConnectionsCommand_1.ListClientVpcConnectionsCommand(input), ...args);
|
|
8
|
-
};
|
|
9
|
-
async function* paginateListClientVpcConnections(config, input, ...additionalArguments) {
|
|
10
|
-
let token = config.startingToken || undefined;
|
|
11
|
-
let hasNext = true;
|
|
12
|
-
let page;
|
|
13
|
-
while (hasNext) {
|
|
14
|
-
input.NextToken = token;
|
|
15
|
-
input["MaxResults"] = config.pageSize;
|
|
16
|
-
if (config.client instanceof KafkaClient_1.KafkaClient) {
|
|
17
|
-
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
18
|
-
}
|
|
19
|
-
else {
|
|
20
|
-
throw new Error("Invalid client, expected Kafka | KafkaClient");
|
|
21
|
-
}
|
|
22
|
-
yield page;
|
|
23
|
-
const prevToken = token;
|
|
24
|
-
token = page.NextToken;
|
|
25
|
-
hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
|
|
26
|
-
}
|
|
27
|
-
return undefined;
|
|
28
|
-
}
|
|
29
|
-
exports.paginateListClientVpcConnections = paginateListClientVpcConnections;
|
|
7
|
+
exports.paginateListClientVpcConnections = (0, core_1.createPaginator)(KafkaClient_1.KafkaClient, ListClientVpcConnectionsCommand_1.ListClientVpcConnectionsCommand, "NextToken", "NextToken", "MaxResults");
|
|
@@ -1,29 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.paginateListClusterOperations = void 0;
|
|
4
|
+
const core_1 = require("@smithy/core");
|
|
4
5
|
const ListClusterOperationsCommand_1 = require("../commands/ListClusterOperationsCommand");
|
|
5
6
|
const KafkaClient_1 = require("../KafkaClient");
|
|
6
|
-
|
|
7
|
-
return await client.send(new ListClusterOperationsCommand_1.ListClusterOperationsCommand(input), ...args);
|
|
8
|
-
};
|
|
9
|
-
async function* paginateListClusterOperations(config, input, ...additionalArguments) {
|
|
10
|
-
let token = config.startingToken || undefined;
|
|
11
|
-
let hasNext = true;
|
|
12
|
-
let page;
|
|
13
|
-
while (hasNext) {
|
|
14
|
-
input.NextToken = token;
|
|
15
|
-
input["MaxResults"] = config.pageSize;
|
|
16
|
-
if (config.client instanceof KafkaClient_1.KafkaClient) {
|
|
17
|
-
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
18
|
-
}
|
|
19
|
-
else {
|
|
20
|
-
throw new Error("Invalid client, expected Kafka | KafkaClient");
|
|
21
|
-
}
|
|
22
|
-
yield page;
|
|
23
|
-
const prevToken = token;
|
|
24
|
-
token = page.NextToken;
|
|
25
|
-
hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
|
|
26
|
-
}
|
|
27
|
-
return undefined;
|
|
28
|
-
}
|
|
29
|
-
exports.paginateListClusterOperations = paginateListClusterOperations;
|
|
7
|
+
exports.paginateListClusterOperations = (0, core_1.createPaginator)(KafkaClient_1.KafkaClient, ListClusterOperationsCommand_1.ListClusterOperationsCommand, "NextToken", "NextToken", "MaxResults");
|
|
@@ -1,29 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.paginateListClusterOperationsV2 = void 0;
|
|
4
|
+
const core_1 = require("@smithy/core");
|
|
4
5
|
const ListClusterOperationsV2Command_1 = require("../commands/ListClusterOperationsV2Command");
|
|
5
6
|
const KafkaClient_1 = require("../KafkaClient");
|
|
6
|
-
|
|
7
|
-
return await client.send(new ListClusterOperationsV2Command_1.ListClusterOperationsV2Command(input), ...args);
|
|
8
|
-
};
|
|
9
|
-
async function* paginateListClusterOperationsV2(config, input, ...additionalArguments) {
|
|
10
|
-
let token = config.startingToken || undefined;
|
|
11
|
-
let hasNext = true;
|
|
12
|
-
let page;
|
|
13
|
-
while (hasNext) {
|
|
14
|
-
input.NextToken = token;
|
|
15
|
-
input["MaxResults"] = config.pageSize;
|
|
16
|
-
if (config.client instanceof KafkaClient_1.KafkaClient) {
|
|
17
|
-
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
18
|
-
}
|
|
19
|
-
else {
|
|
20
|
-
throw new Error("Invalid client, expected Kafka | KafkaClient");
|
|
21
|
-
}
|
|
22
|
-
yield page;
|
|
23
|
-
const prevToken = token;
|
|
24
|
-
token = page.NextToken;
|
|
25
|
-
hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
|
|
26
|
-
}
|
|
27
|
-
return undefined;
|
|
28
|
-
}
|
|
29
|
-
exports.paginateListClusterOperationsV2 = paginateListClusterOperationsV2;
|
|
7
|
+
exports.paginateListClusterOperationsV2 = (0, core_1.createPaginator)(KafkaClient_1.KafkaClient, ListClusterOperationsV2Command_1.ListClusterOperationsV2Command, "NextToken", "NextToken", "MaxResults");
|
|
@@ -1,29 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.paginateListClusters = void 0;
|
|
4
|
+
const core_1 = require("@smithy/core");
|
|
4
5
|
const ListClustersCommand_1 = require("../commands/ListClustersCommand");
|
|
5
6
|
const KafkaClient_1 = require("../KafkaClient");
|
|
6
|
-
|
|
7
|
-
return await client.send(new ListClustersCommand_1.ListClustersCommand(input), ...args);
|
|
8
|
-
};
|
|
9
|
-
async function* paginateListClusters(config, input, ...additionalArguments) {
|
|
10
|
-
let token = config.startingToken || undefined;
|
|
11
|
-
let hasNext = true;
|
|
12
|
-
let page;
|
|
13
|
-
while (hasNext) {
|
|
14
|
-
input.NextToken = token;
|
|
15
|
-
input["MaxResults"] = config.pageSize;
|
|
16
|
-
if (config.client instanceof KafkaClient_1.KafkaClient) {
|
|
17
|
-
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
18
|
-
}
|
|
19
|
-
else {
|
|
20
|
-
throw new Error("Invalid client, expected Kafka | KafkaClient");
|
|
21
|
-
}
|
|
22
|
-
yield page;
|
|
23
|
-
const prevToken = token;
|
|
24
|
-
token = page.NextToken;
|
|
25
|
-
hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
|
|
26
|
-
}
|
|
27
|
-
return undefined;
|
|
28
|
-
}
|
|
29
|
-
exports.paginateListClusters = paginateListClusters;
|
|
7
|
+
exports.paginateListClusters = (0, core_1.createPaginator)(KafkaClient_1.KafkaClient, ListClustersCommand_1.ListClustersCommand, "NextToken", "NextToken", "MaxResults");
|
|
@@ -1,29 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.paginateListClustersV2 = void 0;
|
|
4
|
+
const core_1 = require("@smithy/core");
|
|
4
5
|
const ListClustersV2Command_1 = require("../commands/ListClustersV2Command");
|
|
5
6
|
const KafkaClient_1 = require("../KafkaClient");
|
|
6
|
-
|
|
7
|
-
return await client.send(new ListClustersV2Command_1.ListClustersV2Command(input), ...args);
|
|
8
|
-
};
|
|
9
|
-
async function* paginateListClustersV2(config, input, ...additionalArguments) {
|
|
10
|
-
let token = config.startingToken || undefined;
|
|
11
|
-
let hasNext = true;
|
|
12
|
-
let page;
|
|
13
|
-
while (hasNext) {
|
|
14
|
-
input.NextToken = token;
|
|
15
|
-
input["MaxResults"] = config.pageSize;
|
|
16
|
-
if (config.client instanceof KafkaClient_1.KafkaClient) {
|
|
17
|
-
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
18
|
-
}
|
|
19
|
-
else {
|
|
20
|
-
throw new Error("Invalid client, expected Kafka | KafkaClient");
|
|
21
|
-
}
|
|
22
|
-
yield page;
|
|
23
|
-
const prevToken = token;
|
|
24
|
-
token = page.NextToken;
|
|
25
|
-
hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
|
|
26
|
-
}
|
|
27
|
-
return undefined;
|
|
28
|
-
}
|
|
29
|
-
exports.paginateListClustersV2 = paginateListClustersV2;
|
|
7
|
+
exports.paginateListClustersV2 = (0, core_1.createPaginator)(KafkaClient_1.KafkaClient, ListClustersV2Command_1.ListClustersV2Command, "NextToken", "NextToken", "MaxResults");
|
|
@@ -1,29 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.paginateListConfigurationRevisions = void 0;
|
|
4
|
+
const core_1 = require("@smithy/core");
|
|
4
5
|
const ListConfigurationRevisionsCommand_1 = require("../commands/ListConfigurationRevisionsCommand");
|
|
5
6
|
const KafkaClient_1 = require("../KafkaClient");
|
|
6
|
-
|
|
7
|
-
return await client.send(new ListConfigurationRevisionsCommand_1.ListConfigurationRevisionsCommand(input), ...args);
|
|
8
|
-
};
|
|
9
|
-
async function* paginateListConfigurationRevisions(config, input, ...additionalArguments) {
|
|
10
|
-
let token = config.startingToken || undefined;
|
|
11
|
-
let hasNext = true;
|
|
12
|
-
let page;
|
|
13
|
-
while (hasNext) {
|
|
14
|
-
input.NextToken = token;
|
|
15
|
-
input["MaxResults"] = config.pageSize;
|
|
16
|
-
if (config.client instanceof KafkaClient_1.KafkaClient) {
|
|
17
|
-
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
18
|
-
}
|
|
19
|
-
else {
|
|
20
|
-
throw new Error("Invalid client, expected Kafka | KafkaClient");
|
|
21
|
-
}
|
|
22
|
-
yield page;
|
|
23
|
-
const prevToken = token;
|
|
24
|
-
token = page.NextToken;
|
|
25
|
-
hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
|
|
26
|
-
}
|
|
27
|
-
return undefined;
|
|
28
|
-
}
|
|
29
|
-
exports.paginateListConfigurationRevisions = paginateListConfigurationRevisions;
|
|
7
|
+
exports.paginateListConfigurationRevisions = (0, core_1.createPaginator)(KafkaClient_1.KafkaClient, ListConfigurationRevisionsCommand_1.ListConfigurationRevisionsCommand, "NextToken", "NextToken", "MaxResults");
|
|
@@ -1,29 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.paginateListConfigurations = void 0;
|
|
4
|
+
const core_1 = require("@smithy/core");
|
|
4
5
|
const ListConfigurationsCommand_1 = require("../commands/ListConfigurationsCommand");
|
|
5
6
|
const KafkaClient_1 = require("../KafkaClient");
|
|
6
|
-
|
|
7
|
-
return await client.send(new ListConfigurationsCommand_1.ListConfigurationsCommand(input), ...args);
|
|
8
|
-
};
|
|
9
|
-
async function* paginateListConfigurations(config, input, ...additionalArguments) {
|
|
10
|
-
let token = config.startingToken || undefined;
|
|
11
|
-
let hasNext = true;
|
|
12
|
-
let page;
|
|
13
|
-
while (hasNext) {
|
|
14
|
-
input.NextToken = token;
|
|
15
|
-
input["MaxResults"] = config.pageSize;
|
|
16
|
-
if (config.client instanceof KafkaClient_1.KafkaClient) {
|
|
17
|
-
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
18
|
-
}
|
|
19
|
-
else {
|
|
20
|
-
throw new Error("Invalid client, expected Kafka | KafkaClient");
|
|
21
|
-
}
|
|
22
|
-
yield page;
|
|
23
|
-
const prevToken = token;
|
|
24
|
-
token = page.NextToken;
|
|
25
|
-
hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
|
|
26
|
-
}
|
|
27
|
-
return undefined;
|
|
28
|
-
}
|
|
29
|
-
exports.paginateListConfigurations = paginateListConfigurations;
|
|
7
|
+
exports.paginateListConfigurations = (0, core_1.createPaginator)(KafkaClient_1.KafkaClient, ListConfigurationsCommand_1.ListConfigurationsCommand, "NextToken", "NextToken", "MaxResults");
|
|
@@ -1,29 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.paginateListKafkaVersions = void 0;
|
|
4
|
+
const core_1 = require("@smithy/core");
|
|
4
5
|
const ListKafkaVersionsCommand_1 = require("../commands/ListKafkaVersionsCommand");
|
|
5
6
|
const KafkaClient_1 = require("../KafkaClient");
|
|
6
|
-
|
|
7
|
-
return await client.send(new ListKafkaVersionsCommand_1.ListKafkaVersionsCommand(input), ...args);
|
|
8
|
-
};
|
|
9
|
-
async function* paginateListKafkaVersions(config, input, ...additionalArguments) {
|
|
10
|
-
let token = config.startingToken || undefined;
|
|
11
|
-
let hasNext = true;
|
|
12
|
-
let page;
|
|
13
|
-
while (hasNext) {
|
|
14
|
-
input.NextToken = token;
|
|
15
|
-
input["MaxResults"] = config.pageSize;
|
|
16
|
-
if (config.client instanceof KafkaClient_1.KafkaClient) {
|
|
17
|
-
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
18
|
-
}
|
|
19
|
-
else {
|
|
20
|
-
throw new Error("Invalid client, expected Kafka | KafkaClient");
|
|
21
|
-
}
|
|
22
|
-
yield page;
|
|
23
|
-
const prevToken = token;
|
|
24
|
-
token = page.NextToken;
|
|
25
|
-
hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
|
|
26
|
-
}
|
|
27
|
-
return undefined;
|
|
28
|
-
}
|
|
29
|
-
exports.paginateListKafkaVersions = paginateListKafkaVersions;
|
|
7
|
+
exports.paginateListKafkaVersions = (0, core_1.createPaginator)(KafkaClient_1.KafkaClient, ListKafkaVersionsCommand_1.ListKafkaVersionsCommand, "NextToken", "NextToken", "MaxResults");
|
|
@@ -1,29 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.paginateListNodes = void 0;
|
|
4
|
+
const core_1 = require("@smithy/core");
|
|
4
5
|
const ListNodesCommand_1 = require("../commands/ListNodesCommand");
|
|
5
6
|
const KafkaClient_1 = require("../KafkaClient");
|
|
6
|
-
|
|
7
|
-
return await client.send(new ListNodesCommand_1.ListNodesCommand(input), ...args);
|
|
8
|
-
};
|
|
9
|
-
async function* paginateListNodes(config, input, ...additionalArguments) {
|
|
10
|
-
let token = config.startingToken || undefined;
|
|
11
|
-
let hasNext = true;
|
|
12
|
-
let page;
|
|
13
|
-
while (hasNext) {
|
|
14
|
-
input.NextToken = token;
|
|
15
|
-
input["MaxResults"] = config.pageSize;
|
|
16
|
-
if (config.client instanceof KafkaClient_1.KafkaClient) {
|
|
17
|
-
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
18
|
-
}
|
|
19
|
-
else {
|
|
20
|
-
throw new Error("Invalid client, expected Kafka | KafkaClient");
|
|
21
|
-
}
|
|
22
|
-
yield page;
|
|
23
|
-
const prevToken = token;
|
|
24
|
-
token = page.NextToken;
|
|
25
|
-
hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
|
|
26
|
-
}
|
|
27
|
-
return undefined;
|
|
28
|
-
}
|
|
29
|
-
exports.paginateListNodes = paginateListNodes;
|
|
7
|
+
exports.paginateListNodes = (0, core_1.createPaginator)(KafkaClient_1.KafkaClient, ListNodesCommand_1.ListNodesCommand, "NextToken", "NextToken", "MaxResults");
|
|
@@ -1,29 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.paginateListReplicators = void 0;
|
|
4
|
+
const core_1 = require("@smithy/core");
|
|
4
5
|
const ListReplicatorsCommand_1 = require("../commands/ListReplicatorsCommand");
|
|
5
6
|
const KafkaClient_1 = require("../KafkaClient");
|
|
6
|
-
|
|
7
|
-
return await client.send(new ListReplicatorsCommand_1.ListReplicatorsCommand(input), ...args);
|
|
8
|
-
};
|
|
9
|
-
async function* paginateListReplicators(config, input, ...additionalArguments) {
|
|
10
|
-
let token = config.startingToken || undefined;
|
|
11
|
-
let hasNext = true;
|
|
12
|
-
let page;
|
|
13
|
-
while (hasNext) {
|
|
14
|
-
input.NextToken = token;
|
|
15
|
-
input["MaxResults"] = config.pageSize;
|
|
16
|
-
if (config.client instanceof KafkaClient_1.KafkaClient) {
|
|
17
|
-
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
18
|
-
}
|
|
19
|
-
else {
|
|
20
|
-
throw new Error("Invalid client, expected Kafka | KafkaClient");
|
|
21
|
-
}
|
|
22
|
-
yield page;
|
|
23
|
-
const prevToken = token;
|
|
24
|
-
token = page.NextToken;
|
|
25
|
-
hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
|
|
26
|
-
}
|
|
27
|
-
return undefined;
|
|
28
|
-
}
|
|
29
|
-
exports.paginateListReplicators = paginateListReplicators;
|
|
7
|
+
exports.paginateListReplicators = (0, core_1.createPaginator)(KafkaClient_1.KafkaClient, ListReplicatorsCommand_1.ListReplicatorsCommand, "NextToken", "NextToken", "MaxResults");
|
|
@@ -1,29 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.paginateListScramSecrets = void 0;
|
|
4
|
+
const core_1 = require("@smithy/core");
|
|
4
5
|
const ListScramSecretsCommand_1 = require("../commands/ListScramSecretsCommand");
|
|
5
6
|
const KafkaClient_1 = require("../KafkaClient");
|
|
6
|
-
|
|
7
|
-
return await client.send(new ListScramSecretsCommand_1.ListScramSecretsCommand(input), ...args);
|
|
8
|
-
};
|
|
9
|
-
async function* paginateListScramSecrets(config, input, ...additionalArguments) {
|
|
10
|
-
let token = config.startingToken || undefined;
|
|
11
|
-
let hasNext = true;
|
|
12
|
-
let page;
|
|
13
|
-
while (hasNext) {
|
|
14
|
-
input.NextToken = token;
|
|
15
|
-
input["MaxResults"] = config.pageSize;
|
|
16
|
-
if (config.client instanceof KafkaClient_1.KafkaClient) {
|
|
17
|
-
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
18
|
-
}
|
|
19
|
-
else {
|
|
20
|
-
throw new Error("Invalid client, expected Kafka | KafkaClient");
|
|
21
|
-
}
|
|
22
|
-
yield page;
|
|
23
|
-
const prevToken = token;
|
|
24
|
-
token = page.NextToken;
|
|
25
|
-
hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
|
|
26
|
-
}
|
|
27
|
-
return undefined;
|
|
28
|
-
}
|
|
29
|
-
exports.paginateListScramSecrets = paginateListScramSecrets;
|
|
7
|
+
exports.paginateListScramSecrets = (0, core_1.createPaginator)(KafkaClient_1.KafkaClient, ListScramSecretsCommand_1.ListScramSecretsCommand, "NextToken", "NextToken", "MaxResults");
|
|
@@ -1,29 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.paginateListVpcConnections = void 0;
|
|
4
|
+
const core_1 = require("@smithy/core");
|
|
4
5
|
const ListVpcConnectionsCommand_1 = require("../commands/ListVpcConnectionsCommand");
|
|
5
6
|
const KafkaClient_1 = require("../KafkaClient");
|
|
6
|
-
|
|
7
|
-
return await client.send(new ListVpcConnectionsCommand_1.ListVpcConnectionsCommand(input), ...args);
|
|
8
|
-
};
|
|
9
|
-
async function* paginateListVpcConnections(config, input, ...additionalArguments) {
|
|
10
|
-
let token = config.startingToken || undefined;
|
|
11
|
-
let hasNext = true;
|
|
12
|
-
let page;
|
|
13
|
-
while (hasNext) {
|
|
14
|
-
input.NextToken = token;
|
|
15
|
-
input["MaxResults"] = config.pageSize;
|
|
16
|
-
if (config.client instanceof KafkaClient_1.KafkaClient) {
|
|
17
|
-
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
18
|
-
}
|
|
19
|
-
else {
|
|
20
|
-
throw new Error("Invalid client, expected Kafka | KafkaClient");
|
|
21
|
-
}
|
|
22
|
-
yield page;
|
|
23
|
-
const prevToken = token;
|
|
24
|
-
token = page.NextToken;
|
|
25
|
-
hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
|
|
26
|
-
}
|
|
27
|
-
return undefined;
|
|
28
|
-
}
|
|
29
|
-
exports.paginateListVpcConnections = paginateListVpcConnections;
|
|
7
|
+
exports.paginateListVpcConnections = (0, core_1.createPaginator)(KafkaClient_1.KafkaClient, ListVpcConnectionsCommand_1.ListVpcConnectionsCommand, "NextToken", "NextToken", "MaxResults");
|