-- Hoogle documentation, generated by Haddock
-- See Hoogle, http://www.haskell.org/hoogle/


-- | Amazon Simple Workflow Service SDK.
--   
--   The types from this library are intended to be used with
--   <a>amazonka</a>, which provides mechanisms for specifying AuthN/AuthZ
--   information, sending requests, and receiving responses.
--   
--   Lenses are used for constructing and manipulating types, due to the
--   depth of nesting of AWS types and transparency regarding
--   de/serialisation into more palatable Haskell values. The provided
--   lenses should be compatible with any of the major lens libraries such
--   as <a>lens</a> or <a>lens-family-core</a>.
--   
--   See <a>Network.AWS.SWF</a> or <a>the AWS documentation</a> to get
--   started.
@package amazonka-swf
@version 1.6.0


module Network.AWS.SWF.Types

-- | API version <tt>2012-01-25</tt> of the Amazon Simple Workflow Service
--   SDK configuration.
swf :: Service

-- | Returned if the specified domain already exists. You get this fault
--   even if the existing domain is in deprecated status.
_DomainAlreadyExistsFault :: AsError a => Getting (First ServiceError) a ServiceError

-- | Returned by any operation if a system imposed limitation has been
--   reached. To address this fault you should either clean up unused
--   resources or increase the limit by contacting AWS.
_LimitExceededFault :: AsError a => Getting (First ServiceError) a ServiceError

-- | Returned by <tt>StartWorkflowExecution</tt> when an open execution
--   with the same workflowId is already running in the specified domain.
_WorkflowExecutionAlreadyStartedFault :: AsError a => Getting (First ServiceError) a ServiceError

-- | Returned when the caller doesn't have sufficient permissions to invoke
--   the action.
_OperationNotPermittedFault :: AsError a => Getting (First ServiceError) a ServiceError

-- | Returned when the named resource cannot be found with in the scope of
--   this operation (region or domain). This could happen if the named
--   resource was never created or is no longer available for this
--   operation.
_UnknownResourceFault :: AsError a => Getting (First ServiceError) a ServiceError

-- | The <tt>StartWorkflowExecution</tt> API action was called without the
--   required parameters set.
--   
--   Some workflow execution parameters, such as the decision
--   <tt>taskList</tt> , must be set to start the execution. However, these
--   parameters might have been set as defaults when the workflow type was
--   registered. In this case, you can omit these parameters from the
--   <tt>StartWorkflowExecution</tt> call and Amazon SWF uses the values
--   defined in the workflow type.
_DefaultUndefinedFault :: AsError a => Getting (First ServiceError) a ServiceError

-- | Returned when the specified activity or workflow type was already
--   deprecated.
_TypeDeprecatedFault :: AsError a => Getting (First ServiceError) a ServiceError

-- | Returned if the type already exists in the specified domain. You get
--   this fault even if the existing type is in deprecated status. You can
--   specify another version if the intent is to create a new distinct
--   version of the type.
_TypeAlreadyExistsFault :: AsError a => Getting (First ServiceError) a ServiceError

-- | Returned when the specified domain has been deprecated.
_DomainDeprecatedFault :: AsError a => Getting (First ServiceError) a ServiceError
data ActivityTaskTimeoutType
ATTTHeartbeat :: ActivityTaskTimeoutType
ATTTScheduleToClose :: ActivityTaskTimeoutType
ATTTScheduleToStart :: ActivityTaskTimeoutType
ATTTStartToClose :: ActivityTaskTimeoutType
data CancelTimerFailedCause
CTFCOperationNotPermitted :: CancelTimerFailedCause
CTFCTimerIdUnknown :: CancelTimerFailedCause
data CancelWorkflowExecutionFailedCause
COperationNotPermitted :: CancelWorkflowExecutionFailedCause
CUnhandledDecision :: CancelWorkflowExecutionFailedCause
data ChildPolicy
Abandon :: ChildPolicy
RequestCancel :: ChildPolicy
Terminate :: ChildPolicy
data CloseStatus
Canceled :: CloseStatus
Completed :: CloseStatus
ContinuedAsNew :: CloseStatus
Failed :: CloseStatus
Terminated :: CloseStatus
TimedOut :: CloseStatus
data CompleteWorkflowExecutionFailedCause
CWEFCOperationNotPermitted :: CompleteWorkflowExecutionFailedCause
CWEFCUnhandledDecision :: CompleteWorkflowExecutionFailedCause
data ContinueAsNewWorkflowExecutionFailedCause
CANWEFCContinueAsNewWorkflowExecutionRateExceeded :: ContinueAsNewWorkflowExecutionFailedCause
CANWEFCDefaultChildPolicyUndefined :: ContinueAsNewWorkflowExecutionFailedCause
CANWEFCDefaultExecutionStartToCloseTimeoutUndefined :: ContinueAsNewWorkflowExecutionFailedCause
CANWEFCDefaultTaskListUndefined :: ContinueAsNewWorkflowExecutionFailedCause
CANWEFCDefaultTaskStartToCloseTimeoutUndefined :: ContinueAsNewWorkflowExecutionFailedCause
CANWEFCOperationNotPermitted :: ContinueAsNewWorkflowExecutionFailedCause
CANWEFCUnhandledDecision :: ContinueAsNewWorkflowExecutionFailedCause
CANWEFCWorkflowTypeDeprecated :: ContinueAsNewWorkflowExecutionFailedCause
CANWEFCWorkflowTypeDoesNotExist :: ContinueAsNewWorkflowExecutionFailedCause
data DecisionTaskTimeoutType
StartToClose :: DecisionTaskTimeoutType
data DecisionType
CancelTimer :: DecisionType
CancelWorkflowExecution :: DecisionType
CompleteWorkflowExecution :: DecisionType
ContinueAsNewWorkflowExecution :: DecisionType
FailWorkflowExecution :: DecisionType
RecordMarker :: DecisionType
RequestCancelActivityTask :: DecisionType
RequestCancelExternalWorkflowExecution :: DecisionType
ScheduleActivityTask :: DecisionType
ScheduleLambdaFunction :: DecisionType
SignalExternalWorkflowExecution :: DecisionType
StartChildWorkflowExecution :: DecisionType
StartTimer :: DecisionType
data EventType
ActivityTaskCancelRequested :: EventType
ActivityTaskCanceled :: EventType
ActivityTaskCompleted :: EventType
ActivityTaskFailed :: EventType
ActivityTaskScheduled :: EventType
ActivityTaskStarted :: EventType
ActivityTaskTimedOut :: EventType
CancelTimerFailed :: EventType
CancelWorkflowExecutionFailed :: EventType
ChildWorkflowExecutionCanceled :: EventType
ChildWorkflowExecutionCompleted :: EventType
ChildWorkflowExecutionFailed :: EventType
ChildWorkflowExecutionStarted :: EventType
ChildWorkflowExecutionTerminated :: EventType
ChildWorkflowExecutionTimedOut :: EventType
CompleteWorkflowExecutionFailed :: EventType
ContinueAsNewWorkflowExecutionFailed :: EventType
DecisionTaskCompleted :: EventType
DecisionTaskScheduled :: EventType
DecisionTaskStarted :: EventType
DecisionTaskTimedOut :: EventType
ExternalWorkflowExecutionCancelRequested :: EventType
ExternalWorkflowExecutionSignaled :: EventType
FailWorkflowExecutionFailed :: EventType
LambdaFunctionCompleted :: EventType
LambdaFunctionFailed :: EventType
LambdaFunctionScheduled :: EventType
LambdaFunctionStarted :: EventType
LambdaFunctionTimedOut :: EventType
MarkerRecorded :: EventType
RecordMarkerFailed :: EventType
RequestCancelActivityTaskFailed :: EventType
RequestCancelExternalWorkflowExecutionFailed :: EventType
RequestCancelExternalWorkflowExecutionInitiated :: EventType
ScheduleActivityTaskFailed :: EventType
ScheduleLambdaFunctionFailed :: EventType
SignalExternalWorkflowExecutionFailed :: EventType
SignalExternalWorkflowExecutionInitiated :: EventType
StartChildWorkflowExecutionFailed :: EventType
StartChildWorkflowExecutionInitiated :: EventType
StartLambdaFunctionFailed :: EventType
StartTimerFailed :: EventType
TimerCanceled :: EventType
TimerFired :: EventType
TimerStarted :: EventType
WorkflowExecutionCancelRequested :: EventType
WorkflowExecutionCanceled :: EventType
WorkflowExecutionCompleted :: EventType
WorkflowExecutionContinuedAsNew :: EventType
WorkflowExecutionFailed :: EventType
WorkflowExecutionSignaled :: EventType
WorkflowExecutionStarted :: EventType
WorkflowExecutionTerminated :: EventType
WorkflowExecutionTimedOut :: EventType
data ExecutionStatus
Closed :: ExecutionStatus
Open :: ExecutionStatus
data FailWorkflowExecutionFailedCause
FWEFCOperationNotPermitted :: FailWorkflowExecutionFailedCause
FWEFCUnhandledDecision :: FailWorkflowExecutionFailedCause
data LambdaFunctionTimeoutType
LFTTStartToClose :: LambdaFunctionTimeoutType
data RecordMarkerFailedCause
OperationNotPermitted :: RecordMarkerFailedCause
data RegistrationStatus
Deprecated :: RegistrationStatus
Registered :: RegistrationStatus
data RequestCancelActivityTaskFailedCause
RCATFCActivityIdUnknown :: RequestCancelActivityTaskFailedCause
RCATFCOperationNotPermitted :: RequestCancelActivityTaskFailedCause
data RequestCancelExternalWorkflowExecutionFailedCause
RCEWEFCOperationNotPermitted :: RequestCancelExternalWorkflowExecutionFailedCause
RCEWEFCRequestCancelExternalWorkflowExecutionRateExceeded :: RequestCancelExternalWorkflowExecutionFailedCause
RCEWEFCUnknownExternalWorkflowExecution :: RequestCancelExternalWorkflowExecutionFailedCause
data ScheduleActivityTaskFailedCause
SATFCActivityCreationRateExceeded :: ScheduleActivityTaskFailedCause
SATFCActivityIdAlreadyInUse :: ScheduleActivityTaskFailedCause
SATFCActivityTypeDeprecated :: ScheduleActivityTaskFailedCause
SATFCActivityTypeDoesNotExist :: ScheduleActivityTaskFailedCause
SATFCDefaultHeartbeatTimeoutUndefined :: ScheduleActivityTaskFailedCause
SATFCDefaultScheduleToCloseTimeoutUndefined :: ScheduleActivityTaskFailedCause
SATFCDefaultScheduleToStartTimeoutUndefined :: ScheduleActivityTaskFailedCause
SATFCDefaultStartToCloseTimeoutUndefined :: ScheduleActivityTaskFailedCause
SATFCDefaultTaskListUndefined :: ScheduleActivityTaskFailedCause
SATFCOpenActivitiesLimitExceeded :: ScheduleActivityTaskFailedCause
SATFCOperationNotPermitted :: ScheduleActivityTaskFailedCause
data ScheduleLambdaFunctionFailedCause
IdAlreadyInUse :: ScheduleLambdaFunctionFailedCause
LambdaFunctionCreationRateExceeded :: ScheduleLambdaFunctionFailedCause
LambdaServiceNotAvailableInRegion :: ScheduleLambdaFunctionFailedCause
OpenLambdaFunctionsLimitExceeded :: ScheduleLambdaFunctionFailedCause
data SignalExternalWorkflowExecutionFailedCause
SEWEFCOperationNotPermitted :: SignalExternalWorkflowExecutionFailedCause
SEWEFCSignalExternalWorkflowExecutionRateExceeded :: SignalExternalWorkflowExecutionFailedCause
SEWEFCUnknownExternalWorkflowExecution :: SignalExternalWorkflowExecutionFailedCause
data StartChildWorkflowExecutionFailedCause
SCWEFCChildCreationRateExceeded :: StartChildWorkflowExecutionFailedCause
SCWEFCDefaultChildPolicyUndefined :: StartChildWorkflowExecutionFailedCause
SCWEFCDefaultExecutionStartToCloseTimeoutUndefined :: StartChildWorkflowExecutionFailedCause
SCWEFCDefaultTaskListUndefined :: StartChildWorkflowExecutionFailedCause
SCWEFCDefaultTaskStartToCloseTimeoutUndefined :: StartChildWorkflowExecutionFailedCause
SCWEFCOpenChildrenLimitExceeded :: StartChildWorkflowExecutionFailedCause
SCWEFCOpenWorkflowsLimitExceeded :: StartChildWorkflowExecutionFailedCause
SCWEFCOperationNotPermitted :: StartChildWorkflowExecutionFailedCause
SCWEFCWorkflowAlreadyRunning :: StartChildWorkflowExecutionFailedCause
SCWEFCWorkflowTypeDeprecated :: StartChildWorkflowExecutionFailedCause
SCWEFCWorkflowTypeDoesNotExist :: StartChildWorkflowExecutionFailedCause
data StartLambdaFunctionFailedCause
AssumeRoleFailed :: StartLambdaFunctionFailedCause
data StartTimerFailedCause
STFCOpenTimersLimitExceeded :: StartTimerFailedCause
STFCOperationNotPermitted :: StartTimerFailedCause
STFCTimerCreationRateExceeded :: StartTimerFailedCause
STFCTimerIdAlreadyInUse :: StartTimerFailedCause
data WorkflowExecutionCancelRequestedCause
ChildPolicyApplied :: WorkflowExecutionCancelRequestedCause
data WorkflowExecutionTerminatedCause
WETCChildPolicyApplied :: WorkflowExecutionTerminatedCause
WETCEventLimitExceeded :: WorkflowExecutionTerminatedCause
WETCOperatorInitiated :: WorkflowExecutionTerminatedCause
data WorkflowExecutionTimeoutType
WETTStartToClose :: WorkflowExecutionTimeoutType

-- | Provides the details of the <tt>ActivityTaskCancelRequested</tt>
--   event.
--   
--   <i>See:</i> <a>activityTaskCancelRequestedEventAttributes</a> smart
--   constructor.
data ActivityTaskCancelRequestedEventAttributes

-- | Creates a value of <a>ActivityTaskCancelRequestedEventAttributes</a>
--   with the minimum fields required to make a request.
--   
--   Use one of the following lenses to modify other fields as desired:
--   
--   <ul>
--   <li><a>atcreaDecisionTaskCompletedEventId</a> - The ID of the
--   <tt>DecisionTaskCompleted</tt> event corresponding to the decision
--   task that resulted in the <tt>RequestCancelActivityTask</tt> decision
--   for this cancellation request. This information can be useful for
--   diagnosing problems by tracing back the chain of events leading up to
--   this event.</li>
--   <li><a>atcreaActivityId</a> - The unique ID of the task.</li>
--   </ul>
activityTaskCancelRequestedEventAttributes :: Integer -> Text -> ActivityTaskCancelRequestedEventAttributes

-- | The ID of the <tt>DecisionTaskCompleted</tt> event corresponding to
--   the decision task that resulted in the
--   <tt>RequestCancelActivityTask</tt> decision for this cancellation
--   request. This information can be useful for diagnosing problems by
--   tracing back the chain of events leading up to this event.
atcreaDecisionTaskCompletedEventId :: Lens' ActivityTaskCancelRequestedEventAttributes Integer

-- | The unique ID of the task.
atcreaActivityId :: Lens' ActivityTaskCancelRequestedEventAttributes Text

-- | Provides the details of the <tt>ActivityTaskCanceled</tt> event.
--   
--   <i>See:</i> <a>activityTaskCanceledEventAttributes</a> smart
--   constructor.
data ActivityTaskCanceledEventAttributes

-- | Creates a value of <a>ActivityTaskCanceledEventAttributes</a> with the
--   minimum fields required to make a request.
--   
--   Use one of the following lenses to modify other fields as desired:
--   
--   <ul>
--   <li><a>aLatestCancelRequestedEventId</a> - If set, contains the ID of
--   the last <tt>ActivityTaskCancelRequested</tt> event recorded for this
--   activity task. This information can be useful for diagnosing problems
--   by tracing back the chain of events leading up to this event.</li>
--   <li><a>aDetails</a> - Details of the cancellation.</li>
--   <li><a>aScheduledEventId</a> - The ID of the
--   <tt>ActivityTaskScheduled</tt> event that was recorded when this
--   activity task was scheduled. This information can be useful for
--   diagnosing problems by tracing back the chain of events leading up to
--   this event.</li>
--   <li><a>aStartedEventId</a> - The ID of the
--   <tt>ActivityTaskStarted</tt> event recorded when this activity task
--   was started. This information can be useful for diagnosing problems by
--   tracing back the chain of events leading up to this event.</li>
--   </ul>
activityTaskCanceledEventAttributes :: Integer -> Integer -> ActivityTaskCanceledEventAttributes

-- | If set, contains the ID of the last
--   <tt>ActivityTaskCancelRequested</tt> event recorded for this activity
--   task. This information can be useful for diagnosing problems by
--   tracing back the chain of events leading up to this event.
aLatestCancelRequestedEventId :: Lens' ActivityTaskCanceledEventAttributes (Maybe Integer)

-- | Details of the cancellation.
aDetails :: Lens' ActivityTaskCanceledEventAttributes (Maybe Text)

-- | The ID of the <tt>ActivityTaskScheduled</tt> event that was recorded
--   when this activity task was scheduled. This information can be useful
--   for diagnosing problems by tracing back the chain of events leading up
--   to this event.
aScheduledEventId :: Lens' ActivityTaskCanceledEventAttributes Integer

-- | The ID of the <tt>ActivityTaskStarted</tt> event recorded when this
--   activity task was started. This information can be useful for
--   diagnosing problems by tracing back the chain of events leading up to
--   this event.
aStartedEventId :: Lens' ActivityTaskCanceledEventAttributes Integer

-- | Provides the details of the <tt>ActivityTaskCompleted</tt> event.
--   
--   <i>See:</i> <a>activityTaskCompletedEventAttributes</a> smart
--   constructor.
data ActivityTaskCompletedEventAttributes

-- | Creates a value of <a>ActivityTaskCompletedEventAttributes</a> with
--   the minimum fields required to make a request.
--   
--   Use one of the following lenses to modify other fields as desired:
--   
--   <ul>
--   <li><a>atceaResult</a> - The results of the activity task.</li>
--   <li><a>atceaScheduledEventId</a> - The ID of the
--   <tt>ActivityTaskScheduled</tt> event that was recorded when this
--   activity task was scheduled. This information can be useful for
--   diagnosing problems by tracing back the chain of events leading up to
--   this event.</li>
--   <li><a>atceaStartedEventId</a> - The ID of the
--   <tt>ActivityTaskStarted</tt> event recorded when this activity task
--   was started. This information can be useful for diagnosing problems by
--   tracing back the chain of events leading up to this event.</li>
--   </ul>
activityTaskCompletedEventAttributes :: Integer -> Integer -> ActivityTaskCompletedEventAttributes

-- | The results of the activity task.
atceaResult :: Lens' ActivityTaskCompletedEventAttributes (Maybe Text)

-- | The ID of the <tt>ActivityTaskScheduled</tt> event that was recorded
--   when this activity task was scheduled. This information can be useful
--   for diagnosing problems by tracing back the chain of events leading up
--   to this event.
atceaScheduledEventId :: Lens' ActivityTaskCompletedEventAttributes Integer

-- | The ID of the <tt>ActivityTaskStarted</tt> event recorded when this
--   activity task was started. This information can be useful for
--   diagnosing problems by tracing back the chain of events leading up to
--   this event.
atceaStartedEventId :: Lens' ActivityTaskCompletedEventAttributes Integer

-- | Provides the details of the <tt>ActivityTaskFailed</tt> event.
--   
--   <i>See:</i> <a>activityTaskFailedEventAttributes</a> smart
--   constructor.
data ActivityTaskFailedEventAttributes

-- | Creates a value of <a>ActivityTaskFailedEventAttributes</a> with the
--   minimum fields required to make a request.
--   
--   Use one of the following lenses to modify other fields as desired:
--   
--   <ul>
--   <li><a>atfeaReason</a> - The reason provided for the failure.</li>
--   <li><a>atfeaDetails</a> - The details of the failure.</li>
--   <li><a>atfeaScheduledEventId</a> - The ID of the
--   <tt>ActivityTaskScheduled</tt> event that was recorded when this
--   activity task was scheduled. This information can be useful for
--   diagnosing problems by tracing back the chain of events leading up to
--   this event.</li>
--   <li><a>atfeaStartedEventId</a> - The ID of the
--   <tt>ActivityTaskStarted</tt> event recorded when this activity task
--   was started. This information can be useful for diagnosing problems by
--   tracing back the chain of events leading up to this event.</li>
--   </ul>
activityTaskFailedEventAttributes :: Integer -> Integer -> ActivityTaskFailedEventAttributes

-- | The reason provided for the failure.
atfeaReason :: Lens' ActivityTaskFailedEventAttributes (Maybe Text)

-- | The details of the failure.
atfeaDetails :: Lens' ActivityTaskFailedEventAttributes (Maybe Text)

-- | The ID of the <tt>ActivityTaskScheduled</tt> event that was recorded
--   when this activity task was scheduled. This information can be useful
--   for diagnosing problems by tracing back the chain of events leading up
--   to this event.
atfeaScheduledEventId :: Lens' ActivityTaskFailedEventAttributes Integer

-- | The ID of the <tt>ActivityTaskStarted</tt> event recorded when this
--   activity task was started. This information can be useful for
--   diagnosing problems by tracing back the chain of events leading up to
--   this event.
atfeaStartedEventId :: Lens' ActivityTaskFailedEventAttributes Integer

-- | Provides the details of the <tt>ActivityTaskScheduled</tt> event.
--   
--   <i>See:</i> <a>activityTaskScheduledEventAttributes</a> smart
--   constructor.
data ActivityTaskScheduledEventAttributes

-- | Creates a value of <a>ActivityTaskScheduledEventAttributes</a> with
--   the minimum fields required to make a request.
--   
--   Use one of the following lenses to modify other fields as desired:
--   
--   <ul>
--   <li><a>atseaControl</a> - Data attached to the event that can be used
--   by the decider in subsequent workflow tasks. This data isn't sent to
--   the activity.</li>
--   <li><a>atseaHeartbeatTimeout</a> - The maximum time before which the
--   worker processing this task must report progress by calling
--   <tt>RecordActivityTaskHeartbeat</tt> . If the timeout is exceeded, the
--   activity task is automatically timed out. If the worker subsequently
--   attempts to record a heartbeat or return a result, it is ignored.</li>
--   <li><a>atseaScheduleToCloseTimeout</a> - The maximum amount of time
--   for this activity task.</li>
--   <li><a>atseaInput</a> - The input provided to the activity task.</li>
--   <li><a>atseaTaskPriority</a> - The priority to assign to the scheduled
--   activity task. If set, this overrides any default priority value that
--   was assigned when the activity type was registered. Valid values are
--   integers that range from Java's <tt>Integer.MIN_VALUE</tt>
--   (-2147483648) to <tt>Integer.MAX_VALUE</tt> (2147483647). Higher
--   numbers indicate higher priority. For more information about setting
--   task priority, see <a>Setting Task Priority</a> in the <i>Amazon SWF
--   Developer Guide</i> .</li>
--   <li><a>atseaScheduleToStartTimeout</a> - The maximum amount of time
--   the activity task can wait to be assigned to a worker.</li>
--   <li><a>atseaStartToCloseTimeout</a> - The maximum amount of time a
--   worker may take to process the activity task.</li>
--   <li><a>atseaActivityType</a> - The type of the activity task.</li>
--   <li><a>atseaActivityId</a> - The unique ID of the activity task.</li>
--   <li><a>atseaTaskList</a> - The task list in which the activity task
--   has been scheduled.</li>
--   <li><a>atseaDecisionTaskCompletedEventId</a> - The ID of the
--   <tt>DecisionTaskCompleted</tt> event corresponding to the decision
--   that resulted in the scheduling of this activity task. This
--   information can be useful for diagnosing problems by tracing back the
--   chain of events leading up to this event.</li>
--   </ul>
activityTaskScheduledEventAttributes :: ActivityType -> Text -> TaskList -> Integer -> ActivityTaskScheduledEventAttributes

-- | Data attached to the event that can be used by the decider in
--   subsequent workflow tasks. This data isn't sent to the activity.
atseaControl :: Lens' ActivityTaskScheduledEventAttributes (Maybe Text)

-- | The maximum time before which the worker processing this task must
--   report progress by calling <tt>RecordActivityTaskHeartbeat</tt> . If
--   the timeout is exceeded, the activity task is automatically timed out.
--   If the worker subsequently attempts to record a heartbeat or return a
--   result, it is ignored.
atseaHeartbeatTimeout :: Lens' ActivityTaskScheduledEventAttributes (Maybe Text)

-- | The maximum amount of time for this activity task.
atseaScheduleToCloseTimeout :: Lens' ActivityTaskScheduledEventAttributes (Maybe Text)

-- | The input provided to the activity task.
atseaInput :: Lens' ActivityTaskScheduledEventAttributes (Maybe Text)

-- | The priority to assign to the scheduled activity task. If set, this
--   overrides any default priority value that was assigned when the
--   activity type was registered. Valid values are integers that range
--   from Java's <tt>Integer.MIN_VALUE</tt> (-2147483648) to
--   <tt>Integer.MAX_VALUE</tt> (2147483647). Higher numbers indicate
--   higher priority. For more information about setting task priority, see
--   <a>Setting Task Priority</a> in the <i>Amazon SWF Developer Guide</i>
--   .
atseaTaskPriority :: Lens' ActivityTaskScheduledEventAttributes (Maybe Text)

-- | The maximum amount of time the activity task can wait to be assigned
--   to a worker.
atseaScheduleToStartTimeout :: Lens' ActivityTaskScheduledEventAttributes (Maybe Text)

-- | The maximum amount of time a worker may take to process the activity
--   task.
atseaStartToCloseTimeout :: Lens' ActivityTaskScheduledEventAttributes (Maybe Text)

-- | The type of the activity task.
atseaActivityType :: Lens' ActivityTaskScheduledEventAttributes ActivityType

-- | The unique ID of the activity task.
atseaActivityId :: Lens' ActivityTaskScheduledEventAttributes Text

-- | The task list in which the activity task has been scheduled.
atseaTaskList :: Lens' ActivityTaskScheduledEventAttributes TaskList

-- | The ID of the <tt>DecisionTaskCompleted</tt> event corresponding to
--   the decision that resulted in the scheduling of this activity task.
--   This information can be useful for diagnosing problems by tracing back
--   the chain of events leading up to this event.
atseaDecisionTaskCompletedEventId :: Lens' ActivityTaskScheduledEventAttributes Integer

-- | Provides the details of the <tt>ActivityTaskStarted</tt> event.
--   
--   <i>See:</i> <a>activityTaskStartedEventAttributes</a> smart
--   constructor.
data ActivityTaskStartedEventAttributes

-- | Creates a value of <a>ActivityTaskStartedEventAttributes</a> with the
--   minimum fields required to make a request.
--   
--   Use one of the following lenses to modify other fields as desired:
--   
--   <ul>
--   <li><a>atseaIdentity</a> - Identity of the worker that was assigned
--   this task. This aids diagnostics when problems arise. The form of this
--   identity is user defined.</li>
--   <li><a>atseaScheduledEventId</a> - The ID of the
--   <tt>ActivityTaskScheduled</tt> event that was recorded when this
--   activity task was scheduled. This information can be useful for
--   diagnosing problems by tracing back the chain of events leading up to
--   this event.</li>
--   </ul>
activityTaskStartedEventAttributes :: Integer -> ActivityTaskStartedEventAttributes

-- | Identity of the worker that was assigned this task. This aids
--   diagnostics when problems arise. The form of this identity is user
--   defined.
atseaIdentity :: Lens' ActivityTaskStartedEventAttributes (Maybe Text)

-- | The ID of the <tt>ActivityTaskScheduled</tt> event that was recorded
--   when this activity task was scheduled. This information can be useful
--   for diagnosing problems by tracing back the chain of events leading up
--   to this event.
atseaScheduledEventId :: Lens' ActivityTaskStartedEventAttributes Integer

-- | Provides the details of the <tt>ActivityTaskTimedOut</tt> event.
--   
--   <i>See:</i> <a>activityTaskTimedOutEventAttributes</a> smart
--   constructor.
data ActivityTaskTimedOutEventAttributes

-- | Creates a value of <a>ActivityTaskTimedOutEventAttributes</a> with the
--   minimum fields required to make a request.
--   
--   Use one of the following lenses to modify other fields as desired:
--   
--   <ul>
--   <li><a>attoeaDetails</a> - Contains the content of the
--   <tt>details</tt> parameter for the last call made by the activity to
--   <tt>RecordActivityTaskHeartbeat</tt> .</li>
--   <li><a>attoeaTimeoutType</a> - The type of the timeout that caused
--   this event.</li>
--   <li><a>attoeaScheduledEventId</a> - The ID of the
--   <tt>ActivityTaskScheduled</tt> event that was recorded when this
--   activity task was scheduled. This information can be useful for
--   diagnosing problems by tracing back the chain of events leading up to
--   this event.</li>
--   <li><a>attoeaStartedEventId</a> - The ID of the
--   <tt>ActivityTaskStarted</tt> event recorded when this activity task
--   was started. This information can be useful for diagnosing problems by
--   tracing back the chain of events leading up to this event.</li>
--   </ul>
activityTaskTimedOutEventAttributes :: ActivityTaskTimeoutType -> Integer -> Integer -> ActivityTaskTimedOutEventAttributes

-- | Contains the content of the <tt>details</tt> parameter for the last
--   call made by the activity to <tt>RecordActivityTaskHeartbeat</tt> .
attoeaDetails :: Lens' ActivityTaskTimedOutEventAttributes (Maybe Text)

-- | The type of the timeout that caused this event.
attoeaTimeoutType :: Lens' ActivityTaskTimedOutEventAttributes ActivityTaskTimeoutType

-- | The ID of the <tt>ActivityTaskScheduled</tt> event that was recorded
--   when this activity task was scheduled. This information can be useful
--   for diagnosing problems by tracing back the chain of events leading up
--   to this event.
attoeaScheduledEventId :: Lens' ActivityTaskTimedOutEventAttributes Integer

-- | The ID of the <tt>ActivityTaskStarted</tt> event recorded when this
--   activity task was started. This information can be useful for
--   diagnosing problems by tracing back the chain of events leading up to
--   this event.
attoeaStartedEventId :: Lens' ActivityTaskTimedOutEventAttributes Integer

-- | Represents an activity type.
--   
--   <i>See:</i> <a>activityType</a> smart constructor.
data ActivityType

-- | Creates a value of <a>ActivityType</a> with the minimum fields
--   required to make a request.
--   
--   Use one of the following lenses to modify other fields as desired:
--   
--   <ul>
--   <li><a>atName</a> - The name of this activity.</li>
--   <li><a>atVersion</a> - The version of this activity.</li>
--   </ul>
activityType :: Text -> Text -> ActivityType

-- | The name of this activity.
atName :: Lens' ActivityType Text

-- | The version of this activity.
atVersion :: Lens' ActivityType Text

-- | Configuration settings registered with the activity type.
--   
--   <i>See:</i> <a>activityTypeConfiguration</a> smart constructor.
data ActivityTypeConfiguration

-- | Creates a value of <a>ActivityTypeConfiguration</a> with the minimum
--   fields required to make a request.
--   
--   Use one of the following lenses to modify other fields as desired:
--   
--   <ul>
--   <li><a>atcDefaultTaskScheduleToStartTimeout</a> - The default maximum
--   duration, specified when registering the activity type, that a task of
--   an activity type can wait before being assigned to a worker. You can
--   override this default when scheduling a task through the
--   <tt>ScheduleActivityTask</tt> <a>Decision</a> . The duration is
--   specified in seconds, an integer greater than or equal to <tt>0</tt> .
--   You can use <tt>NONE</tt> to specify unlimited duration.</li>
--   <li><a>atcDefaultTaskList</a> - The default task list specified for
--   this activity type at registration. This default is used if a task
--   list isn't provided when a task is scheduled through the
--   <tt>ScheduleActivityTask</tt> <a>Decision</a> . You can override the
--   default registered task list when scheduling a task through the
--   <tt>ScheduleActivityTask</tt> <a>Decision</a> .</li>
--   <li><a>atcDefaultTaskPriority</a> - The default task priority for
--   tasks of this activity type, specified at registration. If not set,
--   then <tt>0</tt> is used as the default priority. This default can be
--   overridden when scheduling an activity task. Valid values are integers
--   that range from Java's <tt>Integer.MIN_VALUE</tt> (-2147483648) to
--   <tt>Integer.MAX_VALUE</tt> (2147483647). Higher numbers indicate
--   higher priority. For more information about setting task priority, see
--   <a>Setting Task Priority</a> in the <i>Amazon SWF Developer Guide</i>
--   .</li>
--   <li><a>atcDefaultTaskHeartbeatTimeout</a> - The default maximum time,
--   in seconds, before which a worker processing a task must report
--   progress by calling <tt>RecordActivityTaskHeartbeat</tt> . You can
--   specify this value only when <i>registering</i> an activity type. The
--   registered default value can be overridden when you schedule a task
--   through the <tt>ScheduleActivityTask</tt> <a>Decision</a> . If the
--   activity worker subsequently attempts to record a heartbeat or returns
--   a result, the activity worker receives an <tt>UnknownResource</tt>
--   fault. In this case, Amazon SWF no longer considers the activity task
--   to be valid; the activity worker should clean up the activity task.
--   The duration is specified in seconds, an integer greater than or equal
--   to <tt>0</tt> . You can use <tt>NONE</tt> to specify unlimited
--   duration.</li>
--   <li><a>atcDefaultTaskScheduleToCloseTimeout</a> - The default maximum
--   duration, specified when registering the activity type, for tasks of
--   this activity type. You can override this default when scheduling a
--   task through the <tt>ScheduleActivityTask</tt> <a>Decision</a> . The
--   duration is specified in seconds, an integer greater than or equal to
--   <tt>0</tt> . You can use <tt>NONE</tt> to specify unlimited
--   duration.</li>
--   <li><a>atcDefaultTaskStartToCloseTimeout</a> - The default maximum
--   duration for tasks of an activity type specified when registering the
--   activity type. You can override this default when scheduling a task
--   through the <tt>ScheduleActivityTask</tt> <a>Decision</a> . The
--   duration is specified in seconds, an integer greater than or equal to
--   <tt>0</tt> . You can use <tt>NONE</tt> to specify unlimited
--   duration.</li>
--   </ul>
activityTypeConfiguration :: ActivityTypeConfiguration

-- | The default maximum duration, specified when registering the activity
--   type, that a task of an activity type can wait before being assigned
--   to a worker. You can override this default when scheduling a task
--   through the <tt>ScheduleActivityTask</tt> <a>Decision</a> . The
--   duration is specified in seconds, an integer greater than or equal to
--   <tt>0</tt> . You can use <tt>NONE</tt> to specify unlimited duration.
atcDefaultTaskScheduleToStartTimeout :: Lens' ActivityTypeConfiguration (Maybe Text)

-- | The default task list specified for this activity type at
--   registration. This default is used if a task list isn't provided when
--   a task is scheduled through the <tt>ScheduleActivityTask</tt>
--   <a>Decision</a> . You can override the default registered task list
--   when scheduling a task through the <tt>ScheduleActivityTask</tt>
--   <a>Decision</a> .
atcDefaultTaskList :: Lens' ActivityTypeConfiguration (Maybe TaskList)

-- | The default task priority for tasks of this activity type, specified
--   at registration. If not set, then <tt>0</tt> is used as the default
--   priority. This default can be overridden when scheduling an activity
--   task. Valid values are integers that range from Java's
--   <tt>Integer.MIN_VALUE</tt> (-2147483648) to <tt>Integer.MAX_VALUE</tt>
--   (2147483647). Higher numbers indicate higher priority. For more
--   information about setting task priority, see <a>Setting Task
--   Priority</a> in the <i>Amazon SWF Developer Guide</i> .
atcDefaultTaskPriority :: Lens' ActivityTypeConfiguration (Maybe Text)

-- | The default maximum time, in seconds, before which a worker processing
--   a task must report progress by calling
--   <tt>RecordActivityTaskHeartbeat</tt> . You can specify this value only
--   when <i>registering</i> an activity type. The registered default value
--   can be overridden when you schedule a task through the
--   <tt>ScheduleActivityTask</tt> <a>Decision</a> . If the activity worker
--   subsequently attempts to record a heartbeat or returns a result, the
--   activity worker receives an <tt>UnknownResource</tt> fault. In this
--   case, Amazon SWF no longer considers the activity task to be valid;
--   the activity worker should clean up the activity task. The duration is
--   specified in seconds, an integer greater than or equal to <tt>0</tt> .
--   You can use <tt>NONE</tt> to specify unlimited duration.
atcDefaultTaskHeartbeatTimeout :: Lens' ActivityTypeConfiguration (Maybe Text)

-- | The default maximum duration, specified when registering the activity
--   type, for tasks of this activity type. You can override this default
--   when scheduling a task through the <tt>ScheduleActivityTask</tt>
--   <a>Decision</a> . The duration is specified in seconds, an integer
--   greater than or equal to <tt>0</tt> . You can use <tt>NONE</tt> to
--   specify unlimited duration.
atcDefaultTaskScheduleToCloseTimeout :: Lens' ActivityTypeConfiguration (Maybe Text)

-- | The default maximum duration for tasks of an activity type specified
--   when registering the activity type. You can override this default when
--   scheduling a task through the <tt>ScheduleActivityTask</tt>
--   <a>Decision</a> . The duration is specified in seconds, an integer
--   greater than or equal to <tt>0</tt> . You can use <tt>NONE</tt> to
--   specify unlimited duration.
atcDefaultTaskStartToCloseTimeout :: Lens' ActivityTypeConfiguration (Maybe Text)

-- | Detailed information about an activity type.
--   
--   <i>See:</i> <a>activityTypeInfo</a> smart constructor.
data ActivityTypeInfo

-- | Creates a value of <a>ActivityTypeInfo</a> with the minimum fields
--   required to make a request.
--   
--   Use one of the following lenses to modify other fields as desired:
--   
--   <ul>
--   <li><a>atiDeprecationDate</a> - If DEPRECATED, the date and time
--   <tt>DeprecateActivityType</tt> was called.</li>
--   <li><a>atiDescription</a> - The description of the activity type
--   provided in <tt>RegisterActivityType</tt> .</li>
--   <li><a>atiActivityType</a> - The <a>ActivityType</a> type structure
--   representing the activity type.</li>
--   <li><a>atiStatus</a> - The current status of the activity type.</li>
--   <li><a>atiCreationDate</a> - The date and time this activity type was
--   created through <tt>RegisterActivityType</tt> .</li>
--   </ul>
activityTypeInfo :: ActivityType -> RegistrationStatus -> UTCTime -> ActivityTypeInfo

-- | If DEPRECATED, the date and time <tt>DeprecateActivityType</tt> was
--   called.
atiDeprecationDate :: Lens' ActivityTypeInfo (Maybe UTCTime)

-- | The description of the activity type provided in
--   <tt>RegisterActivityType</tt> .
atiDescription :: Lens' ActivityTypeInfo (Maybe Text)

-- | The <a>ActivityType</a> type structure representing the activity type.
atiActivityType :: Lens' ActivityTypeInfo ActivityType

-- | The current status of the activity type.
atiStatus :: Lens' ActivityTypeInfo RegistrationStatus

-- | The date and time this activity type was created through
--   <tt>RegisterActivityType</tt> .
atiCreationDate :: Lens' ActivityTypeInfo UTCTime

-- | Provides the details of the <tt>CancelTimer</tt> decision.
--   
--   <b>Access Control</b>
--   
--   You can use IAM policies to control this decision's access to Amazon
--   SWF resources as follows:
--   
--   <ul>
--   <li>Use a <tt>Resource</tt> element with the domain name to limit the
--   action to only specified domains.</li>
--   <li>Use an <tt>Action</tt> element to allow or deny permission to call
--   this action.</li>
--   <li>You cannot use an IAM policy to constrain this action's
--   parameters.</li>
--   </ul>
--   
--   If the caller doesn't have sufficient permissions to invoke the
--   action, or the parameter values fall outside the specified
--   constraints, the action fails. The associated event attribute's
--   <tt>cause</tt> parameter is set to <tt>OPERATION_NOT_PERMITTED</tt> .
--   For details and example IAM policies, see <a>Using IAM to Manage
--   Access to Amazon SWF Workflows</a> in the <i>Amazon SWF Developer
--   Guide</i> .
--   
--   <i>See:</i> <a>cancelTimerDecisionAttributes</a> smart constructor.
data CancelTimerDecisionAttributes

-- | Creates a value of <a>CancelTimerDecisionAttributes</a> with the
--   minimum fields required to make a request.
--   
--   Use one of the following lenses to modify other fields as desired:
--   
--   <ul>
--   <li><a>ctdaTimerId</a> - The unique ID of the timer to cancel.</li>
--   </ul>
cancelTimerDecisionAttributes :: Text -> CancelTimerDecisionAttributes

-- | The unique ID of the timer to cancel.
ctdaTimerId :: Lens' CancelTimerDecisionAttributes Text

-- | Provides the details of the <tt>CancelTimerFailed</tt> event.
--   
--   <i>See:</i> <a>cancelTimerFailedEventAttributes</a> smart constructor.
data CancelTimerFailedEventAttributes

-- | Creates a value of <a>CancelTimerFailedEventAttributes</a> with the
--   minimum fields required to make a request.
--   
--   Use one of the following lenses to modify other fields as desired:
--   
--   <ul>
--   <li><a>ctfeaTimerId</a> - The timerId provided in the
--   <tt>CancelTimer</tt> decision that failed.</li>
--   <li><a>ctfeaCause</a> - The cause of the failure. This information is
--   generated by the system and can be useful for diagnostic
--   purposes.</li>
--   <li><a>ctfeaDecisionTaskCompletedEventId</a> - The ID of the
--   <tt>DecisionTaskCompleted</tt> event corresponding to the decision
--   task that resulted in the <tt>CancelTimer</tt> decision to cancel this
--   timer. This information can be useful for diagnosing problems by
--   tracing back the chain of events leading up to this event.</li>
--   </ul>
cancelTimerFailedEventAttributes :: Text -> CancelTimerFailedCause -> Integer -> CancelTimerFailedEventAttributes

-- | The timerId provided in the <tt>CancelTimer</tt> decision that failed.
ctfeaTimerId :: Lens' CancelTimerFailedEventAttributes Text

-- | The cause of the failure. This information is generated by the system
--   and can be useful for diagnostic purposes.
ctfeaCause :: Lens' CancelTimerFailedEventAttributes CancelTimerFailedCause

-- | The ID of the <tt>DecisionTaskCompleted</tt> event corresponding to
--   the decision task that resulted in the <tt>CancelTimer</tt> decision
--   to cancel this timer. This information can be useful for diagnosing
--   problems by tracing back the chain of events leading up to this event.
ctfeaDecisionTaskCompletedEventId :: Lens' CancelTimerFailedEventAttributes Integer

-- | Provides the details of the <tt>CancelWorkflowExecution</tt> decision.
--   
--   <b>Access Control</b>
--   
--   You can use IAM policies to control this decision's access to Amazon
--   SWF resources as follows:
--   
--   <ul>
--   <li>Use a <tt>Resource</tt> element with the domain name to limit the
--   action to only specified domains.</li>
--   <li>Use an <tt>Action</tt> element to allow or deny permission to call
--   this action.</li>
--   <li>You cannot use an IAM policy to constrain this action's
--   parameters.</li>
--   </ul>
--   
--   If the caller doesn't have sufficient permissions to invoke the
--   action, or the parameter values fall outside the specified
--   constraints, the action fails. The associated event attribute's
--   <tt>cause</tt> parameter is set to <tt>OPERATION_NOT_PERMITTED</tt> .
--   For details and example IAM policies, see <a>Using IAM to Manage
--   Access to Amazon SWF Workflows</a> in the <i>Amazon SWF Developer
--   Guide</i> .
--   
--   <i>See:</i> <a>cancelWorkflowExecutionDecisionAttributes</a> smart
--   constructor.
data CancelWorkflowExecutionDecisionAttributes

-- | Creates a value of <a>CancelWorkflowExecutionDecisionAttributes</a>
--   with the minimum fields required to make a request.
--   
--   Use one of the following lenses to modify other fields as desired:
--   
--   <ul>
--   <li><a>cwedaDetails</a> - Details of the cancellation.</li>
--   </ul>
cancelWorkflowExecutionDecisionAttributes :: CancelWorkflowExecutionDecisionAttributes

-- | Details of the cancellation.
cwedaDetails :: Lens' CancelWorkflowExecutionDecisionAttributes (Maybe Text)

-- | Provides the details of the <tt>CancelWorkflowExecutionFailed</tt>
--   event.
--   
--   <i>See:</i> <a>cancelWorkflowExecutionFailedEventAttributes</a> smart
--   constructor.
data CancelWorkflowExecutionFailedEventAttributes

-- | Creates a value of <a>CancelWorkflowExecutionFailedEventAttributes</a>
--   with the minimum fields required to make a request.
--   
--   Use one of the following lenses to modify other fields as desired:
--   
--   <ul>
--   <li><a>cCause</a> - The cause of the failure. This information is
--   generated by the system and can be useful for diagnostic
--   purposes.</li>
--   <li><a>cDecisionTaskCompletedEventId</a> - The ID of the
--   <tt>DecisionTaskCompleted</tt> event corresponding to the decision
--   task that resulted in the <tt>CancelWorkflowExecution</tt> decision
--   for this cancellation request. This information can be useful for
--   diagnosing problems by tracing back the chain of events leading up to
--   this event.</li>
--   </ul>
cancelWorkflowExecutionFailedEventAttributes :: CancelWorkflowExecutionFailedCause -> Integer -> CancelWorkflowExecutionFailedEventAttributes

-- | The cause of the failure. This information is generated by the system
--   and can be useful for diagnostic purposes.
cCause :: Lens' CancelWorkflowExecutionFailedEventAttributes CancelWorkflowExecutionFailedCause

-- | The ID of the <tt>DecisionTaskCompleted</tt> event corresponding to
--   the decision task that resulted in the
--   <tt>CancelWorkflowExecution</tt> decision for this cancellation
--   request. This information can be useful for diagnosing problems by
--   tracing back the chain of events leading up to this event.
cDecisionTaskCompletedEventId :: Lens' CancelWorkflowExecutionFailedEventAttributes Integer

-- | Provide details of the <tt>ChildWorkflowExecutionCanceled</tt> event.
--   
--   <i>See:</i> <a>childWorkflowExecutionCanceledEventAttributes</a> smart
--   constructor.
data ChildWorkflowExecutionCanceledEventAttributes

-- | Creates a value of
--   <a>ChildWorkflowExecutionCanceledEventAttributes</a> with the minimum
--   fields required to make a request.
--   
--   Use one of the following lenses to modify other fields as desired:
--   
--   <ul>
--   <li><a>cDetails</a> - Details of the cancellation (if provided).</li>
--   <li><a>cWorkflowExecution</a> - The child workflow execution that was
--   canceled.</li>
--   <li><a>cWorkflowType</a> - The type of the child workflow
--   execution.</li>
--   <li><a>cInitiatedEventId</a> - The ID of the
--   <tt>StartChildWorkflowExecutionInitiated</tt> event corresponding to
--   the <tt>StartChildWorkflowExecution</tt> <a>Decision</a> to start this
--   child workflow execution. This information can be useful for
--   diagnosing problems by tracing back the chain of events leading up to
--   this event.</li>
--   <li><a>cStartedEventId</a> - The ID of the
--   <tt>ChildWorkflowExecutionStarted</tt> event recorded when this child
--   workflow execution was started. This information can be useful for
--   diagnosing problems by tracing back the chain of events leading up to
--   this event.</li>
--   </ul>
childWorkflowExecutionCanceledEventAttributes :: WorkflowExecution -> WorkflowType -> Integer -> Integer -> ChildWorkflowExecutionCanceledEventAttributes

-- | Details of the cancellation (if provided).
cDetails :: Lens' ChildWorkflowExecutionCanceledEventAttributes (Maybe Text)

-- | The child workflow execution that was canceled.
cWorkflowExecution :: Lens' ChildWorkflowExecutionCanceledEventAttributes WorkflowExecution

-- | The type of the child workflow execution.
cWorkflowType :: Lens' ChildWorkflowExecutionCanceledEventAttributes WorkflowType

-- | The ID of the <tt>StartChildWorkflowExecutionInitiated</tt> event
--   corresponding to the <tt>StartChildWorkflowExecution</tt>
--   <a>Decision</a> to start this child workflow execution. This
--   information can be useful for diagnosing problems by tracing back the
--   chain of events leading up to this event.
cInitiatedEventId :: Lens' ChildWorkflowExecutionCanceledEventAttributes Integer

-- | The ID of the <tt>ChildWorkflowExecutionStarted</tt> event recorded
--   when this child workflow execution was started. This information can
--   be useful for diagnosing problems by tracing back the chain of events
--   leading up to this event.
cStartedEventId :: Lens' ChildWorkflowExecutionCanceledEventAttributes Integer

-- | Provides the details of the <tt>ChildWorkflowExecutionCompleted</tt>
--   event.
--   
--   <i>See:</i> <a>childWorkflowExecutionCompletedEventAttributes</a>
--   smart constructor.
data ChildWorkflowExecutionCompletedEventAttributes

-- | Creates a value of
--   <a>ChildWorkflowExecutionCompletedEventAttributes</a> with the minimum
--   fields required to make a request.
--   
--   Use one of the following lenses to modify other fields as desired:
--   
--   <ul>
--   <li><a>cweceaResult</a> - The result of the child workflow
--   execution.</li>
--   <li><a>cweceaWorkflowExecution</a> - The child workflow execution that
--   was completed.</li>
--   <li><a>cweceaWorkflowType</a> - The type of the child workflow
--   execution.</li>
--   <li><a>cweceaInitiatedEventId</a> - The ID of the
--   <tt>StartChildWorkflowExecutionInitiated</tt> event corresponding to
--   the <tt>StartChildWorkflowExecution</tt> <a>Decision</a> to start this
--   child workflow execution. This information can be useful for
--   diagnosing problems by tracing back the chain of events leading up to
--   this event.</li>
--   <li><a>cweceaStartedEventId</a> - The ID of the
--   <tt>ChildWorkflowExecutionStarted</tt> event recorded when this child
--   workflow execution was started. This information can be useful for
--   diagnosing problems by tracing back the chain of events leading up to
--   this event.</li>
--   </ul>
childWorkflowExecutionCompletedEventAttributes :: WorkflowExecution -> WorkflowType -> Integer -> Integer -> ChildWorkflowExecutionCompletedEventAttributes

-- | The result of the child workflow execution.
cweceaResult :: Lens' ChildWorkflowExecutionCompletedEventAttributes (Maybe Text)

-- | The child workflow execution that was completed.
cweceaWorkflowExecution :: Lens' ChildWorkflowExecutionCompletedEventAttributes WorkflowExecution

-- | The type of the child workflow execution.
cweceaWorkflowType :: Lens' ChildWorkflowExecutionCompletedEventAttributes WorkflowType

-- | The ID of the <tt>StartChildWorkflowExecutionInitiated</tt> event
--   corresponding to the <tt>StartChildWorkflowExecution</tt>
--   <a>Decision</a> to start this child workflow execution. This
--   information can be useful for diagnosing problems by tracing back the
--   chain of events leading up to this event.
cweceaInitiatedEventId :: Lens' ChildWorkflowExecutionCompletedEventAttributes Integer

-- | The ID of the <tt>ChildWorkflowExecutionStarted</tt> event recorded
--   when this child workflow execution was started. This information can
--   be useful for diagnosing problems by tracing back the chain of events
--   leading up to this event.
cweceaStartedEventId :: Lens' ChildWorkflowExecutionCompletedEventAttributes Integer

-- | Provides the details of the <tt>ChildWorkflowExecutionFailed</tt>
--   event.
--   
--   <i>See:</i> <a>childWorkflowExecutionFailedEventAttributes</a> smart
--   constructor.
data ChildWorkflowExecutionFailedEventAttributes

-- | Creates a value of <a>ChildWorkflowExecutionFailedEventAttributes</a>
--   with the minimum fields required to make a request.
--   
--   Use one of the following lenses to modify other fields as desired:
--   
--   <ul>
--   <li><a>cwefeaReason</a> - The reason for the failure (if
--   provided).</li>
--   <li><a>cwefeaDetails</a> - The details of the failure (if
--   provided).</li>
--   <li><a>cwefeaWorkflowExecution</a> - The child workflow execution that
--   failed.</li>
--   <li><a>cwefeaWorkflowType</a> - The type of the child workflow
--   execution.</li>
--   <li><a>cwefeaInitiatedEventId</a> - The ID of the
--   <tt>StartChildWorkflowExecutionInitiated</tt> event corresponding to
--   the <tt>StartChildWorkflowExecution</tt> <a>Decision</a> to start this
--   child workflow execution. This information can be useful for
--   diagnosing problems by tracing back the chain of events leading up to
--   this event.</li>
--   <li><a>cwefeaStartedEventId</a> - The ID of the
--   <tt>ChildWorkflowExecutionStarted</tt> event recorded when this child
--   workflow execution was started. This information can be useful for
--   diagnosing problems by tracing back the chain of events leading up to
--   this event.</li>
--   </ul>
childWorkflowExecutionFailedEventAttributes :: WorkflowExecution -> WorkflowType -> Integer -> Integer -> ChildWorkflowExecutionFailedEventAttributes

-- | The reason for the failure (if provided).
cwefeaReason :: Lens' ChildWorkflowExecutionFailedEventAttributes (Maybe Text)

-- | The details of the failure (if provided).
cwefeaDetails :: Lens' ChildWorkflowExecutionFailedEventAttributes (Maybe Text)

-- | The child workflow execution that failed.
cwefeaWorkflowExecution :: Lens' ChildWorkflowExecutionFailedEventAttributes WorkflowExecution

-- | The type of the child workflow execution.
cwefeaWorkflowType :: Lens' ChildWorkflowExecutionFailedEventAttributes WorkflowType

-- | The ID of the <tt>StartChildWorkflowExecutionInitiated</tt> event
--   corresponding to the <tt>StartChildWorkflowExecution</tt>
--   <a>Decision</a> to start this child workflow execution. This
--   information can be useful for diagnosing problems by tracing back the
--   chain of events leading up to this event.
cwefeaInitiatedEventId :: Lens' ChildWorkflowExecutionFailedEventAttributes Integer

-- | The ID of the <tt>ChildWorkflowExecutionStarted</tt> event recorded
--   when this child workflow execution was started. This information can
--   be useful for diagnosing problems by tracing back the chain of events
--   leading up to this event.
cwefeaStartedEventId :: Lens' ChildWorkflowExecutionFailedEventAttributes Integer

-- | Provides the details of the <tt>ChildWorkflowExecutionStarted</tt>
--   event.
--   
--   <i>See:</i> <a>childWorkflowExecutionStartedEventAttributes</a> smart
--   constructor.
data ChildWorkflowExecutionStartedEventAttributes

-- | Creates a value of <a>ChildWorkflowExecutionStartedEventAttributes</a>
--   with the minimum fields required to make a request.
--   
--   Use one of the following lenses to modify other fields as desired:
--   
--   <ul>
--   <li><a>cweseaWorkflowExecution</a> - The child workflow execution that
--   was started.</li>
--   <li><a>cweseaWorkflowType</a> - The type of the child workflow
--   execution.</li>
--   <li><a>cweseaInitiatedEventId</a> - The ID of the
--   <tt>StartChildWorkflowExecutionInitiated</tt> event corresponding to
--   the <tt>StartChildWorkflowExecution</tt> <a>Decision</a> to start this
--   child workflow execution. This information can be useful for
--   diagnosing problems by tracing back the chain of events leading up to
--   this event.</li>
--   </ul>
childWorkflowExecutionStartedEventAttributes :: WorkflowExecution -> WorkflowType -> Integer -> ChildWorkflowExecutionStartedEventAttributes

-- | The child workflow execution that was started.
cweseaWorkflowExecution :: Lens' ChildWorkflowExecutionStartedEventAttributes WorkflowExecution

-- | The type of the child workflow execution.
cweseaWorkflowType :: Lens' ChildWorkflowExecutionStartedEventAttributes WorkflowType

-- | The ID of the <tt>StartChildWorkflowExecutionInitiated</tt> event
--   corresponding to the <tt>StartChildWorkflowExecution</tt>
--   <a>Decision</a> to start this child workflow execution. This
--   information can be useful for diagnosing problems by tracing back the
--   chain of events leading up to this event.
cweseaInitiatedEventId :: Lens' ChildWorkflowExecutionStartedEventAttributes Integer

-- | Provides the details of the <tt>ChildWorkflowExecutionTerminated</tt>
--   event.
--   
--   <i>See:</i> <a>childWorkflowExecutionTerminatedEventAttributes</a>
--   smart constructor.
data ChildWorkflowExecutionTerminatedEventAttributes

-- | Creates a value of
--   <a>ChildWorkflowExecutionTerminatedEventAttributes</a> with the
--   minimum fields required to make a request.
--   
--   Use one of the following lenses to modify other fields as desired:
--   
--   <ul>
--   <li><a>cweteaWorkflowExecution</a> - The child workflow execution that
--   was terminated.</li>
--   <li><a>cweteaWorkflowType</a> - The type of the child workflow
--   execution.</li>
--   <li><a>cweteaInitiatedEventId</a> - The ID of the
--   <tt>StartChildWorkflowExecutionInitiated</tt> event corresponding to
--   the <tt>StartChildWorkflowExecution</tt> <a>Decision</a> to start this
--   child workflow execution. This information can be useful for
--   diagnosing problems by tracing back the chain of events leading up to
--   this event.</li>
--   <li><a>cweteaStartedEventId</a> - The ID of the
--   <tt>ChildWorkflowExecutionStarted</tt> event recorded when this child
--   workflow execution was started. This information can be useful for
--   diagnosing problems by tracing back the chain of events leading up to
--   this event.</li>
--   </ul>
childWorkflowExecutionTerminatedEventAttributes :: WorkflowExecution -> WorkflowType -> Integer -> Integer -> ChildWorkflowExecutionTerminatedEventAttributes

-- | The child workflow execution that was terminated.
cweteaWorkflowExecution :: Lens' ChildWorkflowExecutionTerminatedEventAttributes WorkflowExecution

-- | The type of the child workflow execution.
cweteaWorkflowType :: Lens' ChildWorkflowExecutionTerminatedEventAttributes WorkflowType

-- | The ID of the <tt>StartChildWorkflowExecutionInitiated</tt> event
--   corresponding to the <tt>StartChildWorkflowExecution</tt>
--   <a>Decision</a> to start this child workflow execution. This
--   information can be useful for diagnosing problems by tracing back the
--   chain of events leading up to this event.
cweteaInitiatedEventId :: Lens' ChildWorkflowExecutionTerminatedEventAttributes Integer

-- | The ID of the <tt>ChildWorkflowExecutionStarted</tt> event recorded
--   when this child workflow execution was started. This information can
--   be useful for diagnosing problems by tracing back the chain of events
--   leading up to this event.
cweteaStartedEventId :: Lens' ChildWorkflowExecutionTerminatedEventAttributes Integer

-- | Provides the details of the <tt>ChildWorkflowExecutionTimedOut</tt>
--   event.
--   
--   <i>See:</i> <a>childWorkflowExecutionTimedOutEventAttributes</a> smart
--   constructor.
data ChildWorkflowExecutionTimedOutEventAttributes

-- | Creates a value of
--   <a>ChildWorkflowExecutionTimedOutEventAttributes</a> with the minimum
--   fields required to make a request.
--   
--   Use one of the following lenses to modify other fields as desired:
--   
--   <ul>
--   <li><a>cwetoeaWorkflowExecution</a> - The child workflow execution
--   that timed out.</li>
--   <li><a>cwetoeaWorkflowType</a> - The type of the child workflow
--   execution.</li>
--   <li><a>cwetoeaTimeoutType</a> - The type of the timeout that caused
--   the child workflow execution to time out.</li>
--   <li><a>cwetoeaInitiatedEventId</a> - The ID of the
--   <tt>StartChildWorkflowExecutionInitiated</tt> event corresponding to
--   the <tt>StartChildWorkflowExecution</tt> <a>Decision</a> to start this
--   child workflow execution. This information can be useful for
--   diagnosing problems by tracing back the chain of events leading up to
--   this event.</li>
--   <li><a>cwetoeaStartedEventId</a> - The ID of the
--   <tt>ChildWorkflowExecutionStarted</tt> event recorded when this child
--   workflow execution was started. This information can be useful for
--   diagnosing problems by tracing back the chain of events leading up to
--   this event.</li>
--   </ul>
childWorkflowExecutionTimedOutEventAttributes :: WorkflowExecution -> WorkflowType -> WorkflowExecutionTimeoutType -> Integer -> Integer -> ChildWorkflowExecutionTimedOutEventAttributes

-- | The child workflow execution that timed out.
cwetoeaWorkflowExecution :: Lens' ChildWorkflowExecutionTimedOutEventAttributes WorkflowExecution

-- | The type of the child workflow execution.
cwetoeaWorkflowType :: Lens' ChildWorkflowExecutionTimedOutEventAttributes WorkflowType

-- | The type of the timeout that caused the child workflow execution to
--   time out.
cwetoeaTimeoutType :: Lens' ChildWorkflowExecutionTimedOutEventAttributes WorkflowExecutionTimeoutType

-- | The ID of the <tt>StartChildWorkflowExecutionInitiated</tt> event
--   corresponding to the <tt>StartChildWorkflowExecution</tt>
--   <a>Decision</a> to start this child workflow execution. This
--   information can be useful for diagnosing problems by tracing back the
--   chain of events leading up to this event.
cwetoeaInitiatedEventId :: Lens' ChildWorkflowExecutionTimedOutEventAttributes Integer

-- | The ID of the <tt>ChildWorkflowExecutionStarted</tt> event recorded
--   when this child workflow execution was started. This information can
--   be useful for diagnosing problems by tracing back the chain of events
--   leading up to this event.
cwetoeaStartedEventId :: Lens' ChildWorkflowExecutionTimedOutEventAttributes Integer

-- | Used to filter the closed workflow executions in visibility APIs by
--   their close status.
--   
--   <i>See:</i> <a>closeStatusFilter</a> smart constructor.
data CloseStatusFilter

-- | Creates a value of <a>CloseStatusFilter</a> with the minimum fields
--   required to make a request.
--   
--   Use one of the following lenses to modify other fields as desired:
--   
--   <ul>
--   <li><a>csfStatus</a> - The close status that must match the close
--   status of an execution for it to meet the criteria of this
--   filter.</li>
--   </ul>
closeStatusFilter :: CloseStatus -> CloseStatusFilter

-- | The close status that must match the close status of an execution for
--   it to meet the criteria of this filter.
csfStatus :: Lens' CloseStatusFilter CloseStatus

-- | Provides the details of the <tt>CompleteWorkflowExecution</tt>
--   decision.
--   
--   <b>Access Control</b>
--   
--   You can use IAM policies to control this decision's access to Amazon
--   SWF resources as follows:
--   
--   <ul>
--   <li>Use a <tt>Resource</tt> element with the domain name to limit the
--   action to only specified domains.</li>
--   <li>Use an <tt>Action</tt> element to allow or deny permission to call
--   this action.</li>
--   <li>You cannot use an IAM policy to constrain this action's
--   parameters.</li>
--   </ul>
--   
--   If the caller doesn't have sufficient permissions to invoke the
--   action, or the parameter values fall outside the specified
--   constraints, the action fails. The associated event attribute's
--   <tt>cause</tt> parameter is set to <tt>OPERATION_NOT_PERMITTED</tt> .
--   For details and example IAM policies, see <a>Using IAM to Manage
--   Access to Amazon SWF Workflows</a> in the <i>Amazon SWF Developer
--   Guide</i> .
--   
--   <i>See:</i> <a>completeWorkflowExecutionDecisionAttributes</a> smart
--   constructor.
data CompleteWorkflowExecutionDecisionAttributes

-- | Creates a value of <a>CompleteWorkflowExecutionDecisionAttributes</a>
--   with the minimum fields required to make a request.
--   
--   Use one of the following lenses to modify other fields as desired:
--   
--   <ul>
--   <li><a>cwedaResult</a> - The result of the workflow execution. The
--   form of the result is implementation defined.</li>
--   </ul>
completeWorkflowExecutionDecisionAttributes :: CompleteWorkflowExecutionDecisionAttributes

-- | The result of the workflow execution. The form of the result is
--   implementation defined.
cwedaResult :: Lens' CompleteWorkflowExecutionDecisionAttributes (Maybe Text)

-- | Provides the details of the <tt>CompleteWorkflowExecutionFailed</tt>
--   event.
--   
--   <i>See:</i> <a>completeWorkflowExecutionFailedEventAttributes</a>
--   smart constructor.
data CompleteWorkflowExecutionFailedEventAttributes

-- | Creates a value of
--   <a>CompleteWorkflowExecutionFailedEventAttributes</a> with the minimum
--   fields required to make a request.
--   
--   Use one of the following lenses to modify other fields as desired:
--   
--   <ul>
--   <li><a>cwefeaCause</a> - The cause of the failure. This information is
--   generated by the system and can be useful for diagnostic
--   purposes.</li>
--   <li><a>cwefeaDecisionTaskCompletedEventId</a> - The ID of the
--   <tt>DecisionTaskCompleted</tt> event corresponding to the decision
--   task that resulted in the <tt>CompleteWorkflowExecution</tt> decision
--   to complete this execution. This information can be useful for
--   diagnosing problems by tracing back the chain of events leading up to
--   this event.</li>
--   </ul>
completeWorkflowExecutionFailedEventAttributes :: CompleteWorkflowExecutionFailedCause -> Integer -> CompleteWorkflowExecutionFailedEventAttributes

-- | The cause of the failure. This information is generated by the system
--   and can be useful for diagnostic purposes.
cwefeaCause :: Lens' CompleteWorkflowExecutionFailedEventAttributes CompleteWorkflowExecutionFailedCause

-- | The ID of the <tt>DecisionTaskCompleted</tt> event corresponding to
--   the decision task that resulted in the
--   <tt>CompleteWorkflowExecution</tt> decision to complete this
--   execution. This information can be useful for diagnosing problems by
--   tracing back the chain of events leading up to this event.
cwefeaDecisionTaskCompletedEventId :: Lens' CompleteWorkflowExecutionFailedEventAttributes Integer

-- | Provides the details of the <tt>ContinueAsNewWorkflowExecution</tt>
--   decision.
--   
--   <b>Access Control</b>
--   
--   You can use IAM policies to control this decision's access to Amazon
--   SWF resources as follows:
--   
--   <ul>
--   <li>Use a <tt>Resource</tt> element with the domain name to limit the
--   action to only specified domains.</li>
--   <li>Use an <tt>Action</tt> element to allow or deny permission to call
--   this action.</li>
--   <li>Constrain the following parameters by using a <tt>Condition</tt>
--   element with the appropriate keys.</li>
--   <li><tt>tag</tt> – A tag used to identify the workflow execution</li>
--   <li><tt>taskList</tt> – String constraint. The key is
--   <tt>swf:taskList.name</tt> .</li>
--   <li><tt>workflowType.version</tt> – String constraint. The key is
--   <tt>swf:workflowType.version</tt> .</li>
--   </ul>
--   
--   If the caller doesn't have sufficient permissions to invoke the
--   action, or the parameter values fall outside the specified
--   constraints, the action fails. The associated event attribute's
--   <tt>cause</tt> parameter is set to <tt>OPERATION_NOT_PERMITTED</tt> .
--   For details and example IAM policies, see <a>Using IAM to Manage
--   Access to Amazon SWF Workflows</a> in the <i>Amazon SWF Developer
--   Guide</i> .
--   
--   <i>See:</i> <a>continueAsNewWorkflowExecutionDecisionAttributes</a>
--   smart constructor.
data ContinueAsNewWorkflowExecutionDecisionAttributes

-- | Creates a value of
--   <a>ContinueAsNewWorkflowExecutionDecisionAttributes</a> with the
--   minimum fields required to make a request.
--   
--   Use one of the following lenses to modify other fields as desired:
--   
--   <ul>
--   <li><a>canwedaTagList</a> - The list of tags to associate with the new
--   workflow execution. A maximum of 5 tags can be specified. You can list
--   workflow executions with a specific tag by calling
--   <tt>ListOpenWorkflowExecutions</tt> or
--   <tt>ListClosedWorkflowExecutions</tt> and specifying a
--   <a>TagFilter</a> .</li>
--   <li><a>canwedaTaskStartToCloseTimeout</a> - Specifies the maximum
--   duration of decision tasks for the new workflow execution. This
--   parameter overrides the <tt>defaultTaskStartToCloseTimout</tt>
--   specified when registering the workflow type using
--   <tt>RegisterWorkflowType</tt> . The duration is specified in seconds,
--   an integer greater than or equal to <tt>0</tt> . You can use
--   <tt>NONE</tt> to specify unlimited duration.</li>
--   <li><a>canwedaLambdaRole</a> - The IAM role to attach to the new
--   (continued) execution.</li>
--   <li><a>canwedaInput</a> - The input provided to the new workflow
--   execution.</li>
--   <li><a>canwedaWorkflowTypeVersion</a> - The version of the workflow to
--   start.</li>
--   <li><a>canwedaExecutionStartToCloseTimeout</a> - If set, specifies the
--   total duration for this workflow execution. This overrides the
--   <tt>defaultExecutionStartToCloseTimeout</tt> specified when
--   registering the workflow type. The duration is specified in seconds,
--   an integer greater than or equal to <tt>0</tt> . You can use
--   <tt>NONE</tt> to specify unlimited duration.</li>
--   <li><a>canwedaTaskList</a> - The task list to use for the decisions of
--   the new (continued) workflow execution.</li>
--   <li><a>canwedaTaskPriority</a> - The task priority that, if set,
--   specifies the priority for the decision tasks for this workflow
--   execution. This overrides the defaultTaskPriority specified when
--   registering the workflow type. Valid values are integers that range
--   from Java's <tt>Integer.MIN_VALUE</tt> (-2147483648) to
--   <tt>Integer.MAX_VALUE</tt> (2147483647). Higher numbers indicate
--   higher priority. For more information about setting task priority, see
--   <a>Setting Task Priority</a> in the <i>Amazon SWF Developer Guide</i>
--   .</li>
--   <li><a>canwedaChildPolicy</a> - If set, specifies the policy to use
--   for the child workflow executions of the new execution if it is
--   terminated by calling the <tt>TerminateWorkflowExecution</tt> action
--   explicitly or due to an expired timeout. This policy overrides the
--   default child policy specified when registering the workflow type
--   using <tt>RegisterWorkflowType</tt> . The supported child policies
--   are: * <tt>TERMINATE</tt> – The child executions are terminated. *
--   <tt>REQUEST_CANCEL</tt> – A request to cancel is attempted for each
--   child execution by recording a
--   <tt>WorkflowExecutionCancelRequested</tt> event in its history. It is
--   up to the decider to take appropriate actions when it receives an
--   execution history with this event. * <tt>ABANDON</tt> – No action is
--   taken. The child executions continue to run.</li>
--   </ul>
continueAsNewWorkflowExecutionDecisionAttributes :: ContinueAsNewWorkflowExecutionDecisionAttributes

-- | The list of tags to associate with the new workflow execution. A
--   maximum of 5 tags can be specified. You can list workflow executions
--   with a specific tag by calling <tt>ListOpenWorkflowExecutions</tt> or
--   <tt>ListClosedWorkflowExecutions</tt> and specifying a
--   <a>TagFilter</a> .
canwedaTagList :: Lens' ContinueAsNewWorkflowExecutionDecisionAttributes [Text]

-- | Specifies the maximum duration of decision tasks for the new workflow
--   execution. This parameter overrides the
--   <tt>defaultTaskStartToCloseTimout</tt> specified when registering the
--   workflow type using <tt>RegisterWorkflowType</tt> . The duration is
--   specified in seconds, an integer greater than or equal to <tt>0</tt> .
--   You can use <tt>NONE</tt> to specify unlimited duration.
canwedaTaskStartToCloseTimeout :: Lens' ContinueAsNewWorkflowExecutionDecisionAttributes (Maybe Text)

-- | The IAM role to attach to the new (continued) execution.
canwedaLambdaRole :: Lens' ContinueAsNewWorkflowExecutionDecisionAttributes (Maybe Text)

-- | The input provided to the new workflow execution.
canwedaInput :: Lens' ContinueAsNewWorkflowExecutionDecisionAttributes (Maybe Text)

-- | The version of the workflow to start.
canwedaWorkflowTypeVersion :: Lens' ContinueAsNewWorkflowExecutionDecisionAttributes (Maybe Text)

-- | If set, specifies the total duration for this workflow execution. This
--   overrides the <tt>defaultExecutionStartToCloseTimeout</tt> specified
--   when registering the workflow type. The duration is specified in
--   seconds, an integer greater than or equal to <tt>0</tt> . You can use
--   <tt>NONE</tt> to specify unlimited duration.
canwedaExecutionStartToCloseTimeout :: Lens' ContinueAsNewWorkflowExecutionDecisionAttributes (Maybe Text)

-- | The task list to use for the decisions of the new (continued) workflow
--   execution.
canwedaTaskList :: Lens' ContinueAsNewWorkflowExecutionDecisionAttributes (Maybe TaskList)

-- | The task priority that, if set, specifies the priority for the
--   decision tasks for this workflow execution. This overrides the
--   defaultTaskPriority specified when registering the workflow type.
--   Valid values are integers that range from Java's
--   <tt>Integer.MIN_VALUE</tt> (-2147483648) to <tt>Integer.MAX_VALUE</tt>
--   (2147483647). Higher numbers indicate higher priority. For more
--   information about setting task priority, see <a>Setting Task
--   Priority</a> in the <i>Amazon SWF Developer Guide</i> .
canwedaTaskPriority :: Lens' ContinueAsNewWorkflowExecutionDecisionAttributes (Maybe Text)

-- | If set, specifies the policy to use for the child workflow executions
--   of the new execution if it is terminated by calling the
--   <tt>TerminateWorkflowExecution</tt> action explicitly or due to an
--   expired timeout. This policy overrides the default child policy
--   specified when registering the workflow type using
--   <tt>RegisterWorkflowType</tt> . The supported child policies are: *
--   <tt>TERMINATE</tt> – The child executions are terminated. *
--   <tt>REQUEST_CANCEL</tt> – A request to cancel is attempted for each
--   child execution by recording a
--   <tt>WorkflowExecutionCancelRequested</tt> event in its history. It is
--   up to the decider to take appropriate actions when it receives an
--   execution history with this event. * <tt>ABANDON</tt> – No action is
--   taken. The child executions continue to run.
canwedaChildPolicy :: Lens' ContinueAsNewWorkflowExecutionDecisionAttributes (Maybe ChildPolicy)

-- | Provides the details of the
--   <tt>ContinueAsNewWorkflowExecutionFailed</tt> event.
--   
--   <i>See:</i> <a>continueAsNewWorkflowExecutionFailedEventAttributes</a>
--   smart constructor.
data ContinueAsNewWorkflowExecutionFailedEventAttributes

-- | Creates a value of
--   <a>ContinueAsNewWorkflowExecutionFailedEventAttributes</a> with the
--   minimum fields required to make a request.
--   
--   Use one of the following lenses to modify other fields as desired:
--   
--   <ul>
--   <li><a>canwefeaCause</a> - The cause of the failure. This information
--   is generated by the system and can be useful for diagnostic
--   purposes.</li>
--   <li><a>canwefeaDecisionTaskCompletedEventId</a> - The ID of the
--   <tt>DecisionTaskCompleted</tt> event corresponding to the decision
--   task that resulted in the <tt>ContinueAsNewWorkflowExecution</tt>
--   decision that started this execution. This information can be useful
--   for diagnosing problems by tracing back the chain of events leading up
--   to this event.</li>
--   </ul>
continueAsNewWorkflowExecutionFailedEventAttributes :: ContinueAsNewWorkflowExecutionFailedCause -> Integer -> ContinueAsNewWorkflowExecutionFailedEventAttributes

-- | The cause of the failure. This information is generated by the system
--   and can be useful for diagnostic purposes.
canwefeaCause :: Lens' ContinueAsNewWorkflowExecutionFailedEventAttributes ContinueAsNewWorkflowExecutionFailedCause

-- | The ID of the <tt>DecisionTaskCompleted</tt> event corresponding to
--   the decision task that resulted in the
--   <tt>ContinueAsNewWorkflowExecution</tt> decision that started this
--   execution. This information can be useful for diagnosing problems by
--   tracing back the chain of events leading up to this event.
canwefeaDecisionTaskCompletedEventId :: Lens' ContinueAsNewWorkflowExecutionFailedEventAttributes Integer

-- | Specifies a decision made by the decider. A decision can be one of
--   these types:
--   
--   <ul>
--   <li><tt>CancelTimer</tt> – Cancels a previously started timer and
--   records a <tt>TimerCanceled</tt> event in the history.</li>
--   <li><tt>CancelWorkflowExecution</tt> – Closes the workflow execution
--   and records a <tt>WorkflowExecutionCanceled</tt> event in the
--   history.</li>
--   <li><tt>CompleteWorkflowExecution</tt> – Closes the workflow execution
--   and records a <tt>WorkflowExecutionCompleted</tt> event in the history
--   .</li>
--   <li><tt>ContinueAsNewWorkflowExecution</tt> – Closes the workflow
--   execution and starts a new workflow execution of the same type using
--   the same workflow ID and a unique run Id. A
--   <tt>WorkflowExecutionContinuedAsNew</tt> event is recorded in the
--   history.</li>
--   <li><tt>FailWorkflowExecution</tt> – Closes the workflow execution and
--   records a <tt>WorkflowExecutionFailed</tt> event in the history.</li>
--   <li><tt>RecordMarker</tt> – Records a <tt>MarkerRecorded</tt> event in
--   the history. Markers can be used for adding custom information in the
--   history for instance to let deciders know that they don't need to look
--   at the history beyond the marker event.</li>
--   <li><tt>RequestCancelActivityTask</tt> – Attempts to cancel a
--   previously scheduled activity task. If the activity task was scheduled
--   but has not been assigned to a worker, then it is canceled. If the
--   activity task was already assigned to a worker, then the worker is
--   informed that cancellation has been requested in the response to
--   <tt>RecordActivityTaskHeartbeat</tt> .</li>
--   <li><tt>RequestCancelExternalWorkflowExecution</tt> – Requests that a
--   request be made to cancel the specified external workflow execution
--   and records a <tt>RequestCancelExternalWorkflowExecutionInitiated</tt>
--   event in the history.</li>
--   <li><tt>ScheduleActivityTask</tt> – Schedules an activity task.</li>
--   <li><tt>SignalExternalWorkflowExecution</tt> – Requests a signal to be
--   delivered to the specified external workflow execution and records a
--   <tt>SignalExternalWorkflowExecutionInitiated</tt> event in the
--   history.</li>
--   <li><tt>StartChildWorkflowExecution</tt> – Requests that a child
--   workflow execution be started and records a
--   <tt>StartChildWorkflowExecutionInitiated</tt> event in the history.
--   The child workflow execution is a separate workflow execution with its
--   own history.</li>
--   <li><tt>StartTimer</tt> – Starts a timer for this workflow execution
--   and records a <tt>TimerStarted</tt> event in the history. This timer
--   fires after the specified delay and record a <tt>TimerFired</tt>
--   event.</li>
--   </ul>
--   
--   <b>Access Control</b>
--   
--   If you grant permission to use <tt>RespondDecisionTaskCompleted</tt> ,
--   you can use IAM policies to express permissions for the list of
--   decisions returned by this action as if they were members of the API.
--   Treating decisions as a pseudo API maintains a uniform conceptual
--   model and helps keep policies readable. For details and example IAM
--   policies, see <a>Using IAM to Manage Access to Amazon SWF
--   Workflows</a> in the <i>Amazon SWF Developer Guide</i> .
--   
--   <b>Decision Failure</b>
--   
--   Decisions can fail for several reasons
--   
--   <ul>
--   <li>The ordering of decisions should follow a logical flow. Some
--   decisions might not make sense in the current context of the workflow
--   execution and therefore fails.</li>
--   <li>A limit on your account was reached.</li>
--   <li>The decision lacks sufficient permissions.</li>
--   </ul>
--   
--   One of the following events might be added to the history to indicate
--   an error. The event attribute's <tt>cause</tt> parameter indicates the
--   cause. If <tt>cause</tt> is set to <tt>OPERATION_NOT_PERMITTED</tt> ,
--   the decision failed because it lacked sufficient permissions. For
--   details and example IAM policies, see <a>Using IAM to Manage Access to
--   Amazon SWF Workflows</a> in the <i>Amazon SWF Developer Guide</i> .
--   
--   <ul>
--   <li><tt>ScheduleActivityTaskFailed</tt> – A
--   <tt>ScheduleActivityTask</tt> decision failed. This could happen if
--   the activity type specified in the decision isn't registered, is in a
--   deprecated state, or the decision isn't properly configured.</li>
--   <li><tt>RequestCancelActivityTaskFailed</tt> – A
--   <tt>RequestCancelActivityTask</tt> decision failed. This could happen
--   if there is no open activity task with the specified activityId.</li>
--   <li><tt>StartTimerFailed</tt> – A <tt>StartTimer</tt> decision failed.
--   This could happen if there is another open timer with the same
--   timerId.</li>
--   <li><tt>CancelTimerFailed</tt> – A <tt>CancelTimer</tt> decision
--   failed. This could happen if there is no open timer with the specified
--   timerId.</li>
--   <li><tt>StartChildWorkflowExecutionFailed</tt> – A
--   <tt>StartChildWorkflowExecution</tt> decision failed. This could
--   happen if the workflow type specified isn't registered, is deprecated,
--   or the decision isn't properly configured.</li>
--   <li><tt>SignalExternalWorkflowExecutionFailed</tt> – A
--   <tt>SignalExternalWorkflowExecution</tt> decision failed. This could
--   happen if the <tt>workflowID</tt> specified in the decision was
--   incorrect.</li>
--   <li><tt>RequestCancelExternalWorkflowExecutionFailed</tt> – A
--   <tt>RequestCancelExternalWorkflowExecution</tt> decision failed. This
--   could happen if the <tt>workflowID</tt> specified in the decision was
--   incorrect.</li>
--   <li><tt>CancelWorkflowExecutionFailed</tt> – A
--   <tt>CancelWorkflowExecution</tt> decision failed. This could happen if
--   there is an unhandled decision task pending in the workflow
--   execution.</li>
--   <li><tt>CompleteWorkflowExecutionFailed</tt> – A
--   <tt>CompleteWorkflowExecution</tt> decision failed. This could happen
--   if there is an unhandled decision task pending in the workflow
--   execution.</li>
--   <li><tt>ContinueAsNewWorkflowExecutionFailed</tt> – A
--   <tt>ContinueAsNewWorkflowExecution</tt> decision failed. This could
--   happen if there is an unhandled decision task pending in the workflow
--   execution or the ContinueAsNewWorkflowExecution decision was not
--   configured correctly.</li>
--   <li><tt>FailWorkflowExecutionFailed</tt> – A
--   <tt>FailWorkflowExecution</tt> decision failed. This could happen if
--   there is an unhandled decision task pending in the workflow
--   execution.</li>
--   </ul>
--   
--   The preceding error events might occur due to an error in the decider
--   logic, which might put the workflow execution in an unstable state The
--   cause field in the event structure for the error event indicates the
--   cause of the error.
--   
--   <b>How to Code a Decision</b>
--   
--   You code a decision by first setting the decision type field to one of
--   the above decision values, and then set the corresponding attributes
--   field shown below:
--   
--   <ul>
--   <li><pre><a>ScheduleActivityTaskDecisionAttributes</a></pre></li>
--   <li><pre><a>RequestCancelActivityTaskDecisionAttributes</a></pre></li>
--   <li><pre><a>CompleteWorkflowExecutionDecisionAttributes</a></pre></li>
--   <li><pre><a>FailWorkflowExecutionDecisionAttributes</a></pre></li>
--   <li><pre><a>CancelWorkflowExecutionDecisionAttributes</a></pre></li>
--   
--   <li><pre><a>ContinueAsNewWorkflowExecutionDecisionAttributes</a></pre></li>
--   <li><pre><a>RecordMarkerDecisionAttributes</a></pre></li>
--   <li><pre><a>StartTimerDecisionAttributes</a></pre></li>
--   <li><pre><a>CancelTimerDecisionAttributes</a></pre></li>
--   
--   <li><pre><a>SignalExternalWorkflowExecutionDecisionAttributes</a></pre></li>
--   
--   <li><pre><a>RequestCancelExternalWorkflowExecutionDecisionAttributes</a></pre></li>
--   
--   <li><pre><a>StartChildWorkflowExecutionDecisionAttributes</a></pre></li>
--   </ul>
--   
--   <i>See:</i> <a>decision</a> smart constructor.
data Decision

-- | Creates a value of <a>Decision</a> with the minimum fields required to
--   make a request.
--   
--   Use one of the following lenses to modify other fields as desired:
--   
--   <ul>
--   <li><a>dRequestCancelExternalWorkflowExecutionDecisionAttributes</a> -
--   Provides the details of the
--   <tt>RequestCancelExternalWorkflowExecution</tt> decision. It isn't set
--   for other decision types.</li>
--   <li><a>dScheduleActivityTaskDecisionAttributes</a> - Provides the
--   details of the <tt>ScheduleActivityTask</tt> decision. It isn't set
--   for other decision types.</li>
--   <li><a>dSignalExternalWorkflowExecutionDecisionAttributes</a> -
--   Provides the details of the <tt>SignalExternalWorkflowExecution</tt>
--   decision. It isn't set for other decision types.</li>
--   <li><a>dStartTimerDecisionAttributes</a> - Provides the details of the
--   <tt>StartTimer</tt> decision. It isn't set for other decision
--   types.</li>
--   <li><a>dRecordMarkerDecisionAttributes</a> - Provides the details of
--   the <tt>RecordMarker</tt> decision. It isn't set for other decision
--   types.</li>
--   <li><a>dFailWorkflowExecutionDecisionAttributes</a> - Provides the
--   details of the <tt>FailWorkflowExecution</tt> decision. It isn't set
--   for other decision types.</li>
--   <li><a>dStartChildWorkflowExecutionDecisionAttributes</a> - Provides
--   the details of the <tt>StartChildWorkflowExecution</tt> decision. It
--   isn't set for other decision types.</li>
--   <li><a>dCompleteWorkflowExecutionDecisionAttributes</a> - Provides the
--   details of the <tt>CompleteWorkflowExecution</tt> decision. It isn't
--   set for other decision types.</li>
--   <li><a>dScheduleLambdaFunctionDecisionAttributes</a> - Provides the
--   details of the <tt>ScheduleLambdaFunction</tt> decision. It isn't set
--   for other decision types.</li>
--   <li><a>dRequestCancelActivityTaskDecisionAttributes</a> - Provides the
--   details of the <tt>RequestCancelActivityTask</tt> decision. It isn't
--   set for other decision types.</li>
--   <li><a>dCancelWorkflowExecutionDecisionAttributes</a> - Provides the
--   details of the <tt>CancelWorkflowExecution</tt> decision. It isn't set
--   for other decision types.</li>
--   <li><a>dCancelTimerDecisionAttributes</a> - Provides the details of
--   the <tt>CancelTimer</tt> decision. It isn't set for other decision
--   types.</li>
--   <li><a>dContinueAsNewWorkflowExecutionDecisionAttributes</a> -
--   Provides the details of the <tt>ContinueAsNewWorkflowExecution</tt>
--   decision. It isn't set for other decision types.</li>
--   <li><a>dDecisionType</a> - Specifies the type of the decision.</li>
--   </ul>
decision :: DecisionType -> Decision

-- | Provides the details of the
--   <tt>RequestCancelExternalWorkflowExecution</tt> decision. It isn't set
--   for other decision types.
dRequestCancelExternalWorkflowExecutionDecisionAttributes :: Lens' Decision (Maybe RequestCancelExternalWorkflowExecutionDecisionAttributes)

-- | Provides the details of the <tt>ScheduleActivityTask</tt> decision. It
--   isn't set for other decision types.
dScheduleActivityTaskDecisionAttributes :: Lens' Decision (Maybe ScheduleActivityTaskDecisionAttributes)

-- | Provides the details of the <tt>SignalExternalWorkflowExecution</tt>
--   decision. It isn't set for other decision types.
dSignalExternalWorkflowExecutionDecisionAttributes :: Lens' Decision (Maybe SignalExternalWorkflowExecutionDecisionAttributes)

-- | Provides the details of the <tt>StartTimer</tt> decision. It isn't set
--   for other decision types.
dStartTimerDecisionAttributes :: Lens' Decision (Maybe StartTimerDecisionAttributes)

-- | Provides the details of the <tt>RecordMarker</tt> decision. It isn't
--   set for other decision types.
dRecordMarkerDecisionAttributes :: Lens' Decision (Maybe RecordMarkerDecisionAttributes)

-- | Provides the details of the <tt>FailWorkflowExecution</tt> decision.
--   It isn't set for other decision types.
dFailWorkflowExecutionDecisionAttributes :: Lens' Decision (Maybe FailWorkflowExecutionDecisionAttributes)

-- | Provides the details of the <tt>StartChildWorkflowExecution</tt>
--   decision. It isn't set for other decision types.
dStartChildWorkflowExecutionDecisionAttributes :: Lens' Decision (Maybe StartChildWorkflowExecutionDecisionAttributes)

-- | Provides the details of the <tt>CompleteWorkflowExecution</tt>
--   decision. It isn't set for other decision types.
dCompleteWorkflowExecutionDecisionAttributes :: Lens' Decision (Maybe CompleteWorkflowExecutionDecisionAttributes)

-- | Provides the details of the <tt>ScheduleLambdaFunction</tt> decision.
--   It isn't set for other decision types.
dScheduleLambdaFunctionDecisionAttributes :: Lens' Decision (Maybe ScheduleLambdaFunctionDecisionAttributes)

-- | Provides the details of the <tt>RequestCancelActivityTask</tt>
--   decision. It isn't set for other decision types.
dRequestCancelActivityTaskDecisionAttributes :: Lens' Decision (Maybe RequestCancelActivityTaskDecisionAttributes)

-- | Provides the details of the <tt>CancelWorkflowExecution</tt> decision.
--   It isn't set for other decision types.
dCancelWorkflowExecutionDecisionAttributes :: Lens' Decision (Maybe CancelWorkflowExecutionDecisionAttributes)

-- | Provides the details of the <tt>CancelTimer</tt> decision. It isn't
--   set for other decision types.
dCancelTimerDecisionAttributes :: Lens' Decision (Maybe CancelTimerDecisionAttributes)

-- | Provides the details of the <tt>ContinueAsNewWorkflowExecution</tt>
--   decision. It isn't set for other decision types.
dContinueAsNewWorkflowExecutionDecisionAttributes :: Lens' Decision (Maybe ContinueAsNewWorkflowExecutionDecisionAttributes)

-- | Specifies the type of the decision.
dDecisionType :: Lens' Decision DecisionType

-- | Provides the details of the <tt>DecisionTaskCompleted</tt> event.
--   
--   <i>See:</i> <a>decisionTaskCompletedEventAttributes</a> smart
--   constructor.
data DecisionTaskCompletedEventAttributes

-- | Creates a value of <a>DecisionTaskCompletedEventAttributes</a> with
--   the minimum fields required to make a request.
--   
--   Use one of the following lenses to modify other fields as desired:
--   
--   <ul>
--   <li><a>dtceaExecutionContext</a> - User defined context for the
--   workflow execution.</li>
--   <li><a>dtceaScheduledEventId</a> - The ID of the
--   <tt>DecisionTaskScheduled</tt> event that was recorded when this
--   decision task was scheduled. This information can be useful for
--   diagnosing problems by tracing back the chain of events leading up to
--   this event.</li>
--   <li><a>dtceaStartedEventId</a> - The ID of the
--   <tt>DecisionTaskStarted</tt> event recorded when this decision task
--   was started. This information can be useful for diagnosing problems by
--   tracing back the chain of events leading up to this event.</li>
--   </ul>
decisionTaskCompletedEventAttributes :: Integer -> Integer -> DecisionTaskCompletedEventAttributes

-- | User defined context for the workflow execution.
dtceaExecutionContext :: Lens' DecisionTaskCompletedEventAttributes (Maybe Text)

-- | The ID of the <tt>DecisionTaskScheduled</tt> event that was recorded
--   when this decision task was scheduled. This information can be useful
--   for diagnosing problems by tracing back the chain of events leading up
--   to this event.
dtceaScheduledEventId :: Lens' DecisionTaskCompletedEventAttributes Integer

-- | The ID of the <tt>DecisionTaskStarted</tt> event recorded when this
--   decision task was started. This information can be useful for
--   diagnosing problems by tracing back the chain of events leading up to
--   this event.
dtceaStartedEventId :: Lens' DecisionTaskCompletedEventAttributes Integer

-- | Provides details about the <tt>DecisionTaskScheduled</tt> event.
--   
--   <i>See:</i> <a>decisionTaskScheduledEventAttributes</a> smart
--   constructor.
data DecisionTaskScheduledEventAttributes

-- | Creates a value of <a>DecisionTaskScheduledEventAttributes</a> with
--   the minimum fields required to make a request.
--   
--   Use one of the following lenses to modify other fields as desired:
--   
--   <ul>
--   <li><a>dtseaTaskPriority</a> - A task priority that, if set, specifies
--   the priority for this decision task. Valid values are integers that
--   range from Java's <tt>Integer.MIN_VALUE</tt> (-2147483648) to
--   <tt>Integer.MAX_VALUE</tt> (2147483647). Higher numbers indicate
--   higher priority. For more information about setting task priority, see
--   <a>Setting Task Priority</a> in the <i>Amazon SWF Developer Guide</i>
--   .</li>
--   <li><a>dtseaStartToCloseTimeout</a> - The maximum duration for this
--   decision task. The task is considered timed out if it doesn't
--   completed within this duration. The duration is specified in seconds,
--   an integer greater than or equal to <tt>0</tt> . You can use
--   <tt>NONE</tt> to specify unlimited duration.</li>
--   <li><a>dtseaTaskList</a> - The name of the task list in which the
--   decision task was scheduled.</li>
--   </ul>
decisionTaskScheduledEventAttributes :: TaskList -> DecisionTaskScheduledEventAttributes

-- | A task priority that, if set, specifies the priority for this decision
--   task. Valid values are integers that range from Java's
--   <tt>Integer.MIN_VALUE</tt> (-2147483648) to <tt>Integer.MAX_VALUE</tt>
--   (2147483647). Higher numbers indicate higher priority. For more
--   information about setting task priority, see <a>Setting Task
--   Priority</a> in the <i>Amazon SWF Developer Guide</i> .
dtseaTaskPriority :: Lens' DecisionTaskScheduledEventAttributes (Maybe Text)

-- | The maximum duration for this decision task. The task is considered
--   timed out if it doesn't completed within this duration. The duration
--   is specified in seconds, an integer greater than or equal to
--   <tt>0</tt> . You can use <tt>NONE</tt> to specify unlimited duration.
dtseaStartToCloseTimeout :: Lens' DecisionTaskScheduledEventAttributes (Maybe Text)

-- | The name of the task list in which the decision task was scheduled.
dtseaTaskList :: Lens' DecisionTaskScheduledEventAttributes TaskList

-- | Provides the details of the <tt>DecisionTaskStarted</tt> event.
--   
--   <i>See:</i> <a>decisionTaskStartedEventAttributes</a> smart
--   constructor.
data DecisionTaskStartedEventAttributes

-- | Creates a value of <a>DecisionTaskStartedEventAttributes</a> with the
--   minimum fields required to make a request.
--   
--   Use one of the following lenses to modify other fields as desired:
--   
--   <ul>
--   <li><a>dtseaIdentity</a> - Identity of the decider making the request.
--   This enables diagnostic tracing when problems arise. The form of this
--   identity is user defined.</li>
--   <li><a>dtseaScheduledEventId</a> - The ID of the
--   <tt>DecisionTaskScheduled</tt> event that was recorded when this
--   decision task was scheduled. This information can be useful for
--   diagnosing problems by tracing back the chain of events leading up to
--   this event.</li>
--   </ul>
decisionTaskStartedEventAttributes :: Integer -> DecisionTaskStartedEventAttributes

-- | Identity of the decider making the request. This enables diagnostic
--   tracing when problems arise. The form of this identity is user
--   defined.
dtseaIdentity :: Lens' DecisionTaskStartedEventAttributes (Maybe Text)

-- | The ID of the <tt>DecisionTaskScheduled</tt> event that was recorded
--   when this decision task was scheduled. This information can be useful
--   for diagnosing problems by tracing back the chain of events leading up
--   to this event.
dtseaScheduledEventId :: Lens' DecisionTaskStartedEventAttributes Integer

-- | Provides the details of the <tt>DecisionTaskTimedOut</tt> event.
--   
--   <i>See:</i> <a>decisionTaskTimedOutEventAttributes</a> smart
--   constructor.
data DecisionTaskTimedOutEventAttributes

-- | Creates a value of <a>DecisionTaskTimedOutEventAttributes</a> with the
--   minimum fields required to make a request.
--   
--   Use one of the following lenses to modify other fields as desired:
--   
--   <ul>
--   <li><a>dttoeaTimeoutType</a> - The type of timeout that expired before
--   the decision task could be completed.</li>
--   <li><a>dttoeaScheduledEventId</a> - The ID of the
--   <tt>DecisionTaskScheduled</tt> event that was recorded when this
--   decision task was scheduled. This information can be useful for
--   diagnosing problems by tracing back the chain of events leading up to
--   this event.</li>
--   <li><a>dttoeaStartedEventId</a> - The ID of the
--   <tt>DecisionTaskStarted</tt> event recorded when this decision task
--   was started. This information can be useful for diagnosing problems by
--   tracing back the chain of events leading up to this event.</li>
--   </ul>
decisionTaskTimedOutEventAttributes :: DecisionTaskTimeoutType -> Integer -> Integer -> DecisionTaskTimedOutEventAttributes

-- | The type of timeout that expired before the decision task could be
--   completed.
dttoeaTimeoutType :: Lens' DecisionTaskTimedOutEventAttributes DecisionTaskTimeoutType

-- | The ID of the <tt>DecisionTaskScheduled</tt> event that was recorded
--   when this decision task was scheduled. This information can be useful
--   for diagnosing problems by tracing back the chain of events leading up
--   to this event.
dttoeaScheduledEventId :: Lens' DecisionTaskTimedOutEventAttributes Integer

-- | The ID of the <tt>DecisionTaskStarted</tt> event recorded when this
--   decision task was started. This information can be useful for
--   diagnosing problems by tracing back the chain of events leading up to
--   this event.
dttoeaStartedEventId :: Lens' DecisionTaskTimedOutEventAttributes Integer

-- | Contains the configuration settings of a domain.
--   
--   <i>See:</i> <a>domainConfiguration</a> smart constructor.
data DomainConfiguration

-- | Creates a value of <a>DomainConfiguration</a> with the minimum fields
--   required to make a request.
--   
--   Use one of the following lenses to modify other fields as desired:
--   
--   <ul>
--   <li><a>dcWorkflowExecutionRetentionPeriodInDays</a> - The retention
--   period for workflow executions in this domain.</li>
--   </ul>
domainConfiguration :: Text -> DomainConfiguration

-- | The retention period for workflow executions in this domain.
dcWorkflowExecutionRetentionPeriodInDays :: Lens' DomainConfiguration Text

-- | Contains general information about a domain.
--   
--   <i>See:</i> <a>domainInfo</a> smart constructor.
data DomainInfo

-- | Creates a value of <a>DomainInfo</a> with the minimum fields required
--   to make a request.
--   
--   Use one of the following lenses to modify other fields as desired:
--   
--   <ul>
--   <li><a>diDescription</a> - The description of the domain provided
--   through <tt>RegisterDomain</tt> .</li>
--   <li><a>diName</a> - The name of the domain. This name is unique within
--   the account.</li>
--   <li><a>diStatus</a> - The status of the domain: * <tt>REGISTERED</tt>
--   – The domain is properly registered and available. You can use this
--   domain for registering types and creating new workflow executions. *
--   <tt>DEPRECATED</tt> – The domain was deprecated using
--   <tt>DeprecateDomain</tt> , but is still in use. You should not create
--   new workflow executions in this domain.</li>
--   </ul>
domainInfo :: Text -> RegistrationStatus -> DomainInfo

-- | The description of the domain provided through <tt>RegisterDomain</tt>
--   .
diDescription :: Lens' DomainInfo (Maybe Text)

-- | The name of the domain. This name is unique within the account.
diName :: Lens' DomainInfo Text

-- | The status of the domain: * <tt>REGISTERED</tt> – The domain is
--   properly registered and available. You can use this domain for
--   registering types and creating new workflow executions. *
--   <tt>DEPRECATED</tt> – The domain was deprecated using
--   <tt>DeprecateDomain</tt> , but is still in use. You should not create
--   new workflow executions in this domain.
diStatus :: Lens' DomainInfo RegistrationStatus

-- | Used to filter the workflow executions in visibility APIs by various
--   time-based rules. Each parameter, if specified, defines a rule that
--   must be satisfied by each returned query result. The parameter values
--   are in the <a>Unix Time format</a> . For example: <tt>"oldestDate":
--   1325376070.</tt>
--   
--   <i>See:</i> <a>executionTimeFilter</a> smart constructor.
data ExecutionTimeFilter

-- | Creates a value of <a>ExecutionTimeFilter</a> with the minimum fields
--   required to make a request.
--   
--   Use one of the following lenses to modify other fields as desired:
--   
--   <ul>
--   <li><a>etfLatestDate</a> - Specifies the latest start or close date
--   and time to return.</li>
--   <li><a>etfOldestDate</a> - Specifies the oldest start or close date
--   and time to return.</li>
--   </ul>
executionTimeFilter :: UTCTime -> ExecutionTimeFilter

-- | Specifies the latest start or close date and time to return.
etfLatestDate :: Lens' ExecutionTimeFilter (Maybe UTCTime)

-- | Specifies the oldest start or close date and time to return.
etfOldestDate :: Lens' ExecutionTimeFilter UTCTime

-- | Provides the details of the
--   <tt>ExternalWorkflowExecutionCancelRequested</tt> event.
--   
--   <i>See:</i>
--   <a>externalWorkflowExecutionCancelRequestedEventAttributes</a> smart
--   constructor.
data ExternalWorkflowExecutionCancelRequestedEventAttributes

-- | Creates a value of
--   <a>ExternalWorkflowExecutionCancelRequestedEventAttributes</a> with
--   the minimum fields required to make a request.
--   
--   Use one of the following lenses to modify other fields as desired:
--   
--   <ul>
--   <li><a>ewecreaWorkflowExecution</a> - The external workflow execution
--   to which the cancellation request was delivered.</li>
--   <li><a>ewecreaInitiatedEventId</a> - The ID of the
--   <tt>RequestCancelExternalWorkflowExecutionInitiated</tt> event
--   corresponding to the <tt>RequestCancelExternalWorkflowExecution</tt>
--   decision to cancel this external workflow execution. This information
--   can be useful for diagnosing problems by tracing back the chain of
--   events leading up to this event.</li>
--   </ul>
externalWorkflowExecutionCancelRequestedEventAttributes :: WorkflowExecution -> Integer -> ExternalWorkflowExecutionCancelRequestedEventAttributes

-- | The external workflow execution to which the cancellation request was
--   delivered.
ewecreaWorkflowExecution :: Lens' ExternalWorkflowExecutionCancelRequestedEventAttributes WorkflowExecution

-- | The ID of the <tt>RequestCancelExternalWorkflowExecutionInitiated</tt>
--   event corresponding to the
--   <tt>RequestCancelExternalWorkflowExecution</tt> decision to cancel
--   this external workflow execution. This information can be useful for
--   diagnosing problems by tracing back the chain of events leading up to
--   this event.
ewecreaInitiatedEventId :: Lens' ExternalWorkflowExecutionCancelRequestedEventAttributes Integer

-- | Provides the details of the <tt>ExternalWorkflowExecutionSignaled</tt>
--   event.
--   
--   <i>See:</i> <a>externalWorkflowExecutionSignaledEventAttributes</a>
--   smart constructor.
data ExternalWorkflowExecutionSignaledEventAttributes

-- | Creates a value of
--   <a>ExternalWorkflowExecutionSignaledEventAttributes</a> with the
--   minimum fields required to make a request.
--   
--   Use one of the following lenses to modify other fields as desired:
--   
--   <ul>
--   <li><a>eweseaWorkflowExecution</a> - The external workflow execution
--   that the signal was delivered to.</li>
--   <li><a>eweseaInitiatedEventId</a> - The ID of the
--   <tt>SignalExternalWorkflowExecutionInitiated</tt> event corresponding
--   to the <tt>SignalExternalWorkflowExecution</tt> decision to request
--   this signal. This information can be useful for diagnosing problems by
--   tracing back the chain of events leading up to this event.</li>
--   </ul>
externalWorkflowExecutionSignaledEventAttributes :: WorkflowExecution -> Integer -> ExternalWorkflowExecutionSignaledEventAttributes

-- | The external workflow execution that the signal was delivered to.
eweseaWorkflowExecution :: Lens' ExternalWorkflowExecutionSignaledEventAttributes WorkflowExecution

-- | The ID of the <tt>SignalExternalWorkflowExecutionInitiated</tt> event
--   corresponding to the <tt>SignalExternalWorkflowExecution</tt> decision
--   to request this signal. This information can be useful for diagnosing
--   problems by tracing back the chain of events leading up to this event.
eweseaInitiatedEventId :: Lens' ExternalWorkflowExecutionSignaledEventAttributes Integer

-- | Provides the details of the <tt>FailWorkflowExecution</tt> decision.
--   
--   <b>Access Control</b>
--   
--   You can use IAM policies to control this decision's access to Amazon
--   SWF resources as follows:
--   
--   <ul>
--   <li>Use a <tt>Resource</tt> element with the domain name to limit the
--   action to only specified domains.</li>
--   <li>Use an <tt>Action</tt> element to allow or deny permission to call
--   this action.</li>
--   <li>You cannot use an IAM policy to constrain this action's
--   parameters.</li>
--   </ul>
--   
--   If the caller doesn't have sufficient permissions to invoke the
--   action, or the parameter values fall outside the specified
--   constraints, the action fails. The associated event attribute's
--   <tt>cause</tt> parameter is set to <tt>OPERATION_NOT_PERMITTED</tt> .
--   For details and example IAM policies, see <a>Using IAM to Manage
--   Access to Amazon SWF Workflows</a> in the <i>Amazon SWF Developer
--   Guide</i> .
--   
--   <i>See:</i> <a>failWorkflowExecutionDecisionAttributes</a> smart
--   constructor.
data FailWorkflowExecutionDecisionAttributes

-- | Creates a value of <a>FailWorkflowExecutionDecisionAttributes</a> with
--   the minimum fields required to make a request.
--   
--   Use one of the following lenses to modify other fields as desired:
--   
--   <ul>
--   <li><a>fwedaReason</a> - A descriptive reason for the failure that may
--   help in diagnostics.</li>
--   <li><a>fwedaDetails</a> - Details of the failure.</li>
--   </ul>
failWorkflowExecutionDecisionAttributes :: FailWorkflowExecutionDecisionAttributes

-- | A descriptive reason for the failure that may help in diagnostics.
fwedaReason :: Lens' FailWorkflowExecutionDecisionAttributes (Maybe Text)

-- | Details of the failure.
fwedaDetails :: Lens' FailWorkflowExecutionDecisionAttributes (Maybe Text)

-- | Provides the details of the <tt>FailWorkflowExecutionFailed</tt>
--   event.
--   
--   <i>See:</i> <a>failWorkflowExecutionFailedEventAttributes</a> smart
--   constructor.
data FailWorkflowExecutionFailedEventAttributes

-- | Creates a value of <a>FailWorkflowExecutionFailedEventAttributes</a>
--   with the minimum fields required to make a request.
--   
--   Use one of the following lenses to modify other fields as desired:
--   
--   <ul>
--   <li><a>fwefeaCause</a> - The cause of the failure. This information is
--   generated by the system and can be useful for diagnostic
--   purposes.</li>
--   <li><a>fwefeaDecisionTaskCompletedEventId</a> - The ID of the
--   <tt>DecisionTaskCompleted</tt> event corresponding to the decision
--   task that resulted in the <tt>FailWorkflowExecution</tt> decision to
--   fail this execution. This information can be useful for diagnosing
--   problems by tracing back the chain of events leading up to this
--   event.</li>
--   </ul>
failWorkflowExecutionFailedEventAttributes :: FailWorkflowExecutionFailedCause -> Integer -> FailWorkflowExecutionFailedEventAttributes

-- | The cause of the failure. This information is generated by the system
--   and can be useful for diagnostic purposes.
fwefeaCause :: Lens' FailWorkflowExecutionFailedEventAttributes FailWorkflowExecutionFailedCause

-- | The ID of the <tt>DecisionTaskCompleted</tt> event corresponding to
--   the decision task that resulted in the <tt>FailWorkflowExecution</tt>
--   decision to fail this execution. This information can be useful for
--   diagnosing problems by tracing back the chain of events leading up to
--   this event.
fwefeaDecisionTaskCompletedEventId :: Lens' FailWorkflowExecutionFailedEventAttributes Integer

-- | Event within a workflow execution. A history event can be one of these
--   types:
--   
--   <ul>
--   <li><tt>ActivityTaskCancelRequested</tt> – A
--   <tt>RequestCancelActivityTask</tt> decision was received by the
--   system.</li>
--   <li><tt>ActivityTaskCanceled</tt> – The activity task was successfully
--   canceled.</li>
--   <li><tt>ActivityTaskCompleted</tt> – An activity worker successfully
--   completed an activity task by calling
--   <tt>RespondActivityTaskCompleted</tt> .</li>
--   <li><tt>ActivityTaskFailed</tt> – An activity worker failed an
--   activity task by calling <tt>RespondActivityTaskFailed</tt> .</li>
--   <li><tt>ActivityTaskScheduled</tt> – An activity task was scheduled
--   for execution.</li>
--   <li><tt>ActivityTaskStarted</tt> – The scheduled activity task was
--   dispatched to a worker.</li>
--   <li><tt>ActivityTaskTimedOut</tt> – The activity task timed out.</li>
--   <li><tt>CancelTimerFailed</tt> – Failed to process CancelTimer
--   decision. This happens when the decision isn't configured properly,
--   for example no timer exists with the specified timer Id.</li>
--   <li><tt>CancelWorkflowExecutionFailed</tt> – A request to cancel a
--   workflow execution failed.</li>
--   <li><tt>ChildWorkflowExecutionCanceled</tt> – A child workflow
--   execution, started by this workflow execution, was canceled and
--   closed.</li>
--   <li><tt>ChildWorkflowExecutionCompleted</tt> – A child workflow
--   execution, started by this workflow execution, completed successfully
--   and was closed.</li>
--   <li><tt>ChildWorkflowExecutionFailed</tt> – A child workflow
--   execution, started by this workflow execution, failed to complete
--   successfully and was closed.</li>
--   <li><tt>ChildWorkflowExecutionStarted</tt> – A child workflow
--   execution was successfully started.</li>
--   <li><tt>ChildWorkflowExecutionTerminated</tt> – A child workflow
--   execution, started by this workflow execution, was terminated.</li>
--   <li><tt>ChildWorkflowExecutionTimedOut</tt> – A child workflow
--   execution, started by this workflow execution, timed out and was
--   closed.</li>
--   <li><tt>CompleteWorkflowExecutionFailed</tt> – The workflow execution
--   failed to complete.</li>
--   <li><tt>ContinueAsNewWorkflowExecutionFailed</tt> – The workflow
--   execution failed to complete after being continued as a new workflow
--   execution.</li>
--   <li><tt>DecisionTaskCompleted</tt> – The decider successfully
--   completed a decision task by calling
--   <tt>RespondDecisionTaskCompleted</tt> .</li>
--   <li><tt>DecisionTaskScheduled</tt> – A decision task was scheduled for
--   the workflow execution.</li>
--   <li><tt>DecisionTaskStarted</tt> – The decision task was dispatched to
--   a decider.</li>
--   <li><tt>DecisionTaskTimedOut</tt> – The decision task timed out.</li>
--   <li><tt>ExternalWorkflowExecutionCancelRequested</tt> – Request to
--   cancel an external workflow execution was successfully delivered to
--   the target execution.</li>
--   <li><tt>ExternalWorkflowExecutionSignaled</tt> – A signal, requested
--   by this workflow execution, was successfully delivered to the target
--   external workflow execution.</li>
--   <li><tt>FailWorkflowExecutionFailed</tt> – A request to mark a
--   workflow execution as failed, itself failed.</li>
--   <li><tt>MarkerRecorded</tt> – A marker was recorded in the workflow
--   history as the result of a <tt>RecordMarker</tt> decision.</li>
--   <li><tt>RecordMarkerFailed</tt> – A <tt>RecordMarker</tt> decision was
--   returned as failed.</li>
--   <li><tt>RequestCancelActivityTaskFailed</tt> – Failed to process
--   RequestCancelActivityTask decision. This happens when the decision
--   isn't configured properly.</li>
--   <li><tt>RequestCancelExternalWorkflowExecutionFailed</tt> – Request to
--   cancel an external workflow execution failed.</li>
--   <li><tt>RequestCancelExternalWorkflowExecutionInitiated</tt> – A
--   request was made to request the cancellation of an external workflow
--   execution.</li>
--   <li><tt>ScheduleActivityTaskFailed</tt> – Failed to process
--   ScheduleActivityTask decision. This happens when the decision isn't
--   configured properly, for example the activity type specified isn't
--   registered.</li>
--   <li><tt>SignalExternalWorkflowExecutionFailed</tt> – The request to
--   signal an external workflow execution failed.</li>
--   <li><tt>SignalExternalWorkflowExecutionInitiated</tt> – A request to
--   signal an external workflow was made.</li>
--   <li><tt>StartActivityTaskFailed</tt> – A scheduled activity task
--   failed to start.</li>
--   <li><tt>StartChildWorkflowExecutionFailed</tt> – Failed to process
--   StartChildWorkflowExecution decision. This happens when the decision
--   isn't configured properly, for example the workflow type specified
--   isn't registered.</li>
--   <li><tt>StartChildWorkflowExecutionInitiated</tt> – A request was made
--   to start a child workflow execution.</li>
--   <li><tt>StartTimerFailed</tt> – Failed to process StartTimer decision.
--   This happens when the decision isn't configured properly, for example
--   a timer already exists with the specified timer Id.</li>
--   <li><tt>TimerCanceled</tt> – A timer, previously started for this
--   workflow execution, was successfully canceled.</li>
--   <li><tt>TimerFired</tt> – A timer, previously started for this
--   workflow execution, fired.</li>
--   <li><tt>TimerStarted</tt> – A timer was started for the workflow
--   execution due to a <tt>StartTimer</tt> decision.</li>
--   <li><tt>WorkflowExecutionCancelRequested</tt> – A request to cancel
--   this workflow execution was made.</li>
--   <li><tt>WorkflowExecutionCanceled</tt> – The workflow execution was
--   successfully canceled and closed.</li>
--   <li><tt>WorkflowExecutionCompleted</tt> – The workflow execution was
--   closed due to successful completion.</li>
--   <li><tt>WorkflowExecutionContinuedAsNew</tt> – The workflow execution
--   was closed and a new execution of the same type was created with the
--   same workflowId.</li>
--   <li><tt>WorkflowExecutionFailed</tt> – The workflow execution closed
--   due to a failure.</li>
--   <li><tt>WorkflowExecutionSignaled</tt> – An external signal was
--   received for the workflow execution.</li>
--   <li><tt>WorkflowExecutionStarted</tt> – The workflow execution was
--   started.</li>
--   <li><tt>WorkflowExecutionTerminated</tt> – The workflow execution was
--   terminated.</li>
--   <li><tt>WorkflowExecutionTimedOut</tt> – The workflow execution was
--   closed because a time out was exceeded.</li>
--   </ul>
--   
--   <i>See:</i> <a>historyEvent</a> smart constructor.
data HistoryEvent

-- | Creates a value of <a>HistoryEvent</a> with the minimum fields
--   required to make a request.
--   
--   Use one of the following lenses to modify other fields as desired:
--   
--   <ul>
--   <li><a>heWorkflowExecutionCancelRequestedEventAttributes</a> - If the
--   event is of type <tt>WorkflowExecutionCancelRequested</tt> then this
--   member is set and provides detailed information about the event. It
--   isn't set for other event types.</li>
--   <li><a>heRecordMarkerFailedEventAttributes</a> - If the event is of
--   type <tt>DecisionTaskFailed</tt> then this member is set and provides
--   detailed information about the event. It isn't set for other event
--   types.</li>
--   
--   <li><a>heRequestCancelExternalWorkflowExecutionInitiatedEventAttributes</a>
--   - If the event is of type
--   <tt>RequestCancelExternalWorkflowExecutionInitiated</tt> then this
--   member is set and provides detailed information about the event. It
--   isn't set for other event types.</li>
--   <li><a>heLambdaFunctionStartedEventAttributes</a> - Provides the
--   details of the <tt>LambdaFunctionStarted</tt> event. It isn't set for
--   other event types.</li>
--   <li><a>heDecisionTaskScheduledEventAttributes</a> - If the event is of
--   type <tt>DecisionTaskScheduled</tt> then this member is set and
--   provides detailed information about the event. It isn't set for other
--   event types.</li>
--   <li><a>heWorkflowExecutionCompletedEventAttributes</a> - If the event
--   is of type <tt>WorkflowExecutionCompleted</tt> then this member is set
--   and provides detailed information about the event. It isn't set for
--   other event types.</li>
--   <li><a>heStartTimerFailedEventAttributes</a> - If the event is of type
--   <tt>StartTimerFailed</tt> then this member is set and provides
--   detailed information about the event. It isn't set for other event
--   types.</li>
--   <li><a>heActivityTaskScheduledEventAttributes</a> - If the event is of
--   type <tt>ActivityTaskScheduled</tt> then this member is set and
--   provides detailed information about the event. It isn't set for other
--   event types.</li>
--   <li><a>heScheduleActivityTaskFailedEventAttributes</a> - If the event
--   is of type <tt>ScheduleActivityTaskFailed</tt> then this member is set
--   and provides detailed information about the event. It isn't set for
--   other event types.</li>
--   <li><a>heChildWorkflowExecutionCompletedEventAttributes</a> - If the
--   event is of type <tt>ChildWorkflowExecutionCompleted</tt> then this
--   member is set and provides detailed information about the event. It
--   isn't set for other event types.</li>
--   <li><a>heMarkerRecordedEventAttributes</a> - If the event is of type
--   <tt>MarkerRecorded</tt> then this member is set and provides detailed
--   information about the event. It isn't set for other event types.</li>
--   <li><a>heScheduleLambdaFunctionFailedEventAttributes</a> - Provides
--   the details of the <tt>ScheduleLambdaFunctionFailed</tt> event. It
--   isn't set for other event types.</li>
--   <li><a>heCompleteWorkflowExecutionFailedEventAttributes</a> - If the
--   event is of type <tt>CompleteWorkflowExecutionFailed</tt> then this
--   member is set and provides detailed information about the event. It
--   isn't set for other event types.</li>
--   <li><a>heLambdaFunctionCompletedEventAttributes</a> - Provides the
--   details of the <tt>LambdaFunctionCompleted</tt> event. It isn't set
--   for other event types.</li>
--   
--   <li><a>heRequestCancelExternalWorkflowExecutionFailedEventAttributes</a>
--   - If the event is of type
--   <tt>RequestCancelExternalWorkflowExecutionFailed</tt> then this member
--   is set and provides detailed information about the event. It isn't set
--   for other event types.</li>
--   <li><a>heTimerCanceledEventAttributes</a> - If the event is of type
--   <tt>TimerCanceled</tt> then this member is set and provides detailed
--   information about the event. It isn't set for other event types.</li>
--   <li><a>heWorkflowExecutionStartedEventAttributes</a> - If the event is
--   of type <tt>WorkflowExecutionStarted</tt> then this member is set and
--   provides detailed information about the event. It isn't set for other
--   event types.</li>
--   <li><a>heActivityTaskCompletedEventAttributes</a> - If the event is of
--   type <tt>ActivityTaskCompleted</tt> then this member is set and
--   provides detailed information about the event. It isn't set for other
--   event types.</li>
--   <li><a>heDecisionTaskTimedOutEventAttributes</a> - If the event is of
--   type <tt>DecisionTaskTimedOut</tt> then this member is set and
--   provides detailed information about the event. It isn't set for other
--   event types.</li>
--   <li><a>heCancelTimerFailedEventAttributes</a> - If the event is of
--   type <tt>CancelTimerFailed</tt> then this member is set and provides
--   detailed information about the event. It isn't set for other event
--   types.</li>
--   <li><a>heChildWorkflowExecutionStartedEventAttributes</a> - If the
--   event is of type <tt>ChildWorkflowExecutionStarted</tt> then this
--   member is set and provides detailed information about the event. It
--   isn't set for other event types.</li>
--   <li><a>heActivityTaskCanceledEventAttributes</a> - If the event is of
--   type <tt>ActivityTaskCanceled</tt> then this member is set and
--   provides detailed information about the event. It isn't set for other
--   event types.</li>
--   <li><a>heActivityTaskTimedOutEventAttributes</a> - If the event is of
--   type <tt>ActivityTaskTimedOut</tt> then this member is set and
--   provides detailed information about the event. It isn't set for other
--   event types.</li>
--   <li><a>heDecisionTaskStartedEventAttributes</a> - If the event is of
--   type <tt>DecisionTaskStarted</tt> then this member is set and provides
--   detailed information about the event. It isn't set for other event
--   types.</li>
--   <li><a>heWorkflowExecutionTerminatedEventAttributes</a> - If the event
--   is of type <tt>WorkflowExecutionTerminated</tt> then this member is
--   set and provides detailed information about the event. It isn't set
--   for other event types.</li>
--   <li><a>heChildWorkflowExecutionCanceledEventAttributes</a> - If the
--   event is of type <tt>ChildWorkflowExecutionCanceled</tt> then this
--   member is set and provides detailed information about the event. It
--   isn't set for other event types.</li>
--   <li><a>heRequestCancelActivityTaskFailedEventAttributes</a> - If the
--   event is of type <tt>RequestCancelActivityTaskFailed</tt> then this
--   member is set and provides detailed information about the event. It
--   isn't set for other event types.</li>
--   <li><a>heLambdaFunctionScheduledEventAttributes</a> - Provides the
--   details of the <tt>LambdaFunctionScheduled</tt> event. It isn't set
--   for other event types.</li>
--   <li><a>heChildWorkflowExecutionTimedOutEventAttributes</a> - If the
--   event is of type <tt>ChildWorkflowExecutionTimedOut</tt> then this
--   member is set and provides detailed information about the event. It
--   isn't set for other event types.</li>
--   <li><a>heCancelWorkflowExecutionFailedEventAttributes</a> - If the
--   event is of type <tt>CancelWorkflowExecutionFailed</tt> then this
--   member is set and provides detailed information about the event. It
--   isn't set for other event types.</li>
--   <li><a>heStartChildWorkflowExecutionInitiatedEventAttributes</a> - If
--   the event is of type <tt>StartChildWorkflowExecutionInitiated</tt>
--   then this member is set and provides detailed information about the
--   event. It isn't set for other event types.</li>
--   <li><a>heSignalExternalWorkflowExecutionFailedEventAttributes</a> - If
--   the event is of type <tt>SignalExternalWorkflowExecutionFailed</tt>
--   then this member is set and provides detailed information about the
--   event. It isn't set for other event types.</li>
--   <li><a>heActivityTaskStartedEventAttributes</a> - If the event is of
--   type <tt>ActivityTaskStarted</tt> then this member is set and provides
--   detailed information about the event. It isn't set for other event
--   types.</li>
--   <li><a>heStartLambdaFunctionFailedEventAttributes</a> - Provides the
--   details of the <tt>StartLambdaFunctionFailed</tt> event. It isn't set
--   for other event types.</li>
--   <li><a>heChildWorkflowExecutionTerminatedEventAttributes</a> - If the
--   event is of type <tt>ChildWorkflowExecutionTerminated</tt> then this
--   member is set and provides detailed information about the event. It
--   isn't set for other event types.</li>
--   <li><a>heLambdaFunctionFailedEventAttributes</a> - Provides the
--   details of the <tt>LambdaFunctionFailed</tt> event. It isn't set for
--   other event types.</li>
--   <li><a>heWorkflowExecutionCanceledEventAttributes</a> - If the event
--   is of type <tt>WorkflowExecutionCanceled</tt> then this member is set
--   and provides detailed information about the event. It isn't set for
--   other event types.</li>
--   <li><a>heTimerStartedEventAttributes</a> - If the event is of type
--   <tt>TimerStarted</tt> then this member is set and provides detailed
--   information about the event. It isn't set for other event types.</li>
--   <li><a>heActivityTaskCancelRequestedEventAttributes</a> - If the event
--   is of type <tt>ActivityTaskcancelRequested</tt> then this member is
--   set and provides detailed information about the event. It isn't set
--   for other event types.</li>
--   <li><a>heWorkflowExecutionTimedOutEventAttributes</a> - If the event
--   is of type <tt>WorkflowExecutionTimedOut</tt> then this member is set
--   and provides detailed information about the event. It isn't set for
--   other event types.</li>
--   <li><a>heWorkflowExecutionSignaledEventAttributes</a> - If the event
--   is of type <tt>WorkflowExecutionSignaled</tt> then this member is set
--   and provides detailed information about the event. It isn't set for
--   other event types.</li>
--   <li><a>heTimerFiredEventAttributes</a> - If the event is of type
--   <tt>TimerFired</tt> then this member is set and provides detailed
--   information about the event. It isn't set for other event types.</li>
--   <li><a>heActivityTaskFailedEventAttributes</a> - If the event is of
--   type <tt>ActivityTaskFailed</tt> then this member is set and provides
--   detailed information about the event. It isn't set for other event
--   types.</li>
--   <li><a>heExternalWorkflowExecutionSignaledEventAttributes</a> - If the
--   event is of type <tt>ExternalWorkflowExecutionSignaled</tt> then this
--   member is set and provides detailed information about the event. It
--   isn't set for other event types.</li>
--   <li><a>heDecisionTaskCompletedEventAttributes</a> - If the event is of
--   type <tt>DecisionTaskCompleted</tt> then this member is set and
--   provides detailed information about the event. It isn't set for other
--   event types.</li>
--   <li><a>heStartChildWorkflowExecutionFailedEventAttributes</a> - If the
--   event is of type <tt>StartChildWorkflowExecutionFailed</tt> then this
--   member is set and provides detailed information about the event. It
--   isn't set for other event types.</li>
--   <li><a>heChildWorkflowExecutionFailedEventAttributes</a> - If the
--   event is of type <tt>ChildWorkflowExecutionFailed</tt> then this
--   member is set and provides detailed information about the event. It
--   isn't set for other event types.</li>
--   <li><a>heFailWorkflowExecutionFailedEventAttributes</a> - If the event
--   is of type <tt>FailWorkflowExecutionFailed</tt> then this member is
--   set and provides detailed information about the event. It isn't set
--   for other event types.</li>
--   <li><a>heContinueAsNewWorkflowExecutionFailedEventAttributes</a> - If
--   the event is of type <tt>ContinueAsNewWorkflowExecutionFailed</tt>
--   then this member is set and provides detailed information about the
--   event. It isn't set for other event types.</li>
--   <li><a>heSignalExternalWorkflowExecutionInitiatedEventAttributes</a> -
--   If the event is of type
--   <tt>SignalExternalWorkflowExecutionInitiated</tt> then this member is
--   set and provides detailed information about the event. It isn't set
--   for other event types.</li>
--   <li><a>heLambdaFunctionTimedOutEventAttributes</a> - Provides the
--   details of the <tt>LambdaFunctionTimedOut</tt> event. It isn't set for
--   other event types.</li>
--   <li><a>heWorkflowExecutionFailedEventAttributes</a> - If the event is
--   of type <tt>WorkflowExecutionFailed</tt> then this member is set and
--   provides detailed information about the event. It isn't set for other
--   event types.</li>
--   <li><a>heWorkflowExecutionContinuedAsNewEventAttributes</a> - If the
--   event is of type <tt>WorkflowExecutionContinuedAsNew</tt> then this
--   member is set and provides detailed information about the event. It
--   isn't set for other event types.</li>
--   <li><a>heExternalWorkflowExecutionCancelRequestedEventAttributes</a> -
--   If the event is of type
--   <tt>ExternalWorkflowExecutionCancelRequested</tt> then this member is
--   set and provides detailed information about the event. It isn't set
--   for other event types.</li>
--   <li><a>heEventTimestamp</a> - The date and time when the event
--   occurred.</li>
--   <li><a>heEventType</a> - The type of the history event.</li>
--   <li><a>heEventId</a> - The system generated ID of the event. This ID
--   uniquely identifies the event with in the workflow execution
--   history.</li>
--   </ul>
historyEvent :: UTCTime -> EventType -> Integer -> HistoryEvent

-- | If the event is of type <tt>WorkflowExecutionCancelRequested</tt> then
--   this member is set and provides detailed information about the event.
--   It isn't set for other event types.
heWorkflowExecutionCancelRequestedEventAttributes :: Lens' HistoryEvent (Maybe WorkflowExecutionCancelRequestedEventAttributes)

-- | If the event is of type <tt>DecisionTaskFailed</tt> then this member
--   is set and provides detailed information about the event. It isn't set
--   for other event types.
heRecordMarkerFailedEventAttributes :: Lens' HistoryEvent (Maybe RecordMarkerFailedEventAttributes)

-- | If the event is of type
--   <tt>RequestCancelExternalWorkflowExecutionInitiated</tt> then this
--   member is set and provides detailed information about the event. It
--   isn't set for other event types.
heRequestCancelExternalWorkflowExecutionInitiatedEventAttributes :: Lens' HistoryEvent (Maybe RequestCancelExternalWorkflowExecutionInitiatedEventAttributes)

-- | Provides the details of the <tt>LambdaFunctionStarted</tt> event. It
--   isn't set for other event types.
heLambdaFunctionStartedEventAttributes :: Lens' HistoryEvent (Maybe LambdaFunctionStartedEventAttributes)

-- | If the event is of type <tt>DecisionTaskScheduled</tt> then this
--   member is set and provides detailed information about the event. It
--   isn't set for other event types.
heDecisionTaskScheduledEventAttributes :: Lens' HistoryEvent (Maybe DecisionTaskScheduledEventAttributes)

-- | If the event is of type <tt>WorkflowExecutionCompleted</tt> then this
--   member is set and provides detailed information about the event. It
--   isn't set for other event types.
heWorkflowExecutionCompletedEventAttributes :: Lens' HistoryEvent (Maybe WorkflowExecutionCompletedEventAttributes)

-- | If the event is of type <tt>StartTimerFailed</tt> then this member is
--   set and provides detailed information about the event. It isn't set
--   for other event types.
heStartTimerFailedEventAttributes :: Lens' HistoryEvent (Maybe StartTimerFailedEventAttributes)

-- | If the event is of type <tt>ActivityTaskScheduled</tt> then this
--   member is set and provides detailed information about the event. It
--   isn't set for other event types.
heActivityTaskScheduledEventAttributes :: Lens' HistoryEvent (Maybe ActivityTaskScheduledEventAttributes)

-- | If the event is of type <tt>ScheduleActivityTaskFailed</tt> then this
--   member is set and provides detailed information about the event. It
--   isn't set for other event types.
heScheduleActivityTaskFailedEventAttributes :: Lens' HistoryEvent (Maybe ScheduleActivityTaskFailedEventAttributes)

-- | If the event is of type <tt>ChildWorkflowExecutionCompleted</tt> then
--   this member is set and provides detailed information about the event.
--   It isn't set for other event types.
heChildWorkflowExecutionCompletedEventAttributes :: Lens' HistoryEvent (Maybe ChildWorkflowExecutionCompletedEventAttributes)

-- | If the event is of type <tt>MarkerRecorded</tt> then this member is
--   set and provides detailed information about the event. It isn't set
--   for other event types.
heMarkerRecordedEventAttributes :: Lens' HistoryEvent (Maybe MarkerRecordedEventAttributes)

-- | Provides the details of the <tt>ScheduleLambdaFunctionFailed</tt>
--   event. It isn't set for other event types.
heScheduleLambdaFunctionFailedEventAttributes :: Lens' HistoryEvent (Maybe ScheduleLambdaFunctionFailedEventAttributes)

-- | If the event is of type <tt>CompleteWorkflowExecutionFailed</tt> then
--   this member is set and provides detailed information about the event.
--   It isn't set for other event types.
heCompleteWorkflowExecutionFailedEventAttributes :: Lens' HistoryEvent (Maybe CompleteWorkflowExecutionFailedEventAttributes)

-- | Provides the details of the <tt>LambdaFunctionCompleted</tt> event. It
--   isn't set for other event types.
heLambdaFunctionCompletedEventAttributes :: Lens' HistoryEvent (Maybe LambdaFunctionCompletedEventAttributes)

-- | If the event is of type
--   <tt>RequestCancelExternalWorkflowExecutionFailed</tt> then this member
--   is set and provides detailed information about the event. It isn't set
--   for other event types.
heRequestCancelExternalWorkflowExecutionFailedEventAttributes :: Lens' HistoryEvent (Maybe RequestCancelExternalWorkflowExecutionFailedEventAttributes)

-- | If the event is of type <tt>TimerCanceled</tt> then this member is set
--   and provides detailed information about the event. It isn't set for
--   other event types.
heTimerCanceledEventAttributes :: Lens' HistoryEvent (Maybe TimerCanceledEventAttributes)

-- | If the event is of type <tt>WorkflowExecutionStarted</tt> then this
--   member is set and provides detailed information about the event. It
--   isn't set for other event types.
heWorkflowExecutionStartedEventAttributes :: Lens' HistoryEvent (Maybe WorkflowExecutionStartedEventAttributes)

-- | If the event is of type <tt>ActivityTaskCompleted</tt> then this
--   member is set and provides detailed information about the event. It
--   isn't set for other event types.
heActivityTaskCompletedEventAttributes :: Lens' HistoryEvent (Maybe ActivityTaskCompletedEventAttributes)

-- | If the event is of type <tt>DecisionTaskTimedOut</tt> then this member
--   is set and provides detailed information about the event. It isn't set
--   for other event types.
heDecisionTaskTimedOutEventAttributes :: Lens' HistoryEvent (Maybe DecisionTaskTimedOutEventAttributes)

-- | If the event is of type <tt>CancelTimerFailed</tt> then this member is
--   set and provides detailed information about the event. It isn't set
--   for other event types.
heCancelTimerFailedEventAttributes :: Lens' HistoryEvent (Maybe CancelTimerFailedEventAttributes)

-- | If the event is of type <tt>ChildWorkflowExecutionStarted</tt> then
--   this member is set and provides detailed information about the event.
--   It isn't set for other event types.
heChildWorkflowExecutionStartedEventAttributes :: Lens' HistoryEvent (Maybe ChildWorkflowExecutionStartedEventAttributes)

-- | If the event is of type <tt>ActivityTaskCanceled</tt> then this member
--   is set and provides detailed information about the event. It isn't set
--   for other event types.
heActivityTaskCanceledEventAttributes :: Lens' HistoryEvent (Maybe ActivityTaskCanceledEventAttributes)

-- | If the event is of type <tt>ActivityTaskTimedOut</tt> then this member
--   is set and provides detailed information about the event. It isn't set
--   for other event types.
heActivityTaskTimedOutEventAttributes :: Lens' HistoryEvent (Maybe ActivityTaskTimedOutEventAttributes)

-- | If the event is of type <tt>DecisionTaskStarted</tt> then this member
--   is set and provides detailed information about the event. It isn't set
--   for other event types.
heDecisionTaskStartedEventAttributes :: Lens' HistoryEvent (Maybe DecisionTaskStartedEventAttributes)

-- | If the event is of type <tt>WorkflowExecutionTerminated</tt> then this
--   member is set and provides detailed information about the event. It
--   isn't set for other event types.
heWorkflowExecutionTerminatedEventAttributes :: Lens' HistoryEvent (Maybe WorkflowExecutionTerminatedEventAttributes)

-- | If the event is of type <tt>ChildWorkflowExecutionCanceled</tt> then
--   this member is set and provides detailed information about the event.
--   It isn't set for other event types.
heChildWorkflowExecutionCanceledEventAttributes :: Lens' HistoryEvent (Maybe ChildWorkflowExecutionCanceledEventAttributes)

-- | If the event is of type <tt>RequestCancelActivityTaskFailed</tt> then
--   this member is set and provides detailed information about the event.
--   It isn't set for other event types.
heRequestCancelActivityTaskFailedEventAttributes :: Lens' HistoryEvent (Maybe RequestCancelActivityTaskFailedEventAttributes)

-- | Provides the details of the <tt>LambdaFunctionScheduled</tt> event. It
--   isn't set for other event types.
heLambdaFunctionScheduledEventAttributes :: Lens' HistoryEvent (Maybe LambdaFunctionScheduledEventAttributes)

-- | If the event is of type <tt>ChildWorkflowExecutionTimedOut</tt> then
--   this member is set and provides detailed information about the event.
--   It isn't set for other event types.
heChildWorkflowExecutionTimedOutEventAttributes :: Lens' HistoryEvent (Maybe ChildWorkflowExecutionTimedOutEventAttributes)

-- | If the event is of type <tt>CancelWorkflowExecutionFailed</tt> then
--   this member is set and provides detailed information about the event.
--   It isn't set for other event types.
heCancelWorkflowExecutionFailedEventAttributes :: Lens' HistoryEvent (Maybe CancelWorkflowExecutionFailedEventAttributes)

-- | If the event is of type <tt>StartChildWorkflowExecutionInitiated</tt>
--   then this member is set and provides detailed information about the
--   event. It isn't set for other event types.
heStartChildWorkflowExecutionInitiatedEventAttributes :: Lens' HistoryEvent (Maybe StartChildWorkflowExecutionInitiatedEventAttributes)

-- | If the event is of type <tt>SignalExternalWorkflowExecutionFailed</tt>
--   then this member is set and provides detailed information about the
--   event. It isn't set for other event types.
heSignalExternalWorkflowExecutionFailedEventAttributes :: Lens' HistoryEvent (Maybe SignalExternalWorkflowExecutionFailedEventAttributes)

-- | If the event is of type <tt>ActivityTaskStarted</tt> then this member
--   is set and provides detailed information about the event. It isn't set
--   for other event types.
heActivityTaskStartedEventAttributes :: Lens' HistoryEvent (Maybe ActivityTaskStartedEventAttributes)

-- | Provides the details of the <tt>StartLambdaFunctionFailed</tt> event.
--   It isn't set for other event types.
heStartLambdaFunctionFailedEventAttributes :: Lens' HistoryEvent (Maybe StartLambdaFunctionFailedEventAttributes)

-- | If the event is of type <tt>ChildWorkflowExecutionTerminated</tt> then
--   this member is set and provides detailed information about the event.
--   It isn't set for other event types.
heChildWorkflowExecutionTerminatedEventAttributes :: Lens' HistoryEvent (Maybe ChildWorkflowExecutionTerminatedEventAttributes)

-- | Provides the details of the <tt>LambdaFunctionFailed</tt> event. It
--   isn't set for other event types.
heLambdaFunctionFailedEventAttributes :: Lens' HistoryEvent (Maybe LambdaFunctionFailedEventAttributes)

-- | If the event is of type <tt>WorkflowExecutionCanceled</tt> then this
--   member is set and provides detailed information about the event. It
--   isn't set for other event types.
heWorkflowExecutionCanceledEventAttributes :: Lens' HistoryEvent (Maybe WorkflowExecutionCanceledEventAttributes)

-- | If the event is of type <tt>TimerStarted</tt> then this member is set
--   and provides detailed information about the event. It isn't set for
--   other event types.
heTimerStartedEventAttributes :: Lens' HistoryEvent (Maybe TimerStartedEventAttributes)

-- | If the event is of type <tt>ActivityTaskcancelRequested</tt> then this
--   member is set and provides detailed information about the event. It
--   isn't set for other event types.
heActivityTaskCancelRequestedEventAttributes :: Lens' HistoryEvent (Maybe ActivityTaskCancelRequestedEventAttributes)

-- | If the event is of type <tt>WorkflowExecutionTimedOut</tt> then this
--   member is set and provides detailed information about the event. It
--   isn't set for other event types.
heWorkflowExecutionTimedOutEventAttributes :: Lens' HistoryEvent (Maybe WorkflowExecutionTimedOutEventAttributes)

-- | If the event is of type <tt>WorkflowExecutionSignaled</tt> then this
--   member is set and provides detailed information about the event. It
--   isn't set for other event types.
heWorkflowExecutionSignaledEventAttributes :: Lens' HistoryEvent (Maybe WorkflowExecutionSignaledEventAttributes)

-- | If the event is of type <tt>TimerFired</tt> then this member is set
--   and provides detailed information about the event. It isn't set for
--   other event types.
heTimerFiredEventAttributes :: Lens' HistoryEvent (Maybe TimerFiredEventAttributes)

-- | If the event is of type <tt>ActivityTaskFailed</tt> then this member
--   is set and provides detailed information about the event. It isn't set
--   for other event types.
heActivityTaskFailedEventAttributes :: Lens' HistoryEvent (Maybe ActivityTaskFailedEventAttributes)

-- | If the event is of type <tt>ExternalWorkflowExecutionSignaled</tt>
--   then this member is set and provides detailed information about the
--   event. It isn't set for other event types.
heExternalWorkflowExecutionSignaledEventAttributes :: Lens' HistoryEvent (Maybe ExternalWorkflowExecutionSignaledEventAttributes)

-- | If the event is of type <tt>DecisionTaskCompleted</tt> then this
--   member is set and provides detailed information about the event. It
--   isn't set for other event types.
heDecisionTaskCompletedEventAttributes :: Lens' HistoryEvent (Maybe DecisionTaskCompletedEventAttributes)

-- | If the event is of type <tt>StartChildWorkflowExecutionFailed</tt>
--   then this member is set and provides detailed information about the
--   event. It isn't set for other event types.
heStartChildWorkflowExecutionFailedEventAttributes :: Lens' HistoryEvent (Maybe StartChildWorkflowExecutionFailedEventAttributes)

-- | If the event is of type <tt>ChildWorkflowExecutionFailed</tt> then
--   this member is set and provides detailed information about the event.
--   It isn't set for other event types.
heChildWorkflowExecutionFailedEventAttributes :: Lens' HistoryEvent (Maybe ChildWorkflowExecutionFailedEventAttributes)

-- | If the event is of type <tt>FailWorkflowExecutionFailed</tt> then this
--   member is set and provides detailed information about the event. It
--   isn't set for other event types.
heFailWorkflowExecutionFailedEventAttributes :: Lens' HistoryEvent (Maybe FailWorkflowExecutionFailedEventAttributes)

-- | If the event is of type <tt>ContinueAsNewWorkflowExecutionFailed</tt>
--   then this member is set and provides detailed information about the
--   event. It isn't set for other event types.
heContinueAsNewWorkflowExecutionFailedEventAttributes :: Lens' HistoryEvent (Maybe ContinueAsNewWorkflowExecutionFailedEventAttributes)

-- | If the event is of type
--   <tt>SignalExternalWorkflowExecutionInitiated</tt> then this member is
--   set and provides detailed information about the event. It isn't set
--   for other event types.
heSignalExternalWorkflowExecutionInitiatedEventAttributes :: Lens' HistoryEvent (Maybe SignalExternalWorkflowExecutionInitiatedEventAttributes)

-- | Provides the details of the <tt>LambdaFunctionTimedOut</tt> event. It
--   isn't set for other event types.
heLambdaFunctionTimedOutEventAttributes :: Lens' HistoryEvent (Maybe LambdaFunctionTimedOutEventAttributes)

-- | If the event is of type <tt>WorkflowExecutionFailed</tt> then this
--   member is set and provides detailed information about the event. It
--   isn't set for other event types.
heWorkflowExecutionFailedEventAttributes :: Lens' HistoryEvent (Maybe WorkflowExecutionFailedEventAttributes)

-- | If the event is of type <tt>WorkflowExecutionContinuedAsNew</tt> then
--   this member is set and provides detailed information about the event.
--   It isn't set for other event types.
heWorkflowExecutionContinuedAsNewEventAttributes :: Lens' HistoryEvent (Maybe WorkflowExecutionContinuedAsNewEventAttributes)

-- | If the event is of type
--   <tt>ExternalWorkflowExecutionCancelRequested</tt> then this member is
--   set and provides detailed information about the event. It isn't set
--   for other event types.
heExternalWorkflowExecutionCancelRequestedEventAttributes :: Lens' HistoryEvent (Maybe ExternalWorkflowExecutionCancelRequestedEventAttributes)

-- | The date and time when the event occurred.
heEventTimestamp :: Lens' HistoryEvent UTCTime

-- | The type of the history event.
heEventType :: Lens' HistoryEvent EventType

-- | The system generated ID of the event. This ID uniquely identifies the
--   event with in the workflow execution history.
heEventId :: Lens' HistoryEvent Integer

-- | Provides the details of the <tt>LambdaFunctionCompleted</tt> event. It
--   isn't set for other event types.
--   
--   <i>See:</i> <a>lambdaFunctionCompletedEventAttributes</a> smart
--   constructor.
data LambdaFunctionCompletedEventAttributes

-- | Creates a value of <a>LambdaFunctionCompletedEventAttributes</a> with
--   the minimum fields required to make a request.
--   
--   Use one of the following lenses to modify other fields as desired:
--   
--   <ul>
--   <li><a>lfceaResult</a> - The results of the Lambda task.</li>
--   <li><a>lfceaScheduledEventId</a> - The ID of the
--   <tt>LambdaFunctionScheduled</tt> event that was recorded when this
--   Lambda task was scheduled. To help diagnose issues, use this
--   information to trace back the chain of events leading up to this
--   event.</li>
--   <li><a>lfceaStartedEventId</a> - The ID of the
--   <tt>LambdaFunctionStarted</tt> event recorded when this activity task
--   started. To help diagnose issues, use this information to trace back
--   the chain of events leading up to this event.</li>
--   </ul>
lambdaFunctionCompletedEventAttributes :: Integer -> Integer -> LambdaFunctionCompletedEventAttributes

-- | The results of the Lambda task.
lfceaResult :: Lens' LambdaFunctionCompletedEventAttributes (Maybe Text)

-- | The ID of the <tt>LambdaFunctionScheduled</tt> event that was recorded
--   when this Lambda task was scheduled. To help diagnose issues, use this
--   information to trace back the chain of events leading up to this
--   event.
lfceaScheduledEventId :: Lens' LambdaFunctionCompletedEventAttributes Integer

-- | The ID of the <tt>LambdaFunctionStarted</tt> event recorded when this
--   activity task started. To help diagnose issues, use this information
--   to trace back the chain of events leading up to this event.
lfceaStartedEventId :: Lens' LambdaFunctionCompletedEventAttributes Integer

-- | Provides the details of the <tt>LambdaFunctionFailed</tt> event. It
--   isn't set for other event types.
--   
--   <i>See:</i> <a>lambdaFunctionFailedEventAttributes</a> smart
--   constructor.
data LambdaFunctionFailedEventAttributes

-- | Creates a value of <a>LambdaFunctionFailedEventAttributes</a> with the
--   minimum fields required to make a request.
--   
--   Use one of the following lenses to modify other fields as desired:
--   
--   <ul>
--   <li><a>lffeaReason</a> - The reason provided for the failure.</li>
--   <li><a>lffeaDetails</a> - The details of the failure.</li>
--   <li><a>lffeaScheduledEventId</a> - The ID of the
--   <tt>LambdaFunctionScheduled</tt> event that was recorded when this
--   activity task was scheduled. To help diagnose issues, use this
--   information to trace back the chain of events leading up to this
--   event.</li>
--   <li><a>lffeaStartedEventId</a> - The ID of the
--   <tt>LambdaFunctionStarted</tt> event recorded when this activity task
--   started. To help diagnose issues, use this information to trace back
--   the chain of events leading up to this event.</li>
--   </ul>
lambdaFunctionFailedEventAttributes :: Integer -> Integer -> LambdaFunctionFailedEventAttributes

-- | The reason provided for the failure.
lffeaReason :: Lens' LambdaFunctionFailedEventAttributes (Maybe Text)

-- | The details of the failure.
lffeaDetails :: Lens' LambdaFunctionFailedEventAttributes (Maybe Text)

-- | The ID of the <tt>LambdaFunctionScheduled</tt> event that was recorded
--   when this activity task was scheduled. To help diagnose issues, use
--   this information to trace back the chain of events leading up to this
--   event.
lffeaScheduledEventId :: Lens' LambdaFunctionFailedEventAttributes Integer

-- | The ID of the <tt>LambdaFunctionStarted</tt> event recorded when this
--   activity task started. To help diagnose issues, use this information
--   to trace back the chain of events leading up to this event.
lffeaStartedEventId :: Lens' LambdaFunctionFailedEventAttributes Integer

-- | Provides the details of the <tt>LambdaFunctionScheduled</tt> event. It
--   isn't set for other event types.
--   
--   <i>See:</i> <a>lambdaFunctionScheduledEventAttributes</a> smart
--   constructor.
data LambdaFunctionScheduledEventAttributes

-- | Creates a value of <a>LambdaFunctionScheduledEventAttributes</a> with
--   the minimum fields required to make a request.
--   
--   Use one of the following lenses to modify other fields as desired:
--   
--   <ul>
--   <li><a>lfseaControl</a> - Data attached to the event that the decider
--   can use in subsequent workflow tasks. This data isn't sent to the
--   Lambda task.</li>
--   <li><a>lfseaInput</a> - The input provided to the Lambda task.</li>
--   <li><a>lfseaStartToCloseTimeout</a> - The maximum amount of time a
--   worker can take to process the Lambda task.</li>
--   <li><a>lfseaId</a> - The unique ID of the Lambda task.</li>
--   <li><a>lfseaName</a> - The name of the Lambda function.</li>
--   <li><a>lfseaDecisionTaskCompletedEventId</a> - The ID of the
--   <tt>LambdaFunctionCompleted</tt> event corresponding to the decision
--   that resulted in scheduling this activity task. To help diagnose
--   issues, use this information to trace back the chain of events leading
--   up to this event.</li>
--   </ul>
lambdaFunctionScheduledEventAttributes :: Text -> Text -> Integer -> LambdaFunctionScheduledEventAttributes

-- | Data attached to the event that the decider can use in subsequent
--   workflow tasks. This data isn't sent to the Lambda task.
lfseaControl :: Lens' LambdaFunctionScheduledEventAttributes (Maybe Text)

-- | The input provided to the Lambda task.
lfseaInput :: Lens' LambdaFunctionScheduledEventAttributes (Maybe Text)

-- | The maximum amount of time a worker can take to process the Lambda
--   task.
lfseaStartToCloseTimeout :: Lens' LambdaFunctionScheduledEventAttributes (Maybe Text)

-- | The unique ID of the Lambda task.
lfseaId :: Lens' LambdaFunctionScheduledEventAttributes Text

-- | The name of the Lambda function.
lfseaName :: Lens' LambdaFunctionScheduledEventAttributes Text

-- | The ID of the <tt>LambdaFunctionCompleted</tt> event corresponding to
--   the decision that resulted in scheduling this activity task. To help
--   diagnose issues, use this information to trace back the chain of
--   events leading up to this event.
lfseaDecisionTaskCompletedEventId :: Lens' LambdaFunctionScheduledEventAttributes Integer

-- | Provides the details of the <tt>LambdaFunctionStarted</tt> event. It
--   isn't set for other event types.
--   
--   <i>See:</i> <a>lambdaFunctionStartedEventAttributes</a> smart
--   constructor.
data LambdaFunctionStartedEventAttributes

-- | Creates a value of <a>LambdaFunctionStartedEventAttributes</a> with
--   the minimum fields required to make a request.
--   
--   Use one of the following lenses to modify other fields as desired:
--   
--   <ul>
--   <li><a>lfseaScheduledEventId</a> - The ID of the
--   <tt>LambdaFunctionScheduled</tt> event that was recorded when this
--   activity task was scheduled. To help diagnose issues, use this
--   information to trace back the chain of events leading up to this
--   event.</li>
--   </ul>
lambdaFunctionStartedEventAttributes :: Integer -> LambdaFunctionStartedEventAttributes

-- | The ID of the <tt>LambdaFunctionScheduled</tt> event that was recorded
--   when this activity task was scheduled. To help diagnose issues, use
--   this information to trace back the chain of events leading up to this
--   event.
lfseaScheduledEventId :: Lens' LambdaFunctionStartedEventAttributes Integer

-- | Provides details of the <tt>LambdaFunctionTimedOut</tt> event.
--   
--   <i>See:</i> <a>lambdaFunctionTimedOutEventAttributes</a> smart
--   constructor.
data LambdaFunctionTimedOutEventAttributes

-- | Creates a value of <a>LambdaFunctionTimedOutEventAttributes</a> with
--   the minimum fields required to make a request.
--   
--   Use one of the following lenses to modify other fields as desired:
--   
--   <ul>
--   <li><a>lftoeaTimeoutType</a> - The type of the timeout that caused
--   this event.</li>
--   <li><a>lftoeaScheduledEventId</a> - The ID of the
--   <tt>LambdaFunctionScheduled</tt> event that was recorded when this
--   activity task was scheduled. To help diagnose issues, use this
--   information to trace back the chain of events leading up to this
--   event.</li>
--   <li><a>lftoeaStartedEventId</a> - The ID of the
--   <tt>ActivityTaskStarted</tt> event that was recorded when this
--   activity task started. To help diagnose issues, use this information
--   to trace back the chain of events leading up to this event.</li>
--   </ul>
lambdaFunctionTimedOutEventAttributes :: Integer -> Integer -> LambdaFunctionTimedOutEventAttributes

-- | The type of the timeout that caused this event.
lftoeaTimeoutType :: Lens' LambdaFunctionTimedOutEventAttributes (Maybe LambdaFunctionTimeoutType)

-- | The ID of the <tt>LambdaFunctionScheduled</tt> event that was recorded
--   when this activity task was scheduled. To help diagnose issues, use
--   this information to trace back the chain of events leading up to this
--   event.
lftoeaScheduledEventId :: Lens' LambdaFunctionTimedOutEventAttributes Integer

-- | The ID of the <tt>ActivityTaskStarted</tt> event that was recorded
--   when this activity task started. To help diagnose issues, use this
--   information to trace back the chain of events leading up to this
--   event.
lftoeaStartedEventId :: Lens' LambdaFunctionTimedOutEventAttributes Integer

-- | Provides the details of the <tt>MarkerRecorded</tt> event.
--   
--   <i>See:</i> <a>markerRecordedEventAttributes</a> smart constructor.
data MarkerRecordedEventAttributes

-- | Creates a value of <a>MarkerRecordedEventAttributes</a> with the
--   minimum fields required to make a request.
--   
--   Use one of the following lenses to modify other fields as desired:
--   
--   <ul>
--   <li><a>mreaDetails</a> - The details of the marker.</li>
--   <li><a>mreaMarkerName</a> - The name of the marker.</li>
--   <li><a>mreaDecisionTaskCompletedEventId</a> - The ID of the
--   <tt>DecisionTaskCompleted</tt> event corresponding to the decision
--   task that resulted in the <tt>RecordMarker</tt> decision that
--   requested this marker. This information can be useful for diagnosing
--   problems by tracing back the chain of events leading up to this
--   event.</li>
--   </ul>
markerRecordedEventAttributes :: Text -> Integer -> MarkerRecordedEventAttributes

-- | The details of the marker.
mreaDetails :: Lens' MarkerRecordedEventAttributes (Maybe Text)

-- | The name of the marker.
mreaMarkerName :: Lens' MarkerRecordedEventAttributes Text

-- | The ID of the <tt>DecisionTaskCompleted</tt> event corresponding to
--   the decision task that resulted in the <tt>RecordMarker</tt> decision
--   that requested this marker. This information can be useful for
--   diagnosing problems by tracing back the chain of events leading up to
--   this event.
mreaDecisionTaskCompletedEventId :: Lens' MarkerRecordedEventAttributes Integer

-- | Contains the count of tasks in a task list.
--   
--   <i>See:</i> <a>pendingTaskCount</a> smart constructor.
data PendingTaskCount

-- | Creates a value of <a>PendingTaskCount</a> with the minimum fields
--   required to make a request.
--   
--   Use one of the following lenses to modify other fields as desired:
--   
--   <ul>
--   <li><a>ptcTruncated</a> - If set to true, indicates that the actual
--   count was more than the maximum supported by this API and the count
--   returned is the truncated value.</li>
--   <li><a>ptcCount</a> - The number of tasks in the task list.</li>
--   </ul>
pendingTaskCount :: Natural -> PendingTaskCount

-- | If set to true, indicates that the actual count was more than the
--   maximum supported by this API and the count returned is the truncated
--   value.
ptcTruncated :: Lens' PendingTaskCount (Maybe Bool)

-- | The number of tasks in the task list.
ptcCount :: Lens' PendingTaskCount Natural

-- | Provides the details of the <tt>RecordMarker</tt> decision.
--   
--   <b>Access Control</b>
--   
--   You can use IAM policies to control this decision's access to Amazon
--   SWF resources as follows:
--   
--   <ul>
--   <li>Use a <tt>Resource</tt> element with the domain name to limit the
--   action to only specified domains.</li>
--   <li>Use an <tt>Action</tt> element to allow or deny permission to call
--   this action.</li>
--   <li>You cannot use an IAM policy to constrain this action's
--   parameters.</li>
--   </ul>
--   
--   If the caller doesn't have sufficient permissions to invoke the
--   action, or the parameter values fall outside the specified
--   constraints, the action fails. The associated event attribute's
--   <tt>cause</tt> parameter is set to <tt>OPERATION_NOT_PERMITTED</tt> .
--   For details and example IAM policies, see <a>Using IAM to Manage
--   Access to Amazon SWF Workflows</a> in the <i>Amazon SWF Developer
--   Guide</i> .
--   
--   <i>See:</i> <a>recordMarkerDecisionAttributes</a> smart constructor.
data RecordMarkerDecisionAttributes

-- | Creates a value of <a>RecordMarkerDecisionAttributes</a> with the
--   minimum fields required to make a request.
--   
--   Use one of the following lenses to modify other fields as desired:
--   
--   <ul>
--   <li><a>rmdaDetails</a> - The details of the marker.</li>
--   <li><a>rmdaMarkerName</a> - The name of the marker.</li>
--   </ul>
recordMarkerDecisionAttributes :: Text -> RecordMarkerDecisionAttributes

-- | The details of the marker.
rmdaDetails :: Lens' RecordMarkerDecisionAttributes (Maybe Text)

-- | The name of the marker.
rmdaMarkerName :: Lens' RecordMarkerDecisionAttributes Text

-- | Provides the details of the <tt>RecordMarkerFailed</tt> event.
--   
--   <i>See:</i> <a>recordMarkerFailedEventAttributes</a> smart
--   constructor.
data RecordMarkerFailedEventAttributes

-- | Creates a value of <a>RecordMarkerFailedEventAttributes</a> with the
--   minimum fields required to make a request.
--   
--   Use one of the following lenses to modify other fields as desired:
--   
--   <ul>
--   <li><a>rmfeaMarkerName</a> - The marker's name.</li>
--   <li><a>rmfeaCause</a> - The cause of the failure. This information is
--   generated by the system and can be useful for diagnostic
--   purposes.</li>
--   <li><a>rmfeaDecisionTaskCompletedEventId</a> - The ID of the
--   <tt>DecisionTaskCompleted</tt> event corresponding to the decision
--   task that resulted in the <tt>RecordMarkerFailed</tt> decision for
--   this cancellation request. This information can be useful for
--   diagnosing problems by tracing back the chain of events leading up to
--   this event.</li>
--   </ul>
recordMarkerFailedEventAttributes :: Text -> RecordMarkerFailedCause -> Integer -> RecordMarkerFailedEventAttributes

-- | The marker's name.
rmfeaMarkerName :: Lens' RecordMarkerFailedEventAttributes Text

-- | The cause of the failure. This information is generated by the system
--   and can be useful for diagnostic purposes.
rmfeaCause :: Lens' RecordMarkerFailedEventAttributes RecordMarkerFailedCause

-- | The ID of the <tt>DecisionTaskCompleted</tt> event corresponding to
--   the decision task that resulted in the <tt>RecordMarkerFailed</tt>
--   decision for this cancellation request. This information can be useful
--   for diagnosing problems by tracing back the chain of events leading up
--   to this event.
rmfeaDecisionTaskCompletedEventId :: Lens' RecordMarkerFailedEventAttributes Integer

-- | Provides the details of the <tt>RequestCancelActivityTask</tt>
--   decision.
--   
--   <b>Access Control</b>
--   
--   You can use IAM policies to control this decision's access to Amazon
--   SWF resources as follows:
--   
--   <ul>
--   <li>Use a <tt>Resource</tt> element with the domain name to limit the
--   action to only specified domains.</li>
--   <li>Use an <tt>Action</tt> element to allow or deny permission to call
--   this action.</li>
--   <li>You cannot use an IAM policy to constrain this action's
--   parameters.</li>
--   </ul>
--   
--   If the caller doesn't have sufficient permissions to invoke the
--   action, or the parameter values fall outside the specified
--   constraints, the action fails. The associated event attribute's
--   <tt>cause</tt> parameter is set to <tt>OPERATION_NOT_PERMITTED</tt> .
--   For details and example IAM policies, see <a>Using IAM to Manage
--   Access to Amazon SWF Workflows</a> in the <i>Amazon SWF Developer
--   Guide</i> .
--   
--   <i>See:</i> <a>requestCancelActivityTaskDecisionAttributes</a> smart
--   constructor.
data RequestCancelActivityTaskDecisionAttributes

-- | Creates a value of <a>RequestCancelActivityTaskDecisionAttributes</a>
--   with the minimum fields required to make a request.
--   
--   Use one of the following lenses to modify other fields as desired:
--   
--   <ul>
--   <li><a>rcatdaActivityId</a> - The <tt>activityId</tt> of the activity
--   task to be canceled.</li>
--   </ul>
requestCancelActivityTaskDecisionAttributes :: Text -> RequestCancelActivityTaskDecisionAttributes

-- | The <tt>activityId</tt> of the activity task to be canceled.
rcatdaActivityId :: Lens' RequestCancelActivityTaskDecisionAttributes Text

-- | Provides the details of the <tt>RequestCancelActivityTaskFailed</tt>
--   event.
--   
--   <i>See:</i> <a>requestCancelActivityTaskFailedEventAttributes</a>
--   smart constructor.
data RequestCancelActivityTaskFailedEventAttributes

-- | Creates a value of
--   <a>RequestCancelActivityTaskFailedEventAttributes</a> with the minimum
--   fields required to make a request.
--   
--   Use one of the following lenses to modify other fields as desired:
--   
--   <ul>
--   <li><a>rcatfeaActivityId</a> - The activityId provided in the
--   <tt>RequestCancelActivityTask</tt> decision that failed.</li>
--   <li><a>rcatfeaCause</a> - The cause of the failure. This information
--   is generated by the system and can be useful for diagnostic
--   purposes.</li>
--   <li><a>rcatfeaDecisionTaskCompletedEventId</a> - The ID of the
--   <tt>DecisionTaskCompleted</tt> event corresponding to the decision
--   task that resulted in the <tt>RequestCancelActivityTask</tt> decision
--   for this cancellation request. This information can be useful for
--   diagnosing problems by tracing back the chain of events leading up to
--   this event.</li>
--   </ul>
requestCancelActivityTaskFailedEventAttributes :: Text -> RequestCancelActivityTaskFailedCause -> Integer -> RequestCancelActivityTaskFailedEventAttributes

-- | The activityId provided in the <tt>RequestCancelActivityTask</tt>
--   decision that failed.
rcatfeaActivityId :: Lens' RequestCancelActivityTaskFailedEventAttributes Text

-- | The cause of the failure. This information is generated by the system
--   and can be useful for diagnostic purposes.
rcatfeaCause :: Lens' RequestCancelActivityTaskFailedEventAttributes RequestCancelActivityTaskFailedCause

-- | The ID of the <tt>DecisionTaskCompleted</tt> event corresponding to
--   the decision task that resulted in the
--   <tt>RequestCancelActivityTask</tt> decision for this cancellation
--   request. This information can be useful for diagnosing problems by
--   tracing back the chain of events leading up to this event.
rcatfeaDecisionTaskCompletedEventId :: Lens' RequestCancelActivityTaskFailedEventAttributes Integer

-- | Provides the details of the
--   <tt>RequestCancelExternalWorkflowExecution</tt> decision.
--   
--   <b>Access Control</b>
--   
--   You can use IAM policies to control this decision's access to Amazon
--   SWF resources as follows:
--   
--   <ul>
--   <li>Use a <tt>Resource</tt> element with the domain name to limit the
--   action to only specified domains.</li>
--   <li>Use an <tt>Action</tt> element to allow or deny permission to call
--   this action.</li>
--   <li>You cannot use an IAM policy to constrain this action's
--   parameters.</li>
--   </ul>
--   
--   If the caller doesn't have sufficient permissions to invoke the
--   action, or the parameter values fall outside the specified
--   constraints, the action fails. The associated event attribute's
--   <tt>cause</tt> parameter is set to <tt>OPERATION_NOT_PERMITTED</tt> .
--   For details and example IAM policies, see <a>Using IAM to Manage
--   Access to Amazon SWF Workflows</a> in the <i>Amazon SWF Developer
--   Guide</i> .
--   
--   <i>See:</i>
--   <a>requestCancelExternalWorkflowExecutionDecisionAttributes</a> smart
--   constructor.
data RequestCancelExternalWorkflowExecutionDecisionAttributes

-- | Creates a value of
--   <a>RequestCancelExternalWorkflowExecutionDecisionAttributes</a> with
--   the minimum fields required to make a request.
--   
--   Use one of the following lenses to modify other fields as desired:
--   
--   <ul>
--   <li><a>rcewedaControl</a> - The data attached to the event that can be
--   used by the decider in subsequent workflow tasks.</li>
--   <li><a>rcewedaRunId</a> - The <tt>runId</tt> of the external workflow
--   execution to cancel.</li>
--   <li><a>rcewedaWorkflowId</a> - The <tt>workflowId</tt> of the external
--   workflow execution to cancel.</li>
--   </ul>
requestCancelExternalWorkflowExecutionDecisionAttributes :: Text -> RequestCancelExternalWorkflowExecutionDecisionAttributes

-- | The data attached to the event that can be used by the decider in
--   subsequent workflow tasks.
rcewedaControl :: Lens' RequestCancelExternalWorkflowExecutionDecisionAttributes (Maybe Text)

-- | The <tt>runId</tt> of the external workflow execution to cancel.
rcewedaRunId :: Lens' RequestCancelExternalWorkflowExecutionDecisionAttributes (Maybe Text)

-- | The <tt>workflowId</tt> of the external workflow execution to cancel.
rcewedaWorkflowId :: Lens' RequestCancelExternalWorkflowExecutionDecisionAttributes Text

-- | Provides the details of the
--   <tt>RequestCancelExternalWorkflowExecutionFailed</tt> event.
--   
--   <i>See:</i>
--   <a>requestCancelExternalWorkflowExecutionFailedEventAttributes</a>
--   smart constructor.
data RequestCancelExternalWorkflowExecutionFailedEventAttributes

-- | Creates a value of
--   <a>RequestCancelExternalWorkflowExecutionFailedEventAttributes</a>
--   with the minimum fields required to make a request.
--   
--   Use one of the following lenses to modify other fields as desired:
--   
--   <ul>
--   <li><a>rcewefeaControl</a> - The data attached to the event that the
--   decider can use in subsequent workflow tasks. This data isn't sent to
--   the workflow execution.</li>
--   <li><a>rcewefeaRunId</a> - The <tt>runId</tt> of the external workflow
--   execution.</li>
--   <li><a>rcewefeaWorkflowId</a> - The <tt>workflowId</tt> of the
--   external workflow to which the cancel request was to be
--   delivered.</li>
--   <li><a>rcewefeaCause</a> - The cause of the failure. This information
--   is generated by the system and can be useful for diagnostic
--   purposes.</li>
--   <li><a>rcewefeaInitiatedEventId</a> - The ID of the
--   <tt>RequestCancelExternalWorkflowExecutionInitiated</tt> event
--   corresponding to the <tt>RequestCancelExternalWorkflowExecution</tt>
--   decision to cancel this external workflow execution. This information
--   can be useful for diagnosing problems by tracing back the chain of
--   events leading up to this event.</li>
--   <li><a>rcewefeaDecisionTaskCompletedEventId</a> - The ID of the
--   <tt>DecisionTaskCompleted</tt> event corresponding to the decision
--   task that resulted in the
--   <tt>RequestCancelExternalWorkflowExecution</tt> decision for this
--   cancellation request. This information can be useful for diagnosing
--   problems by tracing back the chain of events leading up to this
--   event.</li>
--   </ul>
requestCancelExternalWorkflowExecutionFailedEventAttributes :: Text -> RequestCancelExternalWorkflowExecutionFailedCause -> Integer -> Integer -> RequestCancelExternalWorkflowExecutionFailedEventAttributes

-- | The data attached to the event that the decider can use in subsequent
--   workflow tasks. This data isn't sent to the workflow execution.
rcewefeaControl :: Lens' RequestCancelExternalWorkflowExecutionFailedEventAttributes (Maybe Text)

-- | The <tt>runId</tt> of the external workflow execution.
rcewefeaRunId :: Lens' RequestCancelExternalWorkflowExecutionFailedEventAttributes (Maybe Text)

-- | The <tt>workflowId</tt> of the external workflow to which the cancel
--   request was to be delivered.
rcewefeaWorkflowId :: Lens' RequestCancelExternalWorkflowExecutionFailedEventAttributes Text

-- | The cause of the failure. This information is generated by the system
--   and can be useful for diagnostic purposes.
rcewefeaCause :: Lens' RequestCancelExternalWorkflowExecutionFailedEventAttributes RequestCancelExternalWorkflowExecutionFailedCause

-- | The ID of the <tt>RequestCancelExternalWorkflowExecutionInitiated</tt>
--   event corresponding to the
--   <tt>RequestCancelExternalWorkflowExecution</tt> decision to cancel
--   this external workflow execution. This information can be useful for
--   diagnosing problems by tracing back the chain of events leading up to
--   this event.
rcewefeaInitiatedEventId :: Lens' RequestCancelExternalWorkflowExecutionFailedEventAttributes Integer

-- | The ID of the <tt>DecisionTaskCompleted</tt> event corresponding to
--   the decision task that resulted in the
--   <tt>RequestCancelExternalWorkflowExecution</tt> decision for this
--   cancellation request. This information can be useful for diagnosing
--   problems by tracing back the chain of events leading up to this event.
rcewefeaDecisionTaskCompletedEventId :: Lens' RequestCancelExternalWorkflowExecutionFailedEventAttributes Integer

-- | Provides the details of the
--   <tt>RequestCancelExternalWorkflowExecutionInitiated</tt> event.
--   
--   <i>See:</i>
--   <a>requestCancelExternalWorkflowExecutionInitiatedEventAttributes</a>
--   smart constructor.
data RequestCancelExternalWorkflowExecutionInitiatedEventAttributes

-- | Creates a value of
--   <a>RequestCancelExternalWorkflowExecutionInitiatedEventAttributes</a>
--   with the minimum fields required to make a request.
--   
--   Use one of the following lenses to modify other fields as desired:
--   
--   <ul>
--   <li><a>rceweieaControl</a> - Data attached to the event that can be
--   used by the decider in subsequent workflow tasks.</li>
--   <li><a>rceweieaRunId</a> - The <tt>runId</tt> of the external workflow
--   execution to be canceled.</li>
--   <li><a>rceweieaWorkflowId</a> - The <tt>workflowId</tt> of the
--   external workflow execution to be canceled.</li>
--   <li><a>rceweieaDecisionTaskCompletedEventId</a> - The ID of the
--   <tt>DecisionTaskCompleted</tt> event corresponding to the decision
--   task that resulted in the
--   <tt>RequestCancelExternalWorkflowExecution</tt> decision for this
--   cancellation request. This information can be useful for diagnosing
--   problems by tracing back the chain of events leading up to this
--   event.</li>
--   </ul>
requestCancelExternalWorkflowExecutionInitiatedEventAttributes :: Text -> Integer -> RequestCancelExternalWorkflowExecutionInitiatedEventAttributes

-- | Data attached to the event that can be used by the decider in
--   subsequent workflow tasks.
rceweieaControl :: Lens' RequestCancelExternalWorkflowExecutionInitiatedEventAttributes (Maybe Text)

-- | The <tt>runId</tt> of the external workflow execution to be canceled.
rceweieaRunId :: Lens' RequestCancelExternalWorkflowExecutionInitiatedEventAttributes (Maybe Text)

-- | The <tt>workflowId</tt> of the external workflow execution to be
--   canceled.
rceweieaWorkflowId :: Lens' RequestCancelExternalWorkflowExecutionInitiatedEventAttributes Text

-- | The ID of the <tt>DecisionTaskCompleted</tt> event corresponding to
--   the decision task that resulted in the
--   <tt>RequestCancelExternalWorkflowExecution</tt> decision for this
--   cancellation request. This information can be useful for diagnosing
--   problems by tracing back the chain of events leading up to this event.
rceweieaDecisionTaskCompletedEventId :: Lens' RequestCancelExternalWorkflowExecutionInitiatedEventAttributes Integer

-- | Provides the details of the <tt>ScheduleActivityTask</tt> decision.
--   
--   <b>Access Control</b>
--   
--   You can use IAM policies to control this decision's access to Amazon
--   SWF resources as follows:
--   
--   <ul>
--   <li>Use a <tt>Resource</tt> element with the domain name to limit the
--   action to only specified domains.</li>
--   <li>Use an <tt>Action</tt> element to allow or deny permission to call
--   this action.</li>
--   <li>Constrain the following parameters by using a <tt>Condition</tt>
--   element with the appropriate keys.</li>
--   <li><tt>activityType.name</tt> – String constraint. The key is
--   <tt>swf:activityType.name</tt> .</li>
--   <li><tt>activityType.version</tt> – String constraint. The key is
--   <tt>swf:activityType.version</tt> .</li>
--   <li><tt>taskList</tt> – String constraint. The key is
--   <tt>swf:taskList.name</tt> .</li>
--   </ul>
--   
--   If the caller doesn't have sufficient permissions to invoke the
--   action, or the parameter values fall outside the specified
--   constraints, the action fails. The associated event attribute's
--   <tt>cause</tt> parameter is set to <tt>OPERATION_NOT_PERMITTED</tt> .
--   For details and example IAM policies, see <a>Using IAM to Manage
--   Access to Amazon SWF Workflows</a> in the <i>Amazon SWF Developer
--   Guide</i> .
--   
--   <i>See:</i> <a>scheduleActivityTaskDecisionAttributes</a> smart
--   constructor.
data ScheduleActivityTaskDecisionAttributes

-- | Creates a value of <a>ScheduleActivityTaskDecisionAttributes</a> with
--   the minimum fields required to make a request.
--   
--   Use one of the following lenses to modify other fields as desired:
--   
--   <ul>
--   <li><a>satdaControl</a> - Data attached to the event that can be used
--   by the decider in subsequent workflow tasks. This data isn't sent to
--   the activity.</li>
--   <li><a>satdaHeartbeatTimeout</a> - If set, specifies the maximum time
--   before which a worker processing a task of this type must report
--   progress by calling <tt>RecordActivityTaskHeartbeat</tt> . If the
--   timeout is exceeded, the activity task is automatically timed out. If
--   the worker subsequently attempts to record a heartbeat or returns a
--   result, it is ignored. This overrides the default heartbeat timeout
--   specified when registering the activity type using
--   <tt>RegisterActivityType</tt> . The duration is specified in seconds,
--   an integer greater than or equal to <tt>0</tt> . You can use
--   <tt>NONE</tt> to specify unlimited duration.</li>
--   <li><a>satdaScheduleToCloseTimeout</a> - The maximum duration for this
--   activity task. The duration is specified in seconds, an integer
--   greater than or equal to <tt>0</tt> . You can use <tt>NONE</tt> to
--   specify unlimited duration.</li>
--   <li><a>satdaInput</a> - The input provided to the activity task.</li>
--   <li><a>satdaTaskList</a> - If set, specifies the name of the task list
--   in which to schedule the activity task. If not specified, the
--   <tt>defaultTaskList</tt> registered with the activity type is used.
--   The specified string must not start or end with whitespace. It must
--   not contain a <tt>:</tt> (colon), <tt>/</tt> (slash), <tt>|</tt>
--   (vertical bar), or any control characters (<tt>u0000-u001f</tt> |
--   <tt>u007f-u009f</tt> ). Also, it must not contain the literal string
--   <tt>arn</tt> .</li>
--   <li><a>satdaTaskPriority</a> - If set, specifies the priority with
--   which the activity task is to be assigned to a worker. This overrides
--   the defaultTaskPriority specified when registering the activity type
--   using <tt>RegisterActivityType</tt> . Valid values are integers that
--   range from Java's <tt>Integer.MIN_VALUE</tt> (-2147483648) to
--   <tt>Integer.MAX_VALUE</tt> (2147483647). Higher numbers indicate
--   higher priority. For more information about setting task priority, see
--   <a>Setting Task Priority</a> in the <i>Amazon SWF Developer Guide</i>
--   .</li>
--   <li><a>satdaScheduleToStartTimeout</a> - If set, specifies the maximum
--   duration the activity task can wait to be assigned to a worker. This
--   overrides the default schedule-to-start timeout specified when
--   registering the activity type using <tt>RegisterActivityType</tt> .
--   The duration is specified in seconds, an integer greater than or equal
--   to <tt>0</tt> . You can use <tt>NONE</tt> to specify unlimited
--   duration.</li>
--   <li><a>satdaStartToCloseTimeout</a> - If set, specifies the maximum
--   duration a worker may take to process this activity task. This
--   overrides the default start-to-close timeout specified when
--   registering the activity type using <tt>RegisterActivityType</tt> .
--   The duration is specified in seconds, an integer greater than or equal
--   to <tt>0</tt> . You can use <tt>NONE</tt> to specify unlimited
--   duration.</li>
--   <li><a>satdaActivityType</a> - The type of the activity task to
--   schedule.</li>
--   <li><a>satdaActivityId</a> - The <tt>activityId</tt> of the activity
--   task. The specified string must not start or end with whitespace. It
--   must not contain a <tt>:</tt> (colon), <tt>/</tt> (slash), <tt>|</tt>
--   (vertical bar), or any control characters (<tt>u0000-u001f</tt> |
--   <tt>u007f-u009f</tt> ). Also, it must not contain the literal string
--   <tt>arn</tt> .</li>
--   </ul>
scheduleActivityTaskDecisionAttributes :: ActivityType -> Text -> ScheduleActivityTaskDecisionAttributes

-- | Data attached to the event that can be used by the decider in
--   subsequent workflow tasks. This data isn't sent to the activity.
satdaControl :: Lens' ScheduleActivityTaskDecisionAttributes (Maybe Text)

-- | If set, specifies the maximum time before which a worker processing a
--   task of this type must report progress by calling
--   <tt>RecordActivityTaskHeartbeat</tt> . If the timeout is exceeded, the
--   activity task is automatically timed out. If the worker subsequently
--   attempts to record a heartbeat or returns a result, it is ignored.
--   This overrides the default heartbeat timeout specified when
--   registering the activity type using <tt>RegisterActivityType</tt> .
--   The duration is specified in seconds, an integer greater than or equal
--   to <tt>0</tt> . You can use <tt>NONE</tt> to specify unlimited
--   duration.
satdaHeartbeatTimeout :: Lens' ScheduleActivityTaskDecisionAttributes (Maybe Text)

-- | The maximum duration for this activity task. The duration is specified
--   in seconds, an integer greater than or equal to <tt>0</tt> . You can
--   use <tt>NONE</tt> to specify unlimited duration.
satdaScheduleToCloseTimeout :: Lens' ScheduleActivityTaskDecisionAttributes (Maybe Text)

-- | The input provided to the activity task.
satdaInput :: Lens' ScheduleActivityTaskDecisionAttributes (Maybe Text)

-- | If set, specifies the name of the task list in which to schedule the
--   activity task. If not specified, the <tt>defaultTaskList</tt>
--   registered with the activity type is used. The specified string must
--   not start or end with whitespace. It must not contain a <tt>:</tt>
--   (colon), <tt>/</tt> (slash), <tt>|</tt> (vertical bar), or any control
--   characters (<tt>u0000-u001f</tt> | <tt>u007f-u009f</tt> ). Also, it
--   must not contain the literal string <tt>arn</tt> .
satdaTaskList :: Lens' ScheduleActivityTaskDecisionAttributes (Maybe TaskList)

-- | If set, specifies the priority with which the activity task is to be
--   assigned to a worker. This overrides the defaultTaskPriority specified
--   when registering the activity type using <tt>RegisterActivityType</tt>
--   . Valid values are integers that range from Java's
--   <tt>Integer.MIN_VALUE</tt> (-2147483648) to <tt>Integer.MAX_VALUE</tt>
--   (2147483647). Higher numbers indicate higher priority. For more
--   information about setting task priority, see <a>Setting Task
--   Priority</a> in the <i>Amazon SWF Developer Guide</i> .
satdaTaskPriority :: Lens' ScheduleActivityTaskDecisionAttributes (Maybe Text)

-- | If set, specifies the maximum duration the activity task can wait to
--   be assigned to a worker. This overrides the default schedule-to-start
--   timeout specified when registering the activity type using
--   <tt>RegisterActivityType</tt> . The duration is specified in seconds,
--   an integer greater than or equal to <tt>0</tt> . You can use
--   <tt>NONE</tt> to specify unlimited duration.
satdaScheduleToStartTimeout :: Lens' ScheduleActivityTaskDecisionAttributes (Maybe Text)

-- | If set, specifies the maximum duration a worker may take to process
--   this activity task. This overrides the default start-to-close timeout
--   specified when registering the activity type using
--   <tt>RegisterActivityType</tt> . The duration is specified in seconds,
--   an integer greater than or equal to <tt>0</tt> . You can use
--   <tt>NONE</tt> to specify unlimited duration.
satdaStartToCloseTimeout :: Lens' ScheduleActivityTaskDecisionAttributes (Maybe Text)

-- | The type of the activity task to schedule.
satdaActivityType :: Lens' ScheduleActivityTaskDecisionAttributes ActivityType

-- | The <tt>activityId</tt> of the activity task. The specified string
--   must not start or end with whitespace. It must not contain a
--   <tt>:</tt> (colon), <tt>/</tt> (slash), <tt>|</tt> (vertical bar), or
--   any control characters (<tt>u0000-u001f</tt> | <tt>u007f-u009f</tt> ).
--   Also, it must not contain the literal string <tt>arn</tt> .
satdaActivityId :: Lens' ScheduleActivityTaskDecisionAttributes Text

-- | Provides the details of the <tt>ScheduleActivityTaskFailed</tt> event.
--   
--   <i>See:</i> <a>scheduleActivityTaskFailedEventAttributes</a> smart
--   constructor.
data ScheduleActivityTaskFailedEventAttributes

-- | Creates a value of <a>ScheduleActivityTaskFailedEventAttributes</a>
--   with the minimum fields required to make a request.
--   
--   Use one of the following lenses to modify other fields as desired:
--   
--   <ul>
--   <li><a>satfeaActivityType</a> - The activity type provided in the
--   <tt>ScheduleActivityTask</tt> decision that failed.</li>
--   <li><a>satfeaActivityId</a> - The activityId provided in the
--   <tt>ScheduleActivityTask</tt> decision that failed.</li>
--   <li><a>satfeaCause</a> - The cause of the failure. This information is
--   generated by the system and can be useful for diagnostic
--   purposes.</li>
--   <li><a>satfeaDecisionTaskCompletedEventId</a> - The ID of the
--   <tt>DecisionTaskCompleted</tt> event corresponding to the decision
--   that resulted in the scheduling of this activity task. This
--   information can be useful for diagnosing problems by tracing back the
--   chain of events leading up to this event.</li>
--   </ul>
scheduleActivityTaskFailedEventAttributes :: ActivityType -> Text -> ScheduleActivityTaskFailedCause -> Integer -> ScheduleActivityTaskFailedEventAttributes

-- | The activity type provided in the <tt>ScheduleActivityTask</tt>
--   decision that failed.
satfeaActivityType :: Lens' ScheduleActivityTaskFailedEventAttributes ActivityType

-- | The activityId provided in the <tt>ScheduleActivityTask</tt> decision
--   that failed.
satfeaActivityId :: Lens' ScheduleActivityTaskFailedEventAttributes Text

-- | The cause of the failure. This information is generated by the system
--   and can be useful for diagnostic purposes.
satfeaCause :: Lens' ScheduleActivityTaskFailedEventAttributes ScheduleActivityTaskFailedCause

-- | The ID of the <tt>DecisionTaskCompleted</tt> event corresponding to
--   the decision that resulted in the scheduling of this activity task.
--   This information can be useful for diagnosing problems by tracing back
--   the chain of events leading up to this event.
satfeaDecisionTaskCompletedEventId :: Lens' ScheduleActivityTaskFailedEventAttributes Integer

-- | Decision attributes specified in
--   <tt>scheduleLambdaFunctionDecisionAttributes</tt> within the list of
--   decisions <tt>decisions</tt> passed to
--   <tt>RespondDecisionTaskCompleted</tt> .
--   
--   <i>See:</i> <a>scheduleLambdaFunctionDecisionAttributes</a> smart
--   constructor.
data ScheduleLambdaFunctionDecisionAttributes

-- | Creates a value of <a>ScheduleLambdaFunctionDecisionAttributes</a>
--   with the minimum fields required to make a request.
--   
--   Use one of the following lenses to modify other fields as desired:
--   
--   <ul>
--   <li><a>slfdaControl</a> - The data attached to the event that the
--   decider can use in subsequent workflow tasks. This data isn't sent to
--   the Lambda task.</li>
--   <li><a>slfdaInput</a> - The optional input data to be supplied to the
--   Lambda function.</li>
--   <li><a>slfdaStartToCloseTimeout</a> - The timeout value, in seconds,
--   after which the Lambda function is considered to be failed once it has
--   started. This can be any integer from 1-300 (1s-5m). If no value is
--   supplied, than a default value of 300s is assumed.</li>
--   <li><a>slfdaId</a> - A string that identifies the Lambda function
--   execution in the event history.</li>
--   <li><a>slfdaName</a> - The name, or ARN, of the Lambda function to
--   schedule.</li>
--   </ul>
scheduleLambdaFunctionDecisionAttributes :: Text -> Text -> ScheduleLambdaFunctionDecisionAttributes

-- | The data attached to the event that the decider can use in subsequent
--   workflow tasks. This data isn't sent to the Lambda task.
slfdaControl :: Lens' ScheduleLambdaFunctionDecisionAttributes (Maybe Text)

-- | The optional input data to be supplied to the Lambda function.
slfdaInput :: Lens' ScheduleLambdaFunctionDecisionAttributes (Maybe Text)

-- | The timeout value, in seconds, after which the Lambda function is
--   considered to be failed once it has started. This can be any integer
--   from 1-300 (1s-5m). If no value is supplied, than a default value of
--   300s is assumed.
slfdaStartToCloseTimeout :: Lens' ScheduleLambdaFunctionDecisionAttributes (Maybe Text)

-- | A string that identifies the Lambda function execution in the event
--   history.
slfdaId :: Lens' ScheduleLambdaFunctionDecisionAttributes Text

-- | The name, or ARN, of the Lambda function to schedule.
slfdaName :: Lens' ScheduleLambdaFunctionDecisionAttributes Text

-- | Provides the details of the <tt>ScheduleLambdaFunctionFailed</tt>
--   event. It isn't set for other event types.
--   
--   <i>See:</i> <a>scheduleLambdaFunctionFailedEventAttributes</a> smart
--   constructor.
data ScheduleLambdaFunctionFailedEventAttributes

-- | Creates a value of <a>ScheduleLambdaFunctionFailedEventAttributes</a>
--   with the minimum fields required to make a request.
--   
--   Use one of the following lenses to modify other fields as desired:
--   
--   <ul>
--   <li><a>slffeaId</a> - The ID provided in the
--   <tt>ScheduleLambdaFunction</tt> decision that failed.</li>
--   <li><a>slffeaName</a> - The name of the Lambda function.</li>
--   <li><a>slffeaCause</a> - The cause of the failure. To help diagnose
--   issues, use this information to trace back the chain of events leading
--   up to this event.</li>
--   <li><a>slffeaDecisionTaskCompletedEventId</a> - The ID of the
--   <tt>LambdaFunctionCompleted</tt> event corresponding to the decision
--   that resulted in scheduling this Lambda task. To help diagnose issues,
--   use this information to trace back the chain of events leading up to
--   this event.</li>
--   </ul>
scheduleLambdaFunctionFailedEventAttributes :: Text -> Text -> ScheduleLambdaFunctionFailedCause -> Integer -> ScheduleLambdaFunctionFailedEventAttributes

-- | The ID provided in the <tt>ScheduleLambdaFunction</tt> decision that
--   failed.
slffeaId :: Lens' ScheduleLambdaFunctionFailedEventAttributes Text

-- | The name of the Lambda function.
slffeaName :: Lens' ScheduleLambdaFunctionFailedEventAttributes Text

-- | The cause of the failure. To help diagnose issues, use this
--   information to trace back the chain of events leading up to this
--   event.
slffeaCause :: Lens' ScheduleLambdaFunctionFailedEventAttributes ScheduleLambdaFunctionFailedCause

-- | The ID of the <tt>LambdaFunctionCompleted</tt> event corresponding to
--   the decision that resulted in scheduling this Lambda task. To help
--   diagnose issues, use this information to trace back the chain of
--   events leading up to this event.
slffeaDecisionTaskCompletedEventId :: Lens' ScheduleLambdaFunctionFailedEventAttributes Integer

-- | Provides the details of the <tt>SignalExternalWorkflowExecution</tt>
--   decision.
--   
--   <b>Access Control</b>
--   
--   You can use IAM policies to control this decision's access to Amazon
--   SWF resources as follows:
--   
--   <ul>
--   <li>Use a <tt>Resource</tt> element with the domain name to limit the
--   action to only specified domains.</li>
--   <li>Use an <tt>Action</tt> element to allow or deny permission to call
--   this action.</li>
--   <li>You cannot use an IAM policy to constrain this action's
--   parameters.</li>
--   </ul>
--   
--   If the caller doesn't have sufficient permissions to invoke the
--   action, or the parameter values fall outside the specified
--   constraints, the action fails. The associated event attribute's
--   <tt>cause</tt> parameter is set to <tt>OPERATION_NOT_PERMITTED</tt> .
--   For details and example IAM policies, see <a>Using IAM to Manage
--   Access to Amazon SWF Workflows</a> in the <i>Amazon SWF Developer
--   Guide</i> .
--   
--   <i>See:</i> <a>signalExternalWorkflowExecutionDecisionAttributes</a>
--   smart constructor.
data SignalExternalWorkflowExecutionDecisionAttributes

-- | Creates a value of
--   <a>SignalExternalWorkflowExecutionDecisionAttributes</a> with the
--   minimum fields required to make a request.
--   
--   Use one of the following lenses to modify other fields as desired:
--   
--   <ul>
--   <li><a>sewedaControl</a> - The data attached to the event that can be
--   used by the decider in subsequent decision tasks.</li>
--   <li><a>sewedaInput</a> - The input data to be provided with the
--   signal. The target workflow execution uses the signal name and input
--   data to process the signal.</li>
--   <li><a>sewedaRunId</a> - The <tt>runId</tt> of the workflow execution
--   to be signaled.</li>
--   <li><a>sewedaWorkflowId</a> - The <tt>workflowId</tt> of the workflow
--   execution to be signaled.</li>
--   <li><a>sewedaSignalName</a> - The name of the signal.The target
--   workflow execution uses the signal name and input to process the
--   signal.</li>
--   </ul>
signalExternalWorkflowExecutionDecisionAttributes :: Text -> Text -> SignalExternalWorkflowExecutionDecisionAttributes

-- | The data attached to the event that can be used by the decider in
--   subsequent decision tasks.
sewedaControl :: Lens' SignalExternalWorkflowExecutionDecisionAttributes (Maybe Text)

-- | The input data to be provided with the signal. The target workflow
--   execution uses the signal name and input data to process the signal.
sewedaInput :: Lens' SignalExternalWorkflowExecutionDecisionAttributes (Maybe Text)

-- | The <tt>runId</tt> of the workflow execution to be signaled.
sewedaRunId :: Lens' SignalExternalWorkflowExecutionDecisionAttributes (Maybe Text)

-- | The <tt>workflowId</tt> of the workflow execution to be signaled.
sewedaWorkflowId :: Lens' SignalExternalWorkflowExecutionDecisionAttributes Text

-- | The name of the signal.The target workflow execution uses the signal
--   name and input to process the signal.
sewedaSignalName :: Lens' SignalExternalWorkflowExecutionDecisionAttributes Text

-- | Provides the details of the
--   <tt>SignalExternalWorkflowExecutionFailed</tt> event.
--   
--   <i>See:</i>
--   <a>signalExternalWorkflowExecutionFailedEventAttributes</a> smart
--   constructor.
data SignalExternalWorkflowExecutionFailedEventAttributes

-- | Creates a value of
--   <a>SignalExternalWorkflowExecutionFailedEventAttributes</a> with the
--   minimum fields required to make a request.
--   
--   Use one of the following lenses to modify other fields as desired:
--   
--   <ul>
--   <li><a>sewefeaControl</a> - The data attached to the event that the
--   decider can use in subsequent workflow tasks. This data isn't sent to
--   the workflow execution.</li>
--   <li><a>sewefeaRunId</a> - The <tt>runId</tt> of the external workflow
--   execution that the signal was being delivered to.</li>
--   <li><a>sewefeaWorkflowId</a> - The <tt>workflowId</tt> of the external
--   workflow execution that the signal was being delivered to.</li>
--   <li><a>sewefeaCause</a> - The cause of the failure. This information
--   is generated by the system and can be useful for diagnostic
--   purposes.</li>
--   <li><a>sewefeaInitiatedEventId</a> - The ID of the
--   <tt>SignalExternalWorkflowExecutionInitiated</tt> event corresponding
--   to the <tt>SignalExternalWorkflowExecution</tt> decision to request
--   this signal. This information can be useful for diagnosing problems by
--   tracing back the chain of events leading up to this event.</li>
--   <li><a>sewefeaDecisionTaskCompletedEventId</a> - The ID of the
--   <tt>DecisionTaskCompleted</tt> event corresponding to the decision
--   task that resulted in the <tt>SignalExternalWorkflowExecution</tt>
--   decision for this signal. This information can be useful for
--   diagnosing problems by tracing back the chain of events leading up to
--   this event.</li>
--   </ul>
signalExternalWorkflowExecutionFailedEventAttributes :: Text -> SignalExternalWorkflowExecutionFailedCause -> Integer -> Integer -> SignalExternalWorkflowExecutionFailedEventAttributes

-- | The data attached to the event that the decider can use in subsequent
--   workflow tasks. This data isn't sent to the workflow execution.
sewefeaControl :: Lens' SignalExternalWorkflowExecutionFailedEventAttributes (Maybe Text)

-- | The <tt>runId</tt> of the external workflow execution that the signal
--   was being delivered to.
sewefeaRunId :: Lens' SignalExternalWorkflowExecutionFailedEventAttributes (Maybe Text)

-- | The <tt>workflowId</tt> of the external workflow execution that the
--   signal was being delivered to.
sewefeaWorkflowId :: Lens' SignalExternalWorkflowExecutionFailedEventAttributes Text

-- | The cause of the failure. This information is generated by the system
--   and can be useful for diagnostic purposes.
sewefeaCause :: Lens' SignalExternalWorkflowExecutionFailedEventAttributes SignalExternalWorkflowExecutionFailedCause

-- | The ID of the <tt>SignalExternalWorkflowExecutionInitiated</tt> event
--   corresponding to the <tt>SignalExternalWorkflowExecution</tt> decision
--   to request this signal. This information can be useful for diagnosing
--   problems by tracing back the chain of events leading up to this event.
sewefeaInitiatedEventId :: Lens' SignalExternalWorkflowExecutionFailedEventAttributes Integer

-- | The ID of the <tt>DecisionTaskCompleted</tt> event corresponding to
--   the decision task that resulted in the
--   <tt>SignalExternalWorkflowExecution</tt> decision for this signal.
--   This information can be useful for diagnosing problems by tracing back
--   the chain of events leading up to this event.
sewefeaDecisionTaskCompletedEventId :: Lens' SignalExternalWorkflowExecutionFailedEventAttributes Integer

-- | Provides the details of the
--   <tt>SignalExternalWorkflowExecutionInitiated</tt> event.
--   
--   <i>See:</i>
--   <a>signalExternalWorkflowExecutionInitiatedEventAttributes</a> smart
--   constructor.
data SignalExternalWorkflowExecutionInitiatedEventAttributes

-- | Creates a value of
--   <a>SignalExternalWorkflowExecutionInitiatedEventAttributes</a> with
--   the minimum fields required to make a request.
--   
--   Use one of the following lenses to modify other fields as desired:
--   
--   <ul>
--   <li><a>seweieaControl</a> - Data attached to the event that can be
--   used by the decider in subsequent decision tasks.</li>
--   <li><a>seweieaInput</a> - The input provided to the signal.</li>
--   <li><a>seweieaRunId</a> - The <tt>runId</tt> of the external workflow
--   execution to send the signal to.</li>
--   <li><a>seweieaWorkflowId</a> - The <tt>workflowId</tt> of the external
--   workflow execution.</li>
--   <li><a>seweieaSignalName</a> - The name of the signal.</li>
--   <li><a>seweieaDecisionTaskCompletedEventId</a> - The ID of the
--   <tt>DecisionTaskCompleted</tt> event corresponding to the decision
--   task that resulted in the <tt>SignalExternalWorkflowExecution</tt>
--   decision for this signal. This information can be useful for
--   diagnosing problems by tracing back the chain of events leading up to
--   this event.</li>
--   </ul>
signalExternalWorkflowExecutionInitiatedEventAttributes :: Text -> Text -> Integer -> SignalExternalWorkflowExecutionInitiatedEventAttributes

-- | Data attached to the event that can be used by the decider in
--   subsequent decision tasks.
seweieaControl :: Lens' SignalExternalWorkflowExecutionInitiatedEventAttributes (Maybe Text)

-- | The input provided to the signal.
seweieaInput :: Lens' SignalExternalWorkflowExecutionInitiatedEventAttributes (Maybe Text)

-- | The <tt>runId</tt> of the external workflow execution to send the
--   signal to.
seweieaRunId :: Lens' SignalExternalWorkflowExecutionInitiatedEventAttributes (Maybe Text)

-- | The <tt>workflowId</tt> of the external workflow execution.
seweieaWorkflowId :: Lens' SignalExternalWorkflowExecutionInitiatedEventAttributes Text

-- | The name of the signal.
seweieaSignalName :: Lens' SignalExternalWorkflowExecutionInitiatedEventAttributes Text

-- | The ID of the <tt>DecisionTaskCompleted</tt> event corresponding to
--   the decision task that resulted in the
--   <tt>SignalExternalWorkflowExecution</tt> decision for this signal.
--   This information can be useful for diagnosing problems by tracing back
--   the chain of events leading up to this event.
seweieaDecisionTaskCompletedEventId :: Lens' SignalExternalWorkflowExecutionInitiatedEventAttributes Integer

-- | Provides the details of the <tt>StartChildWorkflowExecution</tt>
--   decision.
--   
--   <b>Access Control</b>
--   
--   You can use IAM policies to control this decision's access to Amazon
--   SWF resources as follows:
--   
--   <ul>
--   <li>Use a <tt>Resource</tt> element with the domain name to limit the
--   action to only specified domains.</li>
--   <li>Use an <tt>Action</tt> element to allow or deny permission to call
--   this action.</li>
--   <li>Constrain the following parameters by using a <tt>Condition</tt>
--   element with the appropriate keys.</li>
--   <li><tt>tagList.member.N</tt> – The key is "swf:tagList.N" where N is
--   the tag number from 0 to 4, inclusive.</li>
--   <li><tt>taskList</tt> – String constraint. The key is
--   <tt>swf:taskList.name</tt> .</li>
--   <li><tt>workflowType.name</tt> – String constraint. The key is
--   <tt>swf:workflowType.name</tt> .</li>
--   <li><tt>workflowType.version</tt> – String constraint. The key is
--   <tt>swf:workflowType.version</tt> .</li>
--   </ul>
--   
--   If the caller doesn't have sufficient permissions to invoke the
--   action, or the parameter values fall outside the specified
--   constraints, the action fails. The associated event attribute's
--   <tt>cause</tt> parameter is set to <tt>OPERATION_NOT_PERMITTED</tt> .
--   For details and example IAM policies, see <a>Using IAM to Manage
--   Access to Amazon SWF Workflows</a> in the <i>Amazon SWF Developer
--   Guide</i> .
--   
--   <i>See:</i> <a>startChildWorkflowExecutionDecisionAttributes</a> smart
--   constructor.
data StartChildWorkflowExecutionDecisionAttributes

-- | Creates a value of
--   <a>StartChildWorkflowExecutionDecisionAttributes</a> with the minimum
--   fields required to make a request.
--   
--   Use one of the following lenses to modify other fields as desired:
--   
--   <ul>
--   <li><a>scwedaControl</a> - The data attached to the event that can be
--   used by the decider in subsequent workflow tasks. This data isn't sent
--   to the child workflow execution.</li>
--   <li><a>scwedaTagList</a> - The list of tags to associate with the
--   child workflow execution. A maximum of 5 tags can be specified. You
--   can list workflow executions with a specific tag by calling
--   <tt>ListOpenWorkflowExecutions</tt> or
--   <tt>ListClosedWorkflowExecutions</tt> and specifying a
--   <a>TagFilter</a> .</li>
--   <li><a>scwedaTaskStartToCloseTimeout</a> - Specifies the maximum
--   duration of decision tasks for this workflow execution. This parameter
--   overrides the <tt>defaultTaskStartToCloseTimout</tt> specified when
--   registering the workflow type using <tt>RegisterWorkflowType</tt> .
--   The duration is specified in seconds, an integer greater than or equal
--   to <tt>0</tt> . You can use <tt>NONE</tt> to specify unlimited
--   duration.</li>
--   <li><a>scwedaLambdaRole</a> - The IAM role attached to the child
--   workflow execution.</li>
--   <li><a>scwedaInput</a> - The input to be provided to the workflow
--   execution.</li>
--   <li><a>scwedaExecutionStartToCloseTimeout</a> - The total duration for
--   this workflow execution. This overrides the
--   defaultExecutionStartToCloseTimeout specified when registering the
--   workflow type. The duration is specified in seconds, an integer
--   greater than or equal to <tt>0</tt> . You can use <tt>NONE</tt> to
--   specify unlimited duration.</li>
--   <li><a>scwedaTaskList</a> - The name of the task list to be used for
--   decision tasks of the child workflow execution. The specified string
--   must not start or end with whitespace. It must not contain a
--   <tt>:</tt> (colon), <tt>/</tt> (slash), <tt>|</tt> (vertical bar), or
--   any control characters (<tt>u0000-u001f</tt> | <tt>u007f-u009f</tt> ).
--   Also, it must not contain the literal string <tt>arn</tt> .</li>
--   <li><a>scwedaTaskPriority</a> - A task priority that, if set,
--   specifies the priority for a decision task of this workflow execution.
--   This overrides the defaultTaskPriority specified when registering the
--   workflow type. Valid values are integers that range from Java's
--   <tt>Integer.MIN_VALUE</tt> (-2147483648) to <tt>Integer.MAX_VALUE</tt>
--   (2147483647). Higher numbers indicate higher priority. For more
--   information about setting task priority, see <a>Setting Task
--   Priority</a> in the <i>Amazon SWF Developer Guide</i> .</li>
--   <li><a>scwedaChildPolicy</a> - If set, specifies the policy to use for
--   the child workflow executions if the workflow execution being started
--   is terminated by calling the <tt>TerminateWorkflowExecution</tt>
--   action explicitly or due to an expired timeout. This policy overrides
--   the default child policy specified when registering the workflow type
--   using <tt>RegisterWorkflowType</tt> . The supported child policies
--   are: * <tt>TERMINATE</tt> – The child executions are terminated. *
--   <tt>REQUEST_CANCEL</tt> – A request to cancel is attempted for each
--   child execution by recording a
--   <tt>WorkflowExecutionCancelRequested</tt> event in its history. It is
--   up to the decider to take appropriate actions when it receives an
--   execution history with this event. * <tt>ABANDON</tt> – No action is
--   taken. The child executions continue to run.</li>
--   <li><a>scwedaWorkflowType</a> - The type of the workflow execution to
--   be started.</li>
--   <li><a>scwedaWorkflowId</a> - The <tt>workflowId</tt> of the workflow
--   execution. The specified string must not start or end with whitespace.
--   It must not contain a <tt>:</tt> (colon), <tt>/</tt> (slash),
--   <tt>|</tt> (vertical bar), or any control characters
--   (<tt>u0000-u001f</tt> | <tt>u007f-u009f</tt> ). Also, it must not
--   contain the literal string <tt>arn</tt> .</li>
--   </ul>
startChildWorkflowExecutionDecisionAttributes :: WorkflowType -> Text -> StartChildWorkflowExecutionDecisionAttributes

-- | The data attached to the event that can be used by the decider in
--   subsequent workflow tasks. This data isn't sent to the child workflow
--   execution.
scwedaControl :: Lens' StartChildWorkflowExecutionDecisionAttributes (Maybe Text)

-- | The list of tags to associate with the child workflow execution. A
--   maximum of 5 tags can be specified. You can list workflow executions
--   with a specific tag by calling <tt>ListOpenWorkflowExecutions</tt> or
--   <tt>ListClosedWorkflowExecutions</tt> and specifying a
--   <a>TagFilter</a> .
scwedaTagList :: Lens' StartChildWorkflowExecutionDecisionAttributes [Text]

-- | Specifies the maximum duration of decision tasks for this workflow
--   execution. This parameter overrides the
--   <tt>defaultTaskStartToCloseTimout</tt> specified when registering the
--   workflow type using <tt>RegisterWorkflowType</tt> . The duration is
--   specified in seconds, an integer greater than or equal to <tt>0</tt> .
--   You can use <tt>NONE</tt> to specify unlimited duration.
scwedaTaskStartToCloseTimeout :: Lens' StartChildWorkflowExecutionDecisionAttributes (Maybe Text)

-- | The IAM role attached to the child workflow execution.
scwedaLambdaRole :: Lens' StartChildWorkflowExecutionDecisionAttributes (Maybe Text)

-- | The input to be provided to the workflow execution.
scwedaInput :: Lens' StartChildWorkflowExecutionDecisionAttributes (Maybe Text)

-- | The total duration for this workflow execution. This overrides the
--   defaultExecutionStartToCloseTimeout specified when registering the
--   workflow type. The duration is specified in seconds, an integer
--   greater than or equal to <tt>0</tt> . You can use <tt>NONE</tt> to
--   specify unlimited duration.
scwedaExecutionStartToCloseTimeout :: Lens' StartChildWorkflowExecutionDecisionAttributes (Maybe Text)

-- | The name of the task list to be used for decision tasks of the child
--   workflow execution. The specified string must not start or end with
--   whitespace. It must not contain a <tt>:</tt> (colon), <tt>/</tt>
--   (slash), <tt>|</tt> (vertical bar), or any control characters
--   (<tt>u0000-u001f</tt> | <tt>u007f-u009f</tt> ). Also, it must not
--   contain the literal string <tt>arn</tt> .
scwedaTaskList :: Lens' StartChildWorkflowExecutionDecisionAttributes (Maybe TaskList)

-- | A task priority that, if set, specifies the priority for a decision
--   task of this workflow execution. This overrides the
--   defaultTaskPriority specified when registering the workflow type.
--   Valid values are integers that range from Java's
--   <tt>Integer.MIN_VALUE</tt> (-2147483648) to <tt>Integer.MAX_VALUE</tt>
--   (2147483647). Higher numbers indicate higher priority. For more
--   information about setting task priority, see <a>Setting Task
--   Priority</a> in the <i>Amazon SWF Developer Guide</i> .
scwedaTaskPriority :: Lens' StartChildWorkflowExecutionDecisionAttributes (Maybe Text)

-- | If set, specifies the policy to use for the child workflow executions
--   if the workflow execution being started is terminated by calling the
--   <tt>TerminateWorkflowExecution</tt> action explicitly or due to an
--   expired timeout. This policy overrides the default child policy
--   specified when registering the workflow type using
--   <tt>RegisterWorkflowType</tt> . The supported child policies are: *
--   <tt>TERMINATE</tt> – The child executions are terminated. *
--   <tt>REQUEST_CANCEL</tt> – A request to cancel is attempted for each
--   child execution by recording a
--   <tt>WorkflowExecutionCancelRequested</tt> event in its history. It is
--   up to the decider to take appropriate actions when it receives an
--   execution history with this event. * <tt>ABANDON</tt> – No action is
--   taken. The child executions continue to run.
scwedaChildPolicy :: Lens' StartChildWorkflowExecutionDecisionAttributes (Maybe ChildPolicy)

-- | The type of the workflow execution to be started.
scwedaWorkflowType :: Lens' StartChildWorkflowExecutionDecisionAttributes WorkflowType

-- | The <tt>workflowId</tt> of the workflow execution. The specified
--   string must not start or end with whitespace. It must not contain a
--   <tt>:</tt> (colon), <tt>/</tt> (slash), <tt>|</tt> (vertical bar), or
--   any control characters (<tt>u0000-u001f</tt> | <tt>u007f-u009f</tt> ).
--   Also, it must not contain the literal string <tt>arn</tt> .
scwedaWorkflowId :: Lens' StartChildWorkflowExecutionDecisionAttributes Text

-- | Provides the details of the <tt>StartChildWorkflowExecutionFailed</tt>
--   event.
--   
--   <i>See:</i> <a>startChildWorkflowExecutionFailedEventAttributes</a>
--   smart constructor.
data StartChildWorkflowExecutionFailedEventAttributes

-- | Creates a value of
--   <a>StartChildWorkflowExecutionFailedEventAttributes</a> with the
--   minimum fields required to make a request.
--   
--   Use one of the following lenses to modify other fields as desired:
--   
--   <ul>
--   <li><a>scwefeaControl</a> - The data attached to the event that the
--   decider can use in subsequent workflow tasks. This data isn't sent to
--   the child workflow execution.</li>
--   <li><a>scwefeaWorkflowType</a> - The workflow type provided in the
--   <tt>StartChildWorkflowExecution</tt> <a>Decision</a> that failed.</li>
--   <li><a>scwefeaCause</a> - The cause of the failure. This information
--   is generated by the system and can be useful for diagnostic
--   purposes.</li>
--   <li><a>scwefeaWorkflowId</a> - The <tt>workflowId</tt> of the child
--   workflow execution.</li>
--   <li><a>scwefeaInitiatedEventId</a> - When the <tt>cause</tt> is
--   <tt>WORKFLOW_ALREADY_RUNNING</tt> , <tt>initiatedEventId</tt> is the
--   ID of the <tt>StartChildWorkflowExecutionInitiated</tt> event that
--   corresponds to the <tt>StartChildWorkflowExecution</tt>
--   <a>Decision</a> to start the workflow execution. You can use this
--   information to diagnose problems by tracing back the chain of events
--   leading up to this event. When the <tt>cause</tt> isn't
--   <tt>WORKFLOW_ALREADY_RUNNING</tt> , <tt>initiatedEventId</tt> is set
--   to <tt>0</tt> because the
--   <tt>StartChildWorkflowExecutionInitiated</tt> event doesn't
--   exist.</li>
--   <li><a>scwefeaDecisionTaskCompletedEventId</a> - The ID of the
--   <tt>DecisionTaskCompleted</tt> event corresponding to the decision
--   task that resulted in the <tt>StartChildWorkflowExecution</tt>
--   <a>Decision</a> to request this child workflow execution. This
--   information can be useful for diagnosing problems by tracing back the
--   chain of events.</li>
--   </ul>
startChildWorkflowExecutionFailedEventAttributes :: WorkflowType -> StartChildWorkflowExecutionFailedCause -> Text -> Integer -> Integer -> StartChildWorkflowExecutionFailedEventAttributes

-- | The data attached to the event that the decider can use in subsequent
--   workflow tasks. This data isn't sent to the child workflow execution.
scwefeaControl :: Lens' StartChildWorkflowExecutionFailedEventAttributes (Maybe Text)

-- | The workflow type provided in the <tt>StartChildWorkflowExecution</tt>
--   <a>Decision</a> that failed.
scwefeaWorkflowType :: Lens' StartChildWorkflowExecutionFailedEventAttributes WorkflowType

-- | The cause of the failure. This information is generated by the system
--   and can be useful for diagnostic purposes.
scwefeaCause :: Lens' StartChildWorkflowExecutionFailedEventAttributes StartChildWorkflowExecutionFailedCause

-- | The <tt>workflowId</tt> of the child workflow execution.
scwefeaWorkflowId :: Lens' StartChildWorkflowExecutionFailedEventAttributes Text

-- | When the <tt>cause</tt> is <tt>WORKFLOW_ALREADY_RUNNING</tt> ,
--   <tt>initiatedEventId</tt> is the ID of the
--   <tt>StartChildWorkflowExecutionInitiated</tt> event that corresponds
--   to the <tt>StartChildWorkflowExecution</tt> <a>Decision</a> to start
--   the workflow execution. You can use this information to diagnose
--   problems by tracing back the chain of events leading up to this event.
--   When the <tt>cause</tt> isn't <tt>WORKFLOW_ALREADY_RUNNING</tt> ,
--   <tt>initiatedEventId</tt> is set to <tt>0</tt> because the
--   <tt>StartChildWorkflowExecutionInitiated</tt> event doesn't exist.
scwefeaInitiatedEventId :: Lens' StartChildWorkflowExecutionFailedEventAttributes Integer

-- | The ID of the <tt>DecisionTaskCompleted</tt> event corresponding to
--   the decision task that resulted in the
--   <tt>StartChildWorkflowExecution</tt> <a>Decision</a> to request this
--   child workflow execution. This information can be useful for
--   diagnosing problems by tracing back the chain of events.
scwefeaDecisionTaskCompletedEventId :: Lens' StartChildWorkflowExecutionFailedEventAttributes Integer

-- | Provides the details of the
--   <tt>StartChildWorkflowExecutionInitiated</tt> event.
--   
--   <i>See:</i> <a>startChildWorkflowExecutionInitiatedEventAttributes</a>
--   smart constructor.
data StartChildWorkflowExecutionInitiatedEventAttributes

-- | Creates a value of
--   <a>StartChildWorkflowExecutionInitiatedEventAttributes</a> with the
--   minimum fields required to make a request.
--   
--   Use one of the following lenses to modify other fields as desired:
--   
--   <ul>
--   <li><a>scweieaControl</a> - Data attached to the event that can be
--   used by the decider in subsequent decision tasks. This data isn't sent
--   to the activity.</li>
--   <li><a>scweieaTagList</a> - The list of tags to associated with the
--   child workflow execution.</li>
--   <li><a>scweieaTaskStartToCloseTimeout</a> - The maximum duration
--   allowed for the decision tasks for this workflow execution. The
--   duration is specified in seconds, an integer greater than or equal to
--   <tt>0</tt> . You can use <tt>NONE</tt> to specify unlimited
--   duration.</li>
--   <li><a>scweieaLambdaRole</a> - The IAM role to attach to the child
--   workflow execution.</li>
--   <li><a>scweieaInput</a> - The inputs provided to the child workflow
--   execution.</li>
--   <li><a>scweieaExecutionStartToCloseTimeout</a> - The maximum duration
--   for the child workflow execution. If the workflow execution isn't
--   closed within this duration, it is timed out and force-terminated. The
--   duration is specified in seconds, an integer greater than or equal to
--   <tt>0</tt> . You can use <tt>NONE</tt> to specify unlimited
--   duration.</li>
--   <li><a>scweieaTaskPriority</a> - The priority assigned for the
--   decision tasks for this workflow execution. Valid values are integers
--   that range from Java's <tt>Integer.MIN_VALUE</tt> (-2147483648) to
--   <tt>Integer.MAX_VALUE</tt> (2147483647). Higher numbers indicate
--   higher priority. For more information about setting task priority, see
--   <a>Setting Task Priority</a> in the <i>Amazon SWF Developer Guide</i>
--   .</li>
--   <li><a>scweieaWorkflowId</a> - The <tt>workflowId</tt> of the child
--   workflow execution.</li>
--   <li><a>scweieaWorkflowType</a> - The type of the child workflow
--   execution.</li>
--   <li><a>scweieaTaskList</a> - The name of the task list used for the
--   decision tasks of the child workflow execution.</li>
--   <li><a>scweieaDecisionTaskCompletedEventId</a> - The ID of the
--   <tt>DecisionTaskCompleted</tt> event corresponding to the decision
--   task that resulted in the <tt>StartChildWorkflowExecution</tt>
--   <a>Decision</a> to request this child workflow execution. This
--   information can be useful for diagnosing problems by tracing back the
--   cause of events.</li>
--   <li><a>scweieaChildPolicy</a> - The policy to use for the child
--   workflow executions if this execution gets terminated by explicitly
--   calling the <tt>TerminateWorkflowExecution</tt> action or due to an
--   expired timeout. The supported child policies are: *
--   <tt>TERMINATE</tt> – The child executions are terminated. *
--   <tt>REQUEST_CANCEL</tt> – A request to cancel is attempted for each
--   child execution by recording a
--   <tt>WorkflowExecutionCancelRequested</tt> event in its history. It is
--   up to the decider to take appropriate actions when it receives an
--   execution history with this event. * <tt>ABANDON</tt> – No action is
--   taken. The child executions continue to run.</li>
--   </ul>
startChildWorkflowExecutionInitiatedEventAttributes :: Text -> WorkflowType -> TaskList -> Integer -> ChildPolicy -> StartChildWorkflowExecutionInitiatedEventAttributes

-- | Data attached to the event that can be used by the decider in
--   subsequent decision tasks. This data isn't sent to the activity.
scweieaControl :: Lens' StartChildWorkflowExecutionInitiatedEventAttributes (Maybe Text)

-- | The list of tags to associated with the child workflow execution.
scweieaTagList :: Lens' StartChildWorkflowExecutionInitiatedEventAttributes [Text]

-- | The maximum duration allowed for the decision tasks for this workflow
--   execution. The duration is specified in seconds, an integer greater
--   than or equal to <tt>0</tt> . You can use <tt>NONE</tt> to specify
--   unlimited duration.
scweieaTaskStartToCloseTimeout :: Lens' StartChildWorkflowExecutionInitiatedEventAttributes (Maybe Text)

-- | The IAM role to attach to the child workflow execution.
scweieaLambdaRole :: Lens' StartChildWorkflowExecutionInitiatedEventAttributes (Maybe Text)

-- | The inputs provided to the child workflow execution.
scweieaInput :: Lens' StartChildWorkflowExecutionInitiatedEventAttributes (Maybe Text)

-- | The maximum duration for the child workflow execution. If the workflow
--   execution isn't closed within this duration, it is timed out and
--   force-terminated. The duration is specified in seconds, an integer
--   greater than or equal to <tt>0</tt> . You can use <tt>NONE</tt> to
--   specify unlimited duration.
scweieaExecutionStartToCloseTimeout :: Lens' StartChildWorkflowExecutionInitiatedEventAttributes (Maybe Text)

-- | The priority assigned for the decision tasks for this workflow
--   execution. Valid values are integers that range from Java's
--   <tt>Integer.MIN_VALUE</tt> (-2147483648) to <tt>Integer.MAX_VALUE</tt>
--   (2147483647). Higher numbers indicate higher priority. For more
--   information about setting task priority, see <a>Setting Task
--   Priority</a> in the <i>Amazon SWF Developer Guide</i> .
scweieaTaskPriority :: Lens' StartChildWorkflowExecutionInitiatedEventAttributes (Maybe Text)

-- | The <tt>workflowId</tt> of the child workflow execution.
scweieaWorkflowId :: Lens' StartChildWorkflowExecutionInitiatedEventAttributes Text

-- | The type of the child workflow execution.
scweieaWorkflowType :: Lens' StartChildWorkflowExecutionInitiatedEventAttributes WorkflowType

-- | The name of the task list used for the decision tasks of the child
--   workflow execution.
scweieaTaskList :: Lens' StartChildWorkflowExecutionInitiatedEventAttributes TaskList

-- | The ID of the <tt>DecisionTaskCompleted</tt> event corresponding to
--   the decision task that resulted in the
--   <tt>StartChildWorkflowExecution</tt> <a>Decision</a> to request this
--   child workflow execution. This information can be useful for
--   diagnosing problems by tracing back the cause of events.
scweieaDecisionTaskCompletedEventId :: Lens' StartChildWorkflowExecutionInitiatedEventAttributes Integer

-- | The policy to use for the child workflow executions if this execution
--   gets terminated by explicitly calling the
--   <tt>TerminateWorkflowExecution</tt> action or due to an expired
--   timeout. The supported child policies are: * <tt>TERMINATE</tt> – The
--   child executions are terminated. * <tt>REQUEST_CANCEL</tt> – A request
--   to cancel is attempted for each child execution by recording a
--   <tt>WorkflowExecutionCancelRequested</tt> event in its history. It is
--   up to the decider to take appropriate actions when it receives an
--   execution history with this event. * <tt>ABANDON</tt> – No action is
--   taken. The child executions continue to run.
scweieaChildPolicy :: Lens' StartChildWorkflowExecutionInitiatedEventAttributes ChildPolicy

-- | Provides the details of the <tt>StartLambdaFunctionFailed</tt> event.
--   It isn't set for other event types.
--   
--   <i>See:</i> <a>startLambdaFunctionFailedEventAttributes</a> smart
--   constructor.
data StartLambdaFunctionFailedEventAttributes

-- | Creates a value of <a>StartLambdaFunctionFailedEventAttributes</a>
--   with the minimum fields required to make a request.
--   
--   Use one of the following lenses to modify other fields as desired:
--   
--   <ul>
--   <li><a>sScheduledEventId</a> - The ID of the
--   <tt>ActivityTaskScheduled</tt> event that was recorded when this
--   activity task was scheduled. To help diagnose issues, use this
--   information to trace back the chain of events leading up to this
--   event.</li>
--   <li><a>sCause</a> - The cause of the failure. To help diagnose issues,
--   use this information to trace back the chain of events leading up to
--   this event.</li>
--   <li><a>sMessage</a> - A description that can help diagnose the cause
--   of the fault.</li>
--   </ul>
startLambdaFunctionFailedEventAttributes :: StartLambdaFunctionFailedEventAttributes

-- | The ID of the <tt>ActivityTaskScheduled</tt> event that was recorded
--   when this activity task was scheduled. To help diagnose issues, use
--   this information to trace back the chain of events leading up to this
--   event.
sScheduledEventId :: Lens' StartLambdaFunctionFailedEventAttributes (Maybe Integer)

-- | The cause of the failure. To help diagnose issues, use this
--   information to trace back the chain of events leading up to this
--   event.
sCause :: Lens' StartLambdaFunctionFailedEventAttributes (Maybe StartLambdaFunctionFailedCause)

-- | A description that can help diagnose the cause of the fault.
sMessage :: Lens' StartLambdaFunctionFailedEventAttributes (Maybe Text)

-- | Provides the details of the <tt>StartTimer</tt> decision.
--   
--   <b>Access Control</b>
--   
--   You can use IAM policies to control this decision's access to Amazon
--   SWF resources as follows:
--   
--   <ul>
--   <li>Use a <tt>Resource</tt> element with the domain name to limit the
--   action to only specified domains.</li>
--   <li>Use an <tt>Action</tt> element to allow or deny permission to call
--   this action.</li>
--   <li>You cannot use an IAM policy to constrain this action's
--   parameters.</li>
--   </ul>
--   
--   If the caller doesn't have sufficient permissions to invoke the
--   action, or the parameter values fall outside the specified
--   constraints, the action fails. The associated event attribute's
--   <tt>cause</tt> parameter is set to <tt>OPERATION_NOT_PERMITTED</tt> .
--   For details and example IAM policies, see <a>Using IAM to Manage
--   Access to Amazon SWF Workflows</a> in the <i>Amazon SWF Developer
--   Guide</i> .
--   
--   <i>See:</i> <a>startTimerDecisionAttributes</a> smart constructor.
data StartTimerDecisionAttributes

-- | Creates a value of <a>StartTimerDecisionAttributes</a> with the
--   minimum fields required to make a request.
--   
--   Use one of the following lenses to modify other fields as desired:
--   
--   <ul>
--   <li><a>stdaControl</a> - The data attached to the event that can be
--   used by the decider in subsequent workflow tasks.</li>
--   <li><a>stdaTimerId</a> - The unique ID of the timer. The specified
--   string must not start or end with whitespace. It must not contain a
--   <tt>:</tt> (colon), <tt>/</tt> (slash), <tt>|</tt> (vertical bar), or
--   any control characters (<tt>u0000-u001f</tt> | <tt>u007f-u009f</tt> ).
--   Also, it must not contain the literal string <tt>arn</tt> .</li>
--   <li><a>stdaStartToFireTimeout</a> - The duration to wait before firing
--   the timer. The duration is specified in seconds, an integer greater
--   than or equal to <tt>0</tt> .</li>
--   </ul>
startTimerDecisionAttributes :: Text -> Text -> StartTimerDecisionAttributes

-- | The data attached to the event that can be used by the decider in
--   subsequent workflow tasks.
stdaControl :: Lens' StartTimerDecisionAttributes (Maybe Text)

-- | The unique ID of the timer. The specified string must not start or end
--   with whitespace. It must not contain a <tt>:</tt> (colon), <tt>/</tt>
--   (slash), <tt>|</tt> (vertical bar), or any control characters
--   (<tt>u0000-u001f</tt> | <tt>u007f-u009f</tt> ). Also, it must not
--   contain the literal string <tt>arn</tt> .
stdaTimerId :: Lens' StartTimerDecisionAttributes Text

-- | The duration to wait before firing the timer. The duration is
--   specified in seconds, an integer greater than or equal to <tt>0</tt> .
stdaStartToFireTimeout :: Lens' StartTimerDecisionAttributes Text

-- | Provides the details of the <tt>StartTimerFailed</tt> event.
--   
--   <i>See:</i> <a>startTimerFailedEventAttributes</a> smart constructor.
data StartTimerFailedEventAttributes

-- | Creates a value of <a>StartTimerFailedEventAttributes</a> with the
--   minimum fields required to make a request.
--   
--   Use one of the following lenses to modify other fields as desired:
--   
--   <ul>
--   <li><a>stfeaTimerId</a> - The timerId provided in the
--   <tt>StartTimer</tt> decision that failed.</li>
--   <li><a>stfeaCause</a> - The cause of the failure. This information is
--   generated by the system and can be useful for diagnostic
--   purposes.</li>
--   <li><a>stfeaDecisionTaskCompletedEventId</a> - The ID of the
--   <tt>DecisionTaskCompleted</tt> event corresponding to the decision
--   task that resulted in the <tt>StartTimer</tt> decision for this
--   activity task. This information can be useful for diagnosing problems
--   by tracing back the chain of events leading up to this event.</li>
--   </ul>
startTimerFailedEventAttributes :: Text -> StartTimerFailedCause -> Integer -> StartTimerFailedEventAttributes

-- | The timerId provided in the <tt>StartTimer</tt> decision that failed.
stfeaTimerId :: Lens' StartTimerFailedEventAttributes Text

-- | The cause of the failure. This information is generated by the system
--   and can be useful for diagnostic purposes.
stfeaCause :: Lens' StartTimerFailedEventAttributes StartTimerFailedCause

-- | The ID of the <tt>DecisionTaskCompleted</tt> event corresponding to
--   the decision task that resulted in the <tt>StartTimer</tt> decision
--   for this activity task. This information can be useful for diagnosing
--   problems by tracing back the chain of events leading up to this event.
stfeaDecisionTaskCompletedEventId :: Lens' StartTimerFailedEventAttributes Integer

-- | Used to filter the workflow executions in visibility APIs based on a
--   tag.
--   
--   <i>See:</i> <a>tagFilter</a> smart constructor.
data TagFilter

-- | Creates a value of <a>TagFilter</a> with the minimum fields required
--   to make a request.
--   
--   Use one of the following lenses to modify other fields as desired:
--   
--   <ul>
--   <li><a>tfTag</a> - Specifies the tag that must be associated with the
--   execution for it to meet the filter criteria.</li>
--   </ul>
tagFilter :: Text -> TagFilter

-- | Specifies the tag that must be associated with the execution for it to
--   meet the filter criteria.
tfTag :: Lens' TagFilter Text

-- | Represents a task list.
--   
--   <i>See:</i> <a>taskList</a> smart constructor.
data TaskList

-- | Creates a value of <a>TaskList</a> with the minimum fields required to
--   make a request.
--   
--   Use one of the following lenses to modify other fields as desired:
--   
--   <ul>
--   <li><a>tlName</a> - The name of the task list.</li>
--   </ul>
taskList :: Text -> TaskList

-- | The name of the task list.
tlName :: Lens' TaskList Text

-- | Provides the details of the <tt>TimerCanceled</tt> event.
--   
--   <i>See:</i> <a>timerCanceledEventAttributes</a> smart constructor.
data TimerCanceledEventAttributes

-- | Creates a value of <a>TimerCanceledEventAttributes</a> with the
--   minimum fields required to make a request.
--   
--   Use one of the following lenses to modify other fields as desired:
--   
--   <ul>
--   <li><a>tceaTimerId</a> - The unique ID of the timer that was
--   canceled.</li>
--   <li><a>tceaStartedEventId</a> - The ID of the <tt>TimerStarted</tt>
--   event that was recorded when this timer was started. This information
--   can be useful for diagnosing problems by tracing back the chain of
--   events leading up to this event.</li>
--   <li><a>tceaDecisionTaskCompletedEventId</a> - The ID of the
--   <tt>DecisionTaskCompleted</tt> event corresponding to the decision
--   task that resulted in the <tt>CancelTimer</tt> decision to cancel this
--   timer. This information can be useful for diagnosing problems by
--   tracing back the chain of events leading up to this event.</li>
--   </ul>
timerCanceledEventAttributes :: Text -> Integer -> Integer -> TimerCanceledEventAttributes

-- | The unique ID of the timer that was canceled.
tceaTimerId :: Lens' TimerCanceledEventAttributes Text

-- | The ID of the <tt>TimerStarted</tt> event that was recorded when this
--   timer was started. This information can be useful for diagnosing
--   problems by tracing back the chain of events leading up to this event.
tceaStartedEventId :: Lens' TimerCanceledEventAttributes Integer

-- | The ID of the <tt>DecisionTaskCompleted</tt> event corresponding to
--   the decision task that resulted in the <tt>CancelTimer</tt> decision
--   to cancel this timer. This information can be useful for diagnosing
--   problems by tracing back the chain of events leading up to this event.
tceaDecisionTaskCompletedEventId :: Lens' TimerCanceledEventAttributes Integer

-- | Provides the details of the <tt>TimerFired</tt> event.
--   
--   <i>See:</i> <a>timerFiredEventAttributes</a> smart constructor.
data TimerFiredEventAttributes

-- | Creates a value of <a>TimerFiredEventAttributes</a> with the minimum
--   fields required to make a request.
--   
--   Use one of the following lenses to modify other fields as desired:
--   
--   <ul>
--   <li><a>tfeaTimerId</a> - The unique ID of the timer that fired.</li>
--   <li><a>tfeaStartedEventId</a> - The ID of the <tt>TimerStarted</tt>
--   event that was recorded when this timer was started. This information
--   can be useful for diagnosing problems by tracing back the chain of
--   events leading up to this event.</li>
--   </ul>
timerFiredEventAttributes :: Text -> Integer -> TimerFiredEventAttributes

-- | The unique ID of the timer that fired.
tfeaTimerId :: Lens' TimerFiredEventAttributes Text

-- | The ID of the <tt>TimerStarted</tt> event that was recorded when this
--   timer was started. This information can be useful for diagnosing
--   problems by tracing back the chain of events leading up to this event.
tfeaStartedEventId :: Lens' TimerFiredEventAttributes Integer

-- | Provides the details of the <tt>TimerStarted</tt> event.
--   
--   <i>See:</i> <a>timerStartedEventAttributes</a> smart constructor.
data TimerStartedEventAttributes

-- | Creates a value of <a>TimerStartedEventAttributes</a> with the minimum
--   fields required to make a request.
--   
--   Use one of the following lenses to modify other fields as desired:
--   
--   <ul>
--   <li><a>tseaControl</a> - Data attached to the event that can be used
--   by the decider in subsequent workflow tasks.</li>
--   <li><a>tseaTimerId</a> - The unique ID of the timer that was
--   started.</li>
--   <li><a>tseaStartToFireTimeout</a> - The duration of time after which
--   the timer fires. The duration is specified in seconds, an integer
--   greater than or equal to <tt>0</tt> .</li>
--   <li><a>tseaDecisionTaskCompletedEventId</a> - The ID of the
--   <tt>DecisionTaskCompleted</tt> event corresponding to the decision
--   task that resulted in the <tt>StartTimer</tt> decision for this
--   activity task. This information can be useful for diagnosing problems
--   by tracing back the chain of events leading up to this event.</li>
--   </ul>
timerStartedEventAttributes :: Text -> Text -> Integer -> TimerStartedEventAttributes

-- | Data attached to the event that can be used by the decider in
--   subsequent workflow tasks.
tseaControl :: Lens' TimerStartedEventAttributes (Maybe Text)

-- | The unique ID of the timer that was started.
tseaTimerId :: Lens' TimerStartedEventAttributes Text

-- | The duration of time after which the timer fires. The duration is
--   specified in seconds, an integer greater than or equal to <tt>0</tt> .
tseaStartToFireTimeout :: Lens' TimerStartedEventAttributes Text

-- | The ID of the <tt>DecisionTaskCompleted</tt> event corresponding to
--   the decision task that resulted in the <tt>StartTimer</tt> decision
--   for this activity task. This information can be useful for diagnosing
--   problems by tracing back the chain of events leading up to this event.
tseaDecisionTaskCompletedEventId :: Lens' TimerStartedEventAttributes Integer

-- | Represents a workflow execution.
--   
--   <i>See:</i> <a>workflowExecution</a> smart constructor.
data WorkflowExecution

-- | Creates a value of <a>WorkflowExecution</a> with the minimum fields
--   required to make a request.
--   
--   Use one of the following lenses to modify other fields as desired:
--   
--   <ul>
--   <li><a>weWorkflowId</a> - The user defined identifier associated with
--   the workflow execution.</li>
--   <li><a>weRunId</a> - A system-generated unique identifier for the
--   workflow execution.</li>
--   </ul>
workflowExecution :: Text -> Text -> WorkflowExecution

-- | The user defined identifier associated with the workflow execution.
weWorkflowId :: Lens' WorkflowExecution Text

-- | A system-generated unique identifier for the workflow execution.
weRunId :: Lens' WorkflowExecution Text

-- | Provides the details of the <tt>WorkflowExecutionCancelRequested</tt>
--   event.
--   
--   <i>See:</i> <a>workflowExecutionCancelRequestedEventAttributes</a>
--   smart constructor.
data WorkflowExecutionCancelRequestedEventAttributes

-- | Creates a value of
--   <a>WorkflowExecutionCancelRequestedEventAttributes</a> with the
--   minimum fields required to make a request.
--   
--   Use one of the following lenses to modify other fields as desired:
--   
--   <ul>
--   <li><a>wecreaExternalWorkflowExecution</a> - The external workflow
--   execution for which the cancellation was requested.</li>
--   <li><a>wecreaExternalInitiatedEventId</a> - The ID of the
--   <tt>RequestCancelExternalWorkflowExecutionInitiated</tt> event
--   corresponding to the <tt>RequestCancelExternalWorkflowExecution</tt>
--   decision to cancel this workflow execution.The source event with this
--   ID can be found in the history of the source workflow execution. This
--   information can be useful for diagnosing problems by tracing back the
--   chain of events leading up to this event.</li>
--   <li><a>wecreaCause</a> - If set, indicates that the request to cancel
--   the workflow execution was automatically generated, and specifies the
--   cause. This happens if the parent workflow execution times out or is
--   terminated, and the child policy is set to cancel child
--   executions.</li>
--   </ul>
workflowExecutionCancelRequestedEventAttributes :: WorkflowExecutionCancelRequestedEventAttributes

-- | The external workflow execution for which the cancellation was
--   requested.
wecreaExternalWorkflowExecution :: Lens' WorkflowExecutionCancelRequestedEventAttributes (Maybe WorkflowExecution)

-- | The ID of the <tt>RequestCancelExternalWorkflowExecutionInitiated</tt>
--   event corresponding to the
--   <tt>RequestCancelExternalWorkflowExecution</tt> decision to cancel
--   this workflow execution.The source event with this ID can be found in
--   the history of the source workflow execution. This information can be
--   useful for diagnosing problems by tracing back the chain of events
--   leading up to this event.
wecreaExternalInitiatedEventId :: Lens' WorkflowExecutionCancelRequestedEventAttributes (Maybe Integer)

-- | If set, indicates that the request to cancel the workflow execution
--   was automatically generated, and specifies the cause. This happens if
--   the parent workflow execution times out or is terminated, and the
--   child policy is set to cancel child executions.
wecreaCause :: Lens' WorkflowExecutionCancelRequestedEventAttributes (Maybe WorkflowExecutionCancelRequestedCause)

-- | Provides the details of the <tt>WorkflowExecutionCanceled</tt> event.
--   
--   <i>See:</i> <a>workflowExecutionCanceledEventAttributes</a> smart
--   constructor.
data WorkflowExecutionCanceledEventAttributes

-- | Creates a value of <a>WorkflowExecutionCanceledEventAttributes</a>
--   with the minimum fields required to make a request.
--   
--   Use one of the following lenses to modify other fields as desired:
--   
--   <ul>
--   <li><a>wDetails</a> - The details of the cancellation.</li>
--   <li><a>wDecisionTaskCompletedEventId</a> - The ID of the
--   <tt>DecisionTaskCompleted</tt> event corresponding to the decision
--   task that resulted in the <tt>CancelWorkflowExecution</tt> decision
--   for this cancellation request. This information can be useful for
--   diagnosing problems by tracing back the chain of events leading up to
--   this event.</li>
--   </ul>
workflowExecutionCanceledEventAttributes :: Integer -> WorkflowExecutionCanceledEventAttributes

-- | The details of the cancellation.
wDetails :: Lens' WorkflowExecutionCanceledEventAttributes (Maybe Text)

-- | The ID of the <tt>DecisionTaskCompleted</tt> event corresponding to
--   the decision task that resulted in the
--   <tt>CancelWorkflowExecution</tt> decision for this cancellation
--   request. This information can be useful for diagnosing problems by
--   tracing back the chain of events leading up to this event.
wDecisionTaskCompletedEventId :: Lens' WorkflowExecutionCanceledEventAttributes Integer

-- | Provides the details of the <tt>WorkflowExecutionCompleted</tt> event.
--   
--   <i>See:</i> <a>workflowExecutionCompletedEventAttributes</a> smart
--   constructor.
data WorkflowExecutionCompletedEventAttributes

-- | Creates a value of <a>WorkflowExecutionCompletedEventAttributes</a>
--   with the minimum fields required to make a request.
--   
--   Use one of the following lenses to modify other fields as desired:
--   
--   <ul>
--   <li><a>weceaResult</a> - The result produced by the workflow execution
--   upon successful completion.</li>
--   <li><a>weceaDecisionTaskCompletedEventId</a> - The ID of the
--   <tt>DecisionTaskCompleted</tt> event corresponding to the decision
--   task that resulted in the <tt>CompleteWorkflowExecution</tt> decision
--   to complete this execution. This information can be useful for
--   diagnosing problems by tracing back the chain of events leading up to
--   this event.</li>
--   </ul>
workflowExecutionCompletedEventAttributes :: Integer -> WorkflowExecutionCompletedEventAttributes

-- | The result produced by the workflow execution upon successful
--   completion.
weceaResult :: Lens' WorkflowExecutionCompletedEventAttributes (Maybe Text)

-- | The ID of the <tt>DecisionTaskCompleted</tt> event corresponding to
--   the decision task that resulted in the
--   <tt>CompleteWorkflowExecution</tt> decision to complete this
--   execution. This information can be useful for diagnosing problems by
--   tracing back the chain of events leading up to this event.
weceaDecisionTaskCompletedEventId :: Lens' WorkflowExecutionCompletedEventAttributes Integer

-- | The configuration settings for a workflow execution including timeout
--   values, tasklist etc. These configuration settings are determined from
--   the defaults specified when registering the workflow type and those
--   specified when starting the workflow execution.
--   
--   <i>See:</i> <a>workflowExecutionConfiguration</a> smart constructor.
data WorkflowExecutionConfiguration

-- | Creates a value of <a>WorkflowExecutionConfiguration</a> with the
--   minimum fields required to make a request.
--   
--   Use one of the following lenses to modify other fields as desired:
--   
--   <ul>
--   <li><a>wecLambdaRole</a> - The IAM role attached to the child workflow
--   execution.</li>
--   <li><a>wecTaskPriority</a> - The priority assigned to decision tasks
--   for this workflow execution. Valid values are integers that range from
--   Java's <tt>Integer.MIN_VALUE</tt> (-2147483648) to
--   <tt>Integer.MAX_VALUE</tt> (2147483647). Higher numbers indicate
--   higher priority. For more information about setting task priority, see
--   <a>Setting Task Priority</a> in the <i>Amazon SWF Developer Guide</i>
--   .</li>
--   <li><a>wecTaskStartToCloseTimeout</a> - The maximum duration allowed
--   for decision tasks for this workflow execution. The duration is
--   specified in seconds, an integer greater than or equal to <tt>0</tt> .
--   You can use <tt>NONE</tt> to specify unlimited duration.</li>
--   <li><a>wecExecutionStartToCloseTimeout</a> - The total duration for
--   this workflow execution. The duration is specified in seconds, an
--   integer greater than or equal to <tt>0</tt> . You can use
--   <tt>NONE</tt> to specify unlimited duration.</li>
--   <li><a>wecTaskList</a> - The task list used for the decision tasks
--   generated for this workflow execution.</li>
--   <li><a>wecChildPolicy</a> - The policy to use for the child workflow
--   executions if this workflow execution is terminated, by calling the
--   <tt>TerminateWorkflowExecution</tt> action explicitly or due to an
--   expired timeout. The supported child policies are: *
--   <tt>TERMINATE</tt> – The child executions are terminated. *
--   <tt>REQUEST_CANCEL</tt> – A request to cancel is attempted for each
--   child execution by recording a
--   <tt>WorkflowExecutionCancelRequested</tt> event in its history. It is
--   up to the decider to take appropriate actions when it receives an
--   execution history with this event. * <tt>ABANDON</tt> – No action is
--   taken. The child executions continue to run.</li>
--   </ul>
workflowExecutionConfiguration :: Text -> Text -> TaskList -> ChildPolicy -> WorkflowExecutionConfiguration

-- | The IAM role attached to the child workflow execution.
wecLambdaRole :: Lens' WorkflowExecutionConfiguration (Maybe Text)

-- | The priority assigned to decision tasks for this workflow execution.
--   Valid values are integers that range from Java's
--   <tt>Integer.MIN_VALUE</tt> (-2147483648) to <tt>Integer.MAX_VALUE</tt>
--   (2147483647). Higher numbers indicate higher priority. For more
--   information about setting task priority, see <a>Setting Task
--   Priority</a> in the <i>Amazon SWF Developer Guide</i> .
wecTaskPriority :: Lens' WorkflowExecutionConfiguration (Maybe Text)

-- | The maximum duration allowed for decision tasks for this workflow
--   execution. The duration is specified in seconds, an integer greater
--   than or equal to <tt>0</tt> . You can use <tt>NONE</tt> to specify
--   unlimited duration.
wecTaskStartToCloseTimeout :: Lens' WorkflowExecutionConfiguration Text

-- | The total duration for this workflow execution. The duration is
--   specified in seconds, an integer greater than or equal to <tt>0</tt> .
--   You can use <tt>NONE</tt> to specify unlimited duration.
wecExecutionStartToCloseTimeout :: Lens' WorkflowExecutionConfiguration Text

-- | The task list used for the decision tasks generated for this workflow
--   execution.
wecTaskList :: Lens' WorkflowExecutionConfiguration TaskList

-- | The policy to use for the child workflow executions if this workflow
--   execution is terminated, by calling the
--   <tt>TerminateWorkflowExecution</tt> action explicitly or due to an
--   expired timeout. The supported child policies are: *
--   <tt>TERMINATE</tt> – The child executions are terminated. *
--   <tt>REQUEST_CANCEL</tt> – A request to cancel is attempted for each
--   child execution by recording a
--   <tt>WorkflowExecutionCancelRequested</tt> event in its history. It is
--   up to the decider to take appropriate actions when it receives an
--   execution history with this event. * <tt>ABANDON</tt> – No action is
--   taken. The child executions continue to run.
wecChildPolicy :: Lens' WorkflowExecutionConfiguration ChildPolicy

-- | Provides the details of the <tt>WorkflowExecutionContinuedAsNew</tt>
--   event.
--   
--   <i>See:</i> <a>workflowExecutionContinuedAsNewEventAttributes</a>
--   smart constructor.
data WorkflowExecutionContinuedAsNewEventAttributes

-- | Creates a value of
--   <a>WorkflowExecutionContinuedAsNewEventAttributes</a> with the minimum
--   fields required to make a request.
--   
--   Use one of the following lenses to modify other fields as desired:
--   
--   <ul>
--   <li><a>wecaneaTagList</a> - The list of tags associated with the new
--   workflow execution.</li>
--   <li><a>wecaneaTaskStartToCloseTimeout</a> - The maximum duration of
--   decision tasks for the new workflow execution. The duration is
--   specified in seconds, an integer greater than or equal to <tt>0</tt> .
--   You can use <tt>NONE</tt> to specify unlimited duration.</li>
--   <li><a>wecaneaLambdaRole</a> - The IAM role to attach to the new
--   (continued) workflow execution.</li>
--   <li><a>wecaneaInput</a> - The input provided to the new workflow
--   execution.</li>
--   <li><a>wecaneaExecutionStartToCloseTimeout</a> - The total duration
--   allowed for the new workflow execution. The duration is specified in
--   seconds, an integer greater than or equal to <tt>0</tt> . You can use
--   <tt>NONE</tt> to specify unlimited duration.</li>
--   <li><a>wecaneaTaskPriority</a> - The priority of the task to use for
--   the decisions of the new (continued) workflow execution.</li>
--   <li><a>wecaneaDecisionTaskCompletedEventId</a> - The ID of the
--   <tt>DecisionTaskCompleted</tt> event corresponding to the decision
--   task that resulted in the <tt>ContinueAsNewWorkflowExecution</tt>
--   decision that started this execution. This information can be useful
--   for diagnosing problems by tracing back the chain of events leading up
--   to this event.</li>
--   <li><a>wecaneaNewExecutionRunId</a> - The <tt>runId</tt> of the new
--   workflow execution.</li>
--   <li><a>wecaneaTaskList</a> - The task list to use for the decisions of
--   the new (continued) workflow execution.</li>
--   <li><a>wecaneaChildPolicy</a> - The policy to use for the child
--   workflow executions of the new execution if it is terminated by
--   calling the <tt>TerminateWorkflowExecution</tt> action explicitly or
--   due to an expired timeout. The supported child policies are: *
--   <tt>TERMINATE</tt> – The child executions are terminated. *
--   <tt>REQUEST_CANCEL</tt> – A request to cancel is attempted for each
--   child execution by recording a
--   <tt>WorkflowExecutionCancelRequested</tt> event in its history. It is
--   up to the decider to take appropriate actions when it receives an
--   execution history with this event. * <tt>ABANDON</tt> – No action is
--   taken. The child executions continue to run.</li>
--   <li><a>wecaneaWorkflowType</a> - The workflow type of this
--   execution.</li>
--   </ul>
workflowExecutionContinuedAsNewEventAttributes :: Integer -> Text -> TaskList -> ChildPolicy -> WorkflowType -> WorkflowExecutionContinuedAsNewEventAttributes

-- | The list of tags associated with the new workflow execution.
wecaneaTagList :: Lens' WorkflowExecutionContinuedAsNewEventAttributes [Text]

-- | The maximum duration of decision tasks for the new workflow execution.
--   The duration is specified in seconds, an integer greater than or equal
--   to <tt>0</tt> . You can use <tt>NONE</tt> to specify unlimited
--   duration.
wecaneaTaskStartToCloseTimeout :: Lens' WorkflowExecutionContinuedAsNewEventAttributes (Maybe Text)

-- | The IAM role to attach to the new (continued) workflow execution.
wecaneaLambdaRole :: Lens' WorkflowExecutionContinuedAsNewEventAttributes (Maybe Text)

-- | The input provided to the new workflow execution.
wecaneaInput :: Lens' WorkflowExecutionContinuedAsNewEventAttributes (Maybe Text)

-- | The total duration allowed for the new workflow execution. The
--   duration is specified in seconds, an integer greater than or equal to
--   <tt>0</tt> . You can use <tt>NONE</tt> to specify unlimited duration.
wecaneaExecutionStartToCloseTimeout :: Lens' WorkflowExecutionContinuedAsNewEventAttributes (Maybe Text)

-- | The priority of the task to use for the decisions of the new
--   (continued) workflow execution.
wecaneaTaskPriority :: Lens' WorkflowExecutionContinuedAsNewEventAttributes (Maybe Text)

-- | The ID of the <tt>DecisionTaskCompleted</tt> event corresponding to
--   the decision task that resulted in the
--   <tt>ContinueAsNewWorkflowExecution</tt> decision that started this
--   execution. This information can be useful for diagnosing problems by
--   tracing back the chain of events leading up to this event.
wecaneaDecisionTaskCompletedEventId :: Lens' WorkflowExecutionContinuedAsNewEventAttributes Integer

-- | The <tt>runId</tt> of the new workflow execution.
wecaneaNewExecutionRunId :: Lens' WorkflowExecutionContinuedAsNewEventAttributes Text

-- | The task list to use for the decisions of the new (continued) workflow
--   execution.
wecaneaTaskList :: Lens' WorkflowExecutionContinuedAsNewEventAttributes TaskList

-- | The policy to use for the child workflow executions of the new
--   execution if it is terminated by calling the
--   <tt>TerminateWorkflowExecution</tt> action explicitly or due to an
--   expired timeout. The supported child policies are: *
--   <tt>TERMINATE</tt> – The child executions are terminated. *
--   <tt>REQUEST_CANCEL</tt> – A request to cancel is attempted for each
--   child execution by recording a
--   <tt>WorkflowExecutionCancelRequested</tt> event in its history. It is
--   up to the decider to take appropriate actions when it receives an
--   execution history with this event. * <tt>ABANDON</tt> – No action is
--   taken. The child executions continue to run.
wecaneaChildPolicy :: Lens' WorkflowExecutionContinuedAsNewEventAttributes ChildPolicy

-- | The workflow type of this execution.
wecaneaWorkflowType :: Lens' WorkflowExecutionContinuedAsNewEventAttributes WorkflowType

-- | Contains the count of workflow executions returned from
--   <tt>CountOpenWorkflowExecutions</tt> or
--   <tt>CountClosedWorkflowExecutions</tt>
--   
--   <i>See:</i> <a>workflowExecutionCount</a> smart constructor.
data WorkflowExecutionCount

-- | Creates a value of <a>WorkflowExecutionCount</a> with the minimum
--   fields required to make a request.
--   
--   Use one of the following lenses to modify other fields as desired:
--   
--   <ul>
--   <li><a>wecTruncated</a> - If set to true, indicates that the actual
--   count was more than the maximum supported by this API and the count
--   returned is the truncated value.</li>
--   <li><a>wecCount</a> - The number of workflow executions.</li>
--   </ul>
workflowExecutionCount :: Natural -> WorkflowExecutionCount

-- | If set to true, indicates that the actual count was more than the
--   maximum supported by this API and the count returned is the truncated
--   value.
wecTruncated :: Lens' WorkflowExecutionCount (Maybe Bool)

-- | The number of workflow executions.
wecCount :: Lens' WorkflowExecutionCount Natural

-- | Provides the details of the <tt>WorkflowExecutionFailed</tt> event.
--   
--   <i>See:</i> <a>workflowExecutionFailedEventAttributes</a> smart
--   constructor.
data WorkflowExecutionFailedEventAttributes

-- | Creates a value of <a>WorkflowExecutionFailedEventAttributes</a> with
--   the minimum fields required to make a request.
--   
--   Use one of the following lenses to modify other fields as desired:
--   
--   <ul>
--   <li><a>wefeaReason</a> - The descriptive reason provided for the
--   failure.</li>
--   <li><a>wefeaDetails</a> - The details of the failure.</li>
--   <li><a>wefeaDecisionTaskCompletedEventId</a> - The ID of the
--   <tt>DecisionTaskCompleted</tt> event corresponding to the decision
--   task that resulted in the <tt>FailWorkflowExecution</tt> decision to
--   fail this execution. This information can be useful for diagnosing
--   problems by tracing back the chain of events leading up to this
--   event.</li>
--   </ul>
workflowExecutionFailedEventAttributes :: Integer -> WorkflowExecutionFailedEventAttributes

-- | The descriptive reason provided for the failure.
wefeaReason :: Lens' WorkflowExecutionFailedEventAttributes (Maybe Text)

-- | The details of the failure.
wefeaDetails :: Lens' WorkflowExecutionFailedEventAttributes (Maybe Text)

-- | The ID of the <tt>DecisionTaskCompleted</tt> event corresponding to
--   the decision task that resulted in the <tt>FailWorkflowExecution</tt>
--   decision to fail this execution. This information can be useful for
--   diagnosing problems by tracing back the chain of events leading up to
--   this event.
wefeaDecisionTaskCompletedEventId :: Lens' WorkflowExecutionFailedEventAttributes Integer

-- | Used to filter the workflow executions in visibility APIs by their
--   <tt>workflowId</tt> .
--   
--   <i>See:</i> <a>workflowExecutionFilter</a> smart constructor.
data WorkflowExecutionFilter

-- | Creates a value of <a>WorkflowExecutionFilter</a> with the minimum
--   fields required to make a request.
--   
--   Use one of the following lenses to modify other fields as desired:
--   
--   <ul>
--   <li><a>wefWorkflowId</a> - The workflowId to pass of match the
--   criteria of this filter.</li>
--   </ul>
workflowExecutionFilter :: Text -> WorkflowExecutionFilter

-- | The workflowId to pass of match the criteria of this filter.
wefWorkflowId :: Lens' WorkflowExecutionFilter Text

-- | Contains information about a workflow execution.
--   
--   <i>See:</i> <a>workflowExecutionInfo</a> smart constructor.
data WorkflowExecutionInfo

-- | Creates a value of <a>WorkflowExecutionInfo</a> with the minimum
--   fields required to make a request.
--   
--   Use one of the following lenses to modify other fields as desired:
--   
--   <ul>
--   <li><a>weiParent</a> - If this workflow execution is a child of
--   another execution then contains the workflow execution that started
--   this execution.</li>
--   <li><a>weiTagList</a> - The list of tags associated with the workflow
--   execution. Tags can be used to identify and list workflow executions
--   of interest through the visibility APIs. A workflow execution can have
--   a maximum of 5 tags.</li>
--   <li><a>weiCloseStatus</a> - If the execution status is closed then
--   this specifies how the execution was closed: * <tt>COMPLETED</tt> –
--   the execution was successfully completed. * <tt>CANCELED</tt> – the
--   execution was canceled.Cancellation allows the implementation to
--   gracefully clean up before the execution is closed. *
--   <tt>TERMINATED</tt> – the execution was force terminated. *
--   <tt>FAILED</tt> – the execution failed to complete. *
--   <tt>TIMED_OUT</tt> – the execution did not complete in the alloted
--   time and was automatically timed out. * <tt>CONTINUED_AS_NEW</tt> –
--   the execution is logically continued. This means the current execution
--   was completed and a new execution was started to carry on the
--   workflow.</li>
--   <li><a>weiCloseTimestamp</a> - The time when the workflow execution
--   was closed. Set only if the execution status is CLOSED.</li>
--   <li><a>weiCancelRequested</a> - Set to true if a cancellation is
--   requested for this workflow execution.</li>
--   <li><a>weiExecution</a> - The workflow execution this information is
--   about.</li>
--   <li><a>weiWorkflowType</a> - The type of the workflow execution.</li>
--   <li><a>weiStartTimestamp</a> - The time when the execution was
--   started.</li>
--   <li><a>weiExecutionStatus</a> - The current status of the
--   execution.</li>
--   </ul>
workflowExecutionInfo :: WorkflowExecution -> WorkflowType -> UTCTime -> ExecutionStatus -> WorkflowExecutionInfo

-- | If this workflow execution is a child of another execution then
--   contains the workflow execution that started this execution.
weiParent :: Lens' WorkflowExecutionInfo (Maybe WorkflowExecution)

-- | The list of tags associated with the workflow execution. Tags can be
--   used to identify and list workflow executions of interest through the
--   visibility APIs. A workflow execution can have a maximum of 5 tags.
weiTagList :: Lens' WorkflowExecutionInfo [Text]

-- | If the execution status is closed then this specifies how the
--   execution was closed: * <tt>COMPLETED</tt> – the execution was
--   successfully completed. * <tt>CANCELED</tt> – the execution was
--   canceled.Cancellation allows the implementation to gracefully clean up
--   before the execution is closed. * <tt>TERMINATED</tt> – the execution
--   was force terminated. * <tt>FAILED</tt> – the execution failed to
--   complete. * <tt>TIMED_OUT</tt> – the execution did not complete in the
--   alloted time and was automatically timed out. *
--   <tt>CONTINUED_AS_NEW</tt> – the execution is logically continued. This
--   means the current execution was completed and a new execution was
--   started to carry on the workflow.
weiCloseStatus :: Lens' WorkflowExecutionInfo (Maybe CloseStatus)

-- | The time when the workflow execution was closed. Set only if the
--   execution status is CLOSED.
weiCloseTimestamp :: Lens' WorkflowExecutionInfo (Maybe UTCTime)

-- | Set to true if a cancellation is requested for this workflow
--   execution.
weiCancelRequested :: Lens' WorkflowExecutionInfo (Maybe Bool)

-- | The workflow execution this information is about.
weiExecution :: Lens' WorkflowExecutionInfo WorkflowExecution

-- | The type of the workflow execution.
weiWorkflowType :: Lens' WorkflowExecutionInfo WorkflowType

-- | The time when the execution was started.
weiStartTimestamp :: Lens' WorkflowExecutionInfo UTCTime

-- | The current status of the execution.
weiExecutionStatus :: Lens' WorkflowExecutionInfo ExecutionStatus

-- | Contains a paginated list of information about workflow executions.
--   
--   <i>See:</i> <a>workflowExecutionInfos</a> smart constructor.
data WorkflowExecutionInfos

-- | Creates a value of <a>WorkflowExecutionInfos</a> with the minimum
--   fields required to make a request.
--   
--   Use one of the following lenses to modify other fields as desired:
--   
--   <ul>
--   <li><a>weiNextPageToken</a> - If a <tt>NextPageToken</tt> was returned
--   by a previous call, there are more results available. To retrieve the
--   next page of results, make the call again using the returned token in
--   <tt>nextPageToken</tt> . Keep all other arguments unchanged. The
--   configured <tt>maximumPageSize</tt> determines how many results can be
--   returned in a single call.</li>
--   <li><a>weiExecutionInfos</a> - The list of workflow information
--   structures.</li>
--   </ul>
workflowExecutionInfos :: WorkflowExecutionInfos

-- | If a <tt>NextPageToken</tt> was returned by a previous call, there are
--   more results available. To retrieve the next page of results, make the
--   call again using the returned token in <tt>nextPageToken</tt> . Keep
--   all other arguments unchanged. The configured <tt>maximumPageSize</tt>
--   determines how many results can be returned in a single call.
weiNextPageToken :: Lens' WorkflowExecutionInfos (Maybe Text)

-- | The list of workflow information structures.
weiExecutionInfos :: Lens' WorkflowExecutionInfos [WorkflowExecutionInfo]

-- | Contains the counts of open tasks, child workflow executions and
--   timers for a workflow execution.
--   
--   <i>See:</i> <a>workflowExecutionOpenCounts</a> smart constructor.
data WorkflowExecutionOpenCounts

-- | Creates a value of <a>WorkflowExecutionOpenCounts</a> with the minimum
--   fields required to make a request.
--   
--   Use one of the following lenses to modify other fields as desired:
--   
--   <ul>
--   <li><a>weocOpenLambdaFunctions</a> - The count of Lambda tasks whose
--   status is <tt>OPEN</tt> .</li>
--   <li><a>weocOpenActivityTasks</a> - The count of activity tasks whose
--   status is <tt>OPEN</tt> .</li>
--   <li><a>weocOpenDecisionTasks</a> - The count of decision tasks whose
--   status is OPEN. A workflow execution can have at most one open
--   decision task.</li>
--   <li><a>weocOpenTimers</a> - The count of timers started by this
--   workflow execution that have not fired yet.</li>
--   <li><a>weocOpenChildWorkflowExecutions</a> - The count of child
--   workflow executions whose status is <tt>OPEN</tt> .</li>
--   </ul>
workflowExecutionOpenCounts :: Natural -> Natural -> Natural -> Natural -> WorkflowExecutionOpenCounts

-- | The count of Lambda tasks whose status is <tt>OPEN</tt> .
weocOpenLambdaFunctions :: Lens' WorkflowExecutionOpenCounts (Maybe Natural)

-- | The count of activity tasks whose status is <tt>OPEN</tt> .
weocOpenActivityTasks :: Lens' WorkflowExecutionOpenCounts Natural

-- | The count of decision tasks whose status is OPEN. A workflow execution
--   can have at most one open decision task.
weocOpenDecisionTasks :: Lens' WorkflowExecutionOpenCounts Natural

-- | The count of timers started by this workflow execution that have not
--   fired yet.
weocOpenTimers :: Lens' WorkflowExecutionOpenCounts Natural

-- | The count of child workflow executions whose status is <tt>OPEN</tt> .
weocOpenChildWorkflowExecutions :: Lens' WorkflowExecutionOpenCounts Natural

-- | Provides the details of the <tt>WorkflowExecutionSignaled</tt> event.
--   
--   <i>See:</i> <a>workflowExecutionSignaledEventAttributes</a> smart
--   constructor.
data WorkflowExecutionSignaledEventAttributes

-- | Creates a value of <a>WorkflowExecutionSignaledEventAttributes</a>
--   with the minimum fields required to make a request.
--   
--   Use one of the following lenses to modify other fields as desired:
--   
--   <ul>
--   <li><a>wExternalWorkflowExecution</a> - The workflow execution that
--   sent the signal. This is set only of the signal was sent by another
--   workflow execution.</li>
--   <li><a>wExternalInitiatedEventId</a> - The ID of the
--   <tt>SignalExternalWorkflowExecutionInitiated</tt> event corresponding
--   to the <tt>SignalExternalWorkflow</tt> decision to signal this
--   workflow execution.The source event with this ID can be found in the
--   history of the source workflow execution. This information can be
--   useful for diagnosing problems by tracing back the chain of events
--   leading up to this event. This field is set only if the signal was
--   initiated by another workflow execution.</li>
--   <li><a>wInput</a> - The inputs provided with the signal. The decider
--   can use the signal name and inputs to determine how to process the
--   signal.</li>
--   <li><a>wSignalName</a> - The name of the signal received. The decider
--   can use the signal name and inputs to determine how to the process the
--   signal.</li>
--   </ul>
workflowExecutionSignaledEventAttributes :: Text -> WorkflowExecutionSignaledEventAttributes

-- | The workflow execution that sent the signal. This is set only of the
--   signal was sent by another workflow execution.
wExternalWorkflowExecution :: Lens' WorkflowExecutionSignaledEventAttributes (Maybe WorkflowExecution)

-- | The ID of the <tt>SignalExternalWorkflowExecutionInitiated</tt> event
--   corresponding to the <tt>SignalExternalWorkflow</tt> decision to
--   signal this workflow execution.The source event with this ID can be
--   found in the history of the source workflow execution. This
--   information can be useful for diagnosing problems by tracing back the
--   chain of events leading up to this event. This field is set only if
--   the signal was initiated by another workflow execution.
wExternalInitiatedEventId :: Lens' WorkflowExecutionSignaledEventAttributes (Maybe Integer)

-- | The inputs provided with the signal. The decider can use the signal
--   name and inputs to determine how to process the signal.
wInput :: Lens' WorkflowExecutionSignaledEventAttributes (Maybe Text)

-- | The name of the signal received. The decider can use the signal name
--   and inputs to determine how to the process the signal.
wSignalName :: Lens' WorkflowExecutionSignaledEventAttributes Text

-- | Provides details of <tt>WorkflowExecutionStarted</tt> event.
--   
--   <i>See:</i> <a>workflowExecutionStartedEventAttributes</a> smart
--   constructor.
data WorkflowExecutionStartedEventAttributes

-- | Creates a value of <a>WorkflowExecutionStartedEventAttributes</a> with
--   the minimum fields required to make a request.
--   
--   Use one of the following lenses to modify other fields as desired:
--   
--   <ul>
--   <li><a>weseaParentInitiatedEventId</a> - The ID of the
--   <tt>StartChildWorkflowExecutionInitiated</tt> event corresponding to
--   the <tt>StartChildWorkflowExecution</tt> <a>Decision</a> to start this
--   workflow execution. The source event with this ID can be found in the
--   history of the source workflow execution. This information can be
--   useful for diagnosing problems by tracing back the chain of events
--   leading up to this event.</li>
--   <li><a>weseaTagList</a> - The list of tags associated with this
--   workflow execution. An execution can have up to 5 tags.</li>
--   <li><a>weseaTaskStartToCloseTimeout</a> - The maximum duration of
--   decision tasks for this workflow type. The duration is specified in
--   seconds, an integer greater than or equal to <tt>0</tt> . You can use
--   <tt>NONE</tt> to specify unlimited duration.</li>
--   <li><a>weseaLambdaRole</a> - The IAM role attached to the workflow
--   execution.</li>
--   <li><a>weseaInput</a> - The input provided to the workflow
--   execution.</li>
--   <li><a>weseaExecutionStartToCloseTimeout</a> - The maximum duration
--   for this workflow execution. The duration is specified in seconds, an
--   integer greater than or equal to <tt>0</tt> . You can use
--   <tt>NONE</tt> to specify unlimited duration.</li>
--   <li><a>weseaTaskPriority</a> - The priority of the decision tasks in
--   the workflow execution.</li>
--   <li><a>weseaParentWorkflowExecution</a> - The source workflow
--   execution that started this workflow execution. The member isn't set
--   if the workflow execution was not started by a workflow.</li>
--   <li><a>weseaContinuedExecutionRunId</a> - If this workflow execution
--   was started due to a <tt>ContinueAsNewWorkflowExecution</tt> decision,
--   then it contains the <tt>runId</tt> of the previous workflow execution
--   that was closed and continued as this execution.</li>
--   <li><a>weseaChildPolicy</a> - The policy to use for the child workflow
--   executions if this workflow execution is terminated, by calling the
--   <tt>TerminateWorkflowExecution</tt> action explicitly or due to an
--   expired timeout. The supported child policies are: *
--   <tt>TERMINATE</tt> – The child executions are terminated. *
--   <tt>REQUEST_CANCEL</tt> – A request to cancel is attempted for each
--   child execution by recording a
--   <tt>WorkflowExecutionCancelRequested</tt> event in its history. It is
--   up to the decider to take appropriate actions when it receives an
--   execution history with this event. * <tt>ABANDON</tt> – No action is
--   taken. The child executions continue to run.</li>
--   <li><a>weseaTaskList</a> - The name of the task list for scheduling
--   the decision tasks for this workflow execution.</li>
--   <li><a>weseaWorkflowType</a> - The workflow type of this
--   execution.</li>
--   </ul>
workflowExecutionStartedEventAttributes :: ChildPolicy -> TaskList -> WorkflowType -> WorkflowExecutionStartedEventAttributes

-- | The ID of the <tt>StartChildWorkflowExecutionInitiated</tt> event
--   corresponding to the <tt>StartChildWorkflowExecution</tt>
--   <a>Decision</a> to start this workflow execution. The source event
--   with this ID can be found in the history of the source workflow
--   execution. This information can be useful for diagnosing problems by
--   tracing back the chain of events leading up to this event.
weseaParentInitiatedEventId :: Lens' WorkflowExecutionStartedEventAttributes (Maybe Integer)

-- | The list of tags associated with this workflow execution. An execution
--   can have up to 5 tags.
weseaTagList :: Lens' WorkflowExecutionStartedEventAttributes [Text]

-- | The maximum duration of decision tasks for this workflow type. The
--   duration is specified in seconds, an integer greater than or equal to
--   <tt>0</tt> . You can use <tt>NONE</tt> to specify unlimited duration.
weseaTaskStartToCloseTimeout :: Lens' WorkflowExecutionStartedEventAttributes (Maybe Text)

-- | The IAM role attached to the workflow execution.
weseaLambdaRole :: Lens' WorkflowExecutionStartedEventAttributes (Maybe Text)

-- | The input provided to the workflow execution.
weseaInput :: Lens' WorkflowExecutionStartedEventAttributes (Maybe Text)

-- | The maximum duration for this workflow execution. The duration is
--   specified in seconds, an integer greater than or equal to <tt>0</tt> .
--   You can use <tt>NONE</tt> to specify unlimited duration.
weseaExecutionStartToCloseTimeout :: Lens' WorkflowExecutionStartedEventAttributes (Maybe Text)

-- | The priority of the decision tasks in the workflow execution.
weseaTaskPriority :: Lens' WorkflowExecutionStartedEventAttributes (Maybe Text)

-- | The source workflow execution that started this workflow execution.
--   The member isn't set if the workflow execution was not started by a
--   workflow.
weseaParentWorkflowExecution :: Lens' WorkflowExecutionStartedEventAttributes (Maybe WorkflowExecution)

-- | If this workflow execution was started due to a
--   <tt>ContinueAsNewWorkflowExecution</tt> decision, then it contains the
--   <tt>runId</tt> of the previous workflow execution that was closed and
--   continued as this execution.
weseaContinuedExecutionRunId :: Lens' WorkflowExecutionStartedEventAttributes (Maybe Text)

-- | The policy to use for the child workflow executions if this workflow
--   execution is terminated, by calling the
--   <tt>TerminateWorkflowExecution</tt> action explicitly or due to an
--   expired timeout. The supported child policies are: *
--   <tt>TERMINATE</tt> – The child executions are terminated. *
--   <tt>REQUEST_CANCEL</tt> – A request to cancel is attempted for each
--   child execution by recording a
--   <tt>WorkflowExecutionCancelRequested</tt> event in its history. It is
--   up to the decider to take appropriate actions when it receives an
--   execution history with this event. * <tt>ABANDON</tt> – No action is
--   taken. The child executions continue to run.
weseaChildPolicy :: Lens' WorkflowExecutionStartedEventAttributes ChildPolicy

-- | The name of the task list for scheduling the decision tasks for this
--   workflow execution.
weseaTaskList :: Lens' WorkflowExecutionStartedEventAttributes TaskList

-- | The workflow type of this execution.
weseaWorkflowType :: Lens' WorkflowExecutionStartedEventAttributes WorkflowType

-- | Provides the details of the <tt>WorkflowExecutionTerminated</tt>
--   event.
--   
--   <i>See:</i> <a>workflowExecutionTerminatedEventAttributes</a> smart
--   constructor.
data WorkflowExecutionTerminatedEventAttributes

-- | Creates a value of <a>WorkflowExecutionTerminatedEventAttributes</a>
--   with the minimum fields required to make a request.
--   
--   Use one of the following lenses to modify other fields as desired:
--   
--   <ul>
--   <li><a>weteaCause</a> - If set, indicates that the workflow execution
--   was automatically terminated, and specifies the cause. This happens if
--   the parent workflow execution times out or is terminated and the child
--   policy is set to terminate child executions.</li>
--   <li><a>weteaReason</a> - The reason provided for the termination.</li>
--   <li><a>weteaDetails</a> - The details provided for the
--   termination.</li>
--   <li><a>weteaChildPolicy</a> - The policy used for the child workflow
--   executions of this workflow execution. The supported child policies
--   are: * <tt>TERMINATE</tt> – The child executions are terminated. *
--   <tt>REQUEST_CANCEL</tt> – A request to cancel is attempted for each
--   child execution by recording a
--   <tt>WorkflowExecutionCancelRequested</tt> event in its history. It is
--   up to the decider to take appropriate actions when it receives an
--   execution history with this event. * <tt>ABANDON</tt> – No action is
--   taken. The child executions continue to run.</li>
--   </ul>
workflowExecutionTerminatedEventAttributes :: ChildPolicy -> WorkflowExecutionTerminatedEventAttributes

-- | If set, indicates that the workflow execution was automatically
--   terminated, and specifies the cause. This happens if the parent
--   workflow execution times out or is terminated and the child policy is
--   set to terminate child executions.
weteaCause :: Lens' WorkflowExecutionTerminatedEventAttributes (Maybe WorkflowExecutionTerminatedCause)

-- | The reason provided for the termination.
weteaReason :: Lens' WorkflowExecutionTerminatedEventAttributes (Maybe Text)

-- | The details provided for the termination.
weteaDetails :: Lens' WorkflowExecutionTerminatedEventAttributes (Maybe Text)

-- | The policy used for the child workflow executions of this workflow
--   execution. The supported child policies are: * <tt>TERMINATE</tt> –
--   The child executions are terminated. * <tt>REQUEST_CANCEL</tt> – A
--   request to cancel is attempted for each child execution by recording a
--   <tt>WorkflowExecutionCancelRequested</tt> event in its history. It is
--   up to the decider to take appropriate actions when it receives an
--   execution history with this event. * <tt>ABANDON</tt> – No action is
--   taken. The child executions continue to run.
weteaChildPolicy :: Lens' WorkflowExecutionTerminatedEventAttributes ChildPolicy

-- | Provides the details of the <tt>WorkflowExecutionTimedOut</tt> event.
--   
--   <i>See:</i> <a>workflowExecutionTimedOutEventAttributes</a> smart
--   constructor.
data WorkflowExecutionTimedOutEventAttributes

-- | Creates a value of <a>WorkflowExecutionTimedOutEventAttributes</a>
--   with the minimum fields required to make a request.
--   
--   Use one of the following lenses to modify other fields as desired:
--   
--   <ul>
--   <li><a>wetoeaTimeoutType</a> - The type of timeout that caused this
--   event.</li>
--   <li><a>wetoeaChildPolicy</a> - The policy used for the child workflow
--   executions of this workflow execution. The supported child policies
--   are: * <tt>TERMINATE</tt> – The child executions are terminated. *
--   <tt>REQUEST_CANCEL</tt> – A request to cancel is attempted for each
--   child execution by recording a
--   <tt>WorkflowExecutionCancelRequested</tt> event in its history. It is
--   up to the decider to take appropriate actions when it receives an
--   execution history with this event. * <tt>ABANDON</tt> – No action is
--   taken. The child executions continue to run.</li>
--   </ul>
workflowExecutionTimedOutEventAttributes :: WorkflowExecutionTimeoutType -> ChildPolicy -> WorkflowExecutionTimedOutEventAttributes

-- | The type of timeout that caused this event.
wetoeaTimeoutType :: Lens' WorkflowExecutionTimedOutEventAttributes WorkflowExecutionTimeoutType

-- | The policy used for the child workflow executions of this workflow
--   execution. The supported child policies are: * <tt>TERMINATE</tt> –
--   The child executions are terminated. * <tt>REQUEST_CANCEL</tt> – A
--   request to cancel is attempted for each child execution by recording a
--   <tt>WorkflowExecutionCancelRequested</tt> event in its history. It is
--   up to the decider to take appropriate actions when it receives an
--   execution history with this event. * <tt>ABANDON</tt> – No action is
--   taken. The child executions continue to run.
wetoeaChildPolicy :: Lens' WorkflowExecutionTimedOutEventAttributes ChildPolicy

-- | Represents a workflow type.
--   
--   <i>See:</i> <a>workflowType</a> smart constructor.
data WorkflowType

-- | Creates a value of <a>WorkflowType</a> with the minimum fields
--   required to make a request.
--   
--   Use one of the following lenses to modify other fields as desired:
--   
--   <ul>
--   <li><a>wtName</a> - The name of the workflow type.</li>
--   <li><a>wtVersion</a> - The version of the workflow type.</li>
--   </ul>
workflowType :: Text -> Text -> WorkflowType

-- | The name of the workflow type.
wtName :: Lens' WorkflowType Text

-- | The version of the workflow type.
wtVersion :: Lens' WorkflowType Text

-- | The configuration settings of a workflow type.
--   
--   <i>See:</i> <a>workflowTypeConfiguration</a> smart constructor.
data WorkflowTypeConfiguration

-- | Creates a value of <a>WorkflowTypeConfiguration</a> with the minimum
--   fields required to make a request.
--   
--   Use one of the following lenses to modify other fields as desired:
--   
--   <ul>
--   <li><a>wtcDefaultLambdaRole</a> - The default IAM role attached to
--   this workflow type.</li>
--   <li><a>wtcDefaultChildPolicy</a> - The default policy to use for the
--   child workflow executions when a workflow execution of this type is
--   terminated, by calling the <tt>TerminateWorkflowExecution</tt> action
--   explicitly or due to an expired timeout. This default can be
--   overridden when starting a workflow execution using the
--   <tt>StartWorkflowExecution</tt> action or the
--   <tt>StartChildWorkflowExecution</tt> <a>Decision</a> . The supported
--   child policies are: * <tt>TERMINATE</tt> – The child executions are
--   terminated. * <tt>REQUEST_CANCEL</tt> – A request to cancel is
--   attempted for each child execution by recording a
--   <tt>WorkflowExecutionCancelRequested</tt> event in its history. It is
--   up to the decider to take appropriate actions when it receives an
--   execution history with this event. * <tt>ABANDON</tt> – No action is
--   taken. The child executions continue to run.</li>
--   <li><a>wtcDefaultTaskList</a> - The default task list, specified when
--   registering the workflow type, for decisions tasks scheduled for
--   workflow executions of this type. This default can be overridden when
--   starting a workflow execution using the
--   <tt>StartWorkflowExecution</tt> action or the
--   <tt>StartChildWorkflowExecution</tt> <a>Decision</a> .</li>
--   <li><a>wtcDefaultTaskPriority</a> - The default task priority,
--   specified when registering the workflow type, for all decision tasks
--   of this workflow type. This default can be overridden when starting a
--   workflow execution using the <tt>StartWorkflowExecution</tt> action or
--   the <tt>StartChildWorkflowExecution</tt> decision. Valid values are
--   integers that range from Java's <tt>Integer.MIN_VALUE</tt>
--   (-2147483648) to <tt>Integer.MAX_VALUE</tt> (2147483647). Higher
--   numbers indicate higher priority. For more information about setting
--   task priority, see <a>Setting Task Priority</a> in the <i>Amazon SWF
--   Developer Guide</i> .</li>
--   <li><a>wtcDefaultExecutionStartToCloseTimeout</a> - The default
--   maximum duration, specified when registering the workflow type, for
--   executions of this workflow type. This default can be overridden when
--   starting a workflow execution using the
--   <tt>StartWorkflowExecution</tt> action or the
--   <tt>StartChildWorkflowExecution</tt> <a>Decision</a> . The duration is
--   specified in seconds, an integer greater than or equal to <tt>0</tt> .
--   You can use <tt>NONE</tt> to specify unlimited duration.</li>
--   <li><a>wtcDefaultTaskStartToCloseTimeout</a> - The default maximum
--   duration, specified when registering the workflow type, that a
--   decision task for executions of this workflow type might take before
--   returning completion or failure. If the task doesn'tdo close in the
--   specified time then the task is automatically timed out and
--   rescheduled. If the decider eventually reports a completion or
--   failure, it is ignored. This default can be overridden when starting a
--   workflow execution using the <tt>StartWorkflowExecution</tt> action or
--   the <tt>StartChildWorkflowExecution</tt> <a>Decision</a> . The
--   duration is specified in seconds, an integer greater than or equal to
--   <tt>0</tt> . You can use <tt>NONE</tt> to specify unlimited
--   duration.</li>
--   </ul>
workflowTypeConfiguration :: WorkflowTypeConfiguration

-- | The default IAM role attached to this workflow type.
wtcDefaultLambdaRole :: Lens' WorkflowTypeConfiguration (Maybe Text)

-- | The default policy to use for the child workflow executions when a
--   workflow execution of this type is terminated, by calling the
--   <tt>TerminateWorkflowExecution</tt> action explicitly or due to an
--   expired timeout. This default can be overridden when starting a
--   workflow execution using the <tt>StartWorkflowExecution</tt> action or
--   the <tt>StartChildWorkflowExecution</tt> <a>Decision</a> . The
--   supported child policies are: * <tt>TERMINATE</tt> – The child
--   executions are terminated. * <tt>REQUEST_CANCEL</tt> – A request to
--   cancel is attempted for each child execution by recording a
--   <tt>WorkflowExecutionCancelRequested</tt> event in its history. It is
--   up to the decider to take appropriate actions when it receives an
--   execution history with this event. * <tt>ABANDON</tt> – No action is
--   taken. The child executions continue to run.
wtcDefaultChildPolicy :: Lens' WorkflowTypeConfiguration (Maybe ChildPolicy)

-- | The default task list, specified when registering the workflow type,
--   for decisions tasks scheduled for workflow executions of this type.
--   This default can be overridden when starting a workflow execution
--   using the <tt>StartWorkflowExecution</tt> action or the
--   <tt>StartChildWorkflowExecution</tt> <a>Decision</a> .
wtcDefaultTaskList :: Lens' WorkflowTypeConfiguration (Maybe TaskList)

-- | The default task priority, specified when registering the workflow
--   type, for all decision tasks of this workflow type. This default can
--   be overridden when starting a workflow execution using the
--   <tt>StartWorkflowExecution</tt> action or the
--   <tt>StartChildWorkflowExecution</tt> decision. Valid values are
--   integers that range from Java's <tt>Integer.MIN_VALUE</tt>
--   (-2147483648) to <tt>Integer.MAX_VALUE</tt> (2147483647). Higher
--   numbers indicate higher priority. For more information about setting
--   task priority, see <a>Setting Task Priority</a> in the <i>Amazon SWF
--   Developer Guide</i> .
wtcDefaultTaskPriority :: Lens' WorkflowTypeConfiguration (Maybe Text)

-- | The default maximum duration, specified when registering the workflow
--   type, for executions of this workflow type. This default can be
--   overridden when starting a workflow execution using the
--   <tt>StartWorkflowExecution</tt> action or the
--   <tt>StartChildWorkflowExecution</tt> <a>Decision</a> . The duration is
--   specified in seconds, an integer greater than or equal to <tt>0</tt> .
--   You can use <tt>NONE</tt> to specify unlimited duration.
wtcDefaultExecutionStartToCloseTimeout :: Lens' WorkflowTypeConfiguration (Maybe Text)

-- | The default maximum duration, specified when registering the workflow
--   type, that a decision task for executions of this workflow type might
--   take before returning completion or failure. If the task doesn'tdo
--   close in the specified time then the task is automatically timed out
--   and rescheduled. If the decider eventually reports a completion or
--   failure, it is ignored. This default can be overridden when starting a
--   workflow execution using the <tt>StartWorkflowExecution</tt> action or
--   the <tt>StartChildWorkflowExecution</tt> <a>Decision</a> . The
--   duration is specified in seconds, an integer greater than or equal to
--   <tt>0</tt> . You can use <tt>NONE</tt> to specify unlimited duration.
wtcDefaultTaskStartToCloseTimeout :: Lens' WorkflowTypeConfiguration (Maybe Text)

-- | Used to filter workflow execution query results by type. Each
--   parameter, if specified, defines a rule that must be satisfied by each
--   returned result.
--   
--   <i>See:</i> <a>workflowTypeFilter</a> smart constructor.
data WorkflowTypeFilter

-- | Creates a value of <a>WorkflowTypeFilter</a> with the minimum fields
--   required to make a request.
--   
--   Use one of the following lenses to modify other fields as desired:
--   
--   <ul>
--   <li><a>wtfVersion</a> - Version of the workflow type.</li>
--   <li><a>wtfName</a> - Name of the workflow type.</li>
--   </ul>
workflowTypeFilter :: Text -> WorkflowTypeFilter

-- | Version of the workflow type.
wtfVersion :: Lens' WorkflowTypeFilter (Maybe Text)

-- | Name of the workflow type.
wtfName :: Lens' WorkflowTypeFilter Text

-- | Contains information about a workflow type.
--   
--   <i>See:</i> <a>workflowTypeInfo</a> smart constructor.
data WorkflowTypeInfo

-- | Creates a value of <a>WorkflowTypeInfo</a> with the minimum fields
--   required to make a request.
--   
--   Use one of the following lenses to modify other fields as desired:
--   
--   <ul>
--   <li><a>wtiDeprecationDate</a> - If the type is in deprecated state,
--   then it is set to the date when the type was deprecated.</li>
--   <li><a>wtiDescription</a> - The description of the type registered
--   through <tt>RegisterWorkflowType</tt> .</li>
--   <li><a>wtiWorkflowType</a> - The workflow type this information is
--   about.</li>
--   <li><a>wtiStatus</a> - The current status of the workflow type.</li>
--   <li><a>wtiCreationDate</a> - The date when this type was
--   registered.</li>
--   </ul>
workflowTypeInfo :: WorkflowType -> RegistrationStatus -> UTCTime -> WorkflowTypeInfo

-- | If the type is in deprecated state, then it is set to the date when
--   the type was deprecated.
wtiDeprecationDate :: Lens' WorkflowTypeInfo (Maybe UTCTime)

-- | The description of the type registered through
--   <tt>RegisterWorkflowType</tt> .
wtiDescription :: Lens' WorkflowTypeInfo (Maybe Text)

-- | The workflow type this information is about.
wtiWorkflowType :: Lens' WorkflowTypeInfo WorkflowType

-- | The current status of the workflow type.
wtiStatus :: Lens' WorkflowTypeInfo RegistrationStatus

-- | The date when this type was registered.
wtiCreationDate :: Lens' WorkflowTypeInfo UTCTime


-- | Records a <tt>WorkflowExecutionTerminated</tt> event and forces
--   closure of the workflow execution identified by the given domain,
--   runId, and workflowId. The child policy, registered with the workflow
--   type or specified when starting this execution, is applied to any open
--   child workflow executions of this workflow execution.
--   
--   <i>Important:</i> If the identified workflow execution was in
--   progress, it is terminated immediately.
--   
--   <b>Access Control</b>
--   
--   You can use IAM policies to control this action's access to Amazon SWF
--   resources as follows:
--   
--   <ul>
--   <li>Use a <tt>Resource</tt> element with the domain name to limit the
--   action to only specified domains.</li>
--   <li>Use an <tt>Action</tt> element to allow or deny permission to call
--   this action.</li>
--   <li>You cannot use an IAM policy to constrain this action's
--   parameters.</li>
--   </ul>
--   
--   If the caller doesn't have sufficient permissions to invoke the
--   action, or the parameter values fall outside the specified
--   constraints, the action fails. The associated event attribute's
--   <tt>cause</tt> parameter is set to <tt>OPERATION_NOT_PERMITTED</tt> .
--   For details and example IAM policies, see <a>Using IAM to Manage
--   Access to Amazon SWF Workflows</a> in the <i>Amazon SWF Developer
--   Guide</i> .
module Network.AWS.SWF.TerminateWorkflowExecution

-- | Creates a value of <a>TerminateWorkflowExecution</a> with the minimum
--   fields required to make a request.
--   
--   Use one of the following lenses to modify other fields as desired:
--   
--   <ul>
--   <li><a>tweReason</a> - A descriptive reason for terminating the
--   workflow execution.</li>
--   <li><a>tweRunId</a> - The runId of the workflow execution to
--   terminate.</li>
--   <li><a>tweChildPolicy</a> - If set, specifies the policy to use for
--   the child workflow executions of the workflow execution being
--   terminated. This policy overrides the child policy specified for the
--   workflow execution at registration time or when starting the
--   execution. The supported child policies are: * <tt>TERMINATE</tt> –
--   The child executions are terminated. * <tt>REQUEST_CANCEL</tt> – A
--   request to cancel is attempted for each child execution by recording a
--   <tt>WorkflowExecutionCancelRequested</tt> event in its history. It is
--   up to the decider to take appropriate actions when it receives an
--   execution history with this event. * <tt>ABANDON</tt> – No action is
--   taken. The child executions continue to run.</li>
--   <li><a>tweDetails</a> - Details for terminating the workflow
--   execution.</li>
--   <li><a>tweDomain</a> - The domain of the workflow execution to
--   terminate.</li>
--   <li><a>tweWorkflowId</a> - The workflowId of the workflow execution to
--   terminate.</li>
--   </ul>
terminateWorkflowExecution :: Text -> Text -> TerminateWorkflowExecution

-- | <i>See:</i> <a>terminateWorkflowExecution</a> smart constructor.
data TerminateWorkflowExecution

-- | A descriptive reason for terminating the workflow execution.
tweReason :: Lens' TerminateWorkflowExecution (Maybe Text)

-- | The runId of the workflow execution to terminate.
tweRunId :: Lens' TerminateWorkflowExecution (Maybe Text)

-- | If set, specifies the policy to use for the child workflow executions
--   of the workflow execution being terminated. This policy overrides the
--   child policy specified for the workflow execution at registration time
--   or when starting the execution. The supported child policies are: *
--   <tt>TERMINATE</tt> – The child executions are terminated. *
--   <tt>REQUEST_CANCEL</tt> – A request to cancel is attempted for each
--   child execution by recording a
--   <tt>WorkflowExecutionCancelRequested</tt> event in its history. It is
--   up to the decider to take appropriate actions when it receives an
--   execution history with this event. * <tt>ABANDON</tt> – No action is
--   taken. The child executions continue to run.
tweChildPolicy :: Lens' TerminateWorkflowExecution (Maybe ChildPolicy)

-- | Details for terminating the workflow execution.
tweDetails :: Lens' TerminateWorkflowExecution (Maybe Text)

-- | The domain of the workflow execution to terminate.
tweDomain :: Lens' TerminateWorkflowExecution Text

-- | The workflowId of the workflow execution to terminate.
tweWorkflowId :: Lens' TerminateWorkflowExecution Text

-- | Creates a value of <a>TerminateWorkflowExecutionResponse</a> with the
--   minimum fields required to make a request.
terminateWorkflowExecutionResponse :: TerminateWorkflowExecutionResponse

-- | <i>See:</i> <a>terminateWorkflowExecutionResponse</a> smart
--   constructor.
data TerminateWorkflowExecutionResponse
instance GHC.Generics.Generic Network.AWS.SWF.TerminateWorkflowExecution.TerminateWorkflowExecutionResponse
instance Data.Data.Data Network.AWS.SWF.TerminateWorkflowExecution.TerminateWorkflowExecutionResponse
instance GHC.Show.Show Network.AWS.SWF.TerminateWorkflowExecution.TerminateWorkflowExecutionResponse
instance GHC.Read.Read Network.AWS.SWF.TerminateWorkflowExecution.TerminateWorkflowExecutionResponse
instance GHC.Classes.Eq Network.AWS.SWF.TerminateWorkflowExecution.TerminateWorkflowExecutionResponse
instance GHC.Generics.Generic Network.AWS.SWF.TerminateWorkflowExecution.TerminateWorkflowExecution
instance Data.Data.Data Network.AWS.SWF.TerminateWorkflowExecution.TerminateWorkflowExecution
instance GHC.Show.Show Network.AWS.SWF.TerminateWorkflowExecution.TerminateWorkflowExecution
instance GHC.Read.Read Network.AWS.SWF.TerminateWorkflowExecution.TerminateWorkflowExecution
instance GHC.Classes.Eq Network.AWS.SWF.TerminateWorkflowExecution.TerminateWorkflowExecution
instance Network.AWS.Types.AWSRequest Network.AWS.SWF.TerminateWorkflowExecution.TerminateWorkflowExecution
instance Control.DeepSeq.NFData Network.AWS.SWF.TerminateWorkflowExecution.TerminateWorkflowExecutionResponse
instance Data.Hashable.Class.Hashable Network.AWS.SWF.TerminateWorkflowExecution.TerminateWorkflowExecution
instance Control.DeepSeq.NFData Network.AWS.SWF.TerminateWorkflowExecution.TerminateWorkflowExecution
instance Network.AWS.Data.Headers.ToHeaders Network.AWS.SWF.TerminateWorkflowExecution.TerminateWorkflowExecution
instance Data.Aeson.Types.ToJSON.ToJSON Network.AWS.SWF.TerminateWorkflowExecution.TerminateWorkflowExecution
instance Network.AWS.Data.Path.ToPath Network.AWS.SWF.TerminateWorkflowExecution.TerminateWorkflowExecution
instance Network.AWS.Data.Query.ToQuery Network.AWS.SWF.TerminateWorkflowExecution.TerminateWorkflowExecution


-- | Starts an execution of the workflow type in the specified domain using
--   the provided <tt>workflowId</tt> and input data.
--   
--   This action returns the newly started workflow execution.
--   
--   <b>Access Control</b>
--   
--   You can use IAM policies to control this action's access to Amazon SWF
--   resources as follows:
--   
--   <ul>
--   <li>Use a <tt>Resource</tt> element with the domain name to limit the
--   action to only specified domains.</li>
--   <li>Use an <tt>Action</tt> element to allow or deny permission to call
--   this action.</li>
--   <li>Constrain the following parameters by using a <tt>Condition</tt>
--   element with the appropriate keys.</li>
--   <li><tt>tagList.member.0</tt> : The key is
--   <tt>swf:tagList.member.0</tt> .</li>
--   <li><tt>tagList.member.1</tt> : The key is
--   <tt>swf:tagList.member.1</tt> .</li>
--   <li><tt>tagList.member.2</tt> : The key is
--   <tt>swf:tagList.member.2</tt> .</li>
--   <li><tt>tagList.member.3</tt> : The key is
--   <tt>swf:tagList.member.3</tt> .</li>
--   <li><tt>tagList.member.4</tt> : The key is
--   <tt>swf:tagList.member.4</tt> .</li>
--   <li><tt>taskList</tt> : String constraint. The key is
--   <tt>swf:taskList.name</tt> .</li>
--   <li><tt>workflowType.name</tt> : String constraint. The key is
--   <tt>swf:workflowType.name</tt> .</li>
--   <li><tt>workflowType.version</tt> : String constraint. The key is
--   <tt>swf:workflowType.version</tt> .</li>
--   </ul>
--   
--   If the caller doesn't have sufficient permissions to invoke the
--   action, or the parameter values fall outside the specified
--   constraints, the action fails. The associated event attribute's
--   <tt>cause</tt> parameter is set to <tt>OPERATION_NOT_PERMITTED</tt> .
--   For details and example IAM policies, see <a>Using IAM to Manage
--   Access to Amazon SWF Workflows</a> in the <i>Amazon SWF Developer
--   Guide</i> .
module Network.AWS.SWF.StartWorkflowExecution

-- | Creates a value of <a>StartWorkflowExecution</a> with the minimum
--   fields required to make a request.
--   
--   Use one of the following lenses to modify other fields as desired:
--   
--   <ul>
--   <li><a>sTagList</a> - The list of tags to associate with the workflow
--   execution. You can specify a maximum of 5 tags. You can list workflow
--   executions with a specific tag by calling
--   <tt>ListOpenWorkflowExecutions</tt> or
--   <tt>ListClosedWorkflowExecutions</tt> and specifying a
--   <a>TagFilter</a> .</li>
--   <li><a>sTaskStartToCloseTimeout</a> - Specifies the maximum duration
--   of decision tasks for this workflow execution. This parameter
--   overrides the <tt>defaultTaskStartToCloseTimout</tt> specified when
--   registering the workflow type using <tt>RegisterWorkflowType</tt> .
--   The duration is specified in seconds, an integer greater than or equal
--   to <tt>0</tt> . You can use <tt>NONE</tt> to specify unlimited
--   duration.</li>
--   <li><a>sLambdaRole</a> - The IAM role to attach to this workflow
--   execution.</li>
--   <li><a>sInput</a> - The input for the workflow execution. This is a
--   free form string which should be meaningful to the workflow you are
--   starting. This <tt>input</tt> is made available to the new workflow
--   execution in the <tt>WorkflowExecutionStarted</tt> history event.</li>
--   <li><a>sExecutionStartToCloseTimeout</a> - The total duration for this
--   workflow execution. This overrides the
--   defaultExecutionStartToCloseTimeout specified when registering the
--   workflow type. The duration is specified in seconds; an integer
--   greater than or equal to <tt>0</tt> . Exceeding this limit causes the
--   workflow execution to time out. Unlike some of the other timeout
--   parameters in Amazon SWF, you cannot specify a value of <a>NONE</a>
--   for this timeout; there is a one-year max limit on the time that a
--   workflow execution can run.</li>
--   <li><a>sTaskList</a> - The task list to use for the decision tasks
--   generated for this workflow execution. This overrides the
--   <tt>defaultTaskList</tt> specified when registering the workflow type.
--   The specified string must not start or end with whitespace. It must
--   not contain a <tt>:</tt> (colon), <tt>/</tt> (slash), <tt>|</tt>
--   (vertical bar), or any control characters (<tt>u0000-u001f</tt> |
--   <tt>u007f-u009f</tt> ). Also, it must not contain the literal string
--   <tt>arn</tt> .</li>
--   <li><a>sTaskPriority</a> - The task priority to use for this workflow
--   execution. This overrides any default priority that was assigned when
--   the workflow type was registered. If not set, then the default task
--   priority for the workflow type is used. Valid values are integers that
--   range from Java's <tt>Integer.MIN_VALUE</tt> (-2147483648) to
--   <tt>Integer.MAX_VALUE</tt> (2147483647). Higher numbers indicate
--   higher priority. For more information about setting task priority, see
--   <a>Setting Task Priority</a> in the <i>Amazon SWF Developer Guide</i>
--   .</li>
--   <li><a>sChildPolicy</a> - If set, specifies the policy to use for the
--   child workflow executions of this workflow execution if it is
--   terminated, by calling the <tt>TerminateWorkflowExecution</tt> action
--   explicitly or due to an expired timeout. This policy overrides the
--   default child policy specified when registering the workflow type
--   using <tt>RegisterWorkflowType</tt> . The supported child policies
--   are: * <tt>TERMINATE</tt> – The child executions are terminated. *
--   <tt>REQUEST_CANCEL</tt> – A request to cancel is attempted for each
--   child execution by recording a
--   <tt>WorkflowExecutionCancelRequested</tt> event in its history. It is
--   up to the decider to take appropriate actions when it receives an
--   execution history with this event. * <tt>ABANDON</tt> – No action is
--   taken. The child executions continue to run.</li>
--   <li><a>sDomain</a> - The name of the domain in which the workflow
--   execution is created.</li>
--   <li><a>sWorkflowId</a> - The user defined identifier associated with
--   the workflow execution. You can use this to associate a custom
--   identifier with the workflow execution. You may specify the same
--   identifier if a workflow execution is logically a <i>restart</i> of a
--   previous execution. You cannot have two open workflow executions with
--   the same <tt>workflowId</tt> at the same time. The specified string
--   must not start or end with whitespace. It must not contain a
--   <tt>:</tt> (colon), <tt>/</tt> (slash), <tt>|</tt> (vertical bar), or
--   any control characters (<tt>u0000-u001f</tt> | <tt>u007f-u009f</tt> ).
--   Also, it must not contain the literal string <tt>arn</tt> .</li>
--   <li><a>sWorkflowType</a> - The type of the workflow to start.</li>
--   </ul>
startWorkflowExecution :: Text -> Text -> WorkflowType -> StartWorkflowExecution

-- | <i>See:</i> <a>startWorkflowExecution</a> smart constructor.
data StartWorkflowExecution

-- | The list of tags to associate with the workflow execution. You can
--   specify a maximum of 5 tags. You can list workflow executions with a
--   specific tag by calling <tt>ListOpenWorkflowExecutions</tt> or
--   <tt>ListClosedWorkflowExecutions</tt> and specifying a
--   <a>TagFilter</a> .
sTagList :: Lens' StartWorkflowExecution [Text]

-- | Specifies the maximum duration of decision tasks for this workflow
--   execution. This parameter overrides the
--   <tt>defaultTaskStartToCloseTimout</tt> specified when registering the
--   workflow type using <tt>RegisterWorkflowType</tt> . The duration is
--   specified in seconds, an integer greater than or equal to <tt>0</tt> .
--   You can use <tt>NONE</tt> to specify unlimited duration.
sTaskStartToCloseTimeout :: Lens' StartWorkflowExecution (Maybe Text)

-- | The IAM role to attach to this workflow execution.
sLambdaRole :: Lens' StartWorkflowExecution (Maybe Text)

-- | The input for the workflow execution. This is a free form string which
--   should be meaningful to the workflow you are starting. This
--   <tt>input</tt> is made available to the new workflow execution in the
--   <tt>WorkflowExecutionStarted</tt> history event.
sInput :: Lens' StartWorkflowExecution (Maybe Text)

-- | The total duration for this workflow execution. This overrides the
--   defaultExecutionStartToCloseTimeout specified when registering the
--   workflow type. The duration is specified in seconds; an integer
--   greater than or equal to <tt>0</tt> . Exceeding this limit causes the
--   workflow execution to time out. Unlike some of the other timeout
--   parameters in Amazon SWF, you cannot specify a value of <a>NONE</a>
--   for this timeout; there is a one-year max limit on the time that a
--   workflow execution can run.
sExecutionStartToCloseTimeout :: Lens' StartWorkflowExecution (Maybe Text)

-- | The task list to use for the decision tasks generated for this
--   workflow execution. This overrides the <tt>defaultTaskList</tt>
--   specified when registering the workflow type. The specified string
--   must not start or end with whitespace. It must not contain a
--   <tt>:</tt> (colon), <tt>/</tt> (slash), <tt>|</tt> (vertical bar), or
--   any control characters (<tt>u0000-u001f</tt> | <tt>u007f-u009f</tt> ).
--   Also, it must not contain the literal string <tt>arn</tt> .
sTaskList :: Lens' StartWorkflowExecution (Maybe TaskList)

-- | The task priority to use for this workflow execution. This overrides
--   any default priority that was assigned when the workflow type was
--   registered. If not set, then the default task priority for the
--   workflow type is used. Valid values are integers that range from
--   Java's <tt>Integer.MIN_VALUE</tt> (-2147483648) to
--   <tt>Integer.MAX_VALUE</tt> (2147483647). Higher numbers indicate
--   higher priority. For more information about setting task priority, see
--   <a>Setting Task Priority</a> in the <i>Amazon SWF Developer Guide</i>
--   .
sTaskPriority :: Lens' StartWorkflowExecution (Maybe Text)

-- | If set, specifies the policy to use for the child workflow executions
--   of this workflow execution if it is terminated, by calling the
--   <tt>TerminateWorkflowExecution</tt> action explicitly or due to an
--   expired timeout. This policy overrides the default child policy
--   specified when registering the workflow type using
--   <tt>RegisterWorkflowType</tt> . The supported child policies are: *
--   <tt>TERMINATE</tt> – The child executions are terminated. *
--   <tt>REQUEST_CANCEL</tt> – A request to cancel is attempted for each
--   child execution by recording a
--   <tt>WorkflowExecutionCancelRequested</tt> event in its history. It is
--   up to the decider to take appropriate actions when it receives an
--   execution history with this event. * <tt>ABANDON</tt> – No action is
--   taken. The child executions continue to run.
sChildPolicy :: Lens' StartWorkflowExecution (Maybe ChildPolicy)

-- | The name of the domain in which the workflow execution is created.
sDomain :: Lens' StartWorkflowExecution Text

-- | The user defined identifier associated with the workflow execution.
--   You can use this to associate a custom identifier with the workflow
--   execution. You may specify the same identifier if a workflow execution
--   is logically a <i>restart</i> of a previous execution. You cannot have
--   two open workflow executions with the same <tt>workflowId</tt> at the
--   same time. The specified string must not start or end with whitespace.
--   It must not contain a <tt>:</tt> (colon), <tt>/</tt> (slash),
--   <tt>|</tt> (vertical bar), or any control characters
--   (<tt>u0000-u001f</tt> | <tt>u007f-u009f</tt> ). Also, it must not
--   contain the literal string <tt>arn</tt> .
sWorkflowId :: Lens' StartWorkflowExecution Text

-- | The type of the workflow to start.
sWorkflowType :: Lens' StartWorkflowExecution WorkflowType

-- | Creates a value of <a>StartWorkflowExecutionResponse</a> with the
--   minimum fields required to make a request.
--   
--   Use one of the following lenses to modify other fields as desired:
--   
--   <ul>
--   <li><a>swersRunId</a> - The <tt>runId</tt> of a workflow execution.
--   This ID is generated by the service and can be used to uniquely
--   identify the workflow execution within a domain.</li>
--   <li><a>swersResponseStatus</a> - -- | The response status code.</li>
--   </ul>
startWorkflowExecutionResponse :: Int -> StartWorkflowExecutionResponse

-- | Specifies the <tt>runId</tt> of a workflow execution.
--   
--   <i>See:</i> <a>startWorkflowExecutionResponse</a> smart constructor.
data StartWorkflowExecutionResponse

-- | The <tt>runId</tt> of a workflow execution. This ID is generated by
--   the service and can be used to uniquely identify the workflow
--   execution within a domain.
swersRunId :: Lens' StartWorkflowExecutionResponse (Maybe Text)

-- | <ul>
--   <li>- | The response status code.</li>
--   </ul>
swersResponseStatus :: Lens' StartWorkflowExecutionResponse Int
instance GHC.Generics.Generic Network.AWS.SWF.StartWorkflowExecution.StartWorkflowExecutionResponse
instance Data.Data.Data Network.AWS.SWF.StartWorkflowExecution.StartWorkflowExecutionResponse
instance GHC.Show.Show Network.AWS.SWF.StartWorkflowExecution.StartWorkflowExecutionResponse
instance GHC.Read.Read Network.AWS.SWF.StartWorkflowExecution.StartWorkflowExecutionResponse
instance GHC.Classes.Eq Network.AWS.SWF.StartWorkflowExecution.StartWorkflowExecutionResponse
instance GHC.Generics.Generic Network.AWS.SWF.StartWorkflowExecution.StartWorkflowExecution
instance Data.Data.Data Network.AWS.SWF.StartWorkflowExecution.StartWorkflowExecution
instance GHC.Show.Show Network.AWS.SWF.StartWorkflowExecution.StartWorkflowExecution
instance GHC.Read.Read Network.AWS.SWF.StartWorkflowExecution.StartWorkflowExecution
instance GHC.Classes.Eq Network.AWS.SWF.StartWorkflowExecution.StartWorkflowExecution
instance Network.AWS.Types.AWSRequest Network.AWS.SWF.StartWorkflowExecution.StartWorkflowExecution
instance Control.DeepSeq.NFData Network.AWS.SWF.StartWorkflowExecution.StartWorkflowExecutionResponse
instance Data.Hashable.Class.Hashable Network.AWS.SWF.StartWorkflowExecution.StartWorkflowExecution
instance Control.DeepSeq.NFData Network.AWS.SWF.StartWorkflowExecution.StartWorkflowExecution
instance Network.AWS.Data.Headers.ToHeaders Network.AWS.SWF.StartWorkflowExecution.StartWorkflowExecution
instance Data.Aeson.Types.ToJSON.ToJSON Network.AWS.SWF.StartWorkflowExecution.StartWorkflowExecution
instance Network.AWS.Data.Path.ToPath Network.AWS.SWF.StartWorkflowExecution.StartWorkflowExecution
instance Network.AWS.Data.Query.ToQuery Network.AWS.SWF.StartWorkflowExecution.StartWorkflowExecution


-- | Records a <tt>WorkflowExecutionSignaled</tt> event in the workflow
--   execution history and creates a decision task for the workflow
--   execution identified by the given domain, workflowId and runId. The
--   event is recorded with the specified user defined signalName and input
--   (if provided).
--   
--   <b>Access Control</b>
--   
--   You can use IAM policies to control this action's access to Amazon SWF
--   resources as follows:
--   
--   <ul>
--   <li>Use a <tt>Resource</tt> element with the domain name to limit the
--   action to only specified domains.</li>
--   <li>Use an <tt>Action</tt> element to allow or deny permission to call
--   this action.</li>
--   <li>You cannot use an IAM policy to constrain this action's
--   parameters.</li>
--   </ul>
--   
--   If the caller doesn't have sufficient permissions to invoke the
--   action, or the parameter values fall outside the specified
--   constraints, the action fails. The associated event attribute's
--   <tt>cause</tt> parameter is set to <tt>OPERATION_NOT_PERMITTED</tt> .
--   For details and example IAM policies, see <a>Using IAM to Manage
--   Access to Amazon SWF Workflows</a> in the <i>Amazon SWF Developer
--   Guide</i> .
module Network.AWS.SWF.SignalWorkflowExecution

-- | Creates a value of <a>SignalWorkflowExecution</a> with the minimum
--   fields required to make a request.
--   
--   Use one of the following lenses to modify other fields as desired:
--   
--   <ul>
--   <li><a>sweInput</a> - Data to attach to the
--   <tt>WorkflowExecutionSignaled</tt> event in the target workflow
--   execution's history.</li>
--   <li><a>sweRunId</a> - The runId of the workflow execution to
--   signal.</li>
--   <li><a>sweDomain</a> - The name of the domain containing the workflow
--   execution to signal.</li>
--   <li><a>sweWorkflowId</a> - The workflowId of the workflow execution to
--   signal.</li>
--   <li><a>sweSignalName</a> - The name of the signal. This name must be
--   meaningful to the target workflow.</li>
--   </ul>
signalWorkflowExecution :: Text -> Text -> Text -> SignalWorkflowExecution

-- | <i>See:</i> <a>signalWorkflowExecution</a> smart constructor.
data SignalWorkflowExecution

-- | Data to attach to the <tt>WorkflowExecutionSignaled</tt> event in the
--   target workflow execution's history.
sweInput :: Lens' SignalWorkflowExecution (Maybe Text)

-- | The runId of the workflow execution to signal.
sweRunId :: Lens' SignalWorkflowExecution (Maybe Text)

-- | The name of the domain containing the workflow execution to signal.
sweDomain :: Lens' SignalWorkflowExecution Text

-- | The workflowId of the workflow execution to signal.
sweWorkflowId :: Lens' SignalWorkflowExecution Text

-- | The name of the signal. This name must be meaningful to the target
--   workflow.
sweSignalName :: Lens' SignalWorkflowExecution Text

-- | Creates a value of <a>SignalWorkflowExecutionResponse</a> with the
--   minimum fields required to make a request.
signalWorkflowExecutionResponse :: SignalWorkflowExecutionResponse

-- | <i>See:</i> <a>signalWorkflowExecutionResponse</a> smart constructor.
data SignalWorkflowExecutionResponse
instance GHC.Generics.Generic Network.AWS.SWF.SignalWorkflowExecution.SignalWorkflowExecutionResponse
instance Data.Data.Data Network.AWS.SWF.SignalWorkflowExecution.SignalWorkflowExecutionResponse
instance GHC.Show.Show Network.AWS.SWF.SignalWorkflowExecution.SignalWorkflowExecutionResponse
instance GHC.Read.Read Network.AWS.SWF.SignalWorkflowExecution.SignalWorkflowExecutionResponse
instance GHC.Classes.Eq Network.AWS.SWF.SignalWorkflowExecution.SignalWorkflowExecutionResponse
instance GHC.Generics.Generic Network.AWS.SWF.SignalWorkflowExecution.SignalWorkflowExecution
instance Data.Data.Data Network.AWS.SWF.SignalWorkflowExecution.SignalWorkflowExecution
instance GHC.Show.Show Network.AWS.SWF.SignalWorkflowExecution.SignalWorkflowExecution
instance GHC.Read.Read Network.AWS.SWF.SignalWorkflowExecution.SignalWorkflowExecution
instance GHC.Classes.Eq Network.AWS.SWF.SignalWorkflowExecution.SignalWorkflowExecution
instance Network.AWS.Types.AWSRequest Network.AWS.SWF.SignalWorkflowExecution.SignalWorkflowExecution
instance Control.DeepSeq.NFData Network.AWS.SWF.SignalWorkflowExecution.SignalWorkflowExecutionResponse
instance Data.Hashable.Class.Hashable Network.AWS.SWF.SignalWorkflowExecution.SignalWorkflowExecution
instance Control.DeepSeq.NFData Network.AWS.SWF.SignalWorkflowExecution.SignalWorkflowExecution
instance Network.AWS.Data.Headers.ToHeaders Network.AWS.SWF.SignalWorkflowExecution.SignalWorkflowExecution
instance Data.Aeson.Types.ToJSON.ToJSON Network.AWS.SWF.SignalWorkflowExecution.SignalWorkflowExecution
instance Network.AWS.Data.Path.ToPath Network.AWS.SWF.SignalWorkflowExecution.SignalWorkflowExecution
instance Network.AWS.Data.Query.ToQuery Network.AWS.SWF.SignalWorkflowExecution.SignalWorkflowExecution


-- | Used by deciders to tell the service that the <tt>DecisionTask</tt>
--   identified by the <tt>taskToken</tt> has successfully completed. The
--   <tt>decisions</tt> argument specifies the list of decisions made while
--   processing the task.
--   
--   A <tt>DecisionTaskCompleted</tt> event is added to the workflow
--   history. The <tt>executionContext</tt> specified is attached to the
--   event in the workflow execution history.
--   
--   <b>Access Control</b>
--   
--   If an IAM policy grants permission to use
--   <tt>RespondDecisionTaskCompleted</tt> , it can express permissions for
--   the list of decisions in the <tt>decisions</tt> parameter. Each of the
--   decisions has one or more parameters, much like a regular API call. To
--   allow for policies to be as readable as possible, you can express
--   permissions on decisions as if they were actual API calls, including
--   applying conditions to some parameters. For more information, see
--   <a>Using IAM to Manage Access to Amazon SWF Workflows</a> in the
--   <i>Amazon SWF Developer Guide</i> .
module Network.AWS.SWF.RespondDecisionTaskCompleted

-- | Creates a value of <a>RespondDecisionTaskCompleted</a> with the
--   minimum fields required to make a request.
--   
--   Use one of the following lenses to modify other fields as desired:
--   
--   <ul>
--   <li><a>rdtcDecisions</a> - The list of decisions (possibly empty) made
--   by the decider while processing this decision task. See the docs for
--   the <a>Decision</a> structure for details.</li>
--   <li><a>rdtcExecutionContext</a> - User defined context to add to
--   workflow execution.</li>
--   <li><a>rdtcTaskToken</a> - The <tt>taskToken</tt> from the
--   <tt>DecisionTask</tt> . <i>Important:</i> <tt>taskToken</tt> is
--   generated by the service and should be treated as an opaque value. If
--   the task is passed to another process, its <tt>taskToken</tt> must
--   also be passed. This enables it to provide its progress and respond
--   with results.</li>
--   </ul>
respondDecisionTaskCompleted :: Text -> RespondDecisionTaskCompleted

-- | Input data for a TaskCompleted response to a decision task.
--   
--   <i>See:</i> <a>respondDecisionTaskCompleted</a> smart constructor.
data RespondDecisionTaskCompleted

-- | The list of decisions (possibly empty) made by the decider while
--   processing this decision task. See the docs for the <a>Decision</a>
--   structure for details.
rdtcDecisions :: Lens' RespondDecisionTaskCompleted [Decision]

-- | User defined context to add to workflow execution.
rdtcExecutionContext :: Lens' RespondDecisionTaskCompleted (Maybe Text)

-- | The <tt>taskToken</tt> from the <tt>DecisionTask</tt> .
--   <i>Important:</i> <tt>taskToken</tt> is generated by the service and
--   should be treated as an opaque value. If the task is passed to another
--   process, its <tt>taskToken</tt> must also be passed. This enables it
--   to provide its progress and respond with results.
rdtcTaskToken :: Lens' RespondDecisionTaskCompleted Text

-- | Creates a value of <a>RespondDecisionTaskCompletedResponse</a> with
--   the minimum fields required to make a request.
respondDecisionTaskCompletedResponse :: RespondDecisionTaskCompletedResponse

-- | <i>See:</i> <a>respondDecisionTaskCompletedResponse</a> smart
--   constructor.
data RespondDecisionTaskCompletedResponse
instance GHC.Generics.Generic Network.AWS.SWF.RespondDecisionTaskCompleted.RespondDecisionTaskCompletedResponse
instance Data.Data.Data Network.AWS.SWF.RespondDecisionTaskCompleted.RespondDecisionTaskCompletedResponse
instance GHC.Show.Show Network.AWS.SWF.RespondDecisionTaskCompleted.RespondDecisionTaskCompletedResponse
instance GHC.Read.Read Network.AWS.SWF.RespondDecisionTaskCompleted.RespondDecisionTaskCompletedResponse
instance GHC.Classes.Eq Network.AWS.SWF.RespondDecisionTaskCompleted.RespondDecisionTaskCompletedResponse
instance GHC.Generics.Generic Network.AWS.SWF.RespondDecisionTaskCompleted.RespondDecisionTaskCompleted
instance Data.Data.Data Network.AWS.SWF.RespondDecisionTaskCompleted.RespondDecisionTaskCompleted
instance GHC.Show.Show Network.AWS.SWF.RespondDecisionTaskCompleted.RespondDecisionTaskCompleted
instance GHC.Read.Read Network.AWS.SWF.RespondDecisionTaskCompleted.RespondDecisionTaskCompleted
instance GHC.Classes.Eq Network.AWS.SWF.RespondDecisionTaskCompleted.RespondDecisionTaskCompleted
instance Network.AWS.Types.AWSRequest Network.AWS.SWF.RespondDecisionTaskCompleted.RespondDecisionTaskCompleted
instance Control.DeepSeq.NFData Network.AWS.SWF.RespondDecisionTaskCompleted.RespondDecisionTaskCompletedResponse
instance Data.Hashable.Class.Hashable Network.AWS.SWF.RespondDecisionTaskCompleted.RespondDecisionTaskCompleted
instance Control.DeepSeq.NFData Network.AWS.SWF.RespondDecisionTaskCompleted.RespondDecisionTaskCompleted
instance Network.AWS.Data.Headers.ToHeaders Network.AWS.SWF.RespondDecisionTaskCompleted.RespondDecisionTaskCompleted
instance Data.Aeson.Types.ToJSON.ToJSON Network.AWS.SWF.RespondDecisionTaskCompleted.RespondDecisionTaskCompleted
instance Network.AWS.Data.Path.ToPath Network.AWS.SWF.RespondDecisionTaskCompleted.RespondDecisionTaskCompleted
instance Network.AWS.Data.Query.ToQuery Network.AWS.SWF.RespondDecisionTaskCompleted.RespondDecisionTaskCompleted


-- | Used by workers to tell the service that the <tt>ActivityTask</tt>
--   identified by the <tt>taskToken</tt> has failed with <tt>reason</tt>
--   (if specified). The <tt>reason</tt> and <tt>details</tt> appear in the
--   <tt>ActivityTaskFailed</tt> event added to the workflow history.
--   
--   A task is considered open from the time that it is scheduled until it
--   is closed. Therefore a task is reported as open while a worker is
--   processing it. A task is closed after it has been specified in a call
--   to <tt>RespondActivityTaskCompleted</tt> ,
--   <tt>RespondActivityTaskCanceled</tt> , RespondActivityTaskFailed, or
--   the task has <a>timed out</a> .
--   
--   <b>Access Control</b>
--   
--   You can use IAM policies to control this action's access to Amazon SWF
--   resources as follows:
--   
--   <ul>
--   <li>Use a <tt>Resource</tt> element with the domain name to limit the
--   action to only specified domains.</li>
--   <li>Use an <tt>Action</tt> element to allow or deny permission to call
--   this action.</li>
--   <li>You cannot use an IAM policy to constrain this action's
--   parameters.</li>
--   </ul>
--   
--   If the caller doesn't have sufficient permissions to invoke the
--   action, or the parameter values fall outside the specified
--   constraints, the action fails. The associated event attribute's
--   <tt>cause</tt> parameter is set to <tt>OPERATION_NOT_PERMITTED</tt> .
--   For details and example IAM policies, see <a>Using IAM to Manage
--   Access to Amazon SWF Workflows</a> in the <i>Amazon SWF Developer
--   Guide</i> .
module Network.AWS.SWF.RespondActivityTaskFailed

-- | Creates a value of <a>RespondActivityTaskFailed</a> with the minimum
--   fields required to make a request.
--   
--   Use one of the following lenses to modify other fields as desired:
--   
--   <ul>
--   <li><a>ratfReason</a> - Description of the error that may assist in
--   diagnostics.</li>
--   <li><a>ratfDetails</a> - Detailed information about the failure.</li>
--   <li><a>ratfTaskToken</a> - The <tt>taskToken</tt> of the
--   <tt>ActivityTask</tt> . <i>Important:</i> <tt>taskToken</tt> is
--   generated by the service and should be treated as an opaque value. If
--   the task is passed to another process, its <tt>taskToken</tt> must
--   also be passed. This enables it to provide its progress and respond
--   with results.</li>
--   </ul>
respondActivityTaskFailed :: Text -> RespondActivityTaskFailed

-- | <i>See:</i> <a>respondActivityTaskFailed</a> smart constructor.
data RespondActivityTaskFailed

-- | Description of the error that may assist in diagnostics.
ratfReason :: Lens' RespondActivityTaskFailed (Maybe Text)

-- | Detailed information about the failure.
ratfDetails :: Lens' RespondActivityTaskFailed (Maybe Text)

-- | The <tt>taskToken</tt> of the <tt>ActivityTask</tt> .
--   <i>Important:</i> <tt>taskToken</tt> is generated by the service and
--   should be treated as an opaque value. If the task is passed to another
--   process, its <tt>taskToken</tt> must also be passed. This enables it
--   to provide its progress and respond with results.
ratfTaskToken :: Lens' RespondActivityTaskFailed Text

-- | Creates a value of <a>RespondActivityTaskFailedResponse</a> with the
--   minimum fields required to make a request.
respondActivityTaskFailedResponse :: RespondActivityTaskFailedResponse

-- | <i>See:</i> <a>respondActivityTaskFailedResponse</a> smart
--   constructor.
data RespondActivityTaskFailedResponse
instance GHC.Generics.Generic Network.AWS.SWF.RespondActivityTaskFailed.RespondActivityTaskFailedResponse
instance Data.Data.Data Network.AWS.SWF.RespondActivityTaskFailed.RespondActivityTaskFailedResponse
instance GHC.Show.Show Network.AWS.SWF.RespondActivityTaskFailed.RespondActivityTaskFailedResponse
instance GHC.Read.Read Network.AWS.SWF.RespondActivityTaskFailed.RespondActivityTaskFailedResponse
instance GHC.Classes.Eq Network.AWS.SWF.RespondActivityTaskFailed.RespondActivityTaskFailedResponse
instance GHC.Generics.Generic Network.AWS.SWF.RespondActivityTaskFailed.RespondActivityTaskFailed
instance Data.Data.Data Network.AWS.SWF.RespondActivityTaskFailed.RespondActivityTaskFailed
instance GHC.Show.Show Network.AWS.SWF.RespondActivityTaskFailed.RespondActivityTaskFailed
instance GHC.Read.Read Network.AWS.SWF.RespondActivityTaskFailed.RespondActivityTaskFailed
instance GHC.Classes.Eq Network.AWS.SWF.RespondActivityTaskFailed.RespondActivityTaskFailed
instance Network.AWS.Types.AWSRequest Network.AWS.SWF.RespondActivityTaskFailed.RespondActivityTaskFailed
instance Control.DeepSeq.NFData Network.AWS.SWF.RespondActivityTaskFailed.RespondActivityTaskFailedResponse
instance Data.Hashable.Class.Hashable Network.AWS.SWF.RespondActivityTaskFailed.RespondActivityTaskFailed
instance Control.DeepSeq.NFData Network.AWS.SWF.RespondActivityTaskFailed.RespondActivityTaskFailed
instance Network.AWS.Data.Headers.ToHeaders Network.AWS.SWF.RespondActivityTaskFailed.RespondActivityTaskFailed
instance Data.Aeson.Types.ToJSON.ToJSON Network.AWS.SWF.RespondActivityTaskFailed.RespondActivityTaskFailed
instance Network.AWS.Data.Path.ToPath Network.AWS.SWF.RespondActivityTaskFailed.RespondActivityTaskFailed
instance Network.AWS.Data.Query.ToQuery Network.AWS.SWF.RespondActivityTaskFailed.RespondActivityTaskFailed


-- | Used by workers to tell the service that the <tt>ActivityTask</tt>
--   identified by the <tt>taskToken</tt> completed successfully with a
--   <tt>result</tt> (if provided). The <tt>result</tt> appears in the
--   <tt>ActivityTaskCompleted</tt> event in the workflow history.
--   
--   <i>Important:</i> If the requested task doesn't complete successfully,
--   use <tt>RespondActivityTaskFailed</tt> instead. If the worker finds
--   that the task is canceled through the <tt>canceled</tt> flag returned
--   by <tt>RecordActivityTaskHeartbeat</tt> , it should cancel the task,
--   clean up and then call <tt>RespondActivityTaskCanceled</tt> .
--   
--   A task is considered open from the time that it is scheduled until it
--   is closed. Therefore a task is reported as open while a worker is
--   processing it. A task is closed after it has been specified in a call
--   to RespondActivityTaskCompleted, <tt>RespondActivityTaskCanceled</tt>
--   , <tt>RespondActivityTaskFailed</tt> , or the task has <a>timed
--   out</a> .
--   
--   <b>Access Control</b>
--   
--   You can use IAM policies to control this action's access to Amazon SWF
--   resources as follows:
--   
--   <ul>
--   <li>Use a <tt>Resource</tt> element with the domain name to limit the
--   action to only specified domains.</li>
--   <li>Use an <tt>Action</tt> element to allow or deny permission to call
--   this action.</li>
--   <li>You cannot use an IAM policy to constrain this action's
--   parameters.</li>
--   </ul>
--   
--   If the caller doesn't have sufficient permissions to invoke the
--   action, or the parameter values fall outside the specified
--   constraints, the action fails. The associated event attribute's
--   <tt>cause</tt> parameter is set to <tt>OPERATION_NOT_PERMITTED</tt> .
--   For details and example IAM policies, see <a>Using IAM to Manage
--   Access to Amazon SWF Workflows</a> in the <i>Amazon SWF Developer
--   Guide</i> .
module Network.AWS.SWF.RespondActivityTaskCompleted

-- | Creates a value of <a>RespondActivityTaskCompleted</a> with the
--   minimum fields required to make a request.
--   
--   Use one of the following lenses to modify other fields as desired:
--   
--   <ul>
--   <li><a>ratcResult</a> - The result of the activity task. It is a free
--   form string that is implementation specific.</li>
--   <li><a>ratcTaskToken</a> - The <tt>taskToken</tt> of the
--   <tt>ActivityTask</tt> . <i>Important:</i> <tt>taskToken</tt> is
--   generated by the service and should be treated as an opaque value. If
--   the task is passed to another process, its <tt>taskToken</tt> must
--   also be passed. This enables it to provide its progress and respond
--   with results.</li>
--   </ul>
respondActivityTaskCompleted :: Text -> RespondActivityTaskCompleted

-- | <i>See:</i> <a>respondActivityTaskCompleted</a> smart constructor.
data RespondActivityTaskCompleted

-- | The result of the activity task. It is a free form string that is
--   implementation specific.
ratcResult :: Lens' RespondActivityTaskCompleted (Maybe Text)

-- | The <tt>taskToken</tt> of the <tt>ActivityTask</tt> .
--   <i>Important:</i> <tt>taskToken</tt> is generated by the service and
--   should be treated as an opaque value. If the task is passed to another
--   process, its <tt>taskToken</tt> must also be passed. This enables it
--   to provide its progress and respond with results.
ratcTaskToken :: Lens' RespondActivityTaskCompleted Text

-- | Creates a value of <a>RespondActivityTaskCompletedResponse</a> with
--   the minimum fields required to make a request.
respondActivityTaskCompletedResponse :: RespondActivityTaskCompletedResponse

-- | <i>See:</i> <a>respondActivityTaskCompletedResponse</a> smart
--   constructor.
data RespondActivityTaskCompletedResponse
instance GHC.Generics.Generic Network.AWS.SWF.RespondActivityTaskCompleted.RespondActivityTaskCompletedResponse
instance Data.Data.Data Network.AWS.SWF.RespondActivityTaskCompleted.RespondActivityTaskCompletedResponse
instance GHC.Show.Show Network.AWS.SWF.RespondActivityTaskCompleted.RespondActivityTaskCompletedResponse
instance GHC.Read.Read Network.AWS.SWF.RespondActivityTaskCompleted.RespondActivityTaskCompletedResponse
instance GHC.Classes.Eq Network.AWS.SWF.RespondActivityTaskCompleted.RespondActivityTaskCompletedResponse
instance GHC.Generics.Generic Network.AWS.SWF.RespondActivityTaskCompleted.RespondActivityTaskCompleted
instance Data.Data.Data Network.AWS.SWF.RespondActivityTaskCompleted.RespondActivityTaskCompleted
instance GHC.Show.Show Network.AWS.SWF.RespondActivityTaskCompleted.RespondActivityTaskCompleted
instance GHC.Read.Read Network.AWS.SWF.RespondActivityTaskCompleted.RespondActivityTaskCompleted
instance GHC.Classes.Eq Network.AWS.SWF.RespondActivityTaskCompleted.RespondActivityTaskCompleted
instance Network.AWS.Types.AWSRequest Network.AWS.SWF.RespondActivityTaskCompleted.RespondActivityTaskCompleted
instance Control.DeepSeq.NFData Network.AWS.SWF.RespondActivityTaskCompleted.RespondActivityTaskCompletedResponse
instance Data.Hashable.Class.Hashable Network.AWS.SWF.RespondActivityTaskCompleted.RespondActivityTaskCompleted
instance Control.DeepSeq.NFData Network.AWS.SWF.RespondActivityTaskCompleted.RespondActivityTaskCompleted
instance Network.AWS.Data.Headers.ToHeaders Network.AWS.SWF.RespondActivityTaskCompleted.RespondActivityTaskCompleted
instance Data.Aeson.Types.ToJSON.ToJSON Network.AWS.SWF.RespondActivityTaskCompleted.RespondActivityTaskCompleted
instance Network.AWS.Data.Path.ToPath Network.AWS.SWF.RespondActivityTaskCompleted.RespondActivityTaskCompleted
instance Network.AWS.Data.Query.ToQuery Network.AWS.SWF.RespondActivityTaskCompleted.RespondActivityTaskCompleted


-- | Used by workers to tell the service that the <tt>ActivityTask</tt>
--   identified by the <tt>taskToken</tt> was successfully canceled.
--   Additional <tt>details</tt> can be provided using the <tt>details</tt>
--   argument.
--   
--   These <tt>details</tt> (if provided) appear in the
--   <tt>ActivityTaskCanceled</tt> event added to the workflow history.
--   
--   <i>Important:</i> Only use this operation if the <tt>canceled</tt>
--   flag of a <tt>RecordActivityTaskHeartbeat</tt> request returns
--   <tt>true</tt> and if the activity can be safely undone or abandoned.
--   
--   A task is considered open from the time that it is scheduled until it
--   is closed. Therefore a task is reported as open while a worker is
--   processing it. A task is closed after it has been specified in a call
--   to <tt>RespondActivityTaskCompleted</tt> ,
--   RespondActivityTaskCanceled, <tt>RespondActivityTaskFailed</tt> , or
--   the task has <a>timed out</a> .
--   
--   <b>Access Control</b>
--   
--   You can use IAM policies to control this action's access to Amazon SWF
--   resources as follows:
--   
--   <ul>
--   <li>Use a <tt>Resource</tt> element with the domain name to limit the
--   action to only specified domains.</li>
--   <li>Use an <tt>Action</tt> element to allow or deny permission to call
--   this action.</li>
--   <li>You cannot use an IAM policy to constrain this action's
--   parameters.</li>
--   </ul>
--   
--   If the caller doesn't have sufficient permissions to invoke the
--   action, or the parameter values fall outside the specified
--   constraints, the action fails. The associated event attribute's
--   <tt>cause</tt> parameter is set to <tt>OPERATION_NOT_PERMITTED</tt> .
--   For details and example IAM policies, see <a>Using IAM to Manage
--   Access to Amazon SWF Workflows</a> in the <i>Amazon SWF Developer
--   Guide</i> .
module Network.AWS.SWF.RespondActivityTaskCanceled

-- | Creates a value of <a>RespondActivityTaskCanceled</a> with the minimum
--   fields required to make a request.
--   
--   Use one of the following lenses to modify other fields as desired:
--   
--   <ul>
--   <li><a>rDetails</a> - Information about the cancellation.</li>
--   <li><a>rTaskToken</a> - The <tt>taskToken</tt> of the
--   <tt>ActivityTask</tt> . <i>Important:</i> <tt>taskToken</tt> is
--   generated by the service and should be treated as an opaque value. If
--   the task is passed to another process, its <tt>taskToken</tt> must
--   also be passed. This enables it to provide its progress and respond
--   with results.</li>
--   </ul>
respondActivityTaskCanceled :: Text -> RespondActivityTaskCanceled

-- | <i>See:</i> <a>respondActivityTaskCanceled</a> smart constructor.
data RespondActivityTaskCanceled

-- | Information about the cancellation.
rDetails :: Lens' RespondActivityTaskCanceled (Maybe Text)

-- | The <tt>taskToken</tt> of the <tt>ActivityTask</tt> .
--   <i>Important:</i> <tt>taskToken</tt> is generated by the service and
--   should be treated as an opaque value. If the task is passed to another
--   process, its <tt>taskToken</tt> must also be passed. This enables it
--   to provide its progress and respond with results.
rTaskToken :: Lens' RespondActivityTaskCanceled Text

-- | Creates a value of <a>RespondActivityTaskCanceledResponse</a> with the
--   minimum fields required to make a request.
respondActivityTaskCanceledResponse :: RespondActivityTaskCanceledResponse

-- | <i>See:</i> <a>respondActivityTaskCanceledResponse</a> smart
--   constructor.
data RespondActivityTaskCanceledResponse
instance GHC.Generics.Generic Network.AWS.SWF.RespondActivityTaskCanceled.RespondActivityTaskCanceledResponse
instance Data.Data.Data Network.AWS.SWF.RespondActivityTaskCanceled.RespondActivityTaskCanceledResponse
instance GHC.Show.Show Network.AWS.SWF.RespondActivityTaskCanceled.RespondActivityTaskCanceledResponse
instance GHC.Read.Read Network.AWS.SWF.RespondActivityTaskCanceled.RespondActivityTaskCanceledResponse
instance GHC.Classes.Eq Network.AWS.SWF.RespondActivityTaskCanceled.RespondActivityTaskCanceledResponse
instance GHC.Generics.Generic Network.AWS.SWF.RespondActivityTaskCanceled.RespondActivityTaskCanceled
instance Data.Data.Data Network.AWS.SWF.RespondActivityTaskCanceled.RespondActivityTaskCanceled
instance GHC.Show.Show Network.AWS.SWF.RespondActivityTaskCanceled.RespondActivityTaskCanceled
instance GHC.Read.Read Network.AWS.SWF.RespondActivityTaskCanceled.RespondActivityTaskCanceled
instance GHC.Classes.Eq Network.AWS.SWF.RespondActivityTaskCanceled.RespondActivityTaskCanceled
instance Network.AWS.Types.AWSRequest Network.AWS.SWF.RespondActivityTaskCanceled.RespondActivityTaskCanceled
instance Control.DeepSeq.NFData Network.AWS.SWF.RespondActivityTaskCanceled.RespondActivityTaskCanceledResponse
instance Data.Hashable.Class.Hashable Network.AWS.SWF.RespondActivityTaskCanceled.RespondActivityTaskCanceled
instance Control.DeepSeq.NFData Network.AWS.SWF.RespondActivityTaskCanceled.RespondActivityTaskCanceled
instance Network.AWS.Data.Headers.ToHeaders Network.AWS.SWF.RespondActivityTaskCanceled.RespondActivityTaskCanceled
instance Data.Aeson.Types.ToJSON.ToJSON Network.AWS.SWF.RespondActivityTaskCanceled.RespondActivityTaskCanceled
instance Network.AWS.Data.Path.ToPath Network.AWS.SWF.RespondActivityTaskCanceled.RespondActivityTaskCanceled
instance Network.AWS.Data.Query.ToQuery Network.AWS.SWF.RespondActivityTaskCanceled.RespondActivityTaskCanceled


-- | Records a <tt>WorkflowExecutionCancelRequested</tt> event in the
--   currently running workflow execution identified by the given domain,
--   workflowId, and runId. This logically requests the cancellation of the
--   workflow execution as a whole. It is up to the decider to take
--   appropriate actions when it receives an execution history with this
--   event.
--   
--   <b>Access Control</b>
--   
--   You can use IAM policies to control this action's access to Amazon SWF
--   resources as follows:
--   
--   <ul>
--   <li>Use a <tt>Resource</tt> element with the domain name to limit the
--   action to only specified domains.</li>
--   <li>Use an <tt>Action</tt> element to allow or deny permission to call
--   this action.</li>
--   <li>You cannot use an IAM policy to constrain this action's
--   parameters.</li>
--   </ul>
--   
--   If the caller doesn't have sufficient permissions to invoke the
--   action, or the parameter values fall outside the specified
--   constraints, the action fails. The associated event attribute's
--   <tt>cause</tt> parameter is set to <tt>OPERATION_NOT_PERMITTED</tt> .
--   For details and example IAM policies, see <a>Using IAM to Manage
--   Access to Amazon SWF Workflows</a> in the <i>Amazon SWF Developer
--   Guide</i> .
module Network.AWS.SWF.RequestCancelWorkflowExecution

-- | Creates a value of <a>RequestCancelWorkflowExecution</a> with the
--   minimum fields required to make a request.
--   
--   Use one of the following lenses to modify other fields as desired:
--   
--   <ul>
--   <li><a>rcweRunId</a> - The runId of the workflow execution to
--   cancel.</li>
--   <li><a>rcweDomain</a> - The name of the domain containing the workflow
--   execution to cancel.</li>
--   <li><a>rcweWorkflowId</a> - The workflowId of the workflow execution
--   to cancel.</li>
--   </ul>
requestCancelWorkflowExecution :: Text -> Text -> RequestCancelWorkflowExecution

-- | <i>See:</i> <a>requestCancelWorkflowExecution</a> smart constructor.
data RequestCancelWorkflowExecution

-- | The runId of the workflow execution to cancel.
rcweRunId :: Lens' RequestCancelWorkflowExecution (Maybe Text)

-- | The name of the domain containing the workflow execution to cancel.
rcweDomain :: Lens' RequestCancelWorkflowExecution Text

-- | The workflowId of the workflow execution to cancel.
rcweWorkflowId :: Lens' RequestCancelWorkflowExecution Text

-- | Creates a value of <a>RequestCancelWorkflowExecutionResponse</a> with
--   the minimum fields required to make a request.
requestCancelWorkflowExecutionResponse :: RequestCancelWorkflowExecutionResponse

-- | <i>See:</i> <a>requestCancelWorkflowExecutionResponse</a> smart
--   constructor.
data RequestCancelWorkflowExecutionResponse
instance GHC.Generics.Generic Network.AWS.SWF.RequestCancelWorkflowExecution.RequestCancelWorkflowExecutionResponse
instance Data.Data.Data Network.AWS.SWF.RequestCancelWorkflowExecution.RequestCancelWorkflowExecutionResponse
instance GHC.Show.Show Network.AWS.SWF.RequestCancelWorkflowExecution.RequestCancelWorkflowExecutionResponse
instance GHC.Read.Read Network.AWS.SWF.RequestCancelWorkflowExecution.RequestCancelWorkflowExecutionResponse
instance GHC.Classes.Eq Network.AWS.SWF.RequestCancelWorkflowExecution.RequestCancelWorkflowExecutionResponse
instance GHC.Generics.Generic Network.AWS.SWF.RequestCancelWorkflowExecution.RequestCancelWorkflowExecution
instance Data.Data.Data Network.AWS.SWF.RequestCancelWorkflowExecution.RequestCancelWorkflowExecution
instance GHC.Show.Show Network.AWS.SWF.RequestCancelWorkflowExecution.RequestCancelWorkflowExecution
instance GHC.Read.Read Network.AWS.SWF.RequestCancelWorkflowExecution.RequestCancelWorkflowExecution
instance GHC.Classes.Eq Network.AWS.SWF.RequestCancelWorkflowExecution.RequestCancelWorkflowExecution
instance Network.AWS.Types.AWSRequest Network.AWS.SWF.RequestCancelWorkflowExecution.RequestCancelWorkflowExecution
instance Control.DeepSeq.NFData Network.AWS.SWF.RequestCancelWorkflowExecution.RequestCancelWorkflowExecutionResponse
instance Data.Hashable.Class.Hashable Network.AWS.SWF.RequestCancelWorkflowExecution.RequestCancelWorkflowExecution
instance Control.DeepSeq.NFData Network.AWS.SWF.RequestCancelWorkflowExecution.RequestCancelWorkflowExecution
instance Network.AWS.Data.Headers.ToHeaders Network.AWS.SWF.RequestCancelWorkflowExecution.RequestCancelWorkflowExecution
instance Data.Aeson.Types.ToJSON.ToJSON Network.AWS.SWF.RequestCancelWorkflowExecution.RequestCancelWorkflowExecution
instance Network.AWS.Data.Path.ToPath Network.AWS.SWF.RequestCancelWorkflowExecution.RequestCancelWorkflowExecution
instance Network.AWS.Data.Query.ToQuery Network.AWS.SWF.RequestCancelWorkflowExecution.RequestCancelWorkflowExecution


-- | Registers a new <i>workflow type</i> and its configuration settings in
--   the specified domain.
--   
--   The retention period for the workflow history is set by the
--   <tt>RegisterDomain</tt> action.
--   
--   <i>Important:</i> If the type already exists, then a
--   <tt>TypeAlreadyExists</tt> fault is returned. You cannot change the
--   configuration settings of a workflow type once it is registered and it
--   must be registered as a new version.
--   
--   <b>Access Control</b>
--   
--   You can use IAM policies to control this action's access to Amazon SWF
--   resources as follows:
--   
--   <ul>
--   <li>Use a <tt>Resource</tt> element with the domain name to limit the
--   action to only specified domains.</li>
--   <li>Use an <tt>Action</tt> element to allow or deny permission to call
--   this action.</li>
--   <li>Constrain the following parameters by using a <tt>Condition</tt>
--   element with the appropriate keys.</li>
--   <li><tt>defaultTaskList.name</tt> : String constraint. The key is
--   <tt>swf:defaultTaskList.name</tt> .</li>
--   <li><tt>name</tt> : String constraint. The key is <tt>swf:name</tt>
--   .</li>
--   <li><tt>version</tt> : String constraint. The key is
--   <tt>swf:version</tt> .</li>
--   </ul>
--   
--   If the caller doesn't have sufficient permissions to invoke the
--   action, or the parameter values fall outside the specified
--   constraints, the action fails. The associated event attribute's
--   <tt>cause</tt> parameter is set to <tt>OPERATION_NOT_PERMITTED</tt> .
--   For details and example IAM policies, see <a>Using IAM to Manage
--   Access to Amazon SWF Workflows</a> in the <i>Amazon SWF Developer
--   Guide</i> .
module Network.AWS.SWF.RegisterWorkflowType

-- | Creates a value of <a>RegisterWorkflowType</a> with the minimum fields
--   required to make a request.
--   
--   Use one of the following lenses to modify other fields as desired:
--   
--   <ul>
--   <li><a>rwtDefaultLambdaRole</a> - The default IAM role attached to
--   this workflow type.</li>
--   <li><a>rwtDefaultChildPolicy</a> - If set, specifies the default
--   policy to use for the child workflow executions when a workflow
--   execution of this type is terminated, by calling the
--   <tt>TerminateWorkflowExecution</tt> action explicitly or due to an
--   expired timeout. This default can be overridden when starting a
--   workflow execution using the <tt>StartWorkflowExecution</tt> action or
--   the <tt>StartChildWorkflowExecution</tt> <a>Decision</a> . The
--   supported child policies are: * <tt>TERMINATE</tt> – The child
--   executions are terminated. * <tt>REQUEST_CANCEL</tt> – A request to
--   cancel is attempted for each child execution by recording a
--   <tt>WorkflowExecutionCancelRequested</tt> event in its history. It is
--   up to the decider to take appropriate actions when it receives an
--   execution history with this event. * <tt>ABANDON</tt> – No action is
--   taken. The child executions continue to run.</li>
--   <li><a>rwtDefaultTaskList</a> - If set, specifies the default task
--   list to use for scheduling decision tasks for executions of this
--   workflow type. This default is used only if a task list isn't provided
--   when starting the execution through the
--   <tt>StartWorkflowExecution</tt> Action or
--   <tt>StartChildWorkflowExecution</tt> <a>Decision</a> .</li>
--   <li><a>rwtDefaultTaskPriority</a> - The default task priority to
--   assign to the workflow type. If not assigned, then <tt>0</tt> is used.
--   Valid values are integers that range from Java's
--   <tt>Integer.MIN_VALUE</tt> (-2147483648) to <tt>Integer.MAX_VALUE</tt>
--   (2147483647). Higher numbers indicate higher priority. For more
--   information about setting task priority, see <a>Setting Task
--   Priority</a> in the <i>Amazon SWF Developer Guide</i> .</li>
--   <li><a>rwtDefaultExecutionStartToCloseTimeout</a> - If set, specifies
--   the default maximum duration for executions of this workflow type. You
--   can override this default when starting an execution through the
--   <tt>StartWorkflowExecution</tt> Action or
--   <tt>StartChildWorkflowExecution</tt> <a>Decision</a> . The duration is
--   specified in seconds; an integer greater than or equal to 0. Unlike
--   some of the other timeout parameters in Amazon SWF, you cannot specify
--   a value of <a>NONE</a> for
--   <tt>defaultExecutionStartToCloseTimeout</tt> ; there is a one-year max
--   limit on the time that a workflow execution can run. Exceeding this
--   limit always causes the workflow execution to time out.</li>
--   <li><a>rwtDefaultTaskStartToCloseTimeout</a> - If set, specifies the
--   default maximum duration of decision tasks for this workflow type.
--   This default can be overridden when starting a workflow execution
--   using the <tt>StartWorkflowExecution</tt> action or the
--   <tt>StartChildWorkflowExecution</tt> <a>Decision</a> . The duration is
--   specified in seconds, an integer greater than or equal to <tt>0</tt> .
--   You can use <tt>NONE</tt> to specify unlimited duration.</li>
--   <li><a>rwtDescription</a> - Textual description of the workflow
--   type.</li>
--   <li><a>rwtDomain</a> - The name of the domain in which to register the
--   workflow type.</li>
--   <li><a>rwtName</a> - The name of the workflow type. The specified
--   string must not start or end with whitespace. It must not contain a
--   <tt>:</tt> (colon), <tt>/</tt> (slash), <tt>|</tt> (vertical bar), or
--   any control characters (<tt>u0000-u001f</tt> | <tt>u007f-u009f</tt> ).
--   Also, it must not contain the literal string <tt>arn</tt> .</li>
--   <li><a>rwtVersion</a> - The version of the workflow type. The
--   specified string must not start or end with whitespace. It must not
--   contain a <tt>:</tt> (colon), <tt>/</tt> (slash), <tt>|</tt> (vertical
--   bar), or any control characters (<tt>u0000-u001f</tt> |
--   <tt>u007f-u009f</tt> ). Also, it must not contain the literal string
--   <tt>arn</tt> .</li>
--   </ul>
registerWorkflowType :: Text -> Text -> Text -> RegisterWorkflowType

-- | <i>See:</i> <a>registerWorkflowType</a> smart constructor.
data RegisterWorkflowType

-- | The default IAM role attached to this workflow type.
rwtDefaultLambdaRole :: Lens' RegisterWorkflowType (Maybe Text)

-- | If set, specifies the default policy to use for the child workflow
--   executions when a workflow execution of this type is terminated, by
--   calling the <tt>TerminateWorkflowExecution</tt> action explicitly or
--   due to an expired timeout. This default can be overridden when
--   starting a workflow execution using the
--   <tt>StartWorkflowExecution</tt> action or the
--   <tt>StartChildWorkflowExecution</tt> <a>Decision</a> . The supported
--   child policies are: * <tt>TERMINATE</tt> – The child executions are
--   terminated. * <tt>REQUEST_CANCEL</tt> – A request to cancel is
--   attempted for each child execution by recording a
--   <tt>WorkflowExecutionCancelRequested</tt> event in its history. It is
--   up to the decider to take appropriate actions when it receives an
--   execution history with this event. * <tt>ABANDON</tt> – No action is
--   taken. The child executions continue to run.
rwtDefaultChildPolicy :: Lens' RegisterWorkflowType (Maybe ChildPolicy)

-- | If set, specifies the default task list to use for scheduling decision
--   tasks for executions of this workflow type. This default is used only
--   if a task list isn't provided when starting the execution through the
--   <tt>StartWorkflowExecution</tt> Action or
--   <tt>StartChildWorkflowExecution</tt> <a>Decision</a> .
rwtDefaultTaskList :: Lens' RegisterWorkflowType (Maybe TaskList)

-- | The default task priority to assign to the workflow type. If not
--   assigned, then <tt>0</tt> is used. Valid values are integers that
--   range from Java's <tt>Integer.MIN_VALUE</tt> (-2147483648) to
--   <tt>Integer.MAX_VALUE</tt> (2147483647). Higher numbers indicate
--   higher priority. For more information about setting task priority, see
--   <a>Setting Task Priority</a> in the <i>Amazon SWF Developer Guide</i>
--   .
rwtDefaultTaskPriority :: Lens' RegisterWorkflowType (Maybe Text)

-- | If set, specifies the default maximum duration for executions of this
--   workflow type. You can override this default when starting an
--   execution through the <tt>StartWorkflowExecution</tt> Action or
--   <tt>StartChildWorkflowExecution</tt> <a>Decision</a> . The duration is
--   specified in seconds; an integer greater than or equal to 0. Unlike
--   some of the other timeout parameters in Amazon SWF, you cannot specify
--   a value of <a>NONE</a> for
--   <tt>defaultExecutionStartToCloseTimeout</tt> ; there is a one-year max
--   limit on the time that a workflow execution can run. Exceeding this
--   limit always causes the workflow execution to time out.
rwtDefaultExecutionStartToCloseTimeout :: Lens' RegisterWorkflowType (Maybe Text)

-- | If set, specifies the default maximum duration of decision tasks for
--   this workflow type. This default can be overridden when starting a
--   workflow execution using the <tt>StartWorkflowExecution</tt> action or
--   the <tt>StartChildWorkflowExecution</tt> <a>Decision</a> . The
--   duration is specified in seconds, an integer greater than or equal to
--   <tt>0</tt> . You can use <tt>NONE</tt> to specify unlimited duration.
rwtDefaultTaskStartToCloseTimeout :: Lens' RegisterWorkflowType (Maybe Text)

-- | Textual description of the workflow type.
rwtDescription :: Lens' RegisterWorkflowType (Maybe Text)

-- | The name of the domain in which to register the workflow type.
rwtDomain :: Lens' RegisterWorkflowType Text

-- | The name of the workflow type. The specified string must not start or
--   end with whitespace. It must not contain a <tt>:</tt> (colon),
--   <tt>/</tt> (slash), <tt>|</tt> (vertical bar), or any control
--   characters (<tt>u0000-u001f</tt> | <tt>u007f-u009f</tt> ). Also, it
--   must not contain the literal string <tt>arn</tt> .
rwtName :: Lens' RegisterWorkflowType Text

-- | The version of the workflow type. The specified string must not start
--   or end with whitespace. It must not contain a <tt>:</tt> (colon),
--   <tt>/</tt> (slash), <tt>|</tt> (vertical bar), or any control
--   characters (<tt>u0000-u001f</tt> | <tt>u007f-u009f</tt> ). Also, it
--   must not contain the literal string <tt>arn</tt> .
rwtVersion :: Lens' RegisterWorkflowType Text

-- | Creates a value of <a>RegisterWorkflowTypeResponse</a> with the
--   minimum fields required to make a request.
registerWorkflowTypeResponse :: RegisterWorkflowTypeResponse

-- | <i>See:</i> <a>registerWorkflowTypeResponse</a> smart constructor.
data RegisterWorkflowTypeResponse
instance GHC.Generics.Generic Network.AWS.SWF.RegisterWorkflowType.RegisterWorkflowTypeResponse
instance Data.Data.Data Network.AWS.SWF.RegisterWorkflowType.RegisterWorkflowTypeResponse
instance GHC.Show.Show Network.AWS.SWF.RegisterWorkflowType.RegisterWorkflowTypeResponse
instance GHC.Read.Read Network.AWS.SWF.RegisterWorkflowType.RegisterWorkflowTypeResponse
instance GHC.Classes.Eq Network.AWS.SWF.RegisterWorkflowType.RegisterWorkflowTypeResponse
instance GHC.Generics.Generic Network.AWS.SWF.RegisterWorkflowType.RegisterWorkflowType
instance Data.Data.Data Network.AWS.SWF.RegisterWorkflowType.RegisterWorkflowType
instance GHC.Show.Show Network.AWS.SWF.RegisterWorkflowType.RegisterWorkflowType
instance GHC.Read.Read Network.AWS.SWF.RegisterWorkflowType.RegisterWorkflowType
instance GHC.Classes.Eq Network.AWS.SWF.RegisterWorkflowType.RegisterWorkflowType
instance Network.AWS.Types.AWSRequest Network.AWS.SWF.RegisterWorkflowType.RegisterWorkflowType
instance Control.DeepSeq.NFData Network.AWS.SWF.RegisterWorkflowType.RegisterWorkflowTypeResponse
instance Data.Hashable.Class.Hashable Network.AWS.SWF.RegisterWorkflowType.RegisterWorkflowType
instance Control.DeepSeq.NFData Network.AWS.SWF.RegisterWorkflowType.RegisterWorkflowType
instance Network.AWS.Data.Headers.ToHeaders Network.AWS.SWF.RegisterWorkflowType.RegisterWorkflowType
instance Data.Aeson.Types.ToJSON.ToJSON Network.AWS.SWF.RegisterWorkflowType.RegisterWorkflowType
instance Network.AWS.Data.Path.ToPath Network.AWS.SWF.RegisterWorkflowType.RegisterWorkflowType
instance Network.AWS.Data.Query.ToQuery Network.AWS.SWF.RegisterWorkflowType.RegisterWorkflowType


-- | Registers a new domain.
--   
--   <b>Access Control</b>
--   
--   You can use IAM policies to control this action's access to Amazon SWF
--   resources as follows:
--   
--   <ul>
--   <li>You cannot use an IAM policy to control domain access for this
--   action. The name of the domain being registered is available as the
--   resource of this action.</li>
--   <li>Use an <tt>Action</tt> element to allow or deny permission to call
--   this action.</li>
--   <li>You cannot use an IAM policy to constrain this action's
--   parameters.</li>
--   </ul>
--   
--   If the caller doesn't have sufficient permissions to invoke the
--   action, or the parameter values fall outside the specified
--   constraints, the action fails. The associated event attribute's
--   <tt>cause</tt> parameter is set to <tt>OPERATION_NOT_PERMITTED</tt> .
--   For details and example IAM policies, see <a>Using IAM to Manage
--   Access to Amazon SWF Workflows</a> in the <i>Amazon SWF Developer
--   Guide</i> .
module Network.AWS.SWF.RegisterDomain

-- | Creates a value of <a>RegisterDomain</a> with the minimum fields
--   required to make a request.
--   
--   Use one of the following lenses to modify other fields as desired:
--   
--   <ul>
--   <li><a>rdDescription</a> - A text description of the domain.</li>
--   <li><a>rdName</a> - Name of the domain to register. The name must be
--   unique in the region that the domain is registered in. The specified
--   string must not start or end with whitespace. It must not contain a
--   <tt>:</tt> (colon), <tt>/</tt> (slash), <tt>|</tt> (vertical bar), or
--   any control characters (<tt>u0000-u001f</tt> | <tt>u007f-u009f</tt> ).
--   Also, it must not contain the literal string <tt>arn</tt> .</li>
--   <li><a>rdWorkflowExecutionRetentionPeriodInDays</a> - The duration (in
--   days) that records and histories of workflow executions on the domain
--   should be kept by the service. After the retention period, the
--   workflow execution isn't available in the results of visibility calls.
--   If you pass the value <tt>NONE</tt> or <tt>0</tt> (zero), then the
--   workflow execution history isn't retained. As soon as the workflow
--   execution completes, the execution record and its history are deleted.
--   The maximum workflow execution retention period is 90 days. For more
--   information about Amazon SWF service limits, see: <a>Amazon SWF
--   Service Limits</a> in the <i>Amazon SWF Developer Guide</i> .</li>
--   </ul>
registerDomain :: Text -> Text -> RegisterDomain

-- | <i>See:</i> <a>registerDomain</a> smart constructor.
data RegisterDomain

-- | A text description of the domain.
rdDescription :: Lens' RegisterDomain (Maybe Text)

-- | Name of the domain to register. The name must be unique in the region
--   that the domain is registered in. The specified string must not start
--   or end with whitespace. It must not contain a <tt>:</tt> (colon),
--   <tt>/</tt> (slash), <tt>|</tt> (vertical bar), or any control
--   characters (<tt>u0000-u001f</tt> | <tt>u007f-u009f</tt> ). Also, it
--   must not contain the literal string <tt>arn</tt> .
rdName :: Lens' RegisterDomain Text

-- | The duration (in days) that records and histories of workflow
--   executions on the domain should be kept by the service. After the
--   retention period, the workflow execution isn't available in the
--   results of visibility calls. If you pass the value <tt>NONE</tt> or
--   <tt>0</tt> (zero), then the workflow execution history isn't retained.
--   As soon as the workflow execution completes, the execution record and
--   its history are deleted. The maximum workflow execution retention
--   period is 90 days. For more information about Amazon SWF service
--   limits, see: <a>Amazon SWF Service Limits</a> in the <i>Amazon SWF
--   Developer Guide</i> .
rdWorkflowExecutionRetentionPeriodInDays :: Lens' RegisterDomain Text

-- | Creates a value of <a>RegisterDomainResponse</a> with the minimum
--   fields required to make a request.
registerDomainResponse :: RegisterDomainResponse

-- | <i>See:</i> <a>registerDomainResponse</a> smart constructor.
data RegisterDomainResponse
instance GHC.Generics.Generic Network.AWS.SWF.RegisterDomain.RegisterDomainResponse
instance Data.Data.Data Network.AWS.SWF.RegisterDomain.RegisterDomainResponse
instance GHC.Show.Show Network.AWS.SWF.RegisterDomain.RegisterDomainResponse
instance GHC.Read.Read Network.AWS.SWF.RegisterDomain.RegisterDomainResponse
instance GHC.Classes.Eq Network.AWS.SWF.RegisterDomain.RegisterDomainResponse
instance GHC.Generics.Generic Network.AWS.SWF.RegisterDomain.RegisterDomain
instance Data.Data.Data Network.AWS.SWF.RegisterDomain.RegisterDomain
instance GHC.Show.Show Network.AWS.SWF.RegisterDomain.RegisterDomain
instance GHC.Read.Read Network.AWS.SWF.RegisterDomain.RegisterDomain
instance GHC.Classes.Eq Network.AWS.SWF.RegisterDomain.RegisterDomain
instance Network.AWS.Types.AWSRequest Network.AWS.SWF.RegisterDomain.RegisterDomain
instance Control.DeepSeq.NFData Network.AWS.SWF.RegisterDomain.RegisterDomainResponse
instance Data.Hashable.Class.Hashable Network.AWS.SWF.RegisterDomain.RegisterDomain
instance Control.DeepSeq.NFData Network.AWS.SWF.RegisterDomain.RegisterDomain
instance Network.AWS.Data.Headers.ToHeaders Network.AWS.SWF.RegisterDomain.RegisterDomain
instance Data.Aeson.Types.ToJSON.ToJSON Network.AWS.SWF.RegisterDomain.RegisterDomain
instance Network.AWS.Data.Path.ToPath Network.AWS.SWF.RegisterDomain.RegisterDomain
instance Network.AWS.Data.Query.ToQuery Network.AWS.SWF.RegisterDomain.RegisterDomain


-- | Registers a new <i>activity type</i> along with its configuration
--   settings in the specified domain.
--   
--   <i>Important:</i> A <tt>TypeAlreadyExists</tt> fault is returned if
--   the type already exists in the domain. You cannot change any
--   configuration settings of the type after its registration, and it must
--   be registered as a new version.
--   
--   <b>Access Control</b>
--   
--   You can use IAM policies to control this action's access to Amazon SWF
--   resources as follows:
--   
--   <ul>
--   <li>Use a <tt>Resource</tt> element with the domain name to limit the
--   action to only specified domains.</li>
--   <li>Use an <tt>Action</tt> element to allow or deny permission to call
--   this action.</li>
--   <li>Constrain the following parameters by using a <tt>Condition</tt>
--   element with the appropriate keys.</li>
--   <li><tt>defaultTaskList.name</tt> : String constraint. The key is
--   <tt>swf:defaultTaskList.name</tt> .</li>
--   <li><tt>name</tt> : String constraint. The key is <tt>swf:name</tt>
--   .</li>
--   <li><tt>version</tt> : String constraint. The key is
--   <tt>swf:version</tt> .</li>
--   </ul>
--   
--   If the caller doesn't have sufficient permissions to invoke the
--   action, or the parameter values fall outside the specified
--   constraints, the action fails. The associated event attribute's
--   <tt>cause</tt> parameter is set to <tt>OPERATION_NOT_PERMITTED</tt> .
--   For details and example IAM policies, see <a>Using IAM to Manage
--   Access to Amazon SWF Workflows</a> in the <i>Amazon SWF Developer
--   Guide</i> .
module Network.AWS.SWF.RegisterActivityType

-- | Creates a value of <a>RegisterActivityType</a> with the minimum fields
--   required to make a request.
--   
--   Use one of the following lenses to modify other fields as desired:
--   
--   <ul>
--   <li><a>ratDefaultTaskScheduleToStartTimeout</a> - If set, specifies
--   the default maximum duration that a task of this activity type can
--   wait before being assigned to a worker. This default can be overridden
--   when scheduling an activity task using the
--   <tt>ScheduleActivityTask</tt> <a>Decision</a> . The duration is
--   specified in seconds, an integer greater than or equal to <tt>0</tt> .
--   You can use <tt>NONE</tt> to specify unlimited duration.</li>
--   <li><a>ratDefaultTaskList</a> - If set, specifies the default task
--   list to use for scheduling tasks of this activity type. This default
--   task list is used if a task list isn't provided when a task is
--   scheduled through the <tt>ScheduleActivityTask</tt> <a>Decision</a>
--   .</li>
--   <li><a>ratDefaultTaskPriority</a> - The default task priority to
--   assign to the activity type. If not assigned, then <tt>0</tt> is used.
--   Valid values are integers that range from Java's
--   <tt>Integer.MIN_VALUE</tt> (-2147483648) to <tt>Integer.MAX_VALUE</tt>
--   (2147483647). Higher numbers indicate higher priority. For more
--   information about setting task priority, see <a>Setting Task
--   Priority</a> in the <i>in the /Amazon SWF Developer Guide/ .</i>
--   .</li>
--   <li><a>ratDefaultTaskHeartbeatTimeout</a> - If set, specifies the
--   default maximum time before which a worker processing a task of this
--   type must report progress by calling
--   <tt>RecordActivityTaskHeartbeat</tt> . If the timeout is exceeded, the
--   activity task is automatically timed out. This default can be
--   overridden when scheduling an activity task using the
--   <tt>ScheduleActivityTask</tt> <a>Decision</a> . If the activity worker
--   subsequently attempts to record a heartbeat or returns a result, the
--   activity worker receives an <tt>UnknownResource</tt> fault. In this
--   case, Amazon SWF no longer considers the activity task to be valid;
--   the activity worker should clean up the activity task. The duration is
--   specified in seconds, an integer greater than or equal to <tt>0</tt> .
--   You can use <tt>NONE</tt> to specify unlimited duration.</li>
--   <li><a>ratDefaultTaskScheduleToCloseTimeout</a> - If set, specifies
--   the default maximum duration for a task of this activity type. This
--   default can be overridden when scheduling an activity task using the
--   <tt>ScheduleActivityTask</tt> <a>Decision</a> . The duration is
--   specified in seconds, an integer greater than or equal to <tt>0</tt> .
--   You can use <tt>NONE</tt> to specify unlimited duration.</li>
--   <li><a>ratDefaultTaskStartToCloseTimeout</a> - If set, specifies the
--   default maximum duration that a worker can take to process tasks of
--   this activity type. This default can be overridden when scheduling an
--   activity task using the <tt>ScheduleActivityTask</tt> <a>Decision</a>
--   . The duration is specified in seconds, an integer greater than or
--   equal to <tt>0</tt> . You can use <tt>NONE</tt> to specify unlimited
--   duration.</li>
--   <li><a>ratDescription</a> - A textual description of the activity
--   type.</li>
--   <li><a>ratDomain</a> - The name of the domain in which this activity
--   is to be registered.</li>
--   <li><a>ratName</a> - The name of the activity type within the domain.
--   The specified string must not start or end with whitespace. It must
--   not contain a <tt>:</tt> (colon), <tt>/</tt> (slash), <tt>|</tt>
--   (vertical bar), or any control characters (<tt>u0000-u001f</tt> |
--   <tt>u007f-u009f</tt> ). Also, it must not contain the literal string
--   <tt>arn</tt> .</li>
--   <li><a>ratVersion</a> - The version of the activity type. The
--   specified string must not start or end with whitespace. It must not
--   contain a <tt>:</tt> (colon), <tt>/</tt> (slash), <tt>|</tt> (vertical
--   bar), or any control characters (<tt>u0000-u001f</tt> |
--   <tt>u007f-u009f</tt> ). Also, it must not contain the literal string
--   <tt>arn</tt> .</li>
--   </ul>
registerActivityType :: Text -> Text -> Text -> RegisterActivityType

-- | <i>See:</i> <a>registerActivityType</a> smart constructor.
data RegisterActivityType

-- | If set, specifies the default maximum duration that a task of this
--   activity type can wait before being assigned to a worker. This default
--   can be overridden when scheduling an activity task using the
--   <tt>ScheduleActivityTask</tt> <a>Decision</a> . The duration is
--   specified in seconds, an integer greater than or equal to <tt>0</tt> .
--   You can use <tt>NONE</tt> to specify unlimited duration.
ratDefaultTaskScheduleToStartTimeout :: Lens' RegisterActivityType (Maybe Text)

-- | If set, specifies the default task list to use for scheduling tasks of
--   this activity type. This default task list is used if a task list
--   isn't provided when a task is scheduled through the
--   <tt>ScheduleActivityTask</tt> <a>Decision</a> .
ratDefaultTaskList :: Lens' RegisterActivityType (Maybe TaskList)

-- | The default task priority to assign to the activity type. If not
--   assigned, then <tt>0</tt> is used. Valid values are integers that
--   range from Java's <tt>Integer.MIN_VALUE</tt> (-2147483648) to
--   <tt>Integer.MAX_VALUE</tt> (2147483647). Higher numbers indicate
--   higher priority. For more information about setting task priority, see
--   <a>Setting Task Priority</a> in the <i>in the /Amazon SWF Developer
--   Guide/ .</i> .
ratDefaultTaskPriority :: Lens' RegisterActivityType (Maybe Text)

-- | If set, specifies the default maximum time before which a worker
--   processing a task of this type must report progress by calling
--   <tt>RecordActivityTaskHeartbeat</tt> . If the timeout is exceeded, the
--   activity task is automatically timed out. This default can be
--   overridden when scheduling an activity task using the
--   <tt>ScheduleActivityTask</tt> <a>Decision</a> . If the activity worker
--   subsequently attempts to record a heartbeat or returns a result, the
--   activity worker receives an <tt>UnknownResource</tt> fault. In this
--   case, Amazon SWF no longer considers the activity task to be valid;
--   the activity worker should clean up the activity task. The duration is
--   specified in seconds, an integer greater than or equal to <tt>0</tt> .
--   You can use <tt>NONE</tt> to specify unlimited duration.
ratDefaultTaskHeartbeatTimeout :: Lens' RegisterActivityType (Maybe Text)

-- | If set, specifies the default maximum duration for a task of this
--   activity type. This default can be overridden when scheduling an
--   activity task using the <tt>ScheduleActivityTask</tt> <a>Decision</a>
--   . The duration is specified in seconds, an integer greater than or
--   equal to <tt>0</tt> . You can use <tt>NONE</tt> to specify unlimited
--   duration.
ratDefaultTaskScheduleToCloseTimeout :: Lens' RegisterActivityType (Maybe Text)

-- | If set, specifies the default maximum duration that a worker can take
--   to process tasks of this activity type. This default can be overridden
--   when scheduling an activity task using the
--   <tt>ScheduleActivityTask</tt> <a>Decision</a> . The duration is
--   specified in seconds, an integer greater than or equal to <tt>0</tt> .
--   You can use <tt>NONE</tt> to specify unlimited duration.
ratDefaultTaskStartToCloseTimeout :: Lens' RegisterActivityType (Maybe Text)

-- | A textual description of the activity type.
ratDescription :: Lens' RegisterActivityType (Maybe Text)

-- | The name of the domain in which this activity is to be registered.
ratDomain :: Lens' RegisterActivityType Text

-- | The name of the activity type within the domain. The specified string
--   must not start or end with whitespace. It must not contain a
--   <tt>:</tt> (colon), <tt>/</tt> (slash), <tt>|</tt> (vertical bar), or
--   any control characters (<tt>u0000-u001f</tt> | <tt>u007f-u009f</tt> ).
--   Also, it must not contain the literal string <tt>arn</tt> .
ratName :: Lens' RegisterActivityType Text

-- | The version of the activity type. The specified string must not start
--   or end with whitespace. It must not contain a <tt>:</tt> (colon),
--   <tt>/</tt> (slash), <tt>|</tt> (vertical bar), or any control
--   characters (<tt>u0000-u001f</tt> | <tt>u007f-u009f</tt> ). Also, it
--   must not contain the literal string <tt>arn</tt> .
ratVersion :: Lens' RegisterActivityType Text

-- | Creates a value of <a>RegisterActivityTypeResponse</a> with the
--   minimum fields required to make a request.
registerActivityTypeResponse :: RegisterActivityTypeResponse

-- | <i>See:</i> <a>registerActivityTypeResponse</a> smart constructor.
data RegisterActivityTypeResponse
instance GHC.Generics.Generic Network.AWS.SWF.RegisterActivityType.RegisterActivityTypeResponse
instance Data.Data.Data Network.AWS.SWF.RegisterActivityType.RegisterActivityTypeResponse
instance GHC.Show.Show Network.AWS.SWF.RegisterActivityType.RegisterActivityTypeResponse
instance GHC.Read.Read Network.AWS.SWF.RegisterActivityType.RegisterActivityTypeResponse
instance GHC.Classes.Eq Network.AWS.SWF.RegisterActivityType.RegisterActivityTypeResponse
instance GHC.Generics.Generic Network.AWS.SWF.RegisterActivityType.RegisterActivityType
instance Data.Data.Data Network.AWS.SWF.RegisterActivityType.RegisterActivityType
instance GHC.Show.Show Network.AWS.SWF.RegisterActivityType.RegisterActivityType
instance GHC.Read.Read Network.AWS.SWF.RegisterActivityType.RegisterActivityType
instance GHC.Classes.Eq Network.AWS.SWF.RegisterActivityType.RegisterActivityType
instance Network.AWS.Types.AWSRequest Network.AWS.SWF.RegisterActivityType.RegisterActivityType
instance Control.DeepSeq.NFData Network.AWS.SWF.RegisterActivityType.RegisterActivityTypeResponse
instance Data.Hashable.Class.Hashable Network.AWS.SWF.RegisterActivityType.RegisterActivityType
instance Control.DeepSeq.NFData Network.AWS.SWF.RegisterActivityType.RegisterActivityType
instance Network.AWS.Data.Headers.ToHeaders Network.AWS.SWF.RegisterActivityType.RegisterActivityType
instance Data.Aeson.Types.ToJSON.ToJSON Network.AWS.SWF.RegisterActivityType.RegisterActivityType
instance Network.AWS.Data.Path.ToPath Network.AWS.SWF.RegisterActivityType.RegisterActivityType
instance Network.AWS.Data.Query.ToQuery Network.AWS.SWF.RegisterActivityType.RegisterActivityType


-- | Used by activity workers to report to the service that the
--   <tt>ActivityTask</tt> represented by the specified <tt>taskToken</tt>
--   is still making progress. The worker can also specify details of the
--   progress, for example percent complete, using the <tt>details</tt>
--   parameter. This action can also be used by the worker as a mechanism
--   to check if cancellation is being requested for the activity task. If
--   a cancellation is being attempted for the specified task, then the
--   boolean <tt>cancelRequested</tt> flag returned by the service is set
--   to <tt>true</tt> .
--   
--   This action resets the <tt>taskHeartbeatTimeout</tt> clock. The
--   <tt>taskHeartbeatTimeout</tt> is specified in
--   <tt>RegisterActivityType</tt> .
--   
--   This action doesn't in itself create an event in the workflow
--   execution history. However, if the task times out, the workflow
--   execution history contains a <tt>ActivityTaskTimedOut</tt> event that
--   contains the information from the last heartbeat generated by the
--   activity worker.
--   
--   <i>Important:</i> If the <tt>cancelRequested</tt> flag returns
--   <tt>true</tt> , a cancellation is being attempted. If the worker can
--   cancel the activity, it should respond with
--   <tt>RespondActivityTaskCanceled</tt> . Otherwise, it should ignore the
--   cancellation request.
--   
--   <b>Access Control</b>
--   
--   You can use IAM policies to control this action's access to Amazon SWF
--   resources as follows:
--   
--   <ul>
--   <li>Use a <tt>Resource</tt> element with the domain name to limit the
--   action to only specified domains.</li>
--   <li>Use an <tt>Action</tt> element to allow or deny permission to call
--   this action.</li>
--   <li>You cannot use an IAM policy to constrain this action's
--   parameters.</li>
--   </ul>
--   
--   If the caller doesn't have sufficient permissions to invoke the
--   action, or the parameter values fall outside the specified
--   constraints, the action fails. The associated event attribute's
--   <tt>cause</tt> parameter is set to <tt>OPERATION_NOT_PERMITTED</tt> .
--   For details and example IAM policies, see <a>Using IAM to Manage
--   Access to Amazon SWF Workflows</a> in the <i>Amazon SWF Developer
--   Guide</i> .
module Network.AWS.SWF.RecordActivityTaskHeartbeat

-- | Creates a value of <a>RecordActivityTaskHeartbeat</a> with the minimum
--   fields required to make a request.
--   
--   Use one of the following lenses to modify other fields as desired:
--   
--   <ul>
--   <li><a>rathDetails</a> - If specified, contains details about the
--   progress of the task.</li>
--   <li><a>rathTaskToken</a> - The <tt>taskToken</tt> of the
--   <tt>ActivityTask</tt> . <i>Important:</i> <tt>taskToken</tt> is
--   generated by the service and should be treated as an opaque value. If
--   the task is passed to another process, its <tt>taskToken</tt> must
--   also be passed. This enables it to provide its progress and respond
--   with results.</li>
--   </ul>
recordActivityTaskHeartbeat :: Text -> RecordActivityTaskHeartbeat

-- | <i>See:</i> <a>recordActivityTaskHeartbeat</a> smart constructor.
data RecordActivityTaskHeartbeat

-- | If specified, contains details about the progress of the task.
rathDetails :: Lens' RecordActivityTaskHeartbeat (Maybe Text)

-- | The <tt>taskToken</tt> of the <tt>ActivityTask</tt> .
--   <i>Important:</i> <tt>taskToken</tt> is generated by the service and
--   should be treated as an opaque value. If the task is passed to another
--   process, its <tt>taskToken</tt> must also be passed. This enables it
--   to provide its progress and respond with results.
rathTaskToken :: Lens' RecordActivityTaskHeartbeat Text

-- | Creates a value of <a>RecordActivityTaskHeartbeatResponse</a> with the
--   minimum fields required to make a request.
--   
--   Use one of the following lenses to modify other fields as desired:
--   
--   <ul>
--   <li><a>rathrsResponseStatus</a> - -- | The response status code.</li>
--   <li><a>rathrsCancelRequested</a> - Set to <tt>true</tt> if
--   cancellation of the task is requested.</li>
--   </ul>
recordActivityTaskHeartbeatResponse :: Int -> Bool -> RecordActivityTaskHeartbeatResponse

-- | Status information about an activity task.
--   
--   <i>See:</i> <a>recordActivityTaskHeartbeatResponse</a> smart
--   constructor.
data RecordActivityTaskHeartbeatResponse

-- | <ul>
--   <li>- | The response status code.</li>
--   </ul>
rathrsResponseStatus :: Lens' RecordActivityTaskHeartbeatResponse Int

-- | Set to <tt>true</tt> if cancellation of the task is requested.
rathrsCancelRequested :: Lens' RecordActivityTaskHeartbeatResponse Bool
instance GHC.Generics.Generic Network.AWS.SWF.RecordActivityTaskHeartbeat.RecordActivityTaskHeartbeatResponse
instance Data.Data.Data Network.AWS.SWF.RecordActivityTaskHeartbeat.RecordActivityTaskHeartbeatResponse
instance GHC.Show.Show Network.AWS.SWF.RecordActivityTaskHeartbeat.RecordActivityTaskHeartbeatResponse
instance GHC.Read.Read Network.AWS.SWF.RecordActivityTaskHeartbeat.RecordActivityTaskHeartbeatResponse
instance GHC.Classes.Eq Network.AWS.SWF.RecordActivityTaskHeartbeat.RecordActivityTaskHeartbeatResponse
instance GHC.Generics.Generic Network.AWS.SWF.RecordActivityTaskHeartbeat.RecordActivityTaskHeartbeat
instance Data.Data.Data Network.AWS.SWF.RecordActivityTaskHeartbeat.RecordActivityTaskHeartbeat
instance GHC.Show.Show Network.AWS.SWF.RecordActivityTaskHeartbeat.RecordActivityTaskHeartbeat
instance GHC.Read.Read Network.AWS.SWF.RecordActivityTaskHeartbeat.RecordActivityTaskHeartbeat
instance GHC.Classes.Eq Network.AWS.SWF.RecordActivityTaskHeartbeat.RecordActivityTaskHeartbeat
instance Network.AWS.Types.AWSRequest Network.AWS.SWF.RecordActivityTaskHeartbeat.RecordActivityTaskHeartbeat
instance Control.DeepSeq.NFData Network.AWS.SWF.RecordActivityTaskHeartbeat.RecordActivityTaskHeartbeatResponse
instance Data.Hashable.Class.Hashable Network.AWS.SWF.RecordActivityTaskHeartbeat.RecordActivityTaskHeartbeat
instance Control.DeepSeq.NFData Network.AWS.SWF.RecordActivityTaskHeartbeat.RecordActivityTaskHeartbeat
instance Network.AWS.Data.Headers.ToHeaders Network.AWS.SWF.RecordActivityTaskHeartbeat.RecordActivityTaskHeartbeat
instance Data.Aeson.Types.ToJSON.ToJSON Network.AWS.SWF.RecordActivityTaskHeartbeat.RecordActivityTaskHeartbeat
instance Network.AWS.Data.Path.ToPath Network.AWS.SWF.RecordActivityTaskHeartbeat.RecordActivityTaskHeartbeat
instance Network.AWS.Data.Query.ToQuery Network.AWS.SWF.RecordActivityTaskHeartbeat.RecordActivityTaskHeartbeat


-- | Used by deciders to get a <tt>DecisionTask</tt> from the specified
--   decision <tt>taskList</tt> . A decision task may be returned for any
--   open workflow execution that is using the specified task list. The
--   task includes a paginated view of the history of the workflow
--   execution. The decider should use the workflow type and the history to
--   determine how to properly handle the task.
--   
--   This action initiates a long poll, where the service holds the HTTP
--   connection open and responds as soon a task becomes available. If no
--   decision task is available in the specified task list before the
--   timeout of 60 seconds expires, an empty result is returned. An empty
--   result, in this context, means that a DecisionTask is returned, but
--   that the value of taskToken is an empty string.
--   
--   <i>Important:</i> Deciders should set their client side socket timeout
--   to at least 70 seconds (10 seconds higher than the timeout).
--   
--   <i>Important:</i> Because the number of workflow history events for a
--   single workflow execution might be very large, the result returned
--   might be split up across a number of pages. To retrieve subsequent
--   pages, make additional calls to <tt>PollForDecisionTask</tt> using the
--   <tt>nextPageToken</tt> returned by the initial call. Note that you do
--   <i>not</i> call <tt>GetWorkflowExecutionHistory</tt> with this
--   <tt>nextPageToken</tt> . Instead, call <tt>PollForDecisionTask</tt>
--   again.
--   
--   <b>Access Control</b>
--   
--   You can use IAM policies to control this action's access to Amazon SWF
--   resources as follows:
--   
--   <ul>
--   <li>Use a <tt>Resource</tt> element with the domain name to limit the
--   action to only specified domains.</li>
--   <li>Use an <tt>Action</tt> element to allow or deny permission to call
--   this action.</li>
--   <li>Constrain the <tt>taskList.name</tt> parameter by using a
--   <tt>Condition</tt> element with the <tt>swf:taskList.name</tt> key to
--   allow the action to access only certain task lists.</li>
--   </ul>
--   
--   If the caller doesn't have sufficient permissions to invoke the
--   action, or the parameter values fall outside the specified
--   constraints, the action fails. The associated event attribute's
--   <tt>cause</tt> parameter is set to <tt>OPERATION_NOT_PERMITTED</tt> .
--   For details and example IAM policies, see <a>Using IAM to Manage
--   Access to Amazon SWF Workflows</a> in the <i>Amazon SWF Developer
--   Guide</i> .
--   
--   This operation returns paginated results.
module Network.AWS.SWF.PollForDecisionTask

-- | Creates a value of <a>PollForDecisionTask</a> with the minimum fields
--   required to make a request.
--   
--   Use one of the following lenses to modify other fields as desired:
--   
--   <ul>
--   <li><a>pfdtNextPageToken</a> - If a <tt>NextPageToken</tt> was
--   returned by a previous call, there are more results available. To
--   retrieve the next page of results, make the call again using the
--   returned token in <tt>nextPageToken</tt> . Keep all other arguments
--   unchanged. The configured <tt>maximumPageSize</tt> determines how many
--   results can be returned in a single call.</li>
--   <li><a>pfdtReverseOrder</a> - When set to <tt>true</tt> , returns the
--   events in reverse order. By default the results are returned in
--   ascending order of the <tt>eventTimestamp</tt> of the events.</li>
--   <li><a>pfdtMaximumPageSize</a> - The maximum number of results that
--   are returned per call. <tt>nextPageToken</tt> can be used to obtain
--   futher pages of results. The default is 1000, which is the maximum
--   allowed page size. You can, however, specify a page size
--   <i>smaller</i> than the maximum. This is an upper limit only; the
--   actual number of results returned per call may be fewer than the
--   specified maximum.</li>
--   <li><a>pfdtIdentity</a> - Identity of the decider making the request,
--   which is recorded in the DecisionTaskStarted event in the workflow
--   history. This enables diagnostic tracing when problems arise. The form
--   of this identity is user defined.</li>
--   <li><a>pfdtDomain</a> - The name of the domain containing the task
--   lists to poll.</li>
--   <li><a>pfdtTaskList</a> - Specifies the task list to poll for decision
--   tasks. The specified string must not start or end with whitespace. It
--   must not contain a <tt>:</tt> (colon), <tt>/</tt> (slash), <tt>|</tt>
--   (vertical bar), or any control characters (<tt>u0000-u001f</tt> |
--   <tt>u007f-u009f</tt> ). Also, it must not contain the literal string
--   <tt>arn</tt> .</li>
--   </ul>
pollForDecisionTask :: Text -> TaskList -> PollForDecisionTask

-- | <i>See:</i> <a>pollForDecisionTask</a> smart constructor.
data PollForDecisionTask

-- | If a <tt>NextPageToken</tt> was returned by a previous call, there are
--   more results available. To retrieve the next page of results, make the
--   call again using the returned token in <tt>nextPageToken</tt> . Keep
--   all other arguments unchanged. The configured <tt>maximumPageSize</tt>
--   determines how many results can be returned in a single call.
pfdtNextPageToken :: Lens' PollForDecisionTask (Maybe Text)

-- | When set to <tt>true</tt> , returns the events in reverse order. By
--   default the results are returned in ascending order of the
--   <tt>eventTimestamp</tt> of the events.
pfdtReverseOrder :: Lens' PollForDecisionTask (Maybe Bool)

-- | The maximum number of results that are returned per call.
--   <tt>nextPageToken</tt> can be used to obtain futher pages of results.
--   The default is 1000, which is the maximum allowed page size. You can,
--   however, specify a page size <i>smaller</i> than the maximum. This is
--   an upper limit only; the actual number of results returned per call
--   may be fewer than the specified maximum.
pfdtMaximumPageSize :: Lens' PollForDecisionTask (Maybe Natural)

-- | Identity of the decider making the request, which is recorded in the
--   DecisionTaskStarted event in the workflow history. This enables
--   diagnostic tracing when problems arise. The form of this identity is
--   user defined.
pfdtIdentity :: Lens' PollForDecisionTask (Maybe Text)

-- | The name of the domain containing the task lists to poll.
pfdtDomain :: Lens' PollForDecisionTask Text

-- | Specifies the task list to poll for decision tasks. The specified
--   string must not start or end with whitespace. It must not contain a
--   <tt>:</tt> (colon), <tt>/</tt> (slash), <tt>|</tt> (vertical bar), or
--   any control characters (<tt>u0000-u001f</tt> | <tt>u007f-u009f</tt> ).
--   Also, it must not contain the literal string <tt>arn</tt> .
pfdtTaskList :: Lens' PollForDecisionTask TaskList

-- | Creates a value of <a>PollForDecisionTaskResponse</a> with the minimum
--   fields required to make a request.
--   
--   Use one of the following lenses to modify other fields as desired:
--   
--   <ul>
--   <li><a>pfdtrsNextPageToken</a> - If a <tt>NextPageToken</tt> was
--   returned by a previous call, there are more results available. To
--   retrieve the next page of results, make the call again using the
--   returned token in <tt>nextPageToken</tt> . Keep all other arguments
--   unchanged. The configured <tt>maximumPageSize</tt> determines how many
--   results can be returned in a single call.</li>
--   <li><a>pfdtrsWorkflowType</a> - The type of the workflow execution for
--   which this decision task was created.</li>
--   <li><a>pfdtrsPreviousStartedEventId</a> - The ID of the
--   DecisionTaskStarted event of the previous decision task of this
--   workflow execution that was processed by the decider. This can be used
--   to determine the events in the history new since the last decision
--   task received by the decider.</li>
--   <li><a>pfdtrsEvents</a> - A paginated list of history events of the
--   workflow execution. The decider uses this during the processing of the
--   decision task.</li>
--   <li><a>pfdtrsTaskToken</a> - The opaque string used as a handle on the
--   task. This token is used by workers to communicate progress and
--   response information back to the system about the task.</li>
--   <li><a>pfdtrsWorkflowExecution</a> - The workflow execution for which
--   this decision task was created.</li>
--   <li><a>pfdtrsResponseStatus</a> - -- | The response status code.</li>
--   <li><a>pfdtrsStartedEventId</a> - The ID of the
--   <tt>DecisionTaskStarted</tt> event recorded in the history.</li>
--   </ul>
pollForDecisionTaskResponse :: Int -> Integer -> PollForDecisionTaskResponse

-- | A structure that represents a decision task. Decision tasks are sent
--   to deciders in order for them to make decisions.
--   
--   <i>See:</i> <a>pollForDecisionTaskResponse</a> smart constructor.
data PollForDecisionTaskResponse

-- | If a <tt>NextPageToken</tt> was returned by a previous call, there are
--   more results available. To retrieve the next page of results, make the
--   call again using the returned token in <tt>nextPageToken</tt> . Keep
--   all other arguments unchanged. The configured <tt>maximumPageSize</tt>
--   determines how many results can be returned in a single call.
pfdtrsNextPageToken :: Lens' PollForDecisionTaskResponse (Maybe Text)

-- | The type of the workflow execution for which this decision task was
--   created.
pfdtrsWorkflowType :: Lens' PollForDecisionTaskResponse (Maybe WorkflowType)

-- | The ID of the DecisionTaskStarted event of the previous decision task
--   of this workflow execution that was processed by the decider. This can
--   be used to determine the events in the history new since the last
--   decision task received by the decider.
pfdtrsPreviousStartedEventId :: Lens' PollForDecisionTaskResponse (Maybe Integer)

-- | A paginated list of history events of the workflow execution. The
--   decider uses this during the processing of the decision task.
pfdtrsEvents :: Lens' PollForDecisionTaskResponse [HistoryEvent]

-- | The opaque string used as a handle on the task. This token is used by
--   workers to communicate progress and response information back to the
--   system about the task.
pfdtrsTaskToken :: Lens' PollForDecisionTaskResponse (Maybe Text)

-- | The workflow execution for which this decision task was created.
pfdtrsWorkflowExecution :: Lens' PollForDecisionTaskResponse (Maybe WorkflowExecution)

-- | <ul>
--   <li>- | The response status code.</li>
--   </ul>
pfdtrsResponseStatus :: Lens' PollForDecisionTaskResponse Int

-- | The ID of the <tt>DecisionTaskStarted</tt> event recorded in the
--   history.
pfdtrsStartedEventId :: Lens' PollForDecisionTaskResponse Integer
instance GHC.Generics.Generic Network.AWS.SWF.PollForDecisionTask.PollForDecisionTaskResponse
instance Data.Data.Data Network.AWS.SWF.PollForDecisionTask.PollForDecisionTaskResponse
instance GHC.Show.Show Network.AWS.SWF.PollForDecisionTask.PollForDecisionTaskResponse
instance GHC.Read.Read Network.AWS.SWF.PollForDecisionTask.PollForDecisionTaskResponse
instance GHC.Classes.Eq Network.AWS.SWF.PollForDecisionTask.PollForDecisionTaskResponse
instance GHC.Generics.Generic Network.AWS.SWF.PollForDecisionTask.PollForDecisionTask
instance Data.Data.Data Network.AWS.SWF.PollForDecisionTask.PollForDecisionTask
instance GHC.Show.Show Network.AWS.SWF.PollForDecisionTask.PollForDecisionTask
instance GHC.Read.Read Network.AWS.SWF.PollForDecisionTask.PollForDecisionTask
instance GHC.Classes.Eq Network.AWS.SWF.PollForDecisionTask.PollForDecisionTask
instance Network.AWS.Types.AWSRequest Network.AWS.SWF.PollForDecisionTask.PollForDecisionTask
instance Control.DeepSeq.NFData Network.AWS.SWF.PollForDecisionTask.PollForDecisionTaskResponse
instance Network.AWS.Pager.AWSPager Network.AWS.SWF.PollForDecisionTask.PollForDecisionTask
instance Data.Hashable.Class.Hashable Network.AWS.SWF.PollForDecisionTask.PollForDecisionTask
instance Control.DeepSeq.NFData Network.AWS.SWF.PollForDecisionTask.PollForDecisionTask
instance Network.AWS.Data.Headers.ToHeaders Network.AWS.SWF.PollForDecisionTask.PollForDecisionTask
instance Data.Aeson.Types.ToJSON.ToJSON Network.AWS.SWF.PollForDecisionTask.PollForDecisionTask
instance Network.AWS.Data.Path.ToPath Network.AWS.SWF.PollForDecisionTask.PollForDecisionTask
instance Network.AWS.Data.Query.ToQuery Network.AWS.SWF.PollForDecisionTask.PollForDecisionTask


-- | Used by workers to get an <tt>ActivityTask</tt> from the specified
--   activity <tt>taskList</tt> . This initiates a long poll, where the
--   service holds the HTTP connection open and responds as soon as a task
--   becomes available. The maximum time the service holds on to the
--   request before responding is 60 seconds. If no task is available
--   within 60 seconds, the poll returns an empty result. An empty result,
--   in this context, means that an ActivityTask is returned, but that the
--   value of taskToken is an empty string. If a task is returned, the
--   worker should use its type to identify and process it correctly.
--   
--   <i>Important:</i> Workers should set their client side socket timeout
--   to at least 70 seconds (10 seconds higher than the maximum time
--   service may hold the poll request).
--   
--   <b>Access Control</b>
--   
--   You can use IAM policies to control this action's access to Amazon SWF
--   resources as follows:
--   
--   <ul>
--   <li>Use a <tt>Resource</tt> element with the domain name to limit the
--   action to only specified domains.</li>
--   <li>Use an <tt>Action</tt> element to allow or deny permission to call
--   this action.</li>
--   <li>Constrain the <tt>taskList.name</tt> parameter by using a
--   <tt>Condition</tt> element with the <tt>swf:taskList.name</tt> key to
--   allow the action to access only certain task lists.</li>
--   </ul>
--   
--   If the caller doesn't have sufficient permissions to invoke the
--   action, or the parameter values fall outside the specified
--   constraints, the action fails. The associated event attribute's
--   <tt>cause</tt> parameter is set to <tt>OPERATION_NOT_PERMITTED</tt> .
--   For details and example IAM policies, see <a>Using IAM to Manage
--   Access to Amazon SWF Workflows</a> in the <i>Amazon SWF Developer
--   Guide</i> .
module Network.AWS.SWF.PollForActivityTask

-- | Creates a value of <a>PollForActivityTask</a> with the minimum fields
--   required to make a request.
--   
--   Use one of the following lenses to modify other fields as desired:
--   
--   <ul>
--   <li><a>pfatIdentity</a> - Identity of the worker making the request,
--   recorded in the <tt>ActivityTaskStarted</tt> event in the workflow
--   history. This enables diagnostic tracing when problems arise. The form
--   of this identity is user defined.</li>
--   <li><a>pfatDomain</a> - The name of the domain that contains the task
--   lists being polled.</li>
--   <li><a>pfatTaskList</a> - Specifies the task list to poll for activity
--   tasks. The specified string must not start or end with whitespace. It
--   must not contain a <tt>:</tt> (colon), <tt>/</tt> (slash), <tt>|</tt>
--   (vertical bar), or any control characters (<tt>u0000-u001f</tt> |
--   <tt>u007f-u009f</tt> ). Also, it must not contain the literal string
--   <tt>arn</tt> .</li>
--   </ul>
pollForActivityTask :: Text -> TaskList -> PollForActivityTask

-- | <i>See:</i> <a>pollForActivityTask</a> smart constructor.
data PollForActivityTask

-- | Identity of the worker making the request, recorded in the
--   <tt>ActivityTaskStarted</tt> event in the workflow history. This
--   enables diagnostic tracing when problems arise. The form of this
--   identity is user defined.
pfatIdentity :: Lens' PollForActivityTask (Maybe Text)

-- | The name of the domain that contains the task lists being polled.
pfatDomain :: Lens' PollForActivityTask Text

-- | Specifies the task list to poll for activity tasks. The specified
--   string must not start or end with whitespace. It must not contain a
--   <tt>:</tt> (colon), <tt>/</tt> (slash), <tt>|</tt> (vertical bar), or
--   any control characters (<tt>u0000-u001f</tt> | <tt>u007f-u009f</tt> ).
--   Also, it must not contain the literal string <tt>arn</tt> .
pfatTaskList :: Lens' PollForActivityTask TaskList

-- | Creates a value of <a>PollForActivityTaskResponse</a> with the minimum
--   fields required to make a request.
--   
--   Use one of the following lenses to modify other fields as desired:
--   
--   <ul>
--   <li><a>pfatrsActivityType</a> - The type of this activity task.</li>
--   <li><a>pfatrsActivityId</a> - The unique ID of the task.</li>
--   <li><a>pfatrsInput</a> - The inputs provided when the activity task
--   was scheduled. The form of the input is user defined and should be
--   meaningful to the activity implementation.</li>
--   <li><a>pfatrsTaskToken</a> - The opaque string used as a handle on the
--   task. This token is used by workers to communicate progress and
--   response information back to the system about the task.</li>
--   <li><a>pfatrsWorkflowExecution</a> - The workflow execution that
--   started this activity task.</li>
--   <li><a>pfatrsResponseStatus</a> - -- | The response status code.</li>
--   <li><a>pfatrsStartedEventId</a> - The ID of the
--   <tt>ActivityTaskStarted</tt> event recorded in the history.</li>
--   </ul>
pollForActivityTaskResponse :: Int -> Integer -> PollForActivityTaskResponse

-- | Unit of work sent to an activity worker.
--   
--   <i>See:</i> <a>pollForActivityTaskResponse</a> smart constructor.
data PollForActivityTaskResponse

-- | The type of this activity task.
pfatrsActivityType :: Lens' PollForActivityTaskResponse (Maybe ActivityType)

-- | The unique ID of the task.
pfatrsActivityId :: Lens' PollForActivityTaskResponse (Maybe Text)

-- | The inputs provided when the activity task was scheduled. The form of
--   the input is user defined and should be meaningful to the activity
--   implementation.
pfatrsInput :: Lens' PollForActivityTaskResponse (Maybe Text)

-- | The opaque string used as a handle on the task. This token is used by
--   workers to communicate progress and response information back to the
--   system about the task.
pfatrsTaskToken :: Lens' PollForActivityTaskResponse (Maybe Text)

-- | The workflow execution that started this activity task.
pfatrsWorkflowExecution :: Lens' PollForActivityTaskResponse (Maybe WorkflowExecution)

-- | <ul>
--   <li>- | The response status code.</li>
--   </ul>
pfatrsResponseStatus :: Lens' PollForActivityTaskResponse Int

-- | The ID of the <tt>ActivityTaskStarted</tt> event recorded in the
--   history.
pfatrsStartedEventId :: Lens' PollForActivityTaskResponse Integer
instance GHC.Generics.Generic Network.AWS.SWF.PollForActivityTask.PollForActivityTaskResponse
instance Data.Data.Data Network.AWS.SWF.PollForActivityTask.PollForActivityTaskResponse
instance GHC.Show.Show Network.AWS.SWF.PollForActivityTask.PollForActivityTaskResponse
instance GHC.Read.Read Network.AWS.SWF.PollForActivityTask.PollForActivityTaskResponse
instance GHC.Classes.Eq Network.AWS.SWF.PollForActivityTask.PollForActivityTaskResponse
instance GHC.Generics.Generic Network.AWS.SWF.PollForActivityTask.PollForActivityTask
instance Data.Data.Data Network.AWS.SWF.PollForActivityTask.PollForActivityTask
instance GHC.Show.Show Network.AWS.SWF.PollForActivityTask.PollForActivityTask
instance GHC.Read.Read Network.AWS.SWF.PollForActivityTask.PollForActivityTask
instance GHC.Classes.Eq Network.AWS.SWF.PollForActivityTask.PollForActivityTask
instance Network.AWS.Types.AWSRequest Network.AWS.SWF.PollForActivityTask.PollForActivityTask
instance Control.DeepSeq.NFData Network.AWS.SWF.PollForActivityTask.PollForActivityTaskResponse
instance Data.Hashable.Class.Hashable Network.AWS.SWF.PollForActivityTask.PollForActivityTask
instance Control.DeepSeq.NFData Network.AWS.SWF.PollForActivityTask.PollForActivityTask
instance Network.AWS.Data.Headers.ToHeaders Network.AWS.SWF.PollForActivityTask.PollForActivityTask
instance Data.Aeson.Types.ToJSON.ToJSON Network.AWS.SWF.PollForActivityTask.PollForActivityTask
instance Network.AWS.Data.Path.ToPath Network.AWS.SWF.PollForActivityTask.PollForActivityTask
instance Network.AWS.Data.Query.ToQuery Network.AWS.SWF.PollForActivityTask.PollForActivityTask


-- | Returns information about workflow types in the specified domain. The
--   results may be split into multiple pages that can be retrieved by
--   making the call repeatedly.
--   
--   <b>Access Control</b>
--   
--   You can use IAM policies to control this action's access to Amazon SWF
--   resources as follows:
--   
--   <ul>
--   <li>Use a <tt>Resource</tt> element with the domain name to limit the
--   action to only specified domains.</li>
--   <li>Use an <tt>Action</tt> element to allow or deny permission to call
--   this action.</li>
--   <li>You cannot use an IAM policy to constrain this action's
--   parameters.</li>
--   </ul>
--   
--   If the caller doesn't have sufficient permissions to invoke the
--   action, or the parameter values fall outside the specified
--   constraints, the action fails. The associated event attribute's
--   <tt>cause</tt> parameter is set to <tt>OPERATION_NOT_PERMITTED</tt> .
--   For details and example IAM policies, see <a>Using IAM to Manage
--   Access to Amazon SWF Workflows</a> in the <i>Amazon SWF Developer
--   Guide</i> .
--   
--   This operation returns paginated results.
module Network.AWS.SWF.ListWorkflowTypes

-- | Creates a value of <a>ListWorkflowTypes</a> with the minimum fields
--   required to make a request.
--   
--   Use one of the following lenses to modify other fields as desired:
--   
--   <ul>
--   <li><a>lwtNextPageToken</a> - If a <tt>NextPageToken</tt> was returned
--   by a previous call, there are more results available. To retrieve the
--   next page of results, make the call again using the returned token in
--   <tt>nextPageToken</tt> . Keep all other arguments unchanged. The
--   configured <tt>maximumPageSize</tt> determines how many results can be
--   returned in a single call.</li>
--   <li><a>lwtReverseOrder</a> - When set to <tt>true</tt> , returns the
--   results in reverse order. By default the results are returned in
--   ascending alphabetical order of the <tt>name</tt> of the workflow
--   types.</li>
--   <li><a>lwtName</a> - If specified, lists the workflow type with this
--   name.</li>
--   <li><a>lwtMaximumPageSize</a> - The maximum number of results that are
--   returned per call. <tt>nextPageToken</tt> can be used to obtain futher
--   pages of results. The default is 1000, which is the maximum allowed
--   page size. You can, however, specify a page size <i>smaller</i> than
--   the maximum. This is an upper limit only; the actual number of results
--   returned per call may be fewer than the specified maximum.</li>
--   <li><a>lwtDomain</a> - The name of the domain in which the workflow
--   types have been registered.</li>
--   <li><a>lwtRegistrationStatus</a> - Specifies the registration status
--   of the workflow types to list.</li>
--   </ul>
listWorkflowTypes :: Text -> RegistrationStatus -> ListWorkflowTypes

-- | <i>See:</i> <a>listWorkflowTypes</a> smart constructor.
data ListWorkflowTypes

-- | If a <tt>NextPageToken</tt> was returned by a previous call, there are
--   more results available. To retrieve the next page of results, make the
--   call again using the returned token in <tt>nextPageToken</tt> . Keep
--   all other arguments unchanged. The configured <tt>maximumPageSize</tt>
--   determines how many results can be returned in a single call.
lwtNextPageToken :: Lens' ListWorkflowTypes (Maybe Text)

-- | When set to <tt>true</tt> , returns the results in reverse order. By
--   default the results are returned in ascending alphabetical order of
--   the <tt>name</tt> of the workflow types.
lwtReverseOrder :: Lens' ListWorkflowTypes (Maybe Bool)

-- | If specified, lists the workflow type with this name.
lwtName :: Lens' ListWorkflowTypes (Maybe Text)

-- | The maximum number of results that are returned per call.
--   <tt>nextPageToken</tt> can be used to obtain futher pages of results.
--   The default is 1000, which is the maximum allowed page size. You can,
--   however, specify a page size <i>smaller</i> than the maximum. This is
--   an upper limit only; the actual number of results returned per call
--   may be fewer than the specified maximum.
lwtMaximumPageSize :: Lens' ListWorkflowTypes (Maybe Natural)

-- | The name of the domain in which the workflow types have been
--   registered.
lwtDomain :: Lens' ListWorkflowTypes Text

-- | Specifies the registration status of the workflow types to list.
lwtRegistrationStatus :: Lens' ListWorkflowTypes RegistrationStatus

-- | Creates a value of <a>ListWorkflowTypesResponse</a> with the minimum
--   fields required to make a request.
--   
--   Use one of the following lenses to modify other fields as desired:
--   
--   <ul>
--   <li><a>lwtrsNextPageToken</a> - If a <tt>NextPageToken</tt> was
--   returned by a previous call, there are more results available. To
--   retrieve the next page of results, make the call again using the
--   returned token in <tt>nextPageToken</tt> . Keep all other arguments
--   unchanged. The configured <tt>maximumPageSize</tt> determines how many
--   results can be returned in a single call.</li>
--   <li><a>lwtrsResponseStatus</a> - -- | The response status code.</li>
--   <li><a>lwtrsTypeInfos</a> - The list of workflow type
--   information.</li>
--   </ul>
listWorkflowTypesResponse :: Int -> ListWorkflowTypesResponse

-- | Contains a paginated list of information structures about workflow
--   types.
--   
--   <i>See:</i> <a>listWorkflowTypesResponse</a> smart constructor.
data ListWorkflowTypesResponse

-- | If a <tt>NextPageToken</tt> was returned by a previous call, there are
--   more results available. To retrieve the next page of results, make the
--   call again using the returned token in <tt>nextPageToken</tt> . Keep
--   all other arguments unchanged. The configured <tt>maximumPageSize</tt>
--   determines how many results can be returned in a single call.
lwtrsNextPageToken :: Lens' ListWorkflowTypesResponse (Maybe Text)

-- | <ul>
--   <li>- | The response status code.</li>
--   </ul>
lwtrsResponseStatus :: Lens' ListWorkflowTypesResponse Int

-- | The list of workflow type information.
lwtrsTypeInfos :: Lens' ListWorkflowTypesResponse [WorkflowTypeInfo]
instance GHC.Generics.Generic Network.AWS.SWF.ListWorkflowTypes.ListWorkflowTypesResponse
instance Data.Data.Data Network.AWS.SWF.ListWorkflowTypes.ListWorkflowTypesResponse
instance GHC.Show.Show Network.AWS.SWF.ListWorkflowTypes.ListWorkflowTypesResponse
instance GHC.Read.Read Network.AWS.SWF.ListWorkflowTypes.ListWorkflowTypesResponse
instance GHC.Classes.Eq Network.AWS.SWF.ListWorkflowTypes.ListWorkflowTypesResponse
instance GHC.Generics.Generic Network.AWS.SWF.ListWorkflowTypes.ListWorkflowTypes
instance Data.Data.Data Network.AWS.SWF.ListWorkflowTypes.ListWorkflowTypes
instance GHC.Show.Show Network.AWS.SWF.ListWorkflowTypes.ListWorkflowTypes
instance GHC.Read.Read Network.AWS.SWF.ListWorkflowTypes.ListWorkflowTypes
instance GHC.Classes.Eq Network.AWS.SWF.ListWorkflowTypes.ListWorkflowTypes
instance Network.AWS.Types.AWSRequest Network.AWS.SWF.ListWorkflowTypes.ListWorkflowTypes
instance Control.DeepSeq.NFData Network.AWS.SWF.ListWorkflowTypes.ListWorkflowTypesResponse
instance Network.AWS.Pager.AWSPager Network.AWS.SWF.ListWorkflowTypes.ListWorkflowTypes
instance Data.Hashable.Class.Hashable Network.AWS.SWF.ListWorkflowTypes.ListWorkflowTypes
instance Control.DeepSeq.NFData Network.AWS.SWF.ListWorkflowTypes.ListWorkflowTypes
instance Network.AWS.Data.Headers.ToHeaders Network.AWS.SWF.ListWorkflowTypes.ListWorkflowTypes
instance Data.Aeson.Types.ToJSON.ToJSON Network.AWS.SWF.ListWorkflowTypes.ListWorkflowTypes
instance Network.AWS.Data.Path.ToPath Network.AWS.SWF.ListWorkflowTypes.ListWorkflowTypes
instance Network.AWS.Data.Query.ToQuery Network.AWS.SWF.ListWorkflowTypes.ListWorkflowTypes


-- | Returns a list of open workflow executions in the specified domain
--   that meet the filtering criteria. The results may be split into
--   multiple pages. To retrieve subsequent pages, make the call again
--   using the nextPageToken returned by the initial call.
--   
--   <b>Access Control</b>
--   
--   You can use IAM policies to control this action's access to Amazon SWF
--   resources as follows:
--   
--   <ul>
--   <li>Use a <tt>Resource</tt> element with the domain name to limit the
--   action to only specified domains.</li>
--   <li>Use an <tt>Action</tt> element to allow or deny permission to call
--   this action.</li>
--   <li>Constrain the following parameters by using a <tt>Condition</tt>
--   element with the appropriate keys.</li>
--   <li><tt>tagFilter.tag</tt> : String constraint. The key is
--   <tt>swf:tagFilter.tag</tt> .</li>
--   <li><tt>typeFilter.name</tt> : String constraint. The key is
--   <tt>swf:typeFilter.name</tt> .</li>
--   <li><tt>typeFilter.version</tt> : String constraint. The key is
--   <tt>swf:typeFilter.version</tt> .</li>
--   </ul>
--   
--   If the caller doesn't have sufficient permissions to invoke the
--   action, or the parameter values fall outside the specified
--   constraints, the action fails. The associated event attribute's
--   <tt>cause</tt> parameter is set to <tt>OPERATION_NOT_PERMITTED</tt> .
--   For details and example IAM policies, see <a>Using IAM to Manage
--   Access to Amazon SWF Workflows</a> in the <i>Amazon SWF Developer
--   Guide</i> .
--   
--   This operation returns paginated results.
module Network.AWS.SWF.ListOpenWorkflowExecutions

-- | Creates a value of <a>ListOpenWorkflowExecutions</a> with the minimum
--   fields required to make a request.
--   
--   Use one of the following lenses to modify other fields as desired:
--   
--   <ul>
--   <li><a>loweNextPageToken</a> - If a <tt>NextPageToken</tt> was
--   returned by a previous call, there are more results available. To
--   retrieve the next page of results, make the call again using the
--   returned token in <tt>nextPageToken</tt> . Keep all other arguments
--   unchanged. The configured <tt>maximumPageSize</tt> determines how many
--   results can be returned in a single call.</li>
--   <li><a>loweExecutionFilter</a> - If specified, only workflow
--   executions matching the workflow ID specified in the filter are
--   returned.</li>
--   <li><a>loweTypeFilter</a> - If specified, only executions of the type
--   specified in the filter are returned.</li>
--   <li><a>loweReverseOrder</a> - When set to <tt>true</tt> , returns the
--   results in reverse order. By default the results are returned in
--   descending order of the start time of the executions.</li>
--   <li><a>loweTagFilter</a> - If specified, only executions that have the
--   matching tag are listed.</li>
--   <li><a>loweMaximumPageSize</a> - The maximum number of results that
--   are returned per call. <tt>nextPageToken</tt> can be used to obtain
--   futher pages of results. The default is 1000, which is the maximum
--   allowed page size. You can, however, specify a page size
--   <i>smaller</i> than the maximum. This is an upper limit only; the
--   actual number of results returned per call may be fewer than the
--   specified maximum.</li>
--   <li><a>loweDomain</a> - The name of the domain that contains the
--   workflow executions to list.</li>
--   <li><a>loweStartTimeFilter</a> - Workflow executions are included in
--   the returned results based on whether their start times are within the
--   range specified by this filter.</li>
--   </ul>
listOpenWorkflowExecutions :: Text -> ExecutionTimeFilter -> ListOpenWorkflowExecutions

-- | <i>See:</i> <a>listOpenWorkflowExecutions</a> smart constructor.
data ListOpenWorkflowExecutions

-- | If a <tt>NextPageToken</tt> was returned by a previous call, there are
--   more results available. To retrieve the next page of results, make the
--   call again using the returned token in <tt>nextPageToken</tt> . Keep
--   all other arguments unchanged. The configured <tt>maximumPageSize</tt>
--   determines how many results can be returned in a single call.
loweNextPageToken :: Lens' ListOpenWorkflowExecutions (Maybe Text)

-- | If specified, only workflow executions matching the workflow ID
--   specified in the filter are returned.
loweExecutionFilter :: Lens' ListOpenWorkflowExecutions (Maybe WorkflowExecutionFilter)

-- | If specified, only executions of the type specified in the filter are
--   returned.
loweTypeFilter :: Lens' ListOpenWorkflowExecutions (Maybe WorkflowTypeFilter)

-- | When set to <tt>true</tt> , returns the results in reverse order. By
--   default the results are returned in descending order of the start time
--   of the executions.
loweReverseOrder :: Lens' ListOpenWorkflowExecutions (Maybe Bool)

-- | If specified, only executions that have the matching tag are listed.
loweTagFilter :: Lens' ListOpenWorkflowExecutions (Maybe TagFilter)

-- | The maximum number of results that are returned per call.
--   <tt>nextPageToken</tt> can be used to obtain futher pages of results.
--   The default is 1000, which is the maximum allowed page size. You can,
--   however, specify a page size <i>smaller</i> than the maximum. This is
--   an upper limit only; the actual number of results returned per call
--   may be fewer than the specified maximum.
loweMaximumPageSize :: Lens' ListOpenWorkflowExecutions (Maybe Natural)

-- | The name of the domain that contains the workflow executions to list.
loweDomain :: Lens' ListOpenWorkflowExecutions Text

-- | Workflow executions are included in the returned results based on
--   whether their start times are within the range specified by this
--   filter.
loweStartTimeFilter :: Lens' ListOpenWorkflowExecutions ExecutionTimeFilter

-- | Creates a value of <a>WorkflowExecutionInfos</a> with the minimum
--   fields required to make a request.
--   
--   Use one of the following lenses to modify other fields as desired:
--   
--   <ul>
--   <li><a>weiNextPageToken</a> - If a <tt>NextPageToken</tt> was returned
--   by a previous call, there are more results available. To retrieve the
--   next page of results, make the call again using the returned token in
--   <tt>nextPageToken</tt> . Keep all other arguments unchanged. The
--   configured <tt>maximumPageSize</tt> determines how many results can be
--   returned in a single call.</li>
--   <li><a>weiExecutionInfos</a> - The list of workflow information
--   structures.</li>
--   </ul>
workflowExecutionInfos :: WorkflowExecutionInfos

-- | Contains a paginated list of information about workflow executions.
--   
--   <i>See:</i> <a>workflowExecutionInfos</a> smart constructor.
data WorkflowExecutionInfos

-- | If a <tt>NextPageToken</tt> was returned by a previous call, there are
--   more results available. To retrieve the next page of results, make the
--   call again using the returned token in <tt>nextPageToken</tt> . Keep
--   all other arguments unchanged. The configured <tt>maximumPageSize</tt>
--   determines how many results can be returned in a single call.
weiNextPageToken :: Lens' WorkflowExecutionInfos (Maybe Text)

-- | The list of workflow information structures.
weiExecutionInfos :: Lens' WorkflowExecutionInfos [WorkflowExecutionInfo]
instance GHC.Generics.Generic Network.AWS.SWF.ListOpenWorkflowExecutions.ListOpenWorkflowExecutions
instance Data.Data.Data Network.AWS.SWF.ListOpenWorkflowExecutions.ListOpenWorkflowExecutions
instance GHC.Show.Show Network.AWS.SWF.ListOpenWorkflowExecutions.ListOpenWorkflowExecutions
instance GHC.Read.Read Network.AWS.SWF.ListOpenWorkflowExecutions.ListOpenWorkflowExecutions
instance GHC.Classes.Eq Network.AWS.SWF.ListOpenWorkflowExecutions.ListOpenWorkflowExecutions
instance Network.AWS.Pager.AWSPager Network.AWS.SWF.ListOpenWorkflowExecutions.ListOpenWorkflowExecutions
instance Network.AWS.Types.AWSRequest Network.AWS.SWF.ListOpenWorkflowExecutions.ListOpenWorkflowExecutions
instance Data.Hashable.Class.Hashable Network.AWS.SWF.ListOpenWorkflowExecutions.ListOpenWorkflowExecutions
instance Control.DeepSeq.NFData Network.AWS.SWF.ListOpenWorkflowExecutions.ListOpenWorkflowExecutions
instance Network.AWS.Data.Headers.ToHeaders Network.AWS.SWF.ListOpenWorkflowExecutions.ListOpenWorkflowExecutions
instance Data.Aeson.Types.ToJSON.ToJSON Network.AWS.SWF.ListOpenWorkflowExecutions.ListOpenWorkflowExecutions
instance Network.AWS.Data.Path.ToPath Network.AWS.SWF.ListOpenWorkflowExecutions.ListOpenWorkflowExecutions
instance Network.AWS.Data.Query.ToQuery Network.AWS.SWF.ListOpenWorkflowExecutions.ListOpenWorkflowExecutions


-- | Returns the list of domains registered in the account. The results may
--   be split into multiple pages. To retrieve subsequent pages, make the
--   call again using the nextPageToken returned by the initial call.
--   
--   <b>Access Control</b>
--   
--   You can use IAM policies to control this action's access to Amazon SWF
--   resources as follows:
--   
--   <ul>
--   <li>Use a <tt>Resource</tt> element with the domain name to limit the
--   action to only specified domains. The element must be set to
--   <tt>arn:aws:swf::AccountID:domain/*</tt> , where <i>AccountID</i> is
--   the account ID, with no dashes.</li>
--   <li>Use an <tt>Action</tt> element to allow or deny permission to call
--   this action.</li>
--   <li>You cannot use an IAM policy to constrain this action's
--   parameters.</li>
--   </ul>
--   
--   If the caller doesn't have sufficient permissions to invoke the
--   action, or the parameter values fall outside the specified
--   constraints, the action fails. The associated event attribute's
--   <tt>cause</tt> parameter is set to <tt>OPERATION_NOT_PERMITTED</tt> .
--   For details and example IAM policies, see <a>Using IAM to Manage
--   Access to Amazon SWF Workflows</a> in the <i>Amazon SWF Developer
--   Guide</i> .
--   
--   This operation returns paginated results.
module Network.AWS.SWF.ListDomains

-- | Creates a value of <a>ListDomains</a> with the minimum fields required
--   to make a request.
--   
--   Use one of the following lenses to modify other fields as desired:
--   
--   <ul>
--   <li><a>ldNextPageToken</a> - If a <tt>NextPageToken</tt> was returned
--   by a previous call, there are more results available. To retrieve the
--   next page of results, make the call again using the returned token in
--   <tt>nextPageToken</tt> . Keep all other arguments unchanged. The
--   configured <tt>maximumPageSize</tt> determines how many results can be
--   returned in a single call.</li>
--   <li><a>ldReverseOrder</a> - When set to <tt>true</tt> , returns the
--   results in reverse order. By default, the results are returned in
--   ascending alphabetical order by <tt>name</tt> of the domains.</li>
--   <li><a>ldMaximumPageSize</a> - The maximum number of results that are
--   returned per call. <tt>nextPageToken</tt> can be used to obtain futher
--   pages of results. The default is 1000, which is the maximum allowed
--   page size. You can, however, specify a page size <i>smaller</i> than
--   the maximum. This is an upper limit only; the actual number of results
--   returned per call may be fewer than the specified maximum.</li>
--   <li><a>ldRegistrationStatus</a> - Specifies the registration status of
--   the domains to list.</li>
--   </ul>
listDomains :: RegistrationStatus -> ListDomains

-- | <i>See:</i> <a>listDomains</a> smart constructor.
data ListDomains

-- | If a <tt>NextPageToken</tt> was returned by a previous call, there are
--   more results available. To retrieve the next page of results, make the
--   call again using the returned token in <tt>nextPageToken</tt> . Keep
--   all other arguments unchanged. The configured <tt>maximumPageSize</tt>
--   determines how many results can be returned in a single call.
ldNextPageToken :: Lens' ListDomains (Maybe Text)

-- | When set to <tt>true</tt> , returns the results in reverse order. By
--   default, the results are returned in ascending alphabetical order by
--   <tt>name</tt> of the domains.
ldReverseOrder :: Lens' ListDomains (Maybe Bool)

-- | The maximum number of results that are returned per call.
--   <tt>nextPageToken</tt> can be used to obtain futher pages of results.
--   The default is 1000, which is the maximum allowed page size. You can,
--   however, specify a page size <i>smaller</i> than the maximum. This is
--   an upper limit only; the actual number of results returned per call
--   may be fewer than the specified maximum.
ldMaximumPageSize :: Lens' ListDomains (Maybe Natural)

-- | Specifies the registration status of the domains to list.
ldRegistrationStatus :: Lens' ListDomains RegistrationStatus

-- | Creates a value of <a>ListDomainsResponse</a> with the minimum fields
--   required to make a request.
--   
--   Use one of the following lenses to modify other fields as desired:
--   
--   <ul>
--   <li><a>ldrsNextPageToken</a> - If a <tt>NextPageToken</tt> was
--   returned by a previous call, there are more results available. To
--   retrieve the next page of results, make the call again using the
--   returned token in <tt>nextPageToken</tt> . Keep all other arguments
--   unchanged. The configured <tt>maximumPageSize</tt> determines how many
--   results can be returned in a single call.</li>
--   <li><a>ldrsResponseStatus</a> - -- | The response status code.</li>
--   <li><a>ldrsDomainInfos</a> - A list of DomainInfo structures.</li>
--   </ul>
listDomainsResponse :: Int -> ListDomainsResponse

-- | Contains a paginated collection of DomainInfo structures.
--   
--   <i>See:</i> <a>listDomainsResponse</a> smart constructor.
data ListDomainsResponse

-- | If a <tt>NextPageToken</tt> was returned by a previous call, there are
--   more results available. To retrieve the next page of results, make the
--   call again using the returned token in <tt>nextPageToken</tt> . Keep
--   all other arguments unchanged. The configured <tt>maximumPageSize</tt>
--   determines how many results can be returned in a single call.
ldrsNextPageToken :: Lens' ListDomainsResponse (Maybe Text)

-- | <ul>
--   <li>- | The response status code.</li>
--   </ul>
ldrsResponseStatus :: Lens' ListDomainsResponse Int

-- | A list of DomainInfo structures.
ldrsDomainInfos :: Lens' ListDomainsResponse [DomainInfo]
instance GHC.Generics.Generic Network.AWS.SWF.ListDomains.ListDomainsResponse
instance Data.Data.Data Network.AWS.SWF.ListDomains.ListDomainsResponse
instance GHC.Show.Show Network.AWS.SWF.ListDomains.ListDomainsResponse
instance GHC.Read.Read Network.AWS.SWF.ListDomains.ListDomainsResponse
instance GHC.Classes.Eq Network.AWS.SWF.ListDomains.ListDomainsResponse
instance GHC.Generics.Generic Network.AWS.SWF.ListDomains.ListDomains
instance Data.Data.Data Network.AWS.SWF.ListDomains.ListDomains
instance GHC.Show.Show Network.AWS.SWF.ListDomains.ListDomains
instance GHC.Read.Read Network.AWS.SWF.ListDomains.ListDomains
instance GHC.Classes.Eq Network.AWS.SWF.ListDomains.ListDomains
instance Network.AWS.Types.AWSRequest Network.AWS.SWF.ListDomains.ListDomains
instance Control.DeepSeq.NFData Network.AWS.SWF.ListDomains.ListDomainsResponse
instance Network.AWS.Pager.AWSPager Network.AWS.SWF.ListDomains.ListDomains
instance Data.Hashable.Class.Hashable Network.AWS.SWF.ListDomains.ListDomains
instance Control.DeepSeq.NFData Network.AWS.SWF.ListDomains.ListDomains
instance Network.AWS.Data.Headers.ToHeaders Network.AWS.SWF.ListDomains.ListDomains
instance Data.Aeson.Types.ToJSON.ToJSON Network.AWS.SWF.ListDomains.ListDomains
instance Network.AWS.Data.Path.ToPath Network.AWS.SWF.ListDomains.ListDomains
instance Network.AWS.Data.Query.ToQuery Network.AWS.SWF.ListDomains.ListDomains


-- | Returns a list of closed workflow executions in the specified domain
--   that meet the filtering criteria. The results may be split into
--   multiple pages. To retrieve subsequent pages, make the call again
--   using the nextPageToken returned by the initial call.
--   
--   <b>Access Control</b>
--   
--   You can use IAM policies to control this action's access to Amazon SWF
--   resources as follows:
--   
--   <ul>
--   <li>Use a <tt>Resource</tt> element with the domain name to limit the
--   action to only specified domains.</li>
--   <li>Use an <tt>Action</tt> element to allow or deny permission to call
--   this action.</li>
--   <li>Constrain the following parameters by using a <tt>Condition</tt>
--   element with the appropriate keys.</li>
--   <li><tt>tagFilter.tag</tt> : String constraint. The key is
--   <tt>swf:tagFilter.tag</tt> .</li>
--   <li><tt>typeFilter.name</tt> : String constraint. The key is
--   <tt>swf:typeFilter.name</tt> .</li>
--   <li><tt>typeFilter.version</tt> : String constraint. The key is
--   <tt>swf:typeFilter.version</tt> .</li>
--   </ul>
--   
--   If the caller doesn't have sufficient permissions to invoke the
--   action, or the parameter values fall outside the specified
--   constraints, the action fails. The associated event attribute's
--   <tt>cause</tt> parameter is set to <tt>OPERATION_NOT_PERMITTED</tt> .
--   For details and example IAM policies, see <a>Using IAM to Manage
--   Access to Amazon SWF Workflows</a> in the <i>Amazon SWF Developer
--   Guide</i> .
--   
--   This operation returns paginated results.
module Network.AWS.SWF.ListClosedWorkflowExecutions

-- | Creates a value of <a>ListClosedWorkflowExecutions</a> with the
--   minimum fields required to make a request.
--   
--   Use one of the following lenses to modify other fields as desired:
--   
--   <ul>
--   <li><a>lcweNextPageToken</a> - If a <tt>NextPageToken</tt> was
--   returned by a previous call, there are more results available. To
--   retrieve the next page of results, make the call again using the
--   returned token in <tt>nextPageToken</tt> . Keep all other arguments
--   unchanged. The configured <tt>maximumPageSize</tt> determines how many
--   results can be returned in a single call.</li>
--   <li><a>lcweExecutionFilter</a> - If specified, only workflow
--   executions matching the workflow ID specified in the filter are
--   returned.</li>
--   <li><a>lcweCloseStatusFilter</a> - If specified, only workflow
--   executions that match this <i>close status</i> are listed. For
--   example, if TERMINATED is specified, then only TERMINATED workflow
--   executions are listed.</li>
--   <li><a>lcweTypeFilter</a> - If specified, only executions of the type
--   specified in the filter are returned.</li>
--   <li><a>lcweCloseTimeFilter</a> - If specified, the workflow executions
--   are included in the returned results based on whether their close
--   times are within the range specified by this filter. Also, if this
--   parameter is specified, the returned results are ordered by their
--   close times.</li>
--   <li><a>lcweReverseOrder</a> - When set to <tt>true</tt> , returns the
--   results in reverse order. By default the results are returned in
--   descending order of the start or the close time of the
--   executions.</li>
--   <li><a>lcweTagFilter</a> - If specified, only executions that have the
--   matching tag are listed.</li>
--   <li><a>lcweStartTimeFilter</a> - If specified, the workflow executions
--   are included in the returned results based on whether their start
--   times are within the range specified by this filter. Also, if this
--   parameter is specified, the returned results are ordered by their
--   start times.</li>
--   <li><a>lcweMaximumPageSize</a> - The maximum number of results that
--   are returned per call. <tt>nextPageToken</tt> can be used to obtain
--   futher pages of results. The default is 1000, which is the maximum
--   allowed page size. You can, however, specify a page size
--   <i>smaller</i> than the maximum. This is an upper limit only; the
--   actual number of results returned per call may be fewer than the
--   specified maximum.</li>
--   <li><a>lcweDomain</a> - The name of the domain that contains the
--   workflow executions to list.</li>
--   </ul>
listClosedWorkflowExecutions :: Text -> ListClosedWorkflowExecutions

-- | <i>See:</i> <a>listClosedWorkflowExecutions</a> smart constructor.
data ListClosedWorkflowExecutions

-- | If a <tt>NextPageToken</tt> was returned by a previous call, there are
--   more results available. To retrieve the next page of results, make the
--   call again using the returned token in <tt>nextPageToken</tt> . Keep
--   all other arguments unchanged. The configured <tt>maximumPageSize</tt>
--   determines how many results can be returned in a single call.
lcweNextPageToken :: Lens' ListClosedWorkflowExecutions (Maybe Text)

-- | If specified, only workflow executions matching the workflow ID
--   specified in the filter are returned.
lcweExecutionFilter :: Lens' ListClosedWorkflowExecutions (Maybe WorkflowExecutionFilter)

-- | If specified, only workflow executions that match this <i>close
--   status</i> are listed. For example, if TERMINATED is specified, then
--   only TERMINATED workflow executions are listed.
lcweCloseStatusFilter :: Lens' ListClosedWorkflowExecutions (Maybe CloseStatusFilter)

-- | If specified, only executions of the type specified in the filter are
--   returned.
lcweTypeFilter :: Lens' ListClosedWorkflowExecutions (Maybe WorkflowTypeFilter)

-- | If specified, the workflow executions are included in the returned
--   results based on whether their close times are within the range
--   specified by this filter. Also, if this parameter is specified, the
--   returned results are ordered by their close times.
lcweCloseTimeFilter :: Lens' ListClosedWorkflowExecutions (Maybe ExecutionTimeFilter)

-- | When set to <tt>true</tt> , returns the results in reverse order. By
--   default the results are returned in descending order of the start or
--   the close time of the executions.
lcweReverseOrder :: Lens' ListClosedWorkflowExecutions (Maybe Bool)

-- | If specified, only executions that have the matching tag are listed.
lcweTagFilter :: Lens' ListClosedWorkflowExecutions (Maybe TagFilter)

-- | If specified, the workflow executions are included in the returned
--   results based on whether their start times are within the range
--   specified by this filter. Also, if this parameter is specified, the
--   returned results are ordered by their start times.
lcweStartTimeFilter :: Lens' ListClosedWorkflowExecutions (Maybe ExecutionTimeFilter)

-- | The maximum number of results that are returned per call.
--   <tt>nextPageToken</tt> can be used to obtain futher pages of results.
--   The default is 1000, which is the maximum allowed page size. You can,
--   however, specify a page size <i>smaller</i> than the maximum. This is
--   an upper limit only; the actual number of results returned per call
--   may be fewer than the specified maximum.
lcweMaximumPageSize :: Lens' ListClosedWorkflowExecutions (Maybe Natural)

-- | The name of the domain that contains the workflow executions to list.
lcweDomain :: Lens' ListClosedWorkflowExecutions Text

-- | Creates a value of <a>WorkflowExecutionInfos</a> with the minimum
--   fields required to make a request.
--   
--   Use one of the following lenses to modify other fields as desired:
--   
--   <ul>
--   <li><a>weiNextPageToken</a> - If a <tt>NextPageToken</tt> was returned
--   by a previous call, there are more results available. To retrieve the
--   next page of results, make the call again using the returned token in
--   <tt>nextPageToken</tt> . Keep all other arguments unchanged. The
--   configured <tt>maximumPageSize</tt> determines how many results can be
--   returned in a single call.</li>
--   <li><a>weiExecutionInfos</a> - The list of workflow information
--   structures.</li>
--   </ul>
workflowExecutionInfos :: WorkflowExecutionInfos

-- | Contains a paginated list of information about workflow executions.
--   
--   <i>See:</i> <a>workflowExecutionInfos</a> smart constructor.
data WorkflowExecutionInfos

-- | If a <tt>NextPageToken</tt> was returned by a previous call, there are
--   more results available. To retrieve the next page of results, make the
--   call again using the returned token in <tt>nextPageToken</tt> . Keep
--   all other arguments unchanged. The configured <tt>maximumPageSize</tt>
--   determines how many results can be returned in a single call.
weiNextPageToken :: Lens' WorkflowExecutionInfos (Maybe Text)

-- | The list of workflow information structures.
weiExecutionInfos :: Lens' WorkflowExecutionInfos [WorkflowExecutionInfo]
instance GHC.Generics.Generic Network.AWS.SWF.ListClosedWorkflowExecutions.ListClosedWorkflowExecutions
instance Data.Data.Data Network.AWS.SWF.ListClosedWorkflowExecutions.ListClosedWorkflowExecutions
instance GHC.Show.Show Network.AWS.SWF.ListClosedWorkflowExecutions.ListClosedWorkflowExecutions
instance GHC.Read.Read Network.AWS.SWF.ListClosedWorkflowExecutions.ListClosedWorkflowExecutions
instance GHC.Classes.Eq Network.AWS.SWF.ListClosedWorkflowExecutions.ListClosedWorkflowExecutions
instance Network.AWS.Pager.AWSPager Network.AWS.SWF.ListClosedWorkflowExecutions.ListClosedWorkflowExecutions
instance Network.AWS.Types.AWSRequest Network.AWS.SWF.ListClosedWorkflowExecutions.ListClosedWorkflowExecutions
instance Data.Hashable.Class.Hashable Network.AWS.SWF.ListClosedWorkflowExecutions.ListClosedWorkflowExecutions
instance Control.DeepSeq.NFData Network.AWS.SWF.ListClosedWorkflowExecutions.ListClosedWorkflowExecutions
instance Network.AWS.Data.Headers.ToHeaders Network.AWS.SWF.ListClosedWorkflowExecutions.ListClosedWorkflowExecutions
instance Data.Aeson.Types.ToJSON.ToJSON Network.AWS.SWF.ListClosedWorkflowExecutions.ListClosedWorkflowExecutions
instance Network.AWS.Data.Path.ToPath Network.AWS.SWF.ListClosedWorkflowExecutions.ListClosedWorkflowExecutions
instance Network.AWS.Data.Query.ToQuery Network.AWS.SWF.ListClosedWorkflowExecutions.ListClosedWorkflowExecutions


-- | Returns information about all activities registered in the specified
--   domain that match the specified name and registration status. The
--   result includes information like creation date, current status of the
--   activity, etc. The results may be split into multiple pages. To
--   retrieve subsequent pages, make the call again using the
--   <tt>nextPageToken</tt> returned by the initial call.
--   
--   <b>Access Control</b>
--   
--   You can use IAM policies to control this action's access to Amazon SWF
--   resources as follows:
--   
--   <ul>
--   <li>Use a <tt>Resource</tt> element with the domain name to limit the
--   action to only specified domains.</li>
--   <li>Use an <tt>Action</tt> element to allow or deny permission to call
--   this action.</li>
--   <li>You cannot use an IAM policy to constrain this action's
--   parameters.</li>
--   </ul>
--   
--   If the caller doesn't have sufficient permissions to invoke the
--   action, or the parameter values fall outside the specified
--   constraints, the action fails. The associated event attribute's
--   <tt>cause</tt> parameter is set to <tt>OPERATION_NOT_PERMITTED</tt> .
--   For details and example IAM policies, see <a>Using IAM to Manage
--   Access to Amazon SWF Workflows</a> in the <i>Amazon SWF Developer
--   Guide</i> .
--   
--   This operation returns paginated results.
module Network.AWS.SWF.ListActivityTypes

-- | Creates a value of <a>ListActivityTypes</a> with the minimum fields
--   required to make a request.
--   
--   Use one of the following lenses to modify other fields as desired:
--   
--   <ul>
--   <li><a>latNextPageToken</a> - If a <tt>NextPageToken</tt> was returned
--   by a previous call, there are more results available. To retrieve the
--   next page of results, make the call again using the returned token in
--   <tt>nextPageToken</tt> . Keep all other arguments unchanged. The
--   configured <tt>maximumPageSize</tt> determines how many results can be
--   returned in a single call.</li>
--   <li><a>latReverseOrder</a> - When set to <tt>true</tt> , returns the
--   results in reverse order. By default, the results are returned in
--   ascending alphabetical order by <tt>name</tt> of the activity
--   types.</li>
--   <li><a>latName</a> - If specified, only lists the activity types that
--   have this name.</li>
--   <li><a>latMaximumPageSize</a> - The maximum number of results that are
--   returned per call. <tt>nextPageToken</tt> can be used to obtain futher
--   pages of results. The default is 1000, which is the maximum allowed
--   page size. You can, however, specify a page size <i>smaller</i> than
--   the maximum. This is an upper limit only; the actual number of results
--   returned per call may be fewer than the specified maximum.</li>
--   <li><a>latDomain</a> - The name of the domain in which the activity
--   types have been registered.</li>
--   <li><a>latRegistrationStatus</a> - Specifies the registration status
--   of the activity types to list.</li>
--   </ul>
listActivityTypes :: Text -> RegistrationStatus -> ListActivityTypes

-- | <i>See:</i> <a>listActivityTypes</a> smart constructor.
data ListActivityTypes

-- | If a <tt>NextPageToken</tt> was returned by a previous call, there are
--   more results available. To retrieve the next page of results, make the
--   call again using the returned token in <tt>nextPageToken</tt> . Keep
--   all other arguments unchanged. The configured <tt>maximumPageSize</tt>
--   determines how many results can be returned in a single call.
latNextPageToken :: Lens' ListActivityTypes (Maybe Text)

-- | When set to <tt>true</tt> , returns the results in reverse order. By
--   default, the results are returned in ascending alphabetical order by
--   <tt>name</tt> of the activity types.
latReverseOrder :: Lens' ListActivityTypes (Maybe Bool)

-- | If specified, only lists the activity types that have this name.
latName :: Lens' ListActivityTypes (Maybe Text)

-- | The maximum number of results that are returned per call.
--   <tt>nextPageToken</tt> can be used to obtain futher pages of results.
--   The default is 1000, which is the maximum allowed page size. You can,
--   however, specify a page size <i>smaller</i> than the maximum. This is
--   an upper limit only; the actual number of results returned per call
--   may be fewer than the specified maximum.
latMaximumPageSize :: Lens' ListActivityTypes (Maybe Natural)

-- | The name of the domain in which the activity types have been
--   registered.
latDomain :: Lens' ListActivityTypes Text

-- | Specifies the registration status of the activity types to list.
latRegistrationStatus :: Lens' ListActivityTypes RegistrationStatus

-- | Creates a value of <a>ListActivityTypesResponse</a> with the minimum
--   fields required to make a request.
--   
--   Use one of the following lenses to modify other fields as desired:
--   
--   <ul>
--   <li><a>latrsNextPageToken</a> - If a <tt>NextPageToken</tt> was
--   returned by a previous call, there are more results available. To
--   retrieve the next page of results, make the call again using the
--   returned token in <tt>nextPageToken</tt> . Keep all other arguments
--   unchanged. The configured <tt>maximumPageSize</tt> determines how many
--   results can be returned in a single call.</li>
--   <li><a>latrsResponseStatus</a> - -- | The response status code.</li>
--   <li><a>latrsTypeInfos</a> - List of activity type information.</li>
--   </ul>
listActivityTypesResponse :: Int -> ListActivityTypesResponse

-- | Contains a paginated list of activity type information structures.
--   
--   <i>See:</i> <a>listActivityTypesResponse</a> smart constructor.
data ListActivityTypesResponse

-- | If a <tt>NextPageToken</tt> was returned by a previous call, there are
--   more results available. To retrieve the next page of results, make the
--   call again using the returned token in <tt>nextPageToken</tt> . Keep
--   all other arguments unchanged. The configured <tt>maximumPageSize</tt>
--   determines how many results can be returned in a single call.
latrsNextPageToken :: Lens' ListActivityTypesResponse (Maybe Text)

-- | <ul>
--   <li>- | The response status code.</li>
--   </ul>
latrsResponseStatus :: Lens' ListActivityTypesResponse Int

-- | List of activity type information.
latrsTypeInfos :: Lens' ListActivityTypesResponse [ActivityTypeInfo]
instance GHC.Generics.Generic Network.AWS.SWF.ListActivityTypes.ListActivityTypesResponse
instance Data.Data.Data Network.AWS.SWF.ListActivityTypes.ListActivityTypesResponse
instance GHC.Show.Show Network.AWS.SWF.ListActivityTypes.ListActivityTypesResponse
instance GHC.Read.Read Network.AWS.SWF.ListActivityTypes.ListActivityTypesResponse
instance GHC.Classes.Eq Network.AWS.SWF.ListActivityTypes.ListActivityTypesResponse
instance GHC.Generics.Generic Network.AWS.SWF.ListActivityTypes.ListActivityTypes
instance Data.Data.Data Network.AWS.SWF.ListActivityTypes.ListActivityTypes
instance GHC.Show.Show Network.AWS.SWF.ListActivityTypes.ListActivityTypes
instance GHC.Read.Read Network.AWS.SWF.ListActivityTypes.ListActivityTypes
instance GHC.Classes.Eq Network.AWS.SWF.ListActivityTypes.ListActivityTypes
instance Network.AWS.Types.AWSRequest Network.AWS.SWF.ListActivityTypes.ListActivityTypes
instance Control.DeepSeq.NFData Network.AWS.SWF.ListActivityTypes.ListActivityTypesResponse
instance Network.AWS.Pager.AWSPager Network.AWS.SWF.ListActivityTypes.ListActivityTypes
instance Data.Hashable.Class.Hashable Network.AWS.SWF.ListActivityTypes.ListActivityTypes
instance Control.DeepSeq.NFData Network.AWS.SWF.ListActivityTypes.ListActivityTypes
instance Network.AWS.Data.Headers.ToHeaders Network.AWS.SWF.ListActivityTypes.ListActivityTypes
instance Data.Aeson.Types.ToJSON.ToJSON Network.AWS.SWF.ListActivityTypes.ListActivityTypes
instance Network.AWS.Data.Path.ToPath Network.AWS.SWF.ListActivityTypes.ListActivityTypes
instance Network.AWS.Data.Query.ToQuery Network.AWS.SWF.ListActivityTypes.ListActivityTypes


-- | Returns the history of the specified workflow execution. The results
--   may be split into multiple pages. To retrieve subsequent pages, make
--   the call again using the <tt>nextPageToken</tt> returned by the
--   initial call.
--   
--   <b>Access Control</b>
--   
--   You can use IAM policies to control this action's access to Amazon SWF
--   resources as follows:
--   
--   <ul>
--   <li>Use a <tt>Resource</tt> element with the domain name to limit the
--   action to only specified domains.</li>
--   <li>Use an <tt>Action</tt> element to allow or deny permission to call
--   this action.</li>
--   <li>You cannot use an IAM policy to constrain this action's
--   parameters.</li>
--   </ul>
--   
--   If the caller doesn't have sufficient permissions to invoke the
--   action, or the parameter values fall outside the specified
--   constraints, the action fails. The associated event attribute's
--   <tt>cause</tt> parameter is set to <tt>OPERATION_NOT_PERMITTED</tt> .
--   For details and example IAM policies, see <a>Using IAM to Manage
--   Access to Amazon SWF Workflows</a> in the <i>Amazon SWF Developer
--   Guide</i> .
--   
--   This operation returns paginated results.
module Network.AWS.SWF.GetWorkflowExecutionHistory

-- | Creates a value of <a>GetWorkflowExecutionHistory</a> with the minimum
--   fields required to make a request.
--   
--   Use one of the following lenses to modify other fields as desired:
--   
--   <ul>
--   <li><a>gwehNextPageToken</a> - If a <tt>NextPageToken</tt> was
--   returned by a previous call, there are more results available. To
--   retrieve the next page of results, make the call again using the
--   returned token in <tt>nextPageToken</tt> . Keep all other arguments
--   unchanged. The configured <tt>maximumPageSize</tt> determines how many
--   results can be returned in a single call.</li>
--   <li><a>gwehReverseOrder</a> - When set to <tt>true</tt> , returns the
--   events in reverse order. By default the results are returned in
--   ascending order of the <tt>eventTimeStamp</tt> of the events.</li>
--   <li><a>gwehMaximumPageSize</a> - The maximum number of results that
--   are returned per call. <tt>nextPageToken</tt> can be used to obtain
--   futher pages of results. The default is 1000, which is the maximum
--   allowed page size. You can, however, specify a page size
--   <i>smaller</i> than the maximum. This is an upper limit only; the
--   actual number of results returned per call may be fewer than the
--   specified maximum.</li>
--   <li><a>gwehDomain</a> - The name of the domain containing the workflow
--   execution.</li>
--   <li><a>gwehExecution</a> - Specifies the workflow execution for which
--   to return the history.</li>
--   </ul>
getWorkflowExecutionHistory :: Text -> WorkflowExecution -> GetWorkflowExecutionHistory

-- | <i>See:</i> <a>getWorkflowExecutionHistory</a> smart constructor.
data GetWorkflowExecutionHistory

-- | If a <tt>NextPageToken</tt> was returned by a previous call, there are
--   more results available. To retrieve the next page of results, make the
--   call again using the returned token in <tt>nextPageToken</tt> . Keep
--   all other arguments unchanged. The configured <tt>maximumPageSize</tt>
--   determines how many results can be returned in a single call.
gwehNextPageToken :: Lens' GetWorkflowExecutionHistory (Maybe Text)

-- | When set to <tt>true</tt> , returns the events in reverse order. By
--   default the results are returned in ascending order of the
--   <tt>eventTimeStamp</tt> of the events.
gwehReverseOrder :: Lens' GetWorkflowExecutionHistory (Maybe Bool)

-- | The maximum number of results that are returned per call.
--   <tt>nextPageToken</tt> can be used to obtain futher pages of results.
--   The default is 1000, which is the maximum allowed page size. You can,
--   however, specify a page size <i>smaller</i> than the maximum. This is
--   an upper limit only; the actual number of results returned per call
--   may be fewer than the specified maximum.
gwehMaximumPageSize :: Lens' GetWorkflowExecutionHistory (Maybe Natural)

-- | The name of the domain containing the workflow execution.
gwehDomain :: Lens' GetWorkflowExecutionHistory Text

-- | Specifies the workflow execution for which to return the history.
gwehExecution :: Lens' GetWorkflowExecutionHistory WorkflowExecution

-- | Creates a value of <a>GetWorkflowExecutionHistoryResponse</a> with the
--   minimum fields required to make a request.
--   
--   Use one of the following lenses to modify other fields as desired:
--   
--   <ul>
--   <li><a>gwehrsNextPageToken</a> - If a <tt>NextPageToken</tt> was
--   returned by a previous call, there are more results available. To
--   retrieve the next page of results, make the call again using the
--   returned token in <tt>nextPageToken</tt> . Keep all other arguments
--   unchanged. The configured <tt>maximumPageSize</tt> determines how many
--   results can be returned in a single call.</li>
--   <li><a>gwehrsResponseStatus</a> - -- | The response status code.</li>
--   <li><a>gwehrsEvents</a> - The list of history events.</li>
--   </ul>
getWorkflowExecutionHistoryResponse :: Int -> GetWorkflowExecutionHistoryResponse

-- | Paginated representation of a workflow history for a workflow
--   execution. This is the up to date, complete and authoritative record
--   of the events related to all tasks and events in the life of the
--   workflow execution.
--   
--   <i>See:</i> <a>getWorkflowExecutionHistoryResponse</a> smart
--   constructor.
data GetWorkflowExecutionHistoryResponse

-- | If a <tt>NextPageToken</tt> was returned by a previous call, there are
--   more results available. To retrieve the next page of results, make the
--   call again using the returned token in <tt>nextPageToken</tt> . Keep
--   all other arguments unchanged. The configured <tt>maximumPageSize</tt>
--   determines how many results can be returned in a single call.
gwehrsNextPageToken :: Lens' GetWorkflowExecutionHistoryResponse (Maybe Text)

-- | <ul>
--   <li>- | The response status code.</li>
--   </ul>
gwehrsResponseStatus :: Lens' GetWorkflowExecutionHistoryResponse Int

-- | The list of history events.
gwehrsEvents :: Lens' GetWorkflowExecutionHistoryResponse [HistoryEvent]
instance GHC.Generics.Generic Network.AWS.SWF.GetWorkflowExecutionHistory.GetWorkflowExecutionHistoryResponse
instance Data.Data.Data Network.AWS.SWF.GetWorkflowExecutionHistory.GetWorkflowExecutionHistoryResponse
instance GHC.Show.Show Network.AWS.SWF.GetWorkflowExecutionHistory.GetWorkflowExecutionHistoryResponse
instance GHC.Read.Read Network.AWS.SWF.GetWorkflowExecutionHistory.GetWorkflowExecutionHistoryResponse
instance GHC.Classes.Eq Network.AWS.SWF.GetWorkflowExecutionHistory.GetWorkflowExecutionHistoryResponse
instance GHC.Generics.Generic Network.AWS.SWF.GetWorkflowExecutionHistory.GetWorkflowExecutionHistory
instance Data.Data.Data Network.AWS.SWF.GetWorkflowExecutionHistory.GetWorkflowExecutionHistory
instance GHC.Show.Show Network.AWS.SWF.GetWorkflowExecutionHistory.GetWorkflowExecutionHistory
instance GHC.Read.Read Network.AWS.SWF.GetWorkflowExecutionHistory.GetWorkflowExecutionHistory
instance GHC.Classes.Eq Network.AWS.SWF.GetWorkflowExecutionHistory.GetWorkflowExecutionHistory
instance Network.AWS.Types.AWSRequest Network.AWS.SWF.GetWorkflowExecutionHistory.GetWorkflowExecutionHistory
instance Control.DeepSeq.NFData Network.AWS.SWF.GetWorkflowExecutionHistory.GetWorkflowExecutionHistoryResponse
instance Network.AWS.Pager.AWSPager Network.AWS.SWF.GetWorkflowExecutionHistory.GetWorkflowExecutionHistory
instance Data.Hashable.Class.Hashable Network.AWS.SWF.GetWorkflowExecutionHistory.GetWorkflowExecutionHistory
instance Control.DeepSeq.NFData Network.AWS.SWF.GetWorkflowExecutionHistory.GetWorkflowExecutionHistory
instance Network.AWS.Data.Headers.ToHeaders Network.AWS.SWF.GetWorkflowExecutionHistory.GetWorkflowExecutionHistory
instance Data.Aeson.Types.ToJSON.ToJSON Network.AWS.SWF.GetWorkflowExecutionHistory.GetWorkflowExecutionHistory
instance Network.AWS.Data.Path.ToPath Network.AWS.SWF.GetWorkflowExecutionHistory.GetWorkflowExecutionHistory
instance Network.AWS.Data.Query.ToQuery Network.AWS.SWF.GetWorkflowExecutionHistory.GetWorkflowExecutionHistory


-- | Returns information about the specified <i>workflow type</i> . This
--   includes configuration settings specified when the type was registered
--   and other information such as creation date, current status, etc.
--   
--   <b>Access Control</b>
--   
--   You can use IAM policies to control this action's access to Amazon SWF
--   resources as follows:
--   
--   <ul>
--   <li>Use a <tt>Resource</tt> element with the domain name to limit the
--   action to only specified domains.</li>
--   <li>Use an <tt>Action</tt> element to allow or deny permission to call
--   this action.</li>
--   <li>Constrain the following parameters by using a <tt>Condition</tt>
--   element with the appropriate keys.</li>
--   <li><tt>workflowType.name</tt> : String constraint. The key is
--   <tt>swf:workflowType.name</tt> .</li>
--   <li><tt>workflowType.version</tt> : String constraint. The key is
--   <tt>swf:workflowType.version</tt> .</li>
--   </ul>
--   
--   If the caller doesn't have sufficient permissions to invoke the
--   action, or the parameter values fall outside the specified
--   constraints, the action fails. The associated event attribute's
--   <tt>cause</tt> parameter is set to <tt>OPERATION_NOT_PERMITTED</tt> .
--   For details and example IAM policies, see <a>Using IAM to Manage
--   Access to Amazon SWF Workflows</a> in the <i>Amazon SWF Developer
--   Guide</i> .
module Network.AWS.SWF.DescribeWorkflowType

-- | Creates a value of <a>DescribeWorkflowType</a> with the minimum fields
--   required to make a request.
--   
--   Use one of the following lenses to modify other fields as desired:
--   
--   <ul>
--   <li><a>dwtDomain</a> - The name of the domain in which this workflow
--   type is registered.</li>
--   <li><a>dwtWorkflowType</a> - The workflow type to describe.</li>
--   </ul>
describeWorkflowType :: Text -> WorkflowType -> DescribeWorkflowType

-- | <i>See:</i> <a>describeWorkflowType</a> smart constructor.
data DescribeWorkflowType

-- | The name of the domain in which this workflow type is registered.
dwtDomain :: Lens' DescribeWorkflowType Text

-- | The workflow type to describe.
dwtWorkflowType :: Lens' DescribeWorkflowType WorkflowType

-- | Creates a value of <a>DescribeWorkflowTypeResponse</a> with the
--   minimum fields required to make a request.
--   
--   Use one of the following lenses to modify other fields as desired:
--   
--   <ul>
--   <li><a>dwtrsResponseStatus</a> - -- | The response status code.</li>
--   <li><a>dwtrsTypeInfo</a> - General information about the workflow
--   type. The status of the workflow type (returned in the
--   WorkflowTypeInfo structure) can be one of the following. *
--   <tt>REGISTERED</tt> – The type is registered and available. Workers
--   supporting this type should be running. * <tt>DEPRECATED</tt> – The
--   type was deprecated using <tt>DeprecateWorkflowType</tt> , but is
--   still in use. You should keep workers supporting this type running.
--   You cannot create new workflow executions of this type.</li>
--   <li><a>dwtrsConfiguration</a> - Configuration settings of the workflow
--   type registered through <tt>RegisterWorkflowType</tt></li>
--   </ul>
describeWorkflowTypeResponse :: Int -> WorkflowTypeInfo -> WorkflowTypeConfiguration -> DescribeWorkflowTypeResponse

-- | Contains details about a workflow type.
--   
--   <i>See:</i> <a>describeWorkflowTypeResponse</a> smart constructor.
data DescribeWorkflowTypeResponse

-- | <ul>
--   <li>- | The response status code.</li>
--   </ul>
dwtrsResponseStatus :: Lens' DescribeWorkflowTypeResponse Int

-- | General information about the workflow type. The status of the
--   workflow type (returned in the WorkflowTypeInfo structure) can be one
--   of the following. * <tt>REGISTERED</tt> – The type is registered and
--   available. Workers supporting this type should be running. *
--   <tt>DEPRECATED</tt> – The type was deprecated using
--   <tt>DeprecateWorkflowType</tt> , but is still in use. You should keep
--   workers supporting this type running. You cannot create new workflow
--   executions of this type.
dwtrsTypeInfo :: Lens' DescribeWorkflowTypeResponse WorkflowTypeInfo

-- | Configuration settings of the workflow type registered through
--   <tt>RegisterWorkflowType</tt>
dwtrsConfiguration :: Lens' DescribeWorkflowTypeResponse WorkflowTypeConfiguration
instance GHC.Generics.Generic Network.AWS.SWF.DescribeWorkflowType.DescribeWorkflowTypeResponse
instance Data.Data.Data Network.AWS.SWF.DescribeWorkflowType.DescribeWorkflowTypeResponse
instance GHC.Show.Show Network.AWS.SWF.DescribeWorkflowType.DescribeWorkflowTypeResponse
instance GHC.Read.Read Network.AWS.SWF.DescribeWorkflowType.DescribeWorkflowTypeResponse
instance GHC.Classes.Eq Network.AWS.SWF.DescribeWorkflowType.DescribeWorkflowTypeResponse
instance GHC.Generics.Generic Network.AWS.SWF.DescribeWorkflowType.DescribeWorkflowType
instance Data.Data.Data Network.AWS.SWF.DescribeWorkflowType.DescribeWorkflowType
instance GHC.Show.Show Network.AWS.SWF.DescribeWorkflowType.DescribeWorkflowType
instance GHC.Read.Read Network.AWS.SWF.DescribeWorkflowType.DescribeWorkflowType
instance GHC.Classes.Eq Network.AWS.SWF.DescribeWorkflowType.DescribeWorkflowType
instance Network.AWS.Types.AWSRequest Network.AWS.SWF.DescribeWorkflowType.DescribeWorkflowType
instance Control.DeepSeq.NFData Network.AWS.SWF.DescribeWorkflowType.DescribeWorkflowTypeResponse
instance Data.Hashable.Class.Hashable Network.AWS.SWF.DescribeWorkflowType.DescribeWorkflowType
instance Control.DeepSeq.NFData Network.AWS.SWF.DescribeWorkflowType.DescribeWorkflowType
instance Network.AWS.Data.Headers.ToHeaders Network.AWS.SWF.DescribeWorkflowType.DescribeWorkflowType
instance Data.Aeson.Types.ToJSON.ToJSON Network.AWS.SWF.DescribeWorkflowType.DescribeWorkflowType
instance Network.AWS.Data.Path.ToPath Network.AWS.SWF.DescribeWorkflowType.DescribeWorkflowType
instance Network.AWS.Data.Query.ToQuery Network.AWS.SWF.DescribeWorkflowType.DescribeWorkflowType


-- | Returns information about the specified workflow execution including
--   its type and some statistics.
--   
--   <b>Access Control</b>
--   
--   You can use IAM policies to control this action's access to Amazon SWF
--   resources as follows:
--   
--   <ul>
--   <li>Use a <tt>Resource</tt> element with the domain name to limit the
--   action to only specified domains.</li>
--   <li>Use an <tt>Action</tt> element to allow or deny permission to call
--   this action.</li>
--   <li>You cannot use an IAM policy to constrain this action's
--   parameters.</li>
--   </ul>
--   
--   If the caller doesn't have sufficient permissions to invoke the
--   action, or the parameter values fall outside the specified
--   constraints, the action fails. The associated event attribute's
--   <tt>cause</tt> parameter is set to <tt>OPERATION_NOT_PERMITTED</tt> .
--   For details and example IAM policies, see <a>Using IAM to Manage
--   Access to Amazon SWF Workflows</a> in the <i>Amazon SWF Developer
--   Guide</i> .
module Network.AWS.SWF.DescribeWorkflowExecution

-- | Creates a value of <a>DescribeWorkflowExecution</a> with the minimum
--   fields required to make a request.
--   
--   Use one of the following lenses to modify other fields as desired:
--   
--   <ul>
--   <li><a>dweDomain</a> - The name of the domain containing the workflow
--   execution.</li>
--   <li><a>dweExecution</a> - The workflow execution to describe.</li>
--   </ul>
describeWorkflowExecution :: Text -> WorkflowExecution -> DescribeWorkflowExecution

-- | <i>See:</i> <a>describeWorkflowExecution</a> smart constructor.
data DescribeWorkflowExecution

-- | The name of the domain containing the workflow execution.
dweDomain :: Lens' DescribeWorkflowExecution Text

-- | The workflow execution to describe.
dweExecution :: Lens' DescribeWorkflowExecution WorkflowExecution

-- | Creates a value of <a>DescribeWorkflowExecutionResponse</a> with the
--   minimum fields required to make a request.
--   
--   Use one of the following lenses to modify other fields as desired:
--   
--   <ul>
--   <li><a>dwersLatestActivityTaskTimestamp</a> - The time when the last
--   activity task was scheduled for this workflow execution. You can use
--   this information to determine if the workflow has not made progress
--   for an unusually long period of time and might require a corrective
--   action.</li>
--   <li><a>dwersLatestExecutionContext</a> - The latest executionContext
--   provided by the decider for this workflow execution. A decider can
--   provide an executionContext (a free-form string) when closing a
--   decision task using <tt>RespondDecisionTaskCompleted</tt> .</li>
--   <li><a>dwersResponseStatus</a> - -- | The response status code.</li>
--   <li><a>dwersExecutionInfo</a> - Information about the workflow
--   execution.</li>
--   <li><a>dwersExecutionConfiguration</a> - The configuration settings
--   for this workflow execution including timeout values, tasklist
--   etc.</li>
--   <li><a>dwersOpenCounts</a> - The number of tasks for this workflow
--   execution. This includes open and closed tasks of all types.</li>
--   </ul>
describeWorkflowExecutionResponse :: Int -> WorkflowExecutionInfo -> WorkflowExecutionConfiguration -> WorkflowExecutionOpenCounts -> DescribeWorkflowExecutionResponse

-- | Contains details about a workflow execution.
--   
--   <i>See:</i> <a>describeWorkflowExecutionResponse</a> smart
--   constructor.
data DescribeWorkflowExecutionResponse

-- | The time when the last activity task was scheduled for this workflow
--   execution. You can use this information to determine if the workflow
--   has not made progress for an unusually long period of time and might
--   require a corrective action.
dwersLatestActivityTaskTimestamp :: Lens' DescribeWorkflowExecutionResponse (Maybe UTCTime)

-- | The latest executionContext provided by the decider for this workflow
--   execution. A decider can provide an executionContext (a free-form
--   string) when closing a decision task using
--   <tt>RespondDecisionTaskCompleted</tt> .
dwersLatestExecutionContext :: Lens' DescribeWorkflowExecutionResponse (Maybe Text)

-- | <ul>
--   <li>- | The response status code.</li>
--   </ul>
dwersResponseStatus :: Lens' DescribeWorkflowExecutionResponse Int

-- | Information about the workflow execution.
dwersExecutionInfo :: Lens' DescribeWorkflowExecutionResponse WorkflowExecutionInfo

-- | The configuration settings for this workflow execution including
--   timeout values, tasklist etc.
dwersExecutionConfiguration :: Lens' DescribeWorkflowExecutionResponse WorkflowExecutionConfiguration

-- | The number of tasks for this workflow execution. This includes open
--   and closed tasks of all types.
dwersOpenCounts :: Lens' DescribeWorkflowExecutionResponse WorkflowExecutionOpenCounts
instance GHC.Generics.Generic Network.AWS.SWF.DescribeWorkflowExecution.DescribeWorkflowExecutionResponse
instance Data.Data.Data Network.AWS.SWF.DescribeWorkflowExecution.DescribeWorkflowExecutionResponse
instance GHC.Show.Show Network.AWS.SWF.DescribeWorkflowExecution.DescribeWorkflowExecutionResponse
instance GHC.Read.Read Network.AWS.SWF.DescribeWorkflowExecution.DescribeWorkflowExecutionResponse
instance GHC.Classes.Eq Network.AWS.SWF.DescribeWorkflowExecution.DescribeWorkflowExecutionResponse
instance GHC.Generics.Generic Network.AWS.SWF.DescribeWorkflowExecution.DescribeWorkflowExecution
instance Data.Data.Data Network.AWS.SWF.DescribeWorkflowExecution.DescribeWorkflowExecution
instance GHC.Show.Show Network.AWS.SWF.DescribeWorkflowExecution.DescribeWorkflowExecution
instance GHC.Read.Read Network.AWS.SWF.DescribeWorkflowExecution.DescribeWorkflowExecution
instance GHC.Classes.Eq Network.AWS.SWF.DescribeWorkflowExecution.DescribeWorkflowExecution
instance Network.AWS.Types.AWSRequest Network.AWS.SWF.DescribeWorkflowExecution.DescribeWorkflowExecution
instance Control.DeepSeq.NFData Network.AWS.SWF.DescribeWorkflowExecution.DescribeWorkflowExecutionResponse
instance Data.Hashable.Class.Hashable Network.AWS.SWF.DescribeWorkflowExecution.DescribeWorkflowExecution
instance Control.DeepSeq.NFData Network.AWS.SWF.DescribeWorkflowExecution.DescribeWorkflowExecution
instance Network.AWS.Data.Headers.ToHeaders Network.AWS.SWF.DescribeWorkflowExecution.DescribeWorkflowExecution
instance Data.Aeson.Types.ToJSON.ToJSON Network.AWS.SWF.DescribeWorkflowExecution.DescribeWorkflowExecution
instance Network.AWS.Data.Path.ToPath Network.AWS.SWF.DescribeWorkflowExecution.DescribeWorkflowExecution
instance Network.AWS.Data.Query.ToQuery Network.AWS.SWF.DescribeWorkflowExecution.DescribeWorkflowExecution


-- | Returns information about the specified domain, including description
--   and status.
--   
--   <b>Access Control</b>
--   
--   You can use IAM policies to control this action's access to Amazon SWF
--   resources as follows:
--   
--   <ul>
--   <li>Use a <tt>Resource</tt> element with the domain name to limit the
--   action to only specified domains.</li>
--   <li>Use an <tt>Action</tt> element to allow or deny permission to call
--   this action.</li>
--   <li>You cannot use an IAM policy to constrain this action's
--   parameters.</li>
--   </ul>
--   
--   If the caller doesn't have sufficient permissions to invoke the
--   action, or the parameter values fall outside the specified
--   constraints, the action fails. The associated event attribute's
--   <tt>cause</tt> parameter is set to <tt>OPERATION_NOT_PERMITTED</tt> .
--   For details and example IAM policies, see <a>Using IAM to Manage
--   Access to Amazon SWF Workflows</a> in the <i>Amazon SWF Developer
--   Guide</i> .
module Network.AWS.SWF.DescribeDomain

-- | Creates a value of <a>DescribeDomain</a> with the minimum fields
--   required to make a request.
--   
--   Use one of the following lenses to modify other fields as desired:
--   
--   <ul>
--   <li><a>ddName</a> - The name of the domain to describe.</li>
--   </ul>
describeDomain :: Text -> DescribeDomain

-- | <i>See:</i> <a>describeDomain</a> smart constructor.
data DescribeDomain

-- | The name of the domain to describe.
ddName :: Lens' DescribeDomain Text

-- | Creates a value of <a>DescribeDomainResponse</a> with the minimum
--   fields required to make a request.
--   
--   Use one of the following lenses to modify other fields as desired:
--   
--   <ul>
--   <li><a>ddrsResponseStatus</a> - -- | The response status code.</li>
--   <li><a>ddrsDomainInfo</a> - The basic information about a domain, such
--   as its name, status, and description.</li>
--   <li><a>ddrsConfiguration</a> - The domain configuration. Currently,
--   this includes only the domain's retention period.</li>
--   </ul>
describeDomainResponse :: Int -> DomainInfo -> DomainConfiguration -> DescribeDomainResponse

-- | Contains details of a domain.
--   
--   <i>See:</i> <a>describeDomainResponse</a> smart constructor.
data DescribeDomainResponse

-- | <ul>
--   <li>- | The response status code.</li>
--   </ul>
ddrsResponseStatus :: Lens' DescribeDomainResponse Int

-- | The basic information about a domain, such as its name, status, and
--   description.
ddrsDomainInfo :: Lens' DescribeDomainResponse DomainInfo

-- | The domain configuration. Currently, this includes only the domain's
--   retention period.
ddrsConfiguration :: Lens' DescribeDomainResponse DomainConfiguration
instance GHC.Generics.Generic Network.AWS.SWF.DescribeDomain.DescribeDomainResponse
instance Data.Data.Data Network.AWS.SWF.DescribeDomain.DescribeDomainResponse
instance GHC.Show.Show Network.AWS.SWF.DescribeDomain.DescribeDomainResponse
instance GHC.Read.Read Network.AWS.SWF.DescribeDomain.DescribeDomainResponse
instance GHC.Classes.Eq Network.AWS.SWF.DescribeDomain.DescribeDomainResponse
instance GHC.Generics.Generic Network.AWS.SWF.DescribeDomain.DescribeDomain
instance Data.Data.Data Network.AWS.SWF.DescribeDomain.DescribeDomain
instance GHC.Show.Show Network.AWS.SWF.DescribeDomain.DescribeDomain
instance GHC.Read.Read Network.AWS.SWF.DescribeDomain.DescribeDomain
instance GHC.Classes.Eq Network.AWS.SWF.DescribeDomain.DescribeDomain
instance Network.AWS.Types.AWSRequest Network.AWS.SWF.DescribeDomain.DescribeDomain
instance Control.DeepSeq.NFData Network.AWS.SWF.DescribeDomain.DescribeDomainResponse
instance Data.Hashable.Class.Hashable Network.AWS.SWF.DescribeDomain.DescribeDomain
instance Control.DeepSeq.NFData Network.AWS.SWF.DescribeDomain.DescribeDomain
instance Network.AWS.Data.Headers.ToHeaders Network.AWS.SWF.DescribeDomain.DescribeDomain
instance Data.Aeson.Types.ToJSON.ToJSON Network.AWS.SWF.DescribeDomain.DescribeDomain
instance Network.AWS.Data.Path.ToPath Network.AWS.SWF.DescribeDomain.DescribeDomain
instance Network.AWS.Data.Query.ToQuery Network.AWS.SWF.DescribeDomain.DescribeDomain


-- | Returns information about the specified activity type. This includes
--   configuration settings provided when the type was registered and other
--   general information about the type.
--   
--   <b>Access Control</b>
--   
--   You can use IAM policies to control this action's access to Amazon SWF
--   resources as follows:
--   
--   <ul>
--   <li>Use a <tt>Resource</tt> element with the domain name to limit the
--   action to only specified domains.</li>
--   <li>Use an <tt>Action</tt> element to allow or deny permission to call
--   this action.</li>
--   <li>Constrain the following parameters by using a <tt>Condition</tt>
--   element with the appropriate keys.</li>
--   <li><tt>activityType.name</tt> : String constraint. The key is
--   <tt>swf:activityType.name</tt> .</li>
--   <li><tt>activityType.version</tt> : String constraint. The key is
--   <tt>swf:activityType.version</tt> .</li>
--   </ul>
--   
--   If the caller doesn't have sufficient permissions to invoke the
--   action, or the parameter values fall outside the specified
--   constraints, the action fails. The associated event attribute's
--   <tt>cause</tt> parameter is set to <tt>OPERATION_NOT_PERMITTED</tt> .
--   For details and example IAM policies, see <a>Using IAM to Manage
--   Access to Amazon SWF Workflows</a> in the <i>Amazon SWF Developer
--   Guide</i> .
module Network.AWS.SWF.DescribeActivityType

-- | Creates a value of <a>DescribeActivityType</a> with the minimum fields
--   required to make a request.
--   
--   Use one of the following lenses to modify other fields as desired:
--   
--   <ul>
--   <li><a>datDomain</a> - The name of the domain in which the activity
--   type is registered.</li>
--   <li><a>datActivityType</a> - The activity type to get information
--   about. Activity types are identified by the <tt>name</tt> and
--   <tt>version</tt> that were supplied when the activity was
--   registered.</li>
--   </ul>
describeActivityType :: Text -> ActivityType -> DescribeActivityType

-- | <i>See:</i> <a>describeActivityType</a> smart constructor.
data DescribeActivityType

-- | The name of the domain in which the activity type is registered.
datDomain :: Lens' DescribeActivityType Text

-- | The activity type to get information about. Activity types are
--   identified by the <tt>name</tt> and <tt>version</tt> that were
--   supplied when the activity was registered.
datActivityType :: Lens' DescribeActivityType ActivityType

-- | Creates a value of <a>DescribeActivityTypeResponse</a> with the
--   minimum fields required to make a request.
--   
--   Use one of the following lenses to modify other fields as desired:
--   
--   <ul>
--   <li><a>datrsResponseStatus</a> - -- | The response status code.</li>
--   <li><a>datrsTypeInfo</a> - General information about the activity
--   type. The status of activity type (returned in the ActivityTypeInfo
--   structure) can be one of the following. * <tt>REGISTERED</tt> – The
--   type is registered and available. Workers supporting this type should
--   be running. * <tt>DEPRECATED</tt> – The type was deprecated using
--   <tt>DeprecateActivityType</tt> , but is still in use. You should keep
--   workers supporting this type running. You cannot create new tasks of
--   this type.</li>
--   <li><a>datrsConfiguration</a> - The configuration settings registered
--   with the activity type.</li>
--   </ul>
describeActivityTypeResponse :: Int -> ActivityTypeInfo -> ActivityTypeConfiguration -> DescribeActivityTypeResponse

-- | Detailed information about an activity type.
--   
--   <i>See:</i> <a>describeActivityTypeResponse</a> smart constructor.
data DescribeActivityTypeResponse

-- | <ul>
--   <li>- | The response status code.</li>
--   </ul>
datrsResponseStatus :: Lens' DescribeActivityTypeResponse Int

-- | General information about the activity type. The status of activity
--   type (returned in the ActivityTypeInfo structure) can be one of the
--   following. * <tt>REGISTERED</tt> – The type is registered and
--   available. Workers supporting this type should be running. *
--   <tt>DEPRECATED</tt> – The type was deprecated using
--   <tt>DeprecateActivityType</tt> , but is still in use. You should keep
--   workers supporting this type running. You cannot create new tasks of
--   this type.
datrsTypeInfo :: Lens' DescribeActivityTypeResponse ActivityTypeInfo

-- | The configuration settings registered with the activity type.
datrsConfiguration :: Lens' DescribeActivityTypeResponse ActivityTypeConfiguration
instance GHC.Generics.Generic Network.AWS.SWF.DescribeActivityType.DescribeActivityTypeResponse
instance Data.Data.Data Network.AWS.SWF.DescribeActivityType.DescribeActivityTypeResponse
instance GHC.Show.Show Network.AWS.SWF.DescribeActivityType.DescribeActivityTypeResponse
instance GHC.Read.Read Network.AWS.SWF.DescribeActivityType.DescribeActivityTypeResponse
instance GHC.Classes.Eq Network.AWS.SWF.DescribeActivityType.DescribeActivityTypeResponse
instance GHC.Generics.Generic Network.AWS.SWF.DescribeActivityType.DescribeActivityType
instance Data.Data.Data Network.AWS.SWF.DescribeActivityType.DescribeActivityType
instance GHC.Show.Show Network.AWS.SWF.DescribeActivityType.DescribeActivityType
instance GHC.Read.Read Network.AWS.SWF.DescribeActivityType.DescribeActivityType
instance GHC.Classes.Eq Network.AWS.SWF.DescribeActivityType.DescribeActivityType
instance Network.AWS.Types.AWSRequest Network.AWS.SWF.DescribeActivityType.DescribeActivityType
instance Control.DeepSeq.NFData Network.AWS.SWF.DescribeActivityType.DescribeActivityTypeResponse
instance Data.Hashable.Class.Hashable Network.AWS.SWF.DescribeActivityType.DescribeActivityType
instance Control.DeepSeq.NFData Network.AWS.SWF.DescribeActivityType.DescribeActivityType
instance Network.AWS.Data.Headers.ToHeaders Network.AWS.SWF.DescribeActivityType.DescribeActivityType
instance Data.Aeson.Types.ToJSON.ToJSON Network.AWS.SWF.DescribeActivityType.DescribeActivityType
instance Network.AWS.Data.Path.ToPath Network.AWS.SWF.DescribeActivityType.DescribeActivityType
instance Network.AWS.Data.Query.ToQuery Network.AWS.SWF.DescribeActivityType.DescribeActivityType


-- | Deprecates the specified <i>workflow type</i> . After a workflow type
--   has been deprecated, you cannot create new executions of that type.
--   Executions that were started before the type was deprecated continues
--   to run. A deprecated workflow type may still be used when calling
--   visibility actions.
--   
--   <b>Access Control</b>
--   
--   You can use IAM policies to control this action's access to Amazon SWF
--   resources as follows:
--   
--   <ul>
--   <li>Use a <tt>Resource</tt> element with the domain name to limit the
--   action to only specified domains.</li>
--   <li>Use an <tt>Action</tt> element to allow or deny permission to call
--   this action.</li>
--   <li>Constrain the following parameters by using a <tt>Condition</tt>
--   element with the appropriate keys.</li>
--   <li><tt>workflowType.name</tt> : String constraint. The key is
--   <tt>swf:workflowType.name</tt> .</li>
--   <li><tt>workflowType.version</tt> : String constraint. The key is
--   <tt>swf:workflowType.version</tt> .</li>
--   </ul>
--   
--   If the caller doesn't have sufficient permissions to invoke the
--   action, or the parameter values fall outside the specified
--   constraints, the action fails. The associated event attribute's
--   <tt>cause</tt> parameter is set to <tt>OPERATION_NOT_PERMITTED</tt> .
--   For details and example IAM policies, see <a>Using IAM to Manage
--   Access to Amazon SWF Workflows</a> in the <i>Amazon SWF Developer
--   Guide</i> .
module Network.AWS.SWF.DeprecateWorkflowType

-- | Creates a value of <a>DeprecateWorkflowType</a> with the minimum
--   fields required to make a request.
--   
--   Use one of the following lenses to modify other fields as desired:
--   
--   <ul>
--   <li><a>dDomain</a> - The name of the domain in which the workflow type
--   is registered.</li>
--   <li><a>dWorkflowType</a> - The workflow type to deprecate.</li>
--   </ul>
deprecateWorkflowType :: Text -> WorkflowType -> DeprecateWorkflowType

-- | <i>See:</i> <a>deprecateWorkflowType</a> smart constructor.
data DeprecateWorkflowType

-- | The name of the domain in which the workflow type is registered.
dDomain :: Lens' DeprecateWorkflowType Text

-- | The workflow type to deprecate.
dWorkflowType :: Lens' DeprecateWorkflowType WorkflowType

-- | Creates a value of <a>DeprecateWorkflowTypeResponse</a> with the
--   minimum fields required to make a request.
deprecateWorkflowTypeResponse :: DeprecateWorkflowTypeResponse

-- | <i>See:</i> <a>deprecateWorkflowTypeResponse</a> smart constructor.
data DeprecateWorkflowTypeResponse
instance GHC.Generics.Generic Network.AWS.SWF.DeprecateWorkflowType.DeprecateWorkflowTypeResponse
instance Data.Data.Data Network.AWS.SWF.DeprecateWorkflowType.DeprecateWorkflowTypeResponse
instance GHC.Show.Show Network.AWS.SWF.DeprecateWorkflowType.DeprecateWorkflowTypeResponse
instance GHC.Read.Read Network.AWS.SWF.DeprecateWorkflowType.DeprecateWorkflowTypeResponse
instance GHC.Classes.Eq Network.AWS.SWF.DeprecateWorkflowType.DeprecateWorkflowTypeResponse
instance GHC.Generics.Generic Network.AWS.SWF.DeprecateWorkflowType.DeprecateWorkflowType
instance Data.Data.Data Network.AWS.SWF.DeprecateWorkflowType.DeprecateWorkflowType
instance GHC.Show.Show Network.AWS.SWF.DeprecateWorkflowType.DeprecateWorkflowType
instance GHC.Read.Read Network.AWS.SWF.DeprecateWorkflowType.DeprecateWorkflowType
instance GHC.Classes.Eq Network.AWS.SWF.DeprecateWorkflowType.DeprecateWorkflowType
instance Network.AWS.Types.AWSRequest Network.AWS.SWF.DeprecateWorkflowType.DeprecateWorkflowType
instance Control.DeepSeq.NFData Network.AWS.SWF.DeprecateWorkflowType.DeprecateWorkflowTypeResponse
instance Data.Hashable.Class.Hashable Network.AWS.SWF.DeprecateWorkflowType.DeprecateWorkflowType
instance Control.DeepSeq.NFData Network.AWS.SWF.DeprecateWorkflowType.DeprecateWorkflowType
instance Network.AWS.Data.Headers.ToHeaders Network.AWS.SWF.DeprecateWorkflowType.DeprecateWorkflowType
instance Data.Aeson.Types.ToJSON.ToJSON Network.AWS.SWF.DeprecateWorkflowType.DeprecateWorkflowType
instance Network.AWS.Data.Path.ToPath Network.AWS.SWF.DeprecateWorkflowType.DeprecateWorkflowType
instance Network.AWS.Data.Query.ToQuery Network.AWS.SWF.DeprecateWorkflowType.DeprecateWorkflowType


-- | Deprecates the specified domain. After a domain has been deprecated it
--   cannot be used to create new workflow executions or register new
--   types. However, you can still use visibility actions on this domain.
--   Deprecating a domain also deprecates all activity and workflow types
--   registered in the domain. Executions that were started before the
--   domain was deprecated continues to run.
--   
--   <b>Access Control</b>
--   
--   You can use IAM policies to control this action's access to Amazon SWF
--   resources as follows:
--   
--   <ul>
--   <li>Use a <tt>Resource</tt> element with the domain name to limit the
--   action to only specified domains.</li>
--   <li>Use an <tt>Action</tt> element to allow or deny permission to call
--   this action.</li>
--   <li>You cannot use an IAM policy to constrain this action's
--   parameters.</li>
--   </ul>
--   
--   If the caller doesn't have sufficient permissions to invoke the
--   action, or the parameter values fall outside the specified
--   constraints, the action fails. The associated event attribute's
--   <tt>cause</tt> parameter is set to <tt>OPERATION_NOT_PERMITTED</tt> .
--   For details and example IAM policies, see <a>Using IAM to Manage
--   Access to Amazon SWF Workflows</a> in the <i>Amazon SWF Developer
--   Guide</i> .
module Network.AWS.SWF.DeprecateDomain

-- | Creates a value of <a>DeprecateDomain</a> with the minimum fields
--   required to make a request.
--   
--   Use one of the following lenses to modify other fields as desired:
--   
--   <ul>
--   <li><a>dName</a> - The name of the domain to deprecate.</li>
--   </ul>
deprecateDomain :: Text -> DeprecateDomain

-- | <i>See:</i> <a>deprecateDomain</a> smart constructor.
data DeprecateDomain

-- | The name of the domain to deprecate.
dName :: Lens' DeprecateDomain Text

-- | Creates a value of <a>DeprecateDomainResponse</a> with the minimum
--   fields required to make a request.
deprecateDomainResponse :: DeprecateDomainResponse

-- | <i>See:</i> <a>deprecateDomainResponse</a> smart constructor.
data DeprecateDomainResponse
instance GHC.Generics.Generic Network.AWS.SWF.DeprecateDomain.DeprecateDomainResponse
instance Data.Data.Data Network.AWS.SWF.DeprecateDomain.DeprecateDomainResponse
instance GHC.Show.Show Network.AWS.SWF.DeprecateDomain.DeprecateDomainResponse
instance GHC.Read.Read Network.AWS.SWF.DeprecateDomain.DeprecateDomainResponse
instance GHC.Classes.Eq Network.AWS.SWF.DeprecateDomain.DeprecateDomainResponse
instance GHC.Generics.Generic Network.AWS.SWF.DeprecateDomain.DeprecateDomain
instance Data.Data.Data Network.AWS.SWF.DeprecateDomain.DeprecateDomain
instance GHC.Show.Show Network.AWS.SWF.DeprecateDomain.DeprecateDomain
instance GHC.Read.Read Network.AWS.SWF.DeprecateDomain.DeprecateDomain
instance GHC.Classes.Eq Network.AWS.SWF.DeprecateDomain.DeprecateDomain
instance Network.AWS.Types.AWSRequest Network.AWS.SWF.DeprecateDomain.DeprecateDomain
instance Control.DeepSeq.NFData Network.AWS.SWF.DeprecateDomain.DeprecateDomainResponse
instance Data.Hashable.Class.Hashable Network.AWS.SWF.DeprecateDomain.DeprecateDomain
instance Control.DeepSeq.NFData Network.AWS.SWF.DeprecateDomain.DeprecateDomain
instance Network.AWS.Data.Headers.ToHeaders Network.AWS.SWF.DeprecateDomain.DeprecateDomain
instance Data.Aeson.Types.ToJSON.ToJSON Network.AWS.SWF.DeprecateDomain.DeprecateDomain
instance Network.AWS.Data.Path.ToPath Network.AWS.SWF.DeprecateDomain.DeprecateDomain
instance Network.AWS.Data.Query.ToQuery Network.AWS.SWF.DeprecateDomain.DeprecateDomain


-- | Deprecates the specified <i>activity type</i> . After an activity type
--   has been deprecated, you cannot create new tasks of that activity
--   type. Tasks of this type that were scheduled before the type was
--   deprecated continue to run.
--   
--   <b>Access Control</b>
--   
--   You can use IAM policies to control this action's access to Amazon SWF
--   resources as follows:
--   
--   <ul>
--   <li>Use a <tt>Resource</tt> element with the domain name to limit the
--   action to only specified domains.</li>
--   <li>Use an <tt>Action</tt> element to allow or deny permission to call
--   this action.</li>
--   <li>Constrain the following parameters by using a <tt>Condition</tt>
--   element with the appropriate keys.</li>
--   <li><tt>activityType.name</tt> : String constraint. The key is
--   <tt>swf:activityType.name</tt> .</li>
--   <li><tt>activityType.version</tt> : String constraint. The key is
--   <tt>swf:activityType.version</tt> .</li>
--   </ul>
--   
--   If the caller doesn't have sufficient permissions to invoke the
--   action, or the parameter values fall outside the specified
--   constraints, the action fails. The associated event attribute's
--   <tt>cause</tt> parameter is set to <tt>OPERATION_NOT_PERMITTED</tt> .
--   For details and example IAM policies, see <a>Using IAM to Manage
--   Access to Amazon SWF Workflows</a> in the <i>Amazon SWF Developer
--   Guide</i> .
module Network.AWS.SWF.DeprecateActivityType

-- | Creates a value of <a>DeprecateActivityType</a> with the minimum
--   fields required to make a request.
--   
--   Use one of the following lenses to modify other fields as desired:
--   
--   <ul>
--   <li><a>depDomain</a> - The name of the domain in which the activity
--   type is registered.</li>
--   <li><a>depActivityType</a> - The activity type to deprecate.</li>
--   </ul>
deprecateActivityType :: Text -> ActivityType -> DeprecateActivityType

-- | <i>See:</i> <a>deprecateActivityType</a> smart constructor.
data DeprecateActivityType

-- | The name of the domain in which the activity type is registered.
depDomain :: Lens' DeprecateActivityType Text

-- | The activity type to deprecate.
depActivityType :: Lens' DeprecateActivityType ActivityType

-- | Creates a value of <a>DeprecateActivityTypeResponse</a> with the
--   minimum fields required to make a request.
deprecateActivityTypeResponse :: DeprecateActivityTypeResponse

-- | <i>See:</i> <a>deprecateActivityTypeResponse</a> smart constructor.
data DeprecateActivityTypeResponse
instance GHC.Generics.Generic Network.AWS.SWF.DeprecateActivityType.DeprecateActivityTypeResponse
instance Data.Data.Data Network.AWS.SWF.DeprecateActivityType.DeprecateActivityTypeResponse
instance GHC.Show.Show Network.AWS.SWF.DeprecateActivityType.DeprecateActivityTypeResponse
instance GHC.Read.Read Network.AWS.SWF.DeprecateActivityType.DeprecateActivityTypeResponse
instance GHC.Classes.Eq Network.AWS.SWF.DeprecateActivityType.DeprecateActivityTypeResponse
instance GHC.Generics.Generic Network.AWS.SWF.DeprecateActivityType.DeprecateActivityType
instance Data.Data.Data Network.AWS.SWF.DeprecateActivityType.DeprecateActivityType
instance GHC.Show.Show Network.AWS.SWF.DeprecateActivityType.DeprecateActivityType
instance GHC.Read.Read Network.AWS.SWF.DeprecateActivityType.DeprecateActivityType
instance GHC.Classes.Eq Network.AWS.SWF.DeprecateActivityType.DeprecateActivityType
instance Network.AWS.Types.AWSRequest Network.AWS.SWF.DeprecateActivityType.DeprecateActivityType
instance Control.DeepSeq.NFData Network.AWS.SWF.DeprecateActivityType.DeprecateActivityTypeResponse
instance Data.Hashable.Class.Hashable Network.AWS.SWF.DeprecateActivityType.DeprecateActivityType
instance Control.DeepSeq.NFData Network.AWS.SWF.DeprecateActivityType.DeprecateActivityType
instance Network.AWS.Data.Headers.ToHeaders Network.AWS.SWF.DeprecateActivityType.DeprecateActivityType
instance Data.Aeson.Types.ToJSON.ToJSON Network.AWS.SWF.DeprecateActivityType.DeprecateActivityType
instance Network.AWS.Data.Path.ToPath Network.AWS.SWF.DeprecateActivityType.DeprecateActivityType
instance Network.AWS.Data.Query.ToQuery Network.AWS.SWF.DeprecateActivityType.DeprecateActivityType


-- | Returns the estimated number of decision tasks in the specified task
--   list. The count returned is an approximation and isn't guaranteed to
--   be exact. If you specify a task list that no decision task was ever
--   scheduled in then <tt>0</tt> is returned.
--   
--   <b>Access Control</b>
--   
--   You can use IAM policies to control this action's access to Amazon SWF
--   resources as follows:
--   
--   <ul>
--   <li>Use a <tt>Resource</tt> element with the domain name to limit the
--   action to only specified domains.</li>
--   <li>Use an <tt>Action</tt> element to allow or deny permission to call
--   this action.</li>
--   <li>Constrain the <tt>taskList.name</tt> parameter by using a
--   <tt>Condition</tt> element with the <tt>swf:taskList.name</tt> key to
--   allow the action to access only certain task lists.</li>
--   </ul>
--   
--   If the caller doesn't have sufficient permissions to invoke the
--   action, or the parameter values fall outside the specified
--   constraints, the action fails. The associated event attribute's
--   <tt>cause</tt> parameter is set to <tt>OPERATION_NOT_PERMITTED</tt> .
--   For details and example IAM policies, see <a>Using IAM to Manage
--   Access to Amazon SWF Workflows</a> in the <i>Amazon SWF Developer
--   Guide</i> .
module Network.AWS.SWF.CountPendingDecisionTasks

-- | Creates a value of <a>CountPendingDecisionTasks</a> with the minimum
--   fields required to make a request.
--   
--   Use one of the following lenses to modify other fields as desired:
--   
--   <ul>
--   <li><a>cpdtDomain</a> - The name of the domain that contains the task
--   list.</li>
--   <li><a>cpdtTaskList</a> - The name of the task list.</li>
--   </ul>
countPendingDecisionTasks :: Text -> TaskList -> CountPendingDecisionTasks

-- | <i>See:</i> <a>countPendingDecisionTasks</a> smart constructor.
data CountPendingDecisionTasks

-- | The name of the domain that contains the task list.
cpdtDomain :: Lens' CountPendingDecisionTasks Text

-- | The name of the task list.
cpdtTaskList :: Lens' CountPendingDecisionTasks TaskList

-- | Creates a value of <a>PendingTaskCount</a> with the minimum fields
--   required to make a request.
--   
--   Use one of the following lenses to modify other fields as desired:
--   
--   <ul>
--   <li><a>ptcTruncated</a> - If set to true, indicates that the actual
--   count was more than the maximum supported by this API and the count
--   returned is the truncated value.</li>
--   <li><a>ptcCount</a> - The number of tasks in the task list.</li>
--   </ul>
pendingTaskCount :: Natural -> PendingTaskCount

-- | Contains the count of tasks in a task list.
--   
--   <i>See:</i> <a>pendingTaskCount</a> smart constructor.
data PendingTaskCount

-- | If set to true, indicates that the actual count was more than the
--   maximum supported by this API and the count returned is the truncated
--   value.
ptcTruncated :: Lens' PendingTaskCount (Maybe Bool)

-- | The number of tasks in the task list.
ptcCount :: Lens' PendingTaskCount Natural
instance GHC.Generics.Generic Network.AWS.SWF.CountPendingDecisionTasks.CountPendingDecisionTasks
instance Data.Data.Data Network.AWS.SWF.CountPendingDecisionTasks.CountPendingDecisionTasks
instance GHC.Show.Show Network.AWS.SWF.CountPendingDecisionTasks.CountPendingDecisionTasks
instance GHC.Read.Read Network.AWS.SWF.CountPendingDecisionTasks.CountPendingDecisionTasks
instance GHC.Classes.Eq Network.AWS.SWF.CountPendingDecisionTasks.CountPendingDecisionTasks
instance Network.AWS.Types.AWSRequest Network.AWS.SWF.CountPendingDecisionTasks.CountPendingDecisionTasks
instance Data.Hashable.Class.Hashable Network.AWS.SWF.CountPendingDecisionTasks.CountPendingDecisionTasks
instance Control.DeepSeq.NFData Network.AWS.SWF.CountPendingDecisionTasks.CountPendingDecisionTasks
instance Network.AWS.Data.Headers.ToHeaders Network.AWS.SWF.CountPendingDecisionTasks.CountPendingDecisionTasks
instance Data.Aeson.Types.ToJSON.ToJSON Network.AWS.SWF.CountPendingDecisionTasks.CountPendingDecisionTasks
instance Network.AWS.Data.Path.ToPath Network.AWS.SWF.CountPendingDecisionTasks.CountPendingDecisionTasks
instance Network.AWS.Data.Query.ToQuery Network.AWS.SWF.CountPendingDecisionTasks.CountPendingDecisionTasks


-- | Returns the estimated number of activity tasks in the specified task
--   list. The count returned is an approximation and isn't guaranteed to
--   be exact. If you specify a task list that no activity task was ever
--   scheduled in then <tt>0</tt> is returned.
--   
--   <b>Access Control</b>
--   
--   You can use IAM policies to control this action's access to Amazon SWF
--   resources as follows:
--   
--   <ul>
--   <li>Use a <tt>Resource</tt> element with the domain name to limit the
--   action to only specified domains.</li>
--   <li>Use an <tt>Action</tt> element to allow or deny permission to call
--   this action.</li>
--   <li>Constrain the <tt>taskList.name</tt> parameter by using a
--   <tt>Condition</tt> element with the <tt>swf:taskList.name</tt> key to
--   allow the action to access only certain task lists.</li>
--   </ul>
--   
--   If the caller doesn't have sufficient permissions to invoke the
--   action, or the parameter values fall outside the specified
--   constraints, the action fails. The associated event attribute's
--   <tt>cause</tt> parameter is set to <tt>OPERATION_NOT_PERMITTED</tt> .
--   For details and example IAM policies, see <a>Using IAM to Manage
--   Access to Amazon SWF Workflows</a> in the <i>Amazon SWF Developer
--   Guide</i> .
module Network.AWS.SWF.CountPendingActivityTasks

-- | Creates a value of <a>CountPendingActivityTasks</a> with the minimum
--   fields required to make a request.
--   
--   Use one of the following lenses to modify other fields as desired:
--   
--   <ul>
--   <li><a>cpatDomain</a> - The name of the domain that contains the task
--   list.</li>
--   <li><a>cpatTaskList</a> - The name of the task list.</li>
--   </ul>
countPendingActivityTasks :: Text -> TaskList -> CountPendingActivityTasks

-- | <i>See:</i> <a>countPendingActivityTasks</a> smart constructor.
data CountPendingActivityTasks

-- | The name of the domain that contains the task list.
cpatDomain :: Lens' CountPendingActivityTasks Text

-- | The name of the task list.
cpatTaskList :: Lens' CountPendingActivityTasks TaskList

-- | Creates a value of <a>PendingTaskCount</a> with the minimum fields
--   required to make a request.
--   
--   Use one of the following lenses to modify other fields as desired:
--   
--   <ul>
--   <li><a>ptcTruncated</a> - If set to true, indicates that the actual
--   count was more than the maximum supported by this API and the count
--   returned is the truncated value.</li>
--   <li><a>ptcCount</a> - The number of tasks in the task list.</li>
--   </ul>
pendingTaskCount :: Natural -> PendingTaskCount

-- | Contains the count of tasks in a task list.
--   
--   <i>See:</i> <a>pendingTaskCount</a> smart constructor.
data PendingTaskCount

-- | If set to true, indicates that the actual count was more than the
--   maximum supported by this API and the count returned is the truncated
--   value.
ptcTruncated :: Lens' PendingTaskCount (Maybe Bool)

-- | The number of tasks in the task list.
ptcCount :: Lens' PendingTaskCount Natural
instance GHC.Generics.Generic Network.AWS.SWF.CountPendingActivityTasks.CountPendingActivityTasks
instance Data.Data.Data Network.AWS.SWF.CountPendingActivityTasks.CountPendingActivityTasks
instance GHC.Show.Show Network.AWS.SWF.CountPendingActivityTasks.CountPendingActivityTasks
instance GHC.Read.Read Network.AWS.SWF.CountPendingActivityTasks.CountPendingActivityTasks
instance GHC.Classes.Eq Network.AWS.SWF.CountPendingActivityTasks.CountPendingActivityTasks
instance Network.AWS.Types.AWSRequest Network.AWS.SWF.CountPendingActivityTasks.CountPendingActivityTasks
instance Data.Hashable.Class.Hashable Network.AWS.SWF.CountPendingActivityTasks.CountPendingActivityTasks
instance Control.DeepSeq.NFData Network.AWS.SWF.CountPendingActivityTasks.CountPendingActivityTasks
instance Network.AWS.Data.Headers.ToHeaders Network.AWS.SWF.CountPendingActivityTasks.CountPendingActivityTasks
instance Data.Aeson.Types.ToJSON.ToJSON Network.AWS.SWF.CountPendingActivityTasks.CountPendingActivityTasks
instance Network.AWS.Data.Path.ToPath Network.AWS.SWF.CountPendingActivityTasks.CountPendingActivityTasks
instance Network.AWS.Data.Query.ToQuery Network.AWS.SWF.CountPendingActivityTasks.CountPendingActivityTasks


-- | Returns the number of open workflow executions within the given domain
--   that meet the specified filtering criteria.
--   
--   <b>Access Control</b>
--   
--   You can use IAM policies to control this action's access to Amazon SWF
--   resources as follows:
--   
--   <ul>
--   <li>Use a <tt>Resource</tt> element with the domain name to limit the
--   action to only specified domains.</li>
--   <li>Use an <tt>Action</tt> element to allow or deny permission to call
--   this action.</li>
--   <li>Constrain the following parameters by using a <tt>Condition</tt>
--   element with the appropriate keys.</li>
--   <li><tt>tagFilter.tag</tt> : String constraint. The key is
--   <tt>swf:tagFilter.tag</tt> .</li>
--   <li><tt>typeFilter.name</tt> : String constraint. The key is
--   <tt>swf:typeFilter.name</tt> .</li>
--   <li><tt>typeFilter.version</tt> : String constraint. The key is
--   <tt>swf:typeFilter.version</tt> .</li>
--   </ul>
--   
--   If the caller doesn't have sufficient permissions to invoke the
--   action, or the parameter values fall outside the specified
--   constraints, the action fails. The associated event attribute's
--   <tt>cause</tt> parameter is set to <tt>OPERATION_NOT_PERMITTED</tt> .
--   For details and example IAM policies, see <a>Using IAM to Manage
--   Access to Amazon SWF Workflows</a> in the <i>Amazon SWF Developer
--   Guide</i> .
module Network.AWS.SWF.CountOpenWorkflowExecutions

-- | Creates a value of <a>CountOpenWorkflowExecutions</a> with the minimum
--   fields required to make a request.
--   
--   Use one of the following lenses to modify other fields as desired:
--   
--   <ul>
--   <li><a>coweExecutionFilter</a> - If specified, only workflow
--   executions matching the <tt>WorkflowId</tt> in the filter are
--   counted.</li>
--   <li><a>coweTypeFilter</a> - Specifies the type of the workflow
--   executions to be counted.</li>
--   <li><a>coweTagFilter</a> - If specified, only executions that have a
--   tag that matches the filter are counted.</li>
--   <li><a>coweDomain</a> - The name of the domain containing the workflow
--   executions to count.</li>
--   <li><a>coweStartTimeFilter</a> - Specifies the start time criteria
--   that workflow executions must meet in order to be counted.</li>
--   </ul>
countOpenWorkflowExecutions :: Text -> ExecutionTimeFilter -> CountOpenWorkflowExecutions

-- | <i>See:</i> <a>countOpenWorkflowExecutions</a> smart constructor.
data CountOpenWorkflowExecutions

-- | If specified, only workflow executions matching the
--   <tt>WorkflowId</tt> in the filter are counted.
coweExecutionFilter :: Lens' CountOpenWorkflowExecutions (Maybe WorkflowExecutionFilter)

-- | Specifies the type of the workflow executions to be counted.
coweTypeFilter :: Lens' CountOpenWorkflowExecutions (Maybe WorkflowTypeFilter)

-- | If specified, only executions that have a tag that matches the filter
--   are counted.
coweTagFilter :: Lens' CountOpenWorkflowExecutions (Maybe TagFilter)

-- | The name of the domain containing the workflow executions to count.
coweDomain :: Lens' CountOpenWorkflowExecutions Text

-- | Specifies the start time criteria that workflow executions must meet
--   in order to be counted.
coweStartTimeFilter :: Lens' CountOpenWorkflowExecutions ExecutionTimeFilter

-- | Creates a value of <a>WorkflowExecutionCount</a> with the minimum
--   fields required to make a request.
--   
--   Use one of the following lenses to modify other fields as desired:
--   
--   <ul>
--   <li><a>wecTruncated</a> - If set to true, indicates that the actual
--   count was more than the maximum supported by this API and the count
--   returned is the truncated value.</li>
--   <li><a>wecCount</a> - The number of workflow executions.</li>
--   </ul>
workflowExecutionCount :: Natural -> WorkflowExecutionCount

-- | Contains the count of workflow executions returned from
--   <tt>CountOpenWorkflowExecutions</tt> or
--   <tt>CountClosedWorkflowExecutions</tt>
--   
--   <i>See:</i> <a>workflowExecutionCount</a> smart constructor.
data WorkflowExecutionCount

-- | If set to true, indicates that the actual count was more than the
--   maximum supported by this API and the count returned is the truncated
--   value.
wecTruncated :: Lens' WorkflowExecutionCount (Maybe Bool)

-- | The number of workflow executions.
wecCount :: Lens' WorkflowExecutionCount Natural
instance GHC.Generics.Generic Network.AWS.SWF.CountOpenWorkflowExecutions.CountOpenWorkflowExecutions
instance Data.Data.Data Network.AWS.SWF.CountOpenWorkflowExecutions.CountOpenWorkflowExecutions
instance GHC.Show.Show Network.AWS.SWF.CountOpenWorkflowExecutions.CountOpenWorkflowExecutions
instance GHC.Read.Read Network.AWS.SWF.CountOpenWorkflowExecutions.CountOpenWorkflowExecutions
instance GHC.Classes.Eq Network.AWS.SWF.CountOpenWorkflowExecutions.CountOpenWorkflowExecutions
instance Network.AWS.Types.AWSRequest Network.AWS.SWF.CountOpenWorkflowExecutions.CountOpenWorkflowExecutions
instance Data.Hashable.Class.Hashable Network.AWS.SWF.CountOpenWorkflowExecutions.CountOpenWorkflowExecutions
instance Control.DeepSeq.NFData Network.AWS.SWF.CountOpenWorkflowExecutions.CountOpenWorkflowExecutions
instance Network.AWS.Data.Headers.ToHeaders Network.AWS.SWF.CountOpenWorkflowExecutions.CountOpenWorkflowExecutions
instance Data.Aeson.Types.ToJSON.ToJSON Network.AWS.SWF.CountOpenWorkflowExecutions.CountOpenWorkflowExecutions
instance Network.AWS.Data.Path.ToPath Network.AWS.SWF.CountOpenWorkflowExecutions.CountOpenWorkflowExecutions
instance Network.AWS.Data.Query.ToQuery Network.AWS.SWF.CountOpenWorkflowExecutions.CountOpenWorkflowExecutions


-- | Returns the number of closed workflow executions within the given
--   domain that meet the specified filtering criteria.
--   
--   <b>Access Control</b>
--   
--   You can use IAM policies to control this action's access to Amazon SWF
--   resources as follows:
--   
--   <ul>
--   <li>Use a <tt>Resource</tt> element with the domain name to limit the
--   action to only specified domains.</li>
--   <li>Use an <tt>Action</tt> element to allow or deny permission to call
--   this action.</li>
--   <li>Constrain the following parameters by using a <tt>Condition</tt>
--   element with the appropriate keys.</li>
--   <li><tt>tagFilter.tag</tt> : String constraint. The key is
--   <tt>swf:tagFilter.tag</tt> .</li>
--   <li><tt>typeFilter.name</tt> : String constraint. The key is
--   <tt>swf:typeFilter.name</tt> .</li>
--   <li><tt>typeFilter.version</tt> : String constraint. The key is
--   <tt>swf:typeFilter.version</tt> .</li>
--   </ul>
--   
--   If the caller doesn't have sufficient permissions to invoke the
--   action, or the parameter values fall outside the specified
--   constraints, the action fails. The associated event attribute's
--   <tt>cause</tt> parameter is set to <tt>OPERATION_NOT_PERMITTED</tt> .
--   For details and example IAM policies, see <a>Using IAM to Manage
--   Access to Amazon SWF Workflows</a> in the <i>Amazon SWF Developer
--   Guide</i> .
module Network.AWS.SWF.CountClosedWorkflowExecutions

-- | Creates a value of <a>CountClosedWorkflowExecutions</a> with the
--   minimum fields required to make a request.
--   
--   Use one of the following lenses to modify other fields as desired:
--   
--   <ul>
--   <li><a>ccweExecutionFilter</a> - If specified, only workflow
--   executions matching the <tt>WorkflowId</tt> in the filter are
--   counted.</li>
--   <li><a>ccweCloseStatusFilter</a> - If specified, only workflow
--   executions that match this close status are counted. This filter has
--   an affect only if <tt>executionStatus</tt> is specified as
--   <tt>CLOSED</tt> .</li>
--   <li><a>ccweTypeFilter</a> - If specified, indicates the type of the
--   workflow executions to be counted.</li>
--   <li><a>ccweCloseTimeFilter</a> - If specified, only workflow
--   executions that meet the close time criteria of the filter are
--   counted.</li>
--   <li><a>ccweTagFilter</a> - If specified, only executions that have a
--   tag that matches the filter are counted.</li>
--   <li><a>ccweStartTimeFilter</a> - If specified, only workflow
--   executions that meet the start time criteria of the filter are
--   counted.</li>
--   <li><a>ccweDomain</a> - The name of the domain containing the workflow
--   executions to count.</li>
--   </ul>
countClosedWorkflowExecutions :: Text -> CountClosedWorkflowExecutions

-- | <i>See:</i> <a>countClosedWorkflowExecutions</a> smart constructor.
data CountClosedWorkflowExecutions

-- | If specified, only workflow executions matching the
--   <tt>WorkflowId</tt> in the filter are counted.
ccweExecutionFilter :: Lens' CountClosedWorkflowExecutions (Maybe WorkflowExecutionFilter)

-- | If specified, only workflow executions that match this close status
--   are counted. This filter has an affect only if
--   <tt>executionStatus</tt> is specified as <tt>CLOSED</tt> .
ccweCloseStatusFilter :: Lens' CountClosedWorkflowExecutions (Maybe CloseStatusFilter)

-- | If specified, indicates the type of the workflow executions to be
--   counted.
ccweTypeFilter :: Lens' CountClosedWorkflowExecutions (Maybe WorkflowTypeFilter)

-- | If specified, only workflow executions that meet the close time
--   criteria of the filter are counted.
ccweCloseTimeFilter :: Lens' CountClosedWorkflowExecutions (Maybe ExecutionTimeFilter)

-- | If specified, only executions that have a tag that matches the filter
--   are counted.
ccweTagFilter :: Lens' CountClosedWorkflowExecutions (Maybe TagFilter)

-- | If specified, only workflow executions that meet the start time
--   criteria of the filter are counted.
ccweStartTimeFilter :: Lens' CountClosedWorkflowExecutions (Maybe ExecutionTimeFilter)

-- | The name of the domain containing the workflow executions to count.
ccweDomain :: Lens' CountClosedWorkflowExecutions Text

-- | Creates a value of <a>WorkflowExecutionCount</a> with the minimum
--   fields required to make a request.
--   
--   Use one of the following lenses to modify other fields as desired:
--   
--   <ul>
--   <li><a>wecTruncated</a> - If set to true, indicates that the actual
--   count was more than the maximum supported by this API and the count
--   returned is the truncated value.</li>
--   <li><a>wecCount</a> - The number of workflow executions.</li>
--   </ul>
workflowExecutionCount :: Natural -> WorkflowExecutionCount

-- | Contains the count of workflow executions returned from
--   <tt>CountOpenWorkflowExecutions</tt> or
--   <tt>CountClosedWorkflowExecutions</tt>
--   
--   <i>See:</i> <a>workflowExecutionCount</a> smart constructor.
data WorkflowExecutionCount

-- | If set to true, indicates that the actual count was more than the
--   maximum supported by this API and the count returned is the truncated
--   value.
wecTruncated :: Lens' WorkflowExecutionCount (Maybe Bool)

-- | The number of workflow executions.
wecCount :: Lens' WorkflowExecutionCount Natural
instance GHC.Generics.Generic Network.AWS.SWF.CountClosedWorkflowExecutions.CountClosedWorkflowExecutions
instance Data.Data.Data Network.AWS.SWF.CountClosedWorkflowExecutions.CountClosedWorkflowExecutions
instance GHC.Show.Show Network.AWS.SWF.CountClosedWorkflowExecutions.CountClosedWorkflowExecutions
instance GHC.Read.Read Network.AWS.SWF.CountClosedWorkflowExecutions.CountClosedWorkflowExecutions
instance GHC.Classes.Eq Network.AWS.SWF.CountClosedWorkflowExecutions.CountClosedWorkflowExecutions
instance Network.AWS.Types.AWSRequest Network.AWS.SWF.CountClosedWorkflowExecutions.CountClosedWorkflowExecutions
instance Data.Hashable.Class.Hashable Network.AWS.SWF.CountClosedWorkflowExecutions.CountClosedWorkflowExecutions
instance Control.DeepSeq.NFData Network.AWS.SWF.CountClosedWorkflowExecutions.CountClosedWorkflowExecutions
instance Network.AWS.Data.Headers.ToHeaders Network.AWS.SWF.CountClosedWorkflowExecutions.CountClosedWorkflowExecutions
instance Data.Aeson.Types.ToJSON.ToJSON Network.AWS.SWF.CountClosedWorkflowExecutions.CountClosedWorkflowExecutions
instance Network.AWS.Data.Path.ToPath Network.AWS.SWF.CountClosedWorkflowExecutions.CountClosedWorkflowExecutions
instance Network.AWS.Data.Query.ToQuery Network.AWS.SWF.CountClosedWorkflowExecutions.CountClosedWorkflowExecutions


module Network.AWS.SWF.Waiters


-- | <b>Amazon Simple Workflow Service</b>
--   
--   The Amazon Simple Workflow Service (Amazon SWF) makes it easy to build
--   applications that use Amazon's cloud to coordinate work across
--   distributed components. In Amazon SWF, a <i>task</i> represents a
--   logical unit of work that is performed by a component of your
--   workflow. Coordinating tasks in a workflow involves managing intertask
--   dependencies, scheduling, and concurrency in accordance with the
--   logical flow of the application.
--   
--   Amazon SWF gives you full control over implementing tasks and
--   coordinating them without worrying about underlying complexities such
--   as tracking their progress and maintaining their state.
--   
--   This documentation serves as reference only. For a broader overview of
--   the Amazon SWF programming model, see the <i><a>Amazon SWF Developer
--   Guide</a> </i> .
module Network.AWS.SWF

-- | API version <tt>2012-01-25</tt> of the Amazon Simple Workflow Service
--   SDK configuration.
swf :: Service

-- | Returned if the specified domain already exists. You get this fault
--   even if the existing domain is in deprecated status.
_DomainAlreadyExistsFault :: AsError a => Getting (First ServiceError) a ServiceError

-- | Returned by any operation if a system imposed limitation has been
--   reached. To address this fault you should either clean up unused
--   resources or increase the limit by contacting AWS.
_LimitExceededFault :: AsError a => Getting (First ServiceError) a ServiceError

-- | Returned by <tt>StartWorkflowExecution</tt> when an open execution
--   with the same workflowId is already running in the specified domain.
_WorkflowExecutionAlreadyStartedFault :: AsError a => Getting (First ServiceError) a ServiceError

-- | Returned when the caller doesn't have sufficient permissions to invoke
--   the action.
_OperationNotPermittedFault :: AsError a => Getting (First ServiceError) a ServiceError

-- | Returned when the named resource cannot be found with in the scope of
--   this operation (region or domain). This could happen if the named
--   resource was never created or is no longer available for this
--   operation.
_UnknownResourceFault :: AsError a => Getting (First ServiceError) a ServiceError

-- | The <tt>StartWorkflowExecution</tt> API action was called without the
--   required parameters set.
--   
--   Some workflow execution parameters, such as the decision
--   <tt>taskList</tt> , must be set to start the execution. However, these
--   parameters might have been set as defaults when the workflow type was
--   registered. In this case, you can omit these parameters from the
--   <tt>StartWorkflowExecution</tt> call and Amazon SWF uses the values
--   defined in the workflow type.
_DefaultUndefinedFault :: AsError a => Getting (First ServiceError) a ServiceError

-- | Returned when the specified activity or workflow type was already
--   deprecated.
_TypeDeprecatedFault :: AsError a => Getting (First ServiceError) a ServiceError

-- | Returned if the type already exists in the specified domain. You get
--   this fault even if the existing type is in deprecated status. You can
--   specify another version if the intent is to create a new distinct
--   version of the type.
_TypeAlreadyExistsFault :: AsError a => Getting (First ServiceError) a ServiceError

-- | Returned when the specified domain has been deprecated.
_DomainDeprecatedFault :: AsError a => Getting (First ServiceError) a ServiceError
data ActivityTaskTimeoutType
ATTTHeartbeat :: ActivityTaskTimeoutType
ATTTScheduleToClose :: ActivityTaskTimeoutType
ATTTScheduleToStart :: ActivityTaskTimeoutType
ATTTStartToClose :: ActivityTaskTimeoutType
data CancelTimerFailedCause
CTFCOperationNotPermitted :: CancelTimerFailedCause
CTFCTimerIdUnknown :: CancelTimerFailedCause
data CancelWorkflowExecutionFailedCause
COperationNotPermitted :: CancelWorkflowExecutionFailedCause
CUnhandledDecision :: CancelWorkflowExecutionFailedCause
data ChildPolicy
Abandon :: ChildPolicy
RequestCancel :: ChildPolicy
Terminate :: ChildPolicy
data CloseStatus
Canceled :: CloseStatus
Completed :: CloseStatus
ContinuedAsNew :: CloseStatus
Failed :: CloseStatus
Terminated :: CloseStatus
TimedOut :: CloseStatus
data CompleteWorkflowExecutionFailedCause
CWEFCOperationNotPermitted :: CompleteWorkflowExecutionFailedCause
CWEFCUnhandledDecision :: CompleteWorkflowExecutionFailedCause
data ContinueAsNewWorkflowExecutionFailedCause
CANWEFCContinueAsNewWorkflowExecutionRateExceeded :: ContinueAsNewWorkflowExecutionFailedCause
CANWEFCDefaultChildPolicyUndefined :: ContinueAsNewWorkflowExecutionFailedCause
CANWEFCDefaultExecutionStartToCloseTimeoutUndefined :: ContinueAsNewWorkflowExecutionFailedCause
CANWEFCDefaultTaskListUndefined :: ContinueAsNewWorkflowExecutionFailedCause
CANWEFCDefaultTaskStartToCloseTimeoutUndefined :: ContinueAsNewWorkflowExecutionFailedCause
CANWEFCOperationNotPermitted :: ContinueAsNewWorkflowExecutionFailedCause
CANWEFCUnhandledDecision :: ContinueAsNewWorkflowExecutionFailedCause
CANWEFCWorkflowTypeDeprecated :: ContinueAsNewWorkflowExecutionFailedCause
CANWEFCWorkflowTypeDoesNotExist :: ContinueAsNewWorkflowExecutionFailedCause
data DecisionTaskTimeoutType
StartToClose :: DecisionTaskTimeoutType
data DecisionType
CancelTimer :: DecisionType
CancelWorkflowExecution :: DecisionType
CompleteWorkflowExecution :: DecisionType
ContinueAsNewWorkflowExecution :: DecisionType
FailWorkflowExecution :: DecisionType
RecordMarker :: DecisionType
RequestCancelActivityTask :: DecisionType
RequestCancelExternalWorkflowExecution :: DecisionType
ScheduleActivityTask :: DecisionType
ScheduleLambdaFunction :: DecisionType
SignalExternalWorkflowExecution :: DecisionType
StartChildWorkflowExecution :: DecisionType
StartTimer :: DecisionType
data EventType
ActivityTaskCancelRequested :: EventType
ActivityTaskCanceled :: EventType
ActivityTaskCompleted :: EventType
ActivityTaskFailed :: EventType
ActivityTaskScheduled :: EventType
ActivityTaskStarted :: EventType
ActivityTaskTimedOut :: EventType
CancelTimerFailed :: EventType
CancelWorkflowExecutionFailed :: EventType
ChildWorkflowExecutionCanceled :: EventType
ChildWorkflowExecutionCompleted :: EventType
ChildWorkflowExecutionFailed :: EventType
ChildWorkflowExecutionStarted :: EventType
ChildWorkflowExecutionTerminated :: EventType
ChildWorkflowExecutionTimedOut :: EventType
CompleteWorkflowExecutionFailed :: EventType
ContinueAsNewWorkflowExecutionFailed :: EventType
DecisionTaskCompleted :: EventType
DecisionTaskScheduled :: EventType
DecisionTaskStarted :: EventType
DecisionTaskTimedOut :: EventType
ExternalWorkflowExecutionCancelRequested :: EventType
ExternalWorkflowExecutionSignaled :: EventType
FailWorkflowExecutionFailed :: EventType
LambdaFunctionCompleted :: EventType
LambdaFunctionFailed :: EventType
LambdaFunctionScheduled :: EventType
LambdaFunctionStarted :: EventType
LambdaFunctionTimedOut :: EventType
MarkerRecorded :: EventType
RecordMarkerFailed :: EventType
RequestCancelActivityTaskFailed :: EventType
RequestCancelExternalWorkflowExecutionFailed :: EventType
RequestCancelExternalWorkflowExecutionInitiated :: EventType
ScheduleActivityTaskFailed :: EventType
ScheduleLambdaFunctionFailed :: EventType
SignalExternalWorkflowExecutionFailed :: EventType
SignalExternalWorkflowExecutionInitiated :: EventType
StartChildWorkflowExecutionFailed :: EventType
StartChildWorkflowExecutionInitiated :: EventType
StartLambdaFunctionFailed :: EventType
StartTimerFailed :: EventType
TimerCanceled :: EventType
TimerFired :: EventType
TimerStarted :: EventType
WorkflowExecutionCancelRequested :: EventType
WorkflowExecutionCanceled :: EventType
WorkflowExecutionCompleted :: EventType
WorkflowExecutionContinuedAsNew :: EventType
WorkflowExecutionFailed :: EventType
WorkflowExecutionSignaled :: EventType
WorkflowExecutionStarted :: EventType
WorkflowExecutionTerminated :: EventType
WorkflowExecutionTimedOut :: EventType
data ExecutionStatus
Closed :: ExecutionStatus
Open :: ExecutionStatus
data FailWorkflowExecutionFailedCause
FWEFCOperationNotPermitted :: FailWorkflowExecutionFailedCause
FWEFCUnhandledDecision :: FailWorkflowExecutionFailedCause
data LambdaFunctionTimeoutType
LFTTStartToClose :: LambdaFunctionTimeoutType
data RecordMarkerFailedCause
OperationNotPermitted :: RecordMarkerFailedCause
data RegistrationStatus
Deprecated :: RegistrationStatus
Registered :: RegistrationStatus
data RequestCancelActivityTaskFailedCause
RCATFCActivityIdUnknown :: RequestCancelActivityTaskFailedCause
RCATFCOperationNotPermitted :: RequestCancelActivityTaskFailedCause
data RequestCancelExternalWorkflowExecutionFailedCause
RCEWEFCOperationNotPermitted :: RequestCancelExternalWorkflowExecutionFailedCause
RCEWEFCRequestCancelExternalWorkflowExecutionRateExceeded :: RequestCancelExternalWorkflowExecutionFailedCause
RCEWEFCUnknownExternalWorkflowExecution :: RequestCancelExternalWorkflowExecutionFailedCause
data ScheduleActivityTaskFailedCause
SATFCActivityCreationRateExceeded :: ScheduleActivityTaskFailedCause
SATFCActivityIdAlreadyInUse :: ScheduleActivityTaskFailedCause
SATFCActivityTypeDeprecated :: ScheduleActivityTaskFailedCause
SATFCActivityTypeDoesNotExist :: ScheduleActivityTaskFailedCause
SATFCDefaultHeartbeatTimeoutUndefined :: ScheduleActivityTaskFailedCause
SATFCDefaultScheduleToCloseTimeoutUndefined :: ScheduleActivityTaskFailedCause
SATFCDefaultScheduleToStartTimeoutUndefined :: ScheduleActivityTaskFailedCause
SATFCDefaultStartToCloseTimeoutUndefined :: ScheduleActivityTaskFailedCause
SATFCDefaultTaskListUndefined :: ScheduleActivityTaskFailedCause
SATFCOpenActivitiesLimitExceeded :: ScheduleActivityTaskFailedCause
SATFCOperationNotPermitted :: ScheduleActivityTaskFailedCause
data ScheduleLambdaFunctionFailedCause
IdAlreadyInUse :: ScheduleLambdaFunctionFailedCause
LambdaFunctionCreationRateExceeded :: ScheduleLambdaFunctionFailedCause
LambdaServiceNotAvailableInRegion :: ScheduleLambdaFunctionFailedCause
OpenLambdaFunctionsLimitExceeded :: ScheduleLambdaFunctionFailedCause
data SignalExternalWorkflowExecutionFailedCause
SEWEFCOperationNotPermitted :: SignalExternalWorkflowExecutionFailedCause
SEWEFCSignalExternalWorkflowExecutionRateExceeded :: SignalExternalWorkflowExecutionFailedCause
SEWEFCUnknownExternalWorkflowExecution :: SignalExternalWorkflowExecutionFailedCause
data StartChildWorkflowExecutionFailedCause
SCWEFCChildCreationRateExceeded :: StartChildWorkflowExecutionFailedCause
SCWEFCDefaultChildPolicyUndefined :: StartChildWorkflowExecutionFailedCause
SCWEFCDefaultExecutionStartToCloseTimeoutUndefined :: StartChildWorkflowExecutionFailedCause
SCWEFCDefaultTaskListUndefined :: StartChildWorkflowExecutionFailedCause
SCWEFCDefaultTaskStartToCloseTimeoutUndefined :: StartChildWorkflowExecutionFailedCause
SCWEFCOpenChildrenLimitExceeded :: StartChildWorkflowExecutionFailedCause
SCWEFCOpenWorkflowsLimitExceeded :: StartChildWorkflowExecutionFailedCause
SCWEFCOperationNotPermitted :: StartChildWorkflowExecutionFailedCause
SCWEFCWorkflowAlreadyRunning :: StartChildWorkflowExecutionFailedCause
SCWEFCWorkflowTypeDeprecated :: StartChildWorkflowExecutionFailedCause
SCWEFCWorkflowTypeDoesNotExist :: StartChildWorkflowExecutionFailedCause
data StartLambdaFunctionFailedCause
AssumeRoleFailed :: StartLambdaFunctionFailedCause
data StartTimerFailedCause
STFCOpenTimersLimitExceeded :: StartTimerFailedCause
STFCOperationNotPermitted :: StartTimerFailedCause
STFCTimerCreationRateExceeded :: StartTimerFailedCause
STFCTimerIdAlreadyInUse :: StartTimerFailedCause
data WorkflowExecutionCancelRequestedCause
ChildPolicyApplied :: WorkflowExecutionCancelRequestedCause
data WorkflowExecutionTerminatedCause
WETCChildPolicyApplied :: WorkflowExecutionTerminatedCause
WETCEventLimitExceeded :: WorkflowExecutionTerminatedCause
WETCOperatorInitiated :: WorkflowExecutionTerminatedCause
data WorkflowExecutionTimeoutType
WETTStartToClose :: WorkflowExecutionTimeoutType

-- | Provides the details of the <tt>ActivityTaskCancelRequested</tt>
--   event.
--   
--   <i>See:</i> <a>activityTaskCancelRequestedEventAttributes</a> smart
--   constructor.
data ActivityTaskCancelRequestedEventAttributes

-- | Creates a value of <a>ActivityTaskCancelRequestedEventAttributes</a>
--   with the minimum fields required to make a request.
--   
--   Use one of the following lenses to modify other fields as desired:
--   
--   <ul>
--   <li><a>atcreaDecisionTaskCompletedEventId</a> - The ID of the
--   <tt>DecisionTaskCompleted</tt> event corresponding to the decision
--   task that resulted in the <tt>RequestCancelActivityTask</tt> decision
--   for this cancellation request. This information can be useful for
--   diagnosing problems by tracing back the chain of events leading up to
--   this event.</li>
--   <li><a>atcreaActivityId</a> - The unique ID of the task.</li>
--   </ul>
activityTaskCancelRequestedEventAttributes :: Integer -> Text -> ActivityTaskCancelRequestedEventAttributes

-- | The ID of the <tt>DecisionTaskCompleted</tt> event corresponding to
--   the decision task that resulted in the
--   <tt>RequestCancelActivityTask</tt> decision for this cancellation
--   request. This information can be useful for diagnosing problems by
--   tracing back the chain of events leading up to this event.
atcreaDecisionTaskCompletedEventId :: Lens' ActivityTaskCancelRequestedEventAttributes Integer

-- | The unique ID of the task.
atcreaActivityId :: Lens' ActivityTaskCancelRequestedEventAttributes Text

-- | Provides the details of the <tt>ActivityTaskCanceled</tt> event.
--   
--   <i>See:</i> <a>activityTaskCanceledEventAttributes</a> smart
--   constructor.
data ActivityTaskCanceledEventAttributes

-- | Creates a value of <a>ActivityTaskCanceledEventAttributes</a> with the
--   minimum fields required to make a request.
--   
--   Use one of the following lenses to modify other fields as desired:
--   
--   <ul>
--   <li><a>aLatestCancelRequestedEventId</a> - If set, contains the ID of
--   the last <tt>ActivityTaskCancelRequested</tt> event recorded for this
--   activity task. This information can be useful for diagnosing problems
--   by tracing back the chain of events leading up to this event.</li>
--   <li><a>aDetails</a> - Details of the cancellation.</li>
--   <li><a>aScheduledEventId</a> - The ID of the
--   <tt>ActivityTaskScheduled</tt> event that was recorded when this
--   activity task was scheduled. This information can be useful for
--   diagnosing problems by tracing back the chain of events leading up to
--   this event.</li>
--   <li><a>aStartedEventId</a> - The ID of the
--   <tt>ActivityTaskStarted</tt> event recorded when this activity task
--   was started. This information can be useful for diagnosing problems by
--   tracing back the chain of events leading up to this event.</li>
--   </ul>
activityTaskCanceledEventAttributes :: Integer -> Integer -> ActivityTaskCanceledEventAttributes

-- | If set, contains the ID of the last
--   <tt>ActivityTaskCancelRequested</tt> event recorded for this activity
--   task. This information can be useful for diagnosing problems by
--   tracing back the chain of events leading up to this event.
aLatestCancelRequestedEventId :: Lens' ActivityTaskCanceledEventAttributes (Maybe Integer)

-- | Details of the cancellation.
aDetails :: Lens' ActivityTaskCanceledEventAttributes (Maybe Text)

-- | The ID of the <tt>ActivityTaskScheduled</tt> event that was recorded
--   when this activity task was scheduled. This information can be useful
--   for diagnosing problems by tracing back the chain of events leading up
--   to this event.
aScheduledEventId :: Lens' ActivityTaskCanceledEventAttributes Integer

-- | The ID of the <tt>ActivityTaskStarted</tt> event recorded when this
--   activity task was started. This information can be useful for
--   diagnosing problems by tracing back the chain of events leading up to
--   this event.
aStartedEventId :: Lens' ActivityTaskCanceledEventAttributes Integer

-- | Provides the details of the <tt>ActivityTaskCompleted</tt> event.
--   
--   <i>See:</i> <a>activityTaskCompletedEventAttributes</a> smart
--   constructor.
data ActivityTaskCompletedEventAttributes

-- | Creates a value of <a>ActivityTaskCompletedEventAttributes</a> with
--   the minimum fields required to make a request.
--   
--   Use one of the following lenses to modify other fields as desired:
--   
--   <ul>
--   <li><a>atceaResult</a> - The results of the activity task.</li>
--   <li><a>atceaScheduledEventId</a> - The ID of the
--   <tt>ActivityTaskScheduled</tt> event that was recorded when this
--   activity task was scheduled. This information can be useful for
--   diagnosing problems by tracing back the chain of events leading up to
--   this event.</li>
--   <li><a>atceaStartedEventId</a> - The ID of the
--   <tt>ActivityTaskStarted</tt> event recorded when this activity task
--   was started. This information can be useful for diagnosing problems by
--   tracing back the chain of events leading up to this event.</li>
--   </ul>
activityTaskCompletedEventAttributes :: Integer -> Integer -> ActivityTaskCompletedEventAttributes

-- | The results of the activity task.
atceaResult :: Lens' ActivityTaskCompletedEventAttributes (Maybe Text)

-- | The ID of the <tt>ActivityTaskScheduled</tt> event that was recorded
--   when this activity task was scheduled. This information can be useful
--   for diagnosing problems by tracing back the chain of events leading up
--   to this event.
atceaScheduledEventId :: Lens' ActivityTaskCompletedEventAttributes Integer

-- | The ID of the <tt>ActivityTaskStarted</tt> event recorded when this
--   activity task was started. This information can be useful for
--   diagnosing problems by tracing back the chain of events leading up to
--   this event.
atceaStartedEventId :: Lens' ActivityTaskCompletedEventAttributes Integer

-- | Provides the details of the <tt>ActivityTaskFailed</tt> event.
--   
--   <i>See:</i> <a>activityTaskFailedEventAttributes</a> smart
--   constructor.
data ActivityTaskFailedEventAttributes

-- | Creates a value of <a>ActivityTaskFailedEventAttributes</a> with the
--   minimum fields required to make a request.
--   
--   Use one of the following lenses to modify other fields as desired:
--   
--   <ul>
--   <li><a>atfeaReason</a> - The reason provided for the failure.</li>
--   <li><a>atfeaDetails</a> - The details of the failure.</li>
--   <li><a>atfeaScheduledEventId</a> - The ID of the
--   <tt>ActivityTaskScheduled</tt> event that was recorded when this
--   activity task was scheduled. This information can be useful for
--   diagnosing problems by tracing back the chain of events leading up to
--   this event.</li>
--   <li><a>atfeaStartedEventId</a> - The ID of the
--   <tt>ActivityTaskStarted</tt> event recorded when this activity task
--   was started. This information can be useful for diagnosing problems by
--   tracing back the chain of events leading up to this event.</li>
--   </ul>
activityTaskFailedEventAttributes :: Integer -> Integer -> ActivityTaskFailedEventAttributes

-- | The reason provided for the failure.
atfeaReason :: Lens' ActivityTaskFailedEventAttributes (Maybe Text)

-- | The details of the failure.
atfeaDetails :: Lens' ActivityTaskFailedEventAttributes (Maybe Text)

-- | The ID of the <tt>ActivityTaskScheduled</tt> event that was recorded
--   when this activity task was scheduled. This information can be useful
--   for diagnosing problems by tracing back the chain of events leading up
--   to this event.
atfeaScheduledEventId :: Lens' ActivityTaskFailedEventAttributes Integer

-- | The ID of the <tt>ActivityTaskStarted</tt> event recorded when this
--   activity task was started. This information can be useful for
--   diagnosing problems by tracing back the chain of events leading up to
--   this event.
atfeaStartedEventId :: Lens' ActivityTaskFailedEventAttributes Integer

-- | Provides the details of the <tt>ActivityTaskScheduled</tt> event.
--   
--   <i>See:</i> <a>activityTaskScheduledEventAttributes</a> smart
--   constructor.
data ActivityTaskScheduledEventAttributes

-- | Creates a value of <a>ActivityTaskScheduledEventAttributes</a> with
--   the minimum fields required to make a request.
--   
--   Use one of the following lenses to modify other fields as desired:
--   
--   <ul>
--   <li><a>atseaControl</a> - Data attached to the event that can be used
--   by the decider in subsequent workflow tasks. This data isn't sent to
--   the activity.</li>
--   <li><a>atseaHeartbeatTimeout</a> - The maximum time before which the
--   worker processing this task must report progress by calling
--   <tt>RecordActivityTaskHeartbeat</tt> . If the timeout is exceeded, the
--   activity task is automatically timed out. If the worker subsequently
--   attempts to record a heartbeat or return a result, it is ignored.</li>
--   <li><a>atseaScheduleToCloseTimeout</a> - The maximum amount of time
--   for this activity task.</li>
--   <li><a>atseaInput</a> - The input provided to the activity task.</li>
--   <li><a>atseaTaskPriority</a> - The priority to assign to the scheduled
--   activity task. If set, this overrides any default priority value that
--   was assigned when the activity type was registered. Valid values are
--   integers that range from Java's <tt>Integer.MIN_VALUE</tt>
--   (-2147483648) to <tt>Integer.MAX_VALUE</tt> (2147483647). Higher
--   numbers indicate higher priority. For more information about setting
--   task priority, see <a>Setting Task Priority</a> in the <i>Amazon SWF
--   Developer Guide</i> .</li>
--   <li><a>atseaScheduleToStartTimeout</a> - The maximum amount of time
--   the activity task can wait to be assigned to a worker.</li>
--   <li><a>atseaStartToCloseTimeout</a> - The maximum amount of time a
--   worker may take to process the activity task.</li>
--   <li><a>atseaActivityType</a> - The type of the activity task.</li>
--   <li><a>atseaActivityId</a> - The unique ID of the activity task.</li>
--   <li><a>atseaTaskList</a> - The task list in which the activity task
--   has been scheduled.</li>
--   <li><a>atseaDecisionTaskCompletedEventId</a> - The ID of the
--   <tt>DecisionTaskCompleted</tt> event corresponding to the decision
--   that resulted in the scheduling of this activity task. This
--   information can be useful for diagnosing problems by tracing back the
--   chain of events leading up to this event.</li>
--   </ul>
activityTaskScheduledEventAttributes :: ActivityType -> Text -> TaskList -> Integer -> ActivityTaskScheduledEventAttributes

-- | Data attached to the event that can be used by the decider in
--   subsequent workflow tasks. This data isn't sent to the activity.
atseaControl :: Lens' ActivityTaskScheduledEventAttributes (Maybe Text)

-- | The maximum time before which the worker processing this task must
--   report progress by calling <tt>RecordActivityTaskHeartbeat</tt> . If
--   the timeout is exceeded, the activity task is automatically timed out.
--   If the worker subsequently attempts to record a heartbeat or return a
--   result, it is ignored.
atseaHeartbeatTimeout :: Lens' ActivityTaskScheduledEventAttributes (Maybe Text)

-- | The maximum amount of time for this activity task.
atseaScheduleToCloseTimeout :: Lens' ActivityTaskScheduledEventAttributes (Maybe Text)

-- | The input provided to the activity task.
atseaInput :: Lens' ActivityTaskScheduledEventAttributes (Maybe Text)

-- | The priority to assign to the scheduled activity task. If set, this
--   overrides any default priority value that was assigned when the
--   activity type was registered. Valid values are integers that range
--   from Java's <tt>Integer.MIN_VALUE</tt> (-2147483648) to
--   <tt>Integer.MAX_VALUE</tt> (2147483647). Higher numbers indicate
--   higher priority. For more information about setting task priority, see
--   <a>Setting Task Priority</a> in the <i>Amazon SWF Developer Guide</i>
--   .
atseaTaskPriority :: Lens' ActivityTaskScheduledEventAttributes (Maybe Text)

-- | The maximum amount of time the activity task can wait to be assigned
--   to a worker.
atseaScheduleToStartTimeout :: Lens' ActivityTaskScheduledEventAttributes (Maybe Text)

-- | The maximum amount of time a worker may take to process the activity
--   task.
atseaStartToCloseTimeout :: Lens' ActivityTaskScheduledEventAttributes (Maybe Text)

-- | The type of the activity task.
atseaActivityType :: Lens' ActivityTaskScheduledEventAttributes ActivityType

-- | The unique ID of the activity task.
atseaActivityId :: Lens' ActivityTaskScheduledEventAttributes Text

-- | The task list in which the activity task has been scheduled.
atseaTaskList :: Lens' ActivityTaskScheduledEventAttributes TaskList

-- | The ID of the <tt>DecisionTaskCompleted</tt> event corresponding to
--   the decision that resulted in the scheduling of this activity task.
--   This information can be useful for diagnosing problems by tracing back
--   the chain of events leading up to this event.
atseaDecisionTaskCompletedEventId :: Lens' ActivityTaskScheduledEventAttributes Integer

-- | Provides the details of the <tt>ActivityTaskStarted</tt> event.
--   
--   <i>See:</i> <a>activityTaskStartedEventAttributes</a> smart
--   constructor.
data ActivityTaskStartedEventAttributes

-- | Creates a value of <a>ActivityTaskStartedEventAttributes</a> with the
--   minimum fields required to make a request.
--   
--   Use one of the following lenses to modify other fields as desired:
--   
--   <ul>
--   <li><a>atseaIdentity</a> - Identity of the worker that was assigned
--   this task. This aids diagnostics when problems arise. The form of this
--   identity is user defined.</li>
--   <li><a>atseaScheduledEventId</a> - The ID of the
--   <tt>ActivityTaskScheduled</tt> event that was recorded when this
--   activity task was scheduled. This information can be useful for
--   diagnosing problems by tracing back the chain of events leading up to
--   this event.</li>
--   </ul>
activityTaskStartedEventAttributes :: Integer -> ActivityTaskStartedEventAttributes

-- | Identity of the worker that was assigned this task. This aids
--   diagnostics when problems arise. The form of this identity is user
--   defined.
atseaIdentity :: Lens' ActivityTaskStartedEventAttributes (Maybe Text)

-- | The ID of the <tt>ActivityTaskScheduled</tt> event that was recorded
--   when this activity task was scheduled. This information can be useful
--   for diagnosing problems by tracing back the chain of events leading up
--   to this event.
atseaScheduledEventId :: Lens' ActivityTaskStartedEventAttributes Integer

-- | Provides the details of the <tt>ActivityTaskTimedOut</tt> event.
--   
--   <i>See:</i> <a>activityTaskTimedOutEventAttributes</a> smart
--   constructor.
data ActivityTaskTimedOutEventAttributes

-- | Creates a value of <a>ActivityTaskTimedOutEventAttributes</a> with the
--   minimum fields required to make a request.
--   
--   Use one of the following lenses to modify other fields as desired:
--   
--   <ul>
--   <li><a>attoeaDetails</a> - Contains the content of the
--   <tt>details</tt> parameter for the last call made by the activity to
--   <tt>RecordActivityTaskHeartbeat</tt> .</li>
--   <li><a>attoeaTimeoutType</a> - The type of the timeout that caused
--   this event.</li>
--   <li><a>attoeaScheduledEventId</a> - The ID of the
--   <tt>ActivityTaskScheduled</tt> event that was recorded when this
--   activity task was scheduled. This information can be useful for
--   diagnosing problems by tracing back the chain of events leading up to
--   this event.</li>
--   <li><a>attoeaStartedEventId</a> - The ID of the
--   <tt>ActivityTaskStarted</tt> event recorded when this activity task
--   was started. This information can be useful for diagnosing problems by
--   tracing back the chain of events leading up to this event.</li>
--   </ul>
activityTaskTimedOutEventAttributes :: ActivityTaskTimeoutType -> Integer -> Integer -> ActivityTaskTimedOutEventAttributes

-- | Contains the content of the <tt>details</tt> parameter for the last
--   call made by the activity to <tt>RecordActivityTaskHeartbeat</tt> .
attoeaDetails :: Lens' ActivityTaskTimedOutEventAttributes (Maybe Text)

-- | The type of the timeout that caused this event.
attoeaTimeoutType :: Lens' ActivityTaskTimedOutEventAttributes ActivityTaskTimeoutType

-- | The ID of the <tt>ActivityTaskScheduled</tt> event that was recorded
--   when this activity task was scheduled. This information can be useful
--   for diagnosing problems by tracing back the chain of events leading up
--   to this event.
attoeaScheduledEventId :: Lens' ActivityTaskTimedOutEventAttributes Integer

-- | The ID of the <tt>ActivityTaskStarted</tt> event recorded when this
--   activity task was started. This information can be useful for
--   diagnosing problems by tracing back the chain of events leading up to
--   this event.
attoeaStartedEventId :: Lens' ActivityTaskTimedOutEventAttributes Integer

-- | Represents an activity type.
--   
--   <i>See:</i> <a>activityType</a> smart constructor.
data ActivityType

-- | Creates a value of <a>ActivityType</a> with the minimum fields
--   required to make a request.
--   
--   Use one of the following lenses to modify other fields as desired:
--   
--   <ul>
--   <li><a>atName</a> - The name of this activity.</li>
--   <li><a>atVersion</a> - The version of this activity.</li>
--   </ul>
activityType :: Text -> Text -> ActivityType

-- | The name of this activity.
atName :: Lens' ActivityType Text

-- | The version of this activity.
atVersion :: Lens' ActivityType Text

-- | Configuration settings registered with the activity type.
--   
--   <i>See:</i> <a>activityTypeConfiguration</a> smart constructor.
data ActivityTypeConfiguration

-- | Creates a value of <a>ActivityTypeConfiguration</a> with the minimum
--   fields required to make a request.
--   
--   Use one of the following lenses to modify other fields as desired:
--   
--   <ul>
--   <li><a>atcDefaultTaskScheduleToStartTimeout</a> - The default maximum
--   duration, specified when registering the activity type, that a task of
--   an activity type can wait before being assigned to a worker. You can
--   override this default when scheduling a task through the
--   <tt>ScheduleActivityTask</tt> <a>Decision</a> . The duration is
--   specified in seconds, an integer greater than or equal to <tt>0</tt> .
--   You can use <tt>NONE</tt> to specify unlimited duration.</li>
--   <li><a>atcDefaultTaskList</a> - The default task list specified for
--   this activity type at registration. This default is used if a task
--   list isn't provided when a task is scheduled through the
--   <tt>ScheduleActivityTask</tt> <a>Decision</a> . You can override the
--   default registered task list when scheduling a task through the
--   <tt>ScheduleActivityTask</tt> <a>Decision</a> .</li>
--   <li><a>atcDefaultTaskPriority</a> - The default task priority for
--   tasks of this activity type, specified at registration. If not set,
--   then <tt>0</tt> is used as the default priority. This default can be
--   overridden when scheduling an activity task. Valid values are integers
--   that range from Java's <tt>Integer.MIN_VALUE</tt> (-2147483648) to
--   <tt>Integer.MAX_VALUE</tt> (2147483647). Higher numbers indicate
--   higher priority. For more information about setting task priority, see
--   <a>Setting Task Priority</a> in the <i>Amazon SWF Developer Guide</i>
--   .</li>
--   <li><a>atcDefaultTaskHeartbeatTimeout</a> - The default maximum time,
--   in seconds, before which a worker processing a task must report
--   progress by calling <tt>RecordActivityTaskHeartbeat</tt> . You can
--   specify this value only when <i>registering</i> an activity type. The
--   registered default value can be overridden when you schedule a task
--   through the <tt>ScheduleActivityTask</tt> <a>Decision</a> . If the
--   activity worker subsequently attempts to record a heartbeat or returns
--   a result, the activity worker receives an <tt>UnknownResource</tt>
--   fault. In this case, Amazon SWF no longer considers the activity task
--   to be valid; the activity worker should clean up the activity task.
--   The duration is specified in seconds, an integer greater than or equal
--   to <tt>0</tt> . You can use <tt>NONE</tt> to specify unlimited
--   duration.</li>
--   <li><a>atcDefaultTaskScheduleToCloseTimeout</a> - The default maximum
--   duration, specified when registering the activity type, for tasks of
--   this activity type. You can override this default when scheduling a
--   task through the <tt>ScheduleActivityTask</tt> <a>Decision</a> . The
--   duration is specified in seconds, an integer greater than or equal to
--   <tt>0</tt> . You can use <tt>NONE</tt> to specify unlimited
--   duration.</li>
--   <li><a>atcDefaultTaskStartToCloseTimeout</a> - The default maximum
--   duration for tasks of an activity type specified when registering the
--   activity type. You can override this default when scheduling a task
--   through the <tt>ScheduleActivityTask</tt> <a>Decision</a> . The
--   duration is specified in seconds, an integer greater than or equal to
--   <tt>0</tt> . You can use <tt>NONE</tt> to specify unlimited
--   duration.</li>
--   </ul>
activityTypeConfiguration :: ActivityTypeConfiguration

-- | The default maximum duration, specified when registering the activity
--   type, that a task of an activity type can wait before being assigned
--   to a worker. You can override this default when scheduling a task
--   through the <tt>ScheduleActivityTask</tt> <a>Decision</a> . The
--   duration is specified in seconds, an integer greater than or equal to
--   <tt>0</tt> . You can use <tt>NONE</tt> to specify unlimited duration.
atcDefaultTaskScheduleToStartTimeout :: Lens' ActivityTypeConfiguration (Maybe Text)

-- | The default task list specified for this activity type at
--   registration. This default is used if a task list isn't provided when
--   a task is scheduled through the <tt>ScheduleActivityTask</tt>
--   <a>Decision</a> . You can override the default registered task list
--   when scheduling a task through the <tt>ScheduleActivityTask</tt>
--   <a>Decision</a> .
atcDefaultTaskList :: Lens' ActivityTypeConfiguration (Maybe TaskList)

-- | The default task priority for tasks of this activity type, specified
--   at registration. If not set, then <tt>0</tt> is used as the default
--   priority. This default can be overridden when scheduling an activity
--   task. Valid values are integers that range from Java's
--   <tt>Integer.MIN_VALUE</tt> (-2147483648) to <tt>Integer.MAX_VALUE</tt>
--   (2147483647). Higher numbers indicate higher priority. For more
--   information about setting task priority, see <a>Setting Task
--   Priority</a> in the <i>Amazon SWF Developer Guide</i> .
atcDefaultTaskPriority :: Lens' ActivityTypeConfiguration (Maybe Text)

-- | The default maximum time, in seconds, before which a worker processing
--   a task must report progress by calling
--   <tt>RecordActivityTaskHeartbeat</tt> . You can specify this value only
--   when <i>registering</i> an activity type. The registered default value
--   can be overridden when you schedule a task through the
--   <tt>ScheduleActivityTask</tt> <a>Decision</a> . If the activity worker
--   subsequently attempts to record a heartbeat or returns a result, the
--   activity worker receives an <tt>UnknownResource</tt> fault. In this
--   case, Amazon SWF no longer considers the activity task to be valid;
--   the activity worker should clean up the activity task. The duration is
--   specified in seconds, an integer greater than or equal to <tt>0</tt> .
--   You can use <tt>NONE</tt> to specify unlimited duration.
atcDefaultTaskHeartbeatTimeout :: Lens' ActivityTypeConfiguration (Maybe Text)

-- | The default maximum duration, specified when registering the activity
--   type, for tasks of this activity type. You can override this default
--   when scheduling a task through the <tt>ScheduleActivityTask</tt>
--   <a>Decision</a> . The duration is specified in seconds, an integer
--   greater than or equal to <tt>0</tt> . You can use <tt>NONE</tt> to
--   specify unlimited duration.
atcDefaultTaskScheduleToCloseTimeout :: Lens' ActivityTypeConfiguration (Maybe Text)

-- | The default maximum duration for tasks of an activity type specified
--   when registering the activity type. You can override this default when
--   scheduling a task through the <tt>ScheduleActivityTask</tt>
--   <a>Decision</a> . The duration is specified in seconds, an integer
--   greater than or equal to <tt>0</tt> . You can use <tt>NONE</tt> to
--   specify unlimited duration.
atcDefaultTaskStartToCloseTimeout :: Lens' ActivityTypeConfiguration (Maybe Text)

-- | Detailed information about an activity type.
--   
--   <i>See:</i> <a>activityTypeInfo</a> smart constructor.
data ActivityTypeInfo

-- | Creates a value of <a>ActivityTypeInfo</a> with the minimum fields
--   required to make a request.
--   
--   Use one of the following lenses to modify other fields as desired:
--   
--   <ul>
--   <li><a>atiDeprecationDate</a> - If DEPRECATED, the date and time
--   <tt>DeprecateActivityType</tt> was called.</li>
--   <li><a>atiDescription</a> - The description of the activity type
--   provided in <tt>RegisterActivityType</tt> .</li>
--   <li><a>atiActivityType</a> - The <a>ActivityType</a> type structure
--   representing the activity type.</li>
--   <li><a>atiStatus</a> - The current status of the activity type.</li>
--   <li><a>atiCreationDate</a> - The date and time this activity type was
--   created through <tt>RegisterActivityType</tt> .</li>
--   </ul>
activityTypeInfo :: ActivityType -> RegistrationStatus -> UTCTime -> ActivityTypeInfo

-- | If DEPRECATED, the date and time <tt>DeprecateActivityType</tt> was
--   called.
atiDeprecationDate :: Lens' ActivityTypeInfo (Maybe UTCTime)

-- | The description of the activity type provided in
--   <tt>RegisterActivityType</tt> .
atiDescription :: Lens' ActivityTypeInfo (Maybe Text)

-- | The <a>ActivityType</a> type structure representing the activity type.
atiActivityType :: Lens' ActivityTypeInfo ActivityType

-- | The current status of the activity type.
atiStatus :: Lens' ActivityTypeInfo RegistrationStatus

-- | The date and time this activity type was created through
--   <tt>RegisterActivityType</tt> .
atiCreationDate :: Lens' ActivityTypeInfo UTCTime

-- | Provides the details of the <tt>CancelTimer</tt> decision.
--   
--   <b>Access Control</b>
--   
--   You can use IAM policies to control this decision's access to Amazon
--   SWF resources as follows:
--   
--   <ul>
--   <li>Use a <tt>Resource</tt> element with the domain name to limit the
--   action to only specified domains.</li>
--   <li>Use an <tt>Action</tt> element to allow or deny permission to call
--   this action.</li>
--   <li>You cannot use an IAM policy to constrain this action's
--   parameters.</li>
--   </ul>
--   
--   If the caller doesn't have sufficient permissions to invoke the
--   action, or the parameter values fall outside the specified
--   constraints, the action fails. The associated event attribute's
--   <tt>cause</tt> parameter is set to <tt>OPERATION_NOT_PERMITTED</tt> .
--   For details and example IAM policies, see <a>Using IAM to Manage
--   Access to Amazon SWF Workflows</a> in the <i>Amazon SWF Developer
--   Guide</i> .
--   
--   <i>See:</i> <a>cancelTimerDecisionAttributes</a> smart constructor.
data CancelTimerDecisionAttributes

-- | Creates a value of <a>CancelTimerDecisionAttributes</a> with the
--   minimum fields required to make a request.
--   
--   Use one of the following lenses to modify other fields as desired:
--   
--   <ul>
--   <li><a>ctdaTimerId</a> - The unique ID of the timer to cancel.</li>
--   </ul>
cancelTimerDecisionAttributes :: Text -> CancelTimerDecisionAttributes

-- | The unique ID of the timer to cancel.
ctdaTimerId :: Lens' CancelTimerDecisionAttributes Text

-- | Provides the details of the <tt>CancelTimerFailed</tt> event.
--   
--   <i>See:</i> <a>cancelTimerFailedEventAttributes</a> smart constructor.
data CancelTimerFailedEventAttributes

-- | Creates a value of <a>CancelTimerFailedEventAttributes</a> with the
--   minimum fields required to make a request.
--   
--   Use one of the following lenses to modify other fields as desired:
--   
--   <ul>
--   <li><a>ctfeaTimerId</a> - The timerId provided in the
--   <tt>CancelTimer</tt> decision that failed.</li>
--   <li><a>ctfeaCause</a> - The cause of the failure. This information is
--   generated by the system and can be useful for diagnostic
--   purposes.</li>
--   <li><a>ctfeaDecisionTaskCompletedEventId</a> - The ID of the
--   <tt>DecisionTaskCompleted</tt> event corresponding to the decision
--   task that resulted in the <tt>CancelTimer</tt> decision to cancel this
--   timer. This information can be useful for diagnosing problems by
--   tracing back the chain of events leading up to this event.</li>
--   </ul>
cancelTimerFailedEventAttributes :: Text -> CancelTimerFailedCause -> Integer -> CancelTimerFailedEventAttributes

-- | The timerId provided in the <tt>CancelTimer</tt> decision that failed.
ctfeaTimerId :: Lens' CancelTimerFailedEventAttributes Text

-- | The cause of the failure. This information is generated by the system
--   and can be useful for diagnostic purposes.
ctfeaCause :: Lens' CancelTimerFailedEventAttributes CancelTimerFailedCause

-- | The ID of the <tt>DecisionTaskCompleted</tt> event corresponding to
--   the decision task that resulted in the <tt>CancelTimer</tt> decision
--   to cancel this timer. This information can be useful for diagnosing
--   problems by tracing back the chain of events leading up to this event.
ctfeaDecisionTaskCompletedEventId :: Lens' CancelTimerFailedEventAttributes Integer

-- | Provides the details of the <tt>CancelWorkflowExecution</tt> decision.
--   
--   <b>Access Control</b>
--   
--   You can use IAM policies to control this decision's access to Amazon
--   SWF resources as follows:
--   
--   <ul>
--   <li>Use a <tt>Resource</tt> element with the domain name to limit the
--   action to only specified domains.</li>
--   <li>Use an <tt>Action</tt> element to allow or deny permission to call
--   this action.</li>
--   <li>You cannot use an IAM policy to constrain this action's
--   parameters.</li>
--   </ul>
--   
--   If the caller doesn't have sufficient permissions to invoke the
--   action, or the parameter values fall outside the specified
--   constraints, the action fails. The associated event attribute's
--   <tt>cause</tt> parameter is set to <tt>OPERATION_NOT_PERMITTED</tt> .
--   For details and example IAM policies, see <a>Using IAM to Manage
--   Access to Amazon SWF Workflows</a> in the <i>Amazon SWF Developer
--   Guide</i> .
--   
--   <i>See:</i> <a>cancelWorkflowExecutionDecisionAttributes</a> smart
--   constructor.
data CancelWorkflowExecutionDecisionAttributes

-- | Creates a value of <a>CancelWorkflowExecutionDecisionAttributes</a>
--   with the minimum fields required to make a request.
--   
--   Use one of the following lenses to modify other fields as desired:
--   
--   <ul>
--   <li><a>cwedaDetails</a> - Details of the cancellation.</li>
--   </ul>
cancelWorkflowExecutionDecisionAttributes :: CancelWorkflowExecutionDecisionAttributes

-- | Details of the cancellation.
cwedaDetails :: Lens' CancelWorkflowExecutionDecisionAttributes (Maybe Text)

-- | Provides the details of the <tt>CancelWorkflowExecutionFailed</tt>
--   event.
--   
--   <i>See:</i> <a>cancelWorkflowExecutionFailedEventAttributes</a> smart
--   constructor.
data CancelWorkflowExecutionFailedEventAttributes

-- | Creates a value of <a>CancelWorkflowExecutionFailedEventAttributes</a>
--   with the minimum fields required to make a request.
--   
--   Use one of the following lenses to modify other fields as desired:
--   
--   <ul>
--   <li><a>cCause</a> - The cause of the failure. This information is
--   generated by the system and can be useful for diagnostic
--   purposes.</li>
--   <li><a>cDecisionTaskCompletedEventId</a> - The ID of the
--   <tt>DecisionTaskCompleted</tt> event corresponding to the decision
--   task that resulted in the <tt>CancelWorkflowExecution</tt> decision
--   for this cancellation request. This information can be useful for
--   diagnosing problems by tracing back the chain of events leading up to
--   this event.</li>
--   </ul>
cancelWorkflowExecutionFailedEventAttributes :: CancelWorkflowExecutionFailedCause -> Integer -> CancelWorkflowExecutionFailedEventAttributes

-- | The cause of the failure. This information is generated by the system
--   and can be useful for diagnostic purposes.
cCause :: Lens' CancelWorkflowExecutionFailedEventAttributes CancelWorkflowExecutionFailedCause

-- | The ID of the <tt>DecisionTaskCompleted</tt> event corresponding to
--   the decision task that resulted in the
--   <tt>CancelWorkflowExecution</tt> decision for this cancellation
--   request. This information can be useful for diagnosing problems by
--   tracing back the chain of events leading up to this event.
cDecisionTaskCompletedEventId :: Lens' CancelWorkflowExecutionFailedEventAttributes Integer

-- | Provide details of the <tt>ChildWorkflowExecutionCanceled</tt> event.
--   
--   <i>See:</i> <a>childWorkflowExecutionCanceledEventAttributes</a> smart
--   constructor.
data ChildWorkflowExecutionCanceledEventAttributes

-- | Creates a value of
--   <a>ChildWorkflowExecutionCanceledEventAttributes</a> with the minimum
--   fields required to make a request.
--   
--   Use one of the following lenses to modify other fields as desired:
--   
--   <ul>
--   <li><a>cDetails</a> - Details of the cancellation (if provided).</li>
--   <li><a>cWorkflowExecution</a> - The child workflow execution that was
--   canceled.</li>
--   <li><a>cWorkflowType</a> - The type of the child workflow
--   execution.</li>
--   <li><a>cInitiatedEventId</a> - The ID of the
--   <tt>StartChildWorkflowExecutionInitiated</tt> event corresponding to
--   the <tt>StartChildWorkflowExecution</tt> <a>Decision</a> to start this
--   child workflow execution. This information can be useful for
--   diagnosing problems by tracing back the chain of events leading up to
--   this event.</li>
--   <li><a>cStartedEventId</a> - The ID of the
--   <tt>ChildWorkflowExecutionStarted</tt> event recorded when this child
--   workflow execution was started. This information can be useful for
--   diagnosing problems by tracing back the chain of events leading up to
--   this event.</li>
--   </ul>
childWorkflowExecutionCanceledEventAttributes :: WorkflowExecution -> WorkflowType -> Integer -> Integer -> ChildWorkflowExecutionCanceledEventAttributes

-- | Details of the cancellation (if provided).
cDetails :: Lens' ChildWorkflowExecutionCanceledEventAttributes (Maybe Text)

-- | The child workflow execution that was canceled.
cWorkflowExecution :: Lens' ChildWorkflowExecutionCanceledEventAttributes WorkflowExecution

-- | The type of the child workflow execution.
cWorkflowType :: Lens' ChildWorkflowExecutionCanceledEventAttributes WorkflowType

-- | The ID of the <tt>StartChildWorkflowExecutionInitiated</tt> event
--   corresponding to the <tt>StartChildWorkflowExecution</tt>
--   <a>Decision</a> to start this child workflow execution. This
--   information can be useful for diagnosing problems by tracing back the
--   chain of events leading up to this event.
cInitiatedEventId :: Lens' ChildWorkflowExecutionCanceledEventAttributes Integer

-- | The ID of the <tt>ChildWorkflowExecutionStarted</tt> event recorded
--   when this child workflow execution was started. This information can
--   be useful for diagnosing problems by tracing back the chain of events
--   leading up to this event.
cStartedEventId :: Lens' ChildWorkflowExecutionCanceledEventAttributes Integer

-- | Provides the details of the <tt>ChildWorkflowExecutionCompleted</tt>
--   event.
--   
--   <i>See:</i> <a>childWorkflowExecutionCompletedEventAttributes</a>
--   smart constructor.
data ChildWorkflowExecutionCompletedEventAttributes

-- | Creates a value of
--   <a>ChildWorkflowExecutionCompletedEventAttributes</a> with the minimum
--   fields required to make a request.
--   
--   Use one of the following lenses to modify other fields as desired:
--   
--   <ul>
--   <li><a>cweceaResult</a> - The result of the child workflow
--   execution.</li>
--   <li><a>cweceaWorkflowExecution</a> - The child workflow execution that
--   was completed.</li>
--   <li><a>cweceaWorkflowType</a> - The type of the child workflow
--   execution.</li>
--   <li><a>cweceaInitiatedEventId</a> - The ID of the
--   <tt>StartChildWorkflowExecutionInitiated</tt> event corresponding to
--   the <tt>StartChildWorkflowExecution</tt> <a>Decision</a> to start this
--   child workflow execution. This information can be useful for
--   diagnosing problems by tracing back the chain of events leading up to
--   this event.</li>
--   <li><a>cweceaStartedEventId</a> - The ID of the
--   <tt>ChildWorkflowExecutionStarted</tt> event recorded when this child
--   workflow execution was started. This information can be useful for
--   diagnosing problems by tracing back the chain of events leading up to
--   this event.</li>
--   </ul>
childWorkflowExecutionCompletedEventAttributes :: WorkflowExecution -> WorkflowType -> Integer -> Integer -> ChildWorkflowExecutionCompletedEventAttributes

-- | The result of the child workflow execution.
cweceaResult :: Lens' ChildWorkflowExecutionCompletedEventAttributes (Maybe Text)

-- | The child workflow execution that was completed.
cweceaWorkflowExecution :: Lens' ChildWorkflowExecutionCompletedEventAttributes WorkflowExecution

-- | The type of the child workflow execution.
cweceaWorkflowType :: Lens' ChildWorkflowExecutionCompletedEventAttributes WorkflowType

-- | The ID of the <tt>StartChildWorkflowExecutionInitiated</tt> event
--   corresponding to the <tt>StartChildWorkflowExecution</tt>
--   <a>Decision</a> to start this child workflow execution. This
--   information can be useful for diagnosing problems by tracing back the
--   chain of events leading up to this event.
cweceaInitiatedEventId :: Lens' ChildWorkflowExecutionCompletedEventAttributes Integer

-- | The ID of the <tt>ChildWorkflowExecutionStarted</tt> event recorded
--   when this child workflow execution was started. This information can
--   be useful for diagnosing problems by tracing back the chain of events
--   leading up to this event.
cweceaStartedEventId :: Lens' ChildWorkflowExecutionCompletedEventAttributes Integer

-- | Provides the details of the <tt>ChildWorkflowExecutionFailed</tt>
--   event.
--   
--   <i>See:</i> <a>childWorkflowExecutionFailedEventAttributes</a> smart
--   constructor.
data ChildWorkflowExecutionFailedEventAttributes

-- | Creates a value of <a>ChildWorkflowExecutionFailedEventAttributes</a>
--   with the minimum fields required to make a request.
--   
--   Use one of the following lenses to modify other fields as desired:
--   
--   <ul>
--   <li><a>cwefeaReason</a> - The reason for the failure (if
--   provided).</li>
--   <li><a>cwefeaDetails</a> - The details of the failure (if
--   provided).</li>
--   <li><a>cwefeaWorkflowExecution</a> - The child workflow execution that
--   failed.</li>
--   <li><a>cwefeaWorkflowType</a> - The type of the child workflow
--   execution.</li>
--   <li><a>cwefeaInitiatedEventId</a> - The ID of the
--   <tt>StartChildWorkflowExecutionInitiated</tt> event corresponding to
--   the <tt>StartChildWorkflowExecution</tt> <a>Decision</a> to start this
--   child workflow execution. This information can be useful for
--   diagnosing problems by tracing back the chain of events leading up to
--   this event.</li>
--   <li><a>cwefeaStartedEventId</a> - The ID of the
--   <tt>ChildWorkflowExecutionStarted</tt> event recorded when this child
--   workflow execution was started. This information can be useful for
--   diagnosing problems by tracing back the chain of events leading up to
--   this event.</li>
--   </ul>
childWorkflowExecutionFailedEventAttributes :: WorkflowExecution -> WorkflowType -> Integer -> Integer -> ChildWorkflowExecutionFailedEventAttributes

-- | The reason for the failure (if provided).
cwefeaReason :: Lens' ChildWorkflowExecutionFailedEventAttributes (Maybe Text)

-- | The details of the failure (if provided).
cwefeaDetails :: Lens' ChildWorkflowExecutionFailedEventAttributes (Maybe Text)

-- | The child workflow execution that failed.
cwefeaWorkflowExecution :: Lens' ChildWorkflowExecutionFailedEventAttributes WorkflowExecution

-- | The type of the child workflow execution.
cwefeaWorkflowType :: Lens' ChildWorkflowExecutionFailedEventAttributes WorkflowType

-- | The ID of the <tt>StartChildWorkflowExecutionInitiated</tt> event
--   corresponding to the <tt>StartChildWorkflowExecution</tt>
--   <a>Decision</a> to start this child workflow execution. This
--   information can be useful for diagnosing problems by tracing back the
--   chain of events leading up to this event.
cwefeaInitiatedEventId :: Lens' ChildWorkflowExecutionFailedEventAttributes Integer

-- | The ID of the <tt>ChildWorkflowExecutionStarted</tt> event recorded
--   when this child workflow execution was started. This information can
--   be useful for diagnosing problems by tracing back the chain of events
--   leading up to this event.
cwefeaStartedEventId :: Lens' ChildWorkflowExecutionFailedEventAttributes Integer

-- | Provides the details of the <tt>ChildWorkflowExecutionStarted</tt>
--   event.
--   
--   <i>See:</i> <a>childWorkflowExecutionStartedEventAttributes</a> smart
--   constructor.
data ChildWorkflowExecutionStartedEventAttributes

-- | Creates a value of <a>ChildWorkflowExecutionStartedEventAttributes</a>
--   with the minimum fields required to make a request.
--   
--   Use one of the following lenses to modify other fields as desired:
--   
--   <ul>
--   <li><a>cweseaWorkflowExecution</a> - The child workflow execution that
--   was started.</li>
--   <li><a>cweseaWorkflowType</a> - The type of the child workflow
--   execution.</li>
--   <li><a>cweseaInitiatedEventId</a> - The ID of the
--   <tt>StartChildWorkflowExecutionInitiated</tt> event corresponding to
--   the <tt>StartChildWorkflowExecution</tt> <a>Decision</a> to start this
--   child workflow execution. This information can be useful for
--   diagnosing problems by tracing back the chain of events leading up to
--   this event.</li>
--   </ul>
childWorkflowExecutionStartedEventAttributes :: WorkflowExecution -> WorkflowType -> Integer -> ChildWorkflowExecutionStartedEventAttributes

-- | The child workflow execution that was started.
cweseaWorkflowExecution :: Lens' ChildWorkflowExecutionStartedEventAttributes WorkflowExecution

-- | The type of the child workflow execution.
cweseaWorkflowType :: Lens' ChildWorkflowExecutionStartedEventAttributes WorkflowType

-- | The ID of the <tt>StartChildWorkflowExecutionInitiated</tt> event
--   corresponding to the <tt>StartChildWorkflowExecution</tt>
--   <a>Decision</a> to start this child workflow execution. This
--   information can be useful for diagnosing problems by tracing back the
--   chain of events leading up to this event.
cweseaInitiatedEventId :: Lens' ChildWorkflowExecutionStartedEventAttributes Integer

-- | Provides the details of the <tt>ChildWorkflowExecutionTerminated</tt>
--   event.
--   
--   <i>See:</i> <a>childWorkflowExecutionTerminatedEventAttributes</a>
--   smart constructor.
data ChildWorkflowExecutionTerminatedEventAttributes

-- | Creates a value of
--   <a>ChildWorkflowExecutionTerminatedEventAttributes</a> with the
--   minimum fields required to make a request.
--   
--   Use one of the following lenses to modify other fields as desired:
--   
--   <ul>
--   <li><a>cweteaWorkflowExecution</a> - The child workflow execution that
--   was terminated.</li>
--   <li><a>cweteaWorkflowType</a> - The type of the child workflow
--   execution.</li>
--   <li><a>cweteaInitiatedEventId</a> - The ID of the
--   <tt>StartChildWorkflowExecutionInitiated</tt> event corresponding to
--   the <tt>StartChildWorkflowExecution</tt> <a>Decision</a> to start this
--   child workflow execution. This information can be useful for
--   diagnosing problems by tracing back the chain of events leading up to
--   this event.</li>
--   <li><a>cweteaStartedEventId</a> - The ID of the
--   <tt>ChildWorkflowExecutionStarted</tt> event recorded when this child
--   workflow execution was started. This information can be useful for
--   diagnosing problems by tracing back the chain of events leading up to
--   this event.</li>
--   </ul>
childWorkflowExecutionTerminatedEventAttributes :: WorkflowExecution -> WorkflowType -> Integer -> Integer -> ChildWorkflowExecutionTerminatedEventAttributes

-- | The child workflow execution that was terminated.
cweteaWorkflowExecution :: Lens' ChildWorkflowExecutionTerminatedEventAttributes WorkflowExecution

-- | The type of the child workflow execution.
cweteaWorkflowType :: Lens' ChildWorkflowExecutionTerminatedEventAttributes WorkflowType

-- | The ID of the <tt>StartChildWorkflowExecutionInitiated</tt> event
--   corresponding to the <tt>StartChildWorkflowExecution</tt>
--   <a>Decision</a> to start this child workflow execution. This
--   information can be useful for diagnosing problems by tracing back the
--   chain of events leading up to this event.
cweteaInitiatedEventId :: Lens' ChildWorkflowExecutionTerminatedEventAttributes Integer

-- | The ID of the <tt>ChildWorkflowExecutionStarted</tt> event recorded
--   when this child workflow execution was started. This information can
--   be useful for diagnosing problems by tracing back the chain of events
--   leading up to this event.
cweteaStartedEventId :: Lens' ChildWorkflowExecutionTerminatedEventAttributes Integer

-- | Provides the details of the <tt>ChildWorkflowExecutionTimedOut</tt>
--   event.
--   
--   <i>See:</i> <a>childWorkflowExecutionTimedOutEventAttributes</a> smart
--   constructor.
data ChildWorkflowExecutionTimedOutEventAttributes

-- | Creates a value of
--   <a>ChildWorkflowExecutionTimedOutEventAttributes</a> with the minimum
--   fields required to make a request.
--   
--   Use one of the following lenses to modify other fields as desired:
--   
--   <ul>
--   <li><a>cwetoeaWorkflowExecution</a> - The child workflow execution
--   that timed out.</li>
--   <li><a>cwetoeaWorkflowType</a> - The type of the child workflow
--   execution.</li>
--   <li><a>cwetoeaTimeoutType</a> - The type of the timeout that caused
--   the child workflow execution to time out.</li>
--   <li><a>cwetoeaInitiatedEventId</a> - The ID of the
--   <tt>StartChildWorkflowExecutionInitiated</tt> event corresponding to
--   the <tt>StartChildWorkflowExecution</tt> <a>Decision</a> to start this
--   child workflow execution. This information can be useful for
--   diagnosing problems by tracing back the chain of events leading up to
--   this event.</li>
--   <li><a>cwetoeaStartedEventId</a> - The ID of the
--   <tt>ChildWorkflowExecutionStarted</tt> event recorded when this child
--   workflow execution was started. This information can be useful for
--   diagnosing problems by tracing back the chain of events leading up to
--   this event.</li>
--   </ul>
childWorkflowExecutionTimedOutEventAttributes :: WorkflowExecution -> WorkflowType -> WorkflowExecutionTimeoutType -> Integer -> Integer -> ChildWorkflowExecutionTimedOutEventAttributes

-- | The child workflow execution that timed out.
cwetoeaWorkflowExecution :: Lens' ChildWorkflowExecutionTimedOutEventAttributes WorkflowExecution

-- | The type of the child workflow execution.
cwetoeaWorkflowType :: Lens' ChildWorkflowExecutionTimedOutEventAttributes WorkflowType

-- | The type of the timeout that caused the child workflow execution to
--   time out.
cwetoeaTimeoutType :: Lens' ChildWorkflowExecutionTimedOutEventAttributes WorkflowExecutionTimeoutType

-- | The ID of the <tt>StartChildWorkflowExecutionInitiated</tt> event
--   corresponding to the <tt>StartChildWorkflowExecution</tt>
--   <a>Decision</a> to start this child workflow execution. This
--   information can be useful for diagnosing problems by tracing back the
--   chain of events leading up to this event.
cwetoeaInitiatedEventId :: Lens' ChildWorkflowExecutionTimedOutEventAttributes Integer

-- | The ID of the <tt>ChildWorkflowExecutionStarted</tt> event recorded
--   when this child workflow execution was started. This information can
--   be useful for diagnosing problems by tracing back the chain of events
--   leading up to this event.
cwetoeaStartedEventId :: Lens' ChildWorkflowExecutionTimedOutEventAttributes Integer

-- | Used to filter the closed workflow executions in visibility APIs by
--   their close status.
--   
--   <i>See:</i> <a>closeStatusFilter</a> smart constructor.
data CloseStatusFilter

-- | Creates a value of <a>CloseStatusFilter</a> with the minimum fields
--   required to make a request.
--   
--   Use one of the following lenses to modify other fields as desired:
--   
--   <ul>
--   <li><a>csfStatus</a> - The close status that must match the close
--   status of an execution for it to meet the criteria of this
--   filter.</li>
--   </ul>
closeStatusFilter :: CloseStatus -> CloseStatusFilter

-- | The close status that must match the close status of an execution for
--   it to meet the criteria of this filter.
csfStatus :: Lens' CloseStatusFilter CloseStatus

-- | Provides the details of the <tt>CompleteWorkflowExecution</tt>
--   decision.
--   
--   <b>Access Control</b>
--   
--   You can use IAM policies to control this decision's access to Amazon
--   SWF resources as follows:
--   
--   <ul>
--   <li>Use a <tt>Resource</tt> element with the domain name to limit the
--   action to only specified domains.</li>
--   <li>Use an <tt>Action</tt> element to allow or deny permission to call
--   this action.</li>
--   <li>You cannot use an IAM policy to constrain this action's
--   parameters.</li>
--   </ul>
--   
--   If the caller doesn't have sufficient permissions to invoke the
--   action, or the parameter values fall outside the specified
--   constraints, the action fails. The associated event attribute's
--   <tt>cause</tt> parameter is set to <tt>OPERATION_NOT_PERMITTED</tt> .
--   For details and example IAM policies, see <a>Using IAM to Manage
--   Access to Amazon SWF Workflows</a> in the <i>Amazon SWF Developer
--   Guide</i> .
--   
--   <i>See:</i> <a>completeWorkflowExecutionDecisionAttributes</a> smart
--   constructor.
data CompleteWorkflowExecutionDecisionAttributes

-- | Creates a value of <a>CompleteWorkflowExecutionDecisionAttributes</a>
--   with the minimum fields required to make a request.
--   
--   Use one of the following lenses to modify other fields as desired:
--   
--   <ul>
--   <li><a>cwedaResult</a> - The result of the workflow execution. The
--   form of the result is implementation defined.</li>
--   </ul>
completeWorkflowExecutionDecisionAttributes :: CompleteWorkflowExecutionDecisionAttributes

-- | The result of the workflow execution. The form of the result is
--   implementation defined.
cwedaResult :: Lens' CompleteWorkflowExecutionDecisionAttributes (Maybe Text)

-- | Provides the details of the <tt>CompleteWorkflowExecutionFailed</tt>
--   event.
--   
--   <i>See:</i> <a>completeWorkflowExecutionFailedEventAttributes</a>
--   smart constructor.
data CompleteWorkflowExecutionFailedEventAttributes

-- | Creates a value of
--   <a>CompleteWorkflowExecutionFailedEventAttributes</a> with the minimum
--   fields required to make a request.
--   
--   Use one of the following lenses to modify other fields as desired:
--   
--   <ul>
--   <li><a>cwefeaCause</a> - The cause of the failure. This information is
--   generated by the system and can be useful for diagnostic
--   purposes.</li>
--   <li><a>cwefeaDecisionTaskCompletedEventId</a> - The ID of the
--   <tt>DecisionTaskCompleted</tt> event corresponding to the decision
--   task that resulted in the <tt>CompleteWorkflowExecution</tt> decision
--   to complete this execution. This information can be useful for
--   diagnosing problems by tracing back the chain of events leading up to
--   this event.</li>
--   </ul>
completeWorkflowExecutionFailedEventAttributes :: CompleteWorkflowExecutionFailedCause -> Integer -> CompleteWorkflowExecutionFailedEventAttributes

-- | The cause of the failure. This information is generated by the system
--   and can be useful for diagnostic purposes.
cwefeaCause :: Lens' CompleteWorkflowExecutionFailedEventAttributes CompleteWorkflowExecutionFailedCause

-- | The ID of the <tt>DecisionTaskCompleted</tt> event corresponding to
--   the decision task that resulted in the
--   <tt>CompleteWorkflowExecution</tt> decision to complete this
--   execution. This information can be useful for diagnosing problems by
--   tracing back the chain of events leading up to this event.
cwefeaDecisionTaskCompletedEventId :: Lens' CompleteWorkflowExecutionFailedEventAttributes Integer

-- | Provides the details of the <tt>ContinueAsNewWorkflowExecution</tt>
--   decision.
--   
--   <b>Access Control</b>
--   
--   You can use IAM policies to control this decision's access to Amazon
--   SWF resources as follows:
--   
--   <ul>
--   <li>Use a <tt>Resource</tt> element with the domain name to limit the
--   action to only specified domains.</li>
--   <li>Use an <tt>Action</tt> element to allow or deny permission to call
--   this action.</li>
--   <li>Constrain the following parameters by using a <tt>Condition</tt>
--   element with the appropriate keys.</li>
--   <li><tt>tag</tt> – A tag used to identify the workflow execution</li>
--   <li><tt>taskList</tt> – String constraint. The key is
--   <tt>swf:taskList.name</tt> .</li>
--   <li><tt>workflowType.version</tt> – String constraint. The key is
--   <tt>swf:workflowType.version</tt> .</li>
--   </ul>
--   
--   If the caller doesn't have sufficient permissions to invoke the
--   action, or the parameter values fall outside the specified
--   constraints, the action fails. The associated event attribute's
--   <tt>cause</tt> parameter is set to <tt>OPERATION_NOT_PERMITTED</tt> .
--   For details and example IAM policies, see <a>Using IAM to Manage
--   Access to Amazon SWF Workflows</a> in the <i>Amazon SWF Developer
--   Guide</i> .
--   
--   <i>See:</i> <a>continueAsNewWorkflowExecutionDecisionAttributes</a>
--   smart constructor.
data ContinueAsNewWorkflowExecutionDecisionAttributes

-- | Creates a value of
--   <a>ContinueAsNewWorkflowExecutionDecisionAttributes</a> with the
--   minimum fields required to make a request.
--   
--   Use one of the following lenses to modify other fields as desired:
--   
--   <ul>
--   <li><a>canwedaTagList</a> - The list of tags to associate with the new
--   workflow execution. A maximum of 5 tags can be specified. You can list
--   workflow executions with a specific tag by calling
--   <tt>ListOpenWorkflowExecutions</tt> or
--   <tt>ListClosedWorkflowExecutions</tt> and specifying a
--   <a>TagFilter</a> .</li>
--   <li><a>canwedaTaskStartToCloseTimeout</a> - Specifies the maximum
--   duration of decision tasks for the new workflow execution. This
--   parameter overrides the <tt>defaultTaskStartToCloseTimout</tt>
--   specified when registering the workflow type using
--   <tt>RegisterWorkflowType</tt> . The duration is specified in seconds,
--   an integer greater than or equal to <tt>0</tt> . You can use
--   <tt>NONE</tt> to specify unlimited duration.</li>
--   <li><a>canwedaLambdaRole</a> - The IAM role to attach to the new
--   (continued) execution.</li>
--   <li><a>canwedaInput</a> - The input provided to the new workflow
--   execution.</li>
--   <li><a>canwedaWorkflowTypeVersion</a> - The version of the workflow to
--   start.</li>
--   <li><a>canwedaExecutionStartToCloseTimeout</a> - If set, specifies the
--   total duration for this workflow execution. This overrides the
--   <tt>defaultExecutionStartToCloseTimeout</tt> specified when
--   registering the workflow type. The duration is specified in seconds,
--   an integer greater than or equal to <tt>0</tt> . You can use
--   <tt>NONE</tt> to specify unlimited duration.</li>
--   <li><a>canwedaTaskList</a> - The task list to use for the decisions of
--   the new (continued) workflow execution.</li>
--   <li><a>canwedaTaskPriority</a> - The task priority that, if set,
--   specifies the priority for the decision tasks for this workflow
--   execution. This overrides the defaultTaskPriority specified when
--   registering the workflow type. Valid values are integers that range
--   from Java's <tt>Integer.MIN_VALUE</tt> (-2147483648) to
--   <tt>Integer.MAX_VALUE</tt> (2147483647). Higher numbers indicate
--   higher priority. For more information about setting task priority, see
--   <a>Setting Task Priority</a> in the <i>Amazon SWF Developer Guide</i>
--   .</li>
--   <li><a>canwedaChildPolicy</a> - If set, specifies the policy to use
--   for the child workflow executions of the new execution if it is
--   terminated by calling the <tt>TerminateWorkflowExecution</tt> action
--   explicitly or due to an expired timeout. This policy overrides the
--   default child policy specified when registering the workflow type
--   using <tt>RegisterWorkflowType</tt> . The supported child policies
--   are: * <tt>TERMINATE</tt> – The child executions are terminated. *
--   <tt>REQUEST_CANCEL</tt> – A request to cancel is attempted for each
--   child execution by recording a
--   <tt>WorkflowExecutionCancelRequested</tt> event in its history. It is
--   up to the decider to take appropriate actions when it receives an
--   execution history with this event. * <tt>ABANDON</tt> – No action is
--   taken. The child executions continue to run.</li>
--   </ul>
continueAsNewWorkflowExecutionDecisionAttributes :: ContinueAsNewWorkflowExecutionDecisionAttributes

-- | The list of tags to associate with the new workflow execution. A
--   maximum of 5 tags can be specified. You can list workflow executions
--   with a specific tag by calling <tt>ListOpenWorkflowExecutions</tt> or
--   <tt>ListClosedWorkflowExecutions</tt> and specifying a
--   <a>TagFilter</a> .
canwedaTagList :: Lens' ContinueAsNewWorkflowExecutionDecisionAttributes [Text]

-- | Specifies the maximum duration of decision tasks for the new workflow
--   execution. This parameter overrides the
--   <tt>defaultTaskStartToCloseTimout</tt> specified when registering the
--   workflow type using <tt>RegisterWorkflowType</tt> . The duration is
--   specified in seconds, an integer greater than or equal to <tt>0</tt> .
--   You can use <tt>NONE</tt> to specify unlimited duration.
canwedaTaskStartToCloseTimeout :: Lens' ContinueAsNewWorkflowExecutionDecisionAttributes (Maybe Text)

-- | The IAM role to attach to the new (continued) execution.
canwedaLambdaRole :: Lens' ContinueAsNewWorkflowExecutionDecisionAttributes (Maybe Text)

-- | The input provided to the new workflow execution.
canwedaInput :: Lens' ContinueAsNewWorkflowExecutionDecisionAttributes (Maybe Text)

-- | The version of the workflow to start.
canwedaWorkflowTypeVersion :: Lens' ContinueAsNewWorkflowExecutionDecisionAttributes (Maybe Text)

-- | If set, specifies the total duration for this workflow execution. This
--   overrides the <tt>defaultExecutionStartToCloseTimeout</tt> specified
--   when registering the workflow type. The duration is specified in
--   seconds, an integer greater than or equal to <tt>0</tt> . You can use
--   <tt>NONE</tt> to specify unlimited duration.
canwedaExecutionStartToCloseTimeout :: Lens' ContinueAsNewWorkflowExecutionDecisionAttributes (Maybe Text)

-- | The task list to use for the decisions of the new (continued) workflow
--   execution.
canwedaTaskList :: Lens' ContinueAsNewWorkflowExecutionDecisionAttributes (Maybe TaskList)

-- | The task priority that, if set, specifies the priority for the
--   decision tasks for this workflow execution. This overrides the
--   defaultTaskPriority specified when registering the workflow type.
--   Valid values are integers that range from Java's
--   <tt>Integer.MIN_VALUE</tt> (-2147483648) to <tt>Integer.MAX_VALUE</tt>
--   (2147483647). Higher numbers indicate higher priority. For more
--   information about setting task priority, see <a>Setting Task
--   Priority</a> in the <i>Amazon SWF Developer Guide</i> .
canwedaTaskPriority :: Lens' ContinueAsNewWorkflowExecutionDecisionAttributes (Maybe Text)

-- | If set, specifies the policy to use for the child workflow executions
--   of the new execution if it is terminated by calling the
--   <tt>TerminateWorkflowExecution</tt> action explicitly or due to an
--   expired timeout. This policy overrides the default child policy
--   specified when registering the workflow type using
--   <tt>RegisterWorkflowType</tt> . The supported child policies are: *
--   <tt>TERMINATE</tt> – The child executions are terminated. *
--   <tt>REQUEST_CANCEL</tt> – A request to cancel is attempted for each
--   child execution by recording a
--   <tt>WorkflowExecutionCancelRequested</tt> event in its history. It is
--   up to the decider to take appropriate actions when it receives an
--   execution history with this event. * <tt>ABANDON</tt> – No action is
--   taken. The child executions continue to run.
canwedaChildPolicy :: Lens' ContinueAsNewWorkflowExecutionDecisionAttributes (Maybe ChildPolicy)

-- | Provides the details of the
--   <tt>ContinueAsNewWorkflowExecutionFailed</tt> event.
--   
--   <i>See:</i> <a>continueAsNewWorkflowExecutionFailedEventAttributes</a>
--   smart constructor.
data ContinueAsNewWorkflowExecutionFailedEventAttributes

-- | Creates a value of
--   <a>ContinueAsNewWorkflowExecutionFailedEventAttributes</a> with the
--   minimum fields required to make a request.
--   
--   Use one of the following lenses to modify other fields as desired:
--   
--   <ul>
--   <li><a>canwefeaCause</a> - The cause of the failure. This information
--   is generated by the system and can be useful for diagnostic
--   purposes.</li>
--   <li><a>canwefeaDecisionTaskCompletedEventId</a> - The ID of the
--   <tt>DecisionTaskCompleted</tt> event corresponding to the decision
--   task that resulted in the <tt>ContinueAsNewWorkflowExecution</tt>
--   decision that started this execution. This information can be useful
--   for diagnosing problems by tracing back the chain of events leading up
--   to this event.</li>
--   </ul>
continueAsNewWorkflowExecutionFailedEventAttributes :: ContinueAsNewWorkflowExecutionFailedCause -> Integer -> ContinueAsNewWorkflowExecutionFailedEventAttributes

-- | The cause of the failure. This information is generated by the system
--   and can be useful for diagnostic purposes.
canwefeaCause :: Lens' ContinueAsNewWorkflowExecutionFailedEventAttributes ContinueAsNewWorkflowExecutionFailedCause

-- | The ID of the <tt>DecisionTaskCompleted</tt> event corresponding to
--   the decision task that resulted in the
--   <tt>ContinueAsNewWorkflowExecution</tt> decision that started this
--   execution. This information can be useful for diagnosing problems by
--   tracing back the chain of events leading up to this event.
canwefeaDecisionTaskCompletedEventId :: Lens' ContinueAsNewWorkflowExecutionFailedEventAttributes Integer

-- | Specifies a decision made by the decider. A decision can be one of
--   these types:
--   
--   <ul>
--   <li><tt>CancelTimer</tt> – Cancels a previously started timer and
--   records a <tt>TimerCanceled</tt> event in the history.</li>
--   <li><tt>CancelWorkflowExecution</tt> – Closes the workflow execution
--   and records a <tt>WorkflowExecutionCanceled</tt> event in the
--   history.</li>
--   <li><tt>CompleteWorkflowExecution</tt> – Closes the workflow execution
--   and records a <tt>WorkflowExecutionCompleted</tt> event in the history
--   .</li>
--   <li><tt>ContinueAsNewWorkflowExecution</tt> – Closes the workflow
--   execution and starts a new workflow execution of the same type using
--   the same workflow ID and a unique run Id. A
--   <tt>WorkflowExecutionContinuedAsNew</tt> event is recorded in the
--   history.</li>
--   <li><tt>FailWorkflowExecution</tt> – Closes the workflow execution and
--   records a <tt>WorkflowExecutionFailed</tt> event in the history.</li>
--   <li><tt>RecordMarker</tt> – Records a <tt>MarkerRecorded</tt> event in
--   the history. Markers can be used for adding custom information in the
--   history for instance to let deciders know that they don't need to look
--   at the history beyond the marker event.</li>
--   <li><tt>RequestCancelActivityTask</tt> – Attempts to cancel a
--   previously scheduled activity task. If the activity task was scheduled
--   but has not been assigned to a worker, then it is canceled. If the
--   activity task was already assigned to a worker, then the worker is
--   informed that cancellation has been requested in the response to
--   <tt>RecordActivityTaskHeartbeat</tt> .</li>
--   <li><tt>RequestCancelExternalWorkflowExecution</tt> – Requests that a
--   request be made to cancel the specified external workflow execution
--   and records a <tt>RequestCancelExternalWorkflowExecutionInitiated</tt>
--   event in the history.</li>
--   <li><tt>ScheduleActivityTask</tt> – Schedules an activity task.</li>
--   <li><tt>SignalExternalWorkflowExecution</tt> – Requests a signal to be
--   delivered to the specified external workflow execution and records a
--   <tt>SignalExternalWorkflowExecutionInitiated</tt> event in the
--   history.</li>
--   <li><tt>StartChildWorkflowExecution</tt> – Requests that a child
--   workflow execution be started and records a
--   <tt>StartChildWorkflowExecutionInitiated</tt> event in the history.
--   The child workflow execution is a separate workflow execution with its
--   own history.</li>
--   <li><tt>StartTimer</tt> – Starts a timer for this workflow execution
--   and records a <tt>TimerStarted</tt> event in the history. This timer
--   fires after the specified delay and record a <tt>TimerFired</tt>
--   event.</li>
--   </ul>
--   
--   <b>Access Control</b>
--   
--   If you grant permission to use <tt>RespondDecisionTaskCompleted</tt> ,
--   you can use IAM policies to express permissions for the list of
--   decisions returned by this action as if they were members of the API.
--   Treating decisions as a pseudo API maintains a uniform conceptual
--   model and helps keep policies readable. For details and example IAM
--   policies, see <a>Using IAM to Manage Access to Amazon SWF
--   Workflows</a> in the <i>Amazon SWF Developer Guide</i> .
--   
--   <b>Decision Failure</b>
--   
--   Decisions can fail for several reasons
--   
--   <ul>
--   <li>The ordering of decisions should follow a logical flow. Some
--   decisions might not make sense in the current context of the workflow
--   execution and therefore fails.</li>
--   <li>A limit on your account was reached.</li>
--   <li>The decision lacks sufficient permissions.</li>
--   </ul>
--   
--   One of the following events might be added to the history to indicate
--   an error. The event attribute's <tt>cause</tt> parameter indicates the
--   cause. If <tt>cause</tt> is set to <tt>OPERATION_NOT_PERMITTED</tt> ,
--   the decision failed because it lacked sufficient permissions. For
--   details and example IAM policies, see <a>Using IAM to Manage Access to
--   Amazon SWF Workflows</a> in the <i>Amazon SWF Developer Guide</i> .
--   
--   <ul>
--   <li><tt>ScheduleActivityTaskFailed</tt> – A
--   <tt>ScheduleActivityTask</tt> decision failed. This could happen if
--   the activity type specified in the decision isn't registered, is in a
--   deprecated state, or the decision isn't properly configured.</li>
--   <li><tt>RequestCancelActivityTaskFailed</tt> – A
--   <tt>RequestCancelActivityTask</tt> decision failed. This could happen
--   if there is no open activity task with the specified activityId.</li>
--   <li><tt>StartTimerFailed</tt> – A <tt>StartTimer</tt> decision failed.
--   This could happen if there is another open timer with the same
--   timerId.</li>
--   <li><tt>CancelTimerFailed</tt> – A <tt>CancelTimer</tt> decision
--   failed. This could happen if there is no open timer with the specified
--   timerId.</li>
--   <li><tt>StartChildWorkflowExecutionFailed</tt> – A
--   <tt>StartChildWorkflowExecution</tt> decision failed. This could
--   happen if the workflow type specified isn't registered, is deprecated,
--   or the decision isn't properly configured.</li>
--   <li><tt>SignalExternalWorkflowExecutionFailed</tt> – A
--   <tt>SignalExternalWorkflowExecution</tt> decision failed. This could
--   happen if the <tt>workflowID</tt> specified in the decision was
--   incorrect.</li>
--   <li><tt>RequestCancelExternalWorkflowExecutionFailed</tt> – A
--   <tt>RequestCancelExternalWorkflowExecution</tt> decision failed. This
--   could happen if the <tt>workflowID</tt> specified in the decision was
--   incorrect.</li>
--   <li><tt>CancelWorkflowExecutionFailed</tt> – A
--   <tt>CancelWorkflowExecution</tt> decision failed. This could happen if
--   there is an unhandled decision task pending in the workflow
--   execution.</li>
--   <li><tt>CompleteWorkflowExecutionFailed</tt> – A
--   <tt>CompleteWorkflowExecution</tt> decision failed. This could happen
--   if there is an unhandled decision task pending in the workflow
--   execution.</li>
--   <li><tt>ContinueAsNewWorkflowExecutionFailed</tt> – A
--   <tt>ContinueAsNewWorkflowExecution</tt> decision failed. This could
--   happen if there is an unhandled decision task pending in the workflow
--   execution or the ContinueAsNewWorkflowExecution decision was not
--   configured correctly.</li>
--   <li><tt>FailWorkflowExecutionFailed</tt> – A
--   <tt>FailWorkflowExecution</tt> decision failed. This could happen if
--   there is an unhandled decision task pending in the workflow
--   execution.</li>
--   </ul>
--   
--   The preceding error events might occur due to an error in the decider
--   logic, which might put the workflow execution in an unstable state The
--   cause field in the event structure for the error event indicates the
--   cause of the error.
--   
--   <b>How to Code a Decision</b>
--   
--   You code a decision by first setting the decision type field to one of
--   the above decision values, and then set the corresponding attributes
--   field shown below:
--   
--   <ul>
--   <li><pre><a>ScheduleActivityTaskDecisionAttributes</a></pre></li>
--   <li><pre><a>RequestCancelActivityTaskDecisionAttributes</a></pre></li>
--   <li><pre><a>CompleteWorkflowExecutionDecisionAttributes</a></pre></li>
--   <li><pre><a>FailWorkflowExecutionDecisionAttributes</a></pre></li>
--   <li><pre><a>CancelWorkflowExecutionDecisionAttributes</a></pre></li>
--   
--   <li><pre><a>ContinueAsNewWorkflowExecutionDecisionAttributes</a></pre></li>
--   <li><pre><a>RecordMarkerDecisionAttributes</a></pre></li>
--   <li><pre><a>StartTimerDecisionAttributes</a></pre></li>
--   <li><pre><a>CancelTimerDecisionAttributes</a></pre></li>
--   
--   <li><pre><a>SignalExternalWorkflowExecutionDecisionAttributes</a></pre></li>
--   
--   <li><pre><a>RequestCancelExternalWorkflowExecutionDecisionAttributes</a></pre></li>
--   
--   <li><pre><a>StartChildWorkflowExecutionDecisionAttributes</a></pre></li>
--   </ul>
--   
--   <i>See:</i> <a>decision</a> smart constructor.
data Decision

-- | Creates a value of <a>Decision</a> with the minimum fields required to
--   make a request.
--   
--   Use one of the following lenses to modify other fields as desired:
--   
--   <ul>
--   <li><a>dRequestCancelExternalWorkflowExecutionDecisionAttributes</a> -
--   Provides the details of the
--   <tt>RequestCancelExternalWorkflowExecution</tt> decision. It isn't set
--   for other decision types.</li>
--   <li><a>dScheduleActivityTaskDecisionAttributes</a> - Provides the
--   details of the <tt>ScheduleActivityTask</tt> decision. It isn't set
--   for other decision types.</li>
--   <li><a>dSignalExternalWorkflowExecutionDecisionAttributes</a> -
--   Provides the details of the <tt>SignalExternalWorkflowExecution</tt>
--   decision. It isn't set for other decision types.</li>
--   <li><a>dStartTimerDecisionAttributes</a> - Provides the details of the
--   <tt>StartTimer</tt> decision. It isn't set for other decision
--   types.</li>
--   <li><a>dRecordMarkerDecisionAttributes</a> - Provides the details of
--   the <tt>RecordMarker</tt> decision. It isn't set for other decision
--   types.</li>
--   <li><a>dFailWorkflowExecutionDecisionAttributes</a> - Provides the
--   details of the <tt>FailWorkflowExecution</tt> decision. It isn't set
--   for other decision types.</li>
--   <li><a>dStartChildWorkflowExecutionDecisionAttributes</a> - Provides
--   the details of the <tt>StartChildWorkflowExecution</tt> decision. It
--   isn't set for other decision types.</li>
--   <li><a>dCompleteWorkflowExecutionDecisionAttributes</a> - Provides the
--   details of the <tt>CompleteWorkflowExecution</tt> decision. It isn't
--   set for other decision types.</li>
--   <li><a>dScheduleLambdaFunctionDecisionAttributes</a> - Provides the
--   details of the <tt>ScheduleLambdaFunction</tt> decision. It isn't set
--   for other decision types.</li>
--   <li><a>dRequestCancelActivityTaskDecisionAttributes</a> - Provides the
--   details of the <tt>RequestCancelActivityTask</tt> decision. It isn't
--   set for other decision types.</li>
--   <li><a>dCancelWorkflowExecutionDecisionAttributes</a> - Provides the
--   details of the <tt>CancelWorkflowExecution</tt> decision. It isn't set
--   for other decision types.</li>
--   <li><a>dCancelTimerDecisionAttributes</a> - Provides the details of
--   the <tt>CancelTimer</tt> decision. It isn't set for other decision
--   types.</li>
--   <li><a>dContinueAsNewWorkflowExecutionDecisionAttributes</a> -
--   Provides the details of the <tt>ContinueAsNewWorkflowExecution</tt>
--   decision. It isn't set for other decision types.</li>
--   <li><a>dDecisionType</a> - Specifies the type of the decision.</li>
--   </ul>
decision :: DecisionType -> Decision

-- | Provides the details of the
--   <tt>RequestCancelExternalWorkflowExecution</tt> decision. It isn't set
--   for other decision types.
dRequestCancelExternalWorkflowExecutionDecisionAttributes :: Lens' Decision (Maybe RequestCancelExternalWorkflowExecutionDecisionAttributes)

-- | Provides the details of the <tt>ScheduleActivityTask</tt> decision. It
--   isn't set for other decision types.
dScheduleActivityTaskDecisionAttributes :: Lens' Decision (Maybe ScheduleActivityTaskDecisionAttributes)

-- | Provides the details of the <tt>SignalExternalWorkflowExecution</tt>
--   decision. It isn't set for other decision types.
dSignalExternalWorkflowExecutionDecisionAttributes :: Lens' Decision (Maybe SignalExternalWorkflowExecutionDecisionAttributes)

-- | Provides the details of the <tt>StartTimer</tt> decision. It isn't set
--   for other decision types.
dStartTimerDecisionAttributes :: Lens' Decision (Maybe StartTimerDecisionAttributes)

-- | Provides the details of the <tt>RecordMarker</tt> decision. It isn't
--   set for other decision types.
dRecordMarkerDecisionAttributes :: Lens' Decision (Maybe RecordMarkerDecisionAttributes)

-- | Provides the details of the <tt>FailWorkflowExecution</tt> decision.
--   It isn't set for other decision types.
dFailWorkflowExecutionDecisionAttributes :: Lens' Decision (Maybe FailWorkflowExecutionDecisionAttributes)

-- | Provides the details of the <tt>StartChildWorkflowExecution</tt>
--   decision. It isn't set for other decision types.
dStartChildWorkflowExecutionDecisionAttributes :: Lens' Decision (Maybe StartChildWorkflowExecutionDecisionAttributes)

-- | Provides the details of the <tt>CompleteWorkflowExecution</tt>
--   decision. It isn't set for other decision types.
dCompleteWorkflowExecutionDecisionAttributes :: Lens' Decision (Maybe CompleteWorkflowExecutionDecisionAttributes)

-- | Provides the details of the <tt>ScheduleLambdaFunction</tt> decision.
--   It isn't set for other decision types.
dScheduleLambdaFunctionDecisionAttributes :: Lens' Decision (Maybe ScheduleLambdaFunctionDecisionAttributes)

-- | Provides the details of the <tt>RequestCancelActivityTask</tt>
--   decision. It isn't set for other decision types.
dRequestCancelActivityTaskDecisionAttributes :: Lens' Decision (Maybe RequestCancelActivityTaskDecisionAttributes)

-- | Provides the details of the <tt>CancelWorkflowExecution</tt> decision.
--   It isn't set for other decision types.
dCancelWorkflowExecutionDecisionAttributes :: Lens' Decision (Maybe CancelWorkflowExecutionDecisionAttributes)

-- | Provides the details of the <tt>CancelTimer</tt> decision. It isn't
--   set for other decision types.
dCancelTimerDecisionAttributes :: Lens' Decision (Maybe CancelTimerDecisionAttributes)

-- | Provides the details of the <tt>ContinueAsNewWorkflowExecution</tt>
--   decision. It isn't set for other decision types.
dContinueAsNewWorkflowExecutionDecisionAttributes :: Lens' Decision (Maybe ContinueAsNewWorkflowExecutionDecisionAttributes)

-- | Specifies the type of the decision.
dDecisionType :: Lens' Decision DecisionType

-- | Provides the details of the <tt>DecisionTaskCompleted</tt> event.
--   
--   <i>See:</i> <a>decisionTaskCompletedEventAttributes</a> smart
--   constructor.
data DecisionTaskCompletedEventAttributes

-- | Creates a value of <a>DecisionTaskCompletedEventAttributes</a> with
--   the minimum fields required to make a request.
--   
--   Use one of the following lenses to modify other fields as desired:
--   
--   <ul>
--   <li><a>dtceaExecutionContext</a> - User defined context for the
--   workflow execution.</li>
--   <li><a>dtceaScheduledEventId</a> - The ID of the
--   <tt>DecisionTaskScheduled</tt> event that was recorded when this
--   decision task was scheduled. This information can be useful for
--   diagnosing problems by tracing back the chain of events leading up to
--   this event.</li>
--   <li><a>dtceaStartedEventId</a> - The ID of the
--   <tt>DecisionTaskStarted</tt> event recorded when this decision task
--   was started. This information can be useful for diagnosing problems by
--   tracing back the chain of events leading up to this event.</li>
--   </ul>
decisionTaskCompletedEventAttributes :: Integer -> Integer -> DecisionTaskCompletedEventAttributes

-- | User defined context for the workflow execution.
dtceaExecutionContext :: Lens' DecisionTaskCompletedEventAttributes (Maybe Text)

-- | The ID of the <tt>DecisionTaskScheduled</tt> event that was recorded
--   when this decision task was scheduled. This information can be useful
--   for diagnosing problems by tracing back the chain of events leading up
--   to this event.
dtceaScheduledEventId :: Lens' DecisionTaskCompletedEventAttributes Integer

-- | The ID of the <tt>DecisionTaskStarted</tt> event recorded when this
--   decision task was started. This information can be useful for
--   diagnosing problems by tracing back the chain of events leading up to
--   this event.
dtceaStartedEventId :: Lens' DecisionTaskCompletedEventAttributes Integer

-- | Provides details about the <tt>DecisionTaskScheduled</tt> event.
--   
--   <i>See:</i> <a>decisionTaskScheduledEventAttributes</a> smart
--   constructor.
data DecisionTaskScheduledEventAttributes

-- | Creates a value of <a>DecisionTaskScheduledEventAttributes</a> with
--   the minimum fields required to make a request.
--   
--   Use one of the following lenses to modify other fields as desired:
--   
--   <ul>
--   <li><a>dtseaTaskPriority</a> - A task priority that, if set, specifies
--   the priority for this decision task. Valid values are integers that
--   range from Java's <tt>Integer.MIN_VALUE</tt> (-2147483648) to
--   <tt>Integer.MAX_VALUE</tt> (2147483647). Higher numbers indicate
--   higher priority. For more information about setting task priority, see
--   <a>Setting Task Priority</a> in the <i>Amazon SWF Developer Guide</i>
--   .</li>
--   <li><a>dtseaStartToCloseTimeout</a> - The maximum duration for this
--   decision task. The task is considered timed out if it doesn't
--   completed within this duration. The duration is specified in seconds,
--   an integer greater than or equal to <tt>0</tt> . You can use
--   <tt>NONE</tt> to specify unlimited duration.</li>
--   <li><a>dtseaTaskList</a> - The name of the task list in which the
--   decision task was scheduled.</li>
--   </ul>
decisionTaskScheduledEventAttributes :: TaskList -> DecisionTaskScheduledEventAttributes

-- | A task priority that, if set, specifies the priority for this decision
--   task. Valid values are integers that range from Java's
--   <tt>Integer.MIN_VALUE</tt> (-2147483648) to <tt>Integer.MAX_VALUE</tt>
--   (2147483647). Higher numbers indicate higher priority. For more
--   information about setting task priority, see <a>Setting Task
--   Priority</a> in the <i>Amazon SWF Developer Guide</i> .
dtseaTaskPriority :: Lens' DecisionTaskScheduledEventAttributes (Maybe Text)

-- | The maximum duration for this decision task. The task is considered
--   timed out if it doesn't completed within this duration. The duration
--   is specified in seconds, an integer greater than or equal to
--   <tt>0</tt> . You can use <tt>NONE</tt> to specify unlimited duration.
dtseaStartToCloseTimeout :: Lens' DecisionTaskScheduledEventAttributes (Maybe Text)

-- | The name of the task list in which the decision task was scheduled.
dtseaTaskList :: Lens' DecisionTaskScheduledEventAttributes TaskList

-- | Provides the details of the <tt>DecisionTaskStarted</tt> event.
--   
--   <i>See:</i> <a>decisionTaskStartedEventAttributes</a> smart
--   constructor.
data DecisionTaskStartedEventAttributes

-- | Creates a value of <a>DecisionTaskStartedEventAttributes</a> with the
--   minimum fields required to make a request.
--   
--   Use one of the following lenses to modify other fields as desired:
--   
--   <ul>
--   <li><a>dtseaIdentity</a> - Identity of the decider making the request.
--   This enables diagnostic tracing when problems arise. The form of this
--   identity is user defined.</li>
--   <li><a>dtseaScheduledEventId</a> - The ID of the
--   <tt>DecisionTaskScheduled</tt> event that was recorded when this
--   decision task was scheduled. This information can be useful for
--   diagnosing problems by tracing back the chain of events leading up to
--   this event.</li>
--   </ul>
decisionTaskStartedEventAttributes :: Integer -> DecisionTaskStartedEventAttributes

-- | Identity of the decider making the request. This enables diagnostic
--   tracing when problems arise. The form of this identity is user
--   defined.
dtseaIdentity :: Lens' DecisionTaskStartedEventAttributes (Maybe Text)

-- | The ID of the <tt>DecisionTaskScheduled</tt> event that was recorded
--   when this decision task was scheduled. This information can be useful
--   for diagnosing problems by tracing back the chain of events leading up
--   to this event.
dtseaScheduledEventId :: Lens' DecisionTaskStartedEventAttributes Integer

-- | Provides the details of the <tt>DecisionTaskTimedOut</tt> event.
--   
--   <i>See:</i> <a>decisionTaskTimedOutEventAttributes</a> smart
--   constructor.
data DecisionTaskTimedOutEventAttributes

-- | Creates a value of <a>DecisionTaskTimedOutEventAttributes</a> with the
--   minimum fields required to make a request.
--   
--   Use one of the following lenses to modify other fields as desired:
--   
--   <ul>
--   <li><a>dttoeaTimeoutType</a> - The type of timeout that expired before
--   the decision task could be completed.</li>
--   <li><a>dttoeaScheduledEventId</a> - The ID of the
--   <tt>DecisionTaskScheduled</tt> event that was recorded when this
--   decision task was scheduled. This information can be useful for
--   diagnosing problems by tracing back the chain of events leading up to
--   this event.</li>
--   <li><a>dttoeaStartedEventId</a> - The ID of the
--   <tt>DecisionTaskStarted</tt> event recorded when this decision task
--   was started. This information can be useful for diagnosing problems by
--   tracing back the chain of events leading up to this event.</li>
--   </ul>
decisionTaskTimedOutEventAttributes :: DecisionTaskTimeoutType -> Integer -> Integer -> DecisionTaskTimedOutEventAttributes

-- | The type of timeout that expired before the decision task could be
--   completed.
dttoeaTimeoutType :: Lens' DecisionTaskTimedOutEventAttributes DecisionTaskTimeoutType

-- | The ID of the <tt>DecisionTaskScheduled</tt> event that was recorded
--   when this decision task was scheduled. This information can be useful
--   for diagnosing problems by tracing back the chain of events leading up
--   to this event.
dttoeaScheduledEventId :: Lens' DecisionTaskTimedOutEventAttributes Integer

-- | The ID of the <tt>DecisionTaskStarted</tt> event recorded when this
--   decision task was started. This information can be useful for
--   diagnosing problems by tracing back the chain of events leading up to
--   this event.
dttoeaStartedEventId :: Lens' DecisionTaskTimedOutEventAttributes Integer

-- | Contains the configuration settings of a domain.
--   
--   <i>See:</i> <a>domainConfiguration</a> smart constructor.
data DomainConfiguration

-- | Creates a value of <a>DomainConfiguration</a> with the minimum fields
--   required to make a request.
--   
--   Use one of the following lenses to modify other fields as desired:
--   
--   <ul>
--   <li><a>dcWorkflowExecutionRetentionPeriodInDays</a> - The retention
--   period for workflow executions in this domain.</li>
--   </ul>
domainConfiguration :: Text -> DomainConfiguration

-- | The retention period for workflow executions in this domain.
dcWorkflowExecutionRetentionPeriodInDays :: Lens' DomainConfiguration Text

-- | Contains general information about a domain.
--   
--   <i>See:</i> <a>domainInfo</a> smart constructor.
data DomainInfo

-- | Creates a value of <a>DomainInfo</a> with the minimum fields required
--   to make a request.
--   
--   Use one of the following lenses to modify other fields as desired:
--   
--   <ul>
--   <li><a>diDescription</a> - The description of the domain provided
--   through <tt>RegisterDomain</tt> .</li>
--   <li><a>diName</a> - The name of the domain. This name is unique within
--   the account.</li>
--   <li><a>diStatus</a> - The status of the domain: * <tt>REGISTERED</tt>
--   – The domain is properly registered and available. You can use this
--   domain for registering types and creating new workflow executions. *
--   <tt>DEPRECATED</tt> – The domain was deprecated using
--   <tt>DeprecateDomain</tt> , but is still in use. You should not create
--   new workflow executions in this domain.</li>
--   </ul>
domainInfo :: Text -> RegistrationStatus -> DomainInfo

-- | The description of the domain provided through <tt>RegisterDomain</tt>
--   .
diDescription :: Lens' DomainInfo (Maybe Text)

-- | The name of the domain. This name is unique within the account.
diName :: Lens' DomainInfo Text

-- | The status of the domain: * <tt>REGISTERED</tt> – The domain is
--   properly registered and available. You can use this domain for
--   registering types and creating new workflow executions. *
--   <tt>DEPRECATED</tt> – The domain was deprecated using
--   <tt>DeprecateDomain</tt> , but is still in use. You should not create
--   new workflow executions in this domain.
diStatus :: Lens' DomainInfo RegistrationStatus

-- | Used to filter the workflow executions in visibility APIs by various
--   time-based rules. Each parameter, if specified, defines a rule that
--   must be satisfied by each returned query result. The parameter values
--   are in the <a>Unix Time format</a> . For example: <tt>"oldestDate":
--   1325376070.</tt>
--   
--   <i>See:</i> <a>executionTimeFilter</a> smart constructor.
data ExecutionTimeFilter

-- | Creates a value of <a>ExecutionTimeFilter</a> with the minimum fields
--   required to make a request.
--   
--   Use one of the following lenses to modify other fields as desired:
--   
--   <ul>
--   <li><a>etfLatestDate</a> - Specifies the latest start or close date
--   and time to return.</li>
--   <li><a>etfOldestDate</a> - Specifies the oldest start or close date
--   and time to return.</li>
--   </ul>
executionTimeFilter :: UTCTime -> ExecutionTimeFilter

-- | Specifies the latest start or close date and time to return.
etfLatestDate :: Lens' ExecutionTimeFilter (Maybe UTCTime)

-- | Specifies the oldest start or close date and time to return.
etfOldestDate :: Lens' ExecutionTimeFilter UTCTime

-- | Provides the details of the
--   <tt>ExternalWorkflowExecutionCancelRequested</tt> event.
--   
--   <i>See:</i>
--   <a>externalWorkflowExecutionCancelRequestedEventAttributes</a> smart
--   constructor.
data ExternalWorkflowExecutionCancelRequestedEventAttributes

-- | Creates a value of
--   <a>ExternalWorkflowExecutionCancelRequestedEventAttributes</a> with
--   the minimum fields required to make a request.
--   
--   Use one of the following lenses to modify other fields as desired:
--   
--   <ul>
--   <li><a>ewecreaWorkflowExecution</a> - The external workflow execution
--   to which the cancellation request was delivered.</li>
--   <li><a>ewecreaInitiatedEventId</a> - The ID of the
--   <tt>RequestCancelExternalWorkflowExecutionInitiated</tt> event
--   corresponding to the <tt>RequestCancelExternalWorkflowExecution</tt>
--   decision to cancel this external workflow execution. This information
--   can be useful for diagnosing problems by tracing back the chain of
--   events leading up to this event.</li>
--   </ul>
externalWorkflowExecutionCancelRequestedEventAttributes :: WorkflowExecution -> Integer -> ExternalWorkflowExecutionCancelRequestedEventAttributes

-- | The external workflow execution to which the cancellation request was
--   delivered.
ewecreaWorkflowExecution :: Lens' ExternalWorkflowExecutionCancelRequestedEventAttributes WorkflowExecution

-- | The ID of the <tt>RequestCancelExternalWorkflowExecutionInitiated</tt>
--   event corresponding to the
--   <tt>RequestCancelExternalWorkflowExecution</tt> decision to cancel
--   this external workflow execution. This information can be useful for
--   diagnosing problems by tracing back the chain of events leading up to
--   this event.
ewecreaInitiatedEventId :: Lens' ExternalWorkflowExecutionCancelRequestedEventAttributes Integer

-- | Provides the details of the <tt>ExternalWorkflowExecutionSignaled</tt>
--   event.
--   
--   <i>See:</i> <a>externalWorkflowExecutionSignaledEventAttributes</a>
--   smart constructor.
data ExternalWorkflowExecutionSignaledEventAttributes

-- | Creates a value of
--   <a>ExternalWorkflowExecutionSignaledEventAttributes</a> with the
--   minimum fields required to make a request.
--   
--   Use one of the following lenses to modify other fields as desired:
--   
--   <ul>
--   <li><a>eweseaWorkflowExecution</a> - The external workflow execution
--   that the signal was delivered to.</li>
--   <li><a>eweseaInitiatedEventId</a> - The ID of the
--   <tt>SignalExternalWorkflowExecutionInitiated</tt> event corresponding
--   to the <tt>SignalExternalWorkflowExecution</tt> decision to request
--   this signal. This information can be useful for diagnosing problems by
--   tracing back the chain of events leading up to this event.</li>
--   </ul>
externalWorkflowExecutionSignaledEventAttributes :: WorkflowExecution -> Integer -> ExternalWorkflowExecutionSignaledEventAttributes

-- | The external workflow execution that the signal was delivered to.
eweseaWorkflowExecution :: Lens' ExternalWorkflowExecutionSignaledEventAttributes WorkflowExecution

-- | The ID of the <tt>SignalExternalWorkflowExecutionInitiated</tt> event
--   corresponding to the <tt>SignalExternalWorkflowExecution</tt> decision
--   to request this signal. This information can be useful for diagnosing
--   problems by tracing back the chain of events leading up to this event.
eweseaInitiatedEventId :: Lens' ExternalWorkflowExecutionSignaledEventAttributes Integer

-- | Provides the details of the <tt>FailWorkflowExecution</tt> decision.
--   
--   <b>Access Control</b>
--   
--   You can use IAM policies to control this decision's access to Amazon
--   SWF resources as follows:
--   
--   <ul>
--   <li>Use a <tt>Resource</tt> element with the domain name to limit the
--   action to only specified domains.</li>
--   <li>Use an <tt>Action</tt> element to allow or deny permission to call
--   this action.</li>
--   <li>You cannot use an IAM policy to constrain this action's
--   parameters.</li>
--   </ul>
--   
--   If the caller doesn't have sufficient permissions to invoke the
--   action, or the parameter values fall outside the specified
--   constraints, the action fails. The associated event attribute's
--   <tt>cause</tt> parameter is set to <tt>OPERATION_NOT_PERMITTED</tt> .
--   For details and example IAM policies, see <a>Using IAM to Manage
--   Access to Amazon SWF Workflows</a> in the <i>Amazon SWF Developer
--   Guide</i> .
--   
--   <i>See:</i> <a>failWorkflowExecutionDecisionAttributes</a> smart
--   constructor.
data FailWorkflowExecutionDecisionAttributes

-- | Creates a value of <a>FailWorkflowExecutionDecisionAttributes</a> with
--   the minimum fields required to make a request.
--   
--   Use one of the following lenses to modify other fields as desired:
--   
--   <ul>
--   <li><a>fwedaReason</a> - A descriptive reason for the failure that may
--   help in diagnostics.</li>
--   <li><a>fwedaDetails</a> - Details of the failure.</li>
--   </ul>
failWorkflowExecutionDecisionAttributes :: FailWorkflowExecutionDecisionAttributes

-- | A descriptive reason for the failure that may help in diagnostics.
fwedaReason :: Lens' FailWorkflowExecutionDecisionAttributes (Maybe Text)

-- | Details of the failure.
fwedaDetails :: Lens' FailWorkflowExecutionDecisionAttributes (Maybe Text)

-- | Provides the details of the <tt>FailWorkflowExecutionFailed</tt>
--   event.
--   
--   <i>See:</i> <a>failWorkflowExecutionFailedEventAttributes</a> smart
--   constructor.
data FailWorkflowExecutionFailedEventAttributes

-- | Creates a value of <a>FailWorkflowExecutionFailedEventAttributes</a>
--   with the minimum fields required to make a request.
--   
--   Use one of the following lenses to modify other fields as desired:
--   
--   <ul>
--   <li><a>fwefeaCause</a> - The cause of the failure. This information is
--   generated by the system and can be useful for diagnostic
--   purposes.</li>
--   <li><a>fwefeaDecisionTaskCompletedEventId</a> - The ID of the
--   <tt>DecisionTaskCompleted</tt> event corresponding to the decision
--   task that resulted in the <tt>FailWorkflowExecution</tt> decision to
--   fail this execution. This information can be useful for diagnosing
--   problems by tracing back the chain of events leading up to this
--   event.</li>
--   </ul>
failWorkflowExecutionFailedEventAttributes :: FailWorkflowExecutionFailedCause -> Integer -> FailWorkflowExecutionFailedEventAttributes

-- | The cause of the failure. This information is generated by the system
--   and can be useful for diagnostic purposes.
fwefeaCause :: Lens' FailWorkflowExecutionFailedEventAttributes FailWorkflowExecutionFailedCause

-- | The ID of the <tt>DecisionTaskCompleted</tt> event corresponding to
--   the decision task that resulted in the <tt>FailWorkflowExecution</tt>
--   decision to fail this execution. This information can be useful for
--   diagnosing problems by tracing back the chain of events leading up to
--   this event.
fwefeaDecisionTaskCompletedEventId :: Lens' FailWorkflowExecutionFailedEventAttributes Integer

-- | Event within a workflow execution. A history event can be one of these
--   types:
--   
--   <ul>
--   <li><tt>ActivityTaskCancelRequested</tt> – A
--   <tt>RequestCancelActivityTask</tt> decision was received by the
--   system.</li>
--   <li><tt>ActivityTaskCanceled</tt> – The activity task was successfully
--   canceled.</li>
--   <li><tt>ActivityTaskCompleted</tt> – An activity worker successfully
--   completed an activity task by calling
--   <tt>RespondActivityTaskCompleted</tt> .</li>
--   <li><tt>ActivityTaskFailed</tt> – An activity worker failed an
--   activity task by calling <tt>RespondActivityTaskFailed</tt> .</li>
--   <li><tt>ActivityTaskScheduled</tt> – An activity task was scheduled
--   for execution.</li>
--   <li><tt>ActivityTaskStarted</tt> – The scheduled activity task was
--   dispatched to a worker.</li>
--   <li><tt>ActivityTaskTimedOut</tt> – The activity task timed out.</li>
--   <li><tt>CancelTimerFailed</tt> – Failed to process CancelTimer
--   decision. This happens when the decision isn't configured properly,
--   for example no timer exists with the specified timer Id.</li>
--   <li><tt>CancelWorkflowExecutionFailed</tt> – A request to cancel a
--   workflow execution failed.</li>
--   <li><tt>ChildWorkflowExecutionCanceled</tt> – A child workflow
--   execution, started by this workflow execution, was canceled and
--   closed.</li>
--   <li><tt>ChildWorkflowExecutionCompleted</tt> – A child workflow
--   execution, started by this workflow execution, completed successfully
--   and was closed.</li>
--   <li><tt>ChildWorkflowExecutionFailed</tt> – A child workflow
--   execution, started by this workflow execution, failed to complete
--   successfully and was closed.</li>
--   <li><tt>ChildWorkflowExecutionStarted</tt> – A child workflow
--   execution was successfully started.</li>
--   <li><tt>ChildWorkflowExecutionTerminated</tt> – A child workflow
--   execution, started by this workflow execution, was terminated.</li>
--   <li><tt>ChildWorkflowExecutionTimedOut</tt> – A child workflow
--   execution, started by this workflow execution, timed out and was
--   closed.</li>
--   <li><tt>CompleteWorkflowExecutionFailed</tt> – The workflow execution
--   failed to complete.</li>
--   <li><tt>ContinueAsNewWorkflowExecutionFailed</tt> – The workflow
--   execution failed to complete after being continued as a new workflow
--   execution.</li>
--   <li><tt>DecisionTaskCompleted</tt> – The decider successfully
--   completed a decision task by calling
--   <tt>RespondDecisionTaskCompleted</tt> .</li>
--   <li><tt>DecisionTaskScheduled</tt> – A decision task was scheduled for
--   the workflow execution.</li>
--   <li><tt>DecisionTaskStarted</tt> – The decision task was dispatched to
--   a decider.</li>
--   <li><tt>DecisionTaskTimedOut</tt> – The decision task timed out.</li>
--   <li><tt>ExternalWorkflowExecutionCancelRequested</tt> – Request to
--   cancel an external workflow execution was successfully delivered to
--   the target execution.</li>
--   <li><tt>ExternalWorkflowExecutionSignaled</tt> – A signal, requested
--   by this workflow execution, was successfully delivered to the target
--   external workflow execution.</li>
--   <li><tt>FailWorkflowExecutionFailed</tt> – A request to mark a
--   workflow execution as failed, itself failed.</li>
--   <li><tt>MarkerRecorded</tt> – A marker was recorded in the workflow
--   history as the result of a <tt>RecordMarker</tt> decision.</li>
--   <li><tt>RecordMarkerFailed</tt> – A <tt>RecordMarker</tt> decision was
--   returned as failed.</li>
--   <li><tt>RequestCancelActivityTaskFailed</tt> – Failed to process
--   RequestCancelActivityTask decision. This happens when the decision
--   isn't configured properly.</li>
--   <li><tt>RequestCancelExternalWorkflowExecutionFailed</tt> – Request to
--   cancel an external workflow execution failed.</li>
--   <li><tt>RequestCancelExternalWorkflowExecutionInitiated</tt> – A
--   request was made to request the cancellation of an external workflow
--   execution.</li>
--   <li><tt>ScheduleActivityTaskFailed</tt> – Failed to process
--   ScheduleActivityTask decision. This happens when the decision isn't
--   configured properly, for example the activity type specified isn't
--   registered.</li>
--   <li><tt>SignalExternalWorkflowExecutionFailed</tt> – The request to
--   signal an external workflow execution failed.</li>
--   <li><tt>SignalExternalWorkflowExecutionInitiated</tt> – A request to
--   signal an external workflow was made.</li>
--   <li><tt>StartActivityTaskFailed</tt> – A scheduled activity task
--   failed to start.</li>
--   <li><tt>StartChildWorkflowExecutionFailed</tt> – Failed to process
--   StartChildWorkflowExecution decision. This happens when the decision
--   isn't configured properly, for example the workflow type specified
--   isn't registered.</li>
--   <li><tt>StartChildWorkflowExecutionInitiated</tt> – A request was made
--   to start a child workflow execution.</li>
--   <li><tt>StartTimerFailed</tt> – Failed to process StartTimer decision.
--   This happens when the decision isn't configured properly, for example
--   a timer already exists with the specified timer Id.</li>
--   <li><tt>TimerCanceled</tt> – A timer, previously started for this
--   workflow execution, was successfully canceled.</li>
--   <li><tt>TimerFired</tt> – A timer, previously started for this
--   workflow execution, fired.</li>
--   <li><tt>TimerStarted</tt> – A timer was started for the workflow
--   execution due to a <tt>StartTimer</tt> decision.</li>
--   <li><tt>WorkflowExecutionCancelRequested</tt> – A request to cancel
--   this workflow execution was made.</li>
--   <li><tt>WorkflowExecutionCanceled</tt> – The workflow execution was
--   successfully canceled and closed.</li>
--   <li><tt>WorkflowExecutionCompleted</tt> – The workflow execution was
--   closed due to successful completion.</li>
--   <li><tt>WorkflowExecutionContinuedAsNew</tt> – The workflow execution
--   was closed and a new execution of the same type was created with the
--   same workflowId.</li>
--   <li><tt>WorkflowExecutionFailed</tt> – The workflow execution closed
--   due to a failure.</li>
--   <li><tt>WorkflowExecutionSignaled</tt> – An external signal was
--   received for the workflow execution.</li>
--   <li><tt>WorkflowExecutionStarted</tt> – The workflow execution was
--   started.</li>
--   <li><tt>WorkflowExecutionTerminated</tt> – The workflow execution was
--   terminated.</li>
--   <li><tt>WorkflowExecutionTimedOut</tt> – The workflow execution was
--   closed because a time out was exceeded.</li>
--   </ul>
--   
--   <i>See:</i> <a>historyEvent</a> smart constructor.
data HistoryEvent

-- | Creates a value of <a>HistoryEvent</a> with the minimum fields
--   required to make a request.
--   
--   Use one of the following lenses to modify other fields as desired:
--   
--   <ul>
--   <li><a>heWorkflowExecutionCancelRequestedEventAttributes</a> - If the
--   event is of type <tt>WorkflowExecutionCancelRequested</tt> then this
--   member is set and provides detailed information about the event. It
--   isn't set for other event types.</li>
--   <li><a>heRecordMarkerFailedEventAttributes</a> - If the event is of
--   type <tt>DecisionTaskFailed</tt> then this member is set and provides
--   detailed information about the event. It isn't set for other event
--   types.</li>
--   
--   <li><a>heRequestCancelExternalWorkflowExecutionInitiatedEventAttributes</a>
--   - If the event is of type
--   <tt>RequestCancelExternalWorkflowExecutionInitiated</tt> then this
--   member is set and provides detailed information about the event. It
--   isn't set for other event types.</li>
--   <li><a>heLambdaFunctionStartedEventAttributes</a> - Provides the
--   details of the <tt>LambdaFunctionStarted</tt> event. It isn't set for
--   other event types.</li>
--   <li><a>heDecisionTaskScheduledEventAttributes</a> - If the event is of
--   type <tt>DecisionTaskScheduled</tt> then this member is set and
--   provides detailed information about the event. It isn't set for other
--   event types.</li>
--   <li><a>heWorkflowExecutionCompletedEventAttributes</a> - If the event
--   is of type <tt>WorkflowExecutionCompleted</tt> then this member is set
--   and provides detailed information about the event. It isn't set for
--   other event types.</li>
--   <li><a>heStartTimerFailedEventAttributes</a> - If the event is of type
--   <tt>StartTimerFailed</tt> then this member is set and provides
--   detailed information about the event. It isn't set for other event
--   types.</li>
--   <li><a>heActivityTaskScheduledEventAttributes</a> - If the event is of
--   type <tt>ActivityTaskScheduled</tt> then this member is set and
--   provides detailed information about the event. It isn't set for other
--   event types.</li>
--   <li><a>heScheduleActivityTaskFailedEventAttributes</a> - If the event
--   is of type <tt>ScheduleActivityTaskFailed</tt> then this member is set
--   and provides detailed information about the event. It isn't set for
--   other event types.</li>
--   <li><a>heChildWorkflowExecutionCompletedEventAttributes</a> - If the
--   event is of type <tt>ChildWorkflowExecutionCompleted</tt> then this
--   member is set and provides detailed information about the event. It
--   isn't set for other event types.</li>
--   <li><a>heMarkerRecordedEventAttributes</a> - If the event is of type
--   <tt>MarkerRecorded</tt> then this member is set and provides detailed
--   information about the event. It isn't set for other event types.</li>
--   <li><a>heScheduleLambdaFunctionFailedEventAttributes</a> - Provides
--   the details of the <tt>ScheduleLambdaFunctionFailed</tt> event. It
--   isn't set for other event types.</li>
--   <li><a>heCompleteWorkflowExecutionFailedEventAttributes</a> - If the
--   event is of type <tt>CompleteWorkflowExecutionFailed</tt> then this
--   member is set and provides detailed information about the event. It
--   isn't set for other event types.</li>
--   <li><a>heLambdaFunctionCompletedEventAttributes</a> - Provides the
--   details of the <tt>LambdaFunctionCompleted</tt> event. It isn't set
--   for other event types.</li>
--   
--   <li><a>heRequestCancelExternalWorkflowExecutionFailedEventAttributes</a>
--   - If the event is of type
--   <tt>RequestCancelExternalWorkflowExecutionFailed</tt> then this member
--   is set and provides detailed information about the event. It isn't set
--   for other event types.</li>
--   <li><a>heTimerCanceledEventAttributes</a> - If the event is of type
--   <tt>TimerCanceled</tt> then this member is set and provides detailed
--   information about the event. It isn't set for other event types.</li>
--   <li><a>heWorkflowExecutionStartedEventAttributes</a> - If the event is
--   of type <tt>WorkflowExecutionStarted</tt> then this member is set and
--   provides detailed information about the event. It isn't set for other
--   event types.</li>
--   <li><a>heActivityTaskCompletedEventAttributes</a> - If the event is of
--   type <tt>ActivityTaskCompleted</tt> then this member is set and
--   provides detailed information about the event. It isn't set for other
--   event types.</li>
--   <li><a>heDecisionTaskTimedOutEventAttributes</a> - If the event is of
--   type <tt>DecisionTaskTimedOut</tt> then this member is set and
--   provides detailed information about the event. It isn't set for other
--   event types.</li>
--   <li><a>heCancelTimerFailedEventAttributes</a> - If the event is of
--   type <tt>CancelTimerFailed</tt> then this member is set and provides
--   detailed information about the event. It isn't set for other event
--   types.</li>
--   <li><a>heChildWorkflowExecutionStartedEventAttributes</a> - If the
--   event is of type <tt>ChildWorkflowExecutionStarted</tt> then this
--   member is set and provides detailed information about the event. It
--   isn't set for other event types.</li>
--   <li><a>heActivityTaskCanceledEventAttributes</a> - If the event is of
--   type <tt>ActivityTaskCanceled</tt> then this member is set and
--   provides detailed information about the event. It isn't set for other
--   event types.</li>
--   <li><a>heActivityTaskTimedOutEventAttributes</a> - If the event is of
--   type <tt>ActivityTaskTimedOut</tt> then this member is set and
--   provides detailed information about the event. It isn't set for other
--   event types.</li>
--   <li><a>heDecisionTaskStartedEventAttributes</a> - If the event is of
--   type <tt>DecisionTaskStarted</tt> then this member is set and provides
--   detailed information about the event. It isn't set for other event
--   types.</li>
--   <li><a>heWorkflowExecutionTerminatedEventAttributes</a> - If the event
--   is of type <tt>WorkflowExecutionTerminated</tt> then this member is
--   set and provides detailed information about the event. It isn't set
--   for other event types.</li>
--   <li><a>heChildWorkflowExecutionCanceledEventAttributes</a> - If the
--   event is of type <tt>ChildWorkflowExecutionCanceled</tt> then this
--   member is set and provides detailed information about the event. It
--   isn't set for other event types.</li>
--   <li><a>heRequestCancelActivityTaskFailedEventAttributes</a> - If the
--   event is of type <tt>RequestCancelActivityTaskFailed</tt> then this
--   member is set and provides detailed information about the event. It
--   isn't set for other event types.</li>
--   <li><a>heLambdaFunctionScheduledEventAttributes</a> - Provides the
--   details of the <tt>LambdaFunctionScheduled</tt> event. It isn't set
--   for other event types.</li>
--   <li><a>heChildWorkflowExecutionTimedOutEventAttributes</a> - If the
--   event is of type <tt>ChildWorkflowExecutionTimedOut</tt> then this
--   member is set and provides detailed information about the event. It
--   isn't set for other event types.</li>
--   <li><a>heCancelWorkflowExecutionFailedEventAttributes</a> - If the
--   event is of type <tt>CancelWorkflowExecutionFailed</tt> then this
--   member is set and provides detailed information about the event. It
--   isn't set for other event types.</li>
--   <li><a>heStartChildWorkflowExecutionInitiatedEventAttributes</a> - If
--   the event is of type <tt>StartChildWorkflowExecutionInitiated</tt>
--   then this member is set and provides detailed information about the
--   event. It isn't set for other event types.</li>
--   <li><a>heSignalExternalWorkflowExecutionFailedEventAttributes</a> - If
--   the event is of type <tt>SignalExternalWorkflowExecutionFailed</tt>
--   then this member is set and provides detailed information about the
--   event. It isn't set for other event types.</li>
--   <li><a>heActivityTaskStartedEventAttributes</a> - If the event is of
--   type <tt>ActivityTaskStarted</tt> then this member is set and provides
--   detailed information about the event. It isn't set for other event
--   types.</li>
--   <li><a>heStartLambdaFunctionFailedEventAttributes</a> - Provides the
--   details of the <tt>StartLambdaFunctionFailed</tt> event. It isn't set
--   for other event types.</li>
--   <li><a>heChildWorkflowExecutionTerminatedEventAttributes</a> - If the
--   event is of type <tt>ChildWorkflowExecutionTerminated</tt> then this
--   member is set and provides detailed information about the event. It
--   isn't set for other event types.</li>
--   <li><a>heLambdaFunctionFailedEventAttributes</a> - Provides the
--   details of the <tt>LambdaFunctionFailed</tt> event. It isn't set for
--   other event types.</li>
--   <li><a>heWorkflowExecutionCanceledEventAttributes</a> - If the event
--   is of type <tt>WorkflowExecutionCanceled</tt> then this member is set
--   and provides detailed information about the event. It isn't set for
--   other event types.</li>
--   <li><a>heTimerStartedEventAttributes</a> - If the event is of type
--   <tt>TimerStarted</tt> then this member is set and provides detailed
--   information about the event. It isn't set for other event types.</li>
--   <li><a>heActivityTaskCancelRequestedEventAttributes</a> - If the event
--   is of type <tt>ActivityTaskcancelRequested</tt> then this member is
--   set and provides detailed information about the event. It isn't set
--   for other event types.</li>
--   <li><a>heWorkflowExecutionTimedOutEventAttributes</a> - If the event
--   is of type <tt>WorkflowExecutionTimedOut</tt> then this member is set
--   and provides detailed information about the event. It isn't set for
--   other event types.</li>
--   <li><a>heWorkflowExecutionSignaledEventAttributes</a> - If the event
--   is of type <tt>WorkflowExecutionSignaled</tt> then this member is set
--   and provides detailed information about the event. It isn't set for
--   other event types.</li>
--   <li><a>heTimerFiredEventAttributes</a> - If the event is of type
--   <tt>TimerFired</tt> then this member is set and provides detailed
--   information about the event. It isn't set for other event types.</li>
--   <li><a>heActivityTaskFailedEventAttributes</a> - If the event is of
--   type <tt>ActivityTaskFailed</tt> then this member is set and provides
--   detailed information about the event. It isn't set for other event
--   types.</li>
--   <li><a>heExternalWorkflowExecutionSignaledEventAttributes</a> - If the
--   event is of type <tt>ExternalWorkflowExecutionSignaled</tt> then this
--   member is set and provides detailed information about the event. It
--   isn't set for other event types.</li>
--   <li><a>heDecisionTaskCompletedEventAttributes</a> - If the event is of
--   type <tt>DecisionTaskCompleted</tt> then this member is set and
--   provides detailed information about the event. It isn't set for other
--   event types.</li>
--   <li><a>heStartChildWorkflowExecutionFailedEventAttributes</a> - If the
--   event is of type <tt>StartChildWorkflowExecutionFailed</tt> then this
--   member is set and provides detailed information about the event. It
--   isn't set for other event types.</li>
--   <li><a>heChildWorkflowExecutionFailedEventAttributes</a> - If the
--   event is of type <tt>ChildWorkflowExecutionFailed</tt> then this
--   member is set and provides detailed information about the event. It
--   isn't set for other event types.</li>
--   <li><a>heFailWorkflowExecutionFailedEventAttributes</a> - If the event
--   is of type <tt>FailWorkflowExecutionFailed</tt> then this member is
--   set and provides detailed information about the event. It isn't set
--   for other event types.</li>
--   <li><a>heContinueAsNewWorkflowExecutionFailedEventAttributes</a> - If
--   the event is of type <tt>ContinueAsNewWorkflowExecutionFailed</tt>
--   then this member is set and provides detailed information about the
--   event. It isn't set for other event types.</li>
--   <li><a>heSignalExternalWorkflowExecutionInitiatedEventAttributes</a> -
--   If the event is of type
--   <tt>SignalExternalWorkflowExecutionInitiated</tt> then this member is
--   set and provides detailed information about the event. It isn't set
--   for other event types.</li>
--   <li><a>heLambdaFunctionTimedOutEventAttributes</a> - Provides the
--   details of the <tt>LambdaFunctionTimedOut</tt> event. It isn't set for
--   other event types.</li>
--   <li><a>heWorkflowExecutionFailedEventAttributes</a> - If the event is
--   of type <tt>WorkflowExecutionFailed</tt> then this member is set and
--   provides detailed information about the event. It isn't set for other
--   event types.</li>
--   <li><a>heWorkflowExecutionContinuedAsNewEventAttributes</a> - If the
--   event is of type <tt>WorkflowExecutionContinuedAsNew</tt> then this
--   member is set and provides detailed information about the event. It
--   isn't set for other event types.</li>
--   <li><a>heExternalWorkflowExecutionCancelRequestedEventAttributes</a> -
--   If the event is of type
--   <tt>ExternalWorkflowExecutionCancelRequested</tt> then this member is
--   set and provides detailed information about the event. It isn't set
--   for other event types.</li>
--   <li><a>heEventTimestamp</a> - The date and time when the event
--   occurred.</li>
--   <li><a>heEventType</a> - The type of the history event.</li>
--   <li><a>heEventId</a> - The system generated ID of the event. This ID
--   uniquely identifies the event with in the workflow execution
--   history.</li>
--   </ul>
historyEvent :: UTCTime -> EventType -> Integer -> HistoryEvent

-- | If the event is of type <tt>WorkflowExecutionCancelRequested</tt> then
--   this member is set and provides detailed information about the event.
--   It isn't set for other event types.
heWorkflowExecutionCancelRequestedEventAttributes :: Lens' HistoryEvent (Maybe WorkflowExecutionCancelRequestedEventAttributes)

-- | If the event is of type <tt>DecisionTaskFailed</tt> then this member
--   is set and provides detailed information about the event. It isn't set
--   for other event types.
heRecordMarkerFailedEventAttributes :: Lens' HistoryEvent (Maybe RecordMarkerFailedEventAttributes)

-- | If the event is of type
--   <tt>RequestCancelExternalWorkflowExecutionInitiated</tt> then this
--   member is set and provides detailed information about the event. It
--   isn't set for other event types.
heRequestCancelExternalWorkflowExecutionInitiatedEventAttributes :: Lens' HistoryEvent (Maybe RequestCancelExternalWorkflowExecutionInitiatedEventAttributes)

-- | Provides the details of the <tt>LambdaFunctionStarted</tt> event. It
--   isn't set for other event types.
heLambdaFunctionStartedEventAttributes :: Lens' HistoryEvent (Maybe LambdaFunctionStartedEventAttributes)

-- | If the event is of type <tt>DecisionTaskScheduled</tt> then this
--   member is set and provides detailed information about the event. It
--   isn't set for other event types.
heDecisionTaskScheduledEventAttributes :: Lens' HistoryEvent (Maybe DecisionTaskScheduledEventAttributes)

-- | If the event is of type <tt>WorkflowExecutionCompleted</tt> then this
--   member is set and provides detailed information about the event. It
--   isn't set for other event types.
heWorkflowExecutionCompletedEventAttributes :: Lens' HistoryEvent (Maybe WorkflowExecutionCompletedEventAttributes)

-- | If the event is of type <tt>StartTimerFailed</tt> then this member is
--   set and provides detailed information about the event. It isn't set
--   for other event types.
heStartTimerFailedEventAttributes :: Lens' HistoryEvent (Maybe StartTimerFailedEventAttributes)

-- | If the event is of type <tt>ActivityTaskScheduled</tt> then this
--   member is set and provides detailed information about the event. It
--   isn't set for other event types.
heActivityTaskScheduledEventAttributes :: Lens' HistoryEvent (Maybe ActivityTaskScheduledEventAttributes)

-- | If the event is of type <tt>ScheduleActivityTaskFailed</tt> then this
--   member is set and provides detailed information about the event. It
--   isn't set for other event types.
heScheduleActivityTaskFailedEventAttributes :: Lens' HistoryEvent (Maybe ScheduleActivityTaskFailedEventAttributes)

-- | If the event is of type <tt>ChildWorkflowExecutionCompleted</tt> then
--   this member is set and provides detailed information about the event.
--   It isn't set for other event types.
heChildWorkflowExecutionCompletedEventAttributes :: Lens' HistoryEvent (Maybe ChildWorkflowExecutionCompletedEventAttributes)

-- | If the event is of type <tt>MarkerRecorded</tt> then this member is
--   set and provides detailed information about the event. It isn't set
--   for other event types.
heMarkerRecordedEventAttributes :: Lens' HistoryEvent (Maybe MarkerRecordedEventAttributes)

-- | Provides the details of the <tt>ScheduleLambdaFunctionFailed</tt>
--   event. It isn't set for other event types.
heScheduleLambdaFunctionFailedEventAttributes :: Lens' HistoryEvent (Maybe ScheduleLambdaFunctionFailedEventAttributes)

-- | If the event is of type <tt>CompleteWorkflowExecutionFailed</tt> then
--   this member is set and provides detailed information about the event.
--   It isn't set for other event types.
heCompleteWorkflowExecutionFailedEventAttributes :: Lens' HistoryEvent (Maybe CompleteWorkflowExecutionFailedEventAttributes)

-- | Provides the details of the <tt>LambdaFunctionCompleted</tt> event. It
--   isn't set for other event types.
heLambdaFunctionCompletedEventAttributes :: Lens' HistoryEvent (Maybe LambdaFunctionCompletedEventAttributes)

-- | If the event is of type
--   <tt>RequestCancelExternalWorkflowExecutionFailed</tt> then this member
--   is set and provides detailed information about the event. It isn't set
--   for other event types.
heRequestCancelExternalWorkflowExecutionFailedEventAttributes :: Lens' HistoryEvent (Maybe RequestCancelExternalWorkflowExecutionFailedEventAttributes)

-- | If the event is of type <tt>TimerCanceled</tt> then this member is set
--   and provides detailed information about the event. It isn't set for
--   other event types.
heTimerCanceledEventAttributes :: Lens' HistoryEvent (Maybe TimerCanceledEventAttributes)

-- | If the event is of type <tt>WorkflowExecutionStarted</tt> then this
--   member is set and provides detailed information about the event. It
--   isn't set for other event types.
heWorkflowExecutionStartedEventAttributes :: Lens' HistoryEvent (Maybe WorkflowExecutionStartedEventAttributes)

-- | If the event is of type <tt>ActivityTaskCompleted</tt> then this
--   member is set and provides detailed information about the event. It
--   isn't set for other event types.
heActivityTaskCompletedEventAttributes :: Lens' HistoryEvent (Maybe ActivityTaskCompletedEventAttributes)

-- | If the event is of type <tt>DecisionTaskTimedOut</tt> then this member
--   is set and provides detailed information about the event. It isn't set
--   for other event types.
heDecisionTaskTimedOutEventAttributes :: Lens' HistoryEvent (Maybe DecisionTaskTimedOutEventAttributes)

-- | If the event is of type <tt>CancelTimerFailed</tt> then this member is
--   set and provides detailed information about the event. It isn't set
--   for other event types.
heCancelTimerFailedEventAttributes :: Lens' HistoryEvent (Maybe CancelTimerFailedEventAttributes)

-- | If the event is of type <tt>ChildWorkflowExecutionStarted</tt> then
--   this member is set and provides detailed information about the event.
--   It isn't set for other event types.
heChildWorkflowExecutionStartedEventAttributes :: Lens' HistoryEvent (Maybe ChildWorkflowExecutionStartedEventAttributes)

-- | If the event is of type <tt>ActivityTaskCanceled</tt> then this member
--   is set and provides detailed information about the event. It isn't set
--   for other event types.
heActivityTaskCanceledEventAttributes :: Lens' HistoryEvent (Maybe ActivityTaskCanceledEventAttributes)

-- | If the event is of type <tt>ActivityTaskTimedOut</tt> then this member
--   is set and provides detailed information about the event. It isn't set
--   for other event types.
heActivityTaskTimedOutEventAttributes :: Lens' HistoryEvent (Maybe ActivityTaskTimedOutEventAttributes)

-- | If the event is of type <tt>DecisionTaskStarted</tt> then this member
--   is set and provides detailed information about the event. It isn't set
--   for other event types.
heDecisionTaskStartedEventAttributes :: Lens' HistoryEvent (Maybe DecisionTaskStartedEventAttributes)

-- | If the event is of type <tt>WorkflowExecutionTerminated</tt> then this
--   member is set and provides detailed information about the event. It
--   isn't set for other event types.
heWorkflowExecutionTerminatedEventAttributes :: Lens' HistoryEvent (Maybe WorkflowExecutionTerminatedEventAttributes)

-- | If the event is of type <tt>ChildWorkflowExecutionCanceled</tt> then
--   this member is set and provides detailed information about the event.
--   It isn't set for other event types.
heChildWorkflowExecutionCanceledEventAttributes :: Lens' HistoryEvent (Maybe ChildWorkflowExecutionCanceledEventAttributes)

-- | If the event is of type <tt>RequestCancelActivityTaskFailed</tt> then
--   this member is set and provides detailed information about the event.
--   It isn't set for other event types.
heRequestCancelActivityTaskFailedEventAttributes :: Lens' HistoryEvent (Maybe RequestCancelActivityTaskFailedEventAttributes)

-- | Provides the details of the <tt>LambdaFunctionScheduled</tt> event. It
--   isn't set for other event types.
heLambdaFunctionScheduledEventAttributes :: Lens' HistoryEvent (Maybe LambdaFunctionScheduledEventAttributes)

-- | If the event is of type <tt>ChildWorkflowExecutionTimedOut</tt> then
--   this member is set and provides detailed information about the event.
--   It isn't set for other event types.
heChildWorkflowExecutionTimedOutEventAttributes :: Lens' HistoryEvent (Maybe ChildWorkflowExecutionTimedOutEventAttributes)

-- | If the event is of type <tt>CancelWorkflowExecutionFailed</tt> then
--   this member is set and provides detailed information about the event.
--   It isn't set for other event types.
heCancelWorkflowExecutionFailedEventAttributes :: Lens' HistoryEvent (Maybe CancelWorkflowExecutionFailedEventAttributes)

-- | If the event is of type <tt>StartChildWorkflowExecutionInitiated</tt>
--   then this member is set and provides detailed information about the
--   event. It isn't set for other event types.
heStartChildWorkflowExecutionInitiatedEventAttributes :: Lens' HistoryEvent (Maybe StartChildWorkflowExecutionInitiatedEventAttributes)

-- | If the event is of type <tt>SignalExternalWorkflowExecutionFailed</tt>
--   then this member is set and provides detailed information about the
--   event. It isn't set for other event types.
heSignalExternalWorkflowExecutionFailedEventAttributes :: Lens' HistoryEvent (Maybe SignalExternalWorkflowExecutionFailedEventAttributes)

-- | If the event is of type <tt>ActivityTaskStarted</tt> then this member
--   is set and provides detailed information about the event. It isn't set
--   for other event types.
heActivityTaskStartedEventAttributes :: Lens' HistoryEvent (Maybe ActivityTaskStartedEventAttributes)

-- | Provides the details of the <tt>StartLambdaFunctionFailed</tt> event.
--   It isn't set for other event types.
heStartLambdaFunctionFailedEventAttributes :: Lens' HistoryEvent (Maybe StartLambdaFunctionFailedEventAttributes)

-- | If the event is of type <tt>ChildWorkflowExecutionTerminated</tt> then
--   this member is set and provides detailed information about the event.
--   It isn't set for other event types.
heChildWorkflowExecutionTerminatedEventAttributes :: Lens' HistoryEvent (Maybe ChildWorkflowExecutionTerminatedEventAttributes)

-- | Provides the details of the <tt>LambdaFunctionFailed</tt> event. It
--   isn't set for other event types.
heLambdaFunctionFailedEventAttributes :: Lens' HistoryEvent (Maybe LambdaFunctionFailedEventAttributes)

-- | If the event is of type <tt>WorkflowExecutionCanceled</tt> then this
--   member is set and provides detailed information about the event. It
--   isn't set for other event types.
heWorkflowExecutionCanceledEventAttributes :: Lens' HistoryEvent (Maybe WorkflowExecutionCanceledEventAttributes)

-- | If the event is of type <tt>TimerStarted</tt> then this member is set
--   and provides detailed information about the event. It isn't set for
--   other event types.
heTimerStartedEventAttributes :: Lens' HistoryEvent (Maybe TimerStartedEventAttributes)

-- | If the event is of type <tt>ActivityTaskcancelRequested</tt> then this
--   member is set and provides detailed information about the event. It
--   isn't set for other event types.
heActivityTaskCancelRequestedEventAttributes :: Lens' HistoryEvent (Maybe ActivityTaskCancelRequestedEventAttributes)

-- | If the event is of type <tt>WorkflowExecutionTimedOut</tt> then this
--   member is set and provides detailed information about the event. It
--   isn't set for other event types.
heWorkflowExecutionTimedOutEventAttributes :: Lens' HistoryEvent (Maybe WorkflowExecutionTimedOutEventAttributes)

-- | If the event is of type <tt>WorkflowExecutionSignaled</tt> then this
--   member is set and provides detailed information about the event. It
--   isn't set for other event types.
heWorkflowExecutionSignaledEventAttributes :: Lens' HistoryEvent (Maybe WorkflowExecutionSignaledEventAttributes)

-- | If the event is of type <tt>TimerFired</tt> then this member is set
--   and provides detailed information about the event. It isn't set for
--   other event types.
heTimerFiredEventAttributes :: Lens' HistoryEvent (Maybe TimerFiredEventAttributes)

-- | If the event is of type <tt>ActivityTaskFailed</tt> then this member
--   is set and provides detailed information about the event. It isn't set
--   for other event types.
heActivityTaskFailedEventAttributes :: Lens' HistoryEvent (Maybe ActivityTaskFailedEventAttributes)

-- | If the event is of type <tt>ExternalWorkflowExecutionSignaled</tt>
--   then this member is set and provides detailed information about the
--   event. It isn't set for other event types.
heExternalWorkflowExecutionSignaledEventAttributes :: Lens' HistoryEvent (Maybe ExternalWorkflowExecutionSignaledEventAttributes)

-- | If the event is of type <tt>DecisionTaskCompleted</tt> then this
--   member is set and provides detailed information about the event. It
--   isn't set for other event types.
heDecisionTaskCompletedEventAttributes :: Lens' HistoryEvent (Maybe DecisionTaskCompletedEventAttributes)

-- | If the event is of type <tt>StartChildWorkflowExecutionFailed</tt>
--   then this member is set and provides detailed information about the
--   event. It isn't set for other event types.
heStartChildWorkflowExecutionFailedEventAttributes :: Lens' HistoryEvent (Maybe StartChildWorkflowExecutionFailedEventAttributes)

-- | If the event is of type <tt>ChildWorkflowExecutionFailed</tt> then
--   this member is set and provides detailed information about the event.
--   It isn't set for other event types.
heChildWorkflowExecutionFailedEventAttributes :: Lens' HistoryEvent (Maybe ChildWorkflowExecutionFailedEventAttributes)

-- | If the event is of type <tt>FailWorkflowExecutionFailed</tt> then this
--   member is set and provides detailed information about the event. It
--   isn't set for other event types.
heFailWorkflowExecutionFailedEventAttributes :: Lens' HistoryEvent (Maybe FailWorkflowExecutionFailedEventAttributes)

-- | If the event is of type <tt>ContinueAsNewWorkflowExecutionFailed</tt>
--   then this member is set and provides detailed information about the
--   event. It isn't set for other event types.
heContinueAsNewWorkflowExecutionFailedEventAttributes :: Lens' HistoryEvent (Maybe ContinueAsNewWorkflowExecutionFailedEventAttributes)

-- | If the event is of type
--   <tt>SignalExternalWorkflowExecutionInitiated</tt> then this member is
--   set and provides detailed information about the event. It isn't set
--   for other event types.
heSignalExternalWorkflowExecutionInitiatedEventAttributes :: Lens' HistoryEvent (Maybe SignalExternalWorkflowExecutionInitiatedEventAttributes)

-- | Provides the details of the <tt>LambdaFunctionTimedOut</tt> event. It
--   isn't set for other event types.
heLambdaFunctionTimedOutEventAttributes :: Lens' HistoryEvent (Maybe LambdaFunctionTimedOutEventAttributes)

-- | If the event is of type <tt>WorkflowExecutionFailed</tt> then this
--   member is set and provides detailed information about the event. It
--   isn't set for other event types.
heWorkflowExecutionFailedEventAttributes :: Lens' HistoryEvent (Maybe WorkflowExecutionFailedEventAttributes)

-- | If the event is of type <tt>WorkflowExecutionContinuedAsNew</tt> then
--   this member is set and provides detailed information about the event.
--   It isn't set for other event types.
heWorkflowExecutionContinuedAsNewEventAttributes :: Lens' HistoryEvent (Maybe WorkflowExecutionContinuedAsNewEventAttributes)

-- | If the event is of type
--   <tt>ExternalWorkflowExecutionCancelRequested</tt> then this member is
--   set and provides detailed information about the event. It isn't set
--   for other event types.
heExternalWorkflowExecutionCancelRequestedEventAttributes :: Lens' HistoryEvent (Maybe ExternalWorkflowExecutionCancelRequestedEventAttributes)

-- | The date and time when the event occurred.
heEventTimestamp :: Lens' HistoryEvent UTCTime

-- | The type of the history event.
heEventType :: Lens' HistoryEvent EventType

-- | The system generated ID of the event. This ID uniquely identifies the
--   event with in the workflow execution history.
heEventId :: Lens' HistoryEvent Integer

-- | Provides the details of the <tt>LambdaFunctionCompleted</tt> event. It
--   isn't set for other event types.
--   
--   <i>See:</i> <a>lambdaFunctionCompletedEventAttributes</a> smart
--   constructor.
data LambdaFunctionCompletedEventAttributes

-- | Creates a value of <a>LambdaFunctionCompletedEventAttributes</a> with
--   the minimum fields required to make a request.
--   
--   Use one of the following lenses to modify other fields as desired:
--   
--   <ul>
--   <li><a>lfceaResult</a> - The results of the Lambda task.</li>
--   <li><a>lfceaScheduledEventId</a> - The ID of the
--   <tt>LambdaFunctionScheduled</tt> event that was recorded when this
--   Lambda task was scheduled. To help diagnose issues, use this
--   information to trace back the chain of events leading up to this
--   event.</li>
--   <li><a>lfceaStartedEventId</a> - The ID of the
--   <tt>LambdaFunctionStarted</tt> event recorded when this activity task
--   started. To help diagnose issues, use this information to trace back
--   the chain of events leading up to this event.</li>
--   </ul>
lambdaFunctionCompletedEventAttributes :: Integer -> Integer -> LambdaFunctionCompletedEventAttributes

-- | The results of the Lambda task.
lfceaResult :: Lens' LambdaFunctionCompletedEventAttributes (Maybe Text)

-- | The ID of the <tt>LambdaFunctionScheduled</tt> event that was recorded
--   when this Lambda task was scheduled. To help diagnose issues, use this
--   information to trace back the chain of events leading up to this
--   event.
lfceaScheduledEventId :: Lens' LambdaFunctionCompletedEventAttributes Integer

-- | The ID of the <tt>LambdaFunctionStarted</tt> event recorded when this
--   activity task started. To help diagnose issues, use this information
--   to trace back the chain of events leading up to this event.
lfceaStartedEventId :: Lens' LambdaFunctionCompletedEventAttributes Integer

-- | Provides the details of the <tt>LambdaFunctionFailed</tt> event. It
--   isn't set for other event types.
--   
--   <i>See:</i> <a>lambdaFunctionFailedEventAttributes</a> smart
--   constructor.
data LambdaFunctionFailedEventAttributes

-- | Creates a value of <a>LambdaFunctionFailedEventAttributes</a> with the
--   minimum fields required to make a request.
--   
--   Use one of the following lenses to modify other fields as desired:
--   
--   <ul>
--   <li><a>lffeaReason</a> - The reason provided for the failure.</li>
--   <li><a>lffeaDetails</a> - The details of the failure.</li>
--   <li><a>lffeaScheduledEventId</a> - The ID of the
--   <tt>LambdaFunctionScheduled</tt> event that was recorded when this
--   activity task was scheduled. To help diagnose issues, use this
--   information to trace back the chain of events leading up to this
--   event.</li>
--   <li><a>lffeaStartedEventId</a> - The ID of the
--   <tt>LambdaFunctionStarted</tt> event recorded when this activity task
--   started. To help diagnose issues, use this information to trace back
--   the chain of events leading up to this event.</li>
--   </ul>
lambdaFunctionFailedEventAttributes :: Integer -> Integer -> LambdaFunctionFailedEventAttributes

-- | The reason provided for the failure.
lffeaReason :: Lens' LambdaFunctionFailedEventAttributes (Maybe Text)

-- | The details of the failure.
lffeaDetails :: Lens' LambdaFunctionFailedEventAttributes (Maybe Text)

-- | The ID of the <tt>LambdaFunctionScheduled</tt> event that was recorded
--   when this activity task was scheduled. To help diagnose issues, use
--   this information to trace back the chain of events leading up to this
--   event.
lffeaScheduledEventId :: Lens' LambdaFunctionFailedEventAttributes Integer

-- | The ID of the <tt>LambdaFunctionStarted</tt> event recorded when this
--   activity task started. To help diagnose issues, use this information
--   to trace back the chain of events leading up to this event.
lffeaStartedEventId :: Lens' LambdaFunctionFailedEventAttributes Integer

-- | Provides the details of the <tt>LambdaFunctionScheduled</tt> event. It
--   isn't set for other event types.
--   
--   <i>See:</i> <a>lambdaFunctionScheduledEventAttributes</a> smart
--   constructor.
data LambdaFunctionScheduledEventAttributes

-- | Creates a value of <a>LambdaFunctionScheduledEventAttributes</a> with
--   the minimum fields required to make a request.
--   
--   Use one of the following lenses to modify other fields as desired:
--   
--   <ul>
--   <li><a>lfseaControl</a> - Data attached to the event that the decider
--   can use in subsequent workflow tasks. This data isn't sent to the
--   Lambda task.</li>
--   <li><a>lfseaInput</a> - The input provided to the Lambda task.</li>
--   <li><a>lfseaStartToCloseTimeout</a> - The maximum amount of time a
--   worker can take to process the Lambda task.</li>
--   <li><a>lfseaId</a> - The unique ID of the Lambda task.</li>
--   <li><a>lfseaName</a> - The name of the Lambda function.</li>
--   <li><a>lfseaDecisionTaskCompletedEventId</a> - The ID of the
--   <tt>LambdaFunctionCompleted</tt> event corresponding to the decision
--   that resulted in scheduling this activity task. To help diagnose
--   issues, use this information to trace back the chain of events leading
--   up to this event.</li>
--   </ul>
lambdaFunctionScheduledEventAttributes :: Text -> Text -> Integer -> LambdaFunctionScheduledEventAttributes

-- | Data attached to the event that the decider can use in subsequent
--   workflow tasks. This data isn't sent to the Lambda task.
lfseaControl :: Lens' LambdaFunctionScheduledEventAttributes (Maybe Text)

-- | The input provided to the Lambda task.
lfseaInput :: Lens' LambdaFunctionScheduledEventAttributes (Maybe Text)

-- | The maximum amount of time a worker can take to process the Lambda
--   task.
lfseaStartToCloseTimeout :: Lens' LambdaFunctionScheduledEventAttributes (Maybe Text)

-- | The unique ID of the Lambda task.
lfseaId :: Lens' LambdaFunctionScheduledEventAttributes Text

-- | The name of the Lambda function.
lfseaName :: Lens' LambdaFunctionScheduledEventAttributes Text

-- | The ID of the <tt>LambdaFunctionCompleted</tt> event corresponding to
--   the decision that resulted in scheduling this activity task. To help
--   diagnose issues, use this information to trace back the chain of
--   events leading up to this event.
lfseaDecisionTaskCompletedEventId :: Lens' LambdaFunctionScheduledEventAttributes Integer

-- | Provides the details of the <tt>LambdaFunctionStarted</tt> event. It
--   isn't set for other event types.
--   
--   <i>See:</i> <a>lambdaFunctionStartedEventAttributes</a> smart
--   constructor.
data LambdaFunctionStartedEventAttributes

-- | Creates a value of <a>LambdaFunctionStartedEventAttributes</a> with
--   the minimum fields required to make a request.
--   
--   Use one of the following lenses to modify other fields as desired:
--   
--   <ul>
--   <li><a>lfseaScheduledEventId</a> - The ID of the
--   <tt>LambdaFunctionScheduled</tt> event that was recorded when this
--   activity task was scheduled. To help diagnose issues, use this
--   information to trace back the chain of events leading up to this
--   event.</li>
--   </ul>
lambdaFunctionStartedEventAttributes :: Integer -> LambdaFunctionStartedEventAttributes

-- | The ID of the <tt>LambdaFunctionScheduled</tt> event that was recorded
--   when this activity task was scheduled. To help diagnose issues, use
--   this information to trace back the chain of events leading up to this
--   event.
lfseaScheduledEventId :: Lens' LambdaFunctionStartedEventAttributes Integer

-- | Provides details of the <tt>LambdaFunctionTimedOut</tt> event.
--   
--   <i>See:</i> <a>lambdaFunctionTimedOutEventAttributes</a> smart
--   constructor.
data LambdaFunctionTimedOutEventAttributes

-- | Creates a value of <a>LambdaFunctionTimedOutEventAttributes</a> with
--   the minimum fields required to make a request.
--   
--   Use one of the following lenses to modify other fields as desired:
--   
--   <ul>
--   <li><a>lftoeaTimeoutType</a> - The type of the timeout that caused
--   this event.</li>
--   <li><a>lftoeaScheduledEventId</a> - The ID of the
--   <tt>LambdaFunctionScheduled</tt> event that was recorded when this
--   activity task was scheduled. To help diagnose issues, use this
--   information to trace back the chain of events leading up to this
--   event.</li>
--   <li><a>lftoeaStartedEventId</a> - The ID of the
--   <tt>ActivityTaskStarted</tt> event that was recorded when this
--   activity task started. To help diagnose issues, use this information
--   to trace back the chain of events leading up to this event.</li>
--   </ul>
lambdaFunctionTimedOutEventAttributes :: Integer -> Integer -> LambdaFunctionTimedOutEventAttributes

-- | The type of the timeout that caused this event.
lftoeaTimeoutType :: Lens' LambdaFunctionTimedOutEventAttributes (Maybe LambdaFunctionTimeoutType)

-- | The ID of the <tt>LambdaFunctionScheduled</tt> event that was recorded
--   when this activity task was scheduled. To help diagnose issues, use
--   this information to trace back the chain of events leading up to this
--   event.
lftoeaScheduledEventId :: Lens' LambdaFunctionTimedOutEventAttributes Integer

-- | The ID of the <tt>ActivityTaskStarted</tt> event that was recorded
--   when this activity task started. To help diagnose issues, use this
--   information to trace back the chain of events leading up to this
--   event.
lftoeaStartedEventId :: Lens' LambdaFunctionTimedOutEventAttributes Integer

-- | Provides the details of the <tt>MarkerRecorded</tt> event.
--   
--   <i>See:</i> <a>markerRecordedEventAttributes</a> smart constructor.
data MarkerRecordedEventAttributes

-- | Creates a value of <a>MarkerRecordedEventAttributes</a> with the
--   minimum fields required to make a request.
--   
--   Use one of the following lenses to modify other fields as desired:
--   
--   <ul>
--   <li><a>mreaDetails</a> - The details of the marker.</li>
--   <li><a>mreaMarkerName</a> - The name of the marker.</li>
--   <li><a>mreaDecisionTaskCompletedEventId</a> - The ID of the
--   <tt>DecisionTaskCompleted</tt> event corresponding to the decision
--   task that resulted in the <tt>RecordMarker</tt> decision that
--   requested this marker. This information can be useful for diagnosing
--   problems by tracing back the chain of events leading up to this
--   event.</li>
--   </ul>
markerRecordedEventAttributes :: Text -> Integer -> MarkerRecordedEventAttributes

-- | The details of the marker.
mreaDetails :: Lens' MarkerRecordedEventAttributes (Maybe Text)

-- | The name of the marker.
mreaMarkerName :: Lens' MarkerRecordedEventAttributes Text

-- | The ID of the <tt>DecisionTaskCompleted</tt> event corresponding to
--   the decision task that resulted in the <tt>RecordMarker</tt> decision
--   that requested this marker. This information can be useful for
--   diagnosing problems by tracing back the chain of events leading up to
--   this event.
mreaDecisionTaskCompletedEventId :: Lens' MarkerRecordedEventAttributes Integer

-- | Contains the count of tasks in a task list.
--   
--   <i>See:</i> <a>pendingTaskCount</a> smart constructor.
data PendingTaskCount

-- | Creates a value of <a>PendingTaskCount</a> with the minimum fields
--   required to make a request.
--   
--   Use one of the following lenses to modify other fields as desired:
--   
--   <ul>
--   <li><a>ptcTruncated</a> - If set to true, indicates that the actual
--   count was more than the maximum supported by this API and the count
--   returned is the truncated value.</li>
--   <li><a>ptcCount</a> - The number of tasks in the task list.</li>
--   </ul>
pendingTaskCount :: Natural -> PendingTaskCount

-- | If set to true, indicates that the actual count was more than the
--   maximum supported by this API and the count returned is the truncated
--   value.
ptcTruncated :: Lens' PendingTaskCount (Maybe Bool)

-- | The number of tasks in the task list.
ptcCount :: Lens' PendingTaskCount Natural

-- | Provides the details of the <tt>RecordMarker</tt> decision.
--   
--   <b>Access Control</b>
--   
--   You can use IAM policies to control this decision's access to Amazon
--   SWF resources as follows:
--   
--   <ul>
--   <li>Use a <tt>Resource</tt> element with the domain name to limit the
--   action to only specified domains.</li>
--   <li>Use an <tt>Action</tt> element to allow or deny permission to call
--   this action.</li>
--   <li>You cannot use an IAM policy to constrain this action's
--   parameters.</li>
--   </ul>
--   
--   If the caller doesn't have sufficient permissions to invoke the
--   action, or the parameter values fall outside the specified
--   constraints, the action fails. The associated event attribute's
--   <tt>cause</tt> parameter is set to <tt>OPERATION_NOT_PERMITTED</tt> .
--   For details and example IAM policies, see <a>Using IAM to Manage
--   Access to Amazon SWF Workflows</a> in the <i>Amazon SWF Developer
--   Guide</i> .
--   
--   <i>See:</i> <a>recordMarkerDecisionAttributes</a> smart constructor.
data RecordMarkerDecisionAttributes

-- | Creates a value of <a>RecordMarkerDecisionAttributes</a> with the
--   minimum fields required to make a request.
--   
--   Use one of the following lenses to modify other fields as desired:
--   
--   <ul>
--   <li><a>rmdaDetails</a> - The details of the marker.</li>
--   <li><a>rmdaMarkerName</a> - The name of the marker.</li>
--   </ul>
recordMarkerDecisionAttributes :: Text -> RecordMarkerDecisionAttributes

-- | The details of the marker.
rmdaDetails :: Lens' RecordMarkerDecisionAttributes (Maybe Text)

-- | The name of the marker.
rmdaMarkerName :: Lens' RecordMarkerDecisionAttributes Text

-- | Provides the details of the <tt>RecordMarkerFailed</tt> event.
--   
--   <i>See:</i> <a>recordMarkerFailedEventAttributes</a> smart
--   constructor.
data RecordMarkerFailedEventAttributes

-- | Creates a value of <a>RecordMarkerFailedEventAttributes</a> with the
--   minimum fields required to make a request.
--   
--   Use one of the following lenses to modify other fields as desired:
--   
--   <ul>
--   <li><a>rmfeaMarkerName</a> - The marker's name.</li>
--   <li><a>rmfeaCause</a> - The cause of the failure. This information is
--   generated by the system and can be useful for diagnostic
--   purposes.</li>
--   <li><a>rmfeaDecisionTaskCompletedEventId</a> - The ID of the
--   <tt>DecisionTaskCompleted</tt> event corresponding to the decision
--   task that resulted in the <tt>RecordMarkerFailed</tt> decision for
--   this cancellation request. This information can be useful for
--   diagnosing problems by tracing back the chain of events leading up to
--   this event.</li>
--   </ul>
recordMarkerFailedEventAttributes :: Text -> RecordMarkerFailedCause -> Integer -> RecordMarkerFailedEventAttributes

-- | The marker's name.
rmfeaMarkerName :: Lens' RecordMarkerFailedEventAttributes Text

-- | The cause of the failure. This information is generated by the system
--   and can be useful for diagnostic purposes.
rmfeaCause :: Lens' RecordMarkerFailedEventAttributes RecordMarkerFailedCause

-- | The ID of the <tt>DecisionTaskCompleted</tt> event corresponding to
--   the decision task that resulted in the <tt>RecordMarkerFailed</tt>
--   decision for this cancellation request. This information can be useful
--   for diagnosing problems by tracing back the chain of events leading up
--   to this event.
rmfeaDecisionTaskCompletedEventId :: Lens' RecordMarkerFailedEventAttributes Integer

-- | Provides the details of the <tt>RequestCancelActivityTask</tt>
--   decision.
--   
--   <b>Access Control</b>
--   
--   You can use IAM policies to control this decision's access to Amazon
--   SWF resources as follows:
--   
--   <ul>
--   <li>Use a <tt>Resource</tt> element with the domain name to limit the
--   action to only specified domains.</li>
--   <li>Use an <tt>Action</tt> element to allow or deny permission to call
--   this action.</li>
--   <li>You cannot use an IAM policy to constrain this action's
--   parameters.</li>
--   </ul>
--   
--   If the caller doesn't have sufficient permissions to invoke the
--   action, or the parameter values fall outside the specified
--   constraints, the action fails. The associated event attribute's
--   <tt>cause</tt> parameter is set to <tt>OPERATION_NOT_PERMITTED</tt> .
--   For details and example IAM policies, see <a>Using IAM to Manage
--   Access to Amazon SWF Workflows</a> in the <i>Amazon SWF Developer
--   Guide</i> .
--   
--   <i>See:</i> <a>requestCancelActivityTaskDecisionAttributes</a> smart
--   constructor.
data RequestCancelActivityTaskDecisionAttributes

-- | Creates a value of <a>RequestCancelActivityTaskDecisionAttributes</a>
--   with the minimum fields required to make a request.
--   
--   Use one of the following lenses to modify other fields as desired:
--   
--   <ul>
--   <li><a>rcatdaActivityId</a> - The <tt>activityId</tt> of the activity
--   task to be canceled.</li>
--   </ul>
requestCancelActivityTaskDecisionAttributes :: Text -> RequestCancelActivityTaskDecisionAttributes

-- | The <tt>activityId</tt> of the activity task to be canceled.
rcatdaActivityId :: Lens' RequestCancelActivityTaskDecisionAttributes Text

-- | Provides the details of the <tt>RequestCancelActivityTaskFailed</tt>
--   event.
--   
--   <i>See:</i> <a>requestCancelActivityTaskFailedEventAttributes</a>
--   smart constructor.
data RequestCancelActivityTaskFailedEventAttributes

-- | Creates a value of
--   <a>RequestCancelActivityTaskFailedEventAttributes</a> with the minimum
--   fields required to make a request.
--   
--   Use one of the following lenses to modify other fields as desired:
--   
--   <ul>
--   <li><a>rcatfeaActivityId</a> - The activityId provided in the
--   <tt>RequestCancelActivityTask</tt> decision that failed.</li>
--   <li><a>rcatfeaCause</a> - The cause of the failure. This information
--   is generated by the system and can be useful for diagnostic
--   purposes.</li>
--   <li><a>rcatfeaDecisionTaskCompletedEventId</a> - The ID of the
--   <tt>DecisionTaskCompleted</tt> event corresponding to the decision
--   task that resulted in the <tt>RequestCancelActivityTask</tt> decision
--   for this cancellation request. This information can be useful for
--   diagnosing problems by tracing back the chain of events leading up to
--   this event.</li>
--   </ul>
requestCancelActivityTaskFailedEventAttributes :: Text -> RequestCancelActivityTaskFailedCause -> Integer -> RequestCancelActivityTaskFailedEventAttributes

-- | The activityId provided in the <tt>RequestCancelActivityTask</tt>
--   decision that failed.
rcatfeaActivityId :: Lens' RequestCancelActivityTaskFailedEventAttributes Text

-- | The cause of the failure. This information is generated by the system
--   and can be useful for diagnostic purposes.
rcatfeaCause :: Lens' RequestCancelActivityTaskFailedEventAttributes RequestCancelActivityTaskFailedCause

-- | The ID of the <tt>DecisionTaskCompleted</tt> event corresponding to
--   the decision task that resulted in the
--   <tt>RequestCancelActivityTask</tt> decision for this cancellation
--   request. This information can be useful for diagnosing problems by
--   tracing back the chain of events leading up to this event.
rcatfeaDecisionTaskCompletedEventId :: Lens' RequestCancelActivityTaskFailedEventAttributes Integer

-- | Provides the details of the
--   <tt>RequestCancelExternalWorkflowExecution</tt> decision.
--   
--   <b>Access Control</b>
--   
--   You can use IAM policies to control this decision's access to Amazon
--   SWF resources as follows:
--   
--   <ul>
--   <li>Use a <tt>Resource</tt> element with the domain name to limit the
--   action to only specified domains.</li>
--   <li>Use an <tt>Action</tt> element to allow or deny permission to call
--   this action.</li>
--   <li>You cannot use an IAM policy to constrain this action's
--   parameters.</li>
--   </ul>
--   
--   If the caller doesn't have sufficient permissions to invoke the
--   action, or the parameter values fall outside the specified
--   constraints, the action fails. The associated event attribute's
--   <tt>cause</tt> parameter is set to <tt>OPERATION_NOT_PERMITTED</tt> .
--   For details and example IAM policies, see <a>Using IAM to Manage
--   Access to Amazon SWF Workflows</a> in the <i>Amazon SWF Developer
--   Guide</i> .
--   
--   <i>See:</i>
--   <a>requestCancelExternalWorkflowExecutionDecisionAttributes</a> smart
--   constructor.
data RequestCancelExternalWorkflowExecutionDecisionAttributes

-- | Creates a value of
--   <a>RequestCancelExternalWorkflowExecutionDecisionAttributes</a> with
--   the minimum fields required to make a request.
--   
--   Use one of the following lenses to modify other fields as desired:
--   
--   <ul>
--   <li><a>rcewedaControl</a> - The data attached to the event that can be
--   used by the decider in subsequent workflow tasks.</li>
--   <li><a>rcewedaRunId</a> - The <tt>runId</tt> of the external workflow
--   execution to cancel.</li>
--   <li><a>rcewedaWorkflowId</a> - The <tt>workflowId</tt> of the external
--   workflow execution to cancel.</li>
--   </ul>
requestCancelExternalWorkflowExecutionDecisionAttributes :: Text -> RequestCancelExternalWorkflowExecutionDecisionAttributes

-- | The data attached to the event that can be used by the decider in
--   subsequent workflow tasks.
rcewedaControl :: Lens' RequestCancelExternalWorkflowExecutionDecisionAttributes (Maybe Text)

-- | The <tt>runId</tt> of the external workflow execution to cancel.
rcewedaRunId :: Lens' RequestCancelExternalWorkflowExecutionDecisionAttributes (Maybe Text)

-- | The <tt>workflowId</tt> of the external workflow execution to cancel.
rcewedaWorkflowId :: Lens' RequestCancelExternalWorkflowExecutionDecisionAttributes Text

-- | Provides the details of the
--   <tt>RequestCancelExternalWorkflowExecutionFailed</tt> event.
--   
--   <i>See:</i>
--   <a>requestCancelExternalWorkflowExecutionFailedEventAttributes</a>
--   smart constructor.
data RequestCancelExternalWorkflowExecutionFailedEventAttributes

-- | Creates a value of
--   <a>RequestCancelExternalWorkflowExecutionFailedEventAttributes</a>
--   with the minimum fields required to make a request.
--   
--   Use one of the following lenses to modify other fields as desired:
--   
--   <ul>
--   <li><a>rcewefeaControl</a> - The data attached to the event that the
--   decider can use in subsequent workflow tasks. This data isn't sent to
--   the workflow execution.</li>
--   <li><a>rcewefeaRunId</a> - The <tt>runId</tt> of the external workflow
--   execution.</li>
--   <li><a>rcewefeaWorkflowId</a> - The <tt>workflowId</tt> of the
--   external workflow to which the cancel request was to be
--   delivered.</li>
--   <li><a>rcewefeaCause</a> - The cause of the failure. This information
--   is generated by the system and can be useful for diagnostic
--   purposes.</li>
--   <li><a>rcewefeaInitiatedEventId</a> - The ID of the
--   <tt>RequestCancelExternalWorkflowExecutionInitiated</tt> event
--   corresponding to the <tt>RequestCancelExternalWorkflowExecution</tt>
--   decision to cancel this external workflow execution. This information
--   can be useful for diagnosing problems by tracing back the chain of
--   events leading up to this event.</li>
--   <li><a>rcewefeaDecisionTaskCompletedEventId</a> - The ID of the
--   <tt>DecisionTaskCompleted</tt> event corresponding to the decision
--   task that resulted in the
--   <tt>RequestCancelExternalWorkflowExecution</tt> decision for this
--   cancellation request. This information can be useful for diagnosing
--   problems by tracing back the chain of events leading up to this
--   event.</li>
--   </ul>
requestCancelExternalWorkflowExecutionFailedEventAttributes :: Text -> RequestCancelExternalWorkflowExecutionFailedCause -> Integer -> Integer -> RequestCancelExternalWorkflowExecutionFailedEventAttributes

-- | The data attached to the event that the decider can use in subsequent
--   workflow tasks. This data isn't sent to the workflow execution.
rcewefeaControl :: Lens' RequestCancelExternalWorkflowExecutionFailedEventAttributes (Maybe Text)

-- | The <tt>runId</tt> of the external workflow execution.
rcewefeaRunId :: Lens' RequestCancelExternalWorkflowExecutionFailedEventAttributes (Maybe Text)

-- | The <tt>workflowId</tt> of the external workflow to which the cancel
--   request was to be delivered.
rcewefeaWorkflowId :: Lens' RequestCancelExternalWorkflowExecutionFailedEventAttributes Text

-- | The cause of the failure. This information is generated by the system
--   and can be useful for diagnostic purposes.
rcewefeaCause :: Lens' RequestCancelExternalWorkflowExecutionFailedEventAttributes RequestCancelExternalWorkflowExecutionFailedCause

-- | The ID of the <tt>RequestCancelExternalWorkflowExecutionInitiated</tt>
--   event corresponding to the
--   <tt>RequestCancelExternalWorkflowExecution</tt> decision to cancel
--   this external workflow execution. This information can be useful for
--   diagnosing problems by tracing back the chain of events leading up to
--   this event.
rcewefeaInitiatedEventId :: Lens' RequestCancelExternalWorkflowExecutionFailedEventAttributes Integer

-- | The ID of the <tt>DecisionTaskCompleted</tt> event corresponding to
--   the decision task that resulted in the
--   <tt>RequestCancelExternalWorkflowExecution</tt> decision for this
--   cancellation request. This information can be useful for diagnosing
--   problems by tracing back the chain of events leading up to this event.
rcewefeaDecisionTaskCompletedEventId :: Lens' RequestCancelExternalWorkflowExecutionFailedEventAttributes Integer

-- | Provides the details of the
--   <tt>RequestCancelExternalWorkflowExecutionInitiated</tt> event.
--   
--   <i>See:</i>
--   <a>requestCancelExternalWorkflowExecutionInitiatedEventAttributes</a>
--   smart constructor.
data RequestCancelExternalWorkflowExecutionInitiatedEventAttributes

-- | Creates a value of
--   <a>RequestCancelExternalWorkflowExecutionInitiatedEventAttributes</a>
--   with the minimum fields required to make a request.
--   
--   Use one of the following lenses to modify other fields as desired:
--   
--   <ul>
--   <li><a>rceweieaControl</a> - Data attached to the event that can be
--   used by the decider in subsequent workflow tasks.</li>
--   <li><a>rceweieaRunId</a> - The <tt>runId</tt> of the external workflow
--   execution to be canceled.</li>
--   <li><a>rceweieaWorkflowId</a> - The <tt>workflowId</tt> of the
--   external workflow execution to be canceled.</li>
--   <li><a>rceweieaDecisionTaskCompletedEventId</a> - The ID of the
--   <tt>DecisionTaskCompleted</tt> event corresponding to the decision
--   task that resulted in the
--   <tt>RequestCancelExternalWorkflowExecution</tt> decision for this
--   cancellation request. This information can be useful for diagnosing
--   problems by tracing back the chain of events leading up to this
--   event.</li>
--   </ul>
requestCancelExternalWorkflowExecutionInitiatedEventAttributes :: Text -> Integer -> RequestCancelExternalWorkflowExecutionInitiatedEventAttributes

-- | Data attached to the event that can be used by the decider in
--   subsequent workflow tasks.
rceweieaControl :: Lens' RequestCancelExternalWorkflowExecutionInitiatedEventAttributes (Maybe Text)

-- | The <tt>runId</tt> of the external workflow execution to be canceled.
rceweieaRunId :: Lens' RequestCancelExternalWorkflowExecutionInitiatedEventAttributes (Maybe Text)

-- | The <tt>workflowId</tt> of the external workflow execution to be
--   canceled.
rceweieaWorkflowId :: Lens' RequestCancelExternalWorkflowExecutionInitiatedEventAttributes Text

-- | The ID of the <tt>DecisionTaskCompleted</tt> event corresponding to
--   the decision task that resulted in the
--   <tt>RequestCancelExternalWorkflowExecution</tt> decision for this
--   cancellation request. This information can be useful for diagnosing
--   problems by tracing back the chain of events leading up to this event.
rceweieaDecisionTaskCompletedEventId :: Lens' RequestCancelExternalWorkflowExecutionInitiatedEventAttributes Integer

-- | Provides the details of the <tt>ScheduleActivityTask</tt> decision.
--   
--   <b>Access Control</b>
--   
--   You can use IAM policies to control this decision's access to Amazon
--   SWF resources as follows:
--   
--   <ul>
--   <li>Use a <tt>Resource</tt> element with the domain name to limit the
--   action to only specified domains.</li>
--   <li>Use an <tt>Action</tt> element to allow or deny permission to call
--   this action.</li>
--   <li>Constrain the following parameters by using a <tt>Condition</tt>
--   element with the appropriate keys.</li>
--   <li><tt>activityType.name</tt> – String constraint. The key is
--   <tt>swf:activityType.name</tt> .</li>
--   <li><tt>activityType.version</tt> – String constraint. The key is
--   <tt>swf:activityType.version</tt> .</li>
--   <li><tt>taskList</tt> – String constraint. The key is
--   <tt>swf:taskList.name</tt> .</li>
--   </ul>
--   
--   If the caller doesn't have sufficient permissions to invoke the
--   action, or the parameter values fall outside the specified
--   constraints, the action fails. The associated event attribute's
--   <tt>cause</tt> parameter is set to <tt>OPERATION_NOT_PERMITTED</tt> .
--   For details and example IAM policies, see <a>Using IAM to Manage
--   Access to Amazon SWF Workflows</a> in the <i>Amazon SWF Developer
--   Guide</i> .
--   
--   <i>See:</i> <a>scheduleActivityTaskDecisionAttributes</a> smart
--   constructor.
data ScheduleActivityTaskDecisionAttributes

-- | Creates a value of <a>ScheduleActivityTaskDecisionAttributes</a> with
--   the minimum fields required to make a request.
--   
--   Use one of the following lenses to modify other fields as desired:
--   
--   <ul>
--   <li><a>satdaControl</a> - Data attached to the event that can be used
--   by the decider in subsequent workflow tasks. This data isn't sent to
--   the activity.</li>
--   <li><a>satdaHeartbeatTimeout</a> - If set, specifies the maximum time
--   before which a worker processing a task of this type must report
--   progress by calling <tt>RecordActivityTaskHeartbeat</tt> . If the
--   timeout is exceeded, the activity task is automatically timed out. If
--   the worker subsequently attempts to record a heartbeat or returns a
--   result, it is ignored. This overrides the default heartbeat timeout
--   specified when registering the activity type using
--   <tt>RegisterActivityType</tt> . The duration is specified in seconds,
--   an integer greater than or equal to <tt>0</tt> . You can use
--   <tt>NONE</tt> to specify unlimited duration.</li>
--   <li><a>satdaScheduleToCloseTimeout</a> - The maximum duration for this
--   activity task. The duration is specified in seconds, an integer
--   greater than or equal to <tt>0</tt> . You can use <tt>NONE</tt> to
--   specify unlimited duration.</li>
--   <li><a>satdaInput</a> - The input provided to the activity task.</li>
--   <li><a>satdaTaskList</a> - If set, specifies the name of the task list
--   in which to schedule the activity task. If not specified, the
--   <tt>defaultTaskList</tt> registered with the activity type is used.
--   The specified string must not start or end with whitespace. It must
--   not contain a <tt>:</tt> (colon), <tt>/</tt> (slash), <tt>|</tt>
--   (vertical bar), or any control characters (<tt>u0000-u001f</tt> |
--   <tt>u007f-u009f</tt> ). Also, it must not contain the literal string
--   <tt>arn</tt> .</li>
--   <li><a>satdaTaskPriority</a> - If set, specifies the priority with
--   which the activity task is to be assigned to a worker. This overrides
--   the defaultTaskPriority specified when registering the activity type
--   using <tt>RegisterActivityType</tt> . Valid values are integers that
--   range from Java's <tt>Integer.MIN_VALUE</tt> (-2147483648) to
--   <tt>Integer.MAX_VALUE</tt> (2147483647). Higher numbers indicate
--   higher priority. For more information about setting task priority, see
--   <a>Setting Task Priority</a> in the <i>Amazon SWF Developer Guide</i>
--   .</li>
--   <li><a>satdaScheduleToStartTimeout</a> - If set, specifies the maximum
--   duration the activity task can wait to be assigned to a worker. This
--   overrides the default schedule-to-start timeout specified when
--   registering the activity type using <tt>RegisterActivityType</tt> .
--   The duration is specified in seconds, an integer greater than or equal
--   to <tt>0</tt> . You can use <tt>NONE</tt> to specify unlimited
--   duration.</li>
--   <li><a>satdaStartToCloseTimeout</a> - If set, specifies the maximum
--   duration a worker may take to process this activity task. This
--   overrides the default start-to-close timeout specified when
--   registering the activity type using <tt>RegisterActivityType</tt> .
--   The duration is specified in seconds, an integer greater than or equal
--   to <tt>0</tt> . You can use <tt>NONE</tt> to specify unlimited
--   duration.</li>
--   <li><a>satdaActivityType</a> - The type of the activity task to
--   schedule.</li>
--   <li><a>satdaActivityId</a> - The <tt>activityId</tt> of the activity
--   task. The specified string must not start or end with whitespace. It
--   must not contain a <tt>:</tt> (colon), <tt>/</tt> (slash), <tt>|</tt>
--   (vertical bar), or any control characters (<tt>u0000-u001f</tt> |
--   <tt>u007f-u009f</tt> ). Also, it must not contain the literal string
--   <tt>arn</tt> .</li>
--   </ul>
scheduleActivityTaskDecisionAttributes :: ActivityType -> Text -> ScheduleActivityTaskDecisionAttributes

-- | Data attached to the event that can be used by the decider in
--   subsequent workflow tasks. This data isn't sent to the activity.
satdaControl :: Lens' ScheduleActivityTaskDecisionAttributes (Maybe Text)

-- | If set, specifies the maximum time before which a worker processing a
--   task of this type must report progress by calling
--   <tt>RecordActivityTaskHeartbeat</tt> . If the timeout is exceeded, the
--   activity task is automatically timed out. If the worker subsequently
--   attempts to record a heartbeat or returns a result, it is ignored.
--   This overrides the default heartbeat timeout specified when
--   registering the activity type using <tt>RegisterActivityType</tt> .
--   The duration is specified in seconds, an integer greater than or equal
--   to <tt>0</tt> . You can use <tt>NONE</tt> to specify unlimited
--   duration.
satdaHeartbeatTimeout :: Lens' ScheduleActivityTaskDecisionAttributes (Maybe Text)

-- | The maximum duration for this activity task. The duration is specified
--   in seconds, an integer greater than or equal to <tt>0</tt> . You can
--   use <tt>NONE</tt> to specify unlimited duration.
satdaScheduleToCloseTimeout :: Lens' ScheduleActivityTaskDecisionAttributes (Maybe Text)

-- | The input provided to the activity task.
satdaInput :: Lens' ScheduleActivityTaskDecisionAttributes (Maybe Text)

-- | If set, specifies the name of the task list in which to schedule the
--   activity task. If not specified, the <tt>defaultTaskList</tt>
--   registered with the activity type is used. The specified string must
--   not start or end with whitespace. It must not contain a <tt>:</tt>
--   (colon), <tt>/</tt> (slash), <tt>|</tt> (vertical bar), or any control
--   characters (<tt>u0000-u001f</tt> | <tt>u007f-u009f</tt> ). Also, it
--   must not contain the literal string <tt>arn</tt> .
satdaTaskList :: Lens' ScheduleActivityTaskDecisionAttributes (Maybe TaskList)

-- | If set, specifies the priority with which the activity task is to be
--   assigned to a worker. This overrides the defaultTaskPriority specified
--   when registering the activity type using <tt>RegisterActivityType</tt>
--   . Valid values are integers that range from Java's
--   <tt>Integer.MIN_VALUE</tt> (-2147483648) to <tt>Integer.MAX_VALUE</tt>
--   (2147483647). Higher numbers indicate higher priority. For more
--   information about setting task priority, see <a>Setting Task
--   Priority</a> in the <i>Amazon SWF Developer Guide</i> .
satdaTaskPriority :: Lens' ScheduleActivityTaskDecisionAttributes (Maybe Text)

-- | If set, specifies the maximum duration the activity task can wait to
--   be assigned to a worker. This overrides the default schedule-to-start
--   timeout specified when registering the activity type using
--   <tt>RegisterActivityType</tt> . The duration is specified in seconds,
--   an integer greater than or equal to <tt>0</tt> . You can use
--   <tt>NONE</tt> to specify unlimited duration.
satdaScheduleToStartTimeout :: Lens' ScheduleActivityTaskDecisionAttributes (Maybe Text)

-- | If set, specifies the maximum duration a worker may take to process
--   this activity task. This overrides the default start-to-close timeout
--   specified when registering the activity type using
--   <tt>RegisterActivityType</tt> . The duration is specified in seconds,
--   an integer greater than or equal to <tt>0</tt> . You can use
--   <tt>NONE</tt> to specify unlimited duration.
satdaStartToCloseTimeout :: Lens' ScheduleActivityTaskDecisionAttributes (Maybe Text)

-- | The type of the activity task to schedule.
satdaActivityType :: Lens' ScheduleActivityTaskDecisionAttributes ActivityType

-- | The <tt>activityId</tt> of the activity task. The specified string
--   must not start or end with whitespace. It must not contain a
--   <tt>:</tt> (colon), <tt>/</tt> (slash), <tt>|</tt> (vertical bar), or
--   any control characters (<tt>u0000-u001f</tt> | <tt>u007f-u009f</tt> ).
--   Also, it must not contain the literal string <tt>arn</tt> .
satdaActivityId :: Lens' ScheduleActivityTaskDecisionAttributes Text

-- | Provides the details of the <tt>ScheduleActivityTaskFailed</tt> event.
--   
--   <i>See:</i> <a>scheduleActivityTaskFailedEventAttributes</a> smart
--   constructor.
data ScheduleActivityTaskFailedEventAttributes

-- | Creates a value of <a>ScheduleActivityTaskFailedEventAttributes</a>
--   with the minimum fields required to make a request.
--   
--   Use one of the following lenses to modify other fields as desired:
--   
--   <ul>
--   <li><a>satfeaActivityType</a> - The activity type provided in the
--   <tt>ScheduleActivityTask</tt> decision that failed.</li>
--   <li><a>satfeaActivityId</a> - The activityId provided in the
--   <tt>ScheduleActivityTask</tt> decision that failed.</li>
--   <li><a>satfeaCause</a> - The cause of the failure. This information is
--   generated by the system and can be useful for diagnostic
--   purposes.</li>
--   <li><a>satfeaDecisionTaskCompletedEventId</a> - The ID of the
--   <tt>DecisionTaskCompleted</tt> event corresponding to the decision
--   that resulted in the scheduling of this activity task. This
--   information can be useful for diagnosing problems by tracing back the
--   chain of events leading up to this event.</li>
--   </ul>
scheduleActivityTaskFailedEventAttributes :: ActivityType -> Text -> ScheduleActivityTaskFailedCause -> Integer -> ScheduleActivityTaskFailedEventAttributes

-- | The activity type provided in the <tt>ScheduleActivityTask</tt>
--   decision that failed.
satfeaActivityType :: Lens' ScheduleActivityTaskFailedEventAttributes ActivityType

-- | The activityId provided in the <tt>ScheduleActivityTask</tt> decision
--   that failed.
satfeaActivityId :: Lens' ScheduleActivityTaskFailedEventAttributes Text

-- | The cause of the failure. This information is generated by the system
--   and can be useful for diagnostic purposes.
satfeaCause :: Lens' ScheduleActivityTaskFailedEventAttributes ScheduleActivityTaskFailedCause

-- | The ID of the <tt>DecisionTaskCompleted</tt> event corresponding to
--   the decision that resulted in the scheduling of this activity task.
--   This information can be useful for diagnosing problems by tracing back
--   the chain of events leading up to this event.
satfeaDecisionTaskCompletedEventId :: Lens' ScheduleActivityTaskFailedEventAttributes Integer

-- | Decision attributes specified in
--   <tt>scheduleLambdaFunctionDecisionAttributes</tt> within the list of
--   decisions <tt>decisions</tt> passed to
--   <tt>RespondDecisionTaskCompleted</tt> .
--   
--   <i>See:</i> <a>scheduleLambdaFunctionDecisionAttributes</a> smart
--   constructor.
data ScheduleLambdaFunctionDecisionAttributes

-- | Creates a value of <a>ScheduleLambdaFunctionDecisionAttributes</a>
--   with the minimum fields required to make a request.
--   
--   Use one of the following lenses to modify other fields as desired:
--   
--   <ul>
--   <li><a>slfdaControl</a> - The data attached to the event that the
--   decider can use in subsequent workflow tasks. This data isn't sent to
--   the Lambda task.</li>
--   <li><a>slfdaInput</a> - The optional input data to be supplied to the
--   Lambda function.</li>
--   <li><a>slfdaStartToCloseTimeout</a> - The timeout value, in seconds,
--   after which the Lambda function is considered to be failed once it has
--   started. This can be any integer from 1-300 (1s-5m). If no value is
--   supplied, than a default value of 300s is assumed.</li>
--   <li><a>slfdaId</a> - A string that identifies the Lambda function
--   execution in the event history.</li>
--   <li><a>slfdaName</a> - The name, or ARN, of the Lambda function to
--   schedule.</li>
--   </ul>
scheduleLambdaFunctionDecisionAttributes :: Text -> Text -> ScheduleLambdaFunctionDecisionAttributes

-- | The data attached to the event that the decider can use in subsequent
--   workflow tasks. This data isn't sent to the Lambda task.
slfdaControl :: Lens' ScheduleLambdaFunctionDecisionAttributes (Maybe Text)

-- | The optional input data to be supplied to the Lambda function.
slfdaInput :: Lens' ScheduleLambdaFunctionDecisionAttributes (Maybe Text)

-- | The timeout value, in seconds, after which the Lambda function is
--   considered to be failed once it has started. This can be any integer
--   from 1-300 (1s-5m). If no value is supplied, than a default value of
--   300s is assumed.
slfdaStartToCloseTimeout :: Lens' ScheduleLambdaFunctionDecisionAttributes (Maybe Text)

-- | A string that identifies the Lambda function execution in the event
--   history.
slfdaId :: Lens' ScheduleLambdaFunctionDecisionAttributes Text

-- | The name, or ARN, of the Lambda function to schedule.
slfdaName :: Lens' ScheduleLambdaFunctionDecisionAttributes Text

-- | Provides the details of the <tt>ScheduleLambdaFunctionFailed</tt>
--   event. It isn't set for other event types.
--   
--   <i>See:</i> <a>scheduleLambdaFunctionFailedEventAttributes</a> smart
--   constructor.
data ScheduleLambdaFunctionFailedEventAttributes

-- | Creates a value of <a>ScheduleLambdaFunctionFailedEventAttributes</a>
--   with the minimum fields required to make a request.
--   
--   Use one of the following lenses to modify other fields as desired:
--   
--   <ul>
--   <li><a>slffeaId</a> - The ID provided in the
--   <tt>ScheduleLambdaFunction</tt> decision that failed.</li>
--   <li><a>slffeaName</a> - The name of the Lambda function.</li>
--   <li><a>slffeaCause</a> - The cause of the failure. To help diagnose
--   issues, use this information to trace back the chain of events leading
--   up to this event.</li>
--   <li><a>slffeaDecisionTaskCompletedEventId</a> - The ID of the
--   <tt>LambdaFunctionCompleted</tt> event corresponding to the decision
--   that resulted in scheduling this Lambda task. To help diagnose issues,
--   use this information to trace back the chain of events leading up to
--   this event.</li>
--   </ul>
scheduleLambdaFunctionFailedEventAttributes :: Text -> Text -> ScheduleLambdaFunctionFailedCause -> Integer -> ScheduleLambdaFunctionFailedEventAttributes

-- | The ID provided in the <tt>ScheduleLambdaFunction</tt> decision that
--   failed.
slffeaId :: Lens' ScheduleLambdaFunctionFailedEventAttributes Text

-- | The name of the Lambda function.
slffeaName :: Lens' ScheduleLambdaFunctionFailedEventAttributes Text

-- | The cause of the failure. To help diagnose issues, use this
--   information to trace back the chain of events leading up to this
--   event.
slffeaCause :: Lens' ScheduleLambdaFunctionFailedEventAttributes ScheduleLambdaFunctionFailedCause

-- | The ID of the <tt>LambdaFunctionCompleted</tt> event corresponding to
--   the decision that resulted in scheduling this Lambda task. To help
--   diagnose issues, use this information to trace back the chain of
--   events leading up to this event.
slffeaDecisionTaskCompletedEventId :: Lens' ScheduleLambdaFunctionFailedEventAttributes Integer

-- | Provides the details of the <tt>SignalExternalWorkflowExecution</tt>
--   decision.
--   
--   <b>Access Control</b>
--   
--   You can use IAM policies to control this decision's access to Amazon
--   SWF resources as follows:
--   
--   <ul>
--   <li>Use a <tt>Resource</tt> element with the domain name to limit the
--   action to only specified domains.</li>
--   <li>Use an <tt>Action</tt> element to allow or deny permission to call
--   this action.</li>
--   <li>You cannot use an IAM policy to constrain this action's
--   parameters.</li>
--   </ul>
--   
--   If the caller doesn't have sufficient permissions to invoke the
--   action, or the parameter values fall outside the specified
--   constraints, the action fails. The associated event attribute's
--   <tt>cause</tt> parameter is set to <tt>OPERATION_NOT_PERMITTED</tt> .
--   For details and example IAM policies, see <a>Using IAM to Manage
--   Access to Amazon SWF Workflows</a> in the <i>Amazon SWF Developer
--   Guide</i> .
--   
--   <i>See:</i> <a>signalExternalWorkflowExecutionDecisionAttributes</a>
--   smart constructor.
data SignalExternalWorkflowExecutionDecisionAttributes

-- | Creates a value of
--   <a>SignalExternalWorkflowExecutionDecisionAttributes</a> with the
--   minimum fields required to make a request.
--   
--   Use one of the following lenses to modify other fields as desired:
--   
--   <ul>
--   <li><a>sewedaControl</a> - The data attached to the event that can be
--   used by the decider in subsequent decision tasks.</li>
--   <li><a>sewedaInput</a> - The input data to be provided with the
--   signal. The target workflow execution uses the signal name and input
--   data to process the signal.</li>
--   <li><a>sewedaRunId</a> - The <tt>runId</tt> of the workflow execution
--   to be signaled.</li>
--   <li><a>sewedaWorkflowId</a> - The <tt>workflowId</tt> of the workflow
--   execution to be signaled.</li>
--   <li><a>sewedaSignalName</a> - The name of the signal.The target
--   workflow execution uses the signal name and input to process the
--   signal.</li>
--   </ul>
signalExternalWorkflowExecutionDecisionAttributes :: Text -> Text -> SignalExternalWorkflowExecutionDecisionAttributes

-- | The data attached to the event that can be used by the decider in
--   subsequent decision tasks.
sewedaControl :: Lens' SignalExternalWorkflowExecutionDecisionAttributes (Maybe Text)

-- | The input data to be provided with the signal. The target workflow
--   execution uses the signal name and input data to process the signal.
sewedaInput :: Lens' SignalExternalWorkflowExecutionDecisionAttributes (Maybe Text)

-- | The <tt>runId</tt> of the workflow execution to be signaled.
sewedaRunId :: Lens' SignalExternalWorkflowExecutionDecisionAttributes (Maybe Text)

-- | The <tt>workflowId</tt> of the workflow execution to be signaled.
sewedaWorkflowId :: Lens' SignalExternalWorkflowExecutionDecisionAttributes Text

-- | The name of the signal.The target workflow execution uses the signal
--   name and input to process the signal.
sewedaSignalName :: Lens' SignalExternalWorkflowExecutionDecisionAttributes Text

-- | Provides the details of the
--   <tt>SignalExternalWorkflowExecutionFailed</tt> event.
--   
--   <i>See:</i>
--   <a>signalExternalWorkflowExecutionFailedEventAttributes</a> smart
--   constructor.
data SignalExternalWorkflowExecutionFailedEventAttributes

-- | Creates a value of
--   <a>SignalExternalWorkflowExecutionFailedEventAttributes</a> with the
--   minimum fields required to make a request.
--   
--   Use one of the following lenses to modify other fields as desired:
--   
--   <ul>
--   <li><a>sewefeaControl</a> - The data attached to the event that the
--   decider can use in subsequent workflow tasks. This data isn't sent to
--   the workflow execution.</li>
--   <li><a>sewefeaRunId</a> - The <tt>runId</tt> of the external workflow
--   execution that the signal was being delivered to.</li>
--   <li><a>sewefeaWorkflowId</a> - The <tt>workflowId</tt> of the external
--   workflow execution that the signal was being delivered to.</li>
--   <li><a>sewefeaCause</a> - The cause of the failure. This information
--   is generated by the system and can be useful for diagnostic
--   purposes.</li>
--   <li><a>sewefeaInitiatedEventId</a> - The ID of the
--   <tt>SignalExternalWorkflowExecutionInitiated</tt> event corresponding
--   to the <tt>SignalExternalWorkflowExecution</tt> decision to request
--   this signal. This information can be useful for diagnosing problems by
--   tracing back the chain of events leading up to this event.</li>
--   <li><a>sewefeaDecisionTaskCompletedEventId</a> - The ID of the
--   <tt>DecisionTaskCompleted</tt> event corresponding to the decision
--   task that resulted in the <tt>SignalExternalWorkflowExecution</tt>
--   decision for this signal. This information can be useful for
--   diagnosing problems by tracing back the chain of events leading up to
--   this event.</li>
--   </ul>
signalExternalWorkflowExecutionFailedEventAttributes :: Text -> SignalExternalWorkflowExecutionFailedCause -> Integer -> Integer -> SignalExternalWorkflowExecutionFailedEventAttributes

-- | The data attached to the event that the decider can use in subsequent
--   workflow tasks. This data isn't sent to the workflow execution.
sewefeaControl :: Lens' SignalExternalWorkflowExecutionFailedEventAttributes (Maybe Text)

-- | The <tt>runId</tt> of the external workflow execution that the signal
--   was being delivered to.
sewefeaRunId :: Lens' SignalExternalWorkflowExecutionFailedEventAttributes (Maybe Text)

-- | The <tt>workflowId</tt> of the external workflow execution that the
--   signal was being delivered to.
sewefeaWorkflowId :: Lens' SignalExternalWorkflowExecutionFailedEventAttributes Text

-- | The cause of the failure. This information is generated by the system
--   and can be useful for diagnostic purposes.
sewefeaCause :: Lens' SignalExternalWorkflowExecutionFailedEventAttributes SignalExternalWorkflowExecutionFailedCause

-- | The ID of the <tt>SignalExternalWorkflowExecutionInitiated</tt> event
--   corresponding to the <tt>SignalExternalWorkflowExecution</tt> decision
--   to request this signal. This information can be useful for diagnosing
--   problems by tracing back the chain of events leading up to this event.
sewefeaInitiatedEventId :: Lens' SignalExternalWorkflowExecutionFailedEventAttributes Integer

-- | The ID of the <tt>DecisionTaskCompleted</tt> event corresponding to
--   the decision task that resulted in the
--   <tt>SignalExternalWorkflowExecution</tt> decision for this signal.
--   This information can be useful for diagnosing problems by tracing back
--   the chain of events leading up to this event.
sewefeaDecisionTaskCompletedEventId :: Lens' SignalExternalWorkflowExecutionFailedEventAttributes Integer

-- | Provides the details of the
--   <tt>SignalExternalWorkflowExecutionInitiated</tt> event.
--   
--   <i>See:</i>
--   <a>signalExternalWorkflowExecutionInitiatedEventAttributes</a> smart
--   constructor.
data SignalExternalWorkflowExecutionInitiatedEventAttributes

-- | Creates a value of
--   <a>SignalExternalWorkflowExecutionInitiatedEventAttributes</a> with
--   the minimum fields required to make a request.
--   
--   Use one of the following lenses to modify other fields as desired:
--   
--   <ul>
--   <li><a>seweieaControl</a> - Data attached to the event that can be
--   used by the decider in subsequent decision tasks.</li>
--   <li><a>seweieaInput</a> - The input provided to the signal.</li>
--   <li><a>seweieaRunId</a> - The <tt>runId</tt> of the external workflow
--   execution to send the signal to.</li>
--   <li><a>seweieaWorkflowId</a> - The <tt>workflowId</tt> of the external
--   workflow execution.</li>
--   <li><a>seweieaSignalName</a> - The name of the signal.</li>
--   <li><a>seweieaDecisionTaskCompletedEventId</a> - The ID of the
--   <tt>DecisionTaskCompleted</tt> event corresponding to the decision
--   task that resulted in the <tt>SignalExternalWorkflowExecution</tt>
--   decision for this signal. This information can be useful for
--   diagnosing problems by tracing back the chain of events leading up to
--   this event.</li>
--   </ul>
signalExternalWorkflowExecutionInitiatedEventAttributes :: Text -> Text -> Integer -> SignalExternalWorkflowExecutionInitiatedEventAttributes

-- | Data attached to the event that can be used by the decider in
--   subsequent decision tasks.
seweieaControl :: Lens' SignalExternalWorkflowExecutionInitiatedEventAttributes (Maybe Text)

-- | The input provided to the signal.
seweieaInput :: Lens' SignalExternalWorkflowExecutionInitiatedEventAttributes (Maybe Text)

-- | The <tt>runId</tt> of the external workflow execution to send the
--   signal to.
seweieaRunId :: Lens' SignalExternalWorkflowExecutionInitiatedEventAttributes (Maybe Text)

-- | The <tt>workflowId</tt> of the external workflow execution.
seweieaWorkflowId :: Lens' SignalExternalWorkflowExecutionInitiatedEventAttributes Text

-- | The name of the signal.
seweieaSignalName :: Lens' SignalExternalWorkflowExecutionInitiatedEventAttributes Text

-- | The ID of the <tt>DecisionTaskCompleted</tt> event corresponding to
--   the decision task that resulted in the
--   <tt>SignalExternalWorkflowExecution</tt> decision for this signal.
--   This information can be useful for diagnosing problems by tracing back
--   the chain of events leading up to this event.
seweieaDecisionTaskCompletedEventId :: Lens' SignalExternalWorkflowExecutionInitiatedEventAttributes Integer

-- | Provides the details of the <tt>StartChildWorkflowExecution</tt>
--   decision.
--   
--   <b>Access Control</b>
--   
--   You can use IAM policies to control this decision's access to Amazon
--   SWF resources as follows:
--   
--   <ul>
--   <li>Use a <tt>Resource</tt> element with the domain name to limit the
--   action to only specified domains.</li>
--   <li>Use an <tt>Action</tt> element to allow or deny permission to call
--   this action.</li>
--   <li>Constrain the following parameters by using a <tt>Condition</tt>
--   element with the appropriate keys.</li>
--   <li><tt>tagList.member.N</tt> – The key is "swf:tagList.N" where N is
--   the tag number from 0 to 4, inclusive.</li>
--   <li><tt>taskList</tt> – String constraint. The key is
--   <tt>swf:taskList.name</tt> .</li>
--   <li><tt>workflowType.name</tt> – String constraint. The key is
--   <tt>swf:workflowType.name</tt> .</li>
--   <li><tt>workflowType.version</tt> – String constraint. The key is
--   <tt>swf:workflowType.version</tt> .</li>
--   </ul>
--   
--   If the caller doesn't have sufficient permissions to invoke the
--   action, or the parameter values fall outside the specified
--   constraints, the action fails. The associated event attribute's
--   <tt>cause</tt> parameter is set to <tt>OPERATION_NOT_PERMITTED</tt> .
--   For details and example IAM policies, see <a>Using IAM to Manage
--   Access to Amazon SWF Workflows</a> in the <i>Amazon SWF Developer
--   Guide</i> .
--   
--   <i>See:</i> <a>startChildWorkflowExecutionDecisionAttributes</a> smart
--   constructor.
data StartChildWorkflowExecutionDecisionAttributes

-- | Creates a value of
--   <a>StartChildWorkflowExecutionDecisionAttributes</a> with the minimum
--   fields required to make a request.
--   
--   Use one of the following lenses to modify other fields as desired:
--   
--   <ul>
--   <li><a>scwedaControl</a> - The data attached to the event that can be
--   used by the decider in subsequent workflow tasks. This data isn't sent
--   to the child workflow execution.</li>
--   <li><a>scwedaTagList</a> - The list of tags to associate with the
--   child workflow execution. A maximum of 5 tags can be specified. You
--   can list workflow executions with a specific tag by calling
--   <tt>ListOpenWorkflowExecutions</tt> or
--   <tt>ListClosedWorkflowExecutions</tt> and specifying a
--   <a>TagFilter</a> .</li>
--   <li><a>scwedaTaskStartToCloseTimeout</a> - Specifies the maximum
--   duration of decision tasks for this workflow execution. This parameter
--   overrides the <tt>defaultTaskStartToCloseTimout</tt> specified when
--   registering the workflow type using <tt>RegisterWorkflowType</tt> .
--   The duration is specified in seconds, an integer greater than or equal
--   to <tt>0</tt> . You can use <tt>NONE</tt> to specify unlimited
--   duration.</li>
--   <li><a>scwedaLambdaRole</a> - The IAM role attached to the child
--   workflow execution.</li>
--   <li><a>scwedaInput</a> - The input to be provided to the workflow
--   execution.</li>
--   <li><a>scwedaExecutionStartToCloseTimeout</a> - The total duration for
--   this workflow execution. This overrides the
--   defaultExecutionStartToCloseTimeout specified when registering the
--   workflow type. The duration is specified in seconds, an integer
--   greater than or equal to <tt>0</tt> . You can use <tt>NONE</tt> to
--   specify unlimited duration.</li>
--   <li><a>scwedaTaskList</a> - The name of the task list to be used for
--   decision tasks of the child workflow execution. The specified string
--   must not start or end with whitespace. It must not contain a
--   <tt>:</tt> (colon), <tt>/</tt> (slash), <tt>|</tt> (vertical bar), or
--   any control characters (<tt>u0000-u001f</tt> | <tt>u007f-u009f</tt> ).
--   Also, it must not contain the literal string <tt>arn</tt> .</li>
--   <li><a>scwedaTaskPriority</a> - A task priority that, if set,
--   specifies the priority for a decision task of this workflow execution.
--   This overrides the defaultTaskPriority specified when registering the
--   workflow type. Valid values are integers that range from Java's
--   <tt>Integer.MIN_VALUE</tt> (-2147483648) to <tt>Integer.MAX_VALUE</tt>
--   (2147483647). Higher numbers indicate higher priority. For more
--   information about setting task priority, see <a>Setting Task
--   Priority</a> in the <i>Amazon SWF Developer Guide</i> .</li>
--   <li><a>scwedaChildPolicy</a> - If set, specifies the policy to use for
--   the child workflow executions if the workflow execution being started
--   is terminated by calling the <tt>TerminateWorkflowExecution</tt>
--   action explicitly or due to an expired timeout. This policy overrides
--   the default child policy specified when registering the workflow type
--   using <tt>RegisterWorkflowType</tt> . The supported child policies
--   are: * <tt>TERMINATE</tt> – The child executions are terminated. *
--   <tt>REQUEST_CANCEL</tt> – A request to cancel is attempted for each
--   child execution by recording a
--   <tt>WorkflowExecutionCancelRequested</tt> event in its history. It is
--   up to the decider to take appropriate actions when it receives an
--   execution history with this event. * <tt>ABANDON</tt> – No action is
--   taken. The child executions continue to run.</li>
--   <li><a>scwedaWorkflowType</a> - The type of the workflow execution to
--   be started.</li>
--   <li><a>scwedaWorkflowId</a> - The <tt>workflowId</tt> of the workflow
--   execution. The specified string must not start or end with whitespace.
--   It must not contain a <tt>:</tt> (colon), <tt>/</tt> (slash),
--   <tt>|</tt> (vertical bar), or any control characters
--   (<tt>u0000-u001f</tt> | <tt>u007f-u009f</tt> ). Also, it must not
--   contain the literal string <tt>arn</tt> .</li>
--   </ul>
startChildWorkflowExecutionDecisionAttributes :: WorkflowType -> Text -> StartChildWorkflowExecutionDecisionAttributes

-- | The data attached to the event that can be used by the decider in
--   subsequent workflow tasks. This data isn't sent to the child workflow
--   execution.
scwedaControl :: Lens' StartChildWorkflowExecutionDecisionAttributes (Maybe Text)

-- | The list of tags to associate with the child workflow execution. A
--   maximum of 5 tags can be specified. You can list workflow executions
--   with a specific tag by calling <tt>ListOpenWorkflowExecutions</tt> or
--   <tt>ListClosedWorkflowExecutions</tt> and specifying a
--   <a>TagFilter</a> .
scwedaTagList :: Lens' StartChildWorkflowExecutionDecisionAttributes [Text]

-- | Specifies the maximum duration of decision tasks for this workflow
--   execution. This parameter overrides the
--   <tt>defaultTaskStartToCloseTimout</tt> specified when registering the
--   workflow type using <tt>RegisterWorkflowType</tt> . The duration is
--   specified in seconds, an integer greater than or equal to <tt>0</tt> .
--   You can use <tt>NONE</tt> to specify unlimited duration.
scwedaTaskStartToCloseTimeout :: Lens' StartChildWorkflowExecutionDecisionAttributes (Maybe Text)

-- | The IAM role attached to the child workflow execution.
scwedaLambdaRole :: Lens' StartChildWorkflowExecutionDecisionAttributes (Maybe Text)

-- | The input to be provided to the workflow execution.
scwedaInput :: Lens' StartChildWorkflowExecutionDecisionAttributes (Maybe Text)

-- | The total duration for this workflow execution. This overrides the
--   defaultExecutionStartToCloseTimeout specified when registering the
--   workflow type. The duration is specified in seconds, an integer
--   greater than or equal to <tt>0</tt> . You can use <tt>NONE</tt> to
--   specify unlimited duration.
scwedaExecutionStartToCloseTimeout :: Lens' StartChildWorkflowExecutionDecisionAttributes (Maybe Text)

-- | The name of the task list to be used for decision tasks of the child
--   workflow execution. The specified string must not start or end with
--   whitespace. It must not contain a <tt>:</tt> (colon), <tt>/</tt>
--   (slash), <tt>|</tt> (vertical bar), or any control characters
--   (<tt>u0000-u001f</tt> | <tt>u007f-u009f</tt> ). Also, it must not
--   contain the literal string <tt>arn</tt> .
scwedaTaskList :: Lens' StartChildWorkflowExecutionDecisionAttributes (Maybe TaskList)

-- | A task priority that, if set, specifies the priority for a decision
--   task of this workflow execution. This overrides the
--   defaultTaskPriority specified when registering the workflow type.
--   Valid values are integers that range from Java's
--   <tt>Integer.MIN_VALUE</tt> (-2147483648) to <tt>Integer.MAX_VALUE</tt>
--   (2147483647). Higher numbers indicate higher priority. For more
--   information about setting task priority, see <a>Setting Task
--   Priority</a> in the <i>Amazon SWF Developer Guide</i> .
scwedaTaskPriority :: Lens' StartChildWorkflowExecutionDecisionAttributes (Maybe Text)

-- | If set, specifies the policy to use for the child workflow executions
--   if the workflow execution being started is terminated by calling the
--   <tt>TerminateWorkflowExecution</tt> action explicitly or due to an
--   expired timeout. This policy overrides the default child policy
--   specified when registering the workflow type using
--   <tt>RegisterWorkflowType</tt> . The supported child policies are: *
--   <tt>TERMINATE</tt> – The child executions are terminated. *
--   <tt>REQUEST_CANCEL</tt> – A request to cancel is attempted for each
--   child execution by recording a
--   <tt>WorkflowExecutionCancelRequested</tt> event in its history. It is
--   up to the decider to take appropriate actions when it receives an
--   execution history with this event. * <tt>ABANDON</tt> – No action is
--   taken. The child executions continue to run.
scwedaChildPolicy :: Lens' StartChildWorkflowExecutionDecisionAttributes (Maybe ChildPolicy)

-- | The type of the workflow execution to be started.
scwedaWorkflowType :: Lens' StartChildWorkflowExecutionDecisionAttributes WorkflowType

-- | The <tt>workflowId</tt> of the workflow execution. The specified
--   string must not start or end with whitespace. It must not contain a
--   <tt>:</tt> (colon), <tt>/</tt> (slash), <tt>|</tt> (vertical bar), or
--   any control characters (<tt>u0000-u001f</tt> | <tt>u007f-u009f</tt> ).
--   Also, it must not contain the literal string <tt>arn</tt> .
scwedaWorkflowId :: Lens' StartChildWorkflowExecutionDecisionAttributes Text

-- | Provides the details of the <tt>StartChildWorkflowExecutionFailed</tt>
--   event.
--   
--   <i>See:</i> <a>startChildWorkflowExecutionFailedEventAttributes</a>
--   smart constructor.
data StartChildWorkflowExecutionFailedEventAttributes

-- | Creates a value of
--   <a>StartChildWorkflowExecutionFailedEventAttributes</a> with the
--   minimum fields required to make a request.
--   
--   Use one of the following lenses to modify other fields as desired:
--   
--   <ul>
--   <li><a>scwefeaControl</a> - The data attached to the event that the
--   decider can use in subsequent workflow tasks. This data isn't sent to
--   the child workflow execution.</li>
--   <li><a>scwefeaWorkflowType</a> - The workflow type provided in the
--   <tt>StartChildWorkflowExecution</tt> <a>Decision</a> that failed.</li>
--   <li><a>scwefeaCause</a> - The cause of the failure. This information
--   is generated by the system and can be useful for diagnostic
--   purposes.</li>
--   <li><a>scwefeaWorkflowId</a> - The <tt>workflowId</tt> of the child
--   workflow execution.</li>
--   <li><a>scwefeaInitiatedEventId</a> - When the <tt>cause</tt> is
--   <tt>WORKFLOW_ALREADY_RUNNING</tt> , <tt>initiatedEventId</tt> is the
--   ID of the <tt>StartChildWorkflowExecutionInitiated</tt> event that
--   corresponds to the <tt>StartChildWorkflowExecution</tt>
--   <a>Decision</a> to start the workflow execution. You can use this
--   information to diagnose problems by tracing back the chain of events
--   leading up to this event. When the <tt>cause</tt> isn't
--   <tt>WORKFLOW_ALREADY_RUNNING</tt> , <tt>initiatedEventId</tt> is set
--   to <tt>0</tt> because the
--   <tt>StartChildWorkflowExecutionInitiated</tt> event doesn't
--   exist.</li>
--   <li><a>scwefeaDecisionTaskCompletedEventId</a> - The ID of the
--   <tt>DecisionTaskCompleted</tt> event corresponding to the decision
--   task that resulted in the <tt>StartChildWorkflowExecution</tt>
--   <a>Decision</a> to request this child workflow execution. This
--   information can be useful for diagnosing problems by tracing back the
--   chain of events.</li>
--   </ul>
startChildWorkflowExecutionFailedEventAttributes :: WorkflowType -> StartChildWorkflowExecutionFailedCause -> Text -> Integer -> Integer -> StartChildWorkflowExecutionFailedEventAttributes

-- | The data attached to the event that the decider can use in subsequent
--   workflow tasks. This data isn't sent to the child workflow execution.
scwefeaControl :: Lens' StartChildWorkflowExecutionFailedEventAttributes (Maybe Text)

-- | The workflow type provided in the <tt>StartChildWorkflowExecution</tt>
--   <a>Decision</a> that failed.
scwefeaWorkflowType :: Lens' StartChildWorkflowExecutionFailedEventAttributes WorkflowType

-- | The cause of the failure. This information is generated by the system
--   and can be useful for diagnostic purposes.
scwefeaCause :: Lens' StartChildWorkflowExecutionFailedEventAttributes StartChildWorkflowExecutionFailedCause

-- | The <tt>workflowId</tt> of the child workflow execution.
scwefeaWorkflowId :: Lens' StartChildWorkflowExecutionFailedEventAttributes Text

-- | When the <tt>cause</tt> is <tt>WORKFLOW_ALREADY_RUNNING</tt> ,
--   <tt>initiatedEventId</tt> is the ID of the
--   <tt>StartChildWorkflowExecutionInitiated</tt> event that corresponds
--   to the <tt>StartChildWorkflowExecution</tt> <a>Decision</a> to start
--   the workflow execution. You can use this information to diagnose
--   problems by tracing back the chain of events leading up to this event.
--   When the <tt>cause</tt> isn't <tt>WORKFLOW_ALREADY_RUNNING</tt> ,
--   <tt>initiatedEventId</tt> is set to <tt>0</tt> because the
--   <tt>StartChildWorkflowExecutionInitiated</tt> event doesn't exist.
scwefeaInitiatedEventId :: Lens' StartChildWorkflowExecutionFailedEventAttributes Integer

-- | The ID of the <tt>DecisionTaskCompleted</tt> event corresponding to
--   the decision task that resulted in the
--   <tt>StartChildWorkflowExecution</tt> <a>Decision</a> to request this
--   child workflow execution. This information can be useful for
--   diagnosing problems by tracing back the chain of events.
scwefeaDecisionTaskCompletedEventId :: Lens' StartChildWorkflowExecutionFailedEventAttributes Integer

-- | Provides the details of the
--   <tt>StartChildWorkflowExecutionInitiated</tt> event.
--   
--   <i>See:</i> <a>startChildWorkflowExecutionInitiatedEventAttributes</a>
--   smart constructor.
data StartChildWorkflowExecutionInitiatedEventAttributes

-- | Creates a value of
--   <a>StartChildWorkflowExecutionInitiatedEventAttributes</a> with the
--   minimum fields required to make a request.
--   
--   Use one of the following lenses to modify other fields as desired:
--   
--   <ul>
--   <li><a>scweieaControl</a> - Data attached to the event that can be
--   used by the decider in subsequent decision tasks. This data isn't sent
--   to the activity.</li>
--   <li><a>scweieaTagList</a> - The list of tags to associated with the
--   child workflow execution.</li>
--   <li><a>scweieaTaskStartToCloseTimeout</a> - The maximum duration
--   allowed for the decision tasks for this workflow execution. The
--   duration is specified in seconds, an integer greater than or equal to
--   <tt>0</tt> . You can use <tt>NONE</tt> to specify unlimited
--   duration.</li>
--   <li><a>scweieaLambdaRole</a> - The IAM role to attach to the child
--   workflow execution.</li>
--   <li><a>scweieaInput</a> - The inputs provided to the child workflow
--   execution.</li>
--   <li><a>scweieaExecutionStartToCloseTimeout</a> - The maximum duration
--   for the child workflow execution. If the workflow execution isn't
--   closed within this duration, it is timed out and force-terminated. The
--   duration is specified in seconds, an integer greater than or equal to
--   <tt>0</tt> . You can use <tt>NONE</tt> to specify unlimited
--   duration.</li>
--   <li><a>scweieaTaskPriority</a> - The priority assigned for the
--   decision tasks for this workflow execution. Valid values are integers
--   that range from Java's <tt>Integer.MIN_VALUE</tt> (-2147483648) to
--   <tt>Integer.MAX_VALUE</tt> (2147483647). Higher numbers indicate
--   higher priority. For more information about setting task priority, see
--   <a>Setting Task Priority</a> in the <i>Amazon SWF Developer Guide</i>
--   .</li>
--   <li><a>scweieaWorkflowId</a> - The <tt>workflowId</tt> of the child
--   workflow execution.</li>
--   <li><a>scweieaWorkflowType</a> - The type of the child workflow
--   execution.</li>
--   <li><a>scweieaTaskList</a> - The name of the task list used for the
--   decision tasks of the child workflow execution.</li>
--   <li><a>scweieaDecisionTaskCompletedEventId</a> - The ID of the
--   <tt>DecisionTaskCompleted</tt> event corresponding to the decision
--   task that resulted in the <tt>StartChildWorkflowExecution</tt>
--   <a>Decision</a> to request this child workflow execution. This
--   information can be useful for diagnosing problems by tracing back the
--   cause of events.</li>
--   <li><a>scweieaChildPolicy</a> - The policy to use for the child
--   workflow executions if this execution gets terminated by explicitly
--   calling the <tt>TerminateWorkflowExecution</tt> action or due to an
--   expired timeout. The supported child policies are: *
--   <tt>TERMINATE</tt> – The child executions are terminated. *
--   <tt>REQUEST_CANCEL</tt> – A request to cancel is attempted for each
--   child execution by recording a
--   <tt>WorkflowExecutionCancelRequested</tt> event in its history. It is
--   up to the decider to take appropriate actions when it receives an
--   execution history with this event. * <tt>ABANDON</tt> – No action is
--   taken. The child executions continue to run.</li>
--   </ul>
startChildWorkflowExecutionInitiatedEventAttributes :: Text -> WorkflowType -> TaskList -> Integer -> ChildPolicy -> StartChildWorkflowExecutionInitiatedEventAttributes

-- | Data attached to the event that can be used by the decider in
--   subsequent decision tasks. This data isn't sent to the activity.
scweieaControl :: Lens' StartChildWorkflowExecutionInitiatedEventAttributes (Maybe Text)

-- | The list of tags to associated with the child workflow execution.
scweieaTagList :: Lens' StartChildWorkflowExecutionInitiatedEventAttributes [Text]

-- | The maximum duration allowed for the decision tasks for this workflow
--   execution. The duration is specified in seconds, an integer greater
--   than or equal to <tt>0</tt> . You can use <tt>NONE</tt> to specify
--   unlimited duration.
scweieaTaskStartToCloseTimeout :: Lens' StartChildWorkflowExecutionInitiatedEventAttributes (Maybe Text)

-- | The IAM role to attach to the child workflow execution.
scweieaLambdaRole :: Lens' StartChildWorkflowExecutionInitiatedEventAttributes (Maybe Text)

-- | The inputs provided to the child workflow execution.
scweieaInput :: Lens' StartChildWorkflowExecutionInitiatedEventAttributes (Maybe Text)

-- | The maximum duration for the child workflow execution. If the workflow
--   execution isn't closed within this duration, it is timed out and
--   force-terminated. The duration is specified in seconds, an integer
--   greater than or equal to <tt>0</tt> . You can use <tt>NONE</tt> to
--   specify unlimited duration.
scweieaExecutionStartToCloseTimeout :: Lens' StartChildWorkflowExecutionInitiatedEventAttributes (Maybe Text)

-- | The priority assigned for the decision tasks for this workflow
--   execution. Valid values are integers that range from Java's
--   <tt>Integer.MIN_VALUE</tt> (-2147483648) to <tt>Integer.MAX_VALUE</tt>
--   (2147483647). Higher numbers indicate higher priority. For more
--   information about setting task priority, see <a>Setting Task
--   Priority</a> in the <i>Amazon SWF Developer Guide</i> .
scweieaTaskPriority :: Lens' StartChildWorkflowExecutionInitiatedEventAttributes (Maybe Text)

-- | The <tt>workflowId</tt> of the child workflow execution.
scweieaWorkflowId :: Lens' StartChildWorkflowExecutionInitiatedEventAttributes Text

-- | The type of the child workflow execution.
scweieaWorkflowType :: Lens' StartChildWorkflowExecutionInitiatedEventAttributes WorkflowType

-- | The name of the task list used for the decision tasks of the child
--   workflow execution.
scweieaTaskList :: Lens' StartChildWorkflowExecutionInitiatedEventAttributes TaskList

-- | The ID of the <tt>DecisionTaskCompleted</tt> event corresponding to
--   the decision task that resulted in the
--   <tt>StartChildWorkflowExecution</tt> <a>Decision</a> to request this
--   child workflow execution. This information can be useful for
--   diagnosing problems by tracing back the cause of events.
scweieaDecisionTaskCompletedEventId :: Lens' StartChildWorkflowExecutionInitiatedEventAttributes Integer

-- | The policy to use for the child workflow executions if this execution
--   gets terminated by explicitly calling the
--   <tt>TerminateWorkflowExecution</tt> action or due to an expired
--   timeout. The supported child policies are: * <tt>TERMINATE</tt> – The
--   child executions are terminated. * <tt>REQUEST_CANCEL</tt> – A request
--   to cancel is attempted for each child execution by recording a
--   <tt>WorkflowExecutionCancelRequested</tt> event in its history. It is
--   up to the decider to take appropriate actions when it receives an
--   execution history with this event. * <tt>ABANDON</tt> – No action is
--   taken. The child executions continue to run.
scweieaChildPolicy :: Lens' StartChildWorkflowExecutionInitiatedEventAttributes ChildPolicy

-- | Provides the details of the <tt>StartLambdaFunctionFailed</tt> event.
--   It isn't set for other event types.
--   
--   <i>See:</i> <a>startLambdaFunctionFailedEventAttributes</a> smart
--   constructor.
data StartLambdaFunctionFailedEventAttributes

-- | Creates a value of <a>StartLambdaFunctionFailedEventAttributes</a>
--   with the minimum fields required to make a request.
--   
--   Use one of the following lenses to modify other fields as desired:
--   
--   <ul>
--   <li><a>sScheduledEventId</a> - The ID of the
--   <tt>ActivityTaskScheduled</tt> event that was recorded when this
--   activity task was scheduled. To help diagnose issues, use this
--   information to trace back the chain of events leading up to this
--   event.</li>
--   <li><a>sCause</a> - The cause of the failure. To help diagnose issues,
--   use this information to trace back the chain of events leading up to
--   this event.</li>
--   <li><a>sMessage</a> - A description that can help diagnose the cause
--   of the fault.</li>
--   </ul>
startLambdaFunctionFailedEventAttributes :: StartLambdaFunctionFailedEventAttributes

-- | The ID of the <tt>ActivityTaskScheduled</tt> event that was recorded
--   when this activity task was scheduled. To help diagnose issues, use
--   this information to trace back the chain of events leading up to this
--   event.
sScheduledEventId :: Lens' StartLambdaFunctionFailedEventAttributes (Maybe Integer)

-- | The cause of the failure. To help diagnose issues, use this
--   information to trace back the chain of events leading up to this
--   event.
sCause :: Lens' StartLambdaFunctionFailedEventAttributes (Maybe StartLambdaFunctionFailedCause)

-- | A description that can help diagnose the cause of the fault.
sMessage :: Lens' StartLambdaFunctionFailedEventAttributes (Maybe Text)

-- | Provides the details of the <tt>StartTimer</tt> decision.
--   
--   <b>Access Control</b>
--   
--   You can use IAM policies to control this decision's access to Amazon
--   SWF resources as follows:
--   
--   <ul>
--   <li>Use a <tt>Resource</tt> element with the domain name to limit the
--   action to only specified domains.</li>
--   <li>Use an <tt>Action</tt> element to allow or deny permission to call
--   this action.</li>
--   <li>You cannot use an IAM policy to constrain this action's
--   parameters.</li>
--   </ul>
--   
--   If the caller doesn't have sufficient permissions to invoke the
--   action, or the parameter values fall outside the specified
--   constraints, the action fails. The associated event attribute's
--   <tt>cause</tt> parameter is set to <tt>OPERATION_NOT_PERMITTED</tt> .
--   For details and example IAM policies, see <a>Using IAM to Manage
--   Access to Amazon SWF Workflows</a> in the <i>Amazon SWF Developer
--   Guide</i> .
--   
--   <i>See:</i> <a>startTimerDecisionAttributes</a> smart constructor.
data StartTimerDecisionAttributes

-- | Creates a value of <a>StartTimerDecisionAttributes</a> with the
--   minimum fields required to make a request.
--   
--   Use one of the following lenses to modify other fields as desired:
--   
--   <ul>
--   <li><a>stdaControl</a> - The data attached to the event that can be
--   used by the decider in subsequent workflow tasks.</li>
--   <li><a>stdaTimerId</a> - The unique ID of the timer. The specified
--   string must not start or end with whitespace. It must not contain a
--   <tt>:</tt> (colon), <tt>/</tt> (slash), <tt>|</tt> (vertical bar), or
--   any control characters (<tt>u0000-u001f</tt> | <tt>u007f-u009f</tt> ).
--   Also, it must not contain the literal string <tt>arn</tt> .</li>
--   <li><a>stdaStartToFireTimeout</a> - The duration to wait before firing
--   the timer. The duration is specified in seconds, an integer greater
--   than or equal to <tt>0</tt> .</li>
--   </ul>
startTimerDecisionAttributes :: Text -> Text -> StartTimerDecisionAttributes

-- | The data attached to the event that can be used by the decider in
--   subsequent workflow tasks.
stdaControl :: Lens' StartTimerDecisionAttributes (Maybe Text)

-- | The unique ID of the timer. The specified string must not start or end
--   with whitespace. It must not contain a <tt>:</tt> (colon), <tt>/</tt>
--   (slash), <tt>|</tt> (vertical bar), or any control characters
--   (<tt>u0000-u001f</tt> | <tt>u007f-u009f</tt> ). Also, it must not
--   contain the literal string <tt>arn</tt> .
stdaTimerId :: Lens' StartTimerDecisionAttributes Text

-- | The duration to wait before firing the timer. The duration is
--   specified in seconds, an integer greater than or equal to <tt>0</tt> .
stdaStartToFireTimeout :: Lens' StartTimerDecisionAttributes Text

-- | Provides the details of the <tt>StartTimerFailed</tt> event.
--   
--   <i>See:</i> <a>startTimerFailedEventAttributes</a> smart constructor.
data StartTimerFailedEventAttributes

-- | Creates a value of <a>StartTimerFailedEventAttributes</a> with the
--   minimum fields required to make a request.
--   
--   Use one of the following lenses to modify other fields as desired:
--   
--   <ul>
--   <li><a>stfeaTimerId</a> - The timerId provided in the
--   <tt>StartTimer</tt> decision that failed.</li>
--   <li><a>stfeaCause</a> - The cause of the failure. This information is
--   generated by the system and can be useful for diagnostic
--   purposes.</li>
--   <li><a>stfeaDecisionTaskCompletedEventId</a> - The ID of the
--   <tt>DecisionTaskCompleted</tt> event corresponding to the decision
--   task that resulted in the <tt>StartTimer</tt> decision for this
--   activity task. This information can be useful for diagnosing problems
--   by tracing back the chain of events leading up to this event.</li>
--   </ul>
startTimerFailedEventAttributes :: Text -> StartTimerFailedCause -> Integer -> StartTimerFailedEventAttributes

-- | The timerId provided in the <tt>StartTimer</tt> decision that failed.
stfeaTimerId :: Lens' StartTimerFailedEventAttributes Text

-- | The cause of the failure. This information is generated by the system
--   and can be useful for diagnostic purposes.
stfeaCause :: Lens' StartTimerFailedEventAttributes StartTimerFailedCause

-- | The ID of the <tt>DecisionTaskCompleted</tt> event corresponding to
--   the decision task that resulted in the <tt>StartTimer</tt> decision
--   for this activity task. This information can be useful for diagnosing
--   problems by tracing back the chain of events leading up to this event.
stfeaDecisionTaskCompletedEventId :: Lens' StartTimerFailedEventAttributes Integer

-- | Used to filter the workflow executions in visibility APIs based on a
--   tag.
--   
--   <i>See:</i> <a>tagFilter</a> smart constructor.
data TagFilter

-- | Creates a value of <a>TagFilter</a> with the minimum fields required
--   to make a request.
--   
--   Use one of the following lenses to modify other fields as desired:
--   
--   <ul>
--   <li><a>tfTag</a> - Specifies the tag that must be associated with the
--   execution for it to meet the filter criteria.</li>
--   </ul>
tagFilter :: Text -> TagFilter

-- | Specifies the tag that must be associated with the execution for it to
--   meet the filter criteria.
tfTag :: Lens' TagFilter Text

-- | Represents a task list.
--   
--   <i>See:</i> <a>taskList</a> smart constructor.
data TaskList

-- | Creates a value of <a>TaskList</a> with the minimum fields required to
--   make a request.
--   
--   Use one of the following lenses to modify other fields as desired:
--   
--   <ul>
--   <li><a>tlName</a> - The name of the task list.</li>
--   </ul>
taskList :: Text -> TaskList

-- | The name of the task list.
tlName :: Lens' TaskList Text

-- | Provides the details of the <tt>TimerCanceled</tt> event.
--   
--   <i>See:</i> <a>timerCanceledEventAttributes</a> smart constructor.
data TimerCanceledEventAttributes

-- | Creates a value of <a>TimerCanceledEventAttributes</a> with the
--   minimum fields required to make a request.
--   
--   Use one of the following lenses to modify other fields as desired:
--   
--   <ul>
--   <li><a>tceaTimerId</a> - The unique ID of the timer that was
--   canceled.</li>
--   <li><a>tceaStartedEventId</a> - The ID of the <tt>TimerStarted</tt>
--   event that was recorded when this timer was started. This information
--   can be useful for diagnosing problems by tracing back the chain of
--   events leading up to this event.</li>
--   <li><a>tceaDecisionTaskCompletedEventId</a> - The ID of the
--   <tt>DecisionTaskCompleted</tt> event corresponding to the decision
--   task that resulted in the <tt>CancelTimer</tt> decision to cancel this
--   timer. This information can be useful for diagnosing problems by
--   tracing back the chain of events leading up to this event.</li>
--   </ul>
timerCanceledEventAttributes :: Text -> Integer -> Integer -> TimerCanceledEventAttributes

-- | The unique ID of the timer that was canceled.
tceaTimerId :: Lens' TimerCanceledEventAttributes Text

-- | The ID of the <tt>TimerStarted</tt> event that was recorded when this
--   timer was started. This information can be useful for diagnosing
--   problems by tracing back the chain of events leading up to this event.
tceaStartedEventId :: Lens' TimerCanceledEventAttributes Integer

-- | The ID of the <tt>DecisionTaskCompleted</tt> event corresponding to
--   the decision task that resulted in the <tt>CancelTimer</tt> decision
--   to cancel this timer. This information can be useful for diagnosing
--   problems by tracing back the chain of events leading up to this event.
tceaDecisionTaskCompletedEventId :: Lens' TimerCanceledEventAttributes Integer

-- | Provides the details of the <tt>TimerFired</tt> event.
--   
--   <i>See:</i> <a>timerFiredEventAttributes</a> smart constructor.
data TimerFiredEventAttributes

-- | Creates a value of <a>TimerFiredEventAttributes</a> with the minimum
--   fields required to make a request.
--   
--   Use one of the following lenses to modify other fields as desired:
--   
--   <ul>
--   <li><a>tfeaTimerId</a> - The unique ID of the timer that fired.</li>
--   <li><a>tfeaStartedEventId</a> - The ID of the <tt>TimerStarted</tt>
--   event that was recorded when this timer was started. This information
--   can be useful for diagnosing problems by tracing back the chain of
--   events leading up to this event.</li>
--   </ul>
timerFiredEventAttributes :: Text -> Integer -> TimerFiredEventAttributes

-- | The unique ID of the timer that fired.
tfeaTimerId :: Lens' TimerFiredEventAttributes Text

-- | The ID of the <tt>TimerStarted</tt> event that was recorded when this
--   timer was started. This information can be useful for diagnosing
--   problems by tracing back the chain of events leading up to this event.
tfeaStartedEventId :: Lens' TimerFiredEventAttributes Integer

-- | Provides the details of the <tt>TimerStarted</tt> event.
--   
--   <i>See:</i> <a>timerStartedEventAttributes</a> smart constructor.
data TimerStartedEventAttributes

-- | Creates a value of <a>TimerStartedEventAttributes</a> with the minimum
--   fields required to make a request.
--   
--   Use one of the following lenses to modify other fields as desired:
--   
--   <ul>
--   <li><a>tseaControl</a> - Data attached to the event that can be used
--   by the decider in subsequent workflow tasks.</li>
--   <li><a>tseaTimerId</a> - The unique ID of the timer that was
--   started.</li>
--   <li><a>tseaStartToFireTimeout</a> - The duration of time after which
--   the timer fires. The duration is specified in seconds, an integer
--   greater than or equal to <tt>0</tt> .</li>
--   <li><a>tseaDecisionTaskCompletedEventId</a> - The ID of the
--   <tt>DecisionTaskCompleted</tt> event corresponding to the decision
--   task that resulted in the <tt>StartTimer</tt> decision for this
--   activity task. This information can be useful for diagnosing problems
--   by tracing back the chain of events leading up to this event.</li>
--   </ul>
timerStartedEventAttributes :: Text -> Text -> Integer -> TimerStartedEventAttributes

-- | Data attached to the event that can be used by the decider in
--   subsequent workflow tasks.
tseaControl :: Lens' TimerStartedEventAttributes (Maybe Text)

-- | The unique ID of the timer that was started.
tseaTimerId :: Lens' TimerStartedEventAttributes Text

-- | The duration of time after which the timer fires. The duration is
--   specified in seconds, an integer greater than or equal to <tt>0</tt> .
tseaStartToFireTimeout :: Lens' TimerStartedEventAttributes Text

-- | The ID of the <tt>DecisionTaskCompleted</tt> event corresponding to
--   the decision task that resulted in the <tt>StartTimer</tt> decision
--   for this activity task. This information can be useful for diagnosing
--   problems by tracing back the chain of events leading up to this event.
tseaDecisionTaskCompletedEventId :: Lens' TimerStartedEventAttributes Integer

-- | Represents a workflow execution.
--   
--   <i>See:</i> <a>workflowExecution</a> smart constructor.
data WorkflowExecution

-- | Creates a value of <a>WorkflowExecution</a> with the minimum fields
--   required to make a request.
--   
--   Use one of the following lenses to modify other fields as desired:
--   
--   <ul>
--   <li><a>weWorkflowId</a> - The user defined identifier associated with
--   the workflow execution.</li>
--   <li><a>weRunId</a> - A system-generated unique identifier for the
--   workflow execution.</li>
--   </ul>
workflowExecution :: Text -> Text -> WorkflowExecution

-- | The user defined identifier associated with the workflow execution.
weWorkflowId :: Lens' WorkflowExecution Text

-- | A system-generated unique identifier for the workflow execution.
weRunId :: Lens' WorkflowExecution Text

-- | Provides the details of the <tt>WorkflowExecutionCancelRequested</tt>
--   event.
--   
--   <i>See:</i> <a>workflowExecutionCancelRequestedEventAttributes</a>
--   smart constructor.
data WorkflowExecutionCancelRequestedEventAttributes

-- | Creates a value of
--   <a>WorkflowExecutionCancelRequestedEventAttributes</a> with the
--   minimum fields required to make a request.
--   
--   Use one of the following lenses to modify other fields as desired:
--   
--   <ul>
--   <li><a>wecreaExternalWorkflowExecution</a> - The external workflow
--   execution for which the cancellation was requested.</li>
--   <li><a>wecreaExternalInitiatedEventId</a> - The ID of the
--   <tt>RequestCancelExternalWorkflowExecutionInitiated</tt> event
--   corresponding to the <tt>RequestCancelExternalWorkflowExecution</tt>
--   decision to cancel this workflow execution.The source event with this
--   ID can be found in the history of the source workflow execution. This
--   information can be useful for diagnosing problems by tracing back the
--   chain of events leading up to this event.</li>
--   <li><a>wecreaCause</a> - If set, indicates that the request to cancel
--   the workflow execution was automatically generated, and specifies the
--   cause. This happens if the parent workflow execution times out or is
--   terminated, and the child policy is set to cancel child
--   executions.</li>
--   </ul>
workflowExecutionCancelRequestedEventAttributes :: WorkflowExecutionCancelRequestedEventAttributes

-- | The external workflow execution for which the cancellation was
--   requested.
wecreaExternalWorkflowExecution :: Lens' WorkflowExecutionCancelRequestedEventAttributes (Maybe WorkflowExecution)

-- | The ID of the <tt>RequestCancelExternalWorkflowExecutionInitiated</tt>
--   event corresponding to the
--   <tt>RequestCancelExternalWorkflowExecution</tt> decision to cancel
--   this workflow execution.The source event with this ID can be found in
--   the history of the source workflow execution. This information can be
--   useful for diagnosing problems by tracing back the chain of events
--   leading up to this event.
wecreaExternalInitiatedEventId :: Lens' WorkflowExecutionCancelRequestedEventAttributes (Maybe Integer)

-- | If set, indicates that the request to cancel the workflow execution
--   was automatically generated, and specifies the cause. This happens if
--   the parent workflow execution times out or is terminated, and the
--   child policy is set to cancel child executions.
wecreaCause :: Lens' WorkflowExecutionCancelRequestedEventAttributes (Maybe WorkflowExecutionCancelRequestedCause)

-- | Provides the details of the <tt>WorkflowExecutionCanceled</tt> event.
--   
--   <i>See:</i> <a>workflowExecutionCanceledEventAttributes</a> smart
--   constructor.
data WorkflowExecutionCanceledEventAttributes

-- | Creates a value of <a>WorkflowExecutionCanceledEventAttributes</a>
--   with the minimum fields required to make a request.
--   
--   Use one of the following lenses to modify other fields as desired:
--   
--   <ul>
--   <li><a>wDetails</a> - The details of the cancellation.</li>
--   <li><a>wDecisionTaskCompletedEventId</a> - The ID of the
--   <tt>DecisionTaskCompleted</tt> event corresponding to the decision
--   task that resulted in the <tt>CancelWorkflowExecution</tt> decision
--   for this cancellation request. This information can be useful for
--   diagnosing problems by tracing back the chain of events leading up to
--   this event.</li>
--   </ul>
workflowExecutionCanceledEventAttributes :: Integer -> WorkflowExecutionCanceledEventAttributes

-- | The details of the cancellation.
wDetails :: Lens' WorkflowExecutionCanceledEventAttributes (Maybe Text)

-- | The ID of the <tt>DecisionTaskCompleted</tt> event corresponding to
--   the decision task that resulted in the
--   <tt>CancelWorkflowExecution</tt> decision for this cancellation
--   request. This information can be useful for diagnosing problems by
--   tracing back the chain of events leading up to this event.
wDecisionTaskCompletedEventId :: Lens' WorkflowExecutionCanceledEventAttributes Integer

-- | Provides the details of the <tt>WorkflowExecutionCompleted</tt> event.
--   
--   <i>See:</i> <a>workflowExecutionCompletedEventAttributes</a> smart
--   constructor.
data WorkflowExecutionCompletedEventAttributes

-- | Creates a value of <a>WorkflowExecutionCompletedEventAttributes</a>
--   with the minimum fields required to make a request.
--   
--   Use one of the following lenses to modify other fields as desired:
--   
--   <ul>
--   <li><a>weceaResult</a> - The result produced by the workflow execution
--   upon successful completion.</li>
--   <li><a>weceaDecisionTaskCompletedEventId</a> - The ID of the
--   <tt>DecisionTaskCompleted</tt> event corresponding to the decision
--   task that resulted in the <tt>CompleteWorkflowExecution</tt> decision
--   to complete this execution. This information can be useful for
--   diagnosing problems by tracing back the chain of events leading up to
--   this event.</li>
--   </ul>
workflowExecutionCompletedEventAttributes :: Integer -> WorkflowExecutionCompletedEventAttributes

-- | The result produced by the workflow execution upon successful
--   completion.
weceaResult :: Lens' WorkflowExecutionCompletedEventAttributes (Maybe Text)

-- | The ID of the <tt>DecisionTaskCompleted</tt> event corresponding to
--   the decision task that resulted in the
--   <tt>CompleteWorkflowExecution</tt> decision to complete this
--   execution. This information can be useful for diagnosing problems by
--   tracing back the chain of events leading up to this event.
weceaDecisionTaskCompletedEventId :: Lens' WorkflowExecutionCompletedEventAttributes Integer

-- | The configuration settings for a workflow execution including timeout
--   values, tasklist etc. These configuration settings are determined from
--   the defaults specified when registering the workflow type and those
--   specified when starting the workflow execution.
--   
--   <i>See:</i> <a>workflowExecutionConfiguration</a> smart constructor.
data WorkflowExecutionConfiguration

-- | Creates a value of <a>WorkflowExecutionConfiguration</a> with the
--   minimum fields required to make a request.
--   
--   Use one of the following lenses to modify other fields as desired:
--   
--   <ul>
--   <li><a>wecLambdaRole</a> - The IAM role attached to the child workflow
--   execution.</li>
--   <li><a>wecTaskPriority</a> - The priority assigned to decision tasks
--   for this workflow execution. Valid values are integers that range from
--   Java's <tt>Integer.MIN_VALUE</tt> (-2147483648) to
--   <tt>Integer.MAX_VALUE</tt> (2147483647). Higher numbers indicate
--   higher priority. For more information about setting task priority, see
--   <a>Setting Task Priority</a> in the <i>Amazon SWF Developer Guide</i>
--   .</li>
--   <li><a>wecTaskStartToCloseTimeout</a> - The maximum duration allowed
--   for decision tasks for this workflow execution. The duration is
--   specified in seconds, an integer greater than or equal to <tt>0</tt> .
--   You can use <tt>NONE</tt> to specify unlimited duration.</li>
--   <li><a>wecExecutionStartToCloseTimeout</a> - The total duration for
--   this workflow execution. The duration is specified in seconds, an
--   integer greater than or equal to <tt>0</tt> . You can use
--   <tt>NONE</tt> to specify unlimited duration.</li>
--   <li><a>wecTaskList</a> - The task list used for the decision tasks
--   generated for this workflow execution.</li>
--   <li><a>wecChildPolicy</a> - The policy to use for the child workflow
--   executions if this workflow execution is terminated, by calling the
--   <tt>TerminateWorkflowExecution</tt> action explicitly or due to an
--   expired timeout. The supported child policies are: *
--   <tt>TERMINATE</tt> – The child executions are terminated. *
--   <tt>REQUEST_CANCEL</tt> – A request to cancel is attempted for each
--   child execution by recording a
--   <tt>WorkflowExecutionCancelRequested</tt> event in its history. It is
--   up to the decider to take appropriate actions when it receives an
--   execution history with this event. * <tt>ABANDON</tt> – No action is
--   taken. The child executions continue to run.</li>
--   </ul>
workflowExecutionConfiguration :: Text -> Text -> TaskList -> ChildPolicy -> WorkflowExecutionConfiguration

-- | The IAM role attached to the child workflow execution.
wecLambdaRole :: Lens' WorkflowExecutionConfiguration (Maybe Text)

-- | The priority assigned to decision tasks for this workflow execution.
--   Valid values are integers that range from Java's
--   <tt>Integer.MIN_VALUE</tt> (-2147483648) to <tt>Integer.MAX_VALUE</tt>
--   (2147483647). Higher numbers indicate higher priority. For more
--   information about setting task priority, see <a>Setting Task
--   Priority</a> in the <i>Amazon SWF Developer Guide</i> .
wecTaskPriority :: Lens' WorkflowExecutionConfiguration (Maybe Text)

-- | The maximum duration allowed for decision tasks for this workflow
--   execution. The duration is specified in seconds, an integer greater
--   than or equal to <tt>0</tt> . You can use <tt>NONE</tt> to specify
--   unlimited duration.
wecTaskStartToCloseTimeout :: Lens' WorkflowExecutionConfiguration Text

-- | The total duration for this workflow execution. The duration is
--   specified in seconds, an integer greater than or equal to <tt>0</tt> .
--   You can use <tt>NONE</tt> to specify unlimited duration.
wecExecutionStartToCloseTimeout :: Lens' WorkflowExecutionConfiguration Text

-- | The task list used for the decision tasks generated for this workflow
--   execution.
wecTaskList :: Lens' WorkflowExecutionConfiguration TaskList

-- | The policy to use for the child workflow executions if this workflow
--   execution is terminated, by calling the
--   <tt>TerminateWorkflowExecution</tt> action explicitly or due to an
--   expired timeout. The supported child policies are: *
--   <tt>TERMINATE</tt> – The child executions are terminated. *
--   <tt>REQUEST_CANCEL</tt> – A request to cancel is attempted for each
--   child execution by recording a
--   <tt>WorkflowExecutionCancelRequested</tt> event in its history. It is
--   up to the decider to take appropriate actions when it receives an
--   execution history with this event. * <tt>ABANDON</tt> – No action is
--   taken. The child executions continue to run.
wecChildPolicy :: Lens' WorkflowExecutionConfiguration ChildPolicy

-- | Provides the details of the <tt>WorkflowExecutionContinuedAsNew</tt>
--   event.
--   
--   <i>See:</i> <a>workflowExecutionContinuedAsNewEventAttributes</a>
--   smart constructor.
data WorkflowExecutionContinuedAsNewEventAttributes

-- | Creates a value of
--   <a>WorkflowExecutionContinuedAsNewEventAttributes</a> with the minimum
--   fields required to make a request.
--   
--   Use one of the following lenses to modify other fields as desired:
--   
--   <ul>
--   <li><a>wecaneaTagList</a> - The list of tags associated with the new
--   workflow execution.</li>
--   <li><a>wecaneaTaskStartToCloseTimeout</a> - The maximum duration of
--   decision tasks for the new workflow execution. The duration is
--   specified in seconds, an integer greater than or equal to <tt>0</tt> .
--   You can use <tt>NONE</tt> to specify unlimited duration.</li>
--   <li><a>wecaneaLambdaRole</a> - The IAM role to attach to the new
--   (continued) workflow execution.</li>
--   <li><a>wecaneaInput</a> - The input provided to the new workflow
--   execution.</li>
--   <li><a>wecaneaExecutionStartToCloseTimeout</a> - The total duration
--   allowed for the new workflow execution. The duration is specified in
--   seconds, an integer greater than or equal to <tt>0</tt> . You can use
--   <tt>NONE</tt> to specify unlimited duration.</li>
--   <li><a>wecaneaTaskPriority</a> - The priority of the task to use for
--   the decisions of the new (continued) workflow execution.</li>
--   <li><a>wecaneaDecisionTaskCompletedEventId</a> - The ID of the
--   <tt>DecisionTaskCompleted</tt> event corresponding to the decision
--   task that resulted in the <tt>ContinueAsNewWorkflowExecution</tt>
--   decision that started this execution. This information can be useful
--   for diagnosing problems by tracing back the chain of events leading up
--   to this event.</li>
--   <li><a>wecaneaNewExecutionRunId</a> - The <tt>runId</tt> of the new
--   workflow execution.</li>
--   <li><a>wecaneaTaskList</a> - The task list to use for the decisions of
--   the new (continued) workflow execution.</li>
--   <li><a>wecaneaChildPolicy</a> - The policy to use for the child
--   workflow executions of the new execution if it is terminated by
--   calling the <tt>TerminateWorkflowExecution</tt> action explicitly or
--   due to an expired timeout. The supported child policies are: *
--   <tt>TERMINATE</tt> – The child executions are terminated. *
--   <tt>REQUEST_CANCEL</tt> – A request to cancel is attempted for each
--   child execution by recording a
--   <tt>WorkflowExecutionCancelRequested</tt> event in its history. It is
--   up to the decider to take appropriate actions when it receives an
--   execution history with this event. * <tt>ABANDON</tt> – No action is
--   taken. The child executions continue to run.</li>
--   <li><a>wecaneaWorkflowType</a> - The workflow type of this
--   execution.</li>
--   </ul>
workflowExecutionContinuedAsNewEventAttributes :: Integer -> Text -> TaskList -> ChildPolicy -> WorkflowType -> WorkflowExecutionContinuedAsNewEventAttributes

-- | The list of tags associated with the new workflow execution.
wecaneaTagList :: Lens' WorkflowExecutionContinuedAsNewEventAttributes [Text]

-- | The maximum duration of decision tasks for the new workflow execution.
--   The duration is specified in seconds, an integer greater than or equal
--   to <tt>0</tt> . You can use <tt>NONE</tt> to specify unlimited
--   duration.
wecaneaTaskStartToCloseTimeout :: Lens' WorkflowExecutionContinuedAsNewEventAttributes (Maybe Text)

-- | The IAM role to attach to the new (continued) workflow execution.
wecaneaLambdaRole :: Lens' WorkflowExecutionContinuedAsNewEventAttributes (Maybe Text)

-- | The input provided to the new workflow execution.
wecaneaInput :: Lens' WorkflowExecutionContinuedAsNewEventAttributes (Maybe Text)

-- | The total duration allowed for the new workflow execution. The
--   duration is specified in seconds, an integer greater than or equal to
--   <tt>0</tt> . You can use <tt>NONE</tt> to specify unlimited duration.
wecaneaExecutionStartToCloseTimeout :: Lens' WorkflowExecutionContinuedAsNewEventAttributes (Maybe Text)

-- | The priority of the task to use for the decisions of the new
--   (continued) workflow execution.
wecaneaTaskPriority :: Lens' WorkflowExecutionContinuedAsNewEventAttributes (Maybe Text)

-- | The ID of the <tt>DecisionTaskCompleted</tt> event corresponding to
--   the decision task that resulted in the
--   <tt>ContinueAsNewWorkflowExecution</tt> decision that started this
--   execution. This information can be useful for diagnosing problems by
--   tracing back the chain of events leading up to this event.
wecaneaDecisionTaskCompletedEventId :: Lens' WorkflowExecutionContinuedAsNewEventAttributes Integer

-- | The <tt>runId</tt> of the new workflow execution.
wecaneaNewExecutionRunId :: Lens' WorkflowExecutionContinuedAsNewEventAttributes Text

-- | The task list to use for the decisions of the new (continued) workflow
--   execution.
wecaneaTaskList :: Lens' WorkflowExecutionContinuedAsNewEventAttributes TaskList

-- | The policy to use for the child workflow executions of the new
--   execution if it is terminated by calling the
--   <tt>TerminateWorkflowExecution</tt> action explicitly or due to an
--   expired timeout. The supported child policies are: *
--   <tt>TERMINATE</tt> – The child executions are terminated. *
--   <tt>REQUEST_CANCEL</tt> – A request to cancel is attempted for each
--   child execution by recording a
--   <tt>WorkflowExecutionCancelRequested</tt> event in its history. It is
--   up to the decider to take appropriate actions when it receives an
--   execution history with this event. * <tt>ABANDON</tt> – No action is
--   taken. The child executions continue to run.
wecaneaChildPolicy :: Lens' WorkflowExecutionContinuedAsNewEventAttributes ChildPolicy

-- | The workflow type of this execution.
wecaneaWorkflowType :: Lens' WorkflowExecutionContinuedAsNewEventAttributes WorkflowType

-- | Contains the count of workflow executions returned from
--   <tt>CountOpenWorkflowExecutions</tt> or
--   <tt>CountClosedWorkflowExecutions</tt>
--   
--   <i>See:</i> <a>workflowExecutionCount</a> smart constructor.
data WorkflowExecutionCount

-- | Creates a value of <a>WorkflowExecutionCount</a> with the minimum
--   fields required to make a request.
--   
--   Use one of the following lenses to modify other fields as desired:
--   
--   <ul>
--   <li><a>wecTruncated</a> - If set to true, indicates that the actual
--   count was more than the maximum supported by this API and the count
--   returned is the truncated value.</li>
--   <li><a>wecCount</a> - The number of workflow executions.</li>
--   </ul>
workflowExecutionCount :: Natural -> WorkflowExecutionCount

-- | If set to true, indicates that the actual count was more than the
--   maximum supported by this API and the count returned is the truncated
--   value.
wecTruncated :: Lens' WorkflowExecutionCount (Maybe Bool)

-- | The number of workflow executions.
wecCount :: Lens' WorkflowExecutionCount Natural

-- | Provides the details of the <tt>WorkflowExecutionFailed</tt> event.
--   
--   <i>See:</i> <a>workflowExecutionFailedEventAttributes</a> smart
--   constructor.
data WorkflowExecutionFailedEventAttributes

-- | Creates a value of <a>WorkflowExecutionFailedEventAttributes</a> with
--   the minimum fields required to make a request.
--   
--   Use one of the following lenses to modify other fields as desired:
--   
--   <ul>
--   <li><a>wefeaReason</a> - The descriptive reason provided for the
--   failure.</li>
--   <li><a>wefeaDetails</a> - The details of the failure.</li>
--   <li><a>wefeaDecisionTaskCompletedEventId</a> - The ID of the
--   <tt>DecisionTaskCompleted</tt> event corresponding to the decision
--   task that resulted in the <tt>FailWorkflowExecution</tt> decision to
--   fail this execution. This information can be useful for diagnosing
--   problems by tracing back the chain of events leading up to this
--   event.</li>
--   </ul>
workflowExecutionFailedEventAttributes :: Integer -> WorkflowExecutionFailedEventAttributes

-- | The descriptive reason provided for the failure.
wefeaReason :: Lens' WorkflowExecutionFailedEventAttributes (Maybe Text)

-- | The details of the failure.
wefeaDetails :: Lens' WorkflowExecutionFailedEventAttributes (Maybe Text)

-- | The ID of the <tt>DecisionTaskCompleted</tt> event corresponding to
--   the decision task that resulted in the <tt>FailWorkflowExecution</tt>
--   decision to fail this execution. This information can be useful for
--   diagnosing problems by tracing back the chain of events leading up to
--   this event.
wefeaDecisionTaskCompletedEventId :: Lens' WorkflowExecutionFailedEventAttributes Integer

-- | Used to filter the workflow executions in visibility APIs by their
--   <tt>workflowId</tt> .
--   
--   <i>See:</i> <a>workflowExecutionFilter</a> smart constructor.
data WorkflowExecutionFilter

-- | Creates a value of <a>WorkflowExecutionFilter</a> with the minimum
--   fields required to make a request.
--   
--   Use one of the following lenses to modify other fields as desired:
--   
--   <ul>
--   <li><a>wefWorkflowId</a> - The workflowId to pass of match the
--   criteria of this filter.</li>
--   </ul>
workflowExecutionFilter :: Text -> WorkflowExecutionFilter

-- | The workflowId to pass of match the criteria of this filter.
wefWorkflowId :: Lens' WorkflowExecutionFilter Text

-- | Contains information about a workflow execution.
--   
--   <i>See:</i> <a>workflowExecutionInfo</a> smart constructor.
data WorkflowExecutionInfo

-- | Creates a value of <a>WorkflowExecutionInfo</a> with the minimum
--   fields required to make a request.
--   
--   Use one of the following lenses to modify other fields as desired:
--   
--   <ul>
--   <li><a>weiParent</a> - If this workflow execution is a child of
--   another execution then contains the workflow execution that started
--   this execution.</li>
--   <li><a>weiTagList</a> - The list of tags associated with the workflow
--   execution. Tags can be used to identify and list workflow executions
--   of interest through the visibility APIs. A workflow execution can have
--   a maximum of 5 tags.</li>
--   <li><a>weiCloseStatus</a> - If the execution status is closed then
--   this specifies how the execution was closed: * <tt>COMPLETED</tt> –
--   the execution was successfully completed. * <tt>CANCELED</tt> – the
--   execution was canceled.Cancellation allows the implementation to
--   gracefully clean up before the execution is closed. *
--   <tt>TERMINATED</tt> – the execution was force terminated. *
--   <tt>FAILED</tt> – the execution failed to complete. *
--   <tt>TIMED_OUT</tt> – the execution did not complete in the alloted
--   time and was automatically timed out. * <tt>CONTINUED_AS_NEW</tt> –
--   the execution is logically continued. This means the current execution
--   was completed and a new execution was started to carry on the
--   workflow.</li>
--   <li><a>weiCloseTimestamp</a> - The time when the workflow execution
--   was closed. Set only if the execution status is CLOSED.</li>
--   <li><a>weiCancelRequested</a> - Set to true if a cancellation is
--   requested for this workflow execution.</li>
--   <li><a>weiExecution</a> - The workflow execution this information is
--   about.</li>
--   <li><a>weiWorkflowType</a> - The type of the workflow execution.</li>
--   <li><a>weiStartTimestamp</a> - The time when the execution was
--   started.</li>
--   <li><a>weiExecutionStatus</a> - The current status of the
--   execution.</li>
--   </ul>
workflowExecutionInfo :: WorkflowExecution -> WorkflowType -> UTCTime -> ExecutionStatus -> WorkflowExecutionInfo

-- | If this workflow execution is a child of another execution then
--   contains the workflow execution that started this execution.
weiParent :: Lens' WorkflowExecutionInfo (Maybe WorkflowExecution)

-- | The list of tags associated with the workflow execution. Tags can be
--   used to identify and list workflow executions of interest through the
--   visibility APIs. A workflow execution can have a maximum of 5 tags.
weiTagList :: Lens' WorkflowExecutionInfo [Text]

-- | If the execution status is closed then this specifies how the
--   execution was closed: * <tt>COMPLETED</tt> – the execution was
--   successfully completed. * <tt>CANCELED</tt> – the execution was
--   canceled.Cancellation allows the implementation to gracefully clean up
--   before the execution is closed. * <tt>TERMINATED</tt> – the execution
--   was force terminated. * <tt>FAILED</tt> – the execution failed to
--   complete. * <tt>TIMED_OUT</tt> – the execution did not complete in the
--   alloted time and was automatically timed out. *
--   <tt>CONTINUED_AS_NEW</tt> – the execution is logically continued. This
--   means the current execution was completed and a new execution was
--   started to carry on the workflow.
weiCloseStatus :: Lens' WorkflowExecutionInfo (Maybe CloseStatus)

-- | The time when the workflow execution was closed. Set only if the
--   execution status is CLOSED.
weiCloseTimestamp :: Lens' WorkflowExecutionInfo (Maybe UTCTime)

-- | Set to true if a cancellation is requested for this workflow
--   execution.
weiCancelRequested :: Lens' WorkflowExecutionInfo (Maybe Bool)

-- | The workflow execution this information is about.
weiExecution :: Lens' WorkflowExecutionInfo WorkflowExecution

-- | The type of the workflow execution.
weiWorkflowType :: Lens' WorkflowExecutionInfo WorkflowType

-- | The time when the execution was started.
weiStartTimestamp :: Lens' WorkflowExecutionInfo UTCTime

-- | The current status of the execution.
weiExecutionStatus :: Lens' WorkflowExecutionInfo ExecutionStatus

-- | Contains a paginated list of information about workflow executions.
--   
--   <i>See:</i> <a>workflowExecutionInfos</a> smart constructor.
data WorkflowExecutionInfos

-- | Creates a value of <a>WorkflowExecutionInfos</a> with the minimum
--   fields required to make a request.
--   
--   Use one of the following lenses to modify other fields as desired:
--   
--   <ul>
--   <li><a>weiNextPageToken</a> - If a <tt>NextPageToken</tt> was returned
--   by a previous call, there are more results available. To retrieve the
--   next page of results, make the call again using the returned token in
--   <tt>nextPageToken</tt> . Keep all other arguments unchanged. The
--   configured <tt>maximumPageSize</tt> determines how many results can be
--   returned in a single call.</li>
--   <li><a>weiExecutionInfos</a> - The list of workflow information
--   structures.</li>
--   </ul>
workflowExecutionInfos :: WorkflowExecutionInfos

-- | If a <tt>NextPageToken</tt> was returned by a previous call, there are
--   more results available. To retrieve the next page of results, make the
--   call again using the returned token in <tt>nextPageToken</tt> . Keep
--   all other arguments unchanged. The configured <tt>maximumPageSize</tt>
--   determines how many results can be returned in a single call.
weiNextPageToken :: Lens' WorkflowExecutionInfos (Maybe Text)

-- | The list of workflow information structures.
weiExecutionInfos :: Lens' WorkflowExecutionInfos [WorkflowExecutionInfo]

-- | Contains the counts of open tasks, child workflow executions and
--   timers for a workflow execution.
--   
--   <i>See:</i> <a>workflowExecutionOpenCounts</a> smart constructor.
data WorkflowExecutionOpenCounts

-- | Creates a value of <a>WorkflowExecutionOpenCounts</a> with the minimum
--   fields required to make a request.
--   
--   Use one of the following lenses to modify other fields as desired:
--   
--   <ul>
--   <li><a>weocOpenLambdaFunctions</a> - The count of Lambda tasks whose
--   status is <tt>OPEN</tt> .</li>
--   <li><a>weocOpenActivityTasks</a> - The count of activity tasks whose
--   status is <tt>OPEN</tt> .</li>
--   <li><a>weocOpenDecisionTasks</a> - The count of decision tasks whose
--   status is OPEN. A workflow execution can have at most one open
--   decision task.</li>
--   <li><a>weocOpenTimers</a> - The count of timers started by this
--   workflow execution that have not fired yet.</li>
--   <li><a>weocOpenChildWorkflowExecutions</a> - The count of child
--   workflow executions whose status is <tt>OPEN</tt> .</li>
--   </ul>
workflowExecutionOpenCounts :: Natural -> Natural -> Natural -> Natural -> WorkflowExecutionOpenCounts

-- | The count of Lambda tasks whose status is <tt>OPEN</tt> .
weocOpenLambdaFunctions :: Lens' WorkflowExecutionOpenCounts (Maybe Natural)

-- | The count of activity tasks whose status is <tt>OPEN</tt> .
weocOpenActivityTasks :: Lens' WorkflowExecutionOpenCounts Natural

-- | The count of decision tasks whose status is OPEN. A workflow execution
--   can have at most one open decision task.
weocOpenDecisionTasks :: Lens' WorkflowExecutionOpenCounts Natural

-- | The count of timers started by this workflow execution that have not
--   fired yet.
weocOpenTimers :: Lens' WorkflowExecutionOpenCounts Natural

-- | The count of child workflow executions whose status is <tt>OPEN</tt> .
weocOpenChildWorkflowExecutions :: Lens' WorkflowExecutionOpenCounts Natural

-- | Provides the details of the <tt>WorkflowExecutionSignaled</tt> event.
--   
--   <i>See:</i> <a>workflowExecutionSignaledEventAttributes</a> smart
--   constructor.
data WorkflowExecutionSignaledEventAttributes

-- | Creates a value of <a>WorkflowExecutionSignaledEventAttributes</a>
--   with the minimum fields required to make a request.
--   
--   Use one of the following lenses to modify other fields as desired:
--   
--   <ul>
--   <li><a>wExternalWorkflowExecution</a> - The workflow execution that
--   sent the signal. This is set only of the signal was sent by another
--   workflow execution.</li>
--   <li><a>wExternalInitiatedEventId</a> - The ID of the
--   <tt>SignalExternalWorkflowExecutionInitiated</tt> event corresponding
--   to the <tt>SignalExternalWorkflow</tt> decision to signal this
--   workflow execution.The source event with this ID can be found in the
--   history of the source workflow execution. This information can be
--   useful for diagnosing problems by tracing back the chain of events
--   leading up to this event. This field is set only if the signal was
--   initiated by another workflow execution.</li>
--   <li><a>wInput</a> - The inputs provided with the signal. The decider
--   can use the signal name and inputs to determine how to process the
--   signal.</li>
--   <li><a>wSignalName</a> - The name of the signal received. The decider
--   can use the signal name and inputs to determine how to the process the
--   signal.</li>
--   </ul>
workflowExecutionSignaledEventAttributes :: Text -> WorkflowExecutionSignaledEventAttributes

-- | The workflow execution that sent the signal. This is set only of the
--   signal was sent by another workflow execution.
wExternalWorkflowExecution :: Lens' WorkflowExecutionSignaledEventAttributes (Maybe WorkflowExecution)

-- | The ID of the <tt>SignalExternalWorkflowExecutionInitiated</tt> event
--   corresponding to the <tt>SignalExternalWorkflow</tt> decision to
--   signal this workflow execution.The source event with this ID can be
--   found in the history of the source workflow execution. This
--   information can be useful for diagnosing problems by tracing back the
--   chain of events leading up to this event. This field is set only if
--   the signal was initiated by another workflow execution.
wExternalInitiatedEventId :: Lens' WorkflowExecutionSignaledEventAttributes (Maybe Integer)

-- | The inputs provided with the signal. The decider can use the signal
--   name and inputs to determine how to process the signal.
wInput :: Lens' WorkflowExecutionSignaledEventAttributes (Maybe Text)

-- | The name of the signal received. The decider can use the signal name
--   and inputs to determine how to the process the signal.
wSignalName :: Lens' WorkflowExecutionSignaledEventAttributes Text

-- | Provides details of <tt>WorkflowExecutionStarted</tt> event.
--   
--   <i>See:</i> <a>workflowExecutionStartedEventAttributes</a> smart
--   constructor.
data WorkflowExecutionStartedEventAttributes

-- | Creates a value of <a>WorkflowExecutionStartedEventAttributes</a> with
--   the minimum fields required to make a request.
--   
--   Use one of the following lenses to modify other fields as desired:
--   
--   <ul>
--   <li><a>weseaParentInitiatedEventId</a> - The ID of the
--   <tt>StartChildWorkflowExecutionInitiated</tt> event corresponding to
--   the <tt>StartChildWorkflowExecution</tt> <a>Decision</a> to start this
--   workflow execution. The source event with this ID can be found in the
--   history of the source workflow execution. This information can be
--   useful for diagnosing problems by tracing back the chain of events
--   leading up to this event.</li>
--   <li><a>weseaTagList</a> - The list of tags associated with this
--   workflow execution. An execution can have up to 5 tags.</li>
--   <li><a>weseaTaskStartToCloseTimeout</a> - The maximum duration of
--   decision tasks for this workflow type. The duration is specified in
--   seconds, an integer greater than or equal to <tt>0</tt> . You can use
--   <tt>NONE</tt> to specify unlimited duration.</li>
--   <li><a>weseaLambdaRole</a> - The IAM role attached to the workflow
--   execution.</li>
--   <li><a>weseaInput</a> - The input provided to the workflow
--   execution.</li>
--   <li><a>weseaExecutionStartToCloseTimeout</a> - The maximum duration
--   for this workflow execution. The duration is specified in seconds, an
--   integer greater than or equal to <tt>0</tt> . You can use
--   <tt>NONE</tt> to specify unlimited duration.</li>
--   <li><a>weseaTaskPriority</a> - The priority of the decision tasks in
--   the workflow execution.</li>
--   <li><a>weseaParentWorkflowExecution</a> - The source workflow
--   execution that started this workflow execution. The member isn't set
--   if the workflow execution was not started by a workflow.</li>
--   <li><a>weseaContinuedExecutionRunId</a> - If this workflow execution
--   was started due to a <tt>ContinueAsNewWorkflowExecution</tt> decision,
--   then it contains the <tt>runId</tt> of the previous workflow execution
--   that was closed and continued as this execution.</li>
--   <li><a>weseaChildPolicy</a> - The policy to use for the child workflow
--   executions if this workflow execution is terminated, by calling the
--   <tt>TerminateWorkflowExecution</tt> action explicitly or due to an
--   expired timeout. The supported child policies are: *
--   <tt>TERMINATE</tt> – The child executions are terminated. *
--   <tt>REQUEST_CANCEL</tt> – A request to cancel is attempted for each
--   child execution by recording a
--   <tt>WorkflowExecutionCancelRequested</tt> event in its history. It is
--   up to the decider to take appropriate actions when it receives an
--   execution history with this event. * <tt>ABANDON</tt> – No action is
--   taken. The child executions continue to run.</li>
--   <li><a>weseaTaskList</a> - The name of the task list for scheduling
--   the decision tasks for this workflow execution.</li>
--   <li><a>weseaWorkflowType</a> - The workflow type of this
--   execution.</li>
--   </ul>
workflowExecutionStartedEventAttributes :: ChildPolicy -> TaskList -> WorkflowType -> WorkflowExecutionStartedEventAttributes

-- | The ID of the <tt>StartChildWorkflowExecutionInitiated</tt> event
--   corresponding to the <tt>StartChildWorkflowExecution</tt>
--   <a>Decision</a> to start this workflow execution. The source event
--   with this ID can be found in the history of the source workflow
--   execution. This information can be useful for diagnosing problems by
--   tracing back the chain of events leading up to this event.
weseaParentInitiatedEventId :: Lens' WorkflowExecutionStartedEventAttributes (Maybe Integer)

-- | The list of tags associated with this workflow execution. An execution
--   can have up to 5 tags.
weseaTagList :: Lens' WorkflowExecutionStartedEventAttributes [Text]

-- | The maximum duration of decision tasks for this workflow type. The
--   duration is specified in seconds, an integer greater than or equal to
--   <tt>0</tt> . You can use <tt>NONE</tt> to specify unlimited duration.
weseaTaskStartToCloseTimeout :: Lens' WorkflowExecutionStartedEventAttributes (Maybe Text)

-- | The IAM role attached to the workflow execution.
weseaLambdaRole :: Lens' WorkflowExecutionStartedEventAttributes (Maybe Text)

-- | The input provided to the workflow execution.
weseaInput :: Lens' WorkflowExecutionStartedEventAttributes (Maybe Text)

-- | The maximum duration for this workflow execution. The duration is
--   specified in seconds, an integer greater than or equal to <tt>0</tt> .
--   You can use <tt>NONE</tt> to specify unlimited duration.
weseaExecutionStartToCloseTimeout :: Lens' WorkflowExecutionStartedEventAttributes (Maybe Text)

-- | The priority of the decision tasks in the workflow execution.
weseaTaskPriority :: Lens' WorkflowExecutionStartedEventAttributes (Maybe Text)

-- | The source workflow execution that started this workflow execution.
--   The member isn't set if the workflow execution was not started by a
--   workflow.
weseaParentWorkflowExecution :: Lens' WorkflowExecutionStartedEventAttributes (Maybe WorkflowExecution)

-- | If this workflow execution was started due to a
--   <tt>ContinueAsNewWorkflowExecution</tt> decision, then it contains the
--   <tt>runId</tt> of the previous workflow execution that was closed and
--   continued as this execution.
weseaContinuedExecutionRunId :: Lens' WorkflowExecutionStartedEventAttributes (Maybe Text)

-- | The policy to use for the child workflow executions if this workflow
--   execution is terminated, by calling the
--   <tt>TerminateWorkflowExecution</tt> action explicitly or due to an
--   expired timeout. The supported child policies are: *
--   <tt>TERMINATE</tt> – The child executions are terminated. *
--   <tt>REQUEST_CANCEL</tt> – A request to cancel is attempted for each
--   child execution by recording a
--   <tt>WorkflowExecutionCancelRequested</tt> event in its history. It is
--   up to the decider to take appropriate actions when it receives an
--   execution history with this event. * <tt>ABANDON</tt> – No action is
--   taken. The child executions continue to run.
weseaChildPolicy :: Lens' WorkflowExecutionStartedEventAttributes ChildPolicy

-- | The name of the task list for scheduling the decision tasks for this
--   workflow execution.
weseaTaskList :: Lens' WorkflowExecutionStartedEventAttributes TaskList

-- | The workflow type of this execution.
weseaWorkflowType :: Lens' WorkflowExecutionStartedEventAttributes WorkflowType

-- | Provides the details of the <tt>WorkflowExecutionTerminated</tt>
--   event.
--   
--   <i>See:</i> <a>workflowExecutionTerminatedEventAttributes</a> smart
--   constructor.
data WorkflowExecutionTerminatedEventAttributes

-- | Creates a value of <a>WorkflowExecutionTerminatedEventAttributes</a>
--   with the minimum fields required to make a request.
--   
--   Use one of the following lenses to modify other fields as desired:
--   
--   <ul>
--   <li><a>weteaCause</a> - If set, indicates that the workflow execution
--   was automatically terminated, and specifies the cause. This happens if
--   the parent workflow execution times out or is terminated and the child
--   policy is set to terminate child executions.</li>
--   <li><a>weteaReason</a> - The reason provided for the termination.</li>
--   <li><a>weteaDetails</a> - The details provided for the
--   termination.</li>
--   <li><a>weteaChildPolicy</a> - The policy used for the child workflow
--   executions of this workflow execution. The supported child policies
--   are: * <tt>TERMINATE</tt> – The child executions are terminated. *
--   <tt>REQUEST_CANCEL</tt> – A request to cancel is attempted for each
--   child execution by recording a
--   <tt>WorkflowExecutionCancelRequested</tt> event in its history. It is
--   up to the decider to take appropriate actions when it receives an
--   execution history with this event. * <tt>ABANDON</tt> – No action is
--   taken. The child executions continue to run.</li>
--   </ul>
workflowExecutionTerminatedEventAttributes :: ChildPolicy -> WorkflowExecutionTerminatedEventAttributes

-- | If set, indicates that the workflow execution was automatically
--   terminated, and specifies the cause. This happens if the parent
--   workflow execution times out or is terminated and the child policy is
--   set to terminate child executions.
weteaCause :: Lens' WorkflowExecutionTerminatedEventAttributes (Maybe WorkflowExecutionTerminatedCause)

-- | The reason provided for the termination.
weteaReason :: Lens' WorkflowExecutionTerminatedEventAttributes (Maybe Text)

-- | The details provided for the termination.
weteaDetails :: Lens' WorkflowExecutionTerminatedEventAttributes (Maybe Text)

-- | The policy used for the child workflow executions of this workflow
--   execution. The supported child policies are: * <tt>TERMINATE</tt> –
--   The child executions are terminated. * <tt>REQUEST_CANCEL</tt> – A
--   request to cancel is attempted for each child execution by recording a
--   <tt>WorkflowExecutionCancelRequested</tt> event in its history. It is
--   up to the decider to take appropriate actions when it receives an
--   execution history with this event. * <tt>ABANDON</tt> – No action is
--   taken. The child executions continue to run.
weteaChildPolicy :: Lens' WorkflowExecutionTerminatedEventAttributes ChildPolicy

-- | Provides the details of the <tt>WorkflowExecutionTimedOut</tt> event.
--   
--   <i>See:</i> <a>workflowExecutionTimedOutEventAttributes</a> smart
--   constructor.
data WorkflowExecutionTimedOutEventAttributes

-- | Creates a value of <a>WorkflowExecutionTimedOutEventAttributes</a>
--   with the minimum fields required to make a request.
--   
--   Use one of the following lenses to modify other fields as desired:
--   
--   <ul>
--   <li><a>wetoeaTimeoutType</a> - The type of timeout that caused this
--   event.</li>
--   <li><a>wetoeaChildPolicy</a> - The policy used for the child workflow
--   executions of this workflow execution. The supported child policies
--   are: * <tt>TERMINATE</tt> – The child executions are terminated. *
--   <tt>REQUEST_CANCEL</tt> – A request to cancel is attempted for each
--   child execution by recording a
--   <tt>WorkflowExecutionCancelRequested</tt> event in its history. It is
--   up to the decider to take appropriate actions when it receives an
--   execution history with this event. * <tt>ABANDON</tt> – No action is
--   taken. The child executions continue to run.</li>
--   </ul>
workflowExecutionTimedOutEventAttributes :: WorkflowExecutionTimeoutType -> ChildPolicy -> WorkflowExecutionTimedOutEventAttributes

-- | The type of timeout that caused this event.
wetoeaTimeoutType :: Lens' WorkflowExecutionTimedOutEventAttributes WorkflowExecutionTimeoutType

-- | The policy used for the child workflow executions of this workflow
--   execution. The supported child policies are: * <tt>TERMINATE</tt> –
--   The child executions are terminated. * <tt>REQUEST_CANCEL</tt> – A
--   request to cancel is attempted for each child execution by recording a
--   <tt>WorkflowExecutionCancelRequested</tt> event in its history. It is
--   up to the decider to take appropriate actions when it receives an
--   execution history with this event. * <tt>ABANDON</tt> – No action is
--   taken. The child executions continue to run.
wetoeaChildPolicy :: Lens' WorkflowExecutionTimedOutEventAttributes ChildPolicy

-- | Represents a workflow type.
--   
--   <i>See:</i> <a>workflowType</a> smart constructor.
data WorkflowType

-- | Creates a value of <a>WorkflowType</a> with the minimum fields
--   required to make a request.
--   
--   Use one of the following lenses to modify other fields as desired:
--   
--   <ul>
--   <li><a>wtName</a> - The name of the workflow type.</li>
--   <li><a>wtVersion</a> - The version of the workflow type.</li>
--   </ul>
workflowType :: Text -> Text -> WorkflowType

-- | The name of the workflow type.
wtName :: Lens' WorkflowType Text

-- | The version of the workflow type.
wtVersion :: Lens' WorkflowType Text

-- | The configuration settings of a workflow type.
--   
--   <i>See:</i> <a>workflowTypeConfiguration</a> smart constructor.
data WorkflowTypeConfiguration

-- | Creates a value of <a>WorkflowTypeConfiguration</a> with the minimum
--   fields required to make a request.
--   
--   Use one of the following lenses to modify other fields as desired:
--   
--   <ul>
--   <li><a>wtcDefaultLambdaRole</a> - The default IAM role attached to
--   this workflow type.</li>
--   <li><a>wtcDefaultChildPolicy</a> - The default policy to use for the
--   child workflow executions when a workflow execution of this type is
--   terminated, by calling the <tt>TerminateWorkflowExecution</tt> action
--   explicitly or due to an expired timeout. This default can be
--   overridden when starting a workflow execution using the
--   <tt>StartWorkflowExecution</tt> action or the
--   <tt>StartChildWorkflowExecution</tt> <a>Decision</a> . The supported
--   child policies are: * <tt>TERMINATE</tt> – The child executions are
--   terminated. * <tt>REQUEST_CANCEL</tt> – A request to cancel is
--   attempted for each child execution by recording a
--   <tt>WorkflowExecutionCancelRequested</tt> event in its history. It is
--   up to the decider to take appropriate actions when it receives an
--   execution history with this event. * <tt>ABANDON</tt> – No action is
--   taken. The child executions continue to run.</li>
--   <li><a>wtcDefaultTaskList</a> - The default task list, specified when
--   registering the workflow type, for decisions tasks scheduled for
--   workflow executions of this type. This default can be overridden when
--   starting a workflow execution using the
--   <tt>StartWorkflowExecution</tt> action or the
--   <tt>StartChildWorkflowExecution</tt> <a>Decision</a> .</li>
--   <li><a>wtcDefaultTaskPriority</a> - The default task priority,
--   specified when registering the workflow type, for all decision tasks
--   of this workflow type. This default can be overridden when starting a
--   workflow execution using the <tt>StartWorkflowExecution</tt> action or
--   the <tt>StartChildWorkflowExecution</tt> decision. Valid values are
--   integers that range from Java's <tt>Integer.MIN_VALUE</tt>
--   (-2147483648) to <tt>Integer.MAX_VALUE</tt> (2147483647). Higher
--   numbers indicate higher priority. For more information about setting
--   task priority, see <a>Setting Task Priority</a> in the <i>Amazon SWF
--   Developer Guide</i> .</li>
--   <li><a>wtcDefaultExecutionStartToCloseTimeout</a> - The default
--   maximum duration, specified when registering the workflow type, for
--   executions of this workflow type. This default can be overridden when
--   starting a workflow execution using the
--   <tt>StartWorkflowExecution</tt> action or the
--   <tt>StartChildWorkflowExecution</tt> <a>Decision</a> . The duration is
--   specified in seconds, an integer greater than or equal to <tt>0</tt> .
--   You can use <tt>NONE</tt> to specify unlimited duration.</li>
--   <li><a>wtcDefaultTaskStartToCloseTimeout</a> - The default maximum
--   duration, specified when registering the workflow type, that a
--   decision task for executions of this workflow type might take before
--   returning completion or failure. If the task doesn'tdo close in the
--   specified time then the task is automatically timed out and
--   rescheduled. If the decider eventually reports a completion or
--   failure, it is ignored. This default can be overridden when starting a
--   workflow execution using the <tt>StartWorkflowExecution</tt> action or
--   the <tt>StartChildWorkflowExecution</tt> <a>Decision</a> . The
--   duration is specified in seconds, an integer greater than or equal to
--   <tt>0</tt> . You can use <tt>NONE</tt> to specify unlimited
--   duration.</li>
--   </ul>
workflowTypeConfiguration :: WorkflowTypeConfiguration

-- | The default IAM role attached to this workflow type.
wtcDefaultLambdaRole :: Lens' WorkflowTypeConfiguration (Maybe Text)

-- | The default policy to use for the child workflow executions when a
--   workflow execution of this type is terminated, by calling the
--   <tt>TerminateWorkflowExecution</tt> action explicitly or due to an
--   expired timeout. This default can be overridden when starting a
--   workflow execution using the <tt>StartWorkflowExecution</tt> action or
--   the <tt>StartChildWorkflowExecution</tt> <a>Decision</a> . The
--   supported child policies are: * <tt>TERMINATE</tt> – The child
--   executions are terminated. * <tt>REQUEST_CANCEL</tt> – A request to
--   cancel is attempted for each child execution by recording a
--   <tt>WorkflowExecutionCancelRequested</tt> event in its history. It is
--   up to the decider to take appropriate actions when it receives an
--   execution history with this event. * <tt>ABANDON</tt> – No action is
--   taken. The child executions continue to run.
wtcDefaultChildPolicy :: Lens' WorkflowTypeConfiguration (Maybe ChildPolicy)

-- | The default task list, specified when registering the workflow type,
--   for decisions tasks scheduled for workflow executions of this type.
--   This default can be overridden when starting a workflow execution
--   using the <tt>StartWorkflowExecution</tt> action or the
--   <tt>StartChildWorkflowExecution</tt> <a>Decision</a> .
wtcDefaultTaskList :: Lens' WorkflowTypeConfiguration (Maybe TaskList)

-- | The default task priority, specified when registering the workflow
--   type, for all decision tasks of this workflow type. This default can
--   be overridden when starting a workflow execution using the
--   <tt>StartWorkflowExecution</tt> action or the
--   <tt>StartChildWorkflowExecution</tt> decision. Valid values are
--   integers that range from Java's <tt>Integer.MIN_VALUE</tt>
--   (-2147483648) to <tt>Integer.MAX_VALUE</tt> (2147483647). Higher
--   numbers indicate higher priority. For more information about setting
--   task priority, see <a>Setting Task Priority</a> in the <i>Amazon SWF
--   Developer Guide</i> .
wtcDefaultTaskPriority :: Lens' WorkflowTypeConfiguration (Maybe Text)

-- | The default maximum duration, specified when registering the workflow
--   type, for executions of this workflow type. This default can be
--   overridden when starting a workflow execution using the
--   <tt>StartWorkflowExecution</tt> action or the
--   <tt>StartChildWorkflowExecution</tt> <a>Decision</a> . The duration is
--   specified in seconds, an integer greater than or equal to <tt>0</tt> .
--   You can use <tt>NONE</tt> to specify unlimited duration.
wtcDefaultExecutionStartToCloseTimeout :: Lens' WorkflowTypeConfiguration (Maybe Text)

-- | The default maximum duration, specified when registering the workflow
--   type, that a decision task for executions of this workflow type might
--   take before returning completion or failure. If the task doesn'tdo
--   close in the specified time then the task is automatically timed out
--   and rescheduled. If the decider eventually reports a completion or
--   failure, it is ignored. This default can be overridden when starting a
--   workflow execution using the <tt>StartWorkflowExecution</tt> action or
--   the <tt>StartChildWorkflowExecution</tt> <a>Decision</a> . The
--   duration is specified in seconds, an integer greater than or equal to
--   <tt>0</tt> . You can use <tt>NONE</tt> to specify unlimited duration.
wtcDefaultTaskStartToCloseTimeout :: Lens' WorkflowTypeConfiguration (Maybe Text)

-- | Used to filter workflow execution query results by type. Each
--   parameter, if specified, defines a rule that must be satisfied by each
--   returned result.
--   
--   <i>See:</i> <a>workflowTypeFilter</a> smart constructor.
data WorkflowTypeFilter

-- | Creates a value of <a>WorkflowTypeFilter</a> with the minimum fields
--   required to make a request.
--   
--   Use one of the following lenses to modify other fields as desired:
--   
--   <ul>
--   <li><a>wtfVersion</a> - Version of the workflow type.</li>
--   <li><a>wtfName</a> - Name of the workflow type.</li>
--   </ul>
workflowTypeFilter :: Text -> WorkflowTypeFilter

-- | Version of the workflow type.
wtfVersion :: Lens' WorkflowTypeFilter (Maybe Text)

-- | Name of the workflow type.
wtfName :: Lens' WorkflowTypeFilter Text

-- | Contains information about a workflow type.
--   
--   <i>See:</i> <a>workflowTypeInfo</a> smart constructor.
data WorkflowTypeInfo

-- | Creates a value of <a>WorkflowTypeInfo</a> with the minimum fields
--   required to make a request.
--   
--   Use one of the following lenses to modify other fields as desired:
--   
--   <ul>
--   <li><a>wtiDeprecationDate</a> - If the type is in deprecated state,
--   then it is set to the date when the type was deprecated.</li>
--   <li><a>wtiDescription</a> - The description of the type registered
--   through <tt>RegisterWorkflowType</tt> .</li>
--   <li><a>wtiWorkflowType</a> - The workflow type this information is
--   about.</li>
--   <li><a>wtiStatus</a> - The current status of the workflow type.</li>
--   <li><a>wtiCreationDate</a> - The date when this type was
--   registered.</li>
--   </ul>
workflowTypeInfo :: WorkflowType -> RegistrationStatus -> UTCTime -> WorkflowTypeInfo

-- | If the type is in deprecated state, then it is set to the date when
--   the type was deprecated.
wtiDeprecationDate :: Lens' WorkflowTypeInfo (Maybe UTCTime)

-- | The description of the type registered through
--   <tt>RegisterWorkflowType</tt> .
wtiDescription :: Lens' WorkflowTypeInfo (Maybe Text)

-- | The workflow type this information is about.
wtiWorkflowType :: Lens' WorkflowTypeInfo WorkflowType

-- | The current status of the workflow type.
wtiStatus :: Lens' WorkflowTypeInfo RegistrationStatus

-- | The date when this type was registered.
wtiCreationDate :: Lens' WorkflowTypeInfo UTCTime
