You are viewing documentation for version 2 of the AWS SDK for Ruby. Version 3 documentation can be found here.

Class: Aws::Translate::Types::TranslateTextRequest

Inherits:
Struct
  • Object
show all
Defined in:
(unknown)

Overview

Note:

When passing TranslateTextRequest as input to an Aws::Client method, you can use a vanilla Hash:

{
  text: "BoundedLengthString", # required
  source_language_code: "LanguageCodeString", # required
  target_language_code: "LanguageCodeString", # required
}

Instance Attribute Summary collapse

Instance Attribute Details

#source_language_codeString

One of the supported language codes for the source text. If the TargetLanguageCode is not \"en\", the SourceLanguageCode must be \"en\".

To have Amazon Translate determine the source language of your text, you can specify auto in the SourceLanguageCode field. If you specify auto, Amazon Translate will call Amazon Comprehend to determine the source language.

Returns:

  • (String)

    One of the supported language codes for the source text.

#target_language_codeString

One of the supported language codes for the target text. If the SourceLanguageCode is not \"en\", the TargetLanguageCode must be \"en\".

Returns:

  • (String)

    One of the supported language codes for the target text.

#textString

The text to translate.

Returns:

  • (String)

    The text to translate.