Values.CheckDocumentAccessRequestSourceVerifies if a user has access permissions for a specified document and returns the actual ACL attached to the document. Resolves user access on the document via user aliases and groups when verifying user access.
type nonrec t = {applicationId : ApplicationId.t;The unique identifier of the application. This is required to identify the specific Amazon Q Business application context for the document access check.
*)indexId : IndexId.t;The unique identifier of the index. Used to locate the correct index within the application where the document is stored.
*)userId : String_.t;The unique identifier of the user. Used to check the access permissions for this specific user against the document's ACL.
*)documentId : DocumentId.t;The unique identifier of the document. Specifies which document's access permissions are being checked.
*)dataSourceId : DataSourceId.t option;The unique identifier of the data source. Identifies the specific data source from which the document originates. Should not be used when a document is uploaded directly with BatchPutDocument, as no dataSourceId is available or necessary.
*)}val make :
?dataSourceId:??? ->
applicationId:ApplicationId.t ->
indexId:IndexId.t ->
userId:String_.t ->
documentId:DocumentId.t ->
unit ->
t