Module Values.DocumentContentSource

The contents of a document. Documents have size limitations. The maximum file size for a document is 50 MB. The maximum amount of text that can be extracted from a single document is 5 MB. For more information, see Supported document formats in Amazon Q Business.

Sourcetype nonrec t = {
  1. blob : Blob.t option;
    (*

    The contents of the document. Documents passed to the blob parameter must be base64 encoded. Your code might not need to encode the document file bytes if you're using an Amazon Web Services SDK to call Amazon Q Business APIs. If you are calling the Amazon Q Business endpoint directly using REST, you must base64 encode the contents before sending.

    *)
  2. s3 : S3.t option;
    (*

    The path to the document in an Amazon S3 bucket.

    *)
}
Sourceval make : ?blob:??? -> ?s3:??? -> unit -> t
Sourceval to_value : t -> [> `Structure of (string * [> `Blob of Blob.t | `Structure of (string * [> `String of S3BucketName.t ]) list ]) 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