@aws-sdk/client-bedrock-agent 3.461.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/LICENSE +201 -0
- package/README.md +526 -0
- package/dist-cjs/BedrockAgent.js +91 -0
- package/dist-cjs/BedrockAgentClient.js +43 -0
- package/dist-cjs/commands/AssociateAgentKnowledgeBaseCommand.js +51 -0
- package/dist-cjs/commands/CreateAgentActionGroupCommand.js +52 -0
- package/dist-cjs/commands/CreateAgentAliasCommand.js +51 -0
- package/dist-cjs/commands/CreateAgentCommand.js +52 -0
- package/dist-cjs/commands/CreateDataSourceCommand.js +51 -0
- package/dist-cjs/commands/CreateKnowledgeBaseCommand.js +51 -0
- package/dist-cjs/commands/DeleteAgentActionGroupCommand.js +51 -0
- package/dist-cjs/commands/DeleteAgentAliasCommand.js +51 -0
- package/dist-cjs/commands/DeleteAgentCommand.js +51 -0
- package/dist-cjs/commands/DeleteAgentVersionCommand.js +51 -0
- package/dist-cjs/commands/DeleteDataSourceCommand.js +51 -0
- package/dist-cjs/commands/DeleteKnowledgeBaseCommand.js +51 -0
- package/dist-cjs/commands/DisassociateAgentKnowledgeBaseCommand.js +51 -0
- package/dist-cjs/commands/GetAgentActionGroupCommand.js +52 -0
- package/dist-cjs/commands/GetAgentAliasCommand.js +51 -0
- package/dist-cjs/commands/GetAgentCommand.js +52 -0
- package/dist-cjs/commands/GetAgentKnowledgeBaseCommand.js +51 -0
- package/dist-cjs/commands/GetAgentVersionCommand.js +52 -0
- package/dist-cjs/commands/GetDataSourceCommand.js +51 -0
- package/dist-cjs/commands/GetIngestionJobCommand.js +51 -0
- package/dist-cjs/commands/GetKnowledgeBaseCommand.js +51 -0
- package/dist-cjs/commands/ListAgentActionGroupsCommand.js +51 -0
- package/dist-cjs/commands/ListAgentAliasesCommand.js +51 -0
- package/dist-cjs/commands/ListAgentKnowledgeBasesCommand.js +51 -0
- package/dist-cjs/commands/ListAgentVersionsCommand.js +51 -0
- package/dist-cjs/commands/ListAgentsCommand.js +51 -0
- package/dist-cjs/commands/ListDataSourcesCommand.js +51 -0
- package/dist-cjs/commands/ListIngestionJobsCommand.js +51 -0
- package/dist-cjs/commands/ListKnowledgeBasesCommand.js +51 -0
- package/dist-cjs/commands/ListTagsForResourceCommand.js +51 -0
- package/dist-cjs/commands/PrepareAgentCommand.js +51 -0
- package/dist-cjs/commands/StartIngestionJobCommand.js +51 -0
- package/dist-cjs/commands/TagResourceCommand.js +51 -0
- package/dist-cjs/commands/UntagResourceCommand.js +51 -0
- package/dist-cjs/commands/UpdateAgentActionGroupCommand.js +52 -0
- package/dist-cjs/commands/UpdateAgentAliasCommand.js +51 -0
- package/dist-cjs/commands/UpdateAgentCommand.js +52 -0
- package/dist-cjs/commands/UpdateAgentKnowledgeBaseCommand.js +51 -0
- package/dist-cjs/commands/UpdateDataSourceCommand.js +51 -0
- package/dist-cjs/commands/UpdateKnowledgeBaseCommand.js +51 -0
- package/dist-cjs/commands/index.js +43 -0
- package/dist-cjs/endpoint/EndpointParameters.js +12 -0
- package/dist-cjs/endpoint/endpointResolver.js +12 -0
- package/dist-cjs/endpoint/ruleset.js +7 -0
- package/dist-cjs/extensionConfiguration.js +2 -0
- package/dist-cjs/index.js +12 -0
- package/dist-cjs/models/BedrockAgentServiceException.js +12 -0
- package/dist-cjs/models/index.js +4 -0
- package/dist-cjs/models/models_0.js +293 -0
- package/dist-cjs/pagination/Interfaces.js +2 -0
- package/dist-cjs/pagination/ListAgentActionGroupsPaginator.js +29 -0
- package/dist-cjs/pagination/ListAgentAliasesPaginator.js +29 -0
- package/dist-cjs/pagination/ListAgentKnowledgeBasesPaginator.js +29 -0
- package/dist-cjs/pagination/ListAgentVersionsPaginator.js +29 -0
- package/dist-cjs/pagination/ListAgentsPaginator.js +29 -0
- package/dist-cjs/pagination/ListDataSourcesPaginator.js +29 -0
- package/dist-cjs/pagination/ListIngestionJobsPaginator.js +29 -0
- package/dist-cjs/pagination/ListKnowledgeBasesPaginator.js +29 -0
- package/dist-cjs/pagination/index.js +12 -0
- package/dist-cjs/protocols/Aws_restJson1.js +3362 -0
- package/dist-cjs/runtimeConfig.browser.js +39 -0
- package/dist-cjs/runtimeConfig.js +50 -0
- package/dist-cjs/runtimeConfig.native.js +15 -0
- package/dist-cjs/runtimeConfig.shared.js +24 -0
- package/dist-cjs/runtimeExtensions.js +22 -0
- package/dist-es/BedrockAgent.js +87 -0
- package/dist-es/BedrockAgentClient.js +39 -0
- package/dist-es/commands/AssociateAgentKnowledgeBaseCommand.js +47 -0
- package/dist-es/commands/CreateAgentActionGroupCommand.js +48 -0
- package/dist-es/commands/CreateAgentAliasCommand.js +47 -0
- package/dist-es/commands/CreateAgentCommand.js +48 -0
- package/dist-es/commands/CreateDataSourceCommand.js +47 -0
- package/dist-es/commands/CreateKnowledgeBaseCommand.js +47 -0
- package/dist-es/commands/DeleteAgentActionGroupCommand.js +47 -0
- package/dist-es/commands/DeleteAgentAliasCommand.js +47 -0
- package/dist-es/commands/DeleteAgentCommand.js +47 -0
- package/dist-es/commands/DeleteAgentVersionCommand.js +47 -0
- package/dist-es/commands/DeleteDataSourceCommand.js +47 -0
- package/dist-es/commands/DeleteKnowledgeBaseCommand.js +47 -0
- package/dist-es/commands/DisassociateAgentKnowledgeBaseCommand.js +47 -0
- package/dist-es/commands/GetAgentActionGroupCommand.js +48 -0
- package/dist-es/commands/GetAgentAliasCommand.js +47 -0
- package/dist-es/commands/GetAgentCommand.js +48 -0
- package/dist-es/commands/GetAgentKnowledgeBaseCommand.js +47 -0
- package/dist-es/commands/GetAgentVersionCommand.js +48 -0
- package/dist-es/commands/GetDataSourceCommand.js +47 -0
- package/dist-es/commands/GetIngestionJobCommand.js +47 -0
- package/dist-es/commands/GetKnowledgeBaseCommand.js +47 -0
- package/dist-es/commands/ListAgentActionGroupsCommand.js +47 -0
- package/dist-es/commands/ListAgentAliasesCommand.js +47 -0
- package/dist-es/commands/ListAgentKnowledgeBasesCommand.js +47 -0
- package/dist-es/commands/ListAgentVersionsCommand.js +47 -0
- package/dist-es/commands/ListAgentsCommand.js +47 -0
- package/dist-es/commands/ListDataSourcesCommand.js +47 -0
- package/dist-es/commands/ListIngestionJobsCommand.js +47 -0
- package/dist-es/commands/ListKnowledgeBasesCommand.js +47 -0
- package/dist-es/commands/ListTagsForResourceCommand.js +47 -0
- package/dist-es/commands/PrepareAgentCommand.js +47 -0
- package/dist-es/commands/StartIngestionJobCommand.js +47 -0
- package/dist-es/commands/TagResourceCommand.js +47 -0
- package/dist-es/commands/UntagResourceCommand.js +47 -0
- package/dist-es/commands/UpdateAgentActionGroupCommand.js +48 -0
- package/dist-es/commands/UpdateAgentAliasCommand.js +47 -0
- package/dist-es/commands/UpdateAgentCommand.js +48 -0
- package/dist-es/commands/UpdateAgentKnowledgeBaseCommand.js +47 -0
- package/dist-es/commands/UpdateDataSourceCommand.js +47 -0
- package/dist-es/commands/UpdateKnowledgeBaseCommand.js +47 -0
- package/dist-es/commands/index.js +40 -0
- package/dist-es/endpoint/EndpointParameters.js +8 -0
- package/dist-es/endpoint/endpointResolver.js +8 -0
- package/dist-es/endpoint/ruleset.js +4 -0
- package/dist-es/extensionConfiguration.js +1 -0
- package/dist-es/index.js +7 -0
- package/dist-es/models/BedrockAgentServiceException.js +8 -0
- package/dist-es/models/index.js +1 -0
- package/dist-es/models/models_0.js +267 -0
- package/dist-es/pagination/Interfaces.js +1 -0
- package/dist-es/pagination/ListAgentActionGroupsPaginator.js +25 -0
- package/dist-es/pagination/ListAgentAliasesPaginator.js +25 -0
- package/dist-es/pagination/ListAgentKnowledgeBasesPaginator.js +25 -0
- package/dist-es/pagination/ListAgentVersionsPaginator.js +25 -0
- package/dist-es/pagination/ListAgentsPaginator.js +25 -0
- package/dist-es/pagination/ListDataSourcesPaginator.js +25 -0
- package/dist-es/pagination/ListIngestionJobsPaginator.js +25 -0
- package/dist-es/pagination/ListKnowledgeBasesPaginator.js +25 -0
- package/dist-es/pagination/index.js +9 -0
- package/dist-es/protocols/Aws_restJson1.js +3278 -0
- package/dist-es/runtimeConfig.browser.js +34 -0
- package/dist-es/runtimeConfig.js +45 -0
- package/dist-es/runtimeConfig.native.js +11 -0
- package/dist-es/runtimeConfig.shared.js +20 -0
- package/dist-es/runtimeExtensions.js +18 -0
- package/dist-types/BedrockAgent.d.ts +291 -0
- package/dist-types/BedrockAgentClient.d.ts +210 -0
- package/dist-types/commands/AssociateAgentKnowledgeBaseCommand.d.ts +106 -0
- package/dist-types/commands/CreateAgentActionGroupCommand.d.ts +131 -0
- package/dist-types/commands/CreateAgentAliasCommand.d.ts +131 -0
- package/dist-types/commands/CreateAgentCommand.d.ts +165 -0
- package/dist-types/commands/CreateDataSourceCommand.d.ts +147 -0
- package/dist-types/commands/CreateKnowledgeBaseCommand.d.ts +183 -0
- package/dist-types/commands/DeleteAgentActionGroupCommand.d.ts +92 -0
- package/dist-types/commands/DeleteAgentAliasCommand.d.ts +91 -0
- package/dist-types/commands/DeleteAgentCommand.d.ts +93 -0
- package/dist-types/commands/DeleteAgentVersionCommand.d.ts +95 -0
- package/dist-types/commands/DeleteDataSourceCommand.d.ts +94 -0
- package/dist-types/commands/DeleteKnowledgeBaseCommand.d.ts +92 -0
- package/dist-types/commands/DisassociateAgentKnowledgeBaseCommand.d.ts +91 -0
- package/dist-types/commands/GetAgentActionGroupCommand.d.ts +111 -0
- package/dist-types/commands/GetAgentAliasCommand.d.ts +115 -0
- package/dist-types/commands/GetAgentCommand.d.ts +131 -0
- package/dist-types/commands/GetAgentKnowledgeBaseCommand.d.ts +98 -0
- package/dist-types/commands/GetAgentVersionCommand.d.ts +130 -0
- package/dist-types/commands/GetDataSourceCommand.d.ts +118 -0
- package/dist-types/commands/GetIngestionJobCommand.d.ts +108 -0
- package/dist-types/commands/GetKnowledgeBaseCommand.d.ts +137 -0
- package/dist-types/commands/ListAgentActionGroupsCommand.d.ts +100 -0
- package/dist-types/commands/ListAgentAliasesCommand.d.ts +105 -0
- package/dist-types/commands/ListAgentKnowledgeBasesCommand.d.ts +99 -0
- package/dist-types/commands/ListAgentVersionsCommand.d.ts +100 -0
- package/dist-types/commands/ListAgentsCommand.d.ts +96 -0
- package/dist-types/commands/ListDataSourcesCommand.d.ts +100 -0
- package/dist-types/commands/ListIngestionJobsCommand.d.ts +122 -0
- package/dist-types/commands/ListKnowledgeBasesCommand.d.ts +95 -0
- package/dist-types/commands/ListTagsForResourceCommand.d.ts +90 -0
- package/dist-types/commands/PrepareAgentCommand.d.ts +97 -0
- package/dist-types/commands/StartIngestionJobCommand.d.ts +115 -0
- package/dist-types/commands/TagResourceCommand.d.ts +92 -0
- package/dist-types/commands/UntagResourceCommand.d.ts +89 -0
- package/dist-types/commands/UpdateAgentActionGroupCommand.d.ts +131 -0
- package/dist-types/commands/UpdateAgentAliasCommand.d.ts +128 -0
- package/dist-types/commands/UpdateAgentCommand.d.ts +165 -0
- package/dist-types/commands/UpdateAgentKnowledgeBaseCommand.d.ts +103 -0
- package/dist-types/commands/UpdateDataSourceCommand.d.ts +144 -0
- package/dist-types/commands/UpdateKnowledgeBaseCommand.d.ts +180 -0
- package/dist-types/commands/index.d.ts +40 -0
- package/dist-types/endpoint/EndpointParameters.d.ts +22 -0
- package/dist-types/endpoint/endpointResolver.d.ts +5 -0
- package/dist-types/endpoint/ruleset.d.ts +2 -0
- package/dist-types/extensionConfiguration.d.ts +8 -0
- package/dist-types/index.d.ts +16 -0
- package/dist-types/models/BedrockAgentServiceException.d.ts +13 -0
- package/dist-types/models/index.d.ts +1 -0
- package/dist-types/models/models_0.d.ts +3256 -0
- package/dist-types/pagination/Interfaces.d.ts +8 -0
- package/dist-types/pagination/ListAgentActionGroupsPaginator.d.ts +7 -0
- package/dist-types/pagination/ListAgentAliasesPaginator.d.ts +7 -0
- package/dist-types/pagination/ListAgentKnowledgeBasesPaginator.d.ts +7 -0
- package/dist-types/pagination/ListAgentVersionsPaginator.d.ts +7 -0
- package/dist-types/pagination/ListAgentsPaginator.d.ts +7 -0
- package/dist-types/pagination/ListDataSourcesPaginator.d.ts +7 -0
- package/dist-types/pagination/ListIngestionJobsPaginator.d.ts +7 -0
- package/dist-types/pagination/ListKnowledgeBasesPaginator.d.ts +7 -0
- package/dist-types/pagination/index.d.ts +9 -0
- package/dist-types/protocols/Aws_restJson1.d.ts +362 -0
- package/dist-types/runtimeConfig.browser.d.ts +46 -0
- package/dist-types/runtimeConfig.d.ts +46 -0
- package/dist-types/runtimeConfig.native.d.ts +45 -0
- package/dist-types/runtimeConfig.shared.d.ts +19 -0
- package/dist-types/runtimeExtensions.d.ts +17 -0
- package/dist-types/ts3.4/BedrockAgent.d.ts +687 -0
- package/dist-types/ts3.4/BedrockAgentClient.d.ts +359 -0
- package/dist-types/ts3.4/commands/AssociateAgentKnowledgeBaseCommand.d.ts +42 -0
- package/dist-types/ts3.4/commands/CreateAgentActionGroupCommand.d.ts +42 -0
- package/dist-types/ts3.4/commands/CreateAgentAliasCommand.d.ts +38 -0
- package/dist-types/ts3.4/commands/CreateAgentCommand.d.ts +35 -0
- package/dist-types/ts3.4/commands/CreateDataSourceCommand.d.ts +38 -0
- package/dist-types/ts3.4/commands/CreateKnowledgeBaseCommand.d.ts +39 -0
- package/dist-types/ts3.4/commands/DeleteAgentActionGroupCommand.d.ts +42 -0
- package/dist-types/ts3.4/commands/DeleteAgentAliasCommand.d.ts +38 -0
- package/dist-types/ts3.4/commands/DeleteAgentCommand.d.ts +35 -0
- package/dist-types/ts3.4/commands/DeleteAgentVersionCommand.d.ts +39 -0
- package/dist-types/ts3.4/commands/DeleteDataSourceCommand.d.ts +38 -0
- package/dist-types/ts3.4/commands/DeleteKnowledgeBaseCommand.d.ts +39 -0
- package/dist-types/ts3.4/commands/DisassociateAgentKnowledgeBaseCommand.d.ts +42 -0
- package/dist-types/ts3.4/commands/GetAgentActionGroupCommand.d.ts +39 -0
- package/dist-types/ts3.4/commands/GetAgentAliasCommand.d.ts +38 -0
- package/dist-types/ts3.4/commands/GetAgentCommand.d.ts +35 -0
- package/dist-types/ts3.4/commands/GetAgentKnowledgeBaseCommand.d.ts +42 -0
- package/dist-types/ts3.4/commands/GetAgentVersionCommand.d.ts +38 -0
- package/dist-types/ts3.4/commands/GetDataSourceCommand.d.ts +38 -0
- package/dist-types/ts3.4/commands/GetIngestionJobCommand.d.ts +38 -0
- package/dist-types/ts3.4/commands/GetKnowledgeBaseCommand.d.ts +38 -0
- package/dist-types/ts3.4/commands/ListAgentActionGroupsCommand.d.ts +42 -0
- package/dist-types/ts3.4/commands/ListAgentAliasesCommand.d.ts +38 -0
- package/dist-types/ts3.4/commands/ListAgentKnowledgeBasesCommand.d.ts +42 -0
- package/dist-types/ts3.4/commands/ListAgentVersionsCommand.d.ts +39 -0
- package/dist-types/ts3.4/commands/ListAgentsCommand.d.ts +35 -0
- package/dist-types/ts3.4/commands/ListDataSourcesCommand.d.ts +38 -0
- package/dist-types/ts3.4/commands/ListIngestionJobsCommand.d.ts +39 -0
- package/dist-types/ts3.4/commands/ListKnowledgeBasesCommand.d.ts +39 -0
- package/dist-types/ts3.4/commands/ListTagsForResourceCommand.d.ts +39 -0
- package/dist-types/ts3.4/commands/PrepareAgentCommand.d.ts +35 -0
- package/dist-types/ts3.4/commands/StartIngestionJobCommand.d.ts +39 -0
- package/dist-types/ts3.4/commands/TagResourceCommand.d.ts +35 -0
- package/dist-types/ts3.4/commands/UntagResourceCommand.d.ts +38 -0
- package/dist-types/ts3.4/commands/UpdateAgentActionGroupCommand.d.ts +42 -0
- package/dist-types/ts3.4/commands/UpdateAgentAliasCommand.d.ts +38 -0
- package/dist-types/ts3.4/commands/UpdateAgentCommand.d.ts +35 -0
- package/dist-types/ts3.4/commands/UpdateAgentKnowledgeBaseCommand.d.ts +42 -0
- package/dist-types/ts3.4/commands/UpdateDataSourceCommand.d.ts +38 -0
- package/dist-types/ts3.4/commands/UpdateKnowledgeBaseCommand.d.ts +39 -0
- package/dist-types/ts3.4/commands/index.d.ts +40 -0
- package/dist-types/ts3.4/endpoint/EndpointParameters.d.ts +33 -0
- package/dist-types/ts3.4/endpoint/endpointResolver.d.ts +8 -0
- package/dist-types/ts3.4/endpoint/ruleset.d.ts +2 -0
- package/dist-types/ts3.4/extensionConfiguration.d.ts +7 -0
- package/dist-types/ts3.4/index.d.ts +10 -0
- package/dist-types/ts3.4/models/BedrockAgentServiceException.d.ts +8 -0
- package/dist-types/ts3.4/models/index.d.ts +1 -0
- package/dist-types/ts3.4/models/models_0.d.ts +915 -0
- package/dist-types/ts3.4/pagination/Interfaces.d.ts +6 -0
- package/dist-types/ts3.4/pagination/ListAgentActionGroupsPaginator.d.ts +11 -0
- package/dist-types/ts3.4/pagination/ListAgentAliasesPaginator.d.ts +11 -0
- package/dist-types/ts3.4/pagination/ListAgentKnowledgeBasesPaginator.d.ts +11 -0
- package/dist-types/ts3.4/pagination/ListAgentVersionsPaginator.d.ts +11 -0
- package/dist-types/ts3.4/pagination/ListAgentsPaginator.d.ts +11 -0
- package/dist-types/ts3.4/pagination/ListDataSourcesPaginator.d.ts +11 -0
- package/dist-types/ts3.4/pagination/ListIngestionJobsPaginator.d.ts +11 -0
- package/dist-types/ts3.4/pagination/ListKnowledgeBasesPaginator.d.ts +11 -0
- package/dist-types/ts3.4/pagination/index.d.ts +9 -0
- package/dist-types/ts3.4/protocols/Aws_restJson1.d.ts +485 -0
- package/dist-types/ts3.4/runtimeConfig.browser.d.ts +97 -0
- package/dist-types/ts3.4/runtimeConfig.d.ts +97 -0
- package/dist-types/ts3.4/runtimeConfig.native.d.ts +88 -0
- package/dist-types/ts3.4/runtimeConfig.shared.d.ts +19 -0
- package/dist-types/ts3.4/runtimeExtensions.d.ts +11 -0
- package/package.json +104 -0
|
@@ -0,0 +1,293 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.GetAgentVersionResponseFilterSensitiveLog = exports.AgentVersionFilterSensitiveLog = exports.UpdateAgentResponseFilterSensitiveLog = exports.UpdateAgentRequestFilterSensitiveLog = exports.GetAgentResponseFilterSensitiveLog = exports.CreateAgentResponseFilterSensitiveLog = exports.CreateAgentRequestFilterSensitiveLog = exports.AgentFilterSensitiveLog = exports.PromptOverrideConfigurationFilterSensitiveLog = exports.UpdateAgentActionGroupResponseFilterSensitiveLog = exports.UpdateAgentActionGroupRequestFilterSensitiveLog = exports.GetAgentActionGroupResponseFilterSensitiveLog = exports.CreateAgentActionGroupResponseFilterSensitiveLog = exports.AgentActionGroupFilterSensitiveLog = exports.CreateAgentActionGroupRequestFilterSensitiveLog = exports.APISchemaFilterSensitiveLog = exports.KnowledgeBaseStatus = exports.KnowledgeBaseStorageType = exports.KnowledgeBaseType = exports.SortOrder = exports.IngestionJobSortByAttribute = exports.IngestionJobFilterOperator = exports.IngestionJobFilterAttribute = exports.IngestionJobStatus = exports.DataSourceStatus = exports.ChunkingStrategy = exports.DataSourceType = exports.KnowledgeBaseState = exports.AgentAliasStatus = exports.PromptType = exports.PromptState = exports.CreationMode = exports.AgentStatus = exports.ValidationException = exports.ThrottlingException = exports.ServiceQuotaExceededException = exports.ResourceNotFoundException = exports.InternalServerException = exports.ActionGroupSignature = exports.APISchema = exports.ActionGroupState = exports.ConflictException = exports.ActionGroupExecutor = exports.AccessDeniedException = void 0;
|
|
4
|
+
const smithy_client_1 = require("@smithy/smithy-client");
|
|
5
|
+
const BedrockAgentServiceException_1 = require("./BedrockAgentServiceException");
|
|
6
|
+
class AccessDeniedException extends BedrockAgentServiceException_1.BedrockAgentServiceException {
|
|
7
|
+
constructor(opts) {
|
|
8
|
+
super({
|
|
9
|
+
name: "AccessDeniedException",
|
|
10
|
+
$fault: "client",
|
|
11
|
+
...opts,
|
|
12
|
+
});
|
|
13
|
+
this.name = "AccessDeniedException";
|
|
14
|
+
this.$fault = "client";
|
|
15
|
+
Object.setPrototypeOf(this, AccessDeniedException.prototype);
|
|
16
|
+
}
|
|
17
|
+
}
|
|
18
|
+
exports.AccessDeniedException = AccessDeniedException;
|
|
19
|
+
var ActionGroupExecutor;
|
|
20
|
+
(function (ActionGroupExecutor) {
|
|
21
|
+
ActionGroupExecutor.visit = (value, visitor) => {
|
|
22
|
+
if (value.lambda !== undefined)
|
|
23
|
+
return visitor.lambda(value.lambda);
|
|
24
|
+
return visitor._(value.$unknown[0], value.$unknown[1]);
|
|
25
|
+
};
|
|
26
|
+
})(ActionGroupExecutor = exports.ActionGroupExecutor || (exports.ActionGroupExecutor = {}));
|
|
27
|
+
class ConflictException extends BedrockAgentServiceException_1.BedrockAgentServiceException {
|
|
28
|
+
constructor(opts) {
|
|
29
|
+
super({
|
|
30
|
+
name: "ConflictException",
|
|
31
|
+
$fault: "client",
|
|
32
|
+
...opts,
|
|
33
|
+
});
|
|
34
|
+
this.name = "ConflictException";
|
|
35
|
+
this.$fault = "client";
|
|
36
|
+
Object.setPrototypeOf(this, ConflictException.prototype);
|
|
37
|
+
}
|
|
38
|
+
}
|
|
39
|
+
exports.ConflictException = ConflictException;
|
|
40
|
+
exports.ActionGroupState = {
|
|
41
|
+
DISABLED: "DISABLED",
|
|
42
|
+
ENABLED: "ENABLED",
|
|
43
|
+
};
|
|
44
|
+
var APISchema;
|
|
45
|
+
(function (APISchema) {
|
|
46
|
+
APISchema.visit = (value, visitor) => {
|
|
47
|
+
if (value.s3 !== undefined)
|
|
48
|
+
return visitor.s3(value.s3);
|
|
49
|
+
if (value.payload !== undefined)
|
|
50
|
+
return visitor.payload(value.payload);
|
|
51
|
+
return visitor._(value.$unknown[0], value.$unknown[1]);
|
|
52
|
+
};
|
|
53
|
+
})(APISchema = exports.APISchema || (exports.APISchema = {}));
|
|
54
|
+
exports.ActionGroupSignature = {
|
|
55
|
+
AMAZON_USERINPUT: "AMAZON.UserInput",
|
|
56
|
+
};
|
|
57
|
+
class InternalServerException extends BedrockAgentServiceException_1.BedrockAgentServiceException {
|
|
58
|
+
constructor(opts) {
|
|
59
|
+
super({
|
|
60
|
+
name: "InternalServerException",
|
|
61
|
+
$fault: "server",
|
|
62
|
+
...opts,
|
|
63
|
+
});
|
|
64
|
+
this.name = "InternalServerException";
|
|
65
|
+
this.$fault = "server";
|
|
66
|
+
Object.setPrototypeOf(this, InternalServerException.prototype);
|
|
67
|
+
}
|
|
68
|
+
}
|
|
69
|
+
exports.InternalServerException = InternalServerException;
|
|
70
|
+
class ResourceNotFoundException extends BedrockAgentServiceException_1.BedrockAgentServiceException {
|
|
71
|
+
constructor(opts) {
|
|
72
|
+
super({
|
|
73
|
+
name: "ResourceNotFoundException",
|
|
74
|
+
$fault: "client",
|
|
75
|
+
...opts,
|
|
76
|
+
});
|
|
77
|
+
this.name = "ResourceNotFoundException";
|
|
78
|
+
this.$fault = "client";
|
|
79
|
+
Object.setPrototypeOf(this, ResourceNotFoundException.prototype);
|
|
80
|
+
}
|
|
81
|
+
}
|
|
82
|
+
exports.ResourceNotFoundException = ResourceNotFoundException;
|
|
83
|
+
class ServiceQuotaExceededException extends BedrockAgentServiceException_1.BedrockAgentServiceException {
|
|
84
|
+
constructor(opts) {
|
|
85
|
+
super({
|
|
86
|
+
name: "ServiceQuotaExceededException",
|
|
87
|
+
$fault: "client",
|
|
88
|
+
...opts,
|
|
89
|
+
});
|
|
90
|
+
this.name = "ServiceQuotaExceededException";
|
|
91
|
+
this.$fault = "client";
|
|
92
|
+
Object.setPrototypeOf(this, ServiceQuotaExceededException.prototype);
|
|
93
|
+
}
|
|
94
|
+
}
|
|
95
|
+
exports.ServiceQuotaExceededException = ServiceQuotaExceededException;
|
|
96
|
+
class ThrottlingException extends BedrockAgentServiceException_1.BedrockAgentServiceException {
|
|
97
|
+
constructor(opts) {
|
|
98
|
+
super({
|
|
99
|
+
name: "ThrottlingException",
|
|
100
|
+
$fault: "client",
|
|
101
|
+
...opts,
|
|
102
|
+
});
|
|
103
|
+
this.name = "ThrottlingException";
|
|
104
|
+
this.$fault = "client";
|
|
105
|
+
Object.setPrototypeOf(this, ThrottlingException.prototype);
|
|
106
|
+
}
|
|
107
|
+
}
|
|
108
|
+
exports.ThrottlingException = ThrottlingException;
|
|
109
|
+
class ValidationException extends BedrockAgentServiceException_1.BedrockAgentServiceException {
|
|
110
|
+
constructor(opts) {
|
|
111
|
+
super({
|
|
112
|
+
name: "ValidationException",
|
|
113
|
+
$fault: "client",
|
|
114
|
+
...opts,
|
|
115
|
+
});
|
|
116
|
+
this.name = "ValidationException";
|
|
117
|
+
this.$fault = "client";
|
|
118
|
+
Object.setPrototypeOf(this, ValidationException.prototype);
|
|
119
|
+
this.fieldList = opts.fieldList;
|
|
120
|
+
}
|
|
121
|
+
}
|
|
122
|
+
exports.ValidationException = ValidationException;
|
|
123
|
+
exports.AgentStatus = {
|
|
124
|
+
CREATING: "CREATING",
|
|
125
|
+
DELETING: "DELETING",
|
|
126
|
+
FAILED: "FAILED",
|
|
127
|
+
NOT_PREPARED: "NOT_PREPARED",
|
|
128
|
+
PREPARED: "PREPARED",
|
|
129
|
+
PREPARING: "PREPARING",
|
|
130
|
+
UPDATING: "UPDATING",
|
|
131
|
+
VERSIONING: "VERSIONING",
|
|
132
|
+
};
|
|
133
|
+
exports.CreationMode = {
|
|
134
|
+
DEFAULT: "DEFAULT",
|
|
135
|
+
OVERRIDDEN: "OVERRIDDEN",
|
|
136
|
+
};
|
|
137
|
+
exports.PromptState = {
|
|
138
|
+
DISABLED: "DISABLED",
|
|
139
|
+
ENABLED: "ENABLED",
|
|
140
|
+
};
|
|
141
|
+
exports.PromptType = {
|
|
142
|
+
KNOWLEDGE_BASE_RESPONSE_GENERATION: "KNOWLEDGE_BASE_RESPONSE_GENERATION",
|
|
143
|
+
ORCHESTRATION: "ORCHESTRATION",
|
|
144
|
+
POST_PROCESSING: "POST_PROCESSING",
|
|
145
|
+
PRE_PROCESSING: "PRE_PROCESSING",
|
|
146
|
+
};
|
|
147
|
+
exports.AgentAliasStatus = {
|
|
148
|
+
CREATING: "CREATING",
|
|
149
|
+
DELETING: "DELETING",
|
|
150
|
+
FAILED: "FAILED",
|
|
151
|
+
PREPARED: "PREPARED",
|
|
152
|
+
UPDATING: "UPDATING",
|
|
153
|
+
};
|
|
154
|
+
exports.KnowledgeBaseState = {
|
|
155
|
+
DISABLED: "DISABLED",
|
|
156
|
+
ENABLED: "ENABLED",
|
|
157
|
+
};
|
|
158
|
+
exports.DataSourceType = {
|
|
159
|
+
S3: "S3",
|
|
160
|
+
};
|
|
161
|
+
exports.ChunkingStrategy = {
|
|
162
|
+
FIXED_SIZE: "FIXED_SIZE",
|
|
163
|
+
NONE: "NONE",
|
|
164
|
+
};
|
|
165
|
+
exports.DataSourceStatus = {
|
|
166
|
+
AVAILABLE: "AVAILABLE",
|
|
167
|
+
DELETING: "DELETING",
|
|
168
|
+
};
|
|
169
|
+
exports.IngestionJobStatus = {
|
|
170
|
+
COMPLETE: "COMPLETE",
|
|
171
|
+
FAILED: "FAILED",
|
|
172
|
+
IN_PROGRESS: "IN_PROGRESS",
|
|
173
|
+
STARTING: "STARTING",
|
|
174
|
+
};
|
|
175
|
+
exports.IngestionJobFilterAttribute = {
|
|
176
|
+
STATUS: "STATUS",
|
|
177
|
+
};
|
|
178
|
+
exports.IngestionJobFilterOperator = {
|
|
179
|
+
EQ: "EQ",
|
|
180
|
+
};
|
|
181
|
+
exports.IngestionJobSortByAttribute = {
|
|
182
|
+
STARTED_AT: "STARTED_AT",
|
|
183
|
+
STATUS: "STATUS",
|
|
184
|
+
};
|
|
185
|
+
exports.SortOrder = {
|
|
186
|
+
ASCENDING: "ASCENDING",
|
|
187
|
+
DESCENDING: "DESCENDING",
|
|
188
|
+
};
|
|
189
|
+
exports.KnowledgeBaseType = {
|
|
190
|
+
VECTOR: "VECTOR",
|
|
191
|
+
};
|
|
192
|
+
exports.KnowledgeBaseStorageType = {
|
|
193
|
+
OPENSEARCH_SERVERLESS: "OPENSEARCH_SERVERLESS",
|
|
194
|
+
PINECONE: "PINECONE",
|
|
195
|
+
REDIS_ENTERPRISE_CLOUD: "REDIS_ENTERPRISE_CLOUD",
|
|
196
|
+
};
|
|
197
|
+
exports.KnowledgeBaseStatus = {
|
|
198
|
+
ACTIVE: "ACTIVE",
|
|
199
|
+
CREATING: "CREATING",
|
|
200
|
+
DELETING: "DELETING",
|
|
201
|
+
FAILED: "FAILED",
|
|
202
|
+
UPDATING: "UPDATING",
|
|
203
|
+
};
|
|
204
|
+
const APISchemaFilterSensitiveLog = (obj) => {
|
|
205
|
+
if (obj.s3 !== undefined)
|
|
206
|
+
return { s3: obj.s3 };
|
|
207
|
+
if (obj.payload !== undefined)
|
|
208
|
+
return { payload: smithy_client_1.SENSITIVE_STRING };
|
|
209
|
+
if (obj.$unknown !== undefined)
|
|
210
|
+
return { [obj.$unknown[0]]: "UNKNOWN" };
|
|
211
|
+
};
|
|
212
|
+
exports.APISchemaFilterSensitiveLog = APISchemaFilterSensitiveLog;
|
|
213
|
+
const CreateAgentActionGroupRequestFilterSensitiveLog = (obj) => ({
|
|
214
|
+
...obj,
|
|
215
|
+
...(obj.actionGroupExecutor && { actionGroupExecutor: obj.actionGroupExecutor }),
|
|
216
|
+
...(obj.apiSchema && { apiSchema: (0, exports.APISchemaFilterSensitiveLog)(obj.apiSchema) }),
|
|
217
|
+
});
|
|
218
|
+
exports.CreateAgentActionGroupRequestFilterSensitiveLog = CreateAgentActionGroupRequestFilterSensitiveLog;
|
|
219
|
+
const AgentActionGroupFilterSensitiveLog = (obj) => ({
|
|
220
|
+
...obj,
|
|
221
|
+
...(obj.actionGroupExecutor && { actionGroupExecutor: obj.actionGroupExecutor }),
|
|
222
|
+
...(obj.apiSchema && { apiSchema: (0, exports.APISchemaFilterSensitiveLog)(obj.apiSchema) }),
|
|
223
|
+
});
|
|
224
|
+
exports.AgentActionGroupFilterSensitiveLog = AgentActionGroupFilterSensitiveLog;
|
|
225
|
+
const CreateAgentActionGroupResponseFilterSensitiveLog = (obj) => ({
|
|
226
|
+
...obj,
|
|
227
|
+
...(obj.agentActionGroup && { agentActionGroup: (0, exports.AgentActionGroupFilterSensitiveLog)(obj.agentActionGroup) }),
|
|
228
|
+
});
|
|
229
|
+
exports.CreateAgentActionGroupResponseFilterSensitiveLog = CreateAgentActionGroupResponseFilterSensitiveLog;
|
|
230
|
+
const GetAgentActionGroupResponseFilterSensitiveLog = (obj) => ({
|
|
231
|
+
...obj,
|
|
232
|
+
...(obj.agentActionGroup && { agentActionGroup: (0, exports.AgentActionGroupFilterSensitiveLog)(obj.agentActionGroup) }),
|
|
233
|
+
});
|
|
234
|
+
exports.GetAgentActionGroupResponseFilterSensitiveLog = GetAgentActionGroupResponseFilterSensitiveLog;
|
|
235
|
+
const UpdateAgentActionGroupRequestFilterSensitiveLog = (obj) => ({
|
|
236
|
+
...obj,
|
|
237
|
+
...(obj.actionGroupExecutor && { actionGroupExecutor: obj.actionGroupExecutor }),
|
|
238
|
+
...(obj.apiSchema && { apiSchema: (0, exports.APISchemaFilterSensitiveLog)(obj.apiSchema) }),
|
|
239
|
+
});
|
|
240
|
+
exports.UpdateAgentActionGroupRequestFilterSensitiveLog = UpdateAgentActionGroupRequestFilterSensitiveLog;
|
|
241
|
+
const UpdateAgentActionGroupResponseFilterSensitiveLog = (obj) => ({
|
|
242
|
+
...obj,
|
|
243
|
+
...(obj.agentActionGroup && { agentActionGroup: (0, exports.AgentActionGroupFilterSensitiveLog)(obj.agentActionGroup) }),
|
|
244
|
+
});
|
|
245
|
+
exports.UpdateAgentActionGroupResponseFilterSensitiveLog = UpdateAgentActionGroupResponseFilterSensitiveLog;
|
|
246
|
+
const PromptOverrideConfigurationFilterSensitiveLog = (obj) => ({
|
|
247
|
+
...obj,
|
|
248
|
+
});
|
|
249
|
+
exports.PromptOverrideConfigurationFilterSensitiveLog = PromptOverrideConfigurationFilterSensitiveLog;
|
|
250
|
+
const AgentFilterSensitiveLog = (obj) => ({
|
|
251
|
+
...obj,
|
|
252
|
+
...(obj.instruction && { instruction: smithy_client_1.SENSITIVE_STRING }),
|
|
253
|
+
...(obj.promptOverrideConfiguration && { promptOverrideConfiguration: smithy_client_1.SENSITIVE_STRING }),
|
|
254
|
+
});
|
|
255
|
+
exports.AgentFilterSensitiveLog = AgentFilterSensitiveLog;
|
|
256
|
+
const CreateAgentRequestFilterSensitiveLog = (obj) => ({
|
|
257
|
+
...obj,
|
|
258
|
+
...(obj.instruction && { instruction: smithy_client_1.SENSITIVE_STRING }),
|
|
259
|
+
...(obj.promptOverrideConfiguration && { promptOverrideConfiguration: smithy_client_1.SENSITIVE_STRING }),
|
|
260
|
+
});
|
|
261
|
+
exports.CreateAgentRequestFilterSensitiveLog = CreateAgentRequestFilterSensitiveLog;
|
|
262
|
+
const CreateAgentResponseFilterSensitiveLog = (obj) => ({
|
|
263
|
+
...obj,
|
|
264
|
+
...(obj.agent && { agent: (0, exports.AgentFilterSensitiveLog)(obj.agent) }),
|
|
265
|
+
});
|
|
266
|
+
exports.CreateAgentResponseFilterSensitiveLog = CreateAgentResponseFilterSensitiveLog;
|
|
267
|
+
const GetAgentResponseFilterSensitiveLog = (obj) => ({
|
|
268
|
+
...obj,
|
|
269
|
+
...(obj.agent && { agent: (0, exports.AgentFilterSensitiveLog)(obj.agent) }),
|
|
270
|
+
});
|
|
271
|
+
exports.GetAgentResponseFilterSensitiveLog = GetAgentResponseFilterSensitiveLog;
|
|
272
|
+
const UpdateAgentRequestFilterSensitiveLog = (obj) => ({
|
|
273
|
+
...obj,
|
|
274
|
+
...(obj.instruction && { instruction: smithy_client_1.SENSITIVE_STRING }),
|
|
275
|
+
...(obj.promptOverrideConfiguration && { promptOverrideConfiguration: smithy_client_1.SENSITIVE_STRING }),
|
|
276
|
+
});
|
|
277
|
+
exports.UpdateAgentRequestFilterSensitiveLog = UpdateAgentRequestFilterSensitiveLog;
|
|
278
|
+
const UpdateAgentResponseFilterSensitiveLog = (obj) => ({
|
|
279
|
+
...obj,
|
|
280
|
+
...(obj.agent && { agent: (0, exports.AgentFilterSensitiveLog)(obj.agent) }),
|
|
281
|
+
});
|
|
282
|
+
exports.UpdateAgentResponseFilterSensitiveLog = UpdateAgentResponseFilterSensitiveLog;
|
|
283
|
+
const AgentVersionFilterSensitiveLog = (obj) => ({
|
|
284
|
+
...obj,
|
|
285
|
+
...(obj.instruction && { instruction: smithy_client_1.SENSITIVE_STRING }),
|
|
286
|
+
...(obj.promptOverrideConfiguration && { promptOverrideConfiguration: smithy_client_1.SENSITIVE_STRING }),
|
|
287
|
+
});
|
|
288
|
+
exports.AgentVersionFilterSensitiveLog = AgentVersionFilterSensitiveLog;
|
|
289
|
+
const GetAgentVersionResponseFilterSensitiveLog = (obj) => ({
|
|
290
|
+
...obj,
|
|
291
|
+
...(obj.agentVersion && { agentVersion: (0, exports.AgentVersionFilterSensitiveLog)(obj.agentVersion) }),
|
|
292
|
+
});
|
|
293
|
+
exports.GetAgentVersionResponseFilterSensitiveLog = GetAgentVersionResponseFilterSensitiveLog;
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.paginateListAgentActionGroups = void 0;
|
|
4
|
+
const BedrockAgentClient_1 = require("../BedrockAgentClient");
|
|
5
|
+
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;
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.paginateListAgentAliases = void 0;
|
|
4
|
+
const BedrockAgentClient_1 = require("../BedrockAgentClient");
|
|
5
|
+
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;
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.paginateListAgentKnowledgeBases = void 0;
|
|
4
|
+
const BedrockAgentClient_1 = require("../BedrockAgentClient");
|
|
5
|
+
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;
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.paginateListAgentVersions = void 0;
|
|
4
|
+
const BedrockAgentClient_1 = require("../BedrockAgentClient");
|
|
5
|
+
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;
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.paginateListAgents = void 0;
|
|
4
|
+
const BedrockAgentClient_1 = require("../BedrockAgentClient");
|
|
5
|
+
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;
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.paginateListDataSources = void 0;
|
|
4
|
+
const BedrockAgentClient_1 = require("../BedrockAgentClient");
|
|
5
|
+
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;
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.paginateListIngestionJobs = void 0;
|
|
4
|
+
const BedrockAgentClient_1 = require("../BedrockAgentClient");
|
|
5
|
+
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;
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.paginateListKnowledgeBases = void 0;
|
|
4
|
+
const BedrockAgentClient_1 = require("../BedrockAgentClient");
|
|
5
|
+
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;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
const tslib_1 = require("tslib");
|
|
4
|
+
tslib_1.__exportStar(require("./Interfaces"), exports);
|
|
5
|
+
tslib_1.__exportStar(require("./ListAgentActionGroupsPaginator"), exports);
|
|
6
|
+
tslib_1.__exportStar(require("./ListAgentAliasesPaginator"), exports);
|
|
7
|
+
tslib_1.__exportStar(require("./ListAgentKnowledgeBasesPaginator"), exports);
|
|
8
|
+
tslib_1.__exportStar(require("./ListAgentVersionsPaginator"), exports);
|
|
9
|
+
tslib_1.__exportStar(require("./ListAgentsPaginator"), exports);
|
|
10
|
+
tslib_1.__exportStar(require("./ListDataSourcesPaginator"), exports);
|
|
11
|
+
tslib_1.__exportStar(require("./ListIngestionJobsPaginator"), exports);
|
|
12
|
+
tslib_1.__exportStar(require("./ListKnowledgeBasesPaginator"), exports);
|