@aws-sdk/client-bedrock-agent 3.560.0 → 3.561.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/dist-cjs/index.js +12 -0
- package/dist-es/models/models_0.js +6 -0
- package/dist-es/protocols/Aws_restJson1.js +4 -0
- package/dist-types/commands/CreateDataSourceCommand.d.ts +8 -1
- package/dist-types/commands/CreateKnowledgeBaseCommand.d.ts +1 -1
- package/dist-types/commands/DeleteDataSourceCommand.d.ts +1 -1
- package/dist-types/commands/DeleteKnowledgeBaseCommand.d.ts +1 -1
- package/dist-types/commands/GetDataSourceCommand.d.ts +6 -1
- package/dist-types/commands/GetKnowledgeBaseCommand.d.ts +1 -1
- package/dist-types/commands/ListDataSourcesCommand.d.ts +1 -1
- package/dist-types/commands/ListKnowledgeBasesCommand.d.ts +1 -1
- package/dist-types/commands/UpdateDataSourceCommand.d.ts +8 -1
- package/dist-types/commands/UpdateKnowledgeBaseCommand.d.ts +1 -1
- package/dist-types/models/models_0.d.ts +39 -0
- package/dist-types/ts3.4/models/models_0.d.ts +13 -0
- package/package.json +1 -1
package/dist-cjs/index.js
CHANGED
|
@@ -49,6 +49,7 @@ __export(src_exports, {
|
|
|
49
49
|
CreateKnowledgeBaseCommand: () => CreateKnowledgeBaseCommand,
|
|
50
50
|
CreationMode: () => CreationMode,
|
|
51
51
|
CustomControlMethod: () => CustomControlMethod,
|
|
52
|
+
DataDeletionPolicy: () => DataDeletionPolicy,
|
|
52
53
|
DataSourceStatus: () => DataSourceStatus,
|
|
53
54
|
DataSourceType: () => DataSourceType,
|
|
54
55
|
DeleteAgentActionGroupCommand: () => DeleteAgentActionGroupCommand,
|
|
@@ -497,6 +498,10 @@ var KnowledgeBaseState = {
|
|
|
497
498
|
DISABLED: "DISABLED",
|
|
498
499
|
ENABLED: "ENABLED"
|
|
499
500
|
};
|
|
501
|
+
var DataDeletionPolicy = {
|
|
502
|
+
DELETE: "DELETE",
|
|
503
|
+
RETAIN: "RETAIN"
|
|
504
|
+
};
|
|
500
505
|
var DataSourceType = {
|
|
501
506
|
S3: "S3"
|
|
502
507
|
};
|
|
@@ -506,6 +511,7 @@ var ChunkingStrategy = {
|
|
|
506
511
|
};
|
|
507
512
|
var DataSourceStatus = {
|
|
508
513
|
AVAILABLE: "AVAILABLE",
|
|
514
|
+
DELETE_UNSUCCESSFUL: "DELETE_UNSUCCESSFUL",
|
|
509
515
|
DELETING: "DELETING"
|
|
510
516
|
};
|
|
511
517
|
var IngestionJobStatus = {
|
|
@@ -540,6 +546,7 @@ var KnowledgeBaseStorageType = {
|
|
|
540
546
|
var KnowledgeBaseStatus = {
|
|
541
547
|
ACTIVE: "ACTIVE",
|
|
542
548
|
CREATING: "CREATING",
|
|
549
|
+
DELETE_UNSUCCESSFUL: "DELETE_UNSUCCESSFUL",
|
|
543
550
|
DELETING: "DELETING",
|
|
544
551
|
FAILED: "FAILED",
|
|
545
552
|
UPDATING: "UPDATING"
|
|
@@ -721,6 +728,7 @@ var se_CreateDataSourceCommand = /* @__PURE__ */ __name(async (input, context) =
|
|
|
721
728
|
body = JSON.stringify(
|
|
722
729
|
(0, import_smithy_client.take)(input, {
|
|
723
730
|
clientToken: [true, (_) => _ ?? (0, import_uuid.v4)()],
|
|
731
|
+
dataDeletionPolicy: [],
|
|
724
732
|
dataSourceConfiguration: (_) => (0, import_smithy_client._json)(_),
|
|
725
733
|
description: [],
|
|
726
734
|
name: [],
|
|
@@ -1214,6 +1222,7 @@ var se_UpdateDataSourceCommand = /* @__PURE__ */ __name(async (input, context) =
|
|
|
1214
1222
|
let body;
|
|
1215
1223
|
body = JSON.stringify(
|
|
1216
1224
|
(0, import_smithy_client.take)(input, {
|
|
1225
|
+
dataDeletionPolicy: [],
|
|
1217
1226
|
dataSourceConfiguration: (_) => (0, import_smithy_client._json)(_),
|
|
1218
1227
|
description: [],
|
|
1219
1228
|
name: [],
|
|
@@ -2146,9 +2155,11 @@ var de_AgentVersionSummary = /* @__PURE__ */ __name((output, context) => {
|
|
|
2146
2155
|
var de_DataSource = /* @__PURE__ */ __name((output, context) => {
|
|
2147
2156
|
return (0, import_smithy_client.take)(output, {
|
|
2148
2157
|
createdAt: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseRfc3339DateTimeWithOffset)(_)),
|
|
2158
|
+
dataDeletionPolicy: import_smithy_client.expectString,
|
|
2149
2159
|
dataSourceConfiguration: import_smithy_client._json,
|
|
2150
2160
|
dataSourceId: import_smithy_client.expectString,
|
|
2151
2161
|
description: import_smithy_client.expectString,
|
|
2162
|
+
failureReasons: import_smithy_client._json,
|
|
2152
2163
|
knowledgeBaseId: import_smithy_client.expectString,
|
|
2153
2164
|
name: import_smithy_client.expectString,
|
|
2154
2165
|
serverSideEncryptionConfiguration: import_smithy_client._json,
|
|
@@ -3106,6 +3117,7 @@ var paginateListKnowledgeBases = (0, import_core.createPaginator)(BedrockAgentCl
|
|
|
3106
3117
|
PromptType,
|
|
3107
3118
|
AgentAliasStatus,
|
|
3108
3119
|
KnowledgeBaseState,
|
|
3120
|
+
DataDeletionPolicy,
|
|
3109
3121
|
DataSourceType,
|
|
3110
3122
|
ChunkingStrategy,
|
|
3111
3123
|
DataSourceStatus,
|
|
@@ -165,6 +165,10 @@ export const KnowledgeBaseState = {
|
|
|
165
165
|
DISABLED: "DISABLED",
|
|
166
166
|
ENABLED: "ENABLED",
|
|
167
167
|
};
|
|
168
|
+
export const DataDeletionPolicy = {
|
|
169
|
+
DELETE: "DELETE",
|
|
170
|
+
RETAIN: "RETAIN",
|
|
171
|
+
};
|
|
168
172
|
export const DataSourceType = {
|
|
169
173
|
S3: "S3",
|
|
170
174
|
};
|
|
@@ -174,6 +178,7 @@ export const ChunkingStrategy = {
|
|
|
174
178
|
};
|
|
175
179
|
export const DataSourceStatus = {
|
|
176
180
|
AVAILABLE: "AVAILABLE",
|
|
181
|
+
DELETE_UNSUCCESSFUL: "DELETE_UNSUCCESSFUL",
|
|
177
182
|
DELETING: "DELETING",
|
|
178
183
|
};
|
|
179
184
|
export const IngestionJobStatus = {
|
|
@@ -208,6 +213,7 @@ export const KnowledgeBaseStorageType = {
|
|
|
208
213
|
export const KnowledgeBaseStatus = {
|
|
209
214
|
ACTIVE: "ACTIVE",
|
|
210
215
|
CREATING: "CREATING",
|
|
216
|
+
DELETE_UNSUCCESSFUL: "DELETE_UNSUCCESSFUL",
|
|
211
217
|
DELETING: "DELETING",
|
|
212
218
|
FAILED: "FAILED",
|
|
213
219
|
UPDATING: "UPDATING",
|
|
@@ -93,6 +93,7 @@ export const se_CreateDataSourceCommand = async (input, context) => {
|
|
|
93
93
|
let body;
|
|
94
94
|
body = JSON.stringify(take(input, {
|
|
95
95
|
clientToken: [true, (_) => _ ?? generateIdempotencyToken()],
|
|
96
|
+
dataDeletionPolicy: [],
|
|
96
97
|
dataSourceConfiguration: (_) => _json(_),
|
|
97
98
|
description: [],
|
|
98
99
|
name: [],
|
|
@@ -554,6 +555,7 @@ export const se_UpdateDataSourceCommand = async (input, context) => {
|
|
|
554
555
|
b.p("dataSourceId", () => input.dataSourceId, "{dataSourceId}", false);
|
|
555
556
|
let body;
|
|
556
557
|
body = JSON.stringify(take(input, {
|
|
558
|
+
dataDeletionPolicy: [],
|
|
557
559
|
dataSourceConfiguration: (_) => _json(_),
|
|
558
560
|
description: [],
|
|
559
561
|
name: [],
|
|
@@ -1497,9 +1499,11 @@ const de_AgentVersionSummary = (output, context) => {
|
|
|
1497
1499
|
const de_DataSource = (output, context) => {
|
|
1498
1500
|
return take(output, {
|
|
1499
1501
|
createdAt: (_) => __expectNonNull(__parseRfc3339DateTimeWithOffset(_)),
|
|
1502
|
+
dataDeletionPolicy: __expectString,
|
|
1500
1503
|
dataSourceConfiguration: _json,
|
|
1501
1504
|
dataSourceId: __expectString,
|
|
1502
1505
|
description: __expectString,
|
|
1506
|
+
failureReasons: _json,
|
|
1503
1507
|
knowledgeBaseId: __expectString,
|
|
1504
1508
|
name: __expectString,
|
|
1505
1509
|
serverSideEncryptionConfiguration: _json,
|
|
@@ -48,8 +48,10 @@ declare const CreateDataSourceCommand_base: {
|
|
|
48
48
|
* inclusionPrefixes: [ // S3Prefixes
|
|
49
49
|
* "STRING_VALUE",
|
|
50
50
|
* ],
|
|
51
|
+
* bucketOwnerAccountId: "STRING_VALUE",
|
|
51
52
|
* },
|
|
52
53
|
* },
|
|
54
|
+
* dataDeletionPolicy: "RETAIN" || "DELETE",
|
|
53
55
|
* serverSideEncryptionConfiguration: { // ServerSideEncryptionConfiguration
|
|
54
56
|
* kmsKeyArn: "STRING_VALUE",
|
|
55
57
|
* },
|
|
@@ -70,7 +72,7 @@ declare const CreateDataSourceCommand_base: {
|
|
|
70
72
|
* // knowledgeBaseId: "STRING_VALUE", // required
|
|
71
73
|
* // dataSourceId: "STRING_VALUE", // required
|
|
72
74
|
* // name: "STRING_VALUE", // required
|
|
73
|
-
* // status: "AVAILABLE" || "DELETING", // required
|
|
75
|
+
* // status: "AVAILABLE" || "DELETING" || "DELETE_UNSUCCESSFUL", // required
|
|
74
76
|
* // description: "STRING_VALUE",
|
|
75
77
|
* // dataSourceConfiguration: { // DataSourceConfiguration
|
|
76
78
|
* // type: "S3", // required
|
|
@@ -79,6 +81,7 @@ declare const CreateDataSourceCommand_base: {
|
|
|
79
81
|
* // inclusionPrefixes: [ // S3Prefixes
|
|
80
82
|
* // "STRING_VALUE",
|
|
81
83
|
* // ],
|
|
84
|
+
* // bucketOwnerAccountId: "STRING_VALUE",
|
|
82
85
|
* // },
|
|
83
86
|
* // },
|
|
84
87
|
* // serverSideEncryptionConfiguration: { // ServerSideEncryptionConfiguration
|
|
@@ -93,8 +96,12 @@ declare const CreateDataSourceCommand_base: {
|
|
|
93
96
|
* // },
|
|
94
97
|
* // },
|
|
95
98
|
* // },
|
|
99
|
+
* // dataDeletionPolicy: "RETAIN" || "DELETE",
|
|
96
100
|
* // createdAt: new Date("TIMESTAMP"), // required
|
|
97
101
|
* // updatedAt: new Date("TIMESTAMP"), // required
|
|
102
|
+
* // failureReasons: [ // FailureReasons
|
|
103
|
+
* // "STRING_VALUE",
|
|
104
|
+
* // ],
|
|
98
105
|
* // },
|
|
99
106
|
* // };
|
|
100
107
|
*
|
|
@@ -180,7 +180,7 @@ declare const CreateKnowledgeBaseCommand_base: {
|
|
|
180
180
|
* // },
|
|
181
181
|
* // },
|
|
182
182
|
* // },
|
|
183
|
-
* // status: "CREATING" || "ACTIVE" || "DELETING" || "UPDATING" || "FAILED", // required
|
|
183
|
+
* // status: "CREATING" || "ACTIVE" || "DELETING" || "UPDATING" || "FAILED" || "DELETE_UNSUCCESSFUL", // required
|
|
184
184
|
* // createdAt: new Date("TIMESTAMP"), // required
|
|
185
185
|
* // updatedAt: new Date("TIMESTAMP"), // required
|
|
186
186
|
* // failureReasons: [ // FailureReasons
|
|
@@ -42,7 +42,7 @@ declare const DeleteDataSourceCommand_base: {
|
|
|
42
42
|
* // { // DeleteDataSourceResponse
|
|
43
43
|
* // knowledgeBaseId: "STRING_VALUE", // required
|
|
44
44
|
* // dataSourceId: "STRING_VALUE", // required
|
|
45
|
-
* // status: "AVAILABLE" || "DELETING", // required
|
|
45
|
+
* // status: "AVAILABLE" || "DELETING" || "DELETE_UNSUCCESSFUL", // required
|
|
46
46
|
* // };
|
|
47
47
|
*
|
|
48
48
|
* ```
|
|
@@ -40,7 +40,7 @@ declare const DeleteKnowledgeBaseCommand_base: {
|
|
|
40
40
|
* const response = await client.send(command);
|
|
41
41
|
* // { // DeleteKnowledgeBaseResponse
|
|
42
42
|
* // knowledgeBaseId: "STRING_VALUE", // required
|
|
43
|
-
* // status: "CREATING" || "ACTIVE" || "DELETING" || "UPDATING" || "FAILED", // required
|
|
43
|
+
* // status: "CREATING" || "ACTIVE" || "DELETING" || "UPDATING" || "FAILED" || "DELETE_UNSUCCESSFUL", // required
|
|
44
44
|
* // };
|
|
45
45
|
*
|
|
46
46
|
* ```
|
|
@@ -44,7 +44,7 @@ declare const GetDataSourceCommand_base: {
|
|
|
44
44
|
* // knowledgeBaseId: "STRING_VALUE", // required
|
|
45
45
|
* // dataSourceId: "STRING_VALUE", // required
|
|
46
46
|
* // name: "STRING_VALUE", // required
|
|
47
|
-
* // status: "AVAILABLE" || "DELETING", // required
|
|
47
|
+
* // status: "AVAILABLE" || "DELETING" || "DELETE_UNSUCCESSFUL", // required
|
|
48
48
|
* // description: "STRING_VALUE",
|
|
49
49
|
* // dataSourceConfiguration: { // DataSourceConfiguration
|
|
50
50
|
* // type: "S3", // required
|
|
@@ -53,6 +53,7 @@ declare const GetDataSourceCommand_base: {
|
|
|
53
53
|
* // inclusionPrefixes: [ // S3Prefixes
|
|
54
54
|
* // "STRING_VALUE",
|
|
55
55
|
* // ],
|
|
56
|
+
* // bucketOwnerAccountId: "STRING_VALUE",
|
|
56
57
|
* // },
|
|
57
58
|
* // },
|
|
58
59
|
* // serverSideEncryptionConfiguration: { // ServerSideEncryptionConfiguration
|
|
@@ -67,8 +68,12 @@ declare const GetDataSourceCommand_base: {
|
|
|
67
68
|
* // },
|
|
68
69
|
* // },
|
|
69
70
|
* // },
|
|
71
|
+
* // dataDeletionPolicy: "RETAIN" || "DELETE",
|
|
70
72
|
* // createdAt: new Date("TIMESTAMP"), // required
|
|
71
73
|
* // updatedAt: new Date("TIMESTAMP"), // required
|
|
74
|
+
* // failureReasons: [ // FailureReasons
|
|
75
|
+
* // "STRING_VALUE",
|
|
76
|
+
* // ],
|
|
72
77
|
* // },
|
|
73
78
|
* // };
|
|
74
79
|
*
|
|
@@ -94,7 +94,7 @@ declare const GetKnowledgeBaseCommand_base: {
|
|
|
94
94
|
* // },
|
|
95
95
|
* // },
|
|
96
96
|
* // },
|
|
97
|
-
* // status: "CREATING" || "ACTIVE" || "DELETING" || "UPDATING" || "FAILED", // required
|
|
97
|
+
* // status: "CREATING" || "ACTIVE" || "DELETING" || "UPDATING" || "FAILED" || "DELETE_UNSUCCESSFUL", // required
|
|
98
98
|
* // createdAt: new Date("TIMESTAMP"), // required
|
|
99
99
|
* // updatedAt: new Date("TIMESTAMP"), // required
|
|
100
100
|
* // failureReasons: [ // FailureReasons
|
|
@@ -46,7 +46,7 @@ declare const ListDataSourcesCommand_base: {
|
|
|
46
46
|
* // knowledgeBaseId: "STRING_VALUE", // required
|
|
47
47
|
* // dataSourceId: "STRING_VALUE", // required
|
|
48
48
|
* // name: "STRING_VALUE", // required
|
|
49
|
-
* // status: "AVAILABLE" || "DELETING", // required
|
|
49
|
+
* // status: "AVAILABLE" || "DELETING" || "DELETE_UNSUCCESSFUL", // required
|
|
50
50
|
* // description: "STRING_VALUE",
|
|
51
51
|
* // updatedAt: new Date("TIMESTAMP"), // required
|
|
52
52
|
* // },
|
|
@@ -45,7 +45,7 @@ declare const ListKnowledgeBasesCommand_base: {
|
|
|
45
45
|
* // knowledgeBaseId: "STRING_VALUE", // required
|
|
46
46
|
* // name: "STRING_VALUE", // required
|
|
47
47
|
* // description: "STRING_VALUE",
|
|
48
|
-
* // status: "CREATING" || "ACTIVE" || "DELETING" || "UPDATING" || "FAILED", // required
|
|
48
|
+
* // status: "CREATING" || "ACTIVE" || "DELETING" || "UPDATING" || "FAILED" || "DELETE_UNSUCCESSFUL", // required
|
|
49
49
|
* // updatedAt: new Date("TIMESTAMP"), // required
|
|
50
50
|
* // },
|
|
51
51
|
* // ],
|
|
@@ -48,8 +48,10 @@ declare const UpdateDataSourceCommand_base: {
|
|
|
48
48
|
* inclusionPrefixes: [ // S3Prefixes
|
|
49
49
|
* "STRING_VALUE",
|
|
50
50
|
* ],
|
|
51
|
+
* bucketOwnerAccountId: "STRING_VALUE",
|
|
51
52
|
* },
|
|
52
53
|
* },
|
|
54
|
+
* dataDeletionPolicy: "RETAIN" || "DELETE",
|
|
53
55
|
* serverSideEncryptionConfiguration: { // ServerSideEncryptionConfiguration
|
|
54
56
|
* kmsKeyArn: "STRING_VALUE",
|
|
55
57
|
* },
|
|
@@ -70,7 +72,7 @@ declare const UpdateDataSourceCommand_base: {
|
|
|
70
72
|
* // knowledgeBaseId: "STRING_VALUE", // required
|
|
71
73
|
* // dataSourceId: "STRING_VALUE", // required
|
|
72
74
|
* // name: "STRING_VALUE", // required
|
|
73
|
-
* // status: "AVAILABLE" || "DELETING", // required
|
|
75
|
+
* // status: "AVAILABLE" || "DELETING" || "DELETE_UNSUCCESSFUL", // required
|
|
74
76
|
* // description: "STRING_VALUE",
|
|
75
77
|
* // dataSourceConfiguration: { // DataSourceConfiguration
|
|
76
78
|
* // type: "S3", // required
|
|
@@ -79,6 +81,7 @@ declare const UpdateDataSourceCommand_base: {
|
|
|
79
81
|
* // inclusionPrefixes: [ // S3Prefixes
|
|
80
82
|
* // "STRING_VALUE",
|
|
81
83
|
* // ],
|
|
84
|
+
* // bucketOwnerAccountId: "STRING_VALUE",
|
|
82
85
|
* // },
|
|
83
86
|
* // },
|
|
84
87
|
* // serverSideEncryptionConfiguration: { // ServerSideEncryptionConfiguration
|
|
@@ -93,8 +96,12 @@ declare const UpdateDataSourceCommand_base: {
|
|
|
93
96
|
* // },
|
|
94
97
|
* // },
|
|
95
98
|
* // },
|
|
99
|
+
* // dataDeletionPolicy: "RETAIN" || "DELETE",
|
|
96
100
|
* // createdAt: new Date("TIMESTAMP"), // required
|
|
97
101
|
* // updatedAt: new Date("TIMESTAMP"), // required
|
|
102
|
+
* // failureReasons: [ // FailureReasons
|
|
103
|
+
* // "STRING_VALUE",
|
|
104
|
+
* // ],
|
|
98
105
|
* // },
|
|
99
106
|
* // };
|
|
100
107
|
*
|
|
@@ -165,7 +165,7 @@ declare const UpdateKnowledgeBaseCommand_base: {
|
|
|
165
165
|
* // },
|
|
166
166
|
* // },
|
|
167
167
|
* // },
|
|
168
|
-
* // status: "CREATING" || "ACTIVE" || "DELETING" || "UPDATING" || "FAILED", // required
|
|
168
|
+
* // status: "CREATING" || "ACTIVE" || "DELETING" || "UPDATING" || "FAILED" || "DELETE_UNSUCCESSFUL", // required
|
|
169
169
|
* // createdAt: new Date("TIMESTAMP"), // required
|
|
170
170
|
* // updatedAt: new Date("TIMESTAMP"), // required
|
|
171
171
|
* // failureReasons: [ // FailureReasons
|
|
@@ -1860,6 +1860,18 @@ export interface UpdateAgentAliasResponse {
|
|
|
1860
1860
|
*/
|
|
1861
1861
|
agentAlias: AgentAlias | undefined;
|
|
1862
1862
|
}
|
|
1863
|
+
/**
|
|
1864
|
+
* @public
|
|
1865
|
+
* @enum
|
|
1866
|
+
*/
|
|
1867
|
+
export declare const DataDeletionPolicy: {
|
|
1868
|
+
readonly DELETE: "DELETE";
|
|
1869
|
+
readonly RETAIN: "RETAIN";
|
|
1870
|
+
};
|
|
1871
|
+
/**
|
|
1872
|
+
* @public
|
|
1873
|
+
*/
|
|
1874
|
+
export type DataDeletionPolicy = (typeof DataDeletionPolicy)[keyof typeof DataDeletionPolicy];
|
|
1863
1875
|
/**
|
|
1864
1876
|
* <p>Contains information about the S3 configuration of the data source.</p>
|
|
1865
1877
|
* @public
|
|
@@ -1875,6 +1887,11 @@ export interface S3DataSourceConfiguration {
|
|
|
1875
1887
|
* @public
|
|
1876
1888
|
*/
|
|
1877
1889
|
inclusionPrefixes?: string[];
|
|
1890
|
+
/**
|
|
1891
|
+
* <p>The account ID for the owner of the S3 bucket.</p>
|
|
1892
|
+
* @public
|
|
1893
|
+
*/
|
|
1894
|
+
bucketOwnerAccountId?: string;
|
|
1878
1895
|
}
|
|
1879
1896
|
/**
|
|
1880
1897
|
* @public
|
|
@@ -2009,6 +2026,11 @@ export interface CreateDataSourceRequest {
|
|
|
2009
2026
|
* @public
|
|
2010
2027
|
*/
|
|
2011
2028
|
dataSourceConfiguration: DataSourceConfiguration | undefined;
|
|
2029
|
+
/**
|
|
2030
|
+
* <p>The deletion policy for the requested data source</p>
|
|
2031
|
+
* @public
|
|
2032
|
+
*/
|
|
2033
|
+
dataDeletionPolicy?: DataDeletionPolicy;
|
|
2012
2034
|
/**
|
|
2013
2035
|
* <p>Contains details about the server-side encryption for the data source.</p>
|
|
2014
2036
|
* @public
|
|
@@ -2026,6 +2048,7 @@ export interface CreateDataSourceRequest {
|
|
|
2026
2048
|
*/
|
|
2027
2049
|
export declare const DataSourceStatus: {
|
|
2028
2050
|
readonly AVAILABLE: "AVAILABLE";
|
|
2051
|
+
readonly DELETE_UNSUCCESSFUL: "DELETE_UNSUCCESSFUL";
|
|
2029
2052
|
readonly DELETING: "DELETING";
|
|
2030
2053
|
};
|
|
2031
2054
|
/**
|
|
@@ -2085,6 +2108,11 @@ export interface DataSource {
|
|
|
2085
2108
|
* @public
|
|
2086
2109
|
*/
|
|
2087
2110
|
vectorIngestionConfiguration?: VectorIngestionConfiguration;
|
|
2111
|
+
/**
|
|
2112
|
+
* <p>The deletion policy for the data source.</p>
|
|
2113
|
+
* @public
|
|
2114
|
+
*/
|
|
2115
|
+
dataDeletionPolicy?: DataDeletionPolicy;
|
|
2088
2116
|
/**
|
|
2089
2117
|
* <p>The time at which the data source was created.</p>
|
|
2090
2118
|
* @public
|
|
@@ -2095,6 +2123,11 @@ export interface DataSource {
|
|
|
2095
2123
|
* @public
|
|
2096
2124
|
*/
|
|
2097
2125
|
updatedAt: Date | undefined;
|
|
2126
|
+
/**
|
|
2127
|
+
* <p>The details of the failure reasons related to the data source.</p>
|
|
2128
|
+
* @public
|
|
2129
|
+
*/
|
|
2130
|
+
failureReasons?: string[];
|
|
2098
2131
|
}
|
|
2099
2132
|
/**
|
|
2100
2133
|
* @public
|
|
@@ -2266,6 +2299,11 @@ export interface UpdateDataSourceRequest {
|
|
|
2266
2299
|
* @public
|
|
2267
2300
|
*/
|
|
2268
2301
|
dataSourceConfiguration: DataSourceConfiguration | undefined;
|
|
2302
|
+
/**
|
|
2303
|
+
* <p>The data deletion policy of the updated data source.</p>
|
|
2304
|
+
* @public
|
|
2305
|
+
*/
|
|
2306
|
+
dataDeletionPolicy?: DataDeletionPolicy;
|
|
2269
2307
|
/**
|
|
2270
2308
|
* <p>Contains details about server-side encryption of the data source.</p>
|
|
2271
2309
|
* @public
|
|
@@ -3015,6 +3053,7 @@ export interface CreateKnowledgeBaseRequest {
|
|
|
3015
3053
|
export declare const KnowledgeBaseStatus: {
|
|
3016
3054
|
readonly ACTIVE: "ACTIVE";
|
|
3017
3055
|
readonly CREATING: "CREATING";
|
|
3056
|
+
readonly DELETE_UNSUCCESSFUL: "DELETE_UNSUCCESSFUL";
|
|
3018
3057
|
readonly DELETING: "DELETING";
|
|
3019
3058
|
readonly FAILED: "FAILED";
|
|
3020
3059
|
readonly UPDATING: "UPDATING";
|
|
@@ -506,9 +506,16 @@ export interface UpdateAgentAliasRequest {
|
|
|
506
506
|
export interface UpdateAgentAliasResponse {
|
|
507
507
|
agentAlias: AgentAlias | undefined;
|
|
508
508
|
}
|
|
509
|
+
export declare const DataDeletionPolicy: {
|
|
510
|
+
readonly DELETE: "DELETE";
|
|
511
|
+
readonly RETAIN: "RETAIN";
|
|
512
|
+
};
|
|
513
|
+
export type DataDeletionPolicy =
|
|
514
|
+
(typeof DataDeletionPolicy)[keyof typeof DataDeletionPolicy];
|
|
509
515
|
export interface S3DataSourceConfiguration {
|
|
510
516
|
bucketArn: string | undefined;
|
|
511
517
|
inclusionPrefixes?: string[];
|
|
518
|
+
bucketOwnerAccountId?: string;
|
|
512
519
|
}
|
|
513
520
|
export declare const DataSourceType: {
|
|
514
521
|
readonly S3: "S3";
|
|
@@ -545,11 +552,13 @@ export interface CreateDataSourceRequest {
|
|
|
545
552
|
name: string | undefined;
|
|
546
553
|
description?: string;
|
|
547
554
|
dataSourceConfiguration: DataSourceConfiguration | undefined;
|
|
555
|
+
dataDeletionPolicy?: DataDeletionPolicy;
|
|
548
556
|
serverSideEncryptionConfiguration?: ServerSideEncryptionConfiguration;
|
|
549
557
|
vectorIngestionConfiguration?: VectorIngestionConfiguration;
|
|
550
558
|
}
|
|
551
559
|
export declare const DataSourceStatus: {
|
|
552
560
|
readonly AVAILABLE: "AVAILABLE";
|
|
561
|
+
readonly DELETE_UNSUCCESSFUL: "DELETE_UNSUCCESSFUL";
|
|
553
562
|
readonly DELETING: "DELETING";
|
|
554
563
|
};
|
|
555
564
|
export type DataSourceStatus =
|
|
@@ -563,8 +572,10 @@ export interface DataSource {
|
|
|
563
572
|
dataSourceConfiguration: DataSourceConfiguration | undefined;
|
|
564
573
|
serverSideEncryptionConfiguration?: ServerSideEncryptionConfiguration;
|
|
565
574
|
vectorIngestionConfiguration?: VectorIngestionConfiguration;
|
|
575
|
+
dataDeletionPolicy?: DataDeletionPolicy;
|
|
566
576
|
createdAt: Date | undefined;
|
|
567
577
|
updatedAt: Date | undefined;
|
|
578
|
+
failureReasons?: string[];
|
|
568
579
|
}
|
|
569
580
|
export interface CreateDataSourceResponse {
|
|
570
581
|
dataSource: DataSource | undefined;
|
|
@@ -608,6 +619,7 @@ export interface UpdateDataSourceRequest {
|
|
|
608
619
|
name: string | undefined;
|
|
609
620
|
description?: string;
|
|
610
621
|
dataSourceConfiguration: DataSourceConfiguration | undefined;
|
|
622
|
+
dataDeletionPolicy?: DataDeletionPolicy;
|
|
611
623
|
serverSideEncryptionConfiguration?: ServerSideEncryptionConfiguration;
|
|
612
624
|
vectorIngestionConfiguration?: VectorIngestionConfiguration;
|
|
613
625
|
}
|
|
@@ -804,6 +816,7 @@ export interface CreateKnowledgeBaseRequest {
|
|
|
804
816
|
export declare const KnowledgeBaseStatus: {
|
|
805
817
|
readonly ACTIVE: "ACTIVE";
|
|
806
818
|
readonly CREATING: "CREATING";
|
|
819
|
+
readonly DELETE_UNSUCCESSFUL: "DELETE_UNSUCCESSFUL";
|
|
807
820
|
readonly DELETING: "DELETING";
|
|
808
821
|
readonly FAILED: "FAILED";
|
|
809
822
|
readonly UPDATING: "UPDATING";
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aws-sdk/client-bedrock-agent",
|
|
3
3
|
"description": "AWS SDK for JavaScript Bedrock Agent Client for Node.js, Browser and React Native",
|
|
4
|
-
"version": "3.
|
|
4
|
+
"version": "3.561.0",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
|
|
7
7
|
"build:cjs": "node ../../scripts/compilation/inline client-bedrock-agent",
|