@aws-sdk/client-bedrock-agent 3.1069.0 → 3.1071.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/README.md +21 -0
- package/dist-cjs/index.js +73 -5
- package/dist-cjs/schemas/schemas_0.js +160 -21
- package/dist-es/BedrockAgent.js +6 -0
- package/dist-es/commands/DeleteResourcePolicyCommand.js +16 -0
- package/dist-es/commands/GetResourcePolicyCommand.js +16 -0
- package/dist-es/commands/PutResourcePolicyCommand.js +16 -0
- package/dist-es/commands/index.js +3 -0
- package/dist-es/models/enums.js +26 -4
- package/dist-es/schemas/schemas_0.js +146 -21
- package/dist-types/BedrockAgent.d.ts +21 -0
- package/dist-types/BedrockAgentClient.d.ts +5 -2
- package/dist-types/commands/CreateDataSourceCommand.d.ts +41 -5
- package/dist-types/commands/CreateKnowledgeBaseCommand.d.ts +58 -4
- package/dist-types/commands/DeleteDataSourceCommand.d.ts +1 -1
- package/dist-types/commands/DeleteKnowledgeBaseCommand.d.ts +1 -1
- package/dist-types/commands/DeleteResourcePolicyCommand.d.ts +96 -0
- package/dist-types/commands/GetDataSourceCommand.d.ts +21 -3
- package/dist-types/commands/GetIngestionJobCommand.d.ts +1 -0
- package/dist-types/commands/GetKnowledgeBaseCommand.d.ts +29 -2
- package/dist-types/commands/GetResourcePolicyCommand.d.ts +93 -0
- package/dist-types/commands/IngestKnowledgeBaseDocumentsCommand.d.ts +7 -0
- package/dist-types/commands/ListDataSourcesCommand.d.ts +1 -1
- package/dist-types/commands/ListIngestionJobsCommand.d.ts +1 -0
- package/dist-types/commands/ListKnowledgeBasesCommand.d.ts +1 -1
- package/dist-types/commands/PutResourcePolicyCommand.d.ts +97 -0
- package/dist-types/commands/StartIngestionJobCommand.d.ts +1 -0
- package/dist-types/commands/StopIngestionJobCommand.d.ts +1 -0
- package/dist-types/commands/UpdateDataSourceCommand.d.ts +41 -5
- package/dist-types/commands/UpdateKnowledgeBaseCommand.d.ts +57 -3
- package/dist-types/commands/index.d.ts +3 -0
- package/dist-types/models/enums.d.ts +66 -12
- package/dist-types/models/models_0.d.ts +248 -241
- package/dist-types/models/models_1.d.ts +269 -21
- package/dist-types/schemas/schemas_0.d.ts +17 -0
- package/dist-types/ts3.4/BedrockAgent.d.ts +51 -0
- package/dist-types/ts3.4/BedrockAgentClient.d.ts +18 -0
- package/dist-types/ts3.4/commands/DeleteResourcePolicyCommand.d.ts +53 -0
- package/dist-types/ts3.4/commands/GetResourcePolicyCommand.d.ts +53 -0
- package/dist-types/ts3.4/commands/PutResourcePolicyCommand.d.ts +53 -0
- package/dist-types/ts3.4/commands/index.d.ts +3 -0
- package/dist-types/ts3.4/models/enums.d.ts +36 -6
- package/dist-types/ts3.4/models/models_0.d.ts +79 -74
- package/dist-types/ts3.4/models/models_1.d.ts +83 -13
- package/dist-types/ts3.4/schemas/schemas_0.d.ts +17 -0
- package/package.json +3 -3
|
@@ -29,6 +29,7 @@ import type { DeleteFlowVersionCommandInput, DeleteFlowVersionCommandOutput } fr
|
|
|
29
29
|
import type { DeleteKnowledgeBaseCommandInput, DeleteKnowledgeBaseCommandOutput } from "./commands/DeleteKnowledgeBaseCommand";
|
|
30
30
|
import type { DeleteKnowledgeBaseDocumentsCommandInput, DeleteKnowledgeBaseDocumentsCommandOutput } from "./commands/DeleteKnowledgeBaseDocumentsCommand";
|
|
31
31
|
import type { DeletePromptCommandInput, DeletePromptCommandOutput } from "./commands/DeletePromptCommand";
|
|
32
|
+
import type { DeleteResourcePolicyCommandInput, DeleteResourcePolicyCommandOutput } from "./commands/DeleteResourcePolicyCommand";
|
|
32
33
|
import type { DisassociateAgentCollaboratorCommandInput, DisassociateAgentCollaboratorCommandOutput } from "./commands/DisassociateAgentCollaboratorCommand";
|
|
33
34
|
import type { DisassociateAgentKnowledgeBaseCommandInput, DisassociateAgentKnowledgeBaseCommandOutput } from "./commands/DisassociateAgentKnowledgeBaseCommand";
|
|
34
35
|
import type { GetAgentActionGroupCommandInput, GetAgentActionGroupCommandOutput } from "./commands/GetAgentActionGroupCommand";
|
|
@@ -45,6 +46,7 @@ import type { GetIngestionJobCommandInput, GetIngestionJobCommandOutput } from "
|
|
|
45
46
|
import type { GetKnowledgeBaseCommandInput, GetKnowledgeBaseCommandOutput } from "./commands/GetKnowledgeBaseCommand";
|
|
46
47
|
import type { GetKnowledgeBaseDocumentsCommandInput, GetKnowledgeBaseDocumentsCommandOutput } from "./commands/GetKnowledgeBaseDocumentsCommand";
|
|
47
48
|
import type { GetPromptCommandInput, GetPromptCommandOutput } from "./commands/GetPromptCommand";
|
|
49
|
+
import type { GetResourcePolicyCommandInput, GetResourcePolicyCommandOutput } from "./commands/GetResourcePolicyCommand";
|
|
48
50
|
import type { IngestKnowledgeBaseDocumentsCommandInput, IngestKnowledgeBaseDocumentsCommandOutput } from "./commands/IngestKnowledgeBaseDocumentsCommand";
|
|
49
51
|
import type { ListAgentActionGroupsCommandInput, ListAgentActionGroupsCommandOutput } from "./commands/ListAgentActionGroupsCommand";
|
|
50
52
|
import type { ListAgentAliasesCommandInput, ListAgentAliasesCommandOutput } from "./commands/ListAgentAliasesCommand";
|
|
@@ -63,6 +65,7 @@ import type { ListPromptsCommandInput, ListPromptsCommandOutput } from "./comman
|
|
|
63
65
|
import type { ListTagsForResourceCommandInput, ListTagsForResourceCommandOutput } from "./commands/ListTagsForResourceCommand";
|
|
64
66
|
import type { PrepareAgentCommandInput, PrepareAgentCommandOutput } from "./commands/PrepareAgentCommand";
|
|
65
67
|
import type { PrepareFlowCommandInput, PrepareFlowCommandOutput } from "./commands/PrepareFlowCommand";
|
|
68
|
+
import type { PutResourcePolicyCommandInput, PutResourcePolicyCommandOutput } from "./commands/PutResourcePolicyCommand";
|
|
66
69
|
import type { StartIngestionJobCommandInput, StartIngestionJobCommandOutput } from "./commands/StartIngestionJobCommand";
|
|
67
70
|
import type { StopIngestionJobCommandInput, StopIngestionJobCommandOutput } from "./commands/StopIngestionJobCommand";
|
|
68
71
|
import type { TagResourceCommandInput, TagResourceCommandOutput } from "./commands/TagResourceCommand";
|
|
@@ -84,11 +87,11 @@ export { __Client };
|
|
|
84
87
|
/**
|
|
85
88
|
* @public
|
|
86
89
|
*/
|
|
87
|
-
export type ServiceInputTypes = AssociateAgentCollaboratorCommandInput | AssociateAgentKnowledgeBaseCommandInput | CreateAgentActionGroupCommandInput | CreateAgentAliasCommandInput | CreateAgentCommandInput | CreateDataSourceCommandInput | CreateFlowAliasCommandInput | CreateFlowCommandInput | CreateFlowVersionCommandInput | CreateKnowledgeBaseCommandInput | CreatePromptCommandInput | CreatePromptVersionCommandInput | DeleteAgentActionGroupCommandInput | DeleteAgentAliasCommandInput | DeleteAgentCommandInput | DeleteAgentVersionCommandInput | DeleteDataSourceCommandInput | DeleteFlowAliasCommandInput | DeleteFlowCommandInput | DeleteFlowVersionCommandInput | DeleteKnowledgeBaseCommandInput | DeleteKnowledgeBaseDocumentsCommandInput | DeletePromptCommandInput | DisassociateAgentCollaboratorCommandInput | DisassociateAgentKnowledgeBaseCommandInput | GetAgentActionGroupCommandInput | GetAgentAliasCommandInput | GetAgentCollaboratorCommandInput | GetAgentCommandInput | GetAgentKnowledgeBaseCommandInput | GetAgentVersionCommandInput | GetDataSourceCommandInput | GetFlowAliasCommandInput | GetFlowCommandInput | GetFlowVersionCommandInput | GetIngestionJobCommandInput | GetKnowledgeBaseCommandInput | GetKnowledgeBaseDocumentsCommandInput | GetPromptCommandInput | IngestKnowledgeBaseDocumentsCommandInput | ListAgentActionGroupsCommandInput | ListAgentAliasesCommandInput | ListAgentCollaboratorsCommandInput | ListAgentKnowledgeBasesCommandInput | ListAgentVersionsCommandInput | ListAgentsCommandInput | ListDataSourcesCommandInput | ListFlowAliasesCommandInput | ListFlowVersionsCommandInput | ListFlowsCommandInput | ListIngestionJobsCommandInput | ListKnowledgeBaseDocumentsCommandInput | ListKnowledgeBasesCommandInput | ListPromptsCommandInput | ListTagsForResourceCommandInput | PrepareAgentCommandInput | PrepareFlowCommandInput | StartIngestionJobCommandInput | StopIngestionJobCommandInput | TagResourceCommandInput | UntagResourceCommandInput | UpdateAgentActionGroupCommandInput | UpdateAgentAliasCommandInput | UpdateAgentCollaboratorCommandInput | UpdateAgentCommandInput | UpdateAgentKnowledgeBaseCommandInput | UpdateDataSourceCommandInput | UpdateFlowAliasCommandInput | UpdateFlowCommandInput | UpdateKnowledgeBaseCommandInput | UpdatePromptCommandInput | ValidateFlowDefinitionCommandInput;
|
|
90
|
+
export type ServiceInputTypes = AssociateAgentCollaboratorCommandInput | AssociateAgentKnowledgeBaseCommandInput | CreateAgentActionGroupCommandInput | CreateAgentAliasCommandInput | CreateAgentCommandInput | CreateDataSourceCommandInput | CreateFlowAliasCommandInput | CreateFlowCommandInput | CreateFlowVersionCommandInput | CreateKnowledgeBaseCommandInput | CreatePromptCommandInput | CreatePromptVersionCommandInput | DeleteAgentActionGroupCommandInput | DeleteAgentAliasCommandInput | DeleteAgentCommandInput | DeleteAgentVersionCommandInput | DeleteDataSourceCommandInput | DeleteFlowAliasCommandInput | DeleteFlowCommandInput | DeleteFlowVersionCommandInput | DeleteKnowledgeBaseCommandInput | DeleteKnowledgeBaseDocumentsCommandInput | DeletePromptCommandInput | DeleteResourcePolicyCommandInput | DisassociateAgentCollaboratorCommandInput | DisassociateAgentKnowledgeBaseCommandInput | GetAgentActionGroupCommandInput | GetAgentAliasCommandInput | GetAgentCollaboratorCommandInput | GetAgentCommandInput | GetAgentKnowledgeBaseCommandInput | GetAgentVersionCommandInput | GetDataSourceCommandInput | GetFlowAliasCommandInput | GetFlowCommandInput | GetFlowVersionCommandInput | GetIngestionJobCommandInput | GetKnowledgeBaseCommandInput | GetKnowledgeBaseDocumentsCommandInput | GetPromptCommandInput | GetResourcePolicyCommandInput | IngestKnowledgeBaseDocumentsCommandInput | ListAgentActionGroupsCommandInput | ListAgentAliasesCommandInput | ListAgentCollaboratorsCommandInput | ListAgentKnowledgeBasesCommandInput | ListAgentVersionsCommandInput | ListAgentsCommandInput | ListDataSourcesCommandInput | ListFlowAliasesCommandInput | ListFlowVersionsCommandInput | ListFlowsCommandInput | ListIngestionJobsCommandInput | ListKnowledgeBaseDocumentsCommandInput | ListKnowledgeBasesCommandInput | ListPromptsCommandInput | ListTagsForResourceCommandInput | PrepareAgentCommandInput | PrepareFlowCommandInput | PutResourcePolicyCommandInput | StartIngestionJobCommandInput | StopIngestionJobCommandInput | TagResourceCommandInput | UntagResourceCommandInput | UpdateAgentActionGroupCommandInput | UpdateAgentAliasCommandInput | UpdateAgentCollaboratorCommandInput | UpdateAgentCommandInput | UpdateAgentKnowledgeBaseCommandInput | UpdateDataSourceCommandInput | UpdateFlowAliasCommandInput | UpdateFlowCommandInput | UpdateKnowledgeBaseCommandInput | UpdatePromptCommandInput | ValidateFlowDefinitionCommandInput;
|
|
88
91
|
/**
|
|
89
92
|
* @public
|
|
90
93
|
*/
|
|
91
|
-
export type ServiceOutputTypes = AssociateAgentCollaboratorCommandOutput | AssociateAgentKnowledgeBaseCommandOutput | CreateAgentActionGroupCommandOutput | CreateAgentAliasCommandOutput | CreateAgentCommandOutput | CreateDataSourceCommandOutput | CreateFlowAliasCommandOutput | CreateFlowCommandOutput | CreateFlowVersionCommandOutput | CreateKnowledgeBaseCommandOutput | CreatePromptCommandOutput | CreatePromptVersionCommandOutput | DeleteAgentActionGroupCommandOutput | DeleteAgentAliasCommandOutput | DeleteAgentCommandOutput | DeleteAgentVersionCommandOutput | DeleteDataSourceCommandOutput | DeleteFlowAliasCommandOutput | DeleteFlowCommandOutput | DeleteFlowVersionCommandOutput | DeleteKnowledgeBaseCommandOutput | DeleteKnowledgeBaseDocumentsCommandOutput | DeletePromptCommandOutput | DisassociateAgentCollaboratorCommandOutput | DisassociateAgentKnowledgeBaseCommandOutput | GetAgentActionGroupCommandOutput | GetAgentAliasCommandOutput | GetAgentCollaboratorCommandOutput | GetAgentCommandOutput | GetAgentKnowledgeBaseCommandOutput | GetAgentVersionCommandOutput | GetDataSourceCommandOutput | GetFlowAliasCommandOutput | GetFlowCommandOutput | GetFlowVersionCommandOutput | GetIngestionJobCommandOutput | GetKnowledgeBaseCommandOutput | GetKnowledgeBaseDocumentsCommandOutput | GetPromptCommandOutput | IngestKnowledgeBaseDocumentsCommandOutput | ListAgentActionGroupsCommandOutput | ListAgentAliasesCommandOutput | ListAgentCollaboratorsCommandOutput | ListAgentKnowledgeBasesCommandOutput | ListAgentVersionsCommandOutput | ListAgentsCommandOutput | ListDataSourcesCommandOutput | ListFlowAliasesCommandOutput | ListFlowVersionsCommandOutput | ListFlowsCommandOutput | ListIngestionJobsCommandOutput | ListKnowledgeBaseDocumentsCommandOutput | ListKnowledgeBasesCommandOutput | ListPromptsCommandOutput | ListTagsForResourceCommandOutput | PrepareAgentCommandOutput | PrepareFlowCommandOutput | StartIngestionJobCommandOutput | StopIngestionJobCommandOutput | TagResourceCommandOutput | UntagResourceCommandOutput | UpdateAgentActionGroupCommandOutput | UpdateAgentAliasCommandOutput | UpdateAgentCollaboratorCommandOutput | UpdateAgentCommandOutput | UpdateAgentKnowledgeBaseCommandOutput | UpdateDataSourceCommandOutput | UpdateFlowAliasCommandOutput | UpdateFlowCommandOutput | UpdateKnowledgeBaseCommandOutput | UpdatePromptCommandOutput | ValidateFlowDefinitionCommandOutput;
|
|
94
|
+
export type ServiceOutputTypes = AssociateAgentCollaboratorCommandOutput | AssociateAgentKnowledgeBaseCommandOutput | CreateAgentActionGroupCommandOutput | CreateAgentAliasCommandOutput | CreateAgentCommandOutput | CreateDataSourceCommandOutput | CreateFlowAliasCommandOutput | CreateFlowCommandOutput | CreateFlowVersionCommandOutput | CreateKnowledgeBaseCommandOutput | CreatePromptCommandOutput | CreatePromptVersionCommandOutput | DeleteAgentActionGroupCommandOutput | DeleteAgentAliasCommandOutput | DeleteAgentCommandOutput | DeleteAgentVersionCommandOutput | DeleteDataSourceCommandOutput | DeleteFlowAliasCommandOutput | DeleteFlowCommandOutput | DeleteFlowVersionCommandOutput | DeleteKnowledgeBaseCommandOutput | DeleteKnowledgeBaseDocumentsCommandOutput | DeletePromptCommandOutput | DeleteResourcePolicyCommandOutput | DisassociateAgentCollaboratorCommandOutput | DisassociateAgentKnowledgeBaseCommandOutput | GetAgentActionGroupCommandOutput | GetAgentAliasCommandOutput | GetAgentCollaboratorCommandOutput | GetAgentCommandOutput | GetAgentKnowledgeBaseCommandOutput | GetAgentVersionCommandOutput | GetDataSourceCommandOutput | GetFlowAliasCommandOutput | GetFlowCommandOutput | GetFlowVersionCommandOutput | GetIngestionJobCommandOutput | GetKnowledgeBaseCommandOutput | GetKnowledgeBaseDocumentsCommandOutput | GetPromptCommandOutput | GetResourcePolicyCommandOutput | IngestKnowledgeBaseDocumentsCommandOutput | ListAgentActionGroupsCommandOutput | ListAgentAliasesCommandOutput | ListAgentCollaboratorsCommandOutput | ListAgentKnowledgeBasesCommandOutput | ListAgentVersionsCommandOutput | ListAgentsCommandOutput | ListDataSourcesCommandOutput | ListFlowAliasesCommandOutput | ListFlowVersionsCommandOutput | ListFlowsCommandOutput | ListIngestionJobsCommandOutput | ListKnowledgeBaseDocumentsCommandOutput | ListKnowledgeBasesCommandOutput | ListPromptsCommandOutput | ListTagsForResourceCommandOutput | PrepareAgentCommandOutput | PrepareFlowCommandOutput | PutResourcePolicyCommandOutput | StartIngestionJobCommandOutput | StopIngestionJobCommandOutput | TagResourceCommandOutput | UntagResourceCommandOutput | UpdateAgentActionGroupCommandOutput | UpdateAgentAliasCommandOutput | UpdateAgentCollaboratorCommandOutput | UpdateAgentCommandOutput | UpdateAgentKnowledgeBaseCommandOutput | UpdateDataSourceCommandOutput | UpdateFlowAliasCommandOutput | UpdateFlowCommandOutput | UpdateKnowledgeBaseCommandOutput | UpdatePromptCommandOutput | ValidateFlowDefinitionCommandOutput;
|
|
92
95
|
/**
|
|
93
96
|
* @public
|
|
94
97
|
*/
|
|
@@ -44,7 +44,25 @@ declare const CreateDataSourceCommand_base: {
|
|
|
44
44
|
* name: "STRING_VALUE", // required
|
|
45
45
|
* description: "STRING_VALUE",
|
|
46
46
|
* dataSourceConfiguration: { // DataSourceConfiguration
|
|
47
|
-
* type: "S3" || "WEB" || "CONFLUENCE" || "SALESFORCE" || "SHAREPOINT" || "CUSTOM" || "REDSHIFT_METADATA", // required
|
|
47
|
+
* type: "S3" || "WEB" || "CONFLUENCE" || "SALESFORCE" || "SHAREPOINT" || "CUSTOM" || "REDSHIFT_METADATA" || "MANAGED_KNOWLEDGE_BASE_CONNECTOR", // required
|
|
48
|
+
* managedKnowledgeBaseConnectorConfiguration: { // ManagedKnowledgeBaseConnectorConfiguration
|
|
49
|
+
* deletionProtectionConfiguration: { // DeletionProtectionConfiguration
|
|
50
|
+
* deletionProtectionStatus: "ENABLED" || "DISABLED", // required
|
|
51
|
+
* deletionProtectionThreshold: Number("int"),
|
|
52
|
+
* },
|
|
53
|
+
* mediaExtractionConfiguration: { // MediaExtractionConfiguration
|
|
54
|
+
* imageExtractionConfiguration: { // ImageExtractionConfiguration
|
|
55
|
+
* imageExtractionStatus: "ENABLED" || "DISABLED", // required
|
|
56
|
+
* },
|
|
57
|
+
* audioExtractionConfiguration: { // AudioExtractionConfiguration
|
|
58
|
+
* audioExtractionStatus: "ENABLED" || "DISABLED", // required
|
|
59
|
+
* },
|
|
60
|
+
* videoExtractionConfiguration: { // VideoExtractionConfiguration
|
|
61
|
+
* videoExtractionStatus: "ENABLED" || "DISABLED", // required
|
|
62
|
+
* },
|
|
63
|
+
* },
|
|
64
|
+
* connectorParameters: "DOCUMENT_VALUE",
|
|
65
|
+
* },
|
|
48
66
|
* s3Configuration: { // S3DataSourceConfiguration
|
|
49
67
|
* bucketArn: "STRING_VALUE", // required
|
|
50
68
|
* inclusionPrefixes: [ // S3Prefixes
|
|
@@ -197,7 +215,7 @@ declare const CreateDataSourceCommand_base: {
|
|
|
197
215
|
* ],
|
|
198
216
|
* },
|
|
199
217
|
* parsingConfiguration: { // ParsingConfiguration
|
|
200
|
-
* parsingStrategy: "BEDROCK_FOUNDATION_MODEL" || "BEDROCK_DATA_AUTOMATION", // required
|
|
218
|
+
* parsingStrategy: "BEDROCK_FOUNDATION_MODEL" || "BEDROCK_DATA_AUTOMATION" || "SMART_PARSING", // required
|
|
201
219
|
* bedrockFoundationModelConfiguration: { // BedrockFoundationModelConfiguration
|
|
202
220
|
* modelArn: "STRING_VALUE", // required
|
|
203
221
|
* parsingPrompt: { // ParsingPrompt
|
|
@@ -227,10 +245,28 @@ declare const CreateDataSourceCommand_base: {
|
|
|
227
245
|
* // knowledgeBaseId: "STRING_VALUE", // required
|
|
228
246
|
* // dataSourceId: "STRING_VALUE", // required
|
|
229
247
|
* // name: "STRING_VALUE", // required
|
|
230
|
-
* // status: "AVAILABLE" || "DELETING" || "DELETE_UNSUCCESSFUL", // required
|
|
248
|
+
* // status: "AVAILABLE" || "DELETING" || "DELETE_UNSUCCESSFUL" || "CREATING" || "UPDATING" || "FAILED", // required
|
|
231
249
|
* // description: "STRING_VALUE",
|
|
232
250
|
* // dataSourceConfiguration: { // DataSourceConfiguration
|
|
233
|
-
* // type: "S3" || "WEB" || "CONFLUENCE" || "SALESFORCE" || "SHAREPOINT" || "CUSTOM" || "REDSHIFT_METADATA", // required
|
|
251
|
+
* // type: "S3" || "WEB" || "CONFLUENCE" || "SALESFORCE" || "SHAREPOINT" || "CUSTOM" || "REDSHIFT_METADATA" || "MANAGED_KNOWLEDGE_BASE_CONNECTOR", // required
|
|
252
|
+
* // managedKnowledgeBaseConnectorConfiguration: { // ManagedKnowledgeBaseConnectorConfiguration
|
|
253
|
+
* // deletionProtectionConfiguration: { // DeletionProtectionConfiguration
|
|
254
|
+
* // deletionProtectionStatus: "ENABLED" || "DISABLED", // required
|
|
255
|
+
* // deletionProtectionThreshold: Number("int"),
|
|
256
|
+
* // },
|
|
257
|
+
* // mediaExtractionConfiguration: { // MediaExtractionConfiguration
|
|
258
|
+
* // imageExtractionConfiguration: { // ImageExtractionConfiguration
|
|
259
|
+
* // imageExtractionStatus: "ENABLED" || "DISABLED", // required
|
|
260
|
+
* // },
|
|
261
|
+
* // audioExtractionConfiguration: { // AudioExtractionConfiguration
|
|
262
|
+
* // audioExtractionStatus: "ENABLED" || "DISABLED", // required
|
|
263
|
+
* // },
|
|
264
|
+
* // videoExtractionConfiguration: { // VideoExtractionConfiguration
|
|
265
|
+
* // videoExtractionStatus: "ENABLED" || "DISABLED", // required
|
|
266
|
+
* // },
|
|
267
|
+
* // },
|
|
268
|
+
* // connectorParameters: "DOCUMENT_VALUE",
|
|
269
|
+
* // },
|
|
234
270
|
* // s3Configuration: { // S3DataSourceConfiguration
|
|
235
271
|
* // bucketArn: "STRING_VALUE", // required
|
|
236
272
|
* // inclusionPrefixes: [ // S3Prefixes
|
|
@@ -382,7 +418,7 @@ declare const CreateDataSourceCommand_base: {
|
|
|
382
418
|
* // ],
|
|
383
419
|
* // },
|
|
384
420
|
* // parsingConfiguration: { // ParsingConfiguration
|
|
385
|
-
* // parsingStrategy: "BEDROCK_FOUNDATION_MODEL" || "BEDROCK_DATA_AUTOMATION", // required
|
|
421
|
+
* // parsingStrategy: "BEDROCK_FOUNDATION_MODEL" || "BEDROCK_DATA_AUTOMATION" || "SMART_PARSING", // required
|
|
386
422
|
* // bedrockFoundationModelConfiguration: { // BedrockFoundationModelConfiguration
|
|
387
423
|
* // modelArn: "STRING_VALUE", // required
|
|
388
424
|
* // parsingPrompt: { // ParsingPrompt
|
|
@@ -29,7 +29,7 @@ declare const CreateKnowledgeBaseCommand_base: {
|
|
|
29
29
|
};
|
|
30
30
|
};
|
|
31
31
|
/**
|
|
32
|
-
* <p>Creates a knowledge base. A knowledge base contains your data sources so that Large Language Models (LLMs) can use your data. To create a knowledge base, you must first set up your data sources and configure a supported vector store. For more information, see <a href="https://docs.aws.amazon.com/bedrock/latest/userguide/knowlege-base-prereq.html">Set up a knowledge base</a>.</p> <note> <p>
|
|
32
|
+
* <p>Creates a knowledge base. A knowledge base contains your data sources so that Large Language Models (LLMs) can use your data. To create a knowledge base, you must first set up your data sources and configure a supported vector store. For more information, see <a href="https://docs.aws.amazon.com/bedrock/latest/userguide/knowlege-base-prereq.html">Set up a knowledge base</a>.</p> <note> <p>To create a managed knowledge base, provide a <code>managedKnowledgeBaseConfiguration</code> during creation. For more information, see <a href="https://docs.aws.amazon.com/bedrock/latest/userguide/kb-build-managed.html">Build a managed knowledge base</a>.</p> </note> <ul> <li> <p>Provide the <code>name</code> and an optional <code>description</code>.</p> </li> <li> <p>Provide the Amazon Resource Name (ARN) with permissions to create a knowledge base in the <code>roleArn</code> field.</p> </li> <li> <p>For managed knowledge bases, set <code>embeddingModelType</code> to <code>MANAGED</code> to use the service-managed embedding model, or <code>CUSTOM</code> with an <code>embeddingModelArn</code> to use your own. To use your own KMS key for encryption, provide the ARN in <code>serverSideEncryptionConfiguration</code>. No vector store configuration is required for managed knowledge bases.</p> </li> <li> <p>For self-managed knowledge bases, provide the embedding model to use in the <code>embeddingModelArn</code> field in the <code>knowledgeBaseConfiguration</code> object.</p> </li> <li> <p>For self-managed knowledge bases, provide the configuration for your vector store in the <code>storageConfiguration</code> object.</p> <ul> <li> <p>For an Amazon OpenSearch Service database, use the <code>opensearchServerlessConfiguration</code> object. For more information, see <a href="https://docs.aws.amazon.com/bedrock/latest/userguide/knowledge-base-setup-oss.html">Create a vector store in Amazon OpenSearch Service</a>.</p> </li> <li> <p>For an Amazon Aurora database, use the <code>RdsConfiguration</code> object. For more information, see <a href="https://docs.aws.amazon.com/bedrock/latest/userguide/knowledge-base-setup-rds.html">Create a vector store in Amazon Aurora</a>.</p> </li> <li> <p>For a Pinecone database, use the <code>pineconeConfiguration</code> object. For more information, see <a href="https://docs.aws.amazon.com/bedrock/latest/userguide/knowledge-base-setup-pinecone.html">Create a vector store in Pinecone</a>.</p> </li> <li> <p>For a Redis Enterprise Cloud database, use the <code>redisEnterpriseCloudConfiguration</code> object. For more information, see <a href="https://docs.aws.amazon.com/bedrock/latest/userguide/knowledge-base-setup-redis.html">Create a vector store in Redis Enterprise Cloud</a>.</p> </li> </ul> </li> </ul>
|
|
33
33
|
* @example
|
|
34
34
|
* Use a bare-bones client and the command you need to make an API call.
|
|
35
35
|
* ```javascript
|
|
@@ -44,7 +44,7 @@ declare const CreateKnowledgeBaseCommand_base: {
|
|
|
44
44
|
* description: "STRING_VALUE",
|
|
45
45
|
* roleArn: "STRING_VALUE", // required
|
|
46
46
|
* knowledgeBaseConfiguration: { // KnowledgeBaseConfiguration
|
|
47
|
-
* type: "VECTOR" || "KENDRA" || "SQL", // required
|
|
47
|
+
* type: "VECTOR" || "KENDRA" || "SQL" || "MANAGED", // required
|
|
48
48
|
* vectorKnowledgeBaseConfiguration: { // VectorKnowledgeBaseConfiguration
|
|
49
49
|
* embeddingModelArn: "STRING_VALUE", // required
|
|
50
50
|
* embeddingModelConfiguration: { // EmbeddingModelConfiguration
|
|
@@ -78,6 +78,33 @@ declare const CreateKnowledgeBaseCommand_base: {
|
|
|
78
78
|
* ],
|
|
79
79
|
* },
|
|
80
80
|
* },
|
|
81
|
+
* managedKnowledgeBaseConfiguration: { // ManagedKnowledgeBaseConfiguration
|
|
82
|
+
* embeddingModelType: "CUSTOM" || "MANAGED",
|
|
83
|
+
* embeddingModelArn: "STRING_VALUE",
|
|
84
|
+
* embeddingModelConfiguration: {
|
|
85
|
+
* bedrockEmbeddingModelConfiguration: {
|
|
86
|
+
* dimensions: Number("int"),
|
|
87
|
+
* embeddingDataType: "FLOAT32" || "BINARY",
|
|
88
|
+
* audio: [
|
|
89
|
+
* {
|
|
90
|
+
* segmentationConfiguration: {
|
|
91
|
+
* fixedLengthDuration: Number("int"), // required
|
|
92
|
+
* },
|
|
93
|
+
* },
|
|
94
|
+
* ],
|
|
95
|
+
* video: [
|
|
96
|
+
* {
|
|
97
|
+
* segmentationConfiguration: {
|
|
98
|
+
* fixedLengthDuration: Number("int"), // required
|
|
99
|
+
* },
|
|
100
|
+
* },
|
|
101
|
+
* ],
|
|
102
|
+
* },
|
|
103
|
+
* },
|
|
104
|
+
* serverSideEncryptionConfiguration: { // ServerSideEncryptionConfiguration
|
|
105
|
+
* kmsKeyArn: "STRING_VALUE",
|
|
106
|
+
* },
|
|
107
|
+
* },
|
|
81
108
|
* kendraKnowledgeBaseConfiguration: { // KendraKnowledgeBaseConfiguration
|
|
82
109
|
* kendraIndexArn: "STRING_VALUE", // required
|
|
83
110
|
* },
|
|
@@ -237,7 +264,7 @@ declare const CreateKnowledgeBaseCommand_base: {
|
|
|
237
264
|
* // description: "STRING_VALUE",
|
|
238
265
|
* // roleArn: "STRING_VALUE", // required
|
|
239
266
|
* // knowledgeBaseConfiguration: { // KnowledgeBaseConfiguration
|
|
240
|
-
* // type: "VECTOR" || "KENDRA" || "SQL", // required
|
|
267
|
+
* // type: "VECTOR" || "KENDRA" || "SQL" || "MANAGED", // required
|
|
241
268
|
* // vectorKnowledgeBaseConfiguration: { // VectorKnowledgeBaseConfiguration
|
|
242
269
|
* // embeddingModelArn: "STRING_VALUE", // required
|
|
243
270
|
* // embeddingModelConfiguration: { // EmbeddingModelConfiguration
|
|
@@ -271,6 +298,33 @@ declare const CreateKnowledgeBaseCommand_base: {
|
|
|
271
298
|
* // ],
|
|
272
299
|
* // },
|
|
273
300
|
* // },
|
|
301
|
+
* // managedKnowledgeBaseConfiguration: { // ManagedKnowledgeBaseConfiguration
|
|
302
|
+
* // embeddingModelType: "CUSTOM" || "MANAGED",
|
|
303
|
+
* // embeddingModelArn: "STRING_VALUE",
|
|
304
|
+
* // embeddingModelConfiguration: {
|
|
305
|
+
* // bedrockEmbeddingModelConfiguration: {
|
|
306
|
+
* // dimensions: Number("int"),
|
|
307
|
+
* // embeddingDataType: "FLOAT32" || "BINARY",
|
|
308
|
+
* // audio: [
|
|
309
|
+
* // {
|
|
310
|
+
* // segmentationConfiguration: {
|
|
311
|
+
* // fixedLengthDuration: Number("int"), // required
|
|
312
|
+
* // },
|
|
313
|
+
* // },
|
|
314
|
+
* // ],
|
|
315
|
+
* // video: [
|
|
316
|
+
* // {
|
|
317
|
+
* // segmentationConfiguration: {
|
|
318
|
+
* // fixedLengthDuration: Number("int"), // required
|
|
319
|
+
* // },
|
|
320
|
+
* // },
|
|
321
|
+
* // ],
|
|
322
|
+
* // },
|
|
323
|
+
* // },
|
|
324
|
+
* // serverSideEncryptionConfiguration: { // ServerSideEncryptionConfiguration
|
|
325
|
+
* // kmsKeyArn: "STRING_VALUE",
|
|
326
|
+
* // },
|
|
327
|
+
* // },
|
|
274
328
|
* // kendraKnowledgeBaseConfiguration: { // KendraKnowledgeBaseConfiguration
|
|
275
329
|
* // kendraIndexArn: "STRING_VALUE", // required
|
|
276
330
|
* // },
|
|
@@ -416,7 +470,7 @@ declare const CreateKnowledgeBaseCommand_base: {
|
|
|
416
470
|
* // indexName: "STRING_VALUE",
|
|
417
471
|
* // },
|
|
418
472
|
* // },
|
|
419
|
-
* // status: "CREATING" || "ACTIVE" || "DELETING" || "UPDATING" || "FAILED" || "DELETE_UNSUCCESSFUL", // required
|
|
473
|
+
* // status: "CREATING" || "ACTIVE" || "DELETING" || "UPDATING" || "FAILED" || "DELETE_UNSUCCESSFUL" || "UPDATE_UNSUCCESSFUL", // required
|
|
420
474
|
* // createdAt: new Date("TIMESTAMP"), // required
|
|
421
475
|
* // updatedAt: new Date("TIMESTAMP"), // required
|
|
422
476
|
* // failureReasons: [ // FailureReasons
|
|
@@ -47,7 +47,7 @@ declare const DeleteDataSourceCommand_base: {
|
|
|
47
47
|
* // { // DeleteDataSourceResponse
|
|
48
48
|
* // knowledgeBaseId: "STRING_VALUE", // required
|
|
49
49
|
* // dataSourceId: "STRING_VALUE", // required
|
|
50
|
-
* // status: "AVAILABLE" || "DELETING" || "DELETE_UNSUCCESSFUL", // required
|
|
50
|
+
* // status: "AVAILABLE" || "DELETING" || "DELETE_UNSUCCESSFUL" || "CREATING" || "UPDATING" || "FAILED", // required
|
|
51
51
|
* // };
|
|
52
52
|
*
|
|
53
53
|
* ```
|
|
@@ -45,7 +45,7 @@ declare const DeleteKnowledgeBaseCommand_base: {
|
|
|
45
45
|
* const response = await client.send(command);
|
|
46
46
|
* // { // DeleteKnowledgeBaseResponse
|
|
47
47
|
* // knowledgeBaseId: "STRING_VALUE", // required
|
|
48
|
-
* // status: "CREATING" || "ACTIVE" || "DELETING" || "UPDATING" || "FAILED" || "DELETE_UNSUCCESSFUL", // required
|
|
48
|
+
* // status: "CREATING" || "ACTIVE" || "DELETING" || "UPDATING" || "FAILED" || "DELETE_UNSUCCESSFUL" || "UPDATE_UNSUCCESSFUL", // required
|
|
49
49
|
* // };
|
|
50
50
|
*
|
|
51
51
|
* ```
|
|
@@ -0,0 +1,96 @@
|
|
|
1
|
+
import { Command as $Command } from "@smithy/core/client";
|
|
2
|
+
import type { MetadataBearer as __MetadataBearer } from "@smithy/types";
|
|
3
|
+
import type { BedrockAgentClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../BedrockAgentClient";
|
|
4
|
+
import type { DeleteResourcePolicyRequest, DeleteResourcePolicyResponse } from "../models/models_0";
|
|
5
|
+
/**
|
|
6
|
+
* @public
|
|
7
|
+
*/
|
|
8
|
+
export type { __MetadataBearer };
|
|
9
|
+
export { $Command };
|
|
10
|
+
/**
|
|
11
|
+
* @public
|
|
12
|
+
*
|
|
13
|
+
* The input for {@link DeleteResourcePolicyCommand}.
|
|
14
|
+
*/
|
|
15
|
+
export interface DeleteResourcePolicyCommandInput extends DeleteResourcePolicyRequest {
|
|
16
|
+
}
|
|
17
|
+
/**
|
|
18
|
+
* @public
|
|
19
|
+
*
|
|
20
|
+
* The output of {@link DeleteResourcePolicyCommand}.
|
|
21
|
+
*/
|
|
22
|
+
export interface DeleteResourcePolicyCommandOutput extends DeleteResourcePolicyResponse, __MetadataBearer {
|
|
23
|
+
}
|
|
24
|
+
declare const DeleteResourcePolicyCommand_base: {
|
|
25
|
+
new (input: DeleteResourcePolicyCommandInput): import("@smithy/core/client").CommandImpl<DeleteResourcePolicyCommandInput, DeleteResourcePolicyCommandOutput, BedrockAgentClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
26
|
+
new (input: DeleteResourcePolicyCommandInput): import("@smithy/core/client").CommandImpl<DeleteResourcePolicyCommandInput, DeleteResourcePolicyCommandOutput, BedrockAgentClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
27
|
+
getEndpointParameterInstructions(): {
|
|
28
|
+
[x: string]: unknown;
|
|
29
|
+
};
|
|
30
|
+
};
|
|
31
|
+
/**
|
|
32
|
+
* <p>Removes the resource policy associated with a knowledge base. After deletion, other AWS accounts can no longer access the knowledge base using cross-account permissions.</p>
|
|
33
|
+
* @example
|
|
34
|
+
* Use a bare-bones client and the command you need to make an API call.
|
|
35
|
+
* ```javascript
|
|
36
|
+
* import { BedrockAgentClient, DeleteResourcePolicyCommand } from "@aws-sdk/client-bedrock-agent"; // ES Modules import
|
|
37
|
+
* // const { BedrockAgentClient, DeleteResourcePolicyCommand } = require("@aws-sdk/client-bedrock-agent"); // CommonJS import
|
|
38
|
+
* // import type { BedrockAgentClientConfig } from "@aws-sdk/client-bedrock-agent";
|
|
39
|
+
* const config = {}; // type is BedrockAgentClientConfig
|
|
40
|
+
* const client = new BedrockAgentClient(config);
|
|
41
|
+
* const input = { // DeleteResourcePolicyRequest
|
|
42
|
+
* resourceArn: "STRING_VALUE", // required
|
|
43
|
+
* expectedRevisionId: "STRING_VALUE",
|
|
44
|
+
* };
|
|
45
|
+
* const command = new DeleteResourcePolicyCommand(input);
|
|
46
|
+
* const response = await client.send(command);
|
|
47
|
+
* // { // DeleteResourcePolicyResponse
|
|
48
|
+
* // resourceArn: "STRING_VALUE", // required
|
|
49
|
+
* // revisionId: "STRING_VALUE",
|
|
50
|
+
* // };
|
|
51
|
+
*
|
|
52
|
+
* ```
|
|
53
|
+
*
|
|
54
|
+
* @param DeleteResourcePolicyCommandInput - {@link DeleteResourcePolicyCommandInput}
|
|
55
|
+
* @returns {@link DeleteResourcePolicyCommandOutput}
|
|
56
|
+
* @see {@link DeleteResourcePolicyCommandInput} for command's `input` shape.
|
|
57
|
+
* @see {@link DeleteResourcePolicyCommandOutput} for command's `response` shape.
|
|
58
|
+
* @see {@link BedrockAgentClientResolvedConfig | config} for BedrockAgentClient's `config` shape.
|
|
59
|
+
*
|
|
60
|
+
* @throws {@link AccessDeniedException} (client fault)
|
|
61
|
+
* <p>The request is denied because of missing access permissions.</p>
|
|
62
|
+
*
|
|
63
|
+
* @throws {@link ConflictException} (client fault)
|
|
64
|
+
* <p>There was a conflict performing an operation.</p>
|
|
65
|
+
*
|
|
66
|
+
* @throws {@link InternalServerException} (server fault)
|
|
67
|
+
* <p>An internal server error occurred. Retry your request.</p>
|
|
68
|
+
*
|
|
69
|
+
* @throws {@link ResourceNotFoundException} (client fault)
|
|
70
|
+
* <p>The specified resource Amazon Resource Name (ARN) was not found. Check the Amazon Resource Name (ARN) and try your request again.</p>
|
|
71
|
+
*
|
|
72
|
+
* @throws {@link ThrottlingException} (client fault)
|
|
73
|
+
* <p>The number of requests exceeds the limit. Resubmit your request later.</p>
|
|
74
|
+
*
|
|
75
|
+
* @throws {@link ValidationException} (client fault)
|
|
76
|
+
* <p>Input validation failed. Check your request parameters and retry the request.</p>
|
|
77
|
+
*
|
|
78
|
+
* @throws {@link BedrockAgentServiceException}
|
|
79
|
+
* <p>Base exception class for all service exceptions from BedrockAgent service.</p>
|
|
80
|
+
*
|
|
81
|
+
*
|
|
82
|
+
* @public
|
|
83
|
+
*/
|
|
84
|
+
export declare class DeleteResourcePolicyCommand extends DeleteResourcePolicyCommand_base {
|
|
85
|
+
/** @internal type navigation helper, not in runtime. */
|
|
86
|
+
protected static __types: {
|
|
87
|
+
api: {
|
|
88
|
+
input: DeleteResourcePolicyRequest;
|
|
89
|
+
output: DeleteResourcePolicyResponse;
|
|
90
|
+
};
|
|
91
|
+
sdk: {
|
|
92
|
+
input: DeleteResourcePolicyCommandInput;
|
|
93
|
+
output: DeleteResourcePolicyCommandOutput;
|
|
94
|
+
};
|
|
95
|
+
};
|
|
96
|
+
}
|
|
@@ -49,10 +49,28 @@ declare const GetDataSourceCommand_base: {
|
|
|
49
49
|
* // knowledgeBaseId: "STRING_VALUE", // required
|
|
50
50
|
* // dataSourceId: "STRING_VALUE", // required
|
|
51
51
|
* // name: "STRING_VALUE", // required
|
|
52
|
-
* // status: "AVAILABLE" || "DELETING" || "DELETE_UNSUCCESSFUL", // required
|
|
52
|
+
* // status: "AVAILABLE" || "DELETING" || "DELETE_UNSUCCESSFUL" || "CREATING" || "UPDATING" || "FAILED", // required
|
|
53
53
|
* // description: "STRING_VALUE",
|
|
54
54
|
* // dataSourceConfiguration: { // DataSourceConfiguration
|
|
55
|
-
* // type: "S3" || "WEB" || "CONFLUENCE" || "SALESFORCE" || "SHAREPOINT" || "CUSTOM" || "REDSHIFT_METADATA", // required
|
|
55
|
+
* // type: "S3" || "WEB" || "CONFLUENCE" || "SALESFORCE" || "SHAREPOINT" || "CUSTOM" || "REDSHIFT_METADATA" || "MANAGED_KNOWLEDGE_BASE_CONNECTOR", // required
|
|
56
|
+
* // managedKnowledgeBaseConnectorConfiguration: { // ManagedKnowledgeBaseConnectorConfiguration
|
|
57
|
+
* // deletionProtectionConfiguration: { // DeletionProtectionConfiguration
|
|
58
|
+
* // deletionProtectionStatus: "ENABLED" || "DISABLED", // required
|
|
59
|
+
* // deletionProtectionThreshold: Number("int"),
|
|
60
|
+
* // },
|
|
61
|
+
* // mediaExtractionConfiguration: { // MediaExtractionConfiguration
|
|
62
|
+
* // imageExtractionConfiguration: { // ImageExtractionConfiguration
|
|
63
|
+
* // imageExtractionStatus: "ENABLED" || "DISABLED", // required
|
|
64
|
+
* // },
|
|
65
|
+
* // audioExtractionConfiguration: { // AudioExtractionConfiguration
|
|
66
|
+
* // audioExtractionStatus: "ENABLED" || "DISABLED", // required
|
|
67
|
+
* // },
|
|
68
|
+
* // videoExtractionConfiguration: { // VideoExtractionConfiguration
|
|
69
|
+
* // videoExtractionStatus: "ENABLED" || "DISABLED", // required
|
|
70
|
+
* // },
|
|
71
|
+
* // },
|
|
72
|
+
* // connectorParameters: "DOCUMENT_VALUE",
|
|
73
|
+
* // },
|
|
56
74
|
* // s3Configuration: { // S3DataSourceConfiguration
|
|
57
75
|
* // bucketArn: "STRING_VALUE", // required
|
|
58
76
|
* // inclusionPrefixes: [ // S3Prefixes
|
|
@@ -204,7 +222,7 @@ declare const GetDataSourceCommand_base: {
|
|
|
204
222
|
* // ],
|
|
205
223
|
* // },
|
|
206
224
|
* // parsingConfiguration: { // ParsingConfiguration
|
|
207
|
-
* // parsingStrategy: "BEDROCK_FOUNDATION_MODEL" || "BEDROCK_DATA_AUTOMATION", // required
|
|
225
|
+
* // parsingStrategy: "BEDROCK_FOUNDATION_MODEL" || "BEDROCK_DATA_AUTOMATION" || "SMART_PARSING", // required
|
|
208
226
|
* // bedrockFoundationModelConfiguration: { // BedrockFoundationModelConfiguration
|
|
209
227
|
* // modelArn: "STRING_VALUE", // required
|
|
210
228
|
* // parsingPrompt: { // ParsingPrompt
|
|
@@ -60,6 +60,7 @@ declare const GetIngestionJobCommand_base: {
|
|
|
60
60
|
* // numberOfMetadataDocumentsModified: Number("long"),
|
|
61
61
|
* // numberOfDocumentsDeleted: Number("long"),
|
|
62
62
|
* // numberOfDocumentsFailed: Number("long"),
|
|
63
|
+
* // numberOfDocumentsSkipped: Number("long"),
|
|
63
64
|
* // },
|
|
64
65
|
* // failureReasons: [ // FailureReasons
|
|
65
66
|
* // "STRING_VALUE",
|
|
@@ -51,7 +51,7 @@ declare const GetKnowledgeBaseCommand_base: {
|
|
|
51
51
|
* // description: "STRING_VALUE",
|
|
52
52
|
* // roleArn: "STRING_VALUE", // required
|
|
53
53
|
* // knowledgeBaseConfiguration: { // KnowledgeBaseConfiguration
|
|
54
|
-
* // type: "VECTOR" || "KENDRA" || "SQL", // required
|
|
54
|
+
* // type: "VECTOR" || "KENDRA" || "SQL" || "MANAGED", // required
|
|
55
55
|
* // vectorKnowledgeBaseConfiguration: { // VectorKnowledgeBaseConfiguration
|
|
56
56
|
* // embeddingModelArn: "STRING_VALUE", // required
|
|
57
57
|
* // embeddingModelConfiguration: { // EmbeddingModelConfiguration
|
|
@@ -85,6 +85,33 @@ declare const GetKnowledgeBaseCommand_base: {
|
|
|
85
85
|
* // ],
|
|
86
86
|
* // },
|
|
87
87
|
* // },
|
|
88
|
+
* // managedKnowledgeBaseConfiguration: { // ManagedKnowledgeBaseConfiguration
|
|
89
|
+
* // embeddingModelType: "CUSTOM" || "MANAGED",
|
|
90
|
+
* // embeddingModelArn: "STRING_VALUE",
|
|
91
|
+
* // embeddingModelConfiguration: {
|
|
92
|
+
* // bedrockEmbeddingModelConfiguration: {
|
|
93
|
+
* // dimensions: Number("int"),
|
|
94
|
+
* // embeddingDataType: "FLOAT32" || "BINARY",
|
|
95
|
+
* // audio: [
|
|
96
|
+
* // {
|
|
97
|
+
* // segmentationConfiguration: {
|
|
98
|
+
* // fixedLengthDuration: Number("int"), // required
|
|
99
|
+
* // },
|
|
100
|
+
* // },
|
|
101
|
+
* // ],
|
|
102
|
+
* // video: [
|
|
103
|
+
* // {
|
|
104
|
+
* // segmentationConfiguration: {
|
|
105
|
+
* // fixedLengthDuration: Number("int"), // required
|
|
106
|
+
* // },
|
|
107
|
+
* // },
|
|
108
|
+
* // ],
|
|
109
|
+
* // },
|
|
110
|
+
* // },
|
|
111
|
+
* // serverSideEncryptionConfiguration: { // ServerSideEncryptionConfiguration
|
|
112
|
+
* // kmsKeyArn: "STRING_VALUE",
|
|
113
|
+
* // },
|
|
114
|
+
* // },
|
|
88
115
|
* // kendraKnowledgeBaseConfiguration: { // KendraKnowledgeBaseConfiguration
|
|
89
116
|
* // kendraIndexArn: "STRING_VALUE", // required
|
|
90
117
|
* // },
|
|
@@ -230,7 +257,7 @@ declare const GetKnowledgeBaseCommand_base: {
|
|
|
230
257
|
* // indexName: "STRING_VALUE",
|
|
231
258
|
* // },
|
|
232
259
|
* // },
|
|
233
|
-
* // status: "CREATING" || "ACTIVE" || "DELETING" || "UPDATING" || "FAILED" || "DELETE_UNSUCCESSFUL", // required
|
|
260
|
+
* // status: "CREATING" || "ACTIVE" || "DELETING" || "UPDATING" || "FAILED" || "DELETE_UNSUCCESSFUL" || "UPDATE_UNSUCCESSFUL", // required
|
|
234
261
|
* // createdAt: new Date("TIMESTAMP"), // required
|
|
235
262
|
* // updatedAt: new Date("TIMESTAMP"), // required
|
|
236
263
|
* // failureReasons: [ // FailureReasons
|
|
@@ -0,0 +1,93 @@
|
|
|
1
|
+
import { Command as $Command } from "@smithy/core/client";
|
|
2
|
+
import type { MetadataBearer as __MetadataBearer } from "@smithy/types";
|
|
3
|
+
import type { BedrockAgentClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../BedrockAgentClient";
|
|
4
|
+
import type { GetResourcePolicyRequest, GetResourcePolicyResponse } from "../models/models_0";
|
|
5
|
+
/**
|
|
6
|
+
* @public
|
|
7
|
+
*/
|
|
8
|
+
export type { __MetadataBearer };
|
|
9
|
+
export { $Command };
|
|
10
|
+
/**
|
|
11
|
+
* @public
|
|
12
|
+
*
|
|
13
|
+
* The input for {@link GetResourcePolicyCommand}.
|
|
14
|
+
*/
|
|
15
|
+
export interface GetResourcePolicyCommandInput extends GetResourcePolicyRequest {
|
|
16
|
+
}
|
|
17
|
+
/**
|
|
18
|
+
* @public
|
|
19
|
+
*
|
|
20
|
+
* The output of {@link GetResourcePolicyCommand}.
|
|
21
|
+
*/
|
|
22
|
+
export interface GetResourcePolicyCommandOutput extends GetResourcePolicyResponse, __MetadataBearer {
|
|
23
|
+
}
|
|
24
|
+
declare const GetResourcePolicyCommand_base: {
|
|
25
|
+
new (input: GetResourcePolicyCommandInput): import("@smithy/core/client").CommandImpl<GetResourcePolicyCommandInput, GetResourcePolicyCommandOutput, BedrockAgentClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
26
|
+
new (input: GetResourcePolicyCommandInput): import("@smithy/core/client").CommandImpl<GetResourcePolicyCommandInput, GetResourcePolicyCommandOutput, BedrockAgentClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
27
|
+
getEndpointParameterInstructions(): {
|
|
28
|
+
[x: string]: unknown;
|
|
29
|
+
};
|
|
30
|
+
};
|
|
31
|
+
/**
|
|
32
|
+
* <p>Retrieves the resource policy associated with a knowledge base.</p>
|
|
33
|
+
* @example
|
|
34
|
+
* Use a bare-bones client and the command you need to make an API call.
|
|
35
|
+
* ```javascript
|
|
36
|
+
* import { BedrockAgentClient, GetResourcePolicyCommand } from "@aws-sdk/client-bedrock-agent"; // ES Modules import
|
|
37
|
+
* // const { BedrockAgentClient, GetResourcePolicyCommand } = require("@aws-sdk/client-bedrock-agent"); // CommonJS import
|
|
38
|
+
* // import type { BedrockAgentClientConfig } from "@aws-sdk/client-bedrock-agent";
|
|
39
|
+
* const config = {}; // type is BedrockAgentClientConfig
|
|
40
|
+
* const client = new BedrockAgentClient(config);
|
|
41
|
+
* const input = { // GetResourcePolicyRequest
|
|
42
|
+
* resourceArn: "STRING_VALUE", // required
|
|
43
|
+
* };
|
|
44
|
+
* const command = new GetResourcePolicyCommand(input);
|
|
45
|
+
* const response = await client.send(command);
|
|
46
|
+
* // { // GetResourcePolicyResponse
|
|
47
|
+
* // resourceArn: "STRING_VALUE", // required
|
|
48
|
+
* // policy: "STRING_VALUE", // required
|
|
49
|
+
* // revisionId: "STRING_VALUE", // required
|
|
50
|
+
* // };
|
|
51
|
+
*
|
|
52
|
+
* ```
|
|
53
|
+
*
|
|
54
|
+
* @param GetResourcePolicyCommandInput - {@link GetResourcePolicyCommandInput}
|
|
55
|
+
* @returns {@link GetResourcePolicyCommandOutput}
|
|
56
|
+
* @see {@link GetResourcePolicyCommandInput} for command's `input` shape.
|
|
57
|
+
* @see {@link GetResourcePolicyCommandOutput} for command's `response` shape.
|
|
58
|
+
* @see {@link BedrockAgentClientResolvedConfig | config} for BedrockAgentClient's `config` shape.
|
|
59
|
+
*
|
|
60
|
+
* @throws {@link AccessDeniedException} (client fault)
|
|
61
|
+
* <p>The request is denied because of missing access permissions.</p>
|
|
62
|
+
*
|
|
63
|
+
* @throws {@link InternalServerException} (server fault)
|
|
64
|
+
* <p>An internal server error occurred. Retry your request.</p>
|
|
65
|
+
*
|
|
66
|
+
* @throws {@link ResourceNotFoundException} (client fault)
|
|
67
|
+
* <p>The specified resource Amazon Resource Name (ARN) was not found. Check the Amazon Resource Name (ARN) and try your request again.</p>
|
|
68
|
+
*
|
|
69
|
+
* @throws {@link ThrottlingException} (client fault)
|
|
70
|
+
* <p>The number of requests exceeds the limit. Resubmit your request later.</p>
|
|
71
|
+
*
|
|
72
|
+
* @throws {@link ValidationException} (client fault)
|
|
73
|
+
* <p>Input validation failed. Check your request parameters and retry the request.</p>
|
|
74
|
+
*
|
|
75
|
+
* @throws {@link BedrockAgentServiceException}
|
|
76
|
+
* <p>Base exception class for all service exceptions from BedrockAgent service.</p>
|
|
77
|
+
*
|
|
78
|
+
*
|
|
79
|
+
* @public
|
|
80
|
+
*/
|
|
81
|
+
export declare class GetResourcePolicyCommand extends GetResourcePolicyCommand_base {
|
|
82
|
+
/** @internal type navigation helper, not in runtime. */
|
|
83
|
+
protected static __types: {
|
|
84
|
+
api: {
|
|
85
|
+
input: GetResourcePolicyRequest;
|
|
86
|
+
output: GetResourcePolicyResponse;
|
|
87
|
+
};
|
|
88
|
+
sdk: {
|
|
89
|
+
input: GetResourcePolicyCommandInput;
|
|
90
|
+
output: GetResourcePolicyCommandOutput;
|
|
91
|
+
};
|
|
92
|
+
};
|
|
93
|
+
}
|
|
@@ -64,6 +64,13 @@ declare const IngestKnowledgeBaseDocumentsCommand_base: {
|
|
|
64
64
|
* uri: "STRING_VALUE", // required
|
|
65
65
|
* bucketOwnerAccountId: "STRING_VALUE",
|
|
66
66
|
* },
|
|
67
|
+
* accessControlList: [ // DocumentAccessControlList
|
|
68
|
+
* { // DocumentAccessControlEntry
|
|
69
|
+
* name: "STRING_VALUE", // required
|
|
70
|
+
* type: "USER", // required
|
|
71
|
+
* access: "ALLOW" || "DENY", // required
|
|
72
|
+
* },
|
|
73
|
+
* ],
|
|
67
74
|
* },
|
|
68
75
|
* content: { // DocumentContent
|
|
69
76
|
* dataSourceType: "CUSTOM" || "S3", // required
|
|
@@ -51,7 +51,7 @@ declare const ListDataSourcesCommand_base: {
|
|
|
51
51
|
* // knowledgeBaseId: "STRING_VALUE", // required
|
|
52
52
|
* // dataSourceId: "STRING_VALUE", // required
|
|
53
53
|
* // name: "STRING_VALUE", // required
|
|
54
|
-
* // status: "AVAILABLE" || "DELETING" || "DELETE_UNSUCCESSFUL", // required
|
|
54
|
+
* // status: "AVAILABLE" || "DELETING" || "DELETE_UNSUCCESSFUL" || "CREATING" || "UPDATING" || "FAILED", // required
|
|
55
55
|
* // description: "STRING_VALUE",
|
|
56
56
|
* // updatedAt: new Date("TIMESTAMP"), // required
|
|
57
57
|
* // },
|
|
@@ -77,6 +77,7 @@ declare const ListIngestionJobsCommand_base: {
|
|
|
77
77
|
* // numberOfMetadataDocumentsModified: Number("long"),
|
|
78
78
|
* // numberOfDocumentsDeleted: Number("long"),
|
|
79
79
|
* // numberOfDocumentsFailed: Number("long"),
|
|
80
|
+
* // numberOfDocumentsSkipped: Number("long"),
|
|
80
81
|
* // },
|
|
81
82
|
* // },
|
|
82
83
|
* // ],
|
|
@@ -50,7 +50,7 @@ declare const ListKnowledgeBasesCommand_base: {
|
|
|
50
50
|
* // knowledgeBaseId: "STRING_VALUE", // required
|
|
51
51
|
* // name: "STRING_VALUE", // required
|
|
52
52
|
* // description: "STRING_VALUE",
|
|
53
|
-
* // status: "CREATING" || "ACTIVE" || "DELETING" || "UPDATING" || "FAILED" || "DELETE_UNSUCCESSFUL", // required
|
|
53
|
+
* // status: "CREATING" || "ACTIVE" || "DELETING" || "UPDATING" || "FAILED" || "DELETE_UNSUCCESSFUL" || "UPDATE_UNSUCCESSFUL", // required
|
|
54
54
|
* // updatedAt: new Date("TIMESTAMP"), // required
|
|
55
55
|
* // },
|
|
56
56
|
* // ],
|