module Network.AWS.CertificateManager.Types
(
certificateManager
, _InvalidTagException
, _InvalidDomainValidationOptionsException
, _TooManyTagsException
, _RequestInProgressException
, _InvalidARNException
, _ResourceNotFoundException
, _InvalidStateException
, _LimitExceededException
, _ResourceInUseException
, CertificateStatus (..)
, KeyAlgorithm (..)
, RevocationReason (..)
, CertificateDetail
, certificateDetail
, cdSubject
, cdStatus
, cdSubjectAlternativeNames
, cdInUseBy
, cdCreatedAt
, cdCertificateARN
, cdSerial
, cdRevokedAt
, cdNotBefore
, cdRevocationReason
, cdDomainName
, cdKeyAlgorithm
, cdIssuedAt
, cdSignatureAlgorithm
, cdDomainValidationOptions
, cdIssuer
, cdNotAfter
, CertificateSummary
, certificateSummary
, csCertificateARN
, csDomainName
, DomainValidation
, domainValidation
, dvValidationEmails
, dvValidationDomain
, dvDomainName
, DomainValidationOption
, domainValidationOption
, dvoDomainName
, dvoValidationDomain
, Tag
, tag
, tagValue
, tagKey
) where
import Network.AWS.CertificateManager.Types.Product
import Network.AWS.CertificateManager.Types.Sum
import Network.AWS.Lens
import Network.AWS.Prelude
import Network.AWS.Sign.V4
certificateManager :: Service
certificateManager =
Service
{ _svcAbbrev = "CertificateManager"
, _svcSigner = v4
, _svcPrefix = "acm"
, _svcVersion = "2015-12-08"
, _svcEndpoint = defaultEndpoint certificateManager
, _svcTimeout = Just 70
, _svcCheck = statusSuccess
, _svcError = parseJSONError "CertificateManager"
, _svcRetry = retry
}
where
retry =
Exponential
{ _retryBase = 5.0e-2
, _retryGrowth = 2
, _retryAttempts = 5
, _retryCheck = check
}
check e
| 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 (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
_InvalidTagException :: AsError a => Getting (First ServiceError) a ServiceError
_InvalidTagException = _ServiceError . hasCode "InvalidTagException"
_InvalidDomainValidationOptionsException :: AsError a => Getting (First ServiceError) a ServiceError
_InvalidDomainValidationOptionsException =
_ServiceError . hasCode "InvalidDomainValidationOptionsException"
_TooManyTagsException :: AsError a => Getting (First ServiceError) a ServiceError
_TooManyTagsException = _ServiceError . hasCode "TooManyTagsException"
_RequestInProgressException :: AsError a => Getting (First ServiceError) a ServiceError
_RequestInProgressException =
_ServiceError . hasCode "RequestInProgressException"
_InvalidARNException :: AsError a => Getting (First ServiceError) a ServiceError
_InvalidARNException = _ServiceError . hasCode "InvalidArnException"
_ResourceNotFoundException :: AsError a => Getting (First ServiceError) a ServiceError
_ResourceNotFoundException =
_ServiceError . hasCode "ResourceNotFoundException"
_InvalidStateException :: AsError a => Getting (First ServiceError) a ServiceError
_InvalidStateException = _ServiceError . hasCode "InvalidStateException"
_LimitExceededException :: AsError a => Getting (First ServiceError) a ServiceError
_LimitExceededException = _ServiceError . hasCode "LimitExceededException"
_ResourceInUseException :: AsError a => Getting (First ServiceError) a ServiceError
_ResourceInUseException = _ServiceError . hasCode "ResourceInUseException"