@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 { CreateAgentRequest, CreateAgentResponse } from "../models/models_0";
|
|
6
|
+
/**
|
|
7
|
+
* @public
|
|
8
|
+
*/
|
|
9
|
+
export { __MetadataBearer, $Command };
|
|
10
|
+
/**
|
|
11
|
+
* @public
|
|
12
|
+
*
|
|
13
|
+
* The input for {@link CreateAgentCommand}.
|
|
14
|
+
*/
|
|
15
|
+
export interface CreateAgentCommandInput extends CreateAgentRequest {
|
|
16
|
+
}
|
|
17
|
+
/**
|
|
18
|
+
* @public
|
|
19
|
+
*
|
|
20
|
+
* The output of {@link CreateAgentCommand}.
|
|
21
|
+
*/
|
|
22
|
+
export interface CreateAgentCommandOutput extends CreateAgentResponse, __MetadataBearer {
|
|
23
|
+
}
|
|
24
|
+
/**
|
|
25
|
+
* @public
|
|
26
|
+
* Creates 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, CreateAgentCommand } from "@aws-sdk/client-bedrock-agent"; // ES Modules import
|
|
31
|
+
* // const { BedrockAgentClient, CreateAgentCommand } = require("@aws-sdk/client-bedrock-agent"); // CommonJS import
|
|
32
|
+
* const client = new BedrockAgentClient(config);
|
|
33
|
+
* const input = { // CreateAgentRequest
|
|
34
|
+
* agentName: "STRING_VALUE", // required
|
|
35
|
+
* clientToken: "STRING_VALUE",
|
|
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
|
+
* tags: { // TagsMap
|
|
43
|
+
* "<keys>": "STRING_VALUE",
|
|
44
|
+
* },
|
|
45
|
+
* promptOverrideConfiguration: { // PromptOverrideConfiguration
|
|
46
|
+
* promptConfigurations: [ // PromptConfigurations // required
|
|
47
|
+
* { // PromptConfiguration
|
|
48
|
+
* promptType: "PRE_PROCESSING" || "ORCHESTRATION" || "POST_PROCESSING" || "KNOWLEDGE_BASE_RESPONSE_GENERATION",
|
|
49
|
+
* promptCreationMode: "DEFAULT" || "OVERRIDDEN",
|
|
50
|
+
* promptState: "ENABLED" || "DISABLED",
|
|
51
|
+
* basePromptTemplate: "STRING_VALUE",
|
|
52
|
+
* inferenceConfiguration: { // InferenceConfiguration
|
|
53
|
+
* temperature: Number("float"),
|
|
54
|
+
* topP: Number("float"),
|
|
55
|
+
* topK: Number("int"),
|
|
56
|
+
* maximumLength: Number("int"),
|
|
57
|
+
* stopSequences: [ // StopSequences
|
|
58
|
+
* "STRING_VALUE",
|
|
59
|
+
* ],
|
|
60
|
+
* },
|
|
61
|
+
* parserMode: "DEFAULT" || "OVERRIDDEN",
|
|
62
|
+
* },
|
|
63
|
+
* ],
|
|
64
|
+
* overrideLambda: "STRING_VALUE",
|
|
65
|
+
* },
|
|
66
|
+
* };
|
|
67
|
+
* const command = new CreateAgentCommand(input);
|
|
68
|
+
* const response = await client.send(command);
|
|
69
|
+
* // { // CreateAgentResponse
|
|
70
|
+
* // agent: { // Agent
|
|
71
|
+
* // agentId: "STRING_VALUE", // required
|
|
72
|
+
* // agentName: "STRING_VALUE", // required
|
|
73
|
+
* // agentArn: "STRING_VALUE", // required
|
|
74
|
+
* // agentVersion: "STRING_VALUE", // required
|
|
75
|
+
* // clientToken: "STRING_VALUE",
|
|
76
|
+
* // instruction: "STRING_VALUE",
|
|
77
|
+
* // agentStatus: "CREATING" || "PREPARING" || "PREPARED" || "NOT_PREPARED" || "DELETING" || "FAILED" || "VERSIONING" || "UPDATING", // required
|
|
78
|
+
* // foundationModel: "STRING_VALUE",
|
|
79
|
+
* // description: "STRING_VALUE",
|
|
80
|
+
* // idleSessionTTLInSeconds: Number("int"), // required
|
|
81
|
+
* // agentResourceRoleArn: "STRING_VALUE", // required
|
|
82
|
+
* // customerEncryptionKeyArn: "STRING_VALUE",
|
|
83
|
+
* // createdAt: new Date("TIMESTAMP"), // required
|
|
84
|
+
* // updatedAt: new Date("TIMESTAMP"), // required
|
|
85
|
+
* // preparedAt: new Date("TIMESTAMP"),
|
|
86
|
+
* // failureReasons: [ // FailureReasons
|
|
87
|
+
* // "STRING_VALUE",
|
|
88
|
+
* // ],
|
|
89
|
+
* // recommendedActions: [ // RecommendedActions
|
|
90
|
+
* // "STRING_VALUE",
|
|
91
|
+
* // ],
|
|
92
|
+
* // promptOverrideConfiguration: { // PromptOverrideConfiguration
|
|
93
|
+
* // promptConfigurations: [ // PromptConfigurations // required
|
|
94
|
+
* // { // PromptConfiguration
|
|
95
|
+
* // promptType: "PRE_PROCESSING" || "ORCHESTRATION" || "POST_PROCESSING" || "KNOWLEDGE_BASE_RESPONSE_GENERATION",
|
|
96
|
+
* // promptCreationMode: "DEFAULT" || "OVERRIDDEN",
|
|
97
|
+
* // promptState: "ENABLED" || "DISABLED",
|
|
98
|
+
* // basePromptTemplate: "STRING_VALUE",
|
|
99
|
+
* // inferenceConfiguration: { // InferenceConfiguration
|
|
100
|
+
* // temperature: Number("float"),
|
|
101
|
+
* // topP: Number("float"),
|
|
102
|
+
* // topK: Number("int"),
|
|
103
|
+
* // maximumLength: Number("int"),
|
|
104
|
+
* // stopSequences: [ // StopSequences
|
|
105
|
+
* // "STRING_VALUE",
|
|
106
|
+
* // ],
|
|
107
|
+
* // },
|
|
108
|
+
* // parserMode: "DEFAULT" || "OVERRIDDEN",
|
|
109
|
+
* // },
|
|
110
|
+
* // ],
|
|
111
|
+
* // overrideLambda: "STRING_VALUE",
|
|
112
|
+
* // },
|
|
113
|
+
* // },
|
|
114
|
+
* // };
|
|
115
|
+
*
|
|
116
|
+
* ```
|
|
117
|
+
*
|
|
118
|
+
* @param CreateAgentCommandInput - {@link CreateAgentCommandInput}
|
|
119
|
+
* @returns {@link CreateAgentCommandOutput}
|
|
120
|
+
* @see {@link CreateAgentCommandInput} for command's `input` shape.
|
|
121
|
+
* @see {@link CreateAgentCommandOutput} for command's `response` shape.
|
|
122
|
+
* @see {@link BedrockAgentClientResolvedConfig | config} for BedrockAgentClient's `config` shape.
|
|
123
|
+
*
|
|
124
|
+
* @throws {@link AccessDeniedException} (client fault)
|
|
125
|
+
* This exception is thrown when a request is denied per access permissions
|
|
126
|
+
*
|
|
127
|
+
* @throws {@link ConflictException} (client fault)
|
|
128
|
+
* This exception is thrown when there is a conflict performing an operation
|
|
129
|
+
*
|
|
130
|
+
* @throws {@link InternalServerException} (server fault)
|
|
131
|
+
* This exception is thrown if there was an unexpected error during processing of request
|
|
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 CreateAgentCommand extends $Command<CreateAgentCommandInput, CreateAgentCommandOutput, BedrockAgentClientResolvedConfig> {
|
|
147
|
+
readonly input: CreateAgentCommandInput;
|
|
148
|
+
static getEndpointParameterInstructions(): EndpointParameterInstructions;
|
|
149
|
+
/**
|
|
150
|
+
* @public
|
|
151
|
+
*/
|
|
152
|
+
constructor(input: CreateAgentCommandInput);
|
|
153
|
+
/**
|
|
154
|
+
* @internal
|
|
155
|
+
*/
|
|
156
|
+
resolveMiddleware(clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>, configuration: BedrockAgentClientResolvedConfig, options?: __HttpHandlerOptions): Handler<CreateAgentCommandInput, CreateAgentCommandOutput>;
|
|
157
|
+
/**
|
|
158
|
+
* @internal
|
|
159
|
+
*/
|
|
160
|
+
private serialize;
|
|
161
|
+
/**
|
|
162
|
+
* @internal
|
|
163
|
+
*/
|
|
164
|
+
private deserialize;
|
|
165
|
+
}
|
|
@@ -0,0 +1,147 @@
|
|
|
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 { CreateDataSourceRequest, CreateDataSourceResponse } from "../models/models_0";
|
|
6
|
+
/**
|
|
7
|
+
* @public
|
|
8
|
+
*/
|
|
9
|
+
export { __MetadataBearer, $Command };
|
|
10
|
+
/**
|
|
11
|
+
* @public
|
|
12
|
+
*
|
|
13
|
+
* The input for {@link CreateDataSourceCommand}.
|
|
14
|
+
*/
|
|
15
|
+
export interface CreateDataSourceCommandInput extends CreateDataSourceRequest {
|
|
16
|
+
}
|
|
17
|
+
/**
|
|
18
|
+
* @public
|
|
19
|
+
*
|
|
20
|
+
* The output of {@link CreateDataSourceCommand}.
|
|
21
|
+
*/
|
|
22
|
+
export interface CreateDataSourceCommandOutput extends CreateDataSourceResponse, __MetadataBearer {
|
|
23
|
+
}
|
|
24
|
+
/**
|
|
25
|
+
* @public
|
|
26
|
+
* Create a new 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, CreateDataSourceCommand } from "@aws-sdk/client-bedrock-agent"; // ES Modules import
|
|
31
|
+
* // const { BedrockAgentClient, CreateDataSourceCommand } = require("@aws-sdk/client-bedrock-agent"); // CommonJS import
|
|
32
|
+
* const client = new BedrockAgentClient(config);
|
|
33
|
+
* const input = { // CreateDataSourceRequest
|
|
34
|
+
* knowledgeBaseId: "STRING_VALUE", // required
|
|
35
|
+
* clientToken: "STRING_VALUE",
|
|
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 CreateDataSourceCommand(input);
|
|
61
|
+
* const response = await client.send(command);
|
|
62
|
+
* // { // CreateDataSourceResponse
|
|
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 CreateDataSourceCommandInput - {@link CreateDataSourceCommandInput}
|
|
98
|
+
* @returns {@link CreateDataSourceCommandOutput}
|
|
99
|
+
* @see {@link CreateDataSourceCommandInput} for command's `input` shape.
|
|
100
|
+
* @see {@link CreateDataSourceCommandOutput} 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 ServiceQuotaExceededException} (client fault)
|
|
116
|
+
* This exception is thrown when a request is made beyond the service quota
|
|
117
|
+
*
|
|
118
|
+
* @throws {@link ThrottlingException} (client fault)
|
|
119
|
+
* This exception is thrown when the number of requests exceeds the limit
|
|
120
|
+
*
|
|
121
|
+
* @throws {@link ValidationException} (client fault)
|
|
122
|
+
* This exception is thrown when the request's input validation fails
|
|
123
|
+
*
|
|
124
|
+
* @throws {@link BedrockAgentServiceException}
|
|
125
|
+
* <p>Base exception class for all service exceptions from BedrockAgent service.</p>
|
|
126
|
+
*
|
|
127
|
+
*/
|
|
128
|
+
export declare class CreateDataSourceCommand extends $Command<CreateDataSourceCommandInput, CreateDataSourceCommandOutput, BedrockAgentClientResolvedConfig> {
|
|
129
|
+
readonly input: CreateDataSourceCommandInput;
|
|
130
|
+
static getEndpointParameterInstructions(): EndpointParameterInstructions;
|
|
131
|
+
/**
|
|
132
|
+
* @public
|
|
133
|
+
*/
|
|
134
|
+
constructor(input: CreateDataSourceCommandInput);
|
|
135
|
+
/**
|
|
136
|
+
* @internal
|
|
137
|
+
*/
|
|
138
|
+
resolveMiddleware(clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>, configuration: BedrockAgentClientResolvedConfig, options?: __HttpHandlerOptions): Handler<CreateDataSourceCommandInput, CreateDataSourceCommandOutput>;
|
|
139
|
+
/**
|
|
140
|
+
* @internal
|
|
141
|
+
*/
|
|
142
|
+
private serialize;
|
|
143
|
+
/**
|
|
144
|
+
* @internal
|
|
145
|
+
*/
|
|
146
|
+
private deserialize;
|
|
147
|
+
}
|
|
@@ -0,0 +1,183 @@
|
|
|
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 { CreateKnowledgeBaseRequest, CreateKnowledgeBaseResponse } from "../models/models_0";
|
|
6
|
+
/**
|
|
7
|
+
* @public
|
|
8
|
+
*/
|
|
9
|
+
export { __MetadataBearer, $Command };
|
|
10
|
+
/**
|
|
11
|
+
* @public
|
|
12
|
+
*
|
|
13
|
+
* The input for {@link CreateKnowledgeBaseCommand}.
|
|
14
|
+
*/
|
|
15
|
+
export interface CreateKnowledgeBaseCommandInput extends CreateKnowledgeBaseRequest {
|
|
16
|
+
}
|
|
17
|
+
/**
|
|
18
|
+
* @public
|
|
19
|
+
*
|
|
20
|
+
* The output of {@link CreateKnowledgeBaseCommand}.
|
|
21
|
+
*/
|
|
22
|
+
export interface CreateKnowledgeBaseCommandOutput extends CreateKnowledgeBaseResponse, __MetadataBearer {
|
|
23
|
+
}
|
|
24
|
+
/**
|
|
25
|
+
* @public
|
|
26
|
+
* Create a new 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, CreateKnowledgeBaseCommand } from "@aws-sdk/client-bedrock-agent"; // ES Modules import
|
|
31
|
+
* // const { BedrockAgentClient, CreateKnowledgeBaseCommand } = require("@aws-sdk/client-bedrock-agent"); // CommonJS import
|
|
32
|
+
* const client = new BedrockAgentClient(config);
|
|
33
|
+
* const input = { // CreateKnowledgeBaseRequest
|
|
34
|
+
* clientToken: "STRING_VALUE",
|
|
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
|
+
* tags: { // TagsMap
|
|
76
|
+
* "<keys>": "STRING_VALUE",
|
|
77
|
+
* },
|
|
78
|
+
* };
|
|
79
|
+
* const command = new CreateKnowledgeBaseCommand(input);
|
|
80
|
+
* const response = await client.send(command);
|
|
81
|
+
* // { // CreateKnowledgeBaseResponse
|
|
82
|
+
* // knowledgeBase: { // KnowledgeBase
|
|
83
|
+
* // knowledgeBaseId: "STRING_VALUE", // required
|
|
84
|
+
* // name: "STRING_VALUE", // required
|
|
85
|
+
* // knowledgeBaseArn: "STRING_VALUE", // required
|
|
86
|
+
* // description: "STRING_VALUE",
|
|
87
|
+
* // roleArn: "STRING_VALUE", // required
|
|
88
|
+
* // knowledgeBaseConfiguration: { // KnowledgeBaseConfiguration
|
|
89
|
+
* // type: "VECTOR", // required
|
|
90
|
+
* // vectorKnowledgeBaseConfiguration: { // VectorKnowledgeBaseConfiguration
|
|
91
|
+
* // embeddingModelArn: "STRING_VALUE", // required
|
|
92
|
+
* // },
|
|
93
|
+
* // },
|
|
94
|
+
* // storageConfiguration: { // StorageConfiguration
|
|
95
|
+
* // type: "OPENSEARCH_SERVERLESS" || "PINECONE" || "REDIS_ENTERPRISE_CLOUD", // required
|
|
96
|
+
* // opensearchServerlessConfiguration: { // OpenSearchServerlessConfiguration
|
|
97
|
+
* // collectionArn: "STRING_VALUE", // required
|
|
98
|
+
* // vectorIndexName: "STRING_VALUE", // required
|
|
99
|
+
* // fieldMapping: { // OpenSearchServerlessFieldMapping
|
|
100
|
+
* // vectorField: "STRING_VALUE", // required
|
|
101
|
+
* // textField: "STRING_VALUE", // required
|
|
102
|
+
* // metadataField: "STRING_VALUE", // required
|
|
103
|
+
* // },
|
|
104
|
+
* // },
|
|
105
|
+
* // pineconeConfiguration: { // PineconeConfiguration
|
|
106
|
+
* // connectionString: "STRING_VALUE", // required
|
|
107
|
+
* // credentialsSecretArn: "STRING_VALUE", // required
|
|
108
|
+
* // namespace: "STRING_VALUE",
|
|
109
|
+
* // fieldMapping: { // PineconeFieldMapping
|
|
110
|
+
* // textField: "STRING_VALUE", // required
|
|
111
|
+
* // metadataField: "STRING_VALUE", // required
|
|
112
|
+
* // },
|
|
113
|
+
* // },
|
|
114
|
+
* // redisEnterpriseCloudConfiguration: { // RedisEnterpriseCloudConfiguration
|
|
115
|
+
* // endpoint: "STRING_VALUE", // required
|
|
116
|
+
* // vectorIndexName: "STRING_VALUE", // required
|
|
117
|
+
* // credentialsSecretArn: "STRING_VALUE", // required
|
|
118
|
+
* // fieldMapping: { // RedisEnterpriseCloudFieldMapping
|
|
119
|
+
* // vectorField: "STRING_VALUE", // required
|
|
120
|
+
* // textField: "STRING_VALUE", // required
|
|
121
|
+
* // metadataField: "STRING_VALUE", // required
|
|
122
|
+
* // },
|
|
123
|
+
* // },
|
|
124
|
+
* // },
|
|
125
|
+
* // status: "CREATING" || "ACTIVE" || "DELETING" || "UPDATING" || "FAILED", // required
|
|
126
|
+
* // createdAt: new Date("TIMESTAMP"), // required
|
|
127
|
+
* // updatedAt: new Date("TIMESTAMP"), // required
|
|
128
|
+
* // failureReasons: [ // FailureReasons
|
|
129
|
+
* // "STRING_VALUE",
|
|
130
|
+
* // ],
|
|
131
|
+
* // },
|
|
132
|
+
* // };
|
|
133
|
+
*
|
|
134
|
+
* ```
|
|
135
|
+
*
|
|
136
|
+
* @param CreateKnowledgeBaseCommandInput - {@link CreateKnowledgeBaseCommandInput}
|
|
137
|
+
* @returns {@link CreateKnowledgeBaseCommandOutput}
|
|
138
|
+
* @see {@link CreateKnowledgeBaseCommandInput} for command's `input` shape.
|
|
139
|
+
* @see {@link CreateKnowledgeBaseCommandOutput} for command's `response` shape.
|
|
140
|
+
* @see {@link BedrockAgentClientResolvedConfig | config} for BedrockAgentClient's `config` shape.
|
|
141
|
+
*
|
|
142
|
+
* @throws {@link AccessDeniedException} (client fault)
|
|
143
|
+
* This exception is thrown when a request is denied per access permissions
|
|
144
|
+
*
|
|
145
|
+
* @throws {@link ConflictException} (client fault)
|
|
146
|
+
* This exception is thrown when there is a conflict performing an operation
|
|
147
|
+
*
|
|
148
|
+
* @throws {@link InternalServerException} (server fault)
|
|
149
|
+
* This exception is thrown if there was an unexpected error during processing of request
|
|
150
|
+
*
|
|
151
|
+
* @throws {@link ServiceQuotaExceededException} (client fault)
|
|
152
|
+
* This exception is thrown when a request is made beyond the service quota
|
|
153
|
+
*
|
|
154
|
+
* @throws {@link ThrottlingException} (client fault)
|
|
155
|
+
* This exception is thrown when the number of requests exceeds the limit
|
|
156
|
+
*
|
|
157
|
+
* @throws {@link ValidationException} (client fault)
|
|
158
|
+
* This exception is thrown when the request's input validation fails
|
|
159
|
+
*
|
|
160
|
+
* @throws {@link BedrockAgentServiceException}
|
|
161
|
+
* <p>Base exception class for all service exceptions from BedrockAgent service.</p>
|
|
162
|
+
*
|
|
163
|
+
*/
|
|
164
|
+
export declare class CreateKnowledgeBaseCommand extends $Command<CreateKnowledgeBaseCommandInput, CreateKnowledgeBaseCommandOutput, BedrockAgentClientResolvedConfig> {
|
|
165
|
+
readonly input: CreateKnowledgeBaseCommandInput;
|
|
166
|
+
static getEndpointParameterInstructions(): EndpointParameterInstructions;
|
|
167
|
+
/**
|
|
168
|
+
* @public
|
|
169
|
+
*/
|
|
170
|
+
constructor(input: CreateKnowledgeBaseCommandInput);
|
|
171
|
+
/**
|
|
172
|
+
* @internal
|
|
173
|
+
*/
|
|
174
|
+
resolveMiddleware(clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>, configuration: BedrockAgentClientResolvedConfig, options?: __HttpHandlerOptions): Handler<CreateKnowledgeBaseCommandInput, CreateKnowledgeBaseCommandOutput>;
|
|
175
|
+
/**
|
|
176
|
+
* @internal
|
|
177
|
+
*/
|
|
178
|
+
private serialize;
|
|
179
|
+
/**
|
|
180
|
+
* @internal
|
|
181
|
+
*/
|
|
182
|
+
private deserialize;
|
|
183
|
+
}
|
|
@@ -0,0 +1,92 @@
|
|
|
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 { DeleteAgentActionGroupRequest, DeleteAgentActionGroupResponse } from "../models/models_0";
|
|
6
|
+
/**
|
|
7
|
+
* @public
|
|
8
|
+
*/
|
|
9
|
+
export { __MetadataBearer, $Command };
|
|
10
|
+
/**
|
|
11
|
+
* @public
|
|
12
|
+
*
|
|
13
|
+
* The input for {@link DeleteAgentActionGroupCommand}.
|
|
14
|
+
*/
|
|
15
|
+
export interface DeleteAgentActionGroupCommandInput extends DeleteAgentActionGroupRequest {
|
|
16
|
+
}
|
|
17
|
+
/**
|
|
18
|
+
* @public
|
|
19
|
+
*
|
|
20
|
+
* The output of {@link DeleteAgentActionGroupCommand}.
|
|
21
|
+
*/
|
|
22
|
+
export interface DeleteAgentActionGroupCommandOutput extends DeleteAgentActionGroupResponse, __MetadataBearer {
|
|
23
|
+
}
|
|
24
|
+
/**
|
|
25
|
+
* @public
|
|
26
|
+
* Deletes an Action Group for 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, DeleteAgentActionGroupCommand } from "@aws-sdk/client-bedrock-agent"; // ES Modules import
|
|
31
|
+
* // const { BedrockAgentClient, DeleteAgentActionGroupCommand } = require("@aws-sdk/client-bedrock-agent"); // CommonJS import
|
|
32
|
+
* const client = new BedrockAgentClient(config);
|
|
33
|
+
* const input = { // DeleteAgentActionGroupRequest
|
|
34
|
+
* agentId: "STRING_VALUE", // required
|
|
35
|
+
* agentVersion: "STRING_VALUE", // required
|
|
36
|
+
* actionGroupId: "STRING_VALUE", // required
|
|
37
|
+
* skipResourceInUseCheck: true || false,
|
|
38
|
+
* };
|
|
39
|
+
* const command = new DeleteAgentActionGroupCommand(input);
|
|
40
|
+
* const response = await client.send(command);
|
|
41
|
+
* // {};
|
|
42
|
+
*
|
|
43
|
+
* ```
|
|
44
|
+
*
|
|
45
|
+
* @param DeleteAgentActionGroupCommandInput - {@link DeleteAgentActionGroupCommandInput}
|
|
46
|
+
* @returns {@link DeleteAgentActionGroupCommandOutput}
|
|
47
|
+
* @see {@link DeleteAgentActionGroupCommandInput} for command's `input` shape.
|
|
48
|
+
* @see {@link DeleteAgentActionGroupCommandOutput} for command's `response` shape.
|
|
49
|
+
* @see {@link BedrockAgentClientResolvedConfig | config} for BedrockAgentClient's `config` shape.
|
|
50
|
+
*
|
|
51
|
+
* @throws {@link AccessDeniedException} (client fault)
|
|
52
|
+
* This exception is thrown when a request is denied per access permissions
|
|
53
|
+
*
|
|
54
|
+
* @throws {@link ConflictException} (client fault)
|
|
55
|
+
* This exception is thrown when there is a conflict performing an operation
|
|
56
|
+
*
|
|
57
|
+
* @throws {@link InternalServerException} (server fault)
|
|
58
|
+
* This exception is thrown if there was an unexpected error during processing of request
|
|
59
|
+
*
|
|
60
|
+
* @throws {@link ResourceNotFoundException} (client fault)
|
|
61
|
+
* This exception is thrown when a resource referenced by the operation does not exist
|
|
62
|
+
*
|
|
63
|
+
* @throws {@link ThrottlingException} (client fault)
|
|
64
|
+
* This exception is thrown when the number of requests exceeds the limit
|
|
65
|
+
*
|
|
66
|
+
* @throws {@link ValidationException} (client fault)
|
|
67
|
+
* This exception is thrown when the request's input validation fails
|
|
68
|
+
*
|
|
69
|
+
* @throws {@link BedrockAgentServiceException}
|
|
70
|
+
* <p>Base exception class for all service exceptions from BedrockAgent service.</p>
|
|
71
|
+
*
|
|
72
|
+
*/
|
|
73
|
+
export declare class DeleteAgentActionGroupCommand extends $Command<DeleteAgentActionGroupCommandInput, DeleteAgentActionGroupCommandOutput, BedrockAgentClientResolvedConfig> {
|
|
74
|
+
readonly input: DeleteAgentActionGroupCommandInput;
|
|
75
|
+
static getEndpointParameterInstructions(): EndpointParameterInstructions;
|
|
76
|
+
/**
|
|
77
|
+
* @public
|
|
78
|
+
*/
|
|
79
|
+
constructor(input: DeleteAgentActionGroupCommandInput);
|
|
80
|
+
/**
|
|
81
|
+
* @internal
|
|
82
|
+
*/
|
|
83
|
+
resolveMiddleware(clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>, configuration: BedrockAgentClientResolvedConfig, options?: __HttpHandlerOptions): Handler<DeleteAgentActionGroupCommandInput, DeleteAgentActionGroupCommandOutput>;
|
|
84
|
+
/**
|
|
85
|
+
* @internal
|
|
86
|
+
*/
|
|
87
|
+
private serialize;
|
|
88
|
+
/**
|
|
89
|
+
* @internal
|
|
90
|
+
*/
|
|
91
|
+
private deserialize;
|
|
92
|
+
}
|
|
@@ -0,0 +1,91 @@
|
|
|
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 { DeleteAgentAliasRequest, DeleteAgentAliasResponse } from "../models/models_0";
|
|
6
|
+
/**
|
|
7
|
+
* @public
|
|
8
|
+
*/
|
|
9
|
+
export { __MetadataBearer, $Command };
|
|
10
|
+
/**
|
|
11
|
+
* @public
|
|
12
|
+
*
|
|
13
|
+
* The input for {@link DeleteAgentAliasCommand}.
|
|
14
|
+
*/
|
|
15
|
+
export interface DeleteAgentAliasCommandInput extends DeleteAgentAliasRequest {
|
|
16
|
+
}
|
|
17
|
+
/**
|
|
18
|
+
* @public
|
|
19
|
+
*
|
|
20
|
+
* The output of {@link DeleteAgentAliasCommand}.
|
|
21
|
+
*/
|
|
22
|
+
export interface DeleteAgentAliasCommandOutput extends DeleteAgentAliasResponse, __MetadataBearer {
|
|
23
|
+
}
|
|
24
|
+
/**
|
|
25
|
+
* @public
|
|
26
|
+
* Deletes an Alias for a 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, DeleteAgentAliasCommand } from "@aws-sdk/client-bedrock-agent"; // ES Modules import
|
|
31
|
+
* // const { BedrockAgentClient, DeleteAgentAliasCommand } = require("@aws-sdk/client-bedrock-agent"); // CommonJS import
|
|
32
|
+
* const client = new BedrockAgentClient(config);
|
|
33
|
+
* const input = { // DeleteAgentAliasRequest
|
|
34
|
+
* agentId: "STRING_VALUE", // required
|
|
35
|
+
* agentAliasId: "STRING_VALUE", // required
|
|
36
|
+
* };
|
|
37
|
+
* const command = new DeleteAgentAliasCommand(input);
|
|
38
|
+
* const response = await client.send(command);
|
|
39
|
+
* // { // DeleteAgentAliasResponse
|
|
40
|
+
* // agentId: "STRING_VALUE", // required
|
|
41
|
+
* // agentAliasId: "STRING_VALUE", // required
|
|
42
|
+
* // agentAliasStatus: "CREATING" || "PREPARED" || "FAILED" || "UPDATING" || "DELETING", // required
|
|
43
|
+
* // };
|
|
44
|
+
*
|
|
45
|
+
* ```
|
|
46
|
+
*
|
|
47
|
+
* @param DeleteAgentAliasCommandInput - {@link DeleteAgentAliasCommandInput}
|
|
48
|
+
* @returns {@link DeleteAgentAliasCommandOutput}
|
|
49
|
+
* @see {@link DeleteAgentAliasCommandInput} for command's `input` shape.
|
|
50
|
+
* @see {@link DeleteAgentAliasCommandOutput} for command's `response` shape.
|
|
51
|
+
* @see {@link BedrockAgentClientResolvedConfig | config} for BedrockAgentClient's `config` shape.
|
|
52
|
+
*
|
|
53
|
+
* @throws {@link AccessDeniedException} (client fault)
|
|
54
|
+
* This exception is thrown when a request is denied per access permissions
|
|
55
|
+
*
|
|
56
|
+
* @throws {@link InternalServerException} (server fault)
|
|
57
|
+
* This exception is thrown if there was an unexpected error during processing of request
|
|
58
|
+
*
|
|
59
|
+
* @throws {@link ResourceNotFoundException} (client fault)
|
|
60
|
+
* This exception is thrown when a resource referenced by the operation does not exist
|
|
61
|
+
*
|
|
62
|
+
* @throws {@link ThrottlingException} (client fault)
|
|
63
|
+
* This exception is thrown when the number of requests exceeds the limit
|
|
64
|
+
*
|
|
65
|
+
* @throws {@link ValidationException} (client fault)
|
|
66
|
+
* This exception is thrown when the request's input validation fails
|
|
67
|
+
*
|
|
68
|
+
* @throws {@link BedrockAgentServiceException}
|
|
69
|
+
* <p>Base exception class for all service exceptions from BedrockAgent service.</p>
|
|
70
|
+
*
|
|
71
|
+
*/
|
|
72
|
+
export declare class DeleteAgentAliasCommand extends $Command<DeleteAgentAliasCommandInput, DeleteAgentAliasCommandOutput, BedrockAgentClientResolvedConfig> {
|
|
73
|
+
readonly input: DeleteAgentAliasCommandInput;
|
|
74
|
+
static getEndpointParameterInstructions(): EndpointParameterInstructions;
|
|
75
|
+
/**
|
|
76
|
+
* @public
|
|
77
|
+
*/
|
|
78
|
+
constructor(input: DeleteAgentAliasCommandInput);
|
|
79
|
+
/**
|
|
80
|
+
* @internal
|
|
81
|
+
*/
|
|
82
|
+
resolveMiddleware(clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>, configuration: BedrockAgentClientResolvedConfig, options?: __HttpHandlerOptions): Handler<DeleteAgentAliasCommandInput, DeleteAgentAliasCommandOutput>;
|
|
83
|
+
/**
|
|
84
|
+
* @internal
|
|
85
|
+
*/
|
|
86
|
+
private serialize;
|
|
87
|
+
/**
|
|
88
|
+
* @internal
|
|
89
|
+
*/
|
|
90
|
+
private deserialize;
|
|
91
|
+
}
|