aws-sdk-bedrockagent 1.37.0 → 1.38.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -56,6 +56,9 @@ module Aws::BedrockAgent
56
56
  BedrockModelArn = Shapes::StringShape.new(name: 'BedrockModelArn')
57
57
  Boolean = Shapes::BooleanShape.new(name: 'Boolean')
58
58
  BucketOwnerAccountId = Shapes::StringShape.new(name: 'BucketOwnerAccountId')
59
+ ByteContentBlob = Shapes::BlobShape.new(name: 'ByteContentBlob')
60
+ ByteContentDoc = Shapes::StructureShape.new(name: 'ByteContentDoc')
61
+ ByteContentDocMimeTypeString = Shapes::StringShape.new(name: 'ByteContentDocMimeTypeString')
59
62
  ChatPromptTemplateConfiguration = Shapes::StructureShape.new(name: 'ChatPromptTemplateConfiguration')
60
63
  ChunkingConfiguration = Shapes::StructureShape.new(name: 'ChunkingConfiguration')
61
64
  ChunkingStrategy = Shapes::StringShape.new(name: 'ChunkingStrategy')
@@ -71,6 +74,7 @@ module Aws::BedrockAgent
71
74
  ConfluenceSourceConfiguration = Shapes::StructureShape.new(name: 'ConfluenceSourceConfiguration')
72
75
  ContentBlock = Shapes::UnionShape.new(name: 'ContentBlock')
73
76
  ContentBlocks = Shapes::ListShape.new(name: 'ContentBlocks')
77
+ ContentDataSourceType = Shapes::StringShape.new(name: 'ContentDataSourceType')
74
78
  ConversationRole = Shapes::StringShape.new(name: 'ConversationRole')
75
79
  CrawlFilterConfiguration = Shapes::StructureShape.new(name: 'CrawlFilterConfiguration')
76
80
  CrawlFilterConfigurationType = Shapes::StringShape.new(name: 'CrawlFilterConfigurationType')
@@ -95,10 +99,16 @@ module Aws::BedrockAgent
95
99
  CreatePromptVersionRequest = Shapes::StructureShape.new(name: 'CreatePromptVersionRequest')
96
100
  CreatePromptVersionResponse = Shapes::StructureShape.new(name: 'CreatePromptVersionResponse')
97
101
  CreationMode = Shapes::StringShape.new(name: 'CreationMode')
102
+ CustomContent = Shapes::StructureShape.new(name: 'CustomContent')
98
103
  CustomControlMethod = Shapes::StringShape.new(name: 'CustomControlMethod')
104
+ CustomDocumentIdentifier = Shapes::StructureShape.new(name: 'CustomDocumentIdentifier')
105
+ CustomDocumentIdentifierIdString = Shapes::StringShape.new(name: 'CustomDocumentIdentifierIdString')
99
106
  CustomOrchestration = Shapes::StructureShape.new(name: 'CustomOrchestration')
107
+ CustomS3Location = Shapes::StructureShape.new(name: 'CustomS3Location')
108
+ CustomSourceType = Shapes::StringShape.new(name: 'CustomSourceType')
100
109
  CustomTransformationConfiguration = Shapes::StructureShape.new(name: 'CustomTransformationConfiguration')
101
110
  CyclicConnectionFlowValidationDetails = Shapes::StructureShape.new(name: 'CyclicConnectionFlowValidationDetails')
111
+ Data = Shapes::StringShape.new(name: 'Data')
102
112
  DataDeletionPolicy = Shapes::StringShape.new(name: 'DataDeletionPolicy')
103
113
  DataSource = Shapes::StructureShape.new(name: 'DataSource')
104
114
  DataSourceConfiguration = Shapes::StructureShape.new(name: 'DataSourceConfiguration')
@@ -123,6 +133,8 @@ module Aws::BedrockAgent
123
133
  DeleteFlowResponse = Shapes::StructureShape.new(name: 'DeleteFlowResponse')
124
134
  DeleteFlowVersionRequest = Shapes::StructureShape.new(name: 'DeleteFlowVersionRequest')
125
135
  DeleteFlowVersionResponse = Shapes::StructureShape.new(name: 'DeleteFlowVersionResponse')
136
+ DeleteKnowledgeBaseDocumentsRequest = Shapes::StructureShape.new(name: 'DeleteKnowledgeBaseDocumentsRequest')
137
+ DeleteKnowledgeBaseDocumentsResponse = Shapes::StructureShape.new(name: 'DeleteKnowledgeBaseDocumentsResponse')
126
138
  DeleteKnowledgeBaseRequest = Shapes::StructureShape.new(name: 'DeleteKnowledgeBaseRequest')
127
139
  DeleteKnowledgeBaseResponse = Shapes::StructureShape.new(name: 'DeleteKnowledgeBaseResponse')
128
140
  DeletePromptRequest = Shapes::StructureShape.new(name: 'DeletePromptRequest')
@@ -132,6 +144,12 @@ module Aws::BedrockAgent
132
144
  DisassociateAgentKnowledgeBaseRequest = Shapes::StructureShape.new(name: 'DisassociateAgentKnowledgeBaseRequest')
133
145
  DisassociateAgentKnowledgeBaseResponse = Shapes::StructureShape.new(name: 'DisassociateAgentKnowledgeBaseResponse')
134
146
  Document = Shapes::DocumentShape.new(name: 'Document', document: true)
147
+ DocumentContent = Shapes::StructureShape.new(name: 'DocumentContent')
148
+ DocumentIdentifier = Shapes::StructureShape.new(name: 'DocumentIdentifier')
149
+ DocumentIdentifiers = Shapes::ListShape.new(name: 'DocumentIdentifiers')
150
+ DocumentMetadata = Shapes::StructureShape.new(name: 'DocumentMetadata')
151
+ DocumentMetadataInlineAttributesList = Shapes::ListShape.new(name: 'DocumentMetadataInlineAttributesList')
152
+ DocumentStatus = Shapes::StringShape.new(name: 'DocumentStatus')
135
153
  DraftVersion = Shapes::StringShape.new(name: 'DraftVersion')
136
154
  DuplicateConditionExpressionFlowValidationDetails = Shapes::StructureShape.new(name: 'DuplicateConditionExpressionFlowValidationDetails')
137
155
  DuplicateConnectionsFlowValidationDetails = Shapes::StructureShape.new(name: 'DuplicateConnectionsFlowValidationDetails')
@@ -220,6 +238,8 @@ module Aws::BedrockAgent
220
238
  GetFlowVersionResponse = Shapes::StructureShape.new(name: 'GetFlowVersionResponse')
221
239
  GetIngestionJobRequest = Shapes::StructureShape.new(name: 'GetIngestionJobRequest')
222
240
  GetIngestionJobResponse = Shapes::StructureShape.new(name: 'GetIngestionJobResponse')
241
+ GetKnowledgeBaseDocumentsRequest = Shapes::StructureShape.new(name: 'GetKnowledgeBaseDocumentsRequest')
242
+ GetKnowledgeBaseDocumentsResponse = Shapes::StructureShape.new(name: 'GetKnowledgeBaseDocumentsResponse')
223
243
  GetKnowledgeBaseRequest = Shapes::StructureShape.new(name: 'GetKnowledgeBaseRequest')
224
244
  GetKnowledgeBaseResponse = Shapes::StructureShape.new(name: 'GetKnowledgeBaseResponse')
225
245
  GetPromptRequest = Shapes::StructureShape.new(name: 'GetPromptRequest')
@@ -236,6 +256,8 @@ module Aws::BedrockAgent
236
256
  Id = Shapes::StringShape.new(name: 'Id')
237
257
  IncompatibleConnectionDataTypeFlowValidationDetails = Shapes::StructureShape.new(name: 'IncompatibleConnectionDataTypeFlowValidationDetails')
238
258
  InferenceConfiguration = Shapes::StructureShape.new(name: 'InferenceConfiguration')
259
+ IngestKnowledgeBaseDocumentsRequest = Shapes::StructureShape.new(name: 'IngestKnowledgeBaseDocumentsRequest')
260
+ IngestKnowledgeBaseDocumentsResponse = Shapes::StructureShape.new(name: 'IngestKnowledgeBaseDocumentsResponse')
239
261
  IngestionJob = Shapes::StructureShape.new(name: 'IngestionJob')
240
262
  IngestionJobFilter = Shapes::StructureShape.new(name: 'IngestionJobFilter')
241
263
  IngestionJobFilterAttribute = Shapes::StringShape.new(name: 'IngestionJobFilterAttribute')
@@ -249,15 +271,22 @@ module Aws::BedrockAgent
249
271
  IngestionJobStatus = Shapes::StringShape.new(name: 'IngestionJobStatus')
250
272
  IngestionJobSummaries = Shapes::ListShape.new(name: 'IngestionJobSummaries')
251
273
  IngestionJobSummary = Shapes::StructureShape.new(name: 'IngestionJobSummary')
274
+ InlineContent = Shapes::StructureShape.new(name: 'InlineContent')
275
+ InlineContentType = Shapes::StringShape.new(name: 'InlineContentType')
252
276
  InputFlowNodeConfiguration = Shapes::StructureShape.new(name: 'InputFlowNodeConfiguration')
253
277
  Instruction = Shapes::StringShape.new(name: 'Instruction')
254
278
  IntermediateStorage = Shapes::StructureShape.new(name: 'IntermediateStorage')
255
279
  InternalServerException = Shapes::StructureShape.new(name: 'InternalServerException')
256
280
  IteratorFlowNodeConfiguration = Shapes::StructureShape.new(name: 'IteratorFlowNodeConfiguration')
281
+ Key = Shapes::StringShape.new(name: 'Key')
257
282
  KmsKeyArn = Shapes::StringShape.new(name: 'KmsKeyArn')
258
283
  KnowledgeBase = Shapes::StructureShape.new(name: 'KnowledgeBase')
259
284
  KnowledgeBaseArn = Shapes::StringShape.new(name: 'KnowledgeBaseArn')
260
285
  KnowledgeBaseConfiguration = Shapes::StructureShape.new(name: 'KnowledgeBaseConfiguration')
286
+ KnowledgeBaseDocument = Shapes::StructureShape.new(name: 'KnowledgeBaseDocument')
287
+ KnowledgeBaseDocumentDetail = Shapes::StructureShape.new(name: 'KnowledgeBaseDocumentDetail')
288
+ KnowledgeBaseDocumentDetails = Shapes::ListShape.new(name: 'KnowledgeBaseDocumentDetails')
289
+ KnowledgeBaseDocuments = Shapes::ListShape.new(name: 'KnowledgeBaseDocuments')
261
290
  KnowledgeBaseFlowNodeConfiguration = Shapes::StructureShape.new(name: 'KnowledgeBaseFlowNodeConfiguration')
262
291
  KnowledgeBaseId = Shapes::StringShape.new(name: 'KnowledgeBaseId')
263
292
  KnowledgeBaseModelIdentifier = Shapes::StringShape.new(name: 'KnowledgeBaseModelIdentifier')
@@ -293,6 +322,8 @@ module Aws::BedrockAgent
293
322
  ListFlowsResponse = Shapes::StructureShape.new(name: 'ListFlowsResponse')
294
323
  ListIngestionJobsRequest = Shapes::StructureShape.new(name: 'ListIngestionJobsRequest')
295
324
  ListIngestionJobsResponse = Shapes::StructureShape.new(name: 'ListIngestionJobsResponse')
325
+ ListKnowledgeBaseDocumentsRequest = Shapes::StructureShape.new(name: 'ListKnowledgeBaseDocumentsRequest')
326
+ ListKnowledgeBaseDocumentsResponse = Shapes::StructureShape.new(name: 'ListKnowledgeBaseDocumentsResponse')
296
327
  ListKnowledgeBasesRequest = Shapes::StructureShape.new(name: 'ListKnowledgeBasesRequest')
297
328
  ListKnowledgeBasesResponse = Shapes::StructureShape.new(name: 'ListKnowledgeBasesResponse')
298
329
  ListPromptsRequest = Shapes::StructureShape.new(name: 'ListPromptsRequest')
@@ -307,6 +338,11 @@ module Aws::BedrockAgent
307
338
  MemoryType = Shapes::StringShape.new(name: 'MemoryType')
308
339
  Message = Shapes::StructureShape.new(name: 'Message')
309
340
  Messages = Shapes::ListShape.new(name: 'Messages')
341
+ MetadataAttribute = Shapes::StructureShape.new(name: 'MetadataAttribute')
342
+ MetadataAttributeValue = Shapes::StructureShape.new(name: 'MetadataAttributeValue')
343
+ MetadataAttributeValueStringListValueList = Shapes::ListShape.new(name: 'MetadataAttributeValueStringListValueList')
344
+ MetadataSourceType = Shapes::StringShape.new(name: 'MetadataSourceType')
345
+ MetadataValueType = Shapes::StringShape.new(name: 'MetadataValueType')
310
346
  Microsoft365TenantId = Shapes::StringShape.new(name: 'Microsoft365TenantId')
311
347
  MismatchedNodeInputTypeFlowValidationDetails = Shapes::StructureShape.new(name: 'MismatchedNodeInputTypeFlowValidationDetails')
312
348
  MismatchedNodeOutputTypeFlowValidationDetails = Shapes::StructureShape.new(name: 'MismatchedNodeOutputTypeFlowValidationDetails')
@@ -330,6 +366,7 @@ module Aws::BedrockAgent
330
366
  NextToken = Shapes::StringShape.new(name: 'NextToken')
331
367
  NonBlankString = Shapes::StringShape.new(name: 'NonBlankString')
332
368
  NonEmptyString = Shapes::StringShape.new(name: 'NonEmptyString')
369
+ NumberValue = Shapes::FloatShape.new(name: 'NumberValue')
333
370
  NumericalVersion = Shapes::StringShape.new(name: 'NumericalVersion')
334
371
  OpenSearchServerlessCollectionArn = Shapes::StringShape.new(name: 'OpenSearchServerlessCollectionArn')
335
372
  OpenSearchServerlessConfiguration = Shapes::StructureShape.new(name: 'OpenSearchServerlessConfiguration')
@@ -411,10 +448,12 @@ module Aws::BedrockAgent
411
448
  S3BucketArn = Shapes::StringShape.new(name: 'S3BucketArn')
412
449
  S3BucketName = Shapes::StringShape.new(name: 'S3BucketName')
413
450
  S3BucketUri = Shapes::StringShape.new(name: 'S3BucketUri')
451
+ S3Content = Shapes::StructureShape.new(name: 'S3Content')
414
452
  S3DataSourceConfiguration = Shapes::StructureShape.new(name: 'S3DataSourceConfiguration')
415
453
  S3Identifier = Shapes::StructureShape.new(name: 'S3Identifier')
416
454
  S3Location = Shapes::StructureShape.new(name: 'S3Location')
417
455
  S3ObjectKey = Shapes::StringShape.new(name: 'S3ObjectKey')
456
+ S3ObjectUri = Shapes::StringShape.new(name: 'S3ObjectUri')
418
457
  S3Prefix = Shapes::StringShape.new(name: 'S3Prefix')
419
458
  S3Prefixes = Shapes::ListShape.new(name: 'S3Prefixes')
420
459
  SalesforceAuthType = Shapes::StringShape.new(name: 'SalesforceAuthType')
@@ -452,6 +491,7 @@ module Aws::BedrockAgent
452
491
  StorageFlowNodeS3Configuration = Shapes::StructureShape.new(name: 'StorageFlowNodeS3Configuration')
453
492
  StorageFlowNodeServiceConfiguration = Shapes::UnionShape.new(name: 'StorageFlowNodeServiceConfiguration')
454
493
  String = Shapes::StringShape.new(name: 'String')
494
+ StringValue = Shapes::StringShape.new(name: 'StringValue')
455
495
  SystemContentBlock = Shapes::UnionShape.new(name: 'SystemContentBlock')
456
496
  SystemContentBlocks = Shapes::ListShape.new(name: 'SystemContentBlocks')
457
497
  TagKey = Shapes::StringShape.new(name: 'TagKey')
@@ -462,6 +502,7 @@ module Aws::BedrockAgent
462
502
  TaggableResourcesArn = Shapes::StringShape.new(name: 'TaggableResourcesArn')
463
503
  TagsMap = Shapes::MapShape.new(name: 'TagsMap')
464
504
  Temperature = Shapes::FloatShape.new(name: 'Temperature')
505
+ TextContentDoc = Shapes::StructureShape.new(name: 'TextContentDoc')
465
506
  TextPrompt = Shapes::StringShape.new(name: 'TextPrompt')
466
507
  TextPromptTemplateConfiguration = Shapes::StructureShape.new(name: 'TextPromptTemplateConfiguration')
467
508
  ThrottlingException = Shapes::StructureShape.new(name: 'ThrottlingException')
@@ -714,6 +755,10 @@ module Aws::BedrockAgent
714
755
  BedrockFoundationModelConfiguration.add_member(:parsing_prompt, Shapes::ShapeRef.new(shape: ParsingPrompt, location_name: "parsingPrompt"))
715
756
  BedrockFoundationModelConfiguration.struct_class = Types::BedrockFoundationModelConfiguration
716
757
 
758
+ ByteContentDoc.add_member(:data, Shapes::ShapeRef.new(shape: ByteContentBlob, required: true, location_name: "data"))
759
+ ByteContentDoc.add_member(:mime_type, Shapes::ShapeRef.new(shape: ByteContentDocMimeTypeString, required: true, location_name: "mimeType"))
760
+ ByteContentDoc.struct_class = Types::ByteContentDoc
761
+
717
762
  ChatPromptTemplateConfiguration.add_member(:input_variables, Shapes::ShapeRef.new(shape: PromptInputVariablesList, location_name: "inputVariables"))
718
763
  ChatPromptTemplateConfiguration.add_member(:messages, Shapes::ShapeRef.new(shape: Messages, required: true, location_name: "messages"))
719
764
  ChatPromptTemplateConfiguration.add_member(:system, Shapes::ShapeRef.new(shape: SystemContentBlocks, location_name: "system"))
@@ -925,9 +970,22 @@ module Aws::BedrockAgent
925
970
  CreatePromptVersionResponse.add_member(:version, Shapes::ShapeRef.new(shape: Version, required: true, location_name: "version"))
926
971
  CreatePromptVersionResponse.struct_class = Types::CreatePromptVersionResponse
927
972
 
973
+ CustomContent.add_member(:custom_document_identifier, Shapes::ShapeRef.new(shape: CustomDocumentIdentifier, required: true, location_name: "customDocumentIdentifier"))
974
+ CustomContent.add_member(:inline_content, Shapes::ShapeRef.new(shape: InlineContent, location_name: "inlineContent"))
975
+ CustomContent.add_member(:s3_location, Shapes::ShapeRef.new(shape: CustomS3Location, location_name: "s3Location"))
976
+ CustomContent.add_member(:source_type, Shapes::ShapeRef.new(shape: CustomSourceType, required: true, location_name: "sourceType"))
977
+ CustomContent.struct_class = Types::CustomContent
978
+
979
+ CustomDocumentIdentifier.add_member(:id, Shapes::ShapeRef.new(shape: CustomDocumentIdentifierIdString, required: true, location_name: "id"))
980
+ CustomDocumentIdentifier.struct_class = Types::CustomDocumentIdentifier
981
+
928
982
  CustomOrchestration.add_member(:executor, Shapes::ShapeRef.new(shape: OrchestrationExecutor, location_name: "executor"))
929
983
  CustomOrchestration.struct_class = Types::CustomOrchestration
930
984
 
985
+ CustomS3Location.add_member(:bucket_owner_account_id, Shapes::ShapeRef.new(shape: BucketOwnerAccountId, location_name: "bucketOwnerAccountId"))
986
+ CustomS3Location.add_member(:uri, Shapes::ShapeRef.new(shape: S3ObjectUri, required: true, location_name: "uri"))
987
+ CustomS3Location.struct_class = Types::CustomS3Location
988
+
931
989
  CustomTransformationConfiguration.add_member(:intermediate_storage, Shapes::ShapeRef.new(shape: IntermediateStorage, required: true, location_name: "intermediateStorage"))
932
990
  CustomTransformationConfiguration.add_member(:transformations, Shapes::ShapeRef.new(shape: Transformations, required: true, location_name: "transformations"))
933
991
  CustomTransformationConfiguration.struct_class = Types::CustomTransformationConfiguration
@@ -1035,6 +1093,15 @@ module Aws::BedrockAgent
1035
1093
  DeleteFlowVersionResponse.add_member(:version, Shapes::ShapeRef.new(shape: NumericalVersion, required: true, location_name: "version"))
1036
1094
  DeleteFlowVersionResponse.struct_class = Types::DeleteFlowVersionResponse
1037
1095
 
1096
+ DeleteKnowledgeBaseDocumentsRequest.add_member(:client_token, Shapes::ShapeRef.new(shape: ClientToken, location_name: "clientToken", metadata: {"idempotencyToken"=>true}))
1097
+ DeleteKnowledgeBaseDocumentsRequest.add_member(:data_source_id, Shapes::ShapeRef.new(shape: Id, required: true, location: "uri", location_name: "dataSourceId"))
1098
+ DeleteKnowledgeBaseDocumentsRequest.add_member(:document_identifiers, Shapes::ShapeRef.new(shape: DocumentIdentifiers, required: true, location_name: "documentIdentifiers"))
1099
+ DeleteKnowledgeBaseDocumentsRequest.add_member(:knowledge_base_id, Shapes::ShapeRef.new(shape: Id, required: true, location: "uri", location_name: "knowledgeBaseId"))
1100
+ DeleteKnowledgeBaseDocumentsRequest.struct_class = Types::DeleteKnowledgeBaseDocumentsRequest
1101
+
1102
+ DeleteKnowledgeBaseDocumentsResponse.add_member(:document_details, Shapes::ShapeRef.new(shape: KnowledgeBaseDocumentDetails, location_name: "documentDetails"))
1103
+ DeleteKnowledgeBaseDocumentsResponse.struct_class = Types::DeleteKnowledgeBaseDocumentsResponse
1104
+
1038
1105
  DeleteKnowledgeBaseRequest.add_member(:knowledge_base_id, Shapes::ShapeRef.new(shape: Id, required: true, location: "uri", location_name: "knowledgeBaseId"))
1039
1106
  DeleteKnowledgeBaseRequest.struct_class = Types::DeleteKnowledgeBaseRequest
1040
1107
 
@@ -1057,6 +1124,25 @@ module Aws::BedrockAgent
1057
1124
 
1058
1125
  DisassociateAgentKnowledgeBaseResponse.struct_class = Types::DisassociateAgentKnowledgeBaseResponse
1059
1126
 
1127
+ DocumentContent.add_member(:custom, Shapes::ShapeRef.new(shape: CustomContent, location_name: "custom"))
1128
+ DocumentContent.add_member(:data_source_type, Shapes::ShapeRef.new(shape: ContentDataSourceType, required: true, location_name: "dataSourceType"))
1129
+ DocumentContent.add_member(:s3, Shapes::ShapeRef.new(shape: S3Content, location_name: "s3"))
1130
+ DocumentContent.struct_class = Types::DocumentContent
1131
+
1132
+ DocumentIdentifier.add_member(:custom, Shapes::ShapeRef.new(shape: CustomDocumentIdentifier, location_name: "custom"))
1133
+ DocumentIdentifier.add_member(:data_source_type, Shapes::ShapeRef.new(shape: ContentDataSourceType, required: true, location_name: "dataSourceType"))
1134
+ DocumentIdentifier.add_member(:s3, Shapes::ShapeRef.new(shape: S3Location, location_name: "s3"))
1135
+ DocumentIdentifier.struct_class = Types::DocumentIdentifier
1136
+
1137
+ DocumentIdentifiers.member = Shapes::ShapeRef.new(shape: DocumentIdentifier)
1138
+
1139
+ DocumentMetadata.add_member(:inline_attributes, Shapes::ShapeRef.new(shape: DocumentMetadataInlineAttributesList, location_name: "inlineAttributes"))
1140
+ DocumentMetadata.add_member(:s3_location, Shapes::ShapeRef.new(shape: CustomS3Location, location_name: "s3Location"))
1141
+ DocumentMetadata.add_member(:type, Shapes::ShapeRef.new(shape: MetadataSourceType, required: true, location_name: "type"))
1142
+ DocumentMetadata.struct_class = Types::DocumentMetadata
1143
+
1144
+ DocumentMetadataInlineAttributesList.member = Shapes::ShapeRef.new(shape: MetadataAttribute)
1145
+
1060
1146
  DuplicateConditionExpressionFlowValidationDetails.add_member(:expression, Shapes::ShapeRef.new(shape: FlowConditionExpression, required: true, location_name: "expression"))
1061
1147
  DuplicateConditionExpressionFlowValidationDetails.add_member(:node, Shapes::ShapeRef.new(shape: FlowNodeName, required: true, location_name: "node"))
1062
1148
  DuplicateConditionExpressionFlowValidationDetails.struct_class = Types::DuplicateConditionExpressionFlowValidationDetails
@@ -1374,6 +1460,14 @@ module Aws::BedrockAgent
1374
1460
  GetIngestionJobResponse.add_member(:ingestion_job, Shapes::ShapeRef.new(shape: IngestionJob, required: true, location_name: "ingestionJob"))
1375
1461
  GetIngestionJobResponse.struct_class = Types::GetIngestionJobResponse
1376
1462
 
1463
+ GetKnowledgeBaseDocumentsRequest.add_member(:data_source_id, Shapes::ShapeRef.new(shape: Id, required: true, location: "uri", location_name: "dataSourceId"))
1464
+ GetKnowledgeBaseDocumentsRequest.add_member(:document_identifiers, Shapes::ShapeRef.new(shape: DocumentIdentifiers, required: true, location_name: "documentIdentifiers"))
1465
+ GetKnowledgeBaseDocumentsRequest.add_member(:knowledge_base_id, Shapes::ShapeRef.new(shape: Id, required: true, location: "uri", location_name: "knowledgeBaseId"))
1466
+ GetKnowledgeBaseDocumentsRequest.struct_class = Types::GetKnowledgeBaseDocumentsRequest
1467
+
1468
+ GetKnowledgeBaseDocumentsResponse.add_member(:document_details, Shapes::ShapeRef.new(shape: KnowledgeBaseDocumentDetails, location_name: "documentDetails"))
1469
+ GetKnowledgeBaseDocumentsResponse.struct_class = Types::GetKnowledgeBaseDocumentsResponse
1470
+
1377
1471
  GetKnowledgeBaseRequest.add_member(:knowledge_base_id, Shapes::ShapeRef.new(shape: Id, required: true, location: "uri", location_name: "knowledgeBaseId"))
1378
1472
  GetKnowledgeBaseRequest.struct_class = Types::GetKnowledgeBaseRequest
1379
1473
 
@@ -1419,6 +1513,15 @@ module Aws::BedrockAgent
1419
1513
  InferenceConfiguration.add_member(:top_p, Shapes::ShapeRef.new(shape: TopP, location_name: "topP"))
1420
1514
  InferenceConfiguration.struct_class = Types::InferenceConfiguration
1421
1515
 
1516
+ IngestKnowledgeBaseDocumentsRequest.add_member(:client_token, Shapes::ShapeRef.new(shape: ClientToken, location_name: "clientToken", metadata: {"idempotencyToken"=>true}))
1517
+ IngestKnowledgeBaseDocumentsRequest.add_member(:data_source_id, Shapes::ShapeRef.new(shape: Id, required: true, location: "uri", location_name: "dataSourceId"))
1518
+ IngestKnowledgeBaseDocumentsRequest.add_member(:documents, Shapes::ShapeRef.new(shape: KnowledgeBaseDocuments, required: true, location_name: "documents"))
1519
+ IngestKnowledgeBaseDocumentsRequest.add_member(:knowledge_base_id, Shapes::ShapeRef.new(shape: Id, required: true, location: "uri", location_name: "knowledgeBaseId"))
1520
+ IngestKnowledgeBaseDocumentsRequest.struct_class = Types::IngestKnowledgeBaseDocumentsRequest
1521
+
1522
+ IngestKnowledgeBaseDocumentsResponse.add_member(:document_details, Shapes::ShapeRef.new(shape: KnowledgeBaseDocumentDetails, location_name: "documentDetails"))
1523
+ IngestKnowledgeBaseDocumentsResponse.struct_class = Types::IngestKnowledgeBaseDocumentsResponse
1524
+
1422
1525
  IngestionJob.add_member(:data_source_id, Shapes::ShapeRef.new(shape: Id, required: true, location_name: "dataSourceId"))
1423
1526
  IngestionJob.add_member(:description, Shapes::ShapeRef.new(shape: Description, location_name: "description"))
1424
1527
  IngestionJob.add_member(:failure_reasons, Shapes::ShapeRef.new(shape: FailureReasons, location_name: "failureReasons"))
@@ -1464,6 +1567,11 @@ module Aws::BedrockAgent
1464
1567
  IngestionJobSummary.add_member(:updated_at, Shapes::ShapeRef.new(shape: DateTimestamp, required: true, location_name: "updatedAt"))
1465
1568
  IngestionJobSummary.struct_class = Types::IngestionJobSummary
1466
1569
 
1570
+ InlineContent.add_member(:byte_content, Shapes::ShapeRef.new(shape: ByteContentDoc, location_name: "byteContent"))
1571
+ InlineContent.add_member(:text_content, Shapes::ShapeRef.new(shape: TextContentDoc, location_name: "textContent"))
1572
+ InlineContent.add_member(:type, Shapes::ShapeRef.new(shape: InlineContentType, required: true, location_name: "type"))
1573
+ InlineContent.struct_class = Types::InlineContent
1574
+
1467
1575
  InputFlowNodeConfiguration.struct_class = Types::InputFlowNodeConfiguration
1468
1576
 
1469
1577
  IntermediateStorage.add_member(:s3_location, Shapes::ShapeRef.new(shape: S3Location, required: true, location_name: "s3Location"))
@@ -1491,6 +1599,22 @@ module Aws::BedrockAgent
1491
1599
  KnowledgeBaseConfiguration.add_member(:vector_knowledge_base_configuration, Shapes::ShapeRef.new(shape: VectorKnowledgeBaseConfiguration, location_name: "vectorKnowledgeBaseConfiguration"))
1492
1600
  KnowledgeBaseConfiguration.struct_class = Types::KnowledgeBaseConfiguration
1493
1601
 
1602
+ KnowledgeBaseDocument.add_member(:content, Shapes::ShapeRef.new(shape: DocumentContent, required: true, location_name: "content"))
1603
+ KnowledgeBaseDocument.add_member(:metadata, Shapes::ShapeRef.new(shape: DocumentMetadata, location_name: "metadata"))
1604
+ KnowledgeBaseDocument.struct_class = Types::KnowledgeBaseDocument
1605
+
1606
+ KnowledgeBaseDocumentDetail.add_member(:data_source_id, Shapes::ShapeRef.new(shape: Id, required: true, location_name: "dataSourceId"))
1607
+ KnowledgeBaseDocumentDetail.add_member(:identifier, Shapes::ShapeRef.new(shape: DocumentIdentifier, required: true, location_name: "identifier"))
1608
+ KnowledgeBaseDocumentDetail.add_member(:knowledge_base_id, Shapes::ShapeRef.new(shape: Id, required: true, location_name: "knowledgeBaseId"))
1609
+ KnowledgeBaseDocumentDetail.add_member(:status, Shapes::ShapeRef.new(shape: DocumentStatus, required: true, location_name: "status"))
1610
+ KnowledgeBaseDocumentDetail.add_member(:status_reason, Shapes::ShapeRef.new(shape: String, location_name: "statusReason"))
1611
+ KnowledgeBaseDocumentDetail.add_member(:updated_at, Shapes::ShapeRef.new(shape: DateTimestamp, location_name: "updatedAt"))
1612
+ KnowledgeBaseDocumentDetail.struct_class = Types::KnowledgeBaseDocumentDetail
1613
+
1614
+ KnowledgeBaseDocumentDetails.member = Shapes::ShapeRef.new(shape: KnowledgeBaseDocumentDetail)
1615
+
1616
+ KnowledgeBaseDocuments.member = Shapes::ShapeRef.new(shape: KnowledgeBaseDocument)
1617
+
1494
1618
  KnowledgeBaseFlowNodeConfiguration.add_member(:guardrail_configuration, Shapes::ShapeRef.new(shape: GuardrailConfiguration, location_name: "guardrailConfiguration"))
1495
1619
  KnowledgeBaseFlowNodeConfiguration.add_member(:knowledge_base_id, Shapes::ShapeRef.new(shape: KnowledgeBaseId, required: true, location_name: "knowledgeBaseId"))
1496
1620
  KnowledgeBaseFlowNodeConfiguration.add_member(:model_id, Shapes::ShapeRef.new(shape: KnowledgeBaseModelIdentifier, location_name: "modelId"))
@@ -1605,6 +1729,16 @@ module Aws::BedrockAgent
1605
1729
  ListIngestionJobsResponse.add_member(:next_token, Shapes::ShapeRef.new(shape: NextToken, location_name: "nextToken"))
1606
1730
  ListIngestionJobsResponse.struct_class = Types::ListIngestionJobsResponse
1607
1731
 
1732
+ ListKnowledgeBaseDocumentsRequest.add_member(:data_source_id, Shapes::ShapeRef.new(shape: Id, required: true, location: "uri", location_name: "dataSourceId"))
1733
+ ListKnowledgeBaseDocumentsRequest.add_member(:knowledge_base_id, Shapes::ShapeRef.new(shape: Id, required: true, location: "uri", location_name: "knowledgeBaseId"))
1734
+ ListKnowledgeBaseDocumentsRequest.add_member(:max_results, Shapes::ShapeRef.new(shape: MaxResults, location_name: "maxResults"))
1735
+ ListKnowledgeBaseDocumentsRequest.add_member(:next_token, Shapes::ShapeRef.new(shape: NextToken, location_name: "nextToken"))
1736
+ ListKnowledgeBaseDocumentsRequest.struct_class = Types::ListKnowledgeBaseDocumentsRequest
1737
+
1738
+ ListKnowledgeBaseDocumentsResponse.add_member(:document_details, Shapes::ShapeRef.new(shape: KnowledgeBaseDocumentDetails, required: true, location_name: "documentDetails"))
1739
+ ListKnowledgeBaseDocumentsResponse.add_member(:next_token, Shapes::ShapeRef.new(shape: String, location_name: "nextToken"))
1740
+ ListKnowledgeBaseDocumentsResponse.struct_class = Types::ListKnowledgeBaseDocumentsResponse
1741
+
1608
1742
  ListKnowledgeBasesRequest.add_member(:max_results, Shapes::ShapeRef.new(shape: MaxResults, location_name: "maxResults"))
1609
1743
  ListKnowledgeBasesRequest.add_member(:next_token, Shapes::ShapeRef.new(shape: NextToken, location_name: "nextToken"))
1610
1744
  ListKnowledgeBasesRequest.struct_class = Types::ListKnowledgeBasesRequest
@@ -1648,6 +1782,19 @@ module Aws::BedrockAgent
1648
1782
 
1649
1783
  Messages.member = Shapes::ShapeRef.new(shape: Message)
1650
1784
 
1785
+ MetadataAttribute.add_member(:key, Shapes::ShapeRef.new(shape: Key, required: true, location_name: "key"))
1786
+ MetadataAttribute.add_member(:value, Shapes::ShapeRef.new(shape: MetadataAttributeValue, required: true, location_name: "value"))
1787
+ MetadataAttribute.struct_class = Types::MetadataAttribute
1788
+
1789
+ MetadataAttributeValue.add_member(:boolean_value, Shapes::ShapeRef.new(shape: Boolean, location_name: "booleanValue"))
1790
+ MetadataAttributeValue.add_member(:number_value, Shapes::ShapeRef.new(shape: NumberValue, location_name: "numberValue"))
1791
+ MetadataAttributeValue.add_member(:string_list_value, Shapes::ShapeRef.new(shape: MetadataAttributeValueStringListValueList, location_name: "stringListValue"))
1792
+ MetadataAttributeValue.add_member(:string_value, Shapes::ShapeRef.new(shape: StringValue, location_name: "stringValue"))
1793
+ MetadataAttributeValue.add_member(:type, Shapes::ShapeRef.new(shape: MetadataValueType, required: true, location_name: "type"))
1794
+ MetadataAttributeValue.struct_class = Types::MetadataAttributeValue
1795
+
1796
+ MetadataAttributeValueStringListValueList.member = Shapes::ShapeRef.new(shape: StringValue)
1797
+
1651
1798
  MismatchedNodeInputTypeFlowValidationDetails.add_member(:expected_type, Shapes::ShapeRef.new(shape: FlowNodeIODataType, required: true, location_name: "expectedType"))
1652
1799
  MismatchedNodeInputTypeFlowValidationDetails.add_member(:input, Shapes::ShapeRef.new(shape: FlowNodeInputName, required: true, location_name: "input"))
1653
1800
  MismatchedNodeInputTypeFlowValidationDetails.add_member(:node, Shapes::ShapeRef.new(shape: FlowNodeName, required: true, location_name: "node"))
@@ -1906,6 +2053,9 @@ module Aws::BedrockAgent
1906
2053
  RetrievalFlowNodeServiceConfiguration.add_member_subclass(:unknown, Types::RetrievalFlowNodeServiceConfiguration::Unknown)
1907
2054
  RetrievalFlowNodeServiceConfiguration.struct_class = Types::RetrievalFlowNodeServiceConfiguration
1908
2055
 
2056
+ S3Content.add_member(:s3_location, Shapes::ShapeRef.new(shape: S3Location, required: true, location_name: "s3Location"))
2057
+ S3Content.struct_class = Types::S3Content
2058
+
1909
2059
  S3DataSourceConfiguration.add_member(:bucket_arn, Shapes::ShapeRef.new(shape: S3BucketArn, required: true, location_name: "bucketArn"))
1910
2060
  S3DataSourceConfiguration.add_member(:bucket_owner_account_id, Shapes::ShapeRef.new(shape: BucketOwnerAccountId, location_name: "bucketOwnerAccountId"))
1911
2061
  S3DataSourceConfiguration.add_member(:inclusion_prefixes, Shapes::ShapeRef.new(shape: S3Prefixes, location_name: "inclusionPrefixes"))
@@ -2026,6 +2176,9 @@ module Aws::BedrockAgent
2026
2176
  TagsMap.key = Shapes::ShapeRef.new(shape: TagKey)
2027
2177
  TagsMap.value = Shapes::ShapeRef.new(shape: TagValue)
2028
2178
 
2179
+ TextContentDoc.add_member(:data, Shapes::ShapeRef.new(shape: Data, required: true, location_name: "data"))
2180
+ TextContentDoc.struct_class = Types::TextContentDoc
2181
+
2029
2182
  TextPromptTemplateConfiguration.add_member(:input_variables, Shapes::ShapeRef.new(shape: PromptInputVariablesList, location_name: "inputVariables"))
2030
2183
  TextPromptTemplateConfiguration.add_member(:text, Shapes::ShapeRef.new(shape: TextPrompt, required: true, location_name: "text"))
2031
2184
  TextPromptTemplateConfiguration.struct_class = Types::TextPromptTemplateConfiguration
@@ -2596,6 +2749,20 @@ module Aws::BedrockAgent
2596
2749
  o.errors << Shapes::ShapeRef.new(shape: ConflictException)
2597
2750
  end)
2598
2751
 
2752
+ api.add_operation(:delete_knowledge_base_documents, Seahorse::Model::Operation.new.tap do |o|
2753
+ o.name = "DeleteKnowledgeBaseDocuments"
2754
+ o.http_method = "POST"
2755
+ o.http_request_uri = "/knowledgebases/{knowledgeBaseId}/datasources/{dataSourceId}/documents/deleteDocuments"
2756
+ o.input = Shapes::ShapeRef.new(shape: DeleteKnowledgeBaseDocumentsRequest)
2757
+ o.output = Shapes::ShapeRef.new(shape: DeleteKnowledgeBaseDocumentsResponse)
2758
+ o.errors << Shapes::ShapeRef.new(shape: ThrottlingException)
2759
+ o.errors << Shapes::ShapeRef.new(shape: AccessDeniedException)
2760
+ o.errors << Shapes::ShapeRef.new(shape: ValidationException)
2761
+ o.errors << Shapes::ShapeRef.new(shape: InternalServerException)
2762
+ o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
2763
+ o.errors << Shapes::ShapeRef.new(shape: ServiceQuotaExceededException)
2764
+ end)
2765
+
2599
2766
  api.add_operation(:delete_prompt, Seahorse::Model::Operation.new.tap do |o|
2600
2767
  o.name = "DeletePrompt"
2601
2768
  o.http_method = "DELETE"
@@ -2767,6 +2934,20 @@ module Aws::BedrockAgent
2767
2934
  o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
2768
2935
  end)
2769
2936
 
2937
+ api.add_operation(:get_knowledge_base_documents, Seahorse::Model::Operation.new.tap do |o|
2938
+ o.name = "GetKnowledgeBaseDocuments"
2939
+ o.http_method = "POST"
2940
+ o.http_request_uri = "/knowledgebases/{knowledgeBaseId}/datasources/{dataSourceId}/documents/getDocuments"
2941
+ o.input = Shapes::ShapeRef.new(shape: GetKnowledgeBaseDocumentsRequest)
2942
+ o.output = Shapes::ShapeRef.new(shape: GetKnowledgeBaseDocumentsResponse)
2943
+ o.errors << Shapes::ShapeRef.new(shape: ThrottlingException)
2944
+ o.errors << Shapes::ShapeRef.new(shape: AccessDeniedException)
2945
+ o.errors << Shapes::ShapeRef.new(shape: ValidationException)
2946
+ o.errors << Shapes::ShapeRef.new(shape: InternalServerException)
2947
+ o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
2948
+ o.errors << Shapes::ShapeRef.new(shape: ServiceQuotaExceededException)
2949
+ end)
2950
+
2770
2951
  api.add_operation(:get_prompt, Seahorse::Model::Operation.new.tap do |o|
2771
2952
  o.name = "GetPrompt"
2772
2953
  o.http_method = "GET"
@@ -2780,6 +2961,20 @@ module Aws::BedrockAgent
2780
2961
  o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
2781
2962
  end)
2782
2963
 
2964
+ api.add_operation(:ingest_knowledge_base_documents, Seahorse::Model::Operation.new.tap do |o|
2965
+ o.name = "IngestKnowledgeBaseDocuments"
2966
+ o.http_method = "PUT"
2967
+ o.http_request_uri = "/knowledgebases/{knowledgeBaseId}/datasources/{dataSourceId}/documents"
2968
+ o.input = Shapes::ShapeRef.new(shape: IngestKnowledgeBaseDocumentsRequest)
2969
+ o.output = Shapes::ShapeRef.new(shape: IngestKnowledgeBaseDocumentsResponse)
2970
+ o.errors << Shapes::ShapeRef.new(shape: ThrottlingException)
2971
+ o.errors << Shapes::ShapeRef.new(shape: AccessDeniedException)
2972
+ o.errors << Shapes::ShapeRef.new(shape: ValidationException)
2973
+ o.errors << Shapes::ShapeRef.new(shape: InternalServerException)
2974
+ o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
2975
+ o.errors << Shapes::ShapeRef.new(shape: ServiceQuotaExceededException)
2976
+ end)
2977
+
2783
2978
  api.add_operation(:list_agent_action_groups, Seahorse::Model::Operation.new.tap do |o|
2784
2979
  o.name = "ListAgentActionGroups"
2785
2980
  o.http_method = "POST"
@@ -2968,6 +3163,26 @@ module Aws::BedrockAgent
2968
3163
  )
2969
3164
  end)
2970
3165
 
3166
+ api.add_operation(:list_knowledge_base_documents, Seahorse::Model::Operation.new.tap do |o|
3167
+ o.name = "ListKnowledgeBaseDocuments"
3168
+ o.http_method = "POST"
3169
+ o.http_request_uri = "/knowledgebases/{knowledgeBaseId}/datasources/{dataSourceId}/documents"
3170
+ o.input = Shapes::ShapeRef.new(shape: ListKnowledgeBaseDocumentsRequest)
3171
+ o.output = Shapes::ShapeRef.new(shape: ListKnowledgeBaseDocumentsResponse)
3172
+ o.errors << Shapes::ShapeRef.new(shape: ThrottlingException)
3173
+ o.errors << Shapes::ShapeRef.new(shape: AccessDeniedException)
3174
+ o.errors << Shapes::ShapeRef.new(shape: ValidationException)
3175
+ o.errors << Shapes::ShapeRef.new(shape: InternalServerException)
3176
+ o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
3177
+ o.errors << Shapes::ShapeRef.new(shape: ServiceQuotaExceededException)
3178
+ o[:pager] = Aws::Pager.new(
3179
+ limit_key: "max_results",
3180
+ tokens: {
3181
+ "next_token" => "next_token"
3182
+ }
3183
+ )
3184
+ end)
3185
+
2971
3186
  api.add_operation(:list_knowledge_bases, Seahorse::Model::Operation.new.tap do |o|
2972
3187
  o.name = "ListKnowledgeBases"
2973
3188
  o.http_method = "POST"