5.0.0 • Published 7 years ago

@datafire/amazonaws_translate v5.0.0

Weekly downloads
3
License
MIT
Repository
github
Last release
7 years ago

@datafire/amazonaws_translate

Client library for Amazon Translate

Installation and Usage

npm install --save @datafire/amazonaws_translate
let amazonaws_translate = require('@datafire/amazonaws_translate').create({
  accessKeyId: "",
  secretAccessKey: "",
  region: ""
});

amazonaws_translate.TranslateText({
  "Text": "",
  "SourceLanguageCode": "",
  "TargetLanguageCode": ""
}).then(data => {
  console.log(data);
});

Description

Provides translation between English and one of six languages, or between one of the six languages and English.

Actions

TranslateText

amazonaws_translate.TranslateText({
  "Text": "",
  "SourceLanguageCode": "",
  "TargetLanguageCode": ""
}, context)

Input

Output

Definitions

BoundedLengthString

  • BoundedLengthString string

InternalServerException

  • InternalServerException object: An internal server error occurred. Retry your request.

InvalidRequestException

  • InvalidRequestException object: The request is invalid.

LanguageCodeString

  • LanguageCodeString string

ServiceUnavailableException

  • ServiceUnavailableException object: Amazon Translate is unavailable. Retry your request later.

String

  • String string

TextSizeLimitExceededException

  • TextSizeLimitExceededException object: The size of the input text exceeds the length constraint for the Text field. Try again with a shorter text.

TooManyRequestsException

  • TooManyRequestsException object: The number of requests exceeds the limit. Resubmit your request later.

TranslateTextRequest

TranslateTextResponse

UnsupportedLanguagePairException

  • UnsupportedLanguagePairException object: Amazon Translate cannot translate input text in the source language into this target language. For more information, see how-to-error-msg.