@datafire/amazonaws_translate
v5.0.0
Published
DataFire integration for Amazon Translate
Downloads
8
Readme
@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
- input
object
- SourceLanguageCode required LanguageCodeString
- TargetLanguageCode required LanguageCodeString
- Text required BoundedLengthString
Output
- output TranslateTextResponse
Definitions
BoundedLengthString
- BoundedLengthString
string
InternalServerException
- InternalServerException
object
: An internal server error occurred. Retry your request.- Message String
InvalidRequestException
- InvalidRequestException
object
: The request is invalid.- Message String
LanguageCodeString
- LanguageCodeString
string
ServiceUnavailableException
- ServiceUnavailableException
object
: Amazon Translate is unavailable. Retry your request later.- Message String
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.- Message String
TooManyRequestsException
- TooManyRequestsException
object
: The number of requests exceeds the limit. Resubmit your request later.- Message String
TranslateTextRequest
- TranslateTextRequest
object
- SourceLanguageCode required LanguageCodeString
- TargetLanguageCode required LanguageCodeString
- Text required BoundedLengthString
TranslateTextResponse
- TranslateTextResponse
object
- SourceLanguageCode required LanguageCodeString
- TargetLanguageCode required LanguageCodeString
- TranslatedText required String
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.- Message String