Module Values.TranslateTextResponseSource

Translates input text from the source language to the target language. For a list of available languages and language codes, see Supported languages.

Sourcetype nonrec t = {
  1. translatedText : TranslatedTextString.t option;
    (*

    The translated text.

    *)
  2. sourceLanguageCode : LanguageCodeString.t option;
    (*

    The language code for the language of the source text.

    *)
  3. targetLanguageCode : LanguageCodeString.t option;
    (*

    The language code for the language of the target text.

    *)
  4. appliedTerminologies : AppliedTerminologyList.t option;
    (*

    The names of the custom terminologies applied to the input text by Amazon Translate for the translated text response.

    *)
  5. appliedSettings : TranslationSettings.t option;
    (*

    Optional settings that modify the translation output.

    *)
}
Sourcetype nonrec error = [
  1. | `DetectedLanguageLowConfidenceException of DetectedLanguageLowConfidenceException.t
  2. | `InternalServerException of InternalServerException.t
  3. | `InvalidRequestException of InvalidRequestException.t
  4. | `ResourceNotFoundException of ResourceNotFoundException.t
  5. | `ServiceUnavailableException of ServiceUnavailableException.t
  6. | `TextSizeLimitExceededException of TextSizeLimitExceededException.t
  7. | `TooManyRequestsException of TooManyRequestsException.t
  8. | `UnsupportedLanguagePairException of UnsupportedLanguagePairException.t
  9. | `Unknown_operation_error of string * string option
]
Sourceval make : ?translatedText:??? -> ?sourceLanguageCode:??? -> ?targetLanguageCode:??? -> ?appliedTerminologies:??? -> ?appliedSettings:??? -> unit -> t
Sourceval error_of_json : string -> Yojson.Safe.t -> [> `DetectedLanguageLowConfidenceException of DetectedLanguageLowConfidenceException.t | `InternalServerException of InternalServerException.t | `InvalidRequestException of InvalidRequestException.t | `ResourceNotFoundException of ResourceNotFoundException.t | `ServiceUnavailableException of ServiceUnavailableException.t | `TextSizeLimitExceededException of TextSizeLimitExceededException.t | `TooManyRequestsException of TooManyRequestsException.t | `Unknown_operation_error of string * string option | `UnsupportedLanguagePairException of UnsupportedLanguagePairException.t ]
Sourceval error_of_xml : string -> Awso.Xml.t -> [> `DetectedLanguageLowConfidenceException of DetectedLanguageLowConfidenceException.t | `InternalServerException of InternalServerException.t | `InvalidRequestException of InvalidRequestException.t | `ResourceNotFoundException of ResourceNotFoundException.t | `ServiceUnavailableException of ServiceUnavailableException.t | `TextSizeLimitExceededException of TextSizeLimitExceededException.t | `TooManyRequestsException of TooManyRequestsException.t | `Unknown_operation_error of string * string option | `UnsupportedLanguagePairException of UnsupportedLanguagePairException.t ]
Sourceval error_to_json : error -> Yojson.Safe.t
Sourceval to_value : t -> [> `Structure of (string * [> `List of [> `Structure of (string * [> `List of [> `Structure of (string * [> `String of String_.t ]) list ] list | `String of ResourceName.t ]) list ] list | `String of TranslatedTextString.t | `Structure of (string * [> `Enum of string ]) list ]) 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