{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE StrictData #-}
{-# LANGUAGE NoImplicitPrelude #-}
{-# OPTIONS_GHC -fno-warn-unused-matches #-}
module Amazonka.IoTWireless.Types
(
defaultService,
_ValidationException,
_AccessDeniedException,
_TooManyTagsException,
_ConflictException,
_ThrottlingException,
_InternalServerException,
_ResourceNotFoundException,
BatteryLevel (..),
ConnectionStatus (..),
DeviceState (..),
Event (..),
ExpressionType (..),
LogLevel (..),
MessageType (..),
PartnerType (..),
SigningAlg (..),
WirelessDeviceEvent (..),
WirelessDeviceIdType (..),
WirelessDeviceType (..),
WirelessGatewayEvent (..),
WirelessGatewayIdType (..),
WirelessGatewayServiceType (..),
WirelessGatewayTaskDefinitionType (..),
WirelessGatewayTaskStatus (..),
WirelessGatewayType (..),
AbpV1_0_x (..),
newAbpV1_0_x,
abpV1_0_x_devAddr,
abpV1_0_x_sessionKeys,
AbpV1_1 (..),
newAbpV1_1,
abpV1_1_devAddr,
abpV1_1_sessionKeys,
CertificateList (..),
newCertificateList,
certificateList_signingAlg,
certificateList_value,
Destinations (..),
newDestinations,
destinations_expressionType,
destinations_arn,
destinations_name,
destinations_expression,
destinations_description,
destinations_roleArn,
DeviceProfile (..),
newDeviceProfile,
deviceProfile_arn,
deviceProfile_name,
deviceProfile_id,
LoRaWANDevice (..),
newLoRaWANDevice,
loRaWANDevice_abpV1_0_x,
loRaWANDevice_otaaV1_1,
loRaWANDevice_serviceProfileId,
loRaWANDevice_deviceProfileId,
loRaWANDevice_otaaV1_0_x,
loRaWANDevice_abpV1_1,
loRaWANDevice_devEui,
LoRaWANDeviceMetadata (..),
newLoRaWANDeviceMetadata,
loRaWANDeviceMetadata_frequency,
loRaWANDeviceMetadata_fPort,
loRaWANDeviceMetadata_dataRate,
loRaWANDeviceMetadata_gateways,
loRaWANDeviceMetadata_timestamp,
loRaWANDeviceMetadata_devEui,
LoRaWANDeviceProfile (..),
newLoRaWANDeviceProfile,
loRaWANDeviceProfile_rfRegion,
loRaWANDeviceProfile_pingSlotFreq,
loRaWANDeviceProfile_classBTimeout,
loRaWANDeviceProfile_maxEirp,
loRaWANDeviceProfile_rxDataRate2,
loRaWANDeviceProfile_macVersion,
loRaWANDeviceProfile_factoryPresetFreqsList,
loRaWANDeviceProfile_rxFreq2,
loRaWANDeviceProfile_classCTimeout,
loRaWANDeviceProfile_regParamsRevision,
loRaWANDeviceProfile_pingSlotDr,
loRaWANDeviceProfile_supports32BitFCnt,
loRaWANDeviceProfile_maxDutyCycle,
loRaWANDeviceProfile_rxDrOffset1,
loRaWANDeviceProfile_supportsClassB,
loRaWANDeviceProfile_supportsJoin,
loRaWANDeviceProfile_rxDelay1,
loRaWANDeviceProfile_supportsClassC,
loRaWANDeviceProfile_pingSlotPeriod,
LoRaWANGateway (..),
newLoRaWANGateway,
loRaWANGateway_rfRegion,
loRaWANGateway_subBands,
loRaWANGateway_gatewayEui,
loRaWANGateway_joinEuiFilters,
loRaWANGateway_netIdFilters,
LoRaWANGatewayCurrentVersion (..),
newLoRaWANGatewayCurrentVersion,
loRaWANGatewayCurrentVersion_currentVersion,
LoRaWANGatewayMetadata (..),
newLoRaWANGatewayMetadata,
loRaWANGatewayMetadata_gatewayEui,
loRaWANGatewayMetadata_snr,
loRaWANGatewayMetadata_rssi,
LoRaWANGatewayVersion (..),
newLoRaWANGatewayVersion,
loRaWANGatewayVersion_packageVersion,
loRaWANGatewayVersion_model,
loRaWANGatewayVersion_station,
LoRaWANGetServiceProfileInfo (..),
newLoRaWANGetServiceProfileInfo,
loRaWANGetServiceProfileInfo_addGwMetadata,
loRaWANGetServiceProfileInfo_prAllowed,
loRaWANGetServiceProfileInfo_drMax,
loRaWANGetServiceProfileInfo_dlRate,
loRaWANGetServiceProfileInfo_devStatusReqFreq,
loRaWANGetServiceProfileInfo_reportDevStatusBattery,
loRaWANGetServiceProfileInfo_dlBucketSize,
loRaWANGetServiceProfileInfo_ulRatePolicy,
loRaWANGetServiceProfileInfo_targetPer,
loRaWANGetServiceProfileInfo_drMin,
loRaWANGetServiceProfileInfo_nwkGeoLoc,
loRaWANGetServiceProfileInfo_channelMask,
loRaWANGetServiceProfileInfo_dlRatePolicy,
loRaWANGetServiceProfileInfo_hrAllowed,
loRaWANGetServiceProfileInfo_ulBucketSize,
loRaWANGetServiceProfileInfo_ulRate,
loRaWANGetServiceProfileInfo_reportDevStatusMargin,
loRaWANGetServiceProfileInfo_raAllowed,
loRaWANGetServiceProfileInfo_minGwDiversity,
LoRaWANListDevice (..),
newLoRaWANListDevice,
loRaWANListDevice_devEui,
LoRaWANSendDataToDevice (..),
newLoRaWANSendDataToDevice,
loRaWANSendDataToDevice_fPort,
LoRaWANServiceProfile (..),
newLoRaWANServiceProfile,
loRaWANServiceProfile_addGwMetadata,
LoRaWANUpdateDevice (..),
newLoRaWANUpdateDevice,
loRaWANUpdateDevice_serviceProfileId,
loRaWANUpdateDevice_deviceProfileId,
LoRaWANUpdateGatewayTaskCreate (..),
newLoRaWANUpdateGatewayTaskCreate,
loRaWANUpdateGatewayTaskCreate_updateSignature,
loRaWANUpdateGatewayTaskCreate_sigKeyCrc,
loRaWANUpdateGatewayTaskCreate_currentVersion,
loRaWANUpdateGatewayTaskCreate_updateVersion,
LoRaWANUpdateGatewayTaskEntry (..),
newLoRaWANUpdateGatewayTaskEntry,
loRaWANUpdateGatewayTaskEntry_currentVersion,
loRaWANUpdateGatewayTaskEntry_updateVersion,
OtaaV1_0_x (..),
newOtaaV1_0_x,
otaaV1_0_x_appEui,
otaaV1_0_x_appKey,
OtaaV1_1 (..),
newOtaaV1_1,
otaaV1_1_joinEui,
otaaV1_1_nwkKey,
otaaV1_1_appKey,
ServiceProfile (..),
newServiceProfile,
serviceProfile_arn,
serviceProfile_name,
serviceProfile_id,
SessionKeysAbpV1_0_x (..),
newSessionKeysAbpV1_0_x,
sessionKeysAbpV1_0_x_nwkSKey,
sessionKeysAbpV1_0_x_appSKey,
SessionKeysAbpV1_1 (..),
newSessionKeysAbpV1_1,
sessionKeysAbpV1_1_fNwkSIntKey,
sessionKeysAbpV1_1_sNwkSIntKey,
sessionKeysAbpV1_1_nwkSEncKey,
sessionKeysAbpV1_1_appSKey,
SidewalkAccountInfo (..),
newSidewalkAccountInfo,
sidewalkAccountInfo_amazonId,
sidewalkAccountInfo_appServerPrivateKey,
SidewalkAccountInfoWithFingerprint (..),
newSidewalkAccountInfoWithFingerprint,
sidewalkAccountInfoWithFingerprint_arn,
sidewalkAccountInfoWithFingerprint_fingerprint,
sidewalkAccountInfoWithFingerprint_amazonId,
SidewalkDevice (..),
newSidewalkDevice,
sidewalkDevice_sidewalkManufacturingSn,
sidewalkDevice_amazonId,
sidewalkDevice_deviceCertificates,
sidewalkDevice_sidewalkId,
SidewalkDeviceMetadata (..),
newSidewalkDeviceMetadata,
sidewalkDeviceMetadata_event,
sidewalkDeviceMetadata_deviceState,
sidewalkDeviceMetadata_batteryLevel,
sidewalkDeviceMetadata_rssi,
SidewalkListDevice (..),
newSidewalkListDevice,
sidewalkListDevice_sidewalkManufacturingSn,
sidewalkListDevice_amazonId,
sidewalkListDevice_deviceCertificates,
sidewalkListDevice_sidewalkId,
SidewalkSendDataToDevice (..),
newSidewalkSendDataToDevice,
sidewalkSendDataToDevice_messageType,
sidewalkSendDataToDevice_seq,
SidewalkUpdateAccount (..),
newSidewalkUpdateAccount,
sidewalkUpdateAccount_appServerPrivateKey,
Tag (..),
newTag,
tag_key,
tag_value,
UpdateWirelessGatewayTaskCreate (..),
newUpdateWirelessGatewayTaskCreate,
updateWirelessGatewayTaskCreate_updateDataSource,
updateWirelessGatewayTaskCreate_updateDataRole,
updateWirelessGatewayTaskCreate_loRaWAN,
UpdateWirelessGatewayTaskEntry (..),
newUpdateWirelessGatewayTaskEntry,
updateWirelessGatewayTaskEntry_arn,
updateWirelessGatewayTaskEntry_loRaWAN,
updateWirelessGatewayTaskEntry_id,
WirelessDeviceEventLogOption (..),
newWirelessDeviceEventLogOption,
wirelessDeviceEventLogOption_event,
wirelessDeviceEventLogOption_logLevel,
WirelessDeviceLogOption (..),
newWirelessDeviceLogOption,
wirelessDeviceLogOption_events,
wirelessDeviceLogOption_type,
wirelessDeviceLogOption_logLevel,
WirelessDeviceStatistics (..),
newWirelessDeviceStatistics,
wirelessDeviceStatistics_sidewalk,
wirelessDeviceStatistics_arn,
wirelessDeviceStatistics_loRaWAN,
wirelessDeviceStatistics_name,
wirelessDeviceStatistics_id,
wirelessDeviceStatistics_lastUplinkReceivedAt,
wirelessDeviceStatistics_type,
wirelessDeviceStatistics_destinationName,
WirelessGatewayEventLogOption (..),
newWirelessGatewayEventLogOption,
wirelessGatewayEventLogOption_event,
wirelessGatewayEventLogOption_logLevel,
WirelessGatewayLogOption (..),
newWirelessGatewayLogOption,
wirelessGatewayLogOption_events,
wirelessGatewayLogOption_type,
wirelessGatewayLogOption_logLevel,
WirelessGatewayStatistics (..),
newWirelessGatewayStatistics,
wirelessGatewayStatistics_arn,
wirelessGatewayStatistics_loRaWAN,
wirelessGatewayStatistics_name,
wirelessGatewayStatistics_id,
wirelessGatewayStatistics_lastUplinkReceivedAt,
wirelessGatewayStatistics_description,
WirelessMetadata (..),
newWirelessMetadata,
wirelessMetadata_sidewalk,
wirelessMetadata_loRaWAN,
)
where
import qualified Amazonka.Core as Core
import Amazonka.IoTWireless.Types.AbpV1_0_x
import Amazonka.IoTWireless.Types.AbpV1_1
import Amazonka.IoTWireless.Types.BatteryLevel
import Amazonka.IoTWireless.Types.CertificateList
import Amazonka.IoTWireless.Types.ConnectionStatus
import Amazonka.IoTWireless.Types.Destinations
import Amazonka.IoTWireless.Types.DeviceProfile
import Amazonka.IoTWireless.Types.DeviceState
import Amazonka.IoTWireless.Types.Event
import Amazonka.IoTWireless.Types.ExpressionType
import Amazonka.IoTWireless.Types.LoRaWANDevice
import Amazonka.IoTWireless.Types.LoRaWANDeviceMetadata
import Amazonka.IoTWireless.Types.LoRaWANDeviceProfile
import Amazonka.IoTWireless.Types.LoRaWANGateway
import Amazonka.IoTWireless.Types.LoRaWANGatewayCurrentVersion
import Amazonka.IoTWireless.Types.LoRaWANGatewayMetadata
import Amazonka.IoTWireless.Types.LoRaWANGatewayVersion
import Amazonka.IoTWireless.Types.LoRaWANGetServiceProfileInfo
import Amazonka.IoTWireless.Types.LoRaWANListDevice
import Amazonka.IoTWireless.Types.LoRaWANSendDataToDevice
import Amazonka.IoTWireless.Types.LoRaWANServiceProfile
import Amazonka.IoTWireless.Types.LoRaWANUpdateDevice
import Amazonka.IoTWireless.Types.LoRaWANUpdateGatewayTaskCreate
import Amazonka.IoTWireless.Types.LoRaWANUpdateGatewayTaskEntry
import Amazonka.IoTWireless.Types.LogLevel
import Amazonka.IoTWireless.Types.MessageType
import Amazonka.IoTWireless.Types.OtaaV1_0_x
import Amazonka.IoTWireless.Types.OtaaV1_1
import Amazonka.IoTWireless.Types.PartnerType
import Amazonka.IoTWireless.Types.ServiceProfile
import Amazonka.IoTWireless.Types.SessionKeysAbpV1_0_x
import Amazonka.IoTWireless.Types.SessionKeysAbpV1_1
import Amazonka.IoTWireless.Types.SidewalkAccountInfo
import Amazonka.IoTWireless.Types.SidewalkAccountInfoWithFingerprint
import Amazonka.IoTWireless.Types.SidewalkDevice
import Amazonka.IoTWireless.Types.SidewalkDeviceMetadata
import Amazonka.IoTWireless.Types.SidewalkListDevice
import Amazonka.IoTWireless.Types.SidewalkSendDataToDevice
import Amazonka.IoTWireless.Types.SidewalkUpdateAccount
import Amazonka.IoTWireless.Types.SigningAlg
import Amazonka.IoTWireless.Types.Tag
import Amazonka.IoTWireless.Types.UpdateWirelessGatewayTaskCreate
import Amazonka.IoTWireless.Types.UpdateWirelessGatewayTaskEntry
import Amazonka.IoTWireless.Types.WirelessDeviceEvent
import Amazonka.IoTWireless.Types.WirelessDeviceEventLogOption
import Amazonka.IoTWireless.Types.WirelessDeviceIdType
import Amazonka.IoTWireless.Types.WirelessDeviceLogOption
import Amazonka.IoTWireless.Types.WirelessDeviceStatistics
import Amazonka.IoTWireless.Types.WirelessDeviceType
import Amazonka.IoTWireless.Types.WirelessGatewayEvent
import Amazonka.IoTWireless.Types.WirelessGatewayEventLogOption
import Amazonka.IoTWireless.Types.WirelessGatewayIdType
import Amazonka.IoTWireless.Types.WirelessGatewayLogOption
import Amazonka.IoTWireless.Types.WirelessGatewayServiceType
import Amazonka.IoTWireless.Types.WirelessGatewayStatistics
import Amazonka.IoTWireless.Types.WirelessGatewayTaskDefinitionType
import Amazonka.IoTWireless.Types.WirelessGatewayTaskStatus
import Amazonka.IoTWireless.Types.WirelessGatewayType
import Amazonka.IoTWireless.Types.WirelessMetadata
import qualified Amazonka.Lens as Lens
import qualified Amazonka.Prelude as Prelude
import qualified Amazonka.Sign.V4 as Sign
defaultService :: Core.Service
defaultService :: Service
defaultService =
Service :: Abbrev
-> Signer
-> ByteString
-> ByteString
-> ByteString
-> (Region -> Endpoint)
-> Maybe Seconds
-> (Status -> Bool)
-> (Status -> [Header] -> ByteStringLazy -> Error)
-> Retry
-> Service
Core.Service
{ $sel:_serviceAbbrev:Service :: Abbrev
Core._serviceAbbrev = Abbrev
"IoTWireless",
$sel:_serviceSigner:Service :: Signer
Core._serviceSigner = Signer
Sign.v4,
$sel:_serviceEndpointPrefix:Service :: ByteString
Core._serviceEndpointPrefix = ByteString
"api.iotwireless",
$sel:_serviceSigningName:Service :: ByteString
Core._serviceSigningName = ByteString
"iotwireless",
$sel:_serviceVersion:Service :: ByteString
Core._serviceVersion = ByteString
"2020-11-22",
$sel:_serviceEndpoint:Service :: Region -> Endpoint
Core._serviceEndpoint =
Service -> Region -> Endpoint
Core.defaultEndpoint Service
defaultService,
$sel:_serviceTimeout:Service :: Maybe Seconds
Core._serviceTimeout = Seconds -> Maybe Seconds
forall a. a -> Maybe a
Prelude.Just Seconds
70,
$sel:_serviceCheck:Service :: Status -> Bool
Core._serviceCheck = Status -> Bool
Core.statusSuccess,
$sel:_serviceError:Service :: Status -> [Header] -> ByteStringLazy -> Error
Core._serviceError =
Abbrev -> Status -> [Header] -> ByteStringLazy -> Error
Core.parseJSONError Abbrev
"IoTWireless",
$sel:_serviceRetry:Service :: Retry
Core._serviceRetry = Retry
retry
}
where
retry :: Retry
retry =
Exponential :: Double -> Int -> Int -> (ServiceError -> Maybe Text) -> Retry
Core.Exponential
{ $sel:_retryBase:Exponential :: Double
Core._retryBase = Double
5.0e-2,
$sel:_retryGrowth:Exponential :: Int
Core._retryGrowth = Int
2,
$sel:_retryAttempts:Exponential :: Int
Core._retryAttempts = Int
5,
$sel:_retryCheck:Exponential :: ServiceError -> Maybe Text
Core._retryCheck = ServiceError -> Maybe Text
forall a. IsString a => ServiceError -> Maybe a
check
}
check :: ServiceError -> Maybe a
check ServiceError
e
| Getting Any ServiceError ServiceError -> ServiceError -> Bool
forall s a. Getting Any s a -> s -> Bool
Lens.has
( ErrorCode -> Getting Any ServiceError ServiceError
forall (f :: * -> *) (p :: * -> * -> *).
(Applicative f, Choice p) =>
ErrorCode -> Optic' p f ServiceError ServiceError
Core.hasCode ErrorCode
"ThrottledException"
Getting Any ServiceError ServiceError
-> Getting Any ServiceError ServiceError
-> Getting Any ServiceError ServiceError
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. Int -> Getting Any ServiceError ServiceError
forall (f :: * -> *) (p :: * -> * -> *).
(Applicative f, Choice p) =>
Int -> Optic' p f ServiceError ServiceError
Core.hasStatus Int
400
)
ServiceError
e =
a -> Maybe a
forall a. a -> Maybe a
Prelude.Just a
"throttled_exception"
| Getting Any ServiceError ServiceError -> ServiceError -> Bool
forall s a. Getting Any s a -> s -> Bool
Lens.has (Int -> Getting Any ServiceError ServiceError
forall (f :: * -> *) (p :: * -> * -> *).
(Applicative f, Choice p) =>
Int -> Optic' p f ServiceError ServiceError
Core.hasStatus Int
429) ServiceError
e =
a -> Maybe a
forall a. a -> Maybe a
Prelude.Just a
"too_many_requests"
| Getting Any ServiceError ServiceError -> ServiceError -> Bool
forall s a. Getting Any s a -> s -> Bool
Lens.has
( ErrorCode -> Getting Any ServiceError ServiceError
forall (f :: * -> *) (p :: * -> * -> *).
(Applicative f, Choice p) =>
ErrorCode -> Optic' p f ServiceError ServiceError
Core.hasCode ErrorCode
"ThrottlingException"
Getting Any ServiceError ServiceError
-> Getting Any ServiceError ServiceError
-> Getting Any ServiceError ServiceError
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. Int -> Getting Any ServiceError ServiceError
forall (f :: * -> *) (p :: * -> * -> *).
(Applicative f, Choice p) =>
Int -> Optic' p f ServiceError ServiceError
Core.hasStatus Int
400
)
ServiceError
e =
a -> Maybe a
forall a. a -> Maybe a
Prelude.Just a
"throttling_exception"
| Getting Any ServiceError ServiceError -> ServiceError -> Bool
forall s a. Getting Any s a -> s -> Bool
Lens.has
( ErrorCode -> Getting Any ServiceError ServiceError
forall (f :: * -> *) (p :: * -> * -> *).
(Applicative f, Choice p) =>
ErrorCode -> Optic' p f ServiceError ServiceError
Core.hasCode ErrorCode
"Throttling"
Getting Any ServiceError ServiceError
-> Getting Any ServiceError ServiceError
-> Getting Any ServiceError ServiceError
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. Int -> Getting Any ServiceError ServiceError
forall (f :: * -> *) (p :: * -> * -> *).
(Applicative f, Choice p) =>
Int -> Optic' p f ServiceError ServiceError
Core.hasStatus Int
400
)
ServiceError
e =
a -> Maybe a
forall a. a -> Maybe a
Prelude.Just a
"throttling"
| Getting Any ServiceError ServiceError -> ServiceError -> Bool
forall s a. Getting Any s a -> s -> Bool
Lens.has
( ErrorCode -> Getting Any ServiceError ServiceError
forall (f :: * -> *) (p :: * -> * -> *).
(Applicative f, Choice p) =>
ErrorCode -> Optic' p f ServiceError ServiceError
Core.hasCode
ErrorCode
"ProvisionedThroughputExceededException"
Getting Any ServiceError ServiceError
-> Getting Any ServiceError ServiceError
-> Getting Any ServiceError ServiceError
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. Int -> Getting Any ServiceError ServiceError
forall (f :: * -> *) (p :: * -> * -> *).
(Applicative f, Choice p) =>
Int -> Optic' p f ServiceError ServiceError
Core.hasStatus Int
400
)
ServiceError
e =
a -> Maybe a
forall a. a -> Maybe a
Prelude.Just a
"throughput_exceeded"
| Getting Any ServiceError ServiceError -> ServiceError -> Bool
forall s a. Getting Any s a -> s -> Bool
Lens.has (Int -> Getting Any ServiceError ServiceError
forall (f :: * -> *) (p :: * -> * -> *).
(Applicative f, Choice p) =>
Int -> Optic' p f ServiceError ServiceError
Core.hasStatus Int
504) ServiceError
e =
a -> Maybe a
forall a. a -> Maybe a
Prelude.Just a
"gateway_timeout"
| Getting Any ServiceError ServiceError -> ServiceError -> Bool
forall s a. Getting Any s a -> s -> Bool
Lens.has
( ErrorCode -> Getting Any ServiceError ServiceError
forall (f :: * -> *) (p :: * -> * -> *).
(Applicative f, Choice p) =>
ErrorCode -> Optic' p f ServiceError ServiceError
Core.hasCode ErrorCode
"RequestThrottledException"
Getting Any ServiceError ServiceError
-> Getting Any ServiceError ServiceError
-> Getting Any ServiceError ServiceError
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. Int -> Getting Any ServiceError ServiceError
forall (f :: * -> *) (p :: * -> * -> *).
(Applicative f, Choice p) =>
Int -> Optic' p f ServiceError ServiceError
Core.hasStatus Int
400
)
ServiceError
e =
a -> Maybe a
forall a. a -> Maybe a
Prelude.Just a
"request_throttled_exception"
| Getting Any ServiceError ServiceError -> ServiceError -> Bool
forall s a. Getting Any s a -> s -> Bool
Lens.has (Int -> Getting Any ServiceError ServiceError
forall (f :: * -> *) (p :: * -> * -> *).
(Applicative f, Choice p) =>
Int -> Optic' p f ServiceError ServiceError
Core.hasStatus Int
502) ServiceError
e =
a -> Maybe a
forall a. a -> Maybe a
Prelude.Just a
"bad_gateway"
| Getting Any ServiceError ServiceError -> ServiceError -> Bool
forall s a. Getting Any s a -> s -> Bool
Lens.has (Int -> Getting Any ServiceError ServiceError
forall (f :: * -> *) (p :: * -> * -> *).
(Applicative f, Choice p) =>
Int -> Optic' p f ServiceError ServiceError
Core.hasStatus Int
503) ServiceError
e =
a -> Maybe a
forall a. a -> Maybe a
Prelude.Just a
"service_unavailable"
| Getting Any ServiceError ServiceError -> ServiceError -> Bool
forall s a. Getting Any s a -> s -> Bool
Lens.has (Int -> Getting Any ServiceError ServiceError
forall (f :: * -> *) (p :: * -> * -> *).
(Applicative f, Choice p) =>
Int -> Optic' p f ServiceError ServiceError
Core.hasStatus Int
500) ServiceError
e =
a -> Maybe a
forall a. a -> Maybe a
Prelude.Just a
"general_server_error"
| Getting Any ServiceError ServiceError -> ServiceError -> Bool
forall s a. Getting Any s a -> s -> Bool
Lens.has (Int -> Getting Any ServiceError ServiceError
forall (f :: * -> *) (p :: * -> * -> *).
(Applicative f, Choice p) =>
Int -> Optic' p f ServiceError ServiceError
Core.hasStatus Int
509) ServiceError
e =
a -> Maybe a
forall a. a -> Maybe a
Prelude.Just a
"limit_exceeded"
| Bool
Prelude.otherwise = Maybe a
forall a. Maybe a
Prelude.Nothing
_ValidationException :: Core.AsError a => Lens.Getting (Prelude.First Core.ServiceError) a Core.ServiceError
_ValidationException :: Getting (First ServiceError) a ServiceError
_ValidationException =
Service -> ErrorCode -> Getting (First ServiceError) a ServiceError
forall a.
AsError a =>
Service -> ErrorCode -> Getting (First ServiceError) a ServiceError
Core._MatchServiceError
Service
defaultService
ErrorCode
"ValidationException"
Getting (First ServiceError) a ServiceError
-> ((ServiceError -> Const (First ServiceError) ServiceError)
-> ServiceError -> Const (First ServiceError) ServiceError)
-> Getting (First ServiceError) a ServiceError
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. Int
-> (ServiceError -> Const (First ServiceError) ServiceError)
-> ServiceError
-> Const (First ServiceError) ServiceError
forall (f :: * -> *) (p :: * -> * -> *).
(Applicative f, Choice p) =>
Int -> Optic' p f ServiceError ServiceError
Core.hasStatus Int
400
_AccessDeniedException :: Core.AsError a => Lens.Getting (Prelude.First Core.ServiceError) a Core.ServiceError
_AccessDeniedException :: Getting (First ServiceError) a ServiceError
_AccessDeniedException =
Service -> ErrorCode -> Getting (First ServiceError) a ServiceError
forall a.
AsError a =>
Service -> ErrorCode -> Getting (First ServiceError) a ServiceError
Core._MatchServiceError
Service
defaultService
ErrorCode
"AccessDeniedException"
Getting (First ServiceError) a ServiceError
-> ((ServiceError -> Const (First ServiceError) ServiceError)
-> ServiceError -> Const (First ServiceError) ServiceError)
-> Getting (First ServiceError) a ServiceError
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. Int
-> (ServiceError -> Const (First ServiceError) ServiceError)
-> ServiceError
-> Const (First ServiceError) ServiceError
forall (f :: * -> *) (p :: * -> * -> *).
(Applicative f, Choice p) =>
Int -> Optic' p f ServiceError ServiceError
Core.hasStatus Int
403
_TooManyTagsException :: Core.AsError a => Lens.Getting (Prelude.First Core.ServiceError) a Core.ServiceError
_TooManyTagsException :: Getting (First ServiceError) a ServiceError
_TooManyTagsException =
Service -> ErrorCode -> Getting (First ServiceError) a ServiceError
forall a.
AsError a =>
Service -> ErrorCode -> Getting (First ServiceError) a ServiceError
Core._MatchServiceError
Service
defaultService
ErrorCode
"TooManyTagsException"
Getting (First ServiceError) a ServiceError
-> ((ServiceError -> Const (First ServiceError) ServiceError)
-> ServiceError -> Const (First ServiceError) ServiceError)
-> Getting (First ServiceError) a ServiceError
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. Int
-> (ServiceError -> Const (First ServiceError) ServiceError)
-> ServiceError
-> Const (First ServiceError) ServiceError
forall (f :: * -> *) (p :: * -> * -> *).
(Applicative f, Choice p) =>
Int -> Optic' p f ServiceError ServiceError
Core.hasStatus Int
400
_ConflictException :: Core.AsError a => Lens.Getting (Prelude.First Core.ServiceError) a Core.ServiceError
_ConflictException :: Getting (First ServiceError) a ServiceError
_ConflictException =
Service -> ErrorCode -> Getting (First ServiceError) a ServiceError
forall a.
AsError a =>
Service -> ErrorCode -> Getting (First ServiceError) a ServiceError
Core._MatchServiceError
Service
defaultService
ErrorCode
"ConflictException"
Getting (First ServiceError) a ServiceError
-> ((ServiceError -> Const (First ServiceError) ServiceError)
-> ServiceError -> Const (First ServiceError) ServiceError)
-> Getting (First ServiceError) a ServiceError
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. Int
-> (ServiceError -> Const (First ServiceError) ServiceError)
-> ServiceError
-> Const (First ServiceError) ServiceError
forall (f :: * -> *) (p :: * -> * -> *).
(Applicative f, Choice p) =>
Int -> Optic' p f ServiceError ServiceError
Core.hasStatus Int
409
_ThrottlingException :: Core.AsError a => Lens.Getting (Prelude.First Core.ServiceError) a Core.ServiceError
_ThrottlingException :: Getting (First ServiceError) a ServiceError
_ThrottlingException =
Service -> ErrorCode -> Getting (First ServiceError) a ServiceError
forall a.
AsError a =>
Service -> ErrorCode -> Getting (First ServiceError) a ServiceError
Core._MatchServiceError
Service
defaultService
ErrorCode
"ThrottlingException"
Getting (First ServiceError) a ServiceError
-> ((ServiceError -> Const (First ServiceError) ServiceError)
-> ServiceError -> Const (First ServiceError) ServiceError)
-> Getting (First ServiceError) a ServiceError
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. Int
-> (ServiceError -> Const (First ServiceError) ServiceError)
-> ServiceError
-> Const (First ServiceError) ServiceError
forall (f :: * -> *) (p :: * -> * -> *).
(Applicative f, Choice p) =>
Int -> Optic' p f ServiceError ServiceError
Core.hasStatus Int
429
_InternalServerException :: Core.AsError a => Lens.Getting (Prelude.First Core.ServiceError) a Core.ServiceError
_InternalServerException :: Getting (First ServiceError) a ServiceError
_InternalServerException =
Service -> ErrorCode -> Getting (First ServiceError) a ServiceError
forall a.
AsError a =>
Service -> ErrorCode -> Getting (First ServiceError) a ServiceError
Core._MatchServiceError
Service
defaultService
ErrorCode
"InternalServerException"
Getting (First ServiceError) a ServiceError
-> ((ServiceError -> Const (First ServiceError) ServiceError)
-> ServiceError -> Const (First ServiceError) ServiceError)
-> Getting (First ServiceError) a ServiceError
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. Int
-> (ServiceError -> Const (First ServiceError) ServiceError)
-> ServiceError
-> Const (First ServiceError) ServiceError
forall (f :: * -> *) (p :: * -> * -> *).
(Applicative f, Choice p) =>
Int -> Optic' p f ServiceError ServiceError
Core.hasStatus Int
500
_ResourceNotFoundException :: Core.AsError a => Lens.Getting (Prelude.First Core.ServiceError) a Core.ServiceError
_ResourceNotFoundException :: Getting (First ServiceError) a ServiceError
_ResourceNotFoundException =
Service -> ErrorCode -> Getting (First ServiceError) a ServiceError
forall a.
AsError a =>
Service -> ErrorCode -> Getting (First ServiceError) a ServiceError
Core._MatchServiceError
Service
defaultService
ErrorCode
"ResourceNotFoundException"
Getting (First ServiceError) a ServiceError
-> ((ServiceError -> Const (First ServiceError) ServiceError)
-> ServiceError -> Const (First ServiceError) ServiceError)
-> Getting (First ServiceError) a ServiceError
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. Int
-> (ServiceError -> Const (First ServiceError) ServiceError)
-> ServiceError
-> Const (First ServiceError) ServiceError
forall (f :: * -> *) (p :: * -> * -> *).
(Applicative f, Choice p) =>
Int -> Optic' p f ServiceError ServiceError
Core.hasStatus Int
404