Module Values.DocumentSource

The content and content type of a document.

Sourcetype nonrec t = {
  1. content : DocumentContent.t;
    (*

    The Contentfield type is Binary large object (blob). This object contains the document content converted into base64-encoded binary data. If you use one of the AWS SDKs, the SDK performs the Base64-encoding on this field before sending the request.

    *)
  2. contentType : ContentType.t;
    (*

    Describes the format of the document. You can specify one of the following: text/html - The input data consists of HTML content. Amazon Translate translates only the text in the HTML element. text/plain - The input data consists of unformatted text. Amazon Translate translates every character in the content. application/vnd.openxmlformats-officedocument.wordprocessingml.document - The input data consists of a Word document (.docx).

    *)
}
Sourceval context_ : string
Sourceval make : content:DocumentContent.t -> contentType:ContentType.t -> unit -> t
Sourceval to_value : t -> [> `Structure of (string * [> `Blob of DocumentContent.t | `String of ContentType.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