Module Values.ImportDocumentInputSource

Uploads a file that can then be used either as a default in a FileUploadCard from Q App definition or as a file that is used inside a single Q App run. The purpose of the document is determined by a scope parameter that indicates whether it is at the app definition level or at the app session level.

Sourcetype nonrec t = {
  1. instanceId : InstanceId.t;
    (*

    The unique identifier of the Amazon Q Business application environment instance.

    *)
  2. cardId : UUID.t;
    (*

    The unique identifier of the card the file is associated with.

    *)
  3. appId : UUID.t;
    (*

    The unique identifier of the Q App the file is associated with.

    *)
  4. fileContentsBase64 : String_.t;
    (*

    The base64-encoded contents of the file to upload.

    *)
  5. fileName : Filename.t;
    (*

    The name of the file being uploaded.

    *)
  6. scope : DocumentScope.t;
    (*

    Whether the file is associated with a Q App definition or a specific Q App session.

    *)
  7. sessionId : UUID.t option;
    (*

    The unique identifier of the Q App session the file is associated with, if applicable.

    *)
}
Sourceval context_ : string
Sourceval make : ?sessionId:??? -> instanceId:InstanceId.t -> cardId:UUID.t -> appId:UUID.t -> fileContentsBase64:String_.t -> fileName:Filename.t -> scope:DocumentScope.t -> unit -> t
Sourceval to_value : t -> [> `Structure of (string * [> `Enum of string | `String of InstanceId.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