module Network.AWS.DataPipeline.Types
(
dataPipeline
, _InvalidRequestException
, _InternalServiceError
, _PipelineDeletedException
, _PipelineNotFoundException
, _TaskNotFoundException
, OperatorType (..)
, TaskStatus (..)
, Field
, field
, fRefValue
, fStringValue
, fKey
, InstanceIdentity
, instanceIdentity
, iiSignature
, iiDocument
, Operator
, operator
, oValues
, oType
, ParameterAttribute
, parameterAttribute
, paKey
, paStringValue
, ParameterObject
, parameterObject
, poId
, poAttributes
, ParameterValue
, parameterValue
, pvId
, pvStringValue
, PipelineDescription
, pipelineDescription
, pdDescription
, pdTags
, pdPipelineId
, pdName
, pdFields
, PipelineIdName
, pipelineIdName
, pinName
, pinId
, PipelineObject
, pipelineObject
, pId
, pName
, pFields
, Query
, query
, qSelectors
, Selector
, selector
, sOperator
, sFieldName
, Tag
, tag
, tagKey
, tagValue
, TaskObject
, taskObject
, toPipelineId
, toAttemptId
, toTaskId
, toObjects
, ValidationError
, validationError
, veId
, veErrors
, ValidationWarning
, validationWarning
, vwWarnings
, vwId
) where
import Network.AWS.DataPipeline.Types.Product
import Network.AWS.DataPipeline.Types.Sum
import Network.AWS.Prelude
import Network.AWS.Sign.V4
dataPipeline :: Service
dataPipeline =
Service
{ _svcAbbrev = "DataPipeline"
, _svcSigner = v4
, _svcPrefix = "datapipeline"
, _svcVersion = "2012-10-29"
, _svcEndpoint = defaultEndpoint dataPipeline
, _svcTimeout = Just 70
, _svcCheck = statusSuccess
, _svcError = parseJSONError
, _svcRetry = retry
}
where
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
_InvalidRequestException :: AsError a => Getting (First ServiceError) a ServiceError
_InvalidRequestException = _ServiceError . hasCode "InvalidRequestException"
_InternalServiceError :: AsError a => Getting (First ServiceError) a ServiceError
_InternalServiceError = _ServiceError . hasCode "InternalServiceError"
_PipelineDeletedException :: AsError a => Getting (First ServiceError) a ServiceError
_PipelineDeletedException = _ServiceError . hasCode "PipelineDeletedException"
_PipelineNotFoundException :: AsError a => Getting (First ServiceError) a ServiceError
_PipelineNotFoundException =
_ServiceError . hasCode "PipelineNotFoundException"
_TaskNotFoundException :: AsError a => Getting (First ServiceError) a ServiceError
_TaskNotFoundException = _ServiceError . hasCode "TaskNotFoundException"