{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE StrictData #-}
{-# LANGUAGE NoImplicitPrelude #-}
{-# OPTIONS_GHC -fno-warn-unused-matches #-}
module Amazonka.SWF.Types
(
defaultService,
_DomainAlreadyExistsFault,
_LimitExceededFault,
_WorkflowExecutionAlreadyStartedFault,
_OperationNotPermittedFault,
_UnknownResourceFault,
_DefaultUndefinedFault,
_TypeDeprecatedFault,
_TooManyTagsFault,
_TypeAlreadyExistsFault,
_DomainDeprecatedFault,
ActivityTaskTimeoutType (..),
CancelTimerFailedCause (..),
CancelWorkflowExecutionFailedCause (..),
ChildPolicy (..),
CloseStatus (..),
CompleteWorkflowExecutionFailedCause (..),
ContinueAsNewWorkflowExecutionFailedCause (..),
DecisionTaskTimeoutType (..),
DecisionType (..),
EventType (..),
ExecutionStatus (..),
FailWorkflowExecutionFailedCause (..),
LambdaFunctionTimeoutType (..),
RecordMarkerFailedCause (..),
RegistrationStatus (..),
RequestCancelActivityTaskFailedCause (..),
RequestCancelExternalWorkflowExecutionFailedCause (..),
ScheduleActivityTaskFailedCause (..),
ScheduleLambdaFunctionFailedCause (..),
SignalExternalWorkflowExecutionFailedCause (..),
StartChildWorkflowExecutionFailedCause (..),
StartLambdaFunctionFailedCause (..),
StartTimerFailedCause (..),
WorkflowExecutionCancelRequestedCause (..),
WorkflowExecutionTerminatedCause (..),
WorkflowExecutionTimeoutType (..),
ActivityTaskCancelRequestedEventAttributes (..),
newActivityTaskCancelRequestedEventAttributes,
activityTaskCancelRequestedEventAttributes_decisionTaskCompletedEventId,
activityTaskCancelRequestedEventAttributes_activityId,
ActivityTaskCanceledEventAttributes (..),
newActivityTaskCanceledEventAttributes,
activityTaskCanceledEventAttributes_latestCancelRequestedEventId,
activityTaskCanceledEventAttributes_details,
activityTaskCanceledEventAttributes_scheduledEventId,
activityTaskCanceledEventAttributes_startedEventId,
ActivityTaskCompletedEventAttributes (..),
newActivityTaskCompletedEventAttributes,
activityTaskCompletedEventAttributes_result,
activityTaskCompletedEventAttributes_scheduledEventId,
activityTaskCompletedEventAttributes_startedEventId,
ActivityTaskFailedEventAttributes (..),
newActivityTaskFailedEventAttributes,
activityTaskFailedEventAttributes_reason,
activityTaskFailedEventAttributes_details,
activityTaskFailedEventAttributes_scheduledEventId,
activityTaskFailedEventAttributes_startedEventId,
ActivityTaskScheduledEventAttributes (..),
newActivityTaskScheduledEventAttributes,
activityTaskScheduledEventAttributes_control,
activityTaskScheduledEventAttributes_heartbeatTimeout,
activityTaskScheduledEventAttributes_scheduleToCloseTimeout,
activityTaskScheduledEventAttributes_input,
activityTaskScheduledEventAttributes_taskPriority,
activityTaskScheduledEventAttributes_scheduleToStartTimeout,
activityTaskScheduledEventAttributes_startToCloseTimeout,
activityTaskScheduledEventAttributes_activityType,
activityTaskScheduledEventAttributes_activityId,
activityTaskScheduledEventAttributes_taskList,
activityTaskScheduledEventAttributes_decisionTaskCompletedEventId,
ActivityTaskStartedEventAttributes (..),
newActivityTaskStartedEventAttributes,
activityTaskStartedEventAttributes_identity,
activityTaskStartedEventAttributes_scheduledEventId,
ActivityTaskTimedOutEventAttributes (..),
newActivityTaskTimedOutEventAttributes,
activityTaskTimedOutEventAttributes_details,
activityTaskTimedOutEventAttributes_timeoutType,
activityTaskTimedOutEventAttributes_scheduledEventId,
activityTaskTimedOutEventAttributes_startedEventId,
ActivityType (..),
newActivityType,
activityType_name,
activityType_version,
ActivityTypeConfiguration (..),
newActivityTypeConfiguration,
activityTypeConfiguration_defaultTaskScheduleToStartTimeout,
activityTypeConfiguration_defaultTaskList,
activityTypeConfiguration_defaultTaskPriority,
activityTypeConfiguration_defaultTaskHeartbeatTimeout,
activityTypeConfiguration_defaultTaskScheduleToCloseTimeout,
activityTypeConfiguration_defaultTaskStartToCloseTimeout,
ActivityTypeInfo (..),
newActivityTypeInfo,
activityTypeInfo_deprecationDate,
activityTypeInfo_description,
activityTypeInfo_activityType,
activityTypeInfo_status,
activityTypeInfo_creationDate,
CancelTimerDecisionAttributes (..),
newCancelTimerDecisionAttributes,
cancelTimerDecisionAttributes_timerId,
CancelTimerFailedEventAttributes (..),
newCancelTimerFailedEventAttributes,
cancelTimerFailedEventAttributes_timerId,
cancelTimerFailedEventAttributes_cause,
cancelTimerFailedEventAttributes_decisionTaskCompletedEventId,
CancelWorkflowExecutionDecisionAttributes (..),
newCancelWorkflowExecutionDecisionAttributes,
cancelWorkflowExecutionDecisionAttributes_details,
CancelWorkflowExecutionFailedEventAttributes (..),
newCancelWorkflowExecutionFailedEventAttributes,
cancelWorkflowExecutionFailedEventAttributes_cause,
cancelWorkflowExecutionFailedEventAttributes_decisionTaskCompletedEventId,
ChildWorkflowExecutionCanceledEventAttributes (..),
newChildWorkflowExecutionCanceledEventAttributes,
childWorkflowExecutionCanceledEventAttributes_details,
childWorkflowExecutionCanceledEventAttributes_workflowExecution,
childWorkflowExecutionCanceledEventAttributes_workflowType,
childWorkflowExecutionCanceledEventAttributes_initiatedEventId,
childWorkflowExecutionCanceledEventAttributes_startedEventId,
ChildWorkflowExecutionCompletedEventAttributes (..),
newChildWorkflowExecutionCompletedEventAttributes,
childWorkflowExecutionCompletedEventAttributes_result,
childWorkflowExecutionCompletedEventAttributes_workflowExecution,
childWorkflowExecutionCompletedEventAttributes_workflowType,
childWorkflowExecutionCompletedEventAttributes_initiatedEventId,
childWorkflowExecutionCompletedEventAttributes_startedEventId,
ChildWorkflowExecutionFailedEventAttributes (..),
newChildWorkflowExecutionFailedEventAttributes,
childWorkflowExecutionFailedEventAttributes_reason,
childWorkflowExecutionFailedEventAttributes_details,
childWorkflowExecutionFailedEventAttributes_workflowExecution,
childWorkflowExecutionFailedEventAttributes_workflowType,
childWorkflowExecutionFailedEventAttributes_initiatedEventId,
childWorkflowExecutionFailedEventAttributes_startedEventId,
ChildWorkflowExecutionStartedEventAttributes (..),
newChildWorkflowExecutionStartedEventAttributes,
childWorkflowExecutionStartedEventAttributes_workflowExecution,
childWorkflowExecutionStartedEventAttributes_workflowType,
childWorkflowExecutionStartedEventAttributes_initiatedEventId,
ChildWorkflowExecutionTerminatedEventAttributes (..),
newChildWorkflowExecutionTerminatedEventAttributes,
childWorkflowExecutionTerminatedEventAttributes_workflowExecution,
childWorkflowExecutionTerminatedEventAttributes_workflowType,
childWorkflowExecutionTerminatedEventAttributes_initiatedEventId,
childWorkflowExecutionTerminatedEventAttributes_startedEventId,
ChildWorkflowExecutionTimedOutEventAttributes (..),
newChildWorkflowExecutionTimedOutEventAttributes,
childWorkflowExecutionTimedOutEventAttributes_workflowExecution,
childWorkflowExecutionTimedOutEventAttributes_workflowType,
childWorkflowExecutionTimedOutEventAttributes_timeoutType,
childWorkflowExecutionTimedOutEventAttributes_initiatedEventId,
childWorkflowExecutionTimedOutEventAttributes_startedEventId,
CloseStatusFilter (..),
newCloseStatusFilter,
closeStatusFilter_status,
CompleteWorkflowExecutionDecisionAttributes (..),
newCompleteWorkflowExecutionDecisionAttributes,
completeWorkflowExecutionDecisionAttributes_result,
CompleteWorkflowExecutionFailedEventAttributes (..),
newCompleteWorkflowExecutionFailedEventAttributes,
completeWorkflowExecutionFailedEventAttributes_cause,
completeWorkflowExecutionFailedEventAttributes_decisionTaskCompletedEventId,
ContinueAsNewWorkflowExecutionDecisionAttributes (..),
newContinueAsNewWorkflowExecutionDecisionAttributes,
continueAsNewWorkflowExecutionDecisionAttributes_tagList,
continueAsNewWorkflowExecutionDecisionAttributes_taskStartToCloseTimeout,
continueAsNewWorkflowExecutionDecisionAttributes_lambdaRole,
continueAsNewWorkflowExecutionDecisionAttributes_input,
continueAsNewWorkflowExecutionDecisionAttributes_workflowTypeVersion,
continueAsNewWorkflowExecutionDecisionAttributes_executionStartToCloseTimeout,
continueAsNewWorkflowExecutionDecisionAttributes_taskList,
continueAsNewWorkflowExecutionDecisionAttributes_taskPriority,
continueAsNewWorkflowExecutionDecisionAttributes_childPolicy,
ContinueAsNewWorkflowExecutionFailedEventAttributes (..),
newContinueAsNewWorkflowExecutionFailedEventAttributes,
continueAsNewWorkflowExecutionFailedEventAttributes_cause,
continueAsNewWorkflowExecutionFailedEventAttributes_decisionTaskCompletedEventId,
Decision (..),
newDecision,
decision_requestCancelExternalWorkflowExecutionDecisionAttributes,
decision_scheduleActivityTaskDecisionAttributes,
decision_signalExternalWorkflowExecutionDecisionAttributes,
decision_startTimerDecisionAttributes,
decision_recordMarkerDecisionAttributes,
decision_failWorkflowExecutionDecisionAttributes,
decision_startChildWorkflowExecutionDecisionAttributes,
decision_completeWorkflowExecutionDecisionAttributes,
decision_scheduleLambdaFunctionDecisionAttributes,
decision_requestCancelActivityTaskDecisionAttributes,
decision_cancelWorkflowExecutionDecisionAttributes,
decision_cancelTimerDecisionAttributes,
decision_continueAsNewWorkflowExecutionDecisionAttributes,
decision_decisionType,
DecisionTaskCompletedEventAttributes (..),
newDecisionTaskCompletedEventAttributes,
decisionTaskCompletedEventAttributes_executionContext,
decisionTaskCompletedEventAttributes_scheduledEventId,
decisionTaskCompletedEventAttributes_startedEventId,
DecisionTaskScheduledEventAttributes (..),
newDecisionTaskScheduledEventAttributes,
decisionTaskScheduledEventAttributes_taskPriority,
decisionTaskScheduledEventAttributes_startToCloseTimeout,
decisionTaskScheduledEventAttributes_taskList,
DecisionTaskStartedEventAttributes (..),
newDecisionTaskStartedEventAttributes,
decisionTaskStartedEventAttributes_identity,
decisionTaskStartedEventAttributes_scheduledEventId,
DecisionTaskTimedOutEventAttributes (..),
newDecisionTaskTimedOutEventAttributes,
decisionTaskTimedOutEventAttributes_timeoutType,
decisionTaskTimedOutEventAttributes_scheduledEventId,
decisionTaskTimedOutEventAttributes_startedEventId,
DomainConfiguration (..),
newDomainConfiguration,
domainConfiguration_workflowExecutionRetentionPeriodInDays,
DomainInfo (..),
newDomainInfo,
domainInfo_arn,
domainInfo_description,
domainInfo_name,
domainInfo_status,
ExecutionTimeFilter (..),
newExecutionTimeFilter,
executionTimeFilter_latestDate,
executionTimeFilter_oldestDate,
ExternalWorkflowExecutionCancelRequestedEventAttributes (..),
newExternalWorkflowExecutionCancelRequestedEventAttributes,
externalWorkflowExecutionCancelRequestedEventAttributes_workflowExecution,
externalWorkflowExecutionCancelRequestedEventAttributes_initiatedEventId,
ExternalWorkflowExecutionSignaledEventAttributes (..),
newExternalWorkflowExecutionSignaledEventAttributes,
externalWorkflowExecutionSignaledEventAttributes_workflowExecution,
externalWorkflowExecutionSignaledEventAttributes_initiatedEventId,
FailWorkflowExecutionDecisionAttributes (..),
newFailWorkflowExecutionDecisionAttributes,
failWorkflowExecutionDecisionAttributes_reason,
failWorkflowExecutionDecisionAttributes_details,
FailWorkflowExecutionFailedEventAttributes (..),
newFailWorkflowExecutionFailedEventAttributes,
failWorkflowExecutionFailedEventAttributes_cause,
failWorkflowExecutionFailedEventAttributes_decisionTaskCompletedEventId,
HistoryEvent (..),
newHistoryEvent,
historyEvent_workflowExecutionCancelRequestedEventAttributes,
historyEvent_recordMarkerFailedEventAttributes,
historyEvent_requestCancelExternalWorkflowExecutionInitiatedEventAttributes,
historyEvent_lambdaFunctionStartedEventAttributes,
historyEvent_decisionTaskScheduledEventAttributes,
historyEvent_workflowExecutionCompletedEventAttributes,
historyEvent_startTimerFailedEventAttributes,
historyEvent_activityTaskScheduledEventAttributes,
historyEvent_scheduleActivityTaskFailedEventAttributes,
historyEvent_childWorkflowExecutionCompletedEventAttributes,
historyEvent_markerRecordedEventAttributes,
historyEvent_scheduleLambdaFunctionFailedEventAttributes,
historyEvent_completeWorkflowExecutionFailedEventAttributes,
historyEvent_lambdaFunctionCompletedEventAttributes,
historyEvent_requestCancelExternalWorkflowExecutionFailedEventAttributes,
historyEvent_timerCanceledEventAttributes,
historyEvent_workflowExecutionStartedEventAttributes,
historyEvent_activityTaskCompletedEventAttributes,
historyEvent_decisionTaskTimedOutEventAttributes,
historyEvent_cancelTimerFailedEventAttributes,
historyEvent_childWorkflowExecutionStartedEventAttributes,
historyEvent_activityTaskCanceledEventAttributes,
historyEvent_activityTaskTimedOutEventAttributes,
historyEvent_decisionTaskStartedEventAttributes,
historyEvent_workflowExecutionTerminatedEventAttributes,
historyEvent_childWorkflowExecutionCanceledEventAttributes,
historyEvent_requestCancelActivityTaskFailedEventAttributes,
historyEvent_lambdaFunctionScheduledEventAttributes,
historyEvent_childWorkflowExecutionTimedOutEventAttributes,
historyEvent_cancelWorkflowExecutionFailedEventAttributes,
historyEvent_startChildWorkflowExecutionInitiatedEventAttributes,
historyEvent_signalExternalWorkflowExecutionFailedEventAttributes,
historyEvent_activityTaskStartedEventAttributes,
historyEvent_startLambdaFunctionFailedEventAttributes,
historyEvent_childWorkflowExecutionTerminatedEventAttributes,
historyEvent_lambdaFunctionFailedEventAttributes,
historyEvent_workflowExecutionCanceledEventAttributes,
historyEvent_timerStartedEventAttributes,
historyEvent_activityTaskCancelRequestedEventAttributes,
historyEvent_workflowExecutionTimedOutEventAttributes,
historyEvent_workflowExecutionSignaledEventAttributes,
historyEvent_timerFiredEventAttributes,
historyEvent_activityTaskFailedEventAttributes,
historyEvent_externalWorkflowExecutionSignaledEventAttributes,
historyEvent_decisionTaskCompletedEventAttributes,
historyEvent_startChildWorkflowExecutionFailedEventAttributes,
historyEvent_childWorkflowExecutionFailedEventAttributes,
historyEvent_failWorkflowExecutionFailedEventAttributes,
historyEvent_continueAsNewWorkflowExecutionFailedEventAttributes,
historyEvent_signalExternalWorkflowExecutionInitiatedEventAttributes,
historyEvent_lambdaFunctionTimedOutEventAttributes,
historyEvent_workflowExecutionFailedEventAttributes,
historyEvent_workflowExecutionContinuedAsNewEventAttributes,
historyEvent_externalWorkflowExecutionCancelRequestedEventAttributes,
historyEvent_eventTimestamp,
historyEvent_eventType,
historyEvent_eventId,
LambdaFunctionCompletedEventAttributes (..),
newLambdaFunctionCompletedEventAttributes,
lambdaFunctionCompletedEventAttributes_result,
lambdaFunctionCompletedEventAttributes_scheduledEventId,
lambdaFunctionCompletedEventAttributes_startedEventId,
LambdaFunctionFailedEventAttributes (..),
newLambdaFunctionFailedEventAttributes,
lambdaFunctionFailedEventAttributes_reason,
lambdaFunctionFailedEventAttributes_details,
lambdaFunctionFailedEventAttributes_scheduledEventId,
lambdaFunctionFailedEventAttributes_startedEventId,
LambdaFunctionScheduledEventAttributes (..),
newLambdaFunctionScheduledEventAttributes,
lambdaFunctionScheduledEventAttributes_control,
lambdaFunctionScheduledEventAttributes_input,
lambdaFunctionScheduledEventAttributes_startToCloseTimeout,
lambdaFunctionScheduledEventAttributes_id,
lambdaFunctionScheduledEventAttributes_name,
lambdaFunctionScheduledEventAttributes_decisionTaskCompletedEventId,
LambdaFunctionStartedEventAttributes (..),
newLambdaFunctionStartedEventAttributes,
lambdaFunctionStartedEventAttributes_scheduledEventId,
LambdaFunctionTimedOutEventAttributes (..),
newLambdaFunctionTimedOutEventAttributes,
lambdaFunctionTimedOutEventAttributes_timeoutType,
lambdaFunctionTimedOutEventAttributes_scheduledEventId,
lambdaFunctionTimedOutEventAttributes_startedEventId,
MarkerRecordedEventAttributes (..),
newMarkerRecordedEventAttributes,
markerRecordedEventAttributes_details,
markerRecordedEventAttributes_markerName,
markerRecordedEventAttributes_decisionTaskCompletedEventId,
PendingTaskCount (..),
newPendingTaskCount,
pendingTaskCount_truncated,
pendingTaskCount_count,
RecordMarkerDecisionAttributes (..),
newRecordMarkerDecisionAttributes,
recordMarkerDecisionAttributes_details,
recordMarkerDecisionAttributes_markerName,
RecordMarkerFailedEventAttributes (..),
newRecordMarkerFailedEventAttributes,
recordMarkerFailedEventAttributes_markerName,
recordMarkerFailedEventAttributes_cause,
recordMarkerFailedEventAttributes_decisionTaskCompletedEventId,
RequestCancelActivityTaskDecisionAttributes (..),
newRequestCancelActivityTaskDecisionAttributes,
requestCancelActivityTaskDecisionAttributes_activityId,
RequestCancelActivityTaskFailedEventAttributes (..),
newRequestCancelActivityTaskFailedEventAttributes,
requestCancelActivityTaskFailedEventAttributes_activityId,
requestCancelActivityTaskFailedEventAttributes_cause,
requestCancelActivityTaskFailedEventAttributes_decisionTaskCompletedEventId,
RequestCancelExternalWorkflowExecutionDecisionAttributes (..),
newRequestCancelExternalWorkflowExecutionDecisionAttributes,
requestCancelExternalWorkflowExecutionDecisionAttributes_control,
requestCancelExternalWorkflowExecutionDecisionAttributes_runId,
requestCancelExternalWorkflowExecutionDecisionAttributes_workflowId,
RequestCancelExternalWorkflowExecutionFailedEventAttributes (..),
newRequestCancelExternalWorkflowExecutionFailedEventAttributes,
requestCancelExternalWorkflowExecutionFailedEventAttributes_control,
requestCancelExternalWorkflowExecutionFailedEventAttributes_runId,
requestCancelExternalWorkflowExecutionFailedEventAttributes_workflowId,
requestCancelExternalWorkflowExecutionFailedEventAttributes_cause,
requestCancelExternalWorkflowExecutionFailedEventAttributes_initiatedEventId,
requestCancelExternalWorkflowExecutionFailedEventAttributes_decisionTaskCompletedEventId,
RequestCancelExternalWorkflowExecutionInitiatedEventAttributes (..),
newRequestCancelExternalWorkflowExecutionInitiatedEventAttributes,
requestCancelExternalWorkflowExecutionInitiatedEventAttributes_control,
requestCancelExternalWorkflowExecutionInitiatedEventAttributes_runId,
requestCancelExternalWorkflowExecutionInitiatedEventAttributes_workflowId,
requestCancelExternalWorkflowExecutionInitiatedEventAttributes_decisionTaskCompletedEventId,
ResourceTag (..),
newResourceTag,
resourceTag_value,
resourceTag_key,
ScheduleActivityTaskDecisionAttributes (..),
newScheduleActivityTaskDecisionAttributes,
scheduleActivityTaskDecisionAttributes_control,
scheduleActivityTaskDecisionAttributes_heartbeatTimeout,
scheduleActivityTaskDecisionAttributes_scheduleToCloseTimeout,
scheduleActivityTaskDecisionAttributes_input,
scheduleActivityTaskDecisionAttributes_taskList,
scheduleActivityTaskDecisionAttributes_taskPriority,
scheduleActivityTaskDecisionAttributes_scheduleToStartTimeout,
scheduleActivityTaskDecisionAttributes_startToCloseTimeout,
scheduleActivityTaskDecisionAttributes_activityType,
scheduleActivityTaskDecisionAttributes_activityId,
ScheduleActivityTaskFailedEventAttributes (..),
newScheduleActivityTaskFailedEventAttributes,
scheduleActivityTaskFailedEventAttributes_activityType,
scheduleActivityTaskFailedEventAttributes_activityId,
scheduleActivityTaskFailedEventAttributes_cause,
scheduleActivityTaskFailedEventAttributes_decisionTaskCompletedEventId,
ScheduleLambdaFunctionDecisionAttributes (..),
newScheduleLambdaFunctionDecisionAttributes,
scheduleLambdaFunctionDecisionAttributes_control,
scheduleLambdaFunctionDecisionAttributes_input,
scheduleLambdaFunctionDecisionAttributes_startToCloseTimeout,
scheduleLambdaFunctionDecisionAttributes_id,
scheduleLambdaFunctionDecisionAttributes_name,
ScheduleLambdaFunctionFailedEventAttributes (..),
newScheduleLambdaFunctionFailedEventAttributes,
scheduleLambdaFunctionFailedEventAttributes_id,
scheduleLambdaFunctionFailedEventAttributes_name,
scheduleLambdaFunctionFailedEventAttributes_cause,
scheduleLambdaFunctionFailedEventAttributes_decisionTaskCompletedEventId,
SignalExternalWorkflowExecutionDecisionAttributes (..),
newSignalExternalWorkflowExecutionDecisionAttributes,
signalExternalWorkflowExecutionDecisionAttributes_control,
signalExternalWorkflowExecutionDecisionAttributes_input,
signalExternalWorkflowExecutionDecisionAttributes_runId,
signalExternalWorkflowExecutionDecisionAttributes_workflowId,
signalExternalWorkflowExecutionDecisionAttributes_signalName,
SignalExternalWorkflowExecutionFailedEventAttributes (..),
newSignalExternalWorkflowExecutionFailedEventAttributes,
signalExternalWorkflowExecutionFailedEventAttributes_control,
signalExternalWorkflowExecutionFailedEventAttributes_runId,
signalExternalWorkflowExecutionFailedEventAttributes_workflowId,
signalExternalWorkflowExecutionFailedEventAttributes_cause,
signalExternalWorkflowExecutionFailedEventAttributes_initiatedEventId,
signalExternalWorkflowExecutionFailedEventAttributes_decisionTaskCompletedEventId,
SignalExternalWorkflowExecutionInitiatedEventAttributes (..),
newSignalExternalWorkflowExecutionInitiatedEventAttributes,
signalExternalWorkflowExecutionInitiatedEventAttributes_control,
signalExternalWorkflowExecutionInitiatedEventAttributes_input,
signalExternalWorkflowExecutionInitiatedEventAttributes_runId,
signalExternalWorkflowExecutionInitiatedEventAttributes_workflowId,
signalExternalWorkflowExecutionInitiatedEventAttributes_signalName,
signalExternalWorkflowExecutionInitiatedEventAttributes_decisionTaskCompletedEventId,
StartChildWorkflowExecutionDecisionAttributes (..),
newStartChildWorkflowExecutionDecisionAttributes,
startChildWorkflowExecutionDecisionAttributes_control,
startChildWorkflowExecutionDecisionAttributes_tagList,
startChildWorkflowExecutionDecisionAttributes_taskStartToCloseTimeout,
startChildWorkflowExecutionDecisionAttributes_lambdaRole,
startChildWorkflowExecutionDecisionAttributes_input,
startChildWorkflowExecutionDecisionAttributes_executionStartToCloseTimeout,
startChildWorkflowExecutionDecisionAttributes_taskList,
startChildWorkflowExecutionDecisionAttributes_taskPriority,
startChildWorkflowExecutionDecisionAttributes_childPolicy,
startChildWorkflowExecutionDecisionAttributes_workflowType,
startChildWorkflowExecutionDecisionAttributes_workflowId,
StartChildWorkflowExecutionFailedEventAttributes (..),
newStartChildWorkflowExecutionFailedEventAttributes,
startChildWorkflowExecutionFailedEventAttributes_control,
startChildWorkflowExecutionFailedEventAttributes_workflowType,
startChildWorkflowExecutionFailedEventAttributes_cause,
startChildWorkflowExecutionFailedEventAttributes_workflowId,
startChildWorkflowExecutionFailedEventAttributes_initiatedEventId,
startChildWorkflowExecutionFailedEventAttributes_decisionTaskCompletedEventId,
StartChildWorkflowExecutionInitiatedEventAttributes (..),
newStartChildWorkflowExecutionInitiatedEventAttributes,
startChildWorkflowExecutionInitiatedEventAttributes_control,
startChildWorkflowExecutionInitiatedEventAttributes_tagList,
startChildWorkflowExecutionInitiatedEventAttributes_taskStartToCloseTimeout,
startChildWorkflowExecutionInitiatedEventAttributes_lambdaRole,
startChildWorkflowExecutionInitiatedEventAttributes_input,
startChildWorkflowExecutionInitiatedEventAttributes_executionStartToCloseTimeout,
startChildWorkflowExecutionInitiatedEventAttributes_taskPriority,
startChildWorkflowExecutionInitiatedEventAttributes_workflowId,
startChildWorkflowExecutionInitiatedEventAttributes_workflowType,
startChildWorkflowExecutionInitiatedEventAttributes_taskList,
startChildWorkflowExecutionInitiatedEventAttributes_decisionTaskCompletedEventId,
startChildWorkflowExecutionInitiatedEventAttributes_childPolicy,
StartLambdaFunctionFailedEventAttributes (..),
newStartLambdaFunctionFailedEventAttributes,
startLambdaFunctionFailedEventAttributes_scheduledEventId,
startLambdaFunctionFailedEventAttributes_cause,
startLambdaFunctionFailedEventAttributes_message,
StartTimerDecisionAttributes (..),
newStartTimerDecisionAttributes,
startTimerDecisionAttributes_control,
startTimerDecisionAttributes_timerId,
startTimerDecisionAttributes_startToFireTimeout,
StartTimerFailedEventAttributes (..),
newStartTimerFailedEventAttributes,
startTimerFailedEventAttributes_timerId,
startTimerFailedEventAttributes_cause,
startTimerFailedEventAttributes_decisionTaskCompletedEventId,
TagFilter (..),
newTagFilter,
tagFilter_tag,
TaskList (..),
newTaskList,
taskList_name,
TimerCanceledEventAttributes (..),
newTimerCanceledEventAttributes,
timerCanceledEventAttributes_timerId,
timerCanceledEventAttributes_startedEventId,
timerCanceledEventAttributes_decisionTaskCompletedEventId,
TimerFiredEventAttributes (..),
newTimerFiredEventAttributes,
timerFiredEventAttributes_timerId,
timerFiredEventAttributes_startedEventId,
TimerStartedEventAttributes (..),
newTimerStartedEventAttributes,
timerStartedEventAttributes_control,
timerStartedEventAttributes_timerId,
timerStartedEventAttributes_startToFireTimeout,
timerStartedEventAttributes_decisionTaskCompletedEventId,
WorkflowExecution (..),
newWorkflowExecution,
workflowExecution_workflowId,
workflowExecution_runId,
WorkflowExecutionCancelRequestedEventAttributes (..),
newWorkflowExecutionCancelRequestedEventAttributes,
workflowExecutionCancelRequestedEventAttributes_externalWorkflowExecution,
workflowExecutionCancelRequestedEventAttributes_externalInitiatedEventId,
workflowExecutionCancelRequestedEventAttributes_cause,
WorkflowExecutionCanceledEventAttributes (..),
newWorkflowExecutionCanceledEventAttributes,
workflowExecutionCanceledEventAttributes_details,
workflowExecutionCanceledEventAttributes_decisionTaskCompletedEventId,
WorkflowExecutionCompletedEventAttributes (..),
newWorkflowExecutionCompletedEventAttributes,
workflowExecutionCompletedEventAttributes_result,
workflowExecutionCompletedEventAttributes_decisionTaskCompletedEventId,
WorkflowExecutionConfiguration (..),
newWorkflowExecutionConfiguration,
workflowExecutionConfiguration_lambdaRole,
workflowExecutionConfiguration_taskPriority,
workflowExecutionConfiguration_taskStartToCloseTimeout,
workflowExecutionConfiguration_executionStartToCloseTimeout,
workflowExecutionConfiguration_taskList,
workflowExecutionConfiguration_childPolicy,
WorkflowExecutionContinuedAsNewEventAttributes (..),
newWorkflowExecutionContinuedAsNewEventAttributes,
workflowExecutionContinuedAsNewEventAttributes_tagList,
workflowExecutionContinuedAsNewEventAttributes_taskStartToCloseTimeout,
workflowExecutionContinuedAsNewEventAttributes_lambdaRole,
workflowExecutionContinuedAsNewEventAttributes_input,
workflowExecutionContinuedAsNewEventAttributes_executionStartToCloseTimeout,
workflowExecutionContinuedAsNewEventAttributes_taskPriority,
workflowExecutionContinuedAsNewEventAttributes_decisionTaskCompletedEventId,
workflowExecutionContinuedAsNewEventAttributes_newExecutionRunId,
workflowExecutionContinuedAsNewEventAttributes_taskList,
workflowExecutionContinuedAsNewEventAttributes_childPolicy,
workflowExecutionContinuedAsNewEventAttributes_workflowType,
WorkflowExecutionCount (..),
newWorkflowExecutionCount,
workflowExecutionCount_truncated,
workflowExecutionCount_count,
WorkflowExecutionFailedEventAttributes (..),
newWorkflowExecutionFailedEventAttributes,
workflowExecutionFailedEventAttributes_reason,
workflowExecutionFailedEventAttributes_details,
workflowExecutionFailedEventAttributes_decisionTaskCompletedEventId,
WorkflowExecutionFilter (..),
newWorkflowExecutionFilter,
workflowExecutionFilter_workflowId,
WorkflowExecutionInfo (..),
newWorkflowExecutionInfo,
workflowExecutionInfo_parent,
workflowExecutionInfo_tagList,
workflowExecutionInfo_closeStatus,
workflowExecutionInfo_closeTimestamp,
workflowExecutionInfo_cancelRequested,
workflowExecutionInfo_execution,
workflowExecutionInfo_workflowType,
workflowExecutionInfo_startTimestamp,
workflowExecutionInfo_executionStatus,
WorkflowExecutionInfos (..),
newWorkflowExecutionInfos,
workflowExecutionInfos_nextPageToken,
workflowExecutionInfos_executionInfos,
WorkflowExecutionOpenCounts (..),
newWorkflowExecutionOpenCounts,
workflowExecutionOpenCounts_openLambdaFunctions,
workflowExecutionOpenCounts_openActivityTasks,
workflowExecutionOpenCounts_openDecisionTasks,
workflowExecutionOpenCounts_openTimers,
workflowExecutionOpenCounts_openChildWorkflowExecutions,
WorkflowExecutionSignaledEventAttributes (..),
newWorkflowExecutionSignaledEventAttributes,
workflowExecutionSignaledEventAttributes_externalWorkflowExecution,
workflowExecutionSignaledEventAttributes_externalInitiatedEventId,
workflowExecutionSignaledEventAttributes_input,
workflowExecutionSignaledEventAttributes_signalName,
WorkflowExecutionStartedEventAttributes (..),
newWorkflowExecutionStartedEventAttributes,
workflowExecutionStartedEventAttributes_parentInitiatedEventId,
workflowExecutionStartedEventAttributes_tagList,
workflowExecutionStartedEventAttributes_taskStartToCloseTimeout,
workflowExecutionStartedEventAttributes_lambdaRole,
workflowExecutionStartedEventAttributes_input,
workflowExecutionStartedEventAttributes_executionStartToCloseTimeout,
workflowExecutionStartedEventAttributes_taskPriority,
workflowExecutionStartedEventAttributes_parentWorkflowExecution,
workflowExecutionStartedEventAttributes_continuedExecutionRunId,
workflowExecutionStartedEventAttributes_childPolicy,
workflowExecutionStartedEventAttributes_taskList,
workflowExecutionStartedEventAttributes_workflowType,
WorkflowExecutionTerminatedEventAttributes (..),
newWorkflowExecutionTerminatedEventAttributes,
workflowExecutionTerminatedEventAttributes_cause,
workflowExecutionTerminatedEventAttributes_reason,
workflowExecutionTerminatedEventAttributes_details,
workflowExecutionTerminatedEventAttributes_childPolicy,
WorkflowExecutionTimedOutEventAttributes (..),
newWorkflowExecutionTimedOutEventAttributes,
workflowExecutionTimedOutEventAttributes_timeoutType,
workflowExecutionTimedOutEventAttributes_childPolicy,
WorkflowType (..),
newWorkflowType,
workflowType_name,
workflowType_version,
WorkflowTypeConfiguration (..),
newWorkflowTypeConfiguration,
workflowTypeConfiguration_defaultLambdaRole,
workflowTypeConfiguration_defaultChildPolicy,
workflowTypeConfiguration_defaultTaskList,
workflowTypeConfiguration_defaultTaskPriority,
workflowTypeConfiguration_defaultExecutionStartToCloseTimeout,
workflowTypeConfiguration_defaultTaskStartToCloseTimeout,
WorkflowTypeFilter (..),
newWorkflowTypeFilter,
workflowTypeFilter_version,
workflowTypeFilter_name,
WorkflowTypeInfo (..),
newWorkflowTypeInfo,
workflowTypeInfo_deprecationDate,
workflowTypeInfo_description,
workflowTypeInfo_workflowType,
workflowTypeInfo_status,
workflowTypeInfo_creationDate,
)
where
import qualified Amazonka.Core as Core
import qualified Amazonka.Lens as Lens
import qualified Amazonka.Prelude as Prelude
import Amazonka.SWF.Types.ActivityTaskCancelRequestedEventAttributes
import Amazonka.SWF.Types.ActivityTaskCanceledEventAttributes
import Amazonka.SWF.Types.ActivityTaskCompletedEventAttributes
import Amazonka.SWF.Types.ActivityTaskFailedEventAttributes
import Amazonka.SWF.Types.ActivityTaskScheduledEventAttributes
import Amazonka.SWF.Types.ActivityTaskStartedEventAttributes
import Amazonka.SWF.Types.ActivityTaskTimedOutEventAttributes
import Amazonka.SWF.Types.ActivityTaskTimeoutType
import Amazonka.SWF.Types.ActivityType
import Amazonka.SWF.Types.ActivityTypeConfiguration
import Amazonka.SWF.Types.ActivityTypeInfo
import Amazonka.SWF.Types.CancelTimerDecisionAttributes
import Amazonka.SWF.Types.CancelTimerFailedCause
import Amazonka.SWF.Types.CancelTimerFailedEventAttributes
import Amazonka.SWF.Types.CancelWorkflowExecutionDecisionAttributes
import Amazonka.SWF.Types.CancelWorkflowExecutionFailedCause
import Amazonka.SWF.Types.CancelWorkflowExecutionFailedEventAttributes
import Amazonka.SWF.Types.ChildPolicy
import Amazonka.SWF.Types.ChildWorkflowExecutionCanceledEventAttributes
import Amazonka.SWF.Types.ChildWorkflowExecutionCompletedEventAttributes
import Amazonka.SWF.Types.ChildWorkflowExecutionFailedEventAttributes
import Amazonka.SWF.Types.ChildWorkflowExecutionStartedEventAttributes
import Amazonka.SWF.Types.ChildWorkflowExecutionTerminatedEventAttributes
import Amazonka.SWF.Types.ChildWorkflowExecutionTimedOutEventAttributes
import Amazonka.SWF.Types.CloseStatus
import Amazonka.SWF.Types.CloseStatusFilter
import Amazonka.SWF.Types.CompleteWorkflowExecutionDecisionAttributes
import Amazonka.SWF.Types.CompleteWorkflowExecutionFailedCause
import Amazonka.SWF.Types.CompleteWorkflowExecutionFailedEventAttributes
import Amazonka.SWF.Types.ContinueAsNewWorkflowExecutionDecisionAttributes
import Amazonka.SWF.Types.ContinueAsNewWorkflowExecutionFailedCause
import Amazonka.SWF.Types.ContinueAsNewWorkflowExecutionFailedEventAttributes
import Amazonka.SWF.Types.Decision
import Amazonka.SWF.Types.DecisionTaskCompletedEventAttributes
import Amazonka.SWF.Types.DecisionTaskScheduledEventAttributes
import Amazonka.SWF.Types.DecisionTaskStartedEventAttributes
import Amazonka.SWF.Types.DecisionTaskTimedOutEventAttributes
import Amazonka.SWF.Types.DecisionTaskTimeoutType
import Amazonka.SWF.Types.DecisionType
import Amazonka.SWF.Types.DomainConfiguration
import Amazonka.SWF.Types.DomainInfo
import Amazonka.SWF.Types.EventType
import Amazonka.SWF.Types.ExecutionStatus
import Amazonka.SWF.Types.ExecutionTimeFilter
import Amazonka.SWF.Types.ExternalWorkflowExecutionCancelRequestedEventAttributes
import Amazonka.SWF.Types.ExternalWorkflowExecutionSignaledEventAttributes
import Amazonka.SWF.Types.FailWorkflowExecutionDecisionAttributes
import Amazonka.SWF.Types.FailWorkflowExecutionFailedCause
import Amazonka.SWF.Types.FailWorkflowExecutionFailedEventAttributes
import Amazonka.SWF.Types.HistoryEvent
import Amazonka.SWF.Types.LambdaFunctionCompletedEventAttributes
import Amazonka.SWF.Types.LambdaFunctionFailedEventAttributes
import Amazonka.SWF.Types.LambdaFunctionScheduledEventAttributes
import Amazonka.SWF.Types.LambdaFunctionStartedEventAttributes
import Amazonka.SWF.Types.LambdaFunctionTimedOutEventAttributes
import Amazonka.SWF.Types.LambdaFunctionTimeoutType
import Amazonka.SWF.Types.MarkerRecordedEventAttributes
import Amazonka.SWF.Types.PendingTaskCount
import Amazonka.SWF.Types.RecordMarkerDecisionAttributes
import Amazonka.SWF.Types.RecordMarkerFailedCause
import Amazonka.SWF.Types.RecordMarkerFailedEventAttributes
import Amazonka.SWF.Types.RegistrationStatus
import Amazonka.SWF.Types.RequestCancelActivityTaskDecisionAttributes
import Amazonka.SWF.Types.RequestCancelActivityTaskFailedCause
import Amazonka.SWF.Types.RequestCancelActivityTaskFailedEventAttributes
import Amazonka.SWF.Types.RequestCancelExternalWorkflowExecutionDecisionAttributes
import Amazonka.SWF.Types.RequestCancelExternalWorkflowExecutionFailedCause
import Amazonka.SWF.Types.RequestCancelExternalWorkflowExecutionFailedEventAttributes
import Amazonka.SWF.Types.RequestCancelExternalWorkflowExecutionInitiatedEventAttributes
import Amazonka.SWF.Types.ResourceTag
import Amazonka.SWF.Types.ScheduleActivityTaskDecisionAttributes
import Amazonka.SWF.Types.ScheduleActivityTaskFailedCause
import Amazonka.SWF.Types.ScheduleActivityTaskFailedEventAttributes
import Amazonka.SWF.Types.ScheduleLambdaFunctionDecisionAttributes
import Amazonka.SWF.Types.ScheduleLambdaFunctionFailedCause
import Amazonka.SWF.Types.ScheduleLambdaFunctionFailedEventAttributes
import Amazonka.SWF.Types.SignalExternalWorkflowExecutionDecisionAttributes
import Amazonka.SWF.Types.SignalExternalWorkflowExecutionFailedCause
import Amazonka.SWF.Types.SignalExternalWorkflowExecutionFailedEventAttributes
import Amazonka.SWF.Types.SignalExternalWorkflowExecutionInitiatedEventAttributes
import Amazonka.SWF.Types.StartChildWorkflowExecutionDecisionAttributes
import Amazonka.SWF.Types.StartChildWorkflowExecutionFailedCause
import Amazonka.SWF.Types.StartChildWorkflowExecutionFailedEventAttributes
import Amazonka.SWF.Types.StartChildWorkflowExecutionInitiatedEventAttributes
import Amazonka.SWF.Types.StartLambdaFunctionFailedCause
import Amazonka.SWF.Types.StartLambdaFunctionFailedEventAttributes
import Amazonka.SWF.Types.StartTimerDecisionAttributes
import Amazonka.SWF.Types.StartTimerFailedCause
import Amazonka.SWF.Types.StartTimerFailedEventAttributes
import Amazonka.SWF.Types.TagFilter
import Amazonka.SWF.Types.TaskList
import Amazonka.SWF.Types.TimerCanceledEventAttributes
import Amazonka.SWF.Types.TimerFiredEventAttributes
import Amazonka.SWF.Types.TimerStartedEventAttributes
import Amazonka.SWF.Types.WorkflowExecution
import Amazonka.SWF.Types.WorkflowExecutionCancelRequestedCause
import Amazonka.SWF.Types.WorkflowExecutionCancelRequestedEventAttributes
import Amazonka.SWF.Types.WorkflowExecutionCanceledEventAttributes
import Amazonka.SWF.Types.WorkflowExecutionCompletedEventAttributes
import Amazonka.SWF.Types.WorkflowExecutionConfiguration
import Amazonka.SWF.Types.WorkflowExecutionContinuedAsNewEventAttributes
import Amazonka.SWF.Types.WorkflowExecutionCount
import Amazonka.SWF.Types.WorkflowExecutionFailedEventAttributes
import Amazonka.SWF.Types.WorkflowExecutionFilter
import Amazonka.SWF.Types.WorkflowExecutionInfo
import Amazonka.SWF.Types.WorkflowExecutionInfos
import Amazonka.SWF.Types.WorkflowExecutionOpenCounts
import Amazonka.SWF.Types.WorkflowExecutionSignaledEventAttributes
import Amazonka.SWF.Types.WorkflowExecutionStartedEventAttributes
import Amazonka.SWF.Types.WorkflowExecutionTerminatedCause
import Amazonka.SWF.Types.WorkflowExecutionTerminatedEventAttributes
import Amazonka.SWF.Types.WorkflowExecutionTimedOutEventAttributes
import Amazonka.SWF.Types.WorkflowExecutionTimeoutType
import Amazonka.SWF.Types.WorkflowType
import Amazonka.SWF.Types.WorkflowTypeConfiguration
import Amazonka.SWF.Types.WorkflowTypeFilter
import Amazonka.SWF.Types.WorkflowTypeInfo
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
"SWF",
$sel:_serviceSigner:Service :: Signer
Core._serviceSigner = Signer
Sign.v4,
$sel:_serviceEndpointPrefix:Service :: ByteString
Core._serviceEndpointPrefix = ByteString
"swf",
$sel:_serviceSigningName:Service :: ByteString
Core._serviceSigningName = ByteString
"swf",
$sel:_serviceVersion:Service :: ByteString
Core._serviceVersion = ByteString
"2012-01-25",
$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
"SWF",
$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
_DomainAlreadyExistsFault :: Core.AsError a => Lens.Getting (Prelude.First Core.ServiceError) a Core.ServiceError
_DomainAlreadyExistsFault :: Getting (First ServiceError) a ServiceError
_DomainAlreadyExistsFault =
Service -> ErrorCode -> Getting (First ServiceError) a ServiceError
forall a.
AsError a =>
Service -> ErrorCode -> Getting (First ServiceError) a ServiceError
Core._MatchServiceError
Service
defaultService
ErrorCode
"DomainAlreadyExistsFault"
_LimitExceededFault :: Core.AsError a => Lens.Getting (Prelude.First Core.ServiceError) a Core.ServiceError
_LimitExceededFault :: Getting (First ServiceError) a ServiceError
_LimitExceededFault =
Service -> ErrorCode -> Getting (First ServiceError) a ServiceError
forall a.
AsError a =>
Service -> ErrorCode -> Getting (First ServiceError) a ServiceError
Core._MatchServiceError
Service
defaultService
ErrorCode
"LimitExceededFault"
_WorkflowExecutionAlreadyStartedFault :: Core.AsError a => Lens.Getting (Prelude.First Core.ServiceError) a Core.ServiceError
_WorkflowExecutionAlreadyStartedFault :: Getting (First ServiceError) a ServiceError
_WorkflowExecutionAlreadyStartedFault =
Service -> ErrorCode -> Getting (First ServiceError) a ServiceError
forall a.
AsError a =>
Service -> ErrorCode -> Getting (First ServiceError) a ServiceError
Core._MatchServiceError
Service
defaultService
ErrorCode
"WorkflowExecutionAlreadyStartedFault"
_OperationNotPermittedFault :: Core.AsError a => Lens.Getting (Prelude.First Core.ServiceError) a Core.ServiceError
_OperationNotPermittedFault :: Getting (First ServiceError) a ServiceError
_OperationNotPermittedFault =
Service -> ErrorCode -> Getting (First ServiceError) a ServiceError
forall a.
AsError a =>
Service -> ErrorCode -> Getting (First ServiceError) a ServiceError
Core._MatchServiceError
Service
defaultService
ErrorCode
"OperationNotPermittedFault"
_UnknownResourceFault :: Core.AsError a => Lens.Getting (Prelude.First Core.ServiceError) a Core.ServiceError
_UnknownResourceFault :: Getting (First ServiceError) a ServiceError
_UnknownResourceFault =
Service -> ErrorCode -> Getting (First ServiceError) a ServiceError
forall a.
AsError a =>
Service -> ErrorCode -> Getting (First ServiceError) a ServiceError
Core._MatchServiceError
Service
defaultService
ErrorCode
"UnknownResourceFault"
_DefaultUndefinedFault :: Core.AsError a => Lens.Getting (Prelude.First Core.ServiceError) a Core.ServiceError
_DefaultUndefinedFault :: Getting (First ServiceError) a ServiceError
_DefaultUndefinedFault =
Service -> ErrorCode -> Getting (First ServiceError) a ServiceError
forall a.
AsError a =>
Service -> ErrorCode -> Getting (First ServiceError) a ServiceError
Core._MatchServiceError
Service
defaultService
ErrorCode
"DefaultUndefinedFault"
_TypeDeprecatedFault :: Core.AsError a => Lens.Getting (Prelude.First Core.ServiceError) a Core.ServiceError
_TypeDeprecatedFault :: Getting (First ServiceError) a ServiceError
_TypeDeprecatedFault =
Service -> ErrorCode -> Getting (First ServiceError) a ServiceError
forall a.
AsError a =>
Service -> ErrorCode -> Getting (First ServiceError) a ServiceError
Core._MatchServiceError
Service
defaultService
ErrorCode
"TypeDeprecatedFault"
_TooManyTagsFault :: Core.AsError a => Lens.Getting (Prelude.First Core.ServiceError) a Core.ServiceError
_TooManyTagsFault :: Getting (First ServiceError) a ServiceError
_TooManyTagsFault =
Service -> ErrorCode -> Getting (First ServiceError) a ServiceError
forall a.
AsError a =>
Service -> ErrorCode -> Getting (First ServiceError) a ServiceError
Core._MatchServiceError
Service
defaultService
ErrorCode
"TooManyTagsFault"
_TypeAlreadyExistsFault :: Core.AsError a => Lens.Getting (Prelude.First Core.ServiceError) a Core.ServiceError
_TypeAlreadyExistsFault :: Getting (First ServiceError) a ServiceError
_TypeAlreadyExistsFault =
Service -> ErrorCode -> Getting (First ServiceError) a ServiceError
forall a.
AsError a =>
Service -> ErrorCode -> Getting (First ServiceError) a ServiceError
Core._MatchServiceError
Service
defaultService
ErrorCode
"TypeAlreadyExistsFault"
_DomainDeprecatedFault :: Core.AsError a => Lens.Getting (Prelude.First Core.ServiceError) a Core.ServiceError
_DomainDeprecatedFault :: Getting (First ServiceError) a ServiceError
_DomainDeprecatedFault =
Service -> ErrorCode -> Getting (First ServiceError) a ServiceError
forall a.
AsError a =>
Service -> ErrorCode -> Getting (First ServiceError) a ServiceError
Core._MatchServiceError
Service
defaultService
ErrorCode
"DomainDeprecatedFault"