aws-sdk-bedrockagent 1.36.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,9 +144,16 @@ 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')
156
+ EmbeddingDataType = Shapes::StringShape.new(name: 'EmbeddingDataType')
138
157
  EmbeddingModelConfiguration = Shapes::StructureShape.new(name: 'EmbeddingModelConfiguration')
139
158
  EnabledMemoryTypes = Shapes::ListShape.new(name: 'EnabledMemoryTypes')
140
159
  ErrorMessage = Shapes::StringShape.new(name: 'ErrorMessage')
@@ -219,6 +238,8 @@ module Aws::BedrockAgent
219
238
  GetFlowVersionResponse = Shapes::StructureShape.new(name: 'GetFlowVersionResponse')
220
239
  GetIngestionJobRequest = Shapes::StructureShape.new(name: 'GetIngestionJobRequest')
221
240
  GetIngestionJobResponse = Shapes::StructureShape.new(name: 'GetIngestionJobResponse')
241
+ GetKnowledgeBaseDocumentsRequest = Shapes::StructureShape.new(name: 'GetKnowledgeBaseDocumentsRequest')
242
+ GetKnowledgeBaseDocumentsResponse = Shapes::StructureShape.new(name: 'GetKnowledgeBaseDocumentsResponse')
222
243
  GetKnowledgeBaseRequest = Shapes::StructureShape.new(name: 'GetKnowledgeBaseRequest')
223
244
  GetKnowledgeBaseResponse = Shapes::StructureShape.new(name: 'GetKnowledgeBaseResponse')
224
245
  GetPromptRequest = Shapes::StructureShape.new(name: 'GetPromptRequest')
@@ -235,6 +256,8 @@ module Aws::BedrockAgent
235
256
  Id = Shapes::StringShape.new(name: 'Id')
236
257
  IncompatibleConnectionDataTypeFlowValidationDetails = Shapes::StructureShape.new(name: 'IncompatibleConnectionDataTypeFlowValidationDetails')
237
258
  InferenceConfiguration = Shapes::StructureShape.new(name: 'InferenceConfiguration')
259
+ IngestKnowledgeBaseDocumentsRequest = Shapes::StructureShape.new(name: 'IngestKnowledgeBaseDocumentsRequest')
260
+ IngestKnowledgeBaseDocumentsResponse = Shapes::StructureShape.new(name: 'IngestKnowledgeBaseDocumentsResponse')
238
261
  IngestionJob = Shapes::StructureShape.new(name: 'IngestionJob')
239
262
  IngestionJobFilter = Shapes::StructureShape.new(name: 'IngestionJobFilter')
240
263
  IngestionJobFilterAttribute = Shapes::StringShape.new(name: 'IngestionJobFilterAttribute')
@@ -248,15 +271,22 @@ module Aws::BedrockAgent
248
271
  IngestionJobStatus = Shapes::StringShape.new(name: 'IngestionJobStatus')
249
272
  IngestionJobSummaries = Shapes::ListShape.new(name: 'IngestionJobSummaries')
250
273
  IngestionJobSummary = Shapes::StructureShape.new(name: 'IngestionJobSummary')
274
+ InlineContent = Shapes::StructureShape.new(name: 'InlineContent')
275
+ InlineContentType = Shapes::StringShape.new(name: 'InlineContentType')
251
276
  InputFlowNodeConfiguration = Shapes::StructureShape.new(name: 'InputFlowNodeConfiguration')
252
277
  Instruction = Shapes::StringShape.new(name: 'Instruction')
253
278
  IntermediateStorage = Shapes::StructureShape.new(name: 'IntermediateStorage')
254
279
  InternalServerException = Shapes::StructureShape.new(name: 'InternalServerException')
255
280
  IteratorFlowNodeConfiguration = Shapes::StructureShape.new(name: 'IteratorFlowNodeConfiguration')
281
+ Key = Shapes::StringShape.new(name: 'Key')
256
282
  KmsKeyArn = Shapes::StringShape.new(name: 'KmsKeyArn')
257
283
  KnowledgeBase = Shapes::StructureShape.new(name: 'KnowledgeBase')
258
284
  KnowledgeBaseArn = Shapes::StringShape.new(name: 'KnowledgeBaseArn')
259
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')
260
290
  KnowledgeBaseFlowNodeConfiguration = Shapes::StructureShape.new(name: 'KnowledgeBaseFlowNodeConfiguration')
261
291
  KnowledgeBaseId = Shapes::StringShape.new(name: 'KnowledgeBaseId')
262
292
  KnowledgeBaseModelIdentifier = Shapes::StringShape.new(name: 'KnowledgeBaseModelIdentifier')
@@ -292,6 +322,8 @@ module Aws::BedrockAgent
292
322
  ListFlowsResponse = Shapes::StructureShape.new(name: 'ListFlowsResponse')
293
323
  ListIngestionJobsRequest = Shapes::StructureShape.new(name: 'ListIngestionJobsRequest')
294
324
  ListIngestionJobsResponse = Shapes::StructureShape.new(name: 'ListIngestionJobsResponse')
325
+ ListKnowledgeBaseDocumentsRequest = Shapes::StructureShape.new(name: 'ListKnowledgeBaseDocumentsRequest')
326
+ ListKnowledgeBaseDocumentsResponse = Shapes::StructureShape.new(name: 'ListKnowledgeBaseDocumentsResponse')
295
327
  ListKnowledgeBasesRequest = Shapes::StructureShape.new(name: 'ListKnowledgeBasesRequest')
296
328
  ListKnowledgeBasesResponse = Shapes::StructureShape.new(name: 'ListKnowledgeBasesResponse')
297
329
  ListPromptsRequest = Shapes::StructureShape.new(name: 'ListPromptsRequest')
@@ -306,6 +338,11 @@ module Aws::BedrockAgent
306
338
  MemoryType = Shapes::StringShape.new(name: 'MemoryType')
307
339
  Message = Shapes::StructureShape.new(name: 'Message')
308
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')
309
346
  Microsoft365TenantId = Shapes::StringShape.new(name: 'Microsoft365TenantId')
310
347
  MismatchedNodeInputTypeFlowValidationDetails = Shapes::StructureShape.new(name: 'MismatchedNodeInputTypeFlowValidationDetails')
311
348
  MismatchedNodeOutputTypeFlowValidationDetails = Shapes::StructureShape.new(name: 'MismatchedNodeOutputTypeFlowValidationDetails')
@@ -329,6 +366,7 @@ module Aws::BedrockAgent
329
366
  NextToken = Shapes::StringShape.new(name: 'NextToken')
330
367
  NonBlankString = Shapes::StringShape.new(name: 'NonBlankString')
331
368
  NonEmptyString = Shapes::StringShape.new(name: 'NonEmptyString')
369
+ NumberValue = Shapes::FloatShape.new(name: 'NumberValue')
332
370
  NumericalVersion = Shapes::StringShape.new(name: 'NumericalVersion')
333
371
  OpenSearchServerlessCollectionArn = Shapes::StringShape.new(name: 'OpenSearchServerlessCollectionArn')
334
372
  OpenSearchServerlessConfiguration = Shapes::StructureShape.new(name: 'OpenSearchServerlessConfiguration')
@@ -410,10 +448,12 @@ module Aws::BedrockAgent
410
448
  S3BucketArn = Shapes::StringShape.new(name: 'S3BucketArn')
411
449
  S3BucketName = Shapes::StringShape.new(name: 'S3BucketName')
412
450
  S3BucketUri = Shapes::StringShape.new(name: 'S3BucketUri')
451
+ S3Content = Shapes::StructureShape.new(name: 'S3Content')
413
452
  S3DataSourceConfiguration = Shapes::StructureShape.new(name: 'S3DataSourceConfiguration')
414
453
  S3Identifier = Shapes::StructureShape.new(name: 'S3Identifier')
415
454
  S3Location = Shapes::StructureShape.new(name: 'S3Location')
416
455
  S3ObjectKey = Shapes::StringShape.new(name: 'S3ObjectKey')
456
+ S3ObjectUri = Shapes::StringShape.new(name: 'S3ObjectUri')
417
457
  S3Prefix = Shapes::StringShape.new(name: 'S3Prefix')
418
458
  S3Prefixes = Shapes::ListShape.new(name: 'S3Prefixes')
419
459
  SalesforceAuthType = Shapes::StringShape.new(name: 'SalesforceAuthType')
@@ -451,6 +491,7 @@ module Aws::BedrockAgent
451
491
  StorageFlowNodeS3Configuration = Shapes::StructureShape.new(name: 'StorageFlowNodeS3Configuration')
452
492
  StorageFlowNodeServiceConfiguration = Shapes::UnionShape.new(name: 'StorageFlowNodeServiceConfiguration')
453
493
  String = Shapes::StringShape.new(name: 'String')
494
+ StringValue = Shapes::StringShape.new(name: 'StringValue')
454
495
  SystemContentBlock = Shapes::UnionShape.new(name: 'SystemContentBlock')
455
496
  SystemContentBlocks = Shapes::ListShape.new(name: 'SystemContentBlocks')
456
497
  TagKey = Shapes::StringShape.new(name: 'TagKey')
@@ -461,6 +502,7 @@ module Aws::BedrockAgent
461
502
  TaggableResourcesArn = Shapes::StringShape.new(name: 'TaggableResourcesArn')
462
503
  TagsMap = Shapes::MapShape.new(name: 'TagsMap')
463
504
  Temperature = Shapes::FloatShape.new(name: 'Temperature')
505
+ TextContentDoc = Shapes::StructureShape.new(name: 'TextContentDoc')
464
506
  TextPrompt = Shapes::StringShape.new(name: 'TextPrompt')
465
507
  TextPromptTemplateConfiguration = Shapes::StructureShape.new(name: 'TextPromptTemplateConfiguration')
466
508
  ThrottlingException = Shapes::StructureShape.new(name: 'ThrottlingException')
@@ -706,12 +748,17 @@ module Aws::BedrockAgent
706
748
  AutoToolChoice.struct_class = Types::AutoToolChoice
707
749
 
708
750
  BedrockEmbeddingModelConfiguration.add_member(:dimensions, Shapes::ShapeRef.new(shape: Dimensions, location_name: "dimensions"))
751
+ BedrockEmbeddingModelConfiguration.add_member(:embedding_data_type, Shapes::ShapeRef.new(shape: EmbeddingDataType, location_name: "embeddingDataType"))
709
752
  BedrockEmbeddingModelConfiguration.struct_class = Types::BedrockEmbeddingModelConfiguration
710
753
 
711
754
  BedrockFoundationModelConfiguration.add_member(:model_arn, Shapes::ShapeRef.new(shape: BedrockModelArn, required: true, location_name: "modelArn"))
712
755
  BedrockFoundationModelConfiguration.add_member(:parsing_prompt, Shapes::ShapeRef.new(shape: ParsingPrompt, location_name: "parsingPrompt"))
713
756
  BedrockFoundationModelConfiguration.struct_class = Types::BedrockFoundationModelConfiguration
714
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
+
715
762
  ChatPromptTemplateConfiguration.add_member(:input_variables, Shapes::ShapeRef.new(shape: PromptInputVariablesList, location_name: "inputVariables"))
716
763
  ChatPromptTemplateConfiguration.add_member(:messages, Shapes::ShapeRef.new(shape: Messages, required: true, location_name: "messages"))
717
764
  ChatPromptTemplateConfiguration.add_member(:system, Shapes::ShapeRef.new(shape: SystemContentBlocks, location_name: "system"))
@@ -923,9 +970,22 @@ module Aws::BedrockAgent
923
970
  CreatePromptVersionResponse.add_member(:version, Shapes::ShapeRef.new(shape: Version, required: true, location_name: "version"))
924
971
  CreatePromptVersionResponse.struct_class = Types::CreatePromptVersionResponse
925
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
+
926
982
  CustomOrchestration.add_member(:executor, Shapes::ShapeRef.new(shape: OrchestrationExecutor, location_name: "executor"))
927
983
  CustomOrchestration.struct_class = Types::CustomOrchestration
928
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
+
929
989
  CustomTransformationConfiguration.add_member(:intermediate_storage, Shapes::ShapeRef.new(shape: IntermediateStorage, required: true, location_name: "intermediateStorage"))
930
990
  CustomTransformationConfiguration.add_member(:transformations, Shapes::ShapeRef.new(shape: Transformations, required: true, location_name: "transformations"))
931
991
  CustomTransformationConfiguration.struct_class = Types::CustomTransformationConfiguration
@@ -1033,6 +1093,15 @@ module Aws::BedrockAgent
1033
1093
  DeleteFlowVersionResponse.add_member(:version, Shapes::ShapeRef.new(shape: NumericalVersion, required: true, location_name: "version"))
1034
1094
  DeleteFlowVersionResponse.struct_class = Types::DeleteFlowVersionResponse
1035
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
+
1036
1105
  DeleteKnowledgeBaseRequest.add_member(:knowledge_base_id, Shapes::ShapeRef.new(shape: Id, required: true, location: "uri", location_name: "knowledgeBaseId"))
1037
1106
  DeleteKnowledgeBaseRequest.struct_class = Types::DeleteKnowledgeBaseRequest
1038
1107
 
@@ -1055,6 +1124,25 @@ module Aws::BedrockAgent
1055
1124
 
1056
1125
  DisassociateAgentKnowledgeBaseResponse.struct_class = Types::DisassociateAgentKnowledgeBaseResponse
1057
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
+
1058
1146
  DuplicateConditionExpressionFlowValidationDetails.add_member(:expression, Shapes::ShapeRef.new(shape: FlowConditionExpression, required: true, location_name: "expression"))
1059
1147
  DuplicateConditionExpressionFlowValidationDetails.add_member(:node, Shapes::ShapeRef.new(shape: FlowNodeName, required: true, location_name: "node"))
1060
1148
  DuplicateConditionExpressionFlowValidationDetails.struct_class = Types::DuplicateConditionExpressionFlowValidationDetails
@@ -1372,6 +1460,14 @@ module Aws::BedrockAgent
1372
1460
  GetIngestionJobResponse.add_member(:ingestion_job, Shapes::ShapeRef.new(shape: IngestionJob, required: true, location_name: "ingestionJob"))
1373
1461
  GetIngestionJobResponse.struct_class = Types::GetIngestionJobResponse
1374
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
+
1375
1471
  GetKnowledgeBaseRequest.add_member(:knowledge_base_id, Shapes::ShapeRef.new(shape: Id, required: true, location: "uri", location_name: "knowledgeBaseId"))
1376
1472
  GetKnowledgeBaseRequest.struct_class = Types::GetKnowledgeBaseRequest
1377
1473
 
@@ -1417,6 +1513,15 @@ module Aws::BedrockAgent
1417
1513
  InferenceConfiguration.add_member(:top_p, Shapes::ShapeRef.new(shape: TopP, location_name: "topP"))
1418
1514
  InferenceConfiguration.struct_class = Types::InferenceConfiguration
1419
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
+
1420
1525
  IngestionJob.add_member(:data_source_id, Shapes::ShapeRef.new(shape: Id, required: true, location_name: "dataSourceId"))
1421
1526
  IngestionJob.add_member(:description, Shapes::ShapeRef.new(shape: Description, location_name: "description"))
1422
1527
  IngestionJob.add_member(:failure_reasons, Shapes::ShapeRef.new(shape: FailureReasons, location_name: "failureReasons"))
@@ -1462,6 +1567,11 @@ module Aws::BedrockAgent
1462
1567
  IngestionJobSummary.add_member(:updated_at, Shapes::ShapeRef.new(shape: DateTimestamp, required: true, location_name: "updatedAt"))
1463
1568
  IngestionJobSummary.struct_class = Types::IngestionJobSummary
1464
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
+
1465
1575
  InputFlowNodeConfiguration.struct_class = Types::InputFlowNodeConfiguration
1466
1576
 
1467
1577
  IntermediateStorage.add_member(:s3_location, Shapes::ShapeRef.new(shape: S3Location, required: true, location_name: "s3Location"))
@@ -1489,6 +1599,22 @@ module Aws::BedrockAgent
1489
1599
  KnowledgeBaseConfiguration.add_member(:vector_knowledge_base_configuration, Shapes::ShapeRef.new(shape: VectorKnowledgeBaseConfiguration, location_name: "vectorKnowledgeBaseConfiguration"))
1490
1600
  KnowledgeBaseConfiguration.struct_class = Types::KnowledgeBaseConfiguration
1491
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
+
1492
1618
  KnowledgeBaseFlowNodeConfiguration.add_member(:guardrail_configuration, Shapes::ShapeRef.new(shape: GuardrailConfiguration, location_name: "guardrailConfiguration"))
1493
1619
  KnowledgeBaseFlowNodeConfiguration.add_member(:knowledge_base_id, Shapes::ShapeRef.new(shape: KnowledgeBaseId, required: true, location_name: "knowledgeBaseId"))
1494
1620
  KnowledgeBaseFlowNodeConfiguration.add_member(:model_id, Shapes::ShapeRef.new(shape: KnowledgeBaseModelIdentifier, location_name: "modelId"))
@@ -1603,6 +1729,16 @@ module Aws::BedrockAgent
1603
1729
  ListIngestionJobsResponse.add_member(:next_token, Shapes::ShapeRef.new(shape: NextToken, location_name: "nextToken"))
1604
1730
  ListIngestionJobsResponse.struct_class = Types::ListIngestionJobsResponse
1605
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
+
1606
1742
  ListKnowledgeBasesRequest.add_member(:max_results, Shapes::ShapeRef.new(shape: MaxResults, location_name: "maxResults"))
1607
1743
  ListKnowledgeBasesRequest.add_member(:next_token, Shapes::ShapeRef.new(shape: NextToken, location_name: "nextToken"))
1608
1744
  ListKnowledgeBasesRequest.struct_class = Types::ListKnowledgeBasesRequest
@@ -1646,6 +1782,19 @@ module Aws::BedrockAgent
1646
1782
 
1647
1783
  Messages.member = Shapes::ShapeRef.new(shape: Message)
1648
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
+
1649
1798
  MismatchedNodeInputTypeFlowValidationDetails.add_member(:expected_type, Shapes::ShapeRef.new(shape: FlowNodeIODataType, required: true, location_name: "expectedType"))
1650
1799
  MismatchedNodeInputTypeFlowValidationDetails.add_member(:input, Shapes::ShapeRef.new(shape: FlowNodeInputName, required: true, location_name: "input"))
1651
1800
  MismatchedNodeInputTypeFlowValidationDetails.add_member(:node, Shapes::ShapeRef.new(shape: FlowNodeName, required: true, location_name: "node"))
@@ -1904,6 +2053,9 @@ module Aws::BedrockAgent
1904
2053
  RetrievalFlowNodeServiceConfiguration.add_member_subclass(:unknown, Types::RetrievalFlowNodeServiceConfiguration::Unknown)
1905
2054
  RetrievalFlowNodeServiceConfiguration.struct_class = Types::RetrievalFlowNodeServiceConfiguration
1906
2055
 
2056
+ S3Content.add_member(:s3_location, Shapes::ShapeRef.new(shape: S3Location, required: true, location_name: "s3Location"))
2057
+ S3Content.struct_class = Types::S3Content
2058
+
1907
2059
  S3DataSourceConfiguration.add_member(:bucket_arn, Shapes::ShapeRef.new(shape: S3BucketArn, required: true, location_name: "bucketArn"))
1908
2060
  S3DataSourceConfiguration.add_member(:bucket_owner_account_id, Shapes::ShapeRef.new(shape: BucketOwnerAccountId, location_name: "bucketOwnerAccountId"))
1909
2061
  S3DataSourceConfiguration.add_member(:inclusion_prefixes, Shapes::ShapeRef.new(shape: S3Prefixes, location_name: "inclusionPrefixes"))
@@ -2024,6 +2176,9 @@ module Aws::BedrockAgent
2024
2176
  TagsMap.key = Shapes::ShapeRef.new(shape: TagKey)
2025
2177
  TagsMap.value = Shapes::ShapeRef.new(shape: TagValue)
2026
2178
 
2179
+ TextContentDoc.add_member(:data, Shapes::ShapeRef.new(shape: Data, required: true, location_name: "data"))
2180
+ TextContentDoc.struct_class = Types::TextContentDoc
2181
+
2027
2182
  TextPromptTemplateConfiguration.add_member(:input_variables, Shapes::ShapeRef.new(shape: PromptInputVariablesList, location_name: "inputVariables"))
2028
2183
  TextPromptTemplateConfiguration.add_member(:text, Shapes::ShapeRef.new(shape: TextPrompt, required: true, location_name: "text"))
2029
2184
  TextPromptTemplateConfiguration.struct_class = Types::TextPromptTemplateConfiguration
@@ -2594,6 +2749,20 @@ module Aws::BedrockAgent
2594
2749
  o.errors << Shapes::ShapeRef.new(shape: ConflictException)
2595
2750
  end)
2596
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
+
2597
2766
  api.add_operation(:delete_prompt, Seahorse::Model::Operation.new.tap do |o|
2598
2767
  o.name = "DeletePrompt"
2599
2768
  o.http_method = "DELETE"
@@ -2765,6 +2934,20 @@ module Aws::BedrockAgent
2765
2934
  o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
2766
2935
  end)
2767
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
+
2768
2951
  api.add_operation(:get_prompt, Seahorse::Model::Operation.new.tap do |o|
2769
2952
  o.name = "GetPrompt"
2770
2953
  o.http_method = "GET"
@@ -2778,6 +2961,20 @@ module Aws::BedrockAgent
2778
2961
  o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
2779
2962
  end)
2780
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
+
2781
2978
  api.add_operation(:list_agent_action_groups, Seahorse::Model::Operation.new.tap do |o|
2782
2979
  o.name = "ListAgentActionGroups"
2783
2980
  o.http_method = "POST"
@@ -2966,6 +3163,26 @@ module Aws::BedrockAgent
2966
3163
  )
2967
3164
  end)
2968
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
+
2969
3186
  api.add_operation(:list_knowledge_bases, Seahorse::Model::Operation.new.tap do |o|
2970
3187
  o.name = "ListKnowledgeBases"
2971
3188
  o.http_method = "POST"