@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,115 @@
|
|
|
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 { StartIngestionJobRequest, StartIngestionJobResponse } from "../models/models_0";
|
|
6
|
+
/**
|
|
7
|
+
* @public
|
|
8
|
+
*/
|
|
9
|
+
export { __MetadataBearer, $Command };
|
|
10
|
+
/**
|
|
11
|
+
* @public
|
|
12
|
+
*
|
|
13
|
+
* The input for {@link StartIngestionJobCommand}.
|
|
14
|
+
*/
|
|
15
|
+
export interface StartIngestionJobCommandInput extends StartIngestionJobRequest {
|
|
16
|
+
}
|
|
17
|
+
/**
|
|
18
|
+
* @public
|
|
19
|
+
*
|
|
20
|
+
* The output of {@link StartIngestionJobCommand}.
|
|
21
|
+
*/
|
|
22
|
+
export interface StartIngestionJobCommandOutput extends StartIngestionJobResponse, __MetadataBearer {
|
|
23
|
+
}
|
|
24
|
+
/**
|
|
25
|
+
* @public
|
|
26
|
+
* Start a new ingestion job
|
|
27
|
+
* @example
|
|
28
|
+
* Use a bare-bones client and the command you need to make an API call.
|
|
29
|
+
* ```javascript
|
|
30
|
+
* import { BedrockAgentClient, StartIngestionJobCommand } from "@aws-sdk/client-bedrock-agent"; // ES Modules import
|
|
31
|
+
* // const { BedrockAgentClient, StartIngestionJobCommand } = require("@aws-sdk/client-bedrock-agent"); // CommonJS import
|
|
32
|
+
* const client = new BedrockAgentClient(config);
|
|
33
|
+
* const input = { // StartIngestionJobRequest
|
|
34
|
+
* knowledgeBaseId: "STRING_VALUE", // required
|
|
35
|
+
* dataSourceId: "STRING_VALUE", // required
|
|
36
|
+
* clientToken: "STRING_VALUE",
|
|
37
|
+
* description: "STRING_VALUE",
|
|
38
|
+
* };
|
|
39
|
+
* const command = new StartIngestionJobCommand(input);
|
|
40
|
+
* const response = await client.send(command);
|
|
41
|
+
* // { // StartIngestionJobResponse
|
|
42
|
+
* // ingestionJob: { // IngestionJob
|
|
43
|
+
* // knowledgeBaseId: "STRING_VALUE", // required
|
|
44
|
+
* // dataSourceId: "STRING_VALUE", // required
|
|
45
|
+
* // ingestionJobId: "STRING_VALUE", // required
|
|
46
|
+
* // description: "STRING_VALUE",
|
|
47
|
+
* // status: "STARTING" || "IN_PROGRESS" || "COMPLETE" || "FAILED", // required
|
|
48
|
+
* // statistics: { // IngestionJobStatistics
|
|
49
|
+
* // numberOfDocumentsScanned: Number("long"),
|
|
50
|
+
* // numberOfNewDocumentsIndexed: Number("long"),
|
|
51
|
+
* // numberOfModifiedDocumentsIndexed: Number("long"),
|
|
52
|
+
* // numberOfDocumentsDeleted: Number("long"),
|
|
53
|
+
* // numberOfDocumentsFailed: Number("long"),
|
|
54
|
+
* // },
|
|
55
|
+
* // failureReasons: [ // FailureReasons
|
|
56
|
+
* // "STRING_VALUE",
|
|
57
|
+
* // ],
|
|
58
|
+
* // startedAt: new Date("TIMESTAMP"), // required
|
|
59
|
+
* // updatedAt: new Date("TIMESTAMP"), // required
|
|
60
|
+
* // },
|
|
61
|
+
* // };
|
|
62
|
+
*
|
|
63
|
+
* ```
|
|
64
|
+
*
|
|
65
|
+
* @param StartIngestionJobCommandInput - {@link StartIngestionJobCommandInput}
|
|
66
|
+
* @returns {@link StartIngestionJobCommandOutput}
|
|
67
|
+
* @see {@link StartIngestionJobCommandInput} for command's `input` shape.
|
|
68
|
+
* @see {@link StartIngestionJobCommandOutput} for command's `response` shape.
|
|
69
|
+
* @see {@link BedrockAgentClientResolvedConfig | config} for BedrockAgentClient's `config` shape.
|
|
70
|
+
*
|
|
71
|
+
* @throws {@link AccessDeniedException} (client fault)
|
|
72
|
+
* This exception is thrown when a request is denied per access permissions
|
|
73
|
+
*
|
|
74
|
+
* @throws {@link ConflictException} (client fault)
|
|
75
|
+
* This exception is thrown when there is a conflict performing an operation
|
|
76
|
+
*
|
|
77
|
+
* @throws {@link InternalServerException} (server fault)
|
|
78
|
+
* This exception is thrown if there was an unexpected error during processing of request
|
|
79
|
+
*
|
|
80
|
+
* @throws {@link ResourceNotFoundException} (client fault)
|
|
81
|
+
* This exception is thrown when a resource referenced by the operation does not exist
|
|
82
|
+
*
|
|
83
|
+
* @throws {@link ServiceQuotaExceededException} (client fault)
|
|
84
|
+
* This exception is thrown when a request is made beyond the service quota
|
|
85
|
+
*
|
|
86
|
+
* @throws {@link ThrottlingException} (client fault)
|
|
87
|
+
* This exception is thrown when the number of requests exceeds the limit
|
|
88
|
+
*
|
|
89
|
+
* @throws {@link ValidationException} (client fault)
|
|
90
|
+
* This exception is thrown when the request's input validation fails
|
|
91
|
+
*
|
|
92
|
+
* @throws {@link BedrockAgentServiceException}
|
|
93
|
+
* <p>Base exception class for all service exceptions from BedrockAgent service.</p>
|
|
94
|
+
*
|
|
95
|
+
*/
|
|
96
|
+
export declare class StartIngestionJobCommand extends $Command<StartIngestionJobCommandInput, StartIngestionJobCommandOutput, BedrockAgentClientResolvedConfig> {
|
|
97
|
+
readonly input: StartIngestionJobCommandInput;
|
|
98
|
+
static getEndpointParameterInstructions(): EndpointParameterInstructions;
|
|
99
|
+
/**
|
|
100
|
+
* @public
|
|
101
|
+
*/
|
|
102
|
+
constructor(input: StartIngestionJobCommandInput);
|
|
103
|
+
/**
|
|
104
|
+
* @internal
|
|
105
|
+
*/
|
|
106
|
+
resolveMiddleware(clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>, configuration: BedrockAgentClientResolvedConfig, options?: __HttpHandlerOptions): Handler<StartIngestionJobCommandInput, StartIngestionJobCommandOutput>;
|
|
107
|
+
/**
|
|
108
|
+
* @internal
|
|
109
|
+
*/
|
|
110
|
+
private serialize;
|
|
111
|
+
/**
|
|
112
|
+
* @internal
|
|
113
|
+
*/
|
|
114
|
+
private deserialize;
|
|
115
|
+
}
|
|
@@ -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 { TagResourceRequest, TagResourceResponse } from "../models/models_0";
|
|
6
|
+
/**
|
|
7
|
+
* @public
|
|
8
|
+
*/
|
|
9
|
+
export { __MetadataBearer, $Command };
|
|
10
|
+
/**
|
|
11
|
+
* @public
|
|
12
|
+
*
|
|
13
|
+
* The input for {@link TagResourceCommand}.
|
|
14
|
+
*/
|
|
15
|
+
export interface TagResourceCommandInput extends TagResourceRequest {
|
|
16
|
+
}
|
|
17
|
+
/**
|
|
18
|
+
* @public
|
|
19
|
+
*
|
|
20
|
+
* The output of {@link TagResourceCommand}.
|
|
21
|
+
*/
|
|
22
|
+
export interface TagResourceCommandOutput extends TagResourceResponse, __MetadataBearer {
|
|
23
|
+
}
|
|
24
|
+
/**
|
|
25
|
+
* @public
|
|
26
|
+
* Tag a resource
|
|
27
|
+
* @example
|
|
28
|
+
* Use a bare-bones client and the command you need to make an API call.
|
|
29
|
+
* ```javascript
|
|
30
|
+
* import { BedrockAgentClient, TagResourceCommand } from "@aws-sdk/client-bedrock-agent"; // ES Modules import
|
|
31
|
+
* // const { BedrockAgentClient, TagResourceCommand } = require("@aws-sdk/client-bedrock-agent"); // CommonJS import
|
|
32
|
+
* const client = new BedrockAgentClient(config);
|
|
33
|
+
* const input = { // TagResourceRequest
|
|
34
|
+
* resourceArn: "STRING_VALUE", // required
|
|
35
|
+
* tags: { // TagsMap // required
|
|
36
|
+
* "<keys>": "STRING_VALUE",
|
|
37
|
+
* },
|
|
38
|
+
* };
|
|
39
|
+
* const command = new TagResourceCommand(input);
|
|
40
|
+
* const response = await client.send(command);
|
|
41
|
+
* // {};
|
|
42
|
+
*
|
|
43
|
+
* ```
|
|
44
|
+
*
|
|
45
|
+
* @param TagResourceCommandInput - {@link TagResourceCommandInput}
|
|
46
|
+
* @returns {@link TagResourceCommandOutput}
|
|
47
|
+
* @see {@link TagResourceCommandInput} for command's `input` shape.
|
|
48
|
+
* @see {@link TagResourceCommandOutput} 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 InternalServerException} (server fault)
|
|
55
|
+
* This exception is thrown if there was an unexpected error during processing of request
|
|
56
|
+
*
|
|
57
|
+
* @throws {@link ResourceNotFoundException} (client fault)
|
|
58
|
+
* This exception is thrown when a resource referenced by the operation does not exist
|
|
59
|
+
*
|
|
60
|
+
* @throws {@link ServiceQuotaExceededException} (client fault)
|
|
61
|
+
* This exception is thrown when a request is made beyond the service quota
|
|
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 TagResourceCommand extends $Command<TagResourceCommandInput, TagResourceCommandOutput, BedrockAgentClientResolvedConfig> {
|
|
74
|
+
readonly input: TagResourceCommandInput;
|
|
75
|
+
static getEndpointParameterInstructions(): EndpointParameterInstructions;
|
|
76
|
+
/**
|
|
77
|
+
* @public
|
|
78
|
+
*/
|
|
79
|
+
constructor(input: TagResourceCommandInput);
|
|
80
|
+
/**
|
|
81
|
+
* @internal
|
|
82
|
+
*/
|
|
83
|
+
resolveMiddleware(clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>, configuration: BedrockAgentClientResolvedConfig, options?: __HttpHandlerOptions): Handler<TagResourceCommandInput, TagResourceCommandOutput>;
|
|
84
|
+
/**
|
|
85
|
+
* @internal
|
|
86
|
+
*/
|
|
87
|
+
private serialize;
|
|
88
|
+
/**
|
|
89
|
+
* @internal
|
|
90
|
+
*/
|
|
91
|
+
private deserialize;
|
|
92
|
+
}
|
|
@@ -0,0 +1,89 @@
|
|
|
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 { UntagResourceRequest, UntagResourceResponse } from "../models/models_0";
|
|
6
|
+
/**
|
|
7
|
+
* @public
|
|
8
|
+
*/
|
|
9
|
+
export { __MetadataBearer, $Command };
|
|
10
|
+
/**
|
|
11
|
+
* @public
|
|
12
|
+
*
|
|
13
|
+
* The input for {@link UntagResourceCommand}.
|
|
14
|
+
*/
|
|
15
|
+
export interface UntagResourceCommandInput extends UntagResourceRequest {
|
|
16
|
+
}
|
|
17
|
+
/**
|
|
18
|
+
* @public
|
|
19
|
+
*
|
|
20
|
+
* The output of {@link UntagResourceCommand}.
|
|
21
|
+
*/
|
|
22
|
+
export interface UntagResourceCommandOutput extends UntagResourceResponse, __MetadataBearer {
|
|
23
|
+
}
|
|
24
|
+
/**
|
|
25
|
+
* @public
|
|
26
|
+
* Untag a resource
|
|
27
|
+
* @example
|
|
28
|
+
* Use a bare-bones client and the command you need to make an API call.
|
|
29
|
+
* ```javascript
|
|
30
|
+
* import { BedrockAgentClient, UntagResourceCommand } from "@aws-sdk/client-bedrock-agent"; // ES Modules import
|
|
31
|
+
* // const { BedrockAgentClient, UntagResourceCommand } = require("@aws-sdk/client-bedrock-agent"); // CommonJS import
|
|
32
|
+
* const client = new BedrockAgentClient(config);
|
|
33
|
+
* const input = { // UntagResourceRequest
|
|
34
|
+
* resourceArn: "STRING_VALUE", // required
|
|
35
|
+
* tagKeys: [ // TagKeyList // required
|
|
36
|
+
* "STRING_VALUE",
|
|
37
|
+
* ],
|
|
38
|
+
* };
|
|
39
|
+
* const command = new UntagResourceCommand(input);
|
|
40
|
+
* const response = await client.send(command);
|
|
41
|
+
* // {};
|
|
42
|
+
*
|
|
43
|
+
* ```
|
|
44
|
+
*
|
|
45
|
+
* @param UntagResourceCommandInput - {@link UntagResourceCommandInput}
|
|
46
|
+
* @returns {@link UntagResourceCommandOutput}
|
|
47
|
+
* @see {@link UntagResourceCommandInput} for command's `input` shape.
|
|
48
|
+
* @see {@link UntagResourceCommandOutput} 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 InternalServerException} (server fault)
|
|
55
|
+
* This exception is thrown if there was an unexpected error during processing of request
|
|
56
|
+
*
|
|
57
|
+
* @throws {@link ResourceNotFoundException} (client fault)
|
|
58
|
+
* This exception is thrown when a resource referenced by the operation does not exist
|
|
59
|
+
*
|
|
60
|
+
* @throws {@link ThrottlingException} (client fault)
|
|
61
|
+
* This exception is thrown when the number of requests exceeds the limit
|
|
62
|
+
*
|
|
63
|
+
* @throws {@link ValidationException} (client fault)
|
|
64
|
+
* This exception is thrown when the request's input validation fails
|
|
65
|
+
*
|
|
66
|
+
* @throws {@link BedrockAgentServiceException}
|
|
67
|
+
* <p>Base exception class for all service exceptions from BedrockAgent service.</p>
|
|
68
|
+
*
|
|
69
|
+
*/
|
|
70
|
+
export declare class UntagResourceCommand extends $Command<UntagResourceCommandInput, UntagResourceCommandOutput, BedrockAgentClientResolvedConfig> {
|
|
71
|
+
readonly input: UntagResourceCommandInput;
|
|
72
|
+
static getEndpointParameterInstructions(): EndpointParameterInstructions;
|
|
73
|
+
/**
|
|
74
|
+
* @public
|
|
75
|
+
*/
|
|
76
|
+
constructor(input: UntagResourceCommandInput);
|
|
77
|
+
/**
|
|
78
|
+
* @internal
|
|
79
|
+
*/
|
|
80
|
+
resolveMiddleware(clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>, configuration: BedrockAgentClientResolvedConfig, options?: __HttpHandlerOptions): Handler<UntagResourceCommandInput, UntagResourceCommandOutput>;
|
|
81
|
+
/**
|
|
82
|
+
* @internal
|
|
83
|
+
*/
|
|
84
|
+
private serialize;
|
|
85
|
+
/**
|
|
86
|
+
* @internal
|
|
87
|
+
*/
|
|
88
|
+
private deserialize;
|
|
89
|
+
}
|
|
@@ -0,0 +1,131 @@
|
|
|
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 { UpdateAgentActionGroupRequest, UpdateAgentActionGroupResponse } from "../models/models_0";
|
|
6
|
+
/**
|
|
7
|
+
* @public
|
|
8
|
+
*/
|
|
9
|
+
export { __MetadataBearer, $Command };
|
|
10
|
+
/**
|
|
11
|
+
* @public
|
|
12
|
+
*
|
|
13
|
+
* The input for {@link UpdateAgentActionGroupCommand}.
|
|
14
|
+
*/
|
|
15
|
+
export interface UpdateAgentActionGroupCommandInput extends UpdateAgentActionGroupRequest {
|
|
16
|
+
}
|
|
17
|
+
/**
|
|
18
|
+
* @public
|
|
19
|
+
*
|
|
20
|
+
* The output of {@link UpdateAgentActionGroupCommand}.
|
|
21
|
+
*/
|
|
22
|
+
export interface UpdateAgentActionGroupCommandOutput extends UpdateAgentActionGroupResponse, __MetadataBearer {
|
|
23
|
+
}
|
|
24
|
+
/**
|
|
25
|
+
* @public
|
|
26
|
+
* Updates an existing Action Group for 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, UpdateAgentActionGroupCommand } from "@aws-sdk/client-bedrock-agent"; // ES Modules import
|
|
31
|
+
* // const { BedrockAgentClient, UpdateAgentActionGroupCommand } = require("@aws-sdk/client-bedrock-agent"); // CommonJS import
|
|
32
|
+
* const client = new BedrockAgentClient(config);
|
|
33
|
+
* const input = { // UpdateAgentActionGroupRequest
|
|
34
|
+
* agentId: "STRING_VALUE", // required
|
|
35
|
+
* agentVersion: "STRING_VALUE", // required
|
|
36
|
+
* actionGroupId: "STRING_VALUE", // required
|
|
37
|
+
* actionGroupName: "STRING_VALUE", // required
|
|
38
|
+
* description: "STRING_VALUE",
|
|
39
|
+
* parentActionGroupSignature: "AMAZON.UserInput",
|
|
40
|
+
* actionGroupExecutor: { // ActionGroupExecutor Union: only one key present
|
|
41
|
+
* lambda: "STRING_VALUE",
|
|
42
|
+
* },
|
|
43
|
+
* actionGroupState: "ENABLED" || "DISABLED",
|
|
44
|
+
* apiSchema: { // APISchema Union: only one key present
|
|
45
|
+
* s3: { // S3Identifier
|
|
46
|
+
* s3BucketName: "STRING_VALUE",
|
|
47
|
+
* s3ObjectKey: "STRING_VALUE",
|
|
48
|
+
* },
|
|
49
|
+
* payload: "STRING_VALUE",
|
|
50
|
+
* },
|
|
51
|
+
* };
|
|
52
|
+
* const command = new UpdateAgentActionGroupCommand(input);
|
|
53
|
+
* const response = await client.send(command);
|
|
54
|
+
* // { // UpdateAgentActionGroupResponse
|
|
55
|
+
* // agentActionGroup: { // AgentActionGroup
|
|
56
|
+
* // agentId: "STRING_VALUE", // required
|
|
57
|
+
* // agentVersion: "STRING_VALUE", // required
|
|
58
|
+
* // actionGroupId: "STRING_VALUE", // required
|
|
59
|
+
* // actionGroupName: "STRING_VALUE", // required
|
|
60
|
+
* // clientToken: "STRING_VALUE",
|
|
61
|
+
* // description: "STRING_VALUE",
|
|
62
|
+
* // createdAt: new Date("TIMESTAMP"), // required
|
|
63
|
+
* // updatedAt: new Date("TIMESTAMP"), // required
|
|
64
|
+
* // parentActionSignature: "AMAZON.UserInput",
|
|
65
|
+
* // actionGroupExecutor: { // ActionGroupExecutor Union: only one key present
|
|
66
|
+
* // lambda: "STRING_VALUE",
|
|
67
|
+
* // },
|
|
68
|
+
* // apiSchema: { // APISchema Union: only one key present
|
|
69
|
+
* // s3: { // S3Identifier
|
|
70
|
+
* // s3BucketName: "STRING_VALUE",
|
|
71
|
+
* // s3ObjectKey: "STRING_VALUE",
|
|
72
|
+
* // },
|
|
73
|
+
* // payload: "STRING_VALUE",
|
|
74
|
+
* // },
|
|
75
|
+
* // actionGroupState: "ENABLED" || "DISABLED", // required
|
|
76
|
+
* // },
|
|
77
|
+
* // };
|
|
78
|
+
*
|
|
79
|
+
* ```
|
|
80
|
+
*
|
|
81
|
+
* @param UpdateAgentActionGroupCommandInput - {@link UpdateAgentActionGroupCommandInput}
|
|
82
|
+
* @returns {@link UpdateAgentActionGroupCommandOutput}
|
|
83
|
+
* @see {@link UpdateAgentActionGroupCommandInput} for command's `input` shape.
|
|
84
|
+
* @see {@link UpdateAgentActionGroupCommandOutput} for command's `response` shape.
|
|
85
|
+
* @see {@link BedrockAgentClientResolvedConfig | config} for BedrockAgentClient's `config` shape.
|
|
86
|
+
*
|
|
87
|
+
* @throws {@link AccessDeniedException} (client fault)
|
|
88
|
+
* This exception is thrown when a request is denied per access permissions
|
|
89
|
+
*
|
|
90
|
+
* @throws {@link ConflictException} (client fault)
|
|
91
|
+
* This exception is thrown when there is a conflict performing an operation
|
|
92
|
+
*
|
|
93
|
+
* @throws {@link InternalServerException} (server fault)
|
|
94
|
+
* This exception is thrown if there was an unexpected error during processing of request
|
|
95
|
+
*
|
|
96
|
+
* @throws {@link ResourceNotFoundException} (client fault)
|
|
97
|
+
* This exception is thrown when a resource referenced by the operation does not exist
|
|
98
|
+
*
|
|
99
|
+
* @throws {@link ServiceQuotaExceededException} (client fault)
|
|
100
|
+
* This exception is thrown when a request is made beyond the service quota
|
|
101
|
+
*
|
|
102
|
+
* @throws {@link ThrottlingException} (client fault)
|
|
103
|
+
* This exception is thrown when the number of requests exceeds the limit
|
|
104
|
+
*
|
|
105
|
+
* @throws {@link ValidationException} (client fault)
|
|
106
|
+
* This exception is thrown when the request's input validation fails
|
|
107
|
+
*
|
|
108
|
+
* @throws {@link BedrockAgentServiceException}
|
|
109
|
+
* <p>Base exception class for all service exceptions from BedrockAgent service.</p>
|
|
110
|
+
*
|
|
111
|
+
*/
|
|
112
|
+
export declare class UpdateAgentActionGroupCommand extends $Command<UpdateAgentActionGroupCommandInput, UpdateAgentActionGroupCommandOutput, BedrockAgentClientResolvedConfig> {
|
|
113
|
+
readonly input: UpdateAgentActionGroupCommandInput;
|
|
114
|
+
static getEndpointParameterInstructions(): EndpointParameterInstructions;
|
|
115
|
+
/**
|
|
116
|
+
* @public
|
|
117
|
+
*/
|
|
118
|
+
constructor(input: UpdateAgentActionGroupCommandInput);
|
|
119
|
+
/**
|
|
120
|
+
* @internal
|
|
121
|
+
*/
|
|
122
|
+
resolveMiddleware(clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>, configuration: BedrockAgentClientResolvedConfig, options?: __HttpHandlerOptions): Handler<UpdateAgentActionGroupCommandInput, UpdateAgentActionGroupCommandOutput>;
|
|
123
|
+
/**
|
|
124
|
+
* @internal
|
|
125
|
+
*/
|
|
126
|
+
private serialize;
|
|
127
|
+
/**
|
|
128
|
+
* @internal
|
|
129
|
+
*/
|
|
130
|
+
private deserialize;
|
|
131
|
+
}
|
|
@@ -0,0 +1,128 @@
|
|
|
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 { UpdateAgentAliasRequest, UpdateAgentAliasResponse } from "../models/models_0";
|
|
6
|
+
/**
|
|
7
|
+
* @public
|
|
8
|
+
*/
|
|
9
|
+
export { __MetadataBearer, $Command };
|
|
10
|
+
/**
|
|
11
|
+
* @public
|
|
12
|
+
*
|
|
13
|
+
* The input for {@link UpdateAgentAliasCommand}.
|
|
14
|
+
*/
|
|
15
|
+
export interface UpdateAgentAliasCommandInput extends UpdateAgentAliasRequest {
|
|
16
|
+
}
|
|
17
|
+
/**
|
|
18
|
+
* @public
|
|
19
|
+
*
|
|
20
|
+
* The output of {@link UpdateAgentAliasCommand}.
|
|
21
|
+
*/
|
|
22
|
+
export interface UpdateAgentAliasCommandOutput extends UpdateAgentAliasResponse, __MetadataBearer {
|
|
23
|
+
}
|
|
24
|
+
/**
|
|
25
|
+
* @public
|
|
26
|
+
* Updates an existing Alias for 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, UpdateAgentAliasCommand } from "@aws-sdk/client-bedrock-agent"; // ES Modules import
|
|
31
|
+
* // const { BedrockAgentClient, UpdateAgentAliasCommand } = require("@aws-sdk/client-bedrock-agent"); // CommonJS import
|
|
32
|
+
* const client = new BedrockAgentClient(config);
|
|
33
|
+
* const input = { // UpdateAgentAliasRequest
|
|
34
|
+
* agentId: "STRING_VALUE", // required
|
|
35
|
+
* agentAliasId: "STRING_VALUE", // required
|
|
36
|
+
* agentAliasName: "STRING_VALUE", // required
|
|
37
|
+
* description: "STRING_VALUE",
|
|
38
|
+
* routingConfiguration: [ // AgentAliasRoutingConfiguration
|
|
39
|
+
* { // AgentAliasRoutingConfigurationListItem
|
|
40
|
+
* agentVersion: "STRING_VALUE", // required
|
|
41
|
+
* },
|
|
42
|
+
* ],
|
|
43
|
+
* };
|
|
44
|
+
* const command = new UpdateAgentAliasCommand(input);
|
|
45
|
+
* const response = await client.send(command);
|
|
46
|
+
* // { // UpdateAgentAliasResponse
|
|
47
|
+
* // agentAlias: { // AgentAlias
|
|
48
|
+
* // agentId: "STRING_VALUE", // required
|
|
49
|
+
* // agentAliasId: "STRING_VALUE", // required
|
|
50
|
+
* // agentAliasName: "STRING_VALUE", // required
|
|
51
|
+
* // agentAliasArn: "STRING_VALUE", // required
|
|
52
|
+
* // clientToken: "STRING_VALUE",
|
|
53
|
+
* // description: "STRING_VALUE",
|
|
54
|
+
* // routingConfiguration: [ // AgentAliasRoutingConfiguration // required
|
|
55
|
+
* // { // AgentAliasRoutingConfigurationListItem
|
|
56
|
+
* // agentVersion: "STRING_VALUE", // required
|
|
57
|
+
* // },
|
|
58
|
+
* // ],
|
|
59
|
+
* // createdAt: new Date("TIMESTAMP"), // required
|
|
60
|
+
* // updatedAt: new Date("TIMESTAMP"), // required
|
|
61
|
+
* // agentAliasHistoryEvents: [ // AgentAliasHistoryEvents
|
|
62
|
+
* // { // AgentAliasHistoryEvent
|
|
63
|
+
* // routingConfiguration: [
|
|
64
|
+
* // {
|
|
65
|
+
* // agentVersion: "STRING_VALUE", // required
|
|
66
|
+
* // },
|
|
67
|
+
* // ],
|
|
68
|
+
* // endDate: new Date("TIMESTAMP"),
|
|
69
|
+
* // startDate: new Date("TIMESTAMP"),
|
|
70
|
+
* // },
|
|
71
|
+
* // ],
|
|
72
|
+
* // agentAliasStatus: "CREATING" || "PREPARED" || "FAILED" || "UPDATING" || "DELETING", // required
|
|
73
|
+
* // },
|
|
74
|
+
* // };
|
|
75
|
+
*
|
|
76
|
+
* ```
|
|
77
|
+
*
|
|
78
|
+
* @param UpdateAgentAliasCommandInput - {@link UpdateAgentAliasCommandInput}
|
|
79
|
+
* @returns {@link UpdateAgentAliasCommandOutput}
|
|
80
|
+
* @see {@link UpdateAgentAliasCommandInput} for command's `input` shape.
|
|
81
|
+
* @see {@link UpdateAgentAliasCommandOutput} for command's `response` shape.
|
|
82
|
+
* @see {@link BedrockAgentClientResolvedConfig | config} for BedrockAgentClient's `config` shape.
|
|
83
|
+
*
|
|
84
|
+
* @throws {@link AccessDeniedException} (client fault)
|
|
85
|
+
* This exception is thrown when a request is denied per access permissions
|
|
86
|
+
*
|
|
87
|
+
* @throws {@link ConflictException} (client fault)
|
|
88
|
+
* This exception is thrown when there is a conflict performing an operation
|
|
89
|
+
*
|
|
90
|
+
* @throws {@link InternalServerException} (server fault)
|
|
91
|
+
* This exception is thrown if there was an unexpected error during processing of request
|
|
92
|
+
*
|
|
93
|
+
* @throws {@link ResourceNotFoundException} (client fault)
|
|
94
|
+
* This exception is thrown when a resource referenced by the operation does not exist
|
|
95
|
+
*
|
|
96
|
+
* @throws {@link ServiceQuotaExceededException} (client fault)
|
|
97
|
+
* This exception is thrown when a request is made beyond the service quota
|
|
98
|
+
*
|
|
99
|
+
* @throws {@link ThrottlingException} (client fault)
|
|
100
|
+
* This exception is thrown when the number of requests exceeds the limit
|
|
101
|
+
*
|
|
102
|
+
* @throws {@link ValidationException} (client fault)
|
|
103
|
+
* This exception is thrown when the request's input validation fails
|
|
104
|
+
*
|
|
105
|
+
* @throws {@link BedrockAgentServiceException}
|
|
106
|
+
* <p>Base exception class for all service exceptions from BedrockAgent service.</p>
|
|
107
|
+
*
|
|
108
|
+
*/
|
|
109
|
+
export declare class UpdateAgentAliasCommand extends $Command<UpdateAgentAliasCommandInput, UpdateAgentAliasCommandOutput, BedrockAgentClientResolvedConfig> {
|
|
110
|
+
readonly input: UpdateAgentAliasCommandInput;
|
|
111
|
+
static getEndpointParameterInstructions(): EndpointParameterInstructions;
|
|
112
|
+
/**
|
|
113
|
+
* @public
|
|
114
|
+
*/
|
|
115
|
+
constructor(input: UpdateAgentAliasCommandInput);
|
|
116
|
+
/**
|
|
117
|
+
* @internal
|
|
118
|
+
*/
|
|
119
|
+
resolveMiddleware(clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>, configuration: BedrockAgentClientResolvedConfig, options?: __HttpHandlerOptions): Handler<UpdateAgentAliasCommandInput, UpdateAgentAliasCommandOutput>;
|
|
120
|
+
/**
|
|
121
|
+
* @internal
|
|
122
|
+
*/
|
|
123
|
+
private serialize;
|
|
124
|
+
/**
|
|
125
|
+
* @internal
|
|
126
|
+
*/
|
|
127
|
+
private deserialize;
|
|
128
|
+
}
|