Smaws_Client_Translate.TranslateTextTranslates input text from the source language to the target language. For a list of available languages and language codes, see Supported languages.
val error_to_string :
[ Smaws_Lib.Protocols.AwsJson.error
| `DetectedLanguageLowConfidenceException of
Types.detected_language_low_confidence_exception
| `InternalServerException of Types.internal_server_exception
| `InvalidRequestException of Types.invalid_request_exception
| `ResourceNotFoundException of Types.resource_not_found_exception
| `ServiceUnavailableException of Types.service_unavailable_exception
| `TextSizeLimitExceededException of Types.text_size_limit_exceeded_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_text_request ->
(Types.translate_text_response,
[> Smaws_Lib.Protocols.AwsJson.error
| `DetectedLanguageLowConfidenceException of
Types.detected_language_low_confidence_exception
| `InternalServerException of Types.internal_server_exception
| `InvalidRequestException of Types.invalid_request_exception
| `ResourceNotFoundException of Types.resource_not_found_exception
| `ServiceUnavailableException of Types.service_unavailable_exception
| `TextSizeLimitExceededException of
Types.text_size_limit_exceeded_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_text_request ->
(Types.translate_text_response Smaws_Lib.Response.t,
[> Smaws_Lib.Protocols.AwsJson.error
| `DetectedLanguageLowConfidenceException of
Types.detected_language_low_confidence_exception
| `InternalServerException of Types.internal_server_exception
| `InvalidRequestException of Types.invalid_request_exception
| `ResourceNotFoundException of Types.resource_not_found_exception
| `ServiceUnavailableException of Types.service_unavailable_exception
| `TextSizeLimitExceededException of
Types.text_size_limit_exceeded_exception
| `TooManyRequestsException of Types.too_many_requests_exception
| `UnsupportedLanguagePairException of
Types.unsupported_language_pair_exception ]
* Smaws_Lib.Response.metadata)
Stdlib.result