{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE StrictData #-}
{-# LANGUAGE NoImplicitPrelude #-}
{-# OPTIONS_GHC -fno-warn-unused-matches #-}
module Amazonka.IoTEvents.Types
(
defaultService,
_InvalidRequestException,
_UnsupportedOperationException,
_ResourceAlreadyExistsException,
_ThrottlingException,
_InternalFailureException,
_ServiceUnavailableException,
_ResourceNotFoundException,
_LimitExceededException,
_ResourceInUseException,
AlarmModelVersionStatus (..),
AnalysisResultLevel (..),
AnalysisStatus (..),
ComparisonOperator (..),
DetectorModelVersionStatus (..),
EvaluationMethod (..),
InputStatus (..),
LoggingLevel (..),
PayloadType (..),
AcknowledgeFlow (..),
newAcknowledgeFlow,
acknowledgeFlow_enabled,
Action (..),
newAction,
action_iotTopicPublish,
action_dynamoDBv2,
action_resetTimer,
action_setTimer,
action_sns,
action_clearTimer,
action_dynamoDB,
action_firehose,
action_iotSiteWise,
action_setVariable,
action_lambda,
action_iotEvents,
action_sqs,
AlarmAction (..),
newAlarmAction,
alarmAction_iotTopicPublish,
alarmAction_dynamoDBv2,
alarmAction_sns,
alarmAction_dynamoDB,
alarmAction_firehose,
alarmAction_iotSiteWise,
alarmAction_lambda,
alarmAction_iotEvents,
alarmAction_sqs,
AlarmCapabilities (..),
newAlarmCapabilities,
alarmCapabilities_acknowledgeFlow,
alarmCapabilities_initializationConfiguration,
AlarmEventActions (..),
newAlarmEventActions,
alarmEventActions_alarmActions,
AlarmModelSummary (..),
newAlarmModelSummary,
alarmModelSummary_creationTime,
alarmModelSummary_alarmModelName,
alarmModelSummary_alarmModelDescription,
AlarmModelVersionSummary (..),
newAlarmModelVersionSummary,
alarmModelVersionSummary_creationTime,
alarmModelVersionSummary_status,
alarmModelVersionSummary_alarmModelName,
alarmModelVersionSummary_statusMessage,
alarmModelVersionSummary_lastUpdateTime,
alarmModelVersionSummary_alarmModelVersion,
alarmModelVersionSummary_alarmModelArn,
alarmModelVersionSummary_roleArn,
AlarmNotification (..),
newAlarmNotification,
alarmNotification_notificationActions,
AlarmRule (..),
newAlarmRule,
alarmRule_simpleRule,
AnalysisResult (..),
newAnalysisResult,
analysisResult_type,
analysisResult_message,
analysisResult_level,
analysisResult_locations,
AnalysisResultLocation (..),
newAnalysisResultLocation,
analysisResultLocation_path,
AssetPropertyTimestamp (..),
newAssetPropertyTimestamp,
assetPropertyTimestamp_offsetInNanos,
assetPropertyTimestamp_timeInSeconds,
AssetPropertyValue (..),
newAssetPropertyValue,
assetPropertyValue_value,
assetPropertyValue_quality,
assetPropertyValue_timestamp,
AssetPropertyVariant (..),
newAssetPropertyVariant,
assetPropertyVariant_integerValue,
assetPropertyVariant_doubleValue,
assetPropertyVariant_stringValue,
assetPropertyVariant_booleanValue,
Attribute (..),
newAttribute,
attribute_jsonPath,
ClearTimerAction (..),
newClearTimerAction,
clearTimerAction_timerName,
DetectorDebugOption (..),
newDetectorDebugOption,
detectorDebugOption_keyValue,
detectorDebugOption_detectorModelName,
DetectorModel (..),
newDetectorModel,
detectorModel_detectorModelConfiguration,
detectorModel_detectorModelDefinition,
DetectorModelConfiguration (..),
newDetectorModelConfiguration,
detectorModelConfiguration_creationTime,
detectorModelConfiguration_status,
detectorModelConfiguration_detectorModelName,
detectorModelConfiguration_detectorModelArn,
detectorModelConfiguration_detectorModelDescription,
detectorModelConfiguration_key,
detectorModelConfiguration_detectorModelVersion,
detectorModelConfiguration_lastUpdateTime,
detectorModelConfiguration_evaluationMethod,
detectorModelConfiguration_roleArn,
DetectorModelDefinition (..),
newDetectorModelDefinition,
detectorModelDefinition_states,
detectorModelDefinition_initialStateName,
DetectorModelSummary (..),
newDetectorModelSummary,
detectorModelSummary_creationTime,
detectorModelSummary_detectorModelName,
detectorModelSummary_detectorModelDescription,
DetectorModelVersionSummary (..),
newDetectorModelVersionSummary,
detectorModelVersionSummary_creationTime,
detectorModelVersionSummary_status,
detectorModelVersionSummary_detectorModelName,
detectorModelVersionSummary_detectorModelArn,
detectorModelVersionSummary_detectorModelVersion,
detectorModelVersionSummary_lastUpdateTime,
detectorModelVersionSummary_evaluationMethod,
detectorModelVersionSummary_roleArn,
DynamoDBAction (..),
newDynamoDBAction,
dynamoDBAction_hashKeyType,
dynamoDBAction_operation,
dynamoDBAction_rangeKeyType,
dynamoDBAction_payload,
dynamoDBAction_payloadField,
dynamoDBAction_rangeKeyField,
dynamoDBAction_rangeKeyValue,
dynamoDBAction_hashKeyField,
dynamoDBAction_hashKeyValue,
dynamoDBAction_tableName,
DynamoDBv2Action (..),
newDynamoDBv2Action,
dynamoDBv2Action_payload,
dynamoDBv2Action_tableName,
EmailConfiguration (..),
newEmailConfiguration,
emailConfiguration_content,
emailConfiguration_from,
emailConfiguration_recipients,
EmailContent (..),
newEmailContent,
emailContent_subject,
emailContent_additionalMessage,
EmailRecipients (..),
newEmailRecipients,
emailRecipients_to,
Event (..),
newEvent,
event_actions,
event_condition,
event_eventName,
FirehoseAction (..),
newFirehoseAction,
firehoseAction_separator,
firehoseAction_payload,
firehoseAction_deliveryStreamName,
InitializationConfiguration (..),
newInitializationConfiguration,
initializationConfiguration_disabledOnInitialization,
Input (..),
newInput,
input_inputDefinition,
input_inputConfiguration,
InputConfiguration (..),
newInputConfiguration,
inputConfiguration_inputDescription,
inputConfiguration_inputName,
inputConfiguration_inputArn,
inputConfiguration_creationTime,
inputConfiguration_lastUpdateTime,
inputConfiguration_status,
InputDefinition (..),
newInputDefinition,
inputDefinition_attributes,
InputIdentifier (..),
newInputIdentifier,
inputIdentifier_iotSiteWiseInputIdentifier,
inputIdentifier_iotEventsInputIdentifier,
InputSummary (..),
newInputSummary,
inputSummary_creationTime,
inputSummary_status,
inputSummary_inputName,
inputSummary_inputDescription,
inputSummary_inputArn,
inputSummary_lastUpdateTime,
IotEventsAction (..),
newIotEventsAction,
iotEventsAction_payload,
iotEventsAction_inputName,
IotEventsInputIdentifier (..),
newIotEventsInputIdentifier,
iotEventsInputIdentifier_inputName,
IotSiteWiseAction (..),
newIotSiteWiseAction,
iotSiteWiseAction_entryId,
iotSiteWiseAction_propertyAlias,
iotSiteWiseAction_propertyValue,
iotSiteWiseAction_propertyId,
iotSiteWiseAction_assetId,
IotSiteWiseAssetModelPropertyIdentifier (..),
newIotSiteWiseAssetModelPropertyIdentifier,
iotSiteWiseAssetModelPropertyIdentifier_assetModelId,
iotSiteWiseAssetModelPropertyIdentifier_propertyId,
IotSiteWiseInputIdentifier (..),
newIotSiteWiseInputIdentifier,
iotSiteWiseInputIdentifier_iotSiteWiseAssetModelPropertyIdentifier,
IotTopicPublishAction (..),
newIotTopicPublishAction,
iotTopicPublishAction_payload,
iotTopicPublishAction_mqttTopic,
LambdaAction (..),
newLambdaAction,
lambdaAction_payload,
lambdaAction_functionArn,
LoggingOptions (..),
newLoggingOptions,
loggingOptions_detectorDebugOptions,
loggingOptions_roleArn,
loggingOptions_level,
loggingOptions_enabled,
NotificationAction (..),
newNotificationAction,
notificationAction_emailConfigurations,
notificationAction_smsConfigurations,
notificationAction_action,
NotificationTargetActions (..),
newNotificationTargetActions,
notificationTargetActions_lambdaAction,
OnEnterLifecycle (..),
newOnEnterLifecycle,
onEnterLifecycle_events,
OnExitLifecycle (..),
newOnExitLifecycle,
onExitLifecycle_events,
OnInputLifecycle (..),
newOnInputLifecycle,
onInputLifecycle_events,
onInputLifecycle_transitionEvents,
Payload (..),
newPayload,
payload_contentExpression,
payload_type,
RecipientDetail (..),
newRecipientDetail,
recipientDetail_ssoIdentity,
ResetTimerAction (..),
newResetTimerAction,
resetTimerAction_timerName,
RoutedResource (..),
newRoutedResource,
routedResource_arn,
routedResource_name,
SMSConfiguration (..),
newSMSConfiguration,
sMSConfiguration_additionalMessage,
sMSConfiguration_senderId,
sMSConfiguration_recipients,
SNSTopicPublishAction (..),
newSNSTopicPublishAction,
sNSTopicPublishAction_payload,
sNSTopicPublishAction_targetArn,
SSOIdentity (..),
newSSOIdentity,
sSOIdentity_userId,
sSOIdentity_identityStoreId,
SetTimerAction (..),
newSetTimerAction,
setTimerAction_durationExpression,
setTimerAction_seconds,
setTimerAction_timerName,
SetVariableAction (..),
newSetVariableAction,
setVariableAction_variableName,
setVariableAction_value,
SimpleRule (..),
newSimpleRule,
simpleRule_inputProperty,
simpleRule_comparisonOperator,
simpleRule_threshold,
SqsAction (..),
newSqsAction,
sqsAction_payload,
sqsAction_useBase64,
sqsAction_queueUrl,
State (..),
newState,
state_onEnter,
state_onInput,
state_onExit,
state_stateName,
Tag (..),
newTag,
tag_key,
tag_value,
TransitionEvent (..),
newTransitionEvent,
transitionEvent_actions,
transitionEvent_eventName,
transitionEvent_condition,
transitionEvent_nextState,
)
where
import qualified Amazonka.Core as Core
import Amazonka.IoTEvents.Types.AcknowledgeFlow
import Amazonka.IoTEvents.Types.Action
import Amazonka.IoTEvents.Types.AlarmAction
import Amazonka.IoTEvents.Types.AlarmCapabilities
import Amazonka.IoTEvents.Types.AlarmEventActions
import Amazonka.IoTEvents.Types.AlarmModelSummary
import Amazonka.IoTEvents.Types.AlarmModelVersionStatus
import Amazonka.IoTEvents.Types.AlarmModelVersionSummary
import Amazonka.IoTEvents.Types.AlarmNotification
import Amazonka.IoTEvents.Types.AlarmRule
import Amazonka.IoTEvents.Types.AnalysisResult
import Amazonka.IoTEvents.Types.AnalysisResultLevel
import Amazonka.IoTEvents.Types.AnalysisResultLocation
import Amazonka.IoTEvents.Types.AnalysisStatus
import Amazonka.IoTEvents.Types.AssetPropertyTimestamp
import Amazonka.IoTEvents.Types.AssetPropertyValue
import Amazonka.IoTEvents.Types.AssetPropertyVariant
import Amazonka.IoTEvents.Types.Attribute
import Amazonka.IoTEvents.Types.ClearTimerAction
import Amazonka.IoTEvents.Types.ComparisonOperator
import Amazonka.IoTEvents.Types.DetectorDebugOption
import Amazonka.IoTEvents.Types.DetectorModel
import Amazonka.IoTEvents.Types.DetectorModelConfiguration
import Amazonka.IoTEvents.Types.DetectorModelDefinition
import Amazonka.IoTEvents.Types.DetectorModelSummary
import Amazonka.IoTEvents.Types.DetectorModelVersionStatus
import Amazonka.IoTEvents.Types.DetectorModelVersionSummary
import Amazonka.IoTEvents.Types.DynamoDBAction
import Amazonka.IoTEvents.Types.DynamoDBv2Action
import Amazonka.IoTEvents.Types.EmailConfiguration
import Amazonka.IoTEvents.Types.EmailContent
import Amazonka.IoTEvents.Types.EmailRecipients
import Amazonka.IoTEvents.Types.EvaluationMethod
import Amazonka.IoTEvents.Types.Event
import Amazonka.IoTEvents.Types.FirehoseAction
import Amazonka.IoTEvents.Types.InitializationConfiguration
import Amazonka.IoTEvents.Types.Input
import Amazonka.IoTEvents.Types.InputConfiguration
import Amazonka.IoTEvents.Types.InputDefinition
import Amazonka.IoTEvents.Types.InputIdentifier
import Amazonka.IoTEvents.Types.InputStatus
import Amazonka.IoTEvents.Types.InputSummary
import Amazonka.IoTEvents.Types.IotEventsAction
import Amazonka.IoTEvents.Types.IotEventsInputIdentifier
import Amazonka.IoTEvents.Types.IotSiteWiseAction
import Amazonka.IoTEvents.Types.IotSiteWiseAssetModelPropertyIdentifier
import Amazonka.IoTEvents.Types.IotSiteWiseInputIdentifier
import Amazonka.IoTEvents.Types.IotTopicPublishAction
import Amazonka.IoTEvents.Types.LambdaAction
import Amazonka.IoTEvents.Types.LoggingLevel
import Amazonka.IoTEvents.Types.LoggingOptions
import Amazonka.IoTEvents.Types.NotificationAction
import Amazonka.IoTEvents.Types.NotificationTargetActions
import Amazonka.IoTEvents.Types.OnEnterLifecycle
import Amazonka.IoTEvents.Types.OnExitLifecycle
import Amazonka.IoTEvents.Types.OnInputLifecycle
import Amazonka.IoTEvents.Types.Payload
import Amazonka.IoTEvents.Types.PayloadType
import Amazonka.IoTEvents.Types.RecipientDetail
import Amazonka.IoTEvents.Types.ResetTimerAction
import Amazonka.IoTEvents.Types.RoutedResource
import Amazonka.IoTEvents.Types.SMSConfiguration
import Amazonka.IoTEvents.Types.SNSTopicPublishAction
import Amazonka.IoTEvents.Types.SSOIdentity
import Amazonka.IoTEvents.Types.SetTimerAction
import Amazonka.IoTEvents.Types.SetVariableAction
import Amazonka.IoTEvents.Types.SimpleRule
import Amazonka.IoTEvents.Types.SqsAction
import Amazonka.IoTEvents.Types.State
import Amazonka.IoTEvents.Types.Tag
import Amazonka.IoTEvents.Types.TransitionEvent
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
"IoTEvents",
$sel:_serviceSigner:Service :: Signer
Core._serviceSigner = Signer
Sign.v4,
$sel:_serviceEndpointPrefix:Service :: ByteString
Core._serviceEndpointPrefix = ByteString
"iotevents",
$sel:_serviceSigningName:Service :: ByteString
Core._serviceSigningName = ByteString
"iotevents",
$sel:_serviceVersion:Service :: ByteString
Core._serviceVersion = ByteString
"2018-07-27",
$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
"IoTEvents",
$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
_InvalidRequestException :: Core.AsError a => Lens.Getting (Prelude.First Core.ServiceError) a Core.ServiceError
_InvalidRequestException :: Getting (First ServiceError) a ServiceError
_InvalidRequestException =
Service -> ErrorCode -> Getting (First ServiceError) a ServiceError
forall a.
AsError a =>
Service -> ErrorCode -> Getting (First ServiceError) a ServiceError
Core._MatchServiceError
Service
defaultService
ErrorCode
"InvalidRequestException"
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
_UnsupportedOperationException :: Core.AsError a => Lens.Getting (Prelude.First Core.ServiceError) a Core.ServiceError
_UnsupportedOperationException :: Getting (First ServiceError) a ServiceError
_UnsupportedOperationException =
Service -> ErrorCode -> Getting (First ServiceError) a ServiceError
forall a.
AsError a =>
Service -> ErrorCode -> Getting (First ServiceError) a ServiceError
Core._MatchServiceError
Service
defaultService
ErrorCode
"UnsupportedOperationException"
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
501
_ResourceAlreadyExistsException :: Core.AsError a => Lens.Getting (Prelude.First Core.ServiceError) a Core.ServiceError
_ResourceAlreadyExistsException :: Getting (First ServiceError) a ServiceError
_ResourceAlreadyExistsException =
Service -> ErrorCode -> Getting (First ServiceError) a ServiceError
forall a.
AsError a =>
Service -> ErrorCode -> Getting (First ServiceError) a ServiceError
Core._MatchServiceError
Service
defaultService
ErrorCode
"ResourceAlreadyExistsException"
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
_InternalFailureException :: Core.AsError a => Lens.Getting (Prelude.First Core.ServiceError) a Core.ServiceError
_InternalFailureException :: Getting (First ServiceError) a ServiceError
_InternalFailureException =
Service -> ErrorCode -> Getting (First ServiceError) a ServiceError
forall a.
AsError a =>
Service -> ErrorCode -> Getting (First ServiceError) a ServiceError
Core._MatchServiceError
Service
defaultService
ErrorCode
"InternalFailureException"
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
_ServiceUnavailableException :: Core.AsError a => Lens.Getting (Prelude.First Core.ServiceError) a Core.ServiceError
_ServiceUnavailableException :: Getting (First ServiceError) a ServiceError
_ServiceUnavailableException =
Service -> ErrorCode -> Getting (First ServiceError) a ServiceError
forall a.
AsError a =>
Service -> ErrorCode -> Getting (First ServiceError) a ServiceError
Core._MatchServiceError
Service
defaultService
ErrorCode
"ServiceUnavailableException"
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
503
_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
_LimitExceededException :: Core.AsError a => Lens.Getting (Prelude.First Core.ServiceError) a Core.ServiceError
_LimitExceededException :: Getting (First ServiceError) a ServiceError
_LimitExceededException =
Service -> ErrorCode -> Getting (First ServiceError) a ServiceError
forall a.
AsError a =>
Service -> ErrorCode -> Getting (First ServiceError) a ServiceError
Core._MatchServiceError
Service
defaultService
ErrorCode
"LimitExceededException"
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
410
_ResourceInUseException :: Core.AsError a => Lens.Getting (Prelude.First Core.ServiceError) a Core.ServiceError
_ResourceInUseException :: Getting (First ServiceError) a ServiceError
_ResourceInUseException =
Service -> ErrorCode -> Getting (First ServiceError) a ServiceError
forall a.
AsError a =>
Service -> ErrorCode -> Getting (First ServiceError) a ServiceError
Core._MatchServiceError
Service
defaultService
ErrorCode
"ResourceInUseException"
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