module Network.AWS.Route53.Types
(
route53
, _HealthCheckVersionMismatch
, _InvalidInput
, _HostedZoneNotEmpty
, _InvalidArgument
, _DelegationSetAlreadyReusable
, _PriorRequestNotComplete
, _InvalidChangeBatch
, _InvalidDomainName
, _DelegationSetNotReusable
, _HealthCheckAlreadyExists
, _HostedZoneNotFound
, _DelegationSetInUse
, _NoSuchDelegationSet
, _NoSuchGeoLocation
, _DelegationSetNotAvailable
, _VPCAssociationNotFound
, _ThrottlingException
, _NoSuchChange
, _LimitsExceeded
, _IncompatibleVersion
, _NoSuchHostedZone
, _TooManyHostedZones
, _PublicZoneVPCAssociation
, _ConflictingDomainExists
, _LastVPCAssociation
, _HealthCheckInUse
, _DelegationSetAlreadyCreated
, _TooManyHealthChecks
, _NoSuchHealthCheck
, _HostedZoneAlreadyExists
, _InvalidVPCId
, module Network.AWS.Route53.Internal
, ChangeAction (..)
, ChangeStatus (..)
, Failover (..)
, HealthCheckType (..)
, RecordType (..)
, TagResourceType (..)
, VPCRegion (..)
, AliasTarget
, aliasTarget
, atHostedZoneId
, atDNSName
, atEvaluateTargetHealth
, Change
, change
, cAction
, cResourceRecordSet
, ChangeBatch
, changeBatch
, cbComment
, cbChanges
, ChangeInfo
, changeInfo
, ciComment
, ciId
, ciStatus
, ciSubmittedAt
, DelegationSet
, delegationSet
, dsId
, dsCallerReference
, dsNameServers
, GeoLocation
, geoLocation
, glSubdivisionCode
, glCountryCode
, glContinentCode
, GeoLocationDetails
, geoLocationDetails
, gldSubdivisionName
, gldSubdivisionCode
, gldCountryName
, gldCountryCode
, gldContinentCode
, gldContinentName
, HealthCheck
, healthCheck
, hcId
, hcCallerReference
, hcHealthCheckConfig
, hcHealthCheckVersion
, HealthCheckConfig
, healthCheckConfig
, hccIPAddress
, hccFailureThreshold
, hccSearchString
, hccResourcePath
, hccFullyQualifiedDomainName
, hccRequestInterval
, hccPort
, hccType
, HealthCheckObservation
, healthCheckObservation
, hcoIPAddress
, hcoStatusReport
, HostedZone
, hostedZone
, hzConfig
, hzResourceRecordSetCount
, hzId
, hzName
, hzCallerReference
, HostedZoneConfig
, hostedZoneConfig
, hzcPrivateZone
, hzcComment
, ResourceRecord
, resourceRecord
, rrValue
, ResourceRecordSet
, resourceRecordSet
, rrsResourceRecords
, rrsTTL
, rrsAliasTarget
, rrsWeight
, rrsSetIdentifier
, rrsFailover
, rrsHealthCheckId
, rrsRegion
, rrsGeoLocation
, rrsName
, rrsType
, ResourceTagSet
, resourceTagSet
, rtsResourceId
, rtsResourceType
, rtsTags
, StatusReport
, statusReport
, srStatus
, srCheckedTime
, Tag
, tag
, tagValue
, tagKey
, VPC
, vpc
, vpcVPCRegion
, vpcVPCId
) where
import Network.AWS.Prelude
import Network.AWS.Route53.Internal
import Network.AWS.Route53.Types.Product
import Network.AWS.Route53.Types.Sum
import Network.AWS.Sign.V4
route53 :: Service
route53 =
Service
{ _svcAbbrev = "Route53"
, _svcSigner = v4
, _svcPrefix = "route53"
, _svcVersion = "2013-04-01"
, _svcEndpoint = defaultEndpoint route53
, _svcTimeout = Just 70
, _svcCheck = statusSuccess
, _svcError = parseXMLError
, _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
_HealthCheckVersionMismatch :: AsError a => Getting (First ServiceError) a ServiceError
_HealthCheckVersionMismatch =
_ServiceError . hasStatus 409 . hasCode "HealthCheckVersionMismatch"
_InvalidInput :: AsError a => Getting (First ServiceError) a ServiceError
_InvalidInput = _ServiceError . hasStatus 400 . hasCode "InvalidInput"
_HostedZoneNotEmpty :: AsError a => Getting (First ServiceError) a ServiceError
_HostedZoneNotEmpty =
_ServiceError . hasStatus 400 . hasCode "HostedZoneNotEmpty"
_InvalidArgument :: AsError a => Getting (First ServiceError) a ServiceError
_InvalidArgument = _ServiceError . hasCode "InvalidArgument"
_DelegationSetAlreadyReusable :: AsError a => Getting (First ServiceError) a ServiceError
_DelegationSetAlreadyReusable =
_ServiceError . hasCode "DelegationSetAlreadyReusable"
_PriorRequestNotComplete :: AsError a => Getting (First ServiceError) a ServiceError
_PriorRequestNotComplete =
_ServiceError . hasStatus 400 . hasCode "PriorRequestNotComplete"
_InvalidChangeBatch :: AsError a => Getting (First ServiceError) a ServiceError
_InvalidChangeBatch = _ServiceError . hasCode "InvalidChangeBatch"
_InvalidDomainName :: AsError a => Getting (First ServiceError) a ServiceError
_InvalidDomainName =
_ServiceError . hasStatus 400 . hasCode "InvalidDomainName"
_DelegationSetNotReusable :: AsError a => Getting (First ServiceError) a ServiceError
_DelegationSetNotReusable = _ServiceError . hasCode "DelegationSetNotReusable"
_HealthCheckAlreadyExists :: AsError a => Getting (First ServiceError) a ServiceError
_HealthCheckAlreadyExists =
_ServiceError . hasStatus 409 . hasCode "HealthCheckAlreadyExists"
_HostedZoneNotFound :: AsError a => Getting (First ServiceError) a ServiceError
_HostedZoneNotFound = _ServiceError . hasCode "HostedZoneNotFound"
_DelegationSetInUse :: AsError a => Getting (First ServiceError) a ServiceError
_DelegationSetInUse = _ServiceError . hasCode "DelegationSetInUse"
_NoSuchDelegationSet :: AsError a => Getting (First ServiceError) a ServiceError
_NoSuchDelegationSet = _ServiceError . hasCode "NoSuchDelegationSet"
_NoSuchGeoLocation :: AsError a => Getting (First ServiceError) a ServiceError
_NoSuchGeoLocation =
_ServiceError . hasStatus 404 . hasCode "NoSuchGeoLocation"
_DelegationSetNotAvailable :: AsError a => Getting (First ServiceError) a ServiceError
_DelegationSetNotAvailable =
_ServiceError . hasCode "DelegationSetNotAvailable"
_VPCAssociationNotFound :: AsError a => Getting (First ServiceError) a ServiceError
_VPCAssociationNotFound =
_ServiceError . hasStatus 404 . hasCode "VPCAssociationNotFound"
_ThrottlingException :: AsError a => Getting (First ServiceError) a ServiceError
_ThrottlingException =
_ServiceError . hasStatus 400 . hasCode "ThrottlingException"
_NoSuchChange :: AsError a => Getting (First ServiceError) a ServiceError
_NoSuchChange = _ServiceError . hasStatus 404 . hasCode "NoSuchChange"
_LimitsExceeded :: AsError a => Getting (First ServiceError) a ServiceError
_LimitsExceeded = _ServiceError . hasCode "LimitsExceeded"
_IncompatibleVersion :: AsError a => Getting (First ServiceError) a ServiceError
_IncompatibleVersion =
_ServiceError . hasStatus 400 . hasCode "IncompatibleVersion"
_NoSuchHostedZone :: AsError a => Getting (First ServiceError) a ServiceError
_NoSuchHostedZone = _ServiceError . hasStatus 404 . hasCode "NoSuchHostedZone"
_TooManyHostedZones :: AsError a => Getting (First ServiceError) a ServiceError
_TooManyHostedZones =
_ServiceError . hasStatus 400 . hasCode "TooManyHostedZones"
_PublicZoneVPCAssociation :: AsError a => Getting (First ServiceError) a ServiceError
_PublicZoneVPCAssociation =
_ServiceError . hasStatus 400 . hasCode "PublicZoneVPCAssociation"
_ConflictingDomainExists :: AsError a => Getting (First ServiceError) a ServiceError
_ConflictingDomainExists = _ServiceError . hasCode "ConflictingDomainExists"
_LastVPCAssociation :: AsError a => Getting (First ServiceError) a ServiceError
_LastVPCAssociation =
_ServiceError . hasStatus 400 . hasCode "LastVPCAssociation"
_HealthCheckInUse :: AsError a => Getting (First ServiceError) a ServiceError
_HealthCheckInUse = _ServiceError . hasStatus 400 . hasCode "HealthCheckInUse"
_DelegationSetAlreadyCreated :: AsError a => Getting (First ServiceError) a ServiceError
_DelegationSetAlreadyCreated =
_ServiceError . hasCode "DelegationSetAlreadyCreated"
_TooManyHealthChecks :: AsError a => Getting (First ServiceError) a ServiceError
_TooManyHealthChecks = _ServiceError . hasCode "TooManyHealthChecks"
_NoSuchHealthCheck :: AsError a => Getting (First ServiceError) a ServiceError
_NoSuchHealthCheck =
_ServiceError . hasStatus 404 . hasCode "NoSuchHealthCheck"
_HostedZoneAlreadyExists :: AsError a => Getting (First ServiceError) a ServiceError
_HostedZoneAlreadyExists =
_ServiceError . hasStatus 409 . hasCode "HostedZoneAlreadyExists"
_InvalidVPCId :: AsError a => Getting (First ServiceError) a ServiceError
_InvalidVPCId = _ServiceError . hasStatus 400 . hasCode "InvalidVPCId"