Skip to content

Commit bf837dc

Browse files
author
awstools
committed
feat(client-bedrock-agent): Introducing the ability to create multiple data sources per knowledge base, specify S3 buckets as data sources from external accounts, and exposing levers to define the deletion behavior of the underlying vector store data.
1 parent ef5386c commit bf837dc

13 files changed

+148
-10
lines changed

clients/client-bedrock-agent/src/commands/CreateDataSourceCommand.ts

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,8 +49,10 @@ export interface CreateDataSourceCommandOutput extends CreateDataSourceResponse,
4949
* inclusionPrefixes: [ // S3Prefixes
5050
* "STRING_VALUE",
5151
* ],
52+
* bucketOwnerAccountId: "STRING_VALUE",
5253
* },
5354
* },
55+
* dataDeletionPolicy: "RETAIN" || "DELETE",
5456
* serverSideEncryptionConfiguration: { // ServerSideEncryptionConfiguration
5557
* kmsKeyArn: "STRING_VALUE",
5658
* },
@@ -71,7 +73,7 @@ export interface CreateDataSourceCommandOutput extends CreateDataSourceResponse,
7173
* // knowledgeBaseId: "STRING_VALUE", // required
7274
* // dataSourceId: "STRING_VALUE", // required
7375
* // name: "STRING_VALUE", // required
74-
* // status: "AVAILABLE" || "DELETING", // required
76+
* // status: "AVAILABLE" || "DELETING" || "DELETE_UNSUCCESSFUL", // required
7577
* // description: "STRING_VALUE",
7678
* // dataSourceConfiguration: { // DataSourceConfiguration
7779
* // type: "S3", // required
@@ -80,6 +82,7 @@ export interface CreateDataSourceCommandOutput extends CreateDataSourceResponse,
8082
* // inclusionPrefixes: [ // S3Prefixes
8183
* // "STRING_VALUE",
8284
* // ],
85+
* // bucketOwnerAccountId: "STRING_VALUE",
8386
* // },
8487
* // },
8588
* // serverSideEncryptionConfiguration: { // ServerSideEncryptionConfiguration
@@ -94,8 +97,12 @@ export interface CreateDataSourceCommandOutput extends CreateDataSourceResponse,
9497
* // },
9598
* // },
9699
* // },
100+
* // dataDeletionPolicy: "RETAIN" || "DELETE",
97101
* // createdAt: new Date("TIMESTAMP"), // required
98102
* // updatedAt: new Date("TIMESTAMP"), // required
103+
* // failureReasons: [ // FailureReasons
104+
* // "STRING_VALUE",
105+
* // ],
99106
* // },
100107
* // };
101108
*

clients/client-bedrock-agent/src/commands/CreateKnowledgeBaseCommand.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -181,7 +181,7 @@ export interface CreateKnowledgeBaseCommandOutput extends CreateKnowledgeBaseRes
181181
* // },
182182
* // },
183183
* // },
184-
* // status: "CREATING" || "ACTIVE" || "DELETING" || "UPDATING" || "FAILED", // required
184+
* // status: "CREATING" || "ACTIVE" || "DELETING" || "UPDATING" || "FAILED" || "DELETE_UNSUCCESSFUL", // required
185185
* // createdAt: new Date("TIMESTAMP"), // required
186186
* // updatedAt: new Date("TIMESTAMP"), // required
187187
* // failureReasons: [ // FailureReasons

clients/client-bedrock-agent/src/commands/DeleteDataSourceCommand.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ export interface DeleteDataSourceCommandOutput extends DeleteDataSourceResponse,
4343
* // { // DeleteDataSourceResponse
4444
* // knowledgeBaseId: "STRING_VALUE", // required
4545
* // dataSourceId: "STRING_VALUE", // required
46-
* // status: "AVAILABLE" || "DELETING", // required
46+
* // status: "AVAILABLE" || "DELETING" || "DELETE_UNSUCCESSFUL", // required
4747
* // };
4848
*
4949
* ```

clients/client-bedrock-agent/src/commands/DeleteKnowledgeBaseCommand.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ export interface DeleteKnowledgeBaseCommandOutput extends DeleteKnowledgeBaseRes
4141
* const response = await client.send(command);
4242
* // { // DeleteKnowledgeBaseResponse
4343
* // knowledgeBaseId: "STRING_VALUE", // required
44-
* // status: "CREATING" || "ACTIVE" || "DELETING" || "UPDATING" || "FAILED", // required
44+
* // status: "CREATING" || "ACTIVE" || "DELETING" || "UPDATING" || "FAILED" || "DELETE_UNSUCCESSFUL", // required
4545
* // };
4646
*
4747
* ```

clients/client-bedrock-agent/src/commands/GetDataSourceCommand.ts

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ export interface GetDataSourceCommandOutput extends GetDataSourceResponse, __Met
4545
* // knowledgeBaseId: "STRING_VALUE", // required
4646
* // dataSourceId: "STRING_VALUE", // required
4747
* // name: "STRING_VALUE", // required
48-
* // status: "AVAILABLE" || "DELETING", // required
48+
* // status: "AVAILABLE" || "DELETING" || "DELETE_UNSUCCESSFUL", // required
4949
* // description: "STRING_VALUE",
5050
* // dataSourceConfiguration: { // DataSourceConfiguration
5151
* // type: "S3", // required
@@ -54,6 +54,7 @@ export interface GetDataSourceCommandOutput extends GetDataSourceResponse, __Met
5454
* // inclusionPrefixes: [ // S3Prefixes
5555
* // "STRING_VALUE",
5656
* // ],
57+
* // bucketOwnerAccountId: "STRING_VALUE",
5758
* // },
5859
* // },
5960
* // serverSideEncryptionConfiguration: { // ServerSideEncryptionConfiguration
@@ -68,8 +69,12 @@ export interface GetDataSourceCommandOutput extends GetDataSourceResponse, __Met
6869
* // },
6970
* // },
7071
* // },
72+
* // dataDeletionPolicy: "RETAIN" || "DELETE",
7173
* // createdAt: new Date("TIMESTAMP"), // required
7274
* // updatedAt: new Date("TIMESTAMP"), // required
75+
* // failureReasons: [ // FailureReasons
76+
* // "STRING_VALUE",
77+
* // ],
7378
* // },
7479
* // };
7580
*

clients/client-bedrock-agent/src/commands/GetKnowledgeBaseCommand.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ export interface GetKnowledgeBaseCommandOutput extends GetKnowledgeBaseResponse,
9595
* // },
9696
* // },
9797
* // },
98-
* // status: "CREATING" || "ACTIVE" || "DELETING" || "UPDATING" || "FAILED", // required
98+
* // status: "CREATING" || "ACTIVE" || "DELETING" || "UPDATING" || "FAILED" || "DELETE_UNSUCCESSFUL", // required
9999
* // createdAt: new Date("TIMESTAMP"), // required
100100
* // updatedAt: new Date("TIMESTAMP"), // required
101101
* // failureReasons: [ // FailureReasons

clients/client-bedrock-agent/src/commands/ListDataSourcesCommand.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ export interface ListDataSourcesCommandOutput extends ListDataSourcesResponse, _
4747
* // knowledgeBaseId: "STRING_VALUE", // required
4848
* // dataSourceId: "STRING_VALUE", // required
4949
* // name: "STRING_VALUE", // required
50-
* // status: "AVAILABLE" || "DELETING", // required
50+
* // status: "AVAILABLE" || "DELETING" || "DELETE_UNSUCCESSFUL", // required
5151
* // description: "STRING_VALUE",
5252
* // updatedAt: new Date("TIMESTAMP"), // required
5353
* // },

clients/client-bedrock-agent/src/commands/ListKnowledgeBasesCommand.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ export interface ListKnowledgeBasesCommandOutput extends ListKnowledgeBasesRespo
4646
* // knowledgeBaseId: "STRING_VALUE", // required
4747
* // name: "STRING_VALUE", // required
4848
* // description: "STRING_VALUE",
49-
* // status: "CREATING" || "ACTIVE" || "DELETING" || "UPDATING" || "FAILED", // required
49+
* // status: "CREATING" || "ACTIVE" || "DELETING" || "UPDATING" || "FAILED" || "DELETE_UNSUCCESSFUL", // required
5050
* // updatedAt: new Date("TIMESTAMP"), // required
5151
* // },
5252
* // ],

clients/client-bedrock-agent/src/commands/UpdateDataSourceCommand.ts

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,8 +49,10 @@ export interface UpdateDataSourceCommandOutput extends UpdateDataSourceResponse,
4949
* inclusionPrefixes: [ // S3Prefixes
5050
* "STRING_VALUE",
5151
* ],
52+
* bucketOwnerAccountId: "STRING_VALUE",
5253
* },
5354
* },
55+
* dataDeletionPolicy: "RETAIN" || "DELETE",
5456
* serverSideEncryptionConfiguration: { // ServerSideEncryptionConfiguration
5557
* kmsKeyArn: "STRING_VALUE",
5658
* },
@@ -71,7 +73,7 @@ export interface UpdateDataSourceCommandOutput extends UpdateDataSourceResponse,
7173
* // knowledgeBaseId: "STRING_VALUE", // required
7274
* // dataSourceId: "STRING_VALUE", // required
7375
* // name: "STRING_VALUE", // required
74-
* // status: "AVAILABLE" || "DELETING", // required
76+
* // status: "AVAILABLE" || "DELETING" || "DELETE_UNSUCCESSFUL", // required
7577
* // description: "STRING_VALUE",
7678
* // dataSourceConfiguration: { // DataSourceConfiguration
7779
* // type: "S3", // required
@@ -80,6 +82,7 @@ export interface UpdateDataSourceCommandOutput extends UpdateDataSourceResponse,
8082
* // inclusionPrefixes: [ // S3Prefixes
8183
* // "STRING_VALUE",
8284
* // ],
85+
* // bucketOwnerAccountId: "STRING_VALUE",
8386
* // },
8487
* // },
8588
* // serverSideEncryptionConfiguration: { // ServerSideEncryptionConfiguration
@@ -94,8 +97,12 @@ export interface UpdateDataSourceCommandOutput extends UpdateDataSourceResponse,
9497
* // },
9598
* // },
9699
* // },
100+
* // dataDeletionPolicy: "RETAIN" || "DELETE",
97101
* // createdAt: new Date("TIMESTAMP"), // required
98102
* // updatedAt: new Date("TIMESTAMP"), // required
103+
* // failureReasons: [ // FailureReasons
104+
* // "STRING_VALUE",
105+
* // ],
99106
* // },
100107
* // };
101108
*

clients/client-bedrock-agent/src/commands/UpdateKnowledgeBaseCommand.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -166,7 +166,7 @@ export interface UpdateKnowledgeBaseCommandOutput extends UpdateKnowledgeBaseRes
166166
* // },
167167
* // },
168168
* // },
169-
* // status: "CREATING" || "ACTIVE" || "DELETING" || "UPDATING" || "FAILED", // required
169+
* // status: "CREATING" || "ACTIVE" || "DELETING" || "UPDATING" || "FAILED" || "DELETE_UNSUCCESSFUL", // required
170170
* // createdAt: new Date("TIMESTAMP"), // required
171171
* // updatedAt: new Date("TIMESTAMP"), // required
172172
* // failureReasons: [ // FailureReasons

0 commit comments

Comments
 (0)