Smaws_Client_Translate.TranslateDocumentTranslates the input document from the source language to the target language. This synchronous operation supports text, HTML, or Word documents as the input document. TranslateDocument supports translations from English to any supported language, and from any supported language to English. Therefore, specify either the source language code or the target language code as βenβ (English).
If you set the Formality parameter, the request will fail if the target language does not support formality. For a list of target languages that support formality, see Setting formality.
val error_to_string :
[ Smaws_Lib.Protocols.AwsJson.error
| `InternalServerException of Types.internal_server_exception
| `InvalidRequestException of Types.invalid_request_exception
| `LimitExceededException of Types.limit_exceeded_exception
| `ResourceNotFoundException of Types.resource_not_found_exception
| `ServiceUnavailableException of Types.service_unavailable_exception
| `TooManyRequestsException of Types.too_many_requests_exception
| `UnsupportedLanguagePairException of
Types.unsupported_language_pair_exception ] ->
stringval request :
'http_type Smaws_Lib.Context.t ->
Types.translate_document_request ->
(Types.translate_document_response,
[> Smaws_Lib.Protocols.AwsJson.error
| `InternalServerException of Types.internal_server_exception
| `InvalidRequestException of Types.invalid_request_exception
| `LimitExceededException of Types.limit_exceeded_exception
| `ResourceNotFoundException of Types.resource_not_found_exception
| `ServiceUnavailableException of Types.service_unavailable_exception
| `TooManyRequestsException of Types.too_many_requests_exception
| `UnsupportedLanguagePairException of
Types.unsupported_language_pair_exception ])
Stdlib.resultval request_with_metadata :
'http_type Smaws_Lib.Context.t ->
Types.translate_document_request ->
(Types.translate_document_response Smaws_Lib.Response.t,
[> Smaws_Lib.Protocols.AwsJson.error
| `InternalServerException of Types.internal_server_exception
| `InvalidRequestException of Types.invalid_request_exception
| `LimitExceededException of Types.limit_exceeded_exception
| `ResourceNotFoundException of Types.resource_not_found_exception
| `ServiceUnavailableException of Types.service_unavailable_exception
| `TooManyRequestsException of Types.too_many_requests_exception
| `UnsupportedLanguagePairException of
Types.unsupported_language_pair_exception ]
* Smaws_Lib.Response.metadata)
Stdlib.result