module Network.AWS.CodeCommit.Types
(
CodeCommit
, _InvalidContinuationTokenException
, _EncryptionKeyNotFoundException
, _RepositoryNameExistsException
, _MaximumRepositoryNamesExceededException
, _InvalidRepositoryDescriptionException
, _BranchNameRequiredException
, _InvalidBranchNameException
, _EncryptionKeyUnavailableException
, _InvalidOrderException
, _BranchDoesNotExistException
, _RepositoryNamesRequiredException
, _RepositoryDoesNotExistException
, _EncryptionIntegrityChecksFailedException
, _EncryptionKeyAccessDeniedException
, _BranchNameExistsException
, _EncryptionKeyDisabledException
, _InvalidSortByException
, _CommitIdRequiredException
, _InvalidCommitIdException
, _CommitDoesNotExistException
, _RepositoryLimitExceededException
, _InvalidRepositoryNameException
, _RepositoryNameRequiredException
, OrderEnum (..)
, SortByEnum (..)
, BranchInfo
, branchInfo
, biCommitId
, biBranchName
, RepositoryMetadata
, repositoryMetadata
, rmRepositoryDescription
, rmLastModifiedDate
, rmARN
, rmCloneURLHTTP
, rmAccountId
, rmDefaultBranch
, rmRepositoryId
, rmCreationDate
, rmRepositoryName
, rmCloneURLSSH
, RepositoryNameIdPair
, repositoryNameIdPair
, rnipRepositoryId
, rnipRepositoryName
) where
import Network.AWS.CodeCommit.Types.Product
import Network.AWS.CodeCommit.Types.Sum
import Network.AWS.Prelude
import Network.AWS.Sign.V4
data CodeCommit
instance AWSService CodeCommit where
type Sg CodeCommit = V4
service = const svc
where
svc =
Service
{ _svcAbbrev = "CodeCommit"
, _svcPrefix = "codecommit"
, _svcVersion = "2015-04-13"
, _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
_InvalidContinuationTokenException :: AsError a => Getting (First ServiceError) a ServiceError
_InvalidContinuationTokenException =
_ServiceError . hasCode "InvalidContinuationTokenException"
_EncryptionKeyNotFoundException :: AsError a => Getting (First ServiceError) a ServiceError
_EncryptionKeyNotFoundException =
_ServiceError . hasCode "EncryptionKeyNotFoundException"
_RepositoryNameExistsException :: AsError a => Getting (First ServiceError) a ServiceError
_RepositoryNameExistsException =
_ServiceError . hasCode "RepositoryNameExistsException"
_MaximumRepositoryNamesExceededException :: AsError a => Getting (First ServiceError) a ServiceError
_MaximumRepositoryNamesExceededException =
_ServiceError . hasCode "MaximumRepositoryNamesExceededException"
_InvalidRepositoryDescriptionException :: AsError a => Getting (First ServiceError) a ServiceError
_InvalidRepositoryDescriptionException =
_ServiceError . hasCode "InvalidRepositoryDescriptionException"
_BranchNameRequiredException :: AsError a => Getting (First ServiceError) a ServiceError
_BranchNameRequiredException =
_ServiceError . hasCode "BranchNameRequiredException"
_InvalidBranchNameException :: AsError a => Getting (First ServiceError) a ServiceError
_InvalidBranchNameException =
_ServiceError . hasCode "InvalidBranchNameException"
_EncryptionKeyUnavailableException :: AsError a => Getting (First ServiceError) a ServiceError
_EncryptionKeyUnavailableException =
_ServiceError . hasCode "EncryptionKeyUnavailableException"
_InvalidOrderException :: AsError a => Getting (First ServiceError) a ServiceError
_InvalidOrderException = _ServiceError . hasCode "InvalidOrderException"
_BranchDoesNotExistException :: AsError a => Getting (First ServiceError) a ServiceError
_BranchDoesNotExistException =
_ServiceError . hasCode "BranchDoesNotExistException"
_RepositoryNamesRequiredException :: AsError a => Getting (First ServiceError) a ServiceError
_RepositoryNamesRequiredException =
_ServiceError . hasCode "RepositoryNamesRequiredException"
_RepositoryDoesNotExistException :: AsError a => Getting (First ServiceError) a ServiceError
_RepositoryDoesNotExistException =
_ServiceError . hasCode "RepositoryDoesNotExistException"
_EncryptionIntegrityChecksFailedException :: AsError a => Getting (First ServiceError) a ServiceError
_EncryptionIntegrityChecksFailedException =
_ServiceError . hasCode "EncryptionIntegrityChecksFailedException"
_EncryptionKeyAccessDeniedException :: AsError a => Getting (First ServiceError) a ServiceError
_EncryptionKeyAccessDeniedException =
_ServiceError . hasCode "EncryptionKeyAccessDeniedException"
_BranchNameExistsException :: AsError a => Getting (First ServiceError) a ServiceError
_BranchNameExistsException =
_ServiceError . hasCode "BranchNameExistsException"
_EncryptionKeyDisabledException :: AsError a => Getting (First ServiceError) a ServiceError
_EncryptionKeyDisabledException =
_ServiceError . hasCode "EncryptionKeyDisabledException"
_InvalidSortByException :: AsError a => Getting (First ServiceError) a ServiceError
_InvalidSortByException = _ServiceError . hasCode "InvalidSortByException"
_CommitIdRequiredException :: AsError a => Getting (First ServiceError) a ServiceError
_CommitIdRequiredException =
_ServiceError . hasCode "CommitIdRequiredException"
_InvalidCommitIdException :: AsError a => Getting (First ServiceError) a ServiceError
_InvalidCommitIdException = _ServiceError . hasCode "InvalidCommitIdException"
_CommitDoesNotExistException :: AsError a => Getting (First ServiceError) a ServiceError
_CommitDoesNotExistException =
_ServiceError . hasCode "CommitDoesNotExistException"
_RepositoryLimitExceededException :: AsError a => Getting (First ServiceError) a ServiceError
_RepositoryLimitExceededException =
_ServiceError . hasCode "RepositoryLimitExceededException"
_InvalidRepositoryNameException :: AsError a => Getting (First ServiceError) a ServiceError
_InvalidRepositoryNameException =
_ServiceError . hasCode "InvalidRepositoryNameException"
_RepositoryNameRequiredException :: AsError a => Getting (First ServiceError) a ServiceError
_RepositoryNameRequiredException =
_ServiceError . hasCode "RepositoryNameRequiredException"