module Network.AWS.ElasticTranscoder.Types
(
ElasticTranscoder
, _ValidationException
, _IncompatibleVersionException
, _AccessDeniedException
, _InternalServiceException
, _ResourceNotFoundException
, _ResourceInUseException
, _LimitExceededException
, Artwork
, artwork
, aSizingPolicy
, aMaxHeight
, aAlbumArtFormat
, aInputKey
, aPaddingPolicy
, aEncryption
, aMaxWidth
, AudioCodecOptions
, audioCodecOptions
, acoBitDepth
, acoSigned
, acoProfile
, acoBitOrder
, AudioParameters
, audioParameters
, apChannels
, apCodec
, apAudioPackingMode
, apSampleRate
, apBitRate
, apCodecOptions
, CaptionFormat
, captionFormat
, cfPattern
, cfFormat
, cfEncryption
, CaptionSource
, captionSource
, csTimeOffset
, csKey
, csEncryption
, csLanguage
, csLabel
, Captions
, captions
, cMergePolicy
, cCaptionSources
, cCaptionFormats
, Clip
, clip
, cTimeSpan
, CreateJobOutput
, createJobOutput
, cjoThumbnailPattern
, cjoCaptions
, cjoPresetId
, cjoComposition
, cjoAlbumArt
, cjoWatermarks
, cjoKey
, cjoEncryption
, cjoSegmentDuration
, cjoThumbnailEncryption
, cjoRotate
, CreateJobPlaylist
, createJobPlaylist
, cjpPlayReadyDrm
, cjpOutputKeys
, cjpFormat
, cjpName
, cjpHlsContentProtection
, DetectedProperties
, detectedProperties
, dpHeight
, dpFrameRate
, dpFileSize
, dpWidth
, dpDurationMillis
, Encryption
, encryption
, eKeyMD5
, eMode
, eKey
, eInitializationVector
, HlsContentProtection
, hlsContentProtection
, hcpKeyMD5
, hcpKeyStoragePolicy
, hcpKey
, hcpMethod
, hcpLicenseAcquisitionURL
, hcpInitializationVector
, Job'
, job'
, jStatus
, jPipelineId
, jARN
, jInput
, jOutputs
, jUserMetadata
, jOutput
, jId
, jPlaylists
, jTiming
, jOutputKeyPrefix
, JobAlbumArt
, jobAlbumArt
, jaaMergePolicy
, jaaArtwork
, JobInput
, jobInput
, jiFrameRate
, jiResolution
, jiAspectRatio
, jiKey
, jiDetectedProperties
, jiEncryption
, jiContainer
, jiInterlaced
, JobOutput
, jobOutput
, joAppliedColorSpaceConversion
, joStatus
, joThumbnailPattern
, joHeight
, joFrameRate
, joCaptions
, joPresetId
, joComposition
, joAlbumArt
, joFileSize
, joWatermarks
, joWidth
, joKey
, joEncryption
, joId
, joSegmentDuration
, joStatusDetail
, joDurationMillis
, joThumbnailEncryption
, joDuration
, joRotate
, JobWatermark
, jobWatermark
, jwPresetWatermarkId
, jwInputKey
, jwEncryption
, Notifications
, notifications
, nError
, nWarning
, nCompleted
, nProgressing
, Permission
, permission
, pAccess
, pGranteeType
, pGrantee
, Pipeline
, pipeline
, pipStatus
, pipARN
, pipInputBucket
, pipContentConfig
, pipOutputBucket
, pipRole
, pipName
, pipAWSKMSKeyARN
, pipId
, pipThumbnailConfig
, pipNotifications
, PipelineOutputConfig
, pipelineOutputConfig
, pocBucket
, pocStorageClass
, pocPermissions
, PlayReadyDrm
, playReadyDrm
, prdKeyId
, prdKeyMD5
, prdFormat
, prdKey
, prdLicenseAcquisitionURL
, prdInitializationVector
, Playlist
, playlist
, pPlayReadyDrm
, pStatus
, pOutputKeys
, pFormat
, pName
, pHlsContentProtection
, pStatusDetail
, Preset
, preset
, preARN
, preVideo
, preName
, preThumbnails
, preContainer
, preId
, preType
, preAudio
, preDescription
, PresetWatermark
, presetWatermark
, pwVerticalAlign
, pwSizingPolicy
, pwMaxHeight
, pwHorizontalOffset
, pwOpacity
, pwVerticalOffset
, pwMaxWidth
, pwId
, pwHorizontalAlign
, pwTarget
, Thumbnails
, thumbnails
, tSizingPolicy
, tFormat
, tMaxHeight
, tResolution
, tPaddingPolicy
, tAspectRatio
, tInterval
, tMaxWidth
, TimeSpan
, timeSpan
, tsStartTime
, tsDuration
, Timing
, timing
, tSubmitTimeMillis
, tFinishTimeMillis
, tStartTimeMillis
, VideoParameters
, videoParameters
, vpKeyframesMaxDist
, vpFrameRate
, vpSizingPolicy
, vpMaxFrameRate
, vpMaxHeight
, vpDisplayAspectRatio
, vpWatermarks
, vpCodec
, vpResolution
, vpPaddingPolicy
, vpAspectRatio
, vpMaxWidth
, vpBitRate
, vpFixedGOP
, vpCodecOptions
, Warning
, warning
, wCode
, wMessage
) where
import Network.AWS.ElasticTranscoder.Types.Product
import Network.AWS.ElasticTranscoder.Types.Sum
import Network.AWS.Prelude
import Network.AWS.Sign.V4
data ElasticTranscoder
instance AWSService ElasticTranscoder where
type Sg ElasticTranscoder = V4
service = const svc
where
svc =
Service
{ _svcAbbrev = "ElasticTranscoder"
, _svcPrefix = "elastictranscoder"
, _svcVersion = "2012-09-25"
, _svcEndpoint = defaultEndpoint svc
, _svcTimeout = Just 70
, _svcStatus = statusSuccess
, _svcError = parseJSONError
, _svcRetry = retry
}
retry =
Exponential
{ _retryBase = 5.0e-2
, _retryGrowth = 2
, _retryAttempts = 5
, _retryCheck = check
}
check e
| has (hasCode "ThrottlingException" . hasStatus 400) e =
Just "throttling_exception"
| has (hasCode "Throttling" . hasStatus 400) e = Just "throttling"
| has (hasStatus 503) e = Just "service_unavailable"
| has (hasStatus 500) e = Just "general_server_error"
| has (hasStatus 509) e = Just "limit_exceeded"
| otherwise = Nothing
_ValidationException :: AsError a => Getting (First ServiceError) a ServiceError
_ValidationException =
_ServiceError . hasStatus 400 . hasCode "ValidationException"
_IncompatibleVersionException :: AsError a => Getting (First ServiceError) a ServiceError
_IncompatibleVersionException =
_ServiceError . hasStatus 400 . hasCode "IncompatibleVersionException"
_AccessDeniedException :: AsError a => Getting (First ServiceError) a ServiceError
_AccessDeniedException =
_ServiceError . hasStatus 403 . hasCode "AccessDeniedException"
_InternalServiceException :: AsError a => Getting (First ServiceError) a ServiceError
_InternalServiceException = _ServiceError . hasCode "InternalServiceException"
_ResourceNotFoundException :: AsError a => Getting (First ServiceError) a ServiceError
_ResourceNotFoundException =
_ServiceError . hasStatus 404 . hasCode "ResourceNotFoundException"
_ResourceInUseException :: AsError a => Getting (First ServiceError) a ServiceError
_ResourceInUseException =
_ServiceError . hasStatus 409 . hasCode "ResourceInUseException"
_LimitExceededException :: AsError a => Getting (First ServiceError) a ServiceError
_LimitExceededException =
_ServiceError . hasStatus 429 . hasCode "LimitExceededException"