packages feed

amazonka-swf 1.4.4 → 1.4.5

raw patch · 36 files changed

+7124/−7489 lines, 36 filesdep ~amazonka-coredep ~amazonka-swfdep ~amazonka-testPVP: major bump suggested

API removals or changes: PVP suggests a major version bump

Dependency ranges changed: amazonka-core, amazonka-swf, amazonka-test

API changes (from Hackage documentation)

- Network.AWS.SWF.CountClosedWorkflowExecutions: instance Data.Aeson.Types.Class.ToJSON Network.AWS.SWF.CountClosedWorkflowExecutions.CountClosedWorkflowExecutions
- Network.AWS.SWF.CountOpenWorkflowExecutions: instance Data.Aeson.Types.Class.ToJSON Network.AWS.SWF.CountOpenWorkflowExecutions.CountOpenWorkflowExecutions
- Network.AWS.SWF.CountPendingActivityTasks: instance Data.Aeson.Types.Class.ToJSON Network.AWS.SWF.CountPendingActivityTasks.CountPendingActivityTasks
- Network.AWS.SWF.CountPendingDecisionTasks: instance Data.Aeson.Types.Class.ToJSON Network.AWS.SWF.CountPendingDecisionTasks.CountPendingDecisionTasks
- Network.AWS.SWF.DeprecateActivityType: instance Data.Aeson.Types.Class.ToJSON Network.AWS.SWF.DeprecateActivityType.DeprecateActivityType
- Network.AWS.SWF.DeprecateDomain: instance Data.Aeson.Types.Class.ToJSON Network.AWS.SWF.DeprecateDomain.DeprecateDomain
- Network.AWS.SWF.DeprecateWorkflowType: instance Data.Aeson.Types.Class.ToJSON Network.AWS.SWF.DeprecateWorkflowType.DeprecateWorkflowType
- Network.AWS.SWF.DescribeActivityType: instance Data.Aeson.Types.Class.ToJSON Network.AWS.SWF.DescribeActivityType.DescribeActivityType
- Network.AWS.SWF.DescribeDomain: instance Data.Aeson.Types.Class.ToJSON Network.AWS.SWF.DescribeDomain.DescribeDomain
- Network.AWS.SWF.DescribeWorkflowExecution: instance Data.Aeson.Types.Class.ToJSON Network.AWS.SWF.DescribeWorkflowExecution.DescribeWorkflowExecution
- Network.AWS.SWF.DescribeWorkflowType: instance Data.Aeson.Types.Class.ToJSON Network.AWS.SWF.DescribeWorkflowType.DescribeWorkflowType
- Network.AWS.SWF.GetWorkflowExecutionHistory: instance Data.Aeson.Types.Class.ToJSON Network.AWS.SWF.GetWorkflowExecutionHistory.GetWorkflowExecutionHistory
- Network.AWS.SWF.ListActivityTypes: instance Data.Aeson.Types.Class.ToJSON Network.AWS.SWF.ListActivityTypes.ListActivityTypes
- Network.AWS.SWF.ListClosedWorkflowExecutions: instance Data.Aeson.Types.Class.ToJSON Network.AWS.SWF.ListClosedWorkflowExecutions.ListClosedWorkflowExecutions
- Network.AWS.SWF.ListDomains: instance Data.Aeson.Types.Class.ToJSON Network.AWS.SWF.ListDomains.ListDomains
- Network.AWS.SWF.ListOpenWorkflowExecutions: instance Data.Aeson.Types.Class.ToJSON Network.AWS.SWF.ListOpenWorkflowExecutions.ListOpenWorkflowExecutions
- Network.AWS.SWF.ListWorkflowTypes: instance Data.Aeson.Types.Class.ToJSON Network.AWS.SWF.ListWorkflowTypes.ListWorkflowTypes
- Network.AWS.SWF.PollForActivityTask: instance Data.Aeson.Types.Class.ToJSON Network.AWS.SWF.PollForActivityTask.PollForActivityTask
- Network.AWS.SWF.PollForDecisionTask: instance Data.Aeson.Types.Class.ToJSON Network.AWS.SWF.PollForDecisionTask.PollForDecisionTask
- Network.AWS.SWF.RecordActivityTaskHeartbeat: instance Data.Aeson.Types.Class.ToJSON Network.AWS.SWF.RecordActivityTaskHeartbeat.RecordActivityTaskHeartbeat
- Network.AWS.SWF.RegisterActivityType: instance Data.Aeson.Types.Class.ToJSON Network.AWS.SWF.RegisterActivityType.RegisterActivityType
- Network.AWS.SWF.RegisterDomain: instance Data.Aeson.Types.Class.ToJSON Network.AWS.SWF.RegisterDomain.RegisterDomain
- Network.AWS.SWF.RegisterWorkflowType: instance Data.Aeson.Types.Class.ToJSON Network.AWS.SWF.RegisterWorkflowType.RegisterWorkflowType
- Network.AWS.SWF.RequestCancelWorkflowExecution: instance Data.Aeson.Types.Class.ToJSON Network.AWS.SWF.RequestCancelWorkflowExecution.RequestCancelWorkflowExecution
- Network.AWS.SWF.RespondActivityTaskCanceled: instance Data.Aeson.Types.Class.ToJSON Network.AWS.SWF.RespondActivityTaskCanceled.RespondActivityTaskCanceled
- Network.AWS.SWF.RespondActivityTaskCompleted: instance Data.Aeson.Types.Class.ToJSON Network.AWS.SWF.RespondActivityTaskCompleted.RespondActivityTaskCompleted
- Network.AWS.SWF.RespondActivityTaskFailed: instance Data.Aeson.Types.Class.ToJSON Network.AWS.SWF.RespondActivityTaskFailed.RespondActivityTaskFailed
- Network.AWS.SWF.RespondDecisionTaskCompleted: instance Data.Aeson.Types.Class.ToJSON Network.AWS.SWF.RespondDecisionTaskCompleted.RespondDecisionTaskCompleted
- Network.AWS.SWF.SignalWorkflowExecution: instance Data.Aeson.Types.Class.ToJSON Network.AWS.SWF.SignalWorkflowExecution.SignalWorkflowExecution
- Network.AWS.SWF.StartWorkflowExecution: instance Data.Aeson.Types.Class.ToJSON Network.AWS.SWF.StartWorkflowExecution.StartWorkflowExecution
- Network.AWS.SWF.TerminateWorkflowExecution: instance Data.Aeson.Types.Class.ToJSON Network.AWS.SWF.TerminateWorkflowExecution.TerminateWorkflowExecution
+ Network.AWS.SWF.CountClosedWorkflowExecutions: instance Data.Aeson.Types.ToJSON.ToJSON Network.AWS.SWF.CountClosedWorkflowExecutions.CountClosedWorkflowExecutions
+ Network.AWS.SWF.CountOpenWorkflowExecutions: instance Data.Aeson.Types.ToJSON.ToJSON Network.AWS.SWF.CountOpenWorkflowExecutions.CountOpenWorkflowExecutions
+ Network.AWS.SWF.CountPendingActivityTasks: instance Data.Aeson.Types.ToJSON.ToJSON Network.AWS.SWF.CountPendingActivityTasks.CountPendingActivityTasks
+ Network.AWS.SWF.CountPendingDecisionTasks: instance Data.Aeson.Types.ToJSON.ToJSON Network.AWS.SWF.CountPendingDecisionTasks.CountPendingDecisionTasks
+ Network.AWS.SWF.DeprecateActivityType: instance Data.Aeson.Types.ToJSON.ToJSON Network.AWS.SWF.DeprecateActivityType.DeprecateActivityType
+ Network.AWS.SWF.DeprecateDomain: instance Data.Aeson.Types.ToJSON.ToJSON Network.AWS.SWF.DeprecateDomain.DeprecateDomain
+ Network.AWS.SWF.DeprecateWorkflowType: instance Data.Aeson.Types.ToJSON.ToJSON Network.AWS.SWF.DeprecateWorkflowType.DeprecateWorkflowType
+ Network.AWS.SWF.DescribeActivityType: instance Data.Aeson.Types.ToJSON.ToJSON Network.AWS.SWF.DescribeActivityType.DescribeActivityType
+ Network.AWS.SWF.DescribeDomain: instance Data.Aeson.Types.ToJSON.ToJSON Network.AWS.SWF.DescribeDomain.DescribeDomain
+ Network.AWS.SWF.DescribeWorkflowExecution: instance Data.Aeson.Types.ToJSON.ToJSON Network.AWS.SWF.DescribeWorkflowExecution.DescribeWorkflowExecution
+ Network.AWS.SWF.DescribeWorkflowType: instance Data.Aeson.Types.ToJSON.ToJSON Network.AWS.SWF.DescribeWorkflowType.DescribeWorkflowType
+ Network.AWS.SWF.GetWorkflowExecutionHistory: instance Data.Aeson.Types.ToJSON.ToJSON Network.AWS.SWF.GetWorkflowExecutionHistory.GetWorkflowExecutionHistory
+ Network.AWS.SWF.ListActivityTypes: instance Data.Aeson.Types.ToJSON.ToJSON Network.AWS.SWF.ListActivityTypes.ListActivityTypes
+ Network.AWS.SWF.ListClosedWorkflowExecutions: instance Data.Aeson.Types.ToJSON.ToJSON Network.AWS.SWF.ListClosedWorkflowExecutions.ListClosedWorkflowExecutions
+ Network.AWS.SWF.ListDomains: instance Data.Aeson.Types.ToJSON.ToJSON Network.AWS.SWF.ListDomains.ListDomains
+ Network.AWS.SWF.ListOpenWorkflowExecutions: instance Data.Aeson.Types.ToJSON.ToJSON Network.AWS.SWF.ListOpenWorkflowExecutions.ListOpenWorkflowExecutions
+ Network.AWS.SWF.ListWorkflowTypes: instance Data.Aeson.Types.ToJSON.ToJSON Network.AWS.SWF.ListWorkflowTypes.ListWorkflowTypes
+ Network.AWS.SWF.PollForActivityTask: instance Data.Aeson.Types.ToJSON.ToJSON Network.AWS.SWF.PollForActivityTask.PollForActivityTask
+ Network.AWS.SWF.PollForDecisionTask: instance Data.Aeson.Types.ToJSON.ToJSON Network.AWS.SWF.PollForDecisionTask.PollForDecisionTask
+ Network.AWS.SWF.RecordActivityTaskHeartbeat: instance Data.Aeson.Types.ToJSON.ToJSON Network.AWS.SWF.RecordActivityTaskHeartbeat.RecordActivityTaskHeartbeat
+ Network.AWS.SWF.RegisterActivityType: instance Data.Aeson.Types.ToJSON.ToJSON Network.AWS.SWF.RegisterActivityType.RegisterActivityType
+ Network.AWS.SWF.RegisterDomain: instance Data.Aeson.Types.ToJSON.ToJSON Network.AWS.SWF.RegisterDomain.RegisterDomain
+ Network.AWS.SWF.RegisterWorkflowType: instance Data.Aeson.Types.ToJSON.ToJSON Network.AWS.SWF.RegisterWorkflowType.RegisterWorkflowType
+ Network.AWS.SWF.RequestCancelWorkflowExecution: instance Data.Aeson.Types.ToJSON.ToJSON Network.AWS.SWF.RequestCancelWorkflowExecution.RequestCancelWorkflowExecution
+ Network.AWS.SWF.RespondActivityTaskCanceled: instance Data.Aeson.Types.ToJSON.ToJSON Network.AWS.SWF.RespondActivityTaskCanceled.RespondActivityTaskCanceled
+ Network.AWS.SWF.RespondActivityTaskCompleted: instance Data.Aeson.Types.ToJSON.ToJSON Network.AWS.SWF.RespondActivityTaskCompleted.RespondActivityTaskCompleted
+ Network.AWS.SWF.RespondActivityTaskFailed: instance Data.Aeson.Types.ToJSON.ToJSON Network.AWS.SWF.RespondActivityTaskFailed.RespondActivityTaskFailed
+ Network.AWS.SWF.RespondDecisionTaskCompleted: instance Data.Aeson.Types.ToJSON.ToJSON Network.AWS.SWF.RespondDecisionTaskCompleted.RespondDecisionTaskCompleted
+ Network.AWS.SWF.SignalWorkflowExecution: instance Data.Aeson.Types.ToJSON.ToJSON Network.AWS.SWF.SignalWorkflowExecution.SignalWorkflowExecution
+ Network.AWS.SWF.StartWorkflowExecution: instance Data.Aeson.Types.ToJSON.ToJSON Network.AWS.SWF.StartWorkflowExecution.StartWorkflowExecution
+ Network.AWS.SWF.TerminateWorkflowExecution: instance Data.Aeson.Types.ToJSON.ToJSON Network.AWS.SWF.TerminateWorkflowExecution.TerminateWorkflowExecution

Files

README.md view
@@ -8,30 +8,27 @@  ## Version -`1.4.4`+`1.4.5`   ## Description -Amazon Simple Workflow Service--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 /task/ 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 <http://docs.aws.amazon.com/amazonswf/latest/developerguide/ Amazon SWF Developer Guide>.- Documentation is available via [Hackage](http://hackage.haskell.org/package/amazonka-swf) and the [AWS API Reference](https://aws.amazon.com/documentation/).  The types from this library are intended to be used with [amazonka](http://hackage.haskell.org/package/amazonka),-which provides mechanisms for specifying AuthN/AuthZ information and sending requests.+which provides mechanisms for specifying AuthN/AuthZ information, sending requests,+and receiving responses. -Use of lenses is required for constructing and manipulating types.-This is due to the amount of nesting of AWS types and transparency regarding+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 [lens](http://hackage.haskell.org/package/lens) or [lens-family-core](http://hackage.haskell.org/package/lens-family-core).++See [Network.AWS.SWF](http://hackage.haskell.org/package/amazonka-swf/docs/Network-AWS-SWF.html)+or [the AWS documentation](https://aws.amazon.com/documentation/) to get started.+  ## Contribute 
amazonka-swf.cabal view
@@ -1,5 +1,5 @@ name:                  amazonka-swf-version:               1.4.4+version:               1.4.5 synopsis:              Amazon Simple Workflow Service SDK. homepage:              https://github.com/brendanhay/amazonka bug-reports:           https://github.com/brendanhay/amazonka/issues@@ -13,26 +13,19 @@ cabal-version:         >= 1.10 extra-source-files:    README.md fixture/*.yaml fixture/*.proto src/.gitkeep description:-    Amazon Simple Workflow Service--    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 /task/ 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 <http://docs.aws.amazon.com/amazonswf/latest/developerguide/ Amazon SWF Developer Guide>.-    .     The types from this library are intended to be used with     <http://hackage.haskell.org/package/amazonka amazonka>, which provides-    mechanisms for specifying AuthN/AuthZ information and sending requests.+    mechanisms for specifying AuthN/AuthZ information, sending requests,+    and receiving responses.     .-    Use of lenses is required for constructing and manipulating types.-    This is due to the amount of nesting of AWS types and transparency regarding+    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 <http://hackage.haskell.org/package/lens lens> or     <http://hackage.haskell.org/package/lens-family-core lens-family-core>.     .-    See "Network.AWS.SWF" or <https://aws.amazon.com/documentation/ the AWS Documentation>+    See "Network.AWS.SWF" or <https://aws.amazon.com/documentation/ the AWS documentation>     to get started.  source-repository head@@ -86,7 +79,7 @@         , Network.AWS.SWF.Types.Sum      build-depends:-          amazonka-core == 1.4.4.*+          amazonka-core == 1.4.5.*         , base          >= 4.7     && < 5  test-suite amazonka-swf-test@@ -106,9 +99,9 @@         , Test.AWS.SWF.Internal      build-depends:-          amazonka-core == 1.4.4.*-        , amazonka-test == 1.4.4.*-        , amazonka-swf == 1.4.4.*+          amazonka-core == 1.4.5.*+        , amazonka-test == 1.4.5.*+        , amazonka-swf == 1.4.5.*         , base         , bytestring         , tasty
gen/Network/AWS/SWF.hs view
@@ -11,13 +11,14 @@ -- Stability   : auto-generated -- Portability : non-portable (GHC extensions) ----- Amazon Simple Workflow Service+-- __Amazon Simple Workflow Service__ ----- 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 /task/ 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.+-- 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 /task/ 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 <http://docs.aws.amazon.com/amazonswf/latest/developerguide/ Amazon SWF Developer Guide>.+-- This documentation serves as reference only. For a broader overview of the Amazon SWF programming model, see the <http://docs.aws.amazon.com/amazonswf/latest/developerguide/ Amazon SWF Developer Guide> .+-- module Network.AWS.SWF     (     -- * Service Configuration
gen/Network/AWS/SWF/CountClosedWorkflowExecutions.hs view
@@ -20,20 +20,17 @@ -- -- Returns the number of closed workflow executions within the given domain that meet the specified filtering criteria. ----- This operation is eventually consistent. The results are best effort and may not exactly reflect recent updates and changes. -- -- __Access Control__ ----- You can use IAM policies to control this action\'s access to Amazon SWF resources as follows:+-- You can use IAM policies to control this action's access to Amazon SWF resources as follows: ----- -   Use a 'Resource' element with the domain name to limit the action to only specified domains.--- -   Use an 'Action' element to allow or deny permission to call this action.--- -   Constrain the following parameters by using a 'Condition' element with the appropriate keys.---     -   'tagFilter.tag': String constraint. The key is 'swf:tagFilter.tag'.---     -   'typeFilter.name': String constraint. The key is 'swf:typeFilter.name'.---     -   'typeFilter.version': String constraint. The key is 'swf:typeFilter.version'.+--     * Use a @Resource@ element with the domain name to limit the action to only specified domains.    * Use an @Action@ element to allow or deny permission to call this action.    * Constrain the following parameters by using a @Condition@ element with the appropriate keys.     * @tagFilter.tag@ : String constraint. The key is @swf:tagFilter.tag@ .    * @typeFilter.name@ : String constraint. The key is @swf:typeFilter.name@ .    * @typeFilter.version@ : String constraint. The key is @swf:typeFilter.version@ . ----- If the caller does not have sufficient permissions to invoke the action, or the parameter values fall outside the specified constraints, the action fails. The associated event attribute\'s __cause__ parameter will be set to OPERATION_NOT_PERMITTED. For details and example IAM policies, see <http://docs.aws.amazon.com/amazonswf/latest/developerguide/swf-dev-iam.html Using IAM to Manage Access to Amazon SWF Workflows>.+--+--+-- If the caller does not have sufficient permissions to invoke the action, or the parameter values fall outside the specified constraints, the action fails. The associated event attribute's __cause__ parameter will be set to OPERATION_NOT_PERMITTED. For details and example IAM policies, see <http://docs.aws.amazon.com/amazonswf/latest/developerguide/swf-dev-iam.html Using IAM to Manage Access to Amazon SWF Workflows> .+-- module Network.AWS.SWF.CountClosedWorkflowExecutions     (     -- * Creating a Request@@ -78,19 +75,19 @@ -- -- Use one of the following lenses to modify other fields as desired: ----- * 'ccweExecutionFilter'+-- * 'ccweExecutionFilter' - If specified, only workflow executions matching the @WorkflowId@ in the filter are counted. ----- * 'ccweCloseStatusFilter'+-- * 'ccweCloseStatusFilter' - If specified, only workflow executions that match this close status are counted. This filter has an affect only if @executionStatus@ is specified as @CLOSED@ . ----- * 'ccweTypeFilter'+-- * 'ccweTypeFilter' - If specified, indicates the type of the workflow executions to be counted. ----- * 'ccweCloseTimeFilter'+-- * 'ccweCloseTimeFilter' - If specified, only workflow executions that meet the close time criteria of the filter are counted. ----- * 'ccweTagFilter'+-- * 'ccweTagFilter' - If specified, only executions that have a tag that matches the filter are counted. ----- * 'ccweStartTimeFilter'+-- * 'ccweStartTimeFilter' - If specified, only workflow executions that meet the start time criteria of the filter are counted. ----- * 'ccweDomain'+-- * 'ccweDomain' - The name of the domain containing the workflow executions to count. countClosedWorkflowExecutions     :: Text -- ^ 'ccweDomain'     -> CountClosedWorkflowExecutions@@ -105,39 +102,27 @@     , _ccweDomain = pDomain_     } --- | If specified, only workflow executions matching the 'WorkflowId' in the filter are counted.------ 'closeStatusFilter', 'executionFilter', 'typeFilter' and 'tagFilter' are mutually exclusive. You can specify at most one of these in a request.+-- | If specified, only workflow executions matching the @WorkflowId@ in the filter are counted. ccweExecutionFilter :: Lens' CountClosedWorkflowExecutions (Maybe WorkflowExecutionFilter) ccweExecutionFilter = lens _ccweExecutionFilter (\ s a -> s{_ccweExecutionFilter = a}); --- | If specified, only workflow executions that match this close status are counted. This filter has an affect only if 'executionStatus' is specified as 'CLOSED'.------ 'closeStatusFilter', 'executionFilter', 'typeFilter' and 'tagFilter' are mutually exclusive. You can specify at most one of these in a request.+-- | If specified, only workflow executions that match this close status are counted. This filter has an affect only if @executionStatus@ is specified as @CLOSED@ . ccweCloseStatusFilter :: Lens' CountClosedWorkflowExecutions (Maybe CloseStatusFilter) ccweCloseStatusFilter = lens _ccweCloseStatusFilter (\ s a -> s{_ccweCloseStatusFilter = a});  -- | If specified, indicates the type of the workflow executions to be counted.------ 'closeStatusFilter', 'executionFilter', 'typeFilter' and 'tagFilter' are mutually exclusive. You can specify at most one of these in a request. ccweTypeFilter :: Lens' CountClosedWorkflowExecutions (Maybe WorkflowTypeFilter) ccweTypeFilter = lens _ccweTypeFilter (\ s a -> s{_ccweTypeFilter = a});  -- | If specified, only workflow executions that meet the close time criteria of the filter are counted.------ 'startTimeFilter' and 'closeTimeFilter' are mutually exclusive. You must specify one of these in a request but not both. ccweCloseTimeFilter :: Lens' CountClosedWorkflowExecutions (Maybe ExecutionTimeFilter) ccweCloseTimeFilter = lens _ccweCloseTimeFilter (\ s a -> s{_ccweCloseTimeFilter = a});  -- | If specified, only executions that have a tag that matches the filter are counted.------ 'closeStatusFilter', 'executionFilter', 'typeFilter' and 'tagFilter' are mutually exclusive. You can specify at most one of these in a request. ccweTagFilter :: Lens' CountClosedWorkflowExecutions (Maybe TagFilter) ccweTagFilter = lens _ccweTagFilter (\ s a -> s{_ccweTagFilter = a});  -- | If specified, only workflow executions that meet the start time criteria of the filter are counted.------ 'startTimeFilter' and 'closeTimeFilter' are mutually exclusive. You must specify one of these in a request but not both. ccweStartTimeFilter :: Lens' CountClosedWorkflowExecutions (Maybe ExecutionTimeFilter) ccweStartTimeFilter = lens _ccweStartTimeFilter (\ s a -> s{_ccweStartTimeFilter = a}); 
gen/Network/AWS/SWF/CountOpenWorkflowExecutions.hs view
@@ -20,20 +20,17 @@ -- -- Returns the number of open workflow executions within the given domain that meet the specified filtering criteria. ----- This operation is eventually consistent. The results are best effort and may not exactly reflect recent updates and changes. -- -- __Access Control__ ----- You can use IAM policies to control this action\'s access to Amazon SWF resources as follows:+-- You can use IAM policies to control this action's access to Amazon SWF resources as follows: ----- -   Use a 'Resource' element with the domain name to limit the action to only specified domains.--- -   Use an 'Action' element to allow or deny permission to call this action.--- -   Constrain the following parameters by using a 'Condition' element with the appropriate keys.---     -   'tagFilter.tag': String constraint. The key is 'swf:tagFilter.tag'.---     -   'typeFilter.name': String constraint. The key is 'swf:typeFilter.name'.---     -   'typeFilter.version': String constraint. The key is 'swf:typeFilter.version'.+--     * Use a @Resource@ element with the domain name to limit the action to only specified domains.    * Use an @Action@ element to allow or deny permission to call this action.    * Constrain the following parameters by using a @Condition@ element with the appropriate keys.     * @tagFilter.tag@ : String constraint. The key is @swf:tagFilter.tag@ .    * @typeFilter.name@ : String constraint. The key is @swf:typeFilter.name@ .    * @typeFilter.version@ : String constraint. The key is @swf:typeFilter.version@ . ----- If the caller does not have sufficient permissions to invoke the action, or the parameter values fall outside the specified constraints, the action fails. The associated event attribute\'s __cause__ parameter will be set to OPERATION_NOT_PERMITTED. For details and example IAM policies, see <http://docs.aws.amazon.com/amazonswf/latest/developerguide/swf-dev-iam.html Using IAM to Manage Access to Amazon SWF Workflows>.+--+--+-- If the caller does not have sufficient permissions to invoke the action, or the parameter values fall outside the specified constraints, the action fails. The associated event attribute's __cause__ parameter will be set to OPERATION_NOT_PERMITTED. For details and example IAM policies, see <http://docs.aws.amazon.com/amazonswf/latest/developerguide/swf-dev-iam.html Using IAM to Manage Access to Amazon SWF Workflows> .+-- module Network.AWS.SWF.CountOpenWorkflowExecutions     (     -- * Creating a Request@@ -74,15 +71,15 @@ -- -- Use one of the following lenses to modify other fields as desired: ----- * 'coweExecutionFilter'+-- * 'coweExecutionFilter' - If specified, only workflow executions matching the @WorkflowId@ in the filter are counted. ----- * 'coweTypeFilter'+-- * 'coweTypeFilter' - Specifies the type of the workflow executions to be counted. ----- * 'coweTagFilter'+-- * 'coweTagFilter' - If specified, only executions that have a tag that matches the filter are counted. ----- * 'coweDomain'+-- * 'coweDomain' - The name of the domain containing the workflow executions to count. ----- * 'coweStartTimeFilter'+-- * 'coweStartTimeFilter' - Specifies the start time criteria that workflow executions must meet in order to be counted. countOpenWorkflowExecutions     :: Text -- ^ 'coweDomain'     -> ExecutionTimeFilter -- ^ 'coweStartTimeFilter'@@ -96,21 +93,15 @@     , _coweStartTimeFilter = pStartTimeFilter_     } --- | If specified, only workflow executions matching the 'WorkflowId' in the filter are counted.------ 'executionFilter', 'typeFilter' and 'tagFilter' are mutually exclusive. You can specify at most one of these in a request.+-- | If specified, only workflow executions matching the @WorkflowId@ in the filter are counted. coweExecutionFilter :: Lens' CountOpenWorkflowExecutions (Maybe WorkflowExecutionFilter) coweExecutionFilter = lens _coweExecutionFilter (\ s a -> s{_coweExecutionFilter = a});  -- | Specifies the type of the workflow executions to be counted.------ 'executionFilter', 'typeFilter' and 'tagFilter' are mutually exclusive. You can specify at most one of these in a request. coweTypeFilter :: Lens' CountOpenWorkflowExecutions (Maybe WorkflowTypeFilter) coweTypeFilter = lens _coweTypeFilter (\ s a -> s{_coweTypeFilter = a});  -- | If specified, only executions that have a tag that matches the filter are counted.------ 'executionFilter', 'typeFilter' and 'tagFilter' are mutually exclusive. You can specify at most one of these in a request. coweTagFilter :: Lens' CountOpenWorkflowExecutions (Maybe TagFilter) coweTagFilter = lens _coweTagFilter (\ s a -> s{_coweTagFilter = a}); 
gen/Network/AWS/SWF/CountPendingActivityTasks.hs view
@@ -20,15 +20,15 @@ -- -- Returns the estimated number of activity tasks in the specified task list. The count returned is an approximation and is not guaranteed to be exact. If you specify a task list that no activity task was ever scheduled in then 0 will be returned. --+-- -- __Access Control__ ----- You can use IAM policies to control this action\'s access to Amazon SWF resources as follows:+-- You can use IAM policies to control this action's access to Amazon SWF resources as follows: ----- -   Use a 'Resource' element with the domain name to limit the action to only specified domains.--- -   Use an 'Action' element to allow or deny permission to call this action.--- -   Constrain the 'taskList.name' parameter by using a __Condition__ element with the 'swf:taskList.name' key to allow the action to access only certain task lists.+--     * Use a @Resource@ element with the domain name to limit the action to only specified domains.    * Use an @Action@ element to allow or deny permission to call this action.    * Constrain the @taskList.name@ parameter by using a __Condition__ element with the @swf:taskList.name@ key to allow the action to access only certain task lists. ----- If the caller does not have sufficient permissions to invoke the action, or the parameter values fall outside the specified constraints, the action fails. The associated event attribute\'s __cause__ parameter will be set to OPERATION_NOT_PERMITTED. For details and example IAM policies, see <http://docs.aws.amazon.com/amazonswf/latest/developerguide/swf-dev-iam.html Using IAM to Manage Access to Amazon SWF Workflows>.+-- If the caller does not have sufficient permissions to invoke the action, or the parameter values fall outside the specified constraints, the action fails. The associated event attribute's __cause__ parameter will be set to OPERATION_NOT_PERMITTED. For details and example IAM policies, see <http://docs.aws.amazon.com/amazonswf/latest/developerguide/swf-dev-iam.html Using IAM to Manage Access to Amazon SWF Workflows> .+-- module Network.AWS.SWF.CountPendingActivityTasks     (     -- * Creating a Request@@ -63,9 +63,9 @@ -- -- Use one of the following lenses to modify other fields as desired: ----- * 'cpatDomain'+-- * 'cpatDomain' - The name of the domain that contains the task list. ----- * 'cpatTaskList'+-- * 'cpatTaskList' - The name of the task list. countPendingActivityTasks     :: Text -- ^ 'cpatDomain'     -> TaskList -- ^ 'cpatTaskList'
gen/Network/AWS/SWF/CountPendingDecisionTasks.hs view
@@ -20,15 +20,15 @@ -- -- Returns the estimated number of decision tasks in the specified task list. The count returned is an approximation and is not guaranteed to be exact. If you specify a task list that no decision task was ever scheduled in then 0 will be returned. --+-- -- __Access Control__ ----- You can use IAM policies to control this action\'s access to Amazon SWF resources as follows:+-- You can use IAM policies to control this action's access to Amazon SWF resources as follows: ----- -   Use a 'Resource' element with the domain name to limit the action to only specified domains.--- -   Use an 'Action' element to allow or deny permission to call this action.--- -   Constrain the 'taskList.name' parameter by using a __Condition__ element with the 'swf:taskList.name' key to allow the action to access only certain task lists.+--     * Use a @Resource@ element with the domain name to limit the action to only specified domains.    * Use an @Action@ element to allow or deny permission to call this action.    * Constrain the @taskList.name@ parameter by using a __Condition__ element with the @swf:taskList.name@ key to allow the action to access only certain task lists. ----- If the caller does not have sufficient permissions to invoke the action, or the parameter values fall outside the specified constraints, the action fails. The associated event attribute\'s __cause__ parameter will be set to OPERATION_NOT_PERMITTED. For details and example IAM policies, see <http://docs.aws.amazon.com/amazonswf/latest/developerguide/swf-dev-iam.html Using IAM to Manage Access to Amazon SWF Workflows>.+-- If the caller does not have sufficient permissions to invoke the action, or the parameter values fall outside the specified constraints, the action fails. The associated event attribute's __cause__ parameter will be set to OPERATION_NOT_PERMITTED. For details and example IAM policies, see <http://docs.aws.amazon.com/amazonswf/latest/developerguide/swf-dev-iam.html Using IAM to Manage Access to Amazon SWF Workflows> .+-- module Network.AWS.SWF.CountPendingDecisionTasks     (     -- * Creating a Request@@ -63,9 +63,9 @@ -- -- Use one of the following lenses to modify other fields as desired: ----- * 'cpdtDomain'+-- * 'cpdtDomain' - The name of the domain that contains the task list. ----- * 'cpdtTaskList'+-- * 'cpdtTaskList' - The name of the task list. countPendingDecisionTasks     :: Text -- ^ 'cpdtDomain'     -> TaskList -- ^ 'cpdtTaskList'
gen/Network/AWS/SWF/DeprecateActivityType.hs view
@@ -18,21 +18,19 @@ -- Stability   : auto-generated -- Portability : non-portable (GHC extensions) ----- Deprecates the specified /activity type/. 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 will continue to run.+-- Deprecates the specified /activity type/ . 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 will continue to run. ----- This operation is eventually consistent. The results are best effort and may not exactly reflect recent updates and changes. -- -- __Access Control__ ----- You can use IAM policies to control this action\'s access to Amazon SWF resources as follows:+-- You can use IAM policies to control this action's access to Amazon SWF resources as follows: ----- -   Use a 'Resource' element with the domain name to limit the action to only specified domains.--- -   Use an 'Action' element to allow or deny permission to call this action.--- -   Constrain the following parameters by using a 'Condition' element with the appropriate keys.---     -   'activityType.name': String constraint. The key is 'swf:activityType.name'.---     -   'activityType.version': String constraint. The key is 'swf:activityType.version'.+--     * Use a @Resource@ element with the domain name to limit the action to only specified domains.    * Use an @Action@ element to allow or deny permission to call this action.    * Constrain the following parameters by using a @Condition@ element with the appropriate keys.     * @activityType.name@ : String constraint. The key is @swf:activityType.name@ .    * @activityType.version@ : String constraint. The key is @swf:activityType.version@ . ----- If the caller does not have sufficient permissions to invoke the action, or the parameter values fall outside the specified constraints, the action fails. The associated event attribute\'s __cause__ parameter will be set to OPERATION_NOT_PERMITTED. For details and example IAM policies, see <http://docs.aws.amazon.com/amazonswf/latest/developerguide/swf-dev-iam.html Using IAM to Manage Access to Amazon SWF Workflows>.+--+--+-- If the caller does not have sufficient permissions to invoke the action, or the parameter values fall outside the specified constraints, the action fails. The associated event attribute's __cause__ parameter will be set to OPERATION_NOT_PERMITTED. For details and example IAM policies, see <http://docs.aws.amazon.com/amazonswf/latest/developerguide/swf-dev-iam.html Using IAM to Manage Access to Amazon SWF Workflows> .+-- module Network.AWS.SWF.DeprecateActivityType     (     -- * Creating a Request@@ -64,9 +62,9 @@ -- -- Use one of the following lenses to modify other fields as desired: ----- * 'depDomain'+-- * 'depDomain' - The name of the domain in which the activity type is registered. ----- * 'depActivityType'+-- * 'depActivityType' - The activity type to deprecate. deprecateActivityType     :: Text -- ^ 'depDomain'     -> ActivityType -- ^ 'depActivityType'
gen/Network/AWS/SWF/DeprecateDomain.hs view
@@ -20,17 +20,15 @@ -- -- 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 will continue to run. ----- This operation is eventually consistent. The results are best effort and may not exactly reflect recent updates and changes. -- -- __Access Control__ ----- You can use IAM policies to control this action\'s access to Amazon SWF resources as follows:+-- You can use IAM policies to control this action's access to Amazon SWF resources as follows: ----- -   Use a 'Resource' element with the domain name to limit the action to only specified domains.--- -   Use an 'Action' element to allow or deny permission to call this action.--- -   You cannot use an IAM policy to constrain this action\'s parameters.+--     * Use a @Resource@ element with the domain name to limit the action to only specified domains.    * Use an @Action@ element to allow or deny permission to call this action.    * You cannot use an IAM policy to constrain this action's parameters. ----- If the caller does not have sufficient permissions to invoke the action, or the parameter values fall outside the specified constraints, the action fails. The associated event attribute\'s __cause__ parameter will be set to OPERATION_NOT_PERMITTED. For details and example IAM policies, see <http://docs.aws.amazon.com/amazonswf/latest/developerguide/swf-dev-iam.html Using IAM to Manage Access to Amazon SWF Workflows>.+-- If the caller does not have sufficient permissions to invoke the action, or the parameter values fall outside the specified constraints, the action fails. The associated event attribute's __cause__ parameter will be set to OPERATION_NOT_PERMITTED. For details and example IAM policies, see <http://docs.aws.amazon.com/amazonswf/latest/developerguide/swf-dev-iam.html Using IAM to Manage Access to Amazon SWF Workflows> .+-- module Network.AWS.SWF.DeprecateDomain     (     -- * Creating a Request@@ -60,7 +58,7 @@ -- -- Use one of the following lenses to modify other fields as desired: ----- * 'dName'+-- * 'dName' - The name of the domain to deprecate. deprecateDomain     :: Text -- ^ 'dName'     -> DeprecateDomain
gen/Network/AWS/SWF/DeprecateWorkflowType.hs view
@@ -18,21 +18,19 @@ -- Stability   : auto-generated -- Portability : non-portable (GHC extensions) ----- Deprecates the specified /workflow type/. After a workflow type has been deprecated, you cannot create new executions of that type. Executions that were started before the type was deprecated will continue to run. A deprecated workflow type may still be used when calling visibility actions.+-- Deprecates the specified /workflow type/ . After a workflow type has been deprecated, you cannot create new executions of that type. Executions that were started before the type was deprecated will continue to run. A deprecated workflow type may still be used when calling visibility actions. ----- This operation is eventually consistent. The results are best effort and may not exactly reflect recent updates and changes. -- -- __Access Control__ ----- You can use IAM policies to control this action\'s access to Amazon SWF resources as follows:+-- You can use IAM policies to control this action's access to Amazon SWF resources as follows: ----- -   Use a 'Resource' element with the domain name to limit the action to only specified domains.--- -   Use an 'Action' element to allow or deny permission to call this action.--- -   Constrain the following parameters by using a 'Condition' element with the appropriate keys.---     -   'workflowType.name': String constraint. The key is 'swf:workflowType.name'.---     -   'workflowType.version': String constraint. The key is 'swf:workflowType.version'.+--     * Use a @Resource@ element with the domain name to limit the action to only specified domains.    * Use an @Action@ element to allow or deny permission to call this action.    * Constrain the following parameters by using a @Condition@ element with the appropriate keys.     * @workflowType.name@ : String constraint. The key is @swf:workflowType.name@ .    * @workflowType.version@ : String constraint. The key is @swf:workflowType.version@ . ----- If the caller does not have sufficient permissions to invoke the action, or the parameter values fall outside the specified constraints, the action fails. The associated event attribute\'s __cause__ parameter will be set to OPERATION_NOT_PERMITTED. For details and example IAM policies, see <http://docs.aws.amazon.com/amazonswf/latest/developerguide/swf-dev-iam.html Using IAM to Manage Access to Amazon SWF Workflows>.+--+--+-- If the caller does not have sufficient permissions to invoke the action, or the parameter values fall outside the specified constraints, the action fails. The associated event attribute's __cause__ parameter will be set to OPERATION_NOT_PERMITTED. For details and example IAM policies, see <http://docs.aws.amazon.com/amazonswf/latest/developerguide/swf-dev-iam.html Using IAM to Manage Access to Amazon SWF Workflows> .+-- module Network.AWS.SWF.DeprecateWorkflowType     (     -- * Creating a Request@@ -64,9 +62,9 @@ -- -- Use one of the following lenses to modify other fields as desired: ----- * 'dDomain'+-- * 'dDomain' - The name of the domain in which the workflow type is registered. ----- * 'dWorkflowType'+-- * 'dWorkflowType' - The workflow type to deprecate. deprecateWorkflowType     :: Text -- ^ 'dDomain'     -> WorkflowType -- ^ 'dWorkflowType'
gen/Network/AWS/SWF/DescribeActivityType.hs view
@@ -20,17 +20,17 @@ -- -- Returns information about the specified activity type. This includes configuration settings provided when the type was registered and other general information about the type. --+-- -- __Access Control__ ----- You can use IAM policies to control this action\'s access to Amazon SWF resources as follows:+-- You can use IAM policies to control this action's access to Amazon SWF resources as follows: ----- -   Use a 'Resource' element with the domain name to limit the action to only specified domains.--- -   Use an 'Action' element to allow or deny permission to call this action.--- -   Constrain the following parameters by using a 'Condition' element with the appropriate keys.---     -   'activityType.name': String constraint. The key is 'swf:activityType.name'.---     -   'activityType.version': String constraint. The key is 'swf:activityType.version'.+--     * Use a @Resource@ element with the domain name to limit the action to only specified domains.    * Use an @Action@ element to allow or deny permission to call this action.    * Constrain the following parameters by using a @Condition@ element with the appropriate keys.     * @activityType.name@ : String constraint. The key is @swf:activityType.name@ .    * @activityType.version@ : String constraint. The key is @swf:activityType.version@ . ----- If the caller does not have sufficient permissions to invoke the action, or the parameter values fall outside the specified constraints, the action fails. The associated event attribute\'s __cause__ parameter will be set to OPERATION_NOT_PERMITTED. For details and example IAM policies, see <http://docs.aws.amazon.com/amazonswf/latest/developerguide/swf-dev-iam.html Using IAM to Manage Access to Amazon SWF Workflows>.+--+--+-- If the caller does not have sufficient permissions to invoke the action, or the parameter values fall outside the specified constraints, the action fails. The associated event attribute's __cause__ parameter will be set to OPERATION_NOT_PERMITTED. For details and example IAM policies, see <http://docs.aws.amazon.com/amazonswf/latest/developerguide/swf-dev-iam.html Using IAM to Manage Access to Amazon SWF Workflows> .+-- module Network.AWS.SWF.DescribeActivityType     (     -- * Creating a Request@@ -66,9 +66,9 @@ -- -- Use one of the following lenses to modify other fields as desired: ----- * 'datDomain'+-- * 'datDomain' - The name of the domain in which the activity type is registered. ----- * 'datActivityType'+-- * 'datActivityType' - The activity type to get information about. Activity types are identified by the @name@ and @version@ that were supplied when the activity was registered. describeActivityType     :: Text -- ^ 'datDomain'     -> ActivityType -- ^ 'datActivityType'@@ -83,7 +83,7 @@ datDomain :: Lens' DescribeActivityType Text datDomain = lens _datDomain (\ s a -> s{_datDomain = a}); --- | The activity type to get information about. Activity types are identified by the 'name' and 'version' that were supplied when the activity was registered.+-- | The activity type to get information about. Activity types are identified by the @name@ and @version@ that were supplied when the activity was registered. datActivityType :: Lens' DescribeActivityType ActivityType datActivityType = lens _datActivityType (\ s a -> s{_datActivityType = a}); @@ -127,6 +127,8 @@  -- | Detailed information about an activity type. --+--+-- -- /See:/ 'describeActivityTypeResponse' smart constructor. data DescribeActivityTypeResponse = DescribeActivityTypeResponse'     { _datrsResponseStatus :: !Int@@ -138,11 +140,11 @@ -- -- Use one of the following lenses to modify other fields as desired: ----- * 'datrsResponseStatus'+-- * 'datrsResponseStatus' - -- | The response status code. ----- * 'datrsTypeInfo'+-- * 'datrsTypeInfo' - General information about the activity type. The status of activity type (returned in the ActivityTypeInfo structure) can be one of the following.     * __REGISTERED__ : The type is registered and available. Workers supporting this type should be running.     * __DEPRECATED__ : The type was deprecated using 'DeprecateActivityType' , but is still in use. You should keep workers supporting this type running. You cannot create new tasks of this type. ----- * 'datrsConfiguration'+-- * 'datrsConfiguration' - The configuration settings registered with the activity type. describeActivityTypeResponse     :: Int -- ^ 'datrsResponseStatus'     -> ActivityTypeInfo -- ^ 'datrsTypeInfo'@@ -155,16 +157,11 @@     , _datrsConfiguration = pConfiguration_     } --- | The response status code.+-- | -- | The response status code. datrsResponseStatus :: Lens' DescribeActivityTypeResponse Int datrsResponseStatus = lens _datrsResponseStatus (\ s a -> s{_datrsResponseStatus = a}); --- | General information about the activity type.------ The status of activity type (returned in the ActivityTypeInfo structure) can be one of the following.------ -   __REGISTERED__: The type is registered and available. Workers supporting this type should be running.--- -   __DEPRECATED__: The type was deprecated using < DeprecateActivityType>, but is still in use. You should keep workers supporting this type running. You cannot create new tasks of this type.+-- | General information about the activity type. The status of activity type (returned in the ActivityTypeInfo structure) can be one of the following.     * __REGISTERED__ : The type is registered and available. Workers supporting this type should be running.     * __DEPRECATED__ : The type was deprecated using 'DeprecateActivityType' , 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 datrsTypeInfo = lens _datrsTypeInfo (\ s a -> s{_datrsTypeInfo = a}); 
gen/Network/AWS/SWF/DescribeDomain.hs view
@@ -20,15 +20,15 @@ -- -- Returns information about the specified domain, including description and status. --+-- -- __Access Control__ ----- You can use IAM policies to control this action\'s access to Amazon SWF resources as follows:+-- You can use IAM policies to control this action's access to Amazon SWF resources as follows: ----- -   Use a 'Resource' element with the domain name to limit the action to only specified domains.--- -   Use an 'Action' element to allow or deny permission to call this action.--- -   You cannot use an IAM policy to constrain this action\'s parameters.+--     * Use a @Resource@ element with the domain name to limit the action to only specified domains.    * Use an @Action@ element to allow or deny permission to call this action.    * You cannot use an IAM policy to constrain this action's parameters. ----- If the caller does not have sufficient permissions to invoke the action, or the parameter values fall outside the specified constraints, the action fails. The associated event attribute\'s __cause__ parameter will be set to OPERATION_NOT_PERMITTED. For details and example IAM policies, see <http://docs.aws.amazon.com/amazonswf/latest/developerguide/swf-dev-iam.html Using IAM to Manage Access to Amazon SWF Workflows>.+-- If the caller does not have sufficient permissions to invoke the action, or the parameter values fall outside the specified constraints, the action fails. The associated event attribute's __cause__ parameter will be set to OPERATION_NOT_PERMITTED. For details and example IAM policies, see <http://docs.aws.amazon.com/amazonswf/latest/developerguide/swf-dev-iam.html Using IAM to Manage Access to Amazon SWF Workflows> .+-- module Network.AWS.SWF.DescribeDomain     (     -- * Creating a Request@@ -62,7 +62,7 @@ -- -- Use one of the following lenses to modify other fields as desired: ----- * 'ddName'+-- * 'ddName' - The name of the domain to describe. describeDomain     :: Text -- ^ 'ddName'     -> DescribeDomain@@ -111,6 +111,8 @@  -- | Contains details of a domain. --+--+-- -- /See:/ 'describeDomainResponse' smart constructor. data DescribeDomainResponse = DescribeDomainResponse'     { _ddrsResponseStatus :: !Int@@ -122,11 +124,11 @@ -- -- Use one of the following lenses to modify other fields as desired: ----- * 'ddrsResponseStatus'+-- * 'ddrsResponseStatus' - -- | The response status code. ----- * 'ddrsDomainInfo'+-- * 'ddrsDomainInfo' - Undocumented member. ----- * 'ddrsConfiguration'+-- * 'ddrsConfiguration' - Undocumented member. describeDomainResponse     :: Int -- ^ 'ddrsResponseStatus'     -> DomainInfo -- ^ 'ddrsDomainInfo'@@ -139,7 +141,7 @@     , _ddrsConfiguration = pConfiguration_     } --- | The response status code.+-- | -- | The response status code. ddrsResponseStatus :: Lens' DescribeDomainResponse Int ddrsResponseStatus = lens _ddrsResponseStatus (\ s a -> s{_ddrsResponseStatus = a}); 
gen/Network/AWS/SWF/DescribeWorkflowExecution.hs view
@@ -20,17 +20,15 @@ -- -- Returns information about the specified workflow execution including its type and some statistics. ----- This operation is eventually consistent. The results are best effort and may not exactly reflect recent updates and changes. -- -- __Access Control__ ----- You can use IAM policies to control this action\'s access to Amazon SWF resources as follows:+-- You can use IAM policies to control this action's access to Amazon SWF resources as follows: ----- -   Use a 'Resource' element with the domain name to limit the action to only specified domains.--- -   Use an 'Action' element to allow or deny permission to call this action.--- -   You cannot use an IAM policy to constrain this action\'s parameters.+--     * Use a @Resource@ element with the domain name to limit the action to only specified domains.    * Use an @Action@ element to allow or deny permission to call this action.    * You cannot use an IAM policy to constrain this action's parameters. ----- If the caller does not have sufficient permissions to invoke the action, or the parameter values fall outside the specified constraints, the action fails. The associated event attribute\'s __cause__ parameter will be set to OPERATION_NOT_PERMITTED. For details and example IAM policies, see <http://docs.aws.amazon.com/amazonswf/latest/developerguide/swf-dev-iam.html Using IAM to Manage Access to Amazon SWF Workflows>.+-- If the caller does not have sufficient permissions to invoke the action, or the parameter values fall outside the specified constraints, the action fails. The associated event attribute's __cause__ parameter will be set to OPERATION_NOT_PERMITTED. For details and example IAM policies, see <http://docs.aws.amazon.com/amazonswf/latest/developerguide/swf-dev-iam.html Using IAM to Manage Access to Amazon SWF Workflows> .+-- module Network.AWS.SWF.DescribeWorkflowExecution     (     -- * Creating a Request@@ -69,9 +67,9 @@ -- -- Use one of the following lenses to modify other fields as desired: ----- * 'dweDomain'+-- * 'dweDomain' - The name of the domain containing the workflow execution. ----- * 'dweExecution'+-- * 'dweExecution' - The workflow execution to describe. describeWorkflowExecution     :: Text -- ^ 'dweDomain'     -> WorkflowExecution -- ^ 'dweExecution'@@ -134,6 +132,8 @@  -- | Contains details about a workflow execution. --+--+-- -- /See:/ 'describeWorkflowExecutionResponse' smart constructor. data DescribeWorkflowExecutionResponse = DescribeWorkflowExecutionResponse'     { _dwersLatestActivityTaskTimestamp :: !(Maybe POSIX)@@ -148,17 +148,17 @@ -- -- Use one of the following lenses to modify other fields as desired: ----- * 'dwersLatestActivityTaskTimestamp'+-- * 'dwersLatestActivityTaskTimestamp' - 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. ----- * 'dwersLatestExecutionContext'+-- * 'dwersLatestExecutionContext' - 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 'RespondDecisionTaskCompleted' . ----- * 'dwersResponseStatus'+-- * 'dwersResponseStatus' - -- | The response status code. ----- * 'dwersExecutionInfo'+-- * 'dwersExecutionInfo' - Information about the workflow execution. ----- * 'dwersExecutionConfiguration'+-- * 'dwersExecutionConfiguration' - The configuration settings for this workflow execution including timeout values, tasklist etc. ----- * 'dwersOpenCounts'+-- * 'dwersOpenCounts' - The number of tasks for this workflow execution. This includes open and closed tasks of all types. describeWorkflowExecutionResponse     :: Int -- ^ 'dwersResponseStatus'     -> WorkflowExecutionInfo -- ^ 'dwersExecutionInfo'@@ -179,11 +179,11 @@ dwersLatestActivityTaskTimestamp :: Lens' DescribeWorkflowExecutionResponse (Maybe UTCTime) dwersLatestActivityTaskTimestamp = lens _dwersLatestActivityTaskTimestamp (\ s a -> s{_dwersLatestActivityTaskTimestamp = a}) . mapping _Time; --- | 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 < RespondDecisionTaskCompleted>.+-- | 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 'RespondDecisionTaskCompleted' . dwersLatestExecutionContext :: Lens' DescribeWorkflowExecutionResponse (Maybe Text) dwersLatestExecutionContext = lens _dwersLatestExecutionContext (\ s a -> s{_dwersLatestExecutionContext = a}); --- | The response status code.+-- | -- | The response status code. dwersResponseStatus :: Lens' DescribeWorkflowExecutionResponse Int dwersResponseStatus = lens _dwersResponseStatus (\ s a -> s{_dwersResponseStatus = a}); 
gen/Network/AWS/SWF/DescribeWorkflowType.hs view
@@ -18,19 +18,19 @@ -- Stability   : auto-generated -- Portability : non-portable (GHC extensions) ----- Returns information about the specified /workflow type/. This includes configuration settings specified when the type was registered and other information such as creation date, current status, and so on.+-- Returns information about the specified /workflow type/ . This includes configuration settings specified when the type was registered and other information such as creation date, current status, and so on. --+-- -- __Access Control__ ----- You can use IAM policies to control this action\'s access to Amazon SWF resources as follows:+-- You can use IAM policies to control this action's access to Amazon SWF resources as follows: ----- -   Use a 'Resource' element with the domain name to limit the action to only specified domains.--- -   Use an 'Action' element to allow or deny permission to call this action.--- -   Constrain the following parameters by using a 'Condition' element with the appropriate keys.---     -   'workflowType.name': String constraint. The key is 'swf:workflowType.name'.---     -   'workflowType.version': String constraint. The key is 'swf:workflowType.version'.+--     * Use a @Resource@ element with the domain name to limit the action to only specified domains.    * Use an @Action@ element to allow or deny permission to call this action.    * Constrain the following parameters by using a @Condition@ element with the appropriate keys.     * @workflowType.name@ : String constraint. The key is @swf:workflowType.name@ .    * @workflowType.version@ : String constraint. The key is @swf:workflowType.version@ . ----- If the caller does not have sufficient permissions to invoke the action, or the parameter values fall outside the specified constraints, the action fails. The associated event attribute\'s __cause__ parameter will be set to OPERATION_NOT_PERMITTED. For details and example IAM policies, see <http://docs.aws.amazon.com/amazonswf/latest/developerguide/swf-dev-iam.html Using IAM to Manage Access to Amazon SWF Workflows>.+--+--+-- If the caller does not have sufficient permissions to invoke the action, or the parameter values fall outside the specified constraints, the action fails. The associated event attribute's __cause__ parameter will be set to OPERATION_NOT_PERMITTED. For details and example IAM policies, see <http://docs.aws.amazon.com/amazonswf/latest/developerguide/swf-dev-iam.html Using IAM to Manage Access to Amazon SWF Workflows> .+-- module Network.AWS.SWF.DescribeWorkflowType     (     -- * Creating a Request@@ -66,9 +66,9 @@ -- -- Use one of the following lenses to modify other fields as desired: ----- * 'dwtDomain'+-- * 'dwtDomain' - The name of the domain in which this workflow type is registered. ----- * 'dwtWorkflowType'+-- * 'dwtWorkflowType' - The workflow type to describe. describeWorkflowType     :: Text -- ^ 'dwtDomain'     -> WorkflowType -- ^ 'dwtWorkflowType'@@ -127,6 +127,8 @@  -- | Contains details about a workflow type. --+--+-- -- /See:/ 'describeWorkflowTypeResponse' smart constructor. data DescribeWorkflowTypeResponse = DescribeWorkflowTypeResponse'     { _dwtrsResponseStatus :: !Int@@ -138,11 +140,11 @@ -- -- Use one of the following lenses to modify other fields as desired: ----- * 'dwtrsResponseStatus'+-- * 'dwtrsResponseStatus' - -- | The response status code. ----- * 'dwtrsTypeInfo'+-- * 'dwtrsTypeInfo' - General information about the workflow type. The status of the workflow type (returned in the WorkflowTypeInfo structure) can be one of the following.     * __REGISTERED__ : The type is registered and available. Workers supporting this type should be running.    * __DEPRECATED__ : The type was deprecated using 'DeprecateWorkflowType' , but is still in use. You should keep workers supporting this type running. You cannot create new workflow executions of this type. ----- * 'dwtrsConfiguration'+-- * 'dwtrsConfiguration' - Configuration settings of the workflow type registered through 'RegisterWorkflowType' describeWorkflowTypeResponse     :: Int -- ^ 'dwtrsResponseStatus'     -> WorkflowTypeInfo -- ^ 'dwtrsTypeInfo'@@ -155,20 +157,15 @@     , _dwtrsConfiguration = pConfiguration_     } --- | The response status code.+-- | -- | The response status code. dwtrsResponseStatus :: Lens' DescribeWorkflowTypeResponse Int dwtrsResponseStatus = lens _dwtrsResponseStatus (\ s a -> s{_dwtrsResponseStatus = a}); --- | General information about the workflow type.------ The status of the workflow type (returned in the WorkflowTypeInfo structure) can be one of the following.------ -   __REGISTERED__: The type is registered and available. Workers supporting this type should be running.--- -   __DEPRECATED__: The type was deprecated using < DeprecateWorkflowType>, but is still in use. You should keep workers supporting this type running. You cannot create new workflow executions of this type.+-- | General information about the workflow type. The status of the workflow type (returned in the WorkflowTypeInfo structure) can be one of the following.     * __REGISTERED__ : The type is registered and available. Workers supporting this type should be running.    * __DEPRECATED__ : The type was deprecated using 'DeprecateWorkflowType' , 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 dwtrsTypeInfo = lens _dwtrsTypeInfo (\ s a -> s{_dwtrsTypeInfo = a}); --- | Configuration settings of the workflow type registered through < RegisterWorkflowType>+-- | Configuration settings of the workflow type registered through 'RegisterWorkflowType' dwtrsConfiguration :: Lens' DescribeWorkflowTypeResponse WorkflowTypeConfiguration dwtrsConfiguration = lens _dwtrsConfiguration (\ s a -> s{_dwtrsConfiguration = a}); 
gen/Network/AWS/SWF/GetWorkflowExecutionHistory.hs view
@@ -18,20 +18,18 @@ -- Stability   : auto-generated -- Portability : non-portable (GHC extensions) ----- 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 'nextPageToken' returned by the initial call.+-- 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 @nextPageToken@ returned by the initial call. ----- This operation is eventually consistent. The results are best effort and may not exactly reflect recent updates and changes. -- -- __Access Control__ ----- You can use IAM policies to control this action\'s access to Amazon SWF resources as follows:+-- You can use IAM policies to control this action's access to Amazon SWF resources as follows: ----- -   Use a 'Resource' element with the domain name to limit the action to only specified domains.--- -   Use an 'Action' element to allow or deny permission to call this action.--- -   You cannot use an IAM policy to constrain this action\'s parameters.+--     * Use a @Resource@ element with the domain name to limit the action to only specified domains.    * Use an @Action@ element to allow or deny permission to call this action.    * You cannot use an IAM policy to constrain this action's parameters. ----- If the caller does not have sufficient permissions to invoke the action, or the parameter values fall outside the specified constraints, the action fails. The associated event attribute\'s __cause__ parameter will be set to OPERATION_NOT_PERMITTED. For details and example IAM policies, see <http://docs.aws.amazon.com/amazonswf/latest/developerguide/swf-dev-iam.html Using IAM to Manage Access to Amazon SWF Workflows>.+-- If the caller does not have sufficient permissions to invoke the action, or the parameter values fall outside the specified constraints, the action fails. The associated event attribute's __cause__ parameter will be set to OPERATION_NOT_PERMITTED. For details and example IAM policies, see <http://docs.aws.amazon.com/amazonswf/latest/developerguide/swf-dev-iam.html Using IAM to Manage Access to Amazon SWF Workflows> . --+-- -- This operation returns paginated results. module Network.AWS.SWF.GetWorkflowExecutionHistory     (@@ -75,15 +73,15 @@ -- -- Use one of the following lenses to modify other fields as desired: ----- * 'gwehNextPageToken'+-- * 'gwehNextPageToken' - If a @NextPageToken@ 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 @nextPageToken@ . Keep all other arguments unchanged. The configured @maximumPageSize@ determines how many results can be returned in a single call. ----- * 'gwehReverseOrder'+-- * 'gwehReverseOrder' - When set to @true@ , returns the events in reverse order. By default the results are returned in ascending order of the @eventTimeStamp@ of the events. ----- * 'gwehMaximumPageSize'+-- * 'gwehMaximumPageSize' - The maximum number of results that will be returned per call. @nextPageToken@ 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 /smaller/ than the maximum. This is an upper limit only; the actual number of results returned per call may be fewer than the specified maximum. ----- * 'gwehDomain'+-- * 'gwehDomain' - The name of the domain containing the workflow execution. ----- * 'gwehExecution'+-- * 'gwehExecution' - Specifies the workflow execution for which to return the history. getWorkflowExecutionHistory     :: Text -- ^ 'gwehDomain'     -> WorkflowExecution -- ^ 'gwehExecution'@@ -97,19 +95,15 @@     , _gwehExecution = pExecution_     } --- | If a 'NextPageToken' 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 'nextPageToken'. Keep all other arguments unchanged.------ The configured 'maximumPageSize' determines how many results can be returned in a single call.+-- | If a @NextPageToken@ 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 @nextPageToken@ . Keep all other arguments unchanged. The configured @maximumPageSize@ determines how many results can be returned in a single call. gwehNextPageToken :: Lens' GetWorkflowExecutionHistory (Maybe Text) gwehNextPageToken = lens _gwehNextPageToken (\ s a -> s{_gwehNextPageToken = a}); --- | When set to 'true', returns the events in reverse order. By default the results are returned in ascending order of the 'eventTimeStamp' of the events.+-- | When set to @true@ , returns the events in reverse order. By default the results are returned in ascending order of the @eventTimeStamp@ of the events. gwehReverseOrder :: Lens' GetWorkflowExecutionHistory (Maybe Bool) gwehReverseOrder = lens _gwehReverseOrder (\ s a -> s{_gwehReverseOrder = a}); --- | The maximum number of results that will be returned per call. 'nextPageToken' 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 /smaller/ than the maximum.------ This is an upper limit only; the actual number of results returned per call may be fewer than the specified maximum.+-- | The maximum number of results that will be returned per call. @nextPageToken@ 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 /smaller/ 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) gwehMaximumPageSize = lens _gwehMaximumPageSize (\ s a -> s{_gwehMaximumPageSize = a}) . mapping _Nat; @@ -172,6 +166,8 @@  -- | 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. --+--+-- -- /See:/ 'getWorkflowExecutionHistoryResponse' smart constructor. data GetWorkflowExecutionHistoryResponse = GetWorkflowExecutionHistoryResponse'     { _gwehrsNextPageToken  :: !(Maybe Text)@@ -183,11 +179,11 @@ -- -- Use one of the following lenses to modify other fields as desired: ----- * 'gwehrsNextPageToken'+-- * 'gwehrsNextPageToken' - If a @NextPageToken@ 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 @nextPageToken@ . Keep all other arguments unchanged. The configured @maximumPageSize@ determines how many results can be returned in a single call. ----- * 'gwehrsResponseStatus'+-- * 'gwehrsResponseStatus' - -- | The response status code. ----- * 'gwehrsEvents'+-- * 'gwehrsEvents' - The list of history events. getWorkflowExecutionHistoryResponse     :: Int -- ^ 'gwehrsResponseStatus'     -> GetWorkflowExecutionHistoryResponse@@ -198,13 +194,11 @@     , _gwehrsEvents = mempty     } --- | If a 'NextPageToken' 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 'nextPageToken'. Keep all other arguments unchanged.------ The configured 'maximumPageSize' determines how many results can be returned in a single call.+-- | If a @NextPageToken@ 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 @nextPageToken@ . Keep all other arguments unchanged. The configured @maximumPageSize@ determines how many results can be returned in a single call. gwehrsNextPageToken :: Lens' GetWorkflowExecutionHistoryResponse (Maybe Text) gwehrsNextPageToken = lens _gwehrsNextPageToken (\ s a -> s{_gwehrsNextPageToken = a}); --- | The response status code.+-- | -- | The response status code. gwehrsResponseStatus :: Lens' GetWorkflowExecutionHistoryResponse Int gwehrsResponseStatus = lens _gwehrsResponseStatus (\ s a -> s{_gwehrsResponseStatus = a}); 
gen/Network/AWS/SWF/ListActivityTypes.hs view
@@ -18,18 +18,18 @@ -- Stability   : auto-generated -- Portability : non-portable (GHC extensions) ----- 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 'nextPageToken' returned by the initial call.+-- 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 @nextPageToken@ returned by the initial call. --+-- -- __Access Control__ ----- You can use IAM policies to control this action\'s access to Amazon SWF resources as follows:+-- You can use IAM policies to control this action's access to Amazon SWF resources as follows: ----- -   Use a 'Resource' element with the domain name to limit the action to only specified domains.--- -   Use an 'Action' element to allow or deny permission to call this action.--- -   You cannot use an IAM policy to constrain this action\'s parameters.+--     * Use a @Resource@ element with the domain name to limit the action to only specified domains.    * Use an @Action@ element to allow or deny permission to call this action.    * You cannot use an IAM policy to constrain this action's parameters. ----- If the caller does not have sufficient permissions to invoke the action, or the parameter values fall outside the specified constraints, the action fails. The associated event attribute\'s __cause__ parameter will be set to OPERATION_NOT_PERMITTED. For details and example IAM policies, see <http://docs.aws.amazon.com/amazonswf/latest/developerguide/swf-dev-iam.html Using IAM to Manage Access to Amazon SWF Workflows>.+-- If the caller does not have sufficient permissions to invoke the action, or the parameter values fall outside the specified constraints, the action fails. The associated event attribute's __cause__ parameter will be set to OPERATION_NOT_PERMITTED. For details and example IAM policies, see <http://docs.aws.amazon.com/amazonswf/latest/developerguide/swf-dev-iam.html Using IAM to Manage Access to Amazon SWF Workflows> . --+-- -- This operation returns paginated results. module Network.AWS.SWF.ListActivityTypes     (@@ -75,17 +75,17 @@ -- -- Use one of the following lenses to modify other fields as desired: ----- * 'latNextPageToken'+-- * 'latNextPageToken' - If a @NextPageToken@ 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 @nextPageToken@ . Keep all other arguments unchanged. The configured @maximumPageSize@ determines how many results can be returned in a single call. ----- * 'latReverseOrder'+-- * 'latReverseOrder' - When set to @true@ , returns the results in reverse order. By default, the results are returned in ascending alphabetical order by @name@ of the activity types. ----- * 'latName'+-- * 'latName' - If specified, only lists the activity types that have this name. ----- * 'latMaximumPageSize'+-- * 'latMaximumPageSize' - The maximum number of results that will be returned per call. @nextPageToken@ 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 /smaller/ than the maximum. This is an upper limit only; the actual number of results returned per call may be fewer than the specified maximum. ----- * 'latDomain'+-- * 'latDomain' - The name of the domain in which the activity types have been registered. ----- * 'latRegistrationStatus'+-- * 'latRegistrationStatus' - Specifies the registration status of the activity types to list. listActivityTypes     :: Text -- ^ 'latDomain'     -> RegistrationStatus -- ^ 'latRegistrationStatus'@@ -100,13 +100,11 @@     , _latRegistrationStatus = pRegistrationStatus_     } --- | If a 'NextPageToken' 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 'nextPageToken'. Keep all other arguments unchanged.------ The configured 'maximumPageSize' determines how many results can be returned in a single call.+-- | If a @NextPageToken@ 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 @nextPageToken@ . Keep all other arguments unchanged. The configured @maximumPageSize@ determines how many results can be returned in a single call. latNextPageToken :: Lens' ListActivityTypes (Maybe Text) latNextPageToken = lens _latNextPageToken (\ s a -> s{_latNextPageToken = a}); --- | When set to 'true', returns the results in reverse order. By default, the results are returned in ascending alphabetical order by 'name' of the activity types.+-- | When set to @true@ , returns the results in reverse order. By default, the results are returned in ascending alphabetical order by @name@ of the activity types. latReverseOrder :: Lens' ListActivityTypes (Maybe Bool) latReverseOrder = lens _latReverseOrder (\ s a -> s{_latReverseOrder = a}); @@ -114,9 +112,7 @@ latName :: Lens' ListActivityTypes (Maybe Text) latName = lens _latName (\ s a -> s{_latName = a}); --- | The maximum number of results that will be returned per call. 'nextPageToken' 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 /smaller/ than the maximum.------ This is an upper limit only; the actual number of results returned per call may be fewer than the specified maximum.+-- | The maximum number of results that will be returned per call. @nextPageToken@ 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 /smaller/ 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) latMaximumPageSize = lens _latMaximumPageSize (\ s a -> s{_latMaximumPageSize = a}) . mapping _Nat; @@ -180,6 +176,8 @@  -- | Contains a paginated list of activity type information structures. --+--+-- -- /See:/ 'listActivityTypesResponse' smart constructor. data ListActivityTypesResponse = ListActivityTypesResponse'     { _latrsNextPageToken  :: !(Maybe Text)@@ -191,11 +189,11 @@ -- -- Use one of the following lenses to modify other fields as desired: ----- * 'latrsNextPageToken'+-- * 'latrsNextPageToken' - If a @NextPageToken@ 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 @nextPageToken@ . Keep all other arguments unchanged. The configured @maximumPageSize@ determines how many results can be returned in a single call. ----- * 'latrsResponseStatus'+-- * 'latrsResponseStatus' - -- | The response status code. ----- * 'latrsTypeInfos'+-- * 'latrsTypeInfos' - List of activity type information. listActivityTypesResponse     :: Int -- ^ 'latrsResponseStatus'     -> ListActivityTypesResponse@@ -206,13 +204,11 @@     , _latrsTypeInfos = mempty     } --- | If a 'NextPageToken' 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 'nextPageToken'. Keep all other arguments unchanged.------ The configured 'maximumPageSize' determines how many results can be returned in a single call.+-- | If a @NextPageToken@ 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 @nextPageToken@ . Keep all other arguments unchanged. The configured @maximumPageSize@ determines how many results can be returned in a single call. latrsNextPageToken :: Lens' ListActivityTypesResponse (Maybe Text) latrsNextPageToken = lens _latrsNextPageToken (\ s a -> s{_latrsNextPageToken = a}); --- | The response status code.+-- | -- | The response status code. latrsResponseStatus :: Lens' ListActivityTypesResponse Int latrsResponseStatus = lens _latrsResponseStatus (\ s a -> s{_latrsResponseStatus = a}); 
gen/Network/AWS/SWF/ListClosedWorkflowExecutions.hs view
@@ -20,21 +20,18 @@ -- -- 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. ----- This operation is eventually consistent. The results are best effort and may not exactly reflect recent updates and changes. -- -- __Access Control__ ----- You can use IAM policies to control this action\'s access to Amazon SWF resources as follows:+-- You can use IAM policies to control this action's access to Amazon SWF resources as follows: ----- -   Use a 'Resource' element with the domain name to limit the action to only specified domains.--- -   Use an 'Action' element to allow or deny permission to call this action.--- -   Constrain the following parameters by using a 'Condition' element with the appropriate keys.---     -   'tagFilter.tag': String constraint. The key is 'swf:tagFilter.tag'.---     -   'typeFilter.name': String constraint. The key is 'swf:typeFilter.name'.---     -   'typeFilter.version': String constraint. The key is 'swf:typeFilter.version'.+--     * Use a @Resource@ element with the domain name to limit the action to only specified domains.    * Use an @Action@ element to allow or deny permission to call this action.    * Constrain the following parameters by using a @Condition@ element with the appropriate keys.     * @tagFilter.tag@ : String constraint. The key is @swf:tagFilter.tag@ .    * @typeFilter.name@ : String constraint. The key is @swf:typeFilter.name@ .    * @typeFilter.version@ : String constraint. The key is @swf:typeFilter.version@ . ----- If the caller does not have sufficient permissions to invoke the action, or the parameter values fall outside the specified constraints, the action fails. The associated event attribute\'s __cause__ parameter will be set to OPERATION_NOT_PERMITTED. For details and example IAM policies, see <http://docs.aws.amazon.com/amazonswf/latest/developerguide/swf-dev-iam.html Using IAM to Manage Access to Amazon SWF Workflows>. --+--+-- If the caller does not have sufficient permissions to invoke the action, or the parameter values fall outside the specified constraints, the action fails. The associated event attribute's __cause__ parameter will be set to OPERATION_NOT_PERMITTED. For details and example IAM policies, see <http://docs.aws.amazon.com/amazonswf/latest/developerguide/swf-dev-iam.html Using IAM to Manage Access to Amazon SWF Workflows> .+--+-- -- This operation returns paginated results. module Network.AWS.SWF.ListClosedWorkflowExecutions     (@@ -87,25 +84,25 @@ -- -- Use one of the following lenses to modify other fields as desired: ----- * 'lcweNextPageToken'+-- * 'lcweNextPageToken' - If a @NextPageToken@ 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 @nextPageToken@ . Keep all other arguments unchanged. The configured @maximumPageSize@ determines how many results can be returned in a single call. ----- * 'lcweExecutionFilter'+-- * 'lcweExecutionFilter' - If specified, only workflow executions matching the workflow ID specified in the filter are returned. ----- * 'lcweCloseStatusFilter'+-- * 'lcweCloseStatusFilter' - If specified, only workflow executions that match this /close status/ are listed. For example, if TERMINATED is specified, then only TERMINATED workflow executions are listed. ----- * 'lcweTypeFilter'+-- * 'lcweTypeFilter' - If specified, only executions of the type specified in the filter are returned. ----- * 'lcweCloseTimeFilter'+-- * 'lcweCloseTimeFilter' - 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. ----- * 'lcweReverseOrder'+-- * 'lcweReverseOrder' - When set to @true@ , 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. ----- * 'lcweTagFilter'+-- * 'lcweTagFilter' - If specified, only executions that have the matching tag are listed. ----- * 'lcweStartTimeFilter'+-- * 'lcweStartTimeFilter' - 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. ----- * 'lcweMaximumPageSize'+-- * 'lcweMaximumPageSize' - The maximum number of results that will be returned per call. @nextPageToken@ 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 /smaller/ than the maximum. This is an upper limit only; the actual number of results returned per call may be fewer than the specified maximum. ----- * 'lcweDomain'+-- * 'lcweDomain' - The name of the domain that contains the workflow executions to list. listClosedWorkflowExecutions     :: Text -- ^ 'lcweDomain'     -> ListClosedWorkflowExecutions@@ -123,55 +120,39 @@     , _lcweDomain = pDomain_     } --- | If a 'NextPageToken' 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 'nextPageToken'. Keep all other arguments unchanged.------ The configured 'maximumPageSize' determines how many results can be returned in a single call.+-- | If a @NextPageToken@ 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 @nextPageToken@ . Keep all other arguments unchanged. The configured @maximumPageSize@ determines how many results can be returned in a single call. lcweNextPageToken :: Lens' ListClosedWorkflowExecutions (Maybe Text) lcweNextPageToken = lens _lcweNextPageToken (\ s a -> s{_lcweNextPageToken = a});  -- | If specified, only workflow executions matching the workflow ID specified in the filter are returned.------ 'closeStatusFilter', 'executionFilter', 'typeFilter' and 'tagFilter' are mutually exclusive. You can specify at most one of these in a request. lcweExecutionFilter :: Lens' ListClosedWorkflowExecutions (Maybe WorkflowExecutionFilter) lcweExecutionFilter = lens _lcweExecutionFilter (\ s a -> s{_lcweExecutionFilter = a});  -- | If specified, only workflow executions that match this /close status/ are listed. For example, if TERMINATED is specified, then only TERMINATED workflow executions are listed.------ 'closeStatusFilter', 'executionFilter', 'typeFilter' and 'tagFilter' are mutually exclusive. You can specify at most one of these in a request. lcweCloseStatusFilter :: Lens' ListClosedWorkflowExecutions (Maybe CloseStatusFilter) lcweCloseStatusFilter = lens _lcweCloseStatusFilter (\ s a -> s{_lcweCloseStatusFilter = a});  -- | If specified, only executions of the type specified in the filter are returned.------ 'closeStatusFilter', 'executionFilter', 'typeFilter' and 'tagFilter' are mutually exclusive. You can specify at most one of these in a request. lcweTypeFilter :: Lens' ListClosedWorkflowExecutions (Maybe WorkflowTypeFilter) lcweTypeFilter = lens _lcweTypeFilter (\ s a -> s{_lcweTypeFilter = 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.------ 'startTimeFilter' and 'closeTimeFilter' are mutually exclusive. You must specify one of these in a request but not both. lcweCloseTimeFilter :: Lens' ListClosedWorkflowExecutions (Maybe ExecutionTimeFilter) lcweCloseTimeFilter = lens _lcweCloseTimeFilter (\ s a -> s{_lcweCloseTimeFilter = a}); --- | When set to 'true', 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.+-- | When set to @true@ , 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) lcweReverseOrder = lens _lcweReverseOrder (\ s a -> s{_lcweReverseOrder = a});  -- | If specified, only executions that have the matching tag are listed.------ 'closeStatusFilter', 'executionFilter', 'typeFilter' and 'tagFilter' are mutually exclusive. You can specify at most one of these in a request. lcweTagFilter :: Lens' ListClosedWorkflowExecutions (Maybe TagFilter) lcweTagFilter = lens _lcweTagFilter (\ s a -> s{_lcweTagFilter = 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.------ 'startTimeFilter' and 'closeTimeFilter' are mutually exclusive. You must specify one of these in a request but not both. lcweStartTimeFilter :: Lens' ListClosedWorkflowExecutions (Maybe ExecutionTimeFilter) lcweStartTimeFilter = lens _lcweStartTimeFilter (\ s a -> s{_lcweStartTimeFilter = a}); --- | The maximum number of results that will be returned per call. 'nextPageToken' 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 /smaller/ than the maximum.------ This is an upper limit only; the actual number of results returned per call may be fewer than the specified maximum.+-- | The maximum number of results that will be returned per call. @nextPageToken@ 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 /smaller/ 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) lcweMaximumPageSize = lens _lcweMaximumPageSize (\ s a -> s{_lcweMaximumPageSize = a}) . mapping _Nat; 
gen/Network/AWS/SWF/ListDomains.hs view
@@ -20,18 +20,16 @@ -- -- 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. ----- This operation is eventually consistent. The results are best effort and may not exactly reflect recent updates and changes. -- -- __Access Control__ ----- You can use IAM policies to control this action\'s access to Amazon SWF resources as follows:+-- You can use IAM policies to control this action's access to Amazon SWF resources as follows: ----- -   Use a 'Resource' element with the domain name to limit the action to only specified domains. The element must be set to 'arn:aws:swf::AccountID:domain\/*', where /AccountID/ is the account ID, with no dashes.--- -   Use an 'Action' element to allow or deny permission to call this action.--- -   You cannot use an IAM policy to constrain this action\'s parameters.+--     * Use a @Resource@ element with the domain name to limit the action to only specified domains. The element must be set to @arn:aws:swf::AccountID:domain/*@ , where /AccountID/ is the account ID, with no dashes.    * Use an @Action@ element to allow or deny permission to call this action.    * You cannot use an IAM policy to constrain this action's parameters. ----- If the caller does not have sufficient permissions to invoke the action, or the parameter values fall outside the specified constraints, the action fails. The associated event attribute\'s __cause__ parameter will be set to OPERATION_NOT_PERMITTED. For details and example IAM policies, see <http://docs.aws.amazon.com/amazonswf/latest/developerguide/swf-dev-iam.html Using IAM to Manage Access to Amazon SWF Workflows>.+-- If the caller does not have sufficient permissions to invoke the action, or the parameter values fall outside the specified constraints, the action fails. The associated event attribute's __cause__ parameter will be set to OPERATION_NOT_PERMITTED. For details and example IAM policies, see <http://docs.aws.amazon.com/amazonswf/latest/developerguide/swf-dev-iam.html Using IAM to Manage Access to Amazon SWF Workflows> . --+-- -- This operation returns paginated results. module Network.AWS.SWF.ListDomains     (@@ -73,13 +71,13 @@ -- -- Use one of the following lenses to modify other fields as desired: ----- * 'ldNextPageToken'+-- * 'ldNextPageToken' - If a @NextPageToken@ 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 @nextPageToken@ . Keep all other arguments unchanged. The configured @maximumPageSize@ determines how many results can be returned in a single call. ----- * 'ldReverseOrder'+-- * 'ldReverseOrder' - When set to @true@ , returns the results in reverse order. By default, the results are returned in ascending alphabetical order by @name@ of the domains. ----- * 'ldMaximumPageSize'+-- * 'ldMaximumPageSize' - The maximum number of results that will be returned per call. @nextPageToken@ 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 /smaller/ than the maximum. This is an upper limit only; the actual number of results returned per call may be fewer than the specified maximum. ----- * 'ldRegistrationStatus'+-- * 'ldRegistrationStatus' - Specifies the registration status of the domains to list. listDomains     :: RegistrationStatus -- ^ 'ldRegistrationStatus'     -> ListDomains@@ -91,19 +89,15 @@     , _ldRegistrationStatus = pRegistrationStatus_     } --- | If a 'NextPageToken' 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 'nextPageToken'. Keep all other arguments unchanged.------ The configured 'maximumPageSize' determines how many results can be returned in a single call.+-- | If a @NextPageToken@ 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 @nextPageToken@ . Keep all other arguments unchanged. The configured @maximumPageSize@ determines how many results can be returned in a single call. ldNextPageToken :: Lens' ListDomains (Maybe Text) ldNextPageToken = lens _ldNextPageToken (\ s a -> s{_ldNextPageToken = a}); --- | When set to 'true', returns the results in reverse order. By default, the results are returned in ascending alphabetical order by 'name' of the domains.+-- | When set to @true@ , returns the results in reverse order. By default, the results are returned in ascending alphabetical order by @name@ of the domains. ldReverseOrder :: Lens' ListDomains (Maybe Bool) ldReverseOrder = lens _ldReverseOrder (\ s a -> s{_ldReverseOrder = a}); --- | The maximum number of results that will be returned per call. 'nextPageToken' 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 /smaller/ than the maximum.------ This is an upper limit only; the actual number of results returned per call may be fewer than the specified maximum.+-- | The maximum number of results that will be returned per call. @nextPageToken@ 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 /smaller/ 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) ldMaximumPageSize = lens _ldMaximumPageSize (\ s a -> s{_ldMaximumPageSize = a}) . mapping _Nat; @@ -160,6 +154,8 @@  -- | Contains a paginated collection of DomainInfo structures. --+--+-- -- /See:/ 'listDomainsResponse' smart constructor. data ListDomainsResponse = ListDomainsResponse'     { _ldrsNextPageToken  :: !(Maybe Text)@@ -171,11 +167,11 @@ -- -- Use one of the following lenses to modify other fields as desired: ----- * 'ldrsNextPageToken'+-- * 'ldrsNextPageToken' - If a @NextPageToken@ 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 @nextPageToken@ . Keep all other arguments unchanged. The configured @maximumPageSize@ determines how many results can be returned in a single call. ----- * 'ldrsResponseStatus'+-- * 'ldrsResponseStatus' - -- | The response status code. ----- * 'ldrsDomainInfos'+-- * 'ldrsDomainInfos' - A list of DomainInfo structures. listDomainsResponse     :: Int -- ^ 'ldrsResponseStatus'     -> ListDomainsResponse@@ -186,13 +182,11 @@     , _ldrsDomainInfos = mempty     } --- | If a 'NextPageToken' 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 'nextPageToken'. Keep all other arguments unchanged.------ The configured 'maximumPageSize' determines how many results can be returned in a single call.+-- | If a @NextPageToken@ 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 @nextPageToken@ . Keep all other arguments unchanged. The configured @maximumPageSize@ determines how many results can be returned in a single call. ldrsNextPageToken :: Lens' ListDomainsResponse (Maybe Text) ldrsNextPageToken = lens _ldrsNextPageToken (\ s a -> s{_ldrsNextPageToken = a}); --- | The response status code.+-- | -- | The response status code. ldrsResponseStatus :: Lens' ListDomainsResponse Int ldrsResponseStatus = lens _ldrsResponseStatus (\ s a -> s{_ldrsResponseStatus = a}); 
gen/Network/AWS/SWF/ListOpenWorkflowExecutions.hs view
@@ -20,21 +20,18 @@ -- -- 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. ----- This operation is eventually consistent. The results are best effort and may not exactly reflect recent updates and changes. -- -- __Access Control__ ----- You can use IAM policies to control this action\'s access to Amazon SWF resources as follows:+-- You can use IAM policies to control this action's access to Amazon SWF resources as follows: ----- -   Use a 'Resource' element with the domain name to limit the action to only specified domains.--- -   Use an 'Action' element to allow or deny permission to call this action.--- -   Constrain the following parameters by using a 'Condition' element with the appropriate keys.---     -   'tagFilter.tag': String constraint. The key is 'swf:tagFilter.tag'.---     -   'typeFilter.name': String constraint. The key is 'swf:typeFilter.name'.---     -   'typeFilter.version': String constraint. The key is 'swf:typeFilter.version'.+--     * Use a @Resource@ element with the domain name to limit the action to only specified domains.    * Use an @Action@ element to allow or deny permission to call this action.    * Constrain the following parameters by using a @Condition@ element with the appropriate keys.     * @tagFilter.tag@ : String constraint. The key is @swf:tagFilter.tag@ .    * @typeFilter.name@ : String constraint. The key is @swf:typeFilter.name@ .    * @typeFilter.version@ : String constraint. The key is @swf:typeFilter.version@ . ----- If the caller does not have sufficient permissions to invoke the action, or the parameter values fall outside the specified constraints, the action fails. The associated event attribute\'s __cause__ parameter will be set to OPERATION_NOT_PERMITTED. For details and example IAM policies, see <http://docs.aws.amazon.com/amazonswf/latest/developerguide/swf-dev-iam.html Using IAM to Manage Access to Amazon SWF Workflows>. --+--+-- If the caller does not have sufficient permissions to invoke the action, or the parameter values fall outside the specified constraints, the action fails. The associated event attribute's __cause__ parameter will be set to OPERATION_NOT_PERMITTED. For details and example IAM policies, see <http://docs.aws.amazon.com/amazonswf/latest/developerguide/swf-dev-iam.html Using IAM to Manage Access to Amazon SWF Workflows> .+--+-- -- This operation returns paginated results. module Network.AWS.SWF.ListOpenWorkflowExecutions     (@@ -83,21 +80,21 @@ -- -- Use one of the following lenses to modify other fields as desired: ----- * 'loweNextPageToken'+-- * 'loweNextPageToken' - If a @NextPageToken@ 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 @nextPageToken@ . Keep all other arguments unchanged. The configured @maximumPageSize@ determines how many results can be returned in a single call. ----- * 'loweExecutionFilter'+-- * 'loweExecutionFilter' - If specified, only workflow executions matching the workflow ID specified in the filter are returned. ----- * 'loweTypeFilter'+-- * 'loweTypeFilter' - If specified, only executions of the type specified in the filter are returned. ----- * 'loweReverseOrder'+-- * 'loweReverseOrder' - When set to @true@ , returns the results in reverse order. By default the results are returned in descending order of the start time of the executions. ----- * 'loweTagFilter'+-- * 'loweTagFilter' - If specified, only executions that have the matching tag are listed. ----- * 'loweMaximumPageSize'+-- * 'loweMaximumPageSize' - The maximum number of results that will be returned per call. @nextPageToken@ 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 /smaller/ than the maximum. This is an upper limit only; the actual number of results returned per call may be fewer than the specified maximum. ----- * 'loweDomain'+-- * 'loweDomain' - The name of the domain that contains the workflow executions to list. ----- * 'loweStartTimeFilter'+-- * 'loweStartTimeFilter' - Workflow executions are included in the returned results based on whether their start times are within the range specified by this filter. listOpenWorkflowExecutions     :: Text -- ^ 'loweDomain'     -> ExecutionTimeFilter -- ^ 'loweStartTimeFilter'@@ -114,37 +111,27 @@     , _loweStartTimeFilter = pStartTimeFilter_     } --- | If a 'NextPageToken' 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 'nextPageToken'. Keep all other arguments unchanged.------ The configured 'maximumPageSize' determines how many results can be returned in a single call.+-- | If a @NextPageToken@ 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 @nextPageToken@ . Keep all other arguments unchanged. The configured @maximumPageSize@ determines how many results can be returned in a single call. loweNextPageToken :: Lens' ListOpenWorkflowExecutions (Maybe Text) loweNextPageToken = lens _loweNextPageToken (\ s a -> s{_loweNextPageToken = a});  -- | If specified, only workflow executions matching the workflow ID specified in the filter are returned.------ 'executionFilter', 'typeFilter' and 'tagFilter' are mutually exclusive. You can specify at most one of these in a request. loweExecutionFilter :: Lens' ListOpenWorkflowExecutions (Maybe WorkflowExecutionFilter) loweExecutionFilter = lens _loweExecutionFilter (\ s a -> s{_loweExecutionFilter = a});  -- | If specified, only executions of the type specified in the filter are returned.------ 'executionFilter', 'typeFilter' and 'tagFilter' are mutually exclusive. You can specify at most one of these in a request. loweTypeFilter :: Lens' ListOpenWorkflowExecutions (Maybe WorkflowTypeFilter) loweTypeFilter = lens _loweTypeFilter (\ s a -> s{_loweTypeFilter = a}); --- | When set to 'true', returns the results in reverse order. By default the results are returned in descending order of the start time of the executions.+-- | When set to @true@ , 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) loweReverseOrder = lens _loweReverseOrder (\ s a -> s{_loweReverseOrder = a});  -- | If specified, only executions that have the matching tag are listed.------ 'executionFilter', 'typeFilter' and 'tagFilter' are mutually exclusive. You can specify at most one of these in a request. loweTagFilter :: Lens' ListOpenWorkflowExecutions (Maybe TagFilter) loweTagFilter = lens _loweTagFilter (\ s a -> s{_loweTagFilter = a}); --- | The maximum number of results that will be returned per call. 'nextPageToken' 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 /smaller/ than the maximum.------ This is an upper limit only; the actual number of results returned per call may be fewer than the specified maximum.+-- | The maximum number of results that will be returned per call. @nextPageToken@ 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 /smaller/ 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) loweMaximumPageSize = lens _loweMaximumPageSize (\ s a -> s{_loweMaximumPageSize = a}) . mapping _Nat; 
gen/Network/AWS/SWF/ListWorkflowTypes.hs view
@@ -20,16 +20,16 @@ -- -- 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. --+-- -- __Access Control__ ----- You can use IAM policies to control this action\'s access to Amazon SWF resources as follows:+-- You can use IAM policies to control this action's access to Amazon SWF resources as follows: ----- -   Use a 'Resource' element with the domain name to limit the action to only specified domains.--- -   Use an 'Action' element to allow or deny permission to call this action.--- -   You cannot use an IAM policy to constrain this action\'s parameters.+--     * Use a @Resource@ element with the domain name to limit the action to only specified domains.    * Use an @Action@ element to allow or deny permission to call this action.    * You cannot use an IAM policy to constrain this action's parameters. ----- If the caller does not have sufficient permissions to invoke the action, or the parameter values fall outside the specified constraints, the action fails. The associated event attribute\'s __cause__ parameter will be set to OPERATION_NOT_PERMITTED. For details and example IAM policies, see <http://docs.aws.amazon.com/amazonswf/latest/developerguide/swf-dev-iam.html Using IAM to Manage Access to Amazon SWF Workflows>.+-- If the caller does not have sufficient permissions to invoke the action, or the parameter values fall outside the specified constraints, the action fails. The associated event attribute's __cause__ parameter will be set to OPERATION_NOT_PERMITTED. For details and example IAM policies, see <http://docs.aws.amazon.com/amazonswf/latest/developerguide/swf-dev-iam.html Using IAM to Manage Access to Amazon SWF Workflows> . --+-- -- This operation returns paginated results. module Network.AWS.SWF.ListWorkflowTypes     (@@ -75,17 +75,17 @@ -- -- Use one of the following lenses to modify other fields as desired: ----- * 'lwtNextPageToken'+-- * 'lwtNextPageToken' - If a @NextPageToken@ 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 @nextPageToken@ . Keep all other arguments unchanged. The configured @maximumPageSize@ determines how many results can be returned in a single call. ----- * 'lwtReverseOrder'+-- * 'lwtReverseOrder' - When set to @true@ , returns the results in reverse order. By default the results are returned in ascending alphabetical order of the @name@ of the workflow types. ----- * 'lwtName'+-- * 'lwtName' - If specified, lists the workflow type with this name. ----- * 'lwtMaximumPageSize'+-- * 'lwtMaximumPageSize' - The maximum number of results that will be returned per call. @nextPageToken@ 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 /smaller/ than the maximum. This is an upper limit only; the actual number of results returned per call may be fewer than the specified maximum. ----- * 'lwtDomain'+-- * 'lwtDomain' - The name of the domain in which the workflow types have been registered. ----- * 'lwtRegistrationStatus'+-- * 'lwtRegistrationStatus' - Specifies the registration status of the workflow types to list. listWorkflowTypes     :: Text -- ^ 'lwtDomain'     -> RegistrationStatus -- ^ 'lwtRegistrationStatus'@@ -100,13 +100,11 @@     , _lwtRegistrationStatus = pRegistrationStatus_     } --- | If a 'NextPageToken' 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 'nextPageToken'. Keep all other arguments unchanged.------ The configured 'maximumPageSize' determines how many results can be returned in a single call.+-- | If a @NextPageToken@ 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 @nextPageToken@ . Keep all other arguments unchanged. The configured @maximumPageSize@ determines how many results can be returned in a single call. lwtNextPageToken :: Lens' ListWorkflowTypes (Maybe Text) lwtNextPageToken = lens _lwtNextPageToken (\ s a -> s{_lwtNextPageToken = a}); --- | When set to 'true', returns the results in reverse order. By default the results are returned in ascending alphabetical order of the 'name' of the workflow types.+-- | When set to @true@ , returns the results in reverse order. By default the results are returned in ascending alphabetical order of the @name@ of the workflow types. lwtReverseOrder :: Lens' ListWorkflowTypes (Maybe Bool) lwtReverseOrder = lens _lwtReverseOrder (\ s a -> s{_lwtReverseOrder = a}); @@ -114,9 +112,7 @@ lwtName :: Lens' ListWorkflowTypes (Maybe Text) lwtName = lens _lwtName (\ s a -> s{_lwtName = a}); --- | The maximum number of results that will be returned per call. 'nextPageToken' 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 /smaller/ than the maximum.------ This is an upper limit only; the actual number of results returned per call may be fewer than the specified maximum.+-- | The maximum number of results that will be returned per call. @nextPageToken@ 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 /smaller/ 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) lwtMaximumPageSize = lens _lwtMaximumPageSize (\ s a -> s{_lwtMaximumPageSize = a}) . mapping _Nat; @@ -180,6 +176,8 @@  -- | Contains a paginated list of information structures about workflow types. --+--+-- -- /See:/ 'listWorkflowTypesResponse' smart constructor. data ListWorkflowTypesResponse = ListWorkflowTypesResponse'     { _lwtrsNextPageToken  :: !(Maybe Text)@@ -191,11 +189,11 @@ -- -- Use one of the following lenses to modify other fields as desired: ----- * 'lwtrsNextPageToken'+-- * 'lwtrsNextPageToken' - If a @NextPageToken@ 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 @nextPageToken@ . Keep all other arguments unchanged. The configured @maximumPageSize@ determines how many results can be returned in a single call. ----- * 'lwtrsResponseStatus'+-- * 'lwtrsResponseStatus' - -- | The response status code. ----- * 'lwtrsTypeInfos'+-- * 'lwtrsTypeInfos' - The list of workflow type information. listWorkflowTypesResponse     :: Int -- ^ 'lwtrsResponseStatus'     -> ListWorkflowTypesResponse@@ -206,13 +204,11 @@     , _lwtrsTypeInfos = mempty     } --- | If a 'NextPageToken' 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 'nextPageToken'. Keep all other arguments unchanged.------ The configured 'maximumPageSize' determines how many results can be returned in a single call.+-- | If a @NextPageToken@ 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 @nextPageToken@ . Keep all other arguments unchanged. The configured @maximumPageSize@ determines how many results can be returned in a single call. lwtrsNextPageToken :: Lens' ListWorkflowTypesResponse (Maybe Text) lwtrsNextPageToken = lens _lwtrsNextPageToken (\ s a -> s{_lwtrsNextPageToken = a}); --- | The response status code.+-- | -- | The response status code. lwtrsResponseStatus :: Lens' ListWorkflowTypesResponse Int lwtrsResponseStatus = lens _lwtrsResponseStatus (\ s a -> s{_lwtrsResponseStatus = a}); 
gen/Network/AWS/SWF/PollForActivityTask.hs view
@@ -18,19 +18,17 @@ -- Stability   : auto-generated -- Portability : non-portable (GHC extensions) ----- Used by workers to get an < ActivityTask> from the specified activity 'taskList'. 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 will return 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.+-- Used by workers to get an 'ActivityTask' from the specified activity @taskList@ . 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 will return 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. ----- 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). ----- __Access Control__+-- /Important:/ 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).__Access Control__ ----- You can use IAM policies to control this action\'s access to Amazon SWF resources as follows:+-- You can use IAM policies to control this action's access to Amazon SWF resources as follows: ----- -   Use a 'Resource' element with the domain name to limit the action to only specified domains.--- -   Use an 'Action' element to allow or deny permission to call this action.--- -   Constrain the 'taskList.name' parameter by using a __Condition__ element with the 'swf:taskList.name' key to allow the action to access only certain task lists.+--     * Use a @Resource@ element with the domain name to limit the action to only specified domains.    * Use an @Action@ element to allow or deny permission to call this action.    * Constrain the @taskList.name@ parameter by using a __Condition__ element with the @swf:taskList.name@ key to allow the action to access only certain task lists. ----- If the caller does not have sufficient permissions to invoke the action, or the parameter values fall outside the specified constraints, the action fails. The associated event attribute\'s __cause__ parameter will be set to OPERATION_NOT_PERMITTED. For details and example IAM policies, see <http://docs.aws.amazon.com/amazonswf/latest/developerguide/swf-dev-iam.html Using IAM to Manage Access to Amazon SWF Workflows>.+-- If the caller does not have sufficient permissions to invoke the action, or the parameter values fall outside the specified constraints, the action fails. The associated event attribute's __cause__ parameter will be set to OPERATION_NOT_PERMITTED. For details and example IAM policies, see <http://docs.aws.amazon.com/amazonswf/latest/developerguide/swf-dev-iam.html Using IAM to Manage Access to Amazon SWF Workflows> .+-- module Network.AWS.SWF.PollForActivityTask     (     -- * Creating a Request@@ -72,11 +70,11 @@ -- -- Use one of the following lenses to modify other fields as desired: ----- * 'pfatIdentity'+-- * 'pfatIdentity' - Identity of the worker making the request, recorded in the @ActivityTaskStarted@ event in the workflow history. This enables diagnostic tracing when problems arise. The form of this identity is user defined. ----- * 'pfatDomain'+-- * 'pfatDomain' - The name of the domain that contains the task lists being polled. ----- * 'pfatTaskList'+-- * 'pfatTaskList' - Specifies the task list to poll for activity tasks. The specified string must not start or end with whitespace. It must not contain a @:@ (colon), @/@ (slash), @|@ (vertical bar), or any control characters (\u0000-\u001f | \u007f - \u009f). Also, it must not contain the literal string quotarnquot. pollForActivityTask     :: Text -- ^ 'pfatDomain'     -> TaskList -- ^ 'pfatTaskList'@@ -88,7 +86,7 @@     , _pfatTaskList = pTaskList_     } --- | Identity of the worker making the request, recorded in the 'ActivityTaskStarted' event in the workflow history. This enables diagnostic tracing when problems arise. The form of this identity is user defined.+-- | Identity of the worker making the request, recorded in the @ActivityTaskStarted@ 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) pfatIdentity = lens _pfatIdentity (\ s a -> s{_pfatIdentity = a}); @@ -96,9 +94,7 @@ pfatDomain :: Lens' PollForActivityTask Text pfatDomain = lens _pfatDomain (\ s a -> s{_pfatDomain = 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 ':' (colon), '\/' (slash), '|' (vertical bar), or any control characters (\\u0000-\\u001f | \\u007f - \\u009f). Also, it must not contain the literal string quotarnquot.+-- | Specifies the task list to poll for activity tasks. The specified string must not start or end with whitespace. It must not contain a @:@ (colon), @/@ (slash), @|@ (vertical bar), or any control characters (\u0000-\u001f | \u007f - \u009f). Also, it must not contain the literal string quotarnquot. pfatTaskList :: Lens' PollForActivityTask TaskList pfatTaskList = lens _pfatTaskList (\ s a -> s{_pfatTaskList = a}); @@ -147,6 +143,8 @@  -- | Unit of work sent to an activity worker. --+--+-- -- /See:/ 'pollForActivityTaskResponse' smart constructor. data PollForActivityTaskResponse = PollForActivityTaskResponse'     { _pfatrsActivityType      :: !(Maybe ActivityType)@@ -162,19 +160,19 @@ -- -- Use one of the following lenses to modify other fields as desired: ----- * 'pfatrsActivityType'+-- * 'pfatrsActivityType' - The type of this activity task. ----- * 'pfatrsActivityId'+-- * 'pfatrsActivityId' - The unique ID of the task. ----- * 'pfatrsInput'+-- * 'pfatrsInput' - 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. ----- * 'pfatrsTaskToken'+-- * 'pfatrsTaskToken' - 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. ----- * 'pfatrsWorkflowExecution'+-- * 'pfatrsWorkflowExecution' - The workflow execution that started this activity task. ----- * 'pfatrsResponseStatus'+-- * 'pfatrsResponseStatus' - -- | The response status code. ----- * 'pfatrsStartedEventId'+-- * 'pfatrsStartedEventId' - The ID of the @ActivityTaskStarted@ event recorded in the history. pollForActivityTaskResponse     :: Int -- ^ 'pfatrsResponseStatus'     -> Integer -- ^ 'pfatrsStartedEventId'@@ -210,11 +208,11 @@ pfatrsWorkflowExecution :: Lens' PollForActivityTaskResponse (Maybe WorkflowExecution) pfatrsWorkflowExecution = lens _pfatrsWorkflowExecution (\ s a -> s{_pfatrsWorkflowExecution = a}); --- | The response status code.+-- | -- | The response status code. pfatrsResponseStatus :: Lens' PollForActivityTaskResponse Int pfatrsResponseStatus = lens _pfatrsResponseStatus (\ s a -> s{_pfatrsResponseStatus = a}); --- | The ID of the 'ActivityTaskStarted' event recorded in the history.+-- | The ID of the @ActivityTaskStarted@ event recorded in the history. pfatrsStartedEventId :: Lens' PollForActivityTaskResponse Integer pfatrsStartedEventId = lens _pfatrsStartedEventId (\ s a -> s{_pfatrsStartedEventId = a}); 
gen/Network/AWS/SWF/PollForDecisionTask.hs view
@@ -18,23 +18,19 @@ -- Stability   : auto-generated -- Portability : non-portable (GHC extensions) ----- Used by deciders to get a < DecisionTask> from the specified decision 'taskList'. 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.+-- Used by deciders to get a 'DecisionTask' from the specified decision @taskList@ . 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. ----- Deciders should set their client-side socket timeout to at least 70 seconds (10 seconds higher than the timeout).+-- 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. ----- 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 'PollForDecisionTask' using the 'nextPageToken' returned by the initial call. Note that you do __not__ call 'GetWorkflowExecutionHistory' with this 'nextPageToken'. Instead, call 'PollForDecisionTask' again.+-- /Important:/ Deciders should set their client-side socket timeout to at least 70 seconds (10 seconds higher than the timeout)./Important:/ 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 @PollForDecisionTask@ using the @nextPageToken@ returned by the initial call. Note that you do __not__ call @GetWorkflowExecutionHistory@ with this @nextPageToken@ . Instead, call @PollForDecisionTask@ again.__Access Control__ ----- __Access Control__+-- You can use IAM policies to control this action's access to Amazon SWF resources as follows: ----- You can use IAM policies to control this action\'s access to Amazon SWF resources as follows:+--     * Use a @Resource@ element with the domain name to limit the action to only specified domains.    * Use an @Action@ element to allow or deny permission to call this action.    * Constrain the @taskList.name@ parameter by using a __Condition__ element with the @swf:taskList.name@ key to allow the action to access only certain task lists. ----- -   Use a 'Resource' element with the domain name to limit the action to only specified domains.--- -   Use an 'Action' element to allow or deny permission to call this action.--- -   Constrain the 'taskList.name' parameter by using a __Condition__ element with the 'swf:taskList.name' key to allow the action to access only certain task lists.+-- If the caller does not have sufficient permissions to invoke the action, or the parameter values fall outside the specified constraints, the action fails. The associated event attribute's __cause__ parameter will be set to OPERATION_NOT_PERMITTED. For details and example IAM policies, see <http://docs.aws.amazon.com/amazonswf/latest/developerguide/swf-dev-iam.html Using IAM to Manage Access to Amazon SWF Workflows> . ----- If the caller does not have sufficient permissions to invoke the action, or the parameter values fall outside the specified constraints, the action fails. The associated event attribute\'s __cause__ parameter will be set to OPERATION_NOT_PERMITTED. For details and example IAM policies, see <http://docs.aws.amazon.com/amazonswf/latest/developerguide/swf-dev-iam.html Using IAM to Manage Access to Amazon SWF Workflows>. -- -- This operation returns paginated results. module Network.AWS.SWF.PollForDecisionTask@@ -86,17 +82,17 @@ -- -- Use one of the following lenses to modify other fields as desired: ----- * 'pfdtNextPageToken'+-- * 'pfdtNextPageToken' - If a @NextPageToken@ 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 @nextPageToken@ . Keep all other arguments unchanged. The configured @maximumPageSize@ determines how many results can be returned in a single call. . ----- * 'pfdtReverseOrder'+-- * 'pfdtReverseOrder' - When set to @true@ , returns the events in reverse order. By default the results are returned in ascending order of the @eventTimestamp@ of the events. ----- * 'pfdtMaximumPageSize'+-- * 'pfdtMaximumPageSize' - The maximum number of results that will be returned per call. @nextPageToken@ 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 /smaller/ than the maximum. This is an upper limit only; the actual number of results returned per call may be fewer than the specified maximum. ----- * 'pfdtIdentity'+-- * 'pfdtIdentity' - 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. ----- * 'pfdtDomain'+-- * 'pfdtDomain' - The name of the domain containing the task lists to poll. ----- * 'pfdtTaskList'+-- * 'pfdtTaskList' - Specifies the task list to poll for decision tasks. The specified string must not start or end with whitespace. It must not contain a @:@ (colon), @/@ (slash), @|@ (vertical bar), or any control characters (\u0000-\u001f | \u007f - \u009f). Also, it must not contain the literal string quotarnquot. pollForDecisionTask     :: Text -- ^ 'pfdtDomain'     -> TaskList -- ^ 'pfdtTaskList'@@ -111,23 +107,15 @@     , _pfdtTaskList = pTaskList_     } --- | If a 'NextPageToken' 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 'nextPageToken'. Keep all other arguments unchanged.------ The configured 'maximumPageSize' determines how many results can be returned in a single call.------ The 'nextPageToken' returned by this action cannot be used with < GetWorkflowExecutionHistory> to get the next page. You must call < PollForDecisionTask> again (with the 'nextPageToken') to retrieve the next page of history records. Calling < PollForDecisionTask> with a 'nextPageToken' will not return a new decision task.------ .+-- | If a @NextPageToken@ 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 @nextPageToken@ . Keep all other arguments unchanged. The configured @maximumPageSize@ determines how many results can be returned in a single call. . pfdtNextPageToken :: Lens' PollForDecisionTask (Maybe Text) pfdtNextPageToken = lens _pfdtNextPageToken (\ s a -> s{_pfdtNextPageToken = a}); --- | When set to 'true', returns the events in reverse order. By default the results are returned in ascending order of the 'eventTimestamp' of the events.+-- | When set to @true@ , returns the events in reverse order. By default the results are returned in ascending order of the @eventTimestamp@ of the events. pfdtReverseOrder :: Lens' PollForDecisionTask (Maybe Bool) pfdtReverseOrder = lens _pfdtReverseOrder (\ s a -> s{_pfdtReverseOrder = a}); --- | The maximum number of results that will be returned per call. 'nextPageToken' 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 /smaller/ than the maximum.------ This is an upper limit only; the actual number of results returned per call may be fewer than the specified maximum.+-- | The maximum number of results that will be returned per call. @nextPageToken@ 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 /smaller/ 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) pfdtMaximumPageSize = lens _pfdtMaximumPageSize (\ s a -> s{_pfdtMaximumPageSize = a}) . mapping _Nat; @@ -139,9 +127,7 @@ pfdtDomain :: Lens' PollForDecisionTask Text pfdtDomain = lens _pfdtDomain (\ s a -> s{_pfdtDomain = 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 ':' (colon), '\/' (slash), '|' (vertical bar), or any control characters (\\u0000-\\u001f | \\u007f - \\u009f). Also, it must not contain the literal string quotarnquot.+-- | Specifies the task list to poll for decision tasks. The specified string must not start or end with whitespace. It must not contain a @:@ (colon), @/@ (slash), @|@ (vertical bar), or any control characters (\u0000-\u001f | \u007f - \u009f). Also, it must not contain the literal string quotarnquot. pfdtTaskList :: Lens' PollForDecisionTask TaskList pfdtTaskList = lens _pfdtTaskList (\ s a -> s{_pfdtTaskList = a}); @@ -202,6 +188,8 @@  -- | A structure that represents a decision task. Decision tasks are sent to deciders in order for them to make decisions. --+--+-- -- /See:/ 'pollForDecisionTaskResponse' smart constructor. data PollForDecisionTaskResponse = PollForDecisionTaskResponse'     { _pfdtrsNextPageToken          :: !(Maybe Text)@@ -218,21 +206,21 @@ -- -- Use one of the following lenses to modify other fields as desired: ----- * 'pfdtrsNextPageToken'+-- * 'pfdtrsNextPageToken' - If a @NextPageToken@ 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 @nextPageToken@ . Keep all other arguments unchanged. The configured @maximumPageSize@ determines how many results can be returned in a single call. ----- * 'pfdtrsWorkflowType'+-- * 'pfdtrsWorkflowType' - The type of the workflow execution for which this decision task was created. ----- * 'pfdtrsPreviousStartedEventId'+-- * 'pfdtrsPreviousStartedEventId' - 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. ----- * 'pfdtrsEvents'+-- * 'pfdtrsEvents' - A paginated list of history events of the workflow execution. The decider uses this during the processing of the decision task. ----- * 'pfdtrsTaskToken'+-- * 'pfdtrsTaskToken' - 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. ----- * 'pfdtrsWorkflowExecution'+-- * 'pfdtrsWorkflowExecution' - The workflow execution for which this decision task was created. ----- * 'pfdtrsResponseStatus'+-- * 'pfdtrsResponseStatus' - -- | The response status code. ----- * 'pfdtrsStartedEventId'+-- * 'pfdtrsStartedEventId' - The ID of the @DecisionTaskStarted@ event recorded in the history. pollForDecisionTaskResponse     :: Int -- ^ 'pfdtrsResponseStatus'     -> Integer -- ^ 'pfdtrsStartedEventId'@@ -249,9 +237,7 @@     , _pfdtrsStartedEventId = pStartedEventId_     } --- | If a 'NextPageToken' 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 'nextPageToken'. Keep all other arguments unchanged.------ The configured 'maximumPageSize' determines how many results can be returned in a single call.+-- | If a @NextPageToken@ 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 @nextPageToken@ . Keep all other arguments unchanged. The configured @maximumPageSize@ determines how many results can be returned in a single call. pfdtrsNextPageToken :: Lens' PollForDecisionTaskResponse (Maybe Text) pfdtrsNextPageToken = lens _pfdtrsNextPageToken (\ s a -> s{_pfdtrsNextPageToken = a}); @@ -275,11 +261,11 @@ pfdtrsWorkflowExecution :: Lens' PollForDecisionTaskResponse (Maybe WorkflowExecution) pfdtrsWorkflowExecution = lens _pfdtrsWorkflowExecution (\ s a -> s{_pfdtrsWorkflowExecution = a}); --- | The response status code.+-- | -- | The response status code. pfdtrsResponseStatus :: Lens' PollForDecisionTaskResponse Int pfdtrsResponseStatus = lens _pfdtrsResponseStatus (\ s a -> s{_pfdtrsResponseStatus = a}); --- | The ID of the 'DecisionTaskStarted' event recorded in the history.+-- | The ID of the @DecisionTaskStarted@ event recorded in the history. pfdtrsStartedEventId :: Lens' PollForDecisionTaskResponse Integer pfdtrsStartedEventId = lens _pfdtrsStartedEventId (\ s a -> s{_pfdtrsStartedEventId = a}); 
gen/Network/AWS/SWF/RecordActivityTaskHeartbeat.hs view
@@ -18,27 +18,21 @@ -- Stability   : auto-generated -- Portability : non-portable (GHC extensions) ----- Used by activity workers to report to the service that the < ActivityTask> represented by the specified 'taskToken' is still making progress. The worker can also (optionally) specify details of the progress, for example percent complete, using the 'details' 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 'cancelRequested' flag returned by the service is set to 'true'.+-- Used by activity workers to report to the service that the 'ActivityTask' represented by the specified @taskToken@ is still making progress. The worker can also (optionally) specify details of the progress, for example percent complete, using the @details@ 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 @cancelRequested@ flag returned by the service is set to @true@ . ----- This action resets the 'taskHeartbeatTimeout' clock. The 'taskHeartbeatTimeout' is specified in < RegisterActivityType>. ----- This action does not in itself create an event in the workflow execution history. However, if the task times out, the workflow execution history will contain a 'ActivityTaskTimedOut' event that contains the information from the last heartbeat generated by the activity worker.------ The 'taskStartToCloseTimeout' of an activity type is the maximum duration of an activity task, regardless of the number of < RecordActivityTaskHeartbeat> requests received. The 'taskStartToCloseTimeout' is also specified in < RegisterActivityType>.+-- This action resets the @taskHeartbeatTimeout@ clock. The @taskHeartbeatTimeout@ is specified in 'RegisterActivityType' . ----- This operation is only useful for long-lived activities to report liveliness of the task and to determine if a cancellation is being attempted.+-- This action does not in itself create an event in the workflow execution history. However, if the task times out, the workflow execution history will contain a @ActivityTaskTimedOut@ event that contains the information from the last heartbeat generated by the activity worker. ----- If the 'cancelRequested' flag returns 'true', a cancellation is being attempted. If the worker can cancel the activity, it should respond with < RespondActivityTaskCanceled>. Otherwise, it should ignore the cancellation request.+-- /Important:/ If the @cancelRequested@ flag returns @true@ , a cancellation is being attempted. If the worker can cancel the activity, it should respond with 'RespondActivityTaskCanceled' . Otherwise, it should ignore the cancellation request.__Access Control__ ----- __Access Control__+-- You can use IAM policies to control this action's access to Amazon SWF resources as follows: ----- You can use IAM policies to control this action\'s access to Amazon SWF resources as follows:+--     * Use a @Resource@ element with the domain name to limit the action to only specified domains.    * Use an @Action@ element to allow or deny permission to call this action.    * You cannot use an IAM policy to constrain this action's parameters. ----- -   Use a 'Resource' element with the domain name to limit the action to only specified domains.--- -   Use an 'Action' element to allow or deny permission to call this action.--- -   You cannot use an IAM policy to constrain this action\'s parameters.+-- If the caller does not have sufficient permissions to invoke the action, or the parameter values fall outside the specified constraints, the action fails. The associated event attribute's __cause__ parameter will be set to OPERATION_NOT_PERMITTED. For details and example IAM policies, see <http://docs.aws.amazon.com/amazonswf/latest/developerguide/swf-dev-iam.html Using IAM to Manage Access to Amazon SWF Workflows> . ----- If the caller does not have sufficient permissions to invoke the action, or the parameter values fall outside the specified constraints, the action fails. The associated event attribute\'s __cause__ parameter will be set to OPERATION_NOT_PERMITTED. For details and example IAM policies, see <http://docs.aws.amazon.com/amazonswf/latest/developerguide/swf-dev-iam.html Using IAM to Manage Access to Amazon SWF Workflows>. module Network.AWS.SWF.RecordActivityTaskHeartbeat     (     -- * Creating a Request@@ -73,9 +67,9 @@ -- -- Use one of the following lenses to modify other fields as desired: ----- * 'rathDetails'+-- * 'rathDetails' - If specified, contains details about the progress of the task. ----- * 'rathTaskToken'+-- * 'rathTaskToken' - The @taskToken@ of the 'ActivityTask' . /Important:/ @taskToken@ is generated by the service and should be treated as an opaque value. If the task is passed to another process, its @taskToken@ must also be passed. This enables it to provide its progress and respond with results. recordActivityTaskHeartbeat     :: Text -- ^ 'rathTaskToken'     -> RecordActivityTaskHeartbeat@@ -89,9 +83,7 @@ rathDetails :: Lens' RecordActivityTaskHeartbeat (Maybe Text) rathDetails = lens _rathDetails (\ s a -> s{_rathDetails = a}); --- | The 'taskToken' of the < ActivityTask>.------ 'taskToken' is generated by the service and should be treated as an opaque value. If the task is passed to another process, its 'taskToken' must also be passed. This enables it to provide its progress and respond with results.+-- | The @taskToken@ of the 'ActivityTask' . /Important:/ @taskToken@ is generated by the service and should be treated as an opaque value. If the task is passed to another process, its @taskToken@ must also be passed. This enables it to provide its progress and respond with results. rathTaskToken :: Lens' RecordActivityTaskHeartbeat Text rathTaskToken = lens _rathTaskToken (\ s a -> s{_rathTaskToken = a}); @@ -134,6 +126,8 @@  -- | Status information about an activity task. --+--+-- -- /See:/ 'recordActivityTaskHeartbeatResponse' smart constructor. data RecordActivityTaskHeartbeatResponse = RecordActivityTaskHeartbeatResponse'     { _rathrsResponseStatus  :: !Int@@ -144,9 +138,9 @@ -- -- Use one of the following lenses to modify other fields as desired: ----- * 'rathrsResponseStatus'+-- * 'rathrsResponseStatus' - -- | The response status code. ----- * 'rathrsCancelRequested'+-- * 'rathrsCancelRequested' - Set to @true@ if cancellation of the task is requested. recordActivityTaskHeartbeatResponse     :: Int -- ^ 'rathrsResponseStatus'     -> Bool -- ^ 'rathrsCancelRequested'@@ -157,11 +151,11 @@     , _rathrsCancelRequested = pCancelRequested_     } --- | The response status code.+-- | -- | The response status code. rathrsResponseStatus :: Lens' RecordActivityTaskHeartbeatResponse Int rathrsResponseStatus = lens _rathrsResponseStatus (\ s a -> s{_rathrsResponseStatus = a}); --- | Set to 'true' if cancellation of the task is requested.+-- | Set to @true@ if cancellation of the task is requested. rathrsCancelRequested :: Lens' RecordActivityTaskHeartbeatResponse Bool rathrsCancelRequested = lens _rathrsCancelRequested (\ s a -> s{_rathrsCancelRequested = a}); 
gen/Network/AWS/SWF/RegisterActivityType.hs view
@@ -20,20 +20,17 @@ -- -- Registers a new /activity type/ along with its configuration settings in the specified domain. ----- A 'TypeAlreadyExists' 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. ----- __Access Control__+-- /Important:/ A @TypeAlreadyExists@ 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.__Access Control__ ----- You can use IAM policies to control this action\'s access to Amazon SWF resources as follows:+-- You can use IAM policies to control this action's access to Amazon SWF resources as follows: ----- -   Use a 'Resource' element with the domain name to limit the action to only specified domains.--- -   Use an 'Action' element to allow or deny permission to call this action.--- -   Constrain the following parameters by using a 'Condition' element with the appropriate keys.---     -   'defaultTaskList.name': String constraint. The key is 'swf:defaultTaskList.name'.---     -   'name': String constraint. The key is 'swf:name'.---     -   'version': String constraint. The key is 'swf:version'.+--     * Use a @Resource@ element with the domain name to limit the action to only specified domains.    * Use an @Action@ element to allow or deny permission to call this action.    * Constrain the following parameters by using a @Condition@ element with the appropriate keys.     * @defaultTaskList.name@ : String constraint. The key is @swf:defaultTaskList.name@ .    * @name@ : String constraint. The key is @swf:name@ .    * @version@ : String constraint. The key is @swf:version@ . ----- If the caller does not have sufficient permissions to invoke the action, or the parameter values fall outside the specified constraints, the action fails. The associated event attribute\'s __cause__ parameter will be set to OPERATION_NOT_PERMITTED. For details and example IAM policies, see <http://docs.aws.amazon.com/amazonswf/latest/developerguide/swf-dev-iam.html Using IAM to Manage Access to Amazon SWF Workflows>.+--+--+-- If the caller does not have sufficient permissions to invoke the action, or the parameter values fall outside the specified constraints, the action fails. The associated event attribute's __cause__ parameter will be set to OPERATION_NOT_PERMITTED. For details and example IAM policies, see <http://docs.aws.amazon.com/amazonswf/latest/developerguide/swf-dev-iam.html Using IAM to Manage Access to Amazon SWF Workflows> .+-- module Network.AWS.SWF.RegisterActivityType     (     -- * Creating a Request@@ -81,25 +78,25 @@ -- -- Use one of the following lenses to modify other fields as desired: ----- * 'ratDefaultTaskScheduleToStartTimeout'+-- * 'ratDefaultTaskScheduleToStartTimeout' - 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 @ScheduleActivityTask@ decision. The duration is specified in seconds; an integer greater than or equal to 0. The value "NONE" can be used to specify unlimited duration. ----- * 'ratDefaultTaskList'+-- * 'ratDefaultTaskList' - 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 is not provided when a task is scheduled through the @ScheduleActivityTask@ decision. ----- * 'ratDefaultTaskPriority'+-- * 'ratDefaultTaskPriority' - The default task priority to assign to the activity type. If not assigned, then "0" will be used. Valid values are integers that range from Java's @Integer.MIN_VALUE@ (-2147483648) to @Integer.MAX_VALUE@ (2147483647). Higher numbers indicate higher priority. For more information about setting task priority, see <http://docs.aws.amazon.com/amazonswf/latest/developerguide/programming-priority.html Setting Task Priority> in the /Amazon Simple Workflow Developer Guide/ . ----- * 'ratDefaultTaskHeartbeatTimeout'+-- * 'ratDefaultTaskHeartbeatTimeout' - If set, specifies the default maximum time before which a worker processing a task of this type must report progress by calling 'RecordActivityTaskHeartbeat' . If the timeout is exceeded, the activity task is automatically timed out. This default can be overridden when scheduling an activity task using the @ScheduleActivityTask@ decision. If the activity worker subsequently attempts to record a heartbeat or returns a result, the activity worker receives an @UnknownResource@ 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 0. The value "NONE" can be used to specify unlimited duration. ----- * 'ratDefaultTaskScheduleToCloseTimeout'+-- * 'ratDefaultTaskScheduleToCloseTimeout' - 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 @ScheduleActivityTask@ decision. The duration is specified in seconds; an integer greater than or equal to 0. The value "NONE" can be used to specify unlimited duration. ----- * 'ratDefaultTaskStartToCloseTimeout'+-- * 'ratDefaultTaskStartToCloseTimeout' - 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 @ScheduleActivityTask@ decision. The duration is specified in seconds; an integer greater than or equal to 0. The value "NONE" can be used to specify unlimited duration. ----- * 'ratDescription'+-- * 'ratDescription' - A textual description of the activity type. ----- * 'ratDomain'+-- * 'ratDomain' - The name of the domain in which this activity is to be registered. ----- * 'ratName'+-- * 'ratName' - The name of the activity type within the domain. The specified string must not start or end with whitespace. It must not contain a @:@ (colon), @/@ (slash), @|@ (vertical bar), or any control characters (\u0000-\u001f | \u007f - \u009f). Also, it must not contain the literal string quotarnquot. ----- * 'ratVersion'+-- * 'ratVersion' - The version of the activity type. The specified string must not start or end with whitespace. It must not contain a @:@ (colon), @/@ (slash), @|@ (vertical bar), or any control characters (\u0000-\u001f | \u007f - \u009f). Also, it must not contain the literal string quotarnquot. registerActivityType     :: Text -- ^ 'ratDomain'     -> Text -- ^ 'ratName'@@ -119,37 +116,27 @@     , _ratVersion = pVersion_     } --- | 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 'ScheduleActivityTask' decision.------ The duration is specified in seconds; an integer greater than or equal to 0. The value \"NONE\" can be used to specify unlimited duration.+-- | 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 @ScheduleActivityTask@ decision. The duration is specified in seconds; an integer greater than or equal to 0. The value "NONE" can be used to specify unlimited duration. ratDefaultTaskScheduleToStartTimeout :: Lens' RegisterActivityType (Maybe Text) ratDefaultTaskScheduleToStartTimeout = lens _ratDefaultTaskScheduleToStartTimeout (\ s a -> s{_ratDefaultTaskScheduleToStartTimeout = 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 is not provided when a task is scheduled through the 'ScheduleActivityTask' decision.+-- | 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 is not provided when a task is scheduled through the @ScheduleActivityTask@ decision. ratDefaultTaskList :: Lens' RegisterActivityType (Maybe TaskList) ratDefaultTaskList = lens _ratDefaultTaskList (\ s a -> s{_ratDefaultTaskList = a}); --- | The default task priority to assign to the activity type. If not assigned, then \"0\" will be used. Valid values are integers that range from Java\'s 'Integer.MIN_VALUE' (-2147483648) to 'Integer.MAX_VALUE' (2147483647). Higher numbers indicate higher priority.------ For more information about setting task priority, see <http://docs.aws.amazon.com/amazonswf/latest/developerguide/programming-priority.html Setting Task Priority> in the /Amazon Simple Workflow Developer Guide/.+-- | The default task priority to assign to the activity type. If not assigned, then "0" will be used. Valid values are integers that range from Java's @Integer.MIN_VALUE@ (-2147483648) to @Integer.MAX_VALUE@ (2147483647). Higher numbers indicate higher priority. For more information about setting task priority, see <http://docs.aws.amazon.com/amazonswf/latest/developerguide/programming-priority.html Setting Task Priority> in the /Amazon Simple Workflow Developer Guide/ . ratDefaultTaskPriority :: Lens' RegisterActivityType (Maybe Text) ratDefaultTaskPriority = lens _ratDefaultTaskPriority (\ s a -> s{_ratDefaultTaskPriority = a}); --- | If set, specifies the default maximum time before which a worker processing a task of this type must report progress by calling < RecordActivityTaskHeartbeat>. If the timeout is exceeded, the activity task is automatically timed out. This default can be overridden when scheduling an activity task using the 'ScheduleActivityTask' decision. If the activity worker subsequently attempts to record a heartbeat or returns a result, the activity worker receives an 'UnknownResource' 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 0. The value \"NONE\" can be used to specify unlimited duration.+-- | If set, specifies the default maximum time before which a worker processing a task of this type must report progress by calling 'RecordActivityTaskHeartbeat' . If the timeout is exceeded, the activity task is automatically timed out. This default can be overridden when scheduling an activity task using the @ScheduleActivityTask@ decision. If the activity worker subsequently attempts to record a heartbeat or returns a result, the activity worker receives an @UnknownResource@ 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 0. The value "NONE" can be used to specify unlimited duration. ratDefaultTaskHeartbeatTimeout :: Lens' RegisterActivityType (Maybe Text) ratDefaultTaskHeartbeatTimeout = lens _ratDefaultTaskHeartbeatTimeout (\ s a -> s{_ratDefaultTaskHeartbeatTimeout = 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 'ScheduleActivityTask' decision.------ The duration is specified in seconds; an integer greater than or equal to 0. The value \"NONE\" can be used to specify unlimited duration.+-- | 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 @ScheduleActivityTask@ decision. The duration is specified in seconds; an integer greater than or equal to 0. The value "NONE" can be used to specify unlimited duration. ratDefaultTaskScheduleToCloseTimeout :: Lens' RegisterActivityType (Maybe Text) ratDefaultTaskScheduleToCloseTimeout = lens _ratDefaultTaskScheduleToCloseTimeout (\ s a -> s{_ratDefaultTaskScheduleToCloseTimeout = 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 'ScheduleActivityTask' decision.------ The duration is specified in seconds; an integer greater than or equal to 0. The value \"NONE\" can be used to specify unlimited duration.+-- | 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 @ScheduleActivityTask@ decision. The duration is specified in seconds; an integer greater than or equal to 0. The value "NONE" can be used to specify unlimited duration. ratDefaultTaskStartToCloseTimeout :: Lens' RegisterActivityType (Maybe Text) ratDefaultTaskStartToCloseTimeout = lens _ratDefaultTaskStartToCloseTimeout (\ s a -> s{_ratDefaultTaskStartToCloseTimeout = a}); @@ -161,17 +148,11 @@ ratDomain :: Lens' RegisterActivityType Text ratDomain = lens _ratDomain (\ s a -> s{_ratDomain = 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 ':' (colon), '\/' (slash), '|' (vertical bar), or any control characters (\\u0000-\\u001f | \\u007f - \\u009f). Also, it must not contain the literal string quotarnquot.+-- | The name of the activity type within the domain. The specified string must not start or end with whitespace. It must not contain a @:@ (colon), @/@ (slash), @|@ (vertical bar), or any control characters (\u0000-\u001f | \u007f - \u009f). Also, it must not contain the literal string quotarnquot. ratName :: Lens' RegisterActivityType Text ratName = lens _ratName (\ s a -> s{_ratName = a}); --- | The version of the activity type.------ The activity type consists of the name and version, the combination of which must be unique within the domain.------ The specified string must not start or end with whitespace. It must not contain a ':' (colon), '\/' (slash), '|' (vertical bar), or any control characters (\\u0000-\\u001f | \\u007f - \\u009f). Also, it must not contain the literal string quotarnquot.+-- | The version of the activity type. The specified string must not start or end with whitespace. It must not contain a @:@ (colon), @/@ (slash), @|@ (vertical bar), or any control characters (\u0000-\u001f | \u007f - \u009f). Also, it must not contain the literal string quotarnquot. ratVersion :: Lens' RegisterActivityType Text ratVersion = lens _ratVersion (\ s a -> s{_ratVersion = a}); 
gen/Network/AWS/SWF/RegisterDomain.hs view
@@ -20,15 +20,15 @@ -- -- Registers a new domain. --+-- -- __Access Control__ ----- You can use IAM policies to control this action\'s access to Amazon SWF resources as follows:+-- You can use IAM policies to control this action's access to Amazon SWF resources as follows: ----- -   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.--- -   Use an 'Action' element to allow or deny permission to call this action.--- -   You cannot use an IAM policy to constrain this action\'s parameters.+--     * 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.    * Use an @Action@ element to allow or deny permission to call this action.    * You cannot use an IAM policy to constrain this action's parameters. ----- If the caller does not have sufficient permissions to invoke the action, or the parameter values fall outside the specified constraints, the action fails. The associated event attribute\'s __cause__ parameter will be set to OPERATION_NOT_PERMITTED. For details and example IAM policies, see <http://docs.aws.amazon.com/amazonswf/latest/developerguide/swf-dev-iam.html Using IAM to Manage Access to Amazon SWF Workflows>.+-- If the caller does not have sufficient permissions to invoke the action, or the parameter values fall outside the specified constraints, the action fails. The associated event attribute's __cause__ parameter will be set to OPERATION_NOT_PERMITTED. For details and example IAM policies, see <http://docs.aws.amazon.com/amazonswf/latest/developerguide/swf-dev-iam.html Using IAM to Manage Access to Amazon SWF Workflows> .+-- module Network.AWS.SWF.RegisterDomain     (     -- * Creating a Request@@ -62,11 +62,11 @@ -- -- Use one of the following lenses to modify other fields as desired: ----- * 'rdDescription'+-- * 'rdDescription' - A text description of the domain. ----- * 'rdName'+-- * 'rdName' - 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 @:@ (colon), @/@ (slash), @|@ (vertical bar), or any control characters (\u0000-\u001f | \u007f - \u009f). Also, it must not contain the literal string quotarnquot. ----- * 'rdWorkflowExecutionRetentionPeriodInDays'+-- * 'rdWorkflowExecutionRetentionPeriodInDays' - 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 is not available in the results of visibility calls. If you pass the value @NONE@ or @0@ (zero), then the workflow execution history will not be 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: <http://docs.aws.amazon.com/amazonswf/latest/developerguide/swf-dg-limits.html Amazon SWF Service Limits> in the /Amazon SWF Developer Guide/ . registerDomain     :: Text -- ^ 'rdName'     -> Text -- ^ 'rdWorkflowExecutionRetentionPeriodInDays'@@ -82,17 +82,11 @@ rdDescription :: Lens' RegisterDomain (Maybe Text) rdDescription = lens _rdDescription (\ s a -> s{_rdDescription = 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 ':' (colon), '\/' (slash), '|' (vertical bar), or any control characters (\\u0000-\\u001f | \\u007f - \\u009f). Also, it must not contain the literal string quotarnquot.+-- | 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 @:@ (colon), @/@ (slash), @|@ (vertical bar), or any control characters (\u0000-\u001f | \u007f - \u009f). Also, it must not contain the literal string quotarnquot. rdName :: Lens' RegisterDomain Text rdName = lens _rdName (\ s a -> s{_rdName = 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 is not available in the results of visibility calls.------ If you pass the value 'NONE' or '0' (zero), then the workflow execution history will not be 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: <http://docs.aws.amazon.com/amazonswf/latest/developerguide/swf-dg-limits.html Amazon SWF Service Limits> in the /Amazon SWF Developer Guide/.+-- | 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 is not available in the results of visibility calls. If you pass the value @NONE@ or @0@ (zero), then the workflow execution history will not be 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: <http://docs.aws.amazon.com/amazonswf/latest/developerguide/swf-dg-limits.html Amazon SWF Service Limits> in the /Amazon SWF Developer Guide/ . rdWorkflowExecutionRetentionPeriodInDays :: Lens' RegisterDomain Text rdWorkflowExecutionRetentionPeriodInDays = lens _rdWorkflowExecutionRetentionPeriodInDays (\ s a -> s{_rdWorkflowExecutionRetentionPeriodInDays = a}); 
gen/Network/AWS/SWF/RegisterWorkflowType.hs view
@@ -20,22 +20,19 @@ -- -- Registers a new /workflow type/ and its configuration settings in the specified domain. ----- The retention period for the workflow history is set by the < RegisterDomain> action. ----- If the type already exists, then a 'TypeAlreadyExists' 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.+-- The retention period for the workflow history is set by the 'RegisterDomain' action. ----- __Access Control__+-- /Important:/ If the type already exists, then a @TypeAlreadyExists@ 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.__Access Control__ ----- You can use IAM policies to control this action\'s access to Amazon SWF resources as follows:+-- You can use IAM policies to control this action's access to Amazon SWF resources as follows: ----- -   Use a 'Resource' element with the domain name to limit the action to only specified domains.--- -   Use an 'Action' element to allow or deny permission to call this action.--- -   Constrain the following parameters by using a 'Condition' element with the appropriate keys.---     -   'defaultTaskList.name': String constraint. The key is 'swf:defaultTaskList.name'.---     -   'name': String constraint. The key is 'swf:name'.---     -   'version': String constraint. The key is 'swf:version'.+--     * Use a @Resource@ element with the domain name to limit the action to only specified domains.    * Use an @Action@ element to allow or deny permission to call this action.    * Constrain the following parameters by using a @Condition@ element with the appropriate keys.     * @defaultTaskList.name@ : String constraint. The key is @swf:defaultTaskList.name@ .    * @name@ : String constraint. The key is @swf:name@ .    * @version@ : String constraint. The key is @swf:version@ . ----- If the caller does not have sufficient permissions to invoke the action, or the parameter values fall outside the specified constraints, the action fails. The associated event attribute\'s __cause__ parameter will be set to OPERATION_NOT_PERMITTED. For details and example IAM policies, see <http://docs.aws.amazon.com/amazonswf/latest/developerguide/swf-dev-iam.html Using IAM to Manage Access to Amazon SWF Workflows>.+--+--+-- If the caller does not have sufficient permissions to invoke the action, or the parameter values fall outside the specified constraints, the action fails. The associated event attribute's __cause__ parameter will be set to OPERATION_NOT_PERMITTED. For details and example IAM policies, see <http://docs.aws.amazon.com/amazonswf/latest/developerguide/swf-dev-iam.html Using IAM to Manage Access to Amazon SWF Workflows> .+-- module Network.AWS.SWF.RegisterWorkflowType     (     -- * Creating a Request@@ -83,25 +80,25 @@ -- -- Use one of the following lenses to modify other fields as desired: ----- * 'rwtDefaultLambdaRole'+-- * 'rwtDefaultLambdaRole' - The ARN of the default IAM role to use when a workflow execution of this type invokes AWS Lambda functions. This default can be overridden when starting a workflow execution using the 'StartWorkflowExecution' action or the @StartChildWorkflowExecution@ and @ContinueAsNewWorkflowExecution@ decision. ----- * 'rwtDefaultChildPolicy'+-- * 'rwtDefaultChildPolicy' - 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 'TerminateWorkflowExecution' action explicitly or due to an expired timeout. This default can be overridden when starting a workflow execution using the 'StartWorkflowExecution' action or the @StartChildWorkflowExecution@ decision. The supported child policies are:     * __TERMINATE:__ the child executions will be terminated.    * __REQUEST_CANCEL:__ a request to cancel will be attempted for each child execution by recording a @WorkflowExecutionCancelRequested@ event in its history. It is up to the decider to take appropriate actions when it receives an execution history with this event.    * __ABANDON:__ no action will be taken. The child executions will continue to run. ----- * 'rwtDefaultTaskList'+-- * 'rwtDefaultTaskList' - 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 is not provided when starting the execution through the 'StartWorkflowExecution' action or @StartChildWorkflowExecution@ decision. ----- * 'rwtDefaultTaskPriority'+-- * 'rwtDefaultTaskPriority' - The default task priority to assign to the workflow type. If not assigned, then "0" will be used. Valid values are integers that range from Java's @Integer.MIN_VALUE@ (-2147483648) to @Integer.MAX_VALUE@ (2147483647). Higher numbers indicate higher priority. For more information about setting task priority, see <http://docs.aws.amazon.com/amazonswf/latest/developerguide/programming-priority.html Setting Task Priority> in the /Amazon Simple Workflow Developer Guide/ . ----- * 'rwtDefaultExecutionStartToCloseTimeout'+-- * 'rwtDefaultExecutionStartToCloseTimeout' - If set, specifies the default maximum duration for executions of this workflow type. You can override this default when starting an execution through the 'StartWorkflowExecution' action or @StartChildWorkflowExecution@ decision. 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 "NONE" for @defaultExecutionStartToCloseTimeout@ ; there is a one-year max limit on the time that a workflow execution can run. Exceeding this limit will always cause the workflow execution to time out. ----- * 'rwtDefaultTaskStartToCloseTimeout'+-- * 'rwtDefaultTaskStartToCloseTimeout' - 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 'StartWorkflowExecution' action or the @StartChildWorkflowExecution@ decision. The duration is specified in seconds; an integer greater than or equal to 0. The value "NONE" can be used to specify unlimited duration. ----- * 'rwtDescription'+-- * 'rwtDescription' - Textual description of the workflow type. ----- * 'rwtDomain'+-- * 'rwtDomain' - The name of the domain in which to register the workflow type. ----- * 'rwtName'+-- * 'rwtName' - The name of the workflow type. The specified string must not start or end with whitespace. It must not contain a @:@ (colon), @/@ (slash), @|@ (vertical bar), or any control characters (\u0000-\u001f | \u007f - \u009f). Also, it must not contain the literal string quotarnquot. ----- * 'rwtVersion'+-- * 'rwtVersion' - The version of the workflow type. The specified string must not start or end with whitespace. It must not contain a @:@ (colon), @/@ (slash), @|@ (vertical bar), or any control characters (\u0000-\u001f | \u007f - \u009f). Also, it must not contain the literal string quotarnquot. registerWorkflowType     :: Text -- ^ 'rwtDomain'     -> Text -- ^ 'rwtName'@@ -121,41 +118,27 @@     , _rwtVersion = pVersion_     } --- | The ARN of the default IAM role to use when a workflow execution of this type invokes AWS Lambda functions.------ This default can be overridden when starting a workflow execution using the < StartWorkflowExecution> action or the 'StartChildWorkflowExecution' and 'ContinueAsNewWorkflowExecution' decision.+-- | The ARN of the default IAM role to use when a workflow execution of this type invokes AWS Lambda functions. This default can be overridden when starting a workflow execution using the 'StartWorkflowExecution' action or the @StartChildWorkflowExecution@ and @ContinueAsNewWorkflowExecution@ decision. rwtDefaultLambdaRole :: Lens' RegisterWorkflowType (Maybe Text) rwtDefaultLambdaRole = lens _rwtDefaultLambdaRole (\ s a -> s{_rwtDefaultLambdaRole = 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 < TerminateWorkflowExecution> action explicitly or due to an expired timeout. This default can be overridden when starting a workflow execution using the < StartWorkflowExecution> action or the 'StartChildWorkflowExecution' decision.------ The supported child policies are:------ -   __TERMINATE:__ the child executions will be terminated.--- -   __REQUEST_CANCEL:__ a request to cancel will be attempted for each child execution by recording a 'WorkflowExecutionCancelRequested' event in its history. It is up to the decider to take appropriate actions when it receives an execution history with this event.--- -   __ABANDON:__ no action will be taken. The child executions will continue to run.+-- | 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 'TerminateWorkflowExecution' action explicitly or due to an expired timeout. This default can be overridden when starting a workflow execution using the 'StartWorkflowExecution' action or the @StartChildWorkflowExecution@ decision. The supported child policies are:     * __TERMINATE:__ the child executions will be terminated.    * __REQUEST_CANCEL:__ a request to cancel will be attempted for each child execution by recording a @WorkflowExecutionCancelRequested@ event in its history. It is up to the decider to take appropriate actions when it receives an execution history with this event.    * __ABANDON:__ no action will be taken. The child executions will continue to run. rwtDefaultChildPolicy :: Lens' RegisterWorkflowType (Maybe ChildPolicy) rwtDefaultChildPolicy = lens _rwtDefaultChildPolicy (\ s a -> s{_rwtDefaultChildPolicy = 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 is not provided when starting the execution through the < StartWorkflowExecution> action or 'StartChildWorkflowExecution' decision.+-- | 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 is not provided when starting the execution through the 'StartWorkflowExecution' action or @StartChildWorkflowExecution@ decision. rwtDefaultTaskList :: Lens' RegisterWorkflowType (Maybe TaskList) rwtDefaultTaskList = lens _rwtDefaultTaskList (\ s a -> s{_rwtDefaultTaskList = a}); --- | The default task priority to assign to the workflow type. If not assigned, then \"0\" will be used. Valid values are integers that range from Java\'s 'Integer.MIN_VALUE' (-2147483648) to 'Integer.MAX_VALUE' (2147483647). Higher numbers indicate higher priority.------ For more information about setting task priority, see <http://docs.aws.amazon.com/amazonswf/latest/developerguide/programming-priority.html Setting Task Priority> in the /Amazon Simple Workflow Developer Guide/.+-- | The default task priority to assign to the workflow type. If not assigned, then "0" will be used. Valid values are integers that range from Java's @Integer.MIN_VALUE@ (-2147483648) to @Integer.MAX_VALUE@ (2147483647). Higher numbers indicate higher priority. For more information about setting task priority, see <http://docs.aws.amazon.com/amazonswf/latest/developerguide/programming-priority.html Setting Task Priority> in the /Amazon Simple Workflow Developer Guide/ . rwtDefaultTaskPriority :: Lens' RegisterWorkflowType (Maybe Text) rwtDefaultTaskPriority = lens _rwtDefaultTaskPriority (\ s a -> s{_rwtDefaultTaskPriority = 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 < StartWorkflowExecution> action or 'StartChildWorkflowExecution' decision.------ 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 \"NONE\" for 'defaultExecutionStartToCloseTimeout'; there is a one-year max limit on the time that a workflow execution can run. Exceeding this limit will always cause the workflow execution to time out.+-- | If set, specifies the default maximum duration for executions of this workflow type. You can override this default when starting an execution through the 'StartWorkflowExecution' action or @StartChildWorkflowExecution@ decision. 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 "NONE" for @defaultExecutionStartToCloseTimeout@ ; there is a one-year max limit on the time that a workflow execution can run. Exceeding this limit will always cause the workflow execution to time out. rwtDefaultExecutionStartToCloseTimeout :: Lens' RegisterWorkflowType (Maybe Text) rwtDefaultExecutionStartToCloseTimeout = lens _rwtDefaultExecutionStartToCloseTimeout (\ s a -> s{_rwtDefaultExecutionStartToCloseTimeout = 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 < StartWorkflowExecution> action or the 'StartChildWorkflowExecution' decision.------ The duration is specified in seconds; an integer greater than or equal to 0. The value \"NONE\" can be used to specify unlimited duration.+-- | 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 'StartWorkflowExecution' action or the @StartChildWorkflowExecution@ decision. The duration is specified in seconds; an integer greater than or equal to 0. The value "NONE" can be used to specify unlimited duration. rwtDefaultTaskStartToCloseTimeout :: Lens' RegisterWorkflowType (Maybe Text) rwtDefaultTaskStartToCloseTimeout = lens _rwtDefaultTaskStartToCloseTimeout (\ s a -> s{_rwtDefaultTaskStartToCloseTimeout = a}); @@ -167,17 +150,11 @@ rwtDomain :: Lens' RegisterWorkflowType Text rwtDomain = lens _rwtDomain (\ s a -> s{_rwtDomain = a}); --- | The name of the workflow type.------ The specified string must not start or end with whitespace. It must not contain a ':' (colon), '\/' (slash), '|' (vertical bar), or any control characters (\\u0000-\\u001f | \\u007f - \\u009f). Also, it must not contain the literal string quotarnquot.+-- | The name of the workflow type. The specified string must not start or end with whitespace. It must not contain a @:@ (colon), @/@ (slash), @|@ (vertical bar), or any control characters (\u0000-\u001f | \u007f - \u009f). Also, it must not contain the literal string quotarnquot. rwtName :: Lens' RegisterWorkflowType Text rwtName = lens _rwtName (\ s a -> s{_rwtName = a}); --- | The version of the workflow type.------ The workflow type consists of the name and version, the combination of which must be unique within the domain. To get a list of all currently registered workflow types, use the < ListWorkflowTypes> action.------ The specified string must not start or end with whitespace. It must not contain a ':' (colon), '\/' (slash), '|' (vertical bar), or any control characters (\\u0000-\\u001f | \\u007f - \\u009f). Also, it must not contain the literal string quotarnquot.+-- | The version of the workflow type. The specified string must not start or end with whitespace. It must not contain a @:@ (colon), @/@ (slash), @|@ (vertical bar), or any control characters (\u0000-\u001f | \u007f - \u009f). Also, it must not contain the literal string quotarnquot. rwtVersion :: Lens' RegisterWorkflowType Text rwtVersion = lens _rwtVersion (\ s a -> s{_rwtVersion = a}); 
gen/Network/AWS/SWF/RequestCancelWorkflowExecution.hs view
@@ -18,21 +18,17 @@ -- Stability   : auto-generated -- Portability : non-portable (GHC extensions) ----- Records a 'WorkflowExecutionCancelRequested' 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.+-- Records a @WorkflowExecutionCancelRequested@ 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. ----- If the runId is not specified, the 'WorkflowExecutionCancelRequested' event is recorded in the history of the current open workflow execution with the specified workflowId in the domain. ----- Because this action allows the workflow to properly clean up and gracefully close, it should be used instead of < TerminateWorkflowExecution> when possible.--- -- __Access Control__ ----- You can use IAM policies to control this action\'s access to Amazon SWF resources as follows:+-- You can use IAM policies to control this action's access to Amazon SWF resources as follows: ----- -   Use a 'Resource' element with the domain name to limit the action to only specified domains.--- -   Use an 'Action' element to allow or deny permission to call this action.--- -   You cannot use an IAM policy to constrain this action\'s parameters.+--     * Use a @Resource@ element with the domain name to limit the action to only specified domains.    * Use an @Action@ element to allow or deny permission to call this action.    * You cannot use an IAM policy to constrain this action's parameters. ----- If the caller does not have sufficient permissions to invoke the action, or the parameter values fall outside the specified constraints, the action fails. The associated event attribute\'s __cause__ parameter will be set to OPERATION_NOT_PERMITTED. For details and example IAM policies, see <http://docs.aws.amazon.com/amazonswf/latest/developerguide/swf-dev-iam.html Using IAM to Manage Access to Amazon SWF Workflows>.+-- If the caller does not have sufficient permissions to invoke the action, or the parameter values fall outside the specified constraints, the action fails. The associated event attribute's __cause__ parameter will be set to OPERATION_NOT_PERMITTED. For details and example IAM policies, see <http://docs.aws.amazon.com/amazonswf/latest/developerguide/swf-dev-iam.html Using IAM to Manage Access to Amazon SWF Workflows> .+-- module Network.AWS.SWF.RequestCancelWorkflowExecution     (     -- * Creating a Request@@ -66,11 +62,11 @@ -- -- Use one of the following lenses to modify other fields as desired: ----- * 'rcweRunId'+-- * 'rcweRunId' - The runId of the workflow execution to cancel. ----- * 'rcweDomain'+-- * 'rcweDomain' - The name of the domain containing the workflow execution to cancel. ----- * 'rcweWorkflowId'+-- * 'rcweWorkflowId' - The workflowId of the workflow execution to cancel. requestCancelWorkflowExecution     :: Text -- ^ 'rcweDomain'     -> Text -- ^ 'rcweWorkflowId'
gen/Network/AWS/SWF/RespondActivityTaskCanceled.hs view
@@ -18,23 +18,21 @@ -- Stability   : auto-generated -- Portability : non-portable (GHC extensions) ----- Used by workers to tell the service that the < ActivityTask> identified by the 'taskToken' was successfully canceled. Additional 'details' can be optionally provided using the 'details' argument.+-- Used by workers to tell the service that the 'ActivityTask' identified by the @taskToken@ was successfully canceled. Additional @details@ can be optionally provided using the @details@ argument. ----- These 'details' (if provided) appear in the 'ActivityTaskCanceled' event added to the workflow history. ----- Only use this operation if the 'canceled' flag of a < RecordActivityTaskHeartbeat> request returns 'true' and if the activity can be safely undone or abandoned.+-- These @details@ (if provided) appear in the @ActivityTaskCanceled@ 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 < RespondActivityTaskCompleted>, RespondActivityTaskCanceled, < RespondActivityTaskFailed>, or the task has <http://docs.aws.amazon.com/amazonswf/latest/developerguide/swf-dg-basic.html#swf-dev-timeout-types timed out>.+-- /Important:/ Only use this operation if the @canceled@ flag of a 'RecordActivityTaskHeartbeat' request returns @true@ 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 'RespondActivityTaskCompleted' , RespondActivityTaskCanceled, 'RespondActivityTaskFailed' , or the task has <http://docs.aws.amazon.com/amazonswf/latest/developerguide/swf-dg-basic.html#swf-dev-timeout-types timed out> . -- -- __Access Control__ ----- You can use IAM policies to control this action\'s access to Amazon SWF resources as follows:+-- You can use IAM policies to control this action's access to Amazon SWF resources as follows: ----- -   Use a 'Resource' element with the domain name to limit the action to only specified domains.--- -   Use an 'Action' element to allow or deny permission to call this action.--- -   You cannot use an IAM policy to constrain this action\'s parameters.+--     * Use a @Resource@ element with the domain name to limit the action to only specified domains.    * Use an @Action@ element to allow or deny permission to call this action.    * You cannot use an IAM policy to constrain this action's parameters. ----- If the caller does not have sufficient permissions to invoke the action, or the parameter values fall outside the specified constraints, the action fails. The associated event attribute\'s __cause__ parameter will be set to OPERATION_NOT_PERMITTED. For details and example IAM policies, see <http://docs.aws.amazon.com/amazonswf/latest/developerguide/swf-dev-iam.html Using IAM to Manage Access to Amazon SWF Workflows>.+-- If the caller does not have sufficient permissions to invoke the action, or the parameter values fall outside the specified constraints, the action fails. The associated event attribute's __cause__ parameter will be set to OPERATION_NOT_PERMITTED. For details and example IAM policies, see <http://docs.aws.amazon.com/amazonswf/latest/developerguide/swf-dev-iam.html Using IAM to Manage Access to Amazon SWF Workflows> .+-- module Network.AWS.SWF.RespondActivityTaskCanceled     (     -- * Creating a Request@@ -66,9 +64,9 @@ -- -- Use one of the following lenses to modify other fields as desired: ----- * 'rDetails'+-- * 'rDetails' - /Optional./ Information about the cancellation. ----- * 'rTaskToken'+-- * 'rTaskToken' - The @taskToken@ of the 'ActivityTask' . /Important:/ @taskToken@ is generated by the service and should be treated as an opaque value. If the task is passed to another process, its @taskToken@ must also be passed. This enables it to provide its progress and respond with results. respondActivityTaskCanceled     :: Text -- ^ 'rTaskToken'     -> RespondActivityTaskCanceled@@ -82,9 +80,7 @@ rDetails :: Lens' RespondActivityTaskCanceled (Maybe Text) rDetails = lens _rDetails (\ s a -> s{_rDetails = a}); --- | The 'taskToken' of the < ActivityTask>.------ 'taskToken' is generated by the service and should be treated as an opaque value. If the task is passed to another process, its 'taskToken' must also be passed. This enables it to provide its progress and respond with results.+-- | The @taskToken@ of the 'ActivityTask' . /Important:/ @taskToken@ is generated by the service and should be treated as an opaque value. If the task is passed to another process, its @taskToken@ must also be passed. This enables it to provide its progress and respond with results. rTaskToken :: Lens' RespondActivityTaskCanceled Text rTaskToken = lens _rTaskToken (\ s a -> s{_rTaskToken = a}); 
gen/Network/AWS/SWF/RespondActivityTaskCompleted.hs view
@@ -18,21 +18,19 @@ -- Stability   : auto-generated -- Portability : non-portable (GHC extensions) ----- Used by workers to tell the service that the < ActivityTask> identified by the 'taskToken' completed successfully with a 'result' (if provided). The 'result' appears in the 'ActivityTaskCompleted' event in the workflow history.+-- Used by workers to tell the service that the 'ActivityTask' identified by the @taskToken@ completed successfully with a @result@ (if provided). The @result@ appears in the @ActivityTaskCompleted@ event in the workflow history. ----- If the requested task does not complete successfully, use < RespondActivityTaskFailed> instead. If the worker finds that the task is canceled through the 'canceled' flag returned by < RecordActivityTaskHeartbeat>, it should cancel the task, clean up and then call < RespondActivityTaskCanceled>. ----- 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, < RespondActivityTaskCanceled>, < RespondActivityTaskFailed>, or the task has <http://docs.aws.amazon.com/amazonswf/latest/developerguide/swf-dg-basic.html#swf-dev-timeout-types timed out>.+-- /Important:/ If the requested task does not complete successfully, use 'RespondActivityTaskFailed' instead. If the worker finds that the task is canceled through the @canceled@ flag returned by 'RecordActivityTaskHeartbeat' , it should cancel the task, clean up and then call 'RespondActivityTaskCanceled' .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, 'RespondActivityTaskCanceled' , 'RespondActivityTaskFailed' , or the task has <http://docs.aws.amazon.com/amazonswf/latest/developerguide/swf-dg-basic.html#swf-dev-timeout-types timed out> . -- -- __Access Control__ ----- You can use IAM policies to control this action\'s access to Amazon SWF resources as follows:+-- You can use IAM policies to control this action's access to Amazon SWF resources as follows: ----- -   Use a 'Resource' element with the domain name to limit the action to only specified domains.--- -   Use an 'Action' element to allow or deny permission to call this action.--- -   You cannot use an IAM policy to constrain this action\'s parameters.+--     * Use a @Resource@ element with the domain name to limit the action to only specified domains.    * Use an @Action@ element to allow or deny permission to call this action.    * You cannot use an IAM policy to constrain this action's parameters. ----- If the caller does not have sufficient permissions to invoke the action, or the parameter values fall outside the specified constraints, the action fails. The associated event attribute\'s __cause__ parameter will be set to OPERATION_NOT_PERMITTED. For details and example IAM policies, see <http://docs.aws.amazon.com/amazonswf/latest/developerguide/swf-dev-iam.html Using IAM to Manage Access to Amazon SWF Workflows>.+-- If the caller does not have sufficient permissions to invoke the action, or the parameter values fall outside the specified constraints, the action fails. The associated event attribute's __cause__ parameter will be set to OPERATION_NOT_PERMITTED. For details and example IAM policies, see <http://docs.aws.amazon.com/amazonswf/latest/developerguide/swf-dev-iam.html Using IAM to Manage Access to Amazon SWF Workflows> .+-- module Network.AWS.SWF.RespondActivityTaskCompleted     (     -- * Creating a Request@@ -64,9 +62,9 @@ -- -- Use one of the following lenses to modify other fields as desired: ----- * 'ratcResult'+-- * 'ratcResult' - The result of the activity task. It is a free form string that is implementation specific. ----- * 'ratcTaskToken'+-- * 'ratcTaskToken' - The @taskToken@ of the 'ActivityTask' . /Important:/ @taskToken@ is generated by the service and should be treated as an opaque value. If the task is passed to another process, its @taskToken@ must also be passed. This enables it to provide its progress and respond with results. respondActivityTaskCompleted     :: Text -- ^ 'ratcTaskToken'     -> RespondActivityTaskCompleted@@ -80,9 +78,7 @@ ratcResult :: Lens' RespondActivityTaskCompleted (Maybe Text) ratcResult = lens _ratcResult (\ s a -> s{_ratcResult = a}); --- | The 'taskToken' of the < ActivityTask>.------ 'taskToken' is generated by the service and should be treated as an opaque value. If the task is passed to another process, its 'taskToken' must also be passed. This enables it to provide its progress and respond with results.+-- | The @taskToken@ of the 'ActivityTask' . /Important:/ @taskToken@ is generated by the service and should be treated as an opaque value. If the task is passed to another process, its @taskToken@ must also be passed. This enables it to provide its progress and respond with results. ratcTaskToken :: Lens' RespondActivityTaskCompleted Text ratcTaskToken = lens _ratcTaskToken (\ s a -> s{_ratcTaskToken = a}); 
gen/Network/AWS/SWF/RespondActivityTaskFailed.hs view
@@ -18,19 +18,19 @@ -- Stability   : auto-generated -- Portability : non-portable (GHC extensions) ----- Used by workers to tell the service that the < ActivityTask> identified by the 'taskToken' has failed with 'reason' (if specified). The 'reason' and 'details' appear in the 'ActivityTaskFailed' event added to the workflow history.+-- Used by workers to tell the service that the 'ActivityTask' identified by the @taskToken@ has failed with @reason@ (if specified). The @reason@ and @details@ appear in the @ActivityTaskFailed@ 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 < RespondActivityTaskCompleted>, < RespondActivityTaskCanceled>, RespondActivityTaskFailed, or the task has <http://docs.aws.amazon.com/amazonswf/latest/developerguide/swf-dg-basic.html#swf-dev-timeout-types timed out>. --+-- 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' , 'RespondActivityTaskCanceled' , RespondActivityTaskFailed, or the task has <http://docs.aws.amazon.com/amazonswf/latest/developerguide/swf-dg-basic.html#swf-dev-timeout-types timed out> .+-- -- __Access Control__ ----- You can use IAM policies to control this action\'s access to Amazon SWF resources as follows:+-- You can use IAM policies to control this action's access to Amazon SWF resources as follows: ----- -   Use a 'Resource' element with the domain name to limit the action to only specified domains.--- -   Use an 'Action' element to allow or deny permission to call this action.--- -   You cannot use an IAM policy to constrain this action\'s parameters.+--     * Use a @Resource@ element with the domain name to limit the action to only specified domains.    * Use an @Action@ element to allow or deny permission to call this action.    * You cannot use an IAM policy to constrain this action's parameters. ----- If the caller does not have sufficient permissions to invoke the action, or the parameter values fall outside the specified constraints, the action fails. The associated event attribute\'s __cause__ parameter will be set to OPERATION_NOT_PERMITTED. For details and example IAM policies, see <http://docs.aws.amazon.com/amazonswf/latest/developerguide/swf-dev-iam.html Using IAM to Manage Access to Amazon SWF Workflows>.+-- If the caller does not have sufficient permissions to invoke the action, or the parameter values fall outside the specified constraints, the action fails. The associated event attribute's __cause__ parameter will be set to OPERATION_NOT_PERMITTED. For details and example IAM policies, see <http://docs.aws.amazon.com/amazonswf/latest/developerguide/swf-dev-iam.html Using IAM to Manage Access to Amazon SWF Workflows> .+-- module Network.AWS.SWF.RespondActivityTaskFailed     (     -- * Creating a Request@@ -64,11 +64,11 @@ -- -- Use one of the following lenses to modify other fields as desired: ----- * 'ratfReason'+-- * 'ratfReason' - Description of the error that may assist in diagnostics. ----- * 'ratfDetails'+-- * 'ratfDetails' - /Optional./ Detailed information about the failure. ----- * 'ratfTaskToken'+-- * 'ratfTaskToken' - The @taskToken@ of the 'ActivityTask' . /Important:/ @taskToken@ is generated by the service and should be treated as an opaque value. If the task is passed to another process, its @taskToken@ must also be passed. This enables it to provide its progress and respond with results. respondActivityTaskFailed     :: Text -- ^ 'ratfTaskToken'     -> RespondActivityTaskFailed@@ -87,9 +87,7 @@ ratfDetails :: Lens' RespondActivityTaskFailed (Maybe Text) ratfDetails = lens _ratfDetails (\ s a -> s{_ratfDetails = a}); --- | The 'taskToken' of the < ActivityTask>.------ 'taskToken' is generated by the service and should be treated as an opaque value. If the task is passed to another process, its 'taskToken' must also be passed. This enables it to provide its progress and respond with results.+-- | The @taskToken@ of the 'ActivityTask' . /Important:/ @taskToken@ is generated by the service and should be treated as an opaque value. If the task is passed to another process, its @taskToken@ must also be passed. This enables it to provide its progress and respond with results. ratfTaskToken :: Lens' RespondActivityTaskFailed Text ratfTaskToken = lens _ratfTaskToken (\ s a -> s{_ratfTaskToken = a}); 
gen/Network/AWS/SWF/RespondDecisionTaskCompleted.hs view
@@ -18,13 +18,15 @@ -- Stability   : auto-generated -- Portability : non-portable (GHC extensions) ----- Used by deciders to tell the service that the < DecisionTask> identified by the 'taskToken' has successfully completed. The 'decisions' argument specifies the list of decisions made while processing the task.+-- Used by deciders to tell the service that the 'DecisionTask' identified by the @taskToken@ has successfully completed. The @decisions@ argument specifies the list of decisions made while processing the task. ----- A 'DecisionTaskCompleted' event is added to the workflow history. The 'executionContext' specified is attached to the event in the workflow execution history. --+-- A @DecisionTaskCompleted@ event is added to the workflow history. The @executionContext@ specified is attached to the event in the workflow execution history.+-- -- __Access Control__ ----- If an IAM policy grants permission to use 'RespondDecisionTaskCompleted', it can express permissions for the list of decisions in the 'decisions' 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 <http://docs.aws.amazon.com/amazonswf/latest/developerguide/swf-dev-iam.html Using IAM to Manage Access to Amazon SWF Workflows>.+-- If an IAM policy grants permission to use @RespondDecisionTaskCompleted@ , it can express permissions for the list of decisions in the @decisions@ 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 <http://docs.aws.amazon.com/amazonswf/latest/developerguide/swf-dev-iam.html Using IAM to Manage Access to Amazon SWF Workflows> .+-- module Network.AWS.SWF.RespondDecisionTaskCompleted     (     -- * Creating a Request@@ -58,11 +60,11 @@ -- -- Use one of the following lenses to modify other fields as desired: ----- * 'rdtcDecisions'+-- * 'rdtcDecisions' - The list of decisions (possibly empty) made by the decider while processing this decision task. See the docs for the decision structure for details. ----- * 'rdtcExecutionContext'+-- * 'rdtcExecutionContext' - User defined context to add to workflow execution. ----- * 'rdtcTaskToken'+-- * 'rdtcTaskToken' - The @taskToken@ from the 'DecisionTask' . /Important:/ @taskToken@ is generated by the service and should be treated as an opaque value. If the task is passed to another process, its @taskToken@ must also be passed. This enables it to provide its progress and respond with results. respondDecisionTaskCompleted     :: Text -- ^ 'rdtcTaskToken'     -> RespondDecisionTaskCompleted@@ -81,9 +83,7 @@ rdtcExecutionContext :: Lens' RespondDecisionTaskCompleted (Maybe Text) rdtcExecutionContext = lens _rdtcExecutionContext (\ s a -> s{_rdtcExecutionContext = a}); --- | The 'taskToken' from the < DecisionTask>.------ 'taskToken' is generated by the service and should be treated as an opaque value. If the task is passed to another process, its 'taskToken' must also be passed. This enables it to provide its progress and respond with results.+-- | The @taskToken@ from the 'DecisionTask' . /Important:/ @taskToken@ is generated by the service and should be treated as an opaque value. If the task is passed to another process, its @taskToken@ must also be passed. This enables it to provide its progress and respond with results. rdtcTaskToken :: Lens' RespondDecisionTaskCompleted Text rdtcTaskToken = lens _rdtcTaskToken (\ s a -> s{_rdtcTaskToken = a}); 
gen/Network/AWS/SWF/SignalWorkflowExecution.hs view
@@ -18,21 +18,17 @@ -- Stability   : auto-generated -- Portability : non-portable (GHC extensions) ----- Records a 'WorkflowExecutionSignaled' 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).+-- Records a @WorkflowExecutionSignaled@ 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). ----- If a runId is not specified, then the 'WorkflowExecutionSignaled' event is recorded in the history of the current open workflow with the matching workflowId in the domain. ----- If the specified workflow execution is not open, this method fails with 'UnknownResource'.--- -- __Access Control__ ----- You can use IAM policies to control this action\'s access to Amazon SWF resources as follows:+-- You can use IAM policies to control this action's access to Amazon SWF resources as follows: ----- -   Use a 'Resource' element with the domain name to limit the action to only specified domains.--- -   Use an 'Action' element to allow or deny permission to call this action.--- -   You cannot use an IAM policy to constrain this action\'s parameters.+--     * Use a @Resource@ element with the domain name to limit the action to only specified domains.    * Use an @Action@ element to allow or deny permission to call this action.    * You cannot use an IAM policy to constrain this action's parameters. ----- If the caller does not have sufficient permissions to invoke the action, or the parameter values fall outside the specified constraints, the action fails. The associated event attribute\'s __cause__ parameter will be set to OPERATION_NOT_PERMITTED. For details and example IAM policies, see <http://docs.aws.amazon.com/amazonswf/latest/developerguide/swf-dev-iam.html Using IAM to Manage Access to Amazon SWF Workflows>.+-- If the caller does not have sufficient permissions to invoke the action, or the parameter values fall outside the specified constraints, the action fails. The associated event attribute's __cause__ parameter will be set to OPERATION_NOT_PERMITTED. For details and example IAM policies, see <http://docs.aws.amazon.com/amazonswf/latest/developerguide/swf-dev-iam.html Using IAM to Manage Access to Amazon SWF Workflows> .+-- module Network.AWS.SWF.SignalWorkflowExecution     (     -- * Creating a Request@@ -70,15 +66,15 @@ -- -- Use one of the following lenses to modify other fields as desired: ----- * 'sweInput'+-- * 'sweInput' - Data to attach to the @WorkflowExecutionSignaled@ event in the target workflow execution's history. ----- * 'sweRunId'+-- * 'sweRunId' - The runId of the workflow execution to signal. ----- * 'sweDomain'+-- * 'sweDomain' - The name of the domain containing the workflow execution to signal. ----- * 'sweWorkflowId'+-- * 'sweWorkflowId' - The workflowId of the workflow execution to signal. ----- * 'sweSignalName'+-- * 'sweSignalName' - The name of the signal. This name must be meaningful to the target workflow. signalWorkflowExecution     :: Text -- ^ 'sweDomain'     -> Text -- ^ 'sweWorkflowId'@@ -93,7 +89,7 @@     , _sweSignalName = pSignalName_     } --- | Data to attach to the 'WorkflowExecutionSignaled' event in the target workflow execution\'s history.+-- | Data to attach to the @WorkflowExecutionSignaled@ event in the target workflow execution's history. sweInput :: Lens' SignalWorkflowExecution (Maybe Text) sweInput = lens _sweInput (\ s a -> s{_sweInput = a}); 
gen/Network/AWS/SWF/StartWorkflowExecution.hs view
@@ -18,27 +18,21 @@ -- Stability   : auto-generated -- Portability : non-portable (GHC extensions) ----- Starts an execution of the workflow type in the specified domain using the provided 'workflowId' and input data.+-- Starts an execution of the workflow type in the specified domain using the provided @workflowId@ and input data. --+-- -- This action returns the newly started workflow execution. -- -- __Access Control__ ----- You can use IAM policies to control this action\'s access to Amazon SWF resources as follows:+-- You can use IAM policies to control this action's access to Amazon SWF resources as follows: ----- -   Use a 'Resource' element with the domain name to limit the action to only specified domains.--- -   Use an 'Action' element to allow or deny permission to call this action.--- -   Constrain the following parameters by using a 'Condition' element with the appropriate keys.---     -   'tagList.member.0': The key is 'swf:tagList.member.0'.---     -   'tagList.member.1': The key is 'swf:tagList.member.1'.---     -   'tagList.member.2': The key is 'swf:tagList.member.2'.---     -   'tagList.member.3': The key is 'swf:tagList.member.3'.---     -   'tagList.member.4': The key is 'swf:tagList.member.4'.---     -   'taskList': String constraint. The key is 'swf:taskList.name'.---     -   'workflowType.name': String constraint. The key is 'swf:workflowType.name'.---     -   'workflowType.version': String constraint. The key is 'swf:workflowType.version'.+--     * Use a @Resource@ element with the domain name to limit the action to only specified domains.    * Use an @Action@ element to allow or deny permission to call this action.    * Constrain the following parameters by using a @Condition@ element with the appropriate keys.     * @tagList.member.0@ : The key is @swf:tagList.member.0@ .    * @tagList.member.1@ : The key is @swf:tagList.member.1@ .    * @tagList.member.2@ : The key is @swf:tagList.member.2@ .    * @tagList.member.3@ : The key is @swf:tagList.member.3@ .    * @tagList.member.4@ : The key is @swf:tagList.member.4@ .    * @taskList@ : String constraint. The key is @swf:taskList.name@ .    * @workflowType.name@ : String constraint. The key is @swf:workflowType.name@ .    * @workflowType.version@ : String constraint. The key is @swf:workflowType.version@ . ----- If the caller does not have sufficient permissions to invoke the action, or the parameter values fall outside the specified constraints, the action fails. The associated event attribute\'s __cause__ parameter will be set to OPERATION_NOT_PERMITTED. For details and example IAM policies, see <http://docs.aws.amazon.com/amazonswf/latest/developerguide/swf-dev-iam.html Using IAM to Manage Access to Amazon SWF Workflows>.+--+--+-- If the caller does not have sufficient permissions to invoke the action, or the parameter values fall outside the specified constraints, the action fails. The associated event attribute's __cause__ parameter will be set to OPERATION_NOT_PERMITTED. For details and example IAM policies, see <http://docs.aws.amazon.com/amazonswf/latest/developerguide/swf-dev-iam.html Using IAM to Manage Access to Amazon SWF Workflows> .+-- module Network.AWS.SWF.StartWorkflowExecution     (     -- * Creating a Request@@ -91,27 +85,27 @@ -- -- Use one of the following lenses to modify other fields as desired: ----- * 'sTagList'+-- * 'sTagList' - 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 'ListOpenWorkflowExecutions' or 'ListClosedWorkflowExecutions' and specifying a 'TagFilter' . ----- * 'sTaskStartToCloseTimeout'+-- * 'sTaskStartToCloseTimeout' - Specifies the maximum duration of decision tasks for this workflow execution. This parameter overrides the @defaultTaskStartToCloseTimout@ specified when registering the workflow type using 'RegisterWorkflowType' . The duration is specified in seconds; an integer greater than or equal to 0. The value "NONE" can be used to specify unlimited duration. ----- * 'sLambdaRole'+-- * 'sLambdaRole' - The ARN of an IAM role that authorizes Amazon SWF to invoke AWS Lambda functions. ----- * 'sInput'+-- * 'sInput' - The input for the workflow execution. This is a free form string which should be meaningful to the workflow you are starting. This @input@ is made available to the new workflow execution in the @WorkflowExecutionStarted@ history event. ----- * 'sExecutionStartToCloseTimeout'+-- * 'sExecutionStartToCloseTimeout' - 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 0. Exceeding this limit will cause the workflow execution to time out. Unlike some of the other timeout parameters in Amazon SWF, you cannot specify a value of "NONE" for this timeout; there is a one-year max limit on the time that a workflow execution can run. ----- * 'sTaskList'+-- * 'sTaskList' - The task list to use for the decision tasks generated for this workflow execution. This overrides the @defaultTaskList@ specified when registering the workflow type. The specified string must not start or end with whitespace. It must not contain a @:@ (colon), @/@ (slash), @|@ (vertical bar), or any control characters (\u0000-\u001f | \u007f - \u009f). Also, it must not contain the literal string quotarnquot. ----- * 'sTaskPriority'+-- * 'sTaskPriority' - The task priority to use for this workflow execution. This will override any default priority that was assigned when the workflow type was registered. If not set, then the default task priority for the workflow type will be used. Valid values are integers that range from Java's @Integer.MIN_VALUE@ (-2147483648) to @Integer.MAX_VALUE@ (2147483647). Higher numbers indicate higher priority. For more information about setting task priority, see <http://docs.aws.amazon.com/amazonswf/latest/developerguide/programming-priority.html Setting Task Priority> in the /Amazon Simple Workflow Developer Guide/ . ----- * 'sChildPolicy'+-- * 'sChildPolicy' - If set, specifies the policy to use for the child workflow executions of this workflow execution if it is terminated, by calling the 'TerminateWorkflowExecution' action explicitly or due to an expired timeout. This policy overrides the default child policy specified when registering the workflow type using 'RegisterWorkflowType' . The supported child policies are:     * __TERMINATE:__ the child executions will be terminated.    * __REQUEST_CANCEL:__ a request to cancel will be attempted for each child execution by recording a @WorkflowExecutionCancelRequested@ event in its history. It is up to the decider to take appropriate actions when it receives an execution history with this event.    * __ABANDON:__ no action will be taken. The child executions will continue to run. ----- * 'sDomain'+-- * 'sDomain' - The name of the domain in which the workflow execution is created. ----- * 'sWorkflowId'+-- * 'sWorkflowId' - 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 /restart/ of a previous execution. You cannot have two open workflow executions with the same @workflowId@ at the same time. The specified string must not start or end with whitespace. It must not contain a @:@ (colon), @/@ (slash), @|@ (vertical bar), or any control characters (\u0000-\u001f | \u007f - \u009f). Also, it must not contain the literal string quotarnquot. ----- * 'sWorkflowType'+-- * 'sWorkflowType' - The type of the workflow to start. startWorkflowExecution     :: Text -- ^ 'sDomain'     -> Text -- ^ 'sWorkflowId'@@ -132,59 +126,35 @@     , _sWorkflowType = pWorkflowType_     } --- | 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 < ListOpenWorkflowExecutions> or < ListClosedWorkflowExecutions> and specifying a < TagFilter>.+-- | 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 'ListOpenWorkflowExecutions' or 'ListClosedWorkflowExecutions' and specifying a 'TagFilter' . sTagList :: Lens' StartWorkflowExecution [Text] sTagList = lens _sTagList (\ s a -> s{_sTagList = a}) . _Default . _Coerce; --- | Specifies the maximum duration of decision tasks for this workflow execution. This parameter overrides the 'defaultTaskStartToCloseTimout' specified when registering the workflow type using < RegisterWorkflowType>.------ The duration is specified in seconds; an integer greater than or equal to 0. The value \"NONE\" can be used to specify unlimited duration.------ A task start-to-close timeout for this workflow execution must be specified either as a default for the workflow type or through this parameter. If neither this parameter is set nor a default task start-to-close timeout was specified at registration time then a fault will be returned.+-- | Specifies the maximum duration of decision tasks for this workflow execution. This parameter overrides the @defaultTaskStartToCloseTimout@ specified when registering the workflow type using 'RegisterWorkflowType' . The duration is specified in seconds; an integer greater than or equal to 0. The value "NONE" can be used to specify unlimited duration. sTaskStartToCloseTimeout :: Lens' StartWorkflowExecution (Maybe Text) sTaskStartToCloseTimeout = lens _sTaskStartToCloseTimeout (\ s a -> s{_sTaskStartToCloseTimeout = a});  -- | The ARN of an IAM role that authorizes Amazon SWF to invoke AWS Lambda functions.------ In order for this workflow execution to invoke AWS Lambda functions, an appropriate IAM role must be specified either as a default for the workflow type or through this field. sLambdaRole :: Lens' StartWorkflowExecution (Maybe Text) sLambdaRole = lens _sLambdaRole (\ s a -> s{_sLambdaRole = a}); --- | The input for the workflow execution. This is a free form string which should be meaningful to the workflow you are starting. This 'input' is made available to the new workflow execution in the 'WorkflowExecutionStarted' history event.+-- | The input for the workflow execution. This is a free form string which should be meaningful to the workflow you are starting. This @input@ is made available to the new workflow execution in the @WorkflowExecutionStarted@ history event. sInput :: Lens' StartWorkflowExecution (Maybe Text) sInput = lens _sInput (\ s a -> s{_sInput = 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 0. Exceeding this limit will cause the workflow execution to time out. Unlike some of the other timeout parameters in Amazon SWF, you cannot specify a value of \"NONE\" for this timeout; there is a one-year max limit on the time that a workflow execution can run.------ An execution start-to-close timeout must be specified either through this parameter or as a default when the workflow type is registered. If neither this parameter nor a default execution start-to-close timeout is specified, a fault is returned.+-- | 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 0. Exceeding this limit will cause the workflow execution to time out. Unlike some of the other timeout parameters in Amazon SWF, you cannot specify a value of "NONE" for this timeout; there is a one-year max limit on the time that a workflow execution can run. sExecutionStartToCloseTimeout :: Lens' StartWorkflowExecution (Maybe Text) sExecutionStartToCloseTimeout = lens _sExecutionStartToCloseTimeout (\ s a -> s{_sExecutionStartToCloseTimeout = a}); --- | The task list to use for the decision tasks generated for this workflow execution. This overrides the 'defaultTaskList' specified when registering the workflow type.------ A task list for this workflow execution must be specified either as a default for the workflow type or through this parameter. If neither this parameter is set nor a default task list was specified at registration time then a fault will be returned.------ The specified string must not start or end with whitespace. It must not contain a ':' (colon), '\/' (slash), '|' (vertical bar), or any control characters (\\u0000-\\u001f | \\u007f - \\u009f). Also, it must not contain the literal string quotarnquot.+-- | The task list to use for the decision tasks generated for this workflow execution. This overrides the @defaultTaskList@ specified when registering the workflow type. The specified string must not start or end with whitespace. It must not contain a @:@ (colon), @/@ (slash), @|@ (vertical bar), or any control characters (\u0000-\u001f | \u007f - \u009f). Also, it must not contain the literal string quotarnquot. sTaskList :: Lens' StartWorkflowExecution (Maybe TaskList) sTaskList = lens _sTaskList (\ s a -> s{_sTaskList = a}); --- | The task priority to use for this workflow execution. This will override any default priority that was assigned when the workflow type was registered. If not set, then the default task priority for the workflow type will be used. Valid values are integers that range from Java\'s 'Integer.MIN_VALUE' (-2147483648) to 'Integer.MAX_VALUE' (2147483647). Higher numbers indicate higher priority.------ For more information about setting task priority, see <http://docs.aws.amazon.com/amazonswf/latest/developerguide/programming-priority.html Setting Task Priority> in the /Amazon Simple Workflow Developer Guide/.+-- | The task priority to use for this workflow execution. This will override any default priority that was assigned when the workflow type was registered. If not set, then the default task priority for the workflow type will be used. Valid values are integers that range from Java's @Integer.MIN_VALUE@ (-2147483648) to @Integer.MAX_VALUE@ (2147483647). Higher numbers indicate higher priority. For more information about setting task priority, see <http://docs.aws.amazon.com/amazonswf/latest/developerguide/programming-priority.html Setting Task Priority> in the /Amazon Simple Workflow Developer Guide/ . sTaskPriority :: Lens' StartWorkflowExecution (Maybe Text) sTaskPriority = lens _sTaskPriority (\ s a -> s{_sTaskPriority = a}); --- | If set, specifies the policy to use for the child workflow executions of this workflow execution if it is terminated, by calling the < TerminateWorkflowExecution> action explicitly or due to an expired timeout. This policy overrides the default child policy specified when registering the workflow type using < RegisterWorkflowType>.------ The supported child policies are:------ -   __TERMINATE:__ the child executions will be terminated.--- -   __REQUEST_CANCEL:__ a request to cancel will be attempted for each child execution by recording a 'WorkflowExecutionCancelRequested' event in its history. It is up to the decider to take appropriate actions when it receives an execution history with this event.--- -   __ABANDON:__ no action will be taken. The child executions will continue to run.------ A child policy for this workflow execution must be specified either as a default for the workflow type or through this parameter. If neither this parameter is set nor a default child policy was specified at registration time then a fault will be returned.+-- | If set, specifies the policy to use for the child workflow executions of this workflow execution if it is terminated, by calling the 'TerminateWorkflowExecution' action explicitly or due to an expired timeout. This policy overrides the default child policy specified when registering the workflow type using 'RegisterWorkflowType' . The supported child policies are:     * __TERMINATE:__ the child executions will be terminated.    * __REQUEST_CANCEL:__ a request to cancel will be attempted for each child execution by recording a @WorkflowExecutionCancelRequested@ event in its history. It is up to the decider to take appropriate actions when it receives an execution history with this event.    * __ABANDON:__ no action will be taken. The child executions will continue to run. sChildPolicy :: Lens' StartWorkflowExecution (Maybe ChildPolicy) sChildPolicy = lens _sChildPolicy (\ s a -> s{_sChildPolicy = a}); @@ -192,9 +162,7 @@ sDomain :: Lens' StartWorkflowExecution Text sDomain = lens _sDomain (\ s a -> s{_sDomain = 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 /restart/ of a previous execution. You cannot have two open workflow executions with the same 'workflowId' at the same time.------ The specified string must not start or end with whitespace. It must not contain a ':' (colon), '\/' (slash), '|' (vertical bar), or any control characters (\\u0000-\\u001f | \\u007f - \\u009f). Also, it must not contain the literal string quotarnquot.+-- | 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 /restart/ of a previous execution. You cannot have two open workflow executions with the same @workflowId@ at the same time. The specified string must not start or end with whitespace. It must not contain a @:@ (colon), @/@ (slash), @|@ (vertical bar), or any control characters (\u0000-\u001f | \u007f - \u009f). Also, it must not contain the literal string quotarnquot. sWorkflowId :: Lens' StartWorkflowExecution Text sWorkflowId = lens _sWorkflowId (\ s a -> s{_sWorkflowId = a}); @@ -250,8 +218,10 @@ instance ToQuery StartWorkflowExecution where         toQuery = const mempty --- | Specifies the 'runId' of a workflow execution.+-- | Specifies the @runId@ of a workflow execution. --+--+-- -- /See:/ 'startWorkflowExecutionResponse' smart constructor. data StartWorkflowExecutionResponse = StartWorkflowExecutionResponse'     { _swersRunId          :: !(Maybe Text)@@ -262,9 +232,9 @@ -- -- Use one of the following lenses to modify other fields as desired: ----- * 'swersRunId'+-- * 'swersRunId' - The @runId@ of a workflow execution. This ID is generated by the service and can be used to uniquely identify the workflow execution within a domain. ----- * 'swersResponseStatus'+-- * 'swersResponseStatus' - -- | The response status code. startWorkflowExecutionResponse     :: Int -- ^ 'swersResponseStatus'     -> StartWorkflowExecutionResponse@@ -274,11 +244,11 @@     , _swersResponseStatus = pResponseStatus_     } --- | The 'runId' of a workflow execution. This ID is generated by the service and can be used to uniquely identify the workflow execution within a domain.+-- | The @runId@ 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) swersRunId = lens _swersRunId (\ s a -> s{_swersRunId = a}); --- | The response status code.+-- | -- | The response status code. swersResponseStatus :: Lens' StartWorkflowExecutionResponse Int swersResponseStatus = lens _swersResponseStatus (\ s a -> s{_swersResponseStatus = a}); 
gen/Network/AWS/SWF/TerminateWorkflowExecution.hs view
@@ -18,23 +18,17 @@ -- Stability   : auto-generated -- Portability : non-portable (GHC extensions) ----- Records a 'WorkflowExecutionTerminated' 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.+-- Records a @WorkflowExecutionTerminated@ 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. ----- If the identified workflow execution was in progress, it is terminated immediately. ----- If a runId is not specified, then the 'WorkflowExecutionTerminated' event is recorded in the history of the current open workflow with the matching workflowId in the domain.------ You should consider using < RequestCancelWorkflowExecution> action instead because it allows the workflow to gracefully close while < TerminateWorkflowExecution> does not.+-- /Important:/ If the identified workflow execution was in progress, it is terminated immediately.__Access Control__ ----- __Access Control__+-- You can use IAM policies to control this action's access to Amazon SWF resources as follows: ----- You can use IAM policies to control this action\'s access to Amazon SWF resources as follows:+--     * Use a @Resource@ element with the domain name to limit the action to only specified domains.    * Use an @Action@ element to allow or deny permission to call this action.    * You cannot use an IAM policy to constrain this action's parameters. ----- -   Use a 'Resource' element with the domain name to limit the action to only specified domains.--- -   Use an 'Action' element to allow or deny permission to call this action.--- -   You cannot use an IAM policy to constrain this action\'s parameters.+-- If the caller does not have sufficient permissions to invoke the action, or the parameter values fall outside the specified constraints, the action fails. The associated event attribute's __cause__ parameter will be set to OPERATION_NOT_PERMITTED. For details and example IAM policies, see <http://docs.aws.amazon.com/amazonswf/latest/developerguide/swf-dev-iam.html Using IAM to Manage Access to Amazon SWF Workflows> . ----- If the caller does not have sufficient permissions to invoke the action, or the parameter values fall outside the specified constraints, the action fails. The associated event attribute\'s __cause__ parameter will be set to OPERATION_NOT_PERMITTED. For details and example IAM policies, see <http://docs.aws.amazon.com/amazonswf/latest/developerguide/swf-dev-iam.html Using IAM to Manage Access to Amazon SWF Workflows>. module Network.AWS.SWF.TerminateWorkflowExecution     (     -- * Creating a Request@@ -74,17 +68,17 @@ -- -- Use one of the following lenses to modify other fields as desired: ----- * 'tweReason'+-- * 'tweReason' - /Optional./ A descriptive reason for terminating the workflow execution. ----- * 'tweRunId'+-- * 'tweRunId' - The runId of the workflow execution to terminate. ----- * 'tweChildPolicy'+-- * 'tweChildPolicy' - 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:     * __TERMINATE:__ the child executions will be terminated.    * __REQUEST_CANCEL:__ a request to cancel will be attempted for each child execution by recording a @WorkflowExecutionCancelRequested@ event in its history. It is up to the decider to take appropriate actions when it receives an execution history with this event.    * __ABANDON:__ no action will be taken. The child executions will continue to run. ----- * 'tweDetails'+-- * 'tweDetails' - /Optional./ Details for terminating the workflow execution. ----- * 'tweDomain'+-- * 'tweDomain' - The domain of the workflow execution to terminate. ----- * 'tweWorkflowId'+-- * 'tweWorkflowId' - The workflowId of the workflow execution to terminate. terminateWorkflowExecution     :: Text -- ^ 'tweDomain'     -> Text -- ^ 'tweWorkflowId'@@ -107,15 +101,7 @@ tweRunId :: Lens' TerminateWorkflowExecution (Maybe Text) tweRunId = lens _tweRunId (\ s a -> s{_tweRunId = 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:------ -   __TERMINATE:__ the child executions will be terminated.--- -   __REQUEST_CANCEL:__ a request to cancel will be attempted for each child execution by recording a 'WorkflowExecutionCancelRequested' event in its history. It is up to the decider to take appropriate actions when it receives an execution history with this event.--- -   __ABANDON:__ no action will be taken. The child executions will continue to run.------ A child policy for this workflow execution must be specified either as a default for the workflow type or through this parameter. If neither this parameter is set nor a default child policy was specified at registration time then a fault will be returned.+-- | 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:     * __TERMINATE:__ the child executions will be terminated.    * __REQUEST_CANCEL:__ a request to cancel will be attempted for each child execution by recording a @WorkflowExecutionCancelRequested@ event in its history. It is up to the decider to take appropriate actions when it receives an execution history with this event.    * __ABANDON:__ no action will be taken. The child executions will continue to run. tweChildPolicy :: Lens' TerminateWorkflowExecution (Maybe ChildPolicy) tweChildPolicy = lens _tweChildPolicy (\ s a -> s{_tweChildPolicy = a}); 
gen/Network/AWS/SWF/Types.hs view
@@ -876,7 +876,7 @@ import           Network.AWS.SWF.Types.Product import           Network.AWS.SWF.Types.Sum --- | API version '2012-01-25' of the Amazon Simple Workflow Service SDK configuration.+-- | API version @2012-01-25@ of the Amazon Simple Workflow Service SDK configuration. swf :: Service swf =     Service@@ -911,24 +911,34 @@       | otherwise = Nothing  -- | Returned if the specified domain already exists. You will get this fault even if the existing domain is in deprecated status.+--+-- _DomainAlreadyExistsFault :: AsError a => Getting (First ServiceError) a ServiceError _DomainAlreadyExistsFault = _ServiceError . hasCode "DomainAlreadyExistsFault"  -- | 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 _LimitExceededFault = _ServiceError . hasCode "LimitExceededFault" --- | Returned by < StartWorkflowExecution> when an open execution with the same workflowId is already running in the specified domain.+-- | Returned by 'StartWorkflowExecution' when an open execution with the same workflowId is already running in the specified domain.+--+-- _WorkflowExecutionAlreadyStartedFault :: AsError a => Getting (First ServiceError) a ServiceError _WorkflowExecutionAlreadyStartedFault =     _ServiceError . hasCode "WorkflowExecutionAlreadyStartedFault"  -- | Returned when the caller does not have sufficient permissions to invoke the action.+--+-- _OperationNotPermittedFault :: AsError a => Getting (First ServiceError) a ServiceError _OperationNotPermittedFault =     _ServiceError . hasCode "OperationNotPermittedFault"  -- | 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 _UnknownResourceFault = _ServiceError . hasCode "UnknownResourceFault" @@ -937,13 +947,19 @@ _DefaultUndefinedFault = _ServiceError . hasCode "DefaultUndefinedFault"  -- | Returned when the specified activity or workflow type was already deprecated.+--+-- _TypeDeprecatedFault :: AsError a => Getting (First ServiceError) a ServiceError _TypeDeprecatedFault = _ServiceError . hasCode "TypeDeprecatedFault"  -- | Returned if the type already exists in the specified domain. You will 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 _TypeAlreadyExistsFault = _ServiceError . hasCode "TypeAlreadyExistsFault"  -- | Returned when the specified domain has been deprecated.+--+-- _DomainDeprecatedFault :: AsError a => Getting (First ServiceError) a ServiceError _DomainDeprecatedFault = _ServiceError . hasCode "DomainDeprecatedFault"
gen/Network/AWS/SWF/Types/Product.hs view
@@ -21,6767 +21,6613 @@ import           Network.AWS.Prelude import           Network.AWS.SWF.Types.Sum --- | Provides details of the 'ActivityTaskCancelRequested' event.------ /See:/ 'activityTaskCancelRequestedEventAttributes' smart constructor.-data ActivityTaskCancelRequestedEventAttributes = ActivityTaskCancelRequestedEventAttributes'-    { _atcreaDecisionTaskCompletedEventId :: !Integer-    , _atcreaActivityId                   :: !Text-    } deriving (Eq,Read,Show,Data,Typeable,Generic)---- | Creates a value of 'ActivityTaskCancelRequestedEventAttributes' with the minimum fields required to make a request.------ Use one of the following lenses to modify other fields as desired:------ * 'atcreaDecisionTaskCompletedEventId'------ * 'atcreaActivityId'-activityTaskCancelRequestedEventAttributes-    :: Integer -- ^ 'atcreaDecisionTaskCompletedEventId'-    -> Text -- ^ 'atcreaActivityId'-    -> ActivityTaskCancelRequestedEventAttributes-activityTaskCancelRequestedEventAttributes pDecisionTaskCompletedEventId_ pActivityId_ =-    ActivityTaskCancelRequestedEventAttributes'-    { _atcreaDecisionTaskCompletedEventId = pDecisionTaskCompletedEventId_-    , _atcreaActivityId = pActivityId_-    }---- | The ID of the 'DecisionTaskCompleted' event corresponding to the decision task that resulted in the 'RequestCancelActivityTask' 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-atcreaDecisionTaskCompletedEventId = lens _atcreaDecisionTaskCompletedEventId (\ s a -> s{_atcreaDecisionTaskCompletedEventId = a});---- | The unique ID of the task.-atcreaActivityId :: Lens' ActivityTaskCancelRequestedEventAttributes Text-atcreaActivityId = lens _atcreaActivityId (\ s a -> s{_atcreaActivityId = a});--instance FromJSON-         ActivityTaskCancelRequestedEventAttributes where-        parseJSON-          = withObject-              "ActivityTaskCancelRequestedEventAttributes"-              (\ x ->-                 ActivityTaskCancelRequestedEventAttributes' <$>-                   (x .: "decisionTaskCompletedEventId") <*>-                     (x .: "activityId"))--instance Hashable-         ActivityTaskCancelRequestedEventAttributes--instance NFData-         ActivityTaskCancelRequestedEventAttributes---- | Provides details of the 'ActivityTaskCanceled' event.------ /See:/ 'activityTaskCanceledEventAttributes' smart constructor.-data ActivityTaskCanceledEventAttributes = ActivityTaskCanceledEventAttributes'-    { _aLatestCancelRequestedEventId :: !(Maybe Integer)-    , _aDetails                      :: !(Maybe Text)-    , _aScheduledEventId             :: !Integer-    , _aStartedEventId               :: !Integer-    } deriving (Eq,Read,Show,Data,Typeable,Generic)---- | Creates a value of 'ActivityTaskCanceledEventAttributes' with the minimum fields required to make a request.------ Use one of the following lenses to modify other fields as desired:------ * 'aLatestCancelRequestedEventId'------ * 'aDetails'------ * 'aScheduledEventId'------ * 'aStartedEventId'-activityTaskCanceledEventAttributes-    :: Integer -- ^ 'aScheduledEventId'-    -> Integer -- ^ 'aStartedEventId'-    -> ActivityTaskCanceledEventAttributes-activityTaskCanceledEventAttributes pScheduledEventId_ pStartedEventId_ =-    ActivityTaskCanceledEventAttributes'-    { _aLatestCancelRequestedEventId = Nothing-    , _aDetails = Nothing-    , _aScheduledEventId = pScheduledEventId_-    , _aStartedEventId = pStartedEventId_-    }---- | If set, contains the ID of the last 'ActivityTaskCancelRequested' 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)-aLatestCancelRequestedEventId = lens _aLatestCancelRequestedEventId (\ s a -> s{_aLatestCancelRequestedEventId = a});---- | Details of the cancellation (if any).-aDetails :: Lens' ActivityTaskCanceledEventAttributes (Maybe Text)-aDetails = lens _aDetails (\ s a -> s{_aDetails = a});---- | The ID of the 'ActivityTaskScheduled' 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-aScheduledEventId = lens _aScheduledEventId (\ s a -> s{_aScheduledEventId = a});---- | The ID of the 'ActivityTaskStarted' 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-aStartedEventId = lens _aStartedEventId (\ s a -> s{_aStartedEventId = a});--instance FromJSON ActivityTaskCanceledEventAttributes-         where-        parseJSON-          = withObject "ActivityTaskCanceledEventAttributes"-              (\ x ->-                 ActivityTaskCanceledEventAttributes' <$>-                   (x .:? "latestCancelRequestedEventId") <*>-                     (x .:? "details")-                     <*> (x .: "scheduledEventId")-                     <*> (x .: "startedEventId"))--instance Hashable ActivityTaskCanceledEventAttributes--instance NFData ActivityTaskCanceledEventAttributes---- | Provides details of the 'ActivityTaskCompleted' event.------ /See:/ 'activityTaskCompletedEventAttributes' smart constructor.-data ActivityTaskCompletedEventAttributes = ActivityTaskCompletedEventAttributes'-    { _atceaResult           :: !(Maybe Text)-    , _atceaScheduledEventId :: !Integer-    , _atceaStartedEventId   :: !Integer-    } deriving (Eq,Read,Show,Data,Typeable,Generic)---- | Creates a value of 'ActivityTaskCompletedEventAttributes' with the minimum fields required to make a request.------ Use one of the following lenses to modify other fields as desired:------ * 'atceaResult'------ * 'atceaScheduledEventId'------ * 'atceaStartedEventId'-activityTaskCompletedEventAttributes-    :: Integer -- ^ 'atceaScheduledEventId'-    -> Integer -- ^ 'atceaStartedEventId'-    -> ActivityTaskCompletedEventAttributes-activityTaskCompletedEventAttributes pScheduledEventId_ pStartedEventId_ =-    ActivityTaskCompletedEventAttributes'-    { _atceaResult = Nothing-    , _atceaScheduledEventId = pScheduledEventId_-    , _atceaStartedEventId = pStartedEventId_-    }---- | The results of the activity task (if any).-atceaResult :: Lens' ActivityTaskCompletedEventAttributes (Maybe Text)-atceaResult = lens _atceaResult (\ s a -> s{_atceaResult = a});---- | The ID of the 'ActivityTaskScheduled' 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-atceaScheduledEventId = lens _atceaScheduledEventId (\ s a -> s{_atceaScheduledEventId = a});---- | The ID of the 'ActivityTaskStarted' 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-atceaStartedEventId = lens _atceaStartedEventId (\ s a -> s{_atceaStartedEventId = a});--instance FromJSON-         ActivityTaskCompletedEventAttributes where-        parseJSON-          = withObject "ActivityTaskCompletedEventAttributes"-              (\ x ->-                 ActivityTaskCompletedEventAttributes' <$>-                   (x .:? "result") <*> (x .: "scheduledEventId") <*>-                     (x .: "startedEventId"))--instance Hashable-         ActivityTaskCompletedEventAttributes--instance NFData ActivityTaskCompletedEventAttributes---- | Provides details of the 'ActivityTaskFailed' event.------ /See:/ 'activityTaskFailedEventAttributes' smart constructor.-data ActivityTaskFailedEventAttributes = ActivityTaskFailedEventAttributes'-    { _atfeaReason           :: !(Maybe Text)-    , _atfeaDetails          :: !(Maybe Text)-    , _atfeaScheduledEventId :: !Integer-    , _atfeaStartedEventId   :: !Integer-    } deriving (Eq,Read,Show,Data,Typeable,Generic)---- | Creates a value of 'ActivityTaskFailedEventAttributes' with the minimum fields required to make a request.------ Use one of the following lenses to modify other fields as desired:------ * 'atfeaReason'------ * 'atfeaDetails'------ * 'atfeaScheduledEventId'------ * 'atfeaStartedEventId'-activityTaskFailedEventAttributes-    :: Integer -- ^ 'atfeaScheduledEventId'-    -> Integer -- ^ 'atfeaStartedEventId'-    -> ActivityTaskFailedEventAttributes-activityTaskFailedEventAttributes pScheduledEventId_ pStartedEventId_ =-    ActivityTaskFailedEventAttributes'-    { _atfeaReason = Nothing-    , _atfeaDetails = Nothing-    , _atfeaScheduledEventId = pScheduledEventId_-    , _atfeaStartedEventId = pStartedEventId_-    }---- | The reason provided for the failure (if any).-atfeaReason :: Lens' ActivityTaskFailedEventAttributes (Maybe Text)-atfeaReason = lens _atfeaReason (\ s a -> s{_atfeaReason = a});---- | The details of the failure (if any).-atfeaDetails :: Lens' ActivityTaskFailedEventAttributes (Maybe Text)-atfeaDetails = lens _atfeaDetails (\ s a -> s{_atfeaDetails = a});---- | The ID of the 'ActivityTaskScheduled' 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-atfeaScheduledEventId = lens _atfeaScheduledEventId (\ s a -> s{_atfeaScheduledEventId = a});---- | The ID of the 'ActivityTaskStarted' 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-atfeaStartedEventId = lens _atfeaStartedEventId (\ s a -> s{_atfeaStartedEventId = a});--instance FromJSON ActivityTaskFailedEventAttributes-         where-        parseJSON-          = withObject "ActivityTaskFailedEventAttributes"-              (\ x ->-                 ActivityTaskFailedEventAttributes' <$>-                   (x .:? "reason") <*> (x .:? "details") <*>-                     (x .: "scheduledEventId")-                     <*> (x .: "startedEventId"))--instance Hashable ActivityTaskFailedEventAttributes--instance NFData ActivityTaskFailedEventAttributes---- | Provides details of the 'ActivityTaskScheduled' event.------ /See:/ 'activityTaskScheduledEventAttributes' smart constructor.-data ActivityTaskScheduledEventAttributes = ActivityTaskScheduledEventAttributes'-    { _atseaControl                      :: !(Maybe Text)-    , _atseaHeartbeatTimeout             :: !(Maybe Text)-    , _atseaScheduleToCloseTimeout       :: !(Maybe Text)-    , _atseaInput                        :: !(Maybe Text)-    , _atseaTaskPriority                 :: !(Maybe Text)-    , _atseaScheduleToStartTimeout       :: !(Maybe Text)-    , _atseaStartToCloseTimeout          :: !(Maybe Text)-    , _atseaActivityType                 :: !ActivityType-    , _atseaActivityId                   :: !Text-    , _atseaTaskList                     :: !TaskList-    , _atseaDecisionTaskCompletedEventId :: !Integer-    } deriving (Eq,Read,Show,Data,Typeable,Generic)---- | Creates a value of 'ActivityTaskScheduledEventAttributes' with the minimum fields required to make a request.------ Use one of the following lenses to modify other fields as desired:------ * 'atseaControl'------ * 'atseaHeartbeatTimeout'------ * 'atseaScheduleToCloseTimeout'------ * 'atseaInput'------ * 'atseaTaskPriority'------ * 'atseaScheduleToStartTimeout'------ * 'atseaStartToCloseTimeout'------ * 'atseaActivityType'------ * 'atseaActivityId'------ * 'atseaTaskList'------ * 'atseaDecisionTaskCompletedEventId'-activityTaskScheduledEventAttributes-    :: ActivityType -- ^ 'atseaActivityType'-    -> Text -- ^ 'atseaActivityId'-    -> TaskList -- ^ 'atseaTaskList'-    -> Integer -- ^ 'atseaDecisionTaskCompletedEventId'-    -> ActivityTaskScheduledEventAttributes-activityTaskScheduledEventAttributes pActivityType_ pActivityId_ pTaskList_ pDecisionTaskCompletedEventId_ =-    ActivityTaskScheduledEventAttributes'-    { _atseaControl = Nothing-    , _atseaHeartbeatTimeout = Nothing-    , _atseaScheduleToCloseTimeout = Nothing-    , _atseaInput = Nothing-    , _atseaTaskPriority = Nothing-    , _atseaScheduleToStartTimeout = Nothing-    , _atseaStartToCloseTimeout = Nothing-    , _atseaActivityType = pActivityType_-    , _atseaActivityId = pActivityId_-    , _atseaTaskList = pTaskList_-    , _atseaDecisionTaskCompletedEventId = pDecisionTaskCompletedEventId_-    }---- | /Optional./ Data attached to the event that can be used by the decider in subsequent workflow tasks. This data is not sent to the activity.-atseaControl :: Lens' ActivityTaskScheduledEventAttributes (Maybe Text)-atseaControl = lens _atseaControl (\ s a -> s{_atseaControl = a});---- | The maximum time before which the worker processing this task must report progress by calling < RecordActivityTaskHeartbeat>. 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 will be ignored.-atseaHeartbeatTimeout :: Lens' ActivityTaskScheduledEventAttributes (Maybe Text)-atseaHeartbeatTimeout = lens _atseaHeartbeatTimeout (\ s a -> s{_atseaHeartbeatTimeout = a});---- | The maximum amount of time for this activity task.-atseaScheduleToCloseTimeout :: Lens' ActivityTaskScheduledEventAttributes (Maybe Text)-atseaScheduleToCloseTimeout = lens _atseaScheduleToCloseTimeout (\ s a -> s{_atseaScheduleToCloseTimeout = a});---- | The input provided to the activity task.-atseaInput :: Lens' ActivityTaskScheduledEventAttributes (Maybe Text)-atseaInput = lens _atseaInput (\ s a -> s{_atseaInput = a});---- | /Optional./ The priority to assign to the scheduled activity task. If set, this will override any default priority value that was assigned when the activity type was registered.------ Valid values are integers that range from Java\'s 'Integer.MIN_VALUE' (-2147483648) to 'Integer.MAX_VALUE' (2147483647). Higher numbers indicate higher priority.------ For more information about setting task priority, see <http://docs.aws.amazon.com/amazonswf/latest/developerguide/programming-priority.html Setting Task Priority> in the /Amazon Simple Workflow Developer Guide/.-atseaTaskPriority :: Lens' ActivityTaskScheduledEventAttributes (Maybe Text)-atseaTaskPriority = lens _atseaTaskPriority (\ s a -> s{_atseaTaskPriority = a});---- | The maximum amount of time the activity task can wait to be assigned to a worker.-atseaScheduleToStartTimeout :: Lens' ActivityTaskScheduledEventAttributes (Maybe Text)-atseaScheduleToStartTimeout = lens _atseaScheduleToStartTimeout (\ s a -> s{_atseaScheduleToStartTimeout = a});---- | The maximum amount of time a worker may take to process the activity task.-atseaStartToCloseTimeout :: Lens' ActivityTaskScheduledEventAttributes (Maybe Text)-atseaStartToCloseTimeout = lens _atseaStartToCloseTimeout (\ s a -> s{_atseaStartToCloseTimeout = a});---- | The type of the activity task.-atseaActivityType :: Lens' ActivityTaskScheduledEventAttributes ActivityType-atseaActivityType = lens _atseaActivityType (\ s a -> s{_atseaActivityType = a});---- | The unique ID of the activity task.-atseaActivityId :: Lens' ActivityTaskScheduledEventAttributes Text-atseaActivityId = lens _atseaActivityId (\ s a -> s{_atseaActivityId = a});---- | The task list in which the activity task has been scheduled.-atseaTaskList :: Lens' ActivityTaskScheduledEventAttributes TaskList-atseaTaskList = lens _atseaTaskList (\ s a -> s{_atseaTaskList = a});---- | The ID of the 'DecisionTaskCompleted' 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-atseaDecisionTaskCompletedEventId = lens _atseaDecisionTaskCompletedEventId (\ s a -> s{_atseaDecisionTaskCompletedEventId = a});--instance FromJSON-         ActivityTaskScheduledEventAttributes where-        parseJSON-          = withObject "ActivityTaskScheduledEventAttributes"-              (\ x ->-                 ActivityTaskScheduledEventAttributes' <$>-                   (x .:? "control") <*> (x .:? "heartbeatTimeout") <*>-                     (x .:? "scheduleToCloseTimeout")-                     <*> (x .:? "input")-                     <*> (x .:? "taskPriority")-                     <*> (x .:? "scheduleToStartTimeout")-                     <*> (x .:? "startToCloseTimeout")-                     <*> (x .: "activityType")-                     <*> (x .: "activityId")-                     <*> (x .: "taskList")-                     <*> (x .: "decisionTaskCompletedEventId"))--instance Hashable-         ActivityTaskScheduledEventAttributes--instance NFData ActivityTaskScheduledEventAttributes---- | Provides details of the 'ActivityTaskStarted' event.------ /See:/ 'activityTaskStartedEventAttributes' smart constructor.-data ActivityTaskStartedEventAttributes = ActivityTaskStartedEventAttributes'-    { _atseaIdentity         :: !(Maybe Text)-    , _atseaScheduledEventId :: !Integer-    } deriving (Eq,Read,Show,Data,Typeable,Generic)---- | Creates a value of 'ActivityTaskStartedEventAttributes' with the minimum fields required to make a request.------ Use one of the following lenses to modify other fields as desired:------ * 'atseaIdentity'------ * 'atseaScheduledEventId'-activityTaskStartedEventAttributes-    :: Integer -- ^ 'atseaScheduledEventId'-    -> ActivityTaskStartedEventAttributes-activityTaskStartedEventAttributes pScheduledEventId_ =-    ActivityTaskStartedEventAttributes'-    { _atseaIdentity = Nothing-    , _atseaScheduledEventId = pScheduledEventId_-    }---- | 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)-atseaIdentity = lens _atseaIdentity (\ s a -> s{_atseaIdentity = a});---- | The ID of the 'ActivityTaskScheduled' 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-atseaScheduledEventId = lens _atseaScheduledEventId (\ s a -> s{_atseaScheduledEventId = a});--instance FromJSON ActivityTaskStartedEventAttributes-         where-        parseJSON-          = withObject "ActivityTaskStartedEventAttributes"-              (\ x ->-                 ActivityTaskStartedEventAttributes' <$>-                   (x .:? "identity") <*> (x .: "scheduledEventId"))--instance Hashable ActivityTaskStartedEventAttributes--instance NFData ActivityTaskStartedEventAttributes---- | Provides details of the 'ActivityTaskTimedOut' event.------ /See:/ 'activityTaskTimedOutEventAttributes' smart constructor.-data ActivityTaskTimedOutEventAttributes = ActivityTaskTimedOutEventAttributes'-    { _attoeaDetails          :: !(Maybe Text)-    , _attoeaTimeoutType      :: !ActivityTaskTimeoutType-    , _attoeaScheduledEventId :: !Integer-    , _attoeaStartedEventId   :: !Integer-    } deriving (Eq,Read,Show,Data,Typeable,Generic)---- | Creates a value of 'ActivityTaskTimedOutEventAttributes' with the minimum fields required to make a request.------ Use one of the following lenses to modify other fields as desired:------ * 'attoeaDetails'------ * 'attoeaTimeoutType'------ * 'attoeaScheduledEventId'------ * 'attoeaStartedEventId'-activityTaskTimedOutEventAttributes-    :: ActivityTaskTimeoutType -- ^ 'attoeaTimeoutType'-    -> Integer -- ^ 'attoeaScheduledEventId'-    -> Integer -- ^ 'attoeaStartedEventId'-    -> ActivityTaskTimedOutEventAttributes-activityTaskTimedOutEventAttributes pTimeoutType_ pScheduledEventId_ pStartedEventId_ =-    ActivityTaskTimedOutEventAttributes'-    { _attoeaDetails = Nothing-    , _attoeaTimeoutType = pTimeoutType_-    , _attoeaScheduledEventId = pScheduledEventId_-    , _attoeaStartedEventId = pStartedEventId_-    }---- | Contains the content of the 'details' parameter for the last call made by the activity to 'RecordActivityTaskHeartbeat'.-attoeaDetails :: Lens' ActivityTaskTimedOutEventAttributes (Maybe Text)-attoeaDetails = lens _attoeaDetails (\ s a -> s{_attoeaDetails = a});---- | The type of the timeout that caused this event.-attoeaTimeoutType :: Lens' ActivityTaskTimedOutEventAttributes ActivityTaskTimeoutType-attoeaTimeoutType = lens _attoeaTimeoutType (\ s a -> s{_attoeaTimeoutType = a});---- | The ID of the 'ActivityTaskScheduled' 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-attoeaScheduledEventId = lens _attoeaScheduledEventId (\ s a -> s{_attoeaScheduledEventId = a});---- | The ID of the 'ActivityTaskStarted' 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-attoeaStartedEventId = lens _attoeaStartedEventId (\ s a -> s{_attoeaStartedEventId = a});--instance FromJSON ActivityTaskTimedOutEventAttributes-         where-        parseJSON-          = withObject "ActivityTaskTimedOutEventAttributes"-              (\ x ->-                 ActivityTaskTimedOutEventAttributes' <$>-                   (x .:? "details") <*> (x .: "timeoutType") <*>-                     (x .: "scheduledEventId")-                     <*> (x .: "startedEventId"))--instance Hashable ActivityTaskTimedOutEventAttributes--instance NFData ActivityTaskTimedOutEventAttributes---- | Represents an activity type.------ /See:/ 'activityType' smart constructor.-data ActivityType = ActivityType'-    { _atName    :: !Text-    , _atVersion :: !Text-    } deriving (Eq,Read,Show,Data,Typeable,Generic)---- | Creates a value of 'ActivityType' with the minimum fields required to make a request.------ Use one of the following lenses to modify other fields as desired:------ * 'atName'------ * 'atVersion'-activityType-    :: Text -- ^ 'atName'-    -> Text -- ^ 'atVersion'-    -> ActivityType-activityType pName_ pVersion_ =-    ActivityType'-    { _atName = pName_-    , _atVersion = pVersion_-    }---- | The name of this activity.------ The combination of activity type name and version must be unique within a domain.-atName :: Lens' ActivityType Text-atName = lens _atName (\ s a -> s{_atName = a});---- | The version of this activity.------ The combination of activity type name and version must be unique with in a domain.-atVersion :: Lens' ActivityType Text-atVersion = lens _atVersion (\ s a -> s{_atVersion = a});--instance FromJSON ActivityType where-        parseJSON-          = withObject "ActivityType"-              (\ x ->-                 ActivityType' <$> (x .: "name") <*> (x .: "version"))--instance Hashable ActivityType--instance NFData ActivityType--instance ToJSON ActivityType where-        toJSON ActivityType'{..}-          = object-              (catMaybes-                 [Just ("name" .= _atName),-                  Just ("version" .= _atVersion)])---- | Configuration settings registered with the activity type.------ /See:/ 'activityTypeConfiguration' smart constructor.-data ActivityTypeConfiguration = ActivityTypeConfiguration'-    { _atcDefaultTaskScheduleToStartTimeout :: !(Maybe Text)-    , _atcDefaultTaskList                   :: !(Maybe TaskList)-    , _atcDefaultTaskPriority               :: !(Maybe Text)-    , _atcDefaultTaskHeartbeatTimeout       :: !(Maybe Text)-    , _atcDefaultTaskScheduleToCloseTimeout :: !(Maybe Text)-    , _atcDefaultTaskStartToCloseTimeout    :: !(Maybe Text)-    } deriving (Eq,Read,Show,Data,Typeable,Generic)---- | Creates a value of 'ActivityTypeConfiguration' with the minimum fields required to make a request.------ Use one of the following lenses to modify other fields as desired:------ * 'atcDefaultTaskScheduleToStartTimeout'------ * 'atcDefaultTaskList'------ * 'atcDefaultTaskPriority'------ * 'atcDefaultTaskHeartbeatTimeout'------ * 'atcDefaultTaskScheduleToCloseTimeout'------ * 'atcDefaultTaskStartToCloseTimeout'-activityTypeConfiguration-    :: ActivityTypeConfiguration-activityTypeConfiguration =-    ActivityTypeConfiguration'-    { _atcDefaultTaskScheduleToStartTimeout = Nothing-    , _atcDefaultTaskList = Nothing-    , _atcDefaultTaskPriority = Nothing-    , _atcDefaultTaskHeartbeatTimeout = Nothing-    , _atcDefaultTaskScheduleToCloseTimeout = Nothing-    , _atcDefaultTaskStartToCloseTimeout = Nothing-    }---- | /Optional./ 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 'ScheduleActivityTask' decision.------ The duration is specified in seconds; an integer greater than or equal to 0. The value \"NONE\" can be used to specify unlimited duration.-atcDefaultTaskScheduleToStartTimeout :: Lens' ActivityTypeConfiguration (Maybe Text)-atcDefaultTaskScheduleToStartTimeout = lens _atcDefaultTaskScheduleToStartTimeout (\ s a -> s{_atcDefaultTaskScheduleToStartTimeout = a});---- | /Optional./ The default task list specified for this activity type at registration. This default is used if a task list is not provided when a task is scheduled through the 'ScheduleActivityTask' decision. You can override the default registered task list when scheduling a task through the 'ScheduleActivityTask' decision.-atcDefaultTaskList :: Lens' ActivityTypeConfiguration (Maybe TaskList)-atcDefaultTaskList = lens _atcDefaultTaskList (\ s a -> s{_atcDefaultTaskList = a});---- | /Optional./ The default task priority for tasks of this activity type, specified at registration. If not set, then \"0\" will be used as the default priority. This default can be overridden when scheduling an activity task.------ Valid values are integers that range from Java\'s 'Integer.MIN_VALUE' (-2147483648) to 'Integer.MAX_VALUE' (2147483647). Higher numbers indicate higher priority.------ For more information about setting task priority, see <http://docs.aws.amazon.com/amazonswf/latest/developerguide/programming-priority.html Setting Task Priority> in the /Amazon Simple Workflow Developer Guide/.-atcDefaultTaskPriority :: Lens' ActivityTypeConfiguration (Maybe Text)-atcDefaultTaskPriority = lens _atcDefaultTaskPriority (\ s a -> s{_atcDefaultTaskPriority = a});---- | /Optional./ The default maximum time, in seconds, before which a worker processing a task must report progress by calling < RecordActivityTaskHeartbeat>.------ You can specify this value only when /registering/ an activity type. The registered default value can be overridden when you schedule a task through the 'ScheduleActivityTask' decision. If the activity worker subsequently attempts to record a heartbeat or returns a result, the activity worker receives an 'UnknownResource' 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 0. The value \"NONE\" can be used to specify unlimited duration.-atcDefaultTaskHeartbeatTimeout :: Lens' ActivityTypeConfiguration (Maybe Text)-atcDefaultTaskHeartbeatTimeout = lens _atcDefaultTaskHeartbeatTimeout (\ s a -> s{_atcDefaultTaskHeartbeatTimeout = a});---- | /Optional./ 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 'ScheduleActivityTask' decision.------ The duration is specified in seconds; an integer greater than or equal to 0. The value \"NONE\" can be used to specify unlimited duration.-atcDefaultTaskScheduleToCloseTimeout :: Lens' ActivityTypeConfiguration (Maybe Text)-atcDefaultTaskScheduleToCloseTimeout = lens _atcDefaultTaskScheduleToCloseTimeout (\ s a -> s{_atcDefaultTaskScheduleToCloseTimeout = a});---- | /Optional./ 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 'ScheduleActivityTask' decision.------ The duration is specified in seconds; an integer greater than or equal to 0. The value \"NONE\" can be used to specify unlimited duration.-atcDefaultTaskStartToCloseTimeout :: Lens' ActivityTypeConfiguration (Maybe Text)-atcDefaultTaskStartToCloseTimeout = lens _atcDefaultTaskStartToCloseTimeout (\ s a -> s{_atcDefaultTaskStartToCloseTimeout = a});--instance FromJSON ActivityTypeConfiguration where-        parseJSON-          = withObject "ActivityTypeConfiguration"-              (\ x ->-                 ActivityTypeConfiguration' <$>-                   (x .:? "defaultTaskScheduleToStartTimeout") <*>-                     (x .:? "defaultTaskList")-                     <*> (x .:? "defaultTaskPriority")-                     <*> (x .:? "defaultTaskHeartbeatTimeout")-                     <*> (x .:? "defaultTaskScheduleToCloseTimeout")-                     <*> (x .:? "defaultTaskStartToCloseTimeout"))--instance Hashable ActivityTypeConfiguration--instance NFData ActivityTypeConfiguration---- | Detailed information about an activity type.------ /See:/ 'activityTypeInfo' smart constructor.-data ActivityTypeInfo = ActivityTypeInfo'-    { _atiDeprecationDate :: !(Maybe POSIX)-    , _atiDescription     :: !(Maybe Text)-    , _atiActivityType    :: !ActivityType-    , _atiStatus          :: !RegistrationStatus-    , _atiCreationDate    :: !POSIX-    } deriving (Eq,Read,Show,Data,Typeable,Generic)---- | Creates a value of 'ActivityTypeInfo' with the minimum fields required to make a request.------ Use one of the following lenses to modify other fields as desired:------ * 'atiDeprecationDate'------ * 'atiDescription'------ * 'atiActivityType'------ * 'atiStatus'------ * 'atiCreationDate'-activityTypeInfo-    :: ActivityType -- ^ 'atiActivityType'-    -> RegistrationStatus -- ^ 'atiStatus'-    -> UTCTime -- ^ 'atiCreationDate'-    -> ActivityTypeInfo-activityTypeInfo pActivityType_ pStatus_ pCreationDate_ =-    ActivityTypeInfo'-    { _atiDeprecationDate = Nothing-    , _atiDescription = Nothing-    , _atiActivityType = pActivityType_-    , _atiStatus = pStatus_-    , _atiCreationDate = _Time # pCreationDate_-    }---- | If DEPRECATED, the date and time < DeprecateActivityType> was called.-atiDeprecationDate :: Lens' ActivityTypeInfo (Maybe UTCTime)-atiDeprecationDate = lens _atiDeprecationDate (\ s a -> s{_atiDeprecationDate = a}) . mapping _Time;---- | The description of the activity type provided in < RegisterActivityType>.-atiDescription :: Lens' ActivityTypeInfo (Maybe Text)-atiDescription = lens _atiDescription (\ s a -> s{_atiDescription = a});---- | The < ActivityType> type structure representing the activity type.-atiActivityType :: Lens' ActivityTypeInfo ActivityType-atiActivityType = lens _atiActivityType (\ s a -> s{_atiActivityType = a});---- | The current status of the activity type.-atiStatus :: Lens' ActivityTypeInfo RegistrationStatus-atiStatus = lens _atiStatus (\ s a -> s{_atiStatus = a});---- | The date and time this activity type was created through < RegisterActivityType>.-atiCreationDate :: Lens' ActivityTypeInfo UTCTime-atiCreationDate = lens _atiCreationDate (\ s a -> s{_atiCreationDate = a}) . _Time;--instance FromJSON ActivityTypeInfo where-        parseJSON-          = withObject "ActivityTypeInfo"-              (\ x ->-                 ActivityTypeInfo' <$>-                   (x .:? "deprecationDate") <*> (x .:? "description")-                     <*> (x .: "activityType")-                     <*> (x .: "status")-                     <*> (x .: "creationDate"))--instance Hashable ActivityTypeInfo--instance NFData ActivityTypeInfo---- | Provides details of the 'CancelTimer' decision.------ __Access Control__------ You can use IAM policies to control this decision\'s access to Amazon SWF resources as follows:------ -   Use a 'Resource' element with the domain name to limit the action to only specified domains.--- -   Use an 'Action' element to allow or deny permission to call this action.--- -   You cannot use an IAM policy to constrain this action\'s parameters.------ If the caller does not have sufficient permissions to invoke the action, or the parameter values fall outside the specified constraints, the action fails. The associated event attribute\'s __cause__ parameter will be set to OPERATION_NOT_PERMITTED. For details and example IAM policies, see <http://docs.aws.amazon.com/amazonswf/latest/developerguide/swf-dev-iam.html Using IAM to Manage Access to Amazon SWF Workflows>.------ /See:/ 'cancelTimerDecisionAttributes' smart constructor.-newtype CancelTimerDecisionAttributes = CancelTimerDecisionAttributes'-    { _ctdaTimerId :: Text-    } deriving (Eq,Read,Show,Data,Typeable,Generic)---- | Creates a value of 'CancelTimerDecisionAttributes' with the minimum fields required to make a request.------ Use one of the following lenses to modify other fields as desired:------ * 'ctdaTimerId'-cancelTimerDecisionAttributes-    :: Text -- ^ 'ctdaTimerId'-    -> CancelTimerDecisionAttributes-cancelTimerDecisionAttributes pTimerId_ =-    CancelTimerDecisionAttributes'-    { _ctdaTimerId = pTimerId_-    }---- | __Required.__ The unique ID of the timer to cancel.-ctdaTimerId :: Lens' CancelTimerDecisionAttributes Text-ctdaTimerId = lens _ctdaTimerId (\ s a -> s{_ctdaTimerId = a});--instance Hashable CancelTimerDecisionAttributes--instance NFData CancelTimerDecisionAttributes--instance ToJSON CancelTimerDecisionAttributes where-        toJSON CancelTimerDecisionAttributes'{..}-          = object-              (catMaybes [Just ("timerId" .= _ctdaTimerId)])---- | Provides details of the 'CancelTimerFailed' event.------ /See:/ 'cancelTimerFailedEventAttributes' smart constructor.-data CancelTimerFailedEventAttributes = CancelTimerFailedEventAttributes'-    { _ctfeaTimerId                      :: !Text-    , _ctfeaCause                        :: !CancelTimerFailedCause-    , _ctfeaDecisionTaskCompletedEventId :: !Integer-    } deriving (Eq,Read,Show,Data,Typeable,Generic)---- | Creates a value of 'CancelTimerFailedEventAttributes' with the minimum fields required to make a request.------ Use one of the following lenses to modify other fields as desired:------ * 'ctfeaTimerId'------ * 'ctfeaCause'------ * 'ctfeaDecisionTaskCompletedEventId'-cancelTimerFailedEventAttributes-    :: Text -- ^ 'ctfeaTimerId'-    -> CancelTimerFailedCause -- ^ 'ctfeaCause'-    -> Integer -- ^ 'ctfeaDecisionTaskCompletedEventId'-    -> CancelTimerFailedEventAttributes-cancelTimerFailedEventAttributes pTimerId_ pCause_ pDecisionTaskCompletedEventId_ =-    CancelTimerFailedEventAttributes'-    { _ctfeaTimerId = pTimerId_-    , _ctfeaCause = pCause_-    , _ctfeaDecisionTaskCompletedEventId = pDecisionTaskCompletedEventId_-    }---- | The timerId provided in the 'CancelTimer' decision that failed.-ctfeaTimerId :: Lens' CancelTimerFailedEventAttributes Text-ctfeaTimerId = lens _ctfeaTimerId (\ s a -> s{_ctfeaTimerId = a});---- | The cause of the failure. This information is generated by the system and can be useful for diagnostic purposes.------ If __cause__ is set to OPERATION_NOT_PERMITTED, the decision failed because it lacked sufficient permissions. For details and example IAM policies, see <http://docs.aws.amazon.com/amazonswf/latest/developerguide/swf-dev-iam.html Using IAM to Manage Access to Amazon SWF Workflows>.-ctfeaCause :: Lens' CancelTimerFailedEventAttributes CancelTimerFailedCause-ctfeaCause = lens _ctfeaCause (\ s a -> s{_ctfeaCause = a});---- | The ID of the 'DecisionTaskCompleted' event corresponding to the decision task that resulted in the 'CancelTimer' 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-ctfeaDecisionTaskCompletedEventId = lens _ctfeaDecisionTaskCompletedEventId (\ s a -> s{_ctfeaDecisionTaskCompletedEventId = a});--instance FromJSON CancelTimerFailedEventAttributes-         where-        parseJSON-          = withObject "CancelTimerFailedEventAttributes"-              (\ x ->-                 CancelTimerFailedEventAttributes' <$>-                   (x .: "timerId") <*> (x .: "cause") <*>-                     (x .: "decisionTaskCompletedEventId"))--instance Hashable CancelTimerFailedEventAttributes--instance NFData CancelTimerFailedEventAttributes---- | Provides details of the 'CancelWorkflowExecution' decision.------ __Access Control__------ You can use IAM policies to control this decision\'s access to Amazon SWF resources as follows:------ -   Use a 'Resource' element with the domain name to limit the action to only specified domains.--- -   Use an 'Action' element to allow or deny permission to call this action.--- -   You cannot use an IAM policy to constrain this action\'s parameters.------ If the caller does not have sufficient permissions to invoke the action, or the parameter values fall outside the specified constraints, the action fails. The associated event attribute\'s __cause__ parameter will be set to OPERATION_NOT_PERMITTED. For details and example IAM policies, see <http://docs.aws.amazon.com/amazonswf/latest/developerguide/swf-dev-iam.html Using IAM to Manage Access to Amazon SWF Workflows>.------ /See:/ 'cancelWorkflowExecutionDecisionAttributes' smart constructor.-newtype CancelWorkflowExecutionDecisionAttributes = CancelWorkflowExecutionDecisionAttributes'-    { _cwedaDetails :: Maybe Text-    } deriving (Eq,Read,Show,Data,Typeable,Generic)---- | Creates a value of 'CancelWorkflowExecutionDecisionAttributes' with the minimum fields required to make a request.------ Use one of the following lenses to modify other fields as desired:------ * 'cwedaDetails'-cancelWorkflowExecutionDecisionAttributes-    :: CancelWorkflowExecutionDecisionAttributes-cancelWorkflowExecutionDecisionAttributes =-    CancelWorkflowExecutionDecisionAttributes'-    { _cwedaDetails = Nothing-    }---- | /Optional./ details of the cancellation.-cwedaDetails :: Lens' CancelWorkflowExecutionDecisionAttributes (Maybe Text)-cwedaDetails = lens _cwedaDetails (\ s a -> s{_cwedaDetails = a});--instance Hashable-         CancelWorkflowExecutionDecisionAttributes--instance NFData-         CancelWorkflowExecutionDecisionAttributes--instance ToJSON-         CancelWorkflowExecutionDecisionAttributes where-        toJSON CancelWorkflowExecutionDecisionAttributes'{..}-          = object-              (catMaybes [("details" .=) <$> _cwedaDetails])---- | Provides details of the 'CancelWorkflowExecutionFailed' event.------ /See:/ 'cancelWorkflowExecutionFailedEventAttributes' smart constructor.-data CancelWorkflowExecutionFailedEventAttributes = CancelWorkflowExecutionFailedEventAttributes'-    { _cCause                        :: !CancelWorkflowExecutionFailedCause-    , _cDecisionTaskCompletedEventId :: !Integer-    } deriving (Eq,Read,Show,Data,Typeable,Generic)---- | Creates a value of 'CancelWorkflowExecutionFailedEventAttributes' with the minimum fields required to make a request.------ Use one of the following lenses to modify other fields as desired:------ * 'cCause'------ * 'cDecisionTaskCompletedEventId'-cancelWorkflowExecutionFailedEventAttributes-    :: CancelWorkflowExecutionFailedCause -- ^ 'cCause'-    -> Integer -- ^ 'cDecisionTaskCompletedEventId'-    -> CancelWorkflowExecutionFailedEventAttributes-cancelWorkflowExecutionFailedEventAttributes pCause_ pDecisionTaskCompletedEventId_ =-    CancelWorkflowExecutionFailedEventAttributes'-    { _cCause = pCause_-    , _cDecisionTaskCompletedEventId = pDecisionTaskCompletedEventId_-    }---- | The cause of the failure. This information is generated by the system and can be useful for diagnostic purposes.------ If __cause__ is set to OPERATION_NOT_PERMITTED, the decision failed because it lacked sufficient permissions. For details and example IAM policies, see <http://docs.aws.amazon.com/amazonswf/latest/developerguide/swf-dev-iam.html Using IAM to Manage Access to Amazon SWF Workflows>.-cCause :: Lens' CancelWorkflowExecutionFailedEventAttributes CancelWorkflowExecutionFailedCause-cCause = lens _cCause (\ s a -> s{_cCause = a});---- | The ID of the 'DecisionTaskCompleted' event corresponding to the decision task that resulted in the 'CancelWorkflowExecution' 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-cDecisionTaskCompletedEventId = lens _cDecisionTaskCompletedEventId (\ s a -> s{_cDecisionTaskCompletedEventId = a});--instance FromJSON-         CancelWorkflowExecutionFailedEventAttributes where-        parseJSON-          = withObject-              "CancelWorkflowExecutionFailedEventAttributes"-              (\ x ->-                 CancelWorkflowExecutionFailedEventAttributes' <$>-                   (x .: "cause") <*>-                     (x .: "decisionTaskCompletedEventId"))--instance Hashable-         CancelWorkflowExecutionFailedEventAttributes--instance NFData-         CancelWorkflowExecutionFailedEventAttributes---- | Provide details of the 'ChildWorkflowExecutionCanceled' event.------ /See:/ 'childWorkflowExecutionCanceledEventAttributes' smart constructor.-data ChildWorkflowExecutionCanceledEventAttributes = ChildWorkflowExecutionCanceledEventAttributes'-    { _cDetails           :: !(Maybe Text)-    , _cWorkflowExecution :: !WorkflowExecution-    , _cWorkflowType      :: !WorkflowType-    , _cInitiatedEventId  :: !Integer-    , _cStartedEventId    :: !Integer-    } deriving (Eq,Read,Show,Data,Typeable,Generic)---- | Creates a value of 'ChildWorkflowExecutionCanceledEventAttributes' with the minimum fields required to make a request.------ Use one of the following lenses to modify other fields as desired:------ * 'cDetails'------ * 'cWorkflowExecution'------ * 'cWorkflowType'------ * 'cInitiatedEventId'------ * 'cStartedEventId'-childWorkflowExecutionCanceledEventAttributes-    :: WorkflowExecution -- ^ 'cWorkflowExecution'-    -> WorkflowType -- ^ 'cWorkflowType'-    -> Integer -- ^ 'cInitiatedEventId'-    -> Integer -- ^ 'cStartedEventId'-    -> ChildWorkflowExecutionCanceledEventAttributes-childWorkflowExecutionCanceledEventAttributes pWorkflowExecution_ pWorkflowType_ pInitiatedEventId_ pStartedEventId_ =-    ChildWorkflowExecutionCanceledEventAttributes'-    { _cDetails = Nothing-    , _cWorkflowExecution = pWorkflowExecution_-    , _cWorkflowType = pWorkflowType_-    , _cInitiatedEventId = pInitiatedEventId_-    , _cStartedEventId = pStartedEventId_-    }---- | Details of the cancellation (if provided).-cDetails :: Lens' ChildWorkflowExecutionCanceledEventAttributes (Maybe Text)-cDetails = lens _cDetails (\ s a -> s{_cDetails = a});---- | The child workflow execution that was canceled.-cWorkflowExecution :: Lens' ChildWorkflowExecutionCanceledEventAttributes WorkflowExecution-cWorkflowExecution = lens _cWorkflowExecution (\ s a -> s{_cWorkflowExecution = a});---- | The type of the child workflow execution.-cWorkflowType :: Lens' ChildWorkflowExecutionCanceledEventAttributes WorkflowType-cWorkflowType = lens _cWorkflowType (\ s a -> s{_cWorkflowType = a});---- | The ID of the 'StartChildWorkflowExecutionInitiated' event corresponding to the 'StartChildWorkflowExecution' decision 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-cInitiatedEventId = lens _cInitiatedEventId (\ s a -> s{_cInitiatedEventId = a});---- | The ID of the 'ChildWorkflowExecutionStarted' 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-cStartedEventId = lens _cStartedEventId (\ s a -> s{_cStartedEventId = a});--instance FromJSON-         ChildWorkflowExecutionCanceledEventAttributes where-        parseJSON-          = withObject-              "ChildWorkflowExecutionCanceledEventAttributes"-              (\ x ->-                 ChildWorkflowExecutionCanceledEventAttributes' <$>-                   (x .:? "details") <*> (x .: "workflowExecution") <*>-                     (x .: "workflowType")-                     <*> (x .: "initiatedEventId")-                     <*> (x .: "startedEventId"))--instance Hashable-         ChildWorkflowExecutionCanceledEventAttributes--instance NFData-         ChildWorkflowExecutionCanceledEventAttributes---- | Provides details of the 'ChildWorkflowExecutionCompleted' event.------ /See:/ 'childWorkflowExecutionCompletedEventAttributes' smart constructor.-data ChildWorkflowExecutionCompletedEventAttributes = ChildWorkflowExecutionCompletedEventAttributes'-    { _cweceaResult            :: !(Maybe Text)-    , _cweceaWorkflowExecution :: !WorkflowExecution-    , _cweceaWorkflowType      :: !WorkflowType-    , _cweceaInitiatedEventId  :: !Integer-    , _cweceaStartedEventId    :: !Integer-    } deriving (Eq,Read,Show,Data,Typeable,Generic)---- | Creates a value of 'ChildWorkflowExecutionCompletedEventAttributes' with the minimum fields required to make a request.------ Use one of the following lenses to modify other fields as desired:------ * 'cweceaResult'------ * 'cweceaWorkflowExecution'------ * 'cweceaWorkflowType'------ * 'cweceaInitiatedEventId'------ * 'cweceaStartedEventId'-childWorkflowExecutionCompletedEventAttributes-    :: WorkflowExecution -- ^ 'cweceaWorkflowExecution'-    -> WorkflowType -- ^ 'cweceaWorkflowType'-    -> Integer -- ^ 'cweceaInitiatedEventId'-    -> Integer -- ^ 'cweceaStartedEventId'-    -> ChildWorkflowExecutionCompletedEventAttributes-childWorkflowExecutionCompletedEventAttributes pWorkflowExecution_ pWorkflowType_ pInitiatedEventId_ pStartedEventId_ =-    ChildWorkflowExecutionCompletedEventAttributes'-    { _cweceaResult = Nothing-    , _cweceaWorkflowExecution = pWorkflowExecution_-    , _cweceaWorkflowType = pWorkflowType_-    , _cweceaInitiatedEventId = pInitiatedEventId_-    , _cweceaStartedEventId = pStartedEventId_-    }---- | The result of the child workflow execution (if any).-cweceaResult :: Lens' ChildWorkflowExecutionCompletedEventAttributes (Maybe Text)-cweceaResult = lens _cweceaResult (\ s a -> s{_cweceaResult = a});---- | The child workflow execution that was completed.-cweceaWorkflowExecution :: Lens' ChildWorkflowExecutionCompletedEventAttributes WorkflowExecution-cweceaWorkflowExecution = lens _cweceaWorkflowExecution (\ s a -> s{_cweceaWorkflowExecution = a});---- | The type of the child workflow execution.-cweceaWorkflowType :: Lens' ChildWorkflowExecutionCompletedEventAttributes WorkflowType-cweceaWorkflowType = lens _cweceaWorkflowType (\ s a -> s{_cweceaWorkflowType = a});---- | The ID of the 'StartChildWorkflowExecutionInitiated' event corresponding to the 'StartChildWorkflowExecution' decision 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-cweceaInitiatedEventId = lens _cweceaInitiatedEventId (\ s a -> s{_cweceaInitiatedEventId = a});---- | The ID of the 'ChildWorkflowExecutionStarted' 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-cweceaStartedEventId = lens _cweceaStartedEventId (\ s a -> s{_cweceaStartedEventId = a});--instance FromJSON-         ChildWorkflowExecutionCompletedEventAttributes where-        parseJSON-          = withObject-              "ChildWorkflowExecutionCompletedEventAttributes"-              (\ x ->-                 ChildWorkflowExecutionCompletedEventAttributes' <$>-                   (x .:? "result") <*> (x .: "workflowExecution") <*>-                     (x .: "workflowType")-                     <*> (x .: "initiatedEventId")-                     <*> (x .: "startedEventId"))--instance Hashable-         ChildWorkflowExecutionCompletedEventAttributes--instance NFData-         ChildWorkflowExecutionCompletedEventAttributes---- | Provides details of the 'ChildWorkflowExecutionFailed' event.------ /See:/ 'childWorkflowExecutionFailedEventAttributes' smart constructor.-data ChildWorkflowExecutionFailedEventAttributes = ChildWorkflowExecutionFailedEventAttributes'-    { _cwefeaReason            :: !(Maybe Text)-    , _cwefeaDetails           :: !(Maybe Text)-    , _cwefeaWorkflowExecution :: !WorkflowExecution-    , _cwefeaWorkflowType      :: !WorkflowType-    , _cwefeaInitiatedEventId  :: !Integer-    , _cwefeaStartedEventId    :: !Integer-    } deriving (Eq,Read,Show,Data,Typeable,Generic)---- | Creates a value of 'ChildWorkflowExecutionFailedEventAttributes' with the minimum fields required to make a request.------ Use one of the following lenses to modify other fields as desired:------ * 'cwefeaReason'------ * 'cwefeaDetails'------ * 'cwefeaWorkflowExecution'------ * 'cwefeaWorkflowType'------ * 'cwefeaInitiatedEventId'------ * 'cwefeaStartedEventId'-childWorkflowExecutionFailedEventAttributes-    :: WorkflowExecution -- ^ 'cwefeaWorkflowExecution'-    -> WorkflowType -- ^ 'cwefeaWorkflowType'-    -> Integer -- ^ 'cwefeaInitiatedEventId'-    -> Integer -- ^ 'cwefeaStartedEventId'-    -> ChildWorkflowExecutionFailedEventAttributes-childWorkflowExecutionFailedEventAttributes pWorkflowExecution_ pWorkflowType_ pInitiatedEventId_ pStartedEventId_ =-    ChildWorkflowExecutionFailedEventAttributes'-    { _cwefeaReason = Nothing-    , _cwefeaDetails = Nothing-    , _cwefeaWorkflowExecution = pWorkflowExecution_-    , _cwefeaWorkflowType = pWorkflowType_-    , _cwefeaInitiatedEventId = pInitiatedEventId_-    , _cwefeaStartedEventId = pStartedEventId_-    }---- | The reason for the failure (if provided).-cwefeaReason :: Lens' ChildWorkflowExecutionFailedEventAttributes (Maybe Text)-cwefeaReason = lens _cwefeaReason (\ s a -> s{_cwefeaReason = a});---- | The details of the failure (if provided).-cwefeaDetails :: Lens' ChildWorkflowExecutionFailedEventAttributes (Maybe Text)-cwefeaDetails = lens _cwefeaDetails (\ s a -> s{_cwefeaDetails = a});---- | The child workflow execution that failed.-cwefeaWorkflowExecution :: Lens' ChildWorkflowExecutionFailedEventAttributes WorkflowExecution-cwefeaWorkflowExecution = lens _cwefeaWorkflowExecution (\ s a -> s{_cwefeaWorkflowExecution = a});---- | The type of the child workflow execution.-cwefeaWorkflowType :: Lens' ChildWorkflowExecutionFailedEventAttributes WorkflowType-cwefeaWorkflowType = lens _cwefeaWorkflowType (\ s a -> s{_cwefeaWorkflowType = a});---- | The ID of the 'StartChildWorkflowExecutionInitiated' event corresponding to the 'StartChildWorkflowExecution' decision 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-cwefeaInitiatedEventId = lens _cwefeaInitiatedEventId (\ s a -> s{_cwefeaInitiatedEventId = a});---- | The ID of the 'ChildWorkflowExecutionStarted' 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-cwefeaStartedEventId = lens _cwefeaStartedEventId (\ s a -> s{_cwefeaStartedEventId = a});--instance FromJSON-         ChildWorkflowExecutionFailedEventAttributes where-        parseJSON-          = withObject-              "ChildWorkflowExecutionFailedEventAttributes"-              (\ x ->-                 ChildWorkflowExecutionFailedEventAttributes' <$>-                   (x .:? "reason") <*> (x .:? "details") <*>-                     (x .: "workflowExecution")-                     <*> (x .: "workflowType")-                     <*> (x .: "initiatedEventId")-                     <*> (x .: "startedEventId"))--instance Hashable-         ChildWorkflowExecutionFailedEventAttributes--instance NFData-         ChildWorkflowExecutionFailedEventAttributes---- | Provides details of the 'ChildWorkflowExecutionStarted' event.------ /See:/ 'childWorkflowExecutionStartedEventAttributes' smart constructor.-data ChildWorkflowExecutionStartedEventAttributes = ChildWorkflowExecutionStartedEventAttributes'-    { _cweseaWorkflowExecution :: !WorkflowExecution-    , _cweseaWorkflowType      :: !WorkflowType-    , _cweseaInitiatedEventId  :: !Integer-    } deriving (Eq,Read,Show,Data,Typeable,Generic)---- | Creates a value of 'ChildWorkflowExecutionStartedEventAttributes' with the minimum fields required to make a request.------ Use one of the following lenses to modify other fields as desired:------ * 'cweseaWorkflowExecution'------ * 'cweseaWorkflowType'------ * 'cweseaInitiatedEventId'-childWorkflowExecutionStartedEventAttributes-    :: WorkflowExecution -- ^ 'cweseaWorkflowExecution'-    -> WorkflowType -- ^ 'cweseaWorkflowType'-    -> Integer -- ^ 'cweseaInitiatedEventId'-    -> ChildWorkflowExecutionStartedEventAttributes-childWorkflowExecutionStartedEventAttributes pWorkflowExecution_ pWorkflowType_ pInitiatedEventId_ =-    ChildWorkflowExecutionStartedEventAttributes'-    { _cweseaWorkflowExecution = pWorkflowExecution_-    , _cweseaWorkflowType = pWorkflowType_-    , _cweseaInitiatedEventId = pInitiatedEventId_-    }---- | The child workflow execution that was started.-cweseaWorkflowExecution :: Lens' ChildWorkflowExecutionStartedEventAttributes WorkflowExecution-cweseaWorkflowExecution = lens _cweseaWorkflowExecution (\ s a -> s{_cweseaWorkflowExecution = a});---- | The type of the child workflow execution.-cweseaWorkflowType :: Lens' ChildWorkflowExecutionStartedEventAttributes WorkflowType-cweseaWorkflowType = lens _cweseaWorkflowType (\ s a -> s{_cweseaWorkflowType = a});---- | The ID of the 'StartChildWorkflowExecutionInitiated' event corresponding to the 'StartChildWorkflowExecution' decision 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-cweseaInitiatedEventId = lens _cweseaInitiatedEventId (\ s a -> s{_cweseaInitiatedEventId = a});--instance FromJSON-         ChildWorkflowExecutionStartedEventAttributes where-        parseJSON-          = withObject-              "ChildWorkflowExecutionStartedEventAttributes"-              (\ x ->-                 ChildWorkflowExecutionStartedEventAttributes' <$>-                   (x .: "workflowExecution") <*> (x .: "workflowType")-                     <*> (x .: "initiatedEventId"))--instance Hashable-         ChildWorkflowExecutionStartedEventAttributes--instance NFData-         ChildWorkflowExecutionStartedEventAttributes---- | Provides details of the 'ChildWorkflowExecutionTerminated' event.------ /See:/ 'childWorkflowExecutionTerminatedEventAttributes' smart constructor.-data ChildWorkflowExecutionTerminatedEventAttributes = ChildWorkflowExecutionTerminatedEventAttributes'-    { _cweteaWorkflowExecution :: !WorkflowExecution-    , _cweteaWorkflowType      :: !WorkflowType-    , _cweteaInitiatedEventId  :: !Integer-    , _cweteaStartedEventId    :: !Integer-    } deriving (Eq,Read,Show,Data,Typeable,Generic)---- | Creates a value of 'ChildWorkflowExecutionTerminatedEventAttributes' with the minimum fields required to make a request.------ Use one of the following lenses to modify other fields as desired:------ * 'cweteaWorkflowExecution'------ * 'cweteaWorkflowType'------ * 'cweteaInitiatedEventId'------ * 'cweteaStartedEventId'-childWorkflowExecutionTerminatedEventAttributes-    :: WorkflowExecution -- ^ 'cweteaWorkflowExecution'-    -> WorkflowType -- ^ 'cweteaWorkflowType'-    -> Integer -- ^ 'cweteaInitiatedEventId'-    -> Integer -- ^ 'cweteaStartedEventId'-    -> ChildWorkflowExecutionTerminatedEventAttributes-childWorkflowExecutionTerminatedEventAttributes pWorkflowExecution_ pWorkflowType_ pInitiatedEventId_ pStartedEventId_ =-    ChildWorkflowExecutionTerminatedEventAttributes'-    { _cweteaWorkflowExecution = pWorkflowExecution_-    , _cweteaWorkflowType = pWorkflowType_-    , _cweteaInitiatedEventId = pInitiatedEventId_-    , _cweteaStartedEventId = pStartedEventId_-    }---- | The child workflow execution that was terminated.-cweteaWorkflowExecution :: Lens' ChildWorkflowExecutionTerminatedEventAttributes WorkflowExecution-cweteaWorkflowExecution = lens _cweteaWorkflowExecution (\ s a -> s{_cweteaWorkflowExecution = a});---- | The type of the child workflow execution.-cweteaWorkflowType :: Lens' ChildWorkflowExecutionTerminatedEventAttributes WorkflowType-cweteaWorkflowType = lens _cweteaWorkflowType (\ s a -> s{_cweteaWorkflowType = a});---- | The ID of the 'StartChildWorkflowExecutionInitiated' event corresponding to the 'StartChildWorkflowExecution' decision 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-cweteaInitiatedEventId = lens _cweteaInitiatedEventId (\ s a -> s{_cweteaInitiatedEventId = a});---- | The ID of the 'ChildWorkflowExecutionStarted' 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-cweteaStartedEventId = lens _cweteaStartedEventId (\ s a -> s{_cweteaStartedEventId = a});--instance FromJSON-         ChildWorkflowExecutionTerminatedEventAttributes where-        parseJSON-          = withObject-              "ChildWorkflowExecutionTerminatedEventAttributes"-              (\ x ->-                 ChildWorkflowExecutionTerminatedEventAttributes' <$>-                   (x .: "workflowExecution") <*> (x .: "workflowType")-                     <*> (x .: "initiatedEventId")-                     <*> (x .: "startedEventId"))--instance Hashable-         ChildWorkflowExecutionTerminatedEventAttributes--instance NFData-         ChildWorkflowExecutionTerminatedEventAttributes---- | Provides details of the 'ChildWorkflowExecutionTimedOut' event.------ /See:/ 'childWorkflowExecutionTimedOutEventAttributes' smart constructor.-data ChildWorkflowExecutionTimedOutEventAttributes = ChildWorkflowExecutionTimedOutEventAttributes'-    { _cwetoeaWorkflowExecution :: !WorkflowExecution-    , _cwetoeaWorkflowType      :: !WorkflowType-    , _cwetoeaTimeoutType       :: !WorkflowExecutionTimeoutType-    , _cwetoeaInitiatedEventId  :: !Integer-    , _cwetoeaStartedEventId    :: !Integer-    } deriving (Eq,Read,Show,Data,Typeable,Generic)---- | Creates a value of 'ChildWorkflowExecutionTimedOutEventAttributes' with the minimum fields required to make a request.------ Use one of the following lenses to modify other fields as desired:------ * 'cwetoeaWorkflowExecution'------ * 'cwetoeaWorkflowType'------ * 'cwetoeaTimeoutType'------ * 'cwetoeaInitiatedEventId'------ * 'cwetoeaStartedEventId'-childWorkflowExecutionTimedOutEventAttributes-    :: WorkflowExecution -- ^ 'cwetoeaWorkflowExecution'-    -> WorkflowType -- ^ 'cwetoeaWorkflowType'-    -> WorkflowExecutionTimeoutType -- ^ 'cwetoeaTimeoutType'-    -> Integer -- ^ 'cwetoeaInitiatedEventId'-    -> Integer -- ^ 'cwetoeaStartedEventId'-    -> ChildWorkflowExecutionTimedOutEventAttributes-childWorkflowExecutionTimedOutEventAttributes pWorkflowExecution_ pWorkflowType_ pTimeoutType_ pInitiatedEventId_ pStartedEventId_ =-    ChildWorkflowExecutionTimedOutEventAttributes'-    { _cwetoeaWorkflowExecution = pWorkflowExecution_-    , _cwetoeaWorkflowType = pWorkflowType_-    , _cwetoeaTimeoutType = pTimeoutType_-    , _cwetoeaInitiatedEventId = pInitiatedEventId_-    , _cwetoeaStartedEventId = pStartedEventId_-    }---- | The child workflow execution that timed out.-cwetoeaWorkflowExecution :: Lens' ChildWorkflowExecutionTimedOutEventAttributes WorkflowExecution-cwetoeaWorkflowExecution = lens _cwetoeaWorkflowExecution (\ s a -> s{_cwetoeaWorkflowExecution = a});---- | The type of the child workflow execution.-cwetoeaWorkflowType :: Lens' ChildWorkflowExecutionTimedOutEventAttributes WorkflowType-cwetoeaWorkflowType = lens _cwetoeaWorkflowType (\ s a -> s{_cwetoeaWorkflowType = a});---- | The type of the timeout that caused the child workflow execution to time out.-cwetoeaTimeoutType :: Lens' ChildWorkflowExecutionTimedOutEventAttributes WorkflowExecutionTimeoutType-cwetoeaTimeoutType = lens _cwetoeaTimeoutType (\ s a -> s{_cwetoeaTimeoutType = a});---- | The ID of the 'StartChildWorkflowExecutionInitiated' event corresponding to the 'StartChildWorkflowExecution' decision 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-cwetoeaInitiatedEventId = lens _cwetoeaInitiatedEventId (\ s a -> s{_cwetoeaInitiatedEventId = a});---- | The ID of the 'ChildWorkflowExecutionStarted' 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-cwetoeaStartedEventId = lens _cwetoeaStartedEventId (\ s a -> s{_cwetoeaStartedEventId = a});--instance FromJSON-         ChildWorkflowExecutionTimedOutEventAttributes where-        parseJSON-          = withObject-              "ChildWorkflowExecutionTimedOutEventAttributes"-              (\ x ->-                 ChildWorkflowExecutionTimedOutEventAttributes' <$>-                   (x .: "workflowExecution") <*> (x .: "workflowType")-                     <*> (x .: "timeoutType")-                     <*> (x .: "initiatedEventId")-                     <*> (x .: "startedEventId"))--instance Hashable-         ChildWorkflowExecutionTimedOutEventAttributes--instance NFData-         ChildWorkflowExecutionTimedOutEventAttributes---- | Used to filter the closed workflow executions in visibility APIs by their close status.------ /See:/ 'closeStatusFilter' smart constructor.-newtype CloseStatusFilter = CloseStatusFilter'-    { _csfStatus :: CloseStatus-    } deriving (Eq,Read,Show,Data,Typeable,Generic)---- | Creates a value of 'CloseStatusFilter' with the minimum fields required to make a request.------ Use one of the following lenses to modify other fields as desired:------ * 'csfStatus'-closeStatusFilter-    :: CloseStatus -- ^ 'csfStatus'-    -> CloseStatusFilter-closeStatusFilter pStatus_ =-    CloseStatusFilter'-    { _csfStatus = pStatus_-    }---- | __Required.__ 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-csfStatus = lens _csfStatus (\ s a -> s{_csfStatus = a});--instance Hashable CloseStatusFilter--instance NFData CloseStatusFilter--instance ToJSON CloseStatusFilter where-        toJSON CloseStatusFilter'{..}-          = object (catMaybes [Just ("status" .= _csfStatus)])---- | Provides details of the 'CompleteWorkflowExecution' decision.------ __Access Control__------ You can use IAM policies to control this decision\'s access to Amazon SWF resources as follows:------ -   Use a 'Resource' element with the domain name to limit the action to only specified domains.--- -   Use an 'Action' element to allow or deny permission to call this action.--- -   You cannot use an IAM policy to constrain this action\'s parameters.------ If the caller does not have sufficient permissions to invoke the action, or the parameter values fall outside the specified constraints, the action fails. The associated event attribute\'s __cause__ parameter will be set to OPERATION_NOT_PERMITTED. For details and example IAM policies, see <http://docs.aws.amazon.com/amazonswf/latest/developerguide/swf-dev-iam.html Using IAM to Manage Access to Amazon SWF Workflows>.------ /See:/ 'completeWorkflowExecutionDecisionAttributes' smart constructor.-newtype CompleteWorkflowExecutionDecisionAttributes = CompleteWorkflowExecutionDecisionAttributes'-    { _cwedaResult :: Maybe Text-    } deriving (Eq,Read,Show,Data,Typeable,Generic)---- | Creates a value of 'CompleteWorkflowExecutionDecisionAttributes' with the minimum fields required to make a request.------ Use one of the following lenses to modify other fields as desired:------ * 'cwedaResult'-completeWorkflowExecutionDecisionAttributes-    :: CompleteWorkflowExecutionDecisionAttributes-completeWorkflowExecutionDecisionAttributes =-    CompleteWorkflowExecutionDecisionAttributes'-    { _cwedaResult = Nothing-    }---- | The result of the workflow execution. The form of the result is implementation defined.-cwedaResult :: Lens' CompleteWorkflowExecutionDecisionAttributes (Maybe Text)-cwedaResult = lens _cwedaResult (\ s a -> s{_cwedaResult = a});--instance Hashable-         CompleteWorkflowExecutionDecisionAttributes--instance NFData-         CompleteWorkflowExecutionDecisionAttributes--instance ToJSON-         CompleteWorkflowExecutionDecisionAttributes where-        toJSON-          CompleteWorkflowExecutionDecisionAttributes'{..}-          = object (catMaybes [("result" .=) <$> _cwedaResult])---- | Provides details of the 'CompleteWorkflowExecutionFailed' event.------ /See:/ 'completeWorkflowExecutionFailedEventAttributes' smart constructor.-data CompleteWorkflowExecutionFailedEventAttributes = CompleteWorkflowExecutionFailedEventAttributes'-    { _cwefeaCause                        :: !CompleteWorkflowExecutionFailedCause-    , _cwefeaDecisionTaskCompletedEventId :: !Integer-    } deriving (Eq,Read,Show,Data,Typeable,Generic)---- | Creates a value of 'CompleteWorkflowExecutionFailedEventAttributes' with the minimum fields required to make a request.------ Use one of the following lenses to modify other fields as desired:------ * 'cwefeaCause'------ * 'cwefeaDecisionTaskCompletedEventId'-completeWorkflowExecutionFailedEventAttributes-    :: CompleteWorkflowExecutionFailedCause -- ^ 'cwefeaCause'-    -> Integer -- ^ 'cwefeaDecisionTaskCompletedEventId'-    -> CompleteWorkflowExecutionFailedEventAttributes-completeWorkflowExecutionFailedEventAttributes pCause_ pDecisionTaskCompletedEventId_ =-    CompleteWorkflowExecutionFailedEventAttributes'-    { _cwefeaCause = pCause_-    , _cwefeaDecisionTaskCompletedEventId = pDecisionTaskCompletedEventId_-    }---- | The cause of the failure. This information is generated by the system and can be useful for diagnostic purposes.------ If __cause__ is set to OPERATION_NOT_PERMITTED, the decision failed because it lacked sufficient permissions. For details and example IAM policies, see <http://docs.aws.amazon.com/amazonswf/latest/developerguide/swf-dev-iam.html Using IAM to Manage Access to Amazon SWF Workflows>.-cwefeaCause :: Lens' CompleteWorkflowExecutionFailedEventAttributes CompleteWorkflowExecutionFailedCause-cwefeaCause = lens _cwefeaCause (\ s a -> s{_cwefeaCause = a});---- | The ID of the 'DecisionTaskCompleted' event corresponding to the decision task that resulted in the 'CompleteWorkflowExecution' 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-cwefeaDecisionTaskCompletedEventId = lens _cwefeaDecisionTaskCompletedEventId (\ s a -> s{_cwefeaDecisionTaskCompletedEventId = a});--instance FromJSON-         CompleteWorkflowExecutionFailedEventAttributes where-        parseJSON-          = withObject-              "CompleteWorkflowExecutionFailedEventAttributes"-              (\ x ->-                 CompleteWorkflowExecutionFailedEventAttributes' <$>-                   (x .: "cause") <*>-                     (x .: "decisionTaskCompletedEventId"))--instance Hashable-         CompleteWorkflowExecutionFailedEventAttributes--instance NFData-         CompleteWorkflowExecutionFailedEventAttributes---- | Provides details of the 'ContinueAsNewWorkflowExecution' decision.------ __Access Control__------ You can use IAM policies to control this decision\'s access to Amazon SWF resources as follows:------ -   Use a 'Resource' element with the domain name to limit the action to only specified domains.--- -   Use an 'Action' element to allow or deny permission to call this action.--- -   Constrain the following parameters by using a 'Condition' element with the appropriate keys.---     -   'tag': /Optional./. A tag used to identify the workflow execution---     -   'taskList': String constraint. The key is 'swf:taskList.name'.---     -   'workflowType.version': String constraint. The key is 'swf:workflowType.version'.------ If the caller does not have sufficient permissions to invoke the action, or the parameter values fall outside the specified constraints, the action fails. The associated event attribute\'s __cause__ parameter will be set to OPERATION_NOT_PERMITTED. For details and example IAM policies, see <http://docs.aws.amazon.com/amazonswf/latest/developerguide/swf-dev-iam.html Using IAM to Manage Access to Amazon SWF Workflows>.------ /See:/ 'continueAsNewWorkflowExecutionDecisionAttributes' smart constructor.-data ContinueAsNewWorkflowExecutionDecisionAttributes = ContinueAsNewWorkflowExecutionDecisionAttributes'-    { _canwedaTagList                      :: !(Maybe [Text])-    , _canwedaTaskStartToCloseTimeout      :: !(Maybe Text)-    , _canwedaLambdaRole                   :: !(Maybe Text)-    , _canwedaInput                        :: !(Maybe Text)-    , _canwedaWorkflowTypeVersion          :: !(Maybe Text)-    , _canwedaExecutionStartToCloseTimeout :: !(Maybe Text)-    , _canwedaTaskList                     :: !(Maybe TaskList)-    , _canwedaTaskPriority                 :: !(Maybe Text)-    , _canwedaChildPolicy                  :: !(Maybe ChildPolicy)-    } deriving (Eq,Read,Show,Data,Typeable,Generic)---- | Creates a value of 'ContinueAsNewWorkflowExecutionDecisionAttributes' with the minimum fields required to make a request.------ Use one of the following lenses to modify other fields as desired:------ * 'canwedaTagList'------ * 'canwedaTaskStartToCloseTimeout'------ * 'canwedaLambdaRole'------ * 'canwedaInput'------ * 'canwedaWorkflowTypeVersion'------ * 'canwedaExecutionStartToCloseTimeout'------ * 'canwedaTaskList'------ * 'canwedaTaskPriority'------ * 'canwedaChildPolicy'-continueAsNewWorkflowExecutionDecisionAttributes-    :: ContinueAsNewWorkflowExecutionDecisionAttributes-continueAsNewWorkflowExecutionDecisionAttributes =-    ContinueAsNewWorkflowExecutionDecisionAttributes'-    { _canwedaTagList = Nothing-    , _canwedaTaskStartToCloseTimeout = Nothing-    , _canwedaLambdaRole = Nothing-    , _canwedaInput = Nothing-    , _canwedaWorkflowTypeVersion = Nothing-    , _canwedaExecutionStartToCloseTimeout = Nothing-    , _canwedaTaskList = Nothing-    , _canwedaTaskPriority = Nothing-    , _canwedaChildPolicy = Nothing-    }---- | 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 < ListOpenWorkflowExecutions> or < ListClosedWorkflowExecutions> and specifying a < TagFilter>.-canwedaTagList :: Lens' ContinueAsNewWorkflowExecutionDecisionAttributes [Text]-canwedaTagList = lens _canwedaTagList (\ s a -> s{_canwedaTagList = a}) . _Default . _Coerce;---- | Specifies the maximum duration of decision tasks for the new workflow execution. This parameter overrides the 'defaultTaskStartToCloseTimout' specified when registering the workflow type using < RegisterWorkflowType>.------ The duration is specified in seconds; an integer greater than or equal to 0. The value \"NONE\" can be used to specify unlimited duration.------ A task start-to-close timeout for the new workflow execution must be specified either as a default for the workflow type or through this parameter. If neither this parameter is set nor a default task start-to-close timeout was specified at registration time then a fault will be returned.-canwedaTaskStartToCloseTimeout :: Lens' ContinueAsNewWorkflowExecutionDecisionAttributes (Maybe Text)-canwedaTaskStartToCloseTimeout = lens _canwedaTaskStartToCloseTimeout (\ s a -> s{_canwedaTaskStartToCloseTimeout = a});---- | The ARN of an IAM role that authorizes Amazon SWF to invoke AWS Lambda functions.------ In order for this workflow execution to invoke AWS Lambda functions, an appropriate IAM role must be specified either as a default for the workflow type or through this field.-canwedaLambdaRole :: Lens' ContinueAsNewWorkflowExecutionDecisionAttributes (Maybe Text)-canwedaLambdaRole = lens _canwedaLambdaRole (\ s a -> s{_canwedaLambdaRole = a});---- | The input provided to the new workflow execution.-canwedaInput :: Lens' ContinueAsNewWorkflowExecutionDecisionAttributes (Maybe Text)-canwedaInput = lens _canwedaInput (\ s a -> s{_canwedaInput = a});---- | Undocumented member.-canwedaWorkflowTypeVersion :: Lens' ContinueAsNewWorkflowExecutionDecisionAttributes (Maybe Text)-canwedaWorkflowTypeVersion = lens _canwedaWorkflowTypeVersion (\ s a -> s{_canwedaWorkflowTypeVersion = a});---- | If set, specifies 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 0. The value \"NONE\" can be used to specify unlimited duration.------ An execution start-to-close timeout for this workflow execution must be specified either as a default for the workflow type or through this field. If neither this field is set nor a default execution start-to-close timeout was specified at registration time then a fault will be returned.-canwedaExecutionStartToCloseTimeout :: Lens' ContinueAsNewWorkflowExecutionDecisionAttributes (Maybe Text)-canwedaExecutionStartToCloseTimeout = lens _canwedaExecutionStartToCloseTimeout (\ s a -> s{_canwedaExecutionStartToCloseTimeout = a});---- | Undocumented member.-canwedaTaskList :: Lens' ContinueAsNewWorkflowExecutionDecisionAttributes (Maybe TaskList)-canwedaTaskList = lens _canwedaTaskList (\ s a -> s{_canwedaTaskList = a});---- | /Optional./ 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 'Integer.MIN_VALUE' (-2147483648) to 'Integer.MAX_VALUE' (2147483647). Higher numbers indicate higher priority.------ For more information about setting task priority, see <http://docs.aws.amazon.com/amazonswf/latest/developerguide/programming-priority.html Setting Task Priority> in the /Amazon Simple Workflow Developer Guide/.-canwedaTaskPriority :: Lens' ContinueAsNewWorkflowExecutionDecisionAttributes (Maybe Text)-canwedaTaskPriority = lens _canwedaTaskPriority (\ s a -> s{_canwedaTaskPriority = a});---- | If set, specifies the policy to use for the child workflow executions of the new execution if it is terminated by calling the < TerminateWorkflowExecution> action explicitly or due to an expired timeout. This policy overrides the default child policy specified when registering the workflow type using < RegisterWorkflowType>.------ The supported child policies are:------ -   __TERMINATE:__ the child executions will be terminated.--- -   __REQUEST_CANCEL:__ a request to cancel will be attempted for each child execution by recording a 'WorkflowExecutionCancelRequested' event in its history. It is up to the decider to take appropriate actions when it receives an execution history with this event.--- -   __ABANDON:__ no action will be taken. The child executions will continue to run.------ A child policy for this workflow execution must be specified either as a default for the workflow type or through this parameter. If neither this parameter is set nor a default child policy was specified at registration time then a fault will be returned.-canwedaChildPolicy :: Lens' ContinueAsNewWorkflowExecutionDecisionAttributes (Maybe ChildPolicy)-canwedaChildPolicy = lens _canwedaChildPolicy (\ s a -> s{_canwedaChildPolicy = a});--instance Hashable-         ContinueAsNewWorkflowExecutionDecisionAttributes--instance NFData-         ContinueAsNewWorkflowExecutionDecisionAttributes--instance ToJSON-         ContinueAsNewWorkflowExecutionDecisionAttributes-         where-        toJSON-          ContinueAsNewWorkflowExecutionDecisionAttributes'{..}-          = object-              (catMaybes-                 [("tagList" .=) <$> _canwedaTagList,-                  ("taskStartToCloseTimeout" .=) <$>-                    _canwedaTaskStartToCloseTimeout,-                  ("lambdaRole" .=) <$> _canwedaLambdaRole,-                  ("input" .=) <$> _canwedaInput,-                  ("workflowTypeVersion" .=) <$>-                    _canwedaWorkflowTypeVersion,-                  ("executionStartToCloseTimeout" .=) <$>-                    _canwedaExecutionStartToCloseTimeout,-                  ("taskList" .=) <$> _canwedaTaskList,-                  ("taskPriority" .=) <$> _canwedaTaskPriority,-                  ("childPolicy" .=) <$> _canwedaChildPolicy])---- | Provides details of the 'ContinueAsNewWorkflowExecutionFailed' event.------ /See:/ 'continueAsNewWorkflowExecutionFailedEventAttributes' smart constructor.-data ContinueAsNewWorkflowExecutionFailedEventAttributes = ContinueAsNewWorkflowExecutionFailedEventAttributes'-    { _canwefeaCause                        :: !ContinueAsNewWorkflowExecutionFailedCause-    , _canwefeaDecisionTaskCompletedEventId :: !Integer-    } deriving (Eq,Read,Show,Data,Typeable,Generic)---- | Creates a value of 'ContinueAsNewWorkflowExecutionFailedEventAttributes' with the minimum fields required to make a request.------ Use one of the following lenses to modify other fields as desired:------ * 'canwefeaCause'------ * 'canwefeaDecisionTaskCompletedEventId'-continueAsNewWorkflowExecutionFailedEventAttributes-    :: ContinueAsNewWorkflowExecutionFailedCause -- ^ 'canwefeaCause'-    -> Integer -- ^ 'canwefeaDecisionTaskCompletedEventId'-    -> ContinueAsNewWorkflowExecutionFailedEventAttributes-continueAsNewWorkflowExecutionFailedEventAttributes pCause_ pDecisionTaskCompletedEventId_ =-    ContinueAsNewWorkflowExecutionFailedEventAttributes'-    { _canwefeaCause = pCause_-    , _canwefeaDecisionTaskCompletedEventId = pDecisionTaskCompletedEventId_-    }---- | The cause of the failure. This information is generated by the system and can be useful for diagnostic purposes.------ If __cause__ is set to OPERATION_NOT_PERMITTED, the decision failed because it lacked sufficient permissions. For details and example IAM policies, see <http://docs.aws.amazon.com/amazonswf/latest/developerguide/swf-dev-iam.html Using IAM to Manage Access to Amazon SWF Workflows>.-canwefeaCause :: Lens' ContinueAsNewWorkflowExecutionFailedEventAttributes ContinueAsNewWorkflowExecutionFailedCause-canwefeaCause = lens _canwefeaCause (\ s a -> s{_canwefeaCause = a});---- | The ID of the 'DecisionTaskCompleted' event corresponding to the decision task that resulted in the 'ContinueAsNewWorkflowExecution' 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-canwefeaDecisionTaskCompletedEventId = lens _canwefeaDecisionTaskCompletedEventId (\ s a -> s{_canwefeaDecisionTaskCompletedEventId = a});--instance FromJSON-         ContinueAsNewWorkflowExecutionFailedEventAttributes-         where-        parseJSON-          = withObject-              "ContinueAsNewWorkflowExecutionFailedEventAttributes"-              (\ x ->-                 ContinueAsNewWorkflowExecutionFailedEventAttributes'-                   <$>-                   (x .: "cause") <*>-                     (x .: "decisionTaskCompletedEventId"))--instance Hashable-         ContinueAsNewWorkflowExecutionFailedEventAttributes--instance NFData-         ContinueAsNewWorkflowExecutionFailedEventAttributes---- | Specifies a decision made by the decider. A decision can be one of these types:------ -   __CancelTimer__: cancels a previously started timer and records a 'TimerCanceled' event in the history.--- -   __CancelWorkflowExecution__: closes the workflow execution and records a 'WorkflowExecutionCanceled' event in the history.--- -   __CompleteWorkflowExecution__: closes the workflow execution and records a 'WorkflowExecutionCompleted' event in the history .--- -   __ContinueAsNewWorkflowExecution__: 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 'WorkflowExecutionContinuedAsNew' event is recorded in the history.--- -   __FailWorkflowExecution__: closes the workflow execution and records a 'WorkflowExecutionFailed' event in the history.--- -   __RecordMarker__: records a 'MarkerRecorded' event in the history. Markers can be used for adding custom information in the history for instance to let deciders know that they do not need to look at the history beyond the marker event.--- -   __RequestCancelActivityTask__: attempts to cancel a previously scheduled activity task. If the activity task was scheduled but has not been assigned to a worker, then it will be canceled. If the activity task was already assigned to a worker, then the worker will be informed that cancellation has been requested in the response to < RecordActivityTaskHeartbeat>.--- -   __RequestCancelExternalWorkflowExecution__: requests that a request be made to cancel the specified external workflow execution and records a 'RequestCancelExternalWorkflowExecutionInitiated' event in the history.--- -   __ScheduleActivityTask__: schedules an activity task.--- -   __ScheduleLambdaFunction__: schedules a AWS Lambda function.--- -   __SignalExternalWorkflowExecution__: requests a signal to be delivered to the specified external workflow execution and records a 'SignalExternalWorkflowExecutionInitiated' event in the history.--- -   __StartChildWorkflowExecution__: requests that a child workflow execution be started and records a 'StartChildWorkflowExecutionInitiated' event in the history. The child workflow execution is a separate workflow execution with its own history.--- -   __StartTimer__: starts a timer for this workflow execution and records a 'TimerStarted' event in the history. This timer will fire after the specified delay and record a 'TimerFired' event.------ __Access Control__------ If you grant permission to use 'RespondDecisionTaskCompleted', 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 <http://docs.aws.amazon.com/amazonswf/latest/developerguide/swf-dev-iam.html Using IAM to Manage Access to Amazon SWF Workflows>.------ __Decision Failure__------ Decisions can fail for several reasons------ -   The ordering of decisions should follow a logical flow. Some decisions might not make sense in the current context of the workflow execution and will therefore fail.--- -   A limit on your account was reached.--- -   The decision lacks sufficient permissions.------ One of the following events might be added to the history to indicate an error. The event attribute\'s __cause__ parameter indicates the cause. If __cause__ is set to OPERATION_NOT_PERMITTED, the decision failed because it lacked sufficient permissions. For details and example IAM policies, see <http://docs.aws.amazon.com/amazonswf/latest/developerguide/swf-dev-iam.html Using IAM to Manage Access to Amazon SWF Workflows>.------ -   __ScheduleActivityTaskFailed__: a ScheduleActivityTask decision failed. This could happen if the activity type specified in the decision is not registered, is in a deprecated state, or the decision is not properly configured.--- -   __ScheduleLambdaFunctionFailed__: a ScheduleLambdaFunctionFailed decision failed. This could happen if the AWS Lambda function specified in the decision does not exist, or the AWS Lambda service\'s limits are exceeded.--- -   __RequestCancelActivityTaskFailed__: a RequestCancelActivityTask decision failed. This could happen if there is no open activity task with the specified activityId.--- -   __StartTimerFailed__: a StartTimer decision failed. This could happen if there is another open timer with the same timerId.--- -   __CancelTimerFailed__: a CancelTimer decision failed. This could happen if there is no open timer with the specified timerId.--- -   __StartChildWorkflowExecutionFailed__: a StartChildWorkflowExecution decision failed. This could happen if the workflow type specified is not registered, is deprecated, or the decision is not properly configured.--- -   __SignalExternalWorkflowExecutionFailed__: a SignalExternalWorkflowExecution decision failed. This could happen if the 'workflowID' specified in the decision was incorrect.--- -   __RequestCancelExternalWorkflowExecutionFailed__: a RequestCancelExternalWorkflowExecution decision failed. This could happen if the 'workflowID' specified in the decision was incorrect.--- -   __CancelWorkflowExecutionFailed__: a CancelWorkflowExecution decision failed. This could happen if there is an unhandled decision task pending in the workflow execution.--- -   __CompleteWorkflowExecutionFailed__: a CompleteWorkflowExecution decision failed. This could happen if there is an unhandled decision task pending in the workflow execution.--- -   __ContinueAsNewWorkflowExecutionFailed__: a ContinueAsNewWorkflowExecution 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.--- -   __FailWorkflowExecutionFailed__: a FailWorkflowExecution decision failed. This could happen if there is an unhandled decision task pending in the workflow execution.------ 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.------ A workflow execution may be closed by the decider by returning one of the following decisions when completing a decision task: 'CompleteWorkflowExecution', 'FailWorkflowExecution', 'CancelWorkflowExecution' and 'ContinueAsNewWorkflowExecution'. An UnhandledDecision fault will be returned if a workflow closing decision is specified and a signal or activity event had been added to the history while the decision task was being performed by the decider. Unlike the above situations which are logic issues, this fault is always possible because of race conditions in a distributed system. The right action here is to call < RespondDecisionTaskCompleted> without any decisions. This would result in another decision task with these new events included in the history. The decider should handle the new events and may decide to close the workflow execution.------ __How to code a decision__------ 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:------ -   < ScheduleActivityTaskDecisionAttributes>--- -   < ScheduleLambdaFunctionDecisionAttributes>--- -   < RequestCancelActivityTaskDecisionAttributes>--- -   < CompleteWorkflowExecutionDecisionAttributes>--- -   < FailWorkflowExecutionDecisionAttributes>--- -   < CancelWorkflowExecutionDecisionAttributes>--- -   < ContinueAsNewWorkflowExecutionDecisionAttributes>--- -   < RecordMarkerDecisionAttributes>--- -   < StartTimerDecisionAttributes>--- -   < CancelTimerDecisionAttributes>--- -   < SignalExternalWorkflowExecutionDecisionAttributes>--- -   < RequestCancelExternalWorkflowExecutionDecisionAttributes>--- -   < StartChildWorkflowExecutionDecisionAttributes>------ /See:/ 'decision' smart constructor.-data Decision = Decision'-    { _dRequestCancelExternalWorkflowExecutionDecisionAttributes :: !(Maybe RequestCancelExternalWorkflowExecutionDecisionAttributes)-    , _dScheduleActivityTaskDecisionAttributes                   :: !(Maybe ScheduleActivityTaskDecisionAttributes)-    , _dSignalExternalWorkflowExecutionDecisionAttributes        :: !(Maybe SignalExternalWorkflowExecutionDecisionAttributes)-    , _dStartTimerDecisionAttributes                             :: !(Maybe StartTimerDecisionAttributes)-    , _dRecordMarkerDecisionAttributes                           :: !(Maybe RecordMarkerDecisionAttributes)-    , _dFailWorkflowExecutionDecisionAttributes                  :: !(Maybe FailWorkflowExecutionDecisionAttributes)-    , _dStartChildWorkflowExecutionDecisionAttributes            :: !(Maybe StartChildWorkflowExecutionDecisionAttributes)-    , _dCompleteWorkflowExecutionDecisionAttributes              :: !(Maybe CompleteWorkflowExecutionDecisionAttributes)-    , _dScheduleLambdaFunctionDecisionAttributes                 :: !(Maybe ScheduleLambdaFunctionDecisionAttributes)-    , _dRequestCancelActivityTaskDecisionAttributes              :: !(Maybe RequestCancelActivityTaskDecisionAttributes)-    , _dCancelWorkflowExecutionDecisionAttributes                :: !(Maybe CancelWorkflowExecutionDecisionAttributes)-    , _dCancelTimerDecisionAttributes                            :: !(Maybe CancelTimerDecisionAttributes)-    , _dContinueAsNewWorkflowExecutionDecisionAttributes         :: !(Maybe ContinueAsNewWorkflowExecutionDecisionAttributes)-    , _dDecisionType                                             :: !DecisionType-    } deriving (Eq,Read,Show,Data,Typeable,Generic)---- | Creates a value of 'Decision' with the minimum fields required to make a request.------ Use one of the following lenses to modify other fields as desired:------ * 'dRequestCancelExternalWorkflowExecutionDecisionAttributes'------ * 'dScheduleActivityTaskDecisionAttributes'------ * 'dSignalExternalWorkflowExecutionDecisionAttributes'------ * 'dStartTimerDecisionAttributes'------ * 'dRecordMarkerDecisionAttributes'------ * 'dFailWorkflowExecutionDecisionAttributes'------ * 'dStartChildWorkflowExecutionDecisionAttributes'------ * 'dCompleteWorkflowExecutionDecisionAttributes'------ * 'dScheduleLambdaFunctionDecisionAttributes'------ * 'dRequestCancelActivityTaskDecisionAttributes'------ * 'dCancelWorkflowExecutionDecisionAttributes'------ * 'dCancelTimerDecisionAttributes'------ * 'dContinueAsNewWorkflowExecutionDecisionAttributes'------ * 'dDecisionType'-decision-    :: DecisionType -- ^ 'dDecisionType'-    -> Decision-decision pDecisionType_ =-    Decision'-    { _dRequestCancelExternalWorkflowExecutionDecisionAttributes = Nothing-    , _dScheduleActivityTaskDecisionAttributes = Nothing-    , _dSignalExternalWorkflowExecutionDecisionAttributes = Nothing-    , _dStartTimerDecisionAttributes = Nothing-    , _dRecordMarkerDecisionAttributes = Nothing-    , _dFailWorkflowExecutionDecisionAttributes = Nothing-    , _dStartChildWorkflowExecutionDecisionAttributes = Nothing-    , _dCompleteWorkflowExecutionDecisionAttributes = Nothing-    , _dScheduleLambdaFunctionDecisionAttributes = Nothing-    , _dRequestCancelActivityTaskDecisionAttributes = Nothing-    , _dCancelWorkflowExecutionDecisionAttributes = Nothing-    , _dCancelTimerDecisionAttributes = Nothing-    , _dContinueAsNewWorkflowExecutionDecisionAttributes = Nothing-    , _dDecisionType = pDecisionType_-    }---- | Provides details of the 'RequestCancelExternalWorkflowExecution' decision. It is not set for other decision types.-dRequestCancelExternalWorkflowExecutionDecisionAttributes :: Lens' Decision (Maybe RequestCancelExternalWorkflowExecutionDecisionAttributes)-dRequestCancelExternalWorkflowExecutionDecisionAttributes = lens _dRequestCancelExternalWorkflowExecutionDecisionAttributes (\ s a -> s{_dRequestCancelExternalWorkflowExecutionDecisionAttributes = a});---- | Provides details of the 'ScheduleActivityTask' decision. It is not set for other decision types.-dScheduleActivityTaskDecisionAttributes :: Lens' Decision (Maybe ScheduleActivityTaskDecisionAttributes)-dScheduleActivityTaskDecisionAttributes = lens _dScheduleActivityTaskDecisionAttributes (\ s a -> s{_dScheduleActivityTaskDecisionAttributes = a});---- | Provides details of the 'SignalExternalWorkflowExecution' decision. It is not set for other decision types.-dSignalExternalWorkflowExecutionDecisionAttributes :: Lens' Decision (Maybe SignalExternalWorkflowExecutionDecisionAttributes)-dSignalExternalWorkflowExecutionDecisionAttributes = lens _dSignalExternalWorkflowExecutionDecisionAttributes (\ s a -> s{_dSignalExternalWorkflowExecutionDecisionAttributes = a});---- | Provides details of the 'StartTimer' decision. It is not set for other decision types.-dStartTimerDecisionAttributes :: Lens' Decision (Maybe StartTimerDecisionAttributes)-dStartTimerDecisionAttributes = lens _dStartTimerDecisionAttributes (\ s a -> s{_dStartTimerDecisionAttributes = a});---- | Provides details of the 'RecordMarker' decision. It is not set for other decision types.-dRecordMarkerDecisionAttributes :: Lens' Decision (Maybe RecordMarkerDecisionAttributes)-dRecordMarkerDecisionAttributes = lens _dRecordMarkerDecisionAttributes (\ s a -> s{_dRecordMarkerDecisionAttributes = a});---- | Provides details of the 'FailWorkflowExecution' decision. It is not set for other decision types.-dFailWorkflowExecutionDecisionAttributes :: Lens' Decision (Maybe FailWorkflowExecutionDecisionAttributes)-dFailWorkflowExecutionDecisionAttributes = lens _dFailWorkflowExecutionDecisionAttributes (\ s a -> s{_dFailWorkflowExecutionDecisionAttributes = a});---- | Provides details of the 'StartChildWorkflowExecution' decision. It is not set for other decision types.-dStartChildWorkflowExecutionDecisionAttributes :: Lens' Decision (Maybe StartChildWorkflowExecutionDecisionAttributes)-dStartChildWorkflowExecutionDecisionAttributes = lens _dStartChildWorkflowExecutionDecisionAttributes (\ s a -> s{_dStartChildWorkflowExecutionDecisionAttributes = a});---- | Provides details of the 'CompleteWorkflowExecution' decision. It is not set for other decision types.-dCompleteWorkflowExecutionDecisionAttributes :: Lens' Decision (Maybe CompleteWorkflowExecutionDecisionAttributes)-dCompleteWorkflowExecutionDecisionAttributes = lens _dCompleteWorkflowExecutionDecisionAttributes (\ s a -> s{_dCompleteWorkflowExecutionDecisionAttributes = a});---- | Undocumented member.-dScheduleLambdaFunctionDecisionAttributes :: Lens' Decision (Maybe ScheduleLambdaFunctionDecisionAttributes)-dScheduleLambdaFunctionDecisionAttributes = lens _dScheduleLambdaFunctionDecisionAttributes (\ s a -> s{_dScheduleLambdaFunctionDecisionAttributes = a});---- | Provides details of the 'RequestCancelActivityTask' decision. It is not set for other decision types.-dRequestCancelActivityTaskDecisionAttributes :: Lens' Decision (Maybe RequestCancelActivityTaskDecisionAttributes)-dRequestCancelActivityTaskDecisionAttributes = lens _dRequestCancelActivityTaskDecisionAttributes (\ s a -> s{_dRequestCancelActivityTaskDecisionAttributes = a});---- | Provides details of the 'CancelWorkflowExecution' decision. It is not set for other decision types.-dCancelWorkflowExecutionDecisionAttributes :: Lens' Decision (Maybe CancelWorkflowExecutionDecisionAttributes)-dCancelWorkflowExecutionDecisionAttributes = lens _dCancelWorkflowExecutionDecisionAttributes (\ s a -> s{_dCancelWorkflowExecutionDecisionAttributes = a});---- | Provides details of the 'CancelTimer' decision. It is not set for other decision types.-dCancelTimerDecisionAttributes :: Lens' Decision (Maybe CancelTimerDecisionAttributes)-dCancelTimerDecisionAttributes = lens _dCancelTimerDecisionAttributes (\ s a -> s{_dCancelTimerDecisionAttributes = a});---- | Provides details of the 'ContinueAsNewWorkflowExecution' decision. It is not set for other decision types.-dContinueAsNewWorkflowExecutionDecisionAttributes :: Lens' Decision (Maybe ContinueAsNewWorkflowExecutionDecisionAttributes)-dContinueAsNewWorkflowExecutionDecisionAttributes = lens _dContinueAsNewWorkflowExecutionDecisionAttributes (\ s a -> s{_dContinueAsNewWorkflowExecutionDecisionAttributes = a});---- | Specifies the type of the decision.-dDecisionType :: Lens' Decision DecisionType-dDecisionType = lens _dDecisionType (\ s a -> s{_dDecisionType = a});--instance Hashable Decision--instance NFData Decision--instance ToJSON Decision where-        toJSON Decision'{..}-          = object-              (catMaybes-                 [("requestCancelExternalWorkflowExecutionDecisionAttributes"-                     .=)-                    <$>-                    _dRequestCancelExternalWorkflowExecutionDecisionAttributes,-                  ("scheduleActivityTaskDecisionAttributes" .=) <$>-                    _dScheduleActivityTaskDecisionAttributes,-                  ("signalExternalWorkflowExecutionDecisionAttributes"-                     .=)-                    <$>-                    _dSignalExternalWorkflowExecutionDecisionAttributes,-                  ("startTimerDecisionAttributes" .=) <$>-                    _dStartTimerDecisionAttributes,-                  ("recordMarkerDecisionAttributes" .=) <$>-                    _dRecordMarkerDecisionAttributes,-                  ("failWorkflowExecutionDecisionAttributes" .=) <$>-                    _dFailWorkflowExecutionDecisionAttributes,-                  ("startChildWorkflowExecutionDecisionAttributes" .=)-                    <$> _dStartChildWorkflowExecutionDecisionAttributes,-                  ("completeWorkflowExecutionDecisionAttributes" .=)-                    <$> _dCompleteWorkflowExecutionDecisionAttributes,-                  ("scheduleLambdaFunctionDecisionAttributes" .=) <$>-                    _dScheduleLambdaFunctionDecisionAttributes,-                  ("requestCancelActivityTaskDecisionAttributes" .=)-                    <$> _dRequestCancelActivityTaskDecisionAttributes,-                  ("cancelWorkflowExecutionDecisionAttributes" .=) <$>-                    _dCancelWorkflowExecutionDecisionAttributes,-                  ("cancelTimerDecisionAttributes" .=) <$>-                    _dCancelTimerDecisionAttributes,-                  ("continueAsNewWorkflowExecutionDecisionAttributes"-                     .=)-                    <$>-                    _dContinueAsNewWorkflowExecutionDecisionAttributes,-                  Just ("decisionType" .= _dDecisionType)])---- | Provides details of the 'DecisionTaskCompleted' event.------ /See:/ 'decisionTaskCompletedEventAttributes' smart constructor.-data DecisionTaskCompletedEventAttributes = DecisionTaskCompletedEventAttributes'-    { _dtceaExecutionContext :: !(Maybe Text)-    , _dtceaScheduledEventId :: !Integer-    , _dtceaStartedEventId   :: !Integer-    } deriving (Eq,Read,Show,Data,Typeable,Generic)---- | Creates a value of 'DecisionTaskCompletedEventAttributes' with the minimum fields required to make a request.------ Use one of the following lenses to modify other fields as desired:------ * 'dtceaExecutionContext'------ * 'dtceaScheduledEventId'------ * 'dtceaStartedEventId'-decisionTaskCompletedEventAttributes-    :: Integer -- ^ 'dtceaScheduledEventId'-    -> Integer -- ^ 'dtceaStartedEventId'-    -> DecisionTaskCompletedEventAttributes-decisionTaskCompletedEventAttributes pScheduledEventId_ pStartedEventId_ =-    DecisionTaskCompletedEventAttributes'-    { _dtceaExecutionContext = Nothing-    , _dtceaScheduledEventId = pScheduledEventId_-    , _dtceaStartedEventId = pStartedEventId_-    }---- | User defined context for the workflow execution.-dtceaExecutionContext :: Lens' DecisionTaskCompletedEventAttributes (Maybe Text)-dtceaExecutionContext = lens _dtceaExecutionContext (\ s a -> s{_dtceaExecutionContext = a});---- | The ID of the 'DecisionTaskScheduled' 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-dtceaScheduledEventId = lens _dtceaScheduledEventId (\ s a -> s{_dtceaScheduledEventId = a});---- | The ID of the 'DecisionTaskStarted' 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-dtceaStartedEventId = lens _dtceaStartedEventId (\ s a -> s{_dtceaStartedEventId = a});--instance FromJSON-         DecisionTaskCompletedEventAttributes where-        parseJSON-          = withObject "DecisionTaskCompletedEventAttributes"-              (\ x ->-                 DecisionTaskCompletedEventAttributes' <$>-                   (x .:? "executionContext") <*>-                     (x .: "scheduledEventId")-                     <*> (x .: "startedEventId"))--instance Hashable-         DecisionTaskCompletedEventAttributes--instance NFData DecisionTaskCompletedEventAttributes---- | Provides details about the 'DecisionTaskScheduled' event.------ /See:/ 'decisionTaskScheduledEventAttributes' smart constructor.-data DecisionTaskScheduledEventAttributes = DecisionTaskScheduledEventAttributes'-    { _dtseaTaskPriority        :: !(Maybe Text)-    , _dtseaStartToCloseTimeout :: !(Maybe Text)-    , _dtseaTaskList            :: !TaskList-    } deriving (Eq,Read,Show,Data,Typeable,Generic)---- | Creates a value of 'DecisionTaskScheduledEventAttributes' with the minimum fields required to make a request.------ Use one of the following lenses to modify other fields as desired:------ * 'dtseaTaskPriority'------ * 'dtseaStartToCloseTimeout'------ * 'dtseaTaskList'-decisionTaskScheduledEventAttributes-    :: TaskList -- ^ 'dtseaTaskList'-    -> DecisionTaskScheduledEventAttributes-decisionTaskScheduledEventAttributes pTaskList_ =-    DecisionTaskScheduledEventAttributes'-    { _dtseaTaskPriority = Nothing-    , _dtseaStartToCloseTimeout = Nothing-    , _dtseaTaskList = pTaskList_-    }---- | /Optional./ A task priority that, if set, specifies the priority for this decision task. Valid values are integers that range from Java\'s 'Integer.MIN_VALUE' (-2147483648) to 'Integer.MAX_VALUE' (2147483647). Higher numbers indicate higher priority.------ For more information about setting task priority, see <http://docs.aws.amazon.com/amazonswf/latest/developerguide/programming-priority.html Setting Task Priority> in the /Amazon Simple Workflow Developer Guide/.-dtseaTaskPriority :: Lens' DecisionTaskScheduledEventAttributes (Maybe Text)-dtseaTaskPriority = lens _dtseaTaskPriority (\ s a -> s{_dtseaTaskPriority = a});---- | The maximum duration for this decision task. The task is considered timed out if it does not completed within this duration.------ The duration is specified in seconds; an integer greater than or equal to 0. The value \"NONE\" can be used to specify unlimited duration.-dtseaStartToCloseTimeout :: Lens' DecisionTaskScheduledEventAttributes (Maybe Text)-dtseaStartToCloseTimeout = lens _dtseaStartToCloseTimeout (\ s a -> s{_dtseaStartToCloseTimeout = a});---- | The name of the task list in which the decision task was scheduled.-dtseaTaskList :: Lens' DecisionTaskScheduledEventAttributes TaskList-dtseaTaskList = lens _dtseaTaskList (\ s a -> s{_dtseaTaskList = a});--instance FromJSON-         DecisionTaskScheduledEventAttributes where-        parseJSON-          = withObject "DecisionTaskScheduledEventAttributes"-              (\ x ->-                 DecisionTaskScheduledEventAttributes' <$>-                   (x .:? "taskPriority") <*>-                     (x .:? "startToCloseTimeout")-                     <*> (x .: "taskList"))--instance Hashable-         DecisionTaskScheduledEventAttributes--instance NFData DecisionTaskScheduledEventAttributes---- | Provides details of the 'DecisionTaskStarted' event.------ /See:/ 'decisionTaskStartedEventAttributes' smart constructor.-data DecisionTaskStartedEventAttributes = DecisionTaskStartedEventAttributes'-    { _dtseaIdentity         :: !(Maybe Text)-    , _dtseaScheduledEventId :: !Integer-    } deriving (Eq,Read,Show,Data,Typeable,Generic)---- | Creates a value of 'DecisionTaskStartedEventAttributes' with the minimum fields required to make a request.------ Use one of the following lenses to modify other fields as desired:------ * 'dtseaIdentity'------ * 'dtseaScheduledEventId'-decisionTaskStartedEventAttributes-    :: Integer -- ^ 'dtseaScheduledEventId'-    -> DecisionTaskStartedEventAttributes-decisionTaskStartedEventAttributes pScheduledEventId_ =-    DecisionTaskStartedEventAttributes'-    { _dtseaIdentity = Nothing-    , _dtseaScheduledEventId = pScheduledEventId_-    }---- | 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)-dtseaIdentity = lens _dtseaIdentity (\ s a -> s{_dtseaIdentity = a});---- | The ID of the 'DecisionTaskScheduled' 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-dtseaScheduledEventId = lens _dtseaScheduledEventId (\ s a -> s{_dtseaScheduledEventId = a});--instance FromJSON DecisionTaskStartedEventAttributes-         where-        parseJSON-          = withObject "DecisionTaskStartedEventAttributes"-              (\ x ->-                 DecisionTaskStartedEventAttributes' <$>-                   (x .:? "identity") <*> (x .: "scheduledEventId"))--instance Hashable DecisionTaskStartedEventAttributes--instance NFData DecisionTaskStartedEventAttributes---- | Provides details of the 'DecisionTaskTimedOut' event.------ /See:/ 'decisionTaskTimedOutEventAttributes' smart constructor.-data DecisionTaskTimedOutEventAttributes = DecisionTaskTimedOutEventAttributes'-    { _dttoeaTimeoutType      :: !DecisionTaskTimeoutType-    , _dttoeaScheduledEventId :: !Integer-    , _dttoeaStartedEventId   :: !Integer-    } deriving (Eq,Read,Show,Data,Typeable,Generic)---- | Creates a value of 'DecisionTaskTimedOutEventAttributes' with the minimum fields required to make a request.------ Use one of the following lenses to modify other fields as desired:------ * 'dttoeaTimeoutType'------ * 'dttoeaScheduledEventId'------ * 'dttoeaStartedEventId'-decisionTaskTimedOutEventAttributes-    :: DecisionTaskTimeoutType -- ^ 'dttoeaTimeoutType'-    -> Integer -- ^ 'dttoeaScheduledEventId'-    -> Integer -- ^ 'dttoeaStartedEventId'-    -> DecisionTaskTimedOutEventAttributes-decisionTaskTimedOutEventAttributes pTimeoutType_ pScheduledEventId_ pStartedEventId_ =-    DecisionTaskTimedOutEventAttributes'-    { _dttoeaTimeoutType = pTimeoutType_-    , _dttoeaScheduledEventId = pScheduledEventId_-    , _dttoeaStartedEventId = pStartedEventId_-    }---- | The type of timeout that expired before the decision task could be completed.-dttoeaTimeoutType :: Lens' DecisionTaskTimedOutEventAttributes DecisionTaskTimeoutType-dttoeaTimeoutType = lens _dttoeaTimeoutType (\ s a -> s{_dttoeaTimeoutType = a});---- | The ID of the 'DecisionTaskScheduled' 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-dttoeaScheduledEventId = lens _dttoeaScheduledEventId (\ s a -> s{_dttoeaScheduledEventId = a});---- | The ID of the 'DecisionTaskStarted' 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-dttoeaStartedEventId = lens _dttoeaStartedEventId (\ s a -> s{_dttoeaStartedEventId = a});--instance FromJSON DecisionTaskTimedOutEventAttributes-         where-        parseJSON-          = withObject "DecisionTaskTimedOutEventAttributes"-              (\ x ->-                 DecisionTaskTimedOutEventAttributes' <$>-                   (x .: "timeoutType") <*> (x .: "scheduledEventId")-                     <*> (x .: "startedEventId"))--instance Hashable DecisionTaskTimedOutEventAttributes--instance NFData DecisionTaskTimedOutEventAttributes---- | Contains the configuration settings of a domain.------ /See:/ 'domainConfiguration' smart constructor.-newtype DomainConfiguration = DomainConfiguration'-    { _dcWorkflowExecutionRetentionPeriodInDays :: Text-    } deriving (Eq,Read,Show,Data,Typeable,Generic)---- | Creates a value of 'DomainConfiguration' with the minimum fields required to make a request.------ Use one of the following lenses to modify other fields as desired:------ * 'dcWorkflowExecutionRetentionPeriodInDays'-domainConfiguration-    :: Text -- ^ 'dcWorkflowExecutionRetentionPeriodInDays'-    -> DomainConfiguration-domainConfiguration pWorkflowExecutionRetentionPeriodInDays_ =-    DomainConfiguration'-    { _dcWorkflowExecutionRetentionPeriodInDays = pWorkflowExecutionRetentionPeriodInDays_-    }---- | The retention period for workflow executions in this domain.-dcWorkflowExecutionRetentionPeriodInDays :: Lens' DomainConfiguration Text-dcWorkflowExecutionRetentionPeriodInDays = lens _dcWorkflowExecutionRetentionPeriodInDays (\ s a -> s{_dcWorkflowExecutionRetentionPeriodInDays = a});--instance FromJSON DomainConfiguration where-        parseJSON-          = withObject "DomainConfiguration"-              (\ x ->-                 DomainConfiguration' <$>-                   (x .: "workflowExecutionRetentionPeriodInDays"))--instance Hashable DomainConfiguration--instance NFData DomainConfiguration---- | Contains general information about a domain.------ /See:/ 'domainInfo' smart constructor.-data DomainInfo = DomainInfo'-    { _diDescription :: !(Maybe Text)-    , _diName        :: !Text-    , _diStatus      :: !RegistrationStatus-    } deriving (Eq,Read,Show,Data,Typeable,Generic)---- | Creates a value of 'DomainInfo' with the minimum fields required to make a request.------ Use one of the following lenses to modify other fields as desired:------ * 'diDescription'------ * 'diName'------ * 'diStatus'-domainInfo-    :: Text -- ^ 'diName'-    -> RegistrationStatus -- ^ 'diStatus'-    -> DomainInfo-domainInfo pName_ pStatus_ =-    DomainInfo'-    { _diDescription = Nothing-    , _diName = pName_-    , _diStatus = pStatus_-    }---- | The description of the domain provided through < RegisterDomain>.-diDescription :: Lens' DomainInfo (Maybe Text)-diDescription = lens _diDescription (\ s a -> s{_diDescription = a});---- | The name of the domain. This name is unique within the account.-diName :: Lens' DomainInfo Text-diName = lens _diName (\ s a -> s{_diName = a});---- | The status of the domain:------ -   __REGISTERED__: The domain is properly registered and available. You can use this domain for registering types and creating new workflow executions.--- -   __DEPRECATED__: The domain was deprecated using < DeprecateDomain>, but is still in use. You should not create new workflow executions in this domain.-diStatus :: Lens' DomainInfo RegistrationStatus-diStatus = lens _diStatus (\ s a -> s{_diStatus = a});--instance FromJSON DomainInfo where-        parseJSON-          = withObject "DomainInfo"-              (\ x ->-                 DomainInfo' <$>-                   (x .:? "description") <*> (x .: "name") <*>-                     (x .: "status"))--instance Hashable DomainInfo--instance NFData DomainInfo---- | 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 <https://en.wikipedia.org/wiki/Unix_time Unix Time format>. For example: '\"oldestDate\": 1325376070.'------ /See:/ 'executionTimeFilter' smart constructor.-data ExecutionTimeFilter = ExecutionTimeFilter'-    { _etfLatestDate :: !(Maybe POSIX)-    , _etfOldestDate :: !POSIX-    } deriving (Eq,Read,Show,Data,Typeable,Generic)---- | Creates a value of 'ExecutionTimeFilter' with the minimum fields required to make a request.------ Use one of the following lenses to modify other fields as desired:------ * 'etfLatestDate'------ * 'etfOldestDate'-executionTimeFilter-    :: UTCTime -- ^ 'etfOldestDate'-    -> ExecutionTimeFilter-executionTimeFilter pOldestDate_ =-    ExecutionTimeFilter'-    { _etfLatestDate = Nothing-    , _etfOldestDate = _Time # pOldestDate_-    }---- | Specifies the latest start or close date and time to return.-etfLatestDate :: Lens' ExecutionTimeFilter (Maybe UTCTime)-etfLatestDate = lens _etfLatestDate (\ s a -> s{_etfLatestDate = a}) . mapping _Time;---- | Specifies the oldest start or close date and time to return.-etfOldestDate :: Lens' ExecutionTimeFilter UTCTime-etfOldestDate = lens _etfOldestDate (\ s a -> s{_etfOldestDate = a}) . _Time;--instance Hashable ExecutionTimeFilter--instance NFData ExecutionTimeFilter--instance ToJSON ExecutionTimeFilter where-        toJSON ExecutionTimeFilter'{..}-          = object-              (catMaybes-                 [("latestDate" .=) <$> _etfLatestDate,-                  Just ("oldestDate" .= _etfOldestDate)])---- | Provides details of the 'ExternalWorkflowExecutionCancelRequested' event.------ /See:/ 'externalWorkflowExecutionCancelRequestedEventAttributes' smart constructor.-data ExternalWorkflowExecutionCancelRequestedEventAttributes = ExternalWorkflowExecutionCancelRequestedEventAttributes'-    { _ewecreaWorkflowExecution :: !WorkflowExecution-    , _ewecreaInitiatedEventId  :: !Integer-    } deriving (Eq,Read,Show,Data,Typeable,Generic)---- | Creates a value of 'ExternalWorkflowExecutionCancelRequestedEventAttributes' with the minimum fields required to make a request.------ Use one of the following lenses to modify other fields as desired:------ * 'ewecreaWorkflowExecution'------ * 'ewecreaInitiatedEventId'-externalWorkflowExecutionCancelRequestedEventAttributes-    :: WorkflowExecution -- ^ 'ewecreaWorkflowExecution'-    -> Integer -- ^ 'ewecreaInitiatedEventId'-    -> ExternalWorkflowExecutionCancelRequestedEventAttributes-externalWorkflowExecutionCancelRequestedEventAttributes pWorkflowExecution_ pInitiatedEventId_ =-    ExternalWorkflowExecutionCancelRequestedEventAttributes'-    { _ewecreaWorkflowExecution = pWorkflowExecution_-    , _ewecreaInitiatedEventId = pInitiatedEventId_-    }---- | The external workflow execution to which the cancellation request was delivered.-ewecreaWorkflowExecution :: Lens' ExternalWorkflowExecutionCancelRequestedEventAttributes WorkflowExecution-ewecreaWorkflowExecution = lens _ewecreaWorkflowExecution (\ s a -> s{_ewecreaWorkflowExecution = a});---- | The ID of the 'RequestCancelExternalWorkflowExecutionInitiated' event corresponding to the 'RequestCancelExternalWorkflowExecution' 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-ewecreaInitiatedEventId = lens _ewecreaInitiatedEventId (\ s a -> s{_ewecreaInitiatedEventId = a});--instance FromJSON-         ExternalWorkflowExecutionCancelRequestedEventAttributes-         where-        parseJSON-          = withObject-              "ExternalWorkflowExecutionCancelRequestedEventAttributes"-              (\ x ->-                 ExternalWorkflowExecutionCancelRequestedEventAttributes'-                   <$>-                   (x .: "workflowExecution") <*>-                     (x .: "initiatedEventId"))--instance Hashable-         ExternalWorkflowExecutionCancelRequestedEventAttributes--instance NFData-         ExternalWorkflowExecutionCancelRequestedEventAttributes---- | Provides details of the 'ExternalWorkflowExecutionSignaled' event.------ /See:/ 'externalWorkflowExecutionSignaledEventAttributes' smart constructor.-data ExternalWorkflowExecutionSignaledEventAttributes = ExternalWorkflowExecutionSignaledEventAttributes'-    { _eweseaWorkflowExecution :: !WorkflowExecution-    , _eweseaInitiatedEventId  :: !Integer-    } deriving (Eq,Read,Show,Data,Typeable,Generic)---- | Creates a value of 'ExternalWorkflowExecutionSignaledEventAttributes' with the minimum fields required to make a request.------ Use one of the following lenses to modify other fields as desired:------ * 'eweseaWorkflowExecution'------ * 'eweseaInitiatedEventId'-externalWorkflowExecutionSignaledEventAttributes-    :: WorkflowExecution -- ^ 'eweseaWorkflowExecution'-    -> Integer -- ^ 'eweseaInitiatedEventId'-    -> ExternalWorkflowExecutionSignaledEventAttributes-externalWorkflowExecutionSignaledEventAttributes pWorkflowExecution_ pInitiatedEventId_ =-    ExternalWorkflowExecutionSignaledEventAttributes'-    { _eweseaWorkflowExecution = pWorkflowExecution_-    , _eweseaInitiatedEventId = pInitiatedEventId_-    }---- | The external workflow execution that the signal was delivered to.-eweseaWorkflowExecution :: Lens' ExternalWorkflowExecutionSignaledEventAttributes WorkflowExecution-eweseaWorkflowExecution = lens _eweseaWorkflowExecution (\ s a -> s{_eweseaWorkflowExecution = a});---- | The ID of the 'SignalExternalWorkflowExecutionInitiated' event corresponding to the 'SignalExternalWorkflowExecution' 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-eweseaInitiatedEventId = lens _eweseaInitiatedEventId (\ s a -> s{_eweseaInitiatedEventId = a});--instance FromJSON-         ExternalWorkflowExecutionSignaledEventAttributes-         where-        parseJSON-          = withObject-              "ExternalWorkflowExecutionSignaledEventAttributes"-              (\ x ->-                 ExternalWorkflowExecutionSignaledEventAttributes' <$>-                   (x .: "workflowExecution") <*>-                     (x .: "initiatedEventId"))--instance Hashable-         ExternalWorkflowExecutionSignaledEventAttributes--instance NFData-         ExternalWorkflowExecutionSignaledEventAttributes---- | Provides details of the 'FailWorkflowExecution' decision.------ __Access Control__------ You can use IAM policies to control this decision\'s access to Amazon SWF resources as follows:------ -   Use a 'Resource' element with the domain name to limit the action to only specified domains.--- -   Use an 'Action' element to allow or deny permission to call this action.--- -   You cannot use an IAM policy to constrain this action\'s parameters.------ If the caller does not have sufficient permissions to invoke the action, or the parameter values fall outside the specified constraints, the action fails. The associated event attribute\'s __cause__ parameter will be set to OPERATION_NOT_PERMITTED. For details and example IAM policies, see <http://docs.aws.amazon.com/amazonswf/latest/developerguide/swf-dev-iam.html Using IAM to Manage Access to Amazon SWF Workflows>.------ /See:/ 'failWorkflowExecutionDecisionAttributes' smart constructor.-data FailWorkflowExecutionDecisionAttributes = FailWorkflowExecutionDecisionAttributes'-    { _fwedaReason  :: !(Maybe Text)-    , _fwedaDetails :: !(Maybe Text)-    } deriving (Eq,Read,Show,Data,Typeable,Generic)---- | Creates a value of 'FailWorkflowExecutionDecisionAttributes' with the minimum fields required to make a request.------ Use one of the following lenses to modify other fields as desired:------ * 'fwedaReason'------ * 'fwedaDetails'-failWorkflowExecutionDecisionAttributes-    :: FailWorkflowExecutionDecisionAttributes-failWorkflowExecutionDecisionAttributes =-    FailWorkflowExecutionDecisionAttributes'-    { _fwedaReason = Nothing-    , _fwedaDetails = Nothing-    }---- | A descriptive reason for the failure that may help in diagnostics.-fwedaReason :: Lens' FailWorkflowExecutionDecisionAttributes (Maybe Text)-fwedaReason = lens _fwedaReason (\ s a -> s{_fwedaReason = a});---- | /Optional./ Details of the failure.-fwedaDetails :: Lens' FailWorkflowExecutionDecisionAttributes (Maybe Text)-fwedaDetails = lens _fwedaDetails (\ s a -> s{_fwedaDetails = a});--instance Hashable-         FailWorkflowExecutionDecisionAttributes--instance NFData-         FailWorkflowExecutionDecisionAttributes--instance ToJSON-         FailWorkflowExecutionDecisionAttributes where-        toJSON FailWorkflowExecutionDecisionAttributes'{..}-          = object-              (catMaybes-                 [("reason" .=) <$> _fwedaReason,-                  ("details" .=) <$> _fwedaDetails])---- | Provides details of the 'FailWorkflowExecutionFailed' event.------ /See:/ 'failWorkflowExecutionFailedEventAttributes' smart constructor.-data FailWorkflowExecutionFailedEventAttributes = FailWorkflowExecutionFailedEventAttributes'-    { _fwefeaCause                        :: !FailWorkflowExecutionFailedCause-    , _fwefeaDecisionTaskCompletedEventId :: !Integer-    } deriving (Eq,Read,Show,Data,Typeable,Generic)---- | Creates a value of 'FailWorkflowExecutionFailedEventAttributes' with the minimum fields required to make a request.------ Use one of the following lenses to modify other fields as desired:------ * 'fwefeaCause'------ * 'fwefeaDecisionTaskCompletedEventId'-failWorkflowExecutionFailedEventAttributes-    :: FailWorkflowExecutionFailedCause -- ^ 'fwefeaCause'-    -> Integer -- ^ 'fwefeaDecisionTaskCompletedEventId'-    -> FailWorkflowExecutionFailedEventAttributes-failWorkflowExecutionFailedEventAttributes pCause_ pDecisionTaskCompletedEventId_ =-    FailWorkflowExecutionFailedEventAttributes'-    { _fwefeaCause = pCause_-    , _fwefeaDecisionTaskCompletedEventId = pDecisionTaskCompletedEventId_-    }---- | The cause of the failure. This information is generated by the system and can be useful for diagnostic purposes.------ If __cause__ is set to OPERATION_NOT_PERMITTED, the decision failed because it lacked sufficient permissions. For details and example IAM policies, see <http://docs.aws.amazon.com/amazonswf/latest/developerguide/swf-dev-iam.html Using IAM to Manage Access to Amazon SWF Workflows>.-fwefeaCause :: Lens' FailWorkflowExecutionFailedEventAttributes FailWorkflowExecutionFailedCause-fwefeaCause = lens _fwefeaCause (\ s a -> s{_fwefeaCause = a});---- | The ID of the 'DecisionTaskCompleted' event corresponding to the decision task that resulted in the 'FailWorkflowExecution' 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-fwefeaDecisionTaskCompletedEventId = lens _fwefeaDecisionTaskCompletedEventId (\ s a -> s{_fwefeaDecisionTaskCompletedEventId = a});--instance FromJSON-         FailWorkflowExecutionFailedEventAttributes where-        parseJSON-          = withObject-              "FailWorkflowExecutionFailedEventAttributes"-              (\ x ->-                 FailWorkflowExecutionFailedEventAttributes' <$>-                   (x .: "cause") <*>-                     (x .: "decisionTaskCompletedEventId"))--instance Hashable-         FailWorkflowExecutionFailedEventAttributes--instance NFData-         FailWorkflowExecutionFailedEventAttributes---- | Event within a workflow execution. A history event can be one of these types:------ -   __WorkflowExecutionStarted__: The workflow execution was started.--- -   __WorkflowExecutionCompleted__: The workflow execution was closed due to successful completion.--- -   __WorkflowExecutionFailed__: The workflow execution closed due to a failure.--- -   __WorkflowExecutionTimedOut__: The workflow execution was closed because a time out was exceeded.--- -   __WorkflowExecutionCanceled__: The workflow execution was successfully canceled and closed.--- -   __WorkflowExecutionTerminated__: The workflow execution was terminated.--- -   __WorkflowExecutionContinuedAsNew__: The workflow execution was closed and a new execution of the same type was created with the same workflowId.--- -   __WorkflowExecutionCancelRequested__: A request to cancel this workflow execution was made.--- -   __DecisionTaskScheduled__: A decision task was scheduled for the workflow execution.--- -   __DecisionTaskStarted__: The decision task was dispatched to a decider.--- -   __DecisionTaskCompleted__: The decider successfully completed a decision task by calling < RespondDecisionTaskCompleted>.--- -   __DecisionTaskTimedOut__: The decision task timed out.--- -   __ActivityTaskScheduled__: An activity task was scheduled for execution.--- -   __ScheduleActivityTaskFailed__: Failed to process ScheduleActivityTask decision. This happens when the decision is not configured properly, for example the activity type specified is not registered.--- -   __ActivityTaskStarted__: The scheduled activity task was dispatched to a worker.--- -   __ActivityTaskCompleted__: An activity worker successfully completed an activity task by calling < RespondActivityTaskCompleted>.--- -   __ActivityTaskFailed__: An activity worker failed an activity task by calling < RespondActivityTaskFailed>.--- -   __ActivityTaskTimedOut__: The activity task timed out.--- -   __ActivityTaskCanceled__: The activity task was successfully canceled.--- -   __ActivityTaskCancelRequested__: A 'RequestCancelActivityTask' decision was received by the system.--- -   __RequestCancelActivityTaskFailed__: Failed to process RequestCancelActivityTask decision. This happens when the decision is not configured properly.--- -   __WorkflowExecutionSignaled__: An external signal was received for the workflow execution.--- -   __MarkerRecorded__: A marker was recorded in the workflow history as the result of a 'RecordMarker' decision.--- -   __TimerStarted__: A timer was started for the workflow execution due to a 'StartTimer' decision.--- -   __StartTimerFailed__: Failed to process StartTimer decision. This happens when the decision is not configured properly, for example a timer already exists with the specified timer ID.--- -   __TimerFired__: A timer, previously started for this workflow execution, fired.--- -   __TimerCanceled__: A timer, previously started for this workflow execution, was successfully canceled.--- -   __CancelTimerFailed__: Failed to process CancelTimer decision. This happens when the decision is not configured properly, for example no timer exists with the specified timer ID.--- -   __StartChildWorkflowExecutionInitiated__: A request was made to start a child workflow execution.--- -   __StartChildWorkflowExecutionFailed__: Failed to process StartChildWorkflowExecution decision. This happens when the decision is not configured properly, for example the workflow type specified is not registered.--- -   __ChildWorkflowExecutionStarted__: A child workflow execution was successfully started.--- -   __ChildWorkflowExecutionCompleted__: A child workflow execution, started by this workflow execution, completed successfully and was closed.--- -   __ChildWorkflowExecutionFailed__: A child workflow execution, started by this workflow execution, failed to complete successfully and was closed.--- -   __ChildWorkflowExecutionTimedOut__: A child workflow execution, started by this workflow execution, timed out and was closed.--- -   __ChildWorkflowExecutionCanceled__: A child workflow execution, started by this workflow execution, was canceled and closed.--- -   __ChildWorkflowExecutionTerminated__: A child workflow execution, started by this workflow execution, was terminated.--- -   __SignalExternalWorkflowExecutionInitiated__: A request to signal an external workflow was made.--- -   __ExternalWorkflowExecutionSignaled__: A signal, requested by this workflow execution, was successfully delivered to the target external workflow execution.--- -   __SignalExternalWorkflowExecutionFailed__: The request to signal an external workflow execution failed.--- -   __RequestCancelExternalWorkflowExecutionInitiated__: A request was made to request the cancellation of an external workflow execution.--- -   __ExternalWorkflowExecutionCancelRequested__: Request to cancel an external workflow execution was successfully delivered to the target execution.--- -   __RequestCancelExternalWorkflowExecutionFailed__: Request to cancel an external workflow execution failed.--- -   __LambdaFunctionScheduled__: An AWS Lambda function was scheduled for execution.--- -   __LambdaFunctionStarted__: The scheduled function was invoked in the AWS Lambda service.--- -   __LambdaFunctionCompleted__: The AWS Lambda function successfully completed.--- -   __LambdaFunctionFailed__: The AWS Lambda function execution failed.--- -   __LambdaFunctionTimedOut__: The AWS Lambda function execution timed out.--- -   __ScheduleLambdaFunctionFailed__: Failed to process ScheduleLambdaFunction decision. This happens when the workflow execution does not have the proper IAM role attached to invoke AWS Lambda functions.--- -   __StartLambdaFunctionFailed__: Failed to invoke the scheduled function in the AWS Lambda service. This happens when the AWS Lambda service is not available in the current region, or received too many requests.------ /See:/ 'historyEvent' smart constructor.-data HistoryEvent = HistoryEvent'-    { _heWorkflowExecutionCancelRequestedEventAttributes                :: !(Maybe WorkflowExecutionCancelRequestedEventAttributes)-    , _heRecordMarkerFailedEventAttributes                              :: !(Maybe RecordMarkerFailedEventAttributes)-    , _heRequestCancelExternalWorkflowExecutionInitiatedEventAttributes :: !(Maybe RequestCancelExternalWorkflowExecutionInitiatedEventAttributes)-    , _heLambdaFunctionStartedEventAttributes                           :: !(Maybe LambdaFunctionStartedEventAttributes)-    , _heDecisionTaskScheduledEventAttributes                           :: !(Maybe DecisionTaskScheduledEventAttributes)-    , _heWorkflowExecutionCompletedEventAttributes                      :: !(Maybe WorkflowExecutionCompletedEventAttributes)-    , _heStartTimerFailedEventAttributes                                :: !(Maybe StartTimerFailedEventAttributes)-    , _heActivityTaskScheduledEventAttributes                           :: !(Maybe ActivityTaskScheduledEventAttributes)-    , _heScheduleActivityTaskFailedEventAttributes                      :: !(Maybe ScheduleActivityTaskFailedEventAttributes)-    , _heChildWorkflowExecutionCompletedEventAttributes                 :: !(Maybe ChildWorkflowExecutionCompletedEventAttributes)-    , _heMarkerRecordedEventAttributes                                  :: !(Maybe MarkerRecordedEventAttributes)-    , _heScheduleLambdaFunctionFailedEventAttributes                    :: !(Maybe ScheduleLambdaFunctionFailedEventAttributes)-    , _heCompleteWorkflowExecutionFailedEventAttributes                 :: !(Maybe CompleteWorkflowExecutionFailedEventAttributes)-    , _heLambdaFunctionCompletedEventAttributes                         :: !(Maybe LambdaFunctionCompletedEventAttributes)-    , _heRequestCancelExternalWorkflowExecutionFailedEventAttributes    :: !(Maybe RequestCancelExternalWorkflowExecutionFailedEventAttributes)-    , _heTimerCanceledEventAttributes                                   :: !(Maybe TimerCanceledEventAttributes)-    , _heWorkflowExecutionStartedEventAttributes                        :: !(Maybe WorkflowExecutionStartedEventAttributes)-    , _heActivityTaskCompletedEventAttributes                           :: !(Maybe ActivityTaskCompletedEventAttributes)-    , _heDecisionTaskTimedOutEventAttributes                            :: !(Maybe DecisionTaskTimedOutEventAttributes)-    , _heCancelTimerFailedEventAttributes                               :: !(Maybe CancelTimerFailedEventAttributes)-    , _heChildWorkflowExecutionStartedEventAttributes                   :: !(Maybe ChildWorkflowExecutionStartedEventAttributes)-    , _heActivityTaskCanceledEventAttributes                            :: !(Maybe ActivityTaskCanceledEventAttributes)-    , _heActivityTaskTimedOutEventAttributes                            :: !(Maybe ActivityTaskTimedOutEventAttributes)-    , _heDecisionTaskStartedEventAttributes                             :: !(Maybe DecisionTaskStartedEventAttributes)-    , _heWorkflowExecutionTerminatedEventAttributes                     :: !(Maybe WorkflowExecutionTerminatedEventAttributes)-    , _heChildWorkflowExecutionCanceledEventAttributes                  :: !(Maybe ChildWorkflowExecutionCanceledEventAttributes)-    , _heRequestCancelActivityTaskFailedEventAttributes                 :: !(Maybe RequestCancelActivityTaskFailedEventAttributes)-    , _heLambdaFunctionScheduledEventAttributes                         :: !(Maybe LambdaFunctionScheduledEventAttributes)-    , _heChildWorkflowExecutionTimedOutEventAttributes                  :: !(Maybe ChildWorkflowExecutionTimedOutEventAttributes)-    , _heCancelWorkflowExecutionFailedEventAttributes                   :: !(Maybe CancelWorkflowExecutionFailedEventAttributes)-    , _heStartChildWorkflowExecutionInitiatedEventAttributes            :: !(Maybe StartChildWorkflowExecutionInitiatedEventAttributes)-    , _heSignalExternalWorkflowExecutionFailedEventAttributes           :: !(Maybe SignalExternalWorkflowExecutionFailedEventAttributes)-    , _heActivityTaskStartedEventAttributes                             :: !(Maybe ActivityTaskStartedEventAttributes)-    , _heStartLambdaFunctionFailedEventAttributes                       :: !(Maybe StartLambdaFunctionFailedEventAttributes)-    , _heChildWorkflowExecutionTerminatedEventAttributes                :: !(Maybe ChildWorkflowExecutionTerminatedEventAttributes)-    , _heLambdaFunctionFailedEventAttributes                            :: !(Maybe LambdaFunctionFailedEventAttributes)-    , _heWorkflowExecutionCanceledEventAttributes                       :: !(Maybe WorkflowExecutionCanceledEventAttributes)-    , _heTimerStartedEventAttributes                                    :: !(Maybe TimerStartedEventAttributes)-    , _heActivityTaskCancelRequestedEventAttributes                     :: !(Maybe ActivityTaskCancelRequestedEventAttributes)-    , _heWorkflowExecutionTimedOutEventAttributes                       :: !(Maybe WorkflowExecutionTimedOutEventAttributes)-    , _heWorkflowExecutionSignaledEventAttributes                       :: !(Maybe WorkflowExecutionSignaledEventAttributes)-    , _heTimerFiredEventAttributes                                      :: !(Maybe TimerFiredEventAttributes)-    , _heActivityTaskFailedEventAttributes                              :: !(Maybe ActivityTaskFailedEventAttributes)-    , _heExternalWorkflowExecutionSignaledEventAttributes               :: !(Maybe ExternalWorkflowExecutionSignaledEventAttributes)-    , _heDecisionTaskCompletedEventAttributes                           :: !(Maybe DecisionTaskCompletedEventAttributes)-    , _heStartChildWorkflowExecutionFailedEventAttributes               :: !(Maybe StartChildWorkflowExecutionFailedEventAttributes)-    , _heChildWorkflowExecutionFailedEventAttributes                    :: !(Maybe ChildWorkflowExecutionFailedEventAttributes)-    , _heFailWorkflowExecutionFailedEventAttributes                     :: !(Maybe FailWorkflowExecutionFailedEventAttributes)-    , _heContinueAsNewWorkflowExecutionFailedEventAttributes            :: !(Maybe ContinueAsNewWorkflowExecutionFailedEventAttributes)-    , _heSignalExternalWorkflowExecutionInitiatedEventAttributes        :: !(Maybe SignalExternalWorkflowExecutionInitiatedEventAttributes)-    , _heLambdaFunctionTimedOutEventAttributes                          :: !(Maybe LambdaFunctionTimedOutEventAttributes)-    , _heWorkflowExecutionFailedEventAttributes                         :: !(Maybe WorkflowExecutionFailedEventAttributes)-    , _heWorkflowExecutionContinuedAsNewEventAttributes                 :: !(Maybe WorkflowExecutionContinuedAsNewEventAttributes)-    , _heExternalWorkflowExecutionCancelRequestedEventAttributes        :: !(Maybe ExternalWorkflowExecutionCancelRequestedEventAttributes)-    , _heEventTimestamp                                                 :: !POSIX-    , _heEventType                                                      :: !EventType-    , _heEventId                                                        :: !Integer-    } deriving (Eq,Read,Show,Data,Typeable,Generic)---- | Creates a value of 'HistoryEvent' with the minimum fields required to make a request.------ Use one of the following lenses to modify other fields as desired:------ * 'heWorkflowExecutionCancelRequestedEventAttributes'------ * 'heRecordMarkerFailedEventAttributes'------ * 'heRequestCancelExternalWorkflowExecutionInitiatedEventAttributes'------ * 'heLambdaFunctionStartedEventAttributes'------ * 'heDecisionTaskScheduledEventAttributes'------ * 'heWorkflowExecutionCompletedEventAttributes'------ * 'heStartTimerFailedEventAttributes'------ * 'heActivityTaskScheduledEventAttributes'------ * 'heScheduleActivityTaskFailedEventAttributes'------ * 'heChildWorkflowExecutionCompletedEventAttributes'------ * 'heMarkerRecordedEventAttributes'------ * 'heScheduleLambdaFunctionFailedEventAttributes'------ * 'heCompleteWorkflowExecutionFailedEventAttributes'------ * 'heLambdaFunctionCompletedEventAttributes'------ * 'heRequestCancelExternalWorkflowExecutionFailedEventAttributes'------ * 'heTimerCanceledEventAttributes'------ * 'heWorkflowExecutionStartedEventAttributes'------ * 'heActivityTaskCompletedEventAttributes'------ * 'heDecisionTaskTimedOutEventAttributes'------ * 'heCancelTimerFailedEventAttributes'------ * 'heChildWorkflowExecutionStartedEventAttributes'------ * 'heActivityTaskCanceledEventAttributes'------ * 'heActivityTaskTimedOutEventAttributes'------ * 'heDecisionTaskStartedEventAttributes'------ * 'heWorkflowExecutionTerminatedEventAttributes'------ * 'heChildWorkflowExecutionCanceledEventAttributes'------ * 'heRequestCancelActivityTaskFailedEventAttributes'------ * 'heLambdaFunctionScheduledEventAttributes'------ * 'heChildWorkflowExecutionTimedOutEventAttributes'------ * 'heCancelWorkflowExecutionFailedEventAttributes'------ * 'heStartChildWorkflowExecutionInitiatedEventAttributes'------ * 'heSignalExternalWorkflowExecutionFailedEventAttributes'------ * 'heActivityTaskStartedEventAttributes'------ * 'heStartLambdaFunctionFailedEventAttributes'------ * 'heChildWorkflowExecutionTerminatedEventAttributes'------ * 'heLambdaFunctionFailedEventAttributes'------ * 'heWorkflowExecutionCanceledEventAttributes'------ * 'heTimerStartedEventAttributes'------ * 'heActivityTaskCancelRequestedEventAttributes'------ * 'heWorkflowExecutionTimedOutEventAttributes'------ * 'heWorkflowExecutionSignaledEventAttributes'------ * 'heTimerFiredEventAttributes'------ * 'heActivityTaskFailedEventAttributes'------ * 'heExternalWorkflowExecutionSignaledEventAttributes'------ * 'heDecisionTaskCompletedEventAttributes'------ * 'heStartChildWorkflowExecutionFailedEventAttributes'------ * 'heChildWorkflowExecutionFailedEventAttributes'------ * 'heFailWorkflowExecutionFailedEventAttributes'------ * 'heContinueAsNewWorkflowExecutionFailedEventAttributes'------ * 'heSignalExternalWorkflowExecutionInitiatedEventAttributes'------ * 'heLambdaFunctionTimedOutEventAttributes'------ * 'heWorkflowExecutionFailedEventAttributes'------ * 'heWorkflowExecutionContinuedAsNewEventAttributes'------ * 'heExternalWorkflowExecutionCancelRequestedEventAttributes'------ * 'heEventTimestamp'------ * 'heEventType'------ * 'heEventId'-historyEvent-    :: UTCTime -- ^ 'heEventTimestamp'-    -> EventType -- ^ 'heEventType'-    -> Integer -- ^ 'heEventId'-    -> HistoryEvent-historyEvent pEventTimestamp_ pEventType_ pEventId_ =-    HistoryEvent'-    { _heWorkflowExecutionCancelRequestedEventAttributes = Nothing-    , _heRecordMarkerFailedEventAttributes = Nothing-    , _heRequestCancelExternalWorkflowExecutionInitiatedEventAttributes = Nothing-    , _heLambdaFunctionStartedEventAttributes = Nothing-    , _heDecisionTaskScheduledEventAttributes = Nothing-    , _heWorkflowExecutionCompletedEventAttributes = Nothing-    , _heStartTimerFailedEventAttributes = Nothing-    , _heActivityTaskScheduledEventAttributes = Nothing-    , _heScheduleActivityTaskFailedEventAttributes = Nothing-    , _heChildWorkflowExecutionCompletedEventAttributes = Nothing-    , _heMarkerRecordedEventAttributes = Nothing-    , _heScheduleLambdaFunctionFailedEventAttributes = Nothing-    , _heCompleteWorkflowExecutionFailedEventAttributes = Nothing-    , _heLambdaFunctionCompletedEventAttributes = Nothing-    , _heRequestCancelExternalWorkflowExecutionFailedEventAttributes = Nothing-    , _heTimerCanceledEventAttributes = Nothing-    , _heWorkflowExecutionStartedEventAttributes = Nothing-    , _heActivityTaskCompletedEventAttributes = Nothing-    , _heDecisionTaskTimedOutEventAttributes = Nothing-    , _heCancelTimerFailedEventAttributes = Nothing-    , _heChildWorkflowExecutionStartedEventAttributes = Nothing-    , _heActivityTaskCanceledEventAttributes = Nothing-    , _heActivityTaskTimedOutEventAttributes = Nothing-    , _heDecisionTaskStartedEventAttributes = Nothing-    , _heWorkflowExecutionTerminatedEventAttributes = Nothing-    , _heChildWorkflowExecutionCanceledEventAttributes = Nothing-    , _heRequestCancelActivityTaskFailedEventAttributes = Nothing-    , _heLambdaFunctionScheduledEventAttributes = Nothing-    , _heChildWorkflowExecutionTimedOutEventAttributes = Nothing-    , _heCancelWorkflowExecutionFailedEventAttributes = Nothing-    , _heStartChildWorkflowExecutionInitiatedEventAttributes = Nothing-    , _heSignalExternalWorkflowExecutionFailedEventAttributes = Nothing-    , _heActivityTaskStartedEventAttributes = Nothing-    , _heStartLambdaFunctionFailedEventAttributes = Nothing-    , _heChildWorkflowExecutionTerminatedEventAttributes = Nothing-    , _heLambdaFunctionFailedEventAttributes = Nothing-    , _heWorkflowExecutionCanceledEventAttributes = Nothing-    , _heTimerStartedEventAttributes = Nothing-    , _heActivityTaskCancelRequestedEventAttributes = Nothing-    , _heWorkflowExecutionTimedOutEventAttributes = Nothing-    , _heWorkflowExecutionSignaledEventAttributes = Nothing-    , _heTimerFiredEventAttributes = Nothing-    , _heActivityTaskFailedEventAttributes = Nothing-    , _heExternalWorkflowExecutionSignaledEventAttributes = Nothing-    , _heDecisionTaskCompletedEventAttributes = Nothing-    , _heStartChildWorkflowExecutionFailedEventAttributes = Nothing-    , _heChildWorkflowExecutionFailedEventAttributes = Nothing-    , _heFailWorkflowExecutionFailedEventAttributes = Nothing-    , _heContinueAsNewWorkflowExecutionFailedEventAttributes = Nothing-    , _heSignalExternalWorkflowExecutionInitiatedEventAttributes = Nothing-    , _heLambdaFunctionTimedOutEventAttributes = Nothing-    , _heWorkflowExecutionFailedEventAttributes = Nothing-    , _heWorkflowExecutionContinuedAsNewEventAttributes = Nothing-    , _heExternalWorkflowExecutionCancelRequestedEventAttributes = Nothing-    , _heEventTimestamp = _Time # pEventTimestamp_-    , _heEventType = pEventType_-    , _heEventId = pEventId_-    }---- | If the event is of type 'WorkflowExecutionCancelRequested' then this member is set and provides detailed information about the event. It is not set for other event types.-heWorkflowExecutionCancelRequestedEventAttributes :: Lens' HistoryEvent (Maybe WorkflowExecutionCancelRequestedEventAttributes)-heWorkflowExecutionCancelRequestedEventAttributes = lens _heWorkflowExecutionCancelRequestedEventAttributes (\ s a -> s{_heWorkflowExecutionCancelRequestedEventAttributes = a});---- | If the event is of type 'DecisionTaskFailed' then this member is set and provides detailed information about the event. It is not set for other event types.-heRecordMarkerFailedEventAttributes :: Lens' HistoryEvent (Maybe RecordMarkerFailedEventAttributes)-heRecordMarkerFailedEventAttributes = lens _heRecordMarkerFailedEventAttributes (\ s a -> s{_heRecordMarkerFailedEventAttributes = a});---- | If the event is of type 'RequestCancelExternalWorkflowExecutionInitiated' then this member is set and provides detailed information about the event. It is not set for other event types.-heRequestCancelExternalWorkflowExecutionInitiatedEventAttributes :: Lens' HistoryEvent (Maybe RequestCancelExternalWorkflowExecutionInitiatedEventAttributes)-heRequestCancelExternalWorkflowExecutionInitiatedEventAttributes = lens _heRequestCancelExternalWorkflowExecutionInitiatedEventAttributes (\ s a -> s{_heRequestCancelExternalWorkflowExecutionInitiatedEventAttributes = a});---- | Undocumented member.-heLambdaFunctionStartedEventAttributes :: Lens' HistoryEvent (Maybe LambdaFunctionStartedEventAttributes)-heLambdaFunctionStartedEventAttributes = lens _heLambdaFunctionStartedEventAttributes (\ s a -> s{_heLambdaFunctionStartedEventAttributes = a});---- | If the event is of type 'DecisionTaskScheduled' then this member is set and provides detailed information about the event. It is not set for other event types.-heDecisionTaskScheduledEventAttributes :: Lens' HistoryEvent (Maybe DecisionTaskScheduledEventAttributes)-heDecisionTaskScheduledEventAttributes = lens _heDecisionTaskScheduledEventAttributes (\ s a -> s{_heDecisionTaskScheduledEventAttributes = a});---- | If the event is of type 'WorkflowExecutionCompleted' then this member is set and provides detailed information about the event. It is not set for other event types.-heWorkflowExecutionCompletedEventAttributes :: Lens' HistoryEvent (Maybe WorkflowExecutionCompletedEventAttributes)-heWorkflowExecutionCompletedEventAttributes = lens _heWorkflowExecutionCompletedEventAttributes (\ s a -> s{_heWorkflowExecutionCompletedEventAttributes = a});---- | If the event is of type 'StartTimerFailed' then this member is set and provides detailed information about the event. It is not set for other event types.-heStartTimerFailedEventAttributes :: Lens' HistoryEvent (Maybe StartTimerFailedEventAttributes)-heStartTimerFailedEventAttributes = lens _heStartTimerFailedEventAttributes (\ s a -> s{_heStartTimerFailedEventAttributes = a});---- | If the event is of type 'ActivityTaskScheduled' then this member is set and provides detailed information about the event. It is not set for other event types.-heActivityTaskScheduledEventAttributes :: Lens' HistoryEvent (Maybe ActivityTaskScheduledEventAttributes)-heActivityTaskScheduledEventAttributes = lens _heActivityTaskScheduledEventAttributes (\ s a -> s{_heActivityTaskScheduledEventAttributes = a});---- | If the event is of type 'ScheduleActivityTaskFailed' then this member is set and provides detailed information about the event. It is not set for other event types.-heScheduleActivityTaskFailedEventAttributes :: Lens' HistoryEvent (Maybe ScheduleActivityTaskFailedEventAttributes)-heScheduleActivityTaskFailedEventAttributes = lens _heScheduleActivityTaskFailedEventAttributes (\ s a -> s{_heScheduleActivityTaskFailedEventAttributes = a});---- | If the event is of type 'ChildWorkflowExecutionCompleted' then this member is set and provides detailed information about the event. It is not set for other event types.-heChildWorkflowExecutionCompletedEventAttributes :: Lens' HistoryEvent (Maybe ChildWorkflowExecutionCompletedEventAttributes)-heChildWorkflowExecutionCompletedEventAttributes = lens _heChildWorkflowExecutionCompletedEventAttributes (\ s a -> s{_heChildWorkflowExecutionCompletedEventAttributes = a});---- | If the event is of type 'MarkerRecorded' then this member is set and provides detailed information about the event. It is not set for other event types.-heMarkerRecordedEventAttributes :: Lens' HistoryEvent (Maybe MarkerRecordedEventAttributes)-heMarkerRecordedEventAttributes = lens _heMarkerRecordedEventAttributes (\ s a -> s{_heMarkerRecordedEventAttributes = a});---- | Undocumented member.-heScheduleLambdaFunctionFailedEventAttributes :: Lens' HistoryEvent (Maybe ScheduleLambdaFunctionFailedEventAttributes)-heScheduleLambdaFunctionFailedEventAttributes = lens _heScheduleLambdaFunctionFailedEventAttributes (\ s a -> s{_heScheduleLambdaFunctionFailedEventAttributes = a});---- | If the event is of type 'CompleteWorkflowExecutionFailed' then this member is set and provides detailed information about the event. It is not set for other event types.-heCompleteWorkflowExecutionFailedEventAttributes :: Lens' HistoryEvent (Maybe CompleteWorkflowExecutionFailedEventAttributes)-heCompleteWorkflowExecutionFailedEventAttributes = lens _heCompleteWorkflowExecutionFailedEventAttributes (\ s a -> s{_heCompleteWorkflowExecutionFailedEventAttributes = a});---- | Undocumented member.-heLambdaFunctionCompletedEventAttributes :: Lens' HistoryEvent (Maybe LambdaFunctionCompletedEventAttributes)-heLambdaFunctionCompletedEventAttributes = lens _heLambdaFunctionCompletedEventAttributes (\ s a -> s{_heLambdaFunctionCompletedEventAttributes = a});---- | If the event is of type 'RequestCancelExternalWorkflowExecutionFailed' then this member is set and provides detailed information about the event. It is not set for other event types.-heRequestCancelExternalWorkflowExecutionFailedEventAttributes :: Lens' HistoryEvent (Maybe RequestCancelExternalWorkflowExecutionFailedEventAttributes)-heRequestCancelExternalWorkflowExecutionFailedEventAttributes = lens _heRequestCancelExternalWorkflowExecutionFailedEventAttributes (\ s a -> s{_heRequestCancelExternalWorkflowExecutionFailedEventAttributes = a});---- | If the event is of type 'TimerCanceled' then this member is set and provides detailed information about the event. It is not set for other event types.-heTimerCanceledEventAttributes :: Lens' HistoryEvent (Maybe TimerCanceledEventAttributes)-heTimerCanceledEventAttributes = lens _heTimerCanceledEventAttributes (\ s a -> s{_heTimerCanceledEventAttributes = a});---- | If the event is of type 'WorkflowExecutionStarted' then this member is set and provides detailed information about the event. It is not set for other event types.-heWorkflowExecutionStartedEventAttributes :: Lens' HistoryEvent (Maybe WorkflowExecutionStartedEventAttributes)-heWorkflowExecutionStartedEventAttributes = lens _heWorkflowExecutionStartedEventAttributes (\ s a -> s{_heWorkflowExecutionStartedEventAttributes = a});---- | If the event is of type 'ActivityTaskCompleted' then this member is set and provides detailed information about the event. It is not set for other event types.-heActivityTaskCompletedEventAttributes :: Lens' HistoryEvent (Maybe ActivityTaskCompletedEventAttributes)-heActivityTaskCompletedEventAttributes = lens _heActivityTaskCompletedEventAttributes (\ s a -> s{_heActivityTaskCompletedEventAttributes = a});---- | If the event is of type 'DecisionTaskTimedOut' then this member is set and provides detailed information about the event. It is not set for other event types.-heDecisionTaskTimedOutEventAttributes :: Lens' HistoryEvent (Maybe DecisionTaskTimedOutEventAttributes)-heDecisionTaskTimedOutEventAttributes = lens _heDecisionTaskTimedOutEventAttributes (\ s a -> s{_heDecisionTaskTimedOutEventAttributes = a});---- | If the event is of type 'CancelTimerFailed' then this member is set and provides detailed information about the event. It is not set for other event types.-heCancelTimerFailedEventAttributes :: Lens' HistoryEvent (Maybe CancelTimerFailedEventAttributes)-heCancelTimerFailedEventAttributes = lens _heCancelTimerFailedEventAttributes (\ s a -> s{_heCancelTimerFailedEventAttributes = a});---- | If the event is of type 'ChildWorkflowExecutionStarted' then this member is set and provides detailed information about the event. It is not set for other event types.-heChildWorkflowExecutionStartedEventAttributes :: Lens' HistoryEvent (Maybe ChildWorkflowExecutionStartedEventAttributes)-heChildWorkflowExecutionStartedEventAttributes = lens _heChildWorkflowExecutionStartedEventAttributes (\ s a -> s{_heChildWorkflowExecutionStartedEventAttributes = a});---- | If the event is of type 'ActivityTaskCanceled' then this member is set and provides detailed information about the event. It is not set for other event types.-heActivityTaskCanceledEventAttributes :: Lens' HistoryEvent (Maybe ActivityTaskCanceledEventAttributes)-heActivityTaskCanceledEventAttributes = lens _heActivityTaskCanceledEventAttributes (\ s a -> s{_heActivityTaskCanceledEventAttributes = a});---- | If the event is of type 'ActivityTaskTimedOut' then this member is set and provides detailed information about the event. It is not set for other event types.-heActivityTaskTimedOutEventAttributes :: Lens' HistoryEvent (Maybe ActivityTaskTimedOutEventAttributes)-heActivityTaskTimedOutEventAttributes = lens _heActivityTaskTimedOutEventAttributes (\ s a -> s{_heActivityTaskTimedOutEventAttributes = a});---- | If the event is of type 'DecisionTaskStarted' then this member is set and provides detailed information about the event. It is not set for other event types.-heDecisionTaskStartedEventAttributes :: Lens' HistoryEvent (Maybe DecisionTaskStartedEventAttributes)-heDecisionTaskStartedEventAttributes = lens _heDecisionTaskStartedEventAttributes (\ s a -> s{_heDecisionTaskStartedEventAttributes = a});---- | If the event is of type 'WorkflowExecutionTerminated' then this member is set and provides detailed information about the event. It is not set for other event types.-heWorkflowExecutionTerminatedEventAttributes :: Lens' HistoryEvent (Maybe WorkflowExecutionTerminatedEventAttributes)-heWorkflowExecutionTerminatedEventAttributes = lens _heWorkflowExecutionTerminatedEventAttributes (\ s a -> s{_heWorkflowExecutionTerminatedEventAttributes = a});---- | If the event is of type 'ChildWorkflowExecutionCanceled' then this member is set and provides detailed information about the event. It is not set for other event types.-heChildWorkflowExecutionCanceledEventAttributes :: Lens' HistoryEvent (Maybe ChildWorkflowExecutionCanceledEventAttributes)-heChildWorkflowExecutionCanceledEventAttributes = lens _heChildWorkflowExecutionCanceledEventAttributes (\ s a -> s{_heChildWorkflowExecutionCanceledEventAttributes = a});---- | If the event is of type 'RequestCancelActivityTaskFailed' then this member is set and provides detailed information about the event. It is not set for other event types.-heRequestCancelActivityTaskFailedEventAttributes :: Lens' HistoryEvent (Maybe RequestCancelActivityTaskFailedEventAttributes)-heRequestCancelActivityTaskFailedEventAttributes = lens _heRequestCancelActivityTaskFailedEventAttributes (\ s a -> s{_heRequestCancelActivityTaskFailedEventAttributes = a});---- | Undocumented member.-heLambdaFunctionScheduledEventAttributes :: Lens' HistoryEvent (Maybe LambdaFunctionScheduledEventAttributes)-heLambdaFunctionScheduledEventAttributes = lens _heLambdaFunctionScheduledEventAttributes (\ s a -> s{_heLambdaFunctionScheduledEventAttributes = a});---- | If the event is of type 'ChildWorkflowExecutionTimedOut' then this member is set and provides detailed information about the event. It is not set for other event types.-heChildWorkflowExecutionTimedOutEventAttributes :: Lens' HistoryEvent (Maybe ChildWorkflowExecutionTimedOutEventAttributes)-heChildWorkflowExecutionTimedOutEventAttributes = lens _heChildWorkflowExecutionTimedOutEventAttributes (\ s a -> s{_heChildWorkflowExecutionTimedOutEventAttributes = a});---- | If the event is of type 'CancelWorkflowExecutionFailed' then this member is set and provides detailed information about the event. It is not set for other event types.-heCancelWorkflowExecutionFailedEventAttributes :: Lens' HistoryEvent (Maybe CancelWorkflowExecutionFailedEventAttributes)-heCancelWorkflowExecutionFailedEventAttributes = lens _heCancelWorkflowExecutionFailedEventAttributes (\ s a -> s{_heCancelWorkflowExecutionFailedEventAttributes = a});---- | If the event is of type 'StartChildWorkflowExecutionInitiated' then this member is set and provides detailed information about the event. It is not set for other event types.-heStartChildWorkflowExecutionInitiatedEventAttributes :: Lens' HistoryEvent (Maybe StartChildWorkflowExecutionInitiatedEventAttributes)-heStartChildWorkflowExecutionInitiatedEventAttributes = lens _heStartChildWorkflowExecutionInitiatedEventAttributes (\ s a -> s{_heStartChildWorkflowExecutionInitiatedEventAttributes = a});---- | If the event is of type 'SignalExternalWorkflowExecutionFailed' then this member is set and provides detailed information about the event. It is not set for other event types.-heSignalExternalWorkflowExecutionFailedEventAttributes :: Lens' HistoryEvent (Maybe SignalExternalWorkflowExecutionFailedEventAttributes)-heSignalExternalWorkflowExecutionFailedEventAttributes = lens _heSignalExternalWorkflowExecutionFailedEventAttributes (\ s a -> s{_heSignalExternalWorkflowExecutionFailedEventAttributes = a});---- | If the event is of type 'ActivityTaskStarted' then this member is set and provides detailed information about the event. It is not set for other event types.-heActivityTaskStartedEventAttributes :: Lens' HistoryEvent (Maybe ActivityTaskStartedEventAttributes)-heActivityTaskStartedEventAttributes = lens _heActivityTaskStartedEventAttributes (\ s a -> s{_heActivityTaskStartedEventAttributes = a});---- | Undocumented member.-heStartLambdaFunctionFailedEventAttributes :: Lens' HistoryEvent (Maybe StartLambdaFunctionFailedEventAttributes)-heStartLambdaFunctionFailedEventAttributes = lens _heStartLambdaFunctionFailedEventAttributes (\ s a -> s{_heStartLambdaFunctionFailedEventAttributes = a});---- | If the event is of type 'ChildWorkflowExecutionTerminated' then this member is set and provides detailed information about the event. It is not set for other event types.-heChildWorkflowExecutionTerminatedEventAttributes :: Lens' HistoryEvent (Maybe ChildWorkflowExecutionTerminatedEventAttributes)-heChildWorkflowExecutionTerminatedEventAttributes = lens _heChildWorkflowExecutionTerminatedEventAttributes (\ s a -> s{_heChildWorkflowExecutionTerminatedEventAttributes = a});---- | Undocumented member.-heLambdaFunctionFailedEventAttributes :: Lens' HistoryEvent (Maybe LambdaFunctionFailedEventAttributes)-heLambdaFunctionFailedEventAttributes = lens _heLambdaFunctionFailedEventAttributes (\ s a -> s{_heLambdaFunctionFailedEventAttributes = a});---- | If the event is of type 'WorkflowExecutionCanceled' then this member is set and provides detailed information about the event. It is not set for other event types.-heWorkflowExecutionCanceledEventAttributes :: Lens' HistoryEvent (Maybe WorkflowExecutionCanceledEventAttributes)-heWorkflowExecutionCanceledEventAttributes = lens _heWorkflowExecutionCanceledEventAttributes (\ s a -> s{_heWorkflowExecutionCanceledEventAttributes = a});---- | If the event is of type 'TimerStarted' then this member is set and provides detailed information about the event. It is not set for other event types.-heTimerStartedEventAttributes :: Lens' HistoryEvent (Maybe TimerStartedEventAttributes)-heTimerStartedEventAttributes = lens _heTimerStartedEventAttributes (\ s a -> s{_heTimerStartedEventAttributes = a});---- | If the event is of type 'ActivityTaskcancelRequested' then this member is set and provides detailed information about the event. It is not set for other event types.-heActivityTaskCancelRequestedEventAttributes :: Lens' HistoryEvent (Maybe ActivityTaskCancelRequestedEventAttributes)-heActivityTaskCancelRequestedEventAttributes = lens _heActivityTaskCancelRequestedEventAttributes (\ s a -> s{_heActivityTaskCancelRequestedEventAttributes = a});---- | If the event is of type 'WorkflowExecutionTimedOut' then this member is set and provides detailed information about the event. It is not set for other event types.-heWorkflowExecutionTimedOutEventAttributes :: Lens' HistoryEvent (Maybe WorkflowExecutionTimedOutEventAttributes)-heWorkflowExecutionTimedOutEventAttributes = lens _heWorkflowExecutionTimedOutEventAttributes (\ s a -> s{_heWorkflowExecutionTimedOutEventAttributes = a});---- | If the event is of type 'WorkflowExecutionSignaled' then this member is set and provides detailed information about the event. It is not set for other event types.-heWorkflowExecutionSignaledEventAttributes :: Lens' HistoryEvent (Maybe WorkflowExecutionSignaledEventAttributes)-heWorkflowExecutionSignaledEventAttributes = lens _heWorkflowExecutionSignaledEventAttributes (\ s a -> s{_heWorkflowExecutionSignaledEventAttributes = a});---- | If the event is of type 'TimerFired' then this member is set and provides detailed information about the event. It is not set for other event types.-heTimerFiredEventAttributes :: Lens' HistoryEvent (Maybe TimerFiredEventAttributes)-heTimerFiredEventAttributes = lens _heTimerFiredEventAttributes (\ s a -> s{_heTimerFiredEventAttributes = a});---- | If the event is of type 'ActivityTaskFailed' then this member is set and provides detailed information about the event. It is not set for other event types.-heActivityTaskFailedEventAttributes :: Lens' HistoryEvent (Maybe ActivityTaskFailedEventAttributes)-heActivityTaskFailedEventAttributes = lens _heActivityTaskFailedEventAttributes (\ s a -> s{_heActivityTaskFailedEventAttributes = a});---- | If the event is of type 'ExternalWorkflowExecutionSignaled' then this member is set and provides detailed information about the event. It is not set for other event types.-heExternalWorkflowExecutionSignaledEventAttributes :: Lens' HistoryEvent (Maybe ExternalWorkflowExecutionSignaledEventAttributes)-heExternalWorkflowExecutionSignaledEventAttributes = lens _heExternalWorkflowExecutionSignaledEventAttributes (\ s a -> s{_heExternalWorkflowExecutionSignaledEventAttributes = a});---- | If the event is of type 'DecisionTaskCompleted' then this member is set and provides detailed information about the event. It is not set for other event types.-heDecisionTaskCompletedEventAttributes :: Lens' HistoryEvent (Maybe DecisionTaskCompletedEventAttributes)-heDecisionTaskCompletedEventAttributes = lens _heDecisionTaskCompletedEventAttributes (\ s a -> s{_heDecisionTaskCompletedEventAttributes = a});---- | If the event is of type 'StartChildWorkflowExecutionFailed' then this member is set and provides detailed information about the event. It is not set for other event types.-heStartChildWorkflowExecutionFailedEventAttributes :: Lens' HistoryEvent (Maybe StartChildWorkflowExecutionFailedEventAttributes)-heStartChildWorkflowExecutionFailedEventAttributes = lens _heStartChildWorkflowExecutionFailedEventAttributes (\ s a -> s{_heStartChildWorkflowExecutionFailedEventAttributes = a});---- | If the event is of type 'ChildWorkflowExecutionFailed' then this member is set and provides detailed information about the event. It is not set for other event types.-heChildWorkflowExecutionFailedEventAttributes :: Lens' HistoryEvent (Maybe ChildWorkflowExecutionFailedEventAttributes)-heChildWorkflowExecutionFailedEventAttributes = lens _heChildWorkflowExecutionFailedEventAttributes (\ s a -> s{_heChildWorkflowExecutionFailedEventAttributes = a});---- | If the event is of type 'FailWorkflowExecutionFailed' then this member is set and provides detailed information about the event. It is not set for other event types.-heFailWorkflowExecutionFailedEventAttributes :: Lens' HistoryEvent (Maybe FailWorkflowExecutionFailedEventAttributes)-heFailWorkflowExecutionFailedEventAttributes = lens _heFailWorkflowExecutionFailedEventAttributes (\ s a -> s{_heFailWorkflowExecutionFailedEventAttributes = a});---- | If the event is of type 'ContinueAsNewWorkflowExecutionFailed' then this member is set and provides detailed information about the event. It is not set for other event types.-heContinueAsNewWorkflowExecutionFailedEventAttributes :: Lens' HistoryEvent (Maybe ContinueAsNewWorkflowExecutionFailedEventAttributes)-heContinueAsNewWorkflowExecutionFailedEventAttributes = lens _heContinueAsNewWorkflowExecutionFailedEventAttributes (\ s a -> s{_heContinueAsNewWorkflowExecutionFailedEventAttributes = a});---- | If the event is of type 'SignalExternalWorkflowExecutionInitiated' then this member is set and provides detailed information about the event. It is not set for other event types.-heSignalExternalWorkflowExecutionInitiatedEventAttributes :: Lens' HistoryEvent (Maybe SignalExternalWorkflowExecutionInitiatedEventAttributes)-heSignalExternalWorkflowExecutionInitiatedEventAttributes = lens _heSignalExternalWorkflowExecutionInitiatedEventAttributes (\ s a -> s{_heSignalExternalWorkflowExecutionInitiatedEventAttributes = a});---- | Undocumented member.-heLambdaFunctionTimedOutEventAttributes :: Lens' HistoryEvent (Maybe LambdaFunctionTimedOutEventAttributes)-heLambdaFunctionTimedOutEventAttributes = lens _heLambdaFunctionTimedOutEventAttributes (\ s a -> s{_heLambdaFunctionTimedOutEventAttributes = a});---- | If the event is of type 'WorkflowExecutionFailed' then this member is set and provides detailed information about the event. It is not set for other event types.-heWorkflowExecutionFailedEventAttributes :: Lens' HistoryEvent (Maybe WorkflowExecutionFailedEventAttributes)-heWorkflowExecutionFailedEventAttributes = lens _heWorkflowExecutionFailedEventAttributes (\ s a -> s{_heWorkflowExecutionFailedEventAttributes = a});---- | If the event is of type 'WorkflowExecutionContinuedAsNew' then this member is set and provides detailed information about the event. It is not set for other event types.-heWorkflowExecutionContinuedAsNewEventAttributes :: Lens' HistoryEvent (Maybe WorkflowExecutionContinuedAsNewEventAttributes)-heWorkflowExecutionContinuedAsNewEventAttributes = lens _heWorkflowExecutionContinuedAsNewEventAttributes (\ s a -> s{_heWorkflowExecutionContinuedAsNewEventAttributes = a});---- | If the event is of type 'ExternalWorkflowExecutionCancelRequested' then this member is set and provides detailed information about the event. It is not set for other event types.-heExternalWorkflowExecutionCancelRequestedEventAttributes :: Lens' HistoryEvent (Maybe ExternalWorkflowExecutionCancelRequestedEventAttributes)-heExternalWorkflowExecutionCancelRequestedEventAttributes = lens _heExternalWorkflowExecutionCancelRequestedEventAttributes (\ s a -> s{_heExternalWorkflowExecutionCancelRequestedEventAttributes = a});---- | The date and time when the event occurred.-heEventTimestamp :: Lens' HistoryEvent UTCTime-heEventTimestamp = lens _heEventTimestamp (\ s a -> s{_heEventTimestamp = a}) . _Time;---- | The type of the history event.-heEventType :: Lens' HistoryEvent EventType-heEventType = lens _heEventType (\ s a -> s{_heEventType = a});---- | The system generated ID of the event. This ID uniquely identifies the event with in the workflow execution history.-heEventId :: Lens' HistoryEvent Integer-heEventId = lens _heEventId (\ s a -> s{_heEventId = a});--instance FromJSON HistoryEvent where-        parseJSON-          = withObject "HistoryEvent"-              (\ x ->-                 HistoryEvent' <$>-                   (x .:?-                      "workflowExecutionCancelRequestedEventAttributes")-                     <*> (x .:? "recordMarkerFailedEventAttributes")-                     <*>-                     (x .:?-                        "requestCancelExternalWorkflowExecutionInitiatedEventAttributes")-                     <*> (x .:? "lambdaFunctionStartedEventAttributes")-                     <*> (x .:? "decisionTaskScheduledEventAttributes")-                     <*>-                     (x .:? "workflowExecutionCompletedEventAttributes")-                     <*> (x .:? "startTimerFailedEventAttributes")-                     <*> (x .:? "activityTaskScheduledEventAttributes")-                     <*>-                     (x .:? "scheduleActivityTaskFailedEventAttributes")-                     <*>-                     (x .:?-                        "childWorkflowExecutionCompletedEventAttributes")-                     <*> (x .:? "markerRecordedEventAttributes")-                     <*>-                     (x .:? "scheduleLambdaFunctionFailedEventAttributes")-                     <*>-                     (x .:?-                        "completeWorkflowExecutionFailedEventAttributes")-                     <*> (x .:? "lambdaFunctionCompletedEventAttributes")-                     <*>-                     (x .:?-                        "requestCancelExternalWorkflowExecutionFailedEventAttributes")-                     <*> (x .:? "timerCanceledEventAttributes")-                     <*> (x .:? "workflowExecutionStartedEventAttributes")-                     <*> (x .:? "activityTaskCompletedEventAttributes")-                     <*> (x .:? "decisionTaskTimedOutEventAttributes")-                     <*> (x .:? "cancelTimerFailedEventAttributes")-                     <*>-                     (x .:?-                        "childWorkflowExecutionStartedEventAttributes")-                     <*> (x .:? "activityTaskCanceledEventAttributes")-                     <*> (x .:? "activityTaskTimedOutEventAttributes")-                     <*> (x .:? "decisionTaskStartedEventAttributes")-                     <*>-                     (x .:? "workflowExecutionTerminatedEventAttributes")-                     <*>-                     (x .:?-                        "childWorkflowExecutionCanceledEventAttributes")-                     <*>-                     (x .:?-                        "requestCancelActivityTaskFailedEventAttributes")-                     <*> (x .:? "lambdaFunctionScheduledEventAttributes")-                     <*>-                     (x .:?-                        "childWorkflowExecutionTimedOutEventAttributes")-                     <*>-                     (x .:?-                        "cancelWorkflowExecutionFailedEventAttributes")-                     <*>-                     (x .:?-                        "startChildWorkflowExecutionInitiatedEventAttributes")-                     <*>-                     (x .:?-                        "signalExternalWorkflowExecutionFailedEventAttributes")-                     <*> (x .:? "activityTaskStartedEventAttributes")-                     <*>-                     (x .:? "startLambdaFunctionFailedEventAttributes")-                     <*>-                     (x .:?-                        "childWorkflowExecutionTerminatedEventAttributes")-                     <*> (x .:? "lambdaFunctionFailedEventAttributes")-                     <*>-                     (x .:? "workflowExecutionCanceledEventAttributes")-                     <*> (x .:? "timerStartedEventAttributes")-                     <*>-                     (x .:? "activityTaskCancelRequestedEventAttributes")-                     <*>-                     (x .:? "workflowExecutionTimedOutEventAttributes")-                     <*>-                     (x .:? "workflowExecutionSignaledEventAttributes")-                     <*> (x .:? "timerFiredEventAttributes")-                     <*> (x .:? "activityTaskFailedEventAttributes")-                     <*>-                     (x .:?-                        "externalWorkflowExecutionSignaledEventAttributes")-                     <*> (x .:? "decisionTaskCompletedEventAttributes")-                     <*>-                     (x .:?-                        "startChildWorkflowExecutionFailedEventAttributes")-                     <*>-                     (x .:? "childWorkflowExecutionFailedEventAttributes")-                     <*>-                     (x .:? "failWorkflowExecutionFailedEventAttributes")-                     <*>-                     (x .:?-                        "continueAsNewWorkflowExecutionFailedEventAttributes")-                     <*>-                     (x .:?-                        "signalExternalWorkflowExecutionInitiatedEventAttributes")-                     <*> (x .:? "lambdaFunctionTimedOutEventAttributes")-                     <*> (x .:? "workflowExecutionFailedEventAttributes")-                     <*>-                     (x .:?-                        "workflowExecutionContinuedAsNewEventAttributes")-                     <*>-                     (x .:?-                        "externalWorkflowExecutionCancelRequestedEventAttributes")-                     <*> (x .: "eventTimestamp")-                     <*> (x .: "eventType")-                     <*> (x .: "eventId"))--instance Hashable HistoryEvent--instance NFData HistoryEvent---- | Provides details for the 'LambdaFunctionCompleted' event.------ /See:/ 'lambdaFunctionCompletedEventAttributes' smart constructor.-data LambdaFunctionCompletedEventAttributes = LambdaFunctionCompletedEventAttributes'-    { _lfceaResult           :: !(Maybe Text)-    , _lfceaScheduledEventId :: !Integer-    , _lfceaStartedEventId   :: !Integer-    } deriving (Eq,Read,Show,Data,Typeable,Generic)---- | Creates a value of 'LambdaFunctionCompletedEventAttributes' with the minimum fields required to make a request.------ Use one of the following lenses to modify other fields as desired:------ * 'lfceaResult'------ * 'lfceaScheduledEventId'------ * 'lfceaStartedEventId'-lambdaFunctionCompletedEventAttributes-    :: Integer -- ^ 'lfceaScheduledEventId'-    -> Integer -- ^ 'lfceaStartedEventId'-    -> LambdaFunctionCompletedEventAttributes-lambdaFunctionCompletedEventAttributes pScheduledEventId_ pStartedEventId_ =-    LambdaFunctionCompletedEventAttributes'-    { _lfceaResult = Nothing-    , _lfceaScheduledEventId = pScheduledEventId_-    , _lfceaStartedEventId = pStartedEventId_-    }---- | The result of the function execution (if any).-lfceaResult :: Lens' LambdaFunctionCompletedEventAttributes (Maybe Text)-lfceaResult = lens _lfceaResult (\ s a -> s{_lfceaResult = a});---- | The ID of the 'LambdaFunctionScheduled' event that was recorded when this AWS Lambda function was scheduled. This information can be useful for diagnosing problems by tracing back the chain of events leading up to this event.-lfceaScheduledEventId :: Lens' LambdaFunctionCompletedEventAttributes Integer-lfceaScheduledEventId = lens _lfceaScheduledEventId (\ s a -> s{_lfceaScheduledEventId = a});---- | The ID of the 'LambdaFunctionStarted' event recorded in the history.-lfceaStartedEventId :: Lens' LambdaFunctionCompletedEventAttributes Integer-lfceaStartedEventId = lens _lfceaStartedEventId (\ s a -> s{_lfceaStartedEventId = a});--instance FromJSON-         LambdaFunctionCompletedEventAttributes where-        parseJSON-          = withObject "LambdaFunctionCompletedEventAttributes"-              (\ x ->-                 LambdaFunctionCompletedEventAttributes' <$>-                   (x .:? "result") <*> (x .: "scheduledEventId") <*>-                     (x .: "startedEventId"))--instance Hashable-         LambdaFunctionCompletedEventAttributes--instance NFData-         LambdaFunctionCompletedEventAttributes---- | Provides details for the 'LambdaFunctionFailed' event.------ /See:/ 'lambdaFunctionFailedEventAttributes' smart constructor.-data LambdaFunctionFailedEventAttributes = LambdaFunctionFailedEventAttributes'-    { _lffeaReason           :: !(Maybe Text)-    , _lffeaDetails          :: !(Maybe Text)-    , _lffeaScheduledEventId :: !Integer-    , _lffeaStartedEventId   :: !Integer-    } deriving (Eq,Read,Show,Data,Typeable,Generic)---- | Creates a value of 'LambdaFunctionFailedEventAttributes' with the minimum fields required to make a request.------ Use one of the following lenses to modify other fields as desired:------ * 'lffeaReason'------ * 'lffeaDetails'------ * 'lffeaScheduledEventId'------ * 'lffeaStartedEventId'-lambdaFunctionFailedEventAttributes-    :: Integer -- ^ 'lffeaScheduledEventId'-    -> Integer -- ^ 'lffeaStartedEventId'-    -> LambdaFunctionFailedEventAttributes-lambdaFunctionFailedEventAttributes pScheduledEventId_ pStartedEventId_ =-    LambdaFunctionFailedEventAttributes'-    { _lffeaReason = Nothing-    , _lffeaDetails = Nothing-    , _lffeaScheduledEventId = pScheduledEventId_-    , _lffeaStartedEventId = pStartedEventId_-    }---- | The reason provided for the failure (if any).-lffeaReason :: Lens' LambdaFunctionFailedEventAttributes (Maybe Text)-lffeaReason = lens _lffeaReason (\ s a -> s{_lffeaReason = a});---- | The details of the failure (if any).-lffeaDetails :: Lens' LambdaFunctionFailedEventAttributes (Maybe Text)-lffeaDetails = lens _lffeaDetails (\ s a -> s{_lffeaDetails = a});---- | The ID of the 'LambdaFunctionScheduled' event that was recorded when this AWS Lambda function was scheduled. This information can be useful for diagnosing problems by tracing back the chain of events leading up to this event.-lffeaScheduledEventId :: Lens' LambdaFunctionFailedEventAttributes Integer-lffeaScheduledEventId = lens _lffeaScheduledEventId (\ s a -> s{_lffeaScheduledEventId = a});---- | The ID of the 'LambdaFunctionStarted' event recorded in the history.-lffeaStartedEventId :: Lens' LambdaFunctionFailedEventAttributes Integer-lffeaStartedEventId = lens _lffeaStartedEventId (\ s a -> s{_lffeaStartedEventId = a});--instance FromJSON LambdaFunctionFailedEventAttributes-         where-        parseJSON-          = withObject "LambdaFunctionFailedEventAttributes"-              (\ x ->-                 LambdaFunctionFailedEventAttributes' <$>-                   (x .:? "reason") <*> (x .:? "details") <*>-                     (x .: "scheduledEventId")-                     <*> (x .: "startedEventId"))--instance Hashable LambdaFunctionFailedEventAttributes--instance NFData LambdaFunctionFailedEventAttributes---- | Provides details for the 'LambdaFunctionScheduled' event.------ /See:/ 'lambdaFunctionScheduledEventAttributes' smart constructor.-data LambdaFunctionScheduledEventAttributes = LambdaFunctionScheduledEventAttributes'-    { _lfseaInput                        :: !(Maybe Text)-    , _lfseaStartToCloseTimeout          :: !(Maybe Text)-    , _lfseaId                           :: !Text-    , _lfseaName                         :: !Text-    , _lfseaDecisionTaskCompletedEventId :: !Integer-    } deriving (Eq,Read,Show,Data,Typeable,Generic)---- | Creates a value of 'LambdaFunctionScheduledEventAttributes' with the minimum fields required to make a request.------ Use one of the following lenses to modify other fields as desired:------ * 'lfseaInput'------ * 'lfseaStartToCloseTimeout'------ * 'lfseaId'------ * 'lfseaName'------ * 'lfseaDecisionTaskCompletedEventId'-lambdaFunctionScheduledEventAttributes-    :: Text -- ^ 'lfseaId'-    -> Text -- ^ 'lfseaName'-    -> Integer -- ^ 'lfseaDecisionTaskCompletedEventId'-    -> LambdaFunctionScheduledEventAttributes-lambdaFunctionScheduledEventAttributes pId_ pName_ pDecisionTaskCompletedEventId_ =-    LambdaFunctionScheduledEventAttributes'-    { _lfseaInput = Nothing-    , _lfseaStartToCloseTimeout = Nothing-    , _lfseaId = pId_-    , _lfseaName = pName_-    , _lfseaDecisionTaskCompletedEventId = pDecisionTaskCompletedEventId_-    }---- | Input provided to the AWS Lambda function.-lfseaInput :: Lens' LambdaFunctionScheduledEventAttributes (Maybe Text)-lfseaInput = lens _lfseaInput (\ s a -> s{_lfseaInput = a});---- | The maximum time, in seconds, that the AWS Lambda function can take to execute from start to close before it is marked as failed.-lfseaStartToCloseTimeout :: Lens' LambdaFunctionScheduledEventAttributes (Maybe Text)-lfseaStartToCloseTimeout = lens _lfseaStartToCloseTimeout (\ s a -> s{_lfseaStartToCloseTimeout = a});---- | The unique Amazon SWF ID for the AWS Lambda task.-lfseaId :: Lens' LambdaFunctionScheduledEventAttributes Text-lfseaId = lens _lfseaId (\ s a -> s{_lfseaId = a});---- | The name of the scheduled AWS Lambda function.-lfseaName :: Lens' LambdaFunctionScheduledEventAttributes Text-lfseaName = lens _lfseaName (\ s a -> s{_lfseaName = a});---- | The ID of the 'DecisionTaskCompleted' event for the decision that resulted in the scheduling of this AWS Lambda function. This information can be useful for diagnosing problems by tracing back the chain of events leading up to this event.-lfseaDecisionTaskCompletedEventId :: Lens' LambdaFunctionScheduledEventAttributes Integer-lfseaDecisionTaskCompletedEventId = lens _lfseaDecisionTaskCompletedEventId (\ s a -> s{_lfseaDecisionTaskCompletedEventId = a});--instance FromJSON-         LambdaFunctionScheduledEventAttributes where-        parseJSON-          = withObject "LambdaFunctionScheduledEventAttributes"-              (\ x ->-                 LambdaFunctionScheduledEventAttributes' <$>-                   (x .:? "input") <*> (x .:? "startToCloseTimeout") <*>-                     (x .: "id")-                     <*> (x .: "name")-                     <*> (x .: "decisionTaskCompletedEventId"))--instance Hashable-         LambdaFunctionScheduledEventAttributes--instance NFData-         LambdaFunctionScheduledEventAttributes---- | Provides details for the 'LambdaFunctionStarted' event.------ /See:/ 'lambdaFunctionStartedEventAttributes' smart constructor.-newtype LambdaFunctionStartedEventAttributes = LambdaFunctionStartedEventAttributes'-    { _lfseaScheduledEventId :: Integer-    } deriving (Eq,Read,Show,Data,Typeable,Generic)---- | Creates a value of 'LambdaFunctionStartedEventAttributes' with the minimum fields required to make a request.------ Use one of the following lenses to modify other fields as desired:------ * 'lfseaScheduledEventId'-lambdaFunctionStartedEventAttributes-    :: Integer -- ^ 'lfseaScheduledEventId'-    -> LambdaFunctionStartedEventAttributes-lambdaFunctionStartedEventAttributes pScheduledEventId_ =-    LambdaFunctionStartedEventAttributes'-    { _lfseaScheduledEventId = pScheduledEventId_-    }---- | The ID of the 'LambdaFunctionScheduled' event that was recorded when this AWS Lambda function was scheduled. This information can be useful for diagnosing problems by tracing back the chain of events leading up to this event.-lfseaScheduledEventId :: Lens' LambdaFunctionStartedEventAttributes Integer-lfseaScheduledEventId = lens _lfseaScheduledEventId (\ s a -> s{_lfseaScheduledEventId = a});--instance FromJSON-         LambdaFunctionStartedEventAttributes where-        parseJSON-          = withObject "LambdaFunctionStartedEventAttributes"-              (\ x ->-                 LambdaFunctionStartedEventAttributes' <$>-                   (x .: "scheduledEventId"))--instance Hashable-         LambdaFunctionStartedEventAttributes--instance NFData LambdaFunctionStartedEventAttributes---- | Provides details for the 'LambdaFunctionTimedOut' event.------ /See:/ 'lambdaFunctionTimedOutEventAttributes' smart constructor.-data LambdaFunctionTimedOutEventAttributes = LambdaFunctionTimedOutEventAttributes'-    { _lftoeaTimeoutType      :: !(Maybe LambdaFunctionTimeoutType)-    , _lftoeaScheduledEventId :: !Integer-    , _lftoeaStartedEventId   :: !Integer-    } deriving (Eq,Read,Show,Data,Typeable,Generic)---- | Creates a value of 'LambdaFunctionTimedOutEventAttributes' with the minimum fields required to make a request.------ Use one of the following lenses to modify other fields as desired:------ * 'lftoeaTimeoutType'------ * 'lftoeaScheduledEventId'------ * 'lftoeaStartedEventId'-lambdaFunctionTimedOutEventAttributes-    :: Integer -- ^ 'lftoeaScheduledEventId'-    -> Integer -- ^ 'lftoeaStartedEventId'-    -> LambdaFunctionTimedOutEventAttributes-lambdaFunctionTimedOutEventAttributes pScheduledEventId_ pStartedEventId_ =-    LambdaFunctionTimedOutEventAttributes'-    { _lftoeaTimeoutType = Nothing-    , _lftoeaScheduledEventId = pScheduledEventId_-    , _lftoeaStartedEventId = pStartedEventId_-    }---- | The type of the timeout that caused this event.-lftoeaTimeoutType :: Lens' LambdaFunctionTimedOutEventAttributes (Maybe LambdaFunctionTimeoutType)-lftoeaTimeoutType = lens _lftoeaTimeoutType (\ s a -> s{_lftoeaTimeoutType = a});---- | The ID of the 'LambdaFunctionScheduled' event that was recorded when this AWS Lambda function was scheduled. This information can be useful for diagnosing problems by tracing back the chain of events leading up to this event.-lftoeaScheduledEventId :: Lens' LambdaFunctionTimedOutEventAttributes Integer-lftoeaScheduledEventId = lens _lftoeaScheduledEventId (\ s a -> s{_lftoeaScheduledEventId = a});---- | The ID of the 'LambdaFunctionStarted' event recorded in the history.-lftoeaStartedEventId :: Lens' LambdaFunctionTimedOutEventAttributes Integer-lftoeaStartedEventId = lens _lftoeaStartedEventId (\ s a -> s{_lftoeaStartedEventId = a});--instance FromJSON-         LambdaFunctionTimedOutEventAttributes where-        parseJSON-          = withObject "LambdaFunctionTimedOutEventAttributes"-              (\ x ->-                 LambdaFunctionTimedOutEventAttributes' <$>-                   (x .:? "timeoutType") <*> (x .: "scheduledEventId")-                     <*> (x .: "startedEventId"))--instance Hashable-         LambdaFunctionTimedOutEventAttributes--instance NFData LambdaFunctionTimedOutEventAttributes---- | Provides details of the 'MarkerRecorded' event.------ /See:/ 'markerRecordedEventAttributes' smart constructor.-data MarkerRecordedEventAttributes = MarkerRecordedEventAttributes'-    { _mreaDetails                      :: !(Maybe Text)-    , _mreaMarkerName                   :: !Text-    , _mreaDecisionTaskCompletedEventId :: !Integer-    } deriving (Eq,Read,Show,Data,Typeable,Generic)---- | Creates a value of 'MarkerRecordedEventAttributes' with the minimum fields required to make a request.------ Use one of the following lenses to modify other fields as desired:------ * 'mreaDetails'------ * 'mreaMarkerName'------ * 'mreaDecisionTaskCompletedEventId'-markerRecordedEventAttributes-    :: Text -- ^ 'mreaMarkerName'-    -> Integer -- ^ 'mreaDecisionTaskCompletedEventId'-    -> MarkerRecordedEventAttributes-markerRecordedEventAttributes pMarkerName_ pDecisionTaskCompletedEventId_ =-    MarkerRecordedEventAttributes'-    { _mreaDetails = Nothing-    , _mreaMarkerName = pMarkerName_-    , _mreaDecisionTaskCompletedEventId = pDecisionTaskCompletedEventId_-    }---- | Details of the marker (if any).-mreaDetails :: Lens' MarkerRecordedEventAttributes (Maybe Text)-mreaDetails = lens _mreaDetails (\ s a -> s{_mreaDetails = a});---- | The name of the marker.-mreaMarkerName :: Lens' MarkerRecordedEventAttributes Text-mreaMarkerName = lens _mreaMarkerName (\ s a -> s{_mreaMarkerName = a});---- | The ID of the 'DecisionTaskCompleted' event corresponding to the decision task that resulted in the 'RecordMarker' 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-mreaDecisionTaskCompletedEventId = lens _mreaDecisionTaskCompletedEventId (\ s a -> s{_mreaDecisionTaskCompletedEventId = a});--instance FromJSON MarkerRecordedEventAttributes where-        parseJSON-          = withObject "MarkerRecordedEventAttributes"-              (\ x ->-                 MarkerRecordedEventAttributes' <$>-                   (x .:? "details") <*> (x .: "markerName") <*>-                     (x .: "decisionTaskCompletedEventId"))--instance Hashable MarkerRecordedEventAttributes--instance NFData MarkerRecordedEventAttributes---- | Contains the count of tasks in a task list.------ /See:/ 'pendingTaskCount' smart constructor.-data PendingTaskCount = PendingTaskCount'-    { _ptcTruncated :: !(Maybe Bool)-    , _ptcCount     :: !Nat-    } deriving (Eq,Read,Show,Data,Typeable,Generic)---- | Creates a value of 'PendingTaskCount' with the minimum fields required to make a request.------ Use one of the following lenses to modify other fields as desired:------ * 'ptcTruncated'------ * 'ptcCount'-pendingTaskCount-    :: Natural -- ^ 'ptcCount'-    -> PendingTaskCount-pendingTaskCount pCount_ =-    PendingTaskCount'-    { _ptcTruncated = Nothing-    , _ptcCount = _Nat # pCount_-    }---- | 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)-ptcTruncated = lens _ptcTruncated (\ s a -> s{_ptcTruncated = a});---- | The number of tasks in the task list.-ptcCount :: Lens' PendingTaskCount Natural-ptcCount = lens _ptcCount (\ s a -> s{_ptcCount = a}) . _Nat;--instance FromJSON PendingTaskCount where-        parseJSON-          = withObject "PendingTaskCount"-              (\ x ->-                 PendingTaskCount' <$>-                   (x .:? "truncated") <*> (x .: "count"))--instance Hashable PendingTaskCount--instance NFData PendingTaskCount---- | Provides details of the 'RecordMarker' decision.------ __Access Control__------ You can use IAM policies to control this decision\'s access to Amazon SWF resources as follows:------ -   Use a 'Resource' element with the domain name to limit the action to only specified domains.--- -   Use an 'Action' element to allow or deny permission to call this action.--- -   You cannot use an IAM policy to constrain this action\'s parameters.------ If the caller does not have sufficient permissions to invoke the action, or the parameter values fall outside the specified constraints, the action fails. The associated event attribute\'s __cause__ parameter will be set to OPERATION_NOT_PERMITTED. For details and example IAM policies, see <http://docs.aws.amazon.com/amazonswf/latest/developerguide/swf-dev-iam.html Using IAM to Manage Access to Amazon SWF Workflows>.------ /See:/ 'recordMarkerDecisionAttributes' smart constructor.-data RecordMarkerDecisionAttributes = RecordMarkerDecisionAttributes'-    { _rmdaDetails    :: !(Maybe Text)-    , _rmdaMarkerName :: !Text-    } deriving (Eq,Read,Show,Data,Typeable,Generic)---- | Creates a value of 'RecordMarkerDecisionAttributes' with the minimum fields required to make a request.------ Use one of the following lenses to modify other fields as desired:------ * 'rmdaDetails'------ * 'rmdaMarkerName'-recordMarkerDecisionAttributes-    :: Text -- ^ 'rmdaMarkerName'-    -> RecordMarkerDecisionAttributes-recordMarkerDecisionAttributes pMarkerName_ =-    RecordMarkerDecisionAttributes'-    { _rmdaDetails = Nothing-    , _rmdaMarkerName = pMarkerName_-    }---- | /Optional./ details of the marker.-rmdaDetails :: Lens' RecordMarkerDecisionAttributes (Maybe Text)-rmdaDetails = lens _rmdaDetails (\ s a -> s{_rmdaDetails = a});---- | __Required.__ The name of the marker.-rmdaMarkerName :: Lens' RecordMarkerDecisionAttributes Text-rmdaMarkerName = lens _rmdaMarkerName (\ s a -> s{_rmdaMarkerName = a});--instance Hashable RecordMarkerDecisionAttributes--instance NFData RecordMarkerDecisionAttributes--instance ToJSON RecordMarkerDecisionAttributes where-        toJSON RecordMarkerDecisionAttributes'{..}-          = object-              (catMaybes-                 [("details" .=) <$> _rmdaDetails,-                  Just ("markerName" .= _rmdaMarkerName)])---- | Provides details of the 'RecordMarkerFailed' event.------ /See:/ 'recordMarkerFailedEventAttributes' smart constructor.-data RecordMarkerFailedEventAttributes = RecordMarkerFailedEventAttributes'-    { _rmfeaMarkerName                   :: !Text-    , _rmfeaCause                        :: !RecordMarkerFailedCause-    , _rmfeaDecisionTaskCompletedEventId :: !Integer-    } deriving (Eq,Read,Show,Data,Typeable,Generic)---- | Creates a value of 'RecordMarkerFailedEventAttributes' with the minimum fields required to make a request.------ Use one of the following lenses to modify other fields as desired:------ * 'rmfeaMarkerName'------ * 'rmfeaCause'------ * 'rmfeaDecisionTaskCompletedEventId'-recordMarkerFailedEventAttributes-    :: Text -- ^ 'rmfeaMarkerName'-    -> RecordMarkerFailedCause -- ^ 'rmfeaCause'-    -> Integer -- ^ 'rmfeaDecisionTaskCompletedEventId'-    -> RecordMarkerFailedEventAttributes-recordMarkerFailedEventAttributes pMarkerName_ pCause_ pDecisionTaskCompletedEventId_ =-    RecordMarkerFailedEventAttributes'-    { _rmfeaMarkerName = pMarkerName_-    , _rmfeaCause = pCause_-    , _rmfeaDecisionTaskCompletedEventId = pDecisionTaskCompletedEventId_-    }---- | The marker\'s name.-rmfeaMarkerName :: Lens' RecordMarkerFailedEventAttributes Text-rmfeaMarkerName = lens _rmfeaMarkerName (\ s a -> s{_rmfeaMarkerName = a});---- | The cause of the failure. This information is generated by the system and can be useful for diagnostic purposes.------ If __cause__ is set to OPERATION_NOT_PERMITTED, the decision failed because it lacked sufficient permissions. For details and example IAM policies, see <http://docs.aws.amazon.com/amazonswf/latest/developerguide/swf-dev-iam.html Using IAM to Manage Access to Amazon SWF Workflows>.-rmfeaCause :: Lens' RecordMarkerFailedEventAttributes RecordMarkerFailedCause-rmfeaCause = lens _rmfeaCause (\ s a -> s{_rmfeaCause = a});---- | The ID of the 'DecisionTaskCompleted' event corresponding to the decision task that resulted in the 'RecordMarkerFailed' 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-rmfeaDecisionTaskCompletedEventId = lens _rmfeaDecisionTaskCompletedEventId (\ s a -> s{_rmfeaDecisionTaskCompletedEventId = a});--instance FromJSON RecordMarkerFailedEventAttributes-         where-        parseJSON-          = withObject "RecordMarkerFailedEventAttributes"-              (\ x ->-                 RecordMarkerFailedEventAttributes' <$>-                   (x .: "markerName") <*> (x .: "cause") <*>-                     (x .: "decisionTaskCompletedEventId"))--instance Hashable RecordMarkerFailedEventAttributes--instance NFData RecordMarkerFailedEventAttributes---- | Provides details of the 'RequestCancelActivityTask' decision.------ __Access Control__------ You can use IAM policies to control this decision\'s access to Amazon SWF resources as follows:------ -   Use a 'Resource' element with the domain name to limit the action to only specified domains.--- -   Use an 'Action' element to allow or deny permission to call this action.--- -   You cannot use an IAM policy to constrain this action\'s parameters.------ If the caller does not have sufficient permissions to invoke the action, or the parameter values fall outside the specified constraints, the action fails. The associated event attribute\'s __cause__ parameter will be set to OPERATION_NOT_PERMITTED. For details and example IAM policies, see <http://docs.aws.amazon.com/amazonswf/latest/developerguide/swf-dev-iam.html Using IAM to Manage Access to Amazon SWF Workflows>.------ /See:/ 'requestCancelActivityTaskDecisionAttributes' smart constructor.-newtype RequestCancelActivityTaskDecisionAttributes = RequestCancelActivityTaskDecisionAttributes'-    { _rcatdaActivityId :: Text-    } deriving (Eq,Read,Show,Data,Typeable,Generic)---- | Creates a value of 'RequestCancelActivityTaskDecisionAttributes' with the minimum fields required to make a request.------ Use one of the following lenses to modify other fields as desired:------ * 'rcatdaActivityId'-requestCancelActivityTaskDecisionAttributes-    :: Text -- ^ 'rcatdaActivityId'-    -> RequestCancelActivityTaskDecisionAttributes-requestCancelActivityTaskDecisionAttributes pActivityId_ =-    RequestCancelActivityTaskDecisionAttributes'-    { _rcatdaActivityId = pActivityId_-    }---- | The 'activityId' of the activity task to be canceled.-rcatdaActivityId :: Lens' RequestCancelActivityTaskDecisionAttributes Text-rcatdaActivityId = lens _rcatdaActivityId (\ s a -> s{_rcatdaActivityId = a});--instance Hashable-         RequestCancelActivityTaskDecisionAttributes--instance NFData-         RequestCancelActivityTaskDecisionAttributes--instance ToJSON-         RequestCancelActivityTaskDecisionAttributes where-        toJSON-          RequestCancelActivityTaskDecisionAttributes'{..}-          = object-              (catMaybes-                 [Just ("activityId" .= _rcatdaActivityId)])---- | Provides details of the 'RequestCancelActivityTaskFailed' event.------ /See:/ 'requestCancelActivityTaskFailedEventAttributes' smart constructor.-data RequestCancelActivityTaskFailedEventAttributes = RequestCancelActivityTaskFailedEventAttributes'-    { _rcatfeaActivityId                   :: !Text-    , _rcatfeaCause                        :: !RequestCancelActivityTaskFailedCause-    , _rcatfeaDecisionTaskCompletedEventId :: !Integer-    } deriving (Eq,Read,Show,Data,Typeable,Generic)---- | Creates a value of 'RequestCancelActivityTaskFailedEventAttributes' with the minimum fields required to make a request.------ Use one of the following lenses to modify other fields as desired:------ * 'rcatfeaActivityId'------ * 'rcatfeaCause'------ * 'rcatfeaDecisionTaskCompletedEventId'-requestCancelActivityTaskFailedEventAttributes-    :: Text -- ^ 'rcatfeaActivityId'-    -> RequestCancelActivityTaskFailedCause -- ^ 'rcatfeaCause'-    -> Integer -- ^ 'rcatfeaDecisionTaskCompletedEventId'-    -> RequestCancelActivityTaskFailedEventAttributes-requestCancelActivityTaskFailedEventAttributes pActivityId_ pCause_ pDecisionTaskCompletedEventId_ =-    RequestCancelActivityTaskFailedEventAttributes'-    { _rcatfeaActivityId = pActivityId_-    , _rcatfeaCause = pCause_-    , _rcatfeaDecisionTaskCompletedEventId = pDecisionTaskCompletedEventId_-    }---- | The activityId provided in the 'RequestCancelActivityTask' decision that failed.-rcatfeaActivityId :: Lens' RequestCancelActivityTaskFailedEventAttributes Text-rcatfeaActivityId = lens _rcatfeaActivityId (\ s a -> s{_rcatfeaActivityId = a});---- | The cause of the failure. This information is generated by the system and can be useful for diagnostic purposes.------ If __cause__ is set to OPERATION_NOT_PERMITTED, the decision failed because it lacked sufficient permissions. For details and example IAM policies, see <http://docs.aws.amazon.com/amazonswf/latest/developerguide/swf-dev-iam.html Using IAM to Manage Access to Amazon SWF Workflows>.-rcatfeaCause :: Lens' RequestCancelActivityTaskFailedEventAttributes RequestCancelActivityTaskFailedCause-rcatfeaCause = lens _rcatfeaCause (\ s a -> s{_rcatfeaCause = a});---- | The ID of the 'DecisionTaskCompleted' event corresponding to the decision task that resulted in the 'RequestCancelActivityTask' 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-rcatfeaDecisionTaskCompletedEventId = lens _rcatfeaDecisionTaskCompletedEventId (\ s a -> s{_rcatfeaDecisionTaskCompletedEventId = a});--instance FromJSON-         RequestCancelActivityTaskFailedEventAttributes where-        parseJSON-          = withObject-              "RequestCancelActivityTaskFailedEventAttributes"-              (\ x ->-                 RequestCancelActivityTaskFailedEventAttributes' <$>-                   (x .: "activityId") <*> (x .: "cause") <*>-                     (x .: "decisionTaskCompletedEventId"))--instance Hashable-         RequestCancelActivityTaskFailedEventAttributes--instance NFData-         RequestCancelActivityTaskFailedEventAttributes---- | Provides details of the 'RequestCancelExternalWorkflowExecution' decision.------ __Access Control__------ You can use IAM policies to control this decision\'s access to Amazon SWF resources as follows:------ -   Use a 'Resource' element with the domain name to limit the action to only specified domains.--- -   Use an 'Action' element to allow or deny permission to call this action.--- -   You cannot use an IAM policy to constrain this action\'s parameters.------ If the caller does not have sufficient permissions to invoke the action, or the parameter values fall outside the specified constraints, the action fails. The associated event attribute\'s __cause__ parameter will be set to OPERATION_NOT_PERMITTED. For details and example IAM policies, see <http://docs.aws.amazon.com/amazonswf/latest/developerguide/swf-dev-iam.html Using IAM to Manage Access to Amazon SWF Workflows>.------ /See:/ 'requestCancelExternalWorkflowExecutionDecisionAttributes' smart constructor.-data RequestCancelExternalWorkflowExecutionDecisionAttributes = RequestCancelExternalWorkflowExecutionDecisionAttributes'-    { _rcewedaControl    :: !(Maybe Text)-    , _rcewedaRunId      :: !(Maybe Text)-    , _rcewedaWorkflowId :: !Text-    } deriving (Eq,Read,Show,Data,Typeable,Generic)---- | Creates a value of 'RequestCancelExternalWorkflowExecutionDecisionAttributes' with the minimum fields required to make a request.------ Use one of the following lenses to modify other fields as desired:------ * 'rcewedaControl'------ * 'rcewedaRunId'------ * 'rcewedaWorkflowId'-requestCancelExternalWorkflowExecutionDecisionAttributes-    :: Text -- ^ 'rcewedaWorkflowId'-    -> RequestCancelExternalWorkflowExecutionDecisionAttributes-requestCancelExternalWorkflowExecutionDecisionAttributes pWorkflowId_ =-    RequestCancelExternalWorkflowExecutionDecisionAttributes'-    { _rcewedaControl = Nothing-    , _rcewedaRunId = Nothing-    , _rcewedaWorkflowId = pWorkflowId_-    }---- | /Optional./ Data attached to the event that can be used by the decider in subsequent workflow tasks.-rcewedaControl :: Lens' RequestCancelExternalWorkflowExecutionDecisionAttributes (Maybe Text)-rcewedaControl = lens _rcewedaControl (\ s a -> s{_rcewedaControl = a});---- | The 'runId' of the external workflow execution to cancel.-rcewedaRunId :: Lens' RequestCancelExternalWorkflowExecutionDecisionAttributes (Maybe Text)-rcewedaRunId = lens _rcewedaRunId (\ s a -> s{_rcewedaRunId = a});---- | __Required.__ The 'workflowId' of the external workflow execution to cancel.-rcewedaWorkflowId :: Lens' RequestCancelExternalWorkflowExecutionDecisionAttributes Text-rcewedaWorkflowId = lens _rcewedaWorkflowId (\ s a -> s{_rcewedaWorkflowId = a});--instance Hashable-         RequestCancelExternalWorkflowExecutionDecisionAttributes--instance NFData-         RequestCancelExternalWorkflowExecutionDecisionAttributes--instance ToJSON-         RequestCancelExternalWorkflowExecutionDecisionAttributes-         where-        toJSON-          RequestCancelExternalWorkflowExecutionDecisionAttributes'{..}-          = object-              (catMaybes-                 [("control" .=) <$> _rcewedaControl,-                  ("runId" .=) <$> _rcewedaRunId,-                  Just ("workflowId" .= _rcewedaWorkflowId)])---- | Provides details of the 'RequestCancelExternalWorkflowExecutionFailed' event.------ /See:/ 'requestCancelExternalWorkflowExecutionFailedEventAttributes' smart constructor.-data RequestCancelExternalWorkflowExecutionFailedEventAttributes = RequestCancelExternalWorkflowExecutionFailedEventAttributes'-    { _rcewefeaControl                      :: !(Maybe Text)-    , _rcewefeaRunId                        :: !(Maybe Text)-    , _rcewefeaWorkflowId                   :: !Text-    , _rcewefeaCause                        :: !RequestCancelExternalWorkflowExecutionFailedCause-    , _rcewefeaInitiatedEventId             :: !Integer-    , _rcewefeaDecisionTaskCompletedEventId :: !Integer-    } deriving (Eq,Read,Show,Data,Typeable,Generic)---- | Creates a value of 'RequestCancelExternalWorkflowExecutionFailedEventAttributes' with the minimum fields required to make a request.------ Use one of the following lenses to modify other fields as desired:------ * 'rcewefeaControl'------ * 'rcewefeaRunId'------ * 'rcewefeaWorkflowId'------ * 'rcewefeaCause'------ * 'rcewefeaInitiatedEventId'------ * 'rcewefeaDecisionTaskCompletedEventId'-requestCancelExternalWorkflowExecutionFailedEventAttributes-    :: Text -- ^ 'rcewefeaWorkflowId'-    -> RequestCancelExternalWorkflowExecutionFailedCause -- ^ 'rcewefeaCause'-    -> Integer -- ^ 'rcewefeaInitiatedEventId'-    -> Integer -- ^ 'rcewefeaDecisionTaskCompletedEventId'-    -> RequestCancelExternalWorkflowExecutionFailedEventAttributes-requestCancelExternalWorkflowExecutionFailedEventAttributes pWorkflowId_ pCause_ pInitiatedEventId_ pDecisionTaskCompletedEventId_ =-    RequestCancelExternalWorkflowExecutionFailedEventAttributes'-    { _rcewefeaControl = Nothing-    , _rcewefeaRunId = Nothing-    , _rcewefeaWorkflowId = pWorkflowId_-    , _rcewefeaCause = pCause_-    , _rcewefeaInitiatedEventId = pInitiatedEventId_-    , _rcewefeaDecisionTaskCompletedEventId = pDecisionTaskCompletedEventId_-    }---- | Undocumented member.-rcewefeaControl :: Lens' RequestCancelExternalWorkflowExecutionFailedEventAttributes (Maybe Text)-rcewefeaControl = lens _rcewefeaControl (\ s a -> s{_rcewefeaControl = a});---- | The 'runId' of the external workflow execution.-rcewefeaRunId :: Lens' RequestCancelExternalWorkflowExecutionFailedEventAttributes (Maybe Text)-rcewefeaRunId = lens _rcewefeaRunId (\ s a -> s{_rcewefeaRunId = a});---- | The 'workflowId' of the external workflow to which the cancel request was to be delivered.-rcewefeaWorkflowId :: Lens' RequestCancelExternalWorkflowExecutionFailedEventAttributes Text-rcewefeaWorkflowId = lens _rcewefeaWorkflowId (\ s a -> s{_rcewefeaWorkflowId = a});---- | The cause of the failure. This information is generated by the system and can be useful for diagnostic purposes.------ If __cause__ is set to OPERATION_NOT_PERMITTED, the decision failed because it lacked sufficient permissions. For details and example IAM policies, see <http://docs.aws.amazon.com/amazonswf/latest/developerguide/swf-dev-iam.html Using IAM to Manage Access to Amazon SWF Workflows>.-rcewefeaCause :: Lens' RequestCancelExternalWorkflowExecutionFailedEventAttributes RequestCancelExternalWorkflowExecutionFailedCause-rcewefeaCause = lens _rcewefeaCause (\ s a -> s{_rcewefeaCause = a});---- | The ID of the 'RequestCancelExternalWorkflowExecutionInitiated' event corresponding to the 'RequestCancelExternalWorkflowExecution' 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-rcewefeaInitiatedEventId = lens _rcewefeaInitiatedEventId (\ s a -> s{_rcewefeaInitiatedEventId = a});---- | The ID of the 'DecisionTaskCompleted' event corresponding to the decision task that resulted in the 'RequestCancelExternalWorkflowExecution' 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-rcewefeaDecisionTaskCompletedEventId = lens _rcewefeaDecisionTaskCompletedEventId (\ s a -> s{_rcewefeaDecisionTaskCompletedEventId = a});--instance FromJSON-         RequestCancelExternalWorkflowExecutionFailedEventAttributes-         where-        parseJSON-          = withObject-              "RequestCancelExternalWorkflowExecutionFailedEventAttributes"-              (\ x ->-                 RequestCancelExternalWorkflowExecutionFailedEventAttributes'-                   <$>-                   (x .:? "control") <*> (x .:? "runId") <*>-                     (x .: "workflowId")-                     <*> (x .: "cause")-                     <*> (x .: "initiatedEventId")-                     <*> (x .: "decisionTaskCompletedEventId"))--instance Hashable-         RequestCancelExternalWorkflowExecutionFailedEventAttributes--instance NFData-         RequestCancelExternalWorkflowExecutionFailedEventAttributes---- | Provides details of the 'RequestCancelExternalWorkflowExecutionInitiated' event.------ /See:/ 'requestCancelExternalWorkflowExecutionInitiatedEventAttributes' smart constructor.-data RequestCancelExternalWorkflowExecutionInitiatedEventAttributes = RequestCancelExternalWorkflowExecutionInitiatedEventAttributes'-    { _rceweieaControl                      :: !(Maybe Text)-    , _rceweieaRunId                        :: !(Maybe Text)-    , _rceweieaWorkflowId                   :: !Text-    , _rceweieaDecisionTaskCompletedEventId :: !Integer-    } deriving (Eq,Read,Show,Data,Typeable,Generic)---- | Creates a value of 'RequestCancelExternalWorkflowExecutionInitiatedEventAttributes' with the minimum fields required to make a request.------ Use one of the following lenses to modify other fields as desired:------ * 'rceweieaControl'------ * 'rceweieaRunId'------ * 'rceweieaWorkflowId'------ * 'rceweieaDecisionTaskCompletedEventId'-requestCancelExternalWorkflowExecutionInitiatedEventAttributes-    :: Text -- ^ 'rceweieaWorkflowId'-    -> Integer -- ^ 'rceweieaDecisionTaskCompletedEventId'-    -> RequestCancelExternalWorkflowExecutionInitiatedEventAttributes-requestCancelExternalWorkflowExecutionInitiatedEventAttributes pWorkflowId_ pDecisionTaskCompletedEventId_ =-    RequestCancelExternalWorkflowExecutionInitiatedEventAttributes'-    { _rceweieaControl = Nothing-    , _rceweieaRunId = Nothing-    , _rceweieaWorkflowId = pWorkflowId_-    , _rceweieaDecisionTaskCompletedEventId = pDecisionTaskCompletedEventId_-    }---- | /Optional./ Data attached to the event that can be used by the decider in subsequent workflow tasks.-rceweieaControl :: Lens' RequestCancelExternalWorkflowExecutionInitiatedEventAttributes (Maybe Text)-rceweieaControl = lens _rceweieaControl (\ s a -> s{_rceweieaControl = a});---- | The 'runId' of the external workflow execution to be canceled.-rceweieaRunId :: Lens' RequestCancelExternalWorkflowExecutionInitiatedEventAttributes (Maybe Text)-rceweieaRunId = lens _rceweieaRunId (\ s a -> s{_rceweieaRunId = a});---- | The 'workflowId' of the external workflow execution to be canceled.-rceweieaWorkflowId :: Lens' RequestCancelExternalWorkflowExecutionInitiatedEventAttributes Text-rceweieaWorkflowId = lens _rceweieaWorkflowId (\ s a -> s{_rceweieaWorkflowId = a});---- | The ID of the 'DecisionTaskCompleted' event corresponding to the decision task that resulted in the 'RequestCancelExternalWorkflowExecution' 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-rceweieaDecisionTaskCompletedEventId = lens _rceweieaDecisionTaskCompletedEventId (\ s a -> s{_rceweieaDecisionTaskCompletedEventId = a});--instance FromJSON-         RequestCancelExternalWorkflowExecutionInitiatedEventAttributes-         where-        parseJSON-          = withObject-              "RequestCancelExternalWorkflowExecutionInitiatedEventAttributes"-              (\ x ->-                 RequestCancelExternalWorkflowExecutionInitiatedEventAttributes'-                   <$>-                   (x .:? "control") <*> (x .:? "runId") <*>-                     (x .: "workflowId")-                     <*> (x .: "decisionTaskCompletedEventId"))--instance Hashable-         RequestCancelExternalWorkflowExecutionInitiatedEventAttributes--instance NFData-         RequestCancelExternalWorkflowExecutionInitiatedEventAttributes---- | Provides details of the 'ScheduleActivityTask' decision.------ __Access Control__------ You can use IAM policies to control this decision\'s access to Amazon SWF resources as follows:------ -   Use a 'Resource' element with the domain name to limit the action to only specified domains.--- -   Use an 'Action' element to allow or deny permission to call this action.--- -   Constrain the following parameters by using a 'Condition' element with the appropriate keys.---     -   'activityType.name': String constraint. The key is 'swf:activityType.name'.---     -   'activityType.version': String constraint. The key is 'swf:activityType.version'.---     -   'taskList': String constraint. The key is 'swf:taskList.name'.------ If the caller does not have sufficient permissions to invoke the action, or the parameter values fall outside the specified constraints, the action fails. The associated event attribute\'s __cause__ parameter will be set to OPERATION_NOT_PERMITTED. For details and example IAM policies, see <http://docs.aws.amazon.com/amazonswf/latest/developerguide/swf-dev-iam.html Using IAM to Manage Access to Amazon SWF Workflows>.------ /See:/ 'scheduleActivityTaskDecisionAttributes' smart constructor.-data ScheduleActivityTaskDecisionAttributes = ScheduleActivityTaskDecisionAttributes'-    { _satdaControl                :: !(Maybe Text)-    , _satdaHeartbeatTimeout       :: !(Maybe Text)-    , _satdaScheduleToCloseTimeout :: !(Maybe Text)-    , _satdaInput                  :: !(Maybe Text)-    , _satdaTaskList               :: !(Maybe TaskList)-    , _satdaTaskPriority           :: !(Maybe Text)-    , _satdaScheduleToStartTimeout :: !(Maybe Text)-    , _satdaStartToCloseTimeout    :: !(Maybe Text)-    , _satdaActivityType           :: !ActivityType-    , _satdaActivityId             :: !Text-    } deriving (Eq,Read,Show,Data,Typeable,Generic)---- | Creates a value of 'ScheduleActivityTaskDecisionAttributes' with the minimum fields required to make a request.------ Use one of the following lenses to modify other fields as desired:------ * 'satdaControl'------ * 'satdaHeartbeatTimeout'------ * 'satdaScheduleToCloseTimeout'------ * 'satdaInput'------ * 'satdaTaskList'------ * 'satdaTaskPriority'------ * 'satdaScheduleToStartTimeout'------ * 'satdaStartToCloseTimeout'------ * 'satdaActivityType'------ * 'satdaActivityId'-scheduleActivityTaskDecisionAttributes-    :: ActivityType -- ^ 'satdaActivityType'-    -> Text -- ^ 'satdaActivityId'-    -> ScheduleActivityTaskDecisionAttributes-scheduleActivityTaskDecisionAttributes pActivityType_ pActivityId_ =-    ScheduleActivityTaskDecisionAttributes'-    { _satdaControl = Nothing-    , _satdaHeartbeatTimeout = Nothing-    , _satdaScheduleToCloseTimeout = Nothing-    , _satdaInput = Nothing-    , _satdaTaskList = Nothing-    , _satdaTaskPriority = Nothing-    , _satdaScheduleToStartTimeout = Nothing-    , _satdaStartToCloseTimeout = Nothing-    , _satdaActivityType = pActivityType_-    , _satdaActivityId = pActivityId_-    }---- | /Optional./ Data attached to the event that can be used by the decider in subsequent workflow tasks. This data is not sent to the activity.-satdaControl :: Lens' ScheduleActivityTaskDecisionAttributes (Maybe Text)-satdaControl = lens _satdaControl (\ s a -> s{_satdaControl = a});---- | If set, specifies the maximum time before which a worker processing a task of this type must report progress by calling < RecordActivityTaskHeartbeat>. 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 will be ignored. This overrides the default heartbeat timeout specified when registering the activity type using < RegisterActivityType>.------ The duration is specified in seconds; an integer greater than or equal to 0. The value \"NONE\" can be used to specify unlimited duration.-satdaHeartbeatTimeout :: Lens' ScheduleActivityTaskDecisionAttributes (Maybe Text)-satdaHeartbeatTimeout = lens _satdaHeartbeatTimeout (\ s a -> s{_satdaHeartbeatTimeout = a});---- | The maximum duration for this activity task.------ The duration is specified in seconds; an integer greater than or equal to 0. The value \"NONE\" can be used to specify unlimited duration.------ A schedule-to-close timeout for this activity task must be specified either as a default for the activity type or through this field. If neither this field is set nor a default schedule-to-close timeout was specified at registration time then a fault will be returned.-satdaScheduleToCloseTimeout :: Lens' ScheduleActivityTaskDecisionAttributes (Maybe Text)-satdaScheduleToCloseTimeout = lens _satdaScheduleToCloseTimeout (\ s a -> s{_satdaScheduleToCloseTimeout = a});---- | The input provided to the activity task.-satdaInput :: Lens' ScheduleActivityTaskDecisionAttributes (Maybe Text)-satdaInput = lens _satdaInput (\ s a -> s{_satdaInput = a});---- | If set, specifies the name of the task list in which to schedule the activity task. If not specified, the 'defaultTaskList' registered with the activity type will be used.------ A task list for this activity task must be specified either as a default for the activity type or through this field. If neither this field is set nor a default task list was specified at registration time then a fault will be returned.------ The specified string must not start or end with whitespace. It must not contain a ':' (colon), '\/' (slash), '|' (vertical bar), or any control characters (\\u0000-\\u001f | \\u007f - \\u009f). Also, it must not contain the literal string quotarnquot.-satdaTaskList :: Lens' ScheduleActivityTaskDecisionAttributes (Maybe TaskList)-satdaTaskList = lens _satdaTaskList (\ s a -> s{_satdaTaskList = a});---- | /Optional./ 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 < RegisterActivityType>. Valid values are integers that range from Java\'s 'Integer.MIN_VALUE' (-2147483648) to 'Integer.MAX_VALUE' (2147483647). Higher numbers indicate higher priority.------ For more information about setting task priority, see <http://docs.aws.amazon.com/amazonswf/latest/developerguide/programming-priority.html Setting Task Priority> in the /Amazon Simple Workflow Developer Guide/.-satdaTaskPriority :: Lens' ScheduleActivityTaskDecisionAttributes (Maybe Text)-satdaTaskPriority = lens _satdaTaskPriority (\ s a -> s{_satdaTaskPriority = a});---- | /Optional./ 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 < RegisterActivityType>.------ The duration is specified in seconds; an integer greater than or equal to 0. The value \"NONE\" can be used to specify unlimited duration.------ A schedule-to-start timeout for this activity task must be specified either as a default for the activity type or through this field. If neither this field is set nor a default schedule-to-start timeout was specified at registration time then a fault will be returned.-satdaScheduleToStartTimeout :: Lens' ScheduleActivityTaskDecisionAttributes (Maybe Text)-satdaScheduleToStartTimeout = lens _satdaScheduleToStartTimeout (\ s a -> s{_satdaScheduleToStartTimeout = 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 < RegisterActivityType>.------ The duration is specified in seconds; an integer greater than or equal to 0. The value \"NONE\" can be used to specify unlimited duration.------ A start-to-close timeout for this activity task must be specified either as a default for the activity type or through this field. If neither this field is set nor a default start-to-close timeout was specified at registration time then a fault will be returned.-satdaStartToCloseTimeout :: Lens' ScheduleActivityTaskDecisionAttributes (Maybe Text)-satdaStartToCloseTimeout = lens _satdaStartToCloseTimeout (\ s a -> s{_satdaStartToCloseTimeout = a});---- | __Required.__ The type of the activity task to schedule.-satdaActivityType :: Lens' ScheduleActivityTaskDecisionAttributes ActivityType-satdaActivityType = lens _satdaActivityType (\ s a -> s{_satdaActivityType = a});---- | __Required.__ The 'activityId' of the activity task.------ The specified string must not start or end with whitespace. It must not contain a ':' (colon), '\/' (slash), '|' (vertical bar), or any control characters (\\u0000-\\u001f | \\u007f - \\u009f). Also, it must not contain the literal string quotarnquot.-satdaActivityId :: Lens' ScheduleActivityTaskDecisionAttributes Text-satdaActivityId = lens _satdaActivityId (\ s a -> s{_satdaActivityId = a});--instance Hashable-         ScheduleActivityTaskDecisionAttributes--instance NFData-         ScheduleActivityTaskDecisionAttributes--instance ToJSON-         ScheduleActivityTaskDecisionAttributes where-        toJSON ScheduleActivityTaskDecisionAttributes'{..}-          = object-              (catMaybes-                 [("control" .=) <$> _satdaControl,-                  ("heartbeatTimeout" .=) <$> _satdaHeartbeatTimeout,-                  ("scheduleToCloseTimeout" .=) <$>-                    _satdaScheduleToCloseTimeout,-                  ("input" .=) <$> _satdaInput,-                  ("taskList" .=) <$> _satdaTaskList,-                  ("taskPriority" .=) <$> _satdaTaskPriority,-                  ("scheduleToStartTimeout" .=) <$>-                    _satdaScheduleToStartTimeout,-                  ("startToCloseTimeout" .=) <$>-                    _satdaStartToCloseTimeout,-                  Just ("activityType" .= _satdaActivityType),-                  Just ("activityId" .= _satdaActivityId)])---- | Provides details of the 'ScheduleActivityTaskFailed' event.------ /See:/ 'scheduleActivityTaskFailedEventAttributes' smart constructor.-data ScheduleActivityTaskFailedEventAttributes = ScheduleActivityTaskFailedEventAttributes'-    { _satfeaActivityType                 :: !ActivityType-    , _satfeaActivityId                   :: !Text-    , _satfeaCause                        :: !ScheduleActivityTaskFailedCause-    , _satfeaDecisionTaskCompletedEventId :: !Integer-    } deriving (Eq,Read,Show,Data,Typeable,Generic)---- | Creates a value of 'ScheduleActivityTaskFailedEventAttributes' with the minimum fields required to make a request.------ Use one of the following lenses to modify other fields as desired:------ * 'satfeaActivityType'------ * 'satfeaActivityId'------ * 'satfeaCause'------ * 'satfeaDecisionTaskCompletedEventId'-scheduleActivityTaskFailedEventAttributes-    :: ActivityType -- ^ 'satfeaActivityType'-    -> Text -- ^ 'satfeaActivityId'-    -> ScheduleActivityTaskFailedCause -- ^ 'satfeaCause'-    -> Integer -- ^ 'satfeaDecisionTaskCompletedEventId'-    -> ScheduleActivityTaskFailedEventAttributes-scheduleActivityTaskFailedEventAttributes pActivityType_ pActivityId_ pCause_ pDecisionTaskCompletedEventId_ =-    ScheduleActivityTaskFailedEventAttributes'-    { _satfeaActivityType = pActivityType_-    , _satfeaActivityId = pActivityId_-    , _satfeaCause = pCause_-    , _satfeaDecisionTaskCompletedEventId = pDecisionTaskCompletedEventId_-    }---- | The activity type provided in the 'ScheduleActivityTask' decision that failed.-satfeaActivityType :: Lens' ScheduleActivityTaskFailedEventAttributes ActivityType-satfeaActivityType = lens _satfeaActivityType (\ s a -> s{_satfeaActivityType = a});---- | The activityId provided in the 'ScheduleActivityTask' decision that failed.-satfeaActivityId :: Lens' ScheduleActivityTaskFailedEventAttributes Text-satfeaActivityId = lens _satfeaActivityId (\ s a -> s{_satfeaActivityId = a});---- | The cause of the failure. This information is generated by the system and can be useful for diagnostic purposes.------ If __cause__ is set to OPERATION_NOT_PERMITTED, the decision failed because it lacked sufficient permissions. For details and example IAM policies, see <http://docs.aws.amazon.com/amazonswf/latest/developerguide/swf-dev-iam.html Using IAM to Manage Access to Amazon SWF Workflows>.-satfeaCause :: Lens' ScheduleActivityTaskFailedEventAttributes ScheduleActivityTaskFailedCause-satfeaCause = lens _satfeaCause (\ s a -> s{_satfeaCause = a});---- | The ID of the 'DecisionTaskCompleted' 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-satfeaDecisionTaskCompletedEventId = lens _satfeaDecisionTaskCompletedEventId (\ s a -> s{_satfeaDecisionTaskCompletedEventId = a});--instance FromJSON-         ScheduleActivityTaskFailedEventAttributes where-        parseJSON-          = withObject-              "ScheduleActivityTaskFailedEventAttributes"-              (\ x ->-                 ScheduleActivityTaskFailedEventAttributes' <$>-                   (x .: "activityType") <*> (x .: "activityId") <*>-                     (x .: "cause")-                     <*> (x .: "decisionTaskCompletedEventId"))--instance Hashable-         ScheduleActivityTaskFailedEventAttributes--instance NFData-         ScheduleActivityTaskFailedEventAttributes---- | Provides details of the 'ScheduleLambdaFunction' decision.------ __Access Control__------ You can use IAM policies to control this decision\'s access to Amazon SWF resources as follows:------ -   Use a 'Resource' element with the domain name to limit the action to only specified domains.--- -   Use an 'Action' element to allow or deny permission to call this action.--- -   Constrain the following parameters by using a 'Condition' element with the appropriate keys.---     -   'activityType.name': String constraint. The key is 'swf:activityType.name'.---     -   'activityType.version': String constraint. The key is 'swf:activityType.version'.---     -   'taskList': String constraint. The key is 'swf:taskList.name'.------ If the caller does not have sufficient permissions to invoke the action, or the parameter values fall outside the specified constraints, the action fails. The associated event attribute\'s __cause__ parameter will be set to OPERATION_NOT_PERMITTED. For details and example IAM policies, see <http://docs.aws.amazon.com/amazonswf/latest/developerguide/swf-dev-iam.html Using IAM to Manage Access to Amazon SWF Workflows>.------ /See:/ 'scheduleLambdaFunctionDecisionAttributes' smart constructor.-data ScheduleLambdaFunctionDecisionAttributes = ScheduleLambdaFunctionDecisionAttributes'-    { _slfdaInput               :: !(Maybe Text)-    , _slfdaStartToCloseTimeout :: !(Maybe Text)-    , _slfdaId                  :: !Text-    , _slfdaName                :: !Text-    } deriving (Eq,Read,Show,Data,Typeable,Generic)---- | Creates a value of 'ScheduleLambdaFunctionDecisionAttributes' with the minimum fields required to make a request.------ Use one of the following lenses to modify other fields as desired:------ * 'slfdaInput'------ * 'slfdaStartToCloseTimeout'------ * 'slfdaId'------ * 'slfdaName'-scheduleLambdaFunctionDecisionAttributes-    :: Text -- ^ 'slfdaId'-    -> Text -- ^ 'slfdaName'-    -> ScheduleLambdaFunctionDecisionAttributes-scheduleLambdaFunctionDecisionAttributes pId_ pName_ =-    ScheduleLambdaFunctionDecisionAttributes'-    { _slfdaInput = Nothing-    , _slfdaStartToCloseTimeout = Nothing-    , _slfdaId = pId_-    , _slfdaName = pName_-    }---- | The input provided to the AWS Lambda function.-slfdaInput :: Lens' ScheduleLambdaFunctionDecisionAttributes (Maybe Text)-slfdaInput = lens _slfdaInput (\ s a -> s{_slfdaInput = a});---- | If set, specifies the maximum duration the function may take to execute.-slfdaStartToCloseTimeout :: Lens' ScheduleLambdaFunctionDecisionAttributes (Maybe Text)-slfdaStartToCloseTimeout = lens _slfdaStartToCloseTimeout (\ s a -> s{_slfdaStartToCloseTimeout = a});---- | __Required.__ The SWF 'id' of the AWS Lambda task.------ The specified string must not start or end with whitespace. It must not contain a ':' (colon), '\/' (slash), '|' (vertical bar), or any control characters (\\u0000-\\u001f | \\u007f - \\u009f). Also, it must not contain the literal string quotarnquot.-slfdaId :: Lens' ScheduleLambdaFunctionDecisionAttributes Text-slfdaId = lens _slfdaId (\ s a -> s{_slfdaId = a});---- | __Required.__ The name of the AWS Lambda function to invoke.-slfdaName :: Lens' ScheduleLambdaFunctionDecisionAttributes Text-slfdaName = lens _slfdaName (\ s a -> s{_slfdaName = a});--instance Hashable-         ScheduleLambdaFunctionDecisionAttributes--instance NFData-         ScheduleLambdaFunctionDecisionAttributes--instance ToJSON-         ScheduleLambdaFunctionDecisionAttributes where-        toJSON ScheduleLambdaFunctionDecisionAttributes'{..}-          = object-              (catMaybes-                 [("input" .=) <$> _slfdaInput,-                  ("startToCloseTimeout" .=) <$>-                    _slfdaStartToCloseTimeout,-                  Just ("id" .= _slfdaId),-                  Just ("name" .= _slfdaName)])---- | Provides details for the 'ScheduleLambdaFunctionFailed' event.------ /See:/ 'scheduleLambdaFunctionFailedEventAttributes' smart constructor.-data ScheduleLambdaFunctionFailedEventAttributes = ScheduleLambdaFunctionFailedEventAttributes'-    { _slffeaId                           :: !Text-    , _slffeaName                         :: !Text-    , _slffeaCause                        :: !ScheduleLambdaFunctionFailedCause-    , _slffeaDecisionTaskCompletedEventId :: !Integer-    } deriving (Eq,Read,Show,Data,Typeable,Generic)---- | Creates a value of 'ScheduleLambdaFunctionFailedEventAttributes' with the minimum fields required to make a request.------ Use one of the following lenses to modify other fields as desired:------ * 'slffeaId'------ * 'slffeaName'------ * 'slffeaCause'------ * 'slffeaDecisionTaskCompletedEventId'-scheduleLambdaFunctionFailedEventAttributes-    :: Text -- ^ 'slffeaId'-    -> Text -- ^ 'slffeaName'-    -> ScheduleLambdaFunctionFailedCause -- ^ 'slffeaCause'-    -> Integer -- ^ 'slffeaDecisionTaskCompletedEventId'-    -> ScheduleLambdaFunctionFailedEventAttributes-scheduleLambdaFunctionFailedEventAttributes pId_ pName_ pCause_ pDecisionTaskCompletedEventId_ =-    ScheduleLambdaFunctionFailedEventAttributes'-    { _slffeaId = pId_-    , _slffeaName = pName_-    , _slffeaCause = pCause_-    , _slffeaDecisionTaskCompletedEventId = pDecisionTaskCompletedEventId_-    }---- | The unique Amazon SWF ID of the AWS Lambda task.-slffeaId :: Lens' ScheduleLambdaFunctionFailedEventAttributes Text-slffeaId = lens _slffeaId (\ s a -> s{_slffeaId = a});---- | The name of the scheduled AWS Lambda function.-slffeaName :: Lens' ScheduleLambdaFunctionFailedEventAttributes Text-slffeaName = lens _slffeaName (\ s a -> s{_slffeaName = a});---- | The cause of the failure. This information is generated by the system and can be useful for diagnostic purposes.------ If __cause__ is set to OPERATION_NOT_PERMITTED, the decision failed because it lacked sufficient permissions. For details and example IAM policies, see <http://docs.aws.amazon.com/amazonswf/latest/developerguide/swf-dev-iam.html Using IAM to Manage Access to Amazon SWF Workflows>.-slffeaCause :: Lens' ScheduleLambdaFunctionFailedEventAttributes ScheduleLambdaFunctionFailedCause-slffeaCause = lens _slffeaCause (\ s a -> s{_slffeaCause = a});---- | The ID of the 'DecisionTaskCompleted' event corresponding to the decision that resulted in the scheduling of this AWS Lambda function. This information can be useful for diagnosing problems by tracing back the chain of events leading up to this event.-slffeaDecisionTaskCompletedEventId :: Lens' ScheduleLambdaFunctionFailedEventAttributes Integer-slffeaDecisionTaskCompletedEventId = lens _slffeaDecisionTaskCompletedEventId (\ s a -> s{_slffeaDecisionTaskCompletedEventId = a});--instance FromJSON-         ScheduleLambdaFunctionFailedEventAttributes where-        parseJSON-          = withObject-              "ScheduleLambdaFunctionFailedEventAttributes"-              (\ x ->-                 ScheduleLambdaFunctionFailedEventAttributes' <$>-                   (x .: "id") <*> (x .: "name") <*> (x .: "cause") <*>-                     (x .: "decisionTaskCompletedEventId"))--instance Hashable-         ScheduleLambdaFunctionFailedEventAttributes--instance NFData-         ScheduleLambdaFunctionFailedEventAttributes---- | Provides details of the 'SignalExternalWorkflowExecution' decision.------ __Access Control__------ You can use IAM policies to control this decision\'s access to Amazon SWF resources as follows:------ -   Use a 'Resource' element with the domain name to limit the action to only specified domains.--- -   Use an 'Action' element to allow or deny permission to call this action.--- -   You cannot use an IAM policy to constrain this action\'s parameters.------ If the caller does not have sufficient permissions to invoke the action, or the parameter values fall outside the specified constraints, the action fails. The associated event attribute\'s __cause__ parameter will be set to OPERATION_NOT_PERMITTED. For details and example IAM policies, see <http://docs.aws.amazon.com/amazonswf/latest/developerguide/swf-dev-iam.html Using IAM to Manage Access to Amazon SWF Workflows>.------ /See:/ 'signalExternalWorkflowExecutionDecisionAttributes' smart constructor.-data SignalExternalWorkflowExecutionDecisionAttributes = SignalExternalWorkflowExecutionDecisionAttributes'-    { _sewedaControl    :: !(Maybe Text)-    , _sewedaInput      :: !(Maybe Text)-    , _sewedaRunId      :: !(Maybe Text)-    , _sewedaWorkflowId :: !Text-    , _sewedaSignalName :: !Text-    } deriving (Eq,Read,Show,Data,Typeable,Generic)---- | Creates a value of 'SignalExternalWorkflowExecutionDecisionAttributes' with the minimum fields required to make a request.------ Use one of the following lenses to modify other fields as desired:------ * 'sewedaControl'------ * 'sewedaInput'------ * 'sewedaRunId'------ * 'sewedaWorkflowId'------ * 'sewedaSignalName'-signalExternalWorkflowExecutionDecisionAttributes-    :: Text -- ^ 'sewedaWorkflowId'-    -> Text -- ^ 'sewedaSignalName'-    -> SignalExternalWorkflowExecutionDecisionAttributes-signalExternalWorkflowExecutionDecisionAttributes pWorkflowId_ pSignalName_ =-    SignalExternalWorkflowExecutionDecisionAttributes'-    { _sewedaControl = Nothing-    , _sewedaInput = Nothing-    , _sewedaRunId = Nothing-    , _sewedaWorkflowId = pWorkflowId_-    , _sewedaSignalName = pSignalName_-    }---- | /Optional./ Data attached to the event that can be used by the decider in subsequent decision tasks.-sewedaControl :: Lens' SignalExternalWorkflowExecutionDecisionAttributes (Maybe Text)-sewedaControl = lens _sewedaControl (\ s a -> s{_sewedaControl = a});---- | /Optional./ Input data to be provided with the signal. The target workflow execution will use the signal name and input data to process the signal.-sewedaInput :: Lens' SignalExternalWorkflowExecutionDecisionAttributes (Maybe Text)-sewedaInput = lens _sewedaInput (\ s a -> s{_sewedaInput = a});---- | The 'runId' of the workflow execution to be signaled.-sewedaRunId :: Lens' SignalExternalWorkflowExecutionDecisionAttributes (Maybe Text)-sewedaRunId = lens _sewedaRunId (\ s a -> s{_sewedaRunId = a});---- | __Required.__ The 'workflowId' of the workflow execution to be signaled.-sewedaWorkflowId :: Lens' SignalExternalWorkflowExecutionDecisionAttributes Text-sewedaWorkflowId = lens _sewedaWorkflowId (\ s a -> s{_sewedaWorkflowId = a});---- | __Required.__ The name of the signal.The target workflow execution will use the signal name and input to process the signal.-sewedaSignalName :: Lens' SignalExternalWorkflowExecutionDecisionAttributes Text-sewedaSignalName = lens _sewedaSignalName (\ s a -> s{_sewedaSignalName = a});--instance Hashable-         SignalExternalWorkflowExecutionDecisionAttributes--instance NFData-         SignalExternalWorkflowExecutionDecisionAttributes--instance ToJSON-         SignalExternalWorkflowExecutionDecisionAttributes-         where-        toJSON-          SignalExternalWorkflowExecutionDecisionAttributes'{..}-          = object-              (catMaybes-                 [("control" .=) <$> _sewedaControl,-                  ("input" .=) <$> _sewedaInput,-                  ("runId" .=) <$> _sewedaRunId,-                  Just ("workflowId" .= _sewedaWorkflowId),-                  Just ("signalName" .= _sewedaSignalName)])---- | Provides details of the 'SignalExternalWorkflowExecutionFailed' event.------ /See:/ 'signalExternalWorkflowExecutionFailedEventAttributes' smart constructor.-data SignalExternalWorkflowExecutionFailedEventAttributes = SignalExternalWorkflowExecutionFailedEventAttributes'-    { _sewefeaControl                      :: !(Maybe Text)-    , _sewefeaRunId                        :: !(Maybe Text)-    , _sewefeaWorkflowId                   :: !Text-    , _sewefeaCause                        :: !SignalExternalWorkflowExecutionFailedCause-    , _sewefeaInitiatedEventId             :: !Integer-    , _sewefeaDecisionTaskCompletedEventId :: !Integer-    } deriving (Eq,Read,Show,Data,Typeable,Generic)---- | Creates a value of 'SignalExternalWorkflowExecutionFailedEventAttributes' with the minimum fields required to make a request.------ Use one of the following lenses to modify other fields as desired:------ * 'sewefeaControl'------ * 'sewefeaRunId'------ * 'sewefeaWorkflowId'------ * 'sewefeaCause'------ * 'sewefeaInitiatedEventId'------ * 'sewefeaDecisionTaskCompletedEventId'-signalExternalWorkflowExecutionFailedEventAttributes-    :: Text -- ^ 'sewefeaWorkflowId'-    -> SignalExternalWorkflowExecutionFailedCause -- ^ 'sewefeaCause'-    -> Integer -- ^ 'sewefeaInitiatedEventId'-    -> Integer -- ^ 'sewefeaDecisionTaskCompletedEventId'-    -> SignalExternalWorkflowExecutionFailedEventAttributes-signalExternalWorkflowExecutionFailedEventAttributes pWorkflowId_ pCause_ pInitiatedEventId_ pDecisionTaskCompletedEventId_ =-    SignalExternalWorkflowExecutionFailedEventAttributes'-    { _sewefeaControl = Nothing-    , _sewefeaRunId = Nothing-    , _sewefeaWorkflowId = pWorkflowId_-    , _sewefeaCause = pCause_-    , _sewefeaInitiatedEventId = pInitiatedEventId_-    , _sewefeaDecisionTaskCompletedEventId = pDecisionTaskCompletedEventId_-    }---- | Undocumented member.-sewefeaControl :: Lens' SignalExternalWorkflowExecutionFailedEventAttributes (Maybe Text)-sewefeaControl = lens _sewefeaControl (\ s a -> s{_sewefeaControl = a});---- | The 'runId' of the external workflow execution that the signal was being delivered to.-sewefeaRunId :: Lens' SignalExternalWorkflowExecutionFailedEventAttributes (Maybe Text)-sewefeaRunId = lens _sewefeaRunId (\ s a -> s{_sewefeaRunId = a});---- | The 'workflowId' of the external workflow execution that the signal was being delivered to.-sewefeaWorkflowId :: Lens' SignalExternalWorkflowExecutionFailedEventAttributes Text-sewefeaWorkflowId = lens _sewefeaWorkflowId (\ s a -> s{_sewefeaWorkflowId = a});---- | The cause of the failure. This information is generated by the system and can be useful for diagnostic purposes.------ If __cause__ is set to OPERATION_NOT_PERMITTED, the decision failed because it lacked sufficient permissions. For details and example IAM policies, see <http://docs.aws.amazon.com/amazonswf/latest/developerguide/swf-dev-iam.html Using IAM to Manage Access to Amazon SWF Workflows>.-sewefeaCause :: Lens' SignalExternalWorkflowExecutionFailedEventAttributes SignalExternalWorkflowExecutionFailedCause-sewefeaCause = lens _sewefeaCause (\ s a -> s{_sewefeaCause = a});---- | The ID of the 'SignalExternalWorkflowExecutionInitiated' event corresponding to the 'SignalExternalWorkflowExecution' 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-sewefeaInitiatedEventId = lens _sewefeaInitiatedEventId (\ s a -> s{_sewefeaInitiatedEventId = a});---- | The ID of the 'DecisionTaskCompleted' event corresponding to the decision task that resulted in the 'SignalExternalWorkflowExecution' 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-sewefeaDecisionTaskCompletedEventId = lens _sewefeaDecisionTaskCompletedEventId (\ s a -> s{_sewefeaDecisionTaskCompletedEventId = a});--instance FromJSON-         SignalExternalWorkflowExecutionFailedEventAttributes-         where-        parseJSON-          = withObject-              "SignalExternalWorkflowExecutionFailedEventAttributes"-              (\ x ->-                 SignalExternalWorkflowExecutionFailedEventAttributes'-                   <$>-                   (x .:? "control") <*> (x .:? "runId") <*>-                     (x .: "workflowId")-                     <*> (x .: "cause")-                     <*> (x .: "initiatedEventId")-                     <*> (x .: "decisionTaskCompletedEventId"))--instance Hashable-         SignalExternalWorkflowExecutionFailedEventAttributes--instance NFData-         SignalExternalWorkflowExecutionFailedEventAttributes---- | Provides details of the 'SignalExternalWorkflowExecutionInitiated' event.------ /See:/ 'signalExternalWorkflowExecutionInitiatedEventAttributes' smart constructor.-data SignalExternalWorkflowExecutionInitiatedEventAttributes = SignalExternalWorkflowExecutionInitiatedEventAttributes'-    { _seweieaControl                      :: !(Maybe Text)-    , _seweieaInput                        :: !(Maybe Text)-    , _seweieaRunId                        :: !(Maybe Text)-    , _seweieaWorkflowId                   :: !Text-    , _seweieaSignalName                   :: !Text-    , _seweieaDecisionTaskCompletedEventId :: !Integer-    } deriving (Eq,Read,Show,Data,Typeable,Generic)---- | Creates a value of 'SignalExternalWorkflowExecutionInitiatedEventAttributes' with the minimum fields required to make a request.------ Use one of the following lenses to modify other fields as desired:------ * 'seweieaControl'------ * 'seweieaInput'------ * 'seweieaRunId'------ * 'seweieaWorkflowId'------ * 'seweieaSignalName'------ * 'seweieaDecisionTaskCompletedEventId'-signalExternalWorkflowExecutionInitiatedEventAttributes-    :: Text -- ^ 'seweieaWorkflowId'-    -> Text -- ^ 'seweieaSignalName'-    -> Integer -- ^ 'seweieaDecisionTaskCompletedEventId'-    -> SignalExternalWorkflowExecutionInitiatedEventAttributes-signalExternalWorkflowExecutionInitiatedEventAttributes pWorkflowId_ pSignalName_ pDecisionTaskCompletedEventId_ =-    SignalExternalWorkflowExecutionInitiatedEventAttributes'-    { _seweieaControl = Nothing-    , _seweieaInput = Nothing-    , _seweieaRunId = Nothing-    , _seweieaWorkflowId = pWorkflowId_-    , _seweieaSignalName = pSignalName_-    , _seweieaDecisionTaskCompletedEventId = pDecisionTaskCompletedEventId_-    }---- | /Optional./ data attached to the event that can be used by the decider in subsequent decision tasks.-seweieaControl :: Lens' SignalExternalWorkflowExecutionInitiatedEventAttributes (Maybe Text)-seweieaControl = lens _seweieaControl (\ s a -> s{_seweieaControl = a});---- | Input provided to the signal (if any).-seweieaInput :: Lens' SignalExternalWorkflowExecutionInitiatedEventAttributes (Maybe Text)-seweieaInput = lens _seweieaInput (\ s a -> s{_seweieaInput = a});---- | The 'runId' of the external workflow execution to send the signal to.-seweieaRunId :: Lens' SignalExternalWorkflowExecutionInitiatedEventAttributes (Maybe Text)-seweieaRunId = lens _seweieaRunId (\ s a -> s{_seweieaRunId = a});---- | The 'workflowId' of the external workflow execution.-seweieaWorkflowId :: Lens' SignalExternalWorkflowExecutionInitiatedEventAttributes Text-seweieaWorkflowId = lens _seweieaWorkflowId (\ s a -> s{_seweieaWorkflowId = a});---- | The name of the signal.-seweieaSignalName :: Lens' SignalExternalWorkflowExecutionInitiatedEventAttributes Text-seweieaSignalName = lens _seweieaSignalName (\ s a -> s{_seweieaSignalName = a});---- | The ID of the 'DecisionTaskCompleted' event corresponding to the decision task that resulted in the 'SignalExternalWorkflowExecution' 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-seweieaDecisionTaskCompletedEventId = lens _seweieaDecisionTaskCompletedEventId (\ s a -> s{_seweieaDecisionTaskCompletedEventId = a});--instance FromJSON-         SignalExternalWorkflowExecutionInitiatedEventAttributes-         where-        parseJSON-          = withObject-              "SignalExternalWorkflowExecutionInitiatedEventAttributes"-              (\ x ->-                 SignalExternalWorkflowExecutionInitiatedEventAttributes'-                   <$>-                   (x .:? "control") <*> (x .:? "input") <*>-                     (x .:? "runId")-                     <*> (x .: "workflowId")-                     <*> (x .: "signalName")-                     <*> (x .: "decisionTaskCompletedEventId"))--instance Hashable-         SignalExternalWorkflowExecutionInitiatedEventAttributes--instance NFData-         SignalExternalWorkflowExecutionInitiatedEventAttributes---- | Provides details of the 'StartChildWorkflowExecution' decision.------ __Access Control__------ You can use IAM policies to control this decision\'s access to Amazon SWF resources as follows:------ -   Use a 'Resource' element with the domain name to limit the action to only specified domains.--- -   Use an 'Action' element to allow or deny permission to call this action.--- -   Constrain the following parameters by using a 'Condition' element with the appropriate keys.---     -   'tagList.member.N': The key is \"swf:tagList.N\" where N is the tag number from 0 to 4, inclusive.---     -   'taskList': String constraint. The key is 'swf:taskList.name'.---     -   'workflowType.name': String constraint. The key is 'swf:workflowType.name'.---     -   'workflowType.version': String constraint. The key is 'swf:workflowType.version'.------ If the caller does not have sufficient permissions to invoke the action, or the parameter values fall outside the specified constraints, the action fails. The associated event attribute\'s __cause__ parameter will be set to OPERATION_NOT_PERMITTED. For details and example IAM policies, see <http://docs.aws.amazon.com/amazonswf/latest/developerguide/swf-dev-iam.html Using IAM to Manage Access to Amazon SWF Workflows>.------ /See:/ 'startChildWorkflowExecutionDecisionAttributes' smart constructor.-data StartChildWorkflowExecutionDecisionAttributes = StartChildWorkflowExecutionDecisionAttributes'-    { _scwedaControl                      :: !(Maybe Text)-    , _scwedaTagList                      :: !(Maybe [Text])-    , _scwedaTaskStartToCloseTimeout      :: !(Maybe Text)-    , _scwedaLambdaRole                   :: !(Maybe Text)-    , _scwedaInput                        :: !(Maybe Text)-    , _scwedaExecutionStartToCloseTimeout :: !(Maybe Text)-    , _scwedaTaskList                     :: !(Maybe TaskList)-    , _scwedaTaskPriority                 :: !(Maybe Text)-    , _scwedaChildPolicy                  :: !(Maybe ChildPolicy)-    , _scwedaWorkflowType                 :: !WorkflowType-    , _scwedaWorkflowId                   :: !Text-    } deriving (Eq,Read,Show,Data,Typeable,Generic)---- | Creates a value of 'StartChildWorkflowExecutionDecisionAttributes' with the minimum fields required to make a request.------ Use one of the following lenses to modify other fields as desired:------ * 'scwedaControl'------ * 'scwedaTagList'------ * 'scwedaTaskStartToCloseTimeout'------ * 'scwedaLambdaRole'------ * 'scwedaInput'------ * 'scwedaExecutionStartToCloseTimeout'------ * 'scwedaTaskList'------ * 'scwedaTaskPriority'------ * 'scwedaChildPolicy'------ * 'scwedaWorkflowType'------ * 'scwedaWorkflowId'-startChildWorkflowExecutionDecisionAttributes-    :: WorkflowType -- ^ 'scwedaWorkflowType'-    -> Text -- ^ 'scwedaWorkflowId'-    -> StartChildWorkflowExecutionDecisionAttributes-startChildWorkflowExecutionDecisionAttributes pWorkflowType_ pWorkflowId_ =-    StartChildWorkflowExecutionDecisionAttributes'-    { _scwedaControl = Nothing-    , _scwedaTagList = Nothing-    , _scwedaTaskStartToCloseTimeout = Nothing-    , _scwedaLambdaRole = Nothing-    , _scwedaInput = Nothing-    , _scwedaExecutionStartToCloseTimeout = Nothing-    , _scwedaTaskList = Nothing-    , _scwedaTaskPriority = Nothing-    , _scwedaChildPolicy = Nothing-    , _scwedaWorkflowType = pWorkflowType_-    , _scwedaWorkflowId = pWorkflowId_-    }---- | /Optional./ Data attached to the event that can be used by the decider in subsequent workflow tasks. This data is not sent to the child workflow execution.-scwedaControl :: Lens' StartChildWorkflowExecutionDecisionAttributes (Maybe Text)-scwedaControl = lens _scwedaControl (\ s a -> s{_scwedaControl = 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 < ListOpenWorkflowExecutions> or < ListClosedWorkflowExecutions> and specifying a < TagFilter>.-scwedaTagList :: Lens' StartChildWorkflowExecutionDecisionAttributes [Text]-scwedaTagList = lens _scwedaTagList (\ s a -> s{_scwedaTagList = a}) . _Default . _Coerce;---- | Specifies the maximum duration of decision tasks for this workflow execution. This parameter overrides the 'defaultTaskStartToCloseTimout' specified when registering the workflow type using < RegisterWorkflowType>.------ The duration is specified in seconds; an integer greater than or equal to 0. The value \"NONE\" can be used to specify unlimited duration.------ A task start-to-close timeout for this workflow execution must be specified either as a default for the workflow type or through this parameter. If neither this parameter is set nor a default task start-to-close timeout was specified at registration time then a fault will be returned.-scwedaTaskStartToCloseTimeout :: Lens' StartChildWorkflowExecutionDecisionAttributes (Maybe Text)-scwedaTaskStartToCloseTimeout = lens _scwedaTaskStartToCloseTimeout (\ s a -> s{_scwedaTaskStartToCloseTimeout = a});---- | The ARN of an IAM role that authorizes Amazon SWF to invoke AWS Lambda functions.------ In order for this workflow execution to invoke AWS Lambda functions, an appropriate IAM role must be specified either as a default for the workflow type or through this field.-scwedaLambdaRole :: Lens' StartChildWorkflowExecutionDecisionAttributes (Maybe Text)-scwedaLambdaRole = lens _scwedaLambdaRole (\ s a -> s{_scwedaLambdaRole = a});---- | The input to be provided to the workflow execution.-scwedaInput :: Lens' StartChildWorkflowExecutionDecisionAttributes (Maybe Text)-scwedaInput = lens _scwedaInput (\ s a -> s{_scwedaInput = 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 0. The value \"NONE\" can be used to specify unlimited duration.------ An execution start-to-close timeout for this workflow execution must be specified either as a default for the workflow type or through this parameter. If neither this parameter is set nor a default execution start-to-close timeout was specified at registration time then a fault will be returned.-scwedaExecutionStartToCloseTimeout :: Lens' StartChildWorkflowExecutionDecisionAttributes (Maybe Text)-scwedaExecutionStartToCloseTimeout = lens _scwedaExecutionStartToCloseTimeout (\ s a -> s{_scwedaExecutionStartToCloseTimeout = a});---- | The name of the task list to be used for decision tasks of the child workflow execution.------ A task list for this workflow execution must be specified either as a default for the workflow type or through this parameter. If neither this parameter is set nor a default task list was specified at registration time then a fault will be returned.------ The specified string must not start or end with whitespace. It must not contain a ':' (colon), '\/' (slash), '|' (vertical bar), or any control characters (\\u0000-\\u001f | \\u007f - \\u009f). Also, it must not contain the literal string quotarnquot.-scwedaTaskList :: Lens' StartChildWorkflowExecutionDecisionAttributes (Maybe TaskList)-scwedaTaskList = lens _scwedaTaskList (\ s a -> s{_scwedaTaskList = a});---- | /Optional./ 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 'Integer.MIN_VALUE' (-2147483648) to 'Integer.MAX_VALUE' (2147483647). Higher numbers indicate higher priority.------ For more information about setting task priority, see <http://docs.aws.amazon.com/amazonswf/latest/developerguide/programming-priority.html Setting Task Priority> in the /Amazon Simple Workflow Developer Guide/.-scwedaTaskPriority :: Lens' StartChildWorkflowExecutionDecisionAttributes (Maybe Text)-scwedaTaskPriority = lens _scwedaTaskPriority (\ s a -> s{_scwedaTaskPriority = a});---- | /Optional./ If set, specifies the policy to use for the child workflow executions if the workflow execution being started is terminated by calling the < TerminateWorkflowExecution> action explicitly or due to an expired timeout. This policy overrides the default child policy specified when registering the workflow type using < RegisterWorkflowType>.------ The supported child policies are:------ -   __TERMINATE:__ the child executions will be terminated.--- -   __REQUEST_CANCEL:__ a request to cancel will be attempted for each child execution by recording a 'WorkflowExecutionCancelRequested' event in its history. It is up to the decider to take appropriate actions when it receives an execution history with this event.--- -   __ABANDON:__ no action will be taken. The child executions will continue to run.------ A child policy for this workflow execution must be specified either as a default for the workflow type or through this parameter. If neither this parameter is set nor a default child policy was specified at registration time then a fault will be returned.-scwedaChildPolicy :: Lens' StartChildWorkflowExecutionDecisionAttributes (Maybe ChildPolicy)-scwedaChildPolicy = lens _scwedaChildPolicy (\ s a -> s{_scwedaChildPolicy = a});---- | __Required.__ The type of the workflow execution to be started.-scwedaWorkflowType :: Lens' StartChildWorkflowExecutionDecisionAttributes WorkflowType-scwedaWorkflowType = lens _scwedaWorkflowType (\ s a -> s{_scwedaWorkflowType = a});---- | __Required.__ The 'workflowId' of the workflow execution.------ The specified string must not start or end with whitespace. It must not contain a ':' (colon), '\/' (slash), '|' (vertical bar), or any control characters (\\u0000-\\u001f | \\u007f - \\u009f). Also, it must not contain the literal string quotarnquot.-scwedaWorkflowId :: Lens' StartChildWorkflowExecutionDecisionAttributes Text-scwedaWorkflowId = lens _scwedaWorkflowId (\ s a -> s{_scwedaWorkflowId = a});--instance Hashable-         StartChildWorkflowExecutionDecisionAttributes--instance NFData-         StartChildWorkflowExecutionDecisionAttributes--instance ToJSON-         StartChildWorkflowExecutionDecisionAttributes where-        toJSON-          StartChildWorkflowExecutionDecisionAttributes'{..}-          = object-              (catMaybes-                 [("control" .=) <$> _scwedaControl,-                  ("tagList" .=) <$> _scwedaTagList,-                  ("taskStartToCloseTimeout" .=) <$>-                    _scwedaTaskStartToCloseTimeout,-                  ("lambdaRole" .=) <$> _scwedaLambdaRole,-                  ("input" .=) <$> _scwedaInput,-                  ("executionStartToCloseTimeout" .=) <$>-                    _scwedaExecutionStartToCloseTimeout,-                  ("taskList" .=) <$> _scwedaTaskList,-                  ("taskPriority" .=) <$> _scwedaTaskPriority,-                  ("childPolicy" .=) <$> _scwedaChildPolicy,-                  Just ("workflowType" .= _scwedaWorkflowType),-                  Just ("workflowId" .= _scwedaWorkflowId)])---- | Provides details of the 'StartChildWorkflowExecutionFailed' event.------ /See:/ 'startChildWorkflowExecutionFailedEventAttributes' smart constructor.-data StartChildWorkflowExecutionFailedEventAttributes = StartChildWorkflowExecutionFailedEventAttributes'-    { _scwefeaControl                      :: !(Maybe Text)-    , _scwefeaWorkflowType                 :: !WorkflowType-    , _scwefeaCause                        :: !StartChildWorkflowExecutionFailedCause-    , _scwefeaWorkflowId                   :: !Text-    , _scwefeaInitiatedEventId             :: !Integer-    , _scwefeaDecisionTaskCompletedEventId :: !Integer-    } deriving (Eq,Read,Show,Data,Typeable,Generic)---- | Creates a value of 'StartChildWorkflowExecutionFailedEventAttributes' with the minimum fields required to make a request.------ Use one of the following lenses to modify other fields as desired:------ * 'scwefeaControl'------ * 'scwefeaWorkflowType'------ * 'scwefeaCause'------ * 'scwefeaWorkflowId'------ * 'scwefeaInitiatedEventId'------ * 'scwefeaDecisionTaskCompletedEventId'-startChildWorkflowExecutionFailedEventAttributes-    :: WorkflowType -- ^ 'scwefeaWorkflowType'-    -> StartChildWorkflowExecutionFailedCause -- ^ 'scwefeaCause'-    -> Text -- ^ 'scwefeaWorkflowId'-    -> Integer -- ^ 'scwefeaInitiatedEventId'-    -> Integer -- ^ 'scwefeaDecisionTaskCompletedEventId'-    -> StartChildWorkflowExecutionFailedEventAttributes-startChildWorkflowExecutionFailedEventAttributes pWorkflowType_ pCause_ pWorkflowId_ pInitiatedEventId_ pDecisionTaskCompletedEventId_ =-    StartChildWorkflowExecutionFailedEventAttributes'-    { _scwefeaControl = Nothing-    , _scwefeaWorkflowType = pWorkflowType_-    , _scwefeaCause = pCause_-    , _scwefeaWorkflowId = pWorkflowId_-    , _scwefeaInitiatedEventId = pInitiatedEventId_-    , _scwefeaDecisionTaskCompletedEventId = pDecisionTaskCompletedEventId_-    }---- | Undocumented member.-scwefeaControl :: Lens' StartChildWorkflowExecutionFailedEventAttributes (Maybe Text)-scwefeaControl = lens _scwefeaControl (\ s a -> s{_scwefeaControl = a});---- | The workflow type provided in the 'StartChildWorkflowExecution' decision that failed.-scwefeaWorkflowType :: Lens' StartChildWorkflowExecutionFailedEventAttributes WorkflowType-scwefeaWorkflowType = lens _scwefeaWorkflowType (\ s a -> s{_scwefeaWorkflowType = a});---- | The cause of the failure. This information is generated by the system and can be useful for diagnostic purposes.------ If __cause__ is set to OPERATION_NOT_PERMITTED, the decision failed because it lacked sufficient permissions. For details and example IAM policies, see <http://docs.aws.amazon.com/amazonswf/latest/developerguide/swf-dev-iam.html Using IAM to Manage Access to Amazon SWF Workflows>.-scwefeaCause :: Lens' StartChildWorkflowExecutionFailedEventAttributes StartChildWorkflowExecutionFailedCause-scwefeaCause = lens _scwefeaCause (\ s a -> s{_scwefeaCause = a});---- | The 'workflowId' of the child workflow execution.-scwefeaWorkflowId :: Lens' StartChildWorkflowExecutionFailedEventAttributes Text-scwefeaWorkflowId = lens _scwefeaWorkflowId (\ s a -> s{_scwefeaWorkflowId = a});---- | The ID of the 'StartChildWorkflowExecutionInitiated' event corresponding to the 'StartChildWorkflowExecution' decision 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.-scwefeaInitiatedEventId :: Lens' StartChildWorkflowExecutionFailedEventAttributes Integer-scwefeaInitiatedEventId = lens _scwefeaInitiatedEventId (\ s a -> s{_scwefeaInitiatedEventId = a});---- | The ID of the 'DecisionTaskCompleted' event corresponding to the decision task that resulted in the 'StartChildWorkflowExecution' decision to request this child workflow execution. This information can be useful for diagnosing problems by tracing back the cause of events.-scwefeaDecisionTaskCompletedEventId :: Lens' StartChildWorkflowExecutionFailedEventAttributes Integer-scwefeaDecisionTaskCompletedEventId = lens _scwefeaDecisionTaskCompletedEventId (\ s a -> s{_scwefeaDecisionTaskCompletedEventId = a});--instance FromJSON-         StartChildWorkflowExecutionFailedEventAttributes-         where-        parseJSON-          = withObject-              "StartChildWorkflowExecutionFailedEventAttributes"-              (\ x ->-                 StartChildWorkflowExecutionFailedEventAttributes' <$>-                   (x .:? "control") <*> (x .: "workflowType") <*>-                     (x .: "cause")-                     <*> (x .: "workflowId")-                     <*> (x .: "initiatedEventId")-                     <*> (x .: "decisionTaskCompletedEventId"))--instance Hashable-         StartChildWorkflowExecutionFailedEventAttributes--instance NFData-         StartChildWorkflowExecutionFailedEventAttributes---- | Provides details of the 'StartChildWorkflowExecutionInitiated' event.------ /See:/ 'startChildWorkflowExecutionInitiatedEventAttributes' smart constructor.-data StartChildWorkflowExecutionInitiatedEventAttributes = StartChildWorkflowExecutionInitiatedEventAttributes'-    { _scweieaControl                      :: !(Maybe Text)-    , _scweieaTagList                      :: !(Maybe [Text])-    , _scweieaTaskStartToCloseTimeout      :: !(Maybe Text)-    , _scweieaLambdaRole                   :: !(Maybe Text)-    , _scweieaInput                        :: !(Maybe Text)-    , _scweieaExecutionStartToCloseTimeout :: !(Maybe Text)-    , _scweieaTaskPriority                 :: !(Maybe Text)-    , _scweieaWorkflowId                   :: !Text-    , _scweieaWorkflowType                 :: !WorkflowType-    , _scweieaTaskList                     :: !TaskList-    , _scweieaDecisionTaskCompletedEventId :: !Integer-    , _scweieaChildPolicy                  :: !ChildPolicy-    } deriving (Eq,Read,Show,Data,Typeable,Generic)---- | Creates a value of 'StartChildWorkflowExecutionInitiatedEventAttributes' with the minimum fields required to make a request.------ Use one of the following lenses to modify other fields as desired:------ * 'scweieaControl'------ * 'scweieaTagList'------ * 'scweieaTaskStartToCloseTimeout'------ * 'scweieaLambdaRole'------ * 'scweieaInput'------ * 'scweieaExecutionStartToCloseTimeout'------ * 'scweieaTaskPriority'------ * 'scweieaWorkflowId'------ * 'scweieaWorkflowType'------ * 'scweieaTaskList'------ * 'scweieaDecisionTaskCompletedEventId'------ * 'scweieaChildPolicy'-startChildWorkflowExecutionInitiatedEventAttributes-    :: Text -- ^ 'scweieaWorkflowId'-    -> WorkflowType -- ^ 'scweieaWorkflowType'-    -> TaskList -- ^ 'scweieaTaskList'-    -> Integer -- ^ 'scweieaDecisionTaskCompletedEventId'-    -> ChildPolicy -- ^ 'scweieaChildPolicy'-    -> StartChildWorkflowExecutionInitiatedEventAttributes-startChildWorkflowExecutionInitiatedEventAttributes pWorkflowId_ pWorkflowType_ pTaskList_ pDecisionTaskCompletedEventId_ pChildPolicy_ =-    StartChildWorkflowExecutionInitiatedEventAttributes'-    { _scweieaControl = Nothing-    , _scweieaTagList = Nothing-    , _scweieaTaskStartToCloseTimeout = Nothing-    , _scweieaLambdaRole = Nothing-    , _scweieaInput = Nothing-    , _scweieaExecutionStartToCloseTimeout = Nothing-    , _scweieaTaskPriority = Nothing-    , _scweieaWorkflowId = pWorkflowId_-    , _scweieaWorkflowType = pWorkflowType_-    , _scweieaTaskList = pTaskList_-    , _scweieaDecisionTaskCompletedEventId = pDecisionTaskCompletedEventId_-    , _scweieaChildPolicy = pChildPolicy_-    }---- | /Optional./ Data attached to the event that can be used by the decider in subsequent decision tasks. This data is not sent to the activity.-scweieaControl :: Lens' StartChildWorkflowExecutionInitiatedEventAttributes (Maybe Text)-scweieaControl = lens _scweieaControl (\ s a -> s{_scweieaControl = a});---- | The list of tags to associated with the child workflow execution.-scweieaTagList :: Lens' StartChildWorkflowExecutionInitiatedEventAttributes [Text]-scweieaTagList = lens _scweieaTagList (\ s a -> s{_scweieaTagList = a}) . _Default . _Coerce;---- | 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 0. The value \"NONE\" can be used to specify unlimited duration.-scweieaTaskStartToCloseTimeout :: Lens' StartChildWorkflowExecutionInitiatedEventAttributes (Maybe Text)-scweieaTaskStartToCloseTimeout = lens _scweieaTaskStartToCloseTimeout (\ s a -> s{_scweieaTaskStartToCloseTimeout = a});---- | The IAM role attached to this workflow execution to use when invoking AWS Lambda functions.-scweieaLambdaRole :: Lens' StartChildWorkflowExecutionInitiatedEventAttributes (Maybe Text)-scweieaLambdaRole = lens _scweieaLambdaRole (\ s a -> s{_scweieaLambdaRole = a});---- | The inputs provided to the child workflow execution (if any).-scweieaInput :: Lens' StartChildWorkflowExecutionInitiatedEventAttributes (Maybe Text)-scweieaInput = lens _scweieaInput (\ s a -> s{_scweieaInput = a});---- | The maximum duration for the child workflow execution. If the workflow execution is not closed within this duration, it will be timed out and force terminated.------ The duration is specified in seconds; an integer greater than or equal to 0. The value \"NONE\" can be used to specify unlimited duration.-scweieaExecutionStartToCloseTimeout :: Lens' StartChildWorkflowExecutionInitiatedEventAttributes (Maybe Text)-scweieaExecutionStartToCloseTimeout = lens _scweieaExecutionStartToCloseTimeout (\ s a -> s{_scweieaExecutionStartToCloseTimeout = a});---- | /Optional./ The priority assigned for the decision tasks for this workflow execution. Valid values are integers that range from Java\'s 'Integer.MIN_VALUE' (-2147483648) to 'Integer.MAX_VALUE' (2147483647). Higher numbers indicate higher priority.------ For more information about setting task priority, see <http://docs.aws.amazon.com/amazonswf/latest/developerguide/programming-priority.html Setting Task Priority> in the /Amazon Simple Workflow Developer Guide/.-scweieaTaskPriority :: Lens' StartChildWorkflowExecutionInitiatedEventAttributes (Maybe Text)-scweieaTaskPriority = lens _scweieaTaskPriority (\ s a -> s{_scweieaTaskPriority = a});---- | The 'workflowId' of the child workflow execution.-scweieaWorkflowId :: Lens' StartChildWorkflowExecutionInitiatedEventAttributes Text-scweieaWorkflowId = lens _scweieaWorkflowId (\ s a -> s{_scweieaWorkflowId = a});---- | The type of the child workflow execution.-scweieaWorkflowType :: Lens' StartChildWorkflowExecutionInitiatedEventAttributes WorkflowType-scweieaWorkflowType = lens _scweieaWorkflowType (\ s a -> s{_scweieaWorkflowType = a});---- | The name of the task list used for the decision tasks of the child workflow execution.-scweieaTaskList :: Lens' StartChildWorkflowExecutionInitiatedEventAttributes TaskList-scweieaTaskList = lens _scweieaTaskList (\ s a -> s{_scweieaTaskList = a});---- | The ID of the 'DecisionTaskCompleted' event corresponding to the decision task that resulted in the 'StartChildWorkflowExecution' decision 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-scweieaDecisionTaskCompletedEventId = lens _scweieaDecisionTaskCompletedEventId (\ s a -> s{_scweieaDecisionTaskCompletedEventId = a});---- | The policy to use for the child workflow executions if this execution gets terminated by explicitly calling the < TerminateWorkflowExecution> action or due to an expired timeout.------ The supported child policies are:------ -   __TERMINATE:__ the child executions will be terminated.--- -   __REQUEST_CANCEL:__ a request to cancel will be attempted for each child execution by recording a 'WorkflowExecutionCancelRequested' event in its history. It is up to the decider to take appropriate actions when it receives an execution history with this event.--- -   __ABANDON:__ no action will be taken. The child executions will continue to run.-scweieaChildPolicy :: Lens' StartChildWorkflowExecutionInitiatedEventAttributes ChildPolicy-scweieaChildPolicy = lens _scweieaChildPolicy (\ s a -> s{_scweieaChildPolicy = a});--instance FromJSON-         StartChildWorkflowExecutionInitiatedEventAttributes-         where-        parseJSON-          = withObject-              "StartChildWorkflowExecutionInitiatedEventAttributes"-              (\ x ->-                 StartChildWorkflowExecutionInitiatedEventAttributes'-                   <$>-                   (x .:? "control") <*> (x .:? "tagList" .!= mempty)-                     <*> (x .:? "taskStartToCloseTimeout")-                     <*> (x .:? "lambdaRole")-                     <*> (x .:? "input")-                     <*> (x .:? "executionStartToCloseTimeout")-                     <*> (x .:? "taskPriority")-                     <*> (x .: "workflowId")-                     <*> (x .: "workflowType")-                     <*> (x .: "taskList")-                     <*> (x .: "decisionTaskCompletedEventId")-                     <*> (x .: "childPolicy"))--instance Hashable-         StartChildWorkflowExecutionInitiatedEventAttributes--instance NFData-         StartChildWorkflowExecutionInitiatedEventAttributes---- | Provides details for the 'StartLambdaFunctionFailed' event.------ /See:/ 'startLambdaFunctionFailedEventAttributes' smart constructor.-data StartLambdaFunctionFailedEventAttributes = StartLambdaFunctionFailedEventAttributes'-    { _sScheduledEventId :: !(Maybe Integer)-    , _sCause            :: !(Maybe StartLambdaFunctionFailedCause)-    , _sMessage          :: !(Maybe Text)-    } deriving (Eq,Read,Show,Data,Typeable,Generic)---- | Creates a value of 'StartLambdaFunctionFailedEventAttributes' with the minimum fields required to make a request.------ Use one of the following lenses to modify other fields as desired:------ * 'sScheduledEventId'------ * 'sCause'------ * 'sMessage'-startLambdaFunctionFailedEventAttributes-    :: StartLambdaFunctionFailedEventAttributes-startLambdaFunctionFailedEventAttributes =-    StartLambdaFunctionFailedEventAttributes'-    { _sScheduledEventId = Nothing-    , _sCause = Nothing-    , _sMessage = Nothing-    }---- | The ID of the 'LambdaFunctionScheduled' event that was recorded when this AWS Lambda function was scheduled. This information can be useful for diagnosing problems by tracing back the chain of events leading up to this event.-sScheduledEventId :: Lens' StartLambdaFunctionFailedEventAttributes (Maybe Integer)-sScheduledEventId = lens _sScheduledEventId (\ s a -> s{_sScheduledEventId = a});---- | The cause of the failure. This information is generated by the system and can be useful for diagnostic purposes.------ If __cause__ is set to OPERATION_NOT_PERMITTED, the decision failed because it lacked sufficient permissions. For details and example IAM policies, see <http://docs.aws.amazon.com/amazonswf/latest/developerguide/swf-dev-iam.html Using IAM to Manage Access to Amazon SWF Workflows>.-sCause :: Lens' StartLambdaFunctionFailedEventAttributes (Maybe StartLambdaFunctionFailedCause)-sCause = lens _sCause (\ s a -> s{_sCause = a});---- | The error message (if any).-sMessage :: Lens' StartLambdaFunctionFailedEventAttributes (Maybe Text)-sMessage = lens _sMessage (\ s a -> s{_sMessage = a});--instance FromJSON-         StartLambdaFunctionFailedEventAttributes where-        parseJSON-          = withObject-              "StartLambdaFunctionFailedEventAttributes"-              (\ x ->-                 StartLambdaFunctionFailedEventAttributes' <$>-                   (x .:? "scheduledEventId") <*> (x .:? "cause") <*>-                     (x .:? "message"))--instance Hashable-         StartLambdaFunctionFailedEventAttributes--instance NFData-         StartLambdaFunctionFailedEventAttributes---- | Provides details of the 'StartTimer' decision.------ __Access Control__------ You can use IAM policies to control this decision\'s access to Amazon SWF resources as follows:------ -   Use a 'Resource' element with the domain name to limit the action to only specified domains.--- -   Use an 'Action' element to allow or deny permission to call this action.--- -   You cannot use an IAM policy to constrain this action\'s parameters.------ If the caller does not have sufficient permissions to invoke the action, or the parameter values fall outside the specified constraints, the action fails. The associated event attribute\'s __cause__ parameter will be set to OPERATION_NOT_PERMITTED. For details and example IAM policies, see <http://docs.aws.amazon.com/amazonswf/latest/developerguide/swf-dev-iam.html Using IAM to Manage Access to Amazon SWF Workflows>.------ /See:/ 'startTimerDecisionAttributes' smart constructor.-data StartTimerDecisionAttributes = StartTimerDecisionAttributes'-    { _stdaControl            :: !(Maybe Text)-    , _stdaTimerId            :: !Text-    , _stdaStartToFireTimeout :: !Text-    } deriving (Eq,Read,Show,Data,Typeable,Generic)---- | Creates a value of 'StartTimerDecisionAttributes' with the minimum fields required to make a request.------ Use one of the following lenses to modify other fields as desired:------ * 'stdaControl'------ * 'stdaTimerId'------ * 'stdaStartToFireTimeout'-startTimerDecisionAttributes-    :: Text -- ^ 'stdaTimerId'-    -> Text -- ^ 'stdaStartToFireTimeout'-    -> StartTimerDecisionAttributes-startTimerDecisionAttributes pTimerId_ pStartToFireTimeout_ =-    StartTimerDecisionAttributes'-    { _stdaControl = Nothing-    , _stdaTimerId = pTimerId_-    , _stdaStartToFireTimeout = pStartToFireTimeout_-    }---- | /Optional./ Data attached to the event that can be used by the decider in subsequent workflow tasks.-stdaControl :: Lens' StartTimerDecisionAttributes (Maybe Text)-stdaControl = lens _stdaControl (\ s a -> s{_stdaControl = a});---- | __Required.__ The unique ID of the timer.------ The specified string must not start or end with whitespace. It must not contain a ':' (colon), '\/' (slash), '|' (vertical bar), or any control characters (\\u0000-\\u001f | \\u007f - \\u009f). Also, it must not contain the literal string quotarnquot.-stdaTimerId :: Lens' StartTimerDecisionAttributes Text-stdaTimerId = lens _stdaTimerId (\ s a -> s{_stdaTimerId = a});---- | __Required.__ The duration to wait before firing the timer.------ The duration is specified in seconds; an integer greater than or equal to 0.-stdaStartToFireTimeout :: Lens' StartTimerDecisionAttributes Text-stdaStartToFireTimeout = lens _stdaStartToFireTimeout (\ s a -> s{_stdaStartToFireTimeout = a});--instance Hashable StartTimerDecisionAttributes--instance NFData StartTimerDecisionAttributes--instance ToJSON StartTimerDecisionAttributes where-        toJSON StartTimerDecisionAttributes'{..}-          = object-              (catMaybes-                 [("control" .=) <$> _stdaControl,-                  Just ("timerId" .= _stdaTimerId),-                  Just-                    ("startToFireTimeout" .= _stdaStartToFireTimeout)])---- | Provides details of the 'StartTimerFailed' event.------ /See:/ 'startTimerFailedEventAttributes' smart constructor.-data StartTimerFailedEventAttributes = StartTimerFailedEventAttributes'-    { _stfeaTimerId                      :: !Text-    , _stfeaCause                        :: !StartTimerFailedCause-    , _stfeaDecisionTaskCompletedEventId :: !Integer-    } deriving (Eq,Read,Show,Data,Typeable,Generic)---- | Creates a value of 'StartTimerFailedEventAttributes' with the minimum fields required to make a request.------ Use one of the following lenses to modify other fields as desired:------ * 'stfeaTimerId'------ * 'stfeaCause'------ * 'stfeaDecisionTaskCompletedEventId'-startTimerFailedEventAttributes-    :: Text -- ^ 'stfeaTimerId'-    -> StartTimerFailedCause -- ^ 'stfeaCause'-    -> Integer -- ^ 'stfeaDecisionTaskCompletedEventId'-    -> StartTimerFailedEventAttributes-startTimerFailedEventAttributes pTimerId_ pCause_ pDecisionTaskCompletedEventId_ =-    StartTimerFailedEventAttributes'-    { _stfeaTimerId = pTimerId_-    , _stfeaCause = pCause_-    , _stfeaDecisionTaskCompletedEventId = pDecisionTaskCompletedEventId_-    }---- | The timerId provided in the 'StartTimer' decision that failed.-stfeaTimerId :: Lens' StartTimerFailedEventAttributes Text-stfeaTimerId = lens _stfeaTimerId (\ s a -> s{_stfeaTimerId = a});---- | The cause of the failure. This information is generated by the system and can be useful for diagnostic purposes.------ If __cause__ is set to OPERATION_NOT_PERMITTED, the decision failed because it lacked sufficient permissions. For details and example IAM policies, see <http://docs.aws.amazon.com/amazonswf/latest/developerguide/swf-dev-iam.html Using IAM to Manage Access to Amazon SWF Workflows>.-stfeaCause :: Lens' StartTimerFailedEventAttributes StartTimerFailedCause-stfeaCause = lens _stfeaCause (\ s a -> s{_stfeaCause = a});---- | The ID of the 'DecisionTaskCompleted' event corresponding to the decision task that resulted in the 'StartTimer' 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-stfeaDecisionTaskCompletedEventId = lens _stfeaDecisionTaskCompletedEventId (\ s a -> s{_stfeaDecisionTaskCompletedEventId = a});--instance FromJSON StartTimerFailedEventAttributes-         where-        parseJSON-          = withObject "StartTimerFailedEventAttributes"-              (\ x ->-                 StartTimerFailedEventAttributes' <$>-                   (x .: "timerId") <*> (x .: "cause") <*>-                     (x .: "decisionTaskCompletedEventId"))--instance Hashable StartTimerFailedEventAttributes--instance NFData StartTimerFailedEventAttributes---- | Used to filter the workflow executions in visibility APIs based on a tag.------ /See:/ 'tagFilter' smart constructor.-newtype TagFilter = TagFilter'-    { _tfTag :: Text-    } deriving (Eq,Read,Show,Data,Typeable,Generic)---- | Creates a value of 'TagFilter' with the minimum fields required to make a request.------ Use one of the following lenses to modify other fields as desired:------ * 'tfTag'-tagFilter-    :: Text -- ^ 'tfTag'-    -> TagFilter-tagFilter pTag_ =-    TagFilter'-    { _tfTag = pTag_-    }---- | __Required.__ Specifies the tag that must be associated with the execution for it to meet the filter criteria.-tfTag :: Lens' TagFilter Text-tfTag = lens _tfTag (\ s a -> s{_tfTag = a});--instance Hashable TagFilter--instance NFData TagFilter--instance ToJSON TagFilter where-        toJSON TagFilter'{..}-          = object (catMaybes [Just ("tag" .= _tfTag)])---- | Represents a task list.------ /See:/ 'taskList' smart constructor.-newtype TaskList = TaskList'-    { _tlName :: Text-    } deriving (Eq,Read,Show,Data,Typeable,Generic)---- | Creates a value of 'TaskList' with the minimum fields required to make a request.------ Use one of the following lenses to modify other fields as desired:------ * 'tlName'-taskList-    :: Text -- ^ 'tlName'-    -> TaskList-taskList pName_ =-    TaskList'-    { _tlName = pName_-    }---- | The name of the task list.-tlName :: Lens' TaskList Text-tlName = lens _tlName (\ s a -> s{_tlName = a});--instance FromJSON TaskList where-        parseJSON-          = withObject "TaskList"-              (\ x -> TaskList' <$> (x .: "name"))--instance Hashable TaskList--instance NFData TaskList--instance ToJSON TaskList where-        toJSON TaskList'{..}-          = object (catMaybes [Just ("name" .= _tlName)])---- | Provides details of the 'TimerCanceled' event.------ /See:/ 'timerCanceledEventAttributes' smart constructor.-data TimerCanceledEventAttributes = TimerCanceledEventAttributes'-    { _tceaTimerId                      :: !Text-    , _tceaStartedEventId               :: !Integer-    , _tceaDecisionTaskCompletedEventId :: !Integer-    } deriving (Eq,Read,Show,Data,Typeable,Generic)---- | Creates a value of 'TimerCanceledEventAttributes' with the minimum fields required to make a request.------ Use one of the following lenses to modify other fields as desired:------ * 'tceaTimerId'------ * 'tceaStartedEventId'------ * 'tceaDecisionTaskCompletedEventId'-timerCanceledEventAttributes-    :: Text -- ^ 'tceaTimerId'-    -> Integer -- ^ 'tceaStartedEventId'-    -> Integer -- ^ 'tceaDecisionTaskCompletedEventId'-    -> TimerCanceledEventAttributes-timerCanceledEventAttributes pTimerId_ pStartedEventId_ pDecisionTaskCompletedEventId_ =-    TimerCanceledEventAttributes'-    { _tceaTimerId = pTimerId_-    , _tceaStartedEventId = pStartedEventId_-    , _tceaDecisionTaskCompletedEventId = pDecisionTaskCompletedEventId_-    }---- | The unique ID of the timer that was canceled.-tceaTimerId :: Lens' TimerCanceledEventAttributes Text-tceaTimerId = lens _tceaTimerId (\ s a -> s{_tceaTimerId = a});---- | The ID of the 'TimerStarted' 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-tceaStartedEventId = lens _tceaStartedEventId (\ s a -> s{_tceaStartedEventId = a});---- | The ID of the 'DecisionTaskCompleted' event corresponding to the decision task that resulted in the 'CancelTimer' 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-tceaDecisionTaskCompletedEventId = lens _tceaDecisionTaskCompletedEventId (\ s a -> s{_tceaDecisionTaskCompletedEventId = a});--instance FromJSON TimerCanceledEventAttributes where-        parseJSON-          = withObject "TimerCanceledEventAttributes"-              (\ x ->-                 TimerCanceledEventAttributes' <$>-                   (x .: "timerId") <*> (x .: "startedEventId") <*>-                     (x .: "decisionTaskCompletedEventId"))--instance Hashable TimerCanceledEventAttributes--instance NFData TimerCanceledEventAttributes---- | Provides details of the 'TimerFired' event.------ /See:/ 'timerFiredEventAttributes' smart constructor.-data TimerFiredEventAttributes = TimerFiredEventAttributes'-    { _tfeaTimerId        :: !Text-    , _tfeaStartedEventId :: !Integer-    } deriving (Eq,Read,Show,Data,Typeable,Generic)---- | Creates a value of 'TimerFiredEventAttributes' with the minimum fields required to make a request.------ Use one of the following lenses to modify other fields as desired:------ * 'tfeaTimerId'------ * 'tfeaStartedEventId'-timerFiredEventAttributes-    :: Text -- ^ 'tfeaTimerId'-    -> Integer -- ^ 'tfeaStartedEventId'-    -> TimerFiredEventAttributes-timerFiredEventAttributes pTimerId_ pStartedEventId_ =-    TimerFiredEventAttributes'-    { _tfeaTimerId = pTimerId_-    , _tfeaStartedEventId = pStartedEventId_-    }---- | The unique ID of the timer that fired.-tfeaTimerId :: Lens' TimerFiredEventAttributes Text-tfeaTimerId = lens _tfeaTimerId (\ s a -> s{_tfeaTimerId = a});---- | The ID of the 'TimerStarted' 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-tfeaStartedEventId = lens _tfeaStartedEventId (\ s a -> s{_tfeaStartedEventId = a});--instance FromJSON TimerFiredEventAttributes where-        parseJSON-          = withObject "TimerFiredEventAttributes"-              (\ x ->-                 TimerFiredEventAttributes' <$>-                   (x .: "timerId") <*> (x .: "startedEventId"))--instance Hashable TimerFiredEventAttributes--instance NFData TimerFiredEventAttributes---- | Provides details of the 'TimerStarted' event.------ /See:/ 'timerStartedEventAttributes' smart constructor.-data TimerStartedEventAttributes = TimerStartedEventAttributes'-    { _tseaControl                      :: !(Maybe Text)-    , _tseaTimerId                      :: !Text-    , _tseaStartToFireTimeout           :: !Text-    , _tseaDecisionTaskCompletedEventId :: !Integer-    } deriving (Eq,Read,Show,Data,Typeable,Generic)---- | Creates a value of 'TimerStartedEventAttributes' with the minimum fields required to make a request.------ Use one of the following lenses to modify other fields as desired:------ * 'tseaControl'------ * 'tseaTimerId'------ * 'tseaStartToFireTimeout'------ * 'tseaDecisionTaskCompletedEventId'-timerStartedEventAttributes-    :: Text -- ^ 'tseaTimerId'-    -> Text -- ^ 'tseaStartToFireTimeout'-    -> Integer -- ^ 'tseaDecisionTaskCompletedEventId'-    -> TimerStartedEventAttributes-timerStartedEventAttributes pTimerId_ pStartToFireTimeout_ pDecisionTaskCompletedEventId_ =-    TimerStartedEventAttributes'-    { _tseaControl = Nothing-    , _tseaTimerId = pTimerId_-    , _tseaStartToFireTimeout = pStartToFireTimeout_-    , _tseaDecisionTaskCompletedEventId = pDecisionTaskCompletedEventId_-    }---- | /Optional./ Data attached to the event that can be used by the decider in subsequent workflow tasks.-tseaControl :: Lens' TimerStartedEventAttributes (Maybe Text)-tseaControl = lens _tseaControl (\ s a -> s{_tseaControl = a});---- | The unique ID of the timer that was started.-tseaTimerId :: Lens' TimerStartedEventAttributes Text-tseaTimerId = lens _tseaTimerId (\ s a -> s{_tseaTimerId = a});---- | The duration of time after which the timer will fire.------ The duration is specified in seconds; an integer greater than or equal to 0.-tseaStartToFireTimeout :: Lens' TimerStartedEventAttributes Text-tseaStartToFireTimeout = lens _tseaStartToFireTimeout (\ s a -> s{_tseaStartToFireTimeout = a});---- | The ID of the 'DecisionTaskCompleted' event corresponding to the decision task that resulted in the 'StartTimer' 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-tseaDecisionTaskCompletedEventId = lens _tseaDecisionTaskCompletedEventId (\ s a -> s{_tseaDecisionTaskCompletedEventId = a});--instance FromJSON TimerStartedEventAttributes where-        parseJSON-          = withObject "TimerStartedEventAttributes"-              (\ x ->-                 TimerStartedEventAttributes' <$>-                   (x .:? "control") <*> (x .: "timerId") <*>-                     (x .: "startToFireTimeout")-                     <*> (x .: "decisionTaskCompletedEventId"))--instance Hashable TimerStartedEventAttributes--instance NFData TimerStartedEventAttributes---- | Represents a workflow execution.------ /See:/ 'workflowExecution' smart constructor.-data WorkflowExecution = WorkflowExecution'-    { _weWorkflowId :: !Text-    , _weRunId      :: !Text-    } deriving (Eq,Read,Show,Data,Typeable,Generic)---- | Creates a value of 'WorkflowExecution' with the minimum fields required to make a request.------ Use one of the following lenses to modify other fields as desired:------ * 'weWorkflowId'------ * 'weRunId'-workflowExecution-    :: Text -- ^ 'weWorkflowId'-    -> Text -- ^ 'weRunId'-    -> WorkflowExecution-workflowExecution pWorkflowId_ pRunId_ =-    WorkflowExecution'-    { _weWorkflowId = pWorkflowId_-    , _weRunId = pRunId_-    }---- | The user defined identifier associated with the workflow execution.-weWorkflowId :: Lens' WorkflowExecution Text-weWorkflowId = lens _weWorkflowId (\ s a -> s{_weWorkflowId = a});---- | A system-generated unique identifier for the workflow execution.-weRunId :: Lens' WorkflowExecution Text-weRunId = lens _weRunId (\ s a -> s{_weRunId = a});--instance FromJSON WorkflowExecution where-        parseJSON-          = withObject "WorkflowExecution"-              (\ x ->-                 WorkflowExecution' <$>-                   (x .: "workflowId") <*> (x .: "runId"))--instance Hashable WorkflowExecution--instance NFData WorkflowExecution--instance ToJSON WorkflowExecution where-        toJSON WorkflowExecution'{..}-          = object-              (catMaybes-                 [Just ("workflowId" .= _weWorkflowId),-                  Just ("runId" .= _weRunId)])---- | Provides details of the 'WorkflowExecutionCancelRequested' event.------ /See:/ 'workflowExecutionCancelRequestedEventAttributes' smart constructor.-data WorkflowExecutionCancelRequestedEventAttributes = WorkflowExecutionCancelRequestedEventAttributes'-    { _wecreaExternalWorkflowExecution :: !(Maybe WorkflowExecution)-    , _wecreaExternalInitiatedEventId  :: !(Maybe Integer)-    , _wecreaCause                     :: !(Maybe WorkflowExecutionCancelRequestedCause)-    } deriving (Eq,Read,Show,Data,Typeable,Generic)---- | Creates a value of 'WorkflowExecutionCancelRequestedEventAttributes' with the minimum fields required to make a request.------ Use one of the following lenses to modify other fields as desired:------ * 'wecreaExternalWorkflowExecution'------ * 'wecreaExternalInitiatedEventId'------ * 'wecreaCause'-workflowExecutionCancelRequestedEventAttributes-    :: WorkflowExecutionCancelRequestedEventAttributes-workflowExecutionCancelRequestedEventAttributes =-    WorkflowExecutionCancelRequestedEventAttributes'-    { _wecreaExternalWorkflowExecution = Nothing-    , _wecreaExternalInitiatedEventId = Nothing-    , _wecreaCause = Nothing-    }---- | The external workflow execution for which the cancellation was requested.-wecreaExternalWorkflowExecution :: Lens' WorkflowExecutionCancelRequestedEventAttributes (Maybe WorkflowExecution)-wecreaExternalWorkflowExecution = lens _wecreaExternalWorkflowExecution (\ s a -> s{_wecreaExternalWorkflowExecution = a});---- | The ID of the 'RequestCancelExternalWorkflowExecutionInitiated' event corresponding to the 'RequestCancelExternalWorkflowExecution' 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)-wecreaExternalInitiatedEventId = lens _wecreaExternalInitiatedEventId (\ s a -> s{_wecreaExternalInitiatedEventId = 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.-wecreaCause :: Lens' WorkflowExecutionCancelRequestedEventAttributes (Maybe WorkflowExecutionCancelRequestedCause)-wecreaCause = lens _wecreaCause (\ s a -> s{_wecreaCause = a});--instance FromJSON-         WorkflowExecutionCancelRequestedEventAttributes where-        parseJSON-          = withObject-              "WorkflowExecutionCancelRequestedEventAttributes"-              (\ x ->-                 WorkflowExecutionCancelRequestedEventAttributes' <$>-                   (x .:? "externalWorkflowExecution") <*>-                     (x .:? "externalInitiatedEventId")-                     <*> (x .:? "cause"))--instance Hashable-         WorkflowExecutionCancelRequestedEventAttributes--instance NFData-         WorkflowExecutionCancelRequestedEventAttributes---- | Provides details of the 'WorkflowExecutionCanceled' event.------ /See:/ 'workflowExecutionCanceledEventAttributes' smart constructor.-data WorkflowExecutionCanceledEventAttributes = WorkflowExecutionCanceledEventAttributes'-    { _wDetails                      :: !(Maybe Text)-    , _wDecisionTaskCompletedEventId :: !Integer-    } deriving (Eq,Read,Show,Data,Typeable,Generic)---- | Creates a value of 'WorkflowExecutionCanceledEventAttributes' with the minimum fields required to make a request.------ Use one of the following lenses to modify other fields as desired:------ * 'wDetails'------ * 'wDecisionTaskCompletedEventId'-workflowExecutionCanceledEventAttributes-    :: Integer -- ^ 'wDecisionTaskCompletedEventId'-    -> WorkflowExecutionCanceledEventAttributes-workflowExecutionCanceledEventAttributes pDecisionTaskCompletedEventId_ =-    WorkflowExecutionCanceledEventAttributes'-    { _wDetails = Nothing-    , _wDecisionTaskCompletedEventId = pDecisionTaskCompletedEventId_-    }---- | Details for the cancellation (if any).-wDetails :: Lens' WorkflowExecutionCanceledEventAttributes (Maybe Text)-wDetails = lens _wDetails (\ s a -> s{_wDetails = a});---- | The ID of the 'DecisionTaskCompleted' event corresponding to the decision task that resulted in the 'CancelWorkflowExecution' 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-wDecisionTaskCompletedEventId = lens _wDecisionTaskCompletedEventId (\ s a -> s{_wDecisionTaskCompletedEventId = a});--instance FromJSON-         WorkflowExecutionCanceledEventAttributes where-        parseJSON-          = withObject-              "WorkflowExecutionCanceledEventAttributes"-              (\ x ->-                 WorkflowExecutionCanceledEventAttributes' <$>-                   (x .:? "details") <*>-                     (x .: "decisionTaskCompletedEventId"))--instance Hashable-         WorkflowExecutionCanceledEventAttributes--instance NFData-         WorkflowExecutionCanceledEventAttributes---- | Provides details of the 'WorkflowExecutionCompleted' event.------ /See:/ 'workflowExecutionCompletedEventAttributes' smart constructor.-data WorkflowExecutionCompletedEventAttributes = WorkflowExecutionCompletedEventAttributes'-    { _weceaResult                       :: !(Maybe Text)-    , _weceaDecisionTaskCompletedEventId :: !Integer-    } deriving (Eq,Read,Show,Data,Typeable,Generic)---- | Creates a value of 'WorkflowExecutionCompletedEventAttributes' with the minimum fields required to make a request.------ Use one of the following lenses to modify other fields as desired:------ * 'weceaResult'------ * 'weceaDecisionTaskCompletedEventId'-workflowExecutionCompletedEventAttributes-    :: Integer -- ^ 'weceaDecisionTaskCompletedEventId'-    -> WorkflowExecutionCompletedEventAttributes-workflowExecutionCompletedEventAttributes pDecisionTaskCompletedEventId_ =-    WorkflowExecutionCompletedEventAttributes'-    { _weceaResult = Nothing-    , _weceaDecisionTaskCompletedEventId = pDecisionTaskCompletedEventId_-    }---- | The result produced by the workflow execution upon successful completion.-weceaResult :: Lens' WorkflowExecutionCompletedEventAttributes (Maybe Text)-weceaResult = lens _weceaResult (\ s a -> s{_weceaResult = a});---- | The ID of the 'DecisionTaskCompleted' event corresponding to the decision task that resulted in the 'CompleteWorkflowExecution' 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-weceaDecisionTaskCompletedEventId = lens _weceaDecisionTaskCompletedEventId (\ s a -> s{_weceaDecisionTaskCompletedEventId = a});--instance FromJSON-         WorkflowExecutionCompletedEventAttributes where-        parseJSON-          = withObject-              "WorkflowExecutionCompletedEventAttributes"-              (\ x ->-                 WorkflowExecutionCompletedEventAttributes' <$>-                   (x .:? "result") <*>-                     (x .: "decisionTaskCompletedEventId"))--instance Hashable-         WorkflowExecutionCompletedEventAttributes--instance NFData-         WorkflowExecutionCompletedEventAttributes---- | 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.------ /See:/ 'workflowExecutionConfiguration' smart constructor.-data WorkflowExecutionConfiguration = WorkflowExecutionConfiguration'-    { _wecLambdaRole                   :: !(Maybe Text)-    , _wecTaskPriority                 :: !(Maybe Text)-    , _wecTaskStartToCloseTimeout      :: !Text-    , _wecExecutionStartToCloseTimeout :: !Text-    , _wecTaskList                     :: !TaskList-    , _wecChildPolicy                  :: !ChildPolicy-    } deriving (Eq,Read,Show,Data,Typeable,Generic)---- | Creates a value of 'WorkflowExecutionConfiguration' with the minimum fields required to make a request.------ Use one of the following lenses to modify other fields as desired:------ * 'wecLambdaRole'------ * 'wecTaskPriority'------ * 'wecTaskStartToCloseTimeout'------ * 'wecExecutionStartToCloseTimeout'------ * 'wecTaskList'------ * 'wecChildPolicy'-workflowExecutionConfiguration-    :: Text -- ^ 'wecTaskStartToCloseTimeout'-    -> Text -- ^ 'wecExecutionStartToCloseTimeout'-    -> TaskList -- ^ 'wecTaskList'-    -> ChildPolicy -- ^ 'wecChildPolicy'-    -> WorkflowExecutionConfiguration-workflowExecutionConfiguration pTaskStartToCloseTimeout_ pExecutionStartToCloseTimeout_ pTaskList_ pChildPolicy_ =-    WorkflowExecutionConfiguration'-    { _wecLambdaRole = Nothing-    , _wecTaskPriority = Nothing-    , _wecTaskStartToCloseTimeout = pTaskStartToCloseTimeout_-    , _wecExecutionStartToCloseTimeout = pExecutionStartToCloseTimeout_-    , _wecTaskList = pTaskList_-    , _wecChildPolicy = pChildPolicy_-    }---- | The IAM role used by this workflow execution when invoking AWS Lambda functions.-wecLambdaRole :: Lens' WorkflowExecutionConfiguration (Maybe Text)-wecLambdaRole = lens _wecLambdaRole (\ s a -> s{_wecLambdaRole = a});---- | The priority assigned to decision tasks for this workflow execution. Valid values are integers that range from Java\'s 'Integer.MIN_VALUE' (-2147483648) to 'Integer.MAX_VALUE' (2147483647). Higher numbers indicate higher priority.------ For more information about setting task priority, see <http://docs.aws.amazon.com/amazonswf/latest/developerguide/programming-priority.html Setting Task Priority> in the /Amazon Simple Workflow Developer Guide/.-wecTaskPriority :: Lens' WorkflowExecutionConfiguration (Maybe Text)-wecTaskPriority = lens _wecTaskPriority (\ s a -> s{_wecTaskPriority = 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 0. The value \"NONE\" can be used to specify unlimited duration.-wecTaskStartToCloseTimeout :: Lens' WorkflowExecutionConfiguration Text-wecTaskStartToCloseTimeout = lens _wecTaskStartToCloseTimeout (\ s a -> s{_wecTaskStartToCloseTimeout = a});---- | The total duration for this workflow execution.------ The duration is specified in seconds; an integer greater than or equal to 0. The value \"NONE\" can be used to specify unlimited duration.-wecExecutionStartToCloseTimeout :: Lens' WorkflowExecutionConfiguration Text-wecExecutionStartToCloseTimeout = lens _wecExecutionStartToCloseTimeout (\ s a -> s{_wecExecutionStartToCloseTimeout = a});---- | The task list used for the decision tasks generated for this workflow execution.-wecTaskList :: Lens' WorkflowExecutionConfiguration TaskList-wecTaskList = lens _wecTaskList (\ s a -> s{_wecTaskList = a});---- | The policy to use for the child workflow executions if this workflow execution is terminated, by calling the < TerminateWorkflowExecution> action explicitly or due to an expired timeout.------ The supported child policies are:------ -   __TERMINATE:__ the child executions will be terminated.--- -   __REQUEST_CANCEL:__ a request to cancel will be attempted for each child execution by recording a 'WorkflowExecutionCancelRequested' event in its history. It is up to the decider to take appropriate actions when it receives an execution history with this event.--- -   __ABANDON:__ no action will be taken. The child executions will continue to run.-wecChildPolicy :: Lens' WorkflowExecutionConfiguration ChildPolicy-wecChildPolicy = lens _wecChildPolicy (\ s a -> s{_wecChildPolicy = a});--instance FromJSON WorkflowExecutionConfiguration-         where-        parseJSON-          = withObject "WorkflowExecutionConfiguration"-              (\ x ->-                 WorkflowExecutionConfiguration' <$>-                   (x .:? "lambdaRole") <*> (x .:? "taskPriority") <*>-                     (x .: "taskStartToCloseTimeout")-                     <*> (x .: "executionStartToCloseTimeout")-                     <*> (x .: "taskList")-                     <*> (x .: "childPolicy"))--instance Hashable WorkflowExecutionConfiguration--instance NFData WorkflowExecutionConfiguration---- | Provides details of the 'WorkflowExecutionContinuedAsNew' event.------ /See:/ 'workflowExecutionContinuedAsNewEventAttributes' smart constructor.-data WorkflowExecutionContinuedAsNewEventAttributes = WorkflowExecutionContinuedAsNewEventAttributes'-    { _wecaneaTagList                      :: !(Maybe [Text])-    , _wecaneaTaskStartToCloseTimeout      :: !(Maybe Text)-    , _wecaneaLambdaRole                   :: !(Maybe Text)-    , _wecaneaInput                        :: !(Maybe Text)-    , _wecaneaExecutionStartToCloseTimeout :: !(Maybe Text)-    , _wecaneaTaskPriority                 :: !(Maybe Text)-    , _wecaneaDecisionTaskCompletedEventId :: !Integer-    , _wecaneaNewExecutionRunId            :: !Text-    , _wecaneaTaskList                     :: !TaskList-    , _wecaneaChildPolicy                  :: !ChildPolicy-    , _wecaneaWorkflowType                 :: !WorkflowType-    } deriving (Eq,Read,Show,Data,Typeable,Generic)---- | Creates a value of 'WorkflowExecutionContinuedAsNewEventAttributes' with the minimum fields required to make a request.------ Use one of the following lenses to modify other fields as desired:------ * 'wecaneaTagList'------ * 'wecaneaTaskStartToCloseTimeout'------ * 'wecaneaLambdaRole'------ * 'wecaneaInput'------ * 'wecaneaExecutionStartToCloseTimeout'------ * 'wecaneaTaskPriority'------ * 'wecaneaDecisionTaskCompletedEventId'------ * 'wecaneaNewExecutionRunId'------ * 'wecaneaTaskList'------ * 'wecaneaChildPolicy'------ * 'wecaneaWorkflowType'-workflowExecutionContinuedAsNewEventAttributes-    :: Integer -- ^ 'wecaneaDecisionTaskCompletedEventId'-    -> Text -- ^ 'wecaneaNewExecutionRunId'-    -> TaskList -- ^ 'wecaneaTaskList'-    -> ChildPolicy -- ^ 'wecaneaChildPolicy'-    -> WorkflowType -- ^ 'wecaneaWorkflowType'-    -> WorkflowExecutionContinuedAsNewEventAttributes-workflowExecutionContinuedAsNewEventAttributes pDecisionTaskCompletedEventId_ pNewExecutionRunId_ pTaskList_ pChildPolicy_ pWorkflowType_ =-    WorkflowExecutionContinuedAsNewEventAttributes'-    { _wecaneaTagList = Nothing-    , _wecaneaTaskStartToCloseTimeout = Nothing-    , _wecaneaLambdaRole = Nothing-    , _wecaneaInput = Nothing-    , _wecaneaExecutionStartToCloseTimeout = Nothing-    , _wecaneaTaskPriority = Nothing-    , _wecaneaDecisionTaskCompletedEventId = pDecisionTaskCompletedEventId_-    , _wecaneaNewExecutionRunId = pNewExecutionRunId_-    , _wecaneaTaskList = pTaskList_-    , _wecaneaChildPolicy = pChildPolicy_-    , _wecaneaWorkflowType = pWorkflowType_-    }---- | The list of tags associated with the new workflow execution.-wecaneaTagList :: Lens' WorkflowExecutionContinuedAsNewEventAttributes [Text]-wecaneaTagList = lens _wecaneaTagList (\ s a -> s{_wecaneaTagList = a}) . _Default . _Coerce;---- | The maximum duration of decision tasks for the new workflow execution.------ The duration is specified in seconds; an integer greater than or equal to 0. The value \"NONE\" can be used to specify unlimited duration.-wecaneaTaskStartToCloseTimeout :: Lens' WorkflowExecutionContinuedAsNewEventAttributes (Maybe Text)-wecaneaTaskStartToCloseTimeout = lens _wecaneaTaskStartToCloseTimeout (\ s a -> s{_wecaneaTaskStartToCloseTimeout = a});---- | The IAM role attached to this workflow execution to use when invoking AWS Lambda functions.-wecaneaLambdaRole :: Lens' WorkflowExecutionContinuedAsNewEventAttributes (Maybe Text)-wecaneaLambdaRole = lens _wecaneaLambdaRole (\ s a -> s{_wecaneaLambdaRole = a});---- | The input provided to the new workflow execution.-wecaneaInput :: Lens' WorkflowExecutionContinuedAsNewEventAttributes (Maybe Text)-wecaneaInput = lens _wecaneaInput (\ s a -> s{_wecaneaInput = a});---- | The total duration allowed for the new workflow execution.------ The duration is specified in seconds; an integer greater than or equal to 0. The value \"NONE\" can be used to specify unlimited duration.-wecaneaExecutionStartToCloseTimeout :: Lens' WorkflowExecutionContinuedAsNewEventAttributes (Maybe Text)-wecaneaExecutionStartToCloseTimeout = lens _wecaneaExecutionStartToCloseTimeout (\ s a -> s{_wecaneaExecutionStartToCloseTimeout = a});---- | Undocumented member.-wecaneaTaskPriority :: Lens' WorkflowExecutionContinuedAsNewEventAttributes (Maybe Text)-wecaneaTaskPriority = lens _wecaneaTaskPriority (\ s a -> s{_wecaneaTaskPriority = a});---- | The ID of the 'DecisionTaskCompleted' event corresponding to the decision task that resulted in the 'ContinueAsNewWorkflowExecution' 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-wecaneaDecisionTaskCompletedEventId = lens _wecaneaDecisionTaskCompletedEventId (\ s a -> s{_wecaneaDecisionTaskCompletedEventId = a});---- | The 'runId' of the new workflow execution.-wecaneaNewExecutionRunId :: Lens' WorkflowExecutionContinuedAsNewEventAttributes Text-wecaneaNewExecutionRunId = lens _wecaneaNewExecutionRunId (\ s a -> s{_wecaneaNewExecutionRunId = a});---- | Undocumented member.-wecaneaTaskList :: Lens' WorkflowExecutionContinuedAsNewEventAttributes TaskList-wecaneaTaskList = lens _wecaneaTaskList (\ s a -> s{_wecaneaTaskList = a});---- | The policy to use for the child workflow executions of the new execution if it is terminated by calling the < TerminateWorkflowExecution> action explicitly or due to an expired timeout.------ The supported child policies are:------ -   __TERMINATE:__ the child executions will be terminated.--- -   __REQUEST_CANCEL:__ a request to cancel will be attempted for each child execution by recording a 'WorkflowExecutionCancelRequested' event in its history. It is up to the decider to take appropriate actions when it receives an execution history with this event.--- -   __ABANDON:__ no action will be taken. The child executions will continue to run.-wecaneaChildPolicy :: Lens' WorkflowExecutionContinuedAsNewEventAttributes ChildPolicy-wecaneaChildPolicy = lens _wecaneaChildPolicy (\ s a -> s{_wecaneaChildPolicy = a});---- | Undocumented member.-wecaneaWorkflowType :: Lens' WorkflowExecutionContinuedAsNewEventAttributes WorkflowType-wecaneaWorkflowType = lens _wecaneaWorkflowType (\ s a -> s{_wecaneaWorkflowType = a});--instance FromJSON-         WorkflowExecutionContinuedAsNewEventAttributes where-        parseJSON-          = withObject-              "WorkflowExecutionContinuedAsNewEventAttributes"-              (\ x ->-                 WorkflowExecutionContinuedAsNewEventAttributes' <$>-                   (x .:? "tagList" .!= mempty) <*>-                     (x .:? "taskStartToCloseTimeout")-                     <*> (x .:? "lambdaRole")-                     <*> (x .:? "input")-                     <*> (x .:? "executionStartToCloseTimeout")-                     <*> (x .:? "taskPriority")-                     <*> (x .: "decisionTaskCompletedEventId")-                     <*> (x .: "newExecutionRunId")-                     <*> (x .: "taskList")-                     <*> (x .: "childPolicy")-                     <*> (x .: "workflowType"))--instance Hashable-         WorkflowExecutionContinuedAsNewEventAttributes--instance NFData-         WorkflowExecutionContinuedAsNewEventAttributes---- | Contains the count of workflow executions returned from < CountOpenWorkflowExecutions> or < CountClosedWorkflowExecutions>------ /See:/ 'workflowExecutionCount' smart constructor.-data WorkflowExecutionCount = WorkflowExecutionCount'-    { _wecTruncated :: !(Maybe Bool)-    , _wecCount     :: !Nat-    } deriving (Eq,Read,Show,Data,Typeable,Generic)---- | Creates a value of 'WorkflowExecutionCount' with the minimum fields required to make a request.------ Use one of the following lenses to modify other fields as desired:------ * 'wecTruncated'------ * 'wecCount'-workflowExecutionCount-    :: Natural -- ^ 'wecCount'-    -> WorkflowExecutionCount-workflowExecutionCount pCount_ =-    WorkflowExecutionCount'-    { _wecTruncated = Nothing-    , _wecCount = _Nat # pCount_-    }---- | 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)-wecTruncated = lens _wecTruncated (\ s a -> s{_wecTruncated = a});---- | The number of workflow executions.-wecCount :: Lens' WorkflowExecutionCount Natural-wecCount = lens _wecCount (\ s a -> s{_wecCount = a}) . _Nat;--instance FromJSON WorkflowExecutionCount where-        parseJSON-          = withObject "WorkflowExecutionCount"-              (\ x ->-                 WorkflowExecutionCount' <$>-                   (x .:? "truncated") <*> (x .: "count"))--instance Hashable WorkflowExecutionCount--instance NFData WorkflowExecutionCount---- | Provides details of the 'WorkflowExecutionFailed' event.------ /See:/ 'workflowExecutionFailedEventAttributes' smart constructor.-data WorkflowExecutionFailedEventAttributes = WorkflowExecutionFailedEventAttributes'-    { _wefeaReason                       :: !(Maybe Text)-    , _wefeaDetails                      :: !(Maybe Text)-    , _wefeaDecisionTaskCompletedEventId :: !Integer-    } deriving (Eq,Read,Show,Data,Typeable,Generic)---- | Creates a value of 'WorkflowExecutionFailedEventAttributes' with the minimum fields required to make a request.------ Use one of the following lenses to modify other fields as desired:------ * 'wefeaReason'------ * 'wefeaDetails'------ * 'wefeaDecisionTaskCompletedEventId'-workflowExecutionFailedEventAttributes-    :: Integer -- ^ 'wefeaDecisionTaskCompletedEventId'-    -> WorkflowExecutionFailedEventAttributes-workflowExecutionFailedEventAttributes pDecisionTaskCompletedEventId_ =-    WorkflowExecutionFailedEventAttributes'-    { _wefeaReason = Nothing-    , _wefeaDetails = Nothing-    , _wefeaDecisionTaskCompletedEventId = pDecisionTaskCompletedEventId_-    }---- | The descriptive reason provided for the failure (if any).-wefeaReason :: Lens' WorkflowExecutionFailedEventAttributes (Maybe Text)-wefeaReason = lens _wefeaReason (\ s a -> s{_wefeaReason = a});---- | The details of the failure (if any).-wefeaDetails :: Lens' WorkflowExecutionFailedEventAttributes (Maybe Text)-wefeaDetails = lens _wefeaDetails (\ s a -> s{_wefeaDetails = a});---- | The ID of the 'DecisionTaskCompleted' event corresponding to the decision task that resulted in the 'FailWorkflowExecution' 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-wefeaDecisionTaskCompletedEventId = lens _wefeaDecisionTaskCompletedEventId (\ s a -> s{_wefeaDecisionTaskCompletedEventId = a});--instance FromJSON-         WorkflowExecutionFailedEventAttributes where-        parseJSON-          = withObject "WorkflowExecutionFailedEventAttributes"-              (\ x ->-                 WorkflowExecutionFailedEventAttributes' <$>-                   (x .:? "reason") <*> (x .:? "details") <*>-                     (x .: "decisionTaskCompletedEventId"))--instance Hashable-         WorkflowExecutionFailedEventAttributes--instance NFData-         WorkflowExecutionFailedEventAttributes---- | Used to filter the workflow executions in visibility APIs by their 'workflowId'.------ /See:/ 'workflowExecutionFilter' smart constructor.-newtype WorkflowExecutionFilter = WorkflowExecutionFilter'-    { _wefWorkflowId :: Text-    } deriving (Eq,Read,Show,Data,Typeable,Generic)---- | Creates a value of 'WorkflowExecutionFilter' with the minimum fields required to make a request.------ Use one of the following lenses to modify other fields as desired:------ * 'wefWorkflowId'-workflowExecutionFilter-    :: Text -- ^ 'wefWorkflowId'-    -> WorkflowExecutionFilter-workflowExecutionFilter pWorkflowId_ =-    WorkflowExecutionFilter'-    { _wefWorkflowId = pWorkflowId_-    }---- | The workflowId to pass of match the criteria of this filter.-wefWorkflowId :: Lens' WorkflowExecutionFilter Text-wefWorkflowId = lens _wefWorkflowId (\ s a -> s{_wefWorkflowId = a});--instance Hashable WorkflowExecutionFilter--instance NFData WorkflowExecutionFilter--instance ToJSON WorkflowExecutionFilter where-        toJSON WorkflowExecutionFilter'{..}-          = object-              (catMaybes [Just ("workflowId" .= _wefWorkflowId)])---- | Contains information about a workflow execution.------ /See:/ 'workflowExecutionInfo' smart constructor.-data WorkflowExecutionInfo = WorkflowExecutionInfo'-    { _weiParent          :: !(Maybe WorkflowExecution)-    , _weiTagList         :: !(Maybe [Text])-    , _weiCloseStatus     :: !(Maybe CloseStatus)-    , _weiCloseTimestamp  :: !(Maybe POSIX)-    , _weiCancelRequested :: !(Maybe Bool)-    , _weiExecution       :: !WorkflowExecution-    , _weiWorkflowType    :: !WorkflowType-    , _weiStartTimestamp  :: !POSIX-    , _weiExecutionStatus :: !ExecutionStatus-    } deriving (Eq,Read,Show,Data,Typeable,Generic)---- | Creates a value of 'WorkflowExecutionInfo' with the minimum fields required to make a request.------ Use one of the following lenses to modify other fields as desired:------ * 'weiParent'------ * 'weiTagList'------ * 'weiCloseStatus'------ * 'weiCloseTimestamp'------ * 'weiCancelRequested'------ * 'weiExecution'------ * 'weiWorkflowType'------ * 'weiStartTimestamp'------ * 'weiExecutionStatus'-workflowExecutionInfo-    :: WorkflowExecution -- ^ 'weiExecution'-    -> WorkflowType -- ^ 'weiWorkflowType'-    -> UTCTime -- ^ 'weiStartTimestamp'-    -> ExecutionStatus -- ^ 'weiExecutionStatus'-    -> WorkflowExecutionInfo-workflowExecutionInfo pExecution_ pWorkflowType_ pStartTimestamp_ pExecutionStatus_ =-    WorkflowExecutionInfo'-    { _weiParent = Nothing-    , _weiTagList = Nothing-    , _weiCloseStatus = Nothing-    , _weiCloseTimestamp = Nothing-    , _weiCancelRequested = Nothing-    , _weiExecution = pExecution_-    , _weiWorkflowType = pWorkflowType_-    , _weiStartTimestamp = _Time # pStartTimestamp_-    , _weiExecutionStatus = pExecutionStatus_-    }---- | If this workflow execution is a child of another execution then contains the workflow execution that started this execution.-weiParent :: Lens' WorkflowExecutionInfo (Maybe WorkflowExecution)-weiParent = lens _weiParent (\ s a -> s{_weiParent = 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.-weiTagList :: Lens' WorkflowExecutionInfo [Text]-weiTagList = lens _weiTagList (\ s a -> s{_weiTagList = a}) . _Default . _Coerce;---- | If the execution status is closed then this specifies how the execution was closed:------ -   'COMPLETED': the execution was successfully completed.--- -   'CANCELED': the execution was canceled.Cancellation allows the implementation to gracefully clean up before the execution is closed.--- -   'TERMINATED': the execution was force terminated.--- -   'FAILED': the execution failed to complete.--- -   'TIMED_OUT': the execution did not complete in the alloted time and was automatically timed out.--- -   'CONTINUED_AS_NEW': 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)-weiCloseStatus = lens _weiCloseStatus (\ s a -> s{_weiCloseStatus = a});---- | The time when the workflow execution was closed. Set only if the execution status is CLOSED.-weiCloseTimestamp :: Lens' WorkflowExecutionInfo (Maybe UTCTime)-weiCloseTimestamp = lens _weiCloseTimestamp (\ s a -> s{_weiCloseTimestamp = a}) . mapping _Time;---- | Set to true if a cancellation is requested for this workflow execution.-weiCancelRequested :: Lens' WorkflowExecutionInfo (Maybe Bool)-weiCancelRequested = lens _weiCancelRequested (\ s a -> s{_weiCancelRequested = a});---- | The workflow execution this information is about.-weiExecution :: Lens' WorkflowExecutionInfo WorkflowExecution-weiExecution = lens _weiExecution (\ s a -> s{_weiExecution = a});---- | The type of the workflow execution.-weiWorkflowType :: Lens' WorkflowExecutionInfo WorkflowType-weiWorkflowType = lens _weiWorkflowType (\ s a -> s{_weiWorkflowType = a});---- | The time when the execution was started.-weiStartTimestamp :: Lens' WorkflowExecutionInfo UTCTime-weiStartTimestamp = lens _weiStartTimestamp (\ s a -> s{_weiStartTimestamp = a}) . _Time;---- | The current status of the execution.-weiExecutionStatus :: Lens' WorkflowExecutionInfo ExecutionStatus-weiExecutionStatus = lens _weiExecutionStatus (\ s a -> s{_weiExecutionStatus = a});--instance FromJSON WorkflowExecutionInfo where-        parseJSON-          = withObject "WorkflowExecutionInfo"-              (\ x ->-                 WorkflowExecutionInfo' <$>-                   (x .:? "parent") <*> (x .:? "tagList" .!= mempty) <*>-                     (x .:? "closeStatus")-                     <*> (x .:? "closeTimestamp")-                     <*> (x .:? "cancelRequested")-                     <*> (x .: "execution")-                     <*> (x .: "workflowType")-                     <*> (x .: "startTimestamp")-                     <*> (x .: "executionStatus"))--instance Hashable WorkflowExecutionInfo--instance NFData WorkflowExecutionInfo---- | Contains a paginated list of information about workflow executions.------ /See:/ 'workflowExecutionInfos' smart constructor.-data WorkflowExecutionInfos = WorkflowExecutionInfos'-    { _weiNextPageToken  :: !(Maybe Text)-    , _weiExecutionInfos :: ![WorkflowExecutionInfo]-    } deriving (Eq,Read,Show,Data,Typeable,Generic)---- | Creates a value of 'WorkflowExecutionInfos' with the minimum fields required to make a request.------ Use one of the following lenses to modify other fields as desired:------ * 'weiNextPageToken'------ * 'weiExecutionInfos'-workflowExecutionInfos-    :: WorkflowExecutionInfos-workflowExecutionInfos =-    WorkflowExecutionInfos'-    { _weiNextPageToken = Nothing-    , _weiExecutionInfos = mempty-    }---- | If a 'NextPageToken' 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 'nextPageToken'. Keep all other arguments unchanged.------ The configured 'maximumPageSize' determines how many results can be returned in a single call.-weiNextPageToken :: Lens' WorkflowExecutionInfos (Maybe Text)-weiNextPageToken = lens _weiNextPageToken (\ s a -> s{_weiNextPageToken = a});---- | The list of workflow information structures.-weiExecutionInfos :: Lens' WorkflowExecutionInfos [WorkflowExecutionInfo]-weiExecutionInfos = lens _weiExecutionInfos (\ s a -> s{_weiExecutionInfos = a}) . _Coerce;--instance FromJSON WorkflowExecutionInfos where-        parseJSON-          = withObject "WorkflowExecutionInfos"-              (\ x ->-                 WorkflowExecutionInfos' <$>-                   (x .:? "nextPageToken") <*>-                     (x .:? "executionInfos" .!= mempty))--instance Hashable WorkflowExecutionInfos--instance NFData WorkflowExecutionInfos---- | Contains the counts of open tasks, child workflow executions and timers for a workflow execution.------ /See:/ 'workflowExecutionOpenCounts' smart constructor.-data WorkflowExecutionOpenCounts = WorkflowExecutionOpenCounts'-    { _weocOpenLambdaFunctions         :: !(Maybe Nat)-    , _weocOpenActivityTasks           :: !Nat-    , _weocOpenDecisionTasks           :: !Nat-    , _weocOpenTimers                  :: !Nat-    , _weocOpenChildWorkflowExecutions :: !Nat-    } deriving (Eq,Read,Show,Data,Typeable,Generic)---- | Creates a value of 'WorkflowExecutionOpenCounts' with the minimum fields required to make a request.------ Use one of the following lenses to modify other fields as desired:------ * 'weocOpenLambdaFunctions'------ * 'weocOpenActivityTasks'------ * 'weocOpenDecisionTasks'------ * 'weocOpenTimers'------ * 'weocOpenChildWorkflowExecutions'-workflowExecutionOpenCounts-    :: Natural -- ^ 'weocOpenActivityTasks'-    -> Natural -- ^ 'weocOpenDecisionTasks'-    -> Natural -- ^ 'weocOpenTimers'-    -> Natural -- ^ 'weocOpenChildWorkflowExecutions'-    -> WorkflowExecutionOpenCounts-workflowExecutionOpenCounts pOpenActivityTasks_ pOpenDecisionTasks_ pOpenTimers_ pOpenChildWorkflowExecutions_ =-    WorkflowExecutionOpenCounts'-    { _weocOpenLambdaFunctions = Nothing-    , _weocOpenActivityTasks = _Nat # pOpenActivityTasks_-    , _weocOpenDecisionTasks = _Nat # pOpenDecisionTasks_-    , _weocOpenTimers = _Nat # pOpenTimers_-    , _weocOpenChildWorkflowExecutions = _Nat # pOpenChildWorkflowExecutions_-    }---- | The count of AWS Lambda functions that are currently executing.-weocOpenLambdaFunctions :: Lens' WorkflowExecutionOpenCounts (Maybe Natural)-weocOpenLambdaFunctions = lens _weocOpenLambdaFunctions (\ s a -> s{_weocOpenLambdaFunctions = a}) . mapping _Nat;---- | The count of activity tasks whose status is OPEN.-weocOpenActivityTasks :: Lens' WorkflowExecutionOpenCounts Natural-weocOpenActivityTasks = lens _weocOpenActivityTasks (\ s a -> s{_weocOpenActivityTasks = a}) . _Nat;---- | The count of decision tasks whose status is OPEN. A workflow execution can have at most one open decision task.-weocOpenDecisionTasks :: Lens' WorkflowExecutionOpenCounts Natural-weocOpenDecisionTasks = lens _weocOpenDecisionTasks (\ s a -> s{_weocOpenDecisionTasks = a}) . _Nat;---- | The count of timers started by this workflow execution that have not fired yet.-weocOpenTimers :: Lens' WorkflowExecutionOpenCounts Natural-weocOpenTimers = lens _weocOpenTimers (\ s a -> s{_weocOpenTimers = a}) . _Nat;---- | The count of child workflow executions whose status is OPEN.-weocOpenChildWorkflowExecutions :: Lens' WorkflowExecutionOpenCounts Natural-weocOpenChildWorkflowExecutions = lens _weocOpenChildWorkflowExecutions (\ s a -> s{_weocOpenChildWorkflowExecutions = a}) . _Nat;--instance FromJSON WorkflowExecutionOpenCounts where-        parseJSON-          = withObject "WorkflowExecutionOpenCounts"-              (\ x ->-                 WorkflowExecutionOpenCounts' <$>-                   (x .:? "openLambdaFunctions") <*>-                     (x .: "openActivityTasks")-                     <*> (x .: "openDecisionTasks")-                     <*> (x .: "openTimers")-                     <*> (x .: "openChildWorkflowExecutions"))--instance Hashable WorkflowExecutionOpenCounts--instance NFData WorkflowExecutionOpenCounts---- | Provides details of the 'WorkflowExecutionSignaled' event.------ /See:/ 'workflowExecutionSignaledEventAttributes' smart constructor.-data WorkflowExecutionSignaledEventAttributes = WorkflowExecutionSignaledEventAttributes'-    { _wExternalWorkflowExecution :: !(Maybe WorkflowExecution)-    , _wExternalInitiatedEventId  :: !(Maybe Integer)-    , _wInput                     :: !(Maybe Text)-    , _wSignalName                :: !Text-    } deriving (Eq,Read,Show,Data,Typeable,Generic)---- | Creates a value of 'WorkflowExecutionSignaledEventAttributes' with the minimum fields required to make a request.------ Use one of the following lenses to modify other fields as desired:------ * 'wExternalWorkflowExecution'------ * 'wExternalInitiatedEventId'------ * 'wInput'------ * 'wSignalName'-workflowExecutionSignaledEventAttributes-    :: Text -- ^ 'wSignalName'-    -> WorkflowExecutionSignaledEventAttributes-workflowExecutionSignaledEventAttributes pSignalName_ =-    WorkflowExecutionSignaledEventAttributes'-    { _wExternalWorkflowExecution = Nothing-    , _wExternalInitiatedEventId = Nothing-    , _wInput = Nothing-    , _wSignalName = pSignalName_-    }---- | 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)-wExternalWorkflowExecution = lens _wExternalWorkflowExecution (\ s a -> s{_wExternalWorkflowExecution = a});---- | The ID of the 'SignalExternalWorkflowExecutionInitiated' event corresponding to the 'SignalExternalWorkflow' 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)-wExternalInitiatedEventId = lens _wExternalInitiatedEventId (\ s a -> s{_wExternalInitiatedEventId = a});---- | Inputs provided with the signal (if any). The decider can use the signal name and inputs to determine how to process the signal.-wInput :: Lens' WorkflowExecutionSignaledEventAttributes (Maybe Text)-wInput = lens _wInput (\ s a -> s{_wInput = a});---- | 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-wSignalName = lens _wSignalName (\ s a -> s{_wSignalName = a});--instance FromJSON-         WorkflowExecutionSignaledEventAttributes where-        parseJSON-          = withObject-              "WorkflowExecutionSignaledEventAttributes"-              (\ x ->-                 WorkflowExecutionSignaledEventAttributes' <$>-                   (x .:? "externalWorkflowExecution") <*>-                     (x .:? "externalInitiatedEventId")-                     <*> (x .:? "input")-                     <*> (x .: "signalName"))--instance Hashable-         WorkflowExecutionSignaledEventAttributes--instance NFData-         WorkflowExecutionSignaledEventAttributes---- | Provides details of 'WorkflowExecutionStarted' event.------ /See:/ 'workflowExecutionStartedEventAttributes' smart constructor.-data WorkflowExecutionStartedEventAttributes = WorkflowExecutionStartedEventAttributes'-    { _weseaParentInitiatedEventId       :: !(Maybe Integer)-    , _weseaTagList                      :: !(Maybe [Text])-    , _weseaTaskStartToCloseTimeout      :: !(Maybe Text)-    , _weseaLambdaRole                   :: !(Maybe Text)-    , _weseaInput                        :: !(Maybe Text)-    , _weseaExecutionStartToCloseTimeout :: !(Maybe Text)-    , _weseaTaskPriority                 :: !(Maybe Text)-    , _weseaParentWorkflowExecution      :: !(Maybe WorkflowExecution)-    , _weseaContinuedExecutionRunId      :: !(Maybe Text)-    , _weseaChildPolicy                  :: !ChildPolicy-    , _weseaTaskList                     :: !TaskList-    , _weseaWorkflowType                 :: !WorkflowType-    } deriving (Eq,Read,Show,Data,Typeable,Generic)---- | Creates a value of 'WorkflowExecutionStartedEventAttributes' with the minimum fields required to make a request.------ Use one of the following lenses to modify other fields as desired:------ * 'weseaParentInitiatedEventId'------ * 'weseaTagList'------ * 'weseaTaskStartToCloseTimeout'------ * 'weseaLambdaRole'------ * 'weseaInput'------ * 'weseaExecutionStartToCloseTimeout'------ * 'weseaTaskPriority'------ * 'weseaParentWorkflowExecution'------ * 'weseaContinuedExecutionRunId'------ * 'weseaChildPolicy'------ * 'weseaTaskList'------ * 'weseaWorkflowType'-workflowExecutionStartedEventAttributes-    :: ChildPolicy -- ^ 'weseaChildPolicy'-    -> TaskList -- ^ 'weseaTaskList'-    -> WorkflowType -- ^ 'weseaWorkflowType'-    -> WorkflowExecutionStartedEventAttributes-workflowExecutionStartedEventAttributes pChildPolicy_ pTaskList_ pWorkflowType_ =-    WorkflowExecutionStartedEventAttributes'-    { _weseaParentInitiatedEventId = Nothing-    , _weseaTagList = Nothing-    , _weseaTaskStartToCloseTimeout = Nothing-    , _weseaLambdaRole = Nothing-    , _weseaInput = Nothing-    , _weseaExecutionStartToCloseTimeout = Nothing-    , _weseaTaskPriority = Nothing-    , _weseaParentWorkflowExecution = Nothing-    , _weseaContinuedExecutionRunId = Nothing-    , _weseaChildPolicy = pChildPolicy_-    , _weseaTaskList = pTaskList_-    , _weseaWorkflowType = pWorkflowType_-    }---- | The ID of the 'StartChildWorkflowExecutionInitiated' event corresponding to the 'StartChildWorkflowExecution' decision 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)-weseaParentInitiatedEventId = lens _weseaParentInitiatedEventId (\ s a -> s{_weseaParentInitiatedEventId = a});---- | The list of tags associated with this workflow execution. An execution can have up to 5 tags.-weseaTagList :: Lens' WorkflowExecutionStartedEventAttributes [Text]-weseaTagList = lens _weseaTagList (\ s a -> s{_weseaTagList = a}) . _Default . _Coerce;---- | The maximum duration of decision tasks for this workflow type.------ The duration is specified in seconds; an integer greater than or equal to 0. The value \"NONE\" can be used to specify unlimited duration.-weseaTaskStartToCloseTimeout :: Lens' WorkflowExecutionStartedEventAttributes (Maybe Text)-weseaTaskStartToCloseTimeout = lens _weseaTaskStartToCloseTimeout (\ s a -> s{_weseaTaskStartToCloseTimeout = a});---- | The IAM role attached to this workflow execution to use when invoking AWS Lambda functions.-weseaLambdaRole :: Lens' WorkflowExecutionStartedEventAttributes (Maybe Text)-weseaLambdaRole = lens _weseaLambdaRole (\ s a -> s{_weseaLambdaRole = a});---- | The input provided to the workflow execution (if any).-weseaInput :: Lens' WorkflowExecutionStartedEventAttributes (Maybe Text)-weseaInput = lens _weseaInput (\ s a -> s{_weseaInput = a});---- | The maximum duration for this workflow execution.------ The duration is specified in seconds; an integer greater than or equal to 0. The value \"NONE\" can be used to specify unlimited duration.-weseaExecutionStartToCloseTimeout :: Lens' WorkflowExecutionStartedEventAttributes (Maybe Text)-weseaExecutionStartToCloseTimeout = lens _weseaExecutionStartToCloseTimeout (\ s a -> s{_weseaExecutionStartToCloseTimeout = a});---- | Undocumented member.-weseaTaskPriority :: Lens' WorkflowExecutionStartedEventAttributes (Maybe Text)-weseaTaskPriority = lens _weseaTaskPriority (\ s a -> s{_weseaTaskPriority = a});---- | The source workflow execution that started this workflow execution. The member is not set if the workflow execution was not started by a workflow.-weseaParentWorkflowExecution :: Lens' WorkflowExecutionStartedEventAttributes (Maybe WorkflowExecution)-weseaParentWorkflowExecution = lens _weseaParentWorkflowExecution (\ s a -> s{_weseaParentWorkflowExecution = a});---- | If this workflow execution was started due to a 'ContinueAsNewWorkflowExecution' decision, then it contains the 'runId' of the previous workflow execution that was closed and continued as this execution.-weseaContinuedExecutionRunId :: Lens' WorkflowExecutionStartedEventAttributes (Maybe Text)-weseaContinuedExecutionRunId = lens _weseaContinuedExecutionRunId (\ s a -> s{_weseaContinuedExecutionRunId = a});---- | The policy to use for the child workflow executions if this workflow execution is terminated, by calling the < TerminateWorkflowExecution> action explicitly or due to an expired timeout.------ The supported child policies are:------ -   __TERMINATE:__ the child executions will be terminated.--- -   __REQUEST_CANCEL:__ a request to cancel will be attempted for each child execution by recording a 'WorkflowExecutionCancelRequested' event in its history. It is up to the decider to take appropriate actions when it receives an execution history with this event.--- -   __ABANDON:__ no action will be taken. The child executions will continue to run.-weseaChildPolicy :: Lens' WorkflowExecutionStartedEventAttributes ChildPolicy-weseaChildPolicy = lens _weseaChildPolicy (\ s a -> s{_weseaChildPolicy = a});---- | The name of the task list for scheduling the decision tasks for this workflow execution.-weseaTaskList :: Lens' WorkflowExecutionStartedEventAttributes TaskList-weseaTaskList = lens _weseaTaskList (\ s a -> s{_weseaTaskList = a});---- | The workflow type of this execution.-weseaWorkflowType :: Lens' WorkflowExecutionStartedEventAttributes WorkflowType-weseaWorkflowType = lens _weseaWorkflowType (\ s a -> s{_weseaWorkflowType = a});--instance FromJSON-         WorkflowExecutionStartedEventAttributes where-        parseJSON-          = withObject-              "WorkflowExecutionStartedEventAttributes"-              (\ x ->-                 WorkflowExecutionStartedEventAttributes' <$>-                   (x .:? "parentInitiatedEventId") <*>-                     (x .:? "tagList" .!= mempty)-                     <*> (x .:? "taskStartToCloseTimeout")-                     <*> (x .:? "lambdaRole")-                     <*> (x .:? "input")-                     <*> (x .:? "executionStartToCloseTimeout")-                     <*> (x .:? "taskPriority")-                     <*> (x .:? "parentWorkflowExecution")-                     <*> (x .:? "continuedExecutionRunId")-                     <*> (x .: "childPolicy")-                     <*> (x .: "taskList")-                     <*> (x .: "workflowType"))--instance Hashable-         WorkflowExecutionStartedEventAttributes--instance NFData-         WorkflowExecutionStartedEventAttributes---- | Provides details of the 'WorkflowExecutionTerminated' event.------ /See:/ 'workflowExecutionTerminatedEventAttributes' smart constructor.-data WorkflowExecutionTerminatedEventAttributes = WorkflowExecutionTerminatedEventAttributes'-    { _weteaCause       :: !(Maybe WorkflowExecutionTerminatedCause)-    , _weteaReason      :: !(Maybe Text)-    , _weteaDetails     :: !(Maybe Text)-    , _weteaChildPolicy :: !ChildPolicy-    } deriving (Eq,Read,Show,Data,Typeable,Generic)---- | Creates a value of 'WorkflowExecutionTerminatedEventAttributes' with the minimum fields required to make a request.------ Use one of the following lenses to modify other fields as desired:------ * 'weteaCause'------ * 'weteaReason'------ * 'weteaDetails'------ * 'weteaChildPolicy'-workflowExecutionTerminatedEventAttributes-    :: ChildPolicy -- ^ 'weteaChildPolicy'-    -> WorkflowExecutionTerminatedEventAttributes-workflowExecutionTerminatedEventAttributes pChildPolicy_ =-    WorkflowExecutionTerminatedEventAttributes'-    { _weteaCause = Nothing-    , _weteaReason = Nothing-    , _weteaDetails = Nothing-    , _weteaChildPolicy = pChildPolicy_-    }---- | 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)-weteaCause = lens _weteaCause (\ s a -> s{_weteaCause = a});---- | The reason provided for the termination (if any).-weteaReason :: Lens' WorkflowExecutionTerminatedEventAttributes (Maybe Text)-weteaReason = lens _weteaReason (\ s a -> s{_weteaReason = a});---- | The details provided for the termination (if any).-weteaDetails :: Lens' WorkflowExecutionTerminatedEventAttributes (Maybe Text)-weteaDetails = lens _weteaDetails (\ s a -> s{_weteaDetails = a});---- | The policy used for the child workflow executions of this workflow execution.------ The supported child policies are:------ -   __TERMINATE:__ the child executions will be terminated.--- -   __REQUEST_CANCEL:__ a request to cancel will be attempted for each child execution by recording a 'WorkflowExecutionCancelRequested' event in its history. It is up to the decider to take appropriate actions when it receives an execution history with this event.--- -   __ABANDON:__ no action will be taken. The child executions will continue to run.-weteaChildPolicy :: Lens' WorkflowExecutionTerminatedEventAttributes ChildPolicy-weteaChildPolicy = lens _weteaChildPolicy (\ s a -> s{_weteaChildPolicy = a});--instance FromJSON-         WorkflowExecutionTerminatedEventAttributes where-        parseJSON-          = withObject-              "WorkflowExecutionTerminatedEventAttributes"-              (\ x ->-                 WorkflowExecutionTerminatedEventAttributes' <$>-                   (x .:? "cause") <*> (x .:? "reason") <*>-                     (x .:? "details")-                     <*> (x .: "childPolicy"))--instance Hashable-         WorkflowExecutionTerminatedEventAttributes--instance NFData-         WorkflowExecutionTerminatedEventAttributes---- | Provides details of the 'WorkflowExecutionTimedOut' event.------ /See:/ 'workflowExecutionTimedOutEventAttributes' smart constructor.-data WorkflowExecutionTimedOutEventAttributes = WorkflowExecutionTimedOutEventAttributes'-    { _wetoeaTimeoutType :: !WorkflowExecutionTimeoutType-    , _wetoeaChildPolicy :: !ChildPolicy-    } deriving (Eq,Read,Show,Data,Typeable,Generic)---- | Creates a value of 'WorkflowExecutionTimedOutEventAttributes' with the minimum fields required to make a request.------ Use one of the following lenses to modify other fields as desired:------ * 'wetoeaTimeoutType'------ * 'wetoeaChildPolicy'-workflowExecutionTimedOutEventAttributes-    :: WorkflowExecutionTimeoutType -- ^ 'wetoeaTimeoutType'-    -> ChildPolicy -- ^ 'wetoeaChildPolicy'-    -> WorkflowExecutionTimedOutEventAttributes-workflowExecutionTimedOutEventAttributes pTimeoutType_ pChildPolicy_ =-    WorkflowExecutionTimedOutEventAttributes'-    { _wetoeaTimeoutType = pTimeoutType_-    , _wetoeaChildPolicy = pChildPolicy_-    }---- | The type of timeout that caused this event.-wetoeaTimeoutType :: Lens' WorkflowExecutionTimedOutEventAttributes WorkflowExecutionTimeoutType-wetoeaTimeoutType = lens _wetoeaTimeoutType (\ s a -> s{_wetoeaTimeoutType = a});---- | The policy used for the child workflow executions of this workflow execution.------ The supported child policies are:------ -   __TERMINATE:__ the child executions will be terminated.--- -   __REQUEST_CANCEL:__ a request to cancel will be attempted for each child execution by recording a 'WorkflowExecutionCancelRequested' event in its history. It is up to the decider to take appropriate actions when it receives an execution history with this event.--- -   __ABANDON:__ no action will be taken. The child executions will continue to run.-wetoeaChildPolicy :: Lens' WorkflowExecutionTimedOutEventAttributes ChildPolicy-wetoeaChildPolicy = lens _wetoeaChildPolicy (\ s a -> s{_wetoeaChildPolicy = a});--instance FromJSON-         WorkflowExecutionTimedOutEventAttributes where-        parseJSON-          = withObject-              "WorkflowExecutionTimedOutEventAttributes"-              (\ x ->-                 WorkflowExecutionTimedOutEventAttributes' <$>-                   (x .: "timeoutType") <*> (x .: "childPolicy"))--instance Hashable-         WorkflowExecutionTimedOutEventAttributes--instance NFData-         WorkflowExecutionTimedOutEventAttributes---- | Represents a workflow type.------ /See:/ 'workflowType' smart constructor.-data WorkflowType = WorkflowType'-    { _wtName    :: !Text-    , _wtVersion :: !Text-    } deriving (Eq,Read,Show,Data,Typeable,Generic)---- | Creates a value of 'WorkflowType' with the minimum fields required to make a request.------ Use one of the following lenses to modify other fields as desired:------ * 'wtName'------ * 'wtVersion'-workflowType-    :: Text -- ^ 'wtName'-    -> Text -- ^ 'wtVersion'-    -> WorkflowType-workflowType pName_ pVersion_ =-    WorkflowType'-    { _wtName = pName_-    , _wtVersion = pVersion_-    }---- | __Required.__ The name of the workflow type.------ The combination of workflow type name and version must be unique with in a domain.-wtName :: Lens' WorkflowType Text-wtName = lens _wtName (\ s a -> s{_wtName = a});---- | __Required.__ The version of the workflow type.------ The combination of workflow type name and version must be unique with in a domain.-wtVersion :: Lens' WorkflowType Text-wtVersion = lens _wtVersion (\ s a -> s{_wtVersion = a});--instance FromJSON WorkflowType where-        parseJSON-          = withObject "WorkflowType"-              (\ x ->-                 WorkflowType' <$> (x .: "name") <*> (x .: "version"))--instance Hashable WorkflowType--instance NFData WorkflowType--instance ToJSON WorkflowType where-        toJSON WorkflowType'{..}-          = object-              (catMaybes-                 [Just ("name" .= _wtName),-                  Just ("version" .= _wtVersion)])---- | The configuration settings of a workflow type.------ /See:/ 'workflowTypeConfiguration' smart constructor.-data WorkflowTypeConfiguration = WorkflowTypeConfiguration'-    { _wtcDefaultLambdaRole                   :: !(Maybe Text)-    , _wtcDefaultChildPolicy                  :: !(Maybe ChildPolicy)-    , _wtcDefaultTaskList                     :: !(Maybe TaskList)-    , _wtcDefaultTaskPriority                 :: !(Maybe Text)-    , _wtcDefaultExecutionStartToCloseTimeout :: !(Maybe Text)-    , _wtcDefaultTaskStartToCloseTimeout      :: !(Maybe Text)-    } deriving (Eq,Read,Show,Data,Typeable,Generic)---- | Creates a value of 'WorkflowTypeConfiguration' with the minimum fields required to make a request.------ Use one of the following lenses to modify other fields as desired:------ * 'wtcDefaultLambdaRole'------ * 'wtcDefaultChildPolicy'------ * 'wtcDefaultTaskList'------ * 'wtcDefaultTaskPriority'------ * 'wtcDefaultExecutionStartToCloseTimeout'------ * 'wtcDefaultTaskStartToCloseTimeout'-workflowTypeConfiguration-    :: WorkflowTypeConfiguration-workflowTypeConfiguration =-    WorkflowTypeConfiguration'-    { _wtcDefaultLambdaRole = Nothing-    , _wtcDefaultChildPolicy = Nothing-    , _wtcDefaultTaskList = Nothing-    , _wtcDefaultTaskPriority = Nothing-    , _wtcDefaultExecutionStartToCloseTimeout = Nothing-    , _wtcDefaultTaskStartToCloseTimeout = Nothing-    }---- | The default IAM role to use when a workflow execution invokes a AWS Lambda function.-wtcDefaultLambdaRole :: Lens' WorkflowTypeConfiguration (Maybe Text)-wtcDefaultLambdaRole = lens _wtcDefaultLambdaRole (\ s a -> s{_wtcDefaultLambdaRole = a});---- | /Optional./ The default policy to use for the child workflow executions when a workflow execution of this type is terminated, by calling the < TerminateWorkflowExecution> action explicitly or due to an expired timeout. This default can be overridden when starting a workflow execution using the < StartWorkflowExecution> action or the 'StartChildWorkflowExecution' decision.------ The supported child policies are:------ -   __TERMINATE:__ the child executions will be terminated.--- -   __REQUEST_CANCEL:__ a request to cancel will be attempted for each child execution by recording a 'WorkflowExecutionCancelRequested' event in its history. It is up to the decider to take appropriate actions when it receives an execution history with this event.--- -   __ABANDON:__ no action will be taken. The child executions will continue to run.-wtcDefaultChildPolicy :: Lens' WorkflowTypeConfiguration (Maybe ChildPolicy)-wtcDefaultChildPolicy = lens _wtcDefaultChildPolicy (\ s a -> s{_wtcDefaultChildPolicy = a});---- | /Optional./ 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 < StartWorkflowExecution> action or the 'StartChildWorkflowExecution' decision.-wtcDefaultTaskList :: Lens' WorkflowTypeConfiguration (Maybe TaskList)-wtcDefaultTaskList = lens _wtcDefaultTaskList (\ s a -> s{_wtcDefaultTaskList = a});---- | /Optional./ 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 < StartWorkflowExecution> action or the 'StartChildWorkflowExecution' decision.------ Valid values are integers that range from Java\'s 'Integer.MIN_VALUE' (-2147483648) to 'Integer.MAX_VALUE' (2147483647). Higher numbers indicate higher priority.------ For more information about setting task priority, see <http://docs.aws.amazon.com/amazonswf/latest/developerguide/programming-priority.html Setting Task Priority> in the /Amazon Simple Workflow Developer Guide/.-wtcDefaultTaskPriority :: Lens' WorkflowTypeConfiguration (Maybe Text)-wtcDefaultTaskPriority = lens _wtcDefaultTaskPriority (\ s a -> s{_wtcDefaultTaskPriority = a});---- | /Optional./ 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 < StartWorkflowExecution> action or the 'StartChildWorkflowExecution' decision.------ The duration is specified in seconds; an integer greater than or equal to 0. The value \"NONE\" can be used to specify unlimited duration.-wtcDefaultExecutionStartToCloseTimeout :: Lens' WorkflowTypeConfiguration (Maybe Text)-wtcDefaultExecutionStartToCloseTimeout = lens _wtcDefaultExecutionStartToCloseTimeout (\ s a -> s{_wtcDefaultExecutionStartToCloseTimeout = a});---- | /Optional./ 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 does not 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 < StartWorkflowExecution> action or the 'StartChildWorkflowExecution' decision.------ The duration is specified in seconds; an integer greater than or equal to 0. The value \"NONE\" can be used to specify unlimited duration.-wtcDefaultTaskStartToCloseTimeout :: Lens' WorkflowTypeConfiguration (Maybe Text)-wtcDefaultTaskStartToCloseTimeout = lens _wtcDefaultTaskStartToCloseTimeout (\ s a -> s{_wtcDefaultTaskStartToCloseTimeout = a});--instance FromJSON WorkflowTypeConfiguration where-        parseJSON-          = withObject "WorkflowTypeConfiguration"-              (\ x ->-                 WorkflowTypeConfiguration' <$>-                   (x .:? "defaultLambdaRole") <*>-                     (x .:? "defaultChildPolicy")-                     <*> (x .:? "defaultTaskList")-                     <*> (x .:? "defaultTaskPriority")-                     <*> (x .:? "defaultExecutionStartToCloseTimeout")-                     <*> (x .:? "defaultTaskStartToCloseTimeout"))--instance Hashable WorkflowTypeConfiguration--instance NFData WorkflowTypeConfiguration---- | Used to filter workflow execution query results by type. Each parameter, if specified, defines a rule that must be satisfied by each returned result.------ /See:/ 'workflowTypeFilter' smart constructor.-data WorkflowTypeFilter = WorkflowTypeFilter'-    { _wtfVersion :: !(Maybe Text)-    , _wtfName    :: !Text-    } deriving (Eq,Read,Show,Data,Typeable,Generic)---- | Creates a value of 'WorkflowTypeFilter' with the minimum fields required to make a request.------ Use one of the following lenses to modify other fields as desired:------ * 'wtfVersion'------ * 'wtfName'-workflowTypeFilter-    :: Text -- ^ 'wtfName'-    -> WorkflowTypeFilter-workflowTypeFilter pName_ =-    WorkflowTypeFilter'-    { _wtfVersion = Nothing-    , _wtfName = pName_-    }---- | Version of the workflow type.-wtfVersion :: Lens' WorkflowTypeFilter (Maybe Text)-wtfVersion = lens _wtfVersion (\ s a -> s{_wtfVersion = a});---- | __Required.__ Name of the workflow type.-wtfName :: Lens' WorkflowTypeFilter Text-wtfName = lens _wtfName (\ s a -> s{_wtfName = a});--instance Hashable WorkflowTypeFilter--instance NFData WorkflowTypeFilter--instance ToJSON WorkflowTypeFilter where-        toJSON WorkflowTypeFilter'{..}-          = object-              (catMaybes-                 [("version" .=) <$> _wtfVersion,-                  Just ("name" .= _wtfName)])---- | Contains information about a workflow type.------ /See:/ 'workflowTypeInfo' smart constructor.-data WorkflowTypeInfo = WorkflowTypeInfo'-    { _wtiDeprecationDate :: !(Maybe POSIX)-    , _wtiDescription     :: !(Maybe Text)-    , _wtiWorkflowType    :: !WorkflowType-    , _wtiStatus          :: !RegistrationStatus-    , _wtiCreationDate    :: !POSIX-    } deriving (Eq,Read,Show,Data,Typeable,Generic)---- | Creates a value of 'WorkflowTypeInfo' with the minimum fields required to make a request.------ Use one of the following lenses to modify other fields as desired:------ * 'wtiDeprecationDate'------ * 'wtiDescription'------ * 'wtiWorkflowType'------ * 'wtiStatus'------ * 'wtiCreationDate'-workflowTypeInfo-    :: WorkflowType -- ^ 'wtiWorkflowType'-    -> RegistrationStatus -- ^ 'wtiStatus'-    -> UTCTime -- ^ 'wtiCreationDate'-    -> WorkflowTypeInfo-workflowTypeInfo pWorkflowType_ pStatus_ pCreationDate_ =-    WorkflowTypeInfo'-    { _wtiDeprecationDate = Nothing-    , _wtiDescription = Nothing-    , _wtiWorkflowType = pWorkflowType_-    , _wtiStatus = pStatus_-    , _wtiCreationDate = _Time # pCreationDate_-    }---- | If the type is in deprecated state, then it is set to the date when the type was deprecated.-wtiDeprecationDate :: Lens' WorkflowTypeInfo (Maybe UTCTime)-wtiDeprecationDate = lens _wtiDeprecationDate (\ s a -> s{_wtiDeprecationDate = a}) . mapping _Time;---- | The description of the type registered through < RegisterWorkflowType>.+-- | Provides details of the @ActivityTaskCancelRequested@ event.+--+--+--+-- /See:/ 'activityTaskCancelRequestedEventAttributes' smart constructor.+data ActivityTaskCancelRequestedEventAttributes = ActivityTaskCancelRequestedEventAttributes'+    { _atcreaDecisionTaskCompletedEventId :: !Integer+    , _atcreaActivityId                   :: !Text+    } deriving (Eq,Read,Show,Data,Typeable,Generic)++-- | Creates a value of 'ActivityTaskCancelRequestedEventAttributes' with the minimum fields required to make a request.+--+-- Use one of the following lenses to modify other fields as desired:+--+-- * 'atcreaDecisionTaskCompletedEventId' - The ID of the @DecisionTaskCompleted@ event corresponding to the decision task that resulted in the @RequestCancelActivityTask@ 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.+--+-- * 'atcreaActivityId' - The unique ID of the task.+activityTaskCancelRequestedEventAttributes+    :: Integer -- ^ 'atcreaDecisionTaskCompletedEventId'+    -> Text -- ^ 'atcreaActivityId'+    -> ActivityTaskCancelRequestedEventAttributes+activityTaskCancelRequestedEventAttributes pDecisionTaskCompletedEventId_ pActivityId_ =+    ActivityTaskCancelRequestedEventAttributes'+    { _atcreaDecisionTaskCompletedEventId = pDecisionTaskCompletedEventId_+    , _atcreaActivityId = pActivityId_+    }++-- | The ID of the @DecisionTaskCompleted@ event corresponding to the decision task that resulted in the @RequestCancelActivityTask@ 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+atcreaDecisionTaskCompletedEventId = lens _atcreaDecisionTaskCompletedEventId (\ s a -> s{_atcreaDecisionTaskCompletedEventId = a});++-- | The unique ID of the task.+atcreaActivityId :: Lens' ActivityTaskCancelRequestedEventAttributes Text+atcreaActivityId = lens _atcreaActivityId (\ s a -> s{_atcreaActivityId = a});++instance FromJSON+         ActivityTaskCancelRequestedEventAttributes where+        parseJSON+          = withObject+              "ActivityTaskCancelRequestedEventAttributes"+              (\ x ->+                 ActivityTaskCancelRequestedEventAttributes' <$>+                   (x .: "decisionTaskCompletedEventId") <*>+                     (x .: "activityId"))++instance Hashable+         ActivityTaskCancelRequestedEventAttributes++instance NFData+         ActivityTaskCancelRequestedEventAttributes++-- | Provides details of the @ActivityTaskCanceled@ event.+--+--+--+-- /See:/ 'activityTaskCanceledEventAttributes' smart constructor.+data ActivityTaskCanceledEventAttributes = ActivityTaskCanceledEventAttributes'+    { _aLatestCancelRequestedEventId :: !(Maybe Integer)+    , _aDetails                      :: !(Maybe Text)+    , _aScheduledEventId             :: !Integer+    , _aStartedEventId               :: !Integer+    } deriving (Eq,Read,Show,Data,Typeable,Generic)++-- | Creates a value of 'ActivityTaskCanceledEventAttributes' with the minimum fields required to make a request.+--+-- Use one of the following lenses to modify other fields as desired:+--+-- * 'aLatestCancelRequestedEventId' - If set, contains the ID of the last @ActivityTaskCancelRequested@ 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.+--+-- * 'aDetails' - Details of the cancellation (if any).+--+-- * 'aScheduledEventId' - The ID of the @ActivityTaskScheduled@ 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.+--+-- * 'aStartedEventId' - The ID of the @ActivityTaskStarted@ 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.+activityTaskCanceledEventAttributes+    :: Integer -- ^ 'aScheduledEventId'+    -> Integer -- ^ 'aStartedEventId'+    -> ActivityTaskCanceledEventAttributes+activityTaskCanceledEventAttributes pScheduledEventId_ pStartedEventId_ =+    ActivityTaskCanceledEventAttributes'+    { _aLatestCancelRequestedEventId = Nothing+    , _aDetails = Nothing+    , _aScheduledEventId = pScheduledEventId_+    , _aStartedEventId = pStartedEventId_+    }++-- | If set, contains the ID of the last @ActivityTaskCancelRequested@ 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)+aLatestCancelRequestedEventId = lens _aLatestCancelRequestedEventId (\ s a -> s{_aLatestCancelRequestedEventId = a});++-- | Details of the cancellation (if any).+aDetails :: Lens' ActivityTaskCanceledEventAttributes (Maybe Text)+aDetails = lens _aDetails (\ s a -> s{_aDetails = a});++-- | The ID of the @ActivityTaskScheduled@ 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+aScheduledEventId = lens _aScheduledEventId (\ s a -> s{_aScheduledEventId = a});++-- | The ID of the @ActivityTaskStarted@ 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+aStartedEventId = lens _aStartedEventId (\ s a -> s{_aStartedEventId = a});++instance FromJSON ActivityTaskCanceledEventAttributes+         where+        parseJSON+          = withObject "ActivityTaskCanceledEventAttributes"+              (\ x ->+                 ActivityTaskCanceledEventAttributes' <$>+                   (x .:? "latestCancelRequestedEventId") <*>+                     (x .:? "details")+                     <*> (x .: "scheduledEventId")+                     <*> (x .: "startedEventId"))++instance Hashable ActivityTaskCanceledEventAttributes++instance NFData ActivityTaskCanceledEventAttributes++-- | Provides details of the @ActivityTaskCompleted@ event.+--+--+--+-- /See:/ 'activityTaskCompletedEventAttributes' smart constructor.+data ActivityTaskCompletedEventAttributes = ActivityTaskCompletedEventAttributes'+    { _atceaResult           :: !(Maybe Text)+    , _atceaScheduledEventId :: !Integer+    , _atceaStartedEventId   :: !Integer+    } deriving (Eq,Read,Show,Data,Typeable,Generic)++-- | Creates a value of 'ActivityTaskCompletedEventAttributes' with the minimum fields required to make a request.+--+-- Use one of the following lenses to modify other fields as desired:+--+-- * 'atceaResult' - The results of the activity task (if any).+--+-- * 'atceaScheduledEventId' - The ID of the @ActivityTaskScheduled@ 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.+--+-- * 'atceaStartedEventId' - The ID of the @ActivityTaskStarted@ 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.+activityTaskCompletedEventAttributes+    :: Integer -- ^ 'atceaScheduledEventId'+    -> Integer -- ^ 'atceaStartedEventId'+    -> ActivityTaskCompletedEventAttributes+activityTaskCompletedEventAttributes pScheduledEventId_ pStartedEventId_ =+    ActivityTaskCompletedEventAttributes'+    { _atceaResult = Nothing+    , _atceaScheduledEventId = pScheduledEventId_+    , _atceaStartedEventId = pStartedEventId_+    }++-- | The results of the activity task (if any).+atceaResult :: Lens' ActivityTaskCompletedEventAttributes (Maybe Text)+atceaResult = lens _atceaResult (\ s a -> s{_atceaResult = a});++-- | The ID of the @ActivityTaskScheduled@ 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+atceaScheduledEventId = lens _atceaScheduledEventId (\ s a -> s{_atceaScheduledEventId = a});++-- | The ID of the @ActivityTaskStarted@ 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+atceaStartedEventId = lens _atceaStartedEventId (\ s a -> s{_atceaStartedEventId = a});++instance FromJSON+         ActivityTaskCompletedEventAttributes where+        parseJSON+          = withObject "ActivityTaskCompletedEventAttributes"+              (\ x ->+                 ActivityTaskCompletedEventAttributes' <$>+                   (x .:? "result") <*> (x .: "scheduledEventId") <*>+                     (x .: "startedEventId"))++instance Hashable+         ActivityTaskCompletedEventAttributes++instance NFData ActivityTaskCompletedEventAttributes++-- | Provides details of the @ActivityTaskFailed@ event.+--+--+--+-- /See:/ 'activityTaskFailedEventAttributes' smart constructor.+data ActivityTaskFailedEventAttributes = ActivityTaskFailedEventAttributes'+    { _atfeaReason           :: !(Maybe Text)+    , _atfeaDetails          :: !(Maybe Text)+    , _atfeaScheduledEventId :: !Integer+    , _atfeaStartedEventId   :: !Integer+    } deriving (Eq,Read,Show,Data,Typeable,Generic)++-- | Creates a value of 'ActivityTaskFailedEventAttributes' with the minimum fields required to make a request.+--+-- Use one of the following lenses to modify other fields as desired:+--+-- * 'atfeaReason' - The reason provided for the failure (if any).+--+-- * 'atfeaDetails' - The details of the failure (if any).+--+-- * 'atfeaScheduledEventId' - The ID of the @ActivityTaskScheduled@ 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.+--+-- * 'atfeaStartedEventId' - The ID of the @ActivityTaskStarted@ 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.+activityTaskFailedEventAttributes+    :: Integer -- ^ 'atfeaScheduledEventId'+    -> Integer -- ^ 'atfeaStartedEventId'+    -> ActivityTaskFailedEventAttributes+activityTaskFailedEventAttributes pScheduledEventId_ pStartedEventId_ =+    ActivityTaskFailedEventAttributes'+    { _atfeaReason = Nothing+    , _atfeaDetails = Nothing+    , _atfeaScheduledEventId = pScheduledEventId_+    , _atfeaStartedEventId = pStartedEventId_+    }++-- | The reason provided for the failure (if any).+atfeaReason :: Lens' ActivityTaskFailedEventAttributes (Maybe Text)+atfeaReason = lens _atfeaReason (\ s a -> s{_atfeaReason = a});++-- | The details of the failure (if any).+atfeaDetails :: Lens' ActivityTaskFailedEventAttributes (Maybe Text)+atfeaDetails = lens _atfeaDetails (\ s a -> s{_atfeaDetails = a});++-- | The ID of the @ActivityTaskScheduled@ 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+atfeaScheduledEventId = lens _atfeaScheduledEventId (\ s a -> s{_atfeaScheduledEventId = a});++-- | The ID of the @ActivityTaskStarted@ 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+atfeaStartedEventId = lens _atfeaStartedEventId (\ s a -> s{_atfeaStartedEventId = a});++instance FromJSON ActivityTaskFailedEventAttributes+         where+        parseJSON+          = withObject "ActivityTaskFailedEventAttributes"+              (\ x ->+                 ActivityTaskFailedEventAttributes' <$>+                   (x .:? "reason") <*> (x .:? "details") <*>+                     (x .: "scheduledEventId")+                     <*> (x .: "startedEventId"))++instance Hashable ActivityTaskFailedEventAttributes++instance NFData ActivityTaskFailedEventAttributes++-- | Provides details of the @ActivityTaskScheduled@ event.+--+--+--+-- /See:/ 'activityTaskScheduledEventAttributes' smart constructor.+data ActivityTaskScheduledEventAttributes = ActivityTaskScheduledEventAttributes'+    { _atseaControl                      :: !(Maybe Text)+    , _atseaHeartbeatTimeout             :: !(Maybe Text)+    , _atseaScheduleToCloseTimeout       :: !(Maybe Text)+    , _atseaInput                        :: !(Maybe Text)+    , _atseaTaskPriority                 :: !(Maybe Text)+    , _atseaScheduleToStartTimeout       :: !(Maybe Text)+    , _atseaStartToCloseTimeout          :: !(Maybe Text)+    , _atseaActivityType                 :: !ActivityType+    , _atseaActivityId                   :: !Text+    , _atseaTaskList                     :: !TaskList+    , _atseaDecisionTaskCompletedEventId :: !Integer+    } deriving (Eq,Read,Show,Data,Typeable,Generic)++-- | Creates a value of 'ActivityTaskScheduledEventAttributes' with the minimum fields required to make a request.+--+-- Use one of the following lenses to modify other fields as desired:+--+-- * 'atseaControl' - /Optional./ Data attached to the event that can be used by the decider in subsequent workflow tasks. This data is not sent to the activity.+--+-- * 'atseaHeartbeatTimeout' - The maximum time before which the worker processing this task must report progress by calling 'RecordActivityTaskHeartbeat' . 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 will be ignored.+--+-- * 'atseaScheduleToCloseTimeout' - The maximum amount of time for this activity task.+--+-- * 'atseaInput' - The input provided to the activity task.+--+-- * 'atseaTaskPriority' - /Optional./ The priority to assign to the scheduled activity task. If set, this will override any default priority value that was assigned when the activity type was registered. Valid values are integers that range from Java's @Integer.MIN_VALUE@ (-2147483648) to @Integer.MAX_VALUE@ (2147483647). Higher numbers indicate higher priority. For more information about setting task priority, see <http://docs.aws.amazon.com/amazonswf/latest/developerguide/programming-priority.html Setting Task Priority> in the /Amazon Simple Workflow Developer Guide/ .+--+-- * 'atseaScheduleToStartTimeout' - The maximum amount of time the activity task can wait to be assigned to a worker.+--+-- * 'atseaStartToCloseTimeout' - The maximum amount of time a worker may take to process the activity task.+--+-- * 'atseaActivityType' - The type of the activity task.+--+-- * 'atseaActivityId' - The unique ID of the activity task.+--+-- * 'atseaTaskList' - The task list in which the activity task has been scheduled.+--+-- * 'atseaDecisionTaskCompletedEventId' - The ID of the @DecisionTaskCompleted@ 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.+activityTaskScheduledEventAttributes+    :: ActivityType -- ^ 'atseaActivityType'+    -> Text -- ^ 'atseaActivityId'+    -> TaskList -- ^ 'atseaTaskList'+    -> Integer -- ^ 'atseaDecisionTaskCompletedEventId'+    -> ActivityTaskScheduledEventAttributes+activityTaskScheduledEventAttributes pActivityType_ pActivityId_ pTaskList_ pDecisionTaskCompletedEventId_ =+    ActivityTaskScheduledEventAttributes'+    { _atseaControl = Nothing+    , _atseaHeartbeatTimeout = Nothing+    , _atseaScheduleToCloseTimeout = Nothing+    , _atseaInput = Nothing+    , _atseaTaskPriority = Nothing+    , _atseaScheduleToStartTimeout = Nothing+    , _atseaStartToCloseTimeout = Nothing+    , _atseaActivityType = pActivityType_+    , _atseaActivityId = pActivityId_+    , _atseaTaskList = pTaskList_+    , _atseaDecisionTaskCompletedEventId = pDecisionTaskCompletedEventId_+    }++-- | /Optional./ Data attached to the event that can be used by the decider in subsequent workflow tasks. This data is not sent to the activity.+atseaControl :: Lens' ActivityTaskScheduledEventAttributes (Maybe Text)+atseaControl = lens _atseaControl (\ s a -> s{_atseaControl = a});++-- | The maximum time before which the worker processing this task must report progress by calling 'RecordActivityTaskHeartbeat' . 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 will be ignored.+atseaHeartbeatTimeout :: Lens' ActivityTaskScheduledEventAttributes (Maybe Text)+atseaHeartbeatTimeout = lens _atseaHeartbeatTimeout (\ s a -> s{_atseaHeartbeatTimeout = a});++-- | The maximum amount of time for this activity task.+atseaScheduleToCloseTimeout :: Lens' ActivityTaskScheduledEventAttributes (Maybe Text)+atseaScheduleToCloseTimeout = lens _atseaScheduleToCloseTimeout (\ s a -> s{_atseaScheduleToCloseTimeout = a});++-- | The input provided to the activity task.+atseaInput :: Lens' ActivityTaskScheduledEventAttributes (Maybe Text)+atseaInput = lens _atseaInput (\ s a -> s{_atseaInput = a});++-- | /Optional./ The priority to assign to the scheduled activity task. If set, this will override any default priority value that was assigned when the activity type was registered. Valid values are integers that range from Java's @Integer.MIN_VALUE@ (-2147483648) to @Integer.MAX_VALUE@ (2147483647). Higher numbers indicate higher priority. For more information about setting task priority, see <http://docs.aws.amazon.com/amazonswf/latest/developerguide/programming-priority.html Setting Task Priority> in the /Amazon Simple Workflow Developer Guide/ .+atseaTaskPriority :: Lens' ActivityTaskScheduledEventAttributes (Maybe Text)+atseaTaskPriority = lens _atseaTaskPriority (\ s a -> s{_atseaTaskPriority = a});++-- | The maximum amount of time the activity task can wait to be assigned to a worker.+atseaScheduleToStartTimeout :: Lens' ActivityTaskScheduledEventAttributes (Maybe Text)+atseaScheduleToStartTimeout = lens _atseaScheduleToStartTimeout (\ s a -> s{_atseaScheduleToStartTimeout = a});++-- | The maximum amount of time a worker may take to process the activity task.+atseaStartToCloseTimeout :: Lens' ActivityTaskScheduledEventAttributes (Maybe Text)+atseaStartToCloseTimeout = lens _atseaStartToCloseTimeout (\ s a -> s{_atseaStartToCloseTimeout = a});++-- | The type of the activity task.+atseaActivityType :: Lens' ActivityTaskScheduledEventAttributes ActivityType+atseaActivityType = lens _atseaActivityType (\ s a -> s{_atseaActivityType = a});++-- | The unique ID of the activity task.+atseaActivityId :: Lens' ActivityTaskScheduledEventAttributes Text+atseaActivityId = lens _atseaActivityId (\ s a -> s{_atseaActivityId = a});++-- | The task list in which the activity task has been scheduled.+atseaTaskList :: Lens' ActivityTaskScheduledEventAttributes TaskList+atseaTaskList = lens _atseaTaskList (\ s a -> s{_atseaTaskList = a});++-- | The ID of the @DecisionTaskCompleted@ 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+atseaDecisionTaskCompletedEventId = lens _atseaDecisionTaskCompletedEventId (\ s a -> s{_atseaDecisionTaskCompletedEventId = a});++instance FromJSON+         ActivityTaskScheduledEventAttributes where+        parseJSON+          = withObject "ActivityTaskScheduledEventAttributes"+              (\ x ->+                 ActivityTaskScheduledEventAttributes' <$>+                   (x .:? "control") <*> (x .:? "heartbeatTimeout") <*>+                     (x .:? "scheduleToCloseTimeout")+                     <*> (x .:? "input")+                     <*> (x .:? "taskPriority")+                     <*> (x .:? "scheduleToStartTimeout")+                     <*> (x .:? "startToCloseTimeout")+                     <*> (x .: "activityType")+                     <*> (x .: "activityId")+                     <*> (x .: "taskList")+                     <*> (x .: "decisionTaskCompletedEventId"))++instance Hashable+         ActivityTaskScheduledEventAttributes++instance NFData ActivityTaskScheduledEventAttributes++-- | Provides details of the @ActivityTaskStarted@ event.+--+--+--+-- /See:/ 'activityTaskStartedEventAttributes' smart constructor.+data ActivityTaskStartedEventAttributes = ActivityTaskStartedEventAttributes'+    { _atseaIdentity         :: !(Maybe Text)+    , _atseaScheduledEventId :: !Integer+    } deriving (Eq,Read,Show,Data,Typeable,Generic)++-- | Creates a value of 'ActivityTaskStartedEventAttributes' with the minimum fields required to make a request.+--+-- Use one of the following lenses to modify other fields as desired:+--+-- * 'atseaIdentity' - Identity of the worker that was assigned this task. This aids diagnostics when problems arise. The form of this identity is user defined.+--+-- * 'atseaScheduledEventId' - The ID of the @ActivityTaskScheduled@ 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.+activityTaskStartedEventAttributes+    :: Integer -- ^ 'atseaScheduledEventId'+    -> ActivityTaskStartedEventAttributes+activityTaskStartedEventAttributes pScheduledEventId_ =+    ActivityTaskStartedEventAttributes'+    { _atseaIdentity = Nothing+    , _atseaScheduledEventId = pScheduledEventId_+    }++-- | 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)+atseaIdentity = lens _atseaIdentity (\ s a -> s{_atseaIdentity = a});++-- | The ID of the @ActivityTaskScheduled@ 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+atseaScheduledEventId = lens _atseaScheduledEventId (\ s a -> s{_atseaScheduledEventId = a});++instance FromJSON ActivityTaskStartedEventAttributes+         where+        parseJSON+          = withObject "ActivityTaskStartedEventAttributes"+              (\ x ->+                 ActivityTaskStartedEventAttributes' <$>+                   (x .:? "identity") <*> (x .: "scheduledEventId"))++instance Hashable ActivityTaskStartedEventAttributes++instance NFData ActivityTaskStartedEventAttributes++-- | Provides details of the @ActivityTaskTimedOut@ event.+--+--+--+-- /See:/ 'activityTaskTimedOutEventAttributes' smart constructor.+data ActivityTaskTimedOutEventAttributes = ActivityTaskTimedOutEventAttributes'+    { _attoeaDetails          :: !(Maybe Text)+    , _attoeaTimeoutType      :: !ActivityTaskTimeoutType+    , _attoeaScheduledEventId :: !Integer+    , _attoeaStartedEventId   :: !Integer+    } deriving (Eq,Read,Show,Data,Typeable,Generic)++-- | Creates a value of 'ActivityTaskTimedOutEventAttributes' with the minimum fields required to make a request.+--+-- Use one of the following lenses to modify other fields as desired:+--+-- * 'attoeaDetails' - Contains the content of the @details@ parameter for the last call made by the activity to @RecordActivityTaskHeartbeat@ .+--+-- * 'attoeaTimeoutType' - The type of the timeout that caused this event.+--+-- * 'attoeaScheduledEventId' - The ID of the @ActivityTaskScheduled@ 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.+--+-- * 'attoeaStartedEventId' - The ID of the @ActivityTaskStarted@ 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.+activityTaskTimedOutEventAttributes+    :: ActivityTaskTimeoutType -- ^ 'attoeaTimeoutType'+    -> Integer -- ^ 'attoeaScheduledEventId'+    -> Integer -- ^ 'attoeaStartedEventId'+    -> ActivityTaskTimedOutEventAttributes+activityTaskTimedOutEventAttributes pTimeoutType_ pScheduledEventId_ pStartedEventId_ =+    ActivityTaskTimedOutEventAttributes'+    { _attoeaDetails = Nothing+    , _attoeaTimeoutType = pTimeoutType_+    , _attoeaScheduledEventId = pScheduledEventId_+    , _attoeaStartedEventId = pStartedEventId_+    }++-- | Contains the content of the @details@ parameter for the last call made by the activity to @RecordActivityTaskHeartbeat@ .+attoeaDetails :: Lens' ActivityTaskTimedOutEventAttributes (Maybe Text)+attoeaDetails = lens _attoeaDetails (\ s a -> s{_attoeaDetails = a});++-- | The type of the timeout that caused this event.+attoeaTimeoutType :: Lens' ActivityTaskTimedOutEventAttributes ActivityTaskTimeoutType+attoeaTimeoutType = lens _attoeaTimeoutType (\ s a -> s{_attoeaTimeoutType = a});++-- | The ID of the @ActivityTaskScheduled@ 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+attoeaScheduledEventId = lens _attoeaScheduledEventId (\ s a -> s{_attoeaScheduledEventId = a});++-- | The ID of the @ActivityTaskStarted@ 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+attoeaStartedEventId = lens _attoeaStartedEventId (\ s a -> s{_attoeaStartedEventId = a});++instance FromJSON ActivityTaskTimedOutEventAttributes+         where+        parseJSON+          = withObject "ActivityTaskTimedOutEventAttributes"+              (\ x ->+                 ActivityTaskTimedOutEventAttributes' <$>+                   (x .:? "details") <*> (x .: "timeoutType") <*>+                     (x .: "scheduledEventId")+                     <*> (x .: "startedEventId"))++instance Hashable ActivityTaskTimedOutEventAttributes++instance NFData ActivityTaskTimedOutEventAttributes++-- | Represents an activity type.+--+--+--+-- /See:/ 'activityType' smart constructor.+data ActivityType = ActivityType'+    { _atName    :: !Text+    , _atVersion :: !Text+    } deriving (Eq,Read,Show,Data,Typeable,Generic)++-- | Creates a value of 'ActivityType' with the minimum fields required to make a request.+--+-- Use one of the following lenses to modify other fields as desired:+--+-- * 'atName' - The name of this activity.+--+-- * 'atVersion' - The version of this activity.+activityType+    :: Text -- ^ 'atName'+    -> Text -- ^ 'atVersion'+    -> ActivityType+activityType pName_ pVersion_ =+    ActivityType'+    { _atName = pName_+    , _atVersion = pVersion_+    }++-- | The name of this activity.+atName :: Lens' ActivityType Text+atName = lens _atName (\ s a -> s{_atName = a});++-- | The version of this activity.+atVersion :: Lens' ActivityType Text+atVersion = lens _atVersion (\ s a -> s{_atVersion = a});++instance FromJSON ActivityType where+        parseJSON+          = withObject "ActivityType"+              (\ x ->+                 ActivityType' <$> (x .: "name") <*> (x .: "version"))++instance Hashable ActivityType++instance NFData ActivityType++instance ToJSON ActivityType where+        toJSON ActivityType'{..}+          = object+              (catMaybes+                 [Just ("name" .= _atName),+                  Just ("version" .= _atVersion)])++-- | Configuration settings registered with the activity type.+--+--+--+-- /See:/ 'activityTypeConfiguration' smart constructor.+data ActivityTypeConfiguration = ActivityTypeConfiguration'+    { _atcDefaultTaskScheduleToStartTimeout :: !(Maybe Text)+    , _atcDefaultTaskList                   :: !(Maybe TaskList)+    , _atcDefaultTaskPriority               :: !(Maybe Text)+    , _atcDefaultTaskHeartbeatTimeout       :: !(Maybe Text)+    , _atcDefaultTaskScheduleToCloseTimeout :: !(Maybe Text)+    , _atcDefaultTaskStartToCloseTimeout    :: !(Maybe Text)+    } deriving (Eq,Read,Show,Data,Typeable,Generic)++-- | Creates a value of 'ActivityTypeConfiguration' with the minimum fields required to make a request.+--+-- Use one of the following lenses to modify other fields as desired:+--+-- * 'atcDefaultTaskScheduleToStartTimeout' - /Optional./ 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 @ScheduleActivityTask@ decision. The duration is specified in seconds; an integer greater than or equal to 0. The value "NONE" can be used to specify unlimited duration.+--+-- * 'atcDefaultTaskList' - /Optional./ The default task list specified for this activity type at registration. This default is used if a task list is not provided when a task is scheduled through the @ScheduleActivityTask@ decision. You can override the default registered task list when scheduling a task through the @ScheduleActivityTask@ decision.+--+-- * 'atcDefaultTaskPriority' - /Optional./ The default task priority for tasks of this activity type, specified at registration. If not set, then "0" will be used as the default priority. This default can be overridden when scheduling an activity task. Valid values are integers that range from Java's @Integer.MIN_VALUE@ (-2147483648) to @Integer.MAX_VALUE@ (2147483647). Higher numbers indicate higher priority. For more information about setting task priority, see <http://docs.aws.amazon.com/amazonswf/latest/developerguide/programming-priority.html Setting Task Priority> in the /Amazon Simple Workflow Developer Guide/ .+--+-- * 'atcDefaultTaskHeartbeatTimeout' - /Optional./ The default maximum time, in seconds, before which a worker processing a task must report progress by calling 'RecordActivityTaskHeartbeat' . You can specify this value only when /registering/ an activity type. The registered default value can be overridden when you schedule a task through the @ScheduleActivityTask@ decision. If the activity worker subsequently attempts to record a heartbeat or returns a result, the activity worker receives an @UnknownResource@ 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 0. The value "NONE" can be used to specify unlimited duration.+--+-- * 'atcDefaultTaskScheduleToCloseTimeout' - /Optional./ 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 @ScheduleActivityTask@ decision. The duration is specified in seconds; an integer greater than or equal to 0. The value "NONE" can be used to specify unlimited duration.+--+-- * 'atcDefaultTaskStartToCloseTimeout' - /Optional./ 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 @ScheduleActivityTask@ decision. The duration is specified in seconds; an integer greater than or equal to 0. The value "NONE" can be used to specify unlimited duration.+activityTypeConfiguration+    :: ActivityTypeConfiguration+activityTypeConfiguration =+    ActivityTypeConfiguration'+    { _atcDefaultTaskScheduleToStartTimeout = Nothing+    , _atcDefaultTaskList = Nothing+    , _atcDefaultTaskPriority = Nothing+    , _atcDefaultTaskHeartbeatTimeout = Nothing+    , _atcDefaultTaskScheduleToCloseTimeout = Nothing+    , _atcDefaultTaskStartToCloseTimeout = Nothing+    }++-- | /Optional./ 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 @ScheduleActivityTask@ decision. The duration is specified in seconds; an integer greater than or equal to 0. The value "NONE" can be used to specify unlimited duration.+atcDefaultTaskScheduleToStartTimeout :: Lens' ActivityTypeConfiguration (Maybe Text)+atcDefaultTaskScheduleToStartTimeout = lens _atcDefaultTaskScheduleToStartTimeout (\ s a -> s{_atcDefaultTaskScheduleToStartTimeout = a});++-- | /Optional./ The default task list specified for this activity type at registration. This default is used if a task list is not provided when a task is scheduled through the @ScheduleActivityTask@ decision. You can override the default registered task list when scheduling a task through the @ScheduleActivityTask@ decision.+atcDefaultTaskList :: Lens' ActivityTypeConfiguration (Maybe TaskList)+atcDefaultTaskList = lens _atcDefaultTaskList (\ s a -> s{_atcDefaultTaskList = a});++-- | /Optional./ The default task priority for tasks of this activity type, specified at registration. If not set, then "0" will be used as the default priority. This default can be overridden when scheduling an activity task. Valid values are integers that range from Java's @Integer.MIN_VALUE@ (-2147483648) to @Integer.MAX_VALUE@ (2147483647). Higher numbers indicate higher priority. For more information about setting task priority, see <http://docs.aws.amazon.com/amazonswf/latest/developerguide/programming-priority.html Setting Task Priority> in the /Amazon Simple Workflow Developer Guide/ .+atcDefaultTaskPriority :: Lens' ActivityTypeConfiguration (Maybe Text)+atcDefaultTaskPriority = lens _atcDefaultTaskPriority (\ s a -> s{_atcDefaultTaskPriority = a});++-- | /Optional./ The default maximum time, in seconds, before which a worker processing a task must report progress by calling 'RecordActivityTaskHeartbeat' . You can specify this value only when /registering/ an activity type. The registered default value can be overridden when you schedule a task through the @ScheduleActivityTask@ decision. If the activity worker subsequently attempts to record a heartbeat or returns a result, the activity worker receives an @UnknownResource@ 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 0. The value "NONE" can be used to specify unlimited duration.+atcDefaultTaskHeartbeatTimeout :: Lens' ActivityTypeConfiguration (Maybe Text)+atcDefaultTaskHeartbeatTimeout = lens _atcDefaultTaskHeartbeatTimeout (\ s a -> s{_atcDefaultTaskHeartbeatTimeout = a});++-- | /Optional./ 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 @ScheduleActivityTask@ decision. The duration is specified in seconds; an integer greater than or equal to 0. The value "NONE" can be used to specify unlimited duration.+atcDefaultTaskScheduleToCloseTimeout :: Lens' ActivityTypeConfiguration (Maybe Text)+atcDefaultTaskScheduleToCloseTimeout = lens _atcDefaultTaskScheduleToCloseTimeout (\ s a -> s{_atcDefaultTaskScheduleToCloseTimeout = a});++-- | /Optional./ 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 @ScheduleActivityTask@ decision. The duration is specified in seconds; an integer greater than or equal to 0. The value "NONE" can be used to specify unlimited duration.+atcDefaultTaskStartToCloseTimeout :: Lens' ActivityTypeConfiguration (Maybe Text)+atcDefaultTaskStartToCloseTimeout = lens _atcDefaultTaskStartToCloseTimeout (\ s a -> s{_atcDefaultTaskStartToCloseTimeout = a});++instance FromJSON ActivityTypeConfiguration where+        parseJSON+          = withObject "ActivityTypeConfiguration"+              (\ x ->+                 ActivityTypeConfiguration' <$>+                   (x .:? "defaultTaskScheduleToStartTimeout") <*>+                     (x .:? "defaultTaskList")+                     <*> (x .:? "defaultTaskPriority")+                     <*> (x .:? "defaultTaskHeartbeatTimeout")+                     <*> (x .:? "defaultTaskScheduleToCloseTimeout")+                     <*> (x .:? "defaultTaskStartToCloseTimeout"))++instance Hashable ActivityTypeConfiguration++instance NFData ActivityTypeConfiguration++-- | Detailed information about an activity type.+--+--+--+-- /See:/ 'activityTypeInfo' smart constructor.+data ActivityTypeInfo = ActivityTypeInfo'+    { _atiDeprecationDate :: !(Maybe POSIX)+    , _atiDescription     :: !(Maybe Text)+    , _atiActivityType    :: !ActivityType+    , _atiStatus          :: !RegistrationStatus+    , _atiCreationDate    :: !POSIX+    } deriving (Eq,Read,Show,Data,Typeable,Generic)++-- | Creates a value of 'ActivityTypeInfo' with the minimum fields required to make a request.+--+-- Use one of the following lenses to modify other fields as desired:+--+-- * 'atiDeprecationDate' - If DEPRECATED, the date and time 'DeprecateActivityType' was called.+--+-- * 'atiDescription' - The description of the activity type provided in 'RegisterActivityType' .+--+-- * 'atiActivityType' - The 'ActivityType' type structure representing the activity type.+--+-- * 'atiStatus' - The current status of the activity type.+--+-- * 'atiCreationDate' - The date and time this activity type was created through 'RegisterActivityType' .+activityTypeInfo+    :: ActivityType -- ^ 'atiActivityType'+    -> RegistrationStatus -- ^ 'atiStatus'+    -> UTCTime -- ^ 'atiCreationDate'+    -> ActivityTypeInfo+activityTypeInfo pActivityType_ pStatus_ pCreationDate_ =+    ActivityTypeInfo'+    { _atiDeprecationDate = Nothing+    , _atiDescription = Nothing+    , _atiActivityType = pActivityType_+    , _atiStatus = pStatus_+    , _atiCreationDate = _Time # pCreationDate_+    }++-- | If DEPRECATED, the date and time 'DeprecateActivityType' was called.+atiDeprecationDate :: Lens' ActivityTypeInfo (Maybe UTCTime)+atiDeprecationDate = lens _atiDeprecationDate (\ s a -> s{_atiDeprecationDate = a}) . mapping _Time;++-- | The description of the activity type provided in 'RegisterActivityType' .+atiDescription :: Lens' ActivityTypeInfo (Maybe Text)+atiDescription = lens _atiDescription (\ s a -> s{_atiDescription = a});++-- | The 'ActivityType' type structure representing the activity type.+atiActivityType :: Lens' ActivityTypeInfo ActivityType+atiActivityType = lens _atiActivityType (\ s a -> s{_atiActivityType = a});++-- | The current status of the activity type.+atiStatus :: Lens' ActivityTypeInfo RegistrationStatus+atiStatus = lens _atiStatus (\ s a -> s{_atiStatus = a});++-- | The date and time this activity type was created through 'RegisterActivityType' .+atiCreationDate :: Lens' ActivityTypeInfo UTCTime+atiCreationDate = lens _atiCreationDate (\ s a -> s{_atiCreationDate = a}) . _Time;++instance FromJSON ActivityTypeInfo where+        parseJSON+          = withObject "ActivityTypeInfo"+              (\ x ->+                 ActivityTypeInfo' <$>+                   (x .:? "deprecationDate") <*> (x .:? "description")+                     <*> (x .: "activityType")+                     <*> (x .: "status")+                     <*> (x .: "creationDate"))++instance Hashable ActivityTypeInfo++instance NFData ActivityTypeInfo++-- | Provides details of the @CancelTimer@ decision.+--+--+-- __Access Control__+--+-- You can use IAM policies to control this decision's access to Amazon SWF resources as follows:+--+--     * Use a @Resource@ element with the domain name to limit the action to only specified domains.    * Use an @Action@ element to allow or deny permission to call this action.    * You cannot use an IAM policy to constrain this action's parameters.+--+-- If the caller does not have sufficient permissions to invoke the action, or the parameter values fall outside the specified constraints, the action fails. The associated event attribute's __cause__ parameter will be set to OPERATION_NOT_PERMITTED. For details and example IAM policies, see <http://docs.aws.amazon.com/amazonswf/latest/developerguide/swf-dev-iam.html Using IAM to Manage Access to Amazon SWF Workflows> .+--+--+-- /See:/ 'cancelTimerDecisionAttributes' smart constructor.+newtype CancelTimerDecisionAttributes = CancelTimerDecisionAttributes'+    { _ctdaTimerId :: Text+    } deriving (Eq,Read,Show,Data,Typeable,Generic)++-- | Creates a value of 'CancelTimerDecisionAttributes' with the minimum fields required to make a request.+--+-- Use one of the following lenses to modify other fields as desired:+--+-- * 'ctdaTimerId' - __Required.__ The unique ID of the timer to cancel.+cancelTimerDecisionAttributes+    :: Text -- ^ 'ctdaTimerId'+    -> CancelTimerDecisionAttributes+cancelTimerDecisionAttributes pTimerId_ =+    CancelTimerDecisionAttributes'+    { _ctdaTimerId = pTimerId_+    }++-- | __Required.__ The unique ID of the timer to cancel.+ctdaTimerId :: Lens' CancelTimerDecisionAttributes Text+ctdaTimerId = lens _ctdaTimerId (\ s a -> s{_ctdaTimerId = a});++instance Hashable CancelTimerDecisionAttributes++instance NFData CancelTimerDecisionAttributes++instance ToJSON CancelTimerDecisionAttributes where+        toJSON CancelTimerDecisionAttributes'{..}+          = object+              (catMaybes [Just ("timerId" .= _ctdaTimerId)])++-- | Provides details of the @CancelTimerFailed@ event.+--+--+--+-- /See:/ 'cancelTimerFailedEventAttributes' smart constructor.+data CancelTimerFailedEventAttributes = CancelTimerFailedEventAttributes'+    { _ctfeaTimerId                      :: !Text+    , _ctfeaCause                        :: !CancelTimerFailedCause+    , _ctfeaDecisionTaskCompletedEventId :: !Integer+    } deriving (Eq,Read,Show,Data,Typeable,Generic)++-- | Creates a value of 'CancelTimerFailedEventAttributes' with the minimum fields required to make a request.+--+-- Use one of the following lenses to modify other fields as desired:+--+-- * 'ctfeaTimerId' - The timerId provided in the @CancelTimer@ decision that failed.+--+-- * 'ctfeaCause' - The cause of the failure. This information is generated by the system and can be useful for diagnostic purposes.+--+-- * 'ctfeaDecisionTaskCompletedEventId' - The ID of the @DecisionTaskCompleted@ event corresponding to the decision task that resulted in the @CancelTimer@ 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.+cancelTimerFailedEventAttributes+    :: Text -- ^ 'ctfeaTimerId'+    -> CancelTimerFailedCause -- ^ 'ctfeaCause'+    -> Integer -- ^ 'ctfeaDecisionTaskCompletedEventId'+    -> CancelTimerFailedEventAttributes+cancelTimerFailedEventAttributes pTimerId_ pCause_ pDecisionTaskCompletedEventId_ =+    CancelTimerFailedEventAttributes'+    { _ctfeaTimerId = pTimerId_+    , _ctfeaCause = pCause_+    , _ctfeaDecisionTaskCompletedEventId = pDecisionTaskCompletedEventId_+    }++-- | The timerId provided in the @CancelTimer@ decision that failed.+ctfeaTimerId :: Lens' CancelTimerFailedEventAttributes Text+ctfeaTimerId = lens _ctfeaTimerId (\ s a -> s{_ctfeaTimerId = a});++-- | The cause of the failure. This information is generated by the system and can be useful for diagnostic purposes.+ctfeaCause :: Lens' CancelTimerFailedEventAttributes CancelTimerFailedCause+ctfeaCause = lens _ctfeaCause (\ s a -> s{_ctfeaCause = a});++-- | The ID of the @DecisionTaskCompleted@ event corresponding to the decision task that resulted in the @CancelTimer@ 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+ctfeaDecisionTaskCompletedEventId = lens _ctfeaDecisionTaskCompletedEventId (\ s a -> s{_ctfeaDecisionTaskCompletedEventId = a});++instance FromJSON CancelTimerFailedEventAttributes+         where+        parseJSON+          = withObject "CancelTimerFailedEventAttributes"+              (\ x ->+                 CancelTimerFailedEventAttributes' <$>+                   (x .: "timerId") <*> (x .: "cause") <*>+                     (x .: "decisionTaskCompletedEventId"))++instance Hashable CancelTimerFailedEventAttributes++instance NFData CancelTimerFailedEventAttributes++-- | Provides details of the @CancelWorkflowExecution@ decision.+--+--+-- __Access Control__+--+-- You can use IAM policies to control this decision's access to Amazon SWF resources as follows:+--+--     * Use a @Resource@ element with the domain name to limit the action to only specified domains.    * Use an @Action@ element to allow or deny permission to call this action.    * You cannot use an IAM policy to constrain this action's parameters.+--+-- If the caller does not have sufficient permissions to invoke the action, or the parameter values fall outside the specified constraints, the action fails. The associated event attribute's __cause__ parameter will be set to OPERATION_NOT_PERMITTED. For details and example IAM policies, see <http://docs.aws.amazon.com/amazonswf/latest/developerguide/swf-dev-iam.html Using IAM to Manage Access to Amazon SWF Workflows> .+--+--+-- /See:/ 'cancelWorkflowExecutionDecisionAttributes' smart constructor.+newtype CancelWorkflowExecutionDecisionAttributes = CancelWorkflowExecutionDecisionAttributes'+    { _cwedaDetails :: Maybe Text+    } deriving (Eq,Read,Show,Data,Typeable,Generic)++-- | Creates a value of 'CancelWorkflowExecutionDecisionAttributes' with the minimum fields required to make a request.+--+-- Use one of the following lenses to modify other fields as desired:+--+-- * 'cwedaDetails' - /Optional./ details of the cancellation.+cancelWorkflowExecutionDecisionAttributes+    :: CancelWorkflowExecutionDecisionAttributes+cancelWorkflowExecutionDecisionAttributes =+    CancelWorkflowExecutionDecisionAttributes'+    { _cwedaDetails = Nothing+    }++-- | /Optional./ details of the cancellation.+cwedaDetails :: Lens' CancelWorkflowExecutionDecisionAttributes (Maybe Text)+cwedaDetails = lens _cwedaDetails (\ s a -> s{_cwedaDetails = a});++instance Hashable+         CancelWorkflowExecutionDecisionAttributes++instance NFData+         CancelWorkflowExecutionDecisionAttributes++instance ToJSON+         CancelWorkflowExecutionDecisionAttributes where+        toJSON CancelWorkflowExecutionDecisionAttributes'{..}+          = object+              (catMaybes [("details" .=) <$> _cwedaDetails])++-- | Provides details of the @CancelWorkflowExecutionFailed@ event.+--+--+--+-- /See:/ 'cancelWorkflowExecutionFailedEventAttributes' smart constructor.+data CancelWorkflowExecutionFailedEventAttributes = CancelWorkflowExecutionFailedEventAttributes'+    { _cCause                        :: !CancelWorkflowExecutionFailedCause+    , _cDecisionTaskCompletedEventId :: !Integer+    } deriving (Eq,Read,Show,Data,Typeable,Generic)++-- | Creates a value of 'CancelWorkflowExecutionFailedEventAttributes' with the minimum fields required to make a request.+--+-- Use one of the following lenses to modify other fields as desired:+--+-- * 'cCause' - The cause of the failure. This information is generated by the system and can be useful for diagnostic purposes.+--+-- * 'cDecisionTaskCompletedEventId' - The ID of the @DecisionTaskCompleted@ event corresponding to the decision task that resulted in the @CancelWorkflowExecution@ 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.+cancelWorkflowExecutionFailedEventAttributes+    :: CancelWorkflowExecutionFailedCause -- ^ 'cCause'+    -> Integer -- ^ 'cDecisionTaskCompletedEventId'+    -> CancelWorkflowExecutionFailedEventAttributes+cancelWorkflowExecutionFailedEventAttributes pCause_ pDecisionTaskCompletedEventId_ =+    CancelWorkflowExecutionFailedEventAttributes'+    { _cCause = pCause_+    , _cDecisionTaskCompletedEventId = pDecisionTaskCompletedEventId_+    }++-- | The cause of the failure. This information is generated by the system and can be useful for diagnostic purposes.+cCause :: Lens' CancelWorkflowExecutionFailedEventAttributes CancelWorkflowExecutionFailedCause+cCause = lens _cCause (\ s a -> s{_cCause = a});++-- | The ID of the @DecisionTaskCompleted@ event corresponding to the decision task that resulted in the @CancelWorkflowExecution@ 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+cDecisionTaskCompletedEventId = lens _cDecisionTaskCompletedEventId (\ s a -> s{_cDecisionTaskCompletedEventId = a});++instance FromJSON+         CancelWorkflowExecutionFailedEventAttributes where+        parseJSON+          = withObject+              "CancelWorkflowExecutionFailedEventAttributes"+              (\ x ->+                 CancelWorkflowExecutionFailedEventAttributes' <$>+                   (x .: "cause") <*>+                     (x .: "decisionTaskCompletedEventId"))++instance Hashable+         CancelWorkflowExecutionFailedEventAttributes++instance NFData+         CancelWorkflowExecutionFailedEventAttributes++-- | Provide details of the @ChildWorkflowExecutionCanceled@ event.+--+--+--+-- /See:/ 'childWorkflowExecutionCanceledEventAttributes' smart constructor.+data ChildWorkflowExecutionCanceledEventAttributes = ChildWorkflowExecutionCanceledEventAttributes'+    { _cDetails           :: !(Maybe Text)+    , _cWorkflowExecution :: !WorkflowExecution+    , _cWorkflowType      :: !WorkflowType+    , _cInitiatedEventId  :: !Integer+    , _cStartedEventId    :: !Integer+    } deriving (Eq,Read,Show,Data,Typeable,Generic)++-- | Creates a value of 'ChildWorkflowExecutionCanceledEventAttributes' with the minimum fields required to make a request.+--+-- Use one of the following lenses to modify other fields as desired:+--+-- * 'cDetails' - Details of the cancellation (if provided).+--+-- * 'cWorkflowExecution' - The child workflow execution that was canceled.+--+-- * 'cWorkflowType' - The type of the child workflow execution.+--+-- * 'cInitiatedEventId' - The ID of the @StartChildWorkflowExecutionInitiated@ event corresponding to the @StartChildWorkflowExecution@ decision 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.+--+-- * 'cStartedEventId' - The ID of the @ChildWorkflowExecutionStarted@ 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.+childWorkflowExecutionCanceledEventAttributes+    :: WorkflowExecution -- ^ 'cWorkflowExecution'+    -> WorkflowType -- ^ 'cWorkflowType'+    -> Integer -- ^ 'cInitiatedEventId'+    -> Integer -- ^ 'cStartedEventId'+    -> ChildWorkflowExecutionCanceledEventAttributes+childWorkflowExecutionCanceledEventAttributes pWorkflowExecution_ pWorkflowType_ pInitiatedEventId_ pStartedEventId_ =+    ChildWorkflowExecutionCanceledEventAttributes'+    { _cDetails = Nothing+    , _cWorkflowExecution = pWorkflowExecution_+    , _cWorkflowType = pWorkflowType_+    , _cInitiatedEventId = pInitiatedEventId_+    , _cStartedEventId = pStartedEventId_+    }++-- | Details of the cancellation (if provided).+cDetails :: Lens' ChildWorkflowExecutionCanceledEventAttributes (Maybe Text)+cDetails = lens _cDetails (\ s a -> s{_cDetails = a});++-- | The child workflow execution that was canceled.+cWorkflowExecution :: Lens' ChildWorkflowExecutionCanceledEventAttributes WorkflowExecution+cWorkflowExecution = lens _cWorkflowExecution (\ s a -> s{_cWorkflowExecution = a});++-- | The type of the child workflow execution.+cWorkflowType :: Lens' ChildWorkflowExecutionCanceledEventAttributes WorkflowType+cWorkflowType = lens _cWorkflowType (\ s a -> s{_cWorkflowType = a});++-- | The ID of the @StartChildWorkflowExecutionInitiated@ event corresponding to the @StartChildWorkflowExecution@ decision 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+cInitiatedEventId = lens _cInitiatedEventId (\ s a -> s{_cInitiatedEventId = a});++-- | The ID of the @ChildWorkflowExecutionStarted@ 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+cStartedEventId = lens _cStartedEventId (\ s a -> s{_cStartedEventId = a});++instance FromJSON+         ChildWorkflowExecutionCanceledEventAttributes where+        parseJSON+          = withObject+              "ChildWorkflowExecutionCanceledEventAttributes"+              (\ x ->+                 ChildWorkflowExecutionCanceledEventAttributes' <$>+                   (x .:? "details") <*> (x .: "workflowExecution") <*>+                     (x .: "workflowType")+                     <*> (x .: "initiatedEventId")+                     <*> (x .: "startedEventId"))++instance Hashable+         ChildWorkflowExecutionCanceledEventAttributes++instance NFData+         ChildWorkflowExecutionCanceledEventAttributes++-- | Provides details of the @ChildWorkflowExecutionCompleted@ event.+--+--+--+-- /See:/ 'childWorkflowExecutionCompletedEventAttributes' smart constructor.+data ChildWorkflowExecutionCompletedEventAttributes = ChildWorkflowExecutionCompletedEventAttributes'+    { _cweceaResult            :: !(Maybe Text)+    , _cweceaWorkflowExecution :: !WorkflowExecution+    , _cweceaWorkflowType      :: !WorkflowType+    , _cweceaInitiatedEventId  :: !Integer+    , _cweceaStartedEventId    :: !Integer+    } deriving (Eq,Read,Show,Data,Typeable,Generic)++-- | Creates a value of 'ChildWorkflowExecutionCompletedEventAttributes' with the minimum fields required to make a request.+--+-- Use one of the following lenses to modify other fields as desired:+--+-- * 'cweceaResult' - The result of the child workflow execution (if any).+--+-- * 'cweceaWorkflowExecution' - The child workflow execution that was completed.+--+-- * 'cweceaWorkflowType' - The type of the child workflow execution.+--+-- * 'cweceaInitiatedEventId' - The ID of the @StartChildWorkflowExecutionInitiated@ event corresponding to the @StartChildWorkflowExecution@ decision 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.+--+-- * 'cweceaStartedEventId' - The ID of the @ChildWorkflowExecutionStarted@ 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.+childWorkflowExecutionCompletedEventAttributes+    :: WorkflowExecution -- ^ 'cweceaWorkflowExecution'+    -> WorkflowType -- ^ 'cweceaWorkflowType'+    -> Integer -- ^ 'cweceaInitiatedEventId'+    -> Integer -- ^ 'cweceaStartedEventId'+    -> ChildWorkflowExecutionCompletedEventAttributes+childWorkflowExecutionCompletedEventAttributes pWorkflowExecution_ pWorkflowType_ pInitiatedEventId_ pStartedEventId_ =+    ChildWorkflowExecutionCompletedEventAttributes'+    { _cweceaResult = Nothing+    , _cweceaWorkflowExecution = pWorkflowExecution_+    , _cweceaWorkflowType = pWorkflowType_+    , _cweceaInitiatedEventId = pInitiatedEventId_+    , _cweceaStartedEventId = pStartedEventId_+    }++-- | The result of the child workflow execution (if any).+cweceaResult :: Lens' ChildWorkflowExecutionCompletedEventAttributes (Maybe Text)+cweceaResult = lens _cweceaResult (\ s a -> s{_cweceaResult = a});++-- | The child workflow execution that was completed.+cweceaWorkflowExecution :: Lens' ChildWorkflowExecutionCompletedEventAttributes WorkflowExecution+cweceaWorkflowExecution = lens _cweceaWorkflowExecution (\ s a -> s{_cweceaWorkflowExecution = a});++-- | The type of the child workflow execution.+cweceaWorkflowType :: Lens' ChildWorkflowExecutionCompletedEventAttributes WorkflowType+cweceaWorkflowType = lens _cweceaWorkflowType (\ s a -> s{_cweceaWorkflowType = a});++-- | The ID of the @StartChildWorkflowExecutionInitiated@ event corresponding to the @StartChildWorkflowExecution@ decision 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+cweceaInitiatedEventId = lens _cweceaInitiatedEventId (\ s a -> s{_cweceaInitiatedEventId = a});++-- | The ID of the @ChildWorkflowExecutionStarted@ 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+cweceaStartedEventId = lens _cweceaStartedEventId (\ s a -> s{_cweceaStartedEventId = a});++instance FromJSON+         ChildWorkflowExecutionCompletedEventAttributes where+        parseJSON+          = withObject+              "ChildWorkflowExecutionCompletedEventAttributes"+              (\ x ->+                 ChildWorkflowExecutionCompletedEventAttributes' <$>+                   (x .:? "result") <*> (x .: "workflowExecution") <*>+                     (x .: "workflowType")+                     <*> (x .: "initiatedEventId")+                     <*> (x .: "startedEventId"))++instance Hashable+         ChildWorkflowExecutionCompletedEventAttributes++instance NFData+         ChildWorkflowExecutionCompletedEventAttributes++-- | Provides details of the @ChildWorkflowExecutionFailed@ event.+--+--+--+-- /See:/ 'childWorkflowExecutionFailedEventAttributes' smart constructor.+data ChildWorkflowExecutionFailedEventAttributes = ChildWorkflowExecutionFailedEventAttributes'+    { _cwefeaReason            :: !(Maybe Text)+    , _cwefeaDetails           :: !(Maybe Text)+    , _cwefeaWorkflowExecution :: !WorkflowExecution+    , _cwefeaWorkflowType      :: !WorkflowType+    , _cwefeaInitiatedEventId  :: !Integer+    , _cwefeaStartedEventId    :: !Integer+    } deriving (Eq,Read,Show,Data,Typeable,Generic)++-- | Creates a value of 'ChildWorkflowExecutionFailedEventAttributes' with the minimum fields required to make a request.+--+-- Use one of the following lenses to modify other fields as desired:+--+-- * 'cwefeaReason' - The reason for the failure (if provided).+--+-- * 'cwefeaDetails' - The details of the failure (if provided).+--+-- * 'cwefeaWorkflowExecution' - The child workflow execution that failed.+--+-- * 'cwefeaWorkflowType' - The type of the child workflow execution.+--+-- * 'cwefeaInitiatedEventId' - The ID of the @StartChildWorkflowExecutionInitiated@ event corresponding to the @StartChildWorkflowExecution@ decision 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.+--+-- * 'cwefeaStartedEventId' - The ID of the @ChildWorkflowExecutionStarted@ 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.+childWorkflowExecutionFailedEventAttributes+    :: WorkflowExecution -- ^ 'cwefeaWorkflowExecution'+    -> WorkflowType -- ^ 'cwefeaWorkflowType'+    -> Integer -- ^ 'cwefeaInitiatedEventId'+    -> Integer -- ^ 'cwefeaStartedEventId'+    -> ChildWorkflowExecutionFailedEventAttributes+childWorkflowExecutionFailedEventAttributes pWorkflowExecution_ pWorkflowType_ pInitiatedEventId_ pStartedEventId_ =+    ChildWorkflowExecutionFailedEventAttributes'+    { _cwefeaReason = Nothing+    , _cwefeaDetails = Nothing+    , _cwefeaWorkflowExecution = pWorkflowExecution_+    , _cwefeaWorkflowType = pWorkflowType_+    , _cwefeaInitiatedEventId = pInitiatedEventId_+    , _cwefeaStartedEventId = pStartedEventId_+    }++-- | The reason for the failure (if provided).+cwefeaReason :: Lens' ChildWorkflowExecutionFailedEventAttributes (Maybe Text)+cwefeaReason = lens _cwefeaReason (\ s a -> s{_cwefeaReason = a});++-- | The details of the failure (if provided).+cwefeaDetails :: Lens' ChildWorkflowExecutionFailedEventAttributes (Maybe Text)+cwefeaDetails = lens _cwefeaDetails (\ s a -> s{_cwefeaDetails = a});++-- | The child workflow execution that failed.+cwefeaWorkflowExecution :: Lens' ChildWorkflowExecutionFailedEventAttributes WorkflowExecution+cwefeaWorkflowExecution = lens _cwefeaWorkflowExecution (\ s a -> s{_cwefeaWorkflowExecution = a});++-- | The type of the child workflow execution.+cwefeaWorkflowType :: Lens' ChildWorkflowExecutionFailedEventAttributes WorkflowType+cwefeaWorkflowType = lens _cwefeaWorkflowType (\ s a -> s{_cwefeaWorkflowType = a});++-- | The ID of the @StartChildWorkflowExecutionInitiated@ event corresponding to the @StartChildWorkflowExecution@ decision 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+cwefeaInitiatedEventId = lens _cwefeaInitiatedEventId (\ s a -> s{_cwefeaInitiatedEventId = a});++-- | The ID of the @ChildWorkflowExecutionStarted@ 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+cwefeaStartedEventId = lens _cwefeaStartedEventId (\ s a -> s{_cwefeaStartedEventId = a});++instance FromJSON+         ChildWorkflowExecutionFailedEventAttributes where+        parseJSON+          = withObject+              "ChildWorkflowExecutionFailedEventAttributes"+              (\ x ->+                 ChildWorkflowExecutionFailedEventAttributes' <$>+                   (x .:? "reason") <*> (x .:? "details") <*>+                     (x .: "workflowExecution")+                     <*> (x .: "workflowType")+                     <*> (x .: "initiatedEventId")+                     <*> (x .: "startedEventId"))++instance Hashable+         ChildWorkflowExecutionFailedEventAttributes++instance NFData+         ChildWorkflowExecutionFailedEventAttributes++-- | Provides details of the @ChildWorkflowExecutionStarted@ event.+--+--+--+-- /See:/ 'childWorkflowExecutionStartedEventAttributes' smart constructor.+data ChildWorkflowExecutionStartedEventAttributes = ChildWorkflowExecutionStartedEventAttributes'+    { _cweseaWorkflowExecution :: !WorkflowExecution+    , _cweseaWorkflowType      :: !WorkflowType+    , _cweseaInitiatedEventId  :: !Integer+    } deriving (Eq,Read,Show,Data,Typeable,Generic)++-- | Creates a value of 'ChildWorkflowExecutionStartedEventAttributes' with the minimum fields required to make a request.+--+-- Use one of the following lenses to modify other fields as desired:+--+-- * 'cweseaWorkflowExecution' - The child workflow execution that was started.+--+-- * 'cweseaWorkflowType' - The type of the child workflow execution.+--+-- * 'cweseaInitiatedEventId' - The ID of the @StartChildWorkflowExecutionInitiated@ event corresponding to the @StartChildWorkflowExecution@ decision 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.+childWorkflowExecutionStartedEventAttributes+    :: WorkflowExecution -- ^ 'cweseaWorkflowExecution'+    -> WorkflowType -- ^ 'cweseaWorkflowType'+    -> Integer -- ^ 'cweseaInitiatedEventId'+    -> ChildWorkflowExecutionStartedEventAttributes+childWorkflowExecutionStartedEventAttributes pWorkflowExecution_ pWorkflowType_ pInitiatedEventId_ =+    ChildWorkflowExecutionStartedEventAttributes'+    { _cweseaWorkflowExecution = pWorkflowExecution_+    , _cweseaWorkflowType = pWorkflowType_+    , _cweseaInitiatedEventId = pInitiatedEventId_+    }++-- | The child workflow execution that was started.+cweseaWorkflowExecution :: Lens' ChildWorkflowExecutionStartedEventAttributes WorkflowExecution+cweseaWorkflowExecution = lens _cweseaWorkflowExecution (\ s a -> s{_cweseaWorkflowExecution = a});++-- | The type of the child workflow execution.+cweseaWorkflowType :: Lens' ChildWorkflowExecutionStartedEventAttributes WorkflowType+cweseaWorkflowType = lens _cweseaWorkflowType (\ s a -> s{_cweseaWorkflowType = a});++-- | The ID of the @StartChildWorkflowExecutionInitiated@ event corresponding to the @StartChildWorkflowExecution@ decision 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+cweseaInitiatedEventId = lens _cweseaInitiatedEventId (\ s a -> s{_cweseaInitiatedEventId = a});++instance FromJSON+         ChildWorkflowExecutionStartedEventAttributes where+        parseJSON+          = withObject+              "ChildWorkflowExecutionStartedEventAttributes"+              (\ x ->+                 ChildWorkflowExecutionStartedEventAttributes' <$>+                   (x .: "workflowExecution") <*> (x .: "workflowType")+                     <*> (x .: "initiatedEventId"))++instance Hashable+         ChildWorkflowExecutionStartedEventAttributes++instance NFData+         ChildWorkflowExecutionStartedEventAttributes++-- | Provides details of the @ChildWorkflowExecutionTerminated@ event.+--+--+--+-- /See:/ 'childWorkflowExecutionTerminatedEventAttributes' smart constructor.+data ChildWorkflowExecutionTerminatedEventAttributes = ChildWorkflowExecutionTerminatedEventAttributes'+    { _cweteaWorkflowExecution :: !WorkflowExecution+    , _cweteaWorkflowType      :: !WorkflowType+    , _cweteaInitiatedEventId  :: !Integer+    , _cweteaStartedEventId    :: !Integer+    } deriving (Eq,Read,Show,Data,Typeable,Generic)++-- | Creates a value of 'ChildWorkflowExecutionTerminatedEventAttributes' with the minimum fields required to make a request.+--+-- Use one of the following lenses to modify other fields as desired:+--+-- * 'cweteaWorkflowExecution' - The child workflow execution that was terminated.+--+-- * 'cweteaWorkflowType' - The type of the child workflow execution.+--+-- * 'cweteaInitiatedEventId' - The ID of the @StartChildWorkflowExecutionInitiated@ event corresponding to the @StartChildWorkflowExecution@ decision 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.+--+-- * 'cweteaStartedEventId' - The ID of the @ChildWorkflowExecutionStarted@ 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.+childWorkflowExecutionTerminatedEventAttributes+    :: WorkflowExecution -- ^ 'cweteaWorkflowExecution'+    -> WorkflowType -- ^ 'cweteaWorkflowType'+    -> Integer -- ^ 'cweteaInitiatedEventId'+    -> Integer -- ^ 'cweteaStartedEventId'+    -> ChildWorkflowExecutionTerminatedEventAttributes+childWorkflowExecutionTerminatedEventAttributes pWorkflowExecution_ pWorkflowType_ pInitiatedEventId_ pStartedEventId_ =+    ChildWorkflowExecutionTerminatedEventAttributes'+    { _cweteaWorkflowExecution = pWorkflowExecution_+    , _cweteaWorkflowType = pWorkflowType_+    , _cweteaInitiatedEventId = pInitiatedEventId_+    , _cweteaStartedEventId = pStartedEventId_+    }++-- | The child workflow execution that was terminated.+cweteaWorkflowExecution :: Lens' ChildWorkflowExecutionTerminatedEventAttributes WorkflowExecution+cweteaWorkflowExecution = lens _cweteaWorkflowExecution (\ s a -> s{_cweteaWorkflowExecution = a});++-- | The type of the child workflow execution.+cweteaWorkflowType :: Lens' ChildWorkflowExecutionTerminatedEventAttributes WorkflowType+cweteaWorkflowType = lens _cweteaWorkflowType (\ s a -> s{_cweteaWorkflowType = a});++-- | The ID of the @StartChildWorkflowExecutionInitiated@ event corresponding to the @StartChildWorkflowExecution@ decision 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+cweteaInitiatedEventId = lens _cweteaInitiatedEventId (\ s a -> s{_cweteaInitiatedEventId = a});++-- | The ID of the @ChildWorkflowExecutionStarted@ 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+cweteaStartedEventId = lens _cweteaStartedEventId (\ s a -> s{_cweteaStartedEventId = a});++instance FromJSON+         ChildWorkflowExecutionTerminatedEventAttributes where+        parseJSON+          = withObject+              "ChildWorkflowExecutionTerminatedEventAttributes"+              (\ x ->+                 ChildWorkflowExecutionTerminatedEventAttributes' <$>+                   (x .: "workflowExecution") <*> (x .: "workflowType")+                     <*> (x .: "initiatedEventId")+                     <*> (x .: "startedEventId"))++instance Hashable+         ChildWorkflowExecutionTerminatedEventAttributes++instance NFData+         ChildWorkflowExecutionTerminatedEventAttributes++-- | Provides details of the @ChildWorkflowExecutionTimedOut@ event.+--+--+--+-- /See:/ 'childWorkflowExecutionTimedOutEventAttributes' smart constructor.+data ChildWorkflowExecutionTimedOutEventAttributes = ChildWorkflowExecutionTimedOutEventAttributes'+    { _cwetoeaWorkflowExecution :: !WorkflowExecution+    , _cwetoeaWorkflowType      :: !WorkflowType+    , _cwetoeaTimeoutType       :: !WorkflowExecutionTimeoutType+    , _cwetoeaInitiatedEventId  :: !Integer+    , _cwetoeaStartedEventId    :: !Integer+    } deriving (Eq,Read,Show,Data,Typeable,Generic)++-- | Creates a value of 'ChildWorkflowExecutionTimedOutEventAttributes' with the minimum fields required to make a request.+--+-- Use one of the following lenses to modify other fields as desired:+--+-- * 'cwetoeaWorkflowExecution' - The child workflow execution that timed out.+--+-- * 'cwetoeaWorkflowType' - The type of the child workflow execution.+--+-- * 'cwetoeaTimeoutType' - The type of the timeout that caused the child workflow execution to time out.+--+-- * 'cwetoeaInitiatedEventId' - The ID of the @StartChildWorkflowExecutionInitiated@ event corresponding to the @StartChildWorkflowExecution@ decision 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.+--+-- * 'cwetoeaStartedEventId' - The ID of the @ChildWorkflowExecutionStarted@ 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.+childWorkflowExecutionTimedOutEventAttributes+    :: WorkflowExecution -- ^ 'cwetoeaWorkflowExecution'+    -> WorkflowType -- ^ 'cwetoeaWorkflowType'+    -> WorkflowExecutionTimeoutType -- ^ 'cwetoeaTimeoutType'+    -> Integer -- ^ 'cwetoeaInitiatedEventId'+    -> Integer -- ^ 'cwetoeaStartedEventId'+    -> ChildWorkflowExecutionTimedOutEventAttributes+childWorkflowExecutionTimedOutEventAttributes pWorkflowExecution_ pWorkflowType_ pTimeoutType_ pInitiatedEventId_ pStartedEventId_ =+    ChildWorkflowExecutionTimedOutEventAttributes'+    { _cwetoeaWorkflowExecution = pWorkflowExecution_+    , _cwetoeaWorkflowType = pWorkflowType_+    , _cwetoeaTimeoutType = pTimeoutType_+    , _cwetoeaInitiatedEventId = pInitiatedEventId_+    , _cwetoeaStartedEventId = pStartedEventId_+    }++-- | The child workflow execution that timed out.+cwetoeaWorkflowExecution :: Lens' ChildWorkflowExecutionTimedOutEventAttributes WorkflowExecution+cwetoeaWorkflowExecution = lens _cwetoeaWorkflowExecution (\ s a -> s{_cwetoeaWorkflowExecution = a});++-- | The type of the child workflow execution.+cwetoeaWorkflowType :: Lens' ChildWorkflowExecutionTimedOutEventAttributes WorkflowType+cwetoeaWorkflowType = lens _cwetoeaWorkflowType (\ s a -> s{_cwetoeaWorkflowType = a});++-- | The type of the timeout that caused the child workflow execution to time out.+cwetoeaTimeoutType :: Lens' ChildWorkflowExecutionTimedOutEventAttributes WorkflowExecutionTimeoutType+cwetoeaTimeoutType = lens _cwetoeaTimeoutType (\ s a -> s{_cwetoeaTimeoutType = a});++-- | The ID of the @StartChildWorkflowExecutionInitiated@ event corresponding to the @StartChildWorkflowExecution@ decision 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+cwetoeaInitiatedEventId = lens _cwetoeaInitiatedEventId (\ s a -> s{_cwetoeaInitiatedEventId = a});++-- | The ID of the @ChildWorkflowExecutionStarted@ 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+cwetoeaStartedEventId = lens _cwetoeaStartedEventId (\ s a -> s{_cwetoeaStartedEventId = a});++instance FromJSON+         ChildWorkflowExecutionTimedOutEventAttributes where+        parseJSON+          = withObject+              "ChildWorkflowExecutionTimedOutEventAttributes"+              (\ x ->+                 ChildWorkflowExecutionTimedOutEventAttributes' <$>+                   (x .: "workflowExecution") <*> (x .: "workflowType")+                     <*> (x .: "timeoutType")+                     <*> (x .: "initiatedEventId")+                     <*> (x .: "startedEventId"))++instance Hashable+         ChildWorkflowExecutionTimedOutEventAttributes++instance NFData+         ChildWorkflowExecutionTimedOutEventAttributes++-- | Used to filter the closed workflow executions in visibility APIs by their close status.+--+--+--+-- /See:/ 'closeStatusFilter' smart constructor.+newtype CloseStatusFilter = CloseStatusFilter'+    { _csfStatus :: CloseStatus+    } deriving (Eq,Read,Show,Data,Typeable,Generic)++-- | Creates a value of 'CloseStatusFilter' with the minimum fields required to make a request.+--+-- Use one of the following lenses to modify other fields as desired:+--+-- * 'csfStatus' - __Required.__ The close status that must match the close status of an execution for it to meet the criteria of this filter.+closeStatusFilter+    :: CloseStatus -- ^ 'csfStatus'+    -> CloseStatusFilter+closeStatusFilter pStatus_ =+    CloseStatusFilter'+    { _csfStatus = pStatus_+    }++-- | __Required.__ 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+csfStatus = lens _csfStatus (\ s a -> s{_csfStatus = a});++instance Hashable CloseStatusFilter++instance NFData CloseStatusFilter++instance ToJSON CloseStatusFilter where+        toJSON CloseStatusFilter'{..}+          = object (catMaybes [Just ("status" .= _csfStatus)])++-- | Provides details of the @CompleteWorkflowExecution@ decision.+--+--+-- __Access Control__+--+-- You can use IAM policies to control this decision's access to Amazon SWF resources as follows:+--+--     * Use a @Resource@ element with the domain name to limit the action to only specified domains.    * Use an @Action@ element to allow or deny permission to call this action.    * You cannot use an IAM policy to constrain this action's parameters.+--+-- If the caller does not have sufficient permissions to invoke the action, or the parameter values fall outside the specified constraints, the action fails. The associated event attribute's __cause__ parameter will be set to OPERATION_NOT_PERMITTED. For details and example IAM policies, see <http://docs.aws.amazon.com/amazonswf/latest/developerguide/swf-dev-iam.html Using IAM to Manage Access to Amazon SWF Workflows> .+--+--+-- /See:/ 'completeWorkflowExecutionDecisionAttributes' smart constructor.+newtype CompleteWorkflowExecutionDecisionAttributes = CompleteWorkflowExecutionDecisionAttributes'+    { _cwedaResult :: Maybe Text+    } deriving (Eq,Read,Show,Data,Typeable,Generic)++-- | Creates a value of 'CompleteWorkflowExecutionDecisionAttributes' with the minimum fields required to make a request.+--+-- Use one of the following lenses to modify other fields as desired:+--+-- * 'cwedaResult' - The result of the workflow execution. The form of the result is implementation defined.+completeWorkflowExecutionDecisionAttributes+    :: CompleteWorkflowExecutionDecisionAttributes+completeWorkflowExecutionDecisionAttributes =+    CompleteWorkflowExecutionDecisionAttributes'+    { _cwedaResult = Nothing+    }++-- | The result of the workflow execution. The form of the result is implementation defined.+cwedaResult :: Lens' CompleteWorkflowExecutionDecisionAttributes (Maybe Text)+cwedaResult = lens _cwedaResult (\ s a -> s{_cwedaResult = a});++instance Hashable+         CompleteWorkflowExecutionDecisionAttributes++instance NFData+         CompleteWorkflowExecutionDecisionAttributes++instance ToJSON+         CompleteWorkflowExecutionDecisionAttributes where+        toJSON+          CompleteWorkflowExecutionDecisionAttributes'{..}+          = object (catMaybes [("result" .=) <$> _cwedaResult])++-- | Provides details of the @CompleteWorkflowExecutionFailed@ event.+--+--+--+-- /See:/ 'completeWorkflowExecutionFailedEventAttributes' smart constructor.+data CompleteWorkflowExecutionFailedEventAttributes = CompleteWorkflowExecutionFailedEventAttributes'+    { _cwefeaCause                        :: !CompleteWorkflowExecutionFailedCause+    , _cwefeaDecisionTaskCompletedEventId :: !Integer+    } deriving (Eq,Read,Show,Data,Typeable,Generic)++-- | Creates a value of 'CompleteWorkflowExecutionFailedEventAttributes' with the minimum fields required to make a request.+--+-- Use one of the following lenses to modify other fields as desired:+--+-- * 'cwefeaCause' - The cause of the failure. This information is generated by the system and can be useful for diagnostic purposes.+--+-- * 'cwefeaDecisionTaskCompletedEventId' - The ID of the @DecisionTaskCompleted@ event corresponding to the decision task that resulted in the @CompleteWorkflowExecution@ 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.+completeWorkflowExecutionFailedEventAttributes+    :: CompleteWorkflowExecutionFailedCause -- ^ 'cwefeaCause'+    -> Integer -- ^ 'cwefeaDecisionTaskCompletedEventId'+    -> CompleteWorkflowExecutionFailedEventAttributes+completeWorkflowExecutionFailedEventAttributes pCause_ pDecisionTaskCompletedEventId_ =+    CompleteWorkflowExecutionFailedEventAttributes'+    { _cwefeaCause = pCause_+    , _cwefeaDecisionTaskCompletedEventId = pDecisionTaskCompletedEventId_+    }++-- | The cause of the failure. This information is generated by the system and can be useful for diagnostic purposes.+cwefeaCause :: Lens' CompleteWorkflowExecutionFailedEventAttributes CompleteWorkflowExecutionFailedCause+cwefeaCause = lens _cwefeaCause (\ s a -> s{_cwefeaCause = a});++-- | The ID of the @DecisionTaskCompleted@ event corresponding to the decision task that resulted in the @CompleteWorkflowExecution@ 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+cwefeaDecisionTaskCompletedEventId = lens _cwefeaDecisionTaskCompletedEventId (\ s a -> s{_cwefeaDecisionTaskCompletedEventId = a});++instance FromJSON+         CompleteWorkflowExecutionFailedEventAttributes where+        parseJSON+          = withObject+              "CompleteWorkflowExecutionFailedEventAttributes"+              (\ x ->+                 CompleteWorkflowExecutionFailedEventAttributes' <$>+                   (x .: "cause") <*>+                     (x .: "decisionTaskCompletedEventId"))++instance Hashable+         CompleteWorkflowExecutionFailedEventAttributes++instance NFData+         CompleteWorkflowExecutionFailedEventAttributes++-- | Provides details of the @ContinueAsNewWorkflowExecution@ decision.+--+--+-- __Access Control__+--+-- You can use IAM policies to control this decision's access to Amazon SWF resources as follows:+--+--     * Use a @Resource@ element with the domain name to limit the action to only specified domains.    * Use an @Action@ element to allow or deny permission to call this action.    * Constrain the following parameters by using a @Condition@ element with the appropriate keys.     * @tag@ : /Optional./ . A tag used to identify the workflow execution    * @taskList@ : String constraint. The key is @swf:taskList.name@ .    * @workflowType.version@ : String constraint. The key is @swf:workflowType.version@ .+--+--+--+-- If the caller does not have sufficient permissions to invoke the action, or the parameter values fall outside the specified constraints, the action fails. The associated event attribute's __cause__ parameter will be set to OPERATION_NOT_PERMITTED. For details and example IAM policies, see <http://docs.aws.amazon.com/amazonswf/latest/developerguide/swf-dev-iam.html Using IAM to Manage Access to Amazon SWF Workflows> .+--+--+-- /See:/ 'continueAsNewWorkflowExecutionDecisionAttributes' smart constructor.+data ContinueAsNewWorkflowExecutionDecisionAttributes = ContinueAsNewWorkflowExecutionDecisionAttributes'+    { _canwedaTagList                      :: !(Maybe [Text])+    , _canwedaTaskStartToCloseTimeout      :: !(Maybe Text)+    , _canwedaLambdaRole                   :: !(Maybe Text)+    , _canwedaInput                        :: !(Maybe Text)+    , _canwedaWorkflowTypeVersion          :: !(Maybe Text)+    , _canwedaExecutionStartToCloseTimeout :: !(Maybe Text)+    , _canwedaTaskList                     :: !(Maybe TaskList)+    , _canwedaTaskPriority                 :: !(Maybe Text)+    , _canwedaChildPolicy                  :: !(Maybe ChildPolicy)+    } deriving (Eq,Read,Show,Data,Typeable,Generic)++-- | Creates a value of 'ContinueAsNewWorkflowExecutionDecisionAttributes' with the minimum fields required to make a request.+--+-- Use one of the following lenses to modify other fields as desired:+--+-- * 'canwedaTagList' - 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 'ListOpenWorkflowExecutions' or 'ListClosedWorkflowExecutions' and specifying a 'TagFilter' .+--+-- * 'canwedaTaskStartToCloseTimeout' - Specifies the maximum duration of decision tasks for the new workflow execution. This parameter overrides the @defaultTaskStartToCloseTimout@ specified when registering the workflow type using 'RegisterWorkflowType' . The duration is specified in seconds; an integer greater than or equal to 0. The value "NONE" can be used to specify unlimited duration.+--+-- * 'canwedaLambdaRole' - The ARN of an IAM role that authorizes Amazon SWF to invoke AWS Lambda functions.+--+-- * 'canwedaInput' - The input provided to the new workflow execution.+--+-- * 'canwedaWorkflowTypeVersion' - Undocumented member.+--+-- * 'canwedaExecutionStartToCloseTimeout' - If set, specifies 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 0. The value "NONE" can be used to specify unlimited duration.+--+-- * 'canwedaTaskList' - Undocumented member.+--+-- * 'canwedaTaskPriority' - /Optional./ 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 @Integer.MIN_VALUE@ (-2147483648) to @Integer.MAX_VALUE@ (2147483647). Higher numbers indicate higher priority. For more information about setting task priority, see <http://docs.aws.amazon.com/amazonswf/latest/developerguide/programming-priority.html Setting Task Priority> in the /Amazon Simple Workflow Developer Guide/ .+--+-- * 'canwedaChildPolicy' - If set, specifies the policy to use for the child workflow executions of the new execution if it is terminated by calling the 'TerminateWorkflowExecution' action explicitly or due to an expired timeout. This policy overrides the default child policy specified when registering the workflow type using 'RegisterWorkflowType' . The supported child policies are:     * __TERMINATE:__ the child executions will be terminated.    * __REQUEST_CANCEL:__ a request to cancel will be attempted for each child execution by recording a @WorkflowExecutionCancelRequested@ event in its history. It is up to the decider to take appropriate actions when it receives an execution history with this event.    * __ABANDON:__ no action will be taken. The child executions will continue to run.+continueAsNewWorkflowExecutionDecisionAttributes+    :: ContinueAsNewWorkflowExecutionDecisionAttributes+continueAsNewWorkflowExecutionDecisionAttributes =+    ContinueAsNewWorkflowExecutionDecisionAttributes'+    { _canwedaTagList = Nothing+    , _canwedaTaskStartToCloseTimeout = Nothing+    , _canwedaLambdaRole = Nothing+    , _canwedaInput = Nothing+    , _canwedaWorkflowTypeVersion = Nothing+    , _canwedaExecutionStartToCloseTimeout = Nothing+    , _canwedaTaskList = Nothing+    , _canwedaTaskPriority = Nothing+    , _canwedaChildPolicy = Nothing+    }++-- | 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 'ListOpenWorkflowExecutions' or 'ListClosedWorkflowExecutions' and specifying a 'TagFilter' .+canwedaTagList :: Lens' ContinueAsNewWorkflowExecutionDecisionAttributes [Text]+canwedaTagList = lens _canwedaTagList (\ s a -> s{_canwedaTagList = a}) . _Default . _Coerce;++-- | Specifies the maximum duration of decision tasks for the new workflow execution. This parameter overrides the @defaultTaskStartToCloseTimout@ specified when registering the workflow type using 'RegisterWorkflowType' . The duration is specified in seconds; an integer greater than or equal to 0. The value "NONE" can be used to specify unlimited duration.+canwedaTaskStartToCloseTimeout :: Lens' ContinueAsNewWorkflowExecutionDecisionAttributes (Maybe Text)+canwedaTaskStartToCloseTimeout = lens _canwedaTaskStartToCloseTimeout (\ s a -> s{_canwedaTaskStartToCloseTimeout = a});++-- | The ARN of an IAM role that authorizes Amazon SWF to invoke AWS Lambda functions.+canwedaLambdaRole :: Lens' ContinueAsNewWorkflowExecutionDecisionAttributes (Maybe Text)+canwedaLambdaRole = lens _canwedaLambdaRole (\ s a -> s{_canwedaLambdaRole = a});++-- | The input provided to the new workflow execution.+canwedaInput :: Lens' ContinueAsNewWorkflowExecutionDecisionAttributes (Maybe Text)+canwedaInput = lens _canwedaInput (\ s a -> s{_canwedaInput = a});++-- | Undocumented member.+canwedaWorkflowTypeVersion :: Lens' ContinueAsNewWorkflowExecutionDecisionAttributes (Maybe Text)+canwedaWorkflowTypeVersion = lens _canwedaWorkflowTypeVersion (\ s a -> s{_canwedaWorkflowTypeVersion = a});++-- | If set, specifies 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 0. The value "NONE" can be used to specify unlimited duration.+canwedaExecutionStartToCloseTimeout :: Lens' ContinueAsNewWorkflowExecutionDecisionAttributes (Maybe Text)+canwedaExecutionStartToCloseTimeout = lens _canwedaExecutionStartToCloseTimeout (\ s a -> s{_canwedaExecutionStartToCloseTimeout = a});++-- | Undocumented member.+canwedaTaskList :: Lens' ContinueAsNewWorkflowExecutionDecisionAttributes (Maybe TaskList)+canwedaTaskList = lens _canwedaTaskList (\ s a -> s{_canwedaTaskList = a});++-- | /Optional./ 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 @Integer.MIN_VALUE@ (-2147483648) to @Integer.MAX_VALUE@ (2147483647). Higher numbers indicate higher priority. For more information about setting task priority, see <http://docs.aws.amazon.com/amazonswf/latest/developerguide/programming-priority.html Setting Task Priority> in the /Amazon Simple Workflow Developer Guide/ .+canwedaTaskPriority :: Lens' ContinueAsNewWorkflowExecutionDecisionAttributes (Maybe Text)+canwedaTaskPriority = lens _canwedaTaskPriority (\ s a -> s{_canwedaTaskPriority = a});++-- | If set, specifies the policy to use for the child workflow executions of the new execution if it is terminated by calling the 'TerminateWorkflowExecution' action explicitly or due to an expired timeout. This policy overrides the default child policy specified when registering the workflow type using 'RegisterWorkflowType' . The supported child policies are:     * __TERMINATE:__ the child executions will be terminated.    * __REQUEST_CANCEL:__ a request to cancel will be attempted for each child execution by recording a @WorkflowExecutionCancelRequested@ event in its history. It is up to the decider to take appropriate actions when it receives an execution history with this event.    * __ABANDON:__ no action will be taken. The child executions will continue to run.+canwedaChildPolicy :: Lens' ContinueAsNewWorkflowExecutionDecisionAttributes (Maybe ChildPolicy)+canwedaChildPolicy = lens _canwedaChildPolicy (\ s a -> s{_canwedaChildPolicy = a});++instance Hashable+         ContinueAsNewWorkflowExecutionDecisionAttributes++instance NFData+         ContinueAsNewWorkflowExecutionDecisionAttributes++instance ToJSON+         ContinueAsNewWorkflowExecutionDecisionAttributes+         where+        toJSON+          ContinueAsNewWorkflowExecutionDecisionAttributes'{..}+          = object+              (catMaybes+                 [("tagList" .=) <$> _canwedaTagList,+                  ("taskStartToCloseTimeout" .=) <$>+                    _canwedaTaskStartToCloseTimeout,+                  ("lambdaRole" .=) <$> _canwedaLambdaRole,+                  ("input" .=) <$> _canwedaInput,+                  ("workflowTypeVersion" .=) <$>+                    _canwedaWorkflowTypeVersion,+                  ("executionStartToCloseTimeout" .=) <$>+                    _canwedaExecutionStartToCloseTimeout,+                  ("taskList" .=) <$> _canwedaTaskList,+                  ("taskPriority" .=) <$> _canwedaTaskPriority,+                  ("childPolicy" .=) <$> _canwedaChildPolicy])++-- | Provides details of the @ContinueAsNewWorkflowExecutionFailed@ event.+--+--+--+-- /See:/ 'continueAsNewWorkflowExecutionFailedEventAttributes' smart constructor.+data ContinueAsNewWorkflowExecutionFailedEventAttributes = ContinueAsNewWorkflowExecutionFailedEventAttributes'+    { _canwefeaCause                        :: !ContinueAsNewWorkflowExecutionFailedCause+    , _canwefeaDecisionTaskCompletedEventId :: !Integer+    } deriving (Eq,Read,Show,Data,Typeable,Generic)++-- | Creates a value of 'ContinueAsNewWorkflowExecutionFailedEventAttributes' with the minimum fields required to make a request.+--+-- Use one of the following lenses to modify other fields as desired:+--+-- * 'canwefeaCause' - The cause of the failure. This information is generated by the system and can be useful for diagnostic purposes.+--+-- * 'canwefeaDecisionTaskCompletedEventId' - The ID of the @DecisionTaskCompleted@ event corresponding to the decision task that resulted in the @ContinueAsNewWorkflowExecution@ 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.+continueAsNewWorkflowExecutionFailedEventAttributes+    :: ContinueAsNewWorkflowExecutionFailedCause -- ^ 'canwefeaCause'+    -> Integer -- ^ 'canwefeaDecisionTaskCompletedEventId'+    -> ContinueAsNewWorkflowExecutionFailedEventAttributes+continueAsNewWorkflowExecutionFailedEventAttributes pCause_ pDecisionTaskCompletedEventId_ =+    ContinueAsNewWorkflowExecutionFailedEventAttributes'+    { _canwefeaCause = pCause_+    , _canwefeaDecisionTaskCompletedEventId = pDecisionTaskCompletedEventId_+    }++-- | The cause of the failure. This information is generated by the system and can be useful for diagnostic purposes.+canwefeaCause :: Lens' ContinueAsNewWorkflowExecutionFailedEventAttributes ContinueAsNewWorkflowExecutionFailedCause+canwefeaCause = lens _canwefeaCause (\ s a -> s{_canwefeaCause = a});++-- | The ID of the @DecisionTaskCompleted@ event corresponding to the decision task that resulted in the @ContinueAsNewWorkflowExecution@ 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+canwefeaDecisionTaskCompletedEventId = lens _canwefeaDecisionTaskCompletedEventId (\ s a -> s{_canwefeaDecisionTaskCompletedEventId = a});++instance FromJSON+         ContinueAsNewWorkflowExecutionFailedEventAttributes+         where+        parseJSON+          = withObject+              "ContinueAsNewWorkflowExecutionFailedEventAttributes"+              (\ x ->+                 ContinueAsNewWorkflowExecutionFailedEventAttributes'+                   <$>+                   (x .: "cause") <*>+                     (x .: "decisionTaskCompletedEventId"))++instance Hashable+         ContinueAsNewWorkflowExecutionFailedEventAttributes++instance NFData+         ContinueAsNewWorkflowExecutionFailedEventAttributes++-- | Specifies a decision made by the decider. A decision can be one of these types:+--+--+--     * __CancelTimer__ : cancels a previously started timer and records a @TimerCanceled@ event in the history.    * __CancelWorkflowExecution__ : closes the workflow execution and records a @WorkflowExecutionCanceled@ event in the history.    * __CompleteWorkflowExecution__ : closes the workflow execution and records a @WorkflowExecutionCompleted@ event in the history .    * __ContinueAsNewWorkflowExecution__ : 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 @WorkflowExecutionContinuedAsNew@ event is recorded in the history.    * __FailWorkflowExecution__ : closes the workflow execution and records a @WorkflowExecutionFailed@ event in the history.    * __RecordMarker__ : records a @MarkerRecorded@ event in the history. Markers can be used for adding custom information in the history for instance to let deciders know that they do not need to look at the history beyond the marker event.    * __RequestCancelActivityTask__ : attempts to cancel a previously scheduled activity task. If the activity task was scheduled but has not been assigned to a worker, then it will be canceled. If the activity task was already assigned to a worker, then the worker will be informed that cancellation has been requested in the response to 'RecordActivityTaskHeartbeat' .    * __RequestCancelExternalWorkflowExecution__ : requests that a request be made to cancel the specified external workflow execution and records a @RequestCancelExternalWorkflowExecutionInitiated@ event in the history.    * __ScheduleActivityTask__ : schedules an activity task.    * __ScheduleLambdaFunction__ : schedules a AWS Lambda function.    * __SignalExternalWorkflowExecution__ : requests a signal to be delivered to the specified external workflow execution and records a @SignalExternalWorkflowExecutionInitiated@ event in the history.    * __StartChildWorkflowExecution__ : requests that a child workflow execution be started and records a @StartChildWorkflowExecutionInitiated@ event in the history. The child workflow execution is a separate workflow execution with its own history.    * __StartTimer__ : starts a timer for this workflow execution and records a @TimerStarted@ event in the history. This timer will fire after the specified delay and record a @TimerFired@ event.+--+-- __Access Control__+--+-- If you grant permission to use @RespondDecisionTaskCompleted@ , 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 <http://docs.aws.amazon.com/amazonswf/latest/developerguide/swf-dev-iam.html Using IAM to Manage Access to Amazon SWF Workflows> .+--+-- __Decision Failure__+--+-- Decisions can fail for several reasons+--+--     * The ordering of decisions should follow a logical flow. Some decisions might not make sense in the current context of the workflow execution and will therefore fail.    * A limit on your account was reached.    * The decision lacks sufficient permissions.+--+-- One of the following events might be added to the history to indicate an error. The event attribute's __cause__ parameter indicates the cause. If __cause__ is set to OPERATION_NOT_PERMITTED, the decision failed because it lacked sufficient permissions. For details and example IAM policies, see <http://docs.aws.amazon.com/amazonswf/latest/developerguide/swf-dev-iam.html Using IAM to Manage Access to Amazon SWF Workflows> .+--+--     * __ScheduleActivityTaskFailed__ : a ScheduleActivityTask decision failed. This could happen if the activity type specified in the decision is not registered, is in a deprecated state, or the decision is not properly configured.    * __ScheduleLambdaFunctionFailed__ : a ScheduleLambdaFunctionFailed decision failed. This could happen if the AWS Lambda function specified in the decision does not exist, or the AWS Lambda service's limits are exceeded.    * __RequestCancelActivityTaskFailed__ : a RequestCancelActivityTask decision failed. This could happen if there is no open activity task with the specified activityId.    * __StartTimerFailed__ : a StartTimer decision failed. This could happen if there is another open timer with the same timerId.    * __CancelTimerFailed__ : a CancelTimer decision failed. This could happen if there is no open timer with the specified timerId.    * __StartChildWorkflowExecutionFailed__ : a StartChildWorkflowExecution decision failed. This could happen if the workflow type specified is not registered, is deprecated, or the decision is not properly configured.    * __SignalExternalWorkflowExecutionFailed__ : a SignalExternalWorkflowExecution decision failed. This could happen if the @workflowID@ specified in the decision was incorrect.    * __RequestCancelExternalWorkflowExecutionFailed__ : a RequestCancelExternalWorkflowExecution decision failed. This could happen if the @workflowID@ specified in the decision was incorrect.    * __CancelWorkflowExecutionFailed__ : a CancelWorkflowExecution decision failed. This could happen if there is an unhandled decision task pending in the workflow execution.    * __CompleteWorkflowExecutionFailed__ : a CompleteWorkflowExecution decision failed. This could happen if there is an unhandled decision task pending in the workflow execution.    * __ContinueAsNewWorkflowExecutionFailed__ : a ContinueAsNewWorkflowExecution 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.    * __FailWorkflowExecutionFailed__ : a FailWorkflowExecution decision failed. This could happen if there is an unhandled decision task pending in the workflow execution.+--+-- 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.+--+-- __How to code a decision__+--+-- 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:+--+--     * 'ScheduleActivityTaskDecisionAttributes'     * 'ScheduleLambdaFunctionDecisionAttributes'     * 'RequestCancelActivityTaskDecisionAttributes'     * 'CompleteWorkflowExecutionDecisionAttributes'     * 'FailWorkflowExecutionDecisionAttributes'     * 'CancelWorkflowExecutionDecisionAttributes'     * 'ContinueAsNewWorkflowExecutionDecisionAttributes'     * 'RecordMarkerDecisionAttributes'     * 'StartTimerDecisionAttributes'     * 'CancelTimerDecisionAttributes'     * 'SignalExternalWorkflowExecutionDecisionAttributes'     * 'RequestCancelExternalWorkflowExecutionDecisionAttributes'     * 'StartChildWorkflowExecutionDecisionAttributes'+--+--+-- /See:/ 'decision' smart constructor.+data Decision = Decision'+    { _dRequestCancelExternalWorkflowExecutionDecisionAttributes :: !(Maybe RequestCancelExternalWorkflowExecutionDecisionAttributes)+    , _dScheduleActivityTaskDecisionAttributes                   :: !(Maybe ScheduleActivityTaskDecisionAttributes)+    , _dSignalExternalWorkflowExecutionDecisionAttributes        :: !(Maybe SignalExternalWorkflowExecutionDecisionAttributes)+    , _dStartTimerDecisionAttributes                             :: !(Maybe StartTimerDecisionAttributes)+    , _dRecordMarkerDecisionAttributes                           :: !(Maybe RecordMarkerDecisionAttributes)+    , _dFailWorkflowExecutionDecisionAttributes                  :: !(Maybe FailWorkflowExecutionDecisionAttributes)+    , _dStartChildWorkflowExecutionDecisionAttributes            :: !(Maybe StartChildWorkflowExecutionDecisionAttributes)+    , _dCompleteWorkflowExecutionDecisionAttributes              :: !(Maybe CompleteWorkflowExecutionDecisionAttributes)+    , _dScheduleLambdaFunctionDecisionAttributes                 :: !(Maybe ScheduleLambdaFunctionDecisionAttributes)+    , _dRequestCancelActivityTaskDecisionAttributes              :: !(Maybe RequestCancelActivityTaskDecisionAttributes)+    , _dCancelWorkflowExecutionDecisionAttributes                :: !(Maybe CancelWorkflowExecutionDecisionAttributes)+    , _dCancelTimerDecisionAttributes                            :: !(Maybe CancelTimerDecisionAttributes)+    , _dContinueAsNewWorkflowExecutionDecisionAttributes         :: !(Maybe ContinueAsNewWorkflowExecutionDecisionAttributes)+    , _dDecisionType                                             :: !DecisionType+    } deriving (Eq,Read,Show,Data,Typeable,Generic)++-- | Creates a value of 'Decision' with the minimum fields required to make a request.+--+-- Use one of the following lenses to modify other fields as desired:+--+-- * 'dRequestCancelExternalWorkflowExecutionDecisionAttributes' - Provides details of the @RequestCancelExternalWorkflowExecution@ decision. It is not set for other decision types.+--+-- * 'dScheduleActivityTaskDecisionAttributes' - Provides details of the @ScheduleActivityTask@ decision. It is not set for other decision types.+--+-- * 'dSignalExternalWorkflowExecutionDecisionAttributes' - Provides details of the @SignalExternalWorkflowExecution@ decision. It is not set for other decision types.+--+-- * 'dStartTimerDecisionAttributes' - Provides details of the @StartTimer@ decision. It is not set for other decision types.+--+-- * 'dRecordMarkerDecisionAttributes' - Provides details of the @RecordMarker@ decision. It is not set for other decision types.+--+-- * 'dFailWorkflowExecutionDecisionAttributes' - Provides details of the @FailWorkflowExecution@ decision. It is not set for other decision types.+--+-- * 'dStartChildWorkflowExecutionDecisionAttributes' - Provides details of the @StartChildWorkflowExecution@ decision. It is not set for other decision types.+--+-- * 'dCompleteWorkflowExecutionDecisionAttributes' - Provides details of the @CompleteWorkflowExecution@ decision. It is not set for other decision types.+--+-- * 'dScheduleLambdaFunctionDecisionAttributes' - Undocumented member.+--+-- * 'dRequestCancelActivityTaskDecisionAttributes' - Provides details of the @RequestCancelActivityTask@ decision. It is not set for other decision types.+--+-- * 'dCancelWorkflowExecutionDecisionAttributes' - Provides details of the @CancelWorkflowExecution@ decision. It is not set for other decision types.+--+-- * 'dCancelTimerDecisionAttributes' - Provides details of the @CancelTimer@ decision. It is not set for other decision types.+--+-- * 'dContinueAsNewWorkflowExecutionDecisionAttributes' - Provides details of the @ContinueAsNewWorkflowExecution@ decision. It is not set for other decision types.+--+-- * 'dDecisionType' - Specifies the type of the decision.+decision+    :: DecisionType -- ^ 'dDecisionType'+    -> Decision+decision pDecisionType_ =+    Decision'+    { _dRequestCancelExternalWorkflowExecutionDecisionAttributes = Nothing+    , _dScheduleActivityTaskDecisionAttributes = Nothing+    , _dSignalExternalWorkflowExecutionDecisionAttributes = Nothing+    , _dStartTimerDecisionAttributes = Nothing+    , _dRecordMarkerDecisionAttributes = Nothing+    , _dFailWorkflowExecutionDecisionAttributes = Nothing+    , _dStartChildWorkflowExecutionDecisionAttributes = Nothing+    , _dCompleteWorkflowExecutionDecisionAttributes = Nothing+    , _dScheduleLambdaFunctionDecisionAttributes = Nothing+    , _dRequestCancelActivityTaskDecisionAttributes = Nothing+    , _dCancelWorkflowExecutionDecisionAttributes = Nothing+    , _dCancelTimerDecisionAttributes = Nothing+    , _dContinueAsNewWorkflowExecutionDecisionAttributes = Nothing+    , _dDecisionType = pDecisionType_+    }++-- | Provides details of the @RequestCancelExternalWorkflowExecution@ decision. It is not set for other decision types.+dRequestCancelExternalWorkflowExecutionDecisionAttributes :: Lens' Decision (Maybe RequestCancelExternalWorkflowExecutionDecisionAttributes)+dRequestCancelExternalWorkflowExecutionDecisionAttributes = lens _dRequestCancelExternalWorkflowExecutionDecisionAttributes (\ s a -> s{_dRequestCancelExternalWorkflowExecutionDecisionAttributes = a});++-- | Provides details of the @ScheduleActivityTask@ decision. It is not set for other decision types.+dScheduleActivityTaskDecisionAttributes :: Lens' Decision (Maybe ScheduleActivityTaskDecisionAttributes)+dScheduleActivityTaskDecisionAttributes = lens _dScheduleActivityTaskDecisionAttributes (\ s a -> s{_dScheduleActivityTaskDecisionAttributes = a});++-- | Provides details of the @SignalExternalWorkflowExecution@ decision. It is not set for other decision types.+dSignalExternalWorkflowExecutionDecisionAttributes :: Lens' Decision (Maybe SignalExternalWorkflowExecutionDecisionAttributes)+dSignalExternalWorkflowExecutionDecisionAttributes = lens _dSignalExternalWorkflowExecutionDecisionAttributes (\ s a -> s{_dSignalExternalWorkflowExecutionDecisionAttributes = a});++-- | Provides details of the @StartTimer@ decision. It is not set for other decision types.+dStartTimerDecisionAttributes :: Lens' Decision (Maybe StartTimerDecisionAttributes)+dStartTimerDecisionAttributes = lens _dStartTimerDecisionAttributes (\ s a -> s{_dStartTimerDecisionAttributes = a});++-- | Provides details of the @RecordMarker@ decision. It is not set for other decision types.+dRecordMarkerDecisionAttributes :: Lens' Decision (Maybe RecordMarkerDecisionAttributes)+dRecordMarkerDecisionAttributes = lens _dRecordMarkerDecisionAttributes (\ s a -> s{_dRecordMarkerDecisionAttributes = a});++-- | Provides details of the @FailWorkflowExecution@ decision. It is not set for other decision types.+dFailWorkflowExecutionDecisionAttributes :: Lens' Decision (Maybe FailWorkflowExecutionDecisionAttributes)+dFailWorkflowExecutionDecisionAttributes = lens _dFailWorkflowExecutionDecisionAttributes (\ s a -> s{_dFailWorkflowExecutionDecisionAttributes = a});++-- | Provides details of the @StartChildWorkflowExecution@ decision. It is not set for other decision types.+dStartChildWorkflowExecutionDecisionAttributes :: Lens' Decision (Maybe StartChildWorkflowExecutionDecisionAttributes)+dStartChildWorkflowExecutionDecisionAttributes = lens _dStartChildWorkflowExecutionDecisionAttributes (\ s a -> s{_dStartChildWorkflowExecutionDecisionAttributes = a});++-- | Provides details of the @CompleteWorkflowExecution@ decision. It is not set for other decision types.+dCompleteWorkflowExecutionDecisionAttributes :: Lens' Decision (Maybe CompleteWorkflowExecutionDecisionAttributes)+dCompleteWorkflowExecutionDecisionAttributes = lens _dCompleteWorkflowExecutionDecisionAttributes (\ s a -> s{_dCompleteWorkflowExecutionDecisionAttributes = a});++-- | Undocumented member.+dScheduleLambdaFunctionDecisionAttributes :: Lens' Decision (Maybe ScheduleLambdaFunctionDecisionAttributes)+dScheduleLambdaFunctionDecisionAttributes = lens _dScheduleLambdaFunctionDecisionAttributes (\ s a -> s{_dScheduleLambdaFunctionDecisionAttributes = a});++-- | Provides details of the @RequestCancelActivityTask@ decision. It is not set for other decision types.+dRequestCancelActivityTaskDecisionAttributes :: Lens' Decision (Maybe RequestCancelActivityTaskDecisionAttributes)+dRequestCancelActivityTaskDecisionAttributes = lens _dRequestCancelActivityTaskDecisionAttributes (\ s a -> s{_dRequestCancelActivityTaskDecisionAttributes = a});++-- | Provides details of the @CancelWorkflowExecution@ decision. It is not set for other decision types.+dCancelWorkflowExecutionDecisionAttributes :: Lens' Decision (Maybe CancelWorkflowExecutionDecisionAttributes)+dCancelWorkflowExecutionDecisionAttributes = lens _dCancelWorkflowExecutionDecisionAttributes (\ s a -> s{_dCancelWorkflowExecutionDecisionAttributes = a});++-- | Provides details of the @CancelTimer@ decision. It is not set for other decision types.+dCancelTimerDecisionAttributes :: Lens' Decision (Maybe CancelTimerDecisionAttributes)+dCancelTimerDecisionAttributes = lens _dCancelTimerDecisionAttributes (\ s a -> s{_dCancelTimerDecisionAttributes = a});++-- | Provides details of the @ContinueAsNewWorkflowExecution@ decision. It is not set for other decision types.+dContinueAsNewWorkflowExecutionDecisionAttributes :: Lens' Decision (Maybe ContinueAsNewWorkflowExecutionDecisionAttributes)+dContinueAsNewWorkflowExecutionDecisionAttributes = lens _dContinueAsNewWorkflowExecutionDecisionAttributes (\ s a -> s{_dContinueAsNewWorkflowExecutionDecisionAttributes = a});++-- | Specifies the type of the decision.+dDecisionType :: Lens' Decision DecisionType+dDecisionType = lens _dDecisionType (\ s a -> s{_dDecisionType = a});++instance Hashable Decision++instance NFData Decision++instance ToJSON Decision where+        toJSON Decision'{..}+          = object+              (catMaybes+                 [("requestCancelExternalWorkflowExecutionDecisionAttributes"+                     .=)+                    <$>+                    _dRequestCancelExternalWorkflowExecutionDecisionAttributes,+                  ("scheduleActivityTaskDecisionAttributes" .=) <$>+                    _dScheduleActivityTaskDecisionAttributes,+                  ("signalExternalWorkflowExecutionDecisionAttributes"+                     .=)+                    <$>+                    _dSignalExternalWorkflowExecutionDecisionAttributes,+                  ("startTimerDecisionAttributes" .=) <$>+                    _dStartTimerDecisionAttributes,+                  ("recordMarkerDecisionAttributes" .=) <$>+                    _dRecordMarkerDecisionAttributes,+                  ("failWorkflowExecutionDecisionAttributes" .=) <$>+                    _dFailWorkflowExecutionDecisionAttributes,+                  ("startChildWorkflowExecutionDecisionAttributes" .=)+                    <$> _dStartChildWorkflowExecutionDecisionAttributes,+                  ("completeWorkflowExecutionDecisionAttributes" .=)+                    <$> _dCompleteWorkflowExecutionDecisionAttributes,+                  ("scheduleLambdaFunctionDecisionAttributes" .=) <$>+                    _dScheduleLambdaFunctionDecisionAttributes,+                  ("requestCancelActivityTaskDecisionAttributes" .=)+                    <$> _dRequestCancelActivityTaskDecisionAttributes,+                  ("cancelWorkflowExecutionDecisionAttributes" .=) <$>+                    _dCancelWorkflowExecutionDecisionAttributes,+                  ("cancelTimerDecisionAttributes" .=) <$>+                    _dCancelTimerDecisionAttributes,+                  ("continueAsNewWorkflowExecutionDecisionAttributes"+                     .=)+                    <$>+                    _dContinueAsNewWorkflowExecutionDecisionAttributes,+                  Just ("decisionType" .= _dDecisionType)])++-- | Provides details of the @DecisionTaskCompleted@ event.+--+--+--+-- /See:/ 'decisionTaskCompletedEventAttributes' smart constructor.+data DecisionTaskCompletedEventAttributes = DecisionTaskCompletedEventAttributes'+    { _dtceaExecutionContext :: !(Maybe Text)+    , _dtceaScheduledEventId :: !Integer+    , _dtceaStartedEventId   :: !Integer+    } deriving (Eq,Read,Show,Data,Typeable,Generic)++-- | Creates a value of 'DecisionTaskCompletedEventAttributes' with the minimum fields required to make a request.+--+-- Use one of the following lenses to modify other fields as desired:+--+-- * 'dtceaExecutionContext' - User defined context for the workflow execution.+--+-- * 'dtceaScheduledEventId' - The ID of the @DecisionTaskScheduled@ 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.+--+-- * 'dtceaStartedEventId' - The ID of the @DecisionTaskStarted@ 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.+decisionTaskCompletedEventAttributes+    :: Integer -- ^ 'dtceaScheduledEventId'+    -> Integer -- ^ 'dtceaStartedEventId'+    -> DecisionTaskCompletedEventAttributes+decisionTaskCompletedEventAttributes pScheduledEventId_ pStartedEventId_ =+    DecisionTaskCompletedEventAttributes'+    { _dtceaExecutionContext = Nothing+    , _dtceaScheduledEventId = pScheduledEventId_+    , _dtceaStartedEventId = pStartedEventId_+    }++-- | User defined context for the workflow execution.+dtceaExecutionContext :: Lens' DecisionTaskCompletedEventAttributes (Maybe Text)+dtceaExecutionContext = lens _dtceaExecutionContext (\ s a -> s{_dtceaExecutionContext = a});++-- | The ID of the @DecisionTaskScheduled@ 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+dtceaScheduledEventId = lens _dtceaScheduledEventId (\ s a -> s{_dtceaScheduledEventId = a});++-- | The ID of the @DecisionTaskStarted@ 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+dtceaStartedEventId = lens _dtceaStartedEventId (\ s a -> s{_dtceaStartedEventId = a});++instance FromJSON+         DecisionTaskCompletedEventAttributes where+        parseJSON+          = withObject "DecisionTaskCompletedEventAttributes"+              (\ x ->+                 DecisionTaskCompletedEventAttributes' <$>+                   (x .:? "executionContext") <*>+                     (x .: "scheduledEventId")+                     <*> (x .: "startedEventId"))++instance Hashable+         DecisionTaskCompletedEventAttributes++instance NFData DecisionTaskCompletedEventAttributes++-- | Provides details about the @DecisionTaskScheduled@ event.+--+--+--+-- /See:/ 'decisionTaskScheduledEventAttributes' smart constructor.+data DecisionTaskScheduledEventAttributes = DecisionTaskScheduledEventAttributes'+    { _dtseaTaskPriority        :: !(Maybe Text)+    , _dtseaStartToCloseTimeout :: !(Maybe Text)+    , _dtseaTaskList            :: !TaskList+    } deriving (Eq,Read,Show,Data,Typeable,Generic)++-- | Creates a value of 'DecisionTaskScheduledEventAttributes' with the minimum fields required to make a request.+--+-- Use one of the following lenses to modify other fields as desired:+--+-- * 'dtseaTaskPriority' - /Optional./ A task priority that, if set, specifies the priority for this decision task. Valid values are integers that range from Java's @Integer.MIN_VALUE@ (-2147483648) to @Integer.MAX_VALUE@ (2147483647). Higher numbers indicate higher priority. For more information about setting task priority, see <http://docs.aws.amazon.com/amazonswf/latest/developerguide/programming-priority.html Setting Task Priority> in the /Amazon Simple Workflow Developer Guide/ .+--+-- * 'dtseaStartToCloseTimeout' - The maximum duration for this decision task. The task is considered timed out if it does not completed within this duration. The duration is specified in seconds; an integer greater than or equal to 0. The value "NONE" can be used to specify unlimited duration.+--+-- * 'dtseaTaskList' - The name of the task list in which the decision task was scheduled.+decisionTaskScheduledEventAttributes+    :: TaskList -- ^ 'dtseaTaskList'+    -> DecisionTaskScheduledEventAttributes+decisionTaskScheduledEventAttributes pTaskList_ =+    DecisionTaskScheduledEventAttributes'+    { _dtseaTaskPriority = Nothing+    , _dtseaStartToCloseTimeout = Nothing+    , _dtseaTaskList = pTaskList_+    }++-- | /Optional./ A task priority that, if set, specifies the priority for this decision task. Valid values are integers that range from Java's @Integer.MIN_VALUE@ (-2147483648) to @Integer.MAX_VALUE@ (2147483647). Higher numbers indicate higher priority. For more information about setting task priority, see <http://docs.aws.amazon.com/amazonswf/latest/developerguide/programming-priority.html Setting Task Priority> in the /Amazon Simple Workflow Developer Guide/ .+dtseaTaskPriority :: Lens' DecisionTaskScheduledEventAttributes (Maybe Text)+dtseaTaskPriority = lens _dtseaTaskPriority (\ s a -> s{_dtseaTaskPriority = a});++-- | The maximum duration for this decision task. The task is considered timed out if it does not completed within this duration. The duration is specified in seconds; an integer greater than or equal to 0. The value "NONE" can be used to specify unlimited duration.+dtseaStartToCloseTimeout :: Lens' DecisionTaskScheduledEventAttributes (Maybe Text)+dtseaStartToCloseTimeout = lens _dtseaStartToCloseTimeout (\ s a -> s{_dtseaStartToCloseTimeout = a});++-- | The name of the task list in which the decision task was scheduled.+dtseaTaskList :: Lens' DecisionTaskScheduledEventAttributes TaskList+dtseaTaskList = lens _dtseaTaskList (\ s a -> s{_dtseaTaskList = a});++instance FromJSON+         DecisionTaskScheduledEventAttributes where+        parseJSON+          = withObject "DecisionTaskScheduledEventAttributes"+              (\ x ->+                 DecisionTaskScheduledEventAttributes' <$>+                   (x .:? "taskPriority") <*>+                     (x .:? "startToCloseTimeout")+                     <*> (x .: "taskList"))++instance Hashable+         DecisionTaskScheduledEventAttributes++instance NFData DecisionTaskScheduledEventAttributes++-- | Provides details of the @DecisionTaskStarted@ event.+--+--+--+-- /See:/ 'decisionTaskStartedEventAttributes' smart constructor.+data DecisionTaskStartedEventAttributes = DecisionTaskStartedEventAttributes'+    { _dtseaIdentity         :: !(Maybe Text)+    , _dtseaScheduledEventId :: !Integer+    } deriving (Eq,Read,Show,Data,Typeable,Generic)++-- | Creates a value of 'DecisionTaskStartedEventAttributes' with the minimum fields required to make a request.+--+-- Use one of the following lenses to modify other fields as desired:+--+-- * 'dtseaIdentity' - Identity of the decider making the request. This enables diagnostic tracing when problems arise. The form of this identity is user defined.+--+-- * 'dtseaScheduledEventId' - The ID of the @DecisionTaskScheduled@ 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.+decisionTaskStartedEventAttributes+    :: Integer -- ^ 'dtseaScheduledEventId'+    -> DecisionTaskStartedEventAttributes+decisionTaskStartedEventAttributes pScheduledEventId_ =+    DecisionTaskStartedEventAttributes'+    { _dtseaIdentity = Nothing+    , _dtseaScheduledEventId = pScheduledEventId_+    }++-- | 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)+dtseaIdentity = lens _dtseaIdentity (\ s a -> s{_dtseaIdentity = a});++-- | The ID of the @DecisionTaskScheduled@ 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+dtseaScheduledEventId = lens _dtseaScheduledEventId (\ s a -> s{_dtseaScheduledEventId = a});++instance FromJSON DecisionTaskStartedEventAttributes+         where+        parseJSON+          = withObject "DecisionTaskStartedEventAttributes"+              (\ x ->+                 DecisionTaskStartedEventAttributes' <$>+                   (x .:? "identity") <*> (x .: "scheduledEventId"))++instance Hashable DecisionTaskStartedEventAttributes++instance NFData DecisionTaskStartedEventAttributes++-- | Provides details of the @DecisionTaskTimedOut@ event.+--+--+--+-- /See:/ 'decisionTaskTimedOutEventAttributes' smart constructor.+data DecisionTaskTimedOutEventAttributes = DecisionTaskTimedOutEventAttributes'+    { _dttoeaTimeoutType      :: !DecisionTaskTimeoutType+    , _dttoeaScheduledEventId :: !Integer+    , _dttoeaStartedEventId   :: !Integer+    } deriving (Eq,Read,Show,Data,Typeable,Generic)++-- | Creates a value of 'DecisionTaskTimedOutEventAttributes' with the minimum fields required to make a request.+--+-- Use one of the following lenses to modify other fields as desired:+--+-- * 'dttoeaTimeoutType' - The type of timeout that expired before the decision task could be completed.+--+-- * 'dttoeaScheduledEventId' - The ID of the @DecisionTaskScheduled@ 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.+--+-- * 'dttoeaStartedEventId' - The ID of the @DecisionTaskStarted@ 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.+decisionTaskTimedOutEventAttributes+    :: DecisionTaskTimeoutType -- ^ 'dttoeaTimeoutType'+    -> Integer -- ^ 'dttoeaScheduledEventId'+    -> Integer -- ^ 'dttoeaStartedEventId'+    -> DecisionTaskTimedOutEventAttributes+decisionTaskTimedOutEventAttributes pTimeoutType_ pScheduledEventId_ pStartedEventId_ =+    DecisionTaskTimedOutEventAttributes'+    { _dttoeaTimeoutType = pTimeoutType_+    , _dttoeaScheduledEventId = pScheduledEventId_+    , _dttoeaStartedEventId = pStartedEventId_+    }++-- | The type of timeout that expired before the decision task could be completed.+dttoeaTimeoutType :: Lens' DecisionTaskTimedOutEventAttributes DecisionTaskTimeoutType+dttoeaTimeoutType = lens _dttoeaTimeoutType (\ s a -> s{_dttoeaTimeoutType = a});++-- | The ID of the @DecisionTaskScheduled@ 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+dttoeaScheduledEventId = lens _dttoeaScheduledEventId (\ s a -> s{_dttoeaScheduledEventId = a});++-- | The ID of the @DecisionTaskStarted@ 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+dttoeaStartedEventId = lens _dttoeaStartedEventId (\ s a -> s{_dttoeaStartedEventId = a});++instance FromJSON DecisionTaskTimedOutEventAttributes+         where+        parseJSON+          = withObject "DecisionTaskTimedOutEventAttributes"+              (\ x ->+                 DecisionTaskTimedOutEventAttributes' <$>+                   (x .: "timeoutType") <*> (x .: "scheduledEventId")+                     <*> (x .: "startedEventId"))++instance Hashable DecisionTaskTimedOutEventAttributes++instance NFData DecisionTaskTimedOutEventAttributes++-- | Contains the configuration settings of a domain.+--+--+--+-- /See:/ 'domainConfiguration' smart constructor.+newtype DomainConfiguration = DomainConfiguration'+    { _dcWorkflowExecutionRetentionPeriodInDays :: Text+    } deriving (Eq,Read,Show,Data,Typeable,Generic)++-- | Creates a value of 'DomainConfiguration' with the minimum fields required to make a request.+--+-- Use one of the following lenses to modify other fields as desired:+--+-- * 'dcWorkflowExecutionRetentionPeriodInDays' - The retention period for workflow executions in this domain.+domainConfiguration+    :: Text -- ^ 'dcWorkflowExecutionRetentionPeriodInDays'+    -> DomainConfiguration+domainConfiguration pWorkflowExecutionRetentionPeriodInDays_ =+    DomainConfiguration'+    { _dcWorkflowExecutionRetentionPeriodInDays = pWorkflowExecutionRetentionPeriodInDays_+    }++-- | The retention period for workflow executions in this domain.+dcWorkflowExecutionRetentionPeriodInDays :: Lens' DomainConfiguration Text+dcWorkflowExecutionRetentionPeriodInDays = lens _dcWorkflowExecutionRetentionPeriodInDays (\ s a -> s{_dcWorkflowExecutionRetentionPeriodInDays = a});++instance FromJSON DomainConfiguration where+        parseJSON+          = withObject "DomainConfiguration"+              (\ x ->+                 DomainConfiguration' <$>+                   (x .: "workflowExecutionRetentionPeriodInDays"))++instance Hashable DomainConfiguration++instance NFData DomainConfiguration++-- | Contains general information about a domain.+--+--+--+-- /See:/ 'domainInfo' smart constructor.+data DomainInfo = DomainInfo'+    { _diDescription :: !(Maybe Text)+    , _diName        :: !Text+    , _diStatus      :: !RegistrationStatus+    } deriving (Eq,Read,Show,Data,Typeable,Generic)++-- | Creates a value of 'DomainInfo' with the minimum fields required to make a request.+--+-- Use one of the following lenses to modify other fields as desired:+--+-- * 'diDescription' - The description of the domain provided through 'RegisterDomain' .+--+-- * 'diName' - The name of the domain. This name is unique within the account.+--+-- * 'diStatus' - The status of the domain:     * __REGISTERED__ : The domain is properly registered and available. You can use this domain for registering types and creating new workflow executions.     * __DEPRECATED__ : The domain was deprecated using 'DeprecateDomain' , but is still in use. You should not create new workflow executions in this domain.+domainInfo+    :: Text -- ^ 'diName'+    -> RegistrationStatus -- ^ 'diStatus'+    -> DomainInfo+domainInfo pName_ pStatus_ =+    DomainInfo'+    { _diDescription = Nothing+    , _diName = pName_+    , _diStatus = pStatus_+    }++-- | The description of the domain provided through 'RegisterDomain' .+diDescription :: Lens' DomainInfo (Maybe Text)+diDescription = lens _diDescription (\ s a -> s{_diDescription = a});++-- | The name of the domain. This name is unique within the account.+diName :: Lens' DomainInfo Text+diName = lens _diName (\ s a -> s{_diName = a});++-- | The status of the domain:     * __REGISTERED__ : The domain is properly registered and available. You can use this domain for registering types and creating new workflow executions.     * __DEPRECATED__ : The domain was deprecated using 'DeprecateDomain' , but is still in use. You should not create new workflow executions in this domain.+diStatus :: Lens' DomainInfo RegistrationStatus+diStatus = lens _diStatus (\ s a -> s{_diStatus = a});++instance FromJSON DomainInfo where+        parseJSON+          = withObject "DomainInfo"+              (\ x ->+                 DomainInfo' <$>+                   (x .:? "description") <*> (x .: "name") <*>+                     (x .: "status"))++instance Hashable DomainInfo++instance NFData DomainInfo++-- | 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 <https://en.wikipedia.org/wiki/Unix_time Unix Time format> . For example: @"oldestDate": 1325376070.@+--+--+--+-- /See:/ 'executionTimeFilter' smart constructor.+data ExecutionTimeFilter = ExecutionTimeFilter'+    { _etfLatestDate :: !(Maybe POSIX)+    , _etfOldestDate :: !POSIX+    } deriving (Eq,Read,Show,Data,Typeable,Generic)++-- | Creates a value of 'ExecutionTimeFilter' with the minimum fields required to make a request.+--+-- Use one of the following lenses to modify other fields as desired:+--+-- * 'etfLatestDate' - Specifies the latest start or close date and time to return.+--+-- * 'etfOldestDate' - Specifies the oldest start or close date and time to return.+executionTimeFilter+    :: UTCTime -- ^ 'etfOldestDate'+    -> ExecutionTimeFilter+executionTimeFilter pOldestDate_ =+    ExecutionTimeFilter'+    { _etfLatestDate = Nothing+    , _etfOldestDate = _Time # pOldestDate_+    }++-- | Specifies the latest start or close date and time to return.+etfLatestDate :: Lens' ExecutionTimeFilter (Maybe UTCTime)+etfLatestDate = lens _etfLatestDate (\ s a -> s{_etfLatestDate = a}) . mapping _Time;++-- | Specifies the oldest start or close date and time to return.+etfOldestDate :: Lens' ExecutionTimeFilter UTCTime+etfOldestDate = lens _etfOldestDate (\ s a -> s{_etfOldestDate = a}) . _Time;++instance Hashable ExecutionTimeFilter++instance NFData ExecutionTimeFilter++instance ToJSON ExecutionTimeFilter where+        toJSON ExecutionTimeFilter'{..}+          = object+              (catMaybes+                 [("latestDate" .=) <$> _etfLatestDate,+                  Just ("oldestDate" .= _etfOldestDate)])++-- | Provides details of the @ExternalWorkflowExecutionCancelRequested@ event.+--+--+--+-- /See:/ 'externalWorkflowExecutionCancelRequestedEventAttributes' smart constructor.+data ExternalWorkflowExecutionCancelRequestedEventAttributes = ExternalWorkflowExecutionCancelRequestedEventAttributes'+    { _ewecreaWorkflowExecution :: !WorkflowExecution+    , _ewecreaInitiatedEventId  :: !Integer+    } deriving (Eq,Read,Show,Data,Typeable,Generic)++-- | Creates a value of 'ExternalWorkflowExecutionCancelRequestedEventAttributes' with the minimum fields required to make a request.+--+-- Use one of the following lenses to modify other fields as desired:+--+-- * 'ewecreaWorkflowExecution' - The external workflow execution to which the cancellation request was delivered.+--+-- * 'ewecreaInitiatedEventId' - The ID of the @RequestCancelExternalWorkflowExecutionInitiated@ event corresponding to the @RequestCancelExternalWorkflowExecution@ 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.+externalWorkflowExecutionCancelRequestedEventAttributes+    :: WorkflowExecution -- ^ 'ewecreaWorkflowExecution'+    -> Integer -- ^ 'ewecreaInitiatedEventId'+    -> ExternalWorkflowExecutionCancelRequestedEventAttributes+externalWorkflowExecutionCancelRequestedEventAttributes pWorkflowExecution_ pInitiatedEventId_ =+    ExternalWorkflowExecutionCancelRequestedEventAttributes'+    { _ewecreaWorkflowExecution = pWorkflowExecution_+    , _ewecreaInitiatedEventId = pInitiatedEventId_+    }++-- | The external workflow execution to which the cancellation request was delivered.+ewecreaWorkflowExecution :: Lens' ExternalWorkflowExecutionCancelRequestedEventAttributes WorkflowExecution+ewecreaWorkflowExecution = lens _ewecreaWorkflowExecution (\ s a -> s{_ewecreaWorkflowExecution = a});++-- | The ID of the @RequestCancelExternalWorkflowExecutionInitiated@ event corresponding to the @RequestCancelExternalWorkflowExecution@ 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+ewecreaInitiatedEventId = lens _ewecreaInitiatedEventId (\ s a -> s{_ewecreaInitiatedEventId = a});++instance FromJSON+         ExternalWorkflowExecutionCancelRequestedEventAttributes+         where+        parseJSON+          = withObject+              "ExternalWorkflowExecutionCancelRequestedEventAttributes"+              (\ x ->+                 ExternalWorkflowExecutionCancelRequestedEventAttributes'+                   <$>+                   (x .: "workflowExecution") <*>+                     (x .: "initiatedEventId"))++instance Hashable+         ExternalWorkflowExecutionCancelRequestedEventAttributes++instance NFData+         ExternalWorkflowExecutionCancelRequestedEventAttributes++-- | Provides details of the @ExternalWorkflowExecutionSignaled@ event.+--+--+--+-- /See:/ 'externalWorkflowExecutionSignaledEventAttributes' smart constructor.+data ExternalWorkflowExecutionSignaledEventAttributes = ExternalWorkflowExecutionSignaledEventAttributes'+    { _eweseaWorkflowExecution :: !WorkflowExecution+    , _eweseaInitiatedEventId  :: !Integer+    } deriving (Eq,Read,Show,Data,Typeable,Generic)++-- | Creates a value of 'ExternalWorkflowExecutionSignaledEventAttributes' with the minimum fields required to make a request.+--+-- Use one of the following lenses to modify other fields as desired:+--+-- * 'eweseaWorkflowExecution' - The external workflow execution that the signal was delivered to.+--+-- * 'eweseaInitiatedEventId' - The ID of the @SignalExternalWorkflowExecutionInitiated@ event corresponding to the @SignalExternalWorkflowExecution@ 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.+externalWorkflowExecutionSignaledEventAttributes+    :: WorkflowExecution -- ^ 'eweseaWorkflowExecution'+    -> Integer -- ^ 'eweseaInitiatedEventId'+    -> ExternalWorkflowExecutionSignaledEventAttributes+externalWorkflowExecutionSignaledEventAttributes pWorkflowExecution_ pInitiatedEventId_ =+    ExternalWorkflowExecutionSignaledEventAttributes'+    { _eweseaWorkflowExecution = pWorkflowExecution_+    , _eweseaInitiatedEventId = pInitiatedEventId_+    }++-- | The external workflow execution that the signal was delivered to.+eweseaWorkflowExecution :: Lens' ExternalWorkflowExecutionSignaledEventAttributes WorkflowExecution+eweseaWorkflowExecution = lens _eweseaWorkflowExecution (\ s a -> s{_eweseaWorkflowExecution = a});++-- | The ID of the @SignalExternalWorkflowExecutionInitiated@ event corresponding to the @SignalExternalWorkflowExecution@ 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+eweseaInitiatedEventId = lens _eweseaInitiatedEventId (\ s a -> s{_eweseaInitiatedEventId = a});++instance FromJSON+         ExternalWorkflowExecutionSignaledEventAttributes+         where+        parseJSON+          = withObject+              "ExternalWorkflowExecutionSignaledEventAttributes"+              (\ x ->+                 ExternalWorkflowExecutionSignaledEventAttributes' <$>+                   (x .: "workflowExecution") <*>+                     (x .: "initiatedEventId"))++instance Hashable+         ExternalWorkflowExecutionSignaledEventAttributes++instance NFData+         ExternalWorkflowExecutionSignaledEventAttributes++-- | Provides details of the @FailWorkflowExecution@ decision.+--+--+-- __Access Control__+--+-- You can use IAM policies to control this decision's access to Amazon SWF resources as follows:+--+--     * Use a @Resource@ element with the domain name to limit the action to only specified domains.    * Use an @Action@ element to allow or deny permission to call this action.    * You cannot use an IAM policy to constrain this action's parameters.+--+-- If the caller does not have sufficient permissions to invoke the action, or the parameter values fall outside the specified constraints, the action fails. The associated event attribute's __cause__ parameter will be set to OPERATION_NOT_PERMITTED. For details and example IAM policies, see <http://docs.aws.amazon.com/amazonswf/latest/developerguide/swf-dev-iam.html Using IAM to Manage Access to Amazon SWF Workflows> .+--+--+-- /See:/ 'failWorkflowExecutionDecisionAttributes' smart constructor.+data FailWorkflowExecutionDecisionAttributes = FailWorkflowExecutionDecisionAttributes'+    { _fwedaReason  :: !(Maybe Text)+    , _fwedaDetails :: !(Maybe Text)+    } deriving (Eq,Read,Show,Data,Typeable,Generic)++-- | Creates a value of 'FailWorkflowExecutionDecisionAttributes' with the minimum fields required to make a request.+--+-- Use one of the following lenses to modify other fields as desired:+--+-- * 'fwedaReason' - A descriptive reason for the failure that may help in diagnostics.+--+-- * 'fwedaDetails' - /Optional./ Details of the failure.+failWorkflowExecutionDecisionAttributes+    :: FailWorkflowExecutionDecisionAttributes+failWorkflowExecutionDecisionAttributes =+    FailWorkflowExecutionDecisionAttributes'+    { _fwedaReason = Nothing+    , _fwedaDetails = Nothing+    }++-- | A descriptive reason for the failure that may help in diagnostics.+fwedaReason :: Lens' FailWorkflowExecutionDecisionAttributes (Maybe Text)+fwedaReason = lens _fwedaReason (\ s a -> s{_fwedaReason = a});++-- | /Optional./ Details of the failure.+fwedaDetails :: Lens' FailWorkflowExecutionDecisionAttributes (Maybe Text)+fwedaDetails = lens _fwedaDetails (\ s a -> s{_fwedaDetails = a});++instance Hashable+         FailWorkflowExecutionDecisionAttributes++instance NFData+         FailWorkflowExecutionDecisionAttributes++instance ToJSON+         FailWorkflowExecutionDecisionAttributes where+        toJSON FailWorkflowExecutionDecisionAttributes'{..}+          = object+              (catMaybes+                 [("reason" .=) <$> _fwedaReason,+                  ("details" .=) <$> _fwedaDetails])++-- | Provides details of the @FailWorkflowExecutionFailed@ event.+--+--+--+-- /See:/ 'failWorkflowExecutionFailedEventAttributes' smart constructor.+data FailWorkflowExecutionFailedEventAttributes = FailWorkflowExecutionFailedEventAttributes'+    { _fwefeaCause                        :: !FailWorkflowExecutionFailedCause+    , _fwefeaDecisionTaskCompletedEventId :: !Integer+    } deriving (Eq,Read,Show,Data,Typeable,Generic)++-- | Creates a value of 'FailWorkflowExecutionFailedEventAttributes' with the minimum fields required to make a request.+--+-- Use one of the following lenses to modify other fields as desired:+--+-- * 'fwefeaCause' - The cause of the failure. This information is generated by the system and can be useful for diagnostic purposes.+--+-- * 'fwefeaDecisionTaskCompletedEventId' - The ID of the @DecisionTaskCompleted@ event corresponding to the decision task that resulted in the @FailWorkflowExecution@ 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.+failWorkflowExecutionFailedEventAttributes+    :: FailWorkflowExecutionFailedCause -- ^ 'fwefeaCause'+    -> Integer -- ^ 'fwefeaDecisionTaskCompletedEventId'+    -> FailWorkflowExecutionFailedEventAttributes+failWorkflowExecutionFailedEventAttributes pCause_ pDecisionTaskCompletedEventId_ =+    FailWorkflowExecutionFailedEventAttributes'+    { _fwefeaCause = pCause_+    , _fwefeaDecisionTaskCompletedEventId = pDecisionTaskCompletedEventId_+    }++-- | The cause of the failure. This information is generated by the system and can be useful for diagnostic purposes.+fwefeaCause :: Lens' FailWorkflowExecutionFailedEventAttributes FailWorkflowExecutionFailedCause+fwefeaCause = lens _fwefeaCause (\ s a -> s{_fwefeaCause = a});++-- | The ID of the @DecisionTaskCompleted@ event corresponding to the decision task that resulted in the @FailWorkflowExecution@ 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+fwefeaDecisionTaskCompletedEventId = lens _fwefeaDecisionTaskCompletedEventId (\ s a -> s{_fwefeaDecisionTaskCompletedEventId = a});++instance FromJSON+         FailWorkflowExecutionFailedEventAttributes where+        parseJSON+          = withObject+              "FailWorkflowExecutionFailedEventAttributes"+              (\ x ->+                 FailWorkflowExecutionFailedEventAttributes' <$>+                   (x .: "cause") <*>+                     (x .: "decisionTaskCompletedEventId"))++instance Hashable+         FailWorkflowExecutionFailedEventAttributes++instance NFData+         FailWorkflowExecutionFailedEventAttributes++-- | Event within a workflow execution. A history event can be one of these types:+--+--+--     * __WorkflowExecutionStarted__ : The workflow execution was started.    * __WorkflowExecutionCompleted__ : The workflow execution was closed due to successful completion.    * __WorkflowExecutionFailed__ : The workflow execution closed due to a failure.    * __WorkflowExecutionTimedOut__ : The workflow execution was closed because a time out was exceeded.    * __WorkflowExecutionCanceled__ : The workflow execution was successfully canceled and closed.    * __WorkflowExecutionTerminated__ : The workflow execution was terminated.    * __WorkflowExecutionContinuedAsNew__ : The workflow execution was closed and a new execution of the same type was created with the same workflowId.    * __WorkflowExecutionCancelRequested__ : A request to cancel this workflow execution was made.    * __DecisionTaskScheduled__ : A decision task was scheduled for the workflow execution.    * __DecisionTaskStarted__ : The decision task was dispatched to a decider.    * __DecisionTaskCompleted__ : The decider successfully completed a decision task by calling 'RespondDecisionTaskCompleted' .    * __DecisionTaskTimedOut__ : The decision task timed out.    * __ActivityTaskScheduled__ : An activity task was scheduled for execution.    * __ScheduleActivityTaskFailed__ : Failed to process ScheduleActivityTask decision. This happens when the decision is not configured properly, for example the activity type specified is not registered.    * __ActivityTaskStarted__ : The scheduled activity task was dispatched to a worker.    * __ActivityTaskCompleted__ : An activity worker successfully completed an activity task by calling 'RespondActivityTaskCompleted' .    * __ActivityTaskFailed__ : An activity worker failed an activity task by calling 'RespondActivityTaskFailed' .    * __ActivityTaskTimedOut__ : The activity task timed out.    * __ActivityTaskCanceled__ : The activity task was successfully canceled.    * __ActivityTaskCancelRequested__ : A @RequestCancelActivityTask@ decision was received by the system.    * __RequestCancelActivityTaskFailed__ : Failed to process RequestCancelActivityTask decision. This happens when the decision is not configured properly.    * __WorkflowExecutionSignaled__ : An external signal was received for the workflow execution.    * __MarkerRecorded__ : A marker was recorded in the workflow history as the result of a @RecordMarker@ decision.    * __TimerStarted__ : A timer was started for the workflow execution due to a @StartTimer@ decision.    * __StartTimerFailed__ : Failed to process StartTimer decision. This happens when the decision is not configured properly, for example a timer already exists with the specified timer ID.    * __TimerFired__ : A timer, previously started for this workflow execution, fired.    * __TimerCanceled__ : A timer, previously started for this workflow execution, was successfully canceled.    * __CancelTimerFailed__ : Failed to process CancelTimer decision. This happens when the decision is not configured properly, for example no timer exists with the specified timer ID.    * __StartChildWorkflowExecutionInitiated__ : A request was made to start a child workflow execution.    * __StartChildWorkflowExecutionFailed__ : Failed to process StartChildWorkflowExecution decision. This happens when the decision is not configured properly, for example the workflow type specified is not registered.    * __ChildWorkflowExecutionStarted__ : A child workflow execution was successfully started.    * __ChildWorkflowExecutionCompleted__ : A child workflow execution, started by this workflow execution, completed successfully and was closed.    * __ChildWorkflowExecutionFailed__ : A child workflow execution, started by this workflow execution, failed to complete successfully and was closed.    * __ChildWorkflowExecutionTimedOut__ : A child workflow execution, started by this workflow execution, timed out and was closed.    * __ChildWorkflowExecutionCanceled__ : A child workflow execution, started by this workflow execution, was canceled and closed.    * __ChildWorkflowExecutionTerminated__ : A child workflow execution, started by this workflow execution, was terminated.    * __SignalExternalWorkflowExecutionInitiated__ : A request to signal an external workflow was made.    * __ExternalWorkflowExecutionSignaled__ : A signal, requested by this workflow execution, was successfully delivered to the target external workflow execution.    * __SignalExternalWorkflowExecutionFailed__ : The request to signal an external workflow execution failed.    * __RequestCancelExternalWorkflowExecutionInitiated__ : A request was made to request the cancellation of an external workflow execution.    * __ExternalWorkflowExecutionCancelRequested__ : Request to cancel an external workflow execution was successfully delivered to the target execution.    * __RequestCancelExternalWorkflowExecutionFailed__ : Request to cancel an external workflow execution failed.    * __LambdaFunctionScheduled__ : An AWS Lambda function was scheduled for execution.    * __LambdaFunctionStarted__ : The scheduled function was invoked in the AWS Lambda service.    * __LambdaFunctionCompleted__ : The AWS Lambda function successfully completed.    * __LambdaFunctionFailed__ : The AWS Lambda function execution failed.    * __LambdaFunctionTimedOut__ : The AWS Lambda function execution timed out.    * __ScheduleLambdaFunctionFailed__ : Failed to process ScheduleLambdaFunction decision. This happens when the workflow execution does not have the proper IAM role attached to invoke AWS Lambda functions.    * __StartLambdaFunctionFailed__ : Failed to invoke the scheduled function in the AWS Lambda service. This happens when the AWS Lambda service is not available in the current region, or received too many requests.+--+--+-- /See:/ 'historyEvent' smart constructor.+data HistoryEvent = HistoryEvent'+    { _heWorkflowExecutionCancelRequestedEventAttributes                :: !(Maybe WorkflowExecutionCancelRequestedEventAttributes)+    , _heRecordMarkerFailedEventAttributes                              :: !(Maybe RecordMarkerFailedEventAttributes)+    , _heRequestCancelExternalWorkflowExecutionInitiatedEventAttributes :: !(Maybe RequestCancelExternalWorkflowExecutionInitiatedEventAttributes)+    , _heLambdaFunctionStartedEventAttributes                           :: !(Maybe LambdaFunctionStartedEventAttributes)+    , _heDecisionTaskScheduledEventAttributes                           :: !(Maybe DecisionTaskScheduledEventAttributes)+    , _heWorkflowExecutionCompletedEventAttributes                      :: !(Maybe WorkflowExecutionCompletedEventAttributes)+    , _heStartTimerFailedEventAttributes                                :: !(Maybe StartTimerFailedEventAttributes)+    , _heActivityTaskScheduledEventAttributes                           :: !(Maybe ActivityTaskScheduledEventAttributes)+    , _heScheduleActivityTaskFailedEventAttributes                      :: !(Maybe ScheduleActivityTaskFailedEventAttributes)+    , _heChildWorkflowExecutionCompletedEventAttributes                 :: !(Maybe ChildWorkflowExecutionCompletedEventAttributes)+    , _heMarkerRecordedEventAttributes                                  :: !(Maybe MarkerRecordedEventAttributes)+    , _heScheduleLambdaFunctionFailedEventAttributes                    :: !(Maybe ScheduleLambdaFunctionFailedEventAttributes)+    , _heCompleteWorkflowExecutionFailedEventAttributes                 :: !(Maybe CompleteWorkflowExecutionFailedEventAttributes)+    , _heLambdaFunctionCompletedEventAttributes                         :: !(Maybe LambdaFunctionCompletedEventAttributes)+    , _heRequestCancelExternalWorkflowExecutionFailedEventAttributes    :: !(Maybe RequestCancelExternalWorkflowExecutionFailedEventAttributes)+    , _heTimerCanceledEventAttributes                                   :: !(Maybe TimerCanceledEventAttributes)+    , _heWorkflowExecutionStartedEventAttributes                        :: !(Maybe WorkflowExecutionStartedEventAttributes)+    , _heActivityTaskCompletedEventAttributes                           :: !(Maybe ActivityTaskCompletedEventAttributes)+    , _heDecisionTaskTimedOutEventAttributes                            :: !(Maybe DecisionTaskTimedOutEventAttributes)+    , _heCancelTimerFailedEventAttributes                               :: !(Maybe CancelTimerFailedEventAttributes)+    , _heChildWorkflowExecutionStartedEventAttributes                   :: !(Maybe ChildWorkflowExecutionStartedEventAttributes)+    , _heActivityTaskCanceledEventAttributes                            :: !(Maybe ActivityTaskCanceledEventAttributes)+    , _heActivityTaskTimedOutEventAttributes                            :: !(Maybe ActivityTaskTimedOutEventAttributes)+    , _heDecisionTaskStartedEventAttributes                             :: !(Maybe DecisionTaskStartedEventAttributes)+    , _heWorkflowExecutionTerminatedEventAttributes                     :: !(Maybe WorkflowExecutionTerminatedEventAttributes)+    , _heChildWorkflowExecutionCanceledEventAttributes                  :: !(Maybe ChildWorkflowExecutionCanceledEventAttributes)+    , _heRequestCancelActivityTaskFailedEventAttributes                 :: !(Maybe RequestCancelActivityTaskFailedEventAttributes)+    , _heLambdaFunctionScheduledEventAttributes                         :: !(Maybe LambdaFunctionScheduledEventAttributes)+    , _heChildWorkflowExecutionTimedOutEventAttributes                  :: !(Maybe ChildWorkflowExecutionTimedOutEventAttributes)+    , _heCancelWorkflowExecutionFailedEventAttributes                   :: !(Maybe CancelWorkflowExecutionFailedEventAttributes)+    , _heStartChildWorkflowExecutionInitiatedEventAttributes            :: !(Maybe StartChildWorkflowExecutionInitiatedEventAttributes)+    , _heSignalExternalWorkflowExecutionFailedEventAttributes           :: !(Maybe SignalExternalWorkflowExecutionFailedEventAttributes)+    , _heActivityTaskStartedEventAttributes                             :: !(Maybe ActivityTaskStartedEventAttributes)+    , _heStartLambdaFunctionFailedEventAttributes                       :: !(Maybe StartLambdaFunctionFailedEventAttributes)+    , _heChildWorkflowExecutionTerminatedEventAttributes                :: !(Maybe ChildWorkflowExecutionTerminatedEventAttributes)+    , _heLambdaFunctionFailedEventAttributes                            :: !(Maybe LambdaFunctionFailedEventAttributes)+    , _heWorkflowExecutionCanceledEventAttributes                       :: !(Maybe WorkflowExecutionCanceledEventAttributes)+    , _heTimerStartedEventAttributes                                    :: !(Maybe TimerStartedEventAttributes)+    , _heActivityTaskCancelRequestedEventAttributes                     :: !(Maybe ActivityTaskCancelRequestedEventAttributes)+    , _heWorkflowExecutionTimedOutEventAttributes                       :: !(Maybe WorkflowExecutionTimedOutEventAttributes)+    , _heWorkflowExecutionSignaledEventAttributes                       :: !(Maybe WorkflowExecutionSignaledEventAttributes)+    , _heTimerFiredEventAttributes                                      :: !(Maybe TimerFiredEventAttributes)+    , _heActivityTaskFailedEventAttributes                              :: !(Maybe ActivityTaskFailedEventAttributes)+    , _heExternalWorkflowExecutionSignaledEventAttributes               :: !(Maybe ExternalWorkflowExecutionSignaledEventAttributes)+    , _heDecisionTaskCompletedEventAttributes                           :: !(Maybe DecisionTaskCompletedEventAttributes)+    , _heStartChildWorkflowExecutionFailedEventAttributes               :: !(Maybe StartChildWorkflowExecutionFailedEventAttributes)+    , _heChildWorkflowExecutionFailedEventAttributes                    :: !(Maybe ChildWorkflowExecutionFailedEventAttributes)+    , _heFailWorkflowExecutionFailedEventAttributes                     :: !(Maybe FailWorkflowExecutionFailedEventAttributes)+    , _heContinueAsNewWorkflowExecutionFailedEventAttributes            :: !(Maybe ContinueAsNewWorkflowExecutionFailedEventAttributes)+    , _heSignalExternalWorkflowExecutionInitiatedEventAttributes        :: !(Maybe SignalExternalWorkflowExecutionInitiatedEventAttributes)+    , _heLambdaFunctionTimedOutEventAttributes                          :: !(Maybe LambdaFunctionTimedOutEventAttributes)+    , _heWorkflowExecutionFailedEventAttributes                         :: !(Maybe WorkflowExecutionFailedEventAttributes)+    , _heWorkflowExecutionContinuedAsNewEventAttributes                 :: !(Maybe WorkflowExecutionContinuedAsNewEventAttributes)+    , _heExternalWorkflowExecutionCancelRequestedEventAttributes        :: !(Maybe ExternalWorkflowExecutionCancelRequestedEventAttributes)+    , _heEventTimestamp                                                 :: !POSIX+    , _heEventType                                                      :: !EventType+    , _heEventId                                                        :: !Integer+    } deriving (Eq,Read,Show,Data,Typeable,Generic)++-- | Creates a value of 'HistoryEvent' with the minimum fields required to make a request.+--+-- Use one of the following lenses to modify other fields as desired:+--+-- * 'heWorkflowExecutionCancelRequestedEventAttributes' - If the event is of type @WorkflowExecutionCancelRequested@ then this member is set and provides detailed information about the event. It is not set for other event types.+--+-- * 'heRecordMarkerFailedEventAttributes' - If the event is of type @DecisionTaskFailed@ then this member is set and provides detailed information about the event. It is not set for other event types.+--+-- * 'heRequestCancelExternalWorkflowExecutionInitiatedEventAttributes' - If the event is of type @RequestCancelExternalWorkflowExecutionInitiated@ then this member is set and provides detailed information about the event. It is not set for other event types.+--+-- * 'heLambdaFunctionStartedEventAttributes' - Undocumented member.+--+-- * 'heDecisionTaskScheduledEventAttributes' - If the event is of type @DecisionTaskScheduled@ then this member is set and provides detailed information about the event. It is not set for other event types.+--+-- * 'heWorkflowExecutionCompletedEventAttributes' - If the event is of type @WorkflowExecutionCompleted@ then this member is set and provides detailed information about the event. It is not set for other event types.+--+-- * 'heStartTimerFailedEventAttributes' - If the event is of type @StartTimerFailed@ then this member is set and provides detailed information about the event. It is not set for other event types.+--+-- * 'heActivityTaskScheduledEventAttributes' - If the event is of type @ActivityTaskScheduled@ then this member is set and provides detailed information about the event. It is not set for other event types.+--+-- * 'heScheduleActivityTaskFailedEventAttributes' - If the event is of type @ScheduleActivityTaskFailed@ then this member is set and provides detailed information about the event. It is not set for other event types.+--+-- * 'heChildWorkflowExecutionCompletedEventAttributes' - If the event is of type @ChildWorkflowExecutionCompleted@ then this member is set and provides detailed information about the event. It is not set for other event types.+--+-- * 'heMarkerRecordedEventAttributes' - If the event is of type @MarkerRecorded@ then this member is set and provides detailed information about the event. It is not set for other event types.+--+-- * 'heScheduleLambdaFunctionFailedEventAttributes' - Undocumented member.+--+-- * 'heCompleteWorkflowExecutionFailedEventAttributes' - If the event is of type @CompleteWorkflowExecutionFailed@ then this member is set and provides detailed information about the event. It is not set for other event types.+--+-- * 'heLambdaFunctionCompletedEventAttributes' - Undocumented member.+--+-- * 'heRequestCancelExternalWorkflowExecutionFailedEventAttributes' - If the event is of type @RequestCancelExternalWorkflowExecutionFailed@ then this member is set and provides detailed information about the event. It is not set for other event types.+--+-- * 'heTimerCanceledEventAttributes' - If the event is of type @TimerCanceled@ then this member is set and provides detailed information about the event. It is not set for other event types.+--+-- * 'heWorkflowExecutionStartedEventAttributes' - If the event is of type @WorkflowExecutionStarted@ then this member is set and provides detailed information about the event. It is not set for other event types.+--+-- * 'heActivityTaskCompletedEventAttributes' - If the event is of type @ActivityTaskCompleted@ then this member is set and provides detailed information about the event. It is not set for other event types.+--+-- * 'heDecisionTaskTimedOutEventAttributes' - If the event is of type @DecisionTaskTimedOut@ then this member is set and provides detailed information about the event. It is not set for other event types.+--+-- * 'heCancelTimerFailedEventAttributes' - If the event is of type @CancelTimerFailed@ then this member is set and provides detailed information about the event. It is not set for other event types.+--+-- * 'heChildWorkflowExecutionStartedEventAttributes' - If the event is of type @ChildWorkflowExecutionStarted@ then this member is set and provides detailed information about the event. It is not set for other event types.+--+-- * 'heActivityTaskCanceledEventAttributes' - If the event is of type @ActivityTaskCanceled@ then this member is set and provides detailed information about the event. It is not set for other event types.+--+-- * 'heActivityTaskTimedOutEventAttributes' - If the event is of type @ActivityTaskTimedOut@ then this member is set and provides detailed information about the event. It is not set for other event types.+--+-- * 'heDecisionTaskStartedEventAttributes' - If the event is of type @DecisionTaskStarted@ then this member is set and provides detailed information about the event. It is not set for other event types.+--+-- * 'heWorkflowExecutionTerminatedEventAttributes' - If the event is of type @WorkflowExecutionTerminated@ then this member is set and provides detailed information about the event. It is not set for other event types.+--+-- * 'heChildWorkflowExecutionCanceledEventAttributes' - If the event is of type @ChildWorkflowExecutionCanceled@ then this member is set and provides detailed information about the event. It is not set for other event types.+--+-- * 'heRequestCancelActivityTaskFailedEventAttributes' - If the event is of type @RequestCancelActivityTaskFailed@ then this member is set and provides detailed information about the event. It is not set for other event types.+--+-- * 'heLambdaFunctionScheduledEventAttributes' - Undocumented member.+--+-- * 'heChildWorkflowExecutionTimedOutEventAttributes' - If the event is of type @ChildWorkflowExecutionTimedOut@ then this member is set and provides detailed information about the event. It is not set for other event types.+--+-- * 'heCancelWorkflowExecutionFailedEventAttributes' - If the event is of type @CancelWorkflowExecutionFailed@ then this member is set and provides detailed information about the event. It is not set for other event types.+--+-- * 'heStartChildWorkflowExecutionInitiatedEventAttributes' - If the event is of type @StartChildWorkflowExecutionInitiated@ then this member is set and provides detailed information about the event. It is not set for other event types.+--+-- * 'heSignalExternalWorkflowExecutionFailedEventAttributes' - If the event is of type @SignalExternalWorkflowExecutionFailed@ then this member is set and provides detailed information about the event. It is not set for other event types.+--+-- * 'heActivityTaskStartedEventAttributes' - If the event is of type @ActivityTaskStarted@ then this member is set and provides detailed information about the event. It is not set for other event types.+--+-- * 'heStartLambdaFunctionFailedEventAttributes' - Undocumented member.+--+-- * 'heChildWorkflowExecutionTerminatedEventAttributes' - If the event is of type @ChildWorkflowExecutionTerminated@ then this member is set and provides detailed information about the event. It is not set for other event types.+--+-- * 'heLambdaFunctionFailedEventAttributes' - Undocumented member.+--+-- * 'heWorkflowExecutionCanceledEventAttributes' - If the event is of type @WorkflowExecutionCanceled@ then this member is set and provides detailed information about the event. It is not set for other event types.+--+-- * 'heTimerStartedEventAttributes' - If the event is of type @TimerStarted@ then this member is set and provides detailed information about the event. It is not set for other event types.+--+-- * 'heActivityTaskCancelRequestedEventAttributes' - If the event is of type @ActivityTaskcancelRequested@ then this member is set and provides detailed information about the event. It is not set for other event types.+--+-- * 'heWorkflowExecutionTimedOutEventAttributes' - If the event is of type @WorkflowExecutionTimedOut@ then this member is set and provides detailed information about the event. It is not set for other event types.+--+-- * 'heWorkflowExecutionSignaledEventAttributes' - If the event is of type @WorkflowExecutionSignaled@ then this member is set and provides detailed information about the event. It is not set for other event types.+--+-- * 'heTimerFiredEventAttributes' - If the event is of type @TimerFired@ then this member is set and provides detailed information about the event. It is not set for other event types.+--+-- * 'heActivityTaskFailedEventAttributes' - If the event is of type @ActivityTaskFailed@ then this member is set and provides detailed information about the event. It is not set for other event types.+--+-- * 'heExternalWorkflowExecutionSignaledEventAttributes' - If the event is of type @ExternalWorkflowExecutionSignaled@ then this member is set and provides detailed information about the event. It is not set for other event types.+--+-- * 'heDecisionTaskCompletedEventAttributes' - If the event is of type @DecisionTaskCompleted@ then this member is set and provides detailed information about the event. It is not set for other event types.+--+-- * 'heStartChildWorkflowExecutionFailedEventAttributes' - If the event is of type @StartChildWorkflowExecutionFailed@ then this member is set and provides detailed information about the event. It is not set for other event types.+--+-- * 'heChildWorkflowExecutionFailedEventAttributes' - If the event is of type @ChildWorkflowExecutionFailed@ then this member is set and provides detailed information about the event. It is not set for other event types.+--+-- * 'heFailWorkflowExecutionFailedEventAttributes' - If the event is of type @FailWorkflowExecutionFailed@ then this member is set and provides detailed information about the event. It is not set for other event types.+--+-- * 'heContinueAsNewWorkflowExecutionFailedEventAttributes' - If the event is of type @ContinueAsNewWorkflowExecutionFailed@ then this member is set and provides detailed information about the event. It is not set for other event types.+--+-- * 'heSignalExternalWorkflowExecutionInitiatedEventAttributes' - If the event is of type @SignalExternalWorkflowExecutionInitiated@ then this member is set and provides detailed information about the event. It is not set for other event types.+--+-- * 'heLambdaFunctionTimedOutEventAttributes' - Undocumented member.+--+-- * 'heWorkflowExecutionFailedEventAttributes' - If the event is of type @WorkflowExecutionFailed@ then this member is set and provides detailed information about the event. It is not set for other event types.+--+-- * 'heWorkflowExecutionContinuedAsNewEventAttributes' - If the event is of type @WorkflowExecutionContinuedAsNew@ then this member is set and provides detailed information about the event. It is not set for other event types.+--+-- * 'heExternalWorkflowExecutionCancelRequestedEventAttributes' - If the event is of type @ExternalWorkflowExecutionCancelRequested@ then this member is set and provides detailed information about the event. It is not set for other event types.+--+-- * 'heEventTimestamp' - The date and time when the event occurred.+--+-- * 'heEventType' - The type of the history event.+--+-- * 'heEventId' - The system generated ID of the event. This ID uniquely identifies the event with in the workflow execution history.+historyEvent+    :: UTCTime -- ^ 'heEventTimestamp'+    -> EventType -- ^ 'heEventType'+    -> Integer -- ^ 'heEventId'+    -> HistoryEvent+historyEvent pEventTimestamp_ pEventType_ pEventId_ =+    HistoryEvent'+    { _heWorkflowExecutionCancelRequestedEventAttributes = Nothing+    , _heRecordMarkerFailedEventAttributes = Nothing+    , _heRequestCancelExternalWorkflowExecutionInitiatedEventAttributes = Nothing+    , _heLambdaFunctionStartedEventAttributes = Nothing+    , _heDecisionTaskScheduledEventAttributes = Nothing+    , _heWorkflowExecutionCompletedEventAttributes = Nothing+    , _heStartTimerFailedEventAttributes = Nothing+    , _heActivityTaskScheduledEventAttributes = Nothing+    , _heScheduleActivityTaskFailedEventAttributes = Nothing+    , _heChildWorkflowExecutionCompletedEventAttributes = Nothing+    , _heMarkerRecordedEventAttributes = Nothing+    , _heScheduleLambdaFunctionFailedEventAttributes = Nothing+    , _heCompleteWorkflowExecutionFailedEventAttributes = Nothing+    , _heLambdaFunctionCompletedEventAttributes = Nothing+    , _heRequestCancelExternalWorkflowExecutionFailedEventAttributes = Nothing+    , _heTimerCanceledEventAttributes = Nothing+    , _heWorkflowExecutionStartedEventAttributes = Nothing+    , _heActivityTaskCompletedEventAttributes = Nothing+    , _heDecisionTaskTimedOutEventAttributes = Nothing+    , _heCancelTimerFailedEventAttributes = Nothing+    , _heChildWorkflowExecutionStartedEventAttributes = Nothing+    , _heActivityTaskCanceledEventAttributes = Nothing+    , _heActivityTaskTimedOutEventAttributes = Nothing+    , _heDecisionTaskStartedEventAttributes = Nothing+    , _heWorkflowExecutionTerminatedEventAttributes = Nothing+    , _heChildWorkflowExecutionCanceledEventAttributes = Nothing+    , _heRequestCancelActivityTaskFailedEventAttributes = Nothing+    , _heLambdaFunctionScheduledEventAttributes = Nothing+    , _heChildWorkflowExecutionTimedOutEventAttributes = Nothing+    , _heCancelWorkflowExecutionFailedEventAttributes = Nothing+    , _heStartChildWorkflowExecutionInitiatedEventAttributes = Nothing+    , _heSignalExternalWorkflowExecutionFailedEventAttributes = Nothing+    , _heActivityTaskStartedEventAttributes = Nothing+    , _heStartLambdaFunctionFailedEventAttributes = Nothing+    , _heChildWorkflowExecutionTerminatedEventAttributes = Nothing+    , _heLambdaFunctionFailedEventAttributes = Nothing+    , _heWorkflowExecutionCanceledEventAttributes = Nothing+    , _heTimerStartedEventAttributes = Nothing+    , _heActivityTaskCancelRequestedEventAttributes = Nothing+    , _heWorkflowExecutionTimedOutEventAttributes = Nothing+    , _heWorkflowExecutionSignaledEventAttributes = Nothing+    , _heTimerFiredEventAttributes = Nothing+    , _heActivityTaskFailedEventAttributes = Nothing+    , _heExternalWorkflowExecutionSignaledEventAttributes = Nothing+    , _heDecisionTaskCompletedEventAttributes = Nothing+    , _heStartChildWorkflowExecutionFailedEventAttributes = Nothing+    , _heChildWorkflowExecutionFailedEventAttributes = Nothing+    , _heFailWorkflowExecutionFailedEventAttributes = Nothing+    , _heContinueAsNewWorkflowExecutionFailedEventAttributes = Nothing+    , _heSignalExternalWorkflowExecutionInitiatedEventAttributes = Nothing+    , _heLambdaFunctionTimedOutEventAttributes = Nothing+    , _heWorkflowExecutionFailedEventAttributes = Nothing+    , _heWorkflowExecutionContinuedAsNewEventAttributes = Nothing+    , _heExternalWorkflowExecutionCancelRequestedEventAttributes = Nothing+    , _heEventTimestamp = _Time # pEventTimestamp_+    , _heEventType = pEventType_+    , _heEventId = pEventId_+    }++-- | If the event is of type @WorkflowExecutionCancelRequested@ then this member is set and provides detailed information about the event. It is not set for other event types.+heWorkflowExecutionCancelRequestedEventAttributes :: Lens' HistoryEvent (Maybe WorkflowExecutionCancelRequestedEventAttributes)+heWorkflowExecutionCancelRequestedEventAttributes = lens _heWorkflowExecutionCancelRequestedEventAttributes (\ s a -> s{_heWorkflowExecutionCancelRequestedEventAttributes = a});++-- | If the event is of type @DecisionTaskFailed@ then this member is set and provides detailed information about the event. It is not set for other event types.+heRecordMarkerFailedEventAttributes :: Lens' HistoryEvent (Maybe RecordMarkerFailedEventAttributes)+heRecordMarkerFailedEventAttributes = lens _heRecordMarkerFailedEventAttributes (\ s a -> s{_heRecordMarkerFailedEventAttributes = a});++-- | If the event is of type @RequestCancelExternalWorkflowExecutionInitiated@ then this member is set and provides detailed information about the event. It is not set for other event types.+heRequestCancelExternalWorkflowExecutionInitiatedEventAttributes :: Lens' HistoryEvent (Maybe RequestCancelExternalWorkflowExecutionInitiatedEventAttributes)+heRequestCancelExternalWorkflowExecutionInitiatedEventAttributes = lens _heRequestCancelExternalWorkflowExecutionInitiatedEventAttributes (\ s a -> s{_heRequestCancelExternalWorkflowExecutionInitiatedEventAttributes = a});++-- | Undocumented member.+heLambdaFunctionStartedEventAttributes :: Lens' HistoryEvent (Maybe LambdaFunctionStartedEventAttributes)+heLambdaFunctionStartedEventAttributes = lens _heLambdaFunctionStartedEventAttributes (\ s a -> s{_heLambdaFunctionStartedEventAttributes = a});++-- | If the event is of type @DecisionTaskScheduled@ then this member is set and provides detailed information about the event. It is not set for other event types.+heDecisionTaskScheduledEventAttributes :: Lens' HistoryEvent (Maybe DecisionTaskScheduledEventAttributes)+heDecisionTaskScheduledEventAttributes = lens _heDecisionTaskScheduledEventAttributes (\ s a -> s{_heDecisionTaskScheduledEventAttributes = a});++-- | If the event is of type @WorkflowExecutionCompleted@ then this member is set and provides detailed information about the event. It is not set for other event types.+heWorkflowExecutionCompletedEventAttributes :: Lens' HistoryEvent (Maybe WorkflowExecutionCompletedEventAttributes)+heWorkflowExecutionCompletedEventAttributes = lens _heWorkflowExecutionCompletedEventAttributes (\ s a -> s{_heWorkflowExecutionCompletedEventAttributes = a});++-- | If the event is of type @StartTimerFailed@ then this member is set and provides detailed information about the event. It is not set for other event types.+heStartTimerFailedEventAttributes :: Lens' HistoryEvent (Maybe StartTimerFailedEventAttributes)+heStartTimerFailedEventAttributes = lens _heStartTimerFailedEventAttributes (\ s a -> s{_heStartTimerFailedEventAttributes = a});++-- | If the event is of type @ActivityTaskScheduled@ then this member is set and provides detailed information about the event. It is not set for other event types.+heActivityTaskScheduledEventAttributes :: Lens' HistoryEvent (Maybe ActivityTaskScheduledEventAttributes)+heActivityTaskScheduledEventAttributes = lens _heActivityTaskScheduledEventAttributes (\ s a -> s{_heActivityTaskScheduledEventAttributes = a});++-- | If the event is of type @ScheduleActivityTaskFailed@ then this member is set and provides detailed information about the event. It is not set for other event types.+heScheduleActivityTaskFailedEventAttributes :: Lens' HistoryEvent (Maybe ScheduleActivityTaskFailedEventAttributes)+heScheduleActivityTaskFailedEventAttributes = lens _heScheduleActivityTaskFailedEventAttributes (\ s a -> s{_heScheduleActivityTaskFailedEventAttributes = a});++-- | If the event is of type @ChildWorkflowExecutionCompleted@ then this member is set and provides detailed information about the event. It is not set for other event types.+heChildWorkflowExecutionCompletedEventAttributes :: Lens' HistoryEvent (Maybe ChildWorkflowExecutionCompletedEventAttributes)+heChildWorkflowExecutionCompletedEventAttributes = lens _heChildWorkflowExecutionCompletedEventAttributes (\ s a -> s{_heChildWorkflowExecutionCompletedEventAttributes = a});++-- | If the event is of type @MarkerRecorded@ then this member is set and provides detailed information about the event. It is not set for other event types.+heMarkerRecordedEventAttributes :: Lens' HistoryEvent (Maybe MarkerRecordedEventAttributes)+heMarkerRecordedEventAttributes = lens _heMarkerRecordedEventAttributes (\ s a -> s{_heMarkerRecordedEventAttributes = a});++-- | Undocumented member.+heScheduleLambdaFunctionFailedEventAttributes :: Lens' HistoryEvent (Maybe ScheduleLambdaFunctionFailedEventAttributes)+heScheduleLambdaFunctionFailedEventAttributes = lens _heScheduleLambdaFunctionFailedEventAttributes (\ s a -> s{_heScheduleLambdaFunctionFailedEventAttributes = a});++-- | If the event is of type @CompleteWorkflowExecutionFailed@ then this member is set and provides detailed information about the event. It is not set for other event types.+heCompleteWorkflowExecutionFailedEventAttributes :: Lens' HistoryEvent (Maybe CompleteWorkflowExecutionFailedEventAttributes)+heCompleteWorkflowExecutionFailedEventAttributes = lens _heCompleteWorkflowExecutionFailedEventAttributes (\ s a -> s{_heCompleteWorkflowExecutionFailedEventAttributes = a});++-- | Undocumented member.+heLambdaFunctionCompletedEventAttributes :: Lens' HistoryEvent (Maybe LambdaFunctionCompletedEventAttributes)+heLambdaFunctionCompletedEventAttributes = lens _heLambdaFunctionCompletedEventAttributes (\ s a -> s{_heLambdaFunctionCompletedEventAttributes = a});++-- | If the event is of type @RequestCancelExternalWorkflowExecutionFailed@ then this member is set and provides detailed information about the event. It is not set for other event types.+heRequestCancelExternalWorkflowExecutionFailedEventAttributes :: Lens' HistoryEvent (Maybe RequestCancelExternalWorkflowExecutionFailedEventAttributes)+heRequestCancelExternalWorkflowExecutionFailedEventAttributes = lens _heRequestCancelExternalWorkflowExecutionFailedEventAttributes (\ s a -> s{_heRequestCancelExternalWorkflowExecutionFailedEventAttributes = a});++-- | If the event is of type @TimerCanceled@ then this member is set and provides detailed information about the event. It is not set for other event types.+heTimerCanceledEventAttributes :: Lens' HistoryEvent (Maybe TimerCanceledEventAttributes)+heTimerCanceledEventAttributes = lens _heTimerCanceledEventAttributes (\ s a -> s{_heTimerCanceledEventAttributes = a});++-- | If the event is of type @WorkflowExecutionStarted@ then this member is set and provides detailed information about the event. It is not set for other event types.+heWorkflowExecutionStartedEventAttributes :: Lens' HistoryEvent (Maybe WorkflowExecutionStartedEventAttributes)+heWorkflowExecutionStartedEventAttributes = lens _heWorkflowExecutionStartedEventAttributes (\ s a -> s{_heWorkflowExecutionStartedEventAttributes = a});++-- | If the event is of type @ActivityTaskCompleted@ then this member is set and provides detailed information about the event. It is not set for other event types.+heActivityTaskCompletedEventAttributes :: Lens' HistoryEvent (Maybe ActivityTaskCompletedEventAttributes)+heActivityTaskCompletedEventAttributes = lens _heActivityTaskCompletedEventAttributes (\ s a -> s{_heActivityTaskCompletedEventAttributes = a});++-- | If the event is of type @DecisionTaskTimedOut@ then this member is set and provides detailed information about the event. It is not set for other event types.+heDecisionTaskTimedOutEventAttributes :: Lens' HistoryEvent (Maybe DecisionTaskTimedOutEventAttributes)+heDecisionTaskTimedOutEventAttributes = lens _heDecisionTaskTimedOutEventAttributes (\ s a -> s{_heDecisionTaskTimedOutEventAttributes = a});++-- | If the event is of type @CancelTimerFailed@ then this member is set and provides detailed information about the event. It is not set for other event types.+heCancelTimerFailedEventAttributes :: Lens' HistoryEvent (Maybe CancelTimerFailedEventAttributes)+heCancelTimerFailedEventAttributes = lens _heCancelTimerFailedEventAttributes (\ s a -> s{_heCancelTimerFailedEventAttributes = a});++-- | If the event is of type @ChildWorkflowExecutionStarted@ then this member is set and provides detailed information about the event. It is not set for other event types.+heChildWorkflowExecutionStartedEventAttributes :: Lens' HistoryEvent (Maybe ChildWorkflowExecutionStartedEventAttributes)+heChildWorkflowExecutionStartedEventAttributes = lens _heChildWorkflowExecutionStartedEventAttributes (\ s a -> s{_heChildWorkflowExecutionStartedEventAttributes = a});++-- | If the event is of type @ActivityTaskCanceled@ then this member is set and provides detailed information about the event. It is not set for other event types.+heActivityTaskCanceledEventAttributes :: Lens' HistoryEvent (Maybe ActivityTaskCanceledEventAttributes)+heActivityTaskCanceledEventAttributes = lens _heActivityTaskCanceledEventAttributes (\ s a -> s{_heActivityTaskCanceledEventAttributes = a});++-- | If the event is of type @ActivityTaskTimedOut@ then this member is set and provides detailed information about the event. It is not set for other event types.+heActivityTaskTimedOutEventAttributes :: Lens' HistoryEvent (Maybe ActivityTaskTimedOutEventAttributes)+heActivityTaskTimedOutEventAttributes = lens _heActivityTaskTimedOutEventAttributes (\ s a -> s{_heActivityTaskTimedOutEventAttributes = a});++-- | If the event is of type @DecisionTaskStarted@ then this member is set and provides detailed information about the event. It is not set for other event types.+heDecisionTaskStartedEventAttributes :: Lens' HistoryEvent (Maybe DecisionTaskStartedEventAttributes)+heDecisionTaskStartedEventAttributes = lens _heDecisionTaskStartedEventAttributes (\ s a -> s{_heDecisionTaskStartedEventAttributes = a});++-- | If the event is of type @WorkflowExecutionTerminated@ then this member is set and provides detailed information about the event. It is not set for other event types.+heWorkflowExecutionTerminatedEventAttributes :: Lens' HistoryEvent (Maybe WorkflowExecutionTerminatedEventAttributes)+heWorkflowExecutionTerminatedEventAttributes = lens _heWorkflowExecutionTerminatedEventAttributes (\ s a -> s{_heWorkflowExecutionTerminatedEventAttributes = a});++-- | If the event is of type @ChildWorkflowExecutionCanceled@ then this member is set and provides detailed information about the event. It is not set for other event types.+heChildWorkflowExecutionCanceledEventAttributes :: Lens' HistoryEvent (Maybe ChildWorkflowExecutionCanceledEventAttributes)+heChildWorkflowExecutionCanceledEventAttributes = lens _heChildWorkflowExecutionCanceledEventAttributes (\ s a -> s{_heChildWorkflowExecutionCanceledEventAttributes = a});++-- | If the event is of type @RequestCancelActivityTaskFailed@ then this member is set and provides detailed information about the event. It is not set for other event types.+heRequestCancelActivityTaskFailedEventAttributes :: Lens' HistoryEvent (Maybe RequestCancelActivityTaskFailedEventAttributes)+heRequestCancelActivityTaskFailedEventAttributes = lens _heRequestCancelActivityTaskFailedEventAttributes (\ s a -> s{_heRequestCancelActivityTaskFailedEventAttributes = a});++-- | Undocumented member.+heLambdaFunctionScheduledEventAttributes :: Lens' HistoryEvent (Maybe LambdaFunctionScheduledEventAttributes)+heLambdaFunctionScheduledEventAttributes = lens _heLambdaFunctionScheduledEventAttributes (\ s a -> s{_heLambdaFunctionScheduledEventAttributes = a});++-- | If the event is of type @ChildWorkflowExecutionTimedOut@ then this member is set and provides detailed information about the event. It is not set for other event types.+heChildWorkflowExecutionTimedOutEventAttributes :: Lens' HistoryEvent (Maybe ChildWorkflowExecutionTimedOutEventAttributes)+heChildWorkflowExecutionTimedOutEventAttributes = lens _heChildWorkflowExecutionTimedOutEventAttributes (\ s a -> s{_heChildWorkflowExecutionTimedOutEventAttributes = a});++-- | If the event is of type @CancelWorkflowExecutionFailed@ then this member is set and provides detailed information about the event. It is not set for other event types.+heCancelWorkflowExecutionFailedEventAttributes :: Lens' HistoryEvent (Maybe CancelWorkflowExecutionFailedEventAttributes)+heCancelWorkflowExecutionFailedEventAttributes = lens _heCancelWorkflowExecutionFailedEventAttributes (\ s a -> s{_heCancelWorkflowExecutionFailedEventAttributes = a});++-- | If the event is of type @StartChildWorkflowExecutionInitiated@ then this member is set and provides detailed information about the event. It is not set for other event types.+heStartChildWorkflowExecutionInitiatedEventAttributes :: Lens' HistoryEvent (Maybe StartChildWorkflowExecutionInitiatedEventAttributes)+heStartChildWorkflowExecutionInitiatedEventAttributes = lens _heStartChildWorkflowExecutionInitiatedEventAttributes (\ s a -> s{_heStartChildWorkflowExecutionInitiatedEventAttributes = a});++-- | If the event is of type @SignalExternalWorkflowExecutionFailed@ then this member is set and provides detailed information about the event. It is not set for other event types.+heSignalExternalWorkflowExecutionFailedEventAttributes :: Lens' HistoryEvent (Maybe SignalExternalWorkflowExecutionFailedEventAttributes)+heSignalExternalWorkflowExecutionFailedEventAttributes = lens _heSignalExternalWorkflowExecutionFailedEventAttributes (\ s a -> s{_heSignalExternalWorkflowExecutionFailedEventAttributes = a});++-- | If the event is of type @ActivityTaskStarted@ then this member is set and provides detailed information about the event. It is not set for other event types.+heActivityTaskStartedEventAttributes :: Lens' HistoryEvent (Maybe ActivityTaskStartedEventAttributes)+heActivityTaskStartedEventAttributes = lens _heActivityTaskStartedEventAttributes (\ s a -> s{_heActivityTaskStartedEventAttributes = a});++-- | Undocumented member.+heStartLambdaFunctionFailedEventAttributes :: Lens' HistoryEvent (Maybe StartLambdaFunctionFailedEventAttributes)+heStartLambdaFunctionFailedEventAttributes = lens _heStartLambdaFunctionFailedEventAttributes (\ s a -> s{_heStartLambdaFunctionFailedEventAttributes = a});++-- | If the event is of type @ChildWorkflowExecutionTerminated@ then this member is set and provides detailed information about the event. It is not set for other event types.+heChildWorkflowExecutionTerminatedEventAttributes :: Lens' HistoryEvent (Maybe ChildWorkflowExecutionTerminatedEventAttributes)+heChildWorkflowExecutionTerminatedEventAttributes = lens _heChildWorkflowExecutionTerminatedEventAttributes (\ s a -> s{_heChildWorkflowExecutionTerminatedEventAttributes = a});++-- | Undocumented member.+heLambdaFunctionFailedEventAttributes :: Lens' HistoryEvent (Maybe LambdaFunctionFailedEventAttributes)+heLambdaFunctionFailedEventAttributes = lens _heLambdaFunctionFailedEventAttributes (\ s a -> s{_heLambdaFunctionFailedEventAttributes = a});++-- | If the event is of type @WorkflowExecutionCanceled@ then this member is set and provides detailed information about the event. It is not set for other event types.+heWorkflowExecutionCanceledEventAttributes :: Lens' HistoryEvent (Maybe WorkflowExecutionCanceledEventAttributes)+heWorkflowExecutionCanceledEventAttributes = lens _heWorkflowExecutionCanceledEventAttributes (\ s a -> s{_heWorkflowExecutionCanceledEventAttributes = a});++-- | If the event is of type @TimerStarted@ then this member is set and provides detailed information about the event. It is not set for other event types.+heTimerStartedEventAttributes :: Lens' HistoryEvent (Maybe TimerStartedEventAttributes)+heTimerStartedEventAttributes = lens _heTimerStartedEventAttributes (\ s a -> s{_heTimerStartedEventAttributes = a});++-- | If the event is of type @ActivityTaskcancelRequested@ then this member is set and provides detailed information about the event. It is not set for other event types.+heActivityTaskCancelRequestedEventAttributes :: Lens' HistoryEvent (Maybe ActivityTaskCancelRequestedEventAttributes)+heActivityTaskCancelRequestedEventAttributes = lens _heActivityTaskCancelRequestedEventAttributes (\ s a -> s{_heActivityTaskCancelRequestedEventAttributes = a});++-- | If the event is of type @WorkflowExecutionTimedOut@ then this member is set and provides detailed information about the event. It is not set for other event types.+heWorkflowExecutionTimedOutEventAttributes :: Lens' HistoryEvent (Maybe WorkflowExecutionTimedOutEventAttributes)+heWorkflowExecutionTimedOutEventAttributes = lens _heWorkflowExecutionTimedOutEventAttributes (\ s a -> s{_heWorkflowExecutionTimedOutEventAttributes = a});++-- | If the event is of type @WorkflowExecutionSignaled@ then this member is set and provides detailed information about the event. It is not set for other event types.+heWorkflowExecutionSignaledEventAttributes :: Lens' HistoryEvent (Maybe WorkflowExecutionSignaledEventAttributes)+heWorkflowExecutionSignaledEventAttributes = lens _heWorkflowExecutionSignaledEventAttributes (\ s a -> s{_heWorkflowExecutionSignaledEventAttributes = a});++-- | If the event is of type @TimerFired@ then this member is set and provides detailed information about the event. It is not set for other event types.+heTimerFiredEventAttributes :: Lens' HistoryEvent (Maybe TimerFiredEventAttributes)+heTimerFiredEventAttributes = lens _heTimerFiredEventAttributes (\ s a -> s{_heTimerFiredEventAttributes = a});++-- | If the event is of type @ActivityTaskFailed@ then this member is set and provides detailed information about the event. It is not set for other event types.+heActivityTaskFailedEventAttributes :: Lens' HistoryEvent (Maybe ActivityTaskFailedEventAttributes)+heActivityTaskFailedEventAttributes = lens _heActivityTaskFailedEventAttributes (\ s a -> s{_heActivityTaskFailedEventAttributes = a});++-- | If the event is of type @ExternalWorkflowExecutionSignaled@ then this member is set and provides detailed information about the event. It is not set for other event types.+heExternalWorkflowExecutionSignaledEventAttributes :: Lens' HistoryEvent (Maybe ExternalWorkflowExecutionSignaledEventAttributes)+heExternalWorkflowExecutionSignaledEventAttributes = lens _heExternalWorkflowExecutionSignaledEventAttributes (\ s a -> s{_heExternalWorkflowExecutionSignaledEventAttributes = a});++-- | If the event is of type @DecisionTaskCompleted@ then this member is set and provides detailed information about the event. It is not set for other event types.+heDecisionTaskCompletedEventAttributes :: Lens' HistoryEvent (Maybe DecisionTaskCompletedEventAttributes)+heDecisionTaskCompletedEventAttributes = lens _heDecisionTaskCompletedEventAttributes (\ s a -> s{_heDecisionTaskCompletedEventAttributes = a});++-- | If the event is of type @StartChildWorkflowExecutionFailed@ then this member is set and provides detailed information about the event. It is not set for other event types.+heStartChildWorkflowExecutionFailedEventAttributes :: Lens' HistoryEvent (Maybe StartChildWorkflowExecutionFailedEventAttributes)+heStartChildWorkflowExecutionFailedEventAttributes = lens _heStartChildWorkflowExecutionFailedEventAttributes (\ s a -> s{_heStartChildWorkflowExecutionFailedEventAttributes = a});++-- | If the event is of type @ChildWorkflowExecutionFailed@ then this member is set and provides detailed information about the event. It is not set for other event types.+heChildWorkflowExecutionFailedEventAttributes :: Lens' HistoryEvent (Maybe ChildWorkflowExecutionFailedEventAttributes)+heChildWorkflowExecutionFailedEventAttributes = lens _heChildWorkflowExecutionFailedEventAttributes (\ s a -> s{_heChildWorkflowExecutionFailedEventAttributes = a});++-- | If the event is of type @FailWorkflowExecutionFailed@ then this member is set and provides detailed information about the event. It is not set for other event types.+heFailWorkflowExecutionFailedEventAttributes :: Lens' HistoryEvent (Maybe FailWorkflowExecutionFailedEventAttributes)+heFailWorkflowExecutionFailedEventAttributes = lens _heFailWorkflowExecutionFailedEventAttributes (\ s a -> s{_heFailWorkflowExecutionFailedEventAttributes = a});++-- | If the event is of type @ContinueAsNewWorkflowExecutionFailed@ then this member is set and provides detailed information about the event. It is not set for other event types.+heContinueAsNewWorkflowExecutionFailedEventAttributes :: Lens' HistoryEvent (Maybe ContinueAsNewWorkflowExecutionFailedEventAttributes)+heContinueAsNewWorkflowExecutionFailedEventAttributes = lens _heContinueAsNewWorkflowExecutionFailedEventAttributes (\ s a -> s{_heContinueAsNewWorkflowExecutionFailedEventAttributes = a});++-- | If the event is of type @SignalExternalWorkflowExecutionInitiated@ then this member is set and provides detailed information about the event. It is not set for other event types.+heSignalExternalWorkflowExecutionInitiatedEventAttributes :: Lens' HistoryEvent (Maybe SignalExternalWorkflowExecutionInitiatedEventAttributes)+heSignalExternalWorkflowExecutionInitiatedEventAttributes = lens _heSignalExternalWorkflowExecutionInitiatedEventAttributes (\ s a -> s{_heSignalExternalWorkflowExecutionInitiatedEventAttributes = a});++-- | Undocumented member.+heLambdaFunctionTimedOutEventAttributes :: Lens' HistoryEvent (Maybe LambdaFunctionTimedOutEventAttributes)+heLambdaFunctionTimedOutEventAttributes = lens _heLambdaFunctionTimedOutEventAttributes (\ s a -> s{_heLambdaFunctionTimedOutEventAttributes = a});++-- | If the event is of type @WorkflowExecutionFailed@ then this member is set and provides detailed information about the event. It is not set for other event types.+heWorkflowExecutionFailedEventAttributes :: Lens' HistoryEvent (Maybe WorkflowExecutionFailedEventAttributes)+heWorkflowExecutionFailedEventAttributes = lens _heWorkflowExecutionFailedEventAttributes (\ s a -> s{_heWorkflowExecutionFailedEventAttributes = a});++-- | If the event is of type @WorkflowExecutionContinuedAsNew@ then this member is set and provides detailed information about the event. It is not set for other event types.+heWorkflowExecutionContinuedAsNewEventAttributes :: Lens' HistoryEvent (Maybe WorkflowExecutionContinuedAsNewEventAttributes)+heWorkflowExecutionContinuedAsNewEventAttributes = lens _heWorkflowExecutionContinuedAsNewEventAttributes (\ s a -> s{_heWorkflowExecutionContinuedAsNewEventAttributes = a});++-- | If the event is of type @ExternalWorkflowExecutionCancelRequested@ then this member is set and provides detailed information about the event. It is not set for other event types.+heExternalWorkflowExecutionCancelRequestedEventAttributes :: Lens' HistoryEvent (Maybe ExternalWorkflowExecutionCancelRequestedEventAttributes)+heExternalWorkflowExecutionCancelRequestedEventAttributes = lens _heExternalWorkflowExecutionCancelRequestedEventAttributes (\ s a -> s{_heExternalWorkflowExecutionCancelRequestedEventAttributes = a});++-- | The date and time when the event occurred.+heEventTimestamp :: Lens' HistoryEvent UTCTime+heEventTimestamp = lens _heEventTimestamp (\ s a -> s{_heEventTimestamp = a}) . _Time;++-- | The type of the history event.+heEventType :: Lens' HistoryEvent EventType+heEventType = lens _heEventType (\ s a -> s{_heEventType = a});++-- | The system generated ID of the event. This ID uniquely identifies the event with in the workflow execution history.+heEventId :: Lens' HistoryEvent Integer+heEventId = lens _heEventId (\ s a -> s{_heEventId = a});++instance FromJSON HistoryEvent where+        parseJSON+          = withObject "HistoryEvent"+              (\ x ->+                 HistoryEvent' <$>+                   (x .:?+                      "workflowExecutionCancelRequestedEventAttributes")+                     <*> (x .:? "recordMarkerFailedEventAttributes")+                     <*>+                     (x .:?+                        "requestCancelExternalWorkflowExecutionInitiatedEventAttributes")+                     <*> (x .:? "lambdaFunctionStartedEventAttributes")+                     <*> (x .:? "decisionTaskScheduledEventAttributes")+                     <*>+                     (x .:? "workflowExecutionCompletedEventAttributes")+                     <*> (x .:? "startTimerFailedEventAttributes")+                     <*> (x .:? "activityTaskScheduledEventAttributes")+                     <*>+                     (x .:? "scheduleActivityTaskFailedEventAttributes")+                     <*>+                     (x .:?+                        "childWorkflowExecutionCompletedEventAttributes")+                     <*> (x .:? "markerRecordedEventAttributes")+                     <*>+                     (x .:? "scheduleLambdaFunctionFailedEventAttributes")+                     <*>+                     (x .:?+                        "completeWorkflowExecutionFailedEventAttributes")+                     <*> (x .:? "lambdaFunctionCompletedEventAttributes")+                     <*>+                     (x .:?+                        "requestCancelExternalWorkflowExecutionFailedEventAttributes")+                     <*> (x .:? "timerCanceledEventAttributes")+                     <*> (x .:? "workflowExecutionStartedEventAttributes")+                     <*> (x .:? "activityTaskCompletedEventAttributes")+                     <*> (x .:? "decisionTaskTimedOutEventAttributes")+                     <*> (x .:? "cancelTimerFailedEventAttributes")+                     <*>+                     (x .:?+                        "childWorkflowExecutionStartedEventAttributes")+                     <*> (x .:? "activityTaskCanceledEventAttributes")+                     <*> (x .:? "activityTaskTimedOutEventAttributes")+                     <*> (x .:? "decisionTaskStartedEventAttributes")+                     <*>+                     (x .:? "workflowExecutionTerminatedEventAttributes")+                     <*>+                     (x .:?+                        "childWorkflowExecutionCanceledEventAttributes")+                     <*>+                     (x .:?+                        "requestCancelActivityTaskFailedEventAttributes")+                     <*> (x .:? "lambdaFunctionScheduledEventAttributes")+                     <*>+                     (x .:?+                        "childWorkflowExecutionTimedOutEventAttributes")+                     <*>+                     (x .:?+                        "cancelWorkflowExecutionFailedEventAttributes")+                     <*>+                     (x .:?+                        "startChildWorkflowExecutionInitiatedEventAttributes")+                     <*>+                     (x .:?+                        "signalExternalWorkflowExecutionFailedEventAttributes")+                     <*> (x .:? "activityTaskStartedEventAttributes")+                     <*>+                     (x .:? "startLambdaFunctionFailedEventAttributes")+                     <*>+                     (x .:?+                        "childWorkflowExecutionTerminatedEventAttributes")+                     <*> (x .:? "lambdaFunctionFailedEventAttributes")+                     <*>+                     (x .:? "workflowExecutionCanceledEventAttributes")+                     <*> (x .:? "timerStartedEventAttributes")+                     <*>+                     (x .:? "activityTaskCancelRequestedEventAttributes")+                     <*>+                     (x .:? "workflowExecutionTimedOutEventAttributes")+                     <*>+                     (x .:? "workflowExecutionSignaledEventAttributes")+                     <*> (x .:? "timerFiredEventAttributes")+                     <*> (x .:? "activityTaskFailedEventAttributes")+                     <*>+                     (x .:?+                        "externalWorkflowExecutionSignaledEventAttributes")+                     <*> (x .:? "decisionTaskCompletedEventAttributes")+                     <*>+                     (x .:?+                        "startChildWorkflowExecutionFailedEventAttributes")+                     <*>+                     (x .:? "childWorkflowExecutionFailedEventAttributes")+                     <*>+                     (x .:? "failWorkflowExecutionFailedEventAttributes")+                     <*>+                     (x .:?+                        "continueAsNewWorkflowExecutionFailedEventAttributes")+                     <*>+                     (x .:?+                        "signalExternalWorkflowExecutionInitiatedEventAttributes")+                     <*> (x .:? "lambdaFunctionTimedOutEventAttributes")+                     <*> (x .:? "workflowExecutionFailedEventAttributes")+                     <*>+                     (x .:?+                        "workflowExecutionContinuedAsNewEventAttributes")+                     <*>+                     (x .:?+                        "externalWorkflowExecutionCancelRequestedEventAttributes")+                     <*> (x .: "eventTimestamp")+                     <*> (x .: "eventType")+                     <*> (x .: "eventId"))++instance Hashable HistoryEvent++instance NFData HistoryEvent++-- | Provides details for the @LambdaFunctionCompleted@ event.+--+--+--+-- /See:/ 'lambdaFunctionCompletedEventAttributes' smart constructor.+data LambdaFunctionCompletedEventAttributes = LambdaFunctionCompletedEventAttributes'+    { _lfceaResult           :: !(Maybe Text)+    , _lfceaScheduledEventId :: !Integer+    , _lfceaStartedEventId   :: !Integer+    } deriving (Eq,Read,Show,Data,Typeable,Generic)++-- | Creates a value of 'LambdaFunctionCompletedEventAttributes' with the minimum fields required to make a request.+--+-- Use one of the following lenses to modify other fields as desired:+--+-- * 'lfceaResult' - The result of the function execution (if any).+--+-- * 'lfceaScheduledEventId' - The ID of the @LambdaFunctionScheduled@ event that was recorded when this AWS Lambda function was scheduled. This information can be useful for diagnosing problems by tracing back the chain of events leading up to this event.+--+-- * 'lfceaStartedEventId' - The ID of the @LambdaFunctionStarted@ event recorded in the history.+lambdaFunctionCompletedEventAttributes+    :: Integer -- ^ 'lfceaScheduledEventId'+    -> Integer -- ^ 'lfceaStartedEventId'+    -> LambdaFunctionCompletedEventAttributes+lambdaFunctionCompletedEventAttributes pScheduledEventId_ pStartedEventId_ =+    LambdaFunctionCompletedEventAttributes'+    { _lfceaResult = Nothing+    , _lfceaScheduledEventId = pScheduledEventId_+    , _lfceaStartedEventId = pStartedEventId_+    }++-- | The result of the function execution (if any).+lfceaResult :: Lens' LambdaFunctionCompletedEventAttributes (Maybe Text)+lfceaResult = lens _lfceaResult (\ s a -> s{_lfceaResult = a});++-- | The ID of the @LambdaFunctionScheduled@ event that was recorded when this AWS Lambda function was scheduled. This information can be useful for diagnosing problems by tracing back the chain of events leading up to this event.+lfceaScheduledEventId :: Lens' LambdaFunctionCompletedEventAttributes Integer+lfceaScheduledEventId = lens _lfceaScheduledEventId (\ s a -> s{_lfceaScheduledEventId = a});++-- | The ID of the @LambdaFunctionStarted@ event recorded in the history.+lfceaStartedEventId :: Lens' LambdaFunctionCompletedEventAttributes Integer+lfceaStartedEventId = lens _lfceaStartedEventId (\ s a -> s{_lfceaStartedEventId = a});++instance FromJSON+         LambdaFunctionCompletedEventAttributes where+        parseJSON+          = withObject "LambdaFunctionCompletedEventAttributes"+              (\ x ->+                 LambdaFunctionCompletedEventAttributes' <$>+                   (x .:? "result") <*> (x .: "scheduledEventId") <*>+                     (x .: "startedEventId"))++instance Hashable+         LambdaFunctionCompletedEventAttributes++instance NFData+         LambdaFunctionCompletedEventAttributes++-- | Provides details for the @LambdaFunctionFailed@ event.+--+--+--+-- /See:/ 'lambdaFunctionFailedEventAttributes' smart constructor.+data LambdaFunctionFailedEventAttributes = LambdaFunctionFailedEventAttributes'+    { _lffeaReason           :: !(Maybe Text)+    , _lffeaDetails          :: !(Maybe Text)+    , _lffeaScheduledEventId :: !Integer+    , _lffeaStartedEventId   :: !Integer+    } deriving (Eq,Read,Show,Data,Typeable,Generic)++-- | Creates a value of 'LambdaFunctionFailedEventAttributes' with the minimum fields required to make a request.+--+-- Use one of the following lenses to modify other fields as desired:+--+-- * 'lffeaReason' - The reason provided for the failure (if any).+--+-- * 'lffeaDetails' - The details of the failure (if any).+--+-- * 'lffeaScheduledEventId' - The ID of the @LambdaFunctionScheduled@ event that was recorded when this AWS Lambda function was scheduled. This information can be useful for diagnosing problems by tracing back the chain of events leading up to this event.+--+-- * 'lffeaStartedEventId' - The ID of the @LambdaFunctionStarted@ event recorded in the history.+lambdaFunctionFailedEventAttributes+    :: Integer -- ^ 'lffeaScheduledEventId'+    -> Integer -- ^ 'lffeaStartedEventId'+    -> LambdaFunctionFailedEventAttributes+lambdaFunctionFailedEventAttributes pScheduledEventId_ pStartedEventId_ =+    LambdaFunctionFailedEventAttributes'+    { _lffeaReason = Nothing+    , _lffeaDetails = Nothing+    , _lffeaScheduledEventId = pScheduledEventId_+    , _lffeaStartedEventId = pStartedEventId_+    }++-- | The reason provided for the failure (if any).+lffeaReason :: Lens' LambdaFunctionFailedEventAttributes (Maybe Text)+lffeaReason = lens _lffeaReason (\ s a -> s{_lffeaReason = a});++-- | The details of the failure (if any).+lffeaDetails :: Lens' LambdaFunctionFailedEventAttributes (Maybe Text)+lffeaDetails = lens _lffeaDetails (\ s a -> s{_lffeaDetails = a});++-- | The ID of the @LambdaFunctionScheduled@ event that was recorded when this AWS Lambda function was scheduled. This information can be useful for diagnosing problems by tracing back the chain of events leading up to this event.+lffeaScheduledEventId :: Lens' LambdaFunctionFailedEventAttributes Integer+lffeaScheduledEventId = lens _lffeaScheduledEventId (\ s a -> s{_lffeaScheduledEventId = a});++-- | The ID of the @LambdaFunctionStarted@ event recorded in the history.+lffeaStartedEventId :: Lens' LambdaFunctionFailedEventAttributes Integer+lffeaStartedEventId = lens _lffeaStartedEventId (\ s a -> s{_lffeaStartedEventId = a});++instance FromJSON LambdaFunctionFailedEventAttributes+         where+        parseJSON+          = withObject "LambdaFunctionFailedEventAttributes"+              (\ x ->+                 LambdaFunctionFailedEventAttributes' <$>+                   (x .:? "reason") <*> (x .:? "details") <*>+                     (x .: "scheduledEventId")+                     <*> (x .: "startedEventId"))++instance Hashable LambdaFunctionFailedEventAttributes++instance NFData LambdaFunctionFailedEventAttributes++-- | Provides details for the @LambdaFunctionScheduled@ event.+--+--+--+-- /See:/ 'lambdaFunctionScheduledEventAttributes' smart constructor.+data LambdaFunctionScheduledEventAttributes = LambdaFunctionScheduledEventAttributes'+    { _lfseaInput                        :: !(Maybe Text)+    , _lfseaStartToCloseTimeout          :: !(Maybe Text)+    , _lfseaId                           :: !Text+    , _lfseaName                         :: !Text+    , _lfseaDecisionTaskCompletedEventId :: !Integer+    } deriving (Eq,Read,Show,Data,Typeable,Generic)++-- | Creates a value of 'LambdaFunctionScheduledEventAttributes' with the minimum fields required to make a request.+--+-- Use one of the following lenses to modify other fields as desired:+--+-- * 'lfseaInput' - Input provided to the AWS Lambda function.+--+-- * 'lfseaStartToCloseTimeout' - The maximum time, in seconds, that the AWS Lambda function can take to execute from start to close before it is marked as failed.+--+-- * 'lfseaId' - The unique Amazon SWF ID for the AWS Lambda task.+--+-- * 'lfseaName' - The name of the scheduled AWS Lambda function.+--+-- * 'lfseaDecisionTaskCompletedEventId' - The ID of the @DecisionTaskCompleted@ event for the decision that resulted in the scheduling of this AWS Lambda function. This information can be useful for diagnosing problems by tracing back the chain of events leading up to this event.+lambdaFunctionScheduledEventAttributes+    :: Text -- ^ 'lfseaId'+    -> Text -- ^ 'lfseaName'+    -> Integer -- ^ 'lfseaDecisionTaskCompletedEventId'+    -> LambdaFunctionScheduledEventAttributes+lambdaFunctionScheduledEventAttributes pId_ pName_ pDecisionTaskCompletedEventId_ =+    LambdaFunctionScheduledEventAttributes'+    { _lfseaInput = Nothing+    , _lfseaStartToCloseTimeout = Nothing+    , _lfseaId = pId_+    , _lfseaName = pName_+    , _lfseaDecisionTaskCompletedEventId = pDecisionTaskCompletedEventId_+    }++-- | Input provided to the AWS Lambda function.+lfseaInput :: Lens' LambdaFunctionScheduledEventAttributes (Maybe Text)+lfseaInput = lens _lfseaInput (\ s a -> s{_lfseaInput = a});++-- | The maximum time, in seconds, that the AWS Lambda function can take to execute from start to close before it is marked as failed.+lfseaStartToCloseTimeout :: Lens' LambdaFunctionScheduledEventAttributes (Maybe Text)+lfseaStartToCloseTimeout = lens _lfseaStartToCloseTimeout (\ s a -> s{_lfseaStartToCloseTimeout = a});++-- | The unique Amazon SWF ID for the AWS Lambda task.+lfseaId :: Lens' LambdaFunctionScheduledEventAttributes Text+lfseaId = lens _lfseaId (\ s a -> s{_lfseaId = a});++-- | The name of the scheduled AWS Lambda function.+lfseaName :: Lens' LambdaFunctionScheduledEventAttributes Text+lfseaName = lens _lfseaName (\ s a -> s{_lfseaName = a});++-- | The ID of the @DecisionTaskCompleted@ event for the decision that resulted in the scheduling of this AWS Lambda function. This information can be useful for diagnosing problems by tracing back the chain of events leading up to this event.+lfseaDecisionTaskCompletedEventId :: Lens' LambdaFunctionScheduledEventAttributes Integer+lfseaDecisionTaskCompletedEventId = lens _lfseaDecisionTaskCompletedEventId (\ s a -> s{_lfseaDecisionTaskCompletedEventId = a});++instance FromJSON+         LambdaFunctionScheduledEventAttributes where+        parseJSON+          = withObject "LambdaFunctionScheduledEventAttributes"+              (\ x ->+                 LambdaFunctionScheduledEventAttributes' <$>+                   (x .:? "input") <*> (x .:? "startToCloseTimeout") <*>+                     (x .: "id")+                     <*> (x .: "name")+                     <*> (x .: "decisionTaskCompletedEventId"))++instance Hashable+         LambdaFunctionScheduledEventAttributes++instance NFData+         LambdaFunctionScheduledEventAttributes++-- | Provides details for the @LambdaFunctionStarted@ event.+--+--+--+-- /See:/ 'lambdaFunctionStartedEventAttributes' smart constructor.+newtype LambdaFunctionStartedEventAttributes = LambdaFunctionStartedEventAttributes'+    { _lfseaScheduledEventId :: Integer+    } deriving (Eq,Read,Show,Data,Typeable,Generic)++-- | Creates a value of 'LambdaFunctionStartedEventAttributes' with the minimum fields required to make a request.+--+-- Use one of the following lenses to modify other fields as desired:+--+-- * 'lfseaScheduledEventId' - The ID of the @LambdaFunctionScheduled@ event that was recorded when this AWS Lambda function was scheduled. This information can be useful for diagnosing problems by tracing back the chain of events leading up to this event.+lambdaFunctionStartedEventAttributes+    :: Integer -- ^ 'lfseaScheduledEventId'+    -> LambdaFunctionStartedEventAttributes+lambdaFunctionStartedEventAttributes pScheduledEventId_ =+    LambdaFunctionStartedEventAttributes'+    { _lfseaScheduledEventId = pScheduledEventId_+    }++-- | The ID of the @LambdaFunctionScheduled@ event that was recorded when this AWS Lambda function was scheduled. This information can be useful for diagnosing problems by tracing back the chain of events leading up to this event.+lfseaScheduledEventId :: Lens' LambdaFunctionStartedEventAttributes Integer+lfseaScheduledEventId = lens _lfseaScheduledEventId (\ s a -> s{_lfseaScheduledEventId = a});++instance FromJSON+         LambdaFunctionStartedEventAttributes where+        parseJSON+          = withObject "LambdaFunctionStartedEventAttributes"+              (\ x ->+                 LambdaFunctionStartedEventAttributes' <$>+                   (x .: "scheduledEventId"))++instance Hashable+         LambdaFunctionStartedEventAttributes++instance NFData LambdaFunctionStartedEventAttributes++-- | Provides details for the @LambdaFunctionTimedOut@ event.+--+--+--+-- /See:/ 'lambdaFunctionTimedOutEventAttributes' smart constructor.+data LambdaFunctionTimedOutEventAttributes = LambdaFunctionTimedOutEventAttributes'+    { _lftoeaTimeoutType      :: !(Maybe LambdaFunctionTimeoutType)+    , _lftoeaScheduledEventId :: !Integer+    , _lftoeaStartedEventId   :: !Integer+    } deriving (Eq,Read,Show,Data,Typeable,Generic)++-- | Creates a value of 'LambdaFunctionTimedOutEventAttributes' with the minimum fields required to make a request.+--+-- Use one of the following lenses to modify other fields as desired:+--+-- * 'lftoeaTimeoutType' - The type of the timeout that caused this event.+--+-- * 'lftoeaScheduledEventId' - The ID of the @LambdaFunctionScheduled@ event that was recorded when this AWS Lambda function was scheduled. This information can be useful for diagnosing problems by tracing back the chain of events leading up to this event.+--+-- * 'lftoeaStartedEventId' - The ID of the @LambdaFunctionStarted@ event recorded in the history.+lambdaFunctionTimedOutEventAttributes+    :: Integer -- ^ 'lftoeaScheduledEventId'+    -> Integer -- ^ 'lftoeaStartedEventId'+    -> LambdaFunctionTimedOutEventAttributes+lambdaFunctionTimedOutEventAttributes pScheduledEventId_ pStartedEventId_ =+    LambdaFunctionTimedOutEventAttributes'+    { _lftoeaTimeoutType = Nothing+    , _lftoeaScheduledEventId = pScheduledEventId_+    , _lftoeaStartedEventId = pStartedEventId_+    }++-- | The type of the timeout that caused this event.+lftoeaTimeoutType :: Lens' LambdaFunctionTimedOutEventAttributes (Maybe LambdaFunctionTimeoutType)+lftoeaTimeoutType = lens _lftoeaTimeoutType (\ s a -> s{_lftoeaTimeoutType = a});++-- | The ID of the @LambdaFunctionScheduled@ event that was recorded when this AWS Lambda function was scheduled. This information can be useful for diagnosing problems by tracing back the chain of events leading up to this event.+lftoeaScheduledEventId :: Lens' LambdaFunctionTimedOutEventAttributes Integer+lftoeaScheduledEventId = lens _lftoeaScheduledEventId (\ s a -> s{_lftoeaScheduledEventId = a});++-- | The ID of the @LambdaFunctionStarted@ event recorded in the history.+lftoeaStartedEventId :: Lens' LambdaFunctionTimedOutEventAttributes Integer+lftoeaStartedEventId = lens _lftoeaStartedEventId (\ s a -> s{_lftoeaStartedEventId = a});++instance FromJSON+         LambdaFunctionTimedOutEventAttributes where+        parseJSON+          = withObject "LambdaFunctionTimedOutEventAttributes"+              (\ x ->+                 LambdaFunctionTimedOutEventAttributes' <$>+                   (x .:? "timeoutType") <*> (x .: "scheduledEventId")+                     <*> (x .: "startedEventId"))++instance Hashable+         LambdaFunctionTimedOutEventAttributes++instance NFData LambdaFunctionTimedOutEventAttributes++-- | Provides details of the @MarkerRecorded@ event.+--+--+--+-- /See:/ 'markerRecordedEventAttributes' smart constructor.+data MarkerRecordedEventAttributes = MarkerRecordedEventAttributes'+    { _mreaDetails                      :: !(Maybe Text)+    , _mreaMarkerName                   :: !Text+    , _mreaDecisionTaskCompletedEventId :: !Integer+    } deriving (Eq,Read,Show,Data,Typeable,Generic)++-- | Creates a value of 'MarkerRecordedEventAttributes' with the minimum fields required to make a request.+--+-- Use one of the following lenses to modify other fields as desired:+--+-- * 'mreaDetails' - Details of the marker (if any).+--+-- * 'mreaMarkerName' - The name of the marker.+--+-- * 'mreaDecisionTaskCompletedEventId' - The ID of the @DecisionTaskCompleted@ event corresponding to the decision task that resulted in the @RecordMarker@ 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.+markerRecordedEventAttributes+    :: Text -- ^ 'mreaMarkerName'+    -> Integer -- ^ 'mreaDecisionTaskCompletedEventId'+    -> MarkerRecordedEventAttributes+markerRecordedEventAttributes pMarkerName_ pDecisionTaskCompletedEventId_ =+    MarkerRecordedEventAttributes'+    { _mreaDetails = Nothing+    , _mreaMarkerName = pMarkerName_+    , _mreaDecisionTaskCompletedEventId = pDecisionTaskCompletedEventId_+    }++-- | Details of the marker (if any).+mreaDetails :: Lens' MarkerRecordedEventAttributes (Maybe Text)+mreaDetails = lens _mreaDetails (\ s a -> s{_mreaDetails = a});++-- | The name of the marker.+mreaMarkerName :: Lens' MarkerRecordedEventAttributes Text+mreaMarkerName = lens _mreaMarkerName (\ s a -> s{_mreaMarkerName = a});++-- | The ID of the @DecisionTaskCompleted@ event corresponding to the decision task that resulted in the @RecordMarker@ 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+mreaDecisionTaskCompletedEventId = lens _mreaDecisionTaskCompletedEventId (\ s a -> s{_mreaDecisionTaskCompletedEventId = a});++instance FromJSON MarkerRecordedEventAttributes where+        parseJSON+          = withObject "MarkerRecordedEventAttributes"+              (\ x ->+                 MarkerRecordedEventAttributes' <$>+                   (x .:? "details") <*> (x .: "markerName") <*>+                     (x .: "decisionTaskCompletedEventId"))++instance Hashable MarkerRecordedEventAttributes++instance NFData MarkerRecordedEventAttributes++-- | Contains the count of tasks in a task list.+--+--+--+-- /See:/ 'pendingTaskCount' smart constructor.+data PendingTaskCount = PendingTaskCount'+    { _ptcTruncated :: !(Maybe Bool)+    , _ptcCount     :: !Nat+    } deriving (Eq,Read,Show,Data,Typeable,Generic)++-- | Creates a value of 'PendingTaskCount' with the minimum fields required to make a request.+--+-- Use one of the following lenses to modify other fields as desired:+--+-- * 'ptcTruncated' - 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.+--+-- * 'ptcCount' - The number of tasks in the task list.+pendingTaskCount+    :: Natural -- ^ 'ptcCount'+    -> PendingTaskCount+pendingTaskCount pCount_ =+    PendingTaskCount'+    { _ptcTruncated = Nothing+    , _ptcCount = _Nat # pCount_+    }++-- | 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)+ptcTruncated = lens _ptcTruncated (\ s a -> s{_ptcTruncated = a});++-- | The number of tasks in the task list.+ptcCount :: Lens' PendingTaskCount Natural+ptcCount = lens _ptcCount (\ s a -> s{_ptcCount = a}) . _Nat;++instance FromJSON PendingTaskCount where+        parseJSON+          = withObject "PendingTaskCount"+              (\ x ->+                 PendingTaskCount' <$>+                   (x .:? "truncated") <*> (x .: "count"))++instance Hashable PendingTaskCount++instance NFData PendingTaskCount++-- | Provides details of the @RecordMarker@ decision.+--+--+-- __Access Control__+--+-- You can use IAM policies to control this decision's access to Amazon SWF resources as follows:+--+--     * Use a @Resource@ element with the domain name to limit the action to only specified domains.    * Use an @Action@ element to allow or deny permission to call this action.    * You cannot use an IAM policy to constrain this action's parameters.+--+-- If the caller does not have sufficient permissions to invoke the action, or the parameter values fall outside the specified constraints, the action fails. The associated event attribute's __cause__ parameter will be set to OPERATION_NOT_PERMITTED. For details and example IAM policies, see <http://docs.aws.amazon.com/amazonswf/latest/developerguide/swf-dev-iam.html Using IAM to Manage Access to Amazon SWF Workflows> .+--+--+-- /See:/ 'recordMarkerDecisionAttributes' smart constructor.+data RecordMarkerDecisionAttributes = RecordMarkerDecisionAttributes'+    { _rmdaDetails    :: !(Maybe Text)+    , _rmdaMarkerName :: !Text+    } deriving (Eq,Read,Show,Data,Typeable,Generic)++-- | Creates a value of 'RecordMarkerDecisionAttributes' with the minimum fields required to make a request.+--+-- Use one of the following lenses to modify other fields as desired:+--+-- * 'rmdaDetails' - /Optional./ details of the marker.+--+-- * 'rmdaMarkerName' - __Required.__ The name of the marker.+recordMarkerDecisionAttributes+    :: Text -- ^ 'rmdaMarkerName'+    -> RecordMarkerDecisionAttributes+recordMarkerDecisionAttributes pMarkerName_ =+    RecordMarkerDecisionAttributes'+    { _rmdaDetails = Nothing+    , _rmdaMarkerName = pMarkerName_+    }++-- | /Optional./ details of the marker.+rmdaDetails :: Lens' RecordMarkerDecisionAttributes (Maybe Text)+rmdaDetails = lens _rmdaDetails (\ s a -> s{_rmdaDetails = a});++-- | __Required.__ The name of the marker.+rmdaMarkerName :: Lens' RecordMarkerDecisionAttributes Text+rmdaMarkerName = lens _rmdaMarkerName (\ s a -> s{_rmdaMarkerName = a});++instance Hashable RecordMarkerDecisionAttributes++instance NFData RecordMarkerDecisionAttributes++instance ToJSON RecordMarkerDecisionAttributes where+        toJSON RecordMarkerDecisionAttributes'{..}+          = object+              (catMaybes+                 [("details" .=) <$> _rmdaDetails,+                  Just ("markerName" .= _rmdaMarkerName)])++-- | Provides details of the @RecordMarkerFailed@ event.+--+--+--+-- /See:/ 'recordMarkerFailedEventAttributes' smart constructor.+data RecordMarkerFailedEventAttributes = RecordMarkerFailedEventAttributes'+    { _rmfeaMarkerName                   :: !Text+    , _rmfeaCause                        :: !RecordMarkerFailedCause+    , _rmfeaDecisionTaskCompletedEventId :: !Integer+    } deriving (Eq,Read,Show,Data,Typeable,Generic)++-- | Creates a value of 'RecordMarkerFailedEventAttributes' with the minimum fields required to make a request.+--+-- Use one of the following lenses to modify other fields as desired:+--+-- * 'rmfeaMarkerName' - The marker's name.+--+-- * 'rmfeaCause' - The cause of the failure. This information is generated by the system and can be useful for diagnostic purposes.+--+-- * 'rmfeaDecisionTaskCompletedEventId' - The ID of the @DecisionTaskCompleted@ event corresponding to the decision task that resulted in the @RecordMarkerFailed@ 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.+recordMarkerFailedEventAttributes+    :: Text -- ^ 'rmfeaMarkerName'+    -> RecordMarkerFailedCause -- ^ 'rmfeaCause'+    -> Integer -- ^ 'rmfeaDecisionTaskCompletedEventId'+    -> RecordMarkerFailedEventAttributes+recordMarkerFailedEventAttributes pMarkerName_ pCause_ pDecisionTaskCompletedEventId_ =+    RecordMarkerFailedEventAttributes'+    { _rmfeaMarkerName = pMarkerName_+    , _rmfeaCause = pCause_+    , _rmfeaDecisionTaskCompletedEventId = pDecisionTaskCompletedEventId_+    }++-- | The marker's name.+rmfeaMarkerName :: Lens' RecordMarkerFailedEventAttributes Text+rmfeaMarkerName = lens _rmfeaMarkerName (\ s a -> s{_rmfeaMarkerName = a});++-- | The cause of the failure. This information is generated by the system and can be useful for diagnostic purposes.+rmfeaCause :: Lens' RecordMarkerFailedEventAttributes RecordMarkerFailedCause+rmfeaCause = lens _rmfeaCause (\ s a -> s{_rmfeaCause = a});++-- | The ID of the @DecisionTaskCompleted@ event corresponding to the decision task that resulted in the @RecordMarkerFailed@ 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+rmfeaDecisionTaskCompletedEventId = lens _rmfeaDecisionTaskCompletedEventId (\ s a -> s{_rmfeaDecisionTaskCompletedEventId = a});++instance FromJSON RecordMarkerFailedEventAttributes+         where+        parseJSON+          = withObject "RecordMarkerFailedEventAttributes"+              (\ x ->+                 RecordMarkerFailedEventAttributes' <$>+                   (x .: "markerName") <*> (x .: "cause") <*>+                     (x .: "decisionTaskCompletedEventId"))++instance Hashable RecordMarkerFailedEventAttributes++instance NFData RecordMarkerFailedEventAttributes++-- | Provides details of the @RequestCancelActivityTask@ decision.+--+--+-- __Access Control__+--+-- You can use IAM policies to control this decision's access to Amazon SWF resources as follows:+--+--     * Use a @Resource@ element with the domain name to limit the action to only specified domains.    * Use an @Action@ element to allow or deny permission to call this action.    * You cannot use an IAM policy to constrain this action's parameters.+--+-- If the caller does not have sufficient permissions to invoke the action, or the parameter values fall outside the specified constraints, the action fails. The associated event attribute's __cause__ parameter will be set to OPERATION_NOT_PERMITTED. For details and example IAM policies, see <http://docs.aws.amazon.com/amazonswf/latest/developerguide/swf-dev-iam.html Using IAM to Manage Access to Amazon SWF Workflows> .+--+--+-- /See:/ 'requestCancelActivityTaskDecisionAttributes' smart constructor.+newtype RequestCancelActivityTaskDecisionAttributes = RequestCancelActivityTaskDecisionAttributes'+    { _rcatdaActivityId :: Text+    } deriving (Eq,Read,Show,Data,Typeable,Generic)++-- | Creates a value of 'RequestCancelActivityTaskDecisionAttributes' with the minimum fields required to make a request.+--+-- Use one of the following lenses to modify other fields as desired:+--+-- * 'rcatdaActivityId' - The @activityId@ of the activity task to be canceled.+requestCancelActivityTaskDecisionAttributes+    :: Text -- ^ 'rcatdaActivityId'+    -> RequestCancelActivityTaskDecisionAttributes+requestCancelActivityTaskDecisionAttributes pActivityId_ =+    RequestCancelActivityTaskDecisionAttributes'+    { _rcatdaActivityId = pActivityId_+    }++-- | The @activityId@ of the activity task to be canceled.+rcatdaActivityId :: Lens' RequestCancelActivityTaskDecisionAttributes Text+rcatdaActivityId = lens _rcatdaActivityId (\ s a -> s{_rcatdaActivityId = a});++instance Hashable+         RequestCancelActivityTaskDecisionAttributes++instance NFData+         RequestCancelActivityTaskDecisionAttributes++instance ToJSON+         RequestCancelActivityTaskDecisionAttributes where+        toJSON+          RequestCancelActivityTaskDecisionAttributes'{..}+          = object+              (catMaybes+                 [Just ("activityId" .= _rcatdaActivityId)])++-- | Provides details of the @RequestCancelActivityTaskFailed@ event.+--+--+--+-- /See:/ 'requestCancelActivityTaskFailedEventAttributes' smart constructor.+data RequestCancelActivityTaskFailedEventAttributes = RequestCancelActivityTaskFailedEventAttributes'+    { _rcatfeaActivityId                   :: !Text+    , _rcatfeaCause                        :: !RequestCancelActivityTaskFailedCause+    , _rcatfeaDecisionTaskCompletedEventId :: !Integer+    } deriving (Eq,Read,Show,Data,Typeable,Generic)++-- | Creates a value of 'RequestCancelActivityTaskFailedEventAttributes' with the minimum fields required to make a request.+--+-- Use one of the following lenses to modify other fields as desired:+--+-- * 'rcatfeaActivityId' - The activityId provided in the @RequestCancelActivityTask@ decision that failed.+--+-- * 'rcatfeaCause' - The cause of the failure. This information is generated by the system and can be useful for diagnostic purposes.+--+-- * 'rcatfeaDecisionTaskCompletedEventId' - The ID of the @DecisionTaskCompleted@ event corresponding to the decision task that resulted in the @RequestCancelActivityTask@ 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.+requestCancelActivityTaskFailedEventAttributes+    :: Text -- ^ 'rcatfeaActivityId'+    -> RequestCancelActivityTaskFailedCause -- ^ 'rcatfeaCause'+    -> Integer -- ^ 'rcatfeaDecisionTaskCompletedEventId'+    -> RequestCancelActivityTaskFailedEventAttributes+requestCancelActivityTaskFailedEventAttributes pActivityId_ pCause_ pDecisionTaskCompletedEventId_ =+    RequestCancelActivityTaskFailedEventAttributes'+    { _rcatfeaActivityId = pActivityId_+    , _rcatfeaCause = pCause_+    , _rcatfeaDecisionTaskCompletedEventId = pDecisionTaskCompletedEventId_+    }++-- | The activityId provided in the @RequestCancelActivityTask@ decision that failed.+rcatfeaActivityId :: Lens' RequestCancelActivityTaskFailedEventAttributes Text+rcatfeaActivityId = lens _rcatfeaActivityId (\ s a -> s{_rcatfeaActivityId = a});++-- | The cause of the failure. This information is generated by the system and can be useful for diagnostic purposes.+rcatfeaCause :: Lens' RequestCancelActivityTaskFailedEventAttributes RequestCancelActivityTaskFailedCause+rcatfeaCause = lens _rcatfeaCause (\ s a -> s{_rcatfeaCause = a});++-- | The ID of the @DecisionTaskCompleted@ event corresponding to the decision task that resulted in the @RequestCancelActivityTask@ 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+rcatfeaDecisionTaskCompletedEventId = lens _rcatfeaDecisionTaskCompletedEventId (\ s a -> s{_rcatfeaDecisionTaskCompletedEventId = a});++instance FromJSON+         RequestCancelActivityTaskFailedEventAttributes where+        parseJSON+          = withObject+              "RequestCancelActivityTaskFailedEventAttributes"+              (\ x ->+                 RequestCancelActivityTaskFailedEventAttributes' <$>+                   (x .: "activityId") <*> (x .: "cause") <*>+                     (x .: "decisionTaskCompletedEventId"))++instance Hashable+         RequestCancelActivityTaskFailedEventAttributes++instance NFData+         RequestCancelActivityTaskFailedEventAttributes++-- | Provides details of the @RequestCancelExternalWorkflowExecution@ decision.+--+--+-- __Access Control__+--+-- You can use IAM policies to control this decision's access to Amazon SWF resources as follows:+--+--     * Use a @Resource@ element with the domain name to limit the action to only specified domains.    * Use an @Action@ element to allow or deny permission to call this action.    * You cannot use an IAM policy to constrain this action's parameters.+--+-- If the caller does not have sufficient permissions to invoke the action, or the parameter values fall outside the specified constraints, the action fails. The associated event attribute's __cause__ parameter will be set to OPERATION_NOT_PERMITTED. For details and example IAM policies, see <http://docs.aws.amazon.com/amazonswf/latest/developerguide/swf-dev-iam.html Using IAM to Manage Access to Amazon SWF Workflows> .+--+--+-- /See:/ 'requestCancelExternalWorkflowExecutionDecisionAttributes' smart constructor.+data RequestCancelExternalWorkflowExecutionDecisionAttributes = RequestCancelExternalWorkflowExecutionDecisionAttributes'+    { _rcewedaControl    :: !(Maybe Text)+    , _rcewedaRunId      :: !(Maybe Text)+    , _rcewedaWorkflowId :: !Text+    } deriving (Eq,Read,Show,Data,Typeable,Generic)++-- | Creates a value of 'RequestCancelExternalWorkflowExecutionDecisionAttributes' with the minimum fields required to make a request.+--+-- Use one of the following lenses to modify other fields as desired:+--+-- * 'rcewedaControl' - /Optional./ Data attached to the event that can be used by the decider in subsequent workflow tasks.+--+-- * 'rcewedaRunId' - The @runId@ of the external workflow execution to cancel.+--+-- * 'rcewedaWorkflowId' - __Required.__ The @workflowId@ of the external workflow execution to cancel.+requestCancelExternalWorkflowExecutionDecisionAttributes+    :: Text -- ^ 'rcewedaWorkflowId'+    -> RequestCancelExternalWorkflowExecutionDecisionAttributes+requestCancelExternalWorkflowExecutionDecisionAttributes pWorkflowId_ =+    RequestCancelExternalWorkflowExecutionDecisionAttributes'+    { _rcewedaControl = Nothing+    , _rcewedaRunId = Nothing+    , _rcewedaWorkflowId = pWorkflowId_+    }++-- | /Optional./ Data attached to the event that can be used by the decider in subsequent workflow tasks.+rcewedaControl :: Lens' RequestCancelExternalWorkflowExecutionDecisionAttributes (Maybe Text)+rcewedaControl = lens _rcewedaControl (\ s a -> s{_rcewedaControl = a});++-- | The @runId@ of the external workflow execution to cancel.+rcewedaRunId :: Lens' RequestCancelExternalWorkflowExecutionDecisionAttributes (Maybe Text)+rcewedaRunId = lens _rcewedaRunId (\ s a -> s{_rcewedaRunId = a});++-- | __Required.__ The @workflowId@ of the external workflow execution to cancel.+rcewedaWorkflowId :: Lens' RequestCancelExternalWorkflowExecutionDecisionAttributes Text+rcewedaWorkflowId = lens _rcewedaWorkflowId (\ s a -> s{_rcewedaWorkflowId = a});++instance Hashable+         RequestCancelExternalWorkflowExecutionDecisionAttributes++instance NFData+         RequestCancelExternalWorkflowExecutionDecisionAttributes++instance ToJSON+         RequestCancelExternalWorkflowExecutionDecisionAttributes+         where+        toJSON+          RequestCancelExternalWorkflowExecutionDecisionAttributes'{..}+          = object+              (catMaybes+                 [("control" .=) <$> _rcewedaControl,+                  ("runId" .=) <$> _rcewedaRunId,+                  Just ("workflowId" .= _rcewedaWorkflowId)])++-- | Provides details of the @RequestCancelExternalWorkflowExecutionFailed@ event.+--+--+--+-- /See:/ 'requestCancelExternalWorkflowExecutionFailedEventAttributes' smart constructor.+data RequestCancelExternalWorkflowExecutionFailedEventAttributes = RequestCancelExternalWorkflowExecutionFailedEventAttributes'+    { _rcewefeaControl                      :: !(Maybe Text)+    , _rcewefeaRunId                        :: !(Maybe Text)+    , _rcewefeaWorkflowId                   :: !Text+    , _rcewefeaCause                        :: !RequestCancelExternalWorkflowExecutionFailedCause+    , _rcewefeaInitiatedEventId             :: !Integer+    , _rcewefeaDecisionTaskCompletedEventId :: !Integer+    } deriving (Eq,Read,Show,Data,Typeable,Generic)++-- | Creates a value of 'RequestCancelExternalWorkflowExecutionFailedEventAttributes' with the minimum fields required to make a request.+--+-- Use one of the following lenses to modify other fields as desired:+--+-- * 'rcewefeaControl' - Undocumented member.+--+-- * 'rcewefeaRunId' - The @runId@ of the external workflow execution.+--+-- * 'rcewefeaWorkflowId' - The @workflowId@ of the external workflow to which the cancel request was to be delivered.+--+-- * 'rcewefeaCause' - The cause of the failure. This information is generated by the system and can be useful for diagnostic purposes.+--+-- * 'rcewefeaInitiatedEventId' - The ID of the @RequestCancelExternalWorkflowExecutionInitiated@ event corresponding to the @RequestCancelExternalWorkflowExecution@ 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.+--+-- * 'rcewefeaDecisionTaskCompletedEventId' - The ID of the @DecisionTaskCompleted@ event corresponding to the decision task that resulted in the @RequestCancelExternalWorkflowExecution@ 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.+requestCancelExternalWorkflowExecutionFailedEventAttributes+    :: Text -- ^ 'rcewefeaWorkflowId'+    -> RequestCancelExternalWorkflowExecutionFailedCause -- ^ 'rcewefeaCause'+    -> Integer -- ^ 'rcewefeaInitiatedEventId'+    -> Integer -- ^ 'rcewefeaDecisionTaskCompletedEventId'+    -> RequestCancelExternalWorkflowExecutionFailedEventAttributes+requestCancelExternalWorkflowExecutionFailedEventAttributes pWorkflowId_ pCause_ pInitiatedEventId_ pDecisionTaskCompletedEventId_ =+    RequestCancelExternalWorkflowExecutionFailedEventAttributes'+    { _rcewefeaControl = Nothing+    , _rcewefeaRunId = Nothing+    , _rcewefeaWorkflowId = pWorkflowId_+    , _rcewefeaCause = pCause_+    , _rcewefeaInitiatedEventId = pInitiatedEventId_+    , _rcewefeaDecisionTaskCompletedEventId = pDecisionTaskCompletedEventId_+    }++-- | Undocumented member.+rcewefeaControl :: Lens' RequestCancelExternalWorkflowExecutionFailedEventAttributes (Maybe Text)+rcewefeaControl = lens _rcewefeaControl (\ s a -> s{_rcewefeaControl = a});++-- | The @runId@ of the external workflow execution.+rcewefeaRunId :: Lens' RequestCancelExternalWorkflowExecutionFailedEventAttributes (Maybe Text)+rcewefeaRunId = lens _rcewefeaRunId (\ s a -> s{_rcewefeaRunId = a});++-- | The @workflowId@ of the external workflow to which the cancel request was to be delivered.+rcewefeaWorkflowId :: Lens' RequestCancelExternalWorkflowExecutionFailedEventAttributes Text+rcewefeaWorkflowId = lens _rcewefeaWorkflowId (\ s a -> s{_rcewefeaWorkflowId = a});++-- | The cause of the failure. This information is generated by the system and can be useful for diagnostic purposes.+rcewefeaCause :: Lens' RequestCancelExternalWorkflowExecutionFailedEventAttributes RequestCancelExternalWorkflowExecutionFailedCause+rcewefeaCause = lens _rcewefeaCause (\ s a -> s{_rcewefeaCause = a});++-- | The ID of the @RequestCancelExternalWorkflowExecutionInitiated@ event corresponding to the @RequestCancelExternalWorkflowExecution@ 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+rcewefeaInitiatedEventId = lens _rcewefeaInitiatedEventId (\ s a -> s{_rcewefeaInitiatedEventId = a});++-- | The ID of the @DecisionTaskCompleted@ event corresponding to the decision task that resulted in the @RequestCancelExternalWorkflowExecution@ 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+rcewefeaDecisionTaskCompletedEventId = lens _rcewefeaDecisionTaskCompletedEventId (\ s a -> s{_rcewefeaDecisionTaskCompletedEventId = a});++instance FromJSON+         RequestCancelExternalWorkflowExecutionFailedEventAttributes+         where+        parseJSON+          = withObject+              "RequestCancelExternalWorkflowExecutionFailedEventAttributes"+              (\ x ->+                 RequestCancelExternalWorkflowExecutionFailedEventAttributes'+                   <$>+                   (x .:? "control") <*> (x .:? "runId") <*>+                     (x .: "workflowId")+                     <*> (x .: "cause")+                     <*> (x .: "initiatedEventId")+                     <*> (x .: "decisionTaskCompletedEventId"))++instance Hashable+         RequestCancelExternalWorkflowExecutionFailedEventAttributes++instance NFData+         RequestCancelExternalWorkflowExecutionFailedEventAttributes++-- | Provides details of the @RequestCancelExternalWorkflowExecutionInitiated@ event.+--+--+--+-- /See:/ 'requestCancelExternalWorkflowExecutionInitiatedEventAttributes' smart constructor.+data RequestCancelExternalWorkflowExecutionInitiatedEventAttributes = RequestCancelExternalWorkflowExecutionInitiatedEventAttributes'+    { _rceweieaControl                      :: !(Maybe Text)+    , _rceweieaRunId                        :: !(Maybe Text)+    , _rceweieaWorkflowId                   :: !Text+    , _rceweieaDecisionTaskCompletedEventId :: !Integer+    } deriving (Eq,Read,Show,Data,Typeable,Generic)++-- | Creates a value of 'RequestCancelExternalWorkflowExecutionInitiatedEventAttributes' with the minimum fields required to make a request.+--+-- Use one of the following lenses to modify other fields as desired:+--+-- * 'rceweieaControl' - /Optional./ Data attached to the event that can be used by the decider in subsequent workflow tasks.+--+-- * 'rceweieaRunId' - The @runId@ of the external workflow execution to be canceled.+--+-- * 'rceweieaWorkflowId' - The @workflowId@ of the external workflow execution to be canceled.+--+-- * 'rceweieaDecisionTaskCompletedEventId' - The ID of the @DecisionTaskCompleted@ event corresponding to the decision task that resulted in the @RequestCancelExternalWorkflowExecution@ 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.+requestCancelExternalWorkflowExecutionInitiatedEventAttributes+    :: Text -- ^ 'rceweieaWorkflowId'+    -> Integer -- ^ 'rceweieaDecisionTaskCompletedEventId'+    -> RequestCancelExternalWorkflowExecutionInitiatedEventAttributes+requestCancelExternalWorkflowExecutionInitiatedEventAttributes pWorkflowId_ pDecisionTaskCompletedEventId_ =+    RequestCancelExternalWorkflowExecutionInitiatedEventAttributes'+    { _rceweieaControl = Nothing+    , _rceweieaRunId = Nothing+    , _rceweieaWorkflowId = pWorkflowId_+    , _rceweieaDecisionTaskCompletedEventId = pDecisionTaskCompletedEventId_+    }++-- | /Optional./ Data attached to the event that can be used by the decider in subsequent workflow tasks.+rceweieaControl :: Lens' RequestCancelExternalWorkflowExecutionInitiatedEventAttributes (Maybe Text)+rceweieaControl = lens _rceweieaControl (\ s a -> s{_rceweieaControl = a});++-- | The @runId@ of the external workflow execution to be canceled.+rceweieaRunId :: Lens' RequestCancelExternalWorkflowExecutionInitiatedEventAttributes (Maybe Text)+rceweieaRunId = lens _rceweieaRunId (\ s a -> s{_rceweieaRunId = a});++-- | The @workflowId@ of the external workflow execution to be canceled.+rceweieaWorkflowId :: Lens' RequestCancelExternalWorkflowExecutionInitiatedEventAttributes Text+rceweieaWorkflowId = lens _rceweieaWorkflowId (\ s a -> s{_rceweieaWorkflowId = a});++-- | The ID of the @DecisionTaskCompleted@ event corresponding to the decision task that resulted in the @RequestCancelExternalWorkflowExecution@ 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+rceweieaDecisionTaskCompletedEventId = lens _rceweieaDecisionTaskCompletedEventId (\ s a -> s{_rceweieaDecisionTaskCompletedEventId = a});++instance FromJSON+         RequestCancelExternalWorkflowExecutionInitiatedEventAttributes+         where+        parseJSON+          = withObject+              "RequestCancelExternalWorkflowExecutionInitiatedEventAttributes"+              (\ x ->+                 RequestCancelExternalWorkflowExecutionInitiatedEventAttributes'+                   <$>+                   (x .:? "control") <*> (x .:? "runId") <*>+                     (x .: "workflowId")+                     <*> (x .: "decisionTaskCompletedEventId"))++instance Hashable+         RequestCancelExternalWorkflowExecutionInitiatedEventAttributes++instance NFData+         RequestCancelExternalWorkflowExecutionInitiatedEventAttributes++-- | Provides details of the @ScheduleActivityTask@ decision.+--+--+-- __Access Control__+--+-- You can use IAM policies to control this decision's access to Amazon SWF resources as follows:+--+--     * Use a @Resource@ element with the domain name to limit the action to only specified domains.    * Use an @Action@ element to allow or deny permission to call this action.    * Constrain the following parameters by using a @Condition@ element with the appropriate keys.     * @activityType.name@ : String constraint. The key is @swf:activityType.name@ .    * @activityType.version@ : String constraint. The key is @swf:activityType.version@ .    * @taskList@ : String constraint. The key is @swf:taskList.name@ .+--+--+--+-- If the caller does not have sufficient permissions to invoke the action, or the parameter values fall outside the specified constraints, the action fails. The associated event attribute's __cause__ parameter will be set to OPERATION_NOT_PERMITTED. For details and example IAM policies, see <http://docs.aws.amazon.com/amazonswf/latest/developerguide/swf-dev-iam.html Using IAM to Manage Access to Amazon SWF Workflows> .+--+--+-- /See:/ 'scheduleActivityTaskDecisionAttributes' smart constructor.+data ScheduleActivityTaskDecisionAttributes = ScheduleActivityTaskDecisionAttributes'+    { _satdaControl                :: !(Maybe Text)+    , _satdaHeartbeatTimeout       :: !(Maybe Text)+    , _satdaScheduleToCloseTimeout :: !(Maybe Text)+    , _satdaInput                  :: !(Maybe Text)+    , _satdaTaskList               :: !(Maybe TaskList)+    , _satdaTaskPriority           :: !(Maybe Text)+    , _satdaScheduleToStartTimeout :: !(Maybe Text)+    , _satdaStartToCloseTimeout    :: !(Maybe Text)+    , _satdaActivityType           :: !ActivityType+    , _satdaActivityId             :: !Text+    } deriving (Eq,Read,Show,Data,Typeable,Generic)++-- | Creates a value of 'ScheduleActivityTaskDecisionAttributes' with the minimum fields required to make a request.+--+-- Use one of the following lenses to modify other fields as desired:+--+-- * 'satdaControl' - /Optional./ Data attached to the event that can be used by the decider in subsequent workflow tasks. This data is not sent to the activity.+--+-- * 'satdaHeartbeatTimeout' - If set, specifies the maximum time before which a worker processing a task of this type must report progress by calling 'RecordActivityTaskHeartbeat' . 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 will be ignored. This overrides the default heartbeat timeout specified when registering the activity type using 'RegisterActivityType' . The duration is specified in seconds; an integer greater than or equal to 0. The value "NONE" can be used to specify unlimited duration.+--+-- * 'satdaScheduleToCloseTimeout' - The maximum duration for this activity task. The duration is specified in seconds; an integer greater than or equal to 0. The value "NONE" can be used to specify unlimited duration.+--+-- * 'satdaInput' - The input provided to the activity task.+--+-- * 'satdaTaskList' - If set, specifies the name of the task list in which to schedule the activity task. If not specified, the @defaultTaskList@ registered with the activity type will be used. The specified string must not start or end with whitespace. It must not contain a @:@ (colon), @/@ (slash), @|@ (vertical bar), or any control characters (\u0000-\u001f | \u007f - \u009f). Also, it must not contain the literal string quotarnquot.+--+-- * 'satdaTaskPriority' - /Optional./ 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 'RegisterActivityType' . Valid values are integers that range from Java's @Integer.MIN_VALUE@ (-2147483648) to @Integer.MAX_VALUE@ (2147483647). Higher numbers indicate higher priority. For more information about setting task priority, see <http://docs.aws.amazon.com/amazonswf/latest/developerguide/programming-priority.html Setting Task Priority> in the /Amazon Simple Workflow Developer Guide/ .+--+-- * 'satdaScheduleToStartTimeout' - /Optional./ 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 'RegisterActivityType' . The duration is specified in seconds; an integer greater than or equal to 0. The value "NONE" can be used to specify unlimited duration.+--+-- * 'satdaStartToCloseTimeout' - 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 'RegisterActivityType' . The duration is specified in seconds; an integer greater than or equal to 0. The value "NONE" can be used to specify unlimited duration.+--+-- * 'satdaActivityType' - __Required.__ The type of the activity task to schedule.+--+-- * 'satdaActivityId' - __Required.__ The @activityId@ of the activity task. The specified string must not start or end with whitespace. It must not contain a @:@ (colon), @/@ (slash), @|@ (vertical bar), or any control characters (\u0000-\u001f | \u007f - \u009f). Also, it must not contain the literal string quotarnquot.+scheduleActivityTaskDecisionAttributes+    :: ActivityType -- ^ 'satdaActivityType'+    -> Text -- ^ 'satdaActivityId'+    -> ScheduleActivityTaskDecisionAttributes+scheduleActivityTaskDecisionAttributes pActivityType_ pActivityId_ =+    ScheduleActivityTaskDecisionAttributes'+    { _satdaControl = Nothing+    , _satdaHeartbeatTimeout = Nothing+    , _satdaScheduleToCloseTimeout = Nothing+    , _satdaInput = Nothing+    , _satdaTaskList = Nothing+    , _satdaTaskPriority = Nothing+    , _satdaScheduleToStartTimeout = Nothing+    , _satdaStartToCloseTimeout = Nothing+    , _satdaActivityType = pActivityType_+    , _satdaActivityId = pActivityId_+    }++-- | /Optional./ Data attached to the event that can be used by the decider in subsequent workflow tasks. This data is not sent to the activity.+satdaControl :: Lens' ScheduleActivityTaskDecisionAttributes (Maybe Text)+satdaControl = lens _satdaControl (\ s a -> s{_satdaControl = a});++-- | If set, specifies the maximum time before which a worker processing a task of this type must report progress by calling 'RecordActivityTaskHeartbeat' . 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 will be ignored. This overrides the default heartbeat timeout specified when registering the activity type using 'RegisterActivityType' . The duration is specified in seconds; an integer greater than or equal to 0. The value "NONE" can be used to specify unlimited duration.+satdaHeartbeatTimeout :: Lens' ScheduleActivityTaskDecisionAttributes (Maybe Text)+satdaHeartbeatTimeout = lens _satdaHeartbeatTimeout (\ s a -> s{_satdaHeartbeatTimeout = a});++-- | The maximum duration for this activity task. The duration is specified in seconds; an integer greater than or equal to 0. The value "NONE" can be used to specify unlimited duration.+satdaScheduleToCloseTimeout :: Lens' ScheduleActivityTaskDecisionAttributes (Maybe Text)+satdaScheduleToCloseTimeout = lens _satdaScheduleToCloseTimeout (\ s a -> s{_satdaScheduleToCloseTimeout = a});++-- | The input provided to the activity task.+satdaInput :: Lens' ScheduleActivityTaskDecisionAttributes (Maybe Text)+satdaInput = lens _satdaInput (\ s a -> s{_satdaInput = a});++-- | If set, specifies the name of the task list in which to schedule the activity task. If not specified, the @defaultTaskList@ registered with the activity type will be used. The specified string must not start or end with whitespace. It must not contain a @:@ (colon), @/@ (slash), @|@ (vertical bar), or any control characters (\u0000-\u001f | \u007f - \u009f). Also, it must not contain the literal string quotarnquot.+satdaTaskList :: Lens' ScheduleActivityTaskDecisionAttributes (Maybe TaskList)+satdaTaskList = lens _satdaTaskList (\ s a -> s{_satdaTaskList = a});++-- | /Optional./ 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 'RegisterActivityType' . Valid values are integers that range from Java's @Integer.MIN_VALUE@ (-2147483648) to @Integer.MAX_VALUE@ (2147483647). Higher numbers indicate higher priority. For more information about setting task priority, see <http://docs.aws.amazon.com/amazonswf/latest/developerguide/programming-priority.html Setting Task Priority> in the /Amazon Simple Workflow Developer Guide/ .+satdaTaskPriority :: Lens' ScheduleActivityTaskDecisionAttributes (Maybe Text)+satdaTaskPriority = lens _satdaTaskPriority (\ s a -> s{_satdaTaskPriority = a});++-- | /Optional./ 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 'RegisterActivityType' . The duration is specified in seconds; an integer greater than or equal to 0. The value "NONE" can be used to specify unlimited duration.+satdaScheduleToStartTimeout :: Lens' ScheduleActivityTaskDecisionAttributes (Maybe Text)+satdaScheduleToStartTimeout = lens _satdaScheduleToStartTimeout (\ s a -> s{_satdaScheduleToStartTimeout = 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 'RegisterActivityType' . The duration is specified in seconds; an integer greater than or equal to 0. The value "NONE" can be used to specify unlimited duration.+satdaStartToCloseTimeout :: Lens' ScheduleActivityTaskDecisionAttributes (Maybe Text)+satdaStartToCloseTimeout = lens _satdaStartToCloseTimeout (\ s a -> s{_satdaStartToCloseTimeout = a});++-- | __Required.__ The type of the activity task to schedule.+satdaActivityType :: Lens' ScheduleActivityTaskDecisionAttributes ActivityType+satdaActivityType = lens _satdaActivityType (\ s a -> s{_satdaActivityType = a});++-- | __Required.__ The @activityId@ of the activity task. The specified string must not start or end with whitespace. It must not contain a @:@ (colon), @/@ (slash), @|@ (vertical bar), or any control characters (\u0000-\u001f | \u007f - \u009f). Also, it must not contain the literal string quotarnquot.+satdaActivityId :: Lens' ScheduleActivityTaskDecisionAttributes Text+satdaActivityId = lens _satdaActivityId (\ s a -> s{_satdaActivityId = a});++instance Hashable+         ScheduleActivityTaskDecisionAttributes++instance NFData+         ScheduleActivityTaskDecisionAttributes++instance ToJSON+         ScheduleActivityTaskDecisionAttributes where+        toJSON ScheduleActivityTaskDecisionAttributes'{..}+          = object+              (catMaybes+                 [("control" .=) <$> _satdaControl,+                  ("heartbeatTimeout" .=) <$> _satdaHeartbeatTimeout,+                  ("scheduleToCloseTimeout" .=) <$>+                    _satdaScheduleToCloseTimeout,+                  ("input" .=) <$> _satdaInput,+                  ("taskList" .=) <$> _satdaTaskList,+                  ("taskPriority" .=) <$> _satdaTaskPriority,+                  ("scheduleToStartTimeout" .=) <$>+                    _satdaScheduleToStartTimeout,+                  ("startToCloseTimeout" .=) <$>+                    _satdaStartToCloseTimeout,+                  Just ("activityType" .= _satdaActivityType),+                  Just ("activityId" .= _satdaActivityId)])++-- | Provides details of the @ScheduleActivityTaskFailed@ event.+--+--+--+-- /See:/ 'scheduleActivityTaskFailedEventAttributes' smart constructor.+data ScheduleActivityTaskFailedEventAttributes = ScheduleActivityTaskFailedEventAttributes'+    { _satfeaActivityType                 :: !ActivityType+    , _satfeaActivityId                   :: !Text+    , _satfeaCause                        :: !ScheduleActivityTaskFailedCause+    , _satfeaDecisionTaskCompletedEventId :: !Integer+    } deriving (Eq,Read,Show,Data,Typeable,Generic)++-- | Creates a value of 'ScheduleActivityTaskFailedEventAttributes' with the minimum fields required to make a request.+--+-- Use one of the following lenses to modify other fields as desired:+--+-- * 'satfeaActivityType' - The activity type provided in the @ScheduleActivityTask@ decision that failed.+--+-- * 'satfeaActivityId' - The activityId provided in the @ScheduleActivityTask@ decision that failed.+--+-- * 'satfeaCause' - The cause of the failure. This information is generated by the system and can be useful for diagnostic purposes.+--+-- * 'satfeaDecisionTaskCompletedEventId' - The ID of the @DecisionTaskCompleted@ 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.+scheduleActivityTaskFailedEventAttributes+    :: ActivityType -- ^ 'satfeaActivityType'+    -> Text -- ^ 'satfeaActivityId'+    -> ScheduleActivityTaskFailedCause -- ^ 'satfeaCause'+    -> Integer -- ^ 'satfeaDecisionTaskCompletedEventId'+    -> ScheduleActivityTaskFailedEventAttributes+scheduleActivityTaskFailedEventAttributes pActivityType_ pActivityId_ pCause_ pDecisionTaskCompletedEventId_ =+    ScheduleActivityTaskFailedEventAttributes'+    { _satfeaActivityType = pActivityType_+    , _satfeaActivityId = pActivityId_+    , _satfeaCause = pCause_+    , _satfeaDecisionTaskCompletedEventId = pDecisionTaskCompletedEventId_+    }++-- | The activity type provided in the @ScheduleActivityTask@ decision that failed.+satfeaActivityType :: Lens' ScheduleActivityTaskFailedEventAttributes ActivityType+satfeaActivityType = lens _satfeaActivityType (\ s a -> s{_satfeaActivityType = a});++-- | The activityId provided in the @ScheduleActivityTask@ decision that failed.+satfeaActivityId :: Lens' ScheduleActivityTaskFailedEventAttributes Text+satfeaActivityId = lens _satfeaActivityId (\ s a -> s{_satfeaActivityId = a});++-- | The cause of the failure. This information is generated by the system and can be useful for diagnostic purposes.+satfeaCause :: Lens' ScheduleActivityTaskFailedEventAttributes ScheduleActivityTaskFailedCause+satfeaCause = lens _satfeaCause (\ s a -> s{_satfeaCause = a});++-- | The ID of the @DecisionTaskCompleted@ 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+satfeaDecisionTaskCompletedEventId = lens _satfeaDecisionTaskCompletedEventId (\ s a -> s{_satfeaDecisionTaskCompletedEventId = a});++instance FromJSON+         ScheduleActivityTaskFailedEventAttributes where+        parseJSON+          = withObject+              "ScheduleActivityTaskFailedEventAttributes"+              (\ x ->+                 ScheduleActivityTaskFailedEventAttributes' <$>+                   (x .: "activityType") <*> (x .: "activityId") <*>+                     (x .: "cause")+                     <*> (x .: "decisionTaskCompletedEventId"))++instance Hashable+         ScheduleActivityTaskFailedEventAttributes++instance NFData+         ScheduleActivityTaskFailedEventAttributes++-- | Provides details of the @ScheduleLambdaFunction@ decision.+--+--+-- __Access Control__+--+-- You can use IAM policies to control this decision's access to Amazon SWF resources as follows:+--+--     * Use a @Resource@ element with the domain name to limit the action to only specified domains.    * Use an @Action@ element to allow or deny permission to call this action.    * Constrain the following parameters by using a @Condition@ element with the appropriate keys.     * @activityType.name@ : String constraint. The key is @swf:activityType.name@ .    * @activityType.version@ : String constraint. The key is @swf:activityType.version@ .    * @taskList@ : String constraint. The key is @swf:taskList.name@ .+--+--+--+-- If the caller does not have sufficient permissions to invoke the action, or the parameter values fall outside the specified constraints, the action fails. The associated event attribute's __cause__ parameter will be set to OPERATION_NOT_PERMITTED. For details and example IAM policies, see <http://docs.aws.amazon.com/amazonswf/latest/developerguide/swf-dev-iam.html Using IAM to Manage Access to Amazon SWF Workflows> .+--+--+-- /See:/ 'scheduleLambdaFunctionDecisionAttributes' smart constructor.+data ScheduleLambdaFunctionDecisionAttributes = ScheduleLambdaFunctionDecisionAttributes'+    { _slfdaInput               :: !(Maybe Text)+    , _slfdaStartToCloseTimeout :: !(Maybe Text)+    , _slfdaId                  :: !Text+    , _slfdaName                :: !Text+    } deriving (Eq,Read,Show,Data,Typeable,Generic)++-- | Creates a value of 'ScheduleLambdaFunctionDecisionAttributes' with the minimum fields required to make a request.+--+-- Use one of the following lenses to modify other fields as desired:+--+-- * 'slfdaInput' - The input provided to the AWS Lambda function.+--+-- * 'slfdaStartToCloseTimeout' - If set, specifies the maximum duration the function may take to execute.+--+-- * 'slfdaId' - __Required.__ The SWF @id@ of the AWS Lambda task. The specified string must not start or end with whitespace. It must not contain a @:@ (colon), @/@ (slash), @|@ (vertical bar), or any control characters (\u0000-\u001f | \u007f - \u009f). Also, it must not contain the literal string quotarnquot.+--+-- * 'slfdaName' - __Required.__ The name of the AWS Lambda function to invoke.+scheduleLambdaFunctionDecisionAttributes+    :: Text -- ^ 'slfdaId'+    -> Text -- ^ 'slfdaName'+    -> ScheduleLambdaFunctionDecisionAttributes+scheduleLambdaFunctionDecisionAttributes pId_ pName_ =+    ScheduleLambdaFunctionDecisionAttributes'+    { _slfdaInput = Nothing+    , _slfdaStartToCloseTimeout = Nothing+    , _slfdaId = pId_+    , _slfdaName = pName_+    }++-- | The input provided to the AWS Lambda function.+slfdaInput :: Lens' ScheduleLambdaFunctionDecisionAttributes (Maybe Text)+slfdaInput = lens _slfdaInput (\ s a -> s{_slfdaInput = a});++-- | If set, specifies the maximum duration the function may take to execute.+slfdaStartToCloseTimeout :: Lens' ScheduleLambdaFunctionDecisionAttributes (Maybe Text)+slfdaStartToCloseTimeout = lens _slfdaStartToCloseTimeout (\ s a -> s{_slfdaStartToCloseTimeout = a});++-- | __Required.__ The SWF @id@ of the AWS Lambda task. The specified string must not start or end with whitespace. It must not contain a @:@ (colon), @/@ (slash), @|@ (vertical bar), or any control characters (\u0000-\u001f | \u007f - \u009f). Also, it must not contain the literal string quotarnquot.+slfdaId :: Lens' ScheduleLambdaFunctionDecisionAttributes Text+slfdaId = lens _slfdaId (\ s a -> s{_slfdaId = a});++-- | __Required.__ The name of the AWS Lambda function to invoke.+slfdaName :: Lens' ScheduleLambdaFunctionDecisionAttributes Text+slfdaName = lens _slfdaName (\ s a -> s{_slfdaName = a});++instance Hashable+         ScheduleLambdaFunctionDecisionAttributes++instance NFData+         ScheduleLambdaFunctionDecisionAttributes++instance ToJSON+         ScheduleLambdaFunctionDecisionAttributes where+        toJSON ScheduleLambdaFunctionDecisionAttributes'{..}+          = object+              (catMaybes+                 [("input" .=) <$> _slfdaInput,+                  ("startToCloseTimeout" .=) <$>+                    _slfdaStartToCloseTimeout,+                  Just ("id" .= _slfdaId),+                  Just ("name" .= _slfdaName)])++-- | Provides details for the @ScheduleLambdaFunctionFailed@ event.+--+--+--+-- /See:/ 'scheduleLambdaFunctionFailedEventAttributes' smart constructor.+data ScheduleLambdaFunctionFailedEventAttributes = ScheduleLambdaFunctionFailedEventAttributes'+    { _slffeaId                           :: !Text+    , _slffeaName                         :: !Text+    , _slffeaCause                        :: !ScheduleLambdaFunctionFailedCause+    , _slffeaDecisionTaskCompletedEventId :: !Integer+    } deriving (Eq,Read,Show,Data,Typeable,Generic)++-- | Creates a value of 'ScheduleLambdaFunctionFailedEventAttributes' with the minimum fields required to make a request.+--+-- Use one of the following lenses to modify other fields as desired:+--+-- * 'slffeaId' - The unique Amazon SWF ID of the AWS Lambda task.+--+-- * 'slffeaName' - The name of the scheduled AWS Lambda function.+--+-- * 'slffeaCause' - The cause of the failure. This information is generated by the system and can be useful for diagnostic purposes.+--+-- * 'slffeaDecisionTaskCompletedEventId' - The ID of the @DecisionTaskCompleted@ event corresponding to the decision that resulted in the scheduling of this AWS Lambda function. This information can be useful for diagnosing problems by tracing back the chain of events leading up to this event.+scheduleLambdaFunctionFailedEventAttributes+    :: Text -- ^ 'slffeaId'+    -> Text -- ^ 'slffeaName'+    -> ScheduleLambdaFunctionFailedCause -- ^ 'slffeaCause'+    -> Integer -- ^ 'slffeaDecisionTaskCompletedEventId'+    -> ScheduleLambdaFunctionFailedEventAttributes+scheduleLambdaFunctionFailedEventAttributes pId_ pName_ pCause_ pDecisionTaskCompletedEventId_ =+    ScheduleLambdaFunctionFailedEventAttributes'+    { _slffeaId = pId_+    , _slffeaName = pName_+    , _slffeaCause = pCause_+    , _slffeaDecisionTaskCompletedEventId = pDecisionTaskCompletedEventId_+    }++-- | The unique Amazon SWF ID of the AWS Lambda task.+slffeaId :: Lens' ScheduleLambdaFunctionFailedEventAttributes Text+slffeaId = lens _slffeaId (\ s a -> s{_slffeaId = a});++-- | The name of the scheduled AWS Lambda function.+slffeaName :: Lens' ScheduleLambdaFunctionFailedEventAttributes Text+slffeaName = lens _slffeaName (\ s a -> s{_slffeaName = a});++-- | The cause of the failure. This information is generated by the system and can be useful for diagnostic purposes.+slffeaCause :: Lens' ScheduleLambdaFunctionFailedEventAttributes ScheduleLambdaFunctionFailedCause+slffeaCause = lens _slffeaCause (\ s a -> s{_slffeaCause = a});++-- | The ID of the @DecisionTaskCompleted@ event corresponding to the decision that resulted in the scheduling of this AWS Lambda function. This information can be useful for diagnosing problems by tracing back the chain of events leading up to this event.+slffeaDecisionTaskCompletedEventId :: Lens' ScheduleLambdaFunctionFailedEventAttributes Integer+slffeaDecisionTaskCompletedEventId = lens _slffeaDecisionTaskCompletedEventId (\ s a -> s{_slffeaDecisionTaskCompletedEventId = a});++instance FromJSON+         ScheduleLambdaFunctionFailedEventAttributes where+        parseJSON+          = withObject+              "ScheduleLambdaFunctionFailedEventAttributes"+              (\ x ->+                 ScheduleLambdaFunctionFailedEventAttributes' <$>+                   (x .: "id") <*> (x .: "name") <*> (x .: "cause") <*>+                     (x .: "decisionTaskCompletedEventId"))++instance Hashable+         ScheduleLambdaFunctionFailedEventAttributes++instance NFData+         ScheduleLambdaFunctionFailedEventAttributes++-- | Provides details of the @SignalExternalWorkflowExecution@ decision.+--+--+-- __Access Control__+--+-- You can use IAM policies to control this decision's access to Amazon SWF resources as follows:+--+--     * Use a @Resource@ element with the domain name to limit the action to only specified domains.    * Use an @Action@ element to allow or deny permission to call this action.    * You cannot use an IAM policy to constrain this action's parameters.+--+-- If the caller does not have sufficient permissions to invoke the action, or the parameter values fall outside the specified constraints, the action fails. The associated event attribute's __cause__ parameter will be set to OPERATION_NOT_PERMITTED. For details and example IAM policies, see <http://docs.aws.amazon.com/amazonswf/latest/developerguide/swf-dev-iam.html Using IAM to Manage Access to Amazon SWF Workflows> .+--+--+-- /See:/ 'signalExternalWorkflowExecutionDecisionAttributes' smart constructor.+data SignalExternalWorkflowExecutionDecisionAttributes = SignalExternalWorkflowExecutionDecisionAttributes'+    { _sewedaControl    :: !(Maybe Text)+    , _sewedaInput      :: !(Maybe Text)+    , _sewedaRunId      :: !(Maybe Text)+    , _sewedaWorkflowId :: !Text+    , _sewedaSignalName :: !Text+    } deriving (Eq,Read,Show,Data,Typeable,Generic)++-- | Creates a value of 'SignalExternalWorkflowExecutionDecisionAttributes' with the minimum fields required to make a request.+--+-- Use one of the following lenses to modify other fields as desired:+--+-- * 'sewedaControl' - /Optional./ Data attached to the event that can be used by the decider in subsequent decision tasks.+--+-- * 'sewedaInput' - /Optional./ Input data to be provided with the signal. The target workflow execution will use the signal name and input data to process the signal.+--+-- * 'sewedaRunId' - The @runId@ of the workflow execution to be signaled.+--+-- * 'sewedaWorkflowId' - __Required.__ The @workflowId@ of the workflow execution to be signaled.+--+-- * 'sewedaSignalName' - __Required.__ The name of the signal.The target workflow execution will use the signal name and input to process the signal.+signalExternalWorkflowExecutionDecisionAttributes+    :: Text -- ^ 'sewedaWorkflowId'+    -> Text -- ^ 'sewedaSignalName'+    -> SignalExternalWorkflowExecutionDecisionAttributes+signalExternalWorkflowExecutionDecisionAttributes pWorkflowId_ pSignalName_ =+    SignalExternalWorkflowExecutionDecisionAttributes'+    { _sewedaControl = Nothing+    , _sewedaInput = Nothing+    , _sewedaRunId = Nothing+    , _sewedaWorkflowId = pWorkflowId_+    , _sewedaSignalName = pSignalName_+    }++-- | /Optional./ Data attached to the event that can be used by the decider in subsequent decision tasks.+sewedaControl :: Lens' SignalExternalWorkflowExecutionDecisionAttributes (Maybe Text)+sewedaControl = lens _sewedaControl (\ s a -> s{_sewedaControl = a});++-- | /Optional./ Input data to be provided with the signal. The target workflow execution will use the signal name and input data to process the signal.+sewedaInput :: Lens' SignalExternalWorkflowExecutionDecisionAttributes (Maybe Text)+sewedaInput = lens _sewedaInput (\ s a -> s{_sewedaInput = a});++-- | The @runId@ of the workflow execution to be signaled.+sewedaRunId :: Lens' SignalExternalWorkflowExecutionDecisionAttributes (Maybe Text)+sewedaRunId = lens _sewedaRunId (\ s a -> s{_sewedaRunId = a});++-- | __Required.__ The @workflowId@ of the workflow execution to be signaled.+sewedaWorkflowId :: Lens' SignalExternalWorkflowExecutionDecisionAttributes Text+sewedaWorkflowId = lens _sewedaWorkflowId (\ s a -> s{_sewedaWorkflowId = a});++-- | __Required.__ The name of the signal.The target workflow execution will use the signal name and input to process the signal.+sewedaSignalName :: Lens' SignalExternalWorkflowExecutionDecisionAttributes Text+sewedaSignalName = lens _sewedaSignalName (\ s a -> s{_sewedaSignalName = a});++instance Hashable+         SignalExternalWorkflowExecutionDecisionAttributes++instance NFData+         SignalExternalWorkflowExecutionDecisionAttributes++instance ToJSON+         SignalExternalWorkflowExecutionDecisionAttributes+         where+        toJSON+          SignalExternalWorkflowExecutionDecisionAttributes'{..}+          = object+              (catMaybes+                 [("control" .=) <$> _sewedaControl,+                  ("input" .=) <$> _sewedaInput,+                  ("runId" .=) <$> _sewedaRunId,+                  Just ("workflowId" .= _sewedaWorkflowId),+                  Just ("signalName" .= _sewedaSignalName)])++-- | Provides details of the @SignalExternalWorkflowExecutionFailed@ event.+--+--+--+-- /See:/ 'signalExternalWorkflowExecutionFailedEventAttributes' smart constructor.+data SignalExternalWorkflowExecutionFailedEventAttributes = SignalExternalWorkflowExecutionFailedEventAttributes'+    { _sewefeaControl                      :: !(Maybe Text)+    , _sewefeaRunId                        :: !(Maybe Text)+    , _sewefeaWorkflowId                   :: !Text+    , _sewefeaCause                        :: !SignalExternalWorkflowExecutionFailedCause+    , _sewefeaInitiatedEventId             :: !Integer+    , _sewefeaDecisionTaskCompletedEventId :: !Integer+    } deriving (Eq,Read,Show,Data,Typeable,Generic)++-- | Creates a value of 'SignalExternalWorkflowExecutionFailedEventAttributes' with the minimum fields required to make a request.+--+-- Use one of the following lenses to modify other fields as desired:+--+-- * 'sewefeaControl' - Undocumented member.+--+-- * 'sewefeaRunId' - The @runId@ of the external workflow execution that the signal was being delivered to.+--+-- * 'sewefeaWorkflowId' - The @workflowId@ of the external workflow execution that the signal was being delivered to.+--+-- * 'sewefeaCause' - The cause of the failure. This information is generated by the system and can be useful for diagnostic purposes.+--+-- * 'sewefeaInitiatedEventId' - The ID of the @SignalExternalWorkflowExecutionInitiated@ event corresponding to the @SignalExternalWorkflowExecution@ 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.+--+-- * 'sewefeaDecisionTaskCompletedEventId' - The ID of the @DecisionTaskCompleted@ event corresponding to the decision task that resulted in the @SignalExternalWorkflowExecution@ decision for this signal. This information can be useful for diagnosing problems by tracing back the chain of events leading up to this event.+signalExternalWorkflowExecutionFailedEventAttributes+    :: Text -- ^ 'sewefeaWorkflowId'+    -> SignalExternalWorkflowExecutionFailedCause -- ^ 'sewefeaCause'+    -> Integer -- ^ 'sewefeaInitiatedEventId'+    -> Integer -- ^ 'sewefeaDecisionTaskCompletedEventId'+    -> SignalExternalWorkflowExecutionFailedEventAttributes+signalExternalWorkflowExecutionFailedEventAttributes pWorkflowId_ pCause_ pInitiatedEventId_ pDecisionTaskCompletedEventId_ =+    SignalExternalWorkflowExecutionFailedEventAttributes'+    { _sewefeaControl = Nothing+    , _sewefeaRunId = Nothing+    , _sewefeaWorkflowId = pWorkflowId_+    , _sewefeaCause = pCause_+    , _sewefeaInitiatedEventId = pInitiatedEventId_+    , _sewefeaDecisionTaskCompletedEventId = pDecisionTaskCompletedEventId_+    }++-- | Undocumented member.+sewefeaControl :: Lens' SignalExternalWorkflowExecutionFailedEventAttributes (Maybe Text)+sewefeaControl = lens _sewefeaControl (\ s a -> s{_sewefeaControl = a});++-- | The @runId@ of the external workflow execution that the signal was being delivered to.+sewefeaRunId :: Lens' SignalExternalWorkflowExecutionFailedEventAttributes (Maybe Text)+sewefeaRunId = lens _sewefeaRunId (\ s a -> s{_sewefeaRunId = a});++-- | The @workflowId@ of the external workflow execution that the signal was being delivered to.+sewefeaWorkflowId :: Lens' SignalExternalWorkflowExecutionFailedEventAttributes Text+sewefeaWorkflowId = lens _sewefeaWorkflowId (\ s a -> s{_sewefeaWorkflowId = a});++-- | The cause of the failure. This information is generated by the system and can be useful for diagnostic purposes.+sewefeaCause :: Lens' SignalExternalWorkflowExecutionFailedEventAttributes SignalExternalWorkflowExecutionFailedCause+sewefeaCause = lens _sewefeaCause (\ s a -> s{_sewefeaCause = a});++-- | The ID of the @SignalExternalWorkflowExecutionInitiated@ event corresponding to the @SignalExternalWorkflowExecution@ 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+sewefeaInitiatedEventId = lens _sewefeaInitiatedEventId (\ s a -> s{_sewefeaInitiatedEventId = a});++-- | The ID of the @DecisionTaskCompleted@ event corresponding to the decision task that resulted in the @SignalExternalWorkflowExecution@ 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+sewefeaDecisionTaskCompletedEventId = lens _sewefeaDecisionTaskCompletedEventId (\ s a -> s{_sewefeaDecisionTaskCompletedEventId = a});++instance FromJSON+         SignalExternalWorkflowExecutionFailedEventAttributes+         where+        parseJSON+          = withObject+              "SignalExternalWorkflowExecutionFailedEventAttributes"+              (\ x ->+                 SignalExternalWorkflowExecutionFailedEventAttributes'+                   <$>+                   (x .:? "control") <*> (x .:? "runId") <*>+                     (x .: "workflowId")+                     <*> (x .: "cause")+                     <*> (x .: "initiatedEventId")+                     <*> (x .: "decisionTaskCompletedEventId"))++instance Hashable+         SignalExternalWorkflowExecutionFailedEventAttributes++instance NFData+         SignalExternalWorkflowExecutionFailedEventAttributes++-- | Provides details of the @SignalExternalWorkflowExecutionInitiated@ event.+--+--+--+-- /See:/ 'signalExternalWorkflowExecutionInitiatedEventAttributes' smart constructor.+data SignalExternalWorkflowExecutionInitiatedEventAttributes = SignalExternalWorkflowExecutionInitiatedEventAttributes'+    { _seweieaControl                      :: !(Maybe Text)+    , _seweieaInput                        :: !(Maybe Text)+    , _seweieaRunId                        :: !(Maybe Text)+    , _seweieaWorkflowId                   :: !Text+    , _seweieaSignalName                   :: !Text+    , _seweieaDecisionTaskCompletedEventId :: !Integer+    } deriving (Eq,Read,Show,Data,Typeable,Generic)++-- | Creates a value of 'SignalExternalWorkflowExecutionInitiatedEventAttributes' with the minimum fields required to make a request.+--+-- Use one of the following lenses to modify other fields as desired:+--+-- * 'seweieaControl' - /Optional./ data attached to the event that can be used by the decider in subsequent decision tasks.+--+-- * 'seweieaInput' - Input provided to the signal (if any).+--+-- * 'seweieaRunId' - The @runId@ of the external workflow execution to send the signal to.+--+-- * 'seweieaWorkflowId' - The @workflowId@ of the external workflow execution.+--+-- * 'seweieaSignalName' - The name of the signal.+--+-- * 'seweieaDecisionTaskCompletedEventId' - The ID of the @DecisionTaskCompleted@ event corresponding to the decision task that resulted in the @SignalExternalWorkflowExecution@ decision for this signal. This information can be useful for diagnosing problems by tracing back the chain of events leading up to this event.+signalExternalWorkflowExecutionInitiatedEventAttributes+    :: Text -- ^ 'seweieaWorkflowId'+    -> Text -- ^ 'seweieaSignalName'+    -> Integer -- ^ 'seweieaDecisionTaskCompletedEventId'+    -> SignalExternalWorkflowExecutionInitiatedEventAttributes+signalExternalWorkflowExecutionInitiatedEventAttributes pWorkflowId_ pSignalName_ pDecisionTaskCompletedEventId_ =+    SignalExternalWorkflowExecutionInitiatedEventAttributes'+    { _seweieaControl = Nothing+    , _seweieaInput = Nothing+    , _seweieaRunId = Nothing+    , _seweieaWorkflowId = pWorkflowId_+    , _seweieaSignalName = pSignalName_+    , _seweieaDecisionTaskCompletedEventId = pDecisionTaskCompletedEventId_+    }++-- | /Optional./ data attached to the event that can be used by the decider in subsequent decision tasks.+seweieaControl :: Lens' SignalExternalWorkflowExecutionInitiatedEventAttributes (Maybe Text)+seweieaControl = lens _seweieaControl (\ s a -> s{_seweieaControl = a});++-- | Input provided to the signal (if any).+seweieaInput :: Lens' SignalExternalWorkflowExecutionInitiatedEventAttributes (Maybe Text)+seweieaInput = lens _seweieaInput (\ s a -> s{_seweieaInput = a});++-- | The @runId@ of the external workflow execution to send the signal to.+seweieaRunId :: Lens' SignalExternalWorkflowExecutionInitiatedEventAttributes (Maybe Text)+seweieaRunId = lens _seweieaRunId (\ s a -> s{_seweieaRunId = a});++-- | The @workflowId@ of the external workflow execution.+seweieaWorkflowId :: Lens' SignalExternalWorkflowExecutionInitiatedEventAttributes Text+seweieaWorkflowId = lens _seweieaWorkflowId (\ s a -> s{_seweieaWorkflowId = a});++-- | The name of the signal.+seweieaSignalName :: Lens' SignalExternalWorkflowExecutionInitiatedEventAttributes Text+seweieaSignalName = lens _seweieaSignalName (\ s a -> s{_seweieaSignalName = a});++-- | The ID of the @DecisionTaskCompleted@ event corresponding to the decision task that resulted in the @SignalExternalWorkflowExecution@ 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+seweieaDecisionTaskCompletedEventId = lens _seweieaDecisionTaskCompletedEventId (\ s a -> s{_seweieaDecisionTaskCompletedEventId = a});++instance FromJSON+         SignalExternalWorkflowExecutionInitiatedEventAttributes+         where+        parseJSON+          = withObject+              "SignalExternalWorkflowExecutionInitiatedEventAttributes"+              (\ x ->+                 SignalExternalWorkflowExecutionInitiatedEventAttributes'+                   <$>+                   (x .:? "control") <*> (x .:? "input") <*>+                     (x .:? "runId")+                     <*> (x .: "workflowId")+                     <*> (x .: "signalName")+                     <*> (x .: "decisionTaskCompletedEventId"))++instance Hashable+         SignalExternalWorkflowExecutionInitiatedEventAttributes++instance NFData+         SignalExternalWorkflowExecutionInitiatedEventAttributes++-- | Provides details of the @StartChildWorkflowExecution@ decision.+--+--+-- __Access Control__+--+-- You can use IAM policies to control this decision's access to Amazon SWF resources as follows:+--+--     * Use a @Resource@ element with the domain name to limit the action to only specified domains.    * Use an @Action@ element to allow or deny permission to call this action.    * Constrain the following parameters by using a @Condition@ element with the appropriate keys.     * @tagList.member.N@ : The key is "swf:tagList.N" where N is the tag number from 0 to 4, inclusive.    * @taskList@ : String constraint. The key is @swf:taskList.name@ .    * @workflowType.name@ : String constraint. The key is @swf:workflowType.name@ .    * @workflowType.version@ : String constraint. The key is @swf:workflowType.version@ .+--+--+--+-- If the caller does not have sufficient permissions to invoke the action, or the parameter values fall outside the specified constraints, the action fails. The associated event attribute's __cause__ parameter will be set to OPERATION_NOT_PERMITTED. For details and example IAM policies, see <http://docs.aws.amazon.com/amazonswf/latest/developerguide/swf-dev-iam.html Using IAM to Manage Access to Amazon SWF Workflows> .+--+--+-- /See:/ 'startChildWorkflowExecutionDecisionAttributes' smart constructor.+data StartChildWorkflowExecutionDecisionAttributes = StartChildWorkflowExecutionDecisionAttributes'+    { _scwedaControl                      :: !(Maybe Text)+    , _scwedaTagList                      :: !(Maybe [Text])+    , _scwedaTaskStartToCloseTimeout      :: !(Maybe Text)+    , _scwedaLambdaRole                   :: !(Maybe Text)+    , _scwedaInput                        :: !(Maybe Text)+    , _scwedaExecutionStartToCloseTimeout :: !(Maybe Text)+    , _scwedaTaskList                     :: !(Maybe TaskList)+    , _scwedaTaskPriority                 :: !(Maybe Text)+    , _scwedaChildPolicy                  :: !(Maybe ChildPolicy)+    , _scwedaWorkflowType                 :: !WorkflowType+    , _scwedaWorkflowId                   :: !Text+    } deriving (Eq,Read,Show,Data,Typeable,Generic)++-- | Creates a value of 'StartChildWorkflowExecutionDecisionAttributes' with the minimum fields required to make a request.+--+-- Use one of the following lenses to modify other fields as desired:+--+-- * 'scwedaControl' - /Optional./ Data attached to the event that can be used by the decider in subsequent workflow tasks. This data is not sent to the child workflow execution.+--+-- * 'scwedaTagList' - 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 'ListOpenWorkflowExecutions' or 'ListClosedWorkflowExecutions' and specifying a 'TagFilter' .+--+-- * 'scwedaTaskStartToCloseTimeout' - Specifies the maximum duration of decision tasks for this workflow execution. This parameter overrides the @defaultTaskStartToCloseTimout@ specified when registering the workflow type using 'RegisterWorkflowType' . The duration is specified in seconds; an integer greater than or equal to 0. The value "NONE" can be used to specify unlimited duration.+--+-- * 'scwedaLambdaRole' - The ARN of an IAM role that authorizes Amazon SWF to invoke AWS Lambda functions.+--+-- * 'scwedaInput' - The input to be provided to the workflow execution.+--+-- * 'scwedaExecutionStartToCloseTimeout' - 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 0. The value "NONE" can be used to specify unlimited duration.+--+-- * 'scwedaTaskList' - 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 @:@ (colon), @/@ (slash), @|@ (vertical bar), or any control characters (\u0000-\u001f | \u007f - \u009f). Also, it must not contain the literal string quotarnquot.+--+-- * 'scwedaTaskPriority' - /Optional./ 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 @Integer.MIN_VALUE@ (-2147483648) to @Integer.MAX_VALUE@ (2147483647). Higher numbers indicate higher priority. For more information about setting task priority, see <http://docs.aws.amazon.com/amazonswf/latest/developerguide/programming-priority.html Setting Task Priority> in the /Amazon Simple Workflow Developer Guide/ .+--+-- * 'scwedaChildPolicy' - /Optional./ If set, specifies the policy to use for the child workflow executions if the workflow execution being started is terminated by calling the 'TerminateWorkflowExecution' action explicitly or due to an expired timeout. This policy overrides the default child policy specified when registering the workflow type using 'RegisterWorkflowType' . The supported child policies are:     * __TERMINATE:__ the child executions will be terminated.    * __REQUEST_CANCEL:__ a request to cancel will be attempted for each child execution by recording a @WorkflowExecutionCancelRequested@ event in its history. It is up to the decider to take appropriate actions when it receives an execution history with this event.    * __ABANDON:__ no action will be taken. The child executions will continue to run.+--+-- * 'scwedaWorkflowType' - __Required.__ The type of the workflow execution to be started.+--+-- * 'scwedaWorkflowId' - __Required.__ The @workflowId@ of the workflow execution. The specified string must not start or end with whitespace. It must not contain a @:@ (colon), @/@ (slash), @|@ (vertical bar), or any control characters (\u0000-\u001f | \u007f - \u009f). Also, it must not contain the literal string quotarnquot.+startChildWorkflowExecutionDecisionAttributes+    :: WorkflowType -- ^ 'scwedaWorkflowType'+    -> Text -- ^ 'scwedaWorkflowId'+    -> StartChildWorkflowExecutionDecisionAttributes+startChildWorkflowExecutionDecisionAttributes pWorkflowType_ pWorkflowId_ =+    StartChildWorkflowExecutionDecisionAttributes'+    { _scwedaControl = Nothing+    , _scwedaTagList = Nothing+    , _scwedaTaskStartToCloseTimeout = Nothing+    , _scwedaLambdaRole = Nothing+    , _scwedaInput = Nothing+    , _scwedaExecutionStartToCloseTimeout = Nothing+    , _scwedaTaskList = Nothing+    , _scwedaTaskPriority = Nothing+    , _scwedaChildPolicy = Nothing+    , _scwedaWorkflowType = pWorkflowType_+    , _scwedaWorkflowId = pWorkflowId_+    }++-- | /Optional./ Data attached to the event that can be used by the decider in subsequent workflow tasks. This data is not sent to the child workflow execution.+scwedaControl :: Lens' StartChildWorkflowExecutionDecisionAttributes (Maybe Text)+scwedaControl = lens _scwedaControl (\ s a -> s{_scwedaControl = 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 'ListOpenWorkflowExecutions' or 'ListClosedWorkflowExecutions' and specifying a 'TagFilter' .+scwedaTagList :: Lens' StartChildWorkflowExecutionDecisionAttributes [Text]+scwedaTagList = lens _scwedaTagList (\ s a -> s{_scwedaTagList = a}) . _Default . _Coerce;++-- | Specifies the maximum duration of decision tasks for this workflow execution. This parameter overrides the @defaultTaskStartToCloseTimout@ specified when registering the workflow type using 'RegisterWorkflowType' . The duration is specified in seconds; an integer greater than or equal to 0. The value "NONE" can be used to specify unlimited duration.+scwedaTaskStartToCloseTimeout :: Lens' StartChildWorkflowExecutionDecisionAttributes (Maybe Text)+scwedaTaskStartToCloseTimeout = lens _scwedaTaskStartToCloseTimeout (\ s a -> s{_scwedaTaskStartToCloseTimeout = a});++-- | The ARN of an IAM role that authorizes Amazon SWF to invoke AWS Lambda functions.+scwedaLambdaRole :: Lens' StartChildWorkflowExecutionDecisionAttributes (Maybe Text)+scwedaLambdaRole = lens _scwedaLambdaRole (\ s a -> s{_scwedaLambdaRole = a});++-- | The input to be provided to the workflow execution.+scwedaInput :: Lens' StartChildWorkflowExecutionDecisionAttributes (Maybe Text)+scwedaInput = lens _scwedaInput (\ s a -> s{_scwedaInput = 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 0. The value "NONE" can be used to specify unlimited duration.+scwedaExecutionStartToCloseTimeout :: Lens' StartChildWorkflowExecutionDecisionAttributes (Maybe Text)+scwedaExecutionStartToCloseTimeout = lens _scwedaExecutionStartToCloseTimeout (\ s a -> s{_scwedaExecutionStartToCloseTimeout = 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 @:@ (colon), @/@ (slash), @|@ (vertical bar), or any control characters (\u0000-\u001f | \u007f - \u009f). Also, it must not contain the literal string quotarnquot.+scwedaTaskList :: Lens' StartChildWorkflowExecutionDecisionAttributes (Maybe TaskList)+scwedaTaskList = lens _scwedaTaskList (\ s a -> s{_scwedaTaskList = a});++-- | /Optional./ 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 @Integer.MIN_VALUE@ (-2147483648) to @Integer.MAX_VALUE@ (2147483647). Higher numbers indicate higher priority. For more information about setting task priority, see <http://docs.aws.amazon.com/amazonswf/latest/developerguide/programming-priority.html Setting Task Priority> in the /Amazon Simple Workflow Developer Guide/ .+scwedaTaskPriority :: Lens' StartChildWorkflowExecutionDecisionAttributes (Maybe Text)+scwedaTaskPriority = lens _scwedaTaskPriority (\ s a -> s{_scwedaTaskPriority = a});++-- | /Optional./ If set, specifies the policy to use for the child workflow executions if the workflow execution being started is terminated by calling the 'TerminateWorkflowExecution' action explicitly or due to an expired timeout. This policy overrides the default child policy specified when registering the workflow type using 'RegisterWorkflowType' . The supported child policies are:     * __TERMINATE:__ the child executions will be terminated.    * __REQUEST_CANCEL:__ a request to cancel will be attempted for each child execution by recording a @WorkflowExecutionCancelRequested@ event in its history. It is up to the decider to take appropriate actions when it receives an execution history with this event.    * __ABANDON:__ no action will be taken. The child executions will continue to run.+scwedaChildPolicy :: Lens' StartChildWorkflowExecutionDecisionAttributes (Maybe ChildPolicy)+scwedaChildPolicy = lens _scwedaChildPolicy (\ s a -> s{_scwedaChildPolicy = a});++-- | __Required.__ The type of the workflow execution to be started.+scwedaWorkflowType :: Lens' StartChildWorkflowExecutionDecisionAttributes WorkflowType+scwedaWorkflowType = lens _scwedaWorkflowType (\ s a -> s{_scwedaWorkflowType = a});++-- | __Required.__ The @workflowId@ of the workflow execution. The specified string must not start or end with whitespace. It must not contain a @:@ (colon), @/@ (slash), @|@ (vertical bar), or any control characters (\u0000-\u001f | \u007f - \u009f). Also, it must not contain the literal string quotarnquot.+scwedaWorkflowId :: Lens' StartChildWorkflowExecutionDecisionAttributes Text+scwedaWorkflowId = lens _scwedaWorkflowId (\ s a -> s{_scwedaWorkflowId = a});++instance Hashable+         StartChildWorkflowExecutionDecisionAttributes++instance NFData+         StartChildWorkflowExecutionDecisionAttributes++instance ToJSON+         StartChildWorkflowExecutionDecisionAttributes where+        toJSON+          StartChildWorkflowExecutionDecisionAttributes'{..}+          = object+              (catMaybes+                 [("control" .=) <$> _scwedaControl,+                  ("tagList" .=) <$> _scwedaTagList,+                  ("taskStartToCloseTimeout" .=) <$>+                    _scwedaTaskStartToCloseTimeout,+                  ("lambdaRole" .=) <$> _scwedaLambdaRole,+                  ("input" .=) <$> _scwedaInput,+                  ("executionStartToCloseTimeout" .=) <$>+                    _scwedaExecutionStartToCloseTimeout,+                  ("taskList" .=) <$> _scwedaTaskList,+                  ("taskPriority" .=) <$> _scwedaTaskPriority,+                  ("childPolicy" .=) <$> _scwedaChildPolicy,+                  Just ("workflowType" .= _scwedaWorkflowType),+                  Just ("workflowId" .= _scwedaWorkflowId)])++-- | Provides details of the @StartChildWorkflowExecutionFailed@ event.+--+--+--+-- /See:/ 'startChildWorkflowExecutionFailedEventAttributes' smart constructor.+data StartChildWorkflowExecutionFailedEventAttributes = StartChildWorkflowExecutionFailedEventAttributes'+    { _scwefeaControl                      :: !(Maybe Text)+    , _scwefeaWorkflowType                 :: !WorkflowType+    , _scwefeaCause                        :: !StartChildWorkflowExecutionFailedCause+    , _scwefeaWorkflowId                   :: !Text+    , _scwefeaInitiatedEventId             :: !Integer+    , _scwefeaDecisionTaskCompletedEventId :: !Integer+    } deriving (Eq,Read,Show,Data,Typeable,Generic)++-- | Creates a value of 'StartChildWorkflowExecutionFailedEventAttributes' with the minimum fields required to make a request.+--+-- Use one of the following lenses to modify other fields as desired:+--+-- * 'scwefeaControl' - Undocumented member.+--+-- * 'scwefeaWorkflowType' - The workflow type provided in the @StartChildWorkflowExecution@ decision that failed.+--+-- * 'scwefeaCause' - The cause of the failure. This information is generated by the system and can be useful for diagnostic purposes.+--+-- * 'scwefeaWorkflowId' - The @workflowId@ of the child workflow execution.+--+-- * 'scwefeaInitiatedEventId' - The ID of the @StartChildWorkflowExecutionInitiated@ event corresponding to the @StartChildWorkflowExecution@ decision 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.+--+-- * 'scwefeaDecisionTaskCompletedEventId' - The ID of the @DecisionTaskCompleted@ event corresponding to the decision task that resulted in the @StartChildWorkflowExecution@ decision to request this child workflow execution. This information can be useful for diagnosing problems by tracing back the cause of events.+startChildWorkflowExecutionFailedEventAttributes+    :: WorkflowType -- ^ 'scwefeaWorkflowType'+    -> StartChildWorkflowExecutionFailedCause -- ^ 'scwefeaCause'+    -> Text -- ^ 'scwefeaWorkflowId'+    -> Integer -- ^ 'scwefeaInitiatedEventId'+    -> Integer -- ^ 'scwefeaDecisionTaskCompletedEventId'+    -> StartChildWorkflowExecutionFailedEventAttributes+startChildWorkflowExecutionFailedEventAttributes pWorkflowType_ pCause_ pWorkflowId_ pInitiatedEventId_ pDecisionTaskCompletedEventId_ =+    StartChildWorkflowExecutionFailedEventAttributes'+    { _scwefeaControl = Nothing+    , _scwefeaWorkflowType = pWorkflowType_+    , _scwefeaCause = pCause_+    , _scwefeaWorkflowId = pWorkflowId_+    , _scwefeaInitiatedEventId = pInitiatedEventId_+    , _scwefeaDecisionTaskCompletedEventId = pDecisionTaskCompletedEventId_+    }++-- | Undocumented member.+scwefeaControl :: Lens' StartChildWorkflowExecutionFailedEventAttributes (Maybe Text)+scwefeaControl = lens _scwefeaControl (\ s a -> s{_scwefeaControl = a});++-- | The workflow type provided in the @StartChildWorkflowExecution@ decision that failed.+scwefeaWorkflowType :: Lens' StartChildWorkflowExecutionFailedEventAttributes WorkflowType+scwefeaWorkflowType = lens _scwefeaWorkflowType (\ s a -> s{_scwefeaWorkflowType = a});++-- | The cause of the failure. This information is generated by the system and can be useful for diagnostic purposes.+scwefeaCause :: Lens' StartChildWorkflowExecutionFailedEventAttributes StartChildWorkflowExecutionFailedCause+scwefeaCause = lens _scwefeaCause (\ s a -> s{_scwefeaCause = a});++-- | The @workflowId@ of the child workflow execution.+scwefeaWorkflowId :: Lens' StartChildWorkflowExecutionFailedEventAttributes Text+scwefeaWorkflowId = lens _scwefeaWorkflowId (\ s a -> s{_scwefeaWorkflowId = a});++-- | The ID of the @StartChildWorkflowExecutionInitiated@ event corresponding to the @StartChildWorkflowExecution@ decision 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.+scwefeaInitiatedEventId :: Lens' StartChildWorkflowExecutionFailedEventAttributes Integer+scwefeaInitiatedEventId = lens _scwefeaInitiatedEventId (\ s a -> s{_scwefeaInitiatedEventId = a});++-- | The ID of the @DecisionTaskCompleted@ event corresponding to the decision task that resulted in the @StartChildWorkflowExecution@ decision to request this child workflow execution. This information can be useful for diagnosing problems by tracing back the cause of events.+scwefeaDecisionTaskCompletedEventId :: Lens' StartChildWorkflowExecutionFailedEventAttributes Integer+scwefeaDecisionTaskCompletedEventId = lens _scwefeaDecisionTaskCompletedEventId (\ s a -> s{_scwefeaDecisionTaskCompletedEventId = a});++instance FromJSON+         StartChildWorkflowExecutionFailedEventAttributes+         where+        parseJSON+          = withObject+              "StartChildWorkflowExecutionFailedEventAttributes"+              (\ x ->+                 StartChildWorkflowExecutionFailedEventAttributes' <$>+                   (x .:? "control") <*> (x .: "workflowType") <*>+                     (x .: "cause")+                     <*> (x .: "workflowId")+                     <*> (x .: "initiatedEventId")+                     <*> (x .: "decisionTaskCompletedEventId"))++instance Hashable+         StartChildWorkflowExecutionFailedEventAttributes++instance NFData+         StartChildWorkflowExecutionFailedEventAttributes++-- | Provides details of the @StartChildWorkflowExecutionInitiated@ event.+--+--+--+-- /See:/ 'startChildWorkflowExecutionInitiatedEventAttributes' smart constructor.+data StartChildWorkflowExecutionInitiatedEventAttributes = StartChildWorkflowExecutionInitiatedEventAttributes'+    { _scweieaControl                      :: !(Maybe Text)+    , _scweieaTagList                      :: !(Maybe [Text])+    , _scweieaTaskStartToCloseTimeout      :: !(Maybe Text)+    , _scweieaLambdaRole                   :: !(Maybe Text)+    , _scweieaInput                        :: !(Maybe Text)+    , _scweieaExecutionStartToCloseTimeout :: !(Maybe Text)+    , _scweieaTaskPriority                 :: !(Maybe Text)+    , _scweieaWorkflowId                   :: !Text+    , _scweieaWorkflowType                 :: !WorkflowType+    , _scweieaTaskList                     :: !TaskList+    , _scweieaDecisionTaskCompletedEventId :: !Integer+    , _scweieaChildPolicy                  :: !ChildPolicy+    } deriving (Eq,Read,Show,Data,Typeable,Generic)++-- | Creates a value of 'StartChildWorkflowExecutionInitiatedEventAttributes' with the minimum fields required to make a request.+--+-- Use one of the following lenses to modify other fields as desired:+--+-- * 'scweieaControl' - /Optional./ Data attached to the event that can be used by the decider in subsequent decision tasks. This data is not sent to the activity.+--+-- * 'scweieaTagList' - The list of tags to associated with the child workflow execution.+--+-- * 'scweieaTaskStartToCloseTimeout' - 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 0. The value "NONE" can be used to specify unlimited duration.+--+-- * 'scweieaLambdaRole' - The IAM role attached to this workflow execution to use when invoking AWS Lambda functions.+--+-- * 'scweieaInput' - The inputs provided to the child workflow execution (if any).+--+-- * 'scweieaExecutionStartToCloseTimeout' - The maximum duration for the child workflow execution. If the workflow execution is not closed within this duration, it will be timed out and force terminated. The duration is specified in seconds; an integer greater than or equal to 0. The value "NONE" can be used to specify unlimited duration.+--+-- * 'scweieaTaskPriority' - /Optional./ The priority assigned for the decision tasks for this workflow execution. Valid values are integers that range from Java's @Integer.MIN_VALUE@ (-2147483648) to @Integer.MAX_VALUE@ (2147483647). Higher numbers indicate higher priority. For more information about setting task priority, see <http://docs.aws.amazon.com/amazonswf/latest/developerguide/programming-priority.html Setting Task Priority> in the /Amazon Simple Workflow Developer Guide/ .+--+-- * 'scweieaWorkflowId' - The @workflowId@ of the child workflow execution.+--+-- * 'scweieaWorkflowType' - The type of the child workflow execution.+--+-- * 'scweieaTaskList' - The name of the task list used for the decision tasks of the child workflow execution.+--+-- * 'scweieaDecisionTaskCompletedEventId' - The ID of the @DecisionTaskCompleted@ event corresponding to the decision task that resulted in the @StartChildWorkflowExecution@ decision to request this child workflow execution. This information can be useful for diagnosing problems by tracing back the cause of events.+--+-- * 'scweieaChildPolicy' - The policy to use for the child workflow executions if this execution gets terminated by explicitly calling the 'TerminateWorkflowExecution' action or due to an expired timeout. The supported child policies are:     * __TERMINATE:__ the child executions will be terminated.    * __REQUEST_CANCEL:__ a request to cancel will be attempted for each child execution by recording a @WorkflowExecutionCancelRequested@ event in its history. It is up to the decider to take appropriate actions when it receives an execution history with this event.    * __ABANDON:__ no action will be taken. The child executions will continue to run.+startChildWorkflowExecutionInitiatedEventAttributes+    :: Text -- ^ 'scweieaWorkflowId'+    -> WorkflowType -- ^ 'scweieaWorkflowType'+    -> TaskList -- ^ 'scweieaTaskList'+    -> Integer -- ^ 'scweieaDecisionTaskCompletedEventId'+    -> ChildPolicy -- ^ 'scweieaChildPolicy'+    -> StartChildWorkflowExecutionInitiatedEventAttributes+startChildWorkflowExecutionInitiatedEventAttributes pWorkflowId_ pWorkflowType_ pTaskList_ pDecisionTaskCompletedEventId_ pChildPolicy_ =+    StartChildWorkflowExecutionInitiatedEventAttributes'+    { _scweieaControl = Nothing+    , _scweieaTagList = Nothing+    , _scweieaTaskStartToCloseTimeout = Nothing+    , _scweieaLambdaRole = Nothing+    , _scweieaInput = Nothing+    , _scweieaExecutionStartToCloseTimeout = Nothing+    , _scweieaTaskPriority = Nothing+    , _scweieaWorkflowId = pWorkflowId_+    , _scweieaWorkflowType = pWorkflowType_+    , _scweieaTaskList = pTaskList_+    , _scweieaDecisionTaskCompletedEventId = pDecisionTaskCompletedEventId_+    , _scweieaChildPolicy = pChildPolicy_+    }++-- | /Optional./ Data attached to the event that can be used by the decider in subsequent decision tasks. This data is not sent to the activity.+scweieaControl :: Lens' StartChildWorkflowExecutionInitiatedEventAttributes (Maybe Text)+scweieaControl = lens _scweieaControl (\ s a -> s{_scweieaControl = a});++-- | The list of tags to associated with the child workflow execution.+scweieaTagList :: Lens' StartChildWorkflowExecutionInitiatedEventAttributes [Text]+scweieaTagList = lens _scweieaTagList (\ s a -> s{_scweieaTagList = a}) . _Default . _Coerce;++-- | 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 0. The value "NONE" can be used to specify unlimited duration.+scweieaTaskStartToCloseTimeout :: Lens' StartChildWorkflowExecutionInitiatedEventAttributes (Maybe Text)+scweieaTaskStartToCloseTimeout = lens _scweieaTaskStartToCloseTimeout (\ s a -> s{_scweieaTaskStartToCloseTimeout = a});++-- | The IAM role attached to this workflow execution to use when invoking AWS Lambda functions.+scweieaLambdaRole :: Lens' StartChildWorkflowExecutionInitiatedEventAttributes (Maybe Text)+scweieaLambdaRole = lens _scweieaLambdaRole (\ s a -> s{_scweieaLambdaRole = a});++-- | The inputs provided to the child workflow execution (if any).+scweieaInput :: Lens' StartChildWorkflowExecutionInitiatedEventAttributes (Maybe Text)+scweieaInput = lens _scweieaInput (\ s a -> s{_scweieaInput = a});++-- | The maximum duration for the child workflow execution. If the workflow execution is not closed within this duration, it will be timed out and force terminated. The duration is specified in seconds; an integer greater than or equal to 0. The value "NONE" can be used to specify unlimited duration.+scweieaExecutionStartToCloseTimeout :: Lens' StartChildWorkflowExecutionInitiatedEventAttributes (Maybe Text)+scweieaExecutionStartToCloseTimeout = lens _scweieaExecutionStartToCloseTimeout (\ s a -> s{_scweieaExecutionStartToCloseTimeout = a});++-- | /Optional./ The priority assigned for the decision tasks for this workflow execution. Valid values are integers that range from Java's @Integer.MIN_VALUE@ (-2147483648) to @Integer.MAX_VALUE@ (2147483647). Higher numbers indicate higher priority. For more information about setting task priority, see <http://docs.aws.amazon.com/amazonswf/latest/developerguide/programming-priority.html Setting Task Priority> in the /Amazon Simple Workflow Developer Guide/ .+scweieaTaskPriority :: Lens' StartChildWorkflowExecutionInitiatedEventAttributes (Maybe Text)+scweieaTaskPriority = lens _scweieaTaskPriority (\ s a -> s{_scweieaTaskPriority = a});++-- | The @workflowId@ of the child workflow execution.+scweieaWorkflowId :: Lens' StartChildWorkflowExecutionInitiatedEventAttributes Text+scweieaWorkflowId = lens _scweieaWorkflowId (\ s a -> s{_scweieaWorkflowId = a});++-- | The type of the child workflow execution.+scweieaWorkflowType :: Lens' StartChildWorkflowExecutionInitiatedEventAttributes WorkflowType+scweieaWorkflowType = lens _scweieaWorkflowType (\ s a -> s{_scweieaWorkflowType = a});++-- | The name of the task list used for the decision tasks of the child workflow execution.+scweieaTaskList :: Lens' StartChildWorkflowExecutionInitiatedEventAttributes TaskList+scweieaTaskList = lens _scweieaTaskList (\ s a -> s{_scweieaTaskList = a});++-- | The ID of the @DecisionTaskCompleted@ event corresponding to the decision task that resulted in the @StartChildWorkflowExecution@ decision 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+scweieaDecisionTaskCompletedEventId = lens _scweieaDecisionTaskCompletedEventId (\ s a -> s{_scweieaDecisionTaskCompletedEventId = a});++-- | The policy to use for the child workflow executions if this execution gets terminated by explicitly calling the 'TerminateWorkflowExecution' action or due to an expired timeout. The supported child policies are:     * __TERMINATE:__ the child executions will be terminated.    * __REQUEST_CANCEL:__ a request to cancel will be attempted for each child execution by recording a @WorkflowExecutionCancelRequested@ event in its history. It is up to the decider to take appropriate actions when it receives an execution history with this event.    * __ABANDON:__ no action will be taken. The child executions will continue to run.+scweieaChildPolicy :: Lens' StartChildWorkflowExecutionInitiatedEventAttributes ChildPolicy+scweieaChildPolicy = lens _scweieaChildPolicy (\ s a -> s{_scweieaChildPolicy = a});++instance FromJSON+         StartChildWorkflowExecutionInitiatedEventAttributes+         where+        parseJSON+          = withObject+              "StartChildWorkflowExecutionInitiatedEventAttributes"+              (\ x ->+                 StartChildWorkflowExecutionInitiatedEventAttributes'+                   <$>+                   (x .:? "control") <*> (x .:? "tagList" .!= mempty)+                     <*> (x .:? "taskStartToCloseTimeout")+                     <*> (x .:? "lambdaRole")+                     <*> (x .:? "input")+                     <*> (x .:? "executionStartToCloseTimeout")+                     <*> (x .:? "taskPriority")+                     <*> (x .: "workflowId")+                     <*> (x .: "workflowType")+                     <*> (x .: "taskList")+                     <*> (x .: "decisionTaskCompletedEventId")+                     <*> (x .: "childPolicy"))++instance Hashable+         StartChildWorkflowExecutionInitiatedEventAttributes++instance NFData+         StartChildWorkflowExecutionInitiatedEventAttributes++-- | Provides details for the @StartLambdaFunctionFailed@ event.+--+--+--+-- /See:/ 'startLambdaFunctionFailedEventAttributes' smart constructor.+data StartLambdaFunctionFailedEventAttributes = StartLambdaFunctionFailedEventAttributes'+    { _sScheduledEventId :: !(Maybe Integer)+    , _sCause            :: !(Maybe StartLambdaFunctionFailedCause)+    , _sMessage          :: !(Maybe Text)+    } deriving (Eq,Read,Show,Data,Typeable,Generic)++-- | Creates a value of 'StartLambdaFunctionFailedEventAttributes' with the minimum fields required to make a request.+--+-- Use one of the following lenses to modify other fields as desired:+--+-- * 'sScheduledEventId' - The ID of the @LambdaFunctionScheduled@ event that was recorded when this AWS Lambda function was scheduled. This information can be useful for diagnosing problems by tracing back the chain of events leading up to this event.+--+-- * 'sCause' - The cause of the failure. This information is generated by the system and can be useful for diagnostic purposes.+--+-- * 'sMessage' - The error message (if any).+startLambdaFunctionFailedEventAttributes+    :: StartLambdaFunctionFailedEventAttributes+startLambdaFunctionFailedEventAttributes =+    StartLambdaFunctionFailedEventAttributes'+    { _sScheduledEventId = Nothing+    , _sCause = Nothing+    , _sMessage = Nothing+    }++-- | The ID of the @LambdaFunctionScheduled@ event that was recorded when this AWS Lambda function was scheduled. This information can be useful for diagnosing problems by tracing back the chain of events leading up to this event.+sScheduledEventId :: Lens' StartLambdaFunctionFailedEventAttributes (Maybe Integer)+sScheduledEventId = lens _sScheduledEventId (\ s a -> s{_sScheduledEventId = a});++-- | The cause of the failure. This information is generated by the system and can be useful for diagnostic purposes.+sCause :: Lens' StartLambdaFunctionFailedEventAttributes (Maybe StartLambdaFunctionFailedCause)+sCause = lens _sCause (\ s a -> s{_sCause = a});++-- | The error message (if any).+sMessage :: Lens' StartLambdaFunctionFailedEventAttributes (Maybe Text)+sMessage = lens _sMessage (\ s a -> s{_sMessage = a});++instance FromJSON+         StartLambdaFunctionFailedEventAttributes where+        parseJSON+          = withObject+              "StartLambdaFunctionFailedEventAttributes"+              (\ x ->+                 StartLambdaFunctionFailedEventAttributes' <$>+                   (x .:? "scheduledEventId") <*> (x .:? "cause") <*>+                     (x .:? "message"))++instance Hashable+         StartLambdaFunctionFailedEventAttributes++instance NFData+         StartLambdaFunctionFailedEventAttributes++-- | Provides details of the @StartTimer@ decision.+--+--+-- __Access Control__+--+-- You can use IAM policies to control this decision's access to Amazon SWF resources as follows:+--+--     * Use a @Resource@ element with the domain name to limit the action to only specified domains.    * Use an @Action@ element to allow or deny permission to call this action.    * You cannot use an IAM policy to constrain this action's parameters.+--+-- If the caller does not have sufficient permissions to invoke the action, or the parameter values fall outside the specified constraints, the action fails. The associated event attribute's __cause__ parameter will be set to OPERATION_NOT_PERMITTED. For details and example IAM policies, see <http://docs.aws.amazon.com/amazonswf/latest/developerguide/swf-dev-iam.html Using IAM to Manage Access to Amazon SWF Workflows> .+--+--+-- /See:/ 'startTimerDecisionAttributes' smart constructor.+data StartTimerDecisionAttributes = StartTimerDecisionAttributes'+    { _stdaControl            :: !(Maybe Text)+    , _stdaTimerId            :: !Text+    , _stdaStartToFireTimeout :: !Text+    } deriving (Eq,Read,Show,Data,Typeable,Generic)++-- | Creates a value of 'StartTimerDecisionAttributes' with the minimum fields required to make a request.+--+-- Use one of the following lenses to modify other fields as desired:+--+-- * 'stdaControl' - /Optional./ Data attached to the event that can be used by the decider in subsequent workflow tasks.+--+-- * 'stdaTimerId' - __Required.__ The unique ID of the timer. The specified string must not start or end with whitespace. It must not contain a @:@ (colon), @/@ (slash), @|@ (vertical bar), or any control characters (\u0000-\u001f | \u007f - \u009f). Also, it must not contain the literal string quotarnquot.+--+-- * 'stdaStartToFireTimeout' - __Required.__ The duration to wait before firing the timer. The duration is specified in seconds; an integer greater than or equal to 0.+startTimerDecisionAttributes+    :: Text -- ^ 'stdaTimerId'+    -> Text -- ^ 'stdaStartToFireTimeout'+    -> StartTimerDecisionAttributes+startTimerDecisionAttributes pTimerId_ pStartToFireTimeout_ =+    StartTimerDecisionAttributes'+    { _stdaControl = Nothing+    , _stdaTimerId = pTimerId_+    , _stdaStartToFireTimeout = pStartToFireTimeout_+    }++-- | /Optional./ Data attached to the event that can be used by the decider in subsequent workflow tasks.+stdaControl :: Lens' StartTimerDecisionAttributes (Maybe Text)+stdaControl = lens _stdaControl (\ s a -> s{_stdaControl = a});++-- | __Required.__ The unique ID of the timer. The specified string must not start or end with whitespace. It must not contain a @:@ (colon), @/@ (slash), @|@ (vertical bar), or any control characters (\u0000-\u001f | \u007f - \u009f). Also, it must not contain the literal string quotarnquot.+stdaTimerId :: Lens' StartTimerDecisionAttributes Text+stdaTimerId = lens _stdaTimerId (\ s a -> s{_stdaTimerId = a});++-- | __Required.__ The duration to wait before firing the timer. The duration is specified in seconds; an integer greater than or equal to 0.+stdaStartToFireTimeout :: Lens' StartTimerDecisionAttributes Text+stdaStartToFireTimeout = lens _stdaStartToFireTimeout (\ s a -> s{_stdaStartToFireTimeout = a});++instance Hashable StartTimerDecisionAttributes++instance NFData StartTimerDecisionAttributes++instance ToJSON StartTimerDecisionAttributes where+        toJSON StartTimerDecisionAttributes'{..}+          = object+              (catMaybes+                 [("control" .=) <$> _stdaControl,+                  Just ("timerId" .= _stdaTimerId),+                  Just+                    ("startToFireTimeout" .= _stdaStartToFireTimeout)])++-- | Provides details of the @StartTimerFailed@ event.+--+--+--+-- /See:/ 'startTimerFailedEventAttributes' smart constructor.+data StartTimerFailedEventAttributes = StartTimerFailedEventAttributes'+    { _stfeaTimerId                      :: !Text+    , _stfeaCause                        :: !StartTimerFailedCause+    , _stfeaDecisionTaskCompletedEventId :: !Integer+    } deriving (Eq,Read,Show,Data,Typeable,Generic)++-- | Creates a value of 'StartTimerFailedEventAttributes' with the minimum fields required to make a request.+--+-- Use one of the following lenses to modify other fields as desired:+--+-- * 'stfeaTimerId' - The timerId provided in the @StartTimer@ decision that failed.+--+-- * 'stfeaCause' - The cause of the failure. This information is generated by the system and can be useful for diagnostic purposes.+--+-- * 'stfeaDecisionTaskCompletedEventId' - The ID of the @DecisionTaskCompleted@ event corresponding to the decision task that resulted in the @StartTimer@ 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.+startTimerFailedEventAttributes+    :: Text -- ^ 'stfeaTimerId'+    -> StartTimerFailedCause -- ^ 'stfeaCause'+    -> Integer -- ^ 'stfeaDecisionTaskCompletedEventId'+    -> StartTimerFailedEventAttributes+startTimerFailedEventAttributes pTimerId_ pCause_ pDecisionTaskCompletedEventId_ =+    StartTimerFailedEventAttributes'+    { _stfeaTimerId = pTimerId_+    , _stfeaCause = pCause_+    , _stfeaDecisionTaskCompletedEventId = pDecisionTaskCompletedEventId_+    }++-- | The timerId provided in the @StartTimer@ decision that failed.+stfeaTimerId :: Lens' StartTimerFailedEventAttributes Text+stfeaTimerId = lens _stfeaTimerId (\ s a -> s{_stfeaTimerId = a});++-- | The cause of the failure. This information is generated by the system and can be useful for diagnostic purposes.+stfeaCause :: Lens' StartTimerFailedEventAttributes StartTimerFailedCause+stfeaCause = lens _stfeaCause (\ s a -> s{_stfeaCause = a});++-- | The ID of the @DecisionTaskCompleted@ event corresponding to the decision task that resulted in the @StartTimer@ 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+stfeaDecisionTaskCompletedEventId = lens _stfeaDecisionTaskCompletedEventId (\ s a -> s{_stfeaDecisionTaskCompletedEventId = a});++instance FromJSON StartTimerFailedEventAttributes+         where+        parseJSON+          = withObject "StartTimerFailedEventAttributes"+              (\ x ->+                 StartTimerFailedEventAttributes' <$>+                   (x .: "timerId") <*> (x .: "cause") <*>+                     (x .: "decisionTaskCompletedEventId"))++instance Hashable StartTimerFailedEventAttributes++instance NFData StartTimerFailedEventAttributes++-- | Used to filter the workflow executions in visibility APIs based on a tag.+--+--+--+-- /See:/ 'tagFilter' smart constructor.+newtype TagFilter = TagFilter'+    { _tfTag :: Text+    } deriving (Eq,Read,Show,Data,Typeable,Generic)++-- | Creates a value of 'TagFilter' with the minimum fields required to make a request.+--+-- Use one of the following lenses to modify other fields as desired:+--+-- * 'tfTag' - __Required.__ Specifies the tag that must be associated with the execution for it to meet the filter criteria.+tagFilter+    :: Text -- ^ 'tfTag'+    -> TagFilter+tagFilter pTag_ =+    TagFilter'+    { _tfTag = pTag_+    }++-- | __Required.__ Specifies the tag that must be associated with the execution for it to meet the filter criteria.+tfTag :: Lens' TagFilter Text+tfTag = lens _tfTag (\ s a -> s{_tfTag = a});++instance Hashable TagFilter++instance NFData TagFilter++instance ToJSON TagFilter where+        toJSON TagFilter'{..}+          = object (catMaybes [Just ("tag" .= _tfTag)])++-- | Represents a task list.+--+--+--+-- /See:/ 'taskList' smart constructor.+newtype TaskList = TaskList'+    { _tlName :: Text+    } deriving (Eq,Read,Show,Data,Typeable,Generic)++-- | Creates a value of 'TaskList' with the minimum fields required to make a request.+--+-- Use one of the following lenses to modify other fields as desired:+--+-- * 'tlName' - The name of the task list.+taskList+    :: Text -- ^ 'tlName'+    -> TaskList+taskList pName_ =+    TaskList'+    { _tlName = pName_+    }++-- | The name of the task list.+tlName :: Lens' TaskList Text+tlName = lens _tlName (\ s a -> s{_tlName = a});++instance FromJSON TaskList where+        parseJSON+          = withObject "TaskList"+              (\ x -> TaskList' <$> (x .: "name"))++instance Hashable TaskList++instance NFData TaskList++instance ToJSON TaskList where+        toJSON TaskList'{..}+          = object (catMaybes [Just ("name" .= _tlName)])++-- | Provides details of the @TimerCanceled@ event.+--+--+--+-- /See:/ 'timerCanceledEventAttributes' smart constructor.+data TimerCanceledEventAttributes = TimerCanceledEventAttributes'+    { _tceaTimerId                      :: !Text+    , _tceaStartedEventId               :: !Integer+    , _tceaDecisionTaskCompletedEventId :: !Integer+    } deriving (Eq,Read,Show,Data,Typeable,Generic)++-- | Creates a value of 'TimerCanceledEventAttributes' with the minimum fields required to make a request.+--+-- Use one of the following lenses to modify other fields as desired:+--+-- * 'tceaTimerId' - The unique ID of the timer that was canceled.+--+-- * 'tceaStartedEventId' - The ID of the @TimerStarted@ 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.+--+-- * 'tceaDecisionTaskCompletedEventId' - The ID of the @DecisionTaskCompleted@ event corresponding to the decision task that resulted in the @CancelTimer@ 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.+timerCanceledEventAttributes+    :: Text -- ^ 'tceaTimerId'+    -> Integer -- ^ 'tceaStartedEventId'+    -> Integer -- ^ 'tceaDecisionTaskCompletedEventId'+    -> TimerCanceledEventAttributes+timerCanceledEventAttributes pTimerId_ pStartedEventId_ pDecisionTaskCompletedEventId_ =+    TimerCanceledEventAttributes'+    { _tceaTimerId = pTimerId_+    , _tceaStartedEventId = pStartedEventId_+    , _tceaDecisionTaskCompletedEventId = pDecisionTaskCompletedEventId_+    }++-- | The unique ID of the timer that was canceled.+tceaTimerId :: Lens' TimerCanceledEventAttributes Text+tceaTimerId = lens _tceaTimerId (\ s a -> s{_tceaTimerId = a});++-- | The ID of the @TimerStarted@ 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+tceaStartedEventId = lens _tceaStartedEventId (\ s a -> s{_tceaStartedEventId = a});++-- | The ID of the @DecisionTaskCompleted@ event corresponding to the decision task that resulted in the @CancelTimer@ 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+tceaDecisionTaskCompletedEventId = lens _tceaDecisionTaskCompletedEventId (\ s a -> s{_tceaDecisionTaskCompletedEventId = a});++instance FromJSON TimerCanceledEventAttributes where+        parseJSON+          = withObject "TimerCanceledEventAttributes"+              (\ x ->+                 TimerCanceledEventAttributes' <$>+                   (x .: "timerId") <*> (x .: "startedEventId") <*>+                     (x .: "decisionTaskCompletedEventId"))++instance Hashable TimerCanceledEventAttributes++instance NFData TimerCanceledEventAttributes++-- | Provides details of the @TimerFired@ event.+--+--+--+-- /See:/ 'timerFiredEventAttributes' smart constructor.+data TimerFiredEventAttributes = TimerFiredEventAttributes'+    { _tfeaTimerId        :: !Text+    , _tfeaStartedEventId :: !Integer+    } deriving (Eq,Read,Show,Data,Typeable,Generic)++-- | Creates a value of 'TimerFiredEventAttributes' with the minimum fields required to make a request.+--+-- Use one of the following lenses to modify other fields as desired:+--+-- * 'tfeaTimerId' - The unique ID of the timer that fired.+--+-- * 'tfeaStartedEventId' - The ID of the @TimerStarted@ 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.+timerFiredEventAttributes+    :: Text -- ^ 'tfeaTimerId'+    -> Integer -- ^ 'tfeaStartedEventId'+    -> TimerFiredEventAttributes+timerFiredEventAttributes pTimerId_ pStartedEventId_ =+    TimerFiredEventAttributes'+    { _tfeaTimerId = pTimerId_+    , _tfeaStartedEventId = pStartedEventId_+    }++-- | The unique ID of the timer that fired.+tfeaTimerId :: Lens' TimerFiredEventAttributes Text+tfeaTimerId = lens _tfeaTimerId (\ s a -> s{_tfeaTimerId = a});++-- | The ID of the @TimerStarted@ 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+tfeaStartedEventId = lens _tfeaStartedEventId (\ s a -> s{_tfeaStartedEventId = a});++instance FromJSON TimerFiredEventAttributes where+        parseJSON+          = withObject "TimerFiredEventAttributes"+              (\ x ->+                 TimerFiredEventAttributes' <$>+                   (x .: "timerId") <*> (x .: "startedEventId"))++instance Hashable TimerFiredEventAttributes++instance NFData TimerFiredEventAttributes++-- | Provides details of the @TimerStarted@ event.+--+--+--+-- /See:/ 'timerStartedEventAttributes' smart constructor.+data TimerStartedEventAttributes = TimerStartedEventAttributes'+    { _tseaControl                      :: !(Maybe Text)+    , _tseaTimerId                      :: !Text+    , _tseaStartToFireTimeout           :: !Text+    , _tseaDecisionTaskCompletedEventId :: !Integer+    } deriving (Eq,Read,Show,Data,Typeable,Generic)++-- | Creates a value of 'TimerStartedEventAttributes' with the minimum fields required to make a request.+--+-- Use one of the following lenses to modify other fields as desired:+--+-- * 'tseaControl' - /Optional./ Data attached to the event that can be used by the decider in subsequent workflow tasks.+--+-- * 'tseaTimerId' - The unique ID of the timer that was started.+--+-- * 'tseaStartToFireTimeout' - The duration of time after which the timer will fire. The duration is specified in seconds; an integer greater than or equal to 0.+--+-- * 'tseaDecisionTaskCompletedEventId' - The ID of the @DecisionTaskCompleted@ event corresponding to the decision task that resulted in the @StartTimer@ 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.+timerStartedEventAttributes+    :: Text -- ^ 'tseaTimerId'+    -> Text -- ^ 'tseaStartToFireTimeout'+    -> Integer -- ^ 'tseaDecisionTaskCompletedEventId'+    -> TimerStartedEventAttributes+timerStartedEventAttributes pTimerId_ pStartToFireTimeout_ pDecisionTaskCompletedEventId_ =+    TimerStartedEventAttributes'+    { _tseaControl = Nothing+    , _tseaTimerId = pTimerId_+    , _tseaStartToFireTimeout = pStartToFireTimeout_+    , _tseaDecisionTaskCompletedEventId = pDecisionTaskCompletedEventId_+    }++-- | /Optional./ Data attached to the event that can be used by the decider in subsequent workflow tasks.+tseaControl :: Lens' TimerStartedEventAttributes (Maybe Text)+tseaControl = lens _tseaControl (\ s a -> s{_tseaControl = a});++-- | The unique ID of the timer that was started.+tseaTimerId :: Lens' TimerStartedEventAttributes Text+tseaTimerId = lens _tseaTimerId (\ s a -> s{_tseaTimerId = a});++-- | The duration of time after which the timer will fire. The duration is specified in seconds; an integer greater than or equal to 0.+tseaStartToFireTimeout :: Lens' TimerStartedEventAttributes Text+tseaStartToFireTimeout = lens _tseaStartToFireTimeout (\ s a -> s{_tseaStartToFireTimeout = a});++-- | The ID of the @DecisionTaskCompleted@ event corresponding to the decision task that resulted in the @StartTimer@ 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+tseaDecisionTaskCompletedEventId = lens _tseaDecisionTaskCompletedEventId (\ s a -> s{_tseaDecisionTaskCompletedEventId = a});++instance FromJSON TimerStartedEventAttributes where+        parseJSON+          = withObject "TimerStartedEventAttributes"+              (\ x ->+                 TimerStartedEventAttributes' <$>+                   (x .:? "control") <*> (x .: "timerId") <*>+                     (x .: "startToFireTimeout")+                     <*> (x .: "decisionTaskCompletedEventId"))++instance Hashable TimerStartedEventAttributes++instance NFData TimerStartedEventAttributes++-- | Represents a workflow execution.+--+--+--+-- /See:/ 'workflowExecution' smart constructor.+data WorkflowExecution = WorkflowExecution'+    { _weWorkflowId :: !Text+    , _weRunId      :: !Text+    } deriving (Eq,Read,Show,Data,Typeable,Generic)++-- | Creates a value of 'WorkflowExecution' with the minimum fields required to make a request.+--+-- Use one of the following lenses to modify other fields as desired:+--+-- * 'weWorkflowId' - The user defined identifier associated with the workflow execution.+--+-- * 'weRunId' - A system-generated unique identifier for the workflow execution.+workflowExecution+    :: Text -- ^ 'weWorkflowId'+    -> Text -- ^ 'weRunId'+    -> WorkflowExecution+workflowExecution pWorkflowId_ pRunId_ =+    WorkflowExecution'+    { _weWorkflowId = pWorkflowId_+    , _weRunId = pRunId_+    }++-- | The user defined identifier associated with the workflow execution.+weWorkflowId :: Lens' WorkflowExecution Text+weWorkflowId = lens _weWorkflowId (\ s a -> s{_weWorkflowId = a});++-- | A system-generated unique identifier for the workflow execution.+weRunId :: Lens' WorkflowExecution Text+weRunId = lens _weRunId (\ s a -> s{_weRunId = a});++instance FromJSON WorkflowExecution where+        parseJSON+          = withObject "WorkflowExecution"+              (\ x ->+                 WorkflowExecution' <$>+                   (x .: "workflowId") <*> (x .: "runId"))++instance Hashable WorkflowExecution++instance NFData WorkflowExecution++instance ToJSON WorkflowExecution where+        toJSON WorkflowExecution'{..}+          = object+              (catMaybes+                 [Just ("workflowId" .= _weWorkflowId),+                  Just ("runId" .= _weRunId)])++-- | Provides details of the @WorkflowExecutionCancelRequested@ event.+--+--+--+-- /See:/ 'workflowExecutionCancelRequestedEventAttributes' smart constructor.+data WorkflowExecutionCancelRequestedEventAttributes = WorkflowExecutionCancelRequestedEventAttributes'+    { _wecreaExternalWorkflowExecution :: !(Maybe WorkflowExecution)+    , _wecreaExternalInitiatedEventId  :: !(Maybe Integer)+    , _wecreaCause                     :: !(Maybe WorkflowExecutionCancelRequestedCause)+    } deriving (Eq,Read,Show,Data,Typeable,Generic)++-- | Creates a value of 'WorkflowExecutionCancelRequestedEventAttributes' with the minimum fields required to make a request.+--+-- Use one of the following lenses to modify other fields as desired:+--+-- * 'wecreaExternalWorkflowExecution' - The external workflow execution for which the cancellation was requested.+--+-- * 'wecreaExternalInitiatedEventId' - The ID of the @RequestCancelExternalWorkflowExecutionInitiated@ event corresponding to the @RequestCancelExternalWorkflowExecution@ 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.+--+-- * 'wecreaCause' - 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.+workflowExecutionCancelRequestedEventAttributes+    :: WorkflowExecutionCancelRequestedEventAttributes+workflowExecutionCancelRequestedEventAttributes =+    WorkflowExecutionCancelRequestedEventAttributes'+    { _wecreaExternalWorkflowExecution = Nothing+    , _wecreaExternalInitiatedEventId = Nothing+    , _wecreaCause = Nothing+    }++-- | The external workflow execution for which the cancellation was requested.+wecreaExternalWorkflowExecution :: Lens' WorkflowExecutionCancelRequestedEventAttributes (Maybe WorkflowExecution)+wecreaExternalWorkflowExecution = lens _wecreaExternalWorkflowExecution (\ s a -> s{_wecreaExternalWorkflowExecution = a});++-- | The ID of the @RequestCancelExternalWorkflowExecutionInitiated@ event corresponding to the @RequestCancelExternalWorkflowExecution@ 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)+wecreaExternalInitiatedEventId = lens _wecreaExternalInitiatedEventId (\ s a -> s{_wecreaExternalInitiatedEventId = 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.+wecreaCause :: Lens' WorkflowExecutionCancelRequestedEventAttributes (Maybe WorkflowExecutionCancelRequestedCause)+wecreaCause = lens _wecreaCause (\ s a -> s{_wecreaCause = a});++instance FromJSON+         WorkflowExecutionCancelRequestedEventAttributes where+        parseJSON+          = withObject+              "WorkflowExecutionCancelRequestedEventAttributes"+              (\ x ->+                 WorkflowExecutionCancelRequestedEventAttributes' <$>+                   (x .:? "externalWorkflowExecution") <*>+                     (x .:? "externalInitiatedEventId")+                     <*> (x .:? "cause"))++instance Hashable+         WorkflowExecutionCancelRequestedEventAttributes++instance NFData+         WorkflowExecutionCancelRequestedEventAttributes++-- | Provides details of the @WorkflowExecutionCanceled@ event.+--+--+--+-- /See:/ 'workflowExecutionCanceledEventAttributes' smart constructor.+data WorkflowExecutionCanceledEventAttributes = WorkflowExecutionCanceledEventAttributes'+    { _wDetails                      :: !(Maybe Text)+    , _wDecisionTaskCompletedEventId :: !Integer+    } deriving (Eq,Read,Show,Data,Typeable,Generic)++-- | Creates a value of 'WorkflowExecutionCanceledEventAttributes' with the minimum fields required to make a request.+--+-- Use one of the following lenses to modify other fields as desired:+--+-- * 'wDetails' - Details for the cancellation (if any).+--+-- * 'wDecisionTaskCompletedEventId' - The ID of the @DecisionTaskCompleted@ event corresponding to the decision task that resulted in the @CancelWorkflowExecution@ 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.+workflowExecutionCanceledEventAttributes+    :: Integer -- ^ 'wDecisionTaskCompletedEventId'+    -> WorkflowExecutionCanceledEventAttributes+workflowExecutionCanceledEventAttributes pDecisionTaskCompletedEventId_ =+    WorkflowExecutionCanceledEventAttributes'+    { _wDetails = Nothing+    , _wDecisionTaskCompletedEventId = pDecisionTaskCompletedEventId_+    }++-- | Details for the cancellation (if any).+wDetails :: Lens' WorkflowExecutionCanceledEventAttributes (Maybe Text)+wDetails = lens _wDetails (\ s a -> s{_wDetails = a});++-- | The ID of the @DecisionTaskCompleted@ event corresponding to the decision task that resulted in the @CancelWorkflowExecution@ 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+wDecisionTaskCompletedEventId = lens _wDecisionTaskCompletedEventId (\ s a -> s{_wDecisionTaskCompletedEventId = a});++instance FromJSON+         WorkflowExecutionCanceledEventAttributes where+        parseJSON+          = withObject+              "WorkflowExecutionCanceledEventAttributes"+              (\ x ->+                 WorkflowExecutionCanceledEventAttributes' <$>+                   (x .:? "details") <*>+                     (x .: "decisionTaskCompletedEventId"))++instance Hashable+         WorkflowExecutionCanceledEventAttributes++instance NFData+         WorkflowExecutionCanceledEventAttributes++-- | Provides details of the @WorkflowExecutionCompleted@ event.+--+--+--+-- /See:/ 'workflowExecutionCompletedEventAttributes' smart constructor.+data WorkflowExecutionCompletedEventAttributes = WorkflowExecutionCompletedEventAttributes'+    { _weceaResult                       :: !(Maybe Text)+    , _weceaDecisionTaskCompletedEventId :: !Integer+    } deriving (Eq,Read,Show,Data,Typeable,Generic)++-- | Creates a value of 'WorkflowExecutionCompletedEventAttributes' with the minimum fields required to make a request.+--+-- Use one of the following lenses to modify other fields as desired:+--+-- * 'weceaResult' - The result produced by the workflow execution upon successful completion.+--+-- * 'weceaDecisionTaskCompletedEventId' - The ID of the @DecisionTaskCompleted@ event corresponding to the decision task that resulted in the @CompleteWorkflowExecution@ 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.+workflowExecutionCompletedEventAttributes+    :: Integer -- ^ 'weceaDecisionTaskCompletedEventId'+    -> WorkflowExecutionCompletedEventAttributes+workflowExecutionCompletedEventAttributes pDecisionTaskCompletedEventId_ =+    WorkflowExecutionCompletedEventAttributes'+    { _weceaResult = Nothing+    , _weceaDecisionTaskCompletedEventId = pDecisionTaskCompletedEventId_+    }++-- | The result produced by the workflow execution upon successful completion.+weceaResult :: Lens' WorkflowExecutionCompletedEventAttributes (Maybe Text)+weceaResult = lens _weceaResult (\ s a -> s{_weceaResult = a});++-- | The ID of the @DecisionTaskCompleted@ event corresponding to the decision task that resulted in the @CompleteWorkflowExecution@ 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+weceaDecisionTaskCompletedEventId = lens _weceaDecisionTaskCompletedEventId (\ s a -> s{_weceaDecisionTaskCompletedEventId = a});++instance FromJSON+         WorkflowExecutionCompletedEventAttributes where+        parseJSON+          = withObject+              "WorkflowExecutionCompletedEventAttributes"+              (\ x ->+                 WorkflowExecutionCompletedEventAttributes' <$>+                   (x .:? "result") <*>+                     (x .: "decisionTaskCompletedEventId"))++instance Hashable+         WorkflowExecutionCompletedEventAttributes++instance NFData+         WorkflowExecutionCompletedEventAttributes++-- | 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.+--+--+--+-- /See:/ 'workflowExecutionConfiguration' smart constructor.+data WorkflowExecutionConfiguration = WorkflowExecutionConfiguration'+    { _wecLambdaRole                   :: !(Maybe Text)+    , _wecTaskPriority                 :: !(Maybe Text)+    , _wecTaskStartToCloseTimeout      :: !Text+    , _wecExecutionStartToCloseTimeout :: !Text+    , _wecTaskList                     :: !TaskList+    , _wecChildPolicy                  :: !ChildPolicy+    } deriving (Eq,Read,Show,Data,Typeable,Generic)++-- | Creates a value of 'WorkflowExecutionConfiguration' with the minimum fields required to make a request.+--+-- Use one of the following lenses to modify other fields as desired:+--+-- * 'wecLambdaRole' - The IAM role used by this workflow execution when invoking AWS Lambda functions.+--+-- * 'wecTaskPriority' - The priority assigned to decision tasks for this workflow execution. Valid values are integers that range from Java's @Integer.MIN_VALUE@ (-2147483648) to @Integer.MAX_VALUE@ (2147483647). Higher numbers indicate higher priority. For more information about setting task priority, see <http://docs.aws.amazon.com/amazonswf/latest/developerguide/programming-priority.html Setting Task Priority> in the /Amazon Simple Workflow Developer Guide/ .+--+-- * 'wecTaskStartToCloseTimeout' - The maximum duration allowed for decision tasks for this workflow execution. The duration is specified in seconds; an integer greater than or equal to 0. The value "NONE" can be used to specify unlimited duration.+--+-- * 'wecExecutionStartToCloseTimeout' - The total duration for this workflow execution. The duration is specified in seconds; an integer greater than or equal to 0. The value "NONE" can be used to specify unlimited duration.+--+-- * 'wecTaskList' - The task list used for the decision tasks generated for this workflow execution.+--+-- * 'wecChildPolicy' - The policy to use for the child workflow executions if this workflow execution is terminated, by calling the 'TerminateWorkflowExecution' action explicitly or due to an expired timeout. The supported child policies are:     * __TERMINATE:__ the child executions will be terminated.    * __REQUEST_CANCEL:__ a request to cancel will be attempted for each child execution by recording a @WorkflowExecutionCancelRequested@ event in its history. It is up to the decider to take appropriate actions when it receives an execution history with this event.    * __ABANDON:__ no action will be taken. The child executions will continue to run.+workflowExecutionConfiguration+    :: Text -- ^ 'wecTaskStartToCloseTimeout'+    -> Text -- ^ 'wecExecutionStartToCloseTimeout'+    -> TaskList -- ^ 'wecTaskList'+    -> ChildPolicy -- ^ 'wecChildPolicy'+    -> WorkflowExecutionConfiguration+workflowExecutionConfiguration pTaskStartToCloseTimeout_ pExecutionStartToCloseTimeout_ pTaskList_ pChildPolicy_ =+    WorkflowExecutionConfiguration'+    { _wecLambdaRole = Nothing+    , _wecTaskPriority = Nothing+    , _wecTaskStartToCloseTimeout = pTaskStartToCloseTimeout_+    , _wecExecutionStartToCloseTimeout = pExecutionStartToCloseTimeout_+    , _wecTaskList = pTaskList_+    , _wecChildPolicy = pChildPolicy_+    }++-- | The IAM role used by this workflow execution when invoking AWS Lambda functions.+wecLambdaRole :: Lens' WorkflowExecutionConfiguration (Maybe Text)+wecLambdaRole = lens _wecLambdaRole (\ s a -> s{_wecLambdaRole = a});++-- | The priority assigned to decision tasks for this workflow execution. Valid values are integers that range from Java's @Integer.MIN_VALUE@ (-2147483648) to @Integer.MAX_VALUE@ (2147483647). Higher numbers indicate higher priority. For more information about setting task priority, see <http://docs.aws.amazon.com/amazonswf/latest/developerguide/programming-priority.html Setting Task Priority> in the /Amazon Simple Workflow Developer Guide/ .+wecTaskPriority :: Lens' WorkflowExecutionConfiguration (Maybe Text)+wecTaskPriority = lens _wecTaskPriority (\ s a -> s{_wecTaskPriority = 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 0. The value "NONE" can be used to specify unlimited duration.+wecTaskStartToCloseTimeout :: Lens' WorkflowExecutionConfiguration Text+wecTaskStartToCloseTimeout = lens _wecTaskStartToCloseTimeout (\ s a -> s{_wecTaskStartToCloseTimeout = a});++-- | The total duration for this workflow execution. The duration is specified in seconds; an integer greater than or equal to 0. The value "NONE" can be used to specify unlimited duration.+wecExecutionStartToCloseTimeout :: Lens' WorkflowExecutionConfiguration Text+wecExecutionStartToCloseTimeout = lens _wecExecutionStartToCloseTimeout (\ s a -> s{_wecExecutionStartToCloseTimeout = a});++-- | The task list used for the decision tasks generated for this workflow execution.+wecTaskList :: Lens' WorkflowExecutionConfiguration TaskList+wecTaskList = lens _wecTaskList (\ s a -> s{_wecTaskList = a});++-- | The policy to use for the child workflow executions if this workflow execution is terminated, by calling the 'TerminateWorkflowExecution' action explicitly or due to an expired timeout. The supported child policies are:     * __TERMINATE:__ the child executions will be terminated.    * __REQUEST_CANCEL:__ a request to cancel will be attempted for each child execution by recording a @WorkflowExecutionCancelRequested@ event in its history. It is up to the decider to take appropriate actions when it receives an execution history with this event.    * __ABANDON:__ no action will be taken. The child executions will continue to run.+wecChildPolicy :: Lens' WorkflowExecutionConfiguration ChildPolicy+wecChildPolicy = lens _wecChildPolicy (\ s a -> s{_wecChildPolicy = a});++instance FromJSON WorkflowExecutionConfiguration+         where+        parseJSON+          = withObject "WorkflowExecutionConfiguration"+              (\ x ->+                 WorkflowExecutionConfiguration' <$>+                   (x .:? "lambdaRole") <*> (x .:? "taskPriority") <*>+                     (x .: "taskStartToCloseTimeout")+                     <*> (x .: "executionStartToCloseTimeout")+                     <*> (x .: "taskList")+                     <*> (x .: "childPolicy"))++instance Hashable WorkflowExecutionConfiguration++instance NFData WorkflowExecutionConfiguration++-- | Provides details of the @WorkflowExecutionContinuedAsNew@ event.+--+--+--+-- /See:/ 'workflowExecutionContinuedAsNewEventAttributes' smart constructor.+data WorkflowExecutionContinuedAsNewEventAttributes = WorkflowExecutionContinuedAsNewEventAttributes'+    { _wecaneaTagList                      :: !(Maybe [Text])+    , _wecaneaTaskStartToCloseTimeout      :: !(Maybe Text)+    , _wecaneaLambdaRole                   :: !(Maybe Text)+    , _wecaneaInput                        :: !(Maybe Text)+    , _wecaneaExecutionStartToCloseTimeout :: !(Maybe Text)+    , _wecaneaTaskPriority                 :: !(Maybe Text)+    , _wecaneaDecisionTaskCompletedEventId :: !Integer+    , _wecaneaNewExecutionRunId            :: !Text+    , _wecaneaTaskList                     :: !TaskList+    , _wecaneaChildPolicy                  :: !ChildPolicy+    , _wecaneaWorkflowType                 :: !WorkflowType+    } deriving (Eq,Read,Show,Data,Typeable,Generic)++-- | Creates a value of 'WorkflowExecutionContinuedAsNewEventAttributes' with the minimum fields required to make a request.+--+-- Use one of the following lenses to modify other fields as desired:+--+-- * 'wecaneaTagList' - The list of tags associated with the new workflow execution.+--+-- * 'wecaneaTaskStartToCloseTimeout' - The maximum duration of decision tasks for the new workflow execution. The duration is specified in seconds; an integer greater than or equal to 0. The value "NONE" can be used to specify unlimited duration.+--+-- * 'wecaneaLambdaRole' - The IAM role attached to this workflow execution to use when invoking AWS Lambda functions.+--+-- * 'wecaneaInput' - The input provided to the new workflow execution.+--+-- * 'wecaneaExecutionStartToCloseTimeout' - The total duration allowed for the new workflow execution. The duration is specified in seconds; an integer greater than or equal to 0. The value "NONE" can be used to specify unlimited duration.+--+-- * 'wecaneaTaskPriority' - Undocumented member.+--+-- * 'wecaneaDecisionTaskCompletedEventId' - The ID of the @DecisionTaskCompleted@ event corresponding to the decision task that resulted in the @ContinueAsNewWorkflowExecution@ 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.+--+-- * 'wecaneaNewExecutionRunId' - The @runId@ of the new workflow execution.+--+-- * 'wecaneaTaskList' - Undocumented member.+--+-- * 'wecaneaChildPolicy' - The policy to use for the child workflow executions of the new execution if it is terminated by calling the 'TerminateWorkflowExecution' action explicitly or due to an expired timeout. The supported child policies are:     * __TERMINATE:__ the child executions will be terminated.    * __REQUEST_CANCEL:__ a request to cancel will be attempted for each child execution by recording a @WorkflowExecutionCancelRequested@ event in its history. It is up to the decider to take appropriate actions when it receives an execution history with this event.    * __ABANDON:__ no action will be taken. The child executions will continue to run.+--+-- * 'wecaneaWorkflowType' - Undocumented member.+workflowExecutionContinuedAsNewEventAttributes+    :: Integer -- ^ 'wecaneaDecisionTaskCompletedEventId'+    -> Text -- ^ 'wecaneaNewExecutionRunId'+    -> TaskList -- ^ 'wecaneaTaskList'+    -> ChildPolicy -- ^ 'wecaneaChildPolicy'+    -> WorkflowType -- ^ 'wecaneaWorkflowType'+    -> WorkflowExecutionContinuedAsNewEventAttributes+workflowExecutionContinuedAsNewEventAttributes pDecisionTaskCompletedEventId_ pNewExecutionRunId_ pTaskList_ pChildPolicy_ pWorkflowType_ =+    WorkflowExecutionContinuedAsNewEventAttributes'+    { _wecaneaTagList = Nothing+    , _wecaneaTaskStartToCloseTimeout = Nothing+    , _wecaneaLambdaRole = Nothing+    , _wecaneaInput = Nothing+    , _wecaneaExecutionStartToCloseTimeout = Nothing+    , _wecaneaTaskPriority = Nothing+    , _wecaneaDecisionTaskCompletedEventId = pDecisionTaskCompletedEventId_+    , _wecaneaNewExecutionRunId = pNewExecutionRunId_+    , _wecaneaTaskList = pTaskList_+    , _wecaneaChildPolicy = pChildPolicy_+    , _wecaneaWorkflowType = pWorkflowType_+    }++-- | The list of tags associated with the new workflow execution.+wecaneaTagList :: Lens' WorkflowExecutionContinuedAsNewEventAttributes [Text]+wecaneaTagList = lens _wecaneaTagList (\ s a -> s{_wecaneaTagList = a}) . _Default . _Coerce;++-- | The maximum duration of decision tasks for the new workflow execution. The duration is specified in seconds; an integer greater than or equal to 0. The value "NONE" can be used to specify unlimited duration.+wecaneaTaskStartToCloseTimeout :: Lens' WorkflowExecutionContinuedAsNewEventAttributes (Maybe Text)+wecaneaTaskStartToCloseTimeout = lens _wecaneaTaskStartToCloseTimeout (\ s a -> s{_wecaneaTaskStartToCloseTimeout = a});++-- | The IAM role attached to this workflow execution to use when invoking AWS Lambda functions.+wecaneaLambdaRole :: Lens' WorkflowExecutionContinuedAsNewEventAttributes (Maybe Text)+wecaneaLambdaRole = lens _wecaneaLambdaRole (\ s a -> s{_wecaneaLambdaRole = a});++-- | The input provided to the new workflow execution.+wecaneaInput :: Lens' WorkflowExecutionContinuedAsNewEventAttributes (Maybe Text)+wecaneaInput = lens _wecaneaInput (\ s a -> s{_wecaneaInput = a});++-- | The total duration allowed for the new workflow execution. The duration is specified in seconds; an integer greater than or equal to 0. The value "NONE" can be used to specify unlimited duration.+wecaneaExecutionStartToCloseTimeout :: Lens' WorkflowExecutionContinuedAsNewEventAttributes (Maybe Text)+wecaneaExecutionStartToCloseTimeout = lens _wecaneaExecutionStartToCloseTimeout (\ s a -> s{_wecaneaExecutionStartToCloseTimeout = a});++-- | Undocumented member.+wecaneaTaskPriority :: Lens' WorkflowExecutionContinuedAsNewEventAttributes (Maybe Text)+wecaneaTaskPriority = lens _wecaneaTaskPriority (\ s a -> s{_wecaneaTaskPriority = a});++-- | The ID of the @DecisionTaskCompleted@ event corresponding to the decision task that resulted in the @ContinueAsNewWorkflowExecution@ 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+wecaneaDecisionTaskCompletedEventId = lens _wecaneaDecisionTaskCompletedEventId (\ s a -> s{_wecaneaDecisionTaskCompletedEventId = a});++-- | The @runId@ of the new workflow execution.+wecaneaNewExecutionRunId :: Lens' WorkflowExecutionContinuedAsNewEventAttributes Text+wecaneaNewExecutionRunId = lens _wecaneaNewExecutionRunId (\ s a -> s{_wecaneaNewExecutionRunId = a});++-- | Undocumented member.+wecaneaTaskList :: Lens' WorkflowExecutionContinuedAsNewEventAttributes TaskList+wecaneaTaskList = lens _wecaneaTaskList (\ s a -> s{_wecaneaTaskList = a});++-- | The policy to use for the child workflow executions of the new execution if it is terminated by calling the 'TerminateWorkflowExecution' action explicitly or due to an expired timeout. The supported child policies are:     * __TERMINATE:__ the child executions will be terminated.    * __REQUEST_CANCEL:__ a request to cancel will be attempted for each child execution by recording a @WorkflowExecutionCancelRequested@ event in its history. It is up to the decider to take appropriate actions when it receives an execution history with this event.    * __ABANDON:__ no action will be taken. The child executions will continue to run.+wecaneaChildPolicy :: Lens' WorkflowExecutionContinuedAsNewEventAttributes ChildPolicy+wecaneaChildPolicy = lens _wecaneaChildPolicy (\ s a -> s{_wecaneaChildPolicy = a});++-- | Undocumented member.+wecaneaWorkflowType :: Lens' WorkflowExecutionContinuedAsNewEventAttributes WorkflowType+wecaneaWorkflowType = lens _wecaneaWorkflowType (\ s a -> s{_wecaneaWorkflowType = a});++instance FromJSON+         WorkflowExecutionContinuedAsNewEventAttributes where+        parseJSON+          = withObject+              "WorkflowExecutionContinuedAsNewEventAttributes"+              (\ x ->+                 WorkflowExecutionContinuedAsNewEventAttributes' <$>+                   (x .:? "tagList" .!= mempty) <*>+                     (x .:? "taskStartToCloseTimeout")+                     <*> (x .:? "lambdaRole")+                     <*> (x .:? "input")+                     <*> (x .:? "executionStartToCloseTimeout")+                     <*> (x .:? "taskPriority")+                     <*> (x .: "decisionTaskCompletedEventId")+                     <*> (x .: "newExecutionRunId")+                     <*> (x .: "taskList")+                     <*> (x .: "childPolicy")+                     <*> (x .: "workflowType"))++instance Hashable+         WorkflowExecutionContinuedAsNewEventAttributes++instance NFData+         WorkflowExecutionContinuedAsNewEventAttributes++-- | Contains the count of workflow executions returned from 'CountOpenWorkflowExecutions' or 'CountClosedWorkflowExecutions'+--+--+--+-- /See:/ 'workflowExecutionCount' smart constructor.+data WorkflowExecutionCount = WorkflowExecutionCount'+    { _wecTruncated :: !(Maybe Bool)+    , _wecCount     :: !Nat+    } deriving (Eq,Read,Show,Data,Typeable,Generic)++-- | Creates a value of 'WorkflowExecutionCount' with the minimum fields required to make a request.+--+-- Use one of the following lenses to modify other fields as desired:+--+-- * 'wecTruncated' - 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.+--+-- * 'wecCount' - The number of workflow executions.+workflowExecutionCount+    :: Natural -- ^ 'wecCount'+    -> WorkflowExecutionCount+workflowExecutionCount pCount_ =+    WorkflowExecutionCount'+    { _wecTruncated = Nothing+    , _wecCount = _Nat # pCount_+    }++-- | 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)+wecTruncated = lens _wecTruncated (\ s a -> s{_wecTruncated = a});++-- | The number of workflow executions.+wecCount :: Lens' WorkflowExecutionCount Natural+wecCount = lens _wecCount (\ s a -> s{_wecCount = a}) . _Nat;++instance FromJSON WorkflowExecutionCount where+        parseJSON+          = withObject "WorkflowExecutionCount"+              (\ x ->+                 WorkflowExecutionCount' <$>+                   (x .:? "truncated") <*> (x .: "count"))++instance Hashable WorkflowExecutionCount++instance NFData WorkflowExecutionCount++-- | Provides details of the @WorkflowExecutionFailed@ event.+--+--+--+-- /See:/ 'workflowExecutionFailedEventAttributes' smart constructor.+data WorkflowExecutionFailedEventAttributes = WorkflowExecutionFailedEventAttributes'+    { _wefeaReason                       :: !(Maybe Text)+    , _wefeaDetails                      :: !(Maybe Text)+    , _wefeaDecisionTaskCompletedEventId :: !Integer+    } deriving (Eq,Read,Show,Data,Typeable,Generic)++-- | Creates a value of 'WorkflowExecutionFailedEventAttributes' with the minimum fields required to make a request.+--+-- Use one of the following lenses to modify other fields as desired:+--+-- * 'wefeaReason' - The descriptive reason provided for the failure (if any).+--+-- * 'wefeaDetails' - The details of the failure (if any).+--+-- * 'wefeaDecisionTaskCompletedEventId' - The ID of the @DecisionTaskCompleted@ event corresponding to the decision task that resulted in the @FailWorkflowExecution@ 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.+workflowExecutionFailedEventAttributes+    :: Integer -- ^ 'wefeaDecisionTaskCompletedEventId'+    -> WorkflowExecutionFailedEventAttributes+workflowExecutionFailedEventAttributes pDecisionTaskCompletedEventId_ =+    WorkflowExecutionFailedEventAttributes'+    { _wefeaReason = Nothing+    , _wefeaDetails = Nothing+    , _wefeaDecisionTaskCompletedEventId = pDecisionTaskCompletedEventId_+    }++-- | The descriptive reason provided for the failure (if any).+wefeaReason :: Lens' WorkflowExecutionFailedEventAttributes (Maybe Text)+wefeaReason = lens _wefeaReason (\ s a -> s{_wefeaReason = a});++-- | The details of the failure (if any).+wefeaDetails :: Lens' WorkflowExecutionFailedEventAttributes (Maybe Text)+wefeaDetails = lens _wefeaDetails (\ s a -> s{_wefeaDetails = a});++-- | The ID of the @DecisionTaskCompleted@ event corresponding to the decision task that resulted in the @FailWorkflowExecution@ 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+wefeaDecisionTaskCompletedEventId = lens _wefeaDecisionTaskCompletedEventId (\ s a -> s{_wefeaDecisionTaskCompletedEventId = a});++instance FromJSON+         WorkflowExecutionFailedEventAttributes where+        parseJSON+          = withObject "WorkflowExecutionFailedEventAttributes"+              (\ x ->+                 WorkflowExecutionFailedEventAttributes' <$>+                   (x .:? "reason") <*> (x .:? "details") <*>+                     (x .: "decisionTaskCompletedEventId"))++instance Hashable+         WorkflowExecutionFailedEventAttributes++instance NFData+         WorkflowExecutionFailedEventAttributes++-- | Used to filter the workflow executions in visibility APIs by their @workflowId@ .+--+--+--+-- /See:/ 'workflowExecutionFilter' smart constructor.+newtype WorkflowExecutionFilter = WorkflowExecutionFilter'+    { _wefWorkflowId :: Text+    } deriving (Eq,Read,Show,Data,Typeable,Generic)++-- | Creates a value of 'WorkflowExecutionFilter' with the minimum fields required to make a request.+--+-- Use one of the following lenses to modify other fields as desired:+--+-- * 'wefWorkflowId' - The workflowId to pass of match the criteria of this filter.+workflowExecutionFilter+    :: Text -- ^ 'wefWorkflowId'+    -> WorkflowExecutionFilter+workflowExecutionFilter pWorkflowId_ =+    WorkflowExecutionFilter'+    { _wefWorkflowId = pWorkflowId_+    }++-- | The workflowId to pass of match the criteria of this filter.+wefWorkflowId :: Lens' WorkflowExecutionFilter Text+wefWorkflowId = lens _wefWorkflowId (\ s a -> s{_wefWorkflowId = a});++instance Hashable WorkflowExecutionFilter++instance NFData WorkflowExecutionFilter++instance ToJSON WorkflowExecutionFilter where+        toJSON WorkflowExecutionFilter'{..}+          = object+              (catMaybes [Just ("workflowId" .= _wefWorkflowId)])++-- | Contains information about a workflow execution.+--+--+--+-- /See:/ 'workflowExecutionInfo' smart constructor.+data WorkflowExecutionInfo = WorkflowExecutionInfo'+    { _weiParent          :: !(Maybe WorkflowExecution)+    , _weiTagList         :: !(Maybe [Text])+    , _weiCloseStatus     :: !(Maybe CloseStatus)+    , _weiCloseTimestamp  :: !(Maybe POSIX)+    , _weiCancelRequested :: !(Maybe Bool)+    , _weiExecution       :: !WorkflowExecution+    , _weiWorkflowType    :: !WorkflowType+    , _weiStartTimestamp  :: !POSIX+    , _weiExecutionStatus :: !ExecutionStatus+    } deriving (Eq,Read,Show,Data,Typeable,Generic)++-- | Creates a value of 'WorkflowExecutionInfo' with the minimum fields required to make a request.+--+-- Use one of the following lenses to modify other fields as desired:+--+-- * 'weiParent' - If this workflow execution is a child of another execution then contains the workflow execution that started this execution.+--+-- * 'weiTagList' - 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.+--+-- * 'weiCloseStatus' - If the execution status is closed then this specifies how the execution was closed:     * @COMPLETED@ : the execution was successfully completed.    * @CANCELED@ : the execution was canceled.Cancellation allows the implementation to gracefully clean up before the execution is closed.    * @TERMINATED@ : the execution was force terminated.    * @FAILED@ : the execution failed to complete.    * @TIMED_OUT@ : the execution did not complete in the alloted time and was automatically timed out.    * @CONTINUED_AS_NEW@ : the execution is logically continued. This means the current execution was completed and a new execution was started to carry on the workflow.+--+-- * 'weiCloseTimestamp' - The time when the workflow execution was closed. Set only if the execution status is CLOSED.+--+-- * 'weiCancelRequested' - Set to true if a cancellation is requested for this workflow execution.+--+-- * 'weiExecution' - The workflow execution this information is about.+--+-- * 'weiWorkflowType' - The type of the workflow execution.+--+-- * 'weiStartTimestamp' - The time when the execution was started.+--+-- * 'weiExecutionStatus' - The current status of the execution.+workflowExecutionInfo+    :: WorkflowExecution -- ^ 'weiExecution'+    -> WorkflowType -- ^ 'weiWorkflowType'+    -> UTCTime -- ^ 'weiStartTimestamp'+    -> ExecutionStatus -- ^ 'weiExecutionStatus'+    -> WorkflowExecutionInfo+workflowExecutionInfo pExecution_ pWorkflowType_ pStartTimestamp_ pExecutionStatus_ =+    WorkflowExecutionInfo'+    { _weiParent = Nothing+    , _weiTagList = Nothing+    , _weiCloseStatus = Nothing+    , _weiCloseTimestamp = Nothing+    , _weiCancelRequested = Nothing+    , _weiExecution = pExecution_+    , _weiWorkflowType = pWorkflowType_+    , _weiStartTimestamp = _Time # pStartTimestamp_+    , _weiExecutionStatus = pExecutionStatus_+    }++-- | If this workflow execution is a child of another execution then contains the workflow execution that started this execution.+weiParent :: Lens' WorkflowExecutionInfo (Maybe WorkflowExecution)+weiParent = lens _weiParent (\ s a -> s{_weiParent = 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.+weiTagList :: Lens' WorkflowExecutionInfo [Text]+weiTagList = lens _weiTagList (\ s a -> s{_weiTagList = a}) . _Default . _Coerce;++-- | If the execution status is closed then this specifies how the execution was closed:     * @COMPLETED@ : the execution was successfully completed.    * @CANCELED@ : the execution was canceled.Cancellation allows the implementation to gracefully clean up before the execution is closed.    * @TERMINATED@ : the execution was force terminated.    * @FAILED@ : the execution failed to complete.    * @TIMED_OUT@ : the execution did not complete in the alloted time and was automatically timed out.    * @CONTINUED_AS_NEW@ : 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)+weiCloseStatus = lens _weiCloseStatus (\ s a -> s{_weiCloseStatus = a});++-- | The time when the workflow execution was closed. Set only if the execution status is CLOSED.+weiCloseTimestamp :: Lens' WorkflowExecutionInfo (Maybe UTCTime)+weiCloseTimestamp = lens _weiCloseTimestamp (\ s a -> s{_weiCloseTimestamp = a}) . mapping _Time;++-- | Set to true if a cancellation is requested for this workflow execution.+weiCancelRequested :: Lens' WorkflowExecutionInfo (Maybe Bool)+weiCancelRequested = lens _weiCancelRequested (\ s a -> s{_weiCancelRequested = a});++-- | The workflow execution this information is about.+weiExecution :: Lens' WorkflowExecutionInfo WorkflowExecution+weiExecution = lens _weiExecution (\ s a -> s{_weiExecution = a});++-- | The type of the workflow execution.+weiWorkflowType :: Lens' WorkflowExecutionInfo WorkflowType+weiWorkflowType = lens _weiWorkflowType (\ s a -> s{_weiWorkflowType = a});++-- | The time when the execution was started.+weiStartTimestamp :: Lens' WorkflowExecutionInfo UTCTime+weiStartTimestamp = lens _weiStartTimestamp (\ s a -> s{_weiStartTimestamp = a}) . _Time;++-- | The current status of the execution.+weiExecutionStatus :: Lens' WorkflowExecutionInfo ExecutionStatus+weiExecutionStatus = lens _weiExecutionStatus (\ s a -> s{_weiExecutionStatus = a});++instance FromJSON WorkflowExecutionInfo where+        parseJSON+          = withObject "WorkflowExecutionInfo"+              (\ x ->+                 WorkflowExecutionInfo' <$>+                   (x .:? "parent") <*> (x .:? "tagList" .!= mempty) <*>+                     (x .:? "closeStatus")+                     <*> (x .:? "closeTimestamp")+                     <*> (x .:? "cancelRequested")+                     <*> (x .: "execution")+                     <*> (x .: "workflowType")+                     <*> (x .: "startTimestamp")+                     <*> (x .: "executionStatus"))++instance Hashable WorkflowExecutionInfo++instance NFData WorkflowExecutionInfo++-- | Contains a paginated list of information about workflow executions.+--+--+--+-- /See:/ 'workflowExecutionInfos' smart constructor.+data WorkflowExecutionInfos = WorkflowExecutionInfos'+    { _weiNextPageToken  :: !(Maybe Text)+    , _weiExecutionInfos :: ![WorkflowExecutionInfo]+    } deriving (Eq,Read,Show,Data,Typeable,Generic)++-- | Creates a value of 'WorkflowExecutionInfos' with the minimum fields required to make a request.+--+-- Use one of the following lenses to modify other fields as desired:+--+-- * 'weiNextPageToken' - If a @NextPageToken@ 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 @nextPageToken@ . Keep all other arguments unchanged. The configured @maximumPageSize@ determines how many results can be returned in a single call.+--+-- * 'weiExecutionInfos' - The list of workflow information structures.+workflowExecutionInfos+    :: WorkflowExecutionInfos+workflowExecutionInfos =+    WorkflowExecutionInfos'+    { _weiNextPageToken = Nothing+    , _weiExecutionInfos = mempty+    }++-- | If a @NextPageToken@ 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 @nextPageToken@ . Keep all other arguments unchanged. The configured @maximumPageSize@ determines how many results can be returned in a single call.+weiNextPageToken :: Lens' WorkflowExecutionInfos (Maybe Text)+weiNextPageToken = lens _weiNextPageToken (\ s a -> s{_weiNextPageToken = a});++-- | The list of workflow information structures.+weiExecutionInfos :: Lens' WorkflowExecutionInfos [WorkflowExecutionInfo]+weiExecutionInfos = lens _weiExecutionInfos (\ s a -> s{_weiExecutionInfos = a}) . _Coerce;++instance FromJSON WorkflowExecutionInfos where+        parseJSON+          = withObject "WorkflowExecutionInfos"+              (\ x ->+                 WorkflowExecutionInfos' <$>+                   (x .:? "nextPageToken") <*>+                     (x .:? "executionInfos" .!= mempty))++instance Hashable WorkflowExecutionInfos++instance NFData WorkflowExecutionInfos++-- | Contains the counts of open tasks, child workflow executions and timers for a workflow execution.+--+--+--+-- /See:/ 'workflowExecutionOpenCounts' smart constructor.+data WorkflowExecutionOpenCounts = WorkflowExecutionOpenCounts'+    { _weocOpenLambdaFunctions         :: !(Maybe Nat)+    , _weocOpenActivityTasks           :: !Nat+    , _weocOpenDecisionTasks           :: !Nat+    , _weocOpenTimers                  :: !Nat+    , _weocOpenChildWorkflowExecutions :: !Nat+    } deriving (Eq,Read,Show,Data,Typeable,Generic)++-- | Creates a value of 'WorkflowExecutionOpenCounts' with the minimum fields required to make a request.+--+-- Use one of the following lenses to modify other fields as desired:+--+-- * 'weocOpenLambdaFunctions' - The count of AWS Lambda functions that are currently executing.+--+-- * 'weocOpenActivityTasks' - The count of activity tasks whose status is OPEN.+--+-- * 'weocOpenDecisionTasks' - The count of decision tasks whose status is OPEN. A workflow execution can have at most one open decision task.+--+-- * 'weocOpenTimers' - The count of timers started by this workflow execution that have not fired yet.+--+-- * 'weocOpenChildWorkflowExecutions' - The count of child workflow executions whose status is OPEN.+workflowExecutionOpenCounts+    :: Natural -- ^ 'weocOpenActivityTasks'+    -> Natural -- ^ 'weocOpenDecisionTasks'+    -> Natural -- ^ 'weocOpenTimers'+    -> Natural -- ^ 'weocOpenChildWorkflowExecutions'+    -> WorkflowExecutionOpenCounts+workflowExecutionOpenCounts pOpenActivityTasks_ pOpenDecisionTasks_ pOpenTimers_ pOpenChildWorkflowExecutions_ =+    WorkflowExecutionOpenCounts'+    { _weocOpenLambdaFunctions = Nothing+    , _weocOpenActivityTasks = _Nat # pOpenActivityTasks_+    , _weocOpenDecisionTasks = _Nat # pOpenDecisionTasks_+    , _weocOpenTimers = _Nat # pOpenTimers_+    , _weocOpenChildWorkflowExecutions = _Nat # pOpenChildWorkflowExecutions_+    }++-- | The count of AWS Lambda functions that are currently executing.+weocOpenLambdaFunctions :: Lens' WorkflowExecutionOpenCounts (Maybe Natural)+weocOpenLambdaFunctions = lens _weocOpenLambdaFunctions (\ s a -> s{_weocOpenLambdaFunctions = a}) . mapping _Nat;++-- | The count of activity tasks whose status is OPEN.+weocOpenActivityTasks :: Lens' WorkflowExecutionOpenCounts Natural+weocOpenActivityTasks = lens _weocOpenActivityTasks (\ s a -> s{_weocOpenActivityTasks = a}) . _Nat;++-- | The count of decision tasks whose status is OPEN. A workflow execution can have at most one open decision task.+weocOpenDecisionTasks :: Lens' WorkflowExecutionOpenCounts Natural+weocOpenDecisionTasks = lens _weocOpenDecisionTasks (\ s a -> s{_weocOpenDecisionTasks = a}) . _Nat;++-- | The count of timers started by this workflow execution that have not fired yet.+weocOpenTimers :: Lens' WorkflowExecutionOpenCounts Natural+weocOpenTimers = lens _weocOpenTimers (\ s a -> s{_weocOpenTimers = a}) . _Nat;++-- | The count of child workflow executions whose status is OPEN.+weocOpenChildWorkflowExecutions :: Lens' WorkflowExecutionOpenCounts Natural+weocOpenChildWorkflowExecutions = lens _weocOpenChildWorkflowExecutions (\ s a -> s{_weocOpenChildWorkflowExecutions = a}) . _Nat;++instance FromJSON WorkflowExecutionOpenCounts where+        parseJSON+          = withObject "WorkflowExecutionOpenCounts"+              (\ x ->+                 WorkflowExecutionOpenCounts' <$>+                   (x .:? "openLambdaFunctions") <*>+                     (x .: "openActivityTasks")+                     <*> (x .: "openDecisionTasks")+                     <*> (x .: "openTimers")+                     <*> (x .: "openChildWorkflowExecutions"))++instance Hashable WorkflowExecutionOpenCounts++instance NFData WorkflowExecutionOpenCounts++-- | Provides details of the @WorkflowExecutionSignaled@ event.+--+--+--+-- /See:/ 'workflowExecutionSignaledEventAttributes' smart constructor.+data WorkflowExecutionSignaledEventAttributes = WorkflowExecutionSignaledEventAttributes'+    { _wExternalWorkflowExecution :: !(Maybe WorkflowExecution)+    , _wExternalInitiatedEventId  :: !(Maybe Integer)+    , _wInput                     :: !(Maybe Text)+    , _wSignalName                :: !Text+    } deriving (Eq,Read,Show,Data,Typeable,Generic)++-- | Creates a value of 'WorkflowExecutionSignaledEventAttributes' with the minimum fields required to make a request.+--+-- Use one of the following lenses to modify other fields as desired:+--+-- * 'wExternalWorkflowExecution' - The workflow execution that sent the signal. This is set only of the signal was sent by another workflow execution.+--+-- * 'wExternalInitiatedEventId' - The ID of the @SignalExternalWorkflowExecutionInitiated@ event corresponding to the @SignalExternalWorkflow@ 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.+--+-- * 'wInput' - Inputs provided with the signal (if any). The decider can use the signal name and inputs to determine how to process the signal.+--+-- * 'wSignalName' - The name of the signal received. The decider can use the signal name and inputs to determine how to the process the signal.+workflowExecutionSignaledEventAttributes+    :: Text -- ^ 'wSignalName'+    -> WorkflowExecutionSignaledEventAttributes+workflowExecutionSignaledEventAttributes pSignalName_ =+    WorkflowExecutionSignaledEventAttributes'+    { _wExternalWorkflowExecution = Nothing+    , _wExternalInitiatedEventId = Nothing+    , _wInput = Nothing+    , _wSignalName = pSignalName_+    }++-- | 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)+wExternalWorkflowExecution = lens _wExternalWorkflowExecution (\ s a -> s{_wExternalWorkflowExecution = a});++-- | The ID of the @SignalExternalWorkflowExecutionInitiated@ event corresponding to the @SignalExternalWorkflow@ 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)+wExternalInitiatedEventId = lens _wExternalInitiatedEventId (\ s a -> s{_wExternalInitiatedEventId = a});++-- | Inputs provided with the signal (if any). The decider can use the signal name and inputs to determine how to process the signal.+wInput :: Lens' WorkflowExecutionSignaledEventAttributes (Maybe Text)+wInput = lens _wInput (\ s a -> s{_wInput = a});++-- | 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+wSignalName = lens _wSignalName (\ s a -> s{_wSignalName = a});++instance FromJSON+         WorkflowExecutionSignaledEventAttributes where+        parseJSON+          = withObject+              "WorkflowExecutionSignaledEventAttributes"+              (\ x ->+                 WorkflowExecutionSignaledEventAttributes' <$>+                   (x .:? "externalWorkflowExecution") <*>+                     (x .:? "externalInitiatedEventId")+                     <*> (x .:? "input")+                     <*> (x .: "signalName"))++instance Hashable+         WorkflowExecutionSignaledEventAttributes++instance NFData+         WorkflowExecutionSignaledEventAttributes++-- | Provides details of @WorkflowExecutionStarted@ event.+--+--+--+-- /See:/ 'workflowExecutionStartedEventAttributes' smart constructor.+data WorkflowExecutionStartedEventAttributes = WorkflowExecutionStartedEventAttributes'+    { _weseaParentInitiatedEventId       :: !(Maybe Integer)+    , _weseaTagList                      :: !(Maybe [Text])+    , _weseaTaskStartToCloseTimeout      :: !(Maybe Text)+    , _weseaLambdaRole                   :: !(Maybe Text)+    , _weseaInput                        :: !(Maybe Text)+    , _weseaExecutionStartToCloseTimeout :: !(Maybe Text)+    , _weseaTaskPriority                 :: !(Maybe Text)+    , _weseaParentWorkflowExecution      :: !(Maybe WorkflowExecution)+    , _weseaContinuedExecutionRunId      :: !(Maybe Text)+    , _weseaChildPolicy                  :: !ChildPolicy+    , _weseaTaskList                     :: !TaskList+    , _weseaWorkflowType                 :: !WorkflowType+    } deriving (Eq,Read,Show,Data,Typeable,Generic)++-- | Creates a value of 'WorkflowExecutionStartedEventAttributes' with the minimum fields required to make a request.+--+-- Use one of the following lenses to modify other fields as desired:+--+-- * 'weseaParentInitiatedEventId' - The ID of the @StartChildWorkflowExecutionInitiated@ event corresponding to the @StartChildWorkflowExecution@ decision 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.+--+-- * 'weseaTagList' - The list of tags associated with this workflow execution. An execution can have up to 5 tags.+--+-- * 'weseaTaskStartToCloseTimeout' - The maximum duration of decision tasks for this workflow type. The duration is specified in seconds; an integer greater than or equal to 0. The value "NONE" can be used to specify unlimited duration.+--+-- * 'weseaLambdaRole' - The IAM role attached to this workflow execution to use when invoking AWS Lambda functions.+--+-- * 'weseaInput' - The input provided to the workflow execution (if any).+--+-- * 'weseaExecutionStartToCloseTimeout' - The maximum duration for this workflow execution. The duration is specified in seconds; an integer greater than or equal to 0. The value "NONE" can be used to specify unlimited duration.+--+-- * 'weseaTaskPriority' - Undocumented member.+--+-- * 'weseaParentWorkflowExecution' - The source workflow execution that started this workflow execution. The member is not set if the workflow execution was not started by a workflow.+--+-- * 'weseaContinuedExecutionRunId' - If this workflow execution was started due to a @ContinueAsNewWorkflowExecution@ decision, then it contains the @runId@ of the previous workflow execution that was closed and continued as this execution.+--+-- * 'weseaChildPolicy' - The policy to use for the child workflow executions if this workflow execution is terminated, by calling the 'TerminateWorkflowExecution' action explicitly or due to an expired timeout. The supported child policies are:     * __TERMINATE:__ the child executions will be terminated.    * __REQUEST_CANCEL:__ a request to cancel will be attempted for each child execution by recording a @WorkflowExecutionCancelRequested@ event in its history. It is up to the decider to take appropriate actions when it receives an execution history with this event.    * __ABANDON:__ no action will be taken. The child executions will continue to run.+--+-- * 'weseaTaskList' - The name of the task list for scheduling the decision tasks for this workflow execution.+--+-- * 'weseaWorkflowType' - The workflow type of this execution.+workflowExecutionStartedEventAttributes+    :: ChildPolicy -- ^ 'weseaChildPolicy'+    -> TaskList -- ^ 'weseaTaskList'+    -> WorkflowType -- ^ 'weseaWorkflowType'+    -> WorkflowExecutionStartedEventAttributes+workflowExecutionStartedEventAttributes pChildPolicy_ pTaskList_ pWorkflowType_ =+    WorkflowExecutionStartedEventAttributes'+    { _weseaParentInitiatedEventId = Nothing+    , _weseaTagList = Nothing+    , _weseaTaskStartToCloseTimeout = Nothing+    , _weseaLambdaRole = Nothing+    , _weseaInput = Nothing+    , _weseaExecutionStartToCloseTimeout = Nothing+    , _weseaTaskPriority = Nothing+    , _weseaParentWorkflowExecution = Nothing+    , _weseaContinuedExecutionRunId = Nothing+    , _weseaChildPolicy = pChildPolicy_+    , _weseaTaskList = pTaskList_+    , _weseaWorkflowType = pWorkflowType_+    }++-- | The ID of the @StartChildWorkflowExecutionInitiated@ event corresponding to the @StartChildWorkflowExecution@ decision 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)+weseaParentInitiatedEventId = lens _weseaParentInitiatedEventId (\ s a -> s{_weseaParentInitiatedEventId = a});++-- | The list of tags associated with this workflow execution. An execution can have up to 5 tags.+weseaTagList :: Lens' WorkflowExecutionStartedEventAttributes [Text]+weseaTagList = lens _weseaTagList (\ s a -> s{_weseaTagList = a}) . _Default . _Coerce;++-- | The maximum duration of decision tasks for this workflow type. The duration is specified in seconds; an integer greater than or equal to 0. The value "NONE" can be used to specify unlimited duration.+weseaTaskStartToCloseTimeout :: Lens' WorkflowExecutionStartedEventAttributes (Maybe Text)+weseaTaskStartToCloseTimeout = lens _weseaTaskStartToCloseTimeout (\ s a -> s{_weseaTaskStartToCloseTimeout = a});++-- | The IAM role attached to this workflow execution to use when invoking AWS Lambda functions.+weseaLambdaRole :: Lens' WorkflowExecutionStartedEventAttributes (Maybe Text)+weseaLambdaRole = lens _weseaLambdaRole (\ s a -> s{_weseaLambdaRole = a});++-- | The input provided to the workflow execution (if any).+weseaInput :: Lens' WorkflowExecutionStartedEventAttributes (Maybe Text)+weseaInput = lens _weseaInput (\ s a -> s{_weseaInput = a});++-- | The maximum duration for this workflow execution. The duration is specified in seconds; an integer greater than or equal to 0. The value "NONE" can be used to specify unlimited duration.+weseaExecutionStartToCloseTimeout :: Lens' WorkflowExecutionStartedEventAttributes (Maybe Text)+weseaExecutionStartToCloseTimeout = lens _weseaExecutionStartToCloseTimeout (\ s a -> s{_weseaExecutionStartToCloseTimeout = a});++-- | Undocumented member.+weseaTaskPriority :: Lens' WorkflowExecutionStartedEventAttributes (Maybe Text)+weseaTaskPriority = lens _weseaTaskPriority (\ s a -> s{_weseaTaskPriority = a});++-- | The source workflow execution that started this workflow execution. The member is not set if the workflow execution was not started by a workflow.+weseaParentWorkflowExecution :: Lens' WorkflowExecutionStartedEventAttributes (Maybe WorkflowExecution)+weseaParentWorkflowExecution = lens _weseaParentWorkflowExecution (\ s a -> s{_weseaParentWorkflowExecution = a});++-- | If this workflow execution was started due to a @ContinueAsNewWorkflowExecution@ decision, then it contains the @runId@ of the previous workflow execution that was closed and continued as this execution.+weseaContinuedExecutionRunId :: Lens' WorkflowExecutionStartedEventAttributes (Maybe Text)+weseaContinuedExecutionRunId = lens _weseaContinuedExecutionRunId (\ s a -> s{_weseaContinuedExecutionRunId = a});++-- | The policy to use for the child workflow executions if this workflow execution is terminated, by calling the 'TerminateWorkflowExecution' action explicitly or due to an expired timeout. The supported child policies are:     * __TERMINATE:__ the child executions will be terminated.    * __REQUEST_CANCEL:__ a request to cancel will be attempted for each child execution by recording a @WorkflowExecutionCancelRequested@ event in its history. It is up to the decider to take appropriate actions when it receives an execution history with this event.    * __ABANDON:__ no action will be taken. The child executions will continue to run.+weseaChildPolicy :: Lens' WorkflowExecutionStartedEventAttributes ChildPolicy+weseaChildPolicy = lens _weseaChildPolicy (\ s a -> s{_weseaChildPolicy = a});++-- | The name of the task list for scheduling the decision tasks for this workflow execution.+weseaTaskList :: Lens' WorkflowExecutionStartedEventAttributes TaskList+weseaTaskList = lens _weseaTaskList (\ s a -> s{_weseaTaskList = a});++-- | The workflow type of this execution.+weseaWorkflowType :: Lens' WorkflowExecutionStartedEventAttributes WorkflowType+weseaWorkflowType = lens _weseaWorkflowType (\ s a -> s{_weseaWorkflowType = a});++instance FromJSON+         WorkflowExecutionStartedEventAttributes where+        parseJSON+          = withObject+              "WorkflowExecutionStartedEventAttributes"+              (\ x ->+                 WorkflowExecutionStartedEventAttributes' <$>+                   (x .:? "parentInitiatedEventId") <*>+                     (x .:? "tagList" .!= mempty)+                     <*> (x .:? "taskStartToCloseTimeout")+                     <*> (x .:? "lambdaRole")+                     <*> (x .:? "input")+                     <*> (x .:? "executionStartToCloseTimeout")+                     <*> (x .:? "taskPriority")+                     <*> (x .:? "parentWorkflowExecution")+                     <*> (x .:? "continuedExecutionRunId")+                     <*> (x .: "childPolicy")+                     <*> (x .: "taskList")+                     <*> (x .: "workflowType"))++instance Hashable+         WorkflowExecutionStartedEventAttributes++instance NFData+         WorkflowExecutionStartedEventAttributes++-- | Provides details of the @WorkflowExecutionTerminated@ event.+--+--+--+-- /See:/ 'workflowExecutionTerminatedEventAttributes' smart constructor.+data WorkflowExecutionTerminatedEventAttributes = WorkflowExecutionTerminatedEventAttributes'+    { _weteaCause       :: !(Maybe WorkflowExecutionTerminatedCause)+    , _weteaReason      :: !(Maybe Text)+    , _weteaDetails     :: !(Maybe Text)+    , _weteaChildPolicy :: !ChildPolicy+    } deriving (Eq,Read,Show,Data,Typeable,Generic)++-- | Creates a value of 'WorkflowExecutionTerminatedEventAttributes' with the minimum fields required to make a request.+--+-- Use one of the following lenses to modify other fields as desired:+--+-- * 'weteaCause' - 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.+--+-- * 'weteaReason' - The reason provided for the termination (if any).+--+-- * 'weteaDetails' - The details provided for the termination (if any).+--+-- * 'weteaChildPolicy' - The policy used for the child workflow executions of this workflow execution. The supported child policies are:     * __TERMINATE:__ the child executions will be terminated.    * __REQUEST_CANCEL:__ a request to cancel will be attempted for each child execution by recording a @WorkflowExecutionCancelRequested@ event in its history. It is up to the decider to take appropriate actions when it receives an execution history with this event.    * __ABANDON:__ no action will be taken. The child executions will continue to run.+workflowExecutionTerminatedEventAttributes+    :: ChildPolicy -- ^ 'weteaChildPolicy'+    -> WorkflowExecutionTerminatedEventAttributes+workflowExecutionTerminatedEventAttributes pChildPolicy_ =+    WorkflowExecutionTerminatedEventAttributes'+    { _weteaCause = Nothing+    , _weteaReason = Nothing+    , _weteaDetails = Nothing+    , _weteaChildPolicy = pChildPolicy_+    }++-- | 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)+weteaCause = lens _weteaCause (\ s a -> s{_weteaCause = a});++-- | The reason provided for the termination (if any).+weteaReason :: Lens' WorkflowExecutionTerminatedEventAttributes (Maybe Text)+weteaReason = lens _weteaReason (\ s a -> s{_weteaReason = a});++-- | The details provided for the termination (if any).+weteaDetails :: Lens' WorkflowExecutionTerminatedEventAttributes (Maybe Text)+weteaDetails = lens _weteaDetails (\ s a -> s{_weteaDetails = a});++-- | The policy used for the child workflow executions of this workflow execution. The supported child policies are:     * __TERMINATE:__ the child executions will be terminated.    * __REQUEST_CANCEL:__ a request to cancel will be attempted for each child execution by recording a @WorkflowExecutionCancelRequested@ event in its history. It is up to the decider to take appropriate actions when it receives an execution history with this event.    * __ABANDON:__ no action will be taken. The child executions will continue to run.+weteaChildPolicy :: Lens' WorkflowExecutionTerminatedEventAttributes ChildPolicy+weteaChildPolicy = lens _weteaChildPolicy (\ s a -> s{_weteaChildPolicy = a});++instance FromJSON+         WorkflowExecutionTerminatedEventAttributes where+        parseJSON+          = withObject+              "WorkflowExecutionTerminatedEventAttributes"+              (\ x ->+                 WorkflowExecutionTerminatedEventAttributes' <$>+                   (x .:? "cause") <*> (x .:? "reason") <*>+                     (x .:? "details")+                     <*> (x .: "childPolicy"))++instance Hashable+         WorkflowExecutionTerminatedEventAttributes++instance NFData+         WorkflowExecutionTerminatedEventAttributes++-- | Provides details of the @WorkflowExecutionTimedOut@ event.+--+--+--+-- /See:/ 'workflowExecutionTimedOutEventAttributes' smart constructor.+data WorkflowExecutionTimedOutEventAttributes = WorkflowExecutionTimedOutEventAttributes'+    { _wetoeaTimeoutType :: !WorkflowExecutionTimeoutType+    , _wetoeaChildPolicy :: !ChildPolicy+    } deriving (Eq,Read,Show,Data,Typeable,Generic)++-- | Creates a value of 'WorkflowExecutionTimedOutEventAttributes' with the minimum fields required to make a request.+--+-- Use one of the following lenses to modify other fields as desired:+--+-- * 'wetoeaTimeoutType' - The type of timeout that caused this event.+--+-- * 'wetoeaChildPolicy' - The policy used for the child workflow executions of this workflow execution. The supported child policies are:     * __TERMINATE:__ the child executions will be terminated.    * __REQUEST_CANCEL:__ a request to cancel will be attempted for each child execution by recording a @WorkflowExecutionCancelRequested@ event in its history. It is up to the decider to take appropriate actions when it receives an execution history with this event.    * __ABANDON:__ no action will be taken. The child executions will continue to run.+workflowExecutionTimedOutEventAttributes+    :: WorkflowExecutionTimeoutType -- ^ 'wetoeaTimeoutType'+    -> ChildPolicy -- ^ 'wetoeaChildPolicy'+    -> WorkflowExecutionTimedOutEventAttributes+workflowExecutionTimedOutEventAttributes pTimeoutType_ pChildPolicy_ =+    WorkflowExecutionTimedOutEventAttributes'+    { _wetoeaTimeoutType = pTimeoutType_+    , _wetoeaChildPolicy = pChildPolicy_+    }++-- | The type of timeout that caused this event.+wetoeaTimeoutType :: Lens' WorkflowExecutionTimedOutEventAttributes WorkflowExecutionTimeoutType+wetoeaTimeoutType = lens _wetoeaTimeoutType (\ s a -> s{_wetoeaTimeoutType = a});++-- | The policy used for the child workflow executions of this workflow execution. The supported child policies are:     * __TERMINATE:__ the child executions will be terminated.    * __REQUEST_CANCEL:__ a request to cancel will be attempted for each child execution by recording a @WorkflowExecutionCancelRequested@ event in its history. It is up to the decider to take appropriate actions when it receives an execution history with this event.    * __ABANDON:__ no action will be taken. The child executions will continue to run.+wetoeaChildPolicy :: Lens' WorkflowExecutionTimedOutEventAttributes ChildPolicy+wetoeaChildPolicy = lens _wetoeaChildPolicy (\ s a -> s{_wetoeaChildPolicy = a});++instance FromJSON+         WorkflowExecutionTimedOutEventAttributes where+        parseJSON+          = withObject+              "WorkflowExecutionTimedOutEventAttributes"+              (\ x ->+                 WorkflowExecutionTimedOutEventAttributes' <$>+                   (x .: "timeoutType") <*> (x .: "childPolicy"))++instance Hashable+         WorkflowExecutionTimedOutEventAttributes++instance NFData+         WorkflowExecutionTimedOutEventAttributes++-- | Represents a workflow type.+--+--+--+-- /See:/ 'workflowType' smart constructor.+data WorkflowType = WorkflowType'+    { _wtName    :: !Text+    , _wtVersion :: !Text+    } deriving (Eq,Read,Show,Data,Typeable,Generic)++-- | Creates a value of 'WorkflowType' with the minimum fields required to make a request.+--+-- Use one of the following lenses to modify other fields as desired:+--+-- * 'wtName' - __Required.__ The name of the workflow type.+--+-- * 'wtVersion' - __Required.__ The version of the workflow type.+workflowType+    :: Text -- ^ 'wtName'+    -> Text -- ^ 'wtVersion'+    -> WorkflowType+workflowType pName_ pVersion_ =+    WorkflowType'+    { _wtName = pName_+    , _wtVersion = pVersion_+    }++-- | __Required.__ The name of the workflow type.+wtName :: Lens' WorkflowType Text+wtName = lens _wtName (\ s a -> s{_wtName = a});++-- | __Required.__ The version of the workflow type.+wtVersion :: Lens' WorkflowType Text+wtVersion = lens _wtVersion (\ s a -> s{_wtVersion = a});++instance FromJSON WorkflowType where+        parseJSON+          = withObject "WorkflowType"+              (\ x ->+                 WorkflowType' <$> (x .: "name") <*> (x .: "version"))++instance Hashable WorkflowType++instance NFData WorkflowType++instance ToJSON WorkflowType where+        toJSON WorkflowType'{..}+          = object+              (catMaybes+                 [Just ("name" .= _wtName),+                  Just ("version" .= _wtVersion)])++-- | The configuration settings of a workflow type.+--+--+--+-- /See:/ 'workflowTypeConfiguration' smart constructor.+data WorkflowTypeConfiguration = WorkflowTypeConfiguration'+    { _wtcDefaultLambdaRole                   :: !(Maybe Text)+    , _wtcDefaultChildPolicy                  :: !(Maybe ChildPolicy)+    , _wtcDefaultTaskList                     :: !(Maybe TaskList)+    , _wtcDefaultTaskPriority                 :: !(Maybe Text)+    , _wtcDefaultExecutionStartToCloseTimeout :: !(Maybe Text)+    , _wtcDefaultTaskStartToCloseTimeout      :: !(Maybe Text)+    } deriving (Eq,Read,Show,Data,Typeable,Generic)++-- | Creates a value of 'WorkflowTypeConfiguration' with the minimum fields required to make a request.+--+-- Use one of the following lenses to modify other fields as desired:+--+-- * 'wtcDefaultLambdaRole' - The default IAM role to use when a workflow execution invokes a AWS Lambda function.+--+-- * 'wtcDefaultChildPolicy' - /Optional./ The default policy to use for the child workflow executions when a workflow execution of this type is terminated, by calling the 'TerminateWorkflowExecution' action explicitly or due to an expired timeout. This default can be overridden when starting a workflow execution using the 'StartWorkflowExecution' action or the @StartChildWorkflowExecution@ decision. The supported child policies are:     * __TERMINATE:__ the child executions will be terminated.    * __REQUEST_CANCEL:__ a request to cancel will be attempted for each child execution by recording a @WorkflowExecutionCancelRequested@ event in its history. It is up to the decider to take appropriate actions when it receives an execution history with this event.    * __ABANDON:__ no action will be taken. The child executions will continue to run.+--+-- * 'wtcDefaultTaskList' - /Optional./ 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 'StartWorkflowExecution' action or the @StartChildWorkflowExecution@ decision.+--+-- * 'wtcDefaultTaskPriority' - /Optional./ 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 'StartWorkflowExecution' action or the @StartChildWorkflowExecution@ decision. Valid values are integers that range from Java's @Integer.MIN_VALUE@ (-2147483648) to @Integer.MAX_VALUE@ (2147483647). Higher numbers indicate higher priority. For more information about setting task priority, see <http://docs.aws.amazon.com/amazonswf/latest/developerguide/programming-priority.html Setting Task Priority> in the /Amazon Simple Workflow Developer Guide/ .+--+-- * 'wtcDefaultExecutionStartToCloseTimeout' - /Optional./ 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 'StartWorkflowExecution' action or the @StartChildWorkflowExecution@ decision. The duration is specified in seconds; an integer greater than or equal to 0. The value "NONE" can be used to specify unlimited duration.+--+-- * 'wtcDefaultTaskStartToCloseTimeout' - /Optional./ 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 does not 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 'StartWorkflowExecution' action or the @StartChildWorkflowExecution@ decision. The duration is specified in seconds; an integer greater than or equal to 0. The value "NONE" can be used to specify unlimited duration.+workflowTypeConfiguration+    :: WorkflowTypeConfiguration+workflowTypeConfiguration =+    WorkflowTypeConfiguration'+    { _wtcDefaultLambdaRole = Nothing+    , _wtcDefaultChildPolicy = Nothing+    , _wtcDefaultTaskList = Nothing+    , _wtcDefaultTaskPriority = Nothing+    , _wtcDefaultExecutionStartToCloseTimeout = Nothing+    , _wtcDefaultTaskStartToCloseTimeout = Nothing+    }++-- | The default IAM role to use when a workflow execution invokes a AWS Lambda function.+wtcDefaultLambdaRole :: Lens' WorkflowTypeConfiguration (Maybe Text)+wtcDefaultLambdaRole = lens _wtcDefaultLambdaRole (\ s a -> s{_wtcDefaultLambdaRole = a});++-- | /Optional./ The default policy to use for the child workflow executions when a workflow execution of this type is terminated, by calling the 'TerminateWorkflowExecution' action explicitly or due to an expired timeout. This default can be overridden when starting a workflow execution using the 'StartWorkflowExecution' action or the @StartChildWorkflowExecution@ decision. The supported child policies are:     * __TERMINATE:__ the child executions will be terminated.    * __REQUEST_CANCEL:__ a request to cancel will be attempted for each child execution by recording a @WorkflowExecutionCancelRequested@ event in its history. It is up to the decider to take appropriate actions when it receives an execution history with this event.    * __ABANDON:__ no action will be taken. The child executions will continue to run.+wtcDefaultChildPolicy :: Lens' WorkflowTypeConfiguration (Maybe ChildPolicy)+wtcDefaultChildPolicy = lens _wtcDefaultChildPolicy (\ s a -> s{_wtcDefaultChildPolicy = a});++-- | /Optional./ 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 'StartWorkflowExecution' action or the @StartChildWorkflowExecution@ decision.+wtcDefaultTaskList :: Lens' WorkflowTypeConfiguration (Maybe TaskList)+wtcDefaultTaskList = lens _wtcDefaultTaskList (\ s a -> s{_wtcDefaultTaskList = a});++-- | /Optional./ 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 'StartWorkflowExecution' action or the @StartChildWorkflowExecution@ decision. Valid values are integers that range from Java's @Integer.MIN_VALUE@ (-2147483648) to @Integer.MAX_VALUE@ (2147483647). Higher numbers indicate higher priority. For more information about setting task priority, see <http://docs.aws.amazon.com/amazonswf/latest/developerguide/programming-priority.html Setting Task Priority> in the /Amazon Simple Workflow Developer Guide/ .+wtcDefaultTaskPriority :: Lens' WorkflowTypeConfiguration (Maybe Text)+wtcDefaultTaskPriority = lens _wtcDefaultTaskPriority (\ s a -> s{_wtcDefaultTaskPriority = a});++-- | /Optional./ 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 'StartWorkflowExecution' action or the @StartChildWorkflowExecution@ decision. The duration is specified in seconds; an integer greater than or equal to 0. The value "NONE" can be used to specify unlimited duration.+wtcDefaultExecutionStartToCloseTimeout :: Lens' WorkflowTypeConfiguration (Maybe Text)+wtcDefaultExecutionStartToCloseTimeout = lens _wtcDefaultExecutionStartToCloseTimeout (\ s a -> s{_wtcDefaultExecutionStartToCloseTimeout = a});++-- | /Optional./ 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 does not 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 'StartWorkflowExecution' action or the @StartChildWorkflowExecution@ decision. The duration is specified in seconds; an integer greater than or equal to 0. The value "NONE" can be used to specify unlimited duration.+wtcDefaultTaskStartToCloseTimeout :: Lens' WorkflowTypeConfiguration (Maybe Text)+wtcDefaultTaskStartToCloseTimeout = lens _wtcDefaultTaskStartToCloseTimeout (\ s a -> s{_wtcDefaultTaskStartToCloseTimeout = a});++instance FromJSON WorkflowTypeConfiguration where+        parseJSON+          = withObject "WorkflowTypeConfiguration"+              (\ x ->+                 WorkflowTypeConfiguration' <$>+                   (x .:? "defaultLambdaRole") <*>+                     (x .:? "defaultChildPolicy")+                     <*> (x .:? "defaultTaskList")+                     <*> (x .:? "defaultTaskPriority")+                     <*> (x .:? "defaultExecutionStartToCloseTimeout")+                     <*> (x .:? "defaultTaskStartToCloseTimeout"))++instance Hashable WorkflowTypeConfiguration++instance NFData WorkflowTypeConfiguration++-- | Used to filter workflow execution query results by type. Each parameter, if specified, defines a rule that must be satisfied by each returned result.+--+--+--+-- /See:/ 'workflowTypeFilter' smart constructor.+data WorkflowTypeFilter = WorkflowTypeFilter'+    { _wtfVersion :: !(Maybe Text)+    , _wtfName    :: !Text+    } deriving (Eq,Read,Show,Data,Typeable,Generic)++-- | Creates a value of 'WorkflowTypeFilter' with the minimum fields required to make a request.+--+-- Use one of the following lenses to modify other fields as desired:+--+-- * 'wtfVersion' - Version of the workflow type.+--+-- * 'wtfName' - __Required.__ Name of the workflow type.+workflowTypeFilter+    :: Text -- ^ 'wtfName'+    -> WorkflowTypeFilter+workflowTypeFilter pName_ =+    WorkflowTypeFilter'+    { _wtfVersion = Nothing+    , _wtfName = pName_+    }++-- | Version of the workflow type.+wtfVersion :: Lens' WorkflowTypeFilter (Maybe Text)+wtfVersion = lens _wtfVersion (\ s a -> s{_wtfVersion = a});++-- | __Required.__ Name of the workflow type.+wtfName :: Lens' WorkflowTypeFilter Text+wtfName = lens _wtfName (\ s a -> s{_wtfName = a});++instance Hashable WorkflowTypeFilter++instance NFData WorkflowTypeFilter++instance ToJSON WorkflowTypeFilter where+        toJSON WorkflowTypeFilter'{..}+          = object+              (catMaybes+                 [("version" .=) <$> _wtfVersion,+                  Just ("name" .= _wtfName)])++-- | Contains information about a workflow type.+--+--+--+-- /See:/ 'workflowTypeInfo' smart constructor.+data WorkflowTypeInfo = WorkflowTypeInfo'+    { _wtiDeprecationDate :: !(Maybe POSIX)+    , _wtiDescription     :: !(Maybe Text)+    , _wtiWorkflowType    :: !WorkflowType+    , _wtiStatus          :: !RegistrationStatus+    , _wtiCreationDate    :: !POSIX+    } deriving (Eq,Read,Show,Data,Typeable,Generic)++-- | Creates a value of 'WorkflowTypeInfo' with the minimum fields required to make a request.+--+-- Use one of the following lenses to modify other fields as desired:+--+-- * 'wtiDeprecationDate' - If the type is in deprecated state, then it is set to the date when the type was deprecated.+--+-- * 'wtiDescription' - The description of the type registered through 'RegisterWorkflowType' .+--+-- * 'wtiWorkflowType' - The workflow type this information is about.+--+-- * 'wtiStatus' - The current status of the workflow type.+--+-- * 'wtiCreationDate' - The date when this type was registered.+workflowTypeInfo+    :: WorkflowType -- ^ 'wtiWorkflowType'+    -> RegistrationStatus -- ^ 'wtiStatus'+    -> UTCTime -- ^ 'wtiCreationDate'+    -> WorkflowTypeInfo+workflowTypeInfo pWorkflowType_ pStatus_ pCreationDate_ =+    WorkflowTypeInfo'+    { _wtiDeprecationDate = Nothing+    , _wtiDescription = Nothing+    , _wtiWorkflowType = pWorkflowType_+    , _wtiStatus = pStatus_+    , _wtiCreationDate = _Time # pCreationDate_+    }++-- | If the type is in deprecated state, then it is set to the date when the type was deprecated.+wtiDeprecationDate :: Lens' WorkflowTypeInfo (Maybe UTCTime)+wtiDeprecationDate = lens _wtiDeprecationDate (\ s a -> s{_wtiDeprecationDate = a}) . mapping _Time;++-- | The description of the type registered through 'RegisterWorkflowType' . wtiDescription :: Lens' WorkflowTypeInfo (Maybe Text) wtiDescription = lens _wtiDescription (\ s a -> s{_wtiDescription = a});