@aws-sdk/client-kendra 3.477.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/GetSnapshotsPaginator.js +2 -24
- package/dist-cjs/pagination/ListAccessControlConfigurationsPaginator.js +2 -24
- package/dist-cjs/pagination/ListDataSourceSyncJobsPaginator.js +2 -24
- package/dist-cjs/pagination/ListDataSourcesPaginator.js +2 -24
- package/dist-cjs/pagination/ListEntityPersonasPaginator.js +2 -24
- package/dist-cjs/pagination/ListExperienceEntitiesPaginator.js +2 -23
- package/dist-cjs/pagination/ListExperiencesPaginator.js +2 -24
- package/dist-cjs/pagination/ListFaqsPaginator.js +2 -24
- package/dist-cjs/pagination/ListGroupsOlderThanOrderingIdPaginator.js +2 -24
- package/dist-cjs/pagination/ListIndicesPaginator.js +2 -24
- package/dist-cjs/pagination/ListQuerySuggestionsBlockListsPaginator.js +2 -24
- package/dist-cjs/pagination/ListThesauriPaginator.js +2 -24
- package/dist-es/pagination/GetSnapshotsPaginator.js +2 -23
- package/dist-es/pagination/ListAccessControlConfigurationsPaginator.js +2 -23
- package/dist-es/pagination/ListDataSourceSyncJobsPaginator.js +2 -23
- package/dist-es/pagination/ListDataSourcesPaginator.js +2 -23
- package/dist-es/pagination/ListEntityPersonasPaginator.js +2 -23
- package/dist-es/pagination/ListExperienceEntitiesPaginator.js +2 -22
- package/dist-es/pagination/ListExperiencesPaginator.js +2 -23
- package/dist-es/pagination/ListFaqsPaginator.js +2 -23
- package/dist-es/pagination/ListGroupsOlderThanOrderingIdPaginator.js +2 -23
- package/dist-es/pagination/ListIndicesPaginator.js +2 -23
- package/dist-es/pagination/ListQuerySuggestionsBlockListsPaginator.js +2 -23
- package/dist-es/pagination/ListThesauriPaginator.js +2 -23
- package/dist-types/pagination/GetSnapshotsPaginator.d.ts +1 -1
- package/dist-types/pagination/ListAccessControlConfigurationsPaginator.d.ts +1 -1
- package/dist-types/pagination/ListDataSourceSyncJobsPaginator.d.ts +1 -1
- package/dist-types/pagination/ListDataSourcesPaginator.d.ts +1 -1
- package/dist-types/pagination/ListEntityPersonasPaginator.d.ts +1 -1
- package/dist-types/pagination/ListExperienceEntitiesPaginator.d.ts +1 -1
- package/dist-types/pagination/ListExperiencesPaginator.d.ts +1 -1
- package/dist-types/pagination/ListFaqsPaginator.d.ts +1 -1
- package/dist-types/pagination/ListGroupsOlderThanOrderingIdPaginator.d.ts +1 -1
- package/dist-types/pagination/ListIndicesPaginator.d.ts +1 -1
- package/dist-types/pagination/ListQuerySuggestionsBlockListsPaginator.d.ts +1 -1
- package/dist-types/pagination/ListThesauriPaginator.d.ts +1 -1
- package/dist-types/ts3.4/pagination/GetSnapshotsPaginator.d.ts +3 -3
- package/dist-types/ts3.4/pagination/ListAccessControlConfigurationsPaginator.d.ts +3 -3
- package/dist-types/ts3.4/pagination/ListDataSourceSyncJobsPaginator.d.ts +3 -3
- package/dist-types/ts3.4/pagination/ListDataSourcesPaginator.d.ts +3 -3
- package/dist-types/ts3.4/pagination/ListEntityPersonasPaginator.d.ts +3 -3
- package/dist-types/ts3.4/pagination/ListExperienceEntitiesPaginator.d.ts +3 -3
- package/dist-types/ts3.4/pagination/ListExperiencesPaginator.d.ts +3 -3
- package/dist-types/ts3.4/pagination/ListFaqsPaginator.d.ts +3 -3
- package/dist-types/ts3.4/pagination/ListGroupsOlderThanOrderingIdPaginator.d.ts +3 -3
- package/dist-types/ts3.4/pagination/ListIndicesPaginator.d.ts +3 -3
- package/dist-types/ts3.4/pagination/ListQuerySuggestionsBlockListsPaginator.d.ts +3 -3
- package/dist-types/ts3.4/pagination/ListThesauriPaginator.d.ts +3 -3
- package/package.json +6 -5
|
@@ -1,29 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.paginateGetSnapshots = void 0;
|
|
4
|
+
const core_1 = require("@smithy/core");
|
|
4
5
|
const GetSnapshotsCommand_1 = require("../commands/GetSnapshotsCommand");
|
|
5
6
|
const KendraClient_1 = require("../KendraClient");
|
|
6
|
-
|
|
7
|
-
return await client.send(new GetSnapshotsCommand_1.GetSnapshotsCommand(input), ...args);
|
|
8
|
-
};
|
|
9
|
-
async function* paginateGetSnapshots(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 KendraClient_1.KendraClient) {
|
|
17
|
-
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
18
|
-
}
|
|
19
|
-
else {
|
|
20
|
-
throw new Error("Invalid client, expected Kendra | KendraClient");
|
|
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.paginateGetSnapshots = paginateGetSnapshots;
|
|
7
|
+
exports.paginateGetSnapshots = (0, core_1.createPaginator)(KendraClient_1.KendraClient, GetSnapshotsCommand_1.GetSnapshotsCommand, "NextToken", "NextToken", "MaxResults");
|
|
@@ -1,29 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.paginateListAccessControlConfigurations = void 0;
|
|
4
|
+
const core_1 = require("@smithy/core");
|
|
4
5
|
const ListAccessControlConfigurationsCommand_1 = require("../commands/ListAccessControlConfigurationsCommand");
|
|
5
6
|
const KendraClient_1 = require("../KendraClient");
|
|
6
|
-
|
|
7
|
-
return await client.send(new ListAccessControlConfigurationsCommand_1.ListAccessControlConfigurationsCommand(input), ...args);
|
|
8
|
-
};
|
|
9
|
-
async function* paginateListAccessControlConfigurations(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 KendraClient_1.KendraClient) {
|
|
17
|
-
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
18
|
-
}
|
|
19
|
-
else {
|
|
20
|
-
throw new Error("Invalid client, expected Kendra | KendraClient");
|
|
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.paginateListAccessControlConfigurations = paginateListAccessControlConfigurations;
|
|
7
|
+
exports.paginateListAccessControlConfigurations = (0, core_1.createPaginator)(KendraClient_1.KendraClient, ListAccessControlConfigurationsCommand_1.ListAccessControlConfigurationsCommand, "NextToken", "NextToken", "MaxResults");
|
|
@@ -1,29 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.paginateListDataSourceSyncJobs = void 0;
|
|
4
|
+
const core_1 = require("@smithy/core");
|
|
4
5
|
const ListDataSourceSyncJobsCommand_1 = require("../commands/ListDataSourceSyncJobsCommand");
|
|
5
6
|
const KendraClient_1 = require("../KendraClient");
|
|
6
|
-
|
|
7
|
-
return await client.send(new ListDataSourceSyncJobsCommand_1.ListDataSourceSyncJobsCommand(input), ...args);
|
|
8
|
-
};
|
|
9
|
-
async function* paginateListDataSourceSyncJobs(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 KendraClient_1.KendraClient) {
|
|
17
|
-
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
18
|
-
}
|
|
19
|
-
else {
|
|
20
|
-
throw new Error("Invalid client, expected Kendra | KendraClient");
|
|
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.paginateListDataSourceSyncJobs = paginateListDataSourceSyncJobs;
|
|
7
|
+
exports.paginateListDataSourceSyncJobs = (0, core_1.createPaginator)(KendraClient_1.KendraClient, ListDataSourceSyncJobsCommand_1.ListDataSourceSyncJobsCommand, "NextToken", "NextToken", "MaxResults");
|
|
@@ -1,29 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.paginateListDataSources = void 0;
|
|
4
|
+
const core_1 = require("@smithy/core");
|
|
4
5
|
const ListDataSourcesCommand_1 = require("../commands/ListDataSourcesCommand");
|
|
5
6
|
const KendraClient_1 = require("../KendraClient");
|
|
6
|
-
|
|
7
|
-
return await client.send(new ListDataSourcesCommand_1.ListDataSourcesCommand(input), ...args);
|
|
8
|
-
};
|
|
9
|
-
async function* paginateListDataSources(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 KendraClient_1.KendraClient) {
|
|
17
|
-
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
18
|
-
}
|
|
19
|
-
else {
|
|
20
|
-
throw new Error("Invalid client, expected Kendra | KendraClient");
|
|
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.paginateListDataSources = paginateListDataSources;
|
|
7
|
+
exports.paginateListDataSources = (0, core_1.createPaginator)(KendraClient_1.KendraClient, ListDataSourcesCommand_1.ListDataSourcesCommand, "NextToken", "NextToken", "MaxResults");
|
|
@@ -1,29 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.paginateListEntityPersonas = void 0;
|
|
4
|
+
const core_1 = require("@smithy/core");
|
|
4
5
|
const ListEntityPersonasCommand_1 = require("../commands/ListEntityPersonasCommand");
|
|
5
6
|
const KendraClient_1 = require("../KendraClient");
|
|
6
|
-
|
|
7
|
-
return await client.send(new ListEntityPersonasCommand_1.ListEntityPersonasCommand(input), ...args);
|
|
8
|
-
};
|
|
9
|
-
async function* paginateListEntityPersonas(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 KendraClient_1.KendraClient) {
|
|
17
|
-
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
18
|
-
}
|
|
19
|
-
else {
|
|
20
|
-
throw new Error("Invalid client, expected Kendra | KendraClient");
|
|
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.paginateListEntityPersonas = paginateListEntityPersonas;
|
|
7
|
+
exports.paginateListEntityPersonas = (0, core_1.createPaginator)(KendraClient_1.KendraClient, ListEntityPersonasCommand_1.ListEntityPersonasCommand, "NextToken", "NextToken", "MaxResults");
|
|
@@ -1,28 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.paginateListExperienceEntities = void 0;
|
|
4
|
+
const core_1 = require("@smithy/core");
|
|
4
5
|
const ListExperienceEntitiesCommand_1 = require("../commands/ListExperienceEntitiesCommand");
|
|
5
6
|
const KendraClient_1 = require("../KendraClient");
|
|
6
|
-
|
|
7
|
-
return await client.send(new ListExperienceEntitiesCommand_1.ListExperienceEntitiesCommand(input), ...args);
|
|
8
|
-
};
|
|
9
|
-
async function* paginateListExperienceEntities(config, input, ...additionalArguments) {
|
|
10
|
-
let token = config.startingToken || undefined;
|
|
11
|
-
let hasNext = true;
|
|
12
|
-
let page;
|
|
13
|
-
while (hasNext) {
|
|
14
|
-
input.NextToken = token;
|
|
15
|
-
if (config.client instanceof KendraClient_1.KendraClient) {
|
|
16
|
-
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
17
|
-
}
|
|
18
|
-
else {
|
|
19
|
-
throw new Error("Invalid client, expected Kendra | KendraClient");
|
|
20
|
-
}
|
|
21
|
-
yield page;
|
|
22
|
-
const prevToken = token;
|
|
23
|
-
token = page.NextToken;
|
|
24
|
-
hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
|
|
25
|
-
}
|
|
26
|
-
return undefined;
|
|
27
|
-
}
|
|
28
|
-
exports.paginateListExperienceEntities = paginateListExperienceEntities;
|
|
7
|
+
exports.paginateListExperienceEntities = (0, core_1.createPaginator)(KendraClient_1.KendraClient, ListExperienceEntitiesCommand_1.ListExperienceEntitiesCommand, "NextToken", "NextToken", "");
|
|
@@ -1,29 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.paginateListExperiences = void 0;
|
|
4
|
+
const core_1 = require("@smithy/core");
|
|
4
5
|
const ListExperiencesCommand_1 = require("../commands/ListExperiencesCommand");
|
|
5
6
|
const KendraClient_1 = require("../KendraClient");
|
|
6
|
-
|
|
7
|
-
return await client.send(new ListExperiencesCommand_1.ListExperiencesCommand(input), ...args);
|
|
8
|
-
};
|
|
9
|
-
async function* paginateListExperiences(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 KendraClient_1.KendraClient) {
|
|
17
|
-
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
18
|
-
}
|
|
19
|
-
else {
|
|
20
|
-
throw new Error("Invalid client, expected Kendra | KendraClient");
|
|
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.paginateListExperiences = paginateListExperiences;
|
|
7
|
+
exports.paginateListExperiences = (0, core_1.createPaginator)(KendraClient_1.KendraClient, ListExperiencesCommand_1.ListExperiencesCommand, "NextToken", "NextToken", "MaxResults");
|
|
@@ -1,29 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.paginateListFaqs = void 0;
|
|
4
|
+
const core_1 = require("@smithy/core");
|
|
4
5
|
const ListFaqsCommand_1 = require("../commands/ListFaqsCommand");
|
|
5
6
|
const KendraClient_1 = require("../KendraClient");
|
|
6
|
-
|
|
7
|
-
return await client.send(new ListFaqsCommand_1.ListFaqsCommand(input), ...args);
|
|
8
|
-
};
|
|
9
|
-
async function* paginateListFaqs(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 KendraClient_1.KendraClient) {
|
|
17
|
-
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
18
|
-
}
|
|
19
|
-
else {
|
|
20
|
-
throw new Error("Invalid client, expected Kendra | KendraClient");
|
|
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.paginateListFaqs = paginateListFaqs;
|
|
7
|
+
exports.paginateListFaqs = (0, core_1.createPaginator)(KendraClient_1.KendraClient, ListFaqsCommand_1.ListFaqsCommand, "NextToken", "NextToken", "MaxResults");
|
|
@@ -1,29 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.paginateListGroupsOlderThanOrderingId = void 0;
|
|
4
|
+
const core_1 = require("@smithy/core");
|
|
4
5
|
const ListGroupsOlderThanOrderingIdCommand_1 = require("../commands/ListGroupsOlderThanOrderingIdCommand");
|
|
5
6
|
const KendraClient_1 = require("../KendraClient");
|
|
6
|
-
|
|
7
|
-
return await client.send(new ListGroupsOlderThanOrderingIdCommand_1.ListGroupsOlderThanOrderingIdCommand(input), ...args);
|
|
8
|
-
};
|
|
9
|
-
async function* paginateListGroupsOlderThanOrderingId(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 KendraClient_1.KendraClient) {
|
|
17
|
-
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
18
|
-
}
|
|
19
|
-
else {
|
|
20
|
-
throw new Error("Invalid client, expected Kendra | KendraClient");
|
|
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.paginateListGroupsOlderThanOrderingId = paginateListGroupsOlderThanOrderingId;
|
|
7
|
+
exports.paginateListGroupsOlderThanOrderingId = (0, core_1.createPaginator)(KendraClient_1.KendraClient, ListGroupsOlderThanOrderingIdCommand_1.ListGroupsOlderThanOrderingIdCommand, "NextToken", "NextToken", "MaxResults");
|
|
@@ -1,29 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.paginateListIndices = void 0;
|
|
4
|
+
const core_1 = require("@smithy/core");
|
|
4
5
|
const ListIndicesCommand_1 = require("../commands/ListIndicesCommand");
|
|
5
6
|
const KendraClient_1 = require("../KendraClient");
|
|
6
|
-
|
|
7
|
-
return await client.send(new ListIndicesCommand_1.ListIndicesCommand(input), ...args);
|
|
8
|
-
};
|
|
9
|
-
async function* paginateListIndices(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 KendraClient_1.KendraClient) {
|
|
17
|
-
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
18
|
-
}
|
|
19
|
-
else {
|
|
20
|
-
throw new Error("Invalid client, expected Kendra | KendraClient");
|
|
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.paginateListIndices = paginateListIndices;
|
|
7
|
+
exports.paginateListIndices = (0, core_1.createPaginator)(KendraClient_1.KendraClient, ListIndicesCommand_1.ListIndicesCommand, "NextToken", "NextToken", "MaxResults");
|
|
@@ -1,29 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.paginateListQuerySuggestionsBlockLists = void 0;
|
|
4
|
+
const core_1 = require("@smithy/core");
|
|
4
5
|
const ListQuerySuggestionsBlockListsCommand_1 = require("../commands/ListQuerySuggestionsBlockListsCommand");
|
|
5
6
|
const KendraClient_1 = require("../KendraClient");
|
|
6
|
-
|
|
7
|
-
return await client.send(new ListQuerySuggestionsBlockListsCommand_1.ListQuerySuggestionsBlockListsCommand(input), ...args);
|
|
8
|
-
};
|
|
9
|
-
async function* paginateListQuerySuggestionsBlockLists(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 KendraClient_1.KendraClient) {
|
|
17
|
-
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
18
|
-
}
|
|
19
|
-
else {
|
|
20
|
-
throw new Error("Invalid client, expected Kendra | KendraClient");
|
|
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.paginateListQuerySuggestionsBlockLists = paginateListQuerySuggestionsBlockLists;
|
|
7
|
+
exports.paginateListQuerySuggestionsBlockLists = (0, core_1.createPaginator)(KendraClient_1.KendraClient, ListQuerySuggestionsBlockListsCommand_1.ListQuerySuggestionsBlockListsCommand, "NextToken", "NextToken", "MaxResults");
|
|
@@ -1,29 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.paginateListThesauri = void 0;
|
|
4
|
+
const core_1 = require("@smithy/core");
|
|
4
5
|
const ListThesauriCommand_1 = require("../commands/ListThesauriCommand");
|
|
5
6
|
const KendraClient_1 = require("../KendraClient");
|
|
6
|
-
|
|
7
|
-
return await client.send(new ListThesauriCommand_1.ListThesauriCommand(input), ...args);
|
|
8
|
-
};
|
|
9
|
-
async function* paginateListThesauri(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 KendraClient_1.KendraClient) {
|
|
17
|
-
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
18
|
-
}
|
|
19
|
-
else {
|
|
20
|
-
throw new Error("Invalid client, expected Kendra | KendraClient");
|
|
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.paginateListThesauri = paginateListThesauri;
|
|
7
|
+
exports.paginateListThesauri = (0, core_1.createPaginator)(KendraClient_1.KendraClient, ListThesauriCommand_1.ListThesauriCommand, "NextToken", "NextToken", "MaxResults");
|
|
@@ -1,25 +1,4 @@
|
|
|
1
|
+
import { createPaginator } from "@smithy/core";
|
|
1
2
|
import { GetSnapshotsCommand, } from "../commands/GetSnapshotsCommand";
|
|
2
3
|
import { KendraClient } from "../KendraClient";
|
|
3
|
-
const
|
|
4
|
-
return await client.send(new GetSnapshotsCommand(input), ...args);
|
|
5
|
-
};
|
|
6
|
-
export async function* paginateGetSnapshots(config, input, ...additionalArguments) {
|
|
7
|
-
let token = config.startingToken || undefined;
|
|
8
|
-
let hasNext = true;
|
|
9
|
-
let page;
|
|
10
|
-
while (hasNext) {
|
|
11
|
-
input.NextToken = token;
|
|
12
|
-
input["MaxResults"] = config.pageSize;
|
|
13
|
-
if (config.client instanceof KendraClient) {
|
|
14
|
-
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
15
|
-
}
|
|
16
|
-
else {
|
|
17
|
-
throw new Error("Invalid client, expected Kendra | KendraClient");
|
|
18
|
-
}
|
|
19
|
-
yield page;
|
|
20
|
-
const prevToken = token;
|
|
21
|
-
token = page.NextToken;
|
|
22
|
-
hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
|
|
23
|
-
}
|
|
24
|
-
return undefined;
|
|
25
|
-
}
|
|
4
|
+
export const paginateGetSnapshots = createPaginator(KendraClient, GetSnapshotsCommand, "NextToken", "NextToken", "MaxResults");
|
|
@@ -1,25 +1,4 @@
|
|
|
1
|
+
import { createPaginator } from "@smithy/core";
|
|
1
2
|
import { ListAccessControlConfigurationsCommand, } from "../commands/ListAccessControlConfigurationsCommand";
|
|
2
3
|
import { KendraClient } from "../KendraClient";
|
|
3
|
-
const
|
|
4
|
-
return await client.send(new ListAccessControlConfigurationsCommand(input), ...args);
|
|
5
|
-
};
|
|
6
|
-
export async function* paginateListAccessControlConfigurations(config, input, ...additionalArguments) {
|
|
7
|
-
let token = config.startingToken || undefined;
|
|
8
|
-
let hasNext = true;
|
|
9
|
-
let page;
|
|
10
|
-
while (hasNext) {
|
|
11
|
-
input.NextToken = token;
|
|
12
|
-
input["MaxResults"] = config.pageSize;
|
|
13
|
-
if (config.client instanceof KendraClient) {
|
|
14
|
-
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
15
|
-
}
|
|
16
|
-
else {
|
|
17
|
-
throw new Error("Invalid client, expected Kendra | KendraClient");
|
|
18
|
-
}
|
|
19
|
-
yield page;
|
|
20
|
-
const prevToken = token;
|
|
21
|
-
token = page.NextToken;
|
|
22
|
-
hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
|
|
23
|
-
}
|
|
24
|
-
return undefined;
|
|
25
|
-
}
|
|
4
|
+
export const paginateListAccessControlConfigurations = createPaginator(KendraClient, ListAccessControlConfigurationsCommand, "NextToken", "NextToken", "MaxResults");
|
|
@@ -1,25 +1,4 @@
|
|
|
1
|
+
import { createPaginator } from "@smithy/core";
|
|
1
2
|
import { ListDataSourceSyncJobsCommand, } from "../commands/ListDataSourceSyncJobsCommand";
|
|
2
3
|
import { KendraClient } from "../KendraClient";
|
|
3
|
-
const
|
|
4
|
-
return await client.send(new ListDataSourceSyncJobsCommand(input), ...args);
|
|
5
|
-
};
|
|
6
|
-
export async function* paginateListDataSourceSyncJobs(config, input, ...additionalArguments) {
|
|
7
|
-
let token = config.startingToken || undefined;
|
|
8
|
-
let hasNext = true;
|
|
9
|
-
let page;
|
|
10
|
-
while (hasNext) {
|
|
11
|
-
input.NextToken = token;
|
|
12
|
-
input["MaxResults"] = config.pageSize;
|
|
13
|
-
if (config.client instanceof KendraClient) {
|
|
14
|
-
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
15
|
-
}
|
|
16
|
-
else {
|
|
17
|
-
throw new Error("Invalid client, expected Kendra | KendraClient");
|
|
18
|
-
}
|
|
19
|
-
yield page;
|
|
20
|
-
const prevToken = token;
|
|
21
|
-
token = page.NextToken;
|
|
22
|
-
hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
|
|
23
|
-
}
|
|
24
|
-
return undefined;
|
|
25
|
-
}
|
|
4
|
+
export const paginateListDataSourceSyncJobs = createPaginator(KendraClient, ListDataSourceSyncJobsCommand, "NextToken", "NextToken", "MaxResults");
|
|
@@ -1,25 +1,4 @@
|
|
|
1
|
+
import { createPaginator } from "@smithy/core";
|
|
1
2
|
import { ListDataSourcesCommand, } from "../commands/ListDataSourcesCommand";
|
|
2
3
|
import { KendraClient } from "../KendraClient";
|
|
3
|
-
const
|
|
4
|
-
return await client.send(new ListDataSourcesCommand(input), ...args);
|
|
5
|
-
};
|
|
6
|
-
export async function* paginateListDataSources(config, input, ...additionalArguments) {
|
|
7
|
-
let token = config.startingToken || undefined;
|
|
8
|
-
let hasNext = true;
|
|
9
|
-
let page;
|
|
10
|
-
while (hasNext) {
|
|
11
|
-
input.NextToken = token;
|
|
12
|
-
input["MaxResults"] = config.pageSize;
|
|
13
|
-
if (config.client instanceof KendraClient) {
|
|
14
|
-
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
15
|
-
}
|
|
16
|
-
else {
|
|
17
|
-
throw new Error("Invalid client, expected Kendra | KendraClient");
|
|
18
|
-
}
|
|
19
|
-
yield page;
|
|
20
|
-
const prevToken = token;
|
|
21
|
-
token = page.NextToken;
|
|
22
|
-
hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
|
|
23
|
-
}
|
|
24
|
-
return undefined;
|
|
25
|
-
}
|
|
4
|
+
export const paginateListDataSources = createPaginator(KendraClient, ListDataSourcesCommand, "NextToken", "NextToken", "MaxResults");
|
|
@@ -1,25 +1,4 @@
|
|
|
1
|
+
import { createPaginator } from "@smithy/core";
|
|
1
2
|
import { ListEntityPersonasCommand, } from "../commands/ListEntityPersonasCommand";
|
|
2
3
|
import { KendraClient } from "../KendraClient";
|
|
3
|
-
const
|
|
4
|
-
return await client.send(new ListEntityPersonasCommand(input), ...args);
|
|
5
|
-
};
|
|
6
|
-
export async function* paginateListEntityPersonas(config, input, ...additionalArguments) {
|
|
7
|
-
let token = config.startingToken || undefined;
|
|
8
|
-
let hasNext = true;
|
|
9
|
-
let page;
|
|
10
|
-
while (hasNext) {
|
|
11
|
-
input.NextToken = token;
|
|
12
|
-
input["MaxResults"] = config.pageSize;
|
|
13
|
-
if (config.client instanceof KendraClient) {
|
|
14
|
-
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
15
|
-
}
|
|
16
|
-
else {
|
|
17
|
-
throw new Error("Invalid client, expected Kendra | KendraClient");
|
|
18
|
-
}
|
|
19
|
-
yield page;
|
|
20
|
-
const prevToken = token;
|
|
21
|
-
token = page.NextToken;
|
|
22
|
-
hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
|
|
23
|
-
}
|
|
24
|
-
return undefined;
|
|
25
|
-
}
|
|
4
|
+
export const paginateListEntityPersonas = createPaginator(KendraClient, ListEntityPersonasCommand, "NextToken", "NextToken", "MaxResults");
|
|
@@ -1,24 +1,4 @@
|
|
|
1
|
+
import { createPaginator } from "@smithy/core";
|
|
1
2
|
import { ListExperienceEntitiesCommand, } from "../commands/ListExperienceEntitiesCommand";
|
|
2
3
|
import { KendraClient } from "../KendraClient";
|
|
3
|
-
const
|
|
4
|
-
return await client.send(new ListExperienceEntitiesCommand(input), ...args);
|
|
5
|
-
};
|
|
6
|
-
export async function* paginateListExperienceEntities(config, input, ...additionalArguments) {
|
|
7
|
-
let token = config.startingToken || undefined;
|
|
8
|
-
let hasNext = true;
|
|
9
|
-
let page;
|
|
10
|
-
while (hasNext) {
|
|
11
|
-
input.NextToken = token;
|
|
12
|
-
if (config.client instanceof KendraClient) {
|
|
13
|
-
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
14
|
-
}
|
|
15
|
-
else {
|
|
16
|
-
throw new Error("Invalid client, expected Kendra | KendraClient");
|
|
17
|
-
}
|
|
18
|
-
yield page;
|
|
19
|
-
const prevToken = token;
|
|
20
|
-
token = page.NextToken;
|
|
21
|
-
hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
|
|
22
|
-
}
|
|
23
|
-
return undefined;
|
|
24
|
-
}
|
|
4
|
+
export const paginateListExperienceEntities = createPaginator(KendraClient, ListExperienceEntitiesCommand, "NextToken", "NextToken", "");
|
|
@@ -1,25 +1,4 @@
|
|
|
1
|
+
import { createPaginator } from "@smithy/core";
|
|
1
2
|
import { ListExperiencesCommand, } from "../commands/ListExperiencesCommand";
|
|
2
3
|
import { KendraClient } from "../KendraClient";
|
|
3
|
-
const
|
|
4
|
-
return await client.send(new ListExperiencesCommand(input), ...args);
|
|
5
|
-
};
|
|
6
|
-
export async function* paginateListExperiences(config, input, ...additionalArguments) {
|
|
7
|
-
let token = config.startingToken || undefined;
|
|
8
|
-
let hasNext = true;
|
|
9
|
-
let page;
|
|
10
|
-
while (hasNext) {
|
|
11
|
-
input.NextToken = token;
|
|
12
|
-
input["MaxResults"] = config.pageSize;
|
|
13
|
-
if (config.client instanceof KendraClient) {
|
|
14
|
-
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
15
|
-
}
|
|
16
|
-
else {
|
|
17
|
-
throw new Error("Invalid client, expected Kendra | KendraClient");
|
|
18
|
-
}
|
|
19
|
-
yield page;
|
|
20
|
-
const prevToken = token;
|
|
21
|
-
token = page.NextToken;
|
|
22
|
-
hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
|
|
23
|
-
}
|
|
24
|
-
return undefined;
|
|
25
|
-
}
|
|
4
|
+
export const paginateListExperiences = createPaginator(KendraClient, ListExperiencesCommand, "NextToken", "NextToken", "MaxResults");
|
|
@@ -1,25 +1,4 @@
|
|
|
1
|
+
import { createPaginator } from "@smithy/core";
|
|
1
2
|
import { ListFaqsCommand } from "../commands/ListFaqsCommand";
|
|
2
3
|
import { KendraClient } from "../KendraClient";
|
|
3
|
-
const
|
|
4
|
-
return await client.send(new ListFaqsCommand(input), ...args);
|
|
5
|
-
};
|
|
6
|
-
export async function* paginateListFaqs(config, input, ...additionalArguments) {
|
|
7
|
-
let token = config.startingToken || undefined;
|
|
8
|
-
let hasNext = true;
|
|
9
|
-
let page;
|
|
10
|
-
while (hasNext) {
|
|
11
|
-
input.NextToken = token;
|
|
12
|
-
input["MaxResults"] = config.pageSize;
|
|
13
|
-
if (config.client instanceof KendraClient) {
|
|
14
|
-
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
15
|
-
}
|
|
16
|
-
else {
|
|
17
|
-
throw new Error("Invalid client, expected Kendra | KendraClient");
|
|
18
|
-
}
|
|
19
|
-
yield page;
|
|
20
|
-
const prevToken = token;
|
|
21
|
-
token = page.NextToken;
|
|
22
|
-
hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
|
|
23
|
-
}
|
|
24
|
-
return undefined;
|
|
25
|
-
}
|
|
4
|
+
export const paginateListFaqs = createPaginator(KendraClient, ListFaqsCommand, "NextToken", "NextToken", "MaxResults");
|
|
@@ -1,25 +1,4 @@
|
|
|
1
|
+
import { createPaginator } from "@smithy/core";
|
|
1
2
|
import { ListGroupsOlderThanOrderingIdCommand, } from "../commands/ListGroupsOlderThanOrderingIdCommand";
|
|
2
3
|
import { KendraClient } from "../KendraClient";
|
|
3
|
-
const
|
|
4
|
-
return await client.send(new ListGroupsOlderThanOrderingIdCommand(input), ...args);
|
|
5
|
-
};
|
|
6
|
-
export async function* paginateListGroupsOlderThanOrderingId(config, input, ...additionalArguments) {
|
|
7
|
-
let token = config.startingToken || undefined;
|
|
8
|
-
let hasNext = true;
|
|
9
|
-
let page;
|
|
10
|
-
while (hasNext) {
|
|
11
|
-
input.NextToken = token;
|
|
12
|
-
input["MaxResults"] = config.pageSize;
|
|
13
|
-
if (config.client instanceof KendraClient) {
|
|
14
|
-
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
15
|
-
}
|
|
16
|
-
else {
|
|
17
|
-
throw new Error("Invalid client, expected Kendra | KendraClient");
|
|
18
|
-
}
|
|
19
|
-
yield page;
|
|
20
|
-
const prevToken = token;
|
|
21
|
-
token = page.NextToken;
|
|
22
|
-
hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
|
|
23
|
-
}
|
|
24
|
-
return undefined;
|
|
25
|
-
}
|
|
4
|
+
export const paginateListGroupsOlderThanOrderingId = createPaginator(KendraClient, ListGroupsOlderThanOrderingIdCommand, "NextToken", "NextToken", "MaxResults");
|
|
@@ -1,25 +1,4 @@
|
|
|
1
|
+
import { createPaginator } from "@smithy/core";
|
|
1
2
|
import { ListIndicesCommand } from "../commands/ListIndicesCommand";
|
|
2
3
|
import { KendraClient } from "../KendraClient";
|
|
3
|
-
const
|
|
4
|
-
return await client.send(new ListIndicesCommand(input), ...args);
|
|
5
|
-
};
|
|
6
|
-
export async function* paginateListIndices(config, input, ...additionalArguments) {
|
|
7
|
-
let token = config.startingToken || undefined;
|
|
8
|
-
let hasNext = true;
|
|
9
|
-
let page;
|
|
10
|
-
while (hasNext) {
|
|
11
|
-
input.NextToken = token;
|
|
12
|
-
input["MaxResults"] = config.pageSize;
|
|
13
|
-
if (config.client instanceof KendraClient) {
|
|
14
|
-
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
15
|
-
}
|
|
16
|
-
else {
|
|
17
|
-
throw new Error("Invalid client, expected Kendra | KendraClient");
|
|
18
|
-
}
|
|
19
|
-
yield page;
|
|
20
|
-
const prevToken = token;
|
|
21
|
-
token = page.NextToken;
|
|
22
|
-
hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
|
|
23
|
-
}
|
|
24
|
-
return undefined;
|
|
25
|
-
}
|
|
4
|
+
export const paginateListIndices = createPaginator(KendraClient, ListIndicesCommand, "NextToken", "NextToken", "MaxResults");
|
|
@@ -1,25 +1,4 @@
|
|
|
1
|
+
import { createPaginator } from "@smithy/core";
|
|
1
2
|
import { ListQuerySuggestionsBlockListsCommand, } from "../commands/ListQuerySuggestionsBlockListsCommand";
|
|
2
3
|
import { KendraClient } from "../KendraClient";
|
|
3
|
-
const
|
|
4
|
-
return await client.send(new ListQuerySuggestionsBlockListsCommand(input), ...args);
|
|
5
|
-
};
|
|
6
|
-
export async function* paginateListQuerySuggestionsBlockLists(config, input, ...additionalArguments) {
|
|
7
|
-
let token = config.startingToken || undefined;
|
|
8
|
-
let hasNext = true;
|
|
9
|
-
let page;
|
|
10
|
-
while (hasNext) {
|
|
11
|
-
input.NextToken = token;
|
|
12
|
-
input["MaxResults"] = config.pageSize;
|
|
13
|
-
if (config.client instanceof KendraClient) {
|
|
14
|
-
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
15
|
-
}
|
|
16
|
-
else {
|
|
17
|
-
throw new Error("Invalid client, expected Kendra | KendraClient");
|
|
18
|
-
}
|
|
19
|
-
yield page;
|
|
20
|
-
const prevToken = token;
|
|
21
|
-
token = page.NextToken;
|
|
22
|
-
hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
|
|
23
|
-
}
|
|
24
|
-
return undefined;
|
|
25
|
-
}
|
|
4
|
+
export const paginateListQuerySuggestionsBlockLists = createPaginator(KendraClient, ListQuerySuggestionsBlockListsCommand, "NextToken", "NextToken", "MaxResults");
|
|
@@ -1,25 +1,4 @@
|
|
|
1
|
+
import { createPaginator } from "@smithy/core";
|
|
1
2
|
import { ListThesauriCommand, } from "../commands/ListThesauriCommand";
|
|
2
3
|
import { KendraClient } from "../KendraClient";
|
|
3
|
-
const
|
|
4
|
-
return await client.send(new ListThesauriCommand(input), ...args);
|
|
5
|
-
};
|
|
6
|
-
export async function* paginateListThesauri(config, input, ...additionalArguments) {
|
|
7
|
-
let token = config.startingToken || undefined;
|
|
8
|
-
let hasNext = true;
|
|
9
|
-
let page;
|
|
10
|
-
while (hasNext) {
|
|
11
|
-
input.NextToken = token;
|
|
12
|
-
input["MaxResults"] = config.pageSize;
|
|
13
|
-
if (config.client instanceof KendraClient) {
|
|
14
|
-
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
15
|
-
}
|
|
16
|
-
else {
|
|
17
|
-
throw new Error("Invalid client, expected Kendra | KendraClient");
|
|
18
|
-
}
|
|
19
|
-
yield page;
|
|
20
|
-
const prevToken = token;
|
|
21
|
-
token = page.NextToken;
|
|
22
|
-
hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
|
|
23
|
-
}
|
|
24
|
-
return undefined;
|
|
25
|
-
}
|
|
4
|
+
export const paginateListThesauri = createPaginator(KendraClient, ListThesauriCommand, "NextToken", "NextToken", "MaxResults");
|
|
@@ -4,4 +4,4 @@ import { KendraPaginationConfiguration } from "./Interfaces";
|
|
|
4
4
|
/**
|
|
5
5
|
* @public
|
|
6
6
|
*/
|
|
7
|
-
export declare
|
|
7
|
+
export declare const paginateGetSnapshots: (config: KendraPaginationConfiguration, input: GetSnapshotsCommandInput, ...rest: any[]) => Paginator<GetSnapshotsCommandOutput>;
|
|
@@ -4,4 +4,4 @@ import { KendraPaginationConfiguration } from "./Interfaces";
|
|
|
4
4
|
/**
|
|
5
5
|
* @public
|
|
6
6
|
*/
|
|
7
|
-
export declare
|
|
7
|
+
export declare const paginateListAccessControlConfigurations: (config: KendraPaginationConfiguration, input: ListAccessControlConfigurationsCommandInput, ...rest: any[]) => Paginator<ListAccessControlConfigurationsCommandOutput>;
|
|
@@ -4,4 +4,4 @@ import { KendraPaginationConfiguration } from "./Interfaces";
|
|
|
4
4
|
/**
|
|
5
5
|
* @public
|
|
6
6
|
*/
|
|
7
|
-
export declare
|
|
7
|
+
export declare const paginateListDataSourceSyncJobs: (config: KendraPaginationConfiguration, input: ListDataSourceSyncJobsCommandInput, ...rest: any[]) => Paginator<ListDataSourceSyncJobsCommandOutput>;
|
|
@@ -4,4 +4,4 @@ import { KendraPaginationConfiguration } from "./Interfaces";
|
|
|
4
4
|
/**
|
|
5
5
|
* @public
|
|
6
6
|
*/
|
|
7
|
-
export declare
|
|
7
|
+
export declare const paginateListDataSources: (config: KendraPaginationConfiguration, input: ListDataSourcesCommandInput, ...rest: any[]) => Paginator<ListDataSourcesCommandOutput>;
|
|
@@ -4,4 +4,4 @@ import { KendraPaginationConfiguration } from "./Interfaces";
|
|
|
4
4
|
/**
|
|
5
5
|
* @public
|
|
6
6
|
*/
|
|
7
|
-
export declare
|
|
7
|
+
export declare const paginateListEntityPersonas: (config: KendraPaginationConfiguration, input: ListEntityPersonasCommandInput, ...rest: any[]) => Paginator<ListEntityPersonasCommandOutput>;
|
|
@@ -4,4 +4,4 @@ import { KendraPaginationConfiguration } from "./Interfaces";
|
|
|
4
4
|
/**
|
|
5
5
|
* @public
|
|
6
6
|
*/
|
|
7
|
-
export declare
|
|
7
|
+
export declare const paginateListExperienceEntities: (config: KendraPaginationConfiguration, input: ListExperienceEntitiesCommandInput, ...rest: any[]) => Paginator<ListExperienceEntitiesCommandOutput>;
|
|
@@ -4,4 +4,4 @@ import { KendraPaginationConfiguration } from "./Interfaces";
|
|
|
4
4
|
/**
|
|
5
5
|
* @public
|
|
6
6
|
*/
|
|
7
|
-
export declare
|
|
7
|
+
export declare const paginateListExperiences: (config: KendraPaginationConfiguration, input: ListExperiencesCommandInput, ...rest: any[]) => Paginator<ListExperiencesCommandOutput>;
|
|
@@ -4,4 +4,4 @@ import { KendraPaginationConfiguration } from "./Interfaces";
|
|
|
4
4
|
/**
|
|
5
5
|
* @public
|
|
6
6
|
*/
|
|
7
|
-
export declare
|
|
7
|
+
export declare const paginateListFaqs: (config: KendraPaginationConfiguration, input: ListFaqsCommandInput, ...rest: any[]) => Paginator<ListFaqsCommandOutput>;
|
|
@@ -4,4 +4,4 @@ import { KendraPaginationConfiguration } from "./Interfaces";
|
|
|
4
4
|
/**
|
|
5
5
|
* @public
|
|
6
6
|
*/
|
|
7
|
-
export declare
|
|
7
|
+
export declare const paginateListGroupsOlderThanOrderingId: (config: KendraPaginationConfiguration, input: ListGroupsOlderThanOrderingIdCommandInput, ...rest: any[]) => Paginator<ListGroupsOlderThanOrderingIdCommandOutput>;
|
|
@@ -4,4 +4,4 @@ import { KendraPaginationConfiguration } from "./Interfaces";
|
|
|
4
4
|
/**
|
|
5
5
|
* @public
|
|
6
6
|
*/
|
|
7
|
-
export declare
|
|
7
|
+
export declare const paginateListIndices: (config: KendraPaginationConfiguration, input: ListIndicesCommandInput, ...rest: any[]) => Paginator<ListIndicesCommandOutput>;
|
|
@@ -4,4 +4,4 @@ import { KendraPaginationConfiguration } from "./Interfaces";
|
|
|
4
4
|
/**
|
|
5
5
|
* @public
|
|
6
6
|
*/
|
|
7
|
-
export declare
|
|
7
|
+
export declare const paginateListQuerySuggestionsBlockLists: (config: KendraPaginationConfiguration, input: ListQuerySuggestionsBlockListsCommandInput, ...rest: any[]) => Paginator<ListQuerySuggestionsBlockListsCommandOutput>;
|
|
@@ -4,4 +4,4 @@ import { KendraPaginationConfiguration } from "./Interfaces";
|
|
|
4
4
|
/**
|
|
5
5
|
* @public
|
|
6
6
|
*/
|
|
7
|
-
export declare
|
|
7
|
+
export declare const paginateListThesauri: (config: KendraPaginationConfiguration, input: ListThesauriCommandInput, ...rest: any[]) => Paginator<ListThesauriCommandOutput>;
|
|
@@ -4,8 +4,8 @@ import {
|
|
|
4
4
|
GetSnapshotsCommandOutput,
|
|
5
5
|
} from "../commands/GetSnapshotsCommand";
|
|
6
6
|
import { KendraPaginationConfiguration } from "./Interfaces";
|
|
7
|
-
export declare
|
|
7
|
+
export declare const paginateGetSnapshots: (
|
|
8
8
|
config: KendraPaginationConfiguration,
|
|
9
9
|
input: GetSnapshotsCommandInput,
|
|
10
|
-
...
|
|
11
|
-
)
|
|
10
|
+
...rest: any[]
|
|
11
|
+
) => Paginator<GetSnapshotsCommandOutput>;
|
|
@@ -4,8 +4,8 @@ import {
|
|
|
4
4
|
ListAccessControlConfigurationsCommandOutput,
|
|
5
5
|
} from "../commands/ListAccessControlConfigurationsCommand";
|
|
6
6
|
import { KendraPaginationConfiguration } from "./Interfaces";
|
|
7
|
-
export declare
|
|
7
|
+
export declare const paginateListAccessControlConfigurations: (
|
|
8
8
|
config: KendraPaginationConfiguration,
|
|
9
9
|
input: ListAccessControlConfigurationsCommandInput,
|
|
10
|
-
...
|
|
11
|
-
)
|
|
10
|
+
...rest: any[]
|
|
11
|
+
) => Paginator<ListAccessControlConfigurationsCommandOutput>;
|
|
@@ -4,8 +4,8 @@ import {
|
|
|
4
4
|
ListDataSourceSyncJobsCommandOutput,
|
|
5
5
|
} from "../commands/ListDataSourceSyncJobsCommand";
|
|
6
6
|
import { KendraPaginationConfiguration } from "./Interfaces";
|
|
7
|
-
export declare
|
|
7
|
+
export declare const paginateListDataSourceSyncJobs: (
|
|
8
8
|
config: KendraPaginationConfiguration,
|
|
9
9
|
input: ListDataSourceSyncJobsCommandInput,
|
|
10
|
-
...
|
|
11
|
-
)
|
|
10
|
+
...rest: any[]
|
|
11
|
+
) => Paginator<ListDataSourceSyncJobsCommandOutput>;
|
|
@@ -4,8 +4,8 @@ import {
|
|
|
4
4
|
ListDataSourcesCommandOutput,
|
|
5
5
|
} from "../commands/ListDataSourcesCommand";
|
|
6
6
|
import { KendraPaginationConfiguration } from "./Interfaces";
|
|
7
|
-
export declare
|
|
7
|
+
export declare const paginateListDataSources: (
|
|
8
8
|
config: KendraPaginationConfiguration,
|
|
9
9
|
input: ListDataSourcesCommandInput,
|
|
10
|
-
...
|
|
11
|
-
)
|
|
10
|
+
...rest: any[]
|
|
11
|
+
) => Paginator<ListDataSourcesCommandOutput>;
|
|
@@ -4,8 +4,8 @@ import {
|
|
|
4
4
|
ListEntityPersonasCommandOutput,
|
|
5
5
|
} from "../commands/ListEntityPersonasCommand";
|
|
6
6
|
import { KendraPaginationConfiguration } from "./Interfaces";
|
|
7
|
-
export declare
|
|
7
|
+
export declare const paginateListEntityPersonas: (
|
|
8
8
|
config: KendraPaginationConfiguration,
|
|
9
9
|
input: ListEntityPersonasCommandInput,
|
|
10
|
-
...
|
|
11
|
-
)
|
|
10
|
+
...rest: any[]
|
|
11
|
+
) => Paginator<ListEntityPersonasCommandOutput>;
|
|
@@ -4,8 +4,8 @@ import {
|
|
|
4
4
|
ListExperienceEntitiesCommandOutput,
|
|
5
5
|
} from "../commands/ListExperienceEntitiesCommand";
|
|
6
6
|
import { KendraPaginationConfiguration } from "./Interfaces";
|
|
7
|
-
export declare
|
|
7
|
+
export declare const paginateListExperienceEntities: (
|
|
8
8
|
config: KendraPaginationConfiguration,
|
|
9
9
|
input: ListExperienceEntitiesCommandInput,
|
|
10
|
-
...
|
|
11
|
-
)
|
|
10
|
+
...rest: any[]
|
|
11
|
+
) => Paginator<ListExperienceEntitiesCommandOutput>;
|
|
@@ -4,8 +4,8 @@ import {
|
|
|
4
4
|
ListExperiencesCommandOutput,
|
|
5
5
|
} from "../commands/ListExperiencesCommand";
|
|
6
6
|
import { KendraPaginationConfiguration } from "./Interfaces";
|
|
7
|
-
export declare
|
|
7
|
+
export declare const paginateListExperiences: (
|
|
8
8
|
config: KendraPaginationConfiguration,
|
|
9
9
|
input: ListExperiencesCommandInput,
|
|
10
|
-
...
|
|
11
|
-
)
|
|
10
|
+
...rest: any[]
|
|
11
|
+
) => Paginator<ListExperiencesCommandOutput>;
|
|
@@ -4,8 +4,8 @@ import {
|
|
|
4
4
|
ListFaqsCommandOutput,
|
|
5
5
|
} from "../commands/ListFaqsCommand";
|
|
6
6
|
import { KendraPaginationConfiguration } from "./Interfaces";
|
|
7
|
-
export declare
|
|
7
|
+
export declare const paginateListFaqs: (
|
|
8
8
|
config: KendraPaginationConfiguration,
|
|
9
9
|
input: ListFaqsCommandInput,
|
|
10
|
-
...
|
|
11
|
-
)
|
|
10
|
+
...rest: any[]
|
|
11
|
+
) => Paginator<ListFaqsCommandOutput>;
|
|
@@ -4,8 +4,8 @@ import {
|
|
|
4
4
|
ListGroupsOlderThanOrderingIdCommandOutput,
|
|
5
5
|
} from "../commands/ListGroupsOlderThanOrderingIdCommand";
|
|
6
6
|
import { KendraPaginationConfiguration } from "./Interfaces";
|
|
7
|
-
export declare
|
|
7
|
+
export declare const paginateListGroupsOlderThanOrderingId: (
|
|
8
8
|
config: KendraPaginationConfiguration,
|
|
9
9
|
input: ListGroupsOlderThanOrderingIdCommandInput,
|
|
10
|
-
...
|
|
11
|
-
)
|
|
10
|
+
...rest: any[]
|
|
11
|
+
) => Paginator<ListGroupsOlderThanOrderingIdCommandOutput>;
|
|
@@ -4,8 +4,8 @@ import {
|
|
|
4
4
|
ListIndicesCommandOutput,
|
|
5
5
|
} from "../commands/ListIndicesCommand";
|
|
6
6
|
import { KendraPaginationConfiguration } from "./Interfaces";
|
|
7
|
-
export declare
|
|
7
|
+
export declare const paginateListIndices: (
|
|
8
8
|
config: KendraPaginationConfiguration,
|
|
9
9
|
input: ListIndicesCommandInput,
|
|
10
|
-
...
|
|
11
|
-
)
|
|
10
|
+
...rest: any[]
|
|
11
|
+
) => Paginator<ListIndicesCommandOutput>;
|
|
@@ -4,8 +4,8 @@ import {
|
|
|
4
4
|
ListQuerySuggestionsBlockListsCommandOutput,
|
|
5
5
|
} from "../commands/ListQuerySuggestionsBlockListsCommand";
|
|
6
6
|
import { KendraPaginationConfiguration } from "./Interfaces";
|
|
7
|
-
export declare
|
|
7
|
+
export declare const paginateListQuerySuggestionsBlockLists: (
|
|
8
8
|
config: KendraPaginationConfiguration,
|
|
9
9
|
input: ListQuerySuggestionsBlockListsCommandInput,
|
|
10
|
-
...
|
|
11
|
-
)
|
|
10
|
+
...rest: any[]
|
|
11
|
+
) => Paginator<ListQuerySuggestionsBlockListsCommandOutput>;
|
|
@@ -4,8 +4,8 @@ import {
|
|
|
4
4
|
ListThesauriCommandOutput,
|
|
5
5
|
} from "../commands/ListThesauriCommand";
|
|
6
6
|
import { KendraPaginationConfiguration } from "./Interfaces";
|
|
7
|
-
export declare
|
|
7
|
+
export declare const paginateListThesauri: (
|
|
8
8
|
config: KendraPaginationConfiguration,
|
|
9
9
|
input: ListThesauriCommandInput,
|
|
10
|
-
...
|
|
11
|
-
)
|
|
10
|
+
...rest: any[]
|
|
11
|
+
) => Paginator<ListThesauriCommandOutput>;
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aws-sdk/client-kendra",
|
|
3
3
|
"description": "AWS SDK for JavaScript Kendra Client for Node.js, Browser and React Native",
|
|
4
|
-
"version": "3.
|
|
4
|
+
"version": "3.478.0",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
|
|
7
7
|
"build:cjs": "tsc -p tsconfig.cjs.json",
|
|
@@ -20,20 +20,21 @@
|
|
|
20
20
|
"dependencies": {
|
|
21
21
|
"@aws-crypto/sha256-browser": "3.0.0",
|
|
22
22
|
"@aws-crypto/sha256-js": "3.0.0",
|
|
23
|
-
"@aws-sdk/client-sts": "3.
|
|
23
|
+
"@aws-sdk/client-sts": "3.478.0",
|
|
24
24
|
"@aws-sdk/core": "3.477.0",
|
|
25
|
-
"@aws-sdk/credential-provider-node": "3.
|
|
25
|
+
"@aws-sdk/credential-provider-node": "3.478.0",
|
|
26
26
|
"@aws-sdk/middleware-host-header": "3.468.0",
|
|
27
27
|
"@aws-sdk/middleware-logger": "3.468.0",
|
|
28
28
|
"@aws-sdk/middleware-recursion-detection": "3.468.0",
|
|
29
29
|
"@aws-sdk/middleware-signing": "3.468.0",
|
|
30
|
-
"@aws-sdk/middleware-user-agent": "3.
|
|
30
|
+
"@aws-sdk/middleware-user-agent": "3.478.0",
|
|
31
31
|
"@aws-sdk/region-config-resolver": "3.470.0",
|
|
32
32
|
"@aws-sdk/types": "3.468.0",
|
|
33
|
-
"@aws-sdk/util-endpoints": "3.
|
|
33
|
+
"@aws-sdk/util-endpoints": "3.478.0",
|
|
34
34
|
"@aws-sdk/util-user-agent-browser": "3.468.0",
|
|
35
35
|
"@aws-sdk/util-user-agent-node": "3.470.0",
|
|
36
36
|
"@smithy/config-resolver": "^2.0.21",
|
|
37
|
+
"@smithy/core": "^1.2.0",
|
|
37
38
|
"@smithy/fetch-http-handler": "^2.3.1",
|
|
38
39
|
"@smithy/hash-node": "^2.0.17",
|
|
39
40
|
"@smithy/invalid-dependency": "^2.0.15",
|