@aws-sdk/client-bedrock-agent 3.477.0 → 3.479.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.
Files changed (40) hide show
  1. package/dist-cjs/models/models_0.js +1 -0
  2. package/dist-cjs/pagination/ListAgentActionGroupsPaginator.js +2 -24
  3. package/dist-cjs/pagination/ListAgentAliasesPaginator.js +2 -24
  4. package/dist-cjs/pagination/ListAgentKnowledgeBasesPaginator.js +2 -24
  5. package/dist-cjs/pagination/ListAgentVersionsPaginator.js +2 -24
  6. package/dist-cjs/pagination/ListAgentsPaginator.js +2 -24
  7. package/dist-cjs/pagination/ListDataSourcesPaginator.js +2 -24
  8. package/dist-cjs/pagination/ListIngestionJobsPaginator.js +2 -24
  9. package/dist-cjs/pagination/ListKnowledgeBasesPaginator.js +2 -24
  10. package/dist-es/models/models_0.js +1 -0
  11. package/dist-es/pagination/ListAgentActionGroupsPaginator.js +2 -23
  12. package/dist-es/pagination/ListAgentAliasesPaginator.js +2 -23
  13. package/dist-es/pagination/ListAgentKnowledgeBasesPaginator.js +2 -23
  14. package/dist-es/pagination/ListAgentVersionsPaginator.js +2 -23
  15. package/dist-es/pagination/ListAgentsPaginator.js +2 -23
  16. package/dist-es/pagination/ListDataSourcesPaginator.js +2 -23
  17. package/dist-es/pagination/ListIngestionJobsPaginator.js +2 -23
  18. package/dist-es/pagination/ListKnowledgeBasesPaginator.js +2 -23
  19. package/dist-types/commands/CreateKnowledgeBaseCommand.d.ts +26 -2
  20. package/dist-types/commands/GetKnowledgeBaseCommand.d.ts +13 -1
  21. package/dist-types/commands/UpdateKnowledgeBaseCommand.d.ts +26 -2
  22. package/dist-types/models/models_0.d.ts +63 -0
  23. package/dist-types/pagination/ListAgentActionGroupsPaginator.d.ts +1 -1
  24. package/dist-types/pagination/ListAgentAliasesPaginator.d.ts +1 -1
  25. package/dist-types/pagination/ListAgentKnowledgeBasesPaginator.d.ts +1 -1
  26. package/dist-types/pagination/ListAgentVersionsPaginator.d.ts +1 -1
  27. package/dist-types/pagination/ListAgentsPaginator.d.ts +1 -1
  28. package/dist-types/pagination/ListDataSourcesPaginator.d.ts +1 -1
  29. package/dist-types/pagination/ListIngestionJobsPaginator.d.ts +1 -1
  30. package/dist-types/pagination/ListKnowledgeBasesPaginator.d.ts +1 -1
  31. package/dist-types/ts3.4/models/models_0.d.ts +15 -0
  32. package/dist-types/ts3.4/pagination/ListAgentActionGroupsPaginator.d.ts +3 -3
  33. package/dist-types/ts3.4/pagination/ListAgentAliasesPaginator.d.ts +3 -3
  34. package/dist-types/ts3.4/pagination/ListAgentKnowledgeBasesPaginator.d.ts +3 -3
  35. package/dist-types/ts3.4/pagination/ListAgentVersionsPaginator.d.ts +3 -3
  36. package/dist-types/ts3.4/pagination/ListAgentsPaginator.d.ts +3 -3
  37. package/dist-types/ts3.4/pagination/ListDataSourcesPaginator.d.ts +3 -3
  38. package/dist-types/ts3.4/pagination/ListIngestionJobsPaginator.d.ts +3 -3
  39. package/dist-types/ts3.4/pagination/ListKnowledgeBasesPaginator.d.ts +3 -3
  40. package/package.json +5 -5
@@ -192,6 +192,7 @@ exports.KnowledgeBaseType = {
192
192
  exports.KnowledgeBaseStorageType = {
193
193
  OPENSEARCH_SERVERLESS: "OPENSEARCH_SERVERLESS",
194
194
  PINECONE: "PINECONE",
195
+ RDS: "RDS",
195
196
  REDIS_ENTERPRISE_CLOUD: "REDIS_ENTERPRISE_CLOUD",
196
197
  };
197
198
  exports.KnowledgeBaseStatus = {
@@ -1,29 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.paginateListAgentActionGroups = void 0;
4
+ const core_1 = require("@smithy/core");
4
5
  const BedrockAgentClient_1 = require("../BedrockAgentClient");
5
6
  const ListAgentActionGroupsCommand_1 = require("../commands/ListAgentActionGroupsCommand");
6
- const makePagedClientRequest = async (client, input, ...args) => {
7
- return await client.send(new ListAgentActionGroupsCommand_1.ListAgentActionGroupsCommand(input), ...args);
8
- };
9
- async function* paginateListAgentActionGroups(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 BedrockAgentClient_1.BedrockAgentClient) {
17
- page = await makePagedClientRequest(config.client, input, ...additionalArguments);
18
- }
19
- else {
20
- throw new Error("Invalid client, expected BedrockAgent | BedrockAgentClient");
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.paginateListAgentActionGroups = paginateListAgentActionGroups;
7
+ exports.paginateListAgentActionGroups = (0, core_1.createPaginator)(BedrockAgentClient_1.BedrockAgentClient, ListAgentActionGroupsCommand_1.ListAgentActionGroupsCommand, "nextToken", "nextToken", "maxResults");
@@ -1,29 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.paginateListAgentAliases = void 0;
4
+ const core_1 = require("@smithy/core");
4
5
  const BedrockAgentClient_1 = require("../BedrockAgentClient");
5
6
  const ListAgentAliasesCommand_1 = require("../commands/ListAgentAliasesCommand");
6
- const makePagedClientRequest = async (client, input, ...args) => {
7
- return await client.send(new ListAgentAliasesCommand_1.ListAgentAliasesCommand(input), ...args);
8
- };
9
- async function* paginateListAgentAliases(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 BedrockAgentClient_1.BedrockAgentClient) {
17
- page = await makePagedClientRequest(config.client, input, ...additionalArguments);
18
- }
19
- else {
20
- throw new Error("Invalid client, expected BedrockAgent | BedrockAgentClient");
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.paginateListAgentAliases = paginateListAgentAliases;
7
+ exports.paginateListAgentAliases = (0, core_1.createPaginator)(BedrockAgentClient_1.BedrockAgentClient, ListAgentAliasesCommand_1.ListAgentAliasesCommand, "nextToken", "nextToken", "maxResults");
@@ -1,29 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.paginateListAgentKnowledgeBases = void 0;
4
+ const core_1 = require("@smithy/core");
4
5
  const BedrockAgentClient_1 = require("../BedrockAgentClient");
5
6
  const ListAgentKnowledgeBasesCommand_1 = require("../commands/ListAgentKnowledgeBasesCommand");
6
- const makePagedClientRequest = async (client, input, ...args) => {
7
- return await client.send(new ListAgentKnowledgeBasesCommand_1.ListAgentKnowledgeBasesCommand(input), ...args);
8
- };
9
- async function* paginateListAgentKnowledgeBases(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 BedrockAgentClient_1.BedrockAgentClient) {
17
- page = await makePagedClientRequest(config.client, input, ...additionalArguments);
18
- }
19
- else {
20
- throw new Error("Invalid client, expected BedrockAgent | BedrockAgentClient");
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.paginateListAgentKnowledgeBases = paginateListAgentKnowledgeBases;
7
+ exports.paginateListAgentKnowledgeBases = (0, core_1.createPaginator)(BedrockAgentClient_1.BedrockAgentClient, ListAgentKnowledgeBasesCommand_1.ListAgentKnowledgeBasesCommand, "nextToken", "nextToken", "maxResults");
@@ -1,29 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.paginateListAgentVersions = void 0;
4
+ const core_1 = require("@smithy/core");
4
5
  const BedrockAgentClient_1 = require("../BedrockAgentClient");
5
6
  const ListAgentVersionsCommand_1 = require("../commands/ListAgentVersionsCommand");
6
- const makePagedClientRequest = async (client, input, ...args) => {
7
- return await client.send(new ListAgentVersionsCommand_1.ListAgentVersionsCommand(input), ...args);
8
- };
9
- async function* paginateListAgentVersions(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 BedrockAgentClient_1.BedrockAgentClient) {
17
- page = await makePagedClientRequest(config.client, input, ...additionalArguments);
18
- }
19
- else {
20
- throw new Error("Invalid client, expected BedrockAgent | BedrockAgentClient");
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.paginateListAgentVersions = paginateListAgentVersions;
7
+ exports.paginateListAgentVersions = (0, core_1.createPaginator)(BedrockAgentClient_1.BedrockAgentClient, ListAgentVersionsCommand_1.ListAgentVersionsCommand, "nextToken", "nextToken", "maxResults");
@@ -1,29 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.paginateListAgents = void 0;
4
+ const core_1 = require("@smithy/core");
4
5
  const BedrockAgentClient_1 = require("../BedrockAgentClient");
5
6
  const ListAgentsCommand_1 = require("../commands/ListAgentsCommand");
6
- const makePagedClientRequest = async (client, input, ...args) => {
7
- return await client.send(new ListAgentsCommand_1.ListAgentsCommand(input), ...args);
8
- };
9
- async function* paginateListAgents(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 BedrockAgentClient_1.BedrockAgentClient) {
17
- page = await makePagedClientRequest(config.client, input, ...additionalArguments);
18
- }
19
- else {
20
- throw new Error("Invalid client, expected BedrockAgent | BedrockAgentClient");
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.paginateListAgents = paginateListAgents;
7
+ exports.paginateListAgents = (0, core_1.createPaginator)(BedrockAgentClient_1.BedrockAgentClient, ListAgentsCommand_1.ListAgentsCommand, "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 BedrockAgentClient_1 = require("../BedrockAgentClient");
5
6
  const ListDataSourcesCommand_1 = require("../commands/ListDataSourcesCommand");
6
- const makePagedClientRequest = async (client, input, ...args) => {
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 BedrockAgentClient_1.BedrockAgentClient) {
17
- page = await makePagedClientRequest(config.client, input, ...additionalArguments);
18
- }
19
- else {
20
- throw new Error("Invalid client, expected BedrockAgent | BedrockAgentClient");
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)(BedrockAgentClient_1.BedrockAgentClient, 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.paginateListIngestionJobs = void 0;
4
+ const core_1 = require("@smithy/core");
4
5
  const BedrockAgentClient_1 = require("../BedrockAgentClient");
5
6
  const ListIngestionJobsCommand_1 = require("../commands/ListIngestionJobsCommand");
6
- const makePagedClientRequest = async (client, input, ...args) => {
7
- return await client.send(new ListIngestionJobsCommand_1.ListIngestionJobsCommand(input), ...args);
8
- };
9
- async function* paginateListIngestionJobs(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 BedrockAgentClient_1.BedrockAgentClient) {
17
- page = await makePagedClientRequest(config.client, input, ...additionalArguments);
18
- }
19
- else {
20
- throw new Error("Invalid client, expected BedrockAgent | BedrockAgentClient");
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.paginateListIngestionJobs = paginateListIngestionJobs;
7
+ exports.paginateListIngestionJobs = (0, core_1.createPaginator)(BedrockAgentClient_1.BedrockAgentClient, ListIngestionJobsCommand_1.ListIngestionJobsCommand, "nextToken", "nextToken", "maxResults");
@@ -1,29 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.paginateListKnowledgeBases = void 0;
4
+ const core_1 = require("@smithy/core");
4
5
  const BedrockAgentClient_1 = require("../BedrockAgentClient");
5
6
  const ListKnowledgeBasesCommand_1 = require("../commands/ListKnowledgeBasesCommand");
6
- const makePagedClientRequest = async (client, input, ...args) => {
7
- return await client.send(new ListKnowledgeBasesCommand_1.ListKnowledgeBasesCommand(input), ...args);
8
- };
9
- async function* paginateListKnowledgeBases(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 BedrockAgentClient_1.BedrockAgentClient) {
17
- page = await makePagedClientRequest(config.client, input, ...additionalArguments);
18
- }
19
- else {
20
- throw new Error("Invalid client, expected BedrockAgent | BedrockAgentClient");
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.paginateListKnowledgeBases = paginateListKnowledgeBases;
7
+ exports.paginateListKnowledgeBases = (0, core_1.createPaginator)(BedrockAgentClient_1.BedrockAgentClient, ListKnowledgeBasesCommand_1.ListKnowledgeBasesCommand, "nextToken", "nextToken", "maxResults");
@@ -182,6 +182,7 @@ export const KnowledgeBaseType = {
182
182
  export const KnowledgeBaseStorageType = {
183
183
  OPENSEARCH_SERVERLESS: "OPENSEARCH_SERVERLESS",
184
184
  PINECONE: "PINECONE",
185
+ RDS: "RDS",
185
186
  REDIS_ENTERPRISE_CLOUD: "REDIS_ENTERPRISE_CLOUD",
186
187
  };
187
188
  export const KnowledgeBaseStatus = {
@@ -1,25 +1,4 @@
1
+ import { createPaginator } from "@smithy/core";
1
2
  import { BedrockAgentClient } from "../BedrockAgentClient";
2
3
  import { ListAgentActionGroupsCommand, } from "../commands/ListAgentActionGroupsCommand";
3
- const makePagedClientRequest = async (client, input, ...args) => {
4
- return await client.send(new ListAgentActionGroupsCommand(input), ...args);
5
- };
6
- export async function* paginateListAgentActionGroups(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 BedrockAgentClient) {
14
- page = await makePagedClientRequest(config.client, input, ...additionalArguments);
15
- }
16
- else {
17
- throw new Error("Invalid client, expected BedrockAgent | BedrockAgentClient");
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 paginateListAgentActionGroups = createPaginator(BedrockAgentClient, ListAgentActionGroupsCommand, "nextToken", "nextToken", "maxResults");
@@ -1,25 +1,4 @@
1
+ import { createPaginator } from "@smithy/core";
1
2
  import { BedrockAgentClient } from "../BedrockAgentClient";
2
3
  import { ListAgentAliasesCommand, } from "../commands/ListAgentAliasesCommand";
3
- const makePagedClientRequest = async (client, input, ...args) => {
4
- return await client.send(new ListAgentAliasesCommand(input), ...args);
5
- };
6
- export async function* paginateListAgentAliases(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 BedrockAgentClient) {
14
- page = await makePagedClientRequest(config.client, input, ...additionalArguments);
15
- }
16
- else {
17
- throw new Error("Invalid client, expected BedrockAgent | BedrockAgentClient");
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 paginateListAgentAliases = createPaginator(BedrockAgentClient, ListAgentAliasesCommand, "nextToken", "nextToken", "maxResults");
@@ -1,25 +1,4 @@
1
+ import { createPaginator } from "@smithy/core";
1
2
  import { BedrockAgentClient } from "../BedrockAgentClient";
2
3
  import { ListAgentKnowledgeBasesCommand, } from "../commands/ListAgentKnowledgeBasesCommand";
3
- const makePagedClientRequest = async (client, input, ...args) => {
4
- return await client.send(new ListAgentKnowledgeBasesCommand(input), ...args);
5
- };
6
- export async function* paginateListAgentKnowledgeBases(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 BedrockAgentClient) {
14
- page = await makePagedClientRequest(config.client, input, ...additionalArguments);
15
- }
16
- else {
17
- throw new Error("Invalid client, expected BedrockAgent | BedrockAgentClient");
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 paginateListAgentKnowledgeBases = createPaginator(BedrockAgentClient, ListAgentKnowledgeBasesCommand, "nextToken", "nextToken", "maxResults");
@@ -1,25 +1,4 @@
1
+ import { createPaginator } from "@smithy/core";
1
2
  import { BedrockAgentClient } from "../BedrockAgentClient";
2
3
  import { ListAgentVersionsCommand, } from "../commands/ListAgentVersionsCommand";
3
- const makePagedClientRequest = async (client, input, ...args) => {
4
- return await client.send(new ListAgentVersionsCommand(input), ...args);
5
- };
6
- export async function* paginateListAgentVersions(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 BedrockAgentClient) {
14
- page = await makePagedClientRequest(config.client, input, ...additionalArguments);
15
- }
16
- else {
17
- throw new Error("Invalid client, expected BedrockAgent | BedrockAgentClient");
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 paginateListAgentVersions = createPaginator(BedrockAgentClient, ListAgentVersionsCommand, "nextToken", "nextToken", "maxResults");
@@ -1,25 +1,4 @@
1
+ import { createPaginator } from "@smithy/core";
1
2
  import { BedrockAgentClient } from "../BedrockAgentClient";
2
3
  import { ListAgentsCommand } from "../commands/ListAgentsCommand";
3
- const makePagedClientRequest = async (client, input, ...args) => {
4
- return await client.send(new ListAgentsCommand(input), ...args);
5
- };
6
- export async function* paginateListAgents(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 BedrockAgentClient) {
14
- page = await makePagedClientRequest(config.client, input, ...additionalArguments);
15
- }
16
- else {
17
- throw new Error("Invalid client, expected BedrockAgent | BedrockAgentClient");
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 paginateListAgents = createPaginator(BedrockAgentClient, ListAgentsCommand, "nextToken", "nextToken", "maxResults");
@@ -1,25 +1,4 @@
1
+ import { createPaginator } from "@smithy/core";
1
2
  import { BedrockAgentClient } from "../BedrockAgentClient";
2
3
  import { ListDataSourcesCommand, } from "../commands/ListDataSourcesCommand";
3
- const makePagedClientRequest = async (client, input, ...args) => {
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 BedrockAgentClient) {
14
- page = await makePagedClientRequest(config.client, input, ...additionalArguments);
15
- }
16
- else {
17
- throw new Error("Invalid client, expected BedrockAgent | BedrockAgentClient");
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(BedrockAgentClient, ListDataSourcesCommand, "nextToken", "nextToken", "maxResults");
@@ -1,25 +1,4 @@
1
+ import { createPaginator } from "@smithy/core";
1
2
  import { BedrockAgentClient } from "../BedrockAgentClient";
2
3
  import { ListIngestionJobsCommand, } from "../commands/ListIngestionJobsCommand";
3
- const makePagedClientRequest = async (client, input, ...args) => {
4
- return await client.send(new ListIngestionJobsCommand(input), ...args);
5
- };
6
- export async function* paginateListIngestionJobs(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 BedrockAgentClient) {
14
- page = await makePagedClientRequest(config.client, input, ...additionalArguments);
15
- }
16
- else {
17
- throw new Error("Invalid client, expected BedrockAgent | BedrockAgentClient");
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 paginateListIngestionJobs = createPaginator(BedrockAgentClient, ListIngestionJobsCommand, "nextToken", "nextToken", "maxResults");
@@ -1,25 +1,4 @@
1
+ import { createPaginator } from "@smithy/core";
1
2
  import { BedrockAgentClient } from "../BedrockAgentClient";
2
3
  import { ListKnowledgeBasesCommand, } from "../commands/ListKnowledgeBasesCommand";
3
- const makePagedClientRequest = async (client, input, ...args) => {
4
- return await client.send(new ListKnowledgeBasesCommand(input), ...args);
5
- };
6
- export async function* paginateListKnowledgeBases(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 BedrockAgentClient) {
14
- page = await makePagedClientRequest(config.client, input, ...additionalArguments);
15
- }
16
- else {
17
- throw new Error("Invalid client, expected BedrockAgent | BedrockAgentClient");
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 paginateListKnowledgeBases = createPaginator(BedrockAgentClient, ListKnowledgeBasesCommand, "nextToken", "nextToken", "maxResults");
@@ -42,7 +42,7 @@ export interface CreateKnowledgeBaseCommandOutput extends CreateKnowledgeBaseRes
42
42
  * },
43
43
  * },
44
44
  * storageConfiguration: { // StorageConfiguration
45
- * type: "OPENSEARCH_SERVERLESS" || "PINECONE" || "REDIS_ENTERPRISE_CLOUD", // required
45
+ * type: "OPENSEARCH_SERVERLESS" || "PINECONE" || "REDIS_ENTERPRISE_CLOUD" || "RDS", // required
46
46
  * opensearchServerlessConfiguration: { // OpenSearchServerlessConfiguration
47
47
  * collectionArn: "STRING_VALUE", // required
48
48
  * vectorIndexName: "STRING_VALUE", // required
@@ -71,6 +71,18 @@ export interface CreateKnowledgeBaseCommandOutput extends CreateKnowledgeBaseRes
71
71
  * metadataField: "STRING_VALUE", // required
72
72
  * },
73
73
  * },
74
+ * rdsConfiguration: { // RdsConfiguration
75
+ * resourceArn: "STRING_VALUE", // required
76
+ * credentialsSecretArn: "STRING_VALUE", // required
77
+ * databaseName: "STRING_VALUE", // required
78
+ * tableName: "STRING_VALUE", // required
79
+ * fieldMapping: { // RdsFieldMapping
80
+ * primaryKeyField: "STRING_VALUE", // required
81
+ * vectorField: "STRING_VALUE", // required
82
+ * textField: "STRING_VALUE", // required
83
+ * metadataField: "STRING_VALUE", // required
84
+ * },
85
+ * },
74
86
  * },
75
87
  * tags: { // TagsMap
76
88
  * "<keys>": "STRING_VALUE",
@@ -92,7 +104,7 @@ export interface CreateKnowledgeBaseCommandOutput extends CreateKnowledgeBaseRes
92
104
  * // },
93
105
  * // },
94
106
  * // storageConfiguration: { // StorageConfiguration
95
- * // type: "OPENSEARCH_SERVERLESS" || "PINECONE" || "REDIS_ENTERPRISE_CLOUD", // required
107
+ * // type: "OPENSEARCH_SERVERLESS" || "PINECONE" || "REDIS_ENTERPRISE_CLOUD" || "RDS", // required
96
108
  * // opensearchServerlessConfiguration: { // OpenSearchServerlessConfiguration
97
109
  * // collectionArn: "STRING_VALUE", // required
98
110
  * // vectorIndexName: "STRING_VALUE", // required
@@ -121,6 +133,18 @@ export interface CreateKnowledgeBaseCommandOutput extends CreateKnowledgeBaseRes
121
133
  * // metadataField: "STRING_VALUE", // required
122
134
  * // },
123
135
  * // },
136
+ * // rdsConfiguration: { // RdsConfiguration
137
+ * // resourceArn: "STRING_VALUE", // required
138
+ * // credentialsSecretArn: "STRING_VALUE", // required
139
+ * // databaseName: "STRING_VALUE", // required
140
+ * // tableName: "STRING_VALUE", // required
141
+ * // fieldMapping: { // RdsFieldMapping
142
+ * // primaryKeyField: "STRING_VALUE", // required
143
+ * // vectorField: "STRING_VALUE", // required
144
+ * // textField: "STRING_VALUE", // required
145
+ * // metadataField: "STRING_VALUE", // required
146
+ * // },
147
+ * // },
124
148
  * // },
125
149
  * // status: "CREATING" || "ACTIVE" || "DELETING" || "UPDATING" || "FAILED", // required
126
150
  * // createdAt: new Date("TIMESTAMP"), // required
@@ -49,7 +49,7 @@ export interface GetKnowledgeBaseCommandOutput extends GetKnowledgeBaseResponse,
49
49
  * // },
50
50
  * // },
51
51
  * // storageConfiguration: { // StorageConfiguration
52
- * // type: "OPENSEARCH_SERVERLESS" || "PINECONE" || "REDIS_ENTERPRISE_CLOUD", // required
52
+ * // type: "OPENSEARCH_SERVERLESS" || "PINECONE" || "REDIS_ENTERPRISE_CLOUD" || "RDS", // required
53
53
  * // opensearchServerlessConfiguration: { // OpenSearchServerlessConfiguration
54
54
  * // collectionArn: "STRING_VALUE", // required
55
55
  * // vectorIndexName: "STRING_VALUE", // required
@@ -78,6 +78,18 @@ export interface GetKnowledgeBaseCommandOutput extends GetKnowledgeBaseResponse,
78
78
  * // metadataField: "STRING_VALUE", // required
79
79
  * // },
80
80
  * // },
81
+ * // rdsConfiguration: { // RdsConfiguration
82
+ * // resourceArn: "STRING_VALUE", // required
83
+ * // credentialsSecretArn: "STRING_VALUE", // required
84
+ * // databaseName: "STRING_VALUE", // required
85
+ * // tableName: "STRING_VALUE", // required
86
+ * // fieldMapping: { // RdsFieldMapping
87
+ * // primaryKeyField: "STRING_VALUE", // required
88
+ * // vectorField: "STRING_VALUE", // required
89
+ * // textField: "STRING_VALUE", // required
90
+ * // metadataField: "STRING_VALUE", // required
91
+ * // },
92
+ * // },
81
93
  * // },
82
94
  * // status: "CREATING" || "ACTIVE" || "DELETING" || "UPDATING" || "FAILED", // required
83
95
  * // createdAt: new Date("TIMESTAMP"), // required
@@ -42,7 +42,7 @@ export interface UpdateKnowledgeBaseCommandOutput extends UpdateKnowledgeBaseRes
42
42
  * },
43
43
  * },
44
44
  * storageConfiguration: { // StorageConfiguration
45
- * type: "OPENSEARCH_SERVERLESS" || "PINECONE" || "REDIS_ENTERPRISE_CLOUD", // required
45
+ * type: "OPENSEARCH_SERVERLESS" || "PINECONE" || "REDIS_ENTERPRISE_CLOUD" || "RDS", // required
46
46
  * opensearchServerlessConfiguration: { // OpenSearchServerlessConfiguration
47
47
  * collectionArn: "STRING_VALUE", // required
48
48
  * vectorIndexName: "STRING_VALUE", // required
@@ -71,6 +71,18 @@ export interface UpdateKnowledgeBaseCommandOutput extends UpdateKnowledgeBaseRes
71
71
  * metadataField: "STRING_VALUE", // required
72
72
  * },
73
73
  * },
74
+ * rdsConfiguration: { // RdsConfiguration
75
+ * resourceArn: "STRING_VALUE", // required
76
+ * credentialsSecretArn: "STRING_VALUE", // required
77
+ * databaseName: "STRING_VALUE", // required
78
+ * tableName: "STRING_VALUE", // required
79
+ * fieldMapping: { // RdsFieldMapping
80
+ * primaryKeyField: "STRING_VALUE", // required
81
+ * vectorField: "STRING_VALUE", // required
82
+ * textField: "STRING_VALUE", // required
83
+ * metadataField: "STRING_VALUE", // required
84
+ * },
85
+ * },
74
86
  * },
75
87
  * };
76
88
  * const command = new UpdateKnowledgeBaseCommand(input);
@@ -89,7 +101,7 @@ export interface UpdateKnowledgeBaseCommandOutput extends UpdateKnowledgeBaseRes
89
101
  * // },
90
102
  * // },
91
103
  * // storageConfiguration: { // StorageConfiguration
92
- * // type: "OPENSEARCH_SERVERLESS" || "PINECONE" || "REDIS_ENTERPRISE_CLOUD", // required
104
+ * // type: "OPENSEARCH_SERVERLESS" || "PINECONE" || "REDIS_ENTERPRISE_CLOUD" || "RDS", // required
93
105
  * // opensearchServerlessConfiguration: { // OpenSearchServerlessConfiguration
94
106
  * // collectionArn: "STRING_VALUE", // required
95
107
  * // vectorIndexName: "STRING_VALUE", // required
@@ -118,6 +130,18 @@ export interface UpdateKnowledgeBaseCommandOutput extends UpdateKnowledgeBaseRes
118
130
  * // metadataField: "STRING_VALUE", // required
119
131
  * // },
120
132
  * // },
133
+ * // rdsConfiguration: { // RdsConfiguration
134
+ * // resourceArn: "STRING_VALUE", // required
135
+ * // credentialsSecretArn: "STRING_VALUE", // required
136
+ * // databaseName: "STRING_VALUE", // required
137
+ * // tableName: "STRING_VALUE", // required
138
+ * // fieldMapping: { // RdsFieldMapping
139
+ * // primaryKeyField: "STRING_VALUE", // required
140
+ * // vectorField: "STRING_VALUE", // required
141
+ * // textField: "STRING_VALUE", // required
142
+ * // metadataField: "STRING_VALUE", // required
143
+ * // },
144
+ * // },
121
145
  * // },
122
146
  * // status: "CREATING" || "ACTIVE" || "DELETING" || "UPDATING" || "FAILED", // required
123
147
  * // createdAt: new Date("TIMESTAMP"), // required
@@ -2518,6 +2518,63 @@ export interface PineconeConfiguration {
2518
2518
  */
2519
2519
  fieldMapping: PineconeFieldMapping | undefined;
2520
2520
  }
2521
+ /**
2522
+ * @public
2523
+ * A mapping of Bedrock Knowledge Base fields to RDS column names
2524
+ */
2525
+ export interface RdsFieldMapping {
2526
+ /**
2527
+ * @public
2528
+ * Name of the column
2529
+ */
2530
+ primaryKeyField: string | undefined;
2531
+ /**
2532
+ * @public
2533
+ * Name of the column
2534
+ */
2535
+ vectorField: string | undefined;
2536
+ /**
2537
+ * @public
2538
+ * Name of the column
2539
+ */
2540
+ textField: string | undefined;
2541
+ /**
2542
+ * @public
2543
+ * Name of the column
2544
+ */
2545
+ metadataField: string | undefined;
2546
+ }
2547
+ /**
2548
+ * @public
2549
+ * Contains the configurations to use RDS to store knowledge base data.
2550
+ */
2551
+ export interface RdsConfiguration {
2552
+ /**
2553
+ * @public
2554
+ * Arn of a RDS Resource.
2555
+ */
2556
+ resourceArn: string | undefined;
2557
+ /**
2558
+ * @public
2559
+ * Arn of a SecretsManager Secret.
2560
+ */
2561
+ credentialsSecretArn: string | undefined;
2562
+ /**
2563
+ * @public
2564
+ * Name of the database within RDS
2565
+ */
2566
+ databaseName: string | undefined;
2567
+ /**
2568
+ * @public
2569
+ * Name of the table within RDS
2570
+ */
2571
+ tableName: string | undefined;
2572
+ /**
2573
+ * @public
2574
+ * A mapping of Bedrock Knowledge Base fields to RDS column names
2575
+ */
2576
+ fieldMapping: RdsFieldMapping | undefined;
2577
+ }
2521
2578
  /**
2522
2579
  * @public
2523
2580
  * A mapping of Bedrock Knowledge Base fields to Redis Cloud field names
@@ -2572,6 +2629,7 @@ export interface RedisEnterpriseCloudConfiguration {
2572
2629
  export declare const KnowledgeBaseStorageType: {
2573
2630
  readonly OPENSEARCH_SERVERLESS: "OPENSEARCH_SERVERLESS";
2574
2631
  readonly PINECONE: "PINECONE";
2632
+ readonly RDS: "RDS";
2575
2633
  readonly REDIS_ENTERPRISE_CLOUD: "REDIS_ENTERPRISE_CLOUD";
2576
2634
  };
2577
2635
  /**
@@ -2603,6 +2661,11 @@ export interface StorageConfiguration {
2603
2661
  * Contains the configurations to use Redis Enterprise Cloud to store knowledge base data.
2604
2662
  */
2605
2663
  redisEnterpriseCloudConfiguration?: RedisEnterpriseCloudConfiguration;
2664
+ /**
2665
+ * @public
2666
+ * Contains the configurations to use RDS to store knowledge base data.
2667
+ */
2668
+ rdsConfiguration?: RdsConfiguration;
2606
2669
  }
2607
2670
  /**
2608
2671
  * @public
@@ -4,4 +4,4 @@ import { BedrockAgentPaginationConfiguration } from "./Interfaces";
4
4
  /**
5
5
  * @public
6
6
  */
7
- export declare function paginateListAgentActionGroups(config: BedrockAgentPaginationConfiguration, input: ListAgentActionGroupsCommandInput, ...additionalArguments: any): Paginator<ListAgentActionGroupsCommandOutput>;
7
+ export declare const paginateListAgentActionGroups: (config: BedrockAgentPaginationConfiguration, input: ListAgentActionGroupsCommandInput, ...rest: any[]) => Paginator<ListAgentActionGroupsCommandOutput>;
@@ -4,4 +4,4 @@ import { BedrockAgentPaginationConfiguration } from "./Interfaces";
4
4
  /**
5
5
  * @public
6
6
  */
7
- export declare function paginateListAgentAliases(config: BedrockAgentPaginationConfiguration, input: ListAgentAliasesCommandInput, ...additionalArguments: any): Paginator<ListAgentAliasesCommandOutput>;
7
+ export declare const paginateListAgentAliases: (config: BedrockAgentPaginationConfiguration, input: ListAgentAliasesCommandInput, ...rest: any[]) => Paginator<ListAgentAliasesCommandOutput>;
@@ -4,4 +4,4 @@ import { BedrockAgentPaginationConfiguration } from "./Interfaces";
4
4
  /**
5
5
  * @public
6
6
  */
7
- export declare function paginateListAgentKnowledgeBases(config: BedrockAgentPaginationConfiguration, input: ListAgentKnowledgeBasesCommandInput, ...additionalArguments: any): Paginator<ListAgentKnowledgeBasesCommandOutput>;
7
+ export declare const paginateListAgentKnowledgeBases: (config: BedrockAgentPaginationConfiguration, input: ListAgentKnowledgeBasesCommandInput, ...rest: any[]) => Paginator<ListAgentKnowledgeBasesCommandOutput>;
@@ -4,4 +4,4 @@ import { BedrockAgentPaginationConfiguration } from "./Interfaces";
4
4
  /**
5
5
  * @public
6
6
  */
7
- export declare function paginateListAgentVersions(config: BedrockAgentPaginationConfiguration, input: ListAgentVersionsCommandInput, ...additionalArguments: any): Paginator<ListAgentVersionsCommandOutput>;
7
+ export declare const paginateListAgentVersions: (config: BedrockAgentPaginationConfiguration, input: ListAgentVersionsCommandInput, ...rest: any[]) => Paginator<ListAgentVersionsCommandOutput>;
@@ -4,4 +4,4 @@ import { BedrockAgentPaginationConfiguration } from "./Interfaces";
4
4
  /**
5
5
  * @public
6
6
  */
7
- export declare function paginateListAgents(config: BedrockAgentPaginationConfiguration, input: ListAgentsCommandInput, ...additionalArguments: any): Paginator<ListAgentsCommandOutput>;
7
+ export declare const paginateListAgents: (config: BedrockAgentPaginationConfiguration, input: ListAgentsCommandInput, ...rest: any[]) => Paginator<ListAgentsCommandOutput>;
@@ -4,4 +4,4 @@ import { BedrockAgentPaginationConfiguration } from "./Interfaces";
4
4
  /**
5
5
  * @public
6
6
  */
7
- export declare function paginateListDataSources(config: BedrockAgentPaginationConfiguration, input: ListDataSourcesCommandInput, ...additionalArguments: any): Paginator<ListDataSourcesCommandOutput>;
7
+ export declare const paginateListDataSources: (config: BedrockAgentPaginationConfiguration, input: ListDataSourcesCommandInput, ...rest: any[]) => Paginator<ListDataSourcesCommandOutput>;
@@ -4,4 +4,4 @@ import { BedrockAgentPaginationConfiguration } from "./Interfaces";
4
4
  /**
5
5
  * @public
6
6
  */
7
- export declare function paginateListIngestionJobs(config: BedrockAgentPaginationConfiguration, input: ListIngestionJobsCommandInput, ...additionalArguments: any): Paginator<ListIngestionJobsCommandOutput>;
7
+ export declare const paginateListIngestionJobs: (config: BedrockAgentPaginationConfiguration, input: ListIngestionJobsCommandInput, ...rest: any[]) => Paginator<ListIngestionJobsCommandOutput>;
@@ -4,4 +4,4 @@ import { BedrockAgentPaginationConfiguration } from "./Interfaces";
4
4
  /**
5
5
  * @public
6
6
  */
7
- export declare function paginateListKnowledgeBases(config: BedrockAgentPaginationConfiguration, input: ListKnowledgeBasesCommandInput, ...additionalArguments: any): Paginator<ListKnowledgeBasesCommandOutput>;
7
+ export declare const paginateListKnowledgeBases: (config: BedrockAgentPaginationConfiguration, input: ListKnowledgeBasesCommandInput, ...rest: any[]) => Paginator<ListKnowledgeBasesCommandOutput>;
@@ -698,6 +698,19 @@ export interface PineconeConfiguration {
698
698
  namespace?: string;
699
699
  fieldMapping: PineconeFieldMapping | undefined;
700
700
  }
701
+ export interface RdsFieldMapping {
702
+ primaryKeyField: string | undefined;
703
+ vectorField: string | undefined;
704
+ textField: string | undefined;
705
+ metadataField: string | undefined;
706
+ }
707
+ export interface RdsConfiguration {
708
+ resourceArn: string | undefined;
709
+ credentialsSecretArn: string | undefined;
710
+ databaseName: string | undefined;
711
+ tableName: string | undefined;
712
+ fieldMapping: RdsFieldMapping | undefined;
713
+ }
701
714
  export interface RedisEnterpriseCloudFieldMapping {
702
715
  vectorField: string | undefined;
703
716
  textField: string | undefined;
@@ -712,6 +725,7 @@ export interface RedisEnterpriseCloudConfiguration {
712
725
  export declare const KnowledgeBaseStorageType: {
713
726
  readonly OPENSEARCH_SERVERLESS: "OPENSEARCH_SERVERLESS";
714
727
  readonly PINECONE: "PINECONE";
728
+ readonly RDS: "RDS";
715
729
  readonly REDIS_ENTERPRISE_CLOUD: "REDIS_ENTERPRISE_CLOUD";
716
730
  };
717
731
  export type KnowledgeBaseStorageType =
@@ -721,6 +735,7 @@ export interface StorageConfiguration {
721
735
  opensearchServerlessConfiguration?: OpenSearchServerlessConfiguration;
722
736
  pineconeConfiguration?: PineconeConfiguration;
723
737
  redisEnterpriseCloudConfiguration?: RedisEnterpriseCloudConfiguration;
738
+ rdsConfiguration?: RdsConfiguration;
724
739
  }
725
740
  export interface CreateKnowledgeBaseRequest {
726
741
  clientToken?: string;
@@ -4,8 +4,8 @@ import {
4
4
  ListAgentActionGroupsCommandOutput,
5
5
  } from "../commands/ListAgentActionGroupsCommand";
6
6
  import { BedrockAgentPaginationConfiguration } from "./Interfaces";
7
- export declare function paginateListAgentActionGroups(
7
+ export declare const paginateListAgentActionGroups: (
8
8
  config: BedrockAgentPaginationConfiguration,
9
9
  input: ListAgentActionGroupsCommandInput,
10
- ...additionalArguments: any
11
- ): Paginator<ListAgentActionGroupsCommandOutput>;
10
+ ...rest: any[]
11
+ ) => Paginator<ListAgentActionGroupsCommandOutput>;
@@ -4,8 +4,8 @@ import {
4
4
  ListAgentAliasesCommandOutput,
5
5
  } from "../commands/ListAgentAliasesCommand";
6
6
  import { BedrockAgentPaginationConfiguration } from "./Interfaces";
7
- export declare function paginateListAgentAliases(
7
+ export declare const paginateListAgentAliases: (
8
8
  config: BedrockAgentPaginationConfiguration,
9
9
  input: ListAgentAliasesCommandInput,
10
- ...additionalArguments: any
11
- ): Paginator<ListAgentAliasesCommandOutput>;
10
+ ...rest: any[]
11
+ ) => Paginator<ListAgentAliasesCommandOutput>;
@@ -4,8 +4,8 @@ import {
4
4
  ListAgentKnowledgeBasesCommandOutput,
5
5
  } from "../commands/ListAgentKnowledgeBasesCommand";
6
6
  import { BedrockAgentPaginationConfiguration } from "./Interfaces";
7
- export declare function paginateListAgentKnowledgeBases(
7
+ export declare const paginateListAgentKnowledgeBases: (
8
8
  config: BedrockAgentPaginationConfiguration,
9
9
  input: ListAgentKnowledgeBasesCommandInput,
10
- ...additionalArguments: any
11
- ): Paginator<ListAgentKnowledgeBasesCommandOutput>;
10
+ ...rest: any[]
11
+ ) => Paginator<ListAgentKnowledgeBasesCommandOutput>;
@@ -4,8 +4,8 @@ import {
4
4
  ListAgentVersionsCommandOutput,
5
5
  } from "../commands/ListAgentVersionsCommand";
6
6
  import { BedrockAgentPaginationConfiguration } from "./Interfaces";
7
- export declare function paginateListAgentVersions(
7
+ export declare const paginateListAgentVersions: (
8
8
  config: BedrockAgentPaginationConfiguration,
9
9
  input: ListAgentVersionsCommandInput,
10
- ...additionalArguments: any
11
- ): Paginator<ListAgentVersionsCommandOutput>;
10
+ ...rest: any[]
11
+ ) => Paginator<ListAgentVersionsCommandOutput>;
@@ -4,8 +4,8 @@ import {
4
4
  ListAgentsCommandOutput,
5
5
  } from "../commands/ListAgentsCommand";
6
6
  import { BedrockAgentPaginationConfiguration } from "./Interfaces";
7
- export declare function paginateListAgents(
7
+ export declare const paginateListAgents: (
8
8
  config: BedrockAgentPaginationConfiguration,
9
9
  input: ListAgentsCommandInput,
10
- ...additionalArguments: any
11
- ): Paginator<ListAgentsCommandOutput>;
10
+ ...rest: any[]
11
+ ) => Paginator<ListAgentsCommandOutput>;
@@ -4,8 +4,8 @@ import {
4
4
  ListDataSourcesCommandOutput,
5
5
  } from "../commands/ListDataSourcesCommand";
6
6
  import { BedrockAgentPaginationConfiguration } from "./Interfaces";
7
- export declare function paginateListDataSources(
7
+ export declare const paginateListDataSources: (
8
8
  config: BedrockAgentPaginationConfiguration,
9
9
  input: ListDataSourcesCommandInput,
10
- ...additionalArguments: any
11
- ): Paginator<ListDataSourcesCommandOutput>;
10
+ ...rest: any[]
11
+ ) => Paginator<ListDataSourcesCommandOutput>;
@@ -4,8 +4,8 @@ import {
4
4
  ListIngestionJobsCommandOutput,
5
5
  } from "../commands/ListIngestionJobsCommand";
6
6
  import { BedrockAgentPaginationConfiguration } from "./Interfaces";
7
- export declare function paginateListIngestionJobs(
7
+ export declare const paginateListIngestionJobs: (
8
8
  config: BedrockAgentPaginationConfiguration,
9
9
  input: ListIngestionJobsCommandInput,
10
- ...additionalArguments: any
11
- ): Paginator<ListIngestionJobsCommandOutput>;
10
+ ...rest: any[]
11
+ ) => Paginator<ListIngestionJobsCommandOutput>;
@@ -4,8 +4,8 @@ import {
4
4
  ListKnowledgeBasesCommandOutput,
5
5
  } from "../commands/ListKnowledgeBasesCommand";
6
6
  import { BedrockAgentPaginationConfiguration } from "./Interfaces";
7
- export declare function paginateListKnowledgeBases(
7
+ export declare const paginateListKnowledgeBases: (
8
8
  config: BedrockAgentPaginationConfiguration,
9
9
  input: ListKnowledgeBasesCommandInput,
10
- ...additionalArguments: any
11
- ): Paginator<ListKnowledgeBasesCommandOutput>;
10
+ ...rest: any[]
11
+ ) => Paginator<ListKnowledgeBasesCommandOutput>;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@aws-sdk/client-bedrock-agent",
3
3
  "description": "AWS SDK for JavaScript Bedrock Agent Client for Node.js, Browser and React Native",
4
- "version": "3.477.0",
4
+ "version": "3.479.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,17 +20,17 @@
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.477.0",
23
+ "@aws-sdk/client-sts": "3.478.0",
24
24
  "@aws-sdk/core": "3.477.0",
25
- "@aws-sdk/credential-provider-node": "3.477.0",
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.470.0",
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.470.0",
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",