Document - Amazon Translate API Reference


The content and content type of a document.



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.

Type: Base64-encoded binary data object

Length Constraints: Maximum length of 102400.

Required: Yes


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

Type: String

Length Constraints: Maximum length of 256.

Pattern: ^[-\w.]+\/[-\w.+]+$

Required: Yes

See Also

For more information about using this API in one of the language-specific AWS SDKs, see the following: