@aws-sdk/client-bedrock-agent 3.476.0 → 3.478.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist-cjs/pagination/ListAgentActionGroupsPaginator.js +2 -24
- package/dist-cjs/pagination/ListAgentAliasesPaginator.js +2 -24
- package/dist-cjs/pagination/ListAgentKnowledgeBasesPaginator.js +2 -24
- package/dist-cjs/pagination/ListAgentVersionsPaginator.js +2 -24
- package/dist-cjs/pagination/ListAgentsPaginator.js +2 -24
- package/dist-cjs/pagination/ListDataSourcesPaginator.js +2 -24
- package/dist-cjs/pagination/ListIngestionJobsPaginator.js +2 -24
- package/dist-cjs/pagination/ListKnowledgeBasesPaginator.js +2 -24
- package/dist-cjs/protocols/Aws_restJson1.js +232 -546
- package/dist-es/pagination/ListAgentActionGroupsPaginator.js +2 -23
- package/dist-es/pagination/ListAgentAliasesPaginator.js +2 -23
- package/dist-es/pagination/ListAgentKnowledgeBasesPaginator.js +2 -23
- package/dist-es/pagination/ListAgentVersionsPaginator.js +2 -23
- package/dist-es/pagination/ListAgentsPaginator.js +2 -23
- package/dist-es/pagination/ListDataSourcesPaginator.js +2 -23
- package/dist-es/pagination/ListIngestionJobsPaginator.js +2 -23
- package/dist-es/pagination/ListKnowledgeBasesPaginator.js +2 -23
- package/dist-es/protocols/Aws_restJson1.js +233 -547
- package/dist-types/pagination/ListAgentActionGroupsPaginator.d.ts +1 -1
- package/dist-types/pagination/ListAgentAliasesPaginator.d.ts +1 -1
- package/dist-types/pagination/ListAgentKnowledgeBasesPaginator.d.ts +1 -1
- package/dist-types/pagination/ListAgentVersionsPaginator.d.ts +1 -1
- package/dist-types/pagination/ListAgentsPaginator.d.ts +1 -1
- package/dist-types/pagination/ListDataSourcesPaginator.d.ts +1 -1
- package/dist-types/pagination/ListIngestionJobsPaginator.d.ts +1 -1
- package/dist-types/pagination/ListKnowledgeBasesPaginator.d.ts +1 -1
- package/dist-types/ts3.4/pagination/ListAgentActionGroupsPaginator.d.ts +3 -3
- package/dist-types/ts3.4/pagination/ListAgentAliasesPaginator.d.ts +3 -3
- package/dist-types/ts3.4/pagination/ListAgentKnowledgeBasesPaginator.d.ts +3 -3
- package/dist-types/ts3.4/pagination/ListAgentVersionsPaginator.d.ts +3 -3
- package/dist-types/ts3.4/pagination/ListAgentsPaginator.d.ts +3 -3
- package/dist-types/ts3.4/pagination/ListDataSourcesPaginator.d.ts +3 -3
- package/dist-types/ts3.4/pagination/ListIngestionJobsPaginator.d.ts +3 -3
- package/dist-types/ts3.4/pagination/ListKnowledgeBasesPaginator.d.ts +3 -3
- package/package.json +7 -6
|
@@ -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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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");
|