AWS Translate (version v1.*.*)

delete_terminology

A synchronous action that deletes a custom terminology.

Parameters

$body

Type: object

{
  "Name" : "The name of the custom terminology being deleted. "
}

get_terminology

Retrieves a custom terminology.

Parameters

$body

Type: object

{
  "TerminologyDataFormat" : "The data format of the custom terminology being retrieved, either CSV or TMX.",
  "Name" : "The name of the custom terminology being retrieved."
}

import_terminology

Creates or updates a custom terminology, depending on whether or not one already exists for the given terminology name. Importing a terminology with the same name as an existing one will merge the terminologies based on the chosen merge strategy. Currently, the only supported merge strategy is OVERWRITE, and so the imported terminology will overwrite an existing terminology of the same name. If you import a terminology that overwrites an existing one, the new terminology take up to 10 minutes to fully propagate and be available for use in a translation due to cache policies with the DataPlane service that performs the translations.

Parameters

$body

Type: object

{
  "Description" : "The description of the custom terminology being imported.",
  "MergeStrategy" : "The merge strategy of the custom terminology being imported. Currently, only the OVERWRITE merge strategy is supported. In this case, the imported terminology will overwrite an existing terminology of the same name.",
  "EncryptionKey" : {
    "Type" : "The type of encryption key used by Amazon Translate to encrypt custom terminologies.",
    "Id" : "The Amazon Resource Name (ARN) of the encryption key being used to encrypt the custom terminology."
  },
  "TerminologyData" : {
    "Format" : "The data format of the custom terminology. Either CSV or TMX.",
    "File" : "The file containing the custom terminology data."
  },
  "Name" : "The name of the custom terminology being imported."
}

list_terminologies

Provides a list of custom terminologies associated with your account.

This operation has no parameters

translate_text

Translates input text from the source language to the target language. It is not necessary to use English (en) as either the source or the target language but not all language combinations are supported by Amazon Translate. For more information, see Supported Language Pairs.
Arabic (ar)
Chinese (Simplified) (zh)
Chinese (Traditional) (zh-TW)
Czech (cs)
Danish (da)
Dutch (nl)
English (en)
Finnish (fi)
French (fr)
German (de)
Hebrew (he)
Indonesian (id)
Italian (it)
Japanese (ja)
Korean (ko)
Polish (pl)
Portuguese (pt)
Russian (ru)
Spanish (es)
Swedish (sv)
Turkish (tr)
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.

Parameters

$body

Type: object

{
  "Text" : "The text to translate. The text string can be a maximum of 5,000 bytes long. Depending on your character set, this may be fewer than 5,000 characters.",
  "TargetLanguageCode" : "The language code requested for the language of the target text. The language must be a language supported by Amazon Translate.",
  "TerminologyNames" : [ "string" ],
  "SourceLanguageCode" : "The language code for the language of the source text. The language must be a language supported by Amazon Translate.  \nTo 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."
}