@aws-sdk/client-bedrock-agent 3.556.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 CHANGED
@@ -48,6 +48,8 @@ __export(src_exports, {
48
48
  CreateDataSourceCommand: () => CreateDataSourceCommand,
49
49
  CreateKnowledgeBaseCommand: () => CreateKnowledgeBaseCommand,
50
50
  CreationMode: () => CreationMode,
51
+ CustomControlMethod: () => CustomControlMethod,
52
+ DataDeletionPolicy: () => DataDeletionPolicy,
51
53
  DataSourceStatus: () => DataSourceStatus,
52
54
  DataSourceType: () => DataSourceType,
53
55
  DeleteAgentActionGroupCommand: () => DeleteAgentActionGroupCommand,
@@ -57,6 +59,7 @@ __export(src_exports, {
57
59
  DeleteDataSourceCommand: () => DeleteDataSourceCommand,
58
60
  DeleteKnowledgeBaseCommand: () => DeleteKnowledgeBaseCommand,
59
61
  DisassociateAgentKnowledgeBaseCommand: () => DisassociateAgentKnowledgeBaseCommand,
62
+ FunctionSchema: () => FunctionSchema,
60
63
  GetAgentActionGroupCommand: () => GetAgentActionGroupCommand,
61
64
  GetAgentActionGroupResponseFilterSensitiveLog: () => GetAgentActionGroupResponseFilterSensitiveLog,
62
65
  GetAgentAliasCommand: () => GetAgentAliasCommand,
@@ -96,6 +99,7 @@ __export(src_exports, {
96
99
  StartIngestionJobCommand: () => StartIngestionJobCommand,
97
100
  TagResourceCommand: () => TagResourceCommand,
98
101
  ThrottlingException: () => ThrottlingException,
102
+ Type: () => Type,
99
103
  UntagResourceCommand: () => UntagResourceCommand,
100
104
  UpdateAgentActionGroupCommand: () => UpdateAgentActionGroupCommand,
101
105
  UpdateAgentActionGroupRequestFilterSensitiveLog: () => UpdateAgentActionGroupRequestFilterSensitiveLog,
@@ -311,11 +315,16 @@ var _AccessDeniedException = class _AccessDeniedException extends BedrockAgentSe
311
315
  };
312
316
  __name(_AccessDeniedException, "AccessDeniedException");
313
317
  var AccessDeniedException = _AccessDeniedException;
318
+ var CustomControlMethod = {
319
+ RETURN_CONTROL: "RETURN_CONTROL"
320
+ };
314
321
  var ActionGroupExecutor;
315
322
  ((ActionGroupExecutor3) => {
316
323
  ActionGroupExecutor3.visit = /* @__PURE__ */ __name((value, visitor) => {
317
324
  if (value.lambda !== void 0)
318
325
  return visitor.lambda(value.lambda);
326
+ if (value.customControl !== void 0)
327
+ return visitor.customControl(value.customControl);
319
328
  return visitor._(value.$unknown[0], value.$unknown[1]);
320
329
  }, "visit");
321
330
  })(ActionGroupExecutor || (ActionGroupExecutor = {}));
@@ -350,6 +359,21 @@ var APISchema;
350
359
  return visitor._(value.$unknown[0], value.$unknown[1]);
351
360
  }, "visit");
352
361
  })(APISchema || (APISchema = {}));
362
+ var Type = {
363
+ ARRAY: "array",
364
+ BOOLEAN: "boolean",
365
+ INTEGER: "integer",
366
+ NUMBER: "number",
367
+ STRING: "string"
368
+ };
369
+ var FunctionSchema;
370
+ ((FunctionSchema3) => {
371
+ FunctionSchema3.visit = /* @__PURE__ */ __name((value, visitor) => {
372
+ if (value.functions !== void 0)
373
+ return visitor.functions(value.functions);
374
+ return visitor._(value.$unknown[0], value.$unknown[1]);
375
+ }, "visit");
376
+ })(FunctionSchema || (FunctionSchema = {}));
353
377
  var ActionGroupSignature = {
354
378
  AMAZON_USERINPUT: "AMAZON.UserInput"
355
379
  };
@@ -474,6 +498,10 @@ var KnowledgeBaseState = {
474
498
  DISABLED: "DISABLED",
475
499
  ENABLED: "ENABLED"
476
500
  };
501
+ var DataDeletionPolicy = {
502
+ DELETE: "DELETE",
503
+ RETAIN: "RETAIN"
504
+ };
477
505
  var DataSourceType = {
478
506
  S3: "S3"
479
507
  };
@@ -483,6 +511,7 @@ var ChunkingStrategy = {
483
511
  };
484
512
  var DataSourceStatus = {
485
513
  AVAILABLE: "AVAILABLE",
514
+ DELETE_UNSUCCESSFUL: "DELETE_UNSUCCESSFUL",
486
515
  DELETING: "DELETING"
487
516
  };
488
517
  var IngestionJobStatus = {
@@ -517,6 +546,7 @@ var KnowledgeBaseStorageType = {
517
546
  var KnowledgeBaseStatus = {
518
547
  ACTIVE: "ACTIVE",
519
548
  CREATING: "CREATING",
549
+ DELETE_UNSUCCESSFUL: "DELETE_UNSUCCESSFUL",
520
550
  DELETING: "DELETING",
521
551
  FAILED: "FAILED",
522
552
  UPDATING: "UPDATING"
@@ -532,12 +562,14 @@ var APISchemaFilterSensitiveLog = /* @__PURE__ */ __name((obj) => {
532
562
  var CreateAgentActionGroupRequestFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
533
563
  ...obj,
534
564
  ...obj.actionGroupExecutor && { actionGroupExecutor: obj.actionGroupExecutor },
535
- ...obj.apiSchema && { apiSchema: APISchemaFilterSensitiveLog(obj.apiSchema) }
565
+ ...obj.apiSchema && { apiSchema: APISchemaFilterSensitiveLog(obj.apiSchema) },
566
+ ...obj.functionSchema && { functionSchema: obj.functionSchema }
536
567
  }), "CreateAgentActionGroupRequestFilterSensitiveLog");
537
568
  var AgentActionGroupFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
538
569
  ...obj,
539
570
  ...obj.actionGroupExecutor && { actionGroupExecutor: obj.actionGroupExecutor },
540
- ...obj.apiSchema && { apiSchema: APISchemaFilterSensitiveLog(obj.apiSchema) }
571
+ ...obj.apiSchema && { apiSchema: APISchemaFilterSensitiveLog(obj.apiSchema) },
572
+ ...obj.functionSchema && { functionSchema: obj.functionSchema }
541
573
  }), "AgentActionGroupFilterSensitiveLog");
542
574
  var CreateAgentActionGroupResponseFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
543
575
  ...obj,
@@ -550,7 +582,8 @@ var GetAgentActionGroupResponseFilterSensitiveLog = /* @__PURE__ */ __name((obj)
550
582
  var UpdateAgentActionGroupRequestFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
551
583
  ...obj,
552
584
  ...obj.actionGroupExecutor && { actionGroupExecutor: obj.actionGroupExecutor },
553
- ...obj.apiSchema && { apiSchema: APISchemaFilterSensitiveLog(obj.apiSchema) }
585
+ ...obj.apiSchema && { apiSchema: APISchemaFilterSensitiveLog(obj.apiSchema) },
586
+ ...obj.functionSchema && { functionSchema: obj.functionSchema }
554
587
  }), "UpdateAgentActionGroupRequestFilterSensitiveLog");
555
588
  var UpdateAgentActionGroupResponseFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
556
589
  ...obj,
@@ -657,6 +690,7 @@ var se_CreateAgentActionGroupCommand = /* @__PURE__ */ __name(async (input, cont
657
690
  apiSchema: (_) => (0, import_smithy_client._json)(_),
658
691
  clientToken: [true, (_) => _ ?? (0, import_uuid.v4)()],
659
692
  description: [],
693
+ functionSchema: (_) => (0, import_smithy_client._json)(_),
660
694
  parentActionGroupSignature: []
661
695
  })
662
696
  );
@@ -694,6 +728,7 @@ var se_CreateDataSourceCommand = /* @__PURE__ */ __name(async (input, context) =
694
728
  body = JSON.stringify(
695
729
  (0, import_smithy_client.take)(input, {
696
730
  clientToken: [true, (_) => _ ?? (0, import_uuid.v4)()],
731
+ dataDeletionPolicy: [],
697
732
  dataSourceConfiguration: (_) => (0, import_smithy_client._json)(_),
698
733
  description: [],
699
734
  name: [],
@@ -1131,6 +1166,7 @@ var se_UpdateAgentActionGroupCommand = /* @__PURE__ */ __name(async (input, cont
1131
1166
  actionGroupState: [],
1132
1167
  apiSchema: (_) => (0, import_smithy_client._json)(_),
1133
1168
  description: [],
1169
+ functionSchema: (_) => (0, import_smithy_client._json)(_),
1134
1170
  parentActionGroupSignature: []
1135
1171
  })
1136
1172
  );
@@ -1186,6 +1222,7 @@ var se_UpdateDataSourceCommand = /* @__PURE__ */ __name(async (input, context) =
1186
1222
  let body;
1187
1223
  body = JSON.stringify(
1188
1224
  (0, import_smithy_client.take)(input, {
1225
+ dataDeletionPolicy: [],
1189
1226
  dataSourceConfiguration: (_) => (0, import_smithy_client._json)(_),
1190
1227
  description: [],
1191
1228
  name: [],
@@ -1988,6 +2025,7 @@ var de_AgentActionGroup = /* @__PURE__ */ __name((output, context) => {
1988
2025
  clientToken: import_smithy_client.expectString,
1989
2026
  createdAt: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseRfc3339DateTimeWithOffset)(_)),
1990
2027
  description: import_smithy_client.expectString,
2028
+ functionSchema: (_) => (0, import_smithy_client._json)((0, import_core2.awsExpectUnion)(_)),
1991
2029
  parentActionSignature: import_smithy_client.expectString,
1992
2030
  updatedAt: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseRfc3339DateTimeWithOffset)(_))
1993
2031
  });
@@ -2117,9 +2155,11 @@ var de_AgentVersionSummary = /* @__PURE__ */ __name((output, context) => {
2117
2155
  var de_DataSource = /* @__PURE__ */ __name((output, context) => {
2118
2156
  return (0, import_smithy_client.take)(output, {
2119
2157
  createdAt: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseRfc3339DateTimeWithOffset)(_)),
2158
+ dataDeletionPolicy: import_smithy_client.expectString,
2120
2159
  dataSourceConfiguration: import_smithy_client._json,
2121
2160
  dataSourceId: import_smithy_client.expectString,
2122
2161
  description: import_smithy_client.expectString,
2162
+ failureReasons: import_smithy_client._json,
2123
2163
  knowledgeBaseId: import_smithy_client.expectString,
2124
2164
  name: import_smithy_client.expectString,
2125
2165
  serverSideEncryptionConfiguration: import_smithy_client._json,
@@ -3058,10 +3098,13 @@ var paginateListKnowledgeBases = (0, import_core.createPaginator)(BedrockAgentCl
3058
3098
  paginateListIngestionJobs,
3059
3099
  paginateListKnowledgeBases,
3060
3100
  AccessDeniedException,
3101
+ CustomControlMethod,
3061
3102
  ActionGroupExecutor,
3062
3103
  ConflictException,
3063
3104
  ActionGroupState,
3064
3105
  APISchema,
3106
+ Type,
3107
+ FunctionSchema,
3065
3108
  ActionGroupSignature,
3066
3109
  InternalServerException,
3067
3110
  ResourceNotFoundException,
@@ -3074,6 +3117,7 @@ var paginateListKnowledgeBases = (0, import_core.createPaginator)(BedrockAgentCl
3074
3117
  PromptType,
3075
3118
  AgentAliasStatus,
3076
3119
  KnowledgeBaseState,
3120
+ DataDeletionPolicy,
3077
3121
  DataSourceType,
3078
3122
  ChunkingStrategy,
3079
3123
  DataSourceStatus,
@@ -12,11 +12,16 @@ export class AccessDeniedException extends __BaseException {
12
12
  Object.setPrototypeOf(this, AccessDeniedException.prototype);
13
13
  }
14
14
  }
15
+ export const CustomControlMethod = {
16
+ RETURN_CONTROL: "RETURN_CONTROL",
17
+ };
15
18
  export var ActionGroupExecutor;
16
19
  (function (ActionGroupExecutor) {
17
20
  ActionGroupExecutor.visit = (value, visitor) => {
18
21
  if (value.lambda !== undefined)
19
22
  return visitor.lambda(value.lambda);
23
+ if (value.customControl !== undefined)
24
+ return visitor.customControl(value.customControl);
20
25
  return visitor._(value.$unknown[0], value.$unknown[1]);
21
26
  };
22
27
  })(ActionGroupExecutor || (ActionGroupExecutor = {}));
@@ -46,6 +51,21 @@ export var APISchema;
46
51
  return visitor._(value.$unknown[0], value.$unknown[1]);
47
52
  };
48
53
  })(APISchema || (APISchema = {}));
54
+ export const Type = {
55
+ ARRAY: "array",
56
+ BOOLEAN: "boolean",
57
+ INTEGER: "integer",
58
+ NUMBER: "number",
59
+ STRING: "string",
60
+ };
61
+ export var FunctionSchema;
62
+ (function (FunctionSchema) {
63
+ FunctionSchema.visit = (value, visitor) => {
64
+ if (value.functions !== undefined)
65
+ return visitor.functions(value.functions);
66
+ return visitor._(value.$unknown[0], value.$unknown[1]);
67
+ };
68
+ })(FunctionSchema || (FunctionSchema = {}));
49
69
  export const ActionGroupSignature = {
50
70
  AMAZON_USERINPUT: "AMAZON.UserInput",
51
71
  };
@@ -145,6 +165,10 @@ export const KnowledgeBaseState = {
145
165
  DISABLED: "DISABLED",
146
166
  ENABLED: "ENABLED",
147
167
  };
168
+ export const DataDeletionPolicy = {
169
+ DELETE: "DELETE",
170
+ RETAIN: "RETAIN",
171
+ };
148
172
  export const DataSourceType = {
149
173
  S3: "S3",
150
174
  };
@@ -154,6 +178,7 @@ export const ChunkingStrategy = {
154
178
  };
155
179
  export const DataSourceStatus = {
156
180
  AVAILABLE: "AVAILABLE",
181
+ DELETE_UNSUCCESSFUL: "DELETE_UNSUCCESSFUL",
157
182
  DELETING: "DELETING",
158
183
  };
159
184
  export const IngestionJobStatus = {
@@ -188,6 +213,7 @@ export const KnowledgeBaseStorageType = {
188
213
  export const KnowledgeBaseStatus = {
189
214
  ACTIVE: "ACTIVE",
190
215
  CREATING: "CREATING",
216
+ DELETE_UNSUCCESSFUL: "DELETE_UNSUCCESSFUL",
191
217
  DELETING: "DELETING",
192
218
  FAILED: "FAILED",
193
219
  UPDATING: "UPDATING",
@@ -204,11 +230,13 @@ export const CreateAgentActionGroupRequestFilterSensitiveLog = (obj) => ({
204
230
  ...obj,
205
231
  ...(obj.actionGroupExecutor && { actionGroupExecutor: obj.actionGroupExecutor }),
206
232
  ...(obj.apiSchema && { apiSchema: APISchemaFilterSensitiveLog(obj.apiSchema) }),
233
+ ...(obj.functionSchema && { functionSchema: obj.functionSchema }),
207
234
  });
208
235
  export const AgentActionGroupFilterSensitiveLog = (obj) => ({
209
236
  ...obj,
210
237
  ...(obj.actionGroupExecutor && { actionGroupExecutor: obj.actionGroupExecutor }),
211
238
  ...(obj.apiSchema && { apiSchema: APISchemaFilterSensitiveLog(obj.apiSchema) }),
239
+ ...(obj.functionSchema && { functionSchema: obj.functionSchema }),
212
240
  });
213
241
  export const CreateAgentActionGroupResponseFilterSensitiveLog = (obj) => ({
214
242
  ...obj,
@@ -222,6 +250,7 @@ export const UpdateAgentActionGroupRequestFilterSensitiveLog = (obj) => ({
222
250
  ...obj,
223
251
  ...(obj.actionGroupExecutor && { actionGroupExecutor: obj.actionGroupExecutor }),
224
252
  ...(obj.apiSchema && { apiSchema: APISchemaFilterSensitiveLog(obj.apiSchema) }),
253
+ ...(obj.functionSchema && { functionSchema: obj.functionSchema }),
225
254
  });
226
255
  export const UpdateAgentActionGroupResponseFilterSensitiveLog = (obj) => ({
227
256
  ...obj,
@@ -59,6 +59,7 @@ export const se_CreateAgentActionGroupCommand = async (input, context) => {
59
59
  apiSchema: (_) => _json(_),
60
60
  clientToken: [true, (_) => _ ?? generateIdempotencyToken()],
61
61
  description: [],
62
+ functionSchema: (_) => _json(_),
62
63
  parentActionGroupSignature: [],
63
64
  }));
64
65
  b.m("PUT").h(headers).b(body);
@@ -92,6 +93,7 @@ export const se_CreateDataSourceCommand = async (input, context) => {
92
93
  let body;
93
94
  body = JSON.stringify(take(input, {
94
95
  clientToken: [true, (_) => _ ?? generateIdempotencyToken()],
96
+ dataDeletionPolicy: [],
95
97
  dataSourceConfiguration: (_) => _json(_),
96
98
  description: [],
97
99
  name: [],
@@ -503,6 +505,7 @@ export const se_UpdateAgentActionGroupCommand = async (input, context) => {
503
505
  actionGroupState: [],
504
506
  apiSchema: (_) => _json(_),
505
507
  description: [],
508
+ functionSchema: (_) => _json(_),
506
509
  parentActionGroupSignature: [],
507
510
  }));
508
511
  b.m("PUT").h(headers).b(body);
@@ -552,6 +555,7 @@ export const se_UpdateDataSourceCommand = async (input, context) => {
552
555
  b.p("dataSourceId", () => input.dataSourceId, "{dataSourceId}", false);
553
556
  let body;
554
557
  body = JSON.stringify(take(input, {
558
+ dataDeletionPolicy: [],
555
559
  dataSourceConfiguration: (_) => _json(_),
556
560
  description: [],
557
561
  name: [],
@@ -1355,6 +1359,7 @@ const de_AgentActionGroup = (output, context) => {
1355
1359
  clientToken: __expectString,
1356
1360
  createdAt: (_) => __expectNonNull(__parseRfc3339DateTimeWithOffset(_)),
1357
1361
  description: __expectString,
1362
+ functionSchema: (_) => _json(__expectUnion(_)),
1358
1363
  parentActionSignature: __expectString,
1359
1364
  updatedAt: (_) => __expectNonNull(__parseRfc3339DateTimeWithOffset(_)),
1360
1365
  });
@@ -1494,9 +1499,11 @@ const de_AgentVersionSummary = (output, context) => {
1494
1499
  const de_DataSource = (output, context) => {
1495
1500
  return take(output, {
1496
1501
  createdAt: (_) => __expectNonNull(__parseRfc3339DateTimeWithOffset(_)),
1502
+ dataDeletionPolicy: __expectString,
1497
1503
  dataSourceConfiguration: _json,
1498
1504
  dataSourceId: __expectString,
1499
1505
  description: __expectString,
1506
+ failureReasons: _json,
1500
1507
  knowledgeBaseId: __expectString,
1501
1508
  name: __expectString,
1502
1509
  serverSideEncryptionConfiguration: _json,
@@ -43,6 +43,7 @@ declare const CreateAgentActionGroupCommand_base: {
43
43
  * parentActionGroupSignature: "AMAZON.UserInput",
44
44
  * actionGroupExecutor: { // ActionGroupExecutor Union: only one key present
45
45
  * lambda: "STRING_VALUE",
46
+ * customControl: "RETURN_CONTROL",
46
47
  * },
47
48
  * apiSchema: { // APISchema Union: only one key present
48
49
  * s3: { // S3Identifier
@@ -52,6 +53,21 @@ declare const CreateAgentActionGroupCommand_base: {
52
53
  * payload: "STRING_VALUE",
53
54
  * },
54
55
  * actionGroupState: "ENABLED" || "DISABLED",
56
+ * functionSchema: { // FunctionSchema Union: only one key present
57
+ * functions: [ // Functions
58
+ * { // Function
59
+ * name: "STRING_VALUE", // required
60
+ * description: "STRING_VALUE",
61
+ * parameters: { // ParameterMap
62
+ * "<keys>": { // ParameterDetail
63
+ * description: "STRING_VALUE",
64
+ * type: "string" || "number" || "integer" || "boolean" || "array", // required
65
+ * required: true || false,
66
+ * },
67
+ * },
68
+ * },
69
+ * ],
70
+ * },
55
71
  * };
56
72
  * const command = new CreateAgentActionGroupCommand(input);
57
73
  * const response = await client.send(command);
@@ -68,6 +84,7 @@ declare const CreateAgentActionGroupCommand_base: {
68
84
  * // parentActionSignature: "AMAZON.UserInput",
69
85
  * // actionGroupExecutor: { // ActionGroupExecutor Union: only one key present
70
86
  * // lambda: "STRING_VALUE",
87
+ * // customControl: "RETURN_CONTROL",
71
88
  * // },
72
89
  * // apiSchema: { // APISchema Union: only one key present
73
90
  * // s3: { // S3Identifier
@@ -76,6 +93,21 @@ declare const CreateAgentActionGroupCommand_base: {
76
93
  * // },
77
94
  * // payload: "STRING_VALUE",
78
95
  * // },
96
+ * // functionSchema: { // FunctionSchema Union: only one key present
97
+ * // functions: [ // Functions
98
+ * // { // Function
99
+ * // name: "STRING_VALUE", // required
100
+ * // description: "STRING_VALUE",
101
+ * // parameters: { // ParameterMap
102
+ * // "<keys>": { // ParameterDetail
103
+ * // description: "STRING_VALUE",
104
+ * // type: "string" || "number" || "integer" || "boolean" || "array", // required
105
+ * // required: true || false,
106
+ * // },
107
+ * // },
108
+ * // },
109
+ * // ],
110
+ * // },
79
111
  * // actionGroupState: "ENABLED" || "DISABLED", // required
80
112
  * // },
81
113
  * // };
@@ -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
  * ```
@@ -53,6 +53,7 @@ declare const GetAgentActionGroupCommand_base: {
53
53
  * // parentActionSignature: "AMAZON.UserInput",
54
54
  * // actionGroupExecutor: { // ActionGroupExecutor Union: only one key present
55
55
  * // lambda: "STRING_VALUE",
56
+ * // customControl: "RETURN_CONTROL",
56
57
  * // },
57
58
  * // apiSchema: { // APISchema Union: only one key present
58
59
  * // s3: { // S3Identifier
@@ -61,6 +62,21 @@ declare const GetAgentActionGroupCommand_base: {
61
62
  * // },
62
63
  * // payload: "STRING_VALUE",
63
64
  * // },
65
+ * // functionSchema: { // FunctionSchema Union: only one key present
66
+ * // functions: [ // Functions
67
+ * // { // Function
68
+ * // name: "STRING_VALUE", // required
69
+ * // description: "STRING_VALUE",
70
+ * // parameters: { // ParameterMap
71
+ * // "<keys>": { // ParameterDetail
72
+ * // description: "STRING_VALUE",
73
+ * // type: "string" || "number" || "integer" || "boolean" || "array", // required
74
+ * // required: true || false,
75
+ * // },
76
+ * // },
77
+ * // },
78
+ * // ],
79
+ * // },
64
80
  * // actionGroupState: "ENABLED" || "DISABLED", // required
65
81
  * // },
66
82
  * // };
@@ -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
  * // ],
@@ -42,6 +42,7 @@ declare const UpdateAgentActionGroupCommand_base: {
42
42
  * parentActionGroupSignature: "AMAZON.UserInput",
43
43
  * actionGroupExecutor: { // ActionGroupExecutor Union: only one key present
44
44
  * lambda: "STRING_VALUE",
45
+ * customControl: "RETURN_CONTROL",
45
46
  * },
46
47
  * actionGroupState: "ENABLED" || "DISABLED",
47
48
  * apiSchema: { // APISchema Union: only one key present
@@ -51,6 +52,21 @@ declare const UpdateAgentActionGroupCommand_base: {
51
52
  * },
52
53
  * payload: "STRING_VALUE",
53
54
  * },
55
+ * functionSchema: { // FunctionSchema Union: only one key present
56
+ * functions: [ // Functions
57
+ * { // Function
58
+ * name: "STRING_VALUE", // required
59
+ * description: "STRING_VALUE",
60
+ * parameters: { // ParameterMap
61
+ * "<keys>": { // ParameterDetail
62
+ * description: "STRING_VALUE",
63
+ * type: "string" || "number" || "integer" || "boolean" || "array", // required
64
+ * required: true || false,
65
+ * },
66
+ * },
67
+ * },
68
+ * ],
69
+ * },
54
70
  * };
55
71
  * const command = new UpdateAgentActionGroupCommand(input);
56
72
  * const response = await client.send(command);
@@ -67,6 +83,7 @@ declare const UpdateAgentActionGroupCommand_base: {
67
83
  * // parentActionSignature: "AMAZON.UserInput",
68
84
  * // actionGroupExecutor: { // ActionGroupExecutor Union: only one key present
69
85
  * // lambda: "STRING_VALUE",
86
+ * // customControl: "RETURN_CONTROL",
70
87
  * // },
71
88
  * // apiSchema: { // APISchema Union: only one key present
72
89
  * // s3: { // S3Identifier
@@ -75,6 +92,21 @@ declare const UpdateAgentActionGroupCommand_base: {
75
92
  * // },
76
93
  * // payload: "STRING_VALUE",
77
94
  * // },
95
+ * // functionSchema: { // FunctionSchema Union: only one key present
96
+ * // functions: [ // Functions
97
+ * // { // Function
98
+ * // name: "STRING_VALUE", // required
99
+ * // description: "STRING_VALUE",
100
+ * // parameters: { // ParameterMap
101
+ * // "<keys>": { // ParameterDetail
102
+ * // description: "STRING_VALUE",
103
+ * // type: "string" || "number" || "integer" || "boolean" || "array", // required
104
+ * // required: true || false,
105
+ * // },
106
+ * // },
107
+ * // },
108
+ * // ],
109
+ * // },
78
110
  * // actionGroupState: "ENABLED" || "DISABLED", // required
79
111
  * // },
80
112
  * // };
@@ -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
@@ -12,11 +12,22 @@ export declare class AccessDeniedException extends __BaseException {
12
12
  */
13
13
  constructor(opts: __ExceptionOptionType<AccessDeniedException, __BaseException>);
14
14
  }
15
+ /**
16
+ * @public
17
+ * @enum
18
+ */
19
+ export declare const CustomControlMethod: {
20
+ readonly RETURN_CONTROL: "RETURN_CONTROL";
21
+ };
22
+ /**
23
+ * @public
24
+ */
25
+ export type CustomControlMethod = (typeof CustomControlMethod)[keyof typeof CustomControlMethod];
15
26
  /**
16
27
  * <p>Contains details about the Lambda function containing the business logic that is carried out upon invoking the action.</p>
17
28
  * @public
18
29
  */
19
- export type ActionGroupExecutor = ActionGroupExecutor.LambdaMember | ActionGroupExecutor.$UnknownMember;
30
+ export type ActionGroupExecutor = ActionGroupExecutor.CustomControlMember | ActionGroupExecutor.LambdaMember | ActionGroupExecutor.$UnknownMember;
20
31
  /**
21
32
  * @public
22
33
  */
@@ -27,6 +38,16 @@ export declare namespace ActionGroupExecutor {
27
38
  */
28
39
  interface LambdaMember {
29
40
  lambda: string;
41
+ customControl?: never;
42
+ $unknown?: never;
43
+ }
44
+ /**
45
+ * <p>To return the action group invocation results directly in the <code>InvokeAgent</code> response, specify <code>RETURN_CONTROL</code>.</p>
46
+ * @public
47
+ */
48
+ interface CustomControlMember {
49
+ lambda?: never;
50
+ customControl: CustomControlMethod;
30
51
  $unknown?: never;
31
52
  }
32
53
  /**
@@ -34,10 +55,12 @@ export declare namespace ActionGroupExecutor {
34
55
  */
35
56
  interface $UnknownMember {
36
57
  lambda?: never;
58
+ customControl?: never;
37
59
  $unknown: [string, any];
38
60
  }
39
61
  interface Visitor<T> {
40
62
  lambda: (value: string) => T;
63
+ customControl: (value: CustomControlMethod) => T;
41
64
  _: (name: string, value: any) => T;
42
65
  }
43
66
  const visit: <T>(value: ActionGroupExecutor, visitor: Visitor<T>) => T;
@@ -124,6 +147,177 @@ export declare namespace APISchema {
124
147
  }
125
148
  const visit: <T>(value: APISchema, visitor: Visitor<T>) => T;
126
149
  }
150
+ /**
151
+ * @public
152
+ * @enum
153
+ */
154
+ export declare const Type: {
155
+ readonly ARRAY: "array";
156
+ readonly BOOLEAN: "boolean";
157
+ readonly INTEGER: "integer";
158
+ readonly NUMBER: "number";
159
+ readonly STRING: "string";
160
+ };
161
+ /**
162
+ * @public
163
+ */
164
+ export type Type = (typeof Type)[keyof typeof Type];
165
+ /**
166
+ * <p>Contains details about a parameter in a function for an action group.</p>
167
+ * <p>This data type is used in the following API operations:</p>
168
+ * <ul>
169
+ * <li>
170
+ * <p>
171
+ * <a href="https://docs.aws.amazon.com/bedrock/latest/APIReference/API_agent_CreateAgentActionGroup.html#API_agent_CreateAgentActionGroup_RequestSyntax">CreateAgentActionGroup request</a>
172
+ * </p>
173
+ * </li>
174
+ * <li>
175
+ * <p>
176
+ * <a href="https://docs.aws.amazon.com/bedrock/latest/APIReference/API_agent_CreateAgentActionGroup.html#API_agent_CreateAgentActionGroup_ResponseSyntax">CreateAgentActionGroup response</a>
177
+ * </p>
178
+ * </li>
179
+ * <li>
180
+ * <p>
181
+ * <a href="https://docs.aws.amazon.com/bedrock/latest/APIReference/API_agent_UpdateAgentActionGroup.html#API_agent_UpdateAgentActionGroup_RequestSyntax">UpdateAgentActionGroup request</a>
182
+ * </p>
183
+ * </li>
184
+ * <li>
185
+ * <p>
186
+ * <a href="https://docs.aws.amazon.com/bedrock/latest/APIReference/API_agent_UpdateAgentActionGroup.html#API_agent_UpdateAgentActionGroup_ResponseSyntax">UpdateAgentActionGroup response</a>
187
+ * </p>
188
+ * </li>
189
+ * <li>
190
+ * <p>
191
+ * <a href="https://docs.aws.amazon.com/bedrock/latest/APIReference/API_agent_GetAgentActionGroup.html#API_agent_GetAgentActionGroup_ResponseSyntax">GetAgentActionGroup response</a>
192
+ * </p>
193
+ * </li>
194
+ * </ul>
195
+ * @public
196
+ */
197
+ export interface ParameterDetail {
198
+ /**
199
+ * <p>A description of the parameter. Helps the foundation model determine how to elicit the parameters from the user.</p>
200
+ * @public
201
+ */
202
+ description?: string;
203
+ /**
204
+ * <p>The data type of the parameter.</p>
205
+ * @public
206
+ */
207
+ type: Type | undefined;
208
+ /**
209
+ * <p>Whether the parameter is required for the agent to complete the function for action group invocation.</p>
210
+ * @public
211
+ */
212
+ required?: boolean;
213
+ }
214
+ /**
215
+ * <p>Defines parameters that the agent needs to invoke from the user to complete the function. Corresponds to an action in an action group.</p>
216
+ * <p>This data type is used in the following API operations:</p>
217
+ * <ul>
218
+ * <li>
219
+ * <p>
220
+ * <a href="https://docs.aws.amazon.com/bedrock/latest/APIReference/API_agent_CreateAgentActionGroup.html#API_agent_CreateAgentActionGroup_RequestSyntax">CreateAgentActionGroup request</a>
221
+ * </p>
222
+ * </li>
223
+ * <li>
224
+ * <p>
225
+ * <a href="https://docs.aws.amazon.com/bedrock/latest/APIReference/API_agent_CreateAgentActionGroup.html#API_agent_CreateAgentActionGroup_ResponseSyntax">CreateAgentActionGroup response</a>
226
+ * </p>
227
+ * </li>
228
+ * <li>
229
+ * <p>
230
+ * <a href="https://docs.aws.amazon.com/bedrock/latest/APIReference/API_agent_UpdateAgentActionGroup.html#API_agent_UpdateAgentActionGroup_RequestSyntax">UpdateAgentActionGroup request</a>
231
+ * </p>
232
+ * </li>
233
+ * <li>
234
+ * <p>
235
+ * <a href="https://docs.aws.amazon.com/bedrock/latest/APIReference/API_agent_UpdateAgentActionGroup.html#API_agent_UpdateAgentActionGroup_ResponseSyntax">UpdateAgentActionGroup response</a>
236
+ * </p>
237
+ * </li>
238
+ * <li>
239
+ * <p>
240
+ * <a href="https://docs.aws.amazon.com/bedrock/latest/APIReference/API_agent_GetAgentActionGroup.html#API_agent_GetAgentActionGroup_ResponseSyntax">GetAgentActionGroup response</a>
241
+ * </p>
242
+ * </li>
243
+ * </ul>
244
+ * @public
245
+ */
246
+ export interface Function {
247
+ /**
248
+ * <p>A name for the function.</p>
249
+ * @public
250
+ */
251
+ name: string | undefined;
252
+ /**
253
+ * <p>A description of the function and its purpose.</p>
254
+ * @public
255
+ */
256
+ description?: string;
257
+ /**
258
+ * <p>The parameters that the agent elicits from the user to fulfill the function.</p>
259
+ * @public
260
+ */
261
+ parameters?: Record<string, ParameterDetail>;
262
+ }
263
+ /**
264
+ * <p>Defines functions that each define parameters that the agent needs to invoke from the user. Each function represents an action in an action group.</p>
265
+ * <p>This data type is used in the following API operations:</p>
266
+ * <ul>
267
+ * <li>
268
+ * <p>
269
+ * <a href="https://docs.aws.amazon.com/bedrock/latest/APIReference/API_agent_CreateAgentActionGroup.html#API_agent_CreateAgentActionGroup_RequestSyntax">CreateAgentActionGroup request</a>
270
+ * </p>
271
+ * </li>
272
+ * <li>
273
+ * <p>
274
+ * <a href="https://docs.aws.amazon.com/bedrock/latest/APIReference/API_agent_CreateAgentActionGroup.html#API_agent_CreateAgentActionGroup_ResponseSyntax">CreateAgentActionGroup response</a>
275
+ * </p>
276
+ * </li>
277
+ * <li>
278
+ * <p>
279
+ * <a href="https://docs.aws.amazon.com/bedrock/latest/APIReference/API_agent_UpdateAgentActionGroup.html#API_agent_UpdateAgentActionGroup_RequestSyntax">UpdateAgentActionGroup request</a>
280
+ * </p>
281
+ * </li>
282
+ * <li>
283
+ * <p>
284
+ * <a href="https://docs.aws.amazon.com/bedrock/latest/APIReference/API_agent_UpdateAgentActionGroup.html#API_agent_UpdateAgentActionGroup_ResponseSyntax">UpdateAgentActionGroup response</a>
285
+ * </p>
286
+ * </li>
287
+ * <li>
288
+ * <p>
289
+ * <a href="https://docs.aws.amazon.com/bedrock/latest/APIReference/API_agent_GetAgentActionGroup.html#API_agent_GetAgentActionGroup_ResponseSyntax">GetAgentActionGroup response</a>
290
+ * </p>
291
+ * </li>
292
+ * </ul>
293
+ * @public
294
+ */
295
+ export type FunctionSchema = FunctionSchema.FunctionsMember | FunctionSchema.$UnknownMember;
296
+ /**
297
+ * @public
298
+ */
299
+ export declare namespace FunctionSchema {
300
+ /**
301
+ * <p>A list of functions that each define an action in the action group.</p>
302
+ * @public
303
+ */
304
+ interface FunctionsMember {
305
+ functions: Function[];
306
+ $unknown?: never;
307
+ }
308
+ /**
309
+ * @public
310
+ */
311
+ interface $UnknownMember {
312
+ functions?: never;
313
+ $unknown: [string, any];
314
+ }
315
+ interface Visitor<T> {
316
+ functions: (value: Function[]) => T;
317
+ _: (name: string, value: any) => T;
318
+ }
319
+ const visit: <T>(value: FunctionSchema, visitor: Visitor<T>) => T;
320
+ }
127
321
  /**
128
322
  * @public
129
323
  * @enum
@@ -186,6 +380,11 @@ export interface CreateAgentActionGroupRequest {
186
380
  * @public
187
381
  */
188
382
  actionGroupState?: ActionGroupState;
383
+ /**
384
+ * <p>Contains details about the function schema for the action group or the JSON or YAML-formatted payload defining the schema.</p>
385
+ * @public
386
+ */
387
+ functionSchema?: FunctionSchema;
189
388
  }
190
389
  /**
191
390
  * <p>Contains details about an action group.</p>
@@ -249,6 +448,11 @@ export interface AgentActionGroup {
249
448
  * @public
250
449
  */
251
450
  apiSchema?: APISchema;
451
+ /**
452
+ * <p>Defines functions that each define parameters that the agent needs to invoke from the user. Each function represents an action in an action group.</p>
453
+ * @public
454
+ */
455
+ functionSchema?: FunctionSchema;
252
456
  /**
253
457
  * <p>Specifies whether the action group is available for the agent to invoke or not when sending an <a href="https://docs.aws.amazon.com/bedrock/latest/APIReference/API_agent-runtime_InvokeAgent.html">InvokeAgent</a> request.</p>
254
458
  * @public
@@ -529,6 +733,11 @@ export interface UpdateAgentActionGroupRequest {
529
733
  * @public
530
734
  */
531
735
  apiSchema?: APISchema;
736
+ /**
737
+ * <p>Contains details about the function schema for the action group or the JSON or YAML-formatted payload defining the schema.</p>
738
+ * @public
739
+ */
740
+ functionSchema?: FunctionSchema;
532
741
  }
533
742
  /**
534
743
  * @public
@@ -1651,6 +1860,18 @@ export interface UpdateAgentAliasResponse {
1651
1860
  */
1652
1861
  agentAlias: AgentAlias | undefined;
1653
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];
1654
1875
  /**
1655
1876
  * <p>Contains information about the S3 configuration of the data source.</p>
1656
1877
  * @public
@@ -1666,6 +1887,11 @@ export interface S3DataSourceConfiguration {
1666
1887
  * @public
1667
1888
  */
1668
1889
  inclusionPrefixes?: string[];
1890
+ /**
1891
+ * <p>The account ID for the owner of the S3 bucket.</p>
1892
+ * @public
1893
+ */
1894
+ bucketOwnerAccountId?: string;
1669
1895
  }
1670
1896
  /**
1671
1897
  * @public
@@ -1800,6 +2026,11 @@ export interface CreateDataSourceRequest {
1800
2026
  * @public
1801
2027
  */
1802
2028
  dataSourceConfiguration: DataSourceConfiguration | undefined;
2029
+ /**
2030
+ * <p>The deletion policy for the requested data source</p>
2031
+ * @public
2032
+ */
2033
+ dataDeletionPolicy?: DataDeletionPolicy;
1803
2034
  /**
1804
2035
  * <p>Contains details about the server-side encryption for the data source.</p>
1805
2036
  * @public
@@ -1817,6 +2048,7 @@ export interface CreateDataSourceRequest {
1817
2048
  */
1818
2049
  export declare const DataSourceStatus: {
1819
2050
  readonly AVAILABLE: "AVAILABLE";
2051
+ readonly DELETE_UNSUCCESSFUL: "DELETE_UNSUCCESSFUL";
1820
2052
  readonly DELETING: "DELETING";
1821
2053
  };
1822
2054
  /**
@@ -1876,6 +2108,11 @@ export interface DataSource {
1876
2108
  * @public
1877
2109
  */
1878
2110
  vectorIngestionConfiguration?: VectorIngestionConfiguration;
2111
+ /**
2112
+ * <p>The deletion policy for the data source.</p>
2113
+ * @public
2114
+ */
2115
+ dataDeletionPolicy?: DataDeletionPolicy;
1879
2116
  /**
1880
2117
  * <p>The time at which the data source was created.</p>
1881
2118
  * @public
@@ -1886,6 +2123,11 @@ export interface DataSource {
1886
2123
  * @public
1887
2124
  */
1888
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[];
1889
2131
  }
1890
2132
  /**
1891
2133
  * @public
@@ -2057,6 +2299,11 @@ export interface UpdateDataSourceRequest {
2057
2299
  * @public
2058
2300
  */
2059
2301
  dataSourceConfiguration: DataSourceConfiguration | undefined;
2302
+ /**
2303
+ * <p>The data deletion policy of the updated data source.</p>
2304
+ * @public
2305
+ */
2306
+ dataDeletionPolicy?: DataDeletionPolicy;
2060
2307
  /**
2061
2308
  * <p>Contains details about server-side encryption of the data source.</p>
2062
2309
  * @public
@@ -2169,7 +2416,7 @@ export type IngestionJobStatus = (typeof IngestionJobStatus)[keyof typeof Ingest
2169
2416
  * </li>
2170
2417
  * <li>
2171
2418
  * <p>
2172
- * <a href="https://docs.aws.amazon.com/bedrock/latest/APIReference/API_agent_ListIngestionJob.html#API_agent_ListIngestionJob_ResponseSyntax">ListIngestionJob response</a>
2419
+ * <a href="https://docs.aws.amazon.com/bedrock/latest/APIReference/API_agent_ListIngestionJobs.html#API_agent_ListIngestionJobs_ResponseSyntax">ListIngestionJob response</a>
2173
2420
  * </p>
2174
2421
  * </li>
2175
2422
  * </ul>
@@ -2806,6 +3053,7 @@ export interface CreateKnowledgeBaseRequest {
2806
3053
  export declare const KnowledgeBaseStatus: {
2807
3054
  readonly ACTIVE: "ACTIVE";
2808
3055
  readonly CREATING: "CREATING";
3056
+ readonly DELETE_UNSUCCESSFUL: "DELETE_UNSUCCESSFUL";
2809
3057
  readonly DELETING: "DELETING";
2810
3058
  readonly FAILED: "FAILED";
2811
3059
  readonly UPDATING: "UPDATING";
@@ -7,20 +7,34 @@ export declare class AccessDeniedException extends __BaseException {
7
7
  opts: __ExceptionOptionType<AccessDeniedException, __BaseException>
8
8
  );
9
9
  }
10
+ export declare const CustomControlMethod: {
11
+ readonly RETURN_CONTROL: "RETURN_CONTROL";
12
+ };
13
+ export type CustomControlMethod =
14
+ (typeof CustomControlMethod)[keyof typeof CustomControlMethod];
10
15
  export type ActionGroupExecutor =
16
+ | ActionGroupExecutor.CustomControlMember
11
17
  | ActionGroupExecutor.LambdaMember
12
18
  | ActionGroupExecutor.$UnknownMember;
13
19
  export declare namespace ActionGroupExecutor {
14
20
  interface LambdaMember {
15
21
  lambda: string;
22
+ customControl?: never;
23
+ $unknown?: never;
24
+ }
25
+ interface CustomControlMember {
26
+ lambda?: never;
27
+ customControl: CustomControlMethod;
16
28
  $unknown?: never;
17
29
  }
18
30
  interface $UnknownMember {
19
31
  lambda?: never;
32
+ customControl?: never;
20
33
  $unknown: [string, any];
21
34
  }
22
35
  interface Visitor<T> {
23
36
  lambda: (value: string) => T;
37
+ customControl: (value: CustomControlMethod) => T;
24
38
  _: (name: string, value: any) => T;
25
39
  }
26
40
  const visit: <T>(value: ActionGroupExecutor, visitor: Visitor<T>) => T;
@@ -67,6 +81,42 @@ export declare namespace APISchema {
67
81
  }
68
82
  const visit: <T>(value: APISchema, visitor: Visitor<T>) => T;
69
83
  }
84
+ export declare const Type: {
85
+ readonly ARRAY: "array";
86
+ readonly BOOLEAN: "boolean";
87
+ readonly INTEGER: "integer";
88
+ readonly NUMBER: "number";
89
+ readonly STRING: "string";
90
+ };
91
+ export type Type = (typeof Type)[keyof typeof Type];
92
+ export interface ParameterDetail {
93
+ description?: string;
94
+ type: Type | undefined;
95
+ required?: boolean;
96
+ }
97
+ export interface Function {
98
+ name: string | undefined;
99
+ description?: string;
100
+ parameters?: Record<string, ParameterDetail>;
101
+ }
102
+ export type FunctionSchema =
103
+ | FunctionSchema.FunctionsMember
104
+ | FunctionSchema.$UnknownMember;
105
+ export declare namespace FunctionSchema {
106
+ interface FunctionsMember {
107
+ functions: Function[];
108
+ $unknown?: never;
109
+ }
110
+ interface $UnknownMember {
111
+ functions?: never;
112
+ $unknown: [string, any];
113
+ }
114
+ interface Visitor<T> {
115
+ functions: (value: Function[]) => T;
116
+ _: (name: string, value: any) => T;
117
+ }
118
+ const visit: <T>(value: FunctionSchema, visitor: Visitor<T>) => T;
119
+ }
70
120
  export declare const ActionGroupSignature: {
71
121
  readonly AMAZON_USERINPUT: "AMAZON.UserInput";
72
122
  };
@@ -82,6 +132,7 @@ export interface CreateAgentActionGroupRequest {
82
132
  actionGroupExecutor?: ActionGroupExecutor;
83
133
  apiSchema?: APISchema;
84
134
  actionGroupState?: ActionGroupState;
135
+ functionSchema?: FunctionSchema;
85
136
  }
86
137
  export interface AgentActionGroup {
87
138
  agentId: string | undefined;
@@ -95,6 +146,7 @@ export interface AgentActionGroup {
95
146
  parentActionSignature?: ActionGroupSignature;
96
147
  actionGroupExecutor?: ActionGroupExecutor;
97
148
  apiSchema?: APISchema;
149
+ functionSchema?: FunctionSchema;
98
150
  actionGroupState: ActionGroupState | undefined;
99
151
  }
100
152
  export interface CreateAgentActionGroupResponse {
@@ -182,6 +234,7 @@ export interface UpdateAgentActionGroupRequest {
182
234
  actionGroupExecutor?: ActionGroupExecutor;
183
235
  actionGroupState?: ActionGroupState;
184
236
  apiSchema?: APISchema;
237
+ functionSchema?: FunctionSchema;
185
238
  }
186
239
  export interface UpdateAgentActionGroupResponse {
187
240
  agentActionGroup: AgentActionGroup | undefined;
@@ -453,9 +506,16 @@ export interface UpdateAgentAliasRequest {
453
506
  export interface UpdateAgentAliasResponse {
454
507
  agentAlias: AgentAlias | undefined;
455
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];
456
515
  export interface S3DataSourceConfiguration {
457
516
  bucketArn: string | undefined;
458
517
  inclusionPrefixes?: string[];
518
+ bucketOwnerAccountId?: string;
459
519
  }
460
520
  export declare const DataSourceType: {
461
521
  readonly S3: "S3";
@@ -492,11 +552,13 @@ export interface CreateDataSourceRequest {
492
552
  name: string | undefined;
493
553
  description?: string;
494
554
  dataSourceConfiguration: DataSourceConfiguration | undefined;
555
+ dataDeletionPolicy?: DataDeletionPolicy;
495
556
  serverSideEncryptionConfiguration?: ServerSideEncryptionConfiguration;
496
557
  vectorIngestionConfiguration?: VectorIngestionConfiguration;
497
558
  }
498
559
  export declare const DataSourceStatus: {
499
560
  readonly AVAILABLE: "AVAILABLE";
561
+ readonly DELETE_UNSUCCESSFUL: "DELETE_UNSUCCESSFUL";
500
562
  readonly DELETING: "DELETING";
501
563
  };
502
564
  export type DataSourceStatus =
@@ -510,8 +572,10 @@ export interface DataSource {
510
572
  dataSourceConfiguration: DataSourceConfiguration | undefined;
511
573
  serverSideEncryptionConfiguration?: ServerSideEncryptionConfiguration;
512
574
  vectorIngestionConfiguration?: VectorIngestionConfiguration;
575
+ dataDeletionPolicy?: DataDeletionPolicy;
513
576
  createdAt: Date | undefined;
514
577
  updatedAt: Date | undefined;
578
+ failureReasons?: string[];
515
579
  }
516
580
  export interface CreateDataSourceResponse {
517
581
  dataSource: DataSource | undefined;
@@ -555,6 +619,7 @@ export interface UpdateDataSourceRequest {
555
619
  name: string | undefined;
556
620
  description?: string;
557
621
  dataSourceConfiguration: DataSourceConfiguration | undefined;
622
+ dataDeletionPolicy?: DataDeletionPolicy;
558
623
  serverSideEncryptionConfiguration?: ServerSideEncryptionConfiguration;
559
624
  vectorIngestionConfiguration?: VectorIngestionConfiguration;
560
625
  }
@@ -751,6 +816,7 @@ export interface CreateKnowledgeBaseRequest {
751
816
  export declare const KnowledgeBaseStatus: {
752
817
  readonly ACTIVE: "ACTIVE";
753
818
  readonly CREATING: "CREATING";
819
+ readonly DELETE_UNSUCCESSFUL: "DELETE_UNSUCCESSFUL";
754
820
  readonly DELETING: "DELETING";
755
821
  readonly FAILED: "FAILED";
756
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.556.0",
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",