Module Values.CheckDocumentAccessRequestSource

Verifies 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.

Sourcetype nonrec t = {
  1. 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.

    *)
  2. indexId : IndexId.t;
    (*

    The unique identifier of the index. Used to locate the correct index within the application where the document is stored.

    *)
  3. userId : String_.t;
    (*

    The unique identifier of the user. Used to check the access permissions for this specific user against the document's ACL.

    *)
  4. documentId : DocumentId.t;
    (*

    The unique identifier of the document. Specifies which document's access permissions are being checked.

    *)
  5. 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.

    *)
}
Sourceval context_ : string
Sourceval make : ?dataSourceId:??? -> applicationId:ApplicationId.t -> indexId:IndexId.t -> userId:String_.t -> documentId:DocumentId.t -> unit -> t
Sourceval to_value : t -> [> `Structure of (string * [> `String of ApplicationId.t ]) list ]
Sourceval to_query : t -> Awso.Client.Query.t
Sourceval of_xml : Awso.Xml.t -> t
Sourceval of_string : string -> t
Sourceval of_json : Yojson.Safe.t -> t
Sourceval to_json : t -> Yojson.Safe.t