amazonka-translate-1.6.0: Amazon Translate SDK.

Copyright(c) 2013-2018 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay <brendan.g.hay+amazonka@gmail.com>
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellNone
LanguageHaskell2010

Network.AWS.Translate

Contents

Description

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

Synopsis

Service Configuration

translate :: Service Source #

API version 2017-07-01 of the Amazon Translate SDK configuration.

Errors

Error matchers are designed for use with the functions provided by Control.Exception.Lens. This allows catching (and rethrowing) service specific errors returned by Translate.

InvalidRequestException

UnsupportedLanguagePairException

_UnsupportedLanguagePairException :: AsError a => Getting (First ServiceError) a ServiceError Source #

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

DetectedLanguageLowConfidenceException

_DetectedLanguageLowConfidenceException :: AsError a => Getting (First ServiceError) a ServiceError Source #

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 DetectDominantLanguage operation in the Amazon Comprehend Developer Guide .

TooManyRequestsException

_TooManyRequestsException :: AsError a => Getting (First ServiceError) a ServiceError Source #

The number of requests exceeds the limit. Resubmit your request later.

InternalServerException

_InternalServerException :: AsError a => Getting (First ServiceError) a ServiceError Source #

An internal server error occurred. Retry your request.

ServiceUnavailableException

_ServiceUnavailableException :: AsError a => Getting (First ServiceError) a ServiceError Source #

Amazon Translate is unavailable. Retry your request later.

TextSizeLimitExceededException

_TextSizeLimitExceededException :: AsError a => Getting (First ServiceError) a ServiceError Source #

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

Waiters

Waiters poll by repeatedly sending a request until some remote success condition configured by the Wait specification is fulfilled. The Wait specification determines how many attempts should be made, in addition to delay and retry strategies.

Operations

Some AWS operations return results that are incomplete and require subsequent requests in order to obtain the entire result set. The process of sending subsequent requests to continue where a previous request left off is called pagination. For example, the ListObjects operation of Amazon S3 returns up to 1000 objects at a time, and you must send subsequent requests with the appropriate Marker in order to retrieve the next page of results.

Operations that have an AWSPager instance can transparently perform subsequent requests, correctly setting Markers and other request facets to iterate through the entire result set of a truncated API operation. Operations which support this have an additional note in the documentation.

Many operations have the ability to filter results on the server side. See the individual operation parameters for details.

TranslateText

Types