@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,165 @@
|
|
|
1
|
+
import { EndpointParameterInstructions } from "@smithy/middleware-endpoint";
|
|
2
|
+
import { Command as $Command } from "@smithy/smithy-client";
|
|
3
|
+
import { Handler, HttpHandlerOptions as __HttpHandlerOptions, MetadataBearer as __MetadataBearer, MiddlewareStack } from "@smithy/types";
|
|
4
|
+
import { BedrockAgentClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../BedrockAgentClient";
|
|
5
|
+
import { UpdateAgentRequest, UpdateAgentResponse } from "../models/models_0";
|
|
6
|
+
/**
|
|
7
|
+
* @public
|
|
8
|
+
*/
|
|
9
|
+
export { __MetadataBearer, $Command };
|
|
10
|
+
/**
|
|
11
|
+
* @public
|
|
12
|
+
*
|
|
13
|
+
* The input for {@link UpdateAgentCommand}.
|
|
14
|
+
*/
|
|
15
|
+
export interface UpdateAgentCommandInput extends UpdateAgentRequest {
|
|
16
|
+
}
|
|
17
|
+
/**
|
|
18
|
+
* @public
|
|
19
|
+
*
|
|
20
|
+
* The output of {@link UpdateAgentCommand}.
|
|
21
|
+
*/
|
|
22
|
+
export interface UpdateAgentCommandOutput extends UpdateAgentResponse, __MetadataBearer {
|
|
23
|
+
}
|
|
24
|
+
/**
|
|
25
|
+
* @public
|
|
26
|
+
* Updates an existing Amazon Bedrock Agent
|
|
27
|
+
* @example
|
|
28
|
+
* Use a bare-bones client and the command you need to make an API call.
|
|
29
|
+
* ```javascript
|
|
30
|
+
* import { BedrockAgentClient, UpdateAgentCommand } from "@aws-sdk/client-bedrock-agent"; // ES Modules import
|
|
31
|
+
* // const { BedrockAgentClient, UpdateAgentCommand } = require("@aws-sdk/client-bedrock-agent"); // CommonJS import
|
|
32
|
+
* const client = new BedrockAgentClient(config);
|
|
33
|
+
* const input = { // UpdateAgentRequest
|
|
34
|
+
* agentId: "STRING_VALUE", // required
|
|
35
|
+
* agentName: "STRING_VALUE", // required
|
|
36
|
+
* instruction: "STRING_VALUE",
|
|
37
|
+
* foundationModel: "STRING_VALUE",
|
|
38
|
+
* description: "STRING_VALUE",
|
|
39
|
+
* idleSessionTTLInSeconds: Number("int"),
|
|
40
|
+
* agentResourceRoleArn: "STRING_VALUE", // required
|
|
41
|
+
* customerEncryptionKeyArn: "STRING_VALUE",
|
|
42
|
+
* promptOverrideConfiguration: { // PromptOverrideConfiguration
|
|
43
|
+
* promptConfigurations: [ // PromptConfigurations // required
|
|
44
|
+
* { // PromptConfiguration
|
|
45
|
+
* promptType: "PRE_PROCESSING" || "ORCHESTRATION" || "POST_PROCESSING" || "KNOWLEDGE_BASE_RESPONSE_GENERATION",
|
|
46
|
+
* promptCreationMode: "DEFAULT" || "OVERRIDDEN",
|
|
47
|
+
* promptState: "ENABLED" || "DISABLED",
|
|
48
|
+
* basePromptTemplate: "STRING_VALUE",
|
|
49
|
+
* inferenceConfiguration: { // InferenceConfiguration
|
|
50
|
+
* temperature: Number("float"),
|
|
51
|
+
* topP: Number("float"),
|
|
52
|
+
* topK: Number("int"),
|
|
53
|
+
* maximumLength: Number("int"),
|
|
54
|
+
* stopSequences: [ // StopSequences
|
|
55
|
+
* "STRING_VALUE",
|
|
56
|
+
* ],
|
|
57
|
+
* },
|
|
58
|
+
* parserMode: "DEFAULT" || "OVERRIDDEN",
|
|
59
|
+
* },
|
|
60
|
+
* ],
|
|
61
|
+
* overrideLambda: "STRING_VALUE",
|
|
62
|
+
* },
|
|
63
|
+
* };
|
|
64
|
+
* const command = new UpdateAgentCommand(input);
|
|
65
|
+
* const response = await client.send(command);
|
|
66
|
+
* // { // UpdateAgentResponse
|
|
67
|
+
* // agent: { // Agent
|
|
68
|
+
* // agentId: "STRING_VALUE", // required
|
|
69
|
+
* // agentName: "STRING_VALUE", // required
|
|
70
|
+
* // agentArn: "STRING_VALUE", // required
|
|
71
|
+
* // agentVersion: "STRING_VALUE", // required
|
|
72
|
+
* // clientToken: "STRING_VALUE",
|
|
73
|
+
* // instruction: "STRING_VALUE",
|
|
74
|
+
* // agentStatus: "CREATING" || "PREPARING" || "PREPARED" || "NOT_PREPARED" || "DELETING" || "FAILED" || "VERSIONING" || "UPDATING", // required
|
|
75
|
+
* // foundationModel: "STRING_VALUE",
|
|
76
|
+
* // description: "STRING_VALUE",
|
|
77
|
+
* // idleSessionTTLInSeconds: Number("int"), // required
|
|
78
|
+
* // agentResourceRoleArn: "STRING_VALUE", // required
|
|
79
|
+
* // customerEncryptionKeyArn: "STRING_VALUE",
|
|
80
|
+
* // createdAt: new Date("TIMESTAMP"), // required
|
|
81
|
+
* // updatedAt: new Date("TIMESTAMP"), // required
|
|
82
|
+
* // preparedAt: new Date("TIMESTAMP"),
|
|
83
|
+
* // failureReasons: [ // FailureReasons
|
|
84
|
+
* // "STRING_VALUE",
|
|
85
|
+
* // ],
|
|
86
|
+
* // recommendedActions: [ // RecommendedActions
|
|
87
|
+
* // "STRING_VALUE",
|
|
88
|
+
* // ],
|
|
89
|
+
* // promptOverrideConfiguration: { // PromptOverrideConfiguration
|
|
90
|
+
* // promptConfigurations: [ // PromptConfigurations // required
|
|
91
|
+
* // { // PromptConfiguration
|
|
92
|
+
* // promptType: "PRE_PROCESSING" || "ORCHESTRATION" || "POST_PROCESSING" || "KNOWLEDGE_BASE_RESPONSE_GENERATION",
|
|
93
|
+
* // promptCreationMode: "DEFAULT" || "OVERRIDDEN",
|
|
94
|
+
* // promptState: "ENABLED" || "DISABLED",
|
|
95
|
+
* // basePromptTemplate: "STRING_VALUE",
|
|
96
|
+
* // inferenceConfiguration: { // InferenceConfiguration
|
|
97
|
+
* // temperature: Number("float"),
|
|
98
|
+
* // topP: Number("float"),
|
|
99
|
+
* // topK: Number("int"),
|
|
100
|
+
* // maximumLength: Number("int"),
|
|
101
|
+
* // stopSequences: [ // StopSequences
|
|
102
|
+
* // "STRING_VALUE",
|
|
103
|
+
* // ],
|
|
104
|
+
* // },
|
|
105
|
+
* // parserMode: "DEFAULT" || "OVERRIDDEN",
|
|
106
|
+
* // },
|
|
107
|
+
* // ],
|
|
108
|
+
* // overrideLambda: "STRING_VALUE",
|
|
109
|
+
* // },
|
|
110
|
+
* // },
|
|
111
|
+
* // };
|
|
112
|
+
*
|
|
113
|
+
* ```
|
|
114
|
+
*
|
|
115
|
+
* @param UpdateAgentCommandInput - {@link UpdateAgentCommandInput}
|
|
116
|
+
* @returns {@link UpdateAgentCommandOutput}
|
|
117
|
+
* @see {@link UpdateAgentCommandInput} for command's `input` shape.
|
|
118
|
+
* @see {@link UpdateAgentCommandOutput} for command's `response` shape.
|
|
119
|
+
* @see {@link BedrockAgentClientResolvedConfig | config} for BedrockAgentClient's `config` shape.
|
|
120
|
+
*
|
|
121
|
+
* @throws {@link AccessDeniedException} (client fault)
|
|
122
|
+
* This exception is thrown when a request is denied per access permissions
|
|
123
|
+
*
|
|
124
|
+
* @throws {@link ConflictException} (client fault)
|
|
125
|
+
* This exception is thrown when there is a conflict performing an operation
|
|
126
|
+
*
|
|
127
|
+
* @throws {@link InternalServerException} (server fault)
|
|
128
|
+
* This exception is thrown if there was an unexpected error during processing of request
|
|
129
|
+
*
|
|
130
|
+
* @throws {@link ResourceNotFoundException} (client fault)
|
|
131
|
+
* This exception is thrown when a resource referenced by the operation does not exist
|
|
132
|
+
*
|
|
133
|
+
* @throws {@link ServiceQuotaExceededException} (client fault)
|
|
134
|
+
* This exception is thrown when a request is made beyond the service quota
|
|
135
|
+
*
|
|
136
|
+
* @throws {@link ThrottlingException} (client fault)
|
|
137
|
+
* This exception is thrown when the number of requests exceeds the limit
|
|
138
|
+
*
|
|
139
|
+
* @throws {@link ValidationException} (client fault)
|
|
140
|
+
* This exception is thrown when the request's input validation fails
|
|
141
|
+
*
|
|
142
|
+
* @throws {@link BedrockAgentServiceException}
|
|
143
|
+
* <p>Base exception class for all service exceptions from BedrockAgent service.</p>
|
|
144
|
+
*
|
|
145
|
+
*/
|
|
146
|
+
export declare class UpdateAgentCommand extends $Command<UpdateAgentCommandInput, UpdateAgentCommandOutput, BedrockAgentClientResolvedConfig> {
|
|
147
|
+
readonly input: UpdateAgentCommandInput;
|
|
148
|
+
static getEndpointParameterInstructions(): EndpointParameterInstructions;
|
|
149
|
+
/**
|
|
150
|
+
* @public
|
|
151
|
+
*/
|
|
152
|
+
constructor(input: UpdateAgentCommandInput);
|
|
153
|
+
/**
|
|
154
|
+
* @internal
|
|
155
|
+
*/
|
|
156
|
+
resolveMiddleware(clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>, configuration: BedrockAgentClientResolvedConfig, options?: __HttpHandlerOptions): Handler<UpdateAgentCommandInput, UpdateAgentCommandOutput>;
|
|
157
|
+
/**
|
|
158
|
+
* @internal
|
|
159
|
+
*/
|
|
160
|
+
private serialize;
|
|
161
|
+
/**
|
|
162
|
+
* @internal
|
|
163
|
+
*/
|
|
164
|
+
private deserialize;
|
|
165
|
+
}
|
|
@@ -0,0 +1,103 @@
|
|
|
1
|
+
import { EndpointParameterInstructions } from "@smithy/middleware-endpoint";
|
|
2
|
+
import { Command as $Command } from "@smithy/smithy-client";
|
|
3
|
+
import { Handler, HttpHandlerOptions as __HttpHandlerOptions, MetadataBearer as __MetadataBearer, MiddlewareStack } from "@smithy/types";
|
|
4
|
+
import { BedrockAgentClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../BedrockAgentClient";
|
|
5
|
+
import { UpdateAgentKnowledgeBaseRequest, UpdateAgentKnowledgeBaseResponse } from "../models/models_0";
|
|
6
|
+
/**
|
|
7
|
+
* @public
|
|
8
|
+
*/
|
|
9
|
+
export { __MetadataBearer, $Command };
|
|
10
|
+
/**
|
|
11
|
+
* @public
|
|
12
|
+
*
|
|
13
|
+
* The input for {@link UpdateAgentKnowledgeBaseCommand}.
|
|
14
|
+
*/
|
|
15
|
+
export interface UpdateAgentKnowledgeBaseCommandInput extends UpdateAgentKnowledgeBaseRequest {
|
|
16
|
+
}
|
|
17
|
+
/**
|
|
18
|
+
* @public
|
|
19
|
+
*
|
|
20
|
+
* The output of {@link UpdateAgentKnowledgeBaseCommand}.
|
|
21
|
+
*/
|
|
22
|
+
export interface UpdateAgentKnowledgeBaseCommandOutput extends UpdateAgentKnowledgeBaseResponse, __MetadataBearer {
|
|
23
|
+
}
|
|
24
|
+
/**
|
|
25
|
+
* @public
|
|
26
|
+
* Updates an existing Knowledge Base associated to an Amazon Bedrock Agent
|
|
27
|
+
* @example
|
|
28
|
+
* Use a bare-bones client and the command you need to make an API call.
|
|
29
|
+
* ```javascript
|
|
30
|
+
* import { BedrockAgentClient, UpdateAgentKnowledgeBaseCommand } from "@aws-sdk/client-bedrock-agent"; // ES Modules import
|
|
31
|
+
* // const { BedrockAgentClient, UpdateAgentKnowledgeBaseCommand } = require("@aws-sdk/client-bedrock-agent"); // CommonJS import
|
|
32
|
+
* const client = new BedrockAgentClient(config);
|
|
33
|
+
* const input = { // UpdateAgentKnowledgeBaseRequest
|
|
34
|
+
* agentId: "STRING_VALUE", // required
|
|
35
|
+
* agentVersion: "STRING_VALUE", // required
|
|
36
|
+
* knowledgeBaseId: "STRING_VALUE", // required
|
|
37
|
+
* description: "STRING_VALUE",
|
|
38
|
+
* knowledgeBaseState: "ENABLED" || "DISABLED",
|
|
39
|
+
* };
|
|
40
|
+
* const command = new UpdateAgentKnowledgeBaseCommand(input);
|
|
41
|
+
* const response = await client.send(command);
|
|
42
|
+
* // { // UpdateAgentKnowledgeBaseResponse
|
|
43
|
+
* // agentKnowledgeBase: { // AgentKnowledgeBase
|
|
44
|
+
* // agentId: "STRING_VALUE", // required
|
|
45
|
+
* // agentVersion: "STRING_VALUE", // required
|
|
46
|
+
* // knowledgeBaseId: "STRING_VALUE", // required
|
|
47
|
+
* // description: "STRING_VALUE", // required
|
|
48
|
+
* // createdAt: new Date("TIMESTAMP"), // required
|
|
49
|
+
* // updatedAt: new Date("TIMESTAMP"), // required
|
|
50
|
+
* // knowledgeBaseState: "ENABLED" || "DISABLED", // required
|
|
51
|
+
* // },
|
|
52
|
+
* // };
|
|
53
|
+
*
|
|
54
|
+
* ```
|
|
55
|
+
*
|
|
56
|
+
* @param UpdateAgentKnowledgeBaseCommandInput - {@link UpdateAgentKnowledgeBaseCommandInput}
|
|
57
|
+
* @returns {@link UpdateAgentKnowledgeBaseCommandOutput}
|
|
58
|
+
* @see {@link UpdateAgentKnowledgeBaseCommandInput} for command's `input` shape.
|
|
59
|
+
* @see {@link UpdateAgentKnowledgeBaseCommandOutput} for command's `response` shape.
|
|
60
|
+
* @see {@link BedrockAgentClientResolvedConfig | config} for BedrockAgentClient's `config` shape.
|
|
61
|
+
*
|
|
62
|
+
* @throws {@link AccessDeniedException} (client fault)
|
|
63
|
+
* This exception is thrown when a request is denied per access permissions
|
|
64
|
+
*
|
|
65
|
+
* @throws {@link ConflictException} (client fault)
|
|
66
|
+
* This exception is thrown when there is a conflict performing an operation
|
|
67
|
+
*
|
|
68
|
+
* @throws {@link InternalServerException} (server fault)
|
|
69
|
+
* This exception is thrown if there was an unexpected error during processing of request
|
|
70
|
+
*
|
|
71
|
+
* @throws {@link ResourceNotFoundException} (client fault)
|
|
72
|
+
* This exception is thrown when a resource referenced by the operation does not exist
|
|
73
|
+
*
|
|
74
|
+
* @throws {@link ThrottlingException} (client fault)
|
|
75
|
+
* This exception is thrown when the number of requests exceeds the limit
|
|
76
|
+
*
|
|
77
|
+
* @throws {@link ValidationException} (client fault)
|
|
78
|
+
* This exception is thrown when the request's input validation fails
|
|
79
|
+
*
|
|
80
|
+
* @throws {@link BedrockAgentServiceException}
|
|
81
|
+
* <p>Base exception class for all service exceptions from BedrockAgent service.</p>
|
|
82
|
+
*
|
|
83
|
+
*/
|
|
84
|
+
export declare class UpdateAgentKnowledgeBaseCommand extends $Command<UpdateAgentKnowledgeBaseCommandInput, UpdateAgentKnowledgeBaseCommandOutput, BedrockAgentClientResolvedConfig> {
|
|
85
|
+
readonly input: UpdateAgentKnowledgeBaseCommandInput;
|
|
86
|
+
static getEndpointParameterInstructions(): EndpointParameterInstructions;
|
|
87
|
+
/**
|
|
88
|
+
* @public
|
|
89
|
+
*/
|
|
90
|
+
constructor(input: UpdateAgentKnowledgeBaseCommandInput);
|
|
91
|
+
/**
|
|
92
|
+
* @internal
|
|
93
|
+
*/
|
|
94
|
+
resolveMiddleware(clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>, configuration: BedrockAgentClientResolvedConfig, options?: __HttpHandlerOptions): Handler<UpdateAgentKnowledgeBaseCommandInput, UpdateAgentKnowledgeBaseCommandOutput>;
|
|
95
|
+
/**
|
|
96
|
+
* @internal
|
|
97
|
+
*/
|
|
98
|
+
private serialize;
|
|
99
|
+
/**
|
|
100
|
+
* @internal
|
|
101
|
+
*/
|
|
102
|
+
private deserialize;
|
|
103
|
+
}
|
|
@@ -0,0 +1,144 @@
|
|
|
1
|
+
import { EndpointParameterInstructions } from "@smithy/middleware-endpoint";
|
|
2
|
+
import { Command as $Command } from "@smithy/smithy-client";
|
|
3
|
+
import { Handler, HttpHandlerOptions as __HttpHandlerOptions, MetadataBearer as __MetadataBearer, MiddlewareStack } from "@smithy/types";
|
|
4
|
+
import { BedrockAgentClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../BedrockAgentClient";
|
|
5
|
+
import { UpdateDataSourceRequest, UpdateDataSourceResponse } from "../models/models_0";
|
|
6
|
+
/**
|
|
7
|
+
* @public
|
|
8
|
+
*/
|
|
9
|
+
export { __MetadataBearer, $Command };
|
|
10
|
+
/**
|
|
11
|
+
* @public
|
|
12
|
+
*
|
|
13
|
+
* The input for {@link UpdateDataSourceCommand}.
|
|
14
|
+
*/
|
|
15
|
+
export interface UpdateDataSourceCommandInput extends UpdateDataSourceRequest {
|
|
16
|
+
}
|
|
17
|
+
/**
|
|
18
|
+
* @public
|
|
19
|
+
*
|
|
20
|
+
* The output of {@link UpdateDataSourceCommand}.
|
|
21
|
+
*/
|
|
22
|
+
export interface UpdateDataSourceCommandOutput extends UpdateDataSourceResponse, __MetadataBearer {
|
|
23
|
+
}
|
|
24
|
+
/**
|
|
25
|
+
* @public
|
|
26
|
+
* Update an existing data source
|
|
27
|
+
* @example
|
|
28
|
+
* Use a bare-bones client and the command you need to make an API call.
|
|
29
|
+
* ```javascript
|
|
30
|
+
* import { BedrockAgentClient, UpdateDataSourceCommand } from "@aws-sdk/client-bedrock-agent"; // ES Modules import
|
|
31
|
+
* // const { BedrockAgentClient, UpdateDataSourceCommand } = require("@aws-sdk/client-bedrock-agent"); // CommonJS import
|
|
32
|
+
* const client = new BedrockAgentClient(config);
|
|
33
|
+
* const input = { // UpdateDataSourceRequest
|
|
34
|
+
* knowledgeBaseId: "STRING_VALUE", // required
|
|
35
|
+
* dataSourceId: "STRING_VALUE", // required
|
|
36
|
+
* name: "STRING_VALUE", // required
|
|
37
|
+
* description: "STRING_VALUE",
|
|
38
|
+
* dataSourceConfiguration: { // DataSourceConfiguration
|
|
39
|
+
* type: "S3", // required
|
|
40
|
+
* s3Configuration: { // S3DataSourceConfiguration
|
|
41
|
+
* bucketArn: "STRING_VALUE", // required
|
|
42
|
+
* inclusionPrefixes: [ // S3Prefixes
|
|
43
|
+
* "STRING_VALUE",
|
|
44
|
+
* ],
|
|
45
|
+
* },
|
|
46
|
+
* },
|
|
47
|
+
* serverSideEncryptionConfiguration: { // ServerSideEncryptionConfiguration
|
|
48
|
+
* kmsKeyArn: "STRING_VALUE",
|
|
49
|
+
* },
|
|
50
|
+
* vectorIngestionConfiguration: { // VectorIngestionConfiguration
|
|
51
|
+
* chunkingConfiguration: { // ChunkingConfiguration
|
|
52
|
+
* chunkingStrategy: "FIXED_SIZE" || "NONE", // required
|
|
53
|
+
* fixedSizeChunkingConfiguration: { // FixedSizeChunkingConfiguration
|
|
54
|
+
* maxTokens: Number("int"), // required
|
|
55
|
+
* overlapPercentage: Number("int"), // required
|
|
56
|
+
* },
|
|
57
|
+
* },
|
|
58
|
+
* },
|
|
59
|
+
* };
|
|
60
|
+
* const command = new UpdateDataSourceCommand(input);
|
|
61
|
+
* const response = await client.send(command);
|
|
62
|
+
* // { // UpdateDataSourceResponse
|
|
63
|
+
* // dataSource: { // DataSource
|
|
64
|
+
* // knowledgeBaseId: "STRING_VALUE", // required
|
|
65
|
+
* // dataSourceId: "STRING_VALUE", // required
|
|
66
|
+
* // name: "STRING_VALUE", // required
|
|
67
|
+
* // status: "AVAILABLE" || "DELETING", // required
|
|
68
|
+
* // description: "STRING_VALUE",
|
|
69
|
+
* // dataSourceConfiguration: { // DataSourceConfiguration
|
|
70
|
+
* // type: "S3", // required
|
|
71
|
+
* // s3Configuration: { // S3DataSourceConfiguration
|
|
72
|
+
* // bucketArn: "STRING_VALUE", // required
|
|
73
|
+
* // inclusionPrefixes: [ // S3Prefixes
|
|
74
|
+
* // "STRING_VALUE",
|
|
75
|
+
* // ],
|
|
76
|
+
* // },
|
|
77
|
+
* // },
|
|
78
|
+
* // serverSideEncryptionConfiguration: { // ServerSideEncryptionConfiguration
|
|
79
|
+
* // kmsKeyArn: "STRING_VALUE",
|
|
80
|
+
* // },
|
|
81
|
+
* // vectorIngestionConfiguration: { // VectorIngestionConfiguration
|
|
82
|
+
* // chunkingConfiguration: { // ChunkingConfiguration
|
|
83
|
+
* // chunkingStrategy: "FIXED_SIZE" || "NONE", // required
|
|
84
|
+
* // fixedSizeChunkingConfiguration: { // FixedSizeChunkingConfiguration
|
|
85
|
+
* // maxTokens: Number("int"), // required
|
|
86
|
+
* // overlapPercentage: Number("int"), // required
|
|
87
|
+
* // },
|
|
88
|
+
* // },
|
|
89
|
+
* // },
|
|
90
|
+
* // createdAt: new Date("TIMESTAMP"), // required
|
|
91
|
+
* // updatedAt: new Date("TIMESTAMP"), // required
|
|
92
|
+
* // },
|
|
93
|
+
* // };
|
|
94
|
+
*
|
|
95
|
+
* ```
|
|
96
|
+
*
|
|
97
|
+
* @param UpdateDataSourceCommandInput - {@link UpdateDataSourceCommandInput}
|
|
98
|
+
* @returns {@link UpdateDataSourceCommandOutput}
|
|
99
|
+
* @see {@link UpdateDataSourceCommandInput} for command's `input` shape.
|
|
100
|
+
* @see {@link UpdateDataSourceCommandOutput} for command's `response` shape.
|
|
101
|
+
* @see {@link BedrockAgentClientResolvedConfig | config} for BedrockAgentClient's `config` shape.
|
|
102
|
+
*
|
|
103
|
+
* @throws {@link AccessDeniedException} (client fault)
|
|
104
|
+
* This exception is thrown when a request is denied per access permissions
|
|
105
|
+
*
|
|
106
|
+
* @throws {@link ConflictException} (client fault)
|
|
107
|
+
* This exception is thrown when there is a conflict performing an operation
|
|
108
|
+
*
|
|
109
|
+
* @throws {@link InternalServerException} (server fault)
|
|
110
|
+
* This exception is thrown if there was an unexpected error during processing of request
|
|
111
|
+
*
|
|
112
|
+
* @throws {@link ResourceNotFoundException} (client fault)
|
|
113
|
+
* This exception is thrown when a resource referenced by the operation does not exist
|
|
114
|
+
*
|
|
115
|
+
* @throws {@link ThrottlingException} (client fault)
|
|
116
|
+
* This exception is thrown when the number of requests exceeds the limit
|
|
117
|
+
*
|
|
118
|
+
* @throws {@link ValidationException} (client fault)
|
|
119
|
+
* This exception is thrown when the request's input validation fails
|
|
120
|
+
*
|
|
121
|
+
* @throws {@link BedrockAgentServiceException}
|
|
122
|
+
* <p>Base exception class for all service exceptions from BedrockAgent service.</p>
|
|
123
|
+
*
|
|
124
|
+
*/
|
|
125
|
+
export declare class UpdateDataSourceCommand extends $Command<UpdateDataSourceCommandInput, UpdateDataSourceCommandOutput, BedrockAgentClientResolvedConfig> {
|
|
126
|
+
readonly input: UpdateDataSourceCommandInput;
|
|
127
|
+
static getEndpointParameterInstructions(): EndpointParameterInstructions;
|
|
128
|
+
/**
|
|
129
|
+
* @public
|
|
130
|
+
*/
|
|
131
|
+
constructor(input: UpdateDataSourceCommandInput);
|
|
132
|
+
/**
|
|
133
|
+
* @internal
|
|
134
|
+
*/
|
|
135
|
+
resolveMiddleware(clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>, configuration: BedrockAgentClientResolvedConfig, options?: __HttpHandlerOptions): Handler<UpdateDataSourceCommandInput, UpdateDataSourceCommandOutput>;
|
|
136
|
+
/**
|
|
137
|
+
* @internal
|
|
138
|
+
*/
|
|
139
|
+
private serialize;
|
|
140
|
+
/**
|
|
141
|
+
* @internal
|
|
142
|
+
*/
|
|
143
|
+
private deserialize;
|
|
144
|
+
}
|
|
@@ -0,0 +1,180 @@
|
|
|
1
|
+
import { EndpointParameterInstructions } from "@smithy/middleware-endpoint";
|
|
2
|
+
import { Command as $Command } from "@smithy/smithy-client";
|
|
3
|
+
import { Handler, HttpHandlerOptions as __HttpHandlerOptions, MetadataBearer as __MetadataBearer, MiddlewareStack } from "@smithy/types";
|
|
4
|
+
import { BedrockAgentClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../BedrockAgentClient";
|
|
5
|
+
import { UpdateKnowledgeBaseRequest, UpdateKnowledgeBaseResponse } from "../models/models_0";
|
|
6
|
+
/**
|
|
7
|
+
* @public
|
|
8
|
+
*/
|
|
9
|
+
export { __MetadataBearer, $Command };
|
|
10
|
+
/**
|
|
11
|
+
* @public
|
|
12
|
+
*
|
|
13
|
+
* The input for {@link UpdateKnowledgeBaseCommand}.
|
|
14
|
+
*/
|
|
15
|
+
export interface UpdateKnowledgeBaseCommandInput extends UpdateKnowledgeBaseRequest {
|
|
16
|
+
}
|
|
17
|
+
/**
|
|
18
|
+
* @public
|
|
19
|
+
*
|
|
20
|
+
* The output of {@link UpdateKnowledgeBaseCommand}.
|
|
21
|
+
*/
|
|
22
|
+
export interface UpdateKnowledgeBaseCommandOutput extends UpdateKnowledgeBaseResponse, __MetadataBearer {
|
|
23
|
+
}
|
|
24
|
+
/**
|
|
25
|
+
* @public
|
|
26
|
+
* Update an existing knowledge base
|
|
27
|
+
* @example
|
|
28
|
+
* Use a bare-bones client and the command you need to make an API call.
|
|
29
|
+
* ```javascript
|
|
30
|
+
* import { BedrockAgentClient, UpdateKnowledgeBaseCommand } from "@aws-sdk/client-bedrock-agent"; // ES Modules import
|
|
31
|
+
* // const { BedrockAgentClient, UpdateKnowledgeBaseCommand } = require("@aws-sdk/client-bedrock-agent"); // CommonJS import
|
|
32
|
+
* const client = new BedrockAgentClient(config);
|
|
33
|
+
* const input = { // UpdateKnowledgeBaseRequest
|
|
34
|
+
* knowledgeBaseId: "STRING_VALUE", // required
|
|
35
|
+
* name: "STRING_VALUE", // required
|
|
36
|
+
* description: "STRING_VALUE",
|
|
37
|
+
* roleArn: "STRING_VALUE", // required
|
|
38
|
+
* knowledgeBaseConfiguration: { // KnowledgeBaseConfiguration
|
|
39
|
+
* type: "VECTOR", // required
|
|
40
|
+
* vectorKnowledgeBaseConfiguration: { // VectorKnowledgeBaseConfiguration
|
|
41
|
+
* embeddingModelArn: "STRING_VALUE", // required
|
|
42
|
+
* },
|
|
43
|
+
* },
|
|
44
|
+
* storageConfiguration: { // StorageConfiguration
|
|
45
|
+
* type: "OPENSEARCH_SERVERLESS" || "PINECONE" || "REDIS_ENTERPRISE_CLOUD", // required
|
|
46
|
+
* opensearchServerlessConfiguration: { // OpenSearchServerlessConfiguration
|
|
47
|
+
* collectionArn: "STRING_VALUE", // required
|
|
48
|
+
* vectorIndexName: "STRING_VALUE", // required
|
|
49
|
+
* fieldMapping: { // OpenSearchServerlessFieldMapping
|
|
50
|
+
* vectorField: "STRING_VALUE", // required
|
|
51
|
+
* textField: "STRING_VALUE", // required
|
|
52
|
+
* metadataField: "STRING_VALUE", // required
|
|
53
|
+
* },
|
|
54
|
+
* },
|
|
55
|
+
* pineconeConfiguration: { // PineconeConfiguration
|
|
56
|
+
* connectionString: "STRING_VALUE", // required
|
|
57
|
+
* credentialsSecretArn: "STRING_VALUE", // required
|
|
58
|
+
* namespace: "STRING_VALUE",
|
|
59
|
+
* fieldMapping: { // PineconeFieldMapping
|
|
60
|
+
* textField: "STRING_VALUE", // required
|
|
61
|
+
* metadataField: "STRING_VALUE", // required
|
|
62
|
+
* },
|
|
63
|
+
* },
|
|
64
|
+
* redisEnterpriseCloudConfiguration: { // RedisEnterpriseCloudConfiguration
|
|
65
|
+
* endpoint: "STRING_VALUE", // required
|
|
66
|
+
* vectorIndexName: "STRING_VALUE", // required
|
|
67
|
+
* credentialsSecretArn: "STRING_VALUE", // required
|
|
68
|
+
* fieldMapping: { // RedisEnterpriseCloudFieldMapping
|
|
69
|
+
* vectorField: "STRING_VALUE", // required
|
|
70
|
+
* textField: "STRING_VALUE", // required
|
|
71
|
+
* metadataField: "STRING_VALUE", // required
|
|
72
|
+
* },
|
|
73
|
+
* },
|
|
74
|
+
* },
|
|
75
|
+
* };
|
|
76
|
+
* const command = new UpdateKnowledgeBaseCommand(input);
|
|
77
|
+
* const response = await client.send(command);
|
|
78
|
+
* // { // UpdateKnowledgeBaseResponse
|
|
79
|
+
* // knowledgeBase: { // KnowledgeBase
|
|
80
|
+
* // knowledgeBaseId: "STRING_VALUE", // required
|
|
81
|
+
* // name: "STRING_VALUE", // required
|
|
82
|
+
* // knowledgeBaseArn: "STRING_VALUE", // required
|
|
83
|
+
* // description: "STRING_VALUE",
|
|
84
|
+
* // roleArn: "STRING_VALUE", // required
|
|
85
|
+
* // knowledgeBaseConfiguration: { // KnowledgeBaseConfiguration
|
|
86
|
+
* // type: "VECTOR", // required
|
|
87
|
+
* // vectorKnowledgeBaseConfiguration: { // VectorKnowledgeBaseConfiguration
|
|
88
|
+
* // embeddingModelArn: "STRING_VALUE", // required
|
|
89
|
+
* // },
|
|
90
|
+
* // },
|
|
91
|
+
* // storageConfiguration: { // StorageConfiguration
|
|
92
|
+
* // type: "OPENSEARCH_SERVERLESS" || "PINECONE" || "REDIS_ENTERPRISE_CLOUD", // required
|
|
93
|
+
* // opensearchServerlessConfiguration: { // OpenSearchServerlessConfiguration
|
|
94
|
+
* // collectionArn: "STRING_VALUE", // required
|
|
95
|
+
* // vectorIndexName: "STRING_VALUE", // required
|
|
96
|
+
* // fieldMapping: { // OpenSearchServerlessFieldMapping
|
|
97
|
+
* // vectorField: "STRING_VALUE", // required
|
|
98
|
+
* // textField: "STRING_VALUE", // required
|
|
99
|
+
* // metadataField: "STRING_VALUE", // required
|
|
100
|
+
* // },
|
|
101
|
+
* // },
|
|
102
|
+
* // pineconeConfiguration: { // PineconeConfiguration
|
|
103
|
+
* // connectionString: "STRING_VALUE", // required
|
|
104
|
+
* // credentialsSecretArn: "STRING_VALUE", // required
|
|
105
|
+
* // namespace: "STRING_VALUE",
|
|
106
|
+
* // fieldMapping: { // PineconeFieldMapping
|
|
107
|
+
* // textField: "STRING_VALUE", // required
|
|
108
|
+
* // metadataField: "STRING_VALUE", // required
|
|
109
|
+
* // },
|
|
110
|
+
* // },
|
|
111
|
+
* // redisEnterpriseCloudConfiguration: { // RedisEnterpriseCloudConfiguration
|
|
112
|
+
* // endpoint: "STRING_VALUE", // required
|
|
113
|
+
* // vectorIndexName: "STRING_VALUE", // required
|
|
114
|
+
* // credentialsSecretArn: "STRING_VALUE", // required
|
|
115
|
+
* // fieldMapping: { // RedisEnterpriseCloudFieldMapping
|
|
116
|
+
* // vectorField: "STRING_VALUE", // required
|
|
117
|
+
* // textField: "STRING_VALUE", // required
|
|
118
|
+
* // metadataField: "STRING_VALUE", // required
|
|
119
|
+
* // },
|
|
120
|
+
* // },
|
|
121
|
+
* // },
|
|
122
|
+
* // status: "CREATING" || "ACTIVE" || "DELETING" || "UPDATING" || "FAILED", // required
|
|
123
|
+
* // createdAt: new Date("TIMESTAMP"), // required
|
|
124
|
+
* // updatedAt: new Date("TIMESTAMP"), // required
|
|
125
|
+
* // failureReasons: [ // FailureReasons
|
|
126
|
+
* // "STRING_VALUE",
|
|
127
|
+
* // ],
|
|
128
|
+
* // },
|
|
129
|
+
* // };
|
|
130
|
+
*
|
|
131
|
+
* ```
|
|
132
|
+
*
|
|
133
|
+
* @param UpdateKnowledgeBaseCommandInput - {@link UpdateKnowledgeBaseCommandInput}
|
|
134
|
+
* @returns {@link UpdateKnowledgeBaseCommandOutput}
|
|
135
|
+
* @see {@link UpdateKnowledgeBaseCommandInput} for command's `input` shape.
|
|
136
|
+
* @see {@link UpdateKnowledgeBaseCommandOutput} for command's `response` shape.
|
|
137
|
+
* @see {@link BedrockAgentClientResolvedConfig | config} for BedrockAgentClient's `config` shape.
|
|
138
|
+
*
|
|
139
|
+
* @throws {@link AccessDeniedException} (client fault)
|
|
140
|
+
* This exception is thrown when a request is denied per access permissions
|
|
141
|
+
*
|
|
142
|
+
* @throws {@link ConflictException} (client fault)
|
|
143
|
+
* This exception is thrown when there is a conflict performing an operation
|
|
144
|
+
*
|
|
145
|
+
* @throws {@link InternalServerException} (server fault)
|
|
146
|
+
* This exception is thrown if there was an unexpected error during processing of request
|
|
147
|
+
*
|
|
148
|
+
* @throws {@link ResourceNotFoundException} (client fault)
|
|
149
|
+
* This exception is thrown when a resource referenced by the operation does not exist
|
|
150
|
+
*
|
|
151
|
+
* @throws {@link ThrottlingException} (client fault)
|
|
152
|
+
* This exception is thrown when the number of requests exceeds the limit
|
|
153
|
+
*
|
|
154
|
+
* @throws {@link ValidationException} (client fault)
|
|
155
|
+
* This exception is thrown when the request's input validation fails
|
|
156
|
+
*
|
|
157
|
+
* @throws {@link BedrockAgentServiceException}
|
|
158
|
+
* <p>Base exception class for all service exceptions from BedrockAgent service.</p>
|
|
159
|
+
*
|
|
160
|
+
*/
|
|
161
|
+
export declare class UpdateKnowledgeBaseCommand extends $Command<UpdateKnowledgeBaseCommandInput, UpdateKnowledgeBaseCommandOutput, BedrockAgentClientResolvedConfig> {
|
|
162
|
+
readonly input: UpdateKnowledgeBaseCommandInput;
|
|
163
|
+
static getEndpointParameterInstructions(): EndpointParameterInstructions;
|
|
164
|
+
/**
|
|
165
|
+
* @public
|
|
166
|
+
*/
|
|
167
|
+
constructor(input: UpdateKnowledgeBaseCommandInput);
|
|
168
|
+
/**
|
|
169
|
+
* @internal
|
|
170
|
+
*/
|
|
171
|
+
resolveMiddleware(clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>, configuration: BedrockAgentClientResolvedConfig, options?: __HttpHandlerOptions): Handler<UpdateKnowledgeBaseCommandInput, UpdateKnowledgeBaseCommandOutput>;
|
|
172
|
+
/**
|
|
173
|
+
* @internal
|
|
174
|
+
*/
|
|
175
|
+
private serialize;
|
|
176
|
+
/**
|
|
177
|
+
* @internal
|
|
178
|
+
*/
|
|
179
|
+
private deserialize;
|
|
180
|
+
}
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
export * from "./AssociateAgentKnowledgeBaseCommand";
|
|
2
|
+
export * from "./CreateAgentActionGroupCommand";
|
|
3
|
+
export * from "./CreateAgentAliasCommand";
|
|
4
|
+
export * from "./CreateAgentCommand";
|
|
5
|
+
export * from "./CreateDataSourceCommand";
|
|
6
|
+
export * from "./CreateKnowledgeBaseCommand";
|
|
7
|
+
export * from "./DeleteAgentActionGroupCommand";
|
|
8
|
+
export * from "./DeleteAgentAliasCommand";
|
|
9
|
+
export * from "./DeleteAgentCommand";
|
|
10
|
+
export * from "./DeleteAgentVersionCommand";
|
|
11
|
+
export * from "./DeleteDataSourceCommand";
|
|
12
|
+
export * from "./DeleteKnowledgeBaseCommand";
|
|
13
|
+
export * from "./DisassociateAgentKnowledgeBaseCommand";
|
|
14
|
+
export * from "./GetAgentActionGroupCommand";
|
|
15
|
+
export * from "./GetAgentAliasCommand";
|
|
16
|
+
export * from "./GetAgentCommand";
|
|
17
|
+
export * from "./GetAgentKnowledgeBaseCommand";
|
|
18
|
+
export * from "./GetAgentVersionCommand";
|
|
19
|
+
export * from "./GetDataSourceCommand";
|
|
20
|
+
export * from "./GetIngestionJobCommand";
|
|
21
|
+
export * from "./GetKnowledgeBaseCommand";
|
|
22
|
+
export * from "./ListAgentActionGroupsCommand";
|
|
23
|
+
export * from "./ListAgentAliasesCommand";
|
|
24
|
+
export * from "./ListAgentKnowledgeBasesCommand";
|
|
25
|
+
export * from "./ListAgentVersionsCommand";
|
|
26
|
+
export * from "./ListAgentsCommand";
|
|
27
|
+
export * from "./ListDataSourcesCommand";
|
|
28
|
+
export * from "./ListIngestionJobsCommand";
|
|
29
|
+
export * from "./ListKnowledgeBasesCommand";
|
|
30
|
+
export * from "./ListTagsForResourceCommand";
|
|
31
|
+
export * from "./PrepareAgentCommand";
|
|
32
|
+
export * from "./StartIngestionJobCommand";
|
|
33
|
+
export * from "./TagResourceCommand";
|
|
34
|
+
export * from "./UntagResourceCommand";
|
|
35
|
+
export * from "./UpdateAgentActionGroupCommand";
|
|
36
|
+
export * from "./UpdateAgentAliasCommand";
|
|
37
|
+
export * from "./UpdateAgentCommand";
|
|
38
|
+
export * from "./UpdateAgentKnowledgeBaseCommand";
|
|
39
|
+
export * from "./UpdateDataSourceCommand";
|
|
40
|
+
export * from "./UpdateKnowledgeBaseCommand";
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { Endpoint, EndpointParameters as __EndpointParameters, EndpointV2, Provider } from "@smithy/types";
|
|
2
|
+
/**
|
|
3
|
+
* @public
|
|
4
|
+
*/
|
|
5
|
+
export interface ClientInputEndpointParameters {
|
|
6
|
+
region?: string | Provider<string>;
|
|
7
|
+
useDualstackEndpoint?: boolean | Provider<boolean>;
|
|
8
|
+
useFipsEndpoint?: boolean | Provider<boolean>;
|
|
9
|
+
endpoint?: string | Provider<string> | Endpoint | Provider<Endpoint> | EndpointV2 | Provider<EndpointV2>;
|
|
10
|
+
}
|
|
11
|
+
export type ClientResolvedEndpointParameters = ClientInputEndpointParameters & {
|
|
12
|
+
defaultSigningName: string;
|
|
13
|
+
};
|
|
14
|
+
export declare const resolveClientEndpointParameters: <T>(options: T & ClientInputEndpointParameters) => T & ClientInputEndpointParameters & {
|
|
15
|
+
defaultSigningName: string;
|
|
16
|
+
};
|
|
17
|
+
export interface EndpointParameters extends __EndpointParameters {
|
|
18
|
+
Region?: string;
|
|
19
|
+
UseDualStack?: boolean;
|
|
20
|
+
UseFIPS?: boolean;
|
|
21
|
+
Endpoint?: string;
|
|
22
|
+
}
|