{-# LANGUAGE OverloadedStrings #-}
module Network.AWS.Rekognition.Types
(
rekognition
, _AccessDeniedException
, _VideoTooLargeException
, _InvalidParameterException
, _InvalidImageFormatException
, _ResourceAlreadyExistsException
, _InvalidS3ObjectException
, _ProvisionedThroughputExceededException
, _ImageTooLargeException
, _ThrottlingException
, _InternalServerError
, _IdempotentParameterMismatchException
, _ResourceNotFoundException
, _InvalidPaginationTokenException
, _LimitExceededException
, _ResourceInUseException
, Attribute (..)
, CelebrityRecognitionSortBy (..)
, ContentModerationSortBy (..)
, EmotionName (..)
, FaceAttributes (..)
, FaceSearchSortBy (..)
, GenderType (..)
, LabelDetectionSortBy (..)
, LandmarkType (..)
, OrientationCorrection (..)
, PersonTrackingSortBy (..)
, StreamProcessorStatus (..)
, TextTypes (..)
, VideoJobStatus (..)
, AgeRange
, ageRange
, arLow
, arHigh
, Beard
, beard
, bValue
, bConfidence
, BoundingBox
, boundingBox
, bbHeight
, bbLeft
, bbWidth
, bbTop
, Celebrity
, celebrity
, cMatchConfidence
, cURLs
, cName
, cId
, cFace
, CelebrityDetail
, celebrityDetail
, cdBoundingBox
, cdURLs
, cdConfidence
, cdName
, cdId
, cdFace
, CelebrityRecognition
, celebrityRecognition
, crCelebrity
, crTimestamp
, CompareFacesMatch
, compareFacesMatch
, cfmSimilarity
, cfmFace
, ComparedFace
, comparedFace
, cfBoundingBox
, cfPose
, cfConfidence
, cfQuality
, cfLandmarks
, ComparedSourceImageFace
, comparedSourceImageFace
, csifBoundingBox
, csifConfidence
, ContentModerationDetection
, contentModerationDetection
, cmdModerationLabel
, cmdTimestamp
, Emotion
, emotion
, eConfidence
, eType
, EyeOpen
, eyeOpen
, eoValue
, eoConfidence
, Eyeglasses
, eyeglasses
, eyeValue
, eyeConfidence
, Face
, face
, fFaceId
, fBoundingBox
, fExternalImageId
, fConfidence
, fImageId
, FaceDetail
, faceDetail
, fdAgeRange
, fdSunglasses
, fdMouthOpen
, fdBoundingBox
, fdEmotions
, fdEyesOpen
, fdPose
, fdConfidence
, fdGender
, fdQuality
, fdEyeglasses
, fdBeard
, fdMustache
, fdSmile
, fdLandmarks
, FaceDetection
, faceDetection
, fdTimestamp
, fdFace
, FaceMatch
, faceMatch
, fmSimilarity
, fmFace
, FaceRecord
, faceRecord
, frFaceDetail
, frFace
, FaceSearchSettings
, faceSearchSettings
, fssFaceMatchThreshold
, fssCollectionId
, Gender
, gender
, gValue
, gConfidence
, Geometry
, geometry
, gBoundingBox
, gPolygon
, Image
, image
, iS3Object
, iBytes
, ImageQuality
, imageQuality
, iqSharpness
, iqBrightness
, KinesisDataStream
, kinesisDataStream
, kdsARN
, KinesisVideoStream
, kinesisVideoStream
, kvsARN
, Label
, label
, lConfidence
, lName
, LabelDetection
, labelDetection
, ldLabel
, ldTimestamp
, Landmark
, landmark
, lType
, lX
, lY
, ModerationLabel
, moderationLabel
, mlConfidence
, mlName
, mlParentName
, MouthOpen
, mouthOpen
, moValue
, moConfidence
, Mustache
, mustache
, mValue
, mConfidence
, NotificationChannel
, notificationChannel
, ncSNSTopicARN
, ncRoleARN
, PersonDetail
, personDetail
, pdBoundingBox
, pdIndex
, pdFace
, PersonDetection
, personDetection
, pdPerson
, pdTimestamp
, PersonMatch
, personMatch
, pmFaceMatches
, pmPerson
, pmTimestamp
, Point
, point
, pX
, pY
, Pose
, pose
, pYaw
, pRoll
, pPitch
, S3Object
, s3Object
, soBucket
, soName
, soVersion
, Smile
, smile
, smiValue
, smiConfidence
, StreamProcessor
, streamProcessor
, spStatus
, spName
, StreamProcessorInput
, streamProcessorInput
, spiKinesisVideoStream
, StreamProcessorOutput
, streamProcessorOutput
, spoKinesisDataStream
, StreamProcessorSettings
, streamProcessorSettings
, spsFaceSearch
, Sunglasses
, sunglasses
, sValue
, sConfidence
, TextDetection
, textDetection
, tdDetectedText
, tdConfidence
, tdGeometry
, tdId
, tdType
, tdParentId
, Video
, video
, vS3Object
, VideoMetadata
, videoMetadata
, vmFrameRate
, vmFormat
, vmCodec
, vmFrameHeight
, vmDurationMillis
, vmFrameWidth
) where
import Network.AWS.Lens
import Network.AWS.Prelude
import Network.AWS.Rekognition.Types.Product
import Network.AWS.Rekognition.Types.Sum
import Network.AWS.Sign.V4
rekognition :: Service
rekognition =
Service
{ _svcAbbrev = "Rekognition"
, _svcSigner = v4
, _svcPrefix = "rekognition"
, _svcVersion = "2016-06-27"
, _svcEndpoint = defaultEndpoint rekognition
, _svcTimeout = Just 70
, _svcCheck = statusSuccess
, _svcError = parseJSONError "Rekognition"
, _svcRetry = retry
}
where
retry =
Exponential
{ _retryBase = 5.0e-2
, _retryGrowth = 2
, _retryAttempts = 5
, _retryCheck = check
}
check e
| has (hasCode "ThrottledException" . hasStatus 400) e =
Just "throttled_exception"
| has (hasStatus 429) e = Just "too_many_requests"
| has (hasCode "ThrottlingException" . hasStatus 400) e =
Just "throttling_exception"
| has (hasCode "Throttling" . hasStatus 400) e = Just "throttling"
| has (hasStatus 504) e = Just "gateway_timeout"
| has (hasCode "RequestThrottledException" . hasStatus 400) e =
Just "request_throttled_exception"
| has (hasStatus 502) e = Just "bad_gateway"
| has (hasStatus 503) e = Just "service_unavailable"
| has (hasStatus 500) e = Just "general_server_error"
| has (hasStatus 509) e = Just "limit_exceeded"
| otherwise = Nothing
_AccessDeniedException :: AsError a => Getting (First ServiceError) a ServiceError
_AccessDeniedException = _MatchServiceError rekognition "AccessDeniedException"
_VideoTooLargeException :: AsError a => Getting (First ServiceError) a ServiceError
_VideoTooLargeException =
_MatchServiceError rekognition "VideoTooLargeException"
_InvalidParameterException :: AsError a => Getting (First ServiceError) a ServiceError
_InvalidParameterException =
_MatchServiceError rekognition "InvalidParameterException"
_InvalidImageFormatException :: AsError a => Getting (First ServiceError) a ServiceError
_InvalidImageFormatException =
_MatchServiceError rekognition "InvalidImageFormatException"
_ResourceAlreadyExistsException :: AsError a => Getting (First ServiceError) a ServiceError
_ResourceAlreadyExistsException =
_MatchServiceError rekognition "ResourceAlreadyExistsException"
_InvalidS3ObjectException :: AsError a => Getting (First ServiceError) a ServiceError
_InvalidS3ObjectException =
_MatchServiceError rekognition "InvalidS3ObjectException"
_ProvisionedThroughputExceededException :: AsError a => Getting (First ServiceError) a ServiceError
_ProvisionedThroughputExceededException =
_MatchServiceError rekognition "ProvisionedThroughputExceededException"
_ImageTooLargeException :: AsError a => Getting (First ServiceError) a ServiceError
_ImageTooLargeException =
_MatchServiceError rekognition "ImageTooLargeException"
_ThrottlingException :: AsError a => Getting (First ServiceError) a ServiceError
_ThrottlingException = _MatchServiceError rekognition "ThrottlingException"
_InternalServerError :: AsError a => Getting (First ServiceError) a ServiceError
_InternalServerError = _MatchServiceError rekognition "InternalServerError"
_IdempotentParameterMismatchException :: AsError a => Getting (First ServiceError) a ServiceError
_IdempotentParameterMismatchException =
_MatchServiceError rekognition "IdempotentParameterMismatchException"
_ResourceNotFoundException :: AsError a => Getting (First ServiceError) a ServiceError
_ResourceNotFoundException =
_MatchServiceError rekognition "ResourceNotFoundException"
_InvalidPaginationTokenException :: AsError a => Getting (First ServiceError) a ServiceError
_InvalidPaginationTokenException =
_MatchServiceError rekognition "InvalidPaginationTokenException"
_LimitExceededException :: AsError a => Getting (First ServiceError) a ServiceError
_LimitExceededException =
_MatchServiceError rekognition "LimitExceededException"
_ResourceInUseException :: AsError a => Getting (First ServiceError) a ServiceError
_ResourceInUseException =
_MatchServiceError rekognition "ResourceInUseException"