Skip to content

Document

Source code in docs_src/capo_translate/types/document.py
class Document(TypedDict, closed=True):
    content: "capo_translate.types.document_content.DocumentContent"
    """<p>The <code>Content</code>field 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. </p>"""
    content_type: "capo_translate.types.content_type.ContentType"
    """<p>Describes the format of the document. You can specify one of the following:</p> <ul> <li> <p> <code>text/html</code> - The input data consists of HTML content. Amazon Translate translates only the text in the HTML element.</p> </li> <li> <p> <code>text/plain</code> - The input data consists of unformatted text. Amazon Translate translates every character in the content. </p> </li> <li> <p> <code>application/vnd.openxmlformats-officedocument.wordprocessingml.document</code> - The input data consists of a Word document (.docx).</p> </li> </ul>"""

content instance-attribute

content: DocumentContent

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.

content_type instance-attribute

content_type: ContentType

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