Vendor aws-sdk-go (dep ensure) (#178)

This commit is contained in:
Onur Filiz
2018-04-27 18:18:36 -07:00
committed by Robbie Zhang
parent 228a1f7a5f
commit 8d67098d06
2785 changed files with 1973570 additions and 25 deletions

View File

@@ -0,0 +1,128 @@
{
"version":"2.0",
"metadata":{
"apiVersion":"2017-07-01",
"endpointPrefix":"translate",
"jsonVersion":"1.1",
"protocol":"json",
"serviceFullName":"Amazon Translate",
"serviceId":"Translate",
"signatureVersion":"v4",
"signingName":"translate",
"targetPrefix":"AWSShineFrontendService_20170701",
"uid":"translate-2017-07-01"
},
"operations":{
"TranslateText":{
"name":"TranslateText",
"http":{
"method":"POST",
"requestUri":"/"
},
"input":{"shape":"TranslateTextRequest"},
"output":{"shape":"TranslateTextResponse"},
"errors":[
{"shape":"InvalidRequestException"},
{"shape":"TextSizeLimitExceededException"},
{"shape":"TooManyRequestsException"},
{"shape":"UnsupportedLanguagePairException"},
{"shape":"DetectedLanguageLowConfidenceException"},
{"shape":"InternalServerException"},
{"shape":"ServiceUnavailableException"}
]
}
},
"shapes":{
"BoundedLengthString":{
"type":"string",
"max":5000,
"min":1
},
"DetectedLanguageLowConfidenceException":{
"type":"structure",
"members":{
"Message":{"shape":"String"},
"DetectedLanguageCode":{"shape":"LanguageCodeString"}
},
"exception":true
},
"InternalServerException":{
"type":"structure",
"members":{
"Message":{"shape":"String"}
},
"exception":true,
"fault":true
},
"InvalidRequestException":{
"type":"structure",
"members":{
"Message":{"shape":"String"}
},
"exception":true
},
"LanguageCodeString":{
"type":"string",
"max":5,
"min":2
},
"ServiceUnavailableException":{
"type":"structure",
"members":{
"Message":{"shape":"String"}
},
"exception":true
},
"String":{
"type":"string",
"min":1
},
"TextSizeLimitExceededException":{
"type":"structure",
"members":{
"Message":{"shape":"String"}
},
"exception":true
},
"TooManyRequestsException":{
"type":"structure",
"members":{
"Message":{"shape":"String"}
},
"exception":true
},
"TranslateTextRequest":{
"type":"structure",
"required":[
"Text",
"SourceLanguageCode",
"TargetLanguageCode"
],
"members":{
"Text":{"shape":"BoundedLengthString"},
"SourceLanguageCode":{"shape":"LanguageCodeString"},
"TargetLanguageCode":{"shape":"LanguageCodeString"}
}
},
"TranslateTextResponse":{
"type":"structure",
"required":[
"TranslatedText",
"SourceLanguageCode",
"TargetLanguageCode"
],
"members":{
"TranslatedText":{"shape":"String"},
"SourceLanguageCode":{"shape":"LanguageCodeString"},
"TargetLanguageCode":{"shape":"LanguageCodeString"}
}
},
"UnsupportedLanguagePairException":{
"type":"structure",
"members":{
"Message":{"shape":"String"}
},
"exception":true
}
}
}

View File

@@ -0,0 +1,83 @@
{
"version": "2.0",
"service": "<p>Provides translation between English and one of six languages, or between one of the six languages and English.</p>",
"operations": {
"TranslateText": "<p>Translates input text from the source language to the target language. You can translate between English (en) and one of the following languages, or between one of the following languages and English.</p> <ul> <li> <p>Arabic (ar)</p> </li> <li> <p>Chinese (Simplified) (zh)</p> </li> <li> <p>French (fr)</p> </li> <li> <p>German (de)</p> </li> <li> <p>Portuguese (pt)</p> </li> <li> <p>Spanish (es)</p> </li> </ul> <p>To have Amazon Translate determine the source language of your text, you can specify <code>auto</code> in the <code>SourceLanguageCode</code> field. If you specify <code>auto</code>, Amazon Translate will call Amazon Comprehend to determine the source language.</p>"
},
"shapes": {
"BoundedLengthString": {
"base": null,
"refs": {
"TranslateTextRequest$Text": "<p>The text to translate.</p>"
}
},
"DetectedLanguageLowConfidenceException": {
"base": "<p>The confidence that Amazon Comprehend accurately detected the source language is low. If a low confidence level is acceptable for your application, you can use the language in the exception to call Amazon Translate again. For more information, see the <a href=\"https://docs.aws.amazon.com/comprehend/latest/dg/API_DetectDominantLanguage.html\">DetectDominantLanguage</a> operation in the <i>Amazon Comprehend Developer Guide</i>.</p>",
"refs": {
}
},
"InternalServerException": {
"base": "<p>An internal server error occurred. Retry your request.</p>",
"refs": {
}
},
"InvalidRequestException": {
"base": "<p>The request is invalid.</p>",
"refs": {
}
},
"LanguageCodeString": {
"base": null,
"refs": {
"DetectedLanguageLowConfidenceException$DetectedLanguageCode": "<p>Auto detected language code from Comprehend.</p>",
"TranslateTextRequest$SourceLanguageCode": "<p>One of the supported language codes for the source text. If the <code>TargetLanguageCode</code> is not \"en\", the <code>SourceLanguageCode</code> must be \"en\".</p> <p>To have Amazon Translate determine the source language of your text, you can specify <code>auto</code> in the <code>SourceLanguageCode</code> field. If you specify <code>auto</code>, Amazon Translate will call Amazon Comprehend to determine the source language.</p>",
"TranslateTextRequest$TargetLanguageCode": "<p>One of the supported language codes for the target text. If the <code>SourceLanguageCode</code> is not \"en\", the <code>TargetLanguageCode</code> must be \"en\".</p>",
"TranslateTextResponse$SourceLanguageCode": "<p>The language code for the language of the input text. </p>",
"TranslateTextResponse$TargetLanguageCode": "<p>The language code for the language of the translated text. </p>"
}
},
"ServiceUnavailableException": {
"base": "<p>Amazon Translate is unavailable. Retry your request later.</p>",
"refs": {
}
},
"String": {
"base": null,
"refs": {
"DetectedLanguageLowConfidenceException$Message": null,
"InternalServerException$Message": null,
"InvalidRequestException$Message": null,
"ServiceUnavailableException$Message": null,
"TextSizeLimitExceededException$Message": null,
"TooManyRequestsException$Message": null,
"TranslateTextResponse$TranslatedText": "<p>The text translated into the target language.</p>",
"UnsupportedLanguagePairException$Message": null
}
},
"TextSizeLimitExceededException": {
"base": "<p>The size of the input text exceeds the length constraint for the <code>Text</code> field. Try again with a shorter text. </p>",
"refs": {
}
},
"TooManyRequestsException": {
"base": "<p>The number of requests exceeds the limit. Resubmit your request later.</p>",
"refs": {
}
},
"TranslateTextRequest": {
"base": null,
"refs": {
}
},
"TranslateTextResponse": {
"base": null,
"refs": {
}
},
"UnsupportedLanguagePairException": {
"base": "<p>Amazon Translate cannot translate input text in the source language into this target language. For more information, see <a>how-to-error-msg</a>. </p>",
"refs": {
}
}
}
}

View File

@@ -0,0 +1,5 @@
{
"version": "1.0",
"examples": {
}
}

View File

@@ -0,0 +1,4 @@
{
"pagination": {
}
}