{-# LANGUAGE DisambiguateRecordFields #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE StrictData #-}
{-# LANGUAGE NoImplicitPrelude #-}
{-# OPTIONS_GHC -fno-warn-unused-matches #-}
module Amazonka.ChimeSdkVoice.Types
(
defaultService,
_AccessDeniedException,
_BadRequestException,
_ConflictException,
_ForbiddenException,
_NotFoundException,
_ResourceLimitExceededException,
_ServiceFailureException,
_ServiceUnavailableException,
_ThrottledClientException,
_UnauthorizedClientException,
AlexaSkillStatus (..),
CallingNameStatus (..),
Capability (..),
ErrorCode (..),
GeoMatchLevel (..),
NotificationTarget (..),
NumberSelectionBehavior (..),
OrderedPhoneNumberStatus (..),
OriginationRouteProtocol (..),
PhoneNumberAssociationName (..),
PhoneNumberOrderStatus (..),
PhoneNumberOrderType (..),
PhoneNumberProductType (..),
PhoneNumberStatus (..),
PhoneNumberType (..),
ProxySessionStatus (..),
SipRuleTriggerType (..),
VoiceConnectorAwsRegion (..),
Address (..),
newAddress,
address_city,
address_country,
address_postDirectional,
address_postalCode,
address_postalCodePlus4,
address_preDirectional,
address_state,
address_streetName,
address_streetNumber,
address_streetSuffix,
CandidateAddress (..),
newCandidateAddress,
candidateAddress_city,
candidateAddress_country,
candidateAddress_postalCode,
candidateAddress_postalCodePlus4,
candidateAddress_state,
candidateAddress_streetInfo,
candidateAddress_streetNumber,
Credential (..),
newCredential,
credential_password,
credential_username,
DNISEmergencyCallingConfiguration (..),
newDNISEmergencyCallingConfiguration,
dNISEmergencyCallingConfiguration_testPhoneNumber,
dNISEmergencyCallingConfiguration_emergencyPhoneNumber,
dNISEmergencyCallingConfiguration_callingCountry,
EmergencyCallingConfiguration (..),
newEmergencyCallingConfiguration,
emergencyCallingConfiguration_dnis,
GeoMatchParams (..),
newGeoMatchParams,
geoMatchParams_country,
geoMatchParams_areaCode,
LoggingConfiguration (..),
newLoggingConfiguration,
loggingConfiguration_enableSIPLogs,
OrderedPhoneNumber (..),
newOrderedPhoneNumber,
orderedPhoneNumber_e164PhoneNumber,
orderedPhoneNumber_status,
Origination (..),
newOrigination,
origination_disabled,
origination_routes,
OriginationRoute (..),
newOriginationRoute,
originationRoute_host,
originationRoute_port,
originationRoute_priority,
originationRoute_protocol,
originationRoute_weight,
Participant (..),
newParticipant,
participant_phoneNumber,
participant_proxyPhoneNumber,
PhoneNumber (..),
newPhoneNumber,
phoneNumber_associations,
phoneNumber_callingName,
phoneNumber_callingNameStatus,
phoneNumber_capabilities,
phoneNumber_country,
phoneNumber_createdTimestamp,
phoneNumber_deletionTimestamp,
phoneNumber_e164PhoneNumber,
phoneNumber_orderId,
phoneNumber_phoneNumberId,
phoneNumber_productType,
phoneNumber_status,
phoneNumber_type,
phoneNumber_updatedTimestamp,
PhoneNumberAssociation (..),
newPhoneNumberAssociation,
phoneNumberAssociation_associatedTimestamp,
phoneNumberAssociation_name,
phoneNumberAssociation_value,
PhoneNumberCapabilities (..),
newPhoneNumberCapabilities,
phoneNumberCapabilities_inboundCall,
phoneNumberCapabilities_inboundMMS,
phoneNumberCapabilities_inboundSMS,
phoneNumberCapabilities_outboundCall,
phoneNumberCapabilities_outboundMMS,
phoneNumberCapabilities_outboundSMS,
PhoneNumberCountry (..),
newPhoneNumberCountry,
phoneNumberCountry_countryCode,
phoneNumberCountry_supportedPhoneNumberTypes,
PhoneNumberError (..),
newPhoneNumberError,
phoneNumberError_errorCode,
phoneNumberError_errorMessage,
phoneNumberError_phoneNumberId,
PhoneNumberOrder (..),
newPhoneNumberOrder,
phoneNumberOrder_createdTimestamp,
phoneNumberOrder_orderType,
phoneNumberOrder_orderedPhoneNumbers,
phoneNumberOrder_phoneNumberOrderId,
phoneNumberOrder_productType,
phoneNumberOrder_status,
phoneNumberOrder_updatedTimestamp,
Proxy (..),
newProxy,
proxy_defaultSessionExpiryMinutes,
proxy_disabled,
proxy_fallBackPhoneNumber,
proxy_phoneNumberCountries,
ProxySession (..),
newProxySession,
proxySession_capabilities,
proxySession_createdTimestamp,
proxySession_endedTimestamp,
proxySession_expiryMinutes,
proxySession_geoMatchLevel,
proxySession_geoMatchParams,
proxySession_name,
proxySession_numberSelectionBehavior,
proxySession_participants,
proxySession_proxySessionId,
proxySession_status,
proxySession_updatedTimestamp,
proxySession_voiceConnectorId,
SipMediaApplication (..),
newSipMediaApplication,
sipMediaApplication_awsRegion,
sipMediaApplication_createdTimestamp,
sipMediaApplication_endpoints,
sipMediaApplication_name,
sipMediaApplication_sipMediaApplicationId,
sipMediaApplication_updatedTimestamp,
SipMediaApplicationAlexaSkillConfiguration (..),
newSipMediaApplicationAlexaSkillConfiguration,
sipMediaApplicationAlexaSkillConfiguration_alexaSkillStatus,
sipMediaApplicationAlexaSkillConfiguration_alexaSkillIds,
SipMediaApplicationCall (..),
newSipMediaApplicationCall,
sipMediaApplicationCall_transactionId,
SipMediaApplicationEndpoint (..),
newSipMediaApplicationEndpoint,
sipMediaApplicationEndpoint_lambdaArn,
SipMediaApplicationLoggingConfiguration (..),
newSipMediaApplicationLoggingConfiguration,
sipMediaApplicationLoggingConfiguration_enableSipMediaApplicationMessageLogs,
SipRule (..),
newSipRule,
sipRule_createdTimestamp,
sipRule_disabled,
sipRule_name,
sipRule_sipRuleId,
sipRule_targetApplications,
sipRule_triggerType,
sipRule_triggerValue,
sipRule_updatedTimestamp,
SipRuleTargetApplication (..),
newSipRuleTargetApplication,
sipRuleTargetApplication_awsRegion,
sipRuleTargetApplication_priority,
sipRuleTargetApplication_sipMediaApplicationId,
StreamingConfiguration (..),
newStreamingConfiguration,
streamingConfiguration_streamingNotificationTargets,
streamingConfiguration_dataRetentionInHours,
streamingConfiguration_disabled,
StreamingNotificationTarget (..),
newStreamingNotificationTarget,
streamingNotificationTarget_notificationTarget,
Termination (..),
newTermination,
termination_callingRegions,
termination_cidrAllowedList,
termination_cpsLimit,
termination_defaultPhoneNumber,
termination_disabled,
TerminationHealth (..),
newTerminationHealth,
terminationHealth_source,
terminationHealth_timestamp,
UpdatePhoneNumberRequestItem (..),
newUpdatePhoneNumberRequestItem,
updatePhoneNumberRequestItem_callingName,
updatePhoneNumberRequestItem_productType,
updatePhoneNumberRequestItem_phoneNumberId,
VoiceConnector (..),
newVoiceConnector,
voiceConnector_awsRegion,
voiceConnector_createdTimestamp,
voiceConnector_name,
voiceConnector_outboundHostName,
voiceConnector_requireEncryption,
voiceConnector_updatedTimestamp,
voiceConnector_voiceConnectorArn,
voiceConnector_voiceConnectorId,
VoiceConnectorGroup (..),
newVoiceConnectorGroup,
voiceConnectorGroup_createdTimestamp,
voiceConnectorGroup_name,
voiceConnectorGroup_updatedTimestamp,
voiceConnectorGroup_voiceConnectorGroupArn,
voiceConnectorGroup_voiceConnectorGroupId,
voiceConnectorGroup_voiceConnectorItems,
VoiceConnectorItem (..),
newVoiceConnectorItem,
voiceConnectorItem_voiceConnectorId,
voiceConnectorItem_priority,
VoiceConnectorSettings (..),
newVoiceConnectorSettings,
voiceConnectorSettings_cdrBucket,
)
where
import Amazonka.ChimeSdkVoice.Types.Address
import Amazonka.ChimeSdkVoice.Types.AlexaSkillStatus
import Amazonka.ChimeSdkVoice.Types.CallingNameStatus
import Amazonka.ChimeSdkVoice.Types.CandidateAddress
import Amazonka.ChimeSdkVoice.Types.Capability
import Amazonka.ChimeSdkVoice.Types.Credential
import Amazonka.ChimeSdkVoice.Types.DNISEmergencyCallingConfiguration
import Amazonka.ChimeSdkVoice.Types.EmergencyCallingConfiguration
import Amazonka.ChimeSdkVoice.Types.ErrorCode
import Amazonka.ChimeSdkVoice.Types.GeoMatchLevel
import Amazonka.ChimeSdkVoice.Types.GeoMatchParams
import Amazonka.ChimeSdkVoice.Types.LoggingConfiguration
import Amazonka.ChimeSdkVoice.Types.NotificationTarget
import Amazonka.ChimeSdkVoice.Types.NumberSelectionBehavior
import Amazonka.ChimeSdkVoice.Types.OrderedPhoneNumber
import Amazonka.ChimeSdkVoice.Types.OrderedPhoneNumberStatus
import Amazonka.ChimeSdkVoice.Types.Origination
import Amazonka.ChimeSdkVoice.Types.OriginationRoute
import Amazonka.ChimeSdkVoice.Types.OriginationRouteProtocol
import Amazonka.ChimeSdkVoice.Types.Participant
import Amazonka.ChimeSdkVoice.Types.PhoneNumber
import Amazonka.ChimeSdkVoice.Types.PhoneNumberAssociation
import Amazonka.ChimeSdkVoice.Types.PhoneNumberAssociationName
import Amazonka.ChimeSdkVoice.Types.PhoneNumberCapabilities
import Amazonka.ChimeSdkVoice.Types.PhoneNumberCountry
import Amazonka.ChimeSdkVoice.Types.PhoneNumberError
import Amazonka.ChimeSdkVoice.Types.PhoneNumberOrder
import Amazonka.ChimeSdkVoice.Types.PhoneNumberOrderStatus
import Amazonka.ChimeSdkVoice.Types.PhoneNumberOrderType
import Amazonka.ChimeSdkVoice.Types.PhoneNumberProductType
import Amazonka.ChimeSdkVoice.Types.PhoneNumberStatus
import Amazonka.ChimeSdkVoice.Types.PhoneNumberType
import Amazonka.ChimeSdkVoice.Types.Proxy
import Amazonka.ChimeSdkVoice.Types.ProxySession
import Amazonka.ChimeSdkVoice.Types.ProxySessionStatus
import Amazonka.ChimeSdkVoice.Types.SipMediaApplication
import Amazonka.ChimeSdkVoice.Types.SipMediaApplicationAlexaSkillConfiguration
import Amazonka.ChimeSdkVoice.Types.SipMediaApplicationCall
import Amazonka.ChimeSdkVoice.Types.SipMediaApplicationEndpoint
import Amazonka.ChimeSdkVoice.Types.SipMediaApplicationLoggingConfiguration
import Amazonka.ChimeSdkVoice.Types.SipRule
import Amazonka.ChimeSdkVoice.Types.SipRuleTargetApplication
import Amazonka.ChimeSdkVoice.Types.SipRuleTriggerType
import Amazonka.ChimeSdkVoice.Types.StreamingConfiguration
import Amazonka.ChimeSdkVoice.Types.StreamingNotificationTarget
import Amazonka.ChimeSdkVoice.Types.Termination
import Amazonka.ChimeSdkVoice.Types.TerminationHealth
import Amazonka.ChimeSdkVoice.Types.UpdatePhoneNumberRequestItem
import Amazonka.ChimeSdkVoice.Types.VoiceConnector
import Amazonka.ChimeSdkVoice.Types.VoiceConnectorAwsRegion
import Amazonka.ChimeSdkVoice.Types.VoiceConnectorGroup
import Amazonka.ChimeSdkVoice.Types.VoiceConnectorItem
import Amazonka.ChimeSdkVoice.Types.VoiceConnectorSettings
import qualified Amazonka.Core as Core
import qualified Amazonka.Core.Lens.Internal as Lens
import qualified Amazonka.Prelude as Prelude
import qualified Amazonka.Sign.V4 as Sign
defaultService :: Core.Service
defaultService :: Service
defaultService =
Core.Service
{ $sel:abbrev:Service :: Abbrev
Core.abbrev = Abbrev
"ChimeSdkVoice",
$sel:signer:Service :: Signer
Core.signer = Signer
Sign.v4,
$sel:endpointPrefix:Service :: ByteString
Core.endpointPrefix = ByteString
"voice-chime",
$sel:signingName:Service :: ByteString
Core.signingName = ByteString
"chime",
$sel:version:Service :: ByteString
Core.version = ByteString
"2022-08-03",
$sel:s3AddressingStyle:Service :: S3AddressingStyle
Core.s3AddressingStyle = S3AddressingStyle
Core.S3AddressingStyleAuto,
$sel:endpoint:Service :: Region -> Endpoint
Core.endpoint = Service -> Region -> Endpoint
Core.defaultEndpoint Service
defaultService,
$sel:timeout:Service :: Maybe Seconds
Core.timeout = forall a. a -> Maybe a
Prelude.Just Seconds
70,
$sel:check:Service :: Status -> Bool
Core.check = Status -> Bool
Core.statusSuccess,
$sel:error:Service :: Status -> [Header] -> ByteStringLazy -> Error
Core.error = Abbrev -> Status -> [Header] -> ByteStringLazy -> Error
Core.parseJSONError Abbrev
"ChimeSdkVoice",
$sel:retry:Service :: Retry
Core.retry = Retry
retry
}
where
retry :: Retry
retry =
Core.Exponential
{ $sel:base:Exponential :: Double
Core.base = Double
5.0e-2,
$sel:growth:Exponential :: Int
Core.growth = Int
2,
$sel:attempts:Exponential :: Int
Core.attempts = Int
5,
$sel:check:Exponential :: ServiceError -> Maybe Text
Core.check = forall {a}. IsString a => ServiceError -> Maybe a
check
}
check :: ServiceError -> Maybe a
check ServiceError
e
| forall s a. Getting Any s a -> s -> Bool
Lens.has (forall (f :: * -> *) (p :: * -> * -> *).
(Applicative f, Choice p) =>
Int -> Optic' p f ServiceError ServiceError
Core.hasStatus Int
502) ServiceError
e =
forall a. a -> Maybe a
Prelude.Just a
"bad_gateway"
| forall s a. Getting Any s a -> s -> Bool
Lens.has (forall (f :: * -> *) (p :: * -> * -> *).
(Applicative f, Choice p) =>
Int -> Optic' p f ServiceError ServiceError
Core.hasStatus Int
504) ServiceError
e =
forall a. a -> Maybe a
Prelude.Just a
"gateway_timeout"
| forall s a. Getting Any s a -> s -> Bool
Lens.has (forall (f :: * -> *) (p :: * -> * -> *).
(Applicative f, Choice p) =>
Int -> Optic' p f ServiceError ServiceError
Core.hasStatus Int
500) ServiceError
e =
forall a. a -> Maybe a
Prelude.Just a
"general_server_error"
| forall s a. Getting Any s a -> s -> Bool
Lens.has (forall (f :: * -> *) (p :: * -> * -> *).
(Applicative f, Choice p) =>
Int -> Optic' p f ServiceError ServiceError
Core.hasStatus Int
509) ServiceError
e =
forall a. a -> Maybe a
Prelude.Just a
"limit_exceeded"
| forall s a. Getting Any s a -> s -> Bool
Lens.has
( forall (f :: * -> *) (p :: * -> * -> *).
(Applicative f, Choice p) =>
ErrorCode -> Optic' p f ServiceError ServiceError
Core.hasCode ErrorCode
"RequestThrottledException"
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. forall (f :: * -> *) (p :: * -> * -> *).
(Applicative f, Choice p) =>
Int -> Optic' p f ServiceError ServiceError
Core.hasStatus Int
400
)
ServiceError
e =
forall a. a -> Maybe a
Prelude.Just a
"request_throttled_exception"
| forall s a. Getting Any s a -> s -> Bool
Lens.has (forall (f :: * -> *) (p :: * -> * -> *).
(Applicative f, Choice p) =>
Int -> Optic' p f ServiceError ServiceError
Core.hasStatus Int
503) ServiceError
e =
forall a. a -> Maybe a
Prelude.Just a
"service_unavailable"
| forall s a. Getting Any s a -> s -> Bool
Lens.has
( forall (f :: * -> *) (p :: * -> * -> *).
(Applicative f, Choice p) =>
ErrorCode -> Optic' p f ServiceError ServiceError
Core.hasCode ErrorCode
"ThrottledException"
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. forall (f :: * -> *) (p :: * -> * -> *).
(Applicative f, Choice p) =>
Int -> Optic' p f ServiceError ServiceError
Core.hasStatus Int
400
)
ServiceError
e =
forall a. a -> Maybe a
Prelude.Just a
"throttled_exception"
| forall s a. Getting Any s a -> s -> Bool
Lens.has
( forall (f :: * -> *) (p :: * -> * -> *).
(Applicative f, Choice p) =>
ErrorCode -> Optic' p f ServiceError ServiceError
Core.hasCode ErrorCode
"Throttling"
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. forall (f :: * -> *) (p :: * -> * -> *).
(Applicative f, Choice p) =>
Int -> Optic' p f ServiceError ServiceError
Core.hasStatus Int
400
)
ServiceError
e =
forall a. a -> Maybe a
Prelude.Just a
"throttling"
| forall s a. Getting Any s a -> s -> Bool
Lens.has
( forall (f :: * -> *) (p :: * -> * -> *).
(Applicative f, Choice p) =>
ErrorCode -> Optic' p f ServiceError ServiceError
Core.hasCode ErrorCode
"ThrottlingException"
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. forall (f :: * -> *) (p :: * -> * -> *).
(Applicative f, Choice p) =>
Int -> Optic' p f ServiceError ServiceError
Core.hasStatus Int
400
)
ServiceError
e =
forall a. a -> Maybe a
Prelude.Just a
"throttling_exception"
| forall s a. Getting Any s a -> s -> Bool
Lens.has
( forall (f :: * -> *) (p :: * -> * -> *).
(Applicative f, Choice p) =>
ErrorCode -> Optic' p f ServiceError ServiceError
Core.hasCode
ErrorCode
"ProvisionedThroughputExceededException"
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. forall (f :: * -> *) (p :: * -> * -> *).
(Applicative f, Choice p) =>
Int -> Optic' p f ServiceError ServiceError
Core.hasStatus Int
400
)
ServiceError
e =
forall a. a -> Maybe a
Prelude.Just a
"throughput_exceeded"
| forall s a. Getting Any s a -> s -> Bool
Lens.has (forall (f :: * -> *) (p :: * -> * -> *).
(Applicative f, Choice p) =>
Int -> Optic' p f ServiceError ServiceError
Core.hasStatus Int
429) ServiceError
e =
forall a. a -> Maybe a
Prelude.Just a
"too_many_requests"
| Bool
Prelude.otherwise = forall a. Maybe a
Prelude.Nothing
_AccessDeniedException :: (Core.AsError a) => Lens.Fold a Core.ServiceError
_AccessDeniedException :: forall a. AsError a => Fold a ServiceError
_AccessDeniedException =
forall a. AsError a => Service -> ErrorCode -> Fold a ServiceError
Core._MatchServiceError
Service
defaultService
ErrorCode
"AccessDeniedException"
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. forall (f :: * -> *) (p :: * -> * -> *).
(Applicative f, Choice p) =>
Int -> Optic' p f ServiceError ServiceError
Core.hasStatus Int
403
_BadRequestException :: (Core.AsError a) => Lens.Fold a Core.ServiceError
_BadRequestException :: forall a. AsError a => Fold a ServiceError
_BadRequestException =
forall a. AsError a => Service -> ErrorCode -> Fold a ServiceError
Core._MatchServiceError
Service
defaultService
ErrorCode
"BadRequestException"
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. forall (f :: * -> *) (p :: * -> * -> *).
(Applicative f, Choice p) =>
Int -> Optic' p f ServiceError ServiceError
Core.hasStatus Int
400
_ConflictException :: (Core.AsError a) => Lens.Fold a Core.ServiceError
_ConflictException :: forall a. AsError a => Fold a ServiceError
_ConflictException =
forall a. AsError a => Service -> ErrorCode -> Fold a ServiceError
Core._MatchServiceError
Service
defaultService
ErrorCode
"ConflictException"
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. forall (f :: * -> *) (p :: * -> * -> *).
(Applicative f, Choice p) =>
Int -> Optic' p f ServiceError ServiceError
Core.hasStatus Int
409
_ForbiddenException :: (Core.AsError a) => Lens.Fold a Core.ServiceError
_ForbiddenException :: forall a. AsError a => Fold a ServiceError
_ForbiddenException =
forall a. AsError a => Service -> ErrorCode -> Fold a ServiceError
Core._MatchServiceError
Service
defaultService
ErrorCode
"ForbiddenException"
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. forall (f :: * -> *) (p :: * -> * -> *).
(Applicative f, Choice p) =>
Int -> Optic' p f ServiceError ServiceError
Core.hasStatus Int
403
_NotFoundException :: (Core.AsError a) => Lens.Fold a Core.ServiceError
_NotFoundException :: forall a. AsError a => Fold a ServiceError
_NotFoundException =
forall a. AsError a => Service -> ErrorCode -> Fold a ServiceError
Core._MatchServiceError
Service
defaultService
ErrorCode
"NotFoundException"
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. forall (f :: * -> *) (p :: * -> * -> *).
(Applicative f, Choice p) =>
Int -> Optic' p f ServiceError ServiceError
Core.hasStatus Int
404
_ResourceLimitExceededException :: (Core.AsError a) => Lens.Fold a Core.ServiceError
_ResourceLimitExceededException :: forall a. AsError a => Fold a ServiceError
_ResourceLimitExceededException =
forall a. AsError a => Service -> ErrorCode -> Fold a ServiceError
Core._MatchServiceError
Service
defaultService
ErrorCode
"ResourceLimitExceededException"
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. forall (f :: * -> *) (p :: * -> * -> *).
(Applicative f, Choice p) =>
Int -> Optic' p f ServiceError ServiceError
Core.hasStatus Int
400
_ServiceFailureException :: (Core.AsError a) => Lens.Fold a Core.ServiceError
_ServiceFailureException :: forall a. AsError a => Fold a ServiceError
_ServiceFailureException =
forall a. AsError a => Service -> ErrorCode -> Fold a ServiceError
Core._MatchServiceError
Service
defaultService
ErrorCode
"ServiceFailureException"
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. forall (f :: * -> *) (p :: * -> * -> *).
(Applicative f, Choice p) =>
Int -> Optic' p f ServiceError ServiceError
Core.hasStatus Int
500
_ServiceUnavailableException :: (Core.AsError a) => Lens.Fold a Core.ServiceError
_ServiceUnavailableException :: forall a. AsError a => Fold a ServiceError
_ServiceUnavailableException =
forall a. AsError a => Service -> ErrorCode -> Fold a ServiceError
Core._MatchServiceError
Service
defaultService
ErrorCode
"ServiceUnavailableException"
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. forall (f :: * -> *) (p :: * -> * -> *).
(Applicative f, Choice p) =>
Int -> Optic' p f ServiceError ServiceError
Core.hasStatus Int
503
_ThrottledClientException :: (Core.AsError a) => Lens.Fold a Core.ServiceError
_ThrottledClientException :: forall a. AsError a => Fold a ServiceError
_ThrottledClientException =
forall a. AsError a => Service -> ErrorCode -> Fold a ServiceError
Core._MatchServiceError
Service
defaultService
ErrorCode
"ThrottledClientException"
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. forall (f :: * -> *) (p :: * -> * -> *).
(Applicative f, Choice p) =>
Int -> Optic' p f ServiceError ServiceError
Core.hasStatus Int
429
_UnauthorizedClientException :: (Core.AsError a) => Lens.Fold a Core.ServiceError
_UnauthorizedClientException :: forall a. AsError a => Fold a ServiceError
_UnauthorizedClientException =
forall a. AsError a => Service -> ErrorCode -> Fold a ServiceError
Core._MatchServiceError
Service
defaultService
ErrorCode
"UnauthorizedClientException"
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. forall (f :: * -> *) (p :: * -> * -> *).
(Applicative f, Choice p) =>
Int -> Optic' p f ServiceError ServiceError
Core.hasStatus Int
401