Values.BatchPutDocumentRequestSourceAdds one or more documents to an Amazon Q Business index. You use this API to: ingest your structured and unstructured documents and documents stored in an Amazon S3 bucket into an Amazon Q Business index. add custom attributes to documents in an Amazon Q Business index. attach an access control list to the documents added to an Amazon Q Business index. You can see the progress of the deletion, and any error messages related to the process, by using CloudWatch.
type nonrec t = {applicationId : ApplicationId.t;The identifier of the Amazon Q Business application.
*)indexId : IndexId.t;The identifier of the Amazon Q Business index to add the documents to.
*)documents : Documents.t;One or more documents to add to the index. Ensure that the name of your document doesn't contain any confidential information. Amazon Q Business returns document names in chat responses and citations when relevant.
*)roleArn : RoleArn.t option;The Amazon Resource Name (ARN) of an IAM role with permission to access your S3 bucket.
*)dataSourceSyncId : ExecutionId.t option;The identifier of the data source sync during which the documents were added.
*)}val make :
?roleArn:??? ->
?dataSourceSyncId:??? ->
applicationId:ApplicationId.t ->
indexId:IndexId.t ->
documents:Documents.t ->
unit ->
tval to_value :
t ->
[> `Structure of
(string
* [> `List of
[> `Structure of
(string
* [> `Enum of string
| `List of
[> `Structure of
(string
* [> `String of DocumentAttributeKey.t
| `Structure of
(string
* [> `List of
[> `String of String_.t ] list
| `Long of Long.t
| `String of
DocumentAttributeValueStringValueString.t
| `Timestamp of Timestamp.t ])
list ])
list ]
list
| `String of DocumentId.t
| `Structure of
(string
* [> `Blob of Blob.t
| `Enum of string
| `List of
[> `Structure of
(string
* [> `Enum of string
| `List of
[> `Structure of
(string
* [> `Structure of
(string
* [> `Enum of string
| `String of UserId.t ])
list ])
list ]
list
| `Structure of
(string
* [> `Enum of string
| `String of DocumentAttributeKey.t
| `Structure of
(string
* [> `List of
[> `String of String_.t ]
list
| `Long of Long.t
| `String of
DocumentAttributeValueStringValueString.t
| `Timestamp of Timestamp.t ])
list ])
list ])
list ]
list
| `Structure of
(string
* [> `Enum of string
| `String of S3BucketName.t
| `Structure of
(string
* [> `Enum of string
| `String of DocumentAttributeKey.t
| `Structure of
(string
* [> `List of
[> `String of String_.t ] list
| `Long of Long.t
| `String of
DocumentAttributeValueStringValueString.t
| `Timestamp of Timestamp.t ])
list ])
list ])
list ])
list ])
list ]
list
| `String of ApplicationId.t ])
list ]