{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE DuplicateRecordFields #-}
{-# LANGUAGE NamedFieldPuns #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE RecordWildCards #-}
{-# LANGUAGE StrictData #-}
{-# LANGUAGE NoImplicitPrelude #-}
{-# OPTIONS_GHC -fno-warn-unused-imports #-}
{-# OPTIONS_GHC -fno-warn-unused-matches #-}

-- Derived from AWS service descriptions, licensed under Apache 2.0.

-- |
-- Module      : Amazonka.StepFunctions.Types.HistoryEvent
-- Copyright   : (c) 2013-2021 Brendan Hay
-- License     : Mozilla Public License, v. 2.0.
-- Maintainer  : Brendan Hay <brendan.g.hay+amazonka@gmail.com>
-- Stability   : auto-generated
-- Portability : non-portable (GHC extensions)
module Amazonka.StepFunctions.Types.HistoryEvent where

import qualified Amazonka.Core as Core
import qualified Amazonka.Lens as Lens
import qualified Amazonka.Prelude as Prelude
import Amazonka.StepFunctions.Types.ActivityFailedEventDetails
import Amazonka.StepFunctions.Types.ActivityScheduleFailedEventDetails
import Amazonka.StepFunctions.Types.ActivityScheduledEventDetails
import Amazonka.StepFunctions.Types.ActivityStartedEventDetails
import Amazonka.StepFunctions.Types.ActivitySucceededEventDetails
import Amazonka.StepFunctions.Types.ActivityTimedOutEventDetails
import Amazonka.StepFunctions.Types.ExecutionAbortedEventDetails
import Amazonka.StepFunctions.Types.ExecutionFailedEventDetails
import Amazonka.StepFunctions.Types.ExecutionStartedEventDetails
import Amazonka.StepFunctions.Types.ExecutionSucceededEventDetails
import Amazonka.StepFunctions.Types.ExecutionTimedOutEventDetails
import Amazonka.StepFunctions.Types.HistoryEventType
import Amazonka.StepFunctions.Types.LambdaFunctionFailedEventDetails
import Amazonka.StepFunctions.Types.LambdaFunctionScheduleFailedEventDetails
import Amazonka.StepFunctions.Types.LambdaFunctionScheduledEventDetails
import Amazonka.StepFunctions.Types.LambdaFunctionStartFailedEventDetails
import Amazonka.StepFunctions.Types.LambdaFunctionSucceededEventDetails
import Amazonka.StepFunctions.Types.LambdaFunctionTimedOutEventDetails
import Amazonka.StepFunctions.Types.MapIterationEventDetails
import Amazonka.StepFunctions.Types.MapStateStartedEventDetails
import Amazonka.StepFunctions.Types.StateEnteredEventDetails
import Amazonka.StepFunctions.Types.StateExitedEventDetails
import Amazonka.StepFunctions.Types.TaskFailedEventDetails
import Amazonka.StepFunctions.Types.TaskScheduledEventDetails
import Amazonka.StepFunctions.Types.TaskStartFailedEventDetails
import Amazonka.StepFunctions.Types.TaskStartedEventDetails
import Amazonka.StepFunctions.Types.TaskSubmitFailedEventDetails
import Amazonka.StepFunctions.Types.TaskSubmittedEventDetails
import Amazonka.StepFunctions.Types.TaskSucceededEventDetails
import Amazonka.StepFunctions.Types.TaskTimedOutEventDetails

-- | Contains details about the events of an execution.
--
-- /See:/ 'newHistoryEvent' smart constructor.
data HistoryEvent = HistoryEvent'
  { -- | Contains details about Map state that was started.
    HistoryEvent -> Maybe MapStateStartedEventDetails
mapStateStartedEventDetails :: Prelude.Maybe MapStateStartedEventDetails,
    -- | Contains details about a task that where the submit failed.
    HistoryEvent -> Maybe TaskSubmitFailedEventDetails
taskSubmitFailedEventDetails :: Prelude.Maybe TaskSubmitFailedEventDetails,
    -- | Contains details about a task that was started.
    HistoryEvent -> Maybe TaskStartedEventDetails
taskStartedEventDetails :: Prelude.Maybe TaskStartedEventDetails,
    HistoryEvent -> Maybe ActivityStartedEventDetails
activityStartedEventDetails :: Prelude.Maybe ActivityStartedEventDetails,
    -- | Contains details about a submitted task.
    HistoryEvent -> Maybe TaskSubmittedEventDetails
taskSubmittedEventDetails :: Prelude.Maybe TaskSubmittedEventDetails,
    -- | Contains details about a lambda function that failed to start during an
    -- execution.
    HistoryEvent -> Maybe LambdaFunctionStartFailedEventDetails
lambdaFunctionStartFailedEventDetails :: Prelude.Maybe LambdaFunctionStartFailedEventDetails,
    -- | Contains details about a task that failed to start.
    HistoryEvent -> Maybe TaskStartFailedEventDetails
taskStartFailedEventDetails :: Prelude.Maybe TaskStartFailedEventDetails,
    HistoryEvent -> Maybe StateExitedEventDetails
stateExitedEventDetails :: Prelude.Maybe StateExitedEventDetails,
    -- | Contains details about a lambda function that terminated successfully
    -- during an execution.
    HistoryEvent -> Maybe LambdaFunctionSucceededEventDetails
lambdaFunctionSucceededEventDetails :: Prelude.Maybe LambdaFunctionSucceededEventDetails,
    -- | Contains details about a task that succeeded.
    HistoryEvent -> Maybe TaskSucceededEventDetails
taskSucceededEventDetails :: Prelude.Maybe TaskSucceededEventDetails,
    HistoryEvent -> Maybe ActivitySucceededEventDetails
activitySucceededEventDetails :: Prelude.Maybe ActivitySucceededEventDetails,
    -- | Contains details about an iteration of a Map state that was aborted.
    HistoryEvent -> Maybe MapIterationEventDetails
mapIterationAbortedEventDetails :: Prelude.Maybe MapIterationEventDetails,
    -- | Contains details about an iteration of a Map state that succeeded.
    HistoryEvent -> Maybe MapIterationEventDetails
mapIterationSucceededEventDetails :: Prelude.Maybe MapIterationEventDetails,
    -- | Contains details about an iteration of a Map state that was started.
    HistoryEvent -> Maybe MapIterationEventDetails
mapIterationStartedEventDetails :: Prelude.Maybe MapIterationEventDetails,
    HistoryEvent -> Maybe LambdaFunctionTimedOutEventDetails
lambdaFunctionTimedOutEventDetails :: Prelude.Maybe LambdaFunctionTimedOutEventDetails,
    -- | Contains details about a task that timed out.
    HistoryEvent -> Maybe TaskTimedOutEventDetails
taskTimedOutEventDetails :: Prelude.Maybe TaskTimedOutEventDetails,
    HistoryEvent -> Maybe ActivityTimedOutEventDetails
activityTimedOutEventDetails :: Prelude.Maybe ActivityTimedOutEventDetails,
    HistoryEvent -> Maybe ExecutionFailedEventDetails
executionFailedEventDetails :: Prelude.Maybe ExecutionFailedEventDetails,
    HistoryEvent -> Maybe ExecutionAbortedEventDetails
executionAbortedEventDetails :: Prelude.Maybe ExecutionAbortedEventDetails,
    HistoryEvent -> Maybe ExecutionSucceededEventDetails
executionSucceededEventDetails :: Prelude.Maybe ExecutionSucceededEventDetails,
    HistoryEvent -> Maybe LambdaFunctionScheduledEventDetails
lambdaFunctionScheduledEventDetails :: Prelude.Maybe LambdaFunctionScheduledEventDetails,
    -- | Contains details about a task that was scheduled.
    HistoryEvent -> Maybe TaskScheduledEventDetails
taskScheduledEventDetails :: Prelude.Maybe TaskScheduledEventDetails,
    HistoryEvent -> Maybe ActivityScheduledEventDetails
activityScheduledEventDetails :: Prelude.Maybe ActivityScheduledEventDetails,
    HistoryEvent -> Maybe ExecutionStartedEventDetails
executionStartedEventDetails :: Prelude.Maybe ExecutionStartedEventDetails,
    -- | Contains details about an activity schedule event that failed during an
    -- execution.
    HistoryEvent -> Maybe ActivityScheduleFailedEventDetails
activityScheduleFailedEventDetails :: Prelude.Maybe ActivityScheduleFailedEventDetails,
    HistoryEvent -> Maybe LambdaFunctionScheduleFailedEventDetails
lambdaFunctionScheduleFailedEventDetails :: Prelude.Maybe LambdaFunctionScheduleFailedEventDetails,
    HistoryEvent -> Maybe StateEnteredEventDetails
stateEnteredEventDetails :: Prelude.Maybe StateEnteredEventDetails,
    -- | The id of the previous event.
    HistoryEvent -> Maybe Integer
previousEventId :: Prelude.Maybe Prelude.Integer,
    HistoryEvent -> Maybe ActivityFailedEventDetails
activityFailedEventDetails :: Prelude.Maybe ActivityFailedEventDetails,
    -- | Contains details about the failure of a task.
    HistoryEvent -> Maybe TaskFailedEventDetails
taskFailedEventDetails :: Prelude.Maybe TaskFailedEventDetails,
    HistoryEvent -> Maybe LambdaFunctionFailedEventDetails
lambdaFunctionFailedEventDetails :: Prelude.Maybe LambdaFunctionFailedEventDetails,
    HistoryEvent -> Maybe ExecutionTimedOutEventDetails
executionTimedOutEventDetails :: Prelude.Maybe ExecutionTimedOutEventDetails,
    -- | Contains details about an iteration of a Map state that failed.
    HistoryEvent -> Maybe MapIterationEventDetails
mapIterationFailedEventDetails :: Prelude.Maybe MapIterationEventDetails,
    -- | The date and time the event occurred.
    HistoryEvent -> POSIX
timestamp :: Core.POSIX,
    -- | The type of the event.
    HistoryEvent -> HistoryEventType
type' :: HistoryEventType,
    -- | The id of the event. Events are numbered sequentially, starting at one.
    HistoryEvent -> Integer
id :: Prelude.Integer
  }
  deriving (HistoryEvent -> HistoryEvent -> Bool
(HistoryEvent -> HistoryEvent -> Bool)
-> (HistoryEvent -> HistoryEvent -> Bool) -> Eq HistoryEvent
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: HistoryEvent -> HistoryEvent -> Bool
$c/= :: HistoryEvent -> HistoryEvent -> Bool
== :: HistoryEvent -> HistoryEvent -> Bool
$c== :: HistoryEvent -> HistoryEvent -> Bool
Prelude.Eq, Int -> HistoryEvent -> ShowS
[HistoryEvent] -> ShowS
HistoryEvent -> String
(Int -> HistoryEvent -> ShowS)
-> (HistoryEvent -> String)
-> ([HistoryEvent] -> ShowS)
-> Show HistoryEvent
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [HistoryEvent] -> ShowS
$cshowList :: [HistoryEvent] -> ShowS
show :: HistoryEvent -> String
$cshow :: HistoryEvent -> String
showsPrec :: Int -> HistoryEvent -> ShowS
$cshowsPrec :: Int -> HistoryEvent -> ShowS
Prelude.Show, (forall x. HistoryEvent -> Rep HistoryEvent x)
-> (forall x. Rep HistoryEvent x -> HistoryEvent)
-> Generic HistoryEvent
forall x. Rep HistoryEvent x -> HistoryEvent
forall x. HistoryEvent -> Rep HistoryEvent x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep HistoryEvent x -> HistoryEvent
$cfrom :: forall x. HistoryEvent -> Rep HistoryEvent x
Prelude.Generic)

-- |
-- Create a value of 'HistoryEvent' with all optional fields omitted.
--
-- Use <https://hackage.haskell.org/package/generic-lens generic-lens> or <https://hackage.haskell.org/package/optics optics> to modify other optional fields.
--
-- The following record fields are available, with the corresponding lenses provided
-- for backwards compatibility:
--
-- 'mapStateStartedEventDetails', 'historyEvent_mapStateStartedEventDetails' - Contains details about Map state that was started.
--
-- 'taskSubmitFailedEventDetails', 'historyEvent_taskSubmitFailedEventDetails' - Contains details about a task that where the submit failed.
--
-- 'taskStartedEventDetails', 'historyEvent_taskStartedEventDetails' - Contains details about a task that was started.
--
-- 'activityStartedEventDetails', 'historyEvent_activityStartedEventDetails' - Undocumented member.
--
-- 'taskSubmittedEventDetails', 'historyEvent_taskSubmittedEventDetails' - Contains details about a submitted task.
--
-- 'lambdaFunctionStartFailedEventDetails', 'historyEvent_lambdaFunctionStartFailedEventDetails' - Contains details about a lambda function that failed to start during an
-- execution.
--
-- 'taskStartFailedEventDetails', 'historyEvent_taskStartFailedEventDetails' - Contains details about a task that failed to start.
--
-- 'stateExitedEventDetails', 'historyEvent_stateExitedEventDetails' - Undocumented member.
--
-- 'lambdaFunctionSucceededEventDetails', 'historyEvent_lambdaFunctionSucceededEventDetails' - Contains details about a lambda function that terminated successfully
-- during an execution.
--
-- 'taskSucceededEventDetails', 'historyEvent_taskSucceededEventDetails' - Contains details about a task that succeeded.
--
-- 'activitySucceededEventDetails', 'historyEvent_activitySucceededEventDetails' - Undocumented member.
--
-- 'mapIterationAbortedEventDetails', 'historyEvent_mapIterationAbortedEventDetails' - Contains details about an iteration of a Map state that was aborted.
--
-- 'mapIterationSucceededEventDetails', 'historyEvent_mapIterationSucceededEventDetails' - Contains details about an iteration of a Map state that succeeded.
--
-- 'mapIterationStartedEventDetails', 'historyEvent_mapIterationStartedEventDetails' - Contains details about an iteration of a Map state that was started.
--
-- 'lambdaFunctionTimedOutEventDetails', 'historyEvent_lambdaFunctionTimedOutEventDetails' - Undocumented member.
--
-- 'taskTimedOutEventDetails', 'historyEvent_taskTimedOutEventDetails' - Contains details about a task that timed out.
--
-- 'activityTimedOutEventDetails', 'historyEvent_activityTimedOutEventDetails' - Undocumented member.
--
-- 'executionFailedEventDetails', 'historyEvent_executionFailedEventDetails' - Undocumented member.
--
-- 'executionAbortedEventDetails', 'historyEvent_executionAbortedEventDetails' - Undocumented member.
--
-- 'executionSucceededEventDetails', 'historyEvent_executionSucceededEventDetails' - Undocumented member.
--
-- 'lambdaFunctionScheduledEventDetails', 'historyEvent_lambdaFunctionScheduledEventDetails' - Undocumented member.
--
-- 'taskScheduledEventDetails', 'historyEvent_taskScheduledEventDetails' - Contains details about a task that was scheduled.
--
-- 'activityScheduledEventDetails', 'historyEvent_activityScheduledEventDetails' - Undocumented member.
--
-- 'executionStartedEventDetails', 'historyEvent_executionStartedEventDetails' - Undocumented member.
--
-- 'activityScheduleFailedEventDetails', 'historyEvent_activityScheduleFailedEventDetails' - Contains details about an activity schedule event that failed during an
-- execution.
--
-- 'lambdaFunctionScheduleFailedEventDetails', 'historyEvent_lambdaFunctionScheduleFailedEventDetails' - Undocumented member.
--
-- 'stateEnteredEventDetails', 'historyEvent_stateEnteredEventDetails' - Undocumented member.
--
-- 'previousEventId', 'historyEvent_previousEventId' - The id of the previous event.
--
-- 'activityFailedEventDetails', 'historyEvent_activityFailedEventDetails' - Undocumented member.
--
-- 'taskFailedEventDetails', 'historyEvent_taskFailedEventDetails' - Contains details about the failure of a task.
--
-- 'lambdaFunctionFailedEventDetails', 'historyEvent_lambdaFunctionFailedEventDetails' - Undocumented member.
--
-- 'executionTimedOutEventDetails', 'historyEvent_executionTimedOutEventDetails' - Undocumented member.
--
-- 'mapIterationFailedEventDetails', 'historyEvent_mapIterationFailedEventDetails' - Contains details about an iteration of a Map state that failed.
--
-- 'timestamp', 'historyEvent_timestamp' - The date and time the event occurred.
--
-- 'type'', 'historyEvent_type' - The type of the event.
--
-- 'id', 'historyEvent_id' - The id of the event. Events are numbered sequentially, starting at one.
newHistoryEvent ::
  -- | 'timestamp'
  Prelude.UTCTime ->
  -- | 'type''
  HistoryEventType ->
  -- | 'id'
  Prelude.Integer ->
  HistoryEvent
newHistoryEvent :: UTCTime -> HistoryEventType -> Integer -> HistoryEvent
newHistoryEvent UTCTime
pTimestamp_ HistoryEventType
pType_ Integer
pId_ =
  HistoryEvent' :: Maybe MapStateStartedEventDetails
-> Maybe TaskSubmitFailedEventDetails
-> Maybe TaskStartedEventDetails
-> Maybe ActivityStartedEventDetails
-> Maybe TaskSubmittedEventDetails
-> Maybe LambdaFunctionStartFailedEventDetails
-> Maybe TaskStartFailedEventDetails
-> Maybe StateExitedEventDetails
-> Maybe LambdaFunctionSucceededEventDetails
-> Maybe TaskSucceededEventDetails
-> Maybe ActivitySucceededEventDetails
-> Maybe MapIterationEventDetails
-> Maybe MapIterationEventDetails
-> Maybe MapIterationEventDetails
-> Maybe LambdaFunctionTimedOutEventDetails
-> Maybe TaskTimedOutEventDetails
-> Maybe ActivityTimedOutEventDetails
-> Maybe ExecutionFailedEventDetails
-> Maybe ExecutionAbortedEventDetails
-> Maybe ExecutionSucceededEventDetails
-> Maybe LambdaFunctionScheduledEventDetails
-> Maybe TaskScheduledEventDetails
-> Maybe ActivityScheduledEventDetails
-> Maybe ExecutionStartedEventDetails
-> Maybe ActivityScheduleFailedEventDetails
-> Maybe LambdaFunctionScheduleFailedEventDetails
-> Maybe StateEnteredEventDetails
-> Maybe Integer
-> Maybe ActivityFailedEventDetails
-> Maybe TaskFailedEventDetails
-> Maybe LambdaFunctionFailedEventDetails
-> Maybe ExecutionTimedOutEventDetails
-> Maybe MapIterationEventDetails
-> POSIX
-> HistoryEventType
-> Integer
-> HistoryEvent
HistoryEvent'
    { $sel:mapStateStartedEventDetails:HistoryEvent' :: Maybe MapStateStartedEventDetails
mapStateStartedEventDetails =
        Maybe MapStateStartedEventDetails
forall a. Maybe a
Prelude.Nothing,
      $sel:taskSubmitFailedEventDetails:HistoryEvent' :: Maybe TaskSubmitFailedEventDetails
taskSubmitFailedEventDetails = Maybe TaskSubmitFailedEventDetails
forall a. Maybe a
Prelude.Nothing,
      $sel:taskStartedEventDetails:HistoryEvent' :: Maybe TaskStartedEventDetails
taskStartedEventDetails = Maybe TaskStartedEventDetails
forall a. Maybe a
Prelude.Nothing,
      $sel:activityStartedEventDetails:HistoryEvent' :: Maybe ActivityStartedEventDetails
activityStartedEventDetails = Maybe ActivityStartedEventDetails
forall a. Maybe a
Prelude.Nothing,
      $sel:taskSubmittedEventDetails:HistoryEvent' :: Maybe TaskSubmittedEventDetails
taskSubmittedEventDetails = Maybe TaskSubmittedEventDetails
forall a. Maybe a
Prelude.Nothing,
      $sel:lambdaFunctionStartFailedEventDetails:HistoryEvent' :: Maybe LambdaFunctionStartFailedEventDetails
lambdaFunctionStartFailedEventDetails =
        Maybe LambdaFunctionStartFailedEventDetails
forall a. Maybe a
Prelude.Nothing,
      $sel:taskStartFailedEventDetails:HistoryEvent' :: Maybe TaskStartFailedEventDetails
taskStartFailedEventDetails = Maybe TaskStartFailedEventDetails
forall a. Maybe a
Prelude.Nothing,
      $sel:stateExitedEventDetails:HistoryEvent' :: Maybe StateExitedEventDetails
stateExitedEventDetails = Maybe StateExitedEventDetails
forall a. Maybe a
Prelude.Nothing,
      $sel:lambdaFunctionSucceededEventDetails:HistoryEvent' :: Maybe LambdaFunctionSucceededEventDetails
lambdaFunctionSucceededEventDetails =
        Maybe LambdaFunctionSucceededEventDetails
forall a. Maybe a
Prelude.Nothing,
      $sel:taskSucceededEventDetails:HistoryEvent' :: Maybe TaskSucceededEventDetails
taskSucceededEventDetails = Maybe TaskSucceededEventDetails
forall a. Maybe a
Prelude.Nothing,
      $sel:activitySucceededEventDetails:HistoryEvent' :: Maybe ActivitySucceededEventDetails
activitySucceededEventDetails = Maybe ActivitySucceededEventDetails
forall a. Maybe a
Prelude.Nothing,
      $sel:mapIterationAbortedEventDetails:HistoryEvent' :: Maybe MapIterationEventDetails
mapIterationAbortedEventDetails = Maybe MapIterationEventDetails
forall a. Maybe a
Prelude.Nothing,
      $sel:mapIterationSucceededEventDetails:HistoryEvent' :: Maybe MapIterationEventDetails
mapIterationSucceededEventDetails = Maybe MapIterationEventDetails
forall a. Maybe a
Prelude.Nothing,
      $sel:mapIterationStartedEventDetails:HistoryEvent' :: Maybe MapIterationEventDetails
mapIterationStartedEventDetails = Maybe MapIterationEventDetails
forall a. Maybe a
Prelude.Nothing,
      $sel:lambdaFunctionTimedOutEventDetails:HistoryEvent' :: Maybe LambdaFunctionTimedOutEventDetails
lambdaFunctionTimedOutEventDetails = Maybe LambdaFunctionTimedOutEventDetails
forall a. Maybe a
Prelude.Nothing,
      $sel:taskTimedOutEventDetails:HistoryEvent' :: Maybe TaskTimedOutEventDetails
taskTimedOutEventDetails = Maybe TaskTimedOutEventDetails
forall a. Maybe a
Prelude.Nothing,
      $sel:activityTimedOutEventDetails:HistoryEvent' :: Maybe ActivityTimedOutEventDetails
activityTimedOutEventDetails = Maybe ActivityTimedOutEventDetails
forall a. Maybe a
Prelude.Nothing,
      $sel:executionFailedEventDetails:HistoryEvent' :: Maybe ExecutionFailedEventDetails
executionFailedEventDetails = Maybe ExecutionFailedEventDetails
forall a. Maybe a
Prelude.Nothing,
      $sel:executionAbortedEventDetails:HistoryEvent' :: Maybe ExecutionAbortedEventDetails
executionAbortedEventDetails = Maybe ExecutionAbortedEventDetails
forall a. Maybe a
Prelude.Nothing,
      $sel:executionSucceededEventDetails:HistoryEvent' :: Maybe ExecutionSucceededEventDetails
executionSucceededEventDetails = Maybe ExecutionSucceededEventDetails
forall a. Maybe a
Prelude.Nothing,
      $sel:lambdaFunctionScheduledEventDetails:HistoryEvent' :: Maybe LambdaFunctionScheduledEventDetails
lambdaFunctionScheduledEventDetails =
        Maybe LambdaFunctionScheduledEventDetails
forall a. Maybe a
Prelude.Nothing,
      $sel:taskScheduledEventDetails:HistoryEvent' :: Maybe TaskScheduledEventDetails
taskScheduledEventDetails = Maybe TaskScheduledEventDetails
forall a. Maybe a
Prelude.Nothing,
      $sel:activityScheduledEventDetails:HistoryEvent' :: Maybe ActivityScheduledEventDetails
activityScheduledEventDetails = Maybe ActivityScheduledEventDetails
forall a. Maybe a
Prelude.Nothing,
      $sel:executionStartedEventDetails:HistoryEvent' :: Maybe ExecutionStartedEventDetails
executionStartedEventDetails = Maybe ExecutionStartedEventDetails
forall a. Maybe a
Prelude.Nothing,
      $sel:activityScheduleFailedEventDetails:HistoryEvent' :: Maybe ActivityScheduleFailedEventDetails
activityScheduleFailedEventDetails = Maybe ActivityScheduleFailedEventDetails
forall a. Maybe a
Prelude.Nothing,
      $sel:lambdaFunctionScheduleFailedEventDetails:HistoryEvent' :: Maybe LambdaFunctionScheduleFailedEventDetails
lambdaFunctionScheduleFailedEventDetails =
        Maybe LambdaFunctionScheduleFailedEventDetails
forall a. Maybe a
Prelude.Nothing,
      $sel:stateEnteredEventDetails:HistoryEvent' :: Maybe StateEnteredEventDetails
stateEnteredEventDetails = Maybe StateEnteredEventDetails
forall a. Maybe a
Prelude.Nothing,
      $sel:previousEventId:HistoryEvent' :: Maybe Integer
previousEventId = Maybe Integer
forall a. Maybe a
Prelude.Nothing,
      $sel:activityFailedEventDetails:HistoryEvent' :: Maybe ActivityFailedEventDetails
activityFailedEventDetails = Maybe ActivityFailedEventDetails
forall a. Maybe a
Prelude.Nothing,
      $sel:taskFailedEventDetails:HistoryEvent' :: Maybe TaskFailedEventDetails
taskFailedEventDetails = Maybe TaskFailedEventDetails
forall a. Maybe a
Prelude.Nothing,
      $sel:lambdaFunctionFailedEventDetails:HistoryEvent' :: Maybe LambdaFunctionFailedEventDetails
lambdaFunctionFailedEventDetails = Maybe LambdaFunctionFailedEventDetails
forall a. Maybe a
Prelude.Nothing,
      $sel:executionTimedOutEventDetails:HistoryEvent' :: Maybe ExecutionTimedOutEventDetails
executionTimedOutEventDetails = Maybe ExecutionTimedOutEventDetails
forall a. Maybe a
Prelude.Nothing,
      $sel:mapIterationFailedEventDetails:HistoryEvent' :: Maybe MapIterationEventDetails
mapIterationFailedEventDetails = Maybe MapIterationEventDetails
forall a. Maybe a
Prelude.Nothing,
      $sel:timestamp:HistoryEvent' :: POSIX
timestamp = Tagged UTCTime (Identity UTCTime) -> Tagged POSIX (Identity POSIX)
forall (a :: Format). Iso' (Time a) UTCTime
Core._Time (Tagged UTCTime (Identity UTCTime)
 -> Tagged POSIX (Identity POSIX))
-> UTCTime -> POSIX
forall t b. AReview t b -> b -> t
Lens.# UTCTime
pTimestamp_,
      $sel:type':HistoryEvent' :: HistoryEventType
type' = HistoryEventType
pType_,
      $sel:id:HistoryEvent' :: Integer
id = Integer
pId_
    }

-- | Contains details about Map state that was started.
historyEvent_mapStateStartedEventDetails :: Lens.Lens' HistoryEvent (Prelude.Maybe MapStateStartedEventDetails)
historyEvent_mapStateStartedEventDetails :: (Maybe MapStateStartedEventDetails
 -> f (Maybe MapStateStartedEventDetails))
-> HistoryEvent -> f HistoryEvent
historyEvent_mapStateStartedEventDetails = (HistoryEvent -> Maybe MapStateStartedEventDetails)
-> (HistoryEvent
    -> Maybe MapStateStartedEventDetails -> HistoryEvent)
-> Lens
     HistoryEvent
     HistoryEvent
     (Maybe MapStateStartedEventDetails)
     (Maybe MapStateStartedEventDetails)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\HistoryEvent' {Maybe MapStateStartedEventDetails
mapStateStartedEventDetails :: Maybe MapStateStartedEventDetails
$sel:mapStateStartedEventDetails:HistoryEvent' :: HistoryEvent -> Maybe MapStateStartedEventDetails
mapStateStartedEventDetails} -> Maybe MapStateStartedEventDetails
mapStateStartedEventDetails) (\s :: HistoryEvent
s@HistoryEvent' {} Maybe MapStateStartedEventDetails
a -> HistoryEvent
s {$sel:mapStateStartedEventDetails:HistoryEvent' :: Maybe MapStateStartedEventDetails
mapStateStartedEventDetails = Maybe MapStateStartedEventDetails
a} :: HistoryEvent)

-- | Contains details about a task that where the submit failed.
historyEvent_taskSubmitFailedEventDetails :: Lens.Lens' HistoryEvent (Prelude.Maybe TaskSubmitFailedEventDetails)
historyEvent_taskSubmitFailedEventDetails :: (Maybe TaskSubmitFailedEventDetails
 -> f (Maybe TaskSubmitFailedEventDetails))
-> HistoryEvent -> f HistoryEvent
historyEvent_taskSubmitFailedEventDetails = (HistoryEvent -> Maybe TaskSubmitFailedEventDetails)
-> (HistoryEvent
    -> Maybe TaskSubmitFailedEventDetails -> HistoryEvent)
-> Lens
     HistoryEvent
     HistoryEvent
     (Maybe TaskSubmitFailedEventDetails)
     (Maybe TaskSubmitFailedEventDetails)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\HistoryEvent' {Maybe TaskSubmitFailedEventDetails
taskSubmitFailedEventDetails :: Maybe TaskSubmitFailedEventDetails
$sel:taskSubmitFailedEventDetails:HistoryEvent' :: HistoryEvent -> Maybe TaskSubmitFailedEventDetails
taskSubmitFailedEventDetails} -> Maybe TaskSubmitFailedEventDetails
taskSubmitFailedEventDetails) (\s :: HistoryEvent
s@HistoryEvent' {} Maybe TaskSubmitFailedEventDetails
a -> HistoryEvent
s {$sel:taskSubmitFailedEventDetails:HistoryEvent' :: Maybe TaskSubmitFailedEventDetails
taskSubmitFailedEventDetails = Maybe TaskSubmitFailedEventDetails
a} :: HistoryEvent)

-- | Contains details about a task that was started.
historyEvent_taskStartedEventDetails :: Lens.Lens' HistoryEvent (Prelude.Maybe TaskStartedEventDetails)
historyEvent_taskStartedEventDetails :: (Maybe TaskStartedEventDetails
 -> f (Maybe TaskStartedEventDetails))
-> HistoryEvent -> f HistoryEvent
historyEvent_taskStartedEventDetails = (HistoryEvent -> Maybe TaskStartedEventDetails)
-> (HistoryEvent -> Maybe TaskStartedEventDetails -> HistoryEvent)
-> Lens
     HistoryEvent
     HistoryEvent
     (Maybe TaskStartedEventDetails)
     (Maybe TaskStartedEventDetails)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\HistoryEvent' {Maybe TaskStartedEventDetails
taskStartedEventDetails :: Maybe TaskStartedEventDetails
$sel:taskStartedEventDetails:HistoryEvent' :: HistoryEvent -> Maybe TaskStartedEventDetails
taskStartedEventDetails} -> Maybe TaskStartedEventDetails
taskStartedEventDetails) (\s :: HistoryEvent
s@HistoryEvent' {} Maybe TaskStartedEventDetails
a -> HistoryEvent
s {$sel:taskStartedEventDetails:HistoryEvent' :: Maybe TaskStartedEventDetails
taskStartedEventDetails = Maybe TaskStartedEventDetails
a} :: HistoryEvent)

-- | Undocumented member.
historyEvent_activityStartedEventDetails :: Lens.Lens' HistoryEvent (Prelude.Maybe ActivityStartedEventDetails)
historyEvent_activityStartedEventDetails :: (Maybe ActivityStartedEventDetails
 -> f (Maybe ActivityStartedEventDetails))
-> HistoryEvent -> f HistoryEvent
historyEvent_activityStartedEventDetails = (HistoryEvent -> Maybe ActivityStartedEventDetails)
-> (HistoryEvent
    -> Maybe ActivityStartedEventDetails -> HistoryEvent)
-> Lens
     HistoryEvent
     HistoryEvent
     (Maybe ActivityStartedEventDetails)
     (Maybe ActivityStartedEventDetails)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\HistoryEvent' {Maybe ActivityStartedEventDetails
activityStartedEventDetails :: Maybe ActivityStartedEventDetails
$sel:activityStartedEventDetails:HistoryEvent' :: HistoryEvent -> Maybe ActivityStartedEventDetails
activityStartedEventDetails} -> Maybe ActivityStartedEventDetails
activityStartedEventDetails) (\s :: HistoryEvent
s@HistoryEvent' {} Maybe ActivityStartedEventDetails
a -> HistoryEvent
s {$sel:activityStartedEventDetails:HistoryEvent' :: Maybe ActivityStartedEventDetails
activityStartedEventDetails = Maybe ActivityStartedEventDetails
a} :: HistoryEvent)

-- | Contains details about a submitted task.
historyEvent_taskSubmittedEventDetails :: Lens.Lens' HistoryEvent (Prelude.Maybe TaskSubmittedEventDetails)
historyEvent_taskSubmittedEventDetails :: (Maybe TaskSubmittedEventDetails
 -> f (Maybe TaskSubmittedEventDetails))
-> HistoryEvent -> f HistoryEvent
historyEvent_taskSubmittedEventDetails = (HistoryEvent -> Maybe TaskSubmittedEventDetails)
-> (HistoryEvent
    -> Maybe TaskSubmittedEventDetails -> HistoryEvent)
-> Lens
     HistoryEvent
     HistoryEvent
     (Maybe TaskSubmittedEventDetails)
     (Maybe TaskSubmittedEventDetails)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\HistoryEvent' {Maybe TaskSubmittedEventDetails
taskSubmittedEventDetails :: Maybe TaskSubmittedEventDetails
$sel:taskSubmittedEventDetails:HistoryEvent' :: HistoryEvent -> Maybe TaskSubmittedEventDetails
taskSubmittedEventDetails} -> Maybe TaskSubmittedEventDetails
taskSubmittedEventDetails) (\s :: HistoryEvent
s@HistoryEvent' {} Maybe TaskSubmittedEventDetails
a -> HistoryEvent
s {$sel:taskSubmittedEventDetails:HistoryEvent' :: Maybe TaskSubmittedEventDetails
taskSubmittedEventDetails = Maybe TaskSubmittedEventDetails
a} :: HistoryEvent)

-- | Contains details about a lambda function that failed to start during an
-- execution.
historyEvent_lambdaFunctionStartFailedEventDetails :: Lens.Lens' HistoryEvent (Prelude.Maybe LambdaFunctionStartFailedEventDetails)
historyEvent_lambdaFunctionStartFailedEventDetails :: (Maybe LambdaFunctionStartFailedEventDetails
 -> f (Maybe LambdaFunctionStartFailedEventDetails))
-> HistoryEvent -> f HistoryEvent
historyEvent_lambdaFunctionStartFailedEventDetails = (HistoryEvent -> Maybe LambdaFunctionStartFailedEventDetails)
-> (HistoryEvent
    -> Maybe LambdaFunctionStartFailedEventDetails -> HistoryEvent)
-> Lens
     HistoryEvent
     HistoryEvent
     (Maybe LambdaFunctionStartFailedEventDetails)
     (Maybe LambdaFunctionStartFailedEventDetails)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\HistoryEvent' {Maybe LambdaFunctionStartFailedEventDetails
lambdaFunctionStartFailedEventDetails :: Maybe LambdaFunctionStartFailedEventDetails
$sel:lambdaFunctionStartFailedEventDetails:HistoryEvent' :: HistoryEvent -> Maybe LambdaFunctionStartFailedEventDetails
lambdaFunctionStartFailedEventDetails} -> Maybe LambdaFunctionStartFailedEventDetails
lambdaFunctionStartFailedEventDetails) (\s :: HistoryEvent
s@HistoryEvent' {} Maybe LambdaFunctionStartFailedEventDetails
a -> HistoryEvent
s {$sel:lambdaFunctionStartFailedEventDetails:HistoryEvent' :: Maybe LambdaFunctionStartFailedEventDetails
lambdaFunctionStartFailedEventDetails = Maybe LambdaFunctionStartFailedEventDetails
a} :: HistoryEvent)

-- | Contains details about a task that failed to start.
historyEvent_taskStartFailedEventDetails :: Lens.Lens' HistoryEvent (Prelude.Maybe TaskStartFailedEventDetails)
historyEvent_taskStartFailedEventDetails :: (Maybe TaskStartFailedEventDetails
 -> f (Maybe TaskStartFailedEventDetails))
-> HistoryEvent -> f HistoryEvent
historyEvent_taskStartFailedEventDetails = (HistoryEvent -> Maybe TaskStartFailedEventDetails)
-> (HistoryEvent
    -> Maybe TaskStartFailedEventDetails -> HistoryEvent)
-> Lens
     HistoryEvent
     HistoryEvent
     (Maybe TaskStartFailedEventDetails)
     (Maybe TaskStartFailedEventDetails)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\HistoryEvent' {Maybe TaskStartFailedEventDetails
taskStartFailedEventDetails :: Maybe TaskStartFailedEventDetails
$sel:taskStartFailedEventDetails:HistoryEvent' :: HistoryEvent -> Maybe TaskStartFailedEventDetails
taskStartFailedEventDetails} -> Maybe TaskStartFailedEventDetails
taskStartFailedEventDetails) (\s :: HistoryEvent
s@HistoryEvent' {} Maybe TaskStartFailedEventDetails
a -> HistoryEvent
s {$sel:taskStartFailedEventDetails:HistoryEvent' :: Maybe TaskStartFailedEventDetails
taskStartFailedEventDetails = Maybe TaskStartFailedEventDetails
a} :: HistoryEvent)

-- | Undocumented member.
historyEvent_stateExitedEventDetails :: Lens.Lens' HistoryEvent (Prelude.Maybe StateExitedEventDetails)
historyEvent_stateExitedEventDetails :: (Maybe StateExitedEventDetails
 -> f (Maybe StateExitedEventDetails))
-> HistoryEvent -> f HistoryEvent
historyEvent_stateExitedEventDetails = (HistoryEvent -> Maybe StateExitedEventDetails)
-> (HistoryEvent -> Maybe StateExitedEventDetails -> HistoryEvent)
-> Lens
     HistoryEvent
     HistoryEvent
     (Maybe StateExitedEventDetails)
     (Maybe StateExitedEventDetails)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\HistoryEvent' {Maybe StateExitedEventDetails
stateExitedEventDetails :: Maybe StateExitedEventDetails
$sel:stateExitedEventDetails:HistoryEvent' :: HistoryEvent -> Maybe StateExitedEventDetails
stateExitedEventDetails} -> Maybe StateExitedEventDetails
stateExitedEventDetails) (\s :: HistoryEvent
s@HistoryEvent' {} Maybe StateExitedEventDetails
a -> HistoryEvent
s {$sel:stateExitedEventDetails:HistoryEvent' :: Maybe StateExitedEventDetails
stateExitedEventDetails = Maybe StateExitedEventDetails
a} :: HistoryEvent)

-- | Contains details about a lambda function that terminated successfully
-- during an execution.
historyEvent_lambdaFunctionSucceededEventDetails :: Lens.Lens' HistoryEvent (Prelude.Maybe LambdaFunctionSucceededEventDetails)
historyEvent_lambdaFunctionSucceededEventDetails :: (Maybe LambdaFunctionSucceededEventDetails
 -> f (Maybe LambdaFunctionSucceededEventDetails))
-> HistoryEvent -> f HistoryEvent
historyEvent_lambdaFunctionSucceededEventDetails = (HistoryEvent -> Maybe LambdaFunctionSucceededEventDetails)
-> (HistoryEvent
    -> Maybe LambdaFunctionSucceededEventDetails -> HistoryEvent)
-> Lens
     HistoryEvent
     HistoryEvent
     (Maybe LambdaFunctionSucceededEventDetails)
     (Maybe LambdaFunctionSucceededEventDetails)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\HistoryEvent' {Maybe LambdaFunctionSucceededEventDetails
lambdaFunctionSucceededEventDetails :: Maybe LambdaFunctionSucceededEventDetails
$sel:lambdaFunctionSucceededEventDetails:HistoryEvent' :: HistoryEvent -> Maybe LambdaFunctionSucceededEventDetails
lambdaFunctionSucceededEventDetails} -> Maybe LambdaFunctionSucceededEventDetails
lambdaFunctionSucceededEventDetails) (\s :: HistoryEvent
s@HistoryEvent' {} Maybe LambdaFunctionSucceededEventDetails
a -> HistoryEvent
s {$sel:lambdaFunctionSucceededEventDetails:HistoryEvent' :: Maybe LambdaFunctionSucceededEventDetails
lambdaFunctionSucceededEventDetails = Maybe LambdaFunctionSucceededEventDetails
a} :: HistoryEvent)

-- | Contains details about a task that succeeded.
historyEvent_taskSucceededEventDetails :: Lens.Lens' HistoryEvent (Prelude.Maybe TaskSucceededEventDetails)
historyEvent_taskSucceededEventDetails :: (Maybe TaskSucceededEventDetails
 -> f (Maybe TaskSucceededEventDetails))
-> HistoryEvent -> f HistoryEvent
historyEvent_taskSucceededEventDetails = (HistoryEvent -> Maybe TaskSucceededEventDetails)
-> (HistoryEvent
    -> Maybe TaskSucceededEventDetails -> HistoryEvent)
-> Lens
     HistoryEvent
     HistoryEvent
     (Maybe TaskSucceededEventDetails)
     (Maybe TaskSucceededEventDetails)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\HistoryEvent' {Maybe TaskSucceededEventDetails
taskSucceededEventDetails :: Maybe TaskSucceededEventDetails
$sel:taskSucceededEventDetails:HistoryEvent' :: HistoryEvent -> Maybe TaskSucceededEventDetails
taskSucceededEventDetails} -> Maybe TaskSucceededEventDetails
taskSucceededEventDetails) (\s :: HistoryEvent
s@HistoryEvent' {} Maybe TaskSucceededEventDetails
a -> HistoryEvent
s {$sel:taskSucceededEventDetails:HistoryEvent' :: Maybe TaskSucceededEventDetails
taskSucceededEventDetails = Maybe TaskSucceededEventDetails
a} :: HistoryEvent)

-- | Undocumented member.
historyEvent_activitySucceededEventDetails :: Lens.Lens' HistoryEvent (Prelude.Maybe ActivitySucceededEventDetails)
historyEvent_activitySucceededEventDetails :: (Maybe ActivitySucceededEventDetails
 -> f (Maybe ActivitySucceededEventDetails))
-> HistoryEvent -> f HistoryEvent
historyEvent_activitySucceededEventDetails = (HistoryEvent -> Maybe ActivitySucceededEventDetails)
-> (HistoryEvent
    -> Maybe ActivitySucceededEventDetails -> HistoryEvent)
-> Lens
     HistoryEvent
     HistoryEvent
     (Maybe ActivitySucceededEventDetails)
     (Maybe ActivitySucceededEventDetails)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\HistoryEvent' {Maybe ActivitySucceededEventDetails
activitySucceededEventDetails :: Maybe ActivitySucceededEventDetails
$sel:activitySucceededEventDetails:HistoryEvent' :: HistoryEvent -> Maybe ActivitySucceededEventDetails
activitySucceededEventDetails} -> Maybe ActivitySucceededEventDetails
activitySucceededEventDetails) (\s :: HistoryEvent
s@HistoryEvent' {} Maybe ActivitySucceededEventDetails
a -> HistoryEvent
s {$sel:activitySucceededEventDetails:HistoryEvent' :: Maybe ActivitySucceededEventDetails
activitySucceededEventDetails = Maybe ActivitySucceededEventDetails
a} :: HistoryEvent)

-- | Contains details about an iteration of a Map state that was aborted.
historyEvent_mapIterationAbortedEventDetails :: Lens.Lens' HistoryEvent (Prelude.Maybe MapIterationEventDetails)
historyEvent_mapIterationAbortedEventDetails :: (Maybe MapIterationEventDetails
 -> f (Maybe MapIterationEventDetails))
-> HistoryEvent -> f HistoryEvent
historyEvent_mapIterationAbortedEventDetails = (HistoryEvent -> Maybe MapIterationEventDetails)
-> (HistoryEvent -> Maybe MapIterationEventDetails -> HistoryEvent)
-> Lens
     HistoryEvent
     HistoryEvent
     (Maybe MapIterationEventDetails)
     (Maybe MapIterationEventDetails)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\HistoryEvent' {Maybe MapIterationEventDetails
mapIterationAbortedEventDetails :: Maybe MapIterationEventDetails
$sel:mapIterationAbortedEventDetails:HistoryEvent' :: HistoryEvent -> Maybe MapIterationEventDetails
mapIterationAbortedEventDetails} -> Maybe MapIterationEventDetails
mapIterationAbortedEventDetails) (\s :: HistoryEvent
s@HistoryEvent' {} Maybe MapIterationEventDetails
a -> HistoryEvent
s {$sel:mapIterationAbortedEventDetails:HistoryEvent' :: Maybe MapIterationEventDetails
mapIterationAbortedEventDetails = Maybe MapIterationEventDetails
a} :: HistoryEvent)

-- | Contains details about an iteration of a Map state that succeeded.
historyEvent_mapIterationSucceededEventDetails :: Lens.Lens' HistoryEvent (Prelude.Maybe MapIterationEventDetails)
historyEvent_mapIterationSucceededEventDetails :: (Maybe MapIterationEventDetails
 -> f (Maybe MapIterationEventDetails))
-> HistoryEvent -> f HistoryEvent
historyEvent_mapIterationSucceededEventDetails = (HistoryEvent -> Maybe MapIterationEventDetails)
-> (HistoryEvent -> Maybe MapIterationEventDetails -> HistoryEvent)
-> Lens
     HistoryEvent
     HistoryEvent
     (Maybe MapIterationEventDetails)
     (Maybe MapIterationEventDetails)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\HistoryEvent' {Maybe MapIterationEventDetails
mapIterationSucceededEventDetails :: Maybe MapIterationEventDetails
$sel:mapIterationSucceededEventDetails:HistoryEvent' :: HistoryEvent -> Maybe MapIterationEventDetails
mapIterationSucceededEventDetails} -> Maybe MapIterationEventDetails
mapIterationSucceededEventDetails) (\s :: HistoryEvent
s@HistoryEvent' {} Maybe MapIterationEventDetails
a -> HistoryEvent
s {$sel:mapIterationSucceededEventDetails:HistoryEvent' :: Maybe MapIterationEventDetails
mapIterationSucceededEventDetails = Maybe MapIterationEventDetails
a} :: HistoryEvent)

-- | Contains details about an iteration of a Map state that was started.
historyEvent_mapIterationStartedEventDetails :: Lens.Lens' HistoryEvent (Prelude.Maybe MapIterationEventDetails)
historyEvent_mapIterationStartedEventDetails :: (Maybe MapIterationEventDetails
 -> f (Maybe MapIterationEventDetails))
-> HistoryEvent -> f HistoryEvent
historyEvent_mapIterationStartedEventDetails = (HistoryEvent -> Maybe MapIterationEventDetails)
-> (HistoryEvent -> Maybe MapIterationEventDetails -> HistoryEvent)
-> Lens
     HistoryEvent
     HistoryEvent
     (Maybe MapIterationEventDetails)
     (Maybe MapIterationEventDetails)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\HistoryEvent' {Maybe MapIterationEventDetails
mapIterationStartedEventDetails :: Maybe MapIterationEventDetails
$sel:mapIterationStartedEventDetails:HistoryEvent' :: HistoryEvent -> Maybe MapIterationEventDetails
mapIterationStartedEventDetails} -> Maybe MapIterationEventDetails
mapIterationStartedEventDetails) (\s :: HistoryEvent
s@HistoryEvent' {} Maybe MapIterationEventDetails
a -> HistoryEvent
s {$sel:mapIterationStartedEventDetails:HistoryEvent' :: Maybe MapIterationEventDetails
mapIterationStartedEventDetails = Maybe MapIterationEventDetails
a} :: HistoryEvent)

-- | Undocumented member.
historyEvent_lambdaFunctionTimedOutEventDetails :: Lens.Lens' HistoryEvent (Prelude.Maybe LambdaFunctionTimedOutEventDetails)
historyEvent_lambdaFunctionTimedOutEventDetails :: (Maybe LambdaFunctionTimedOutEventDetails
 -> f (Maybe LambdaFunctionTimedOutEventDetails))
-> HistoryEvent -> f HistoryEvent
historyEvent_lambdaFunctionTimedOutEventDetails = (HistoryEvent -> Maybe LambdaFunctionTimedOutEventDetails)
-> (HistoryEvent
    -> Maybe LambdaFunctionTimedOutEventDetails -> HistoryEvent)
-> Lens
     HistoryEvent
     HistoryEvent
     (Maybe LambdaFunctionTimedOutEventDetails)
     (Maybe LambdaFunctionTimedOutEventDetails)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\HistoryEvent' {Maybe LambdaFunctionTimedOutEventDetails
lambdaFunctionTimedOutEventDetails :: Maybe LambdaFunctionTimedOutEventDetails
$sel:lambdaFunctionTimedOutEventDetails:HistoryEvent' :: HistoryEvent -> Maybe LambdaFunctionTimedOutEventDetails
lambdaFunctionTimedOutEventDetails} -> Maybe LambdaFunctionTimedOutEventDetails
lambdaFunctionTimedOutEventDetails) (\s :: HistoryEvent
s@HistoryEvent' {} Maybe LambdaFunctionTimedOutEventDetails
a -> HistoryEvent
s {$sel:lambdaFunctionTimedOutEventDetails:HistoryEvent' :: Maybe LambdaFunctionTimedOutEventDetails
lambdaFunctionTimedOutEventDetails = Maybe LambdaFunctionTimedOutEventDetails
a} :: HistoryEvent)

-- | Contains details about a task that timed out.
historyEvent_taskTimedOutEventDetails :: Lens.Lens' HistoryEvent (Prelude.Maybe TaskTimedOutEventDetails)
historyEvent_taskTimedOutEventDetails :: (Maybe TaskTimedOutEventDetails
 -> f (Maybe TaskTimedOutEventDetails))
-> HistoryEvent -> f HistoryEvent
historyEvent_taskTimedOutEventDetails = (HistoryEvent -> Maybe TaskTimedOutEventDetails)
-> (HistoryEvent -> Maybe TaskTimedOutEventDetails -> HistoryEvent)
-> Lens
     HistoryEvent
     HistoryEvent
     (Maybe TaskTimedOutEventDetails)
     (Maybe TaskTimedOutEventDetails)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\HistoryEvent' {Maybe TaskTimedOutEventDetails
taskTimedOutEventDetails :: Maybe TaskTimedOutEventDetails
$sel:taskTimedOutEventDetails:HistoryEvent' :: HistoryEvent -> Maybe TaskTimedOutEventDetails
taskTimedOutEventDetails} -> Maybe TaskTimedOutEventDetails
taskTimedOutEventDetails) (\s :: HistoryEvent
s@HistoryEvent' {} Maybe TaskTimedOutEventDetails
a -> HistoryEvent
s {$sel:taskTimedOutEventDetails:HistoryEvent' :: Maybe TaskTimedOutEventDetails
taskTimedOutEventDetails = Maybe TaskTimedOutEventDetails
a} :: HistoryEvent)

-- | Undocumented member.
historyEvent_activityTimedOutEventDetails :: Lens.Lens' HistoryEvent (Prelude.Maybe ActivityTimedOutEventDetails)
historyEvent_activityTimedOutEventDetails :: (Maybe ActivityTimedOutEventDetails
 -> f (Maybe ActivityTimedOutEventDetails))
-> HistoryEvent -> f HistoryEvent
historyEvent_activityTimedOutEventDetails = (HistoryEvent -> Maybe ActivityTimedOutEventDetails)
-> (HistoryEvent
    -> Maybe ActivityTimedOutEventDetails -> HistoryEvent)
-> Lens
     HistoryEvent
     HistoryEvent
     (Maybe ActivityTimedOutEventDetails)
     (Maybe ActivityTimedOutEventDetails)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\HistoryEvent' {Maybe ActivityTimedOutEventDetails
activityTimedOutEventDetails :: Maybe ActivityTimedOutEventDetails
$sel:activityTimedOutEventDetails:HistoryEvent' :: HistoryEvent -> Maybe ActivityTimedOutEventDetails
activityTimedOutEventDetails} -> Maybe ActivityTimedOutEventDetails
activityTimedOutEventDetails) (\s :: HistoryEvent
s@HistoryEvent' {} Maybe ActivityTimedOutEventDetails
a -> HistoryEvent
s {$sel:activityTimedOutEventDetails:HistoryEvent' :: Maybe ActivityTimedOutEventDetails
activityTimedOutEventDetails = Maybe ActivityTimedOutEventDetails
a} :: HistoryEvent)

-- | Undocumented member.
historyEvent_executionFailedEventDetails :: Lens.Lens' HistoryEvent (Prelude.Maybe ExecutionFailedEventDetails)
historyEvent_executionFailedEventDetails :: (Maybe ExecutionFailedEventDetails
 -> f (Maybe ExecutionFailedEventDetails))
-> HistoryEvent -> f HistoryEvent
historyEvent_executionFailedEventDetails = (HistoryEvent -> Maybe ExecutionFailedEventDetails)
-> (HistoryEvent
    -> Maybe ExecutionFailedEventDetails -> HistoryEvent)
-> Lens
     HistoryEvent
     HistoryEvent
     (Maybe ExecutionFailedEventDetails)
     (Maybe ExecutionFailedEventDetails)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\HistoryEvent' {Maybe ExecutionFailedEventDetails
executionFailedEventDetails :: Maybe ExecutionFailedEventDetails
$sel:executionFailedEventDetails:HistoryEvent' :: HistoryEvent -> Maybe ExecutionFailedEventDetails
executionFailedEventDetails} -> Maybe ExecutionFailedEventDetails
executionFailedEventDetails) (\s :: HistoryEvent
s@HistoryEvent' {} Maybe ExecutionFailedEventDetails
a -> HistoryEvent
s {$sel:executionFailedEventDetails:HistoryEvent' :: Maybe ExecutionFailedEventDetails
executionFailedEventDetails = Maybe ExecutionFailedEventDetails
a} :: HistoryEvent)

-- | Undocumented member.
historyEvent_executionAbortedEventDetails :: Lens.Lens' HistoryEvent (Prelude.Maybe ExecutionAbortedEventDetails)
historyEvent_executionAbortedEventDetails :: (Maybe ExecutionAbortedEventDetails
 -> f (Maybe ExecutionAbortedEventDetails))
-> HistoryEvent -> f HistoryEvent
historyEvent_executionAbortedEventDetails = (HistoryEvent -> Maybe ExecutionAbortedEventDetails)
-> (HistoryEvent
    -> Maybe ExecutionAbortedEventDetails -> HistoryEvent)
-> Lens
     HistoryEvent
     HistoryEvent
     (Maybe ExecutionAbortedEventDetails)
     (Maybe ExecutionAbortedEventDetails)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\HistoryEvent' {Maybe ExecutionAbortedEventDetails
executionAbortedEventDetails :: Maybe ExecutionAbortedEventDetails
$sel:executionAbortedEventDetails:HistoryEvent' :: HistoryEvent -> Maybe ExecutionAbortedEventDetails
executionAbortedEventDetails} -> Maybe ExecutionAbortedEventDetails
executionAbortedEventDetails) (\s :: HistoryEvent
s@HistoryEvent' {} Maybe ExecutionAbortedEventDetails
a -> HistoryEvent
s {$sel:executionAbortedEventDetails:HistoryEvent' :: Maybe ExecutionAbortedEventDetails
executionAbortedEventDetails = Maybe ExecutionAbortedEventDetails
a} :: HistoryEvent)

-- | Undocumented member.
historyEvent_executionSucceededEventDetails :: Lens.Lens' HistoryEvent (Prelude.Maybe ExecutionSucceededEventDetails)
historyEvent_executionSucceededEventDetails :: (Maybe ExecutionSucceededEventDetails
 -> f (Maybe ExecutionSucceededEventDetails))
-> HistoryEvent -> f HistoryEvent
historyEvent_executionSucceededEventDetails = (HistoryEvent -> Maybe ExecutionSucceededEventDetails)
-> (HistoryEvent
    -> Maybe ExecutionSucceededEventDetails -> HistoryEvent)
-> Lens
     HistoryEvent
     HistoryEvent
     (Maybe ExecutionSucceededEventDetails)
     (Maybe ExecutionSucceededEventDetails)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\HistoryEvent' {Maybe ExecutionSucceededEventDetails
executionSucceededEventDetails :: Maybe ExecutionSucceededEventDetails
$sel:executionSucceededEventDetails:HistoryEvent' :: HistoryEvent -> Maybe ExecutionSucceededEventDetails
executionSucceededEventDetails} -> Maybe ExecutionSucceededEventDetails
executionSucceededEventDetails) (\s :: HistoryEvent
s@HistoryEvent' {} Maybe ExecutionSucceededEventDetails
a -> HistoryEvent
s {$sel:executionSucceededEventDetails:HistoryEvent' :: Maybe ExecutionSucceededEventDetails
executionSucceededEventDetails = Maybe ExecutionSucceededEventDetails
a} :: HistoryEvent)

-- | Undocumented member.
historyEvent_lambdaFunctionScheduledEventDetails :: Lens.Lens' HistoryEvent (Prelude.Maybe LambdaFunctionScheduledEventDetails)
historyEvent_lambdaFunctionScheduledEventDetails :: (Maybe LambdaFunctionScheduledEventDetails
 -> f (Maybe LambdaFunctionScheduledEventDetails))
-> HistoryEvent -> f HistoryEvent
historyEvent_lambdaFunctionScheduledEventDetails = (HistoryEvent -> Maybe LambdaFunctionScheduledEventDetails)
-> (HistoryEvent
    -> Maybe LambdaFunctionScheduledEventDetails -> HistoryEvent)
-> Lens
     HistoryEvent
     HistoryEvent
     (Maybe LambdaFunctionScheduledEventDetails)
     (Maybe LambdaFunctionScheduledEventDetails)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\HistoryEvent' {Maybe LambdaFunctionScheduledEventDetails
lambdaFunctionScheduledEventDetails :: Maybe LambdaFunctionScheduledEventDetails
$sel:lambdaFunctionScheduledEventDetails:HistoryEvent' :: HistoryEvent -> Maybe LambdaFunctionScheduledEventDetails
lambdaFunctionScheduledEventDetails} -> Maybe LambdaFunctionScheduledEventDetails
lambdaFunctionScheduledEventDetails) (\s :: HistoryEvent
s@HistoryEvent' {} Maybe LambdaFunctionScheduledEventDetails
a -> HistoryEvent
s {$sel:lambdaFunctionScheduledEventDetails:HistoryEvent' :: Maybe LambdaFunctionScheduledEventDetails
lambdaFunctionScheduledEventDetails = Maybe LambdaFunctionScheduledEventDetails
a} :: HistoryEvent)

-- | Contains details about a task that was scheduled.
historyEvent_taskScheduledEventDetails :: Lens.Lens' HistoryEvent (Prelude.Maybe TaskScheduledEventDetails)
historyEvent_taskScheduledEventDetails :: (Maybe TaskScheduledEventDetails
 -> f (Maybe TaskScheduledEventDetails))
-> HistoryEvent -> f HistoryEvent
historyEvent_taskScheduledEventDetails = (HistoryEvent -> Maybe TaskScheduledEventDetails)
-> (HistoryEvent
    -> Maybe TaskScheduledEventDetails -> HistoryEvent)
-> Lens
     HistoryEvent
     HistoryEvent
     (Maybe TaskScheduledEventDetails)
     (Maybe TaskScheduledEventDetails)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\HistoryEvent' {Maybe TaskScheduledEventDetails
taskScheduledEventDetails :: Maybe TaskScheduledEventDetails
$sel:taskScheduledEventDetails:HistoryEvent' :: HistoryEvent -> Maybe TaskScheduledEventDetails
taskScheduledEventDetails} -> Maybe TaskScheduledEventDetails
taskScheduledEventDetails) (\s :: HistoryEvent
s@HistoryEvent' {} Maybe TaskScheduledEventDetails
a -> HistoryEvent
s {$sel:taskScheduledEventDetails:HistoryEvent' :: Maybe TaskScheduledEventDetails
taskScheduledEventDetails = Maybe TaskScheduledEventDetails
a} :: HistoryEvent)

-- | Undocumented member.
historyEvent_activityScheduledEventDetails :: Lens.Lens' HistoryEvent (Prelude.Maybe ActivityScheduledEventDetails)
historyEvent_activityScheduledEventDetails :: (Maybe ActivityScheduledEventDetails
 -> f (Maybe ActivityScheduledEventDetails))
-> HistoryEvent -> f HistoryEvent
historyEvent_activityScheduledEventDetails = (HistoryEvent -> Maybe ActivityScheduledEventDetails)
-> (HistoryEvent
    -> Maybe ActivityScheduledEventDetails -> HistoryEvent)
-> Lens
     HistoryEvent
     HistoryEvent
     (Maybe ActivityScheduledEventDetails)
     (Maybe ActivityScheduledEventDetails)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\HistoryEvent' {Maybe ActivityScheduledEventDetails
activityScheduledEventDetails :: Maybe ActivityScheduledEventDetails
$sel:activityScheduledEventDetails:HistoryEvent' :: HistoryEvent -> Maybe ActivityScheduledEventDetails
activityScheduledEventDetails} -> Maybe ActivityScheduledEventDetails
activityScheduledEventDetails) (\s :: HistoryEvent
s@HistoryEvent' {} Maybe ActivityScheduledEventDetails
a -> HistoryEvent
s {$sel:activityScheduledEventDetails:HistoryEvent' :: Maybe ActivityScheduledEventDetails
activityScheduledEventDetails = Maybe ActivityScheduledEventDetails
a} :: HistoryEvent)

-- | Undocumented member.
historyEvent_executionStartedEventDetails :: Lens.Lens' HistoryEvent (Prelude.Maybe ExecutionStartedEventDetails)
historyEvent_executionStartedEventDetails :: (Maybe ExecutionStartedEventDetails
 -> f (Maybe ExecutionStartedEventDetails))
-> HistoryEvent -> f HistoryEvent
historyEvent_executionStartedEventDetails = (HistoryEvent -> Maybe ExecutionStartedEventDetails)
-> (HistoryEvent
    -> Maybe ExecutionStartedEventDetails -> HistoryEvent)
-> Lens
     HistoryEvent
     HistoryEvent
     (Maybe ExecutionStartedEventDetails)
     (Maybe ExecutionStartedEventDetails)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\HistoryEvent' {Maybe ExecutionStartedEventDetails
executionStartedEventDetails :: Maybe ExecutionStartedEventDetails
$sel:executionStartedEventDetails:HistoryEvent' :: HistoryEvent -> Maybe ExecutionStartedEventDetails
executionStartedEventDetails} -> Maybe ExecutionStartedEventDetails
executionStartedEventDetails) (\s :: HistoryEvent
s@HistoryEvent' {} Maybe ExecutionStartedEventDetails
a -> HistoryEvent
s {$sel:executionStartedEventDetails:HistoryEvent' :: Maybe ExecutionStartedEventDetails
executionStartedEventDetails = Maybe ExecutionStartedEventDetails
a} :: HistoryEvent)

-- | Contains details about an activity schedule event that failed during an
-- execution.
historyEvent_activityScheduleFailedEventDetails :: Lens.Lens' HistoryEvent (Prelude.Maybe ActivityScheduleFailedEventDetails)
historyEvent_activityScheduleFailedEventDetails :: (Maybe ActivityScheduleFailedEventDetails
 -> f (Maybe ActivityScheduleFailedEventDetails))
-> HistoryEvent -> f HistoryEvent
historyEvent_activityScheduleFailedEventDetails = (HistoryEvent -> Maybe ActivityScheduleFailedEventDetails)
-> (HistoryEvent
    -> Maybe ActivityScheduleFailedEventDetails -> HistoryEvent)
-> Lens
     HistoryEvent
     HistoryEvent
     (Maybe ActivityScheduleFailedEventDetails)
     (Maybe ActivityScheduleFailedEventDetails)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\HistoryEvent' {Maybe ActivityScheduleFailedEventDetails
activityScheduleFailedEventDetails :: Maybe ActivityScheduleFailedEventDetails
$sel:activityScheduleFailedEventDetails:HistoryEvent' :: HistoryEvent -> Maybe ActivityScheduleFailedEventDetails
activityScheduleFailedEventDetails} -> Maybe ActivityScheduleFailedEventDetails
activityScheduleFailedEventDetails) (\s :: HistoryEvent
s@HistoryEvent' {} Maybe ActivityScheduleFailedEventDetails
a -> HistoryEvent
s {$sel:activityScheduleFailedEventDetails:HistoryEvent' :: Maybe ActivityScheduleFailedEventDetails
activityScheduleFailedEventDetails = Maybe ActivityScheduleFailedEventDetails
a} :: HistoryEvent)

-- | Undocumented member.
historyEvent_lambdaFunctionScheduleFailedEventDetails :: Lens.Lens' HistoryEvent (Prelude.Maybe LambdaFunctionScheduleFailedEventDetails)
historyEvent_lambdaFunctionScheduleFailedEventDetails :: (Maybe LambdaFunctionScheduleFailedEventDetails
 -> f (Maybe LambdaFunctionScheduleFailedEventDetails))
-> HistoryEvent -> f HistoryEvent
historyEvent_lambdaFunctionScheduleFailedEventDetails = (HistoryEvent -> Maybe LambdaFunctionScheduleFailedEventDetails)
-> (HistoryEvent
    -> Maybe LambdaFunctionScheduleFailedEventDetails -> HistoryEvent)
-> Lens
     HistoryEvent
     HistoryEvent
     (Maybe LambdaFunctionScheduleFailedEventDetails)
     (Maybe LambdaFunctionScheduleFailedEventDetails)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\HistoryEvent' {Maybe LambdaFunctionScheduleFailedEventDetails
lambdaFunctionScheduleFailedEventDetails :: Maybe LambdaFunctionScheduleFailedEventDetails
$sel:lambdaFunctionScheduleFailedEventDetails:HistoryEvent' :: HistoryEvent -> Maybe LambdaFunctionScheduleFailedEventDetails
lambdaFunctionScheduleFailedEventDetails} -> Maybe LambdaFunctionScheduleFailedEventDetails
lambdaFunctionScheduleFailedEventDetails) (\s :: HistoryEvent
s@HistoryEvent' {} Maybe LambdaFunctionScheduleFailedEventDetails
a -> HistoryEvent
s {$sel:lambdaFunctionScheduleFailedEventDetails:HistoryEvent' :: Maybe LambdaFunctionScheduleFailedEventDetails
lambdaFunctionScheduleFailedEventDetails = Maybe LambdaFunctionScheduleFailedEventDetails
a} :: HistoryEvent)

-- | Undocumented member.
historyEvent_stateEnteredEventDetails :: Lens.Lens' HistoryEvent (Prelude.Maybe StateEnteredEventDetails)
historyEvent_stateEnteredEventDetails :: (Maybe StateEnteredEventDetails
 -> f (Maybe StateEnteredEventDetails))
-> HistoryEvent -> f HistoryEvent
historyEvent_stateEnteredEventDetails = (HistoryEvent -> Maybe StateEnteredEventDetails)
-> (HistoryEvent -> Maybe StateEnteredEventDetails -> HistoryEvent)
-> Lens
     HistoryEvent
     HistoryEvent
     (Maybe StateEnteredEventDetails)
     (Maybe StateEnteredEventDetails)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\HistoryEvent' {Maybe StateEnteredEventDetails
stateEnteredEventDetails :: Maybe StateEnteredEventDetails
$sel:stateEnteredEventDetails:HistoryEvent' :: HistoryEvent -> Maybe StateEnteredEventDetails
stateEnteredEventDetails} -> Maybe StateEnteredEventDetails
stateEnteredEventDetails) (\s :: HistoryEvent
s@HistoryEvent' {} Maybe StateEnteredEventDetails
a -> HistoryEvent
s {$sel:stateEnteredEventDetails:HistoryEvent' :: Maybe StateEnteredEventDetails
stateEnteredEventDetails = Maybe StateEnteredEventDetails
a} :: HistoryEvent)

-- | The id of the previous event.
historyEvent_previousEventId :: Lens.Lens' HistoryEvent (Prelude.Maybe Prelude.Integer)
historyEvent_previousEventId :: (Maybe Integer -> f (Maybe Integer))
-> HistoryEvent -> f HistoryEvent
historyEvent_previousEventId = (HistoryEvent -> Maybe Integer)
-> (HistoryEvent -> Maybe Integer -> HistoryEvent)
-> Lens HistoryEvent HistoryEvent (Maybe Integer) (Maybe Integer)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\HistoryEvent' {Maybe Integer
previousEventId :: Maybe Integer
$sel:previousEventId:HistoryEvent' :: HistoryEvent -> Maybe Integer
previousEventId} -> Maybe Integer
previousEventId) (\s :: HistoryEvent
s@HistoryEvent' {} Maybe Integer
a -> HistoryEvent
s {$sel:previousEventId:HistoryEvent' :: Maybe Integer
previousEventId = Maybe Integer
a} :: HistoryEvent)

-- | Undocumented member.
historyEvent_activityFailedEventDetails :: Lens.Lens' HistoryEvent (Prelude.Maybe ActivityFailedEventDetails)
historyEvent_activityFailedEventDetails :: (Maybe ActivityFailedEventDetails
 -> f (Maybe ActivityFailedEventDetails))
-> HistoryEvent -> f HistoryEvent
historyEvent_activityFailedEventDetails = (HistoryEvent -> Maybe ActivityFailedEventDetails)
-> (HistoryEvent
    -> Maybe ActivityFailedEventDetails -> HistoryEvent)
-> Lens
     HistoryEvent
     HistoryEvent
     (Maybe ActivityFailedEventDetails)
     (Maybe ActivityFailedEventDetails)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\HistoryEvent' {Maybe ActivityFailedEventDetails
activityFailedEventDetails :: Maybe ActivityFailedEventDetails
$sel:activityFailedEventDetails:HistoryEvent' :: HistoryEvent -> Maybe ActivityFailedEventDetails
activityFailedEventDetails} -> Maybe ActivityFailedEventDetails
activityFailedEventDetails) (\s :: HistoryEvent
s@HistoryEvent' {} Maybe ActivityFailedEventDetails
a -> HistoryEvent
s {$sel:activityFailedEventDetails:HistoryEvent' :: Maybe ActivityFailedEventDetails
activityFailedEventDetails = Maybe ActivityFailedEventDetails
a} :: HistoryEvent)

-- | Contains details about the failure of a task.
historyEvent_taskFailedEventDetails :: Lens.Lens' HistoryEvent (Prelude.Maybe TaskFailedEventDetails)
historyEvent_taskFailedEventDetails :: (Maybe TaskFailedEventDetails -> f (Maybe TaskFailedEventDetails))
-> HistoryEvent -> f HistoryEvent
historyEvent_taskFailedEventDetails = (HistoryEvent -> Maybe TaskFailedEventDetails)
-> (HistoryEvent -> Maybe TaskFailedEventDetails -> HistoryEvent)
-> Lens
     HistoryEvent
     HistoryEvent
     (Maybe TaskFailedEventDetails)
     (Maybe TaskFailedEventDetails)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\HistoryEvent' {Maybe TaskFailedEventDetails
taskFailedEventDetails :: Maybe TaskFailedEventDetails
$sel:taskFailedEventDetails:HistoryEvent' :: HistoryEvent -> Maybe TaskFailedEventDetails
taskFailedEventDetails} -> Maybe TaskFailedEventDetails
taskFailedEventDetails) (\s :: HistoryEvent
s@HistoryEvent' {} Maybe TaskFailedEventDetails
a -> HistoryEvent
s {$sel:taskFailedEventDetails:HistoryEvent' :: Maybe TaskFailedEventDetails
taskFailedEventDetails = Maybe TaskFailedEventDetails
a} :: HistoryEvent)

-- | Undocumented member.
historyEvent_lambdaFunctionFailedEventDetails :: Lens.Lens' HistoryEvent (Prelude.Maybe LambdaFunctionFailedEventDetails)
historyEvent_lambdaFunctionFailedEventDetails :: (Maybe LambdaFunctionFailedEventDetails
 -> f (Maybe LambdaFunctionFailedEventDetails))
-> HistoryEvent -> f HistoryEvent
historyEvent_lambdaFunctionFailedEventDetails = (HistoryEvent -> Maybe LambdaFunctionFailedEventDetails)
-> (HistoryEvent
    -> Maybe LambdaFunctionFailedEventDetails -> HistoryEvent)
-> Lens
     HistoryEvent
     HistoryEvent
     (Maybe LambdaFunctionFailedEventDetails)
     (Maybe LambdaFunctionFailedEventDetails)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\HistoryEvent' {Maybe LambdaFunctionFailedEventDetails
lambdaFunctionFailedEventDetails :: Maybe LambdaFunctionFailedEventDetails
$sel:lambdaFunctionFailedEventDetails:HistoryEvent' :: HistoryEvent -> Maybe LambdaFunctionFailedEventDetails
lambdaFunctionFailedEventDetails} -> Maybe LambdaFunctionFailedEventDetails
lambdaFunctionFailedEventDetails) (\s :: HistoryEvent
s@HistoryEvent' {} Maybe LambdaFunctionFailedEventDetails
a -> HistoryEvent
s {$sel:lambdaFunctionFailedEventDetails:HistoryEvent' :: Maybe LambdaFunctionFailedEventDetails
lambdaFunctionFailedEventDetails = Maybe LambdaFunctionFailedEventDetails
a} :: HistoryEvent)

-- | Undocumented member.
historyEvent_executionTimedOutEventDetails :: Lens.Lens' HistoryEvent (Prelude.Maybe ExecutionTimedOutEventDetails)
historyEvent_executionTimedOutEventDetails :: (Maybe ExecutionTimedOutEventDetails
 -> f (Maybe ExecutionTimedOutEventDetails))
-> HistoryEvent -> f HistoryEvent
historyEvent_executionTimedOutEventDetails = (HistoryEvent -> Maybe ExecutionTimedOutEventDetails)
-> (HistoryEvent
    -> Maybe ExecutionTimedOutEventDetails -> HistoryEvent)
-> Lens
     HistoryEvent
     HistoryEvent
     (Maybe ExecutionTimedOutEventDetails)
     (Maybe ExecutionTimedOutEventDetails)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\HistoryEvent' {Maybe ExecutionTimedOutEventDetails
executionTimedOutEventDetails :: Maybe ExecutionTimedOutEventDetails
$sel:executionTimedOutEventDetails:HistoryEvent' :: HistoryEvent -> Maybe ExecutionTimedOutEventDetails
executionTimedOutEventDetails} -> Maybe ExecutionTimedOutEventDetails
executionTimedOutEventDetails) (\s :: HistoryEvent
s@HistoryEvent' {} Maybe ExecutionTimedOutEventDetails
a -> HistoryEvent
s {$sel:executionTimedOutEventDetails:HistoryEvent' :: Maybe ExecutionTimedOutEventDetails
executionTimedOutEventDetails = Maybe ExecutionTimedOutEventDetails
a} :: HistoryEvent)

-- | Contains details about an iteration of a Map state that failed.
historyEvent_mapIterationFailedEventDetails :: Lens.Lens' HistoryEvent (Prelude.Maybe MapIterationEventDetails)
historyEvent_mapIterationFailedEventDetails :: (Maybe MapIterationEventDetails
 -> f (Maybe MapIterationEventDetails))
-> HistoryEvent -> f HistoryEvent
historyEvent_mapIterationFailedEventDetails = (HistoryEvent -> Maybe MapIterationEventDetails)
-> (HistoryEvent -> Maybe MapIterationEventDetails -> HistoryEvent)
-> Lens
     HistoryEvent
     HistoryEvent
     (Maybe MapIterationEventDetails)
     (Maybe MapIterationEventDetails)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\HistoryEvent' {Maybe MapIterationEventDetails
mapIterationFailedEventDetails :: Maybe MapIterationEventDetails
$sel:mapIterationFailedEventDetails:HistoryEvent' :: HistoryEvent -> Maybe MapIterationEventDetails
mapIterationFailedEventDetails} -> Maybe MapIterationEventDetails
mapIterationFailedEventDetails) (\s :: HistoryEvent
s@HistoryEvent' {} Maybe MapIterationEventDetails
a -> HistoryEvent
s {$sel:mapIterationFailedEventDetails:HistoryEvent' :: Maybe MapIterationEventDetails
mapIterationFailedEventDetails = Maybe MapIterationEventDetails
a} :: HistoryEvent)

-- | The date and time the event occurred.
historyEvent_timestamp :: Lens.Lens' HistoryEvent Prelude.UTCTime
historyEvent_timestamp :: (UTCTime -> f UTCTime) -> HistoryEvent -> f HistoryEvent
historyEvent_timestamp = (HistoryEvent -> POSIX)
-> (HistoryEvent -> POSIX -> HistoryEvent)
-> Lens HistoryEvent HistoryEvent POSIX POSIX
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\HistoryEvent' {POSIX
timestamp :: POSIX
$sel:timestamp:HistoryEvent' :: HistoryEvent -> POSIX
timestamp} -> POSIX
timestamp) (\s :: HistoryEvent
s@HistoryEvent' {} POSIX
a -> HistoryEvent
s {$sel:timestamp:HistoryEvent' :: POSIX
timestamp = POSIX
a} :: HistoryEvent) ((POSIX -> f POSIX) -> HistoryEvent -> f HistoryEvent)
-> ((UTCTime -> f UTCTime) -> POSIX -> f POSIX)
-> (UTCTime -> f UTCTime)
-> HistoryEvent
-> f HistoryEvent
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. (UTCTime -> f UTCTime) -> POSIX -> f POSIX
forall (a :: Format). Iso' (Time a) UTCTime
Core._Time

-- | The type of the event.
historyEvent_type :: Lens.Lens' HistoryEvent HistoryEventType
historyEvent_type :: (HistoryEventType -> f HistoryEventType)
-> HistoryEvent -> f HistoryEvent
historyEvent_type = (HistoryEvent -> HistoryEventType)
-> (HistoryEvent -> HistoryEventType -> HistoryEvent)
-> Lens HistoryEvent HistoryEvent HistoryEventType HistoryEventType
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\HistoryEvent' {HistoryEventType
type' :: HistoryEventType
$sel:type':HistoryEvent' :: HistoryEvent -> HistoryEventType
type'} -> HistoryEventType
type') (\s :: HistoryEvent
s@HistoryEvent' {} HistoryEventType
a -> HistoryEvent
s {$sel:type':HistoryEvent' :: HistoryEventType
type' = HistoryEventType
a} :: HistoryEvent)

-- | The id of the event. Events are numbered sequentially, starting at one.
historyEvent_id :: Lens.Lens' HistoryEvent Prelude.Integer
historyEvent_id :: (Integer -> f Integer) -> HistoryEvent -> f HistoryEvent
historyEvent_id = (HistoryEvent -> Integer)
-> (HistoryEvent -> Integer -> HistoryEvent)
-> Lens HistoryEvent HistoryEvent Integer Integer
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\HistoryEvent' {Integer
id :: Integer
$sel:id:HistoryEvent' :: HistoryEvent -> Integer
id} -> Integer
id) (\s :: HistoryEvent
s@HistoryEvent' {} Integer
a -> HistoryEvent
s {$sel:id:HistoryEvent' :: Integer
id = Integer
a} :: HistoryEvent)

instance Core.FromJSON HistoryEvent where
  parseJSON :: Value -> Parser HistoryEvent
parseJSON =
    String
-> (Object -> Parser HistoryEvent) -> Value -> Parser HistoryEvent
forall a. String -> (Object -> Parser a) -> Value -> Parser a
Core.withObject
      String
"HistoryEvent"
      ( \Object
x ->
          Maybe MapStateStartedEventDetails
-> Maybe TaskSubmitFailedEventDetails
-> Maybe TaskStartedEventDetails
-> Maybe ActivityStartedEventDetails
-> Maybe TaskSubmittedEventDetails
-> Maybe LambdaFunctionStartFailedEventDetails
-> Maybe TaskStartFailedEventDetails
-> Maybe StateExitedEventDetails
-> Maybe LambdaFunctionSucceededEventDetails
-> Maybe TaskSucceededEventDetails
-> Maybe ActivitySucceededEventDetails
-> Maybe MapIterationEventDetails
-> Maybe MapIterationEventDetails
-> Maybe MapIterationEventDetails
-> Maybe LambdaFunctionTimedOutEventDetails
-> Maybe TaskTimedOutEventDetails
-> Maybe ActivityTimedOutEventDetails
-> Maybe ExecutionFailedEventDetails
-> Maybe ExecutionAbortedEventDetails
-> Maybe ExecutionSucceededEventDetails
-> Maybe LambdaFunctionScheduledEventDetails
-> Maybe TaskScheduledEventDetails
-> Maybe ActivityScheduledEventDetails
-> Maybe ExecutionStartedEventDetails
-> Maybe ActivityScheduleFailedEventDetails
-> Maybe LambdaFunctionScheduleFailedEventDetails
-> Maybe StateEnteredEventDetails
-> Maybe Integer
-> Maybe ActivityFailedEventDetails
-> Maybe TaskFailedEventDetails
-> Maybe LambdaFunctionFailedEventDetails
-> Maybe ExecutionTimedOutEventDetails
-> Maybe MapIterationEventDetails
-> POSIX
-> HistoryEventType
-> Integer
-> HistoryEvent
HistoryEvent'
            (Maybe MapStateStartedEventDetails
 -> Maybe TaskSubmitFailedEventDetails
 -> Maybe TaskStartedEventDetails
 -> Maybe ActivityStartedEventDetails
 -> Maybe TaskSubmittedEventDetails
 -> Maybe LambdaFunctionStartFailedEventDetails
 -> Maybe TaskStartFailedEventDetails
 -> Maybe StateExitedEventDetails
 -> Maybe LambdaFunctionSucceededEventDetails
 -> Maybe TaskSucceededEventDetails
 -> Maybe ActivitySucceededEventDetails
 -> Maybe MapIterationEventDetails
 -> Maybe MapIterationEventDetails
 -> Maybe MapIterationEventDetails
 -> Maybe LambdaFunctionTimedOutEventDetails
 -> Maybe TaskTimedOutEventDetails
 -> Maybe ActivityTimedOutEventDetails
 -> Maybe ExecutionFailedEventDetails
 -> Maybe ExecutionAbortedEventDetails
 -> Maybe ExecutionSucceededEventDetails
 -> Maybe LambdaFunctionScheduledEventDetails
 -> Maybe TaskScheduledEventDetails
 -> Maybe ActivityScheduledEventDetails
 -> Maybe ExecutionStartedEventDetails
 -> Maybe ActivityScheduleFailedEventDetails
 -> Maybe LambdaFunctionScheduleFailedEventDetails
 -> Maybe StateEnteredEventDetails
 -> Maybe Integer
 -> Maybe ActivityFailedEventDetails
 -> Maybe TaskFailedEventDetails
 -> Maybe LambdaFunctionFailedEventDetails
 -> Maybe ExecutionTimedOutEventDetails
 -> Maybe MapIterationEventDetails
 -> POSIX
 -> HistoryEventType
 -> Integer
 -> HistoryEvent)
-> Parser (Maybe MapStateStartedEventDetails)
-> Parser
     (Maybe TaskSubmitFailedEventDetails
      -> Maybe TaskStartedEventDetails
      -> Maybe ActivityStartedEventDetails
      -> Maybe TaskSubmittedEventDetails
      -> Maybe LambdaFunctionStartFailedEventDetails
      -> Maybe TaskStartFailedEventDetails
      -> Maybe StateExitedEventDetails
      -> Maybe LambdaFunctionSucceededEventDetails
      -> Maybe TaskSucceededEventDetails
      -> Maybe ActivitySucceededEventDetails
      -> Maybe MapIterationEventDetails
      -> Maybe MapIterationEventDetails
      -> Maybe MapIterationEventDetails
      -> Maybe LambdaFunctionTimedOutEventDetails
      -> Maybe TaskTimedOutEventDetails
      -> Maybe ActivityTimedOutEventDetails
      -> Maybe ExecutionFailedEventDetails
      -> Maybe ExecutionAbortedEventDetails
      -> Maybe ExecutionSucceededEventDetails
      -> Maybe LambdaFunctionScheduledEventDetails
      -> Maybe TaskScheduledEventDetails
      -> Maybe ActivityScheduledEventDetails
      -> Maybe ExecutionStartedEventDetails
      -> Maybe ActivityScheduleFailedEventDetails
      -> Maybe LambdaFunctionScheduleFailedEventDetails
      -> Maybe StateEnteredEventDetails
      -> Maybe Integer
      -> Maybe ActivityFailedEventDetails
      -> Maybe TaskFailedEventDetails
      -> Maybe LambdaFunctionFailedEventDetails
      -> Maybe ExecutionTimedOutEventDetails
      -> Maybe MapIterationEventDetails
      -> POSIX
      -> HistoryEventType
      -> Integer
      -> HistoryEvent)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> (Object
x Object -> Text -> Parser (Maybe MapStateStartedEventDetails)
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"mapStateStartedEventDetails")
            Parser
  (Maybe TaskSubmitFailedEventDetails
   -> Maybe TaskStartedEventDetails
   -> Maybe ActivityStartedEventDetails
   -> Maybe TaskSubmittedEventDetails
   -> Maybe LambdaFunctionStartFailedEventDetails
   -> Maybe TaskStartFailedEventDetails
   -> Maybe StateExitedEventDetails
   -> Maybe LambdaFunctionSucceededEventDetails
   -> Maybe TaskSucceededEventDetails
   -> Maybe ActivitySucceededEventDetails
   -> Maybe MapIterationEventDetails
   -> Maybe MapIterationEventDetails
   -> Maybe MapIterationEventDetails
   -> Maybe LambdaFunctionTimedOutEventDetails
   -> Maybe TaskTimedOutEventDetails
   -> Maybe ActivityTimedOutEventDetails
   -> Maybe ExecutionFailedEventDetails
   -> Maybe ExecutionAbortedEventDetails
   -> Maybe ExecutionSucceededEventDetails
   -> Maybe LambdaFunctionScheduledEventDetails
   -> Maybe TaskScheduledEventDetails
   -> Maybe ActivityScheduledEventDetails
   -> Maybe ExecutionStartedEventDetails
   -> Maybe ActivityScheduleFailedEventDetails
   -> Maybe LambdaFunctionScheduleFailedEventDetails
   -> Maybe StateEnteredEventDetails
   -> Maybe Integer
   -> Maybe ActivityFailedEventDetails
   -> Maybe TaskFailedEventDetails
   -> Maybe LambdaFunctionFailedEventDetails
   -> Maybe ExecutionTimedOutEventDetails
   -> Maybe MapIterationEventDetails
   -> POSIX
   -> HistoryEventType
   -> Integer
   -> HistoryEvent)
-> Parser (Maybe TaskSubmitFailedEventDetails)
-> Parser
     (Maybe TaskStartedEventDetails
      -> Maybe ActivityStartedEventDetails
      -> Maybe TaskSubmittedEventDetails
      -> Maybe LambdaFunctionStartFailedEventDetails
      -> Maybe TaskStartFailedEventDetails
      -> Maybe StateExitedEventDetails
      -> Maybe LambdaFunctionSucceededEventDetails
      -> Maybe TaskSucceededEventDetails
      -> Maybe ActivitySucceededEventDetails
      -> Maybe MapIterationEventDetails
      -> Maybe MapIterationEventDetails
      -> Maybe MapIterationEventDetails
      -> Maybe LambdaFunctionTimedOutEventDetails
      -> Maybe TaskTimedOutEventDetails
      -> Maybe ActivityTimedOutEventDetails
      -> Maybe ExecutionFailedEventDetails
      -> Maybe ExecutionAbortedEventDetails
      -> Maybe ExecutionSucceededEventDetails
      -> Maybe LambdaFunctionScheduledEventDetails
      -> Maybe TaskScheduledEventDetails
      -> Maybe ActivityScheduledEventDetails
      -> Maybe ExecutionStartedEventDetails
      -> Maybe ActivityScheduleFailedEventDetails
      -> Maybe LambdaFunctionScheduleFailedEventDetails
      -> Maybe StateEnteredEventDetails
      -> Maybe Integer
      -> Maybe ActivityFailedEventDetails
      -> Maybe TaskFailedEventDetails
      -> Maybe LambdaFunctionFailedEventDetails
      -> Maybe ExecutionTimedOutEventDetails
      -> Maybe MapIterationEventDetails
      -> POSIX
      -> HistoryEventType
      -> Integer
      -> HistoryEvent)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Parser (Maybe TaskSubmitFailedEventDetails)
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"taskSubmitFailedEventDetails")
            Parser
  (Maybe TaskStartedEventDetails
   -> Maybe ActivityStartedEventDetails
   -> Maybe TaskSubmittedEventDetails
   -> Maybe LambdaFunctionStartFailedEventDetails
   -> Maybe TaskStartFailedEventDetails
   -> Maybe StateExitedEventDetails
   -> Maybe LambdaFunctionSucceededEventDetails
   -> Maybe TaskSucceededEventDetails
   -> Maybe ActivitySucceededEventDetails
   -> Maybe MapIterationEventDetails
   -> Maybe MapIterationEventDetails
   -> Maybe MapIterationEventDetails
   -> Maybe LambdaFunctionTimedOutEventDetails
   -> Maybe TaskTimedOutEventDetails
   -> Maybe ActivityTimedOutEventDetails
   -> Maybe ExecutionFailedEventDetails
   -> Maybe ExecutionAbortedEventDetails
   -> Maybe ExecutionSucceededEventDetails
   -> Maybe LambdaFunctionScheduledEventDetails
   -> Maybe TaskScheduledEventDetails
   -> Maybe ActivityScheduledEventDetails
   -> Maybe ExecutionStartedEventDetails
   -> Maybe ActivityScheduleFailedEventDetails
   -> Maybe LambdaFunctionScheduleFailedEventDetails
   -> Maybe StateEnteredEventDetails
   -> Maybe Integer
   -> Maybe ActivityFailedEventDetails
   -> Maybe TaskFailedEventDetails
   -> Maybe LambdaFunctionFailedEventDetails
   -> Maybe ExecutionTimedOutEventDetails
   -> Maybe MapIterationEventDetails
   -> POSIX
   -> HistoryEventType
   -> Integer
   -> HistoryEvent)
-> Parser (Maybe TaskStartedEventDetails)
-> Parser
     (Maybe ActivityStartedEventDetails
      -> Maybe TaskSubmittedEventDetails
      -> Maybe LambdaFunctionStartFailedEventDetails
      -> Maybe TaskStartFailedEventDetails
      -> Maybe StateExitedEventDetails
      -> Maybe LambdaFunctionSucceededEventDetails
      -> Maybe TaskSucceededEventDetails
      -> Maybe ActivitySucceededEventDetails
      -> Maybe MapIterationEventDetails
      -> Maybe MapIterationEventDetails
      -> Maybe MapIterationEventDetails
      -> Maybe LambdaFunctionTimedOutEventDetails
      -> Maybe TaskTimedOutEventDetails
      -> Maybe ActivityTimedOutEventDetails
      -> Maybe ExecutionFailedEventDetails
      -> Maybe ExecutionAbortedEventDetails
      -> Maybe ExecutionSucceededEventDetails
      -> Maybe LambdaFunctionScheduledEventDetails
      -> Maybe TaskScheduledEventDetails
      -> Maybe ActivityScheduledEventDetails
      -> Maybe ExecutionStartedEventDetails
      -> Maybe ActivityScheduleFailedEventDetails
      -> Maybe LambdaFunctionScheduleFailedEventDetails
      -> Maybe StateEnteredEventDetails
      -> Maybe Integer
      -> Maybe ActivityFailedEventDetails
      -> Maybe TaskFailedEventDetails
      -> Maybe LambdaFunctionFailedEventDetails
      -> Maybe ExecutionTimedOutEventDetails
      -> Maybe MapIterationEventDetails
      -> POSIX
      -> HistoryEventType
      -> Integer
      -> HistoryEvent)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Parser (Maybe TaskStartedEventDetails)
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"taskStartedEventDetails")
            Parser
  (Maybe ActivityStartedEventDetails
   -> Maybe TaskSubmittedEventDetails
   -> Maybe LambdaFunctionStartFailedEventDetails
   -> Maybe TaskStartFailedEventDetails
   -> Maybe StateExitedEventDetails
   -> Maybe LambdaFunctionSucceededEventDetails
   -> Maybe TaskSucceededEventDetails
   -> Maybe ActivitySucceededEventDetails
   -> Maybe MapIterationEventDetails
   -> Maybe MapIterationEventDetails
   -> Maybe MapIterationEventDetails
   -> Maybe LambdaFunctionTimedOutEventDetails
   -> Maybe TaskTimedOutEventDetails
   -> Maybe ActivityTimedOutEventDetails
   -> Maybe ExecutionFailedEventDetails
   -> Maybe ExecutionAbortedEventDetails
   -> Maybe ExecutionSucceededEventDetails
   -> Maybe LambdaFunctionScheduledEventDetails
   -> Maybe TaskScheduledEventDetails
   -> Maybe ActivityScheduledEventDetails
   -> Maybe ExecutionStartedEventDetails
   -> Maybe ActivityScheduleFailedEventDetails
   -> Maybe LambdaFunctionScheduleFailedEventDetails
   -> Maybe StateEnteredEventDetails
   -> Maybe Integer
   -> Maybe ActivityFailedEventDetails
   -> Maybe TaskFailedEventDetails
   -> Maybe LambdaFunctionFailedEventDetails
   -> Maybe ExecutionTimedOutEventDetails
   -> Maybe MapIterationEventDetails
   -> POSIX
   -> HistoryEventType
   -> Integer
   -> HistoryEvent)
-> Parser (Maybe ActivityStartedEventDetails)
-> Parser
     (Maybe TaskSubmittedEventDetails
      -> Maybe LambdaFunctionStartFailedEventDetails
      -> Maybe TaskStartFailedEventDetails
      -> Maybe StateExitedEventDetails
      -> Maybe LambdaFunctionSucceededEventDetails
      -> Maybe TaskSucceededEventDetails
      -> Maybe ActivitySucceededEventDetails
      -> Maybe MapIterationEventDetails
      -> Maybe MapIterationEventDetails
      -> Maybe MapIterationEventDetails
      -> Maybe LambdaFunctionTimedOutEventDetails
      -> Maybe TaskTimedOutEventDetails
      -> Maybe ActivityTimedOutEventDetails
      -> Maybe ExecutionFailedEventDetails
      -> Maybe ExecutionAbortedEventDetails
      -> Maybe ExecutionSucceededEventDetails
      -> Maybe LambdaFunctionScheduledEventDetails
      -> Maybe TaskScheduledEventDetails
      -> Maybe ActivityScheduledEventDetails
      -> Maybe ExecutionStartedEventDetails
      -> Maybe ActivityScheduleFailedEventDetails
      -> Maybe LambdaFunctionScheduleFailedEventDetails
      -> Maybe StateEnteredEventDetails
      -> Maybe Integer
      -> Maybe ActivityFailedEventDetails
      -> Maybe TaskFailedEventDetails
      -> Maybe LambdaFunctionFailedEventDetails
      -> Maybe ExecutionTimedOutEventDetails
      -> Maybe MapIterationEventDetails
      -> POSIX
      -> HistoryEventType
      -> Integer
      -> HistoryEvent)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Parser (Maybe ActivityStartedEventDetails)
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"activityStartedEventDetails")
            Parser
  (Maybe TaskSubmittedEventDetails
   -> Maybe LambdaFunctionStartFailedEventDetails
   -> Maybe TaskStartFailedEventDetails
   -> Maybe StateExitedEventDetails
   -> Maybe LambdaFunctionSucceededEventDetails
   -> Maybe TaskSucceededEventDetails
   -> Maybe ActivitySucceededEventDetails
   -> Maybe MapIterationEventDetails
   -> Maybe MapIterationEventDetails
   -> Maybe MapIterationEventDetails
   -> Maybe LambdaFunctionTimedOutEventDetails
   -> Maybe TaskTimedOutEventDetails
   -> Maybe ActivityTimedOutEventDetails
   -> Maybe ExecutionFailedEventDetails
   -> Maybe ExecutionAbortedEventDetails
   -> Maybe ExecutionSucceededEventDetails
   -> Maybe LambdaFunctionScheduledEventDetails
   -> Maybe TaskScheduledEventDetails
   -> Maybe ActivityScheduledEventDetails
   -> Maybe ExecutionStartedEventDetails
   -> Maybe ActivityScheduleFailedEventDetails
   -> Maybe LambdaFunctionScheduleFailedEventDetails
   -> Maybe StateEnteredEventDetails
   -> Maybe Integer
   -> Maybe ActivityFailedEventDetails
   -> Maybe TaskFailedEventDetails
   -> Maybe LambdaFunctionFailedEventDetails
   -> Maybe ExecutionTimedOutEventDetails
   -> Maybe MapIterationEventDetails
   -> POSIX
   -> HistoryEventType
   -> Integer
   -> HistoryEvent)
-> Parser (Maybe TaskSubmittedEventDetails)
-> Parser
     (Maybe LambdaFunctionStartFailedEventDetails
      -> Maybe TaskStartFailedEventDetails
      -> Maybe StateExitedEventDetails
      -> Maybe LambdaFunctionSucceededEventDetails
      -> Maybe TaskSucceededEventDetails
      -> Maybe ActivitySucceededEventDetails
      -> Maybe MapIterationEventDetails
      -> Maybe MapIterationEventDetails
      -> Maybe MapIterationEventDetails
      -> Maybe LambdaFunctionTimedOutEventDetails
      -> Maybe TaskTimedOutEventDetails
      -> Maybe ActivityTimedOutEventDetails
      -> Maybe ExecutionFailedEventDetails
      -> Maybe ExecutionAbortedEventDetails
      -> Maybe ExecutionSucceededEventDetails
      -> Maybe LambdaFunctionScheduledEventDetails
      -> Maybe TaskScheduledEventDetails
      -> Maybe ActivityScheduledEventDetails
      -> Maybe ExecutionStartedEventDetails
      -> Maybe ActivityScheduleFailedEventDetails
      -> Maybe LambdaFunctionScheduleFailedEventDetails
      -> Maybe StateEnteredEventDetails
      -> Maybe Integer
      -> Maybe ActivityFailedEventDetails
      -> Maybe TaskFailedEventDetails
      -> Maybe LambdaFunctionFailedEventDetails
      -> Maybe ExecutionTimedOutEventDetails
      -> Maybe MapIterationEventDetails
      -> POSIX
      -> HistoryEventType
      -> Integer
      -> HistoryEvent)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Parser (Maybe TaskSubmittedEventDetails)
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"taskSubmittedEventDetails")
            Parser
  (Maybe LambdaFunctionStartFailedEventDetails
   -> Maybe TaskStartFailedEventDetails
   -> Maybe StateExitedEventDetails
   -> Maybe LambdaFunctionSucceededEventDetails
   -> Maybe TaskSucceededEventDetails
   -> Maybe ActivitySucceededEventDetails
   -> Maybe MapIterationEventDetails
   -> Maybe MapIterationEventDetails
   -> Maybe MapIterationEventDetails
   -> Maybe LambdaFunctionTimedOutEventDetails
   -> Maybe TaskTimedOutEventDetails
   -> Maybe ActivityTimedOutEventDetails
   -> Maybe ExecutionFailedEventDetails
   -> Maybe ExecutionAbortedEventDetails
   -> Maybe ExecutionSucceededEventDetails
   -> Maybe LambdaFunctionScheduledEventDetails
   -> Maybe TaskScheduledEventDetails
   -> Maybe ActivityScheduledEventDetails
   -> Maybe ExecutionStartedEventDetails
   -> Maybe ActivityScheduleFailedEventDetails
   -> Maybe LambdaFunctionScheduleFailedEventDetails
   -> Maybe StateEnteredEventDetails
   -> Maybe Integer
   -> Maybe ActivityFailedEventDetails
   -> Maybe TaskFailedEventDetails
   -> Maybe LambdaFunctionFailedEventDetails
   -> Maybe ExecutionTimedOutEventDetails
   -> Maybe MapIterationEventDetails
   -> POSIX
   -> HistoryEventType
   -> Integer
   -> HistoryEvent)
-> Parser (Maybe LambdaFunctionStartFailedEventDetails)
-> Parser
     (Maybe TaskStartFailedEventDetails
      -> Maybe StateExitedEventDetails
      -> Maybe LambdaFunctionSucceededEventDetails
      -> Maybe TaskSucceededEventDetails
      -> Maybe ActivitySucceededEventDetails
      -> Maybe MapIterationEventDetails
      -> Maybe MapIterationEventDetails
      -> Maybe MapIterationEventDetails
      -> Maybe LambdaFunctionTimedOutEventDetails
      -> Maybe TaskTimedOutEventDetails
      -> Maybe ActivityTimedOutEventDetails
      -> Maybe ExecutionFailedEventDetails
      -> Maybe ExecutionAbortedEventDetails
      -> Maybe ExecutionSucceededEventDetails
      -> Maybe LambdaFunctionScheduledEventDetails
      -> Maybe TaskScheduledEventDetails
      -> Maybe ActivityScheduledEventDetails
      -> Maybe ExecutionStartedEventDetails
      -> Maybe ActivityScheduleFailedEventDetails
      -> Maybe LambdaFunctionScheduleFailedEventDetails
      -> Maybe StateEnteredEventDetails
      -> Maybe Integer
      -> Maybe ActivityFailedEventDetails
      -> Maybe TaskFailedEventDetails
      -> Maybe LambdaFunctionFailedEventDetails
      -> Maybe ExecutionTimedOutEventDetails
      -> Maybe MapIterationEventDetails
      -> POSIX
      -> HistoryEventType
      -> Integer
      -> HistoryEvent)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object
-> Text -> Parser (Maybe LambdaFunctionStartFailedEventDetails)
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"lambdaFunctionStartFailedEventDetails")
            Parser
  (Maybe TaskStartFailedEventDetails
   -> Maybe StateExitedEventDetails
   -> Maybe LambdaFunctionSucceededEventDetails
   -> Maybe TaskSucceededEventDetails
   -> Maybe ActivitySucceededEventDetails
   -> Maybe MapIterationEventDetails
   -> Maybe MapIterationEventDetails
   -> Maybe MapIterationEventDetails
   -> Maybe LambdaFunctionTimedOutEventDetails
   -> Maybe TaskTimedOutEventDetails
   -> Maybe ActivityTimedOutEventDetails
   -> Maybe ExecutionFailedEventDetails
   -> Maybe ExecutionAbortedEventDetails
   -> Maybe ExecutionSucceededEventDetails
   -> Maybe LambdaFunctionScheduledEventDetails
   -> Maybe TaskScheduledEventDetails
   -> Maybe ActivityScheduledEventDetails
   -> Maybe ExecutionStartedEventDetails
   -> Maybe ActivityScheduleFailedEventDetails
   -> Maybe LambdaFunctionScheduleFailedEventDetails
   -> Maybe StateEnteredEventDetails
   -> Maybe Integer
   -> Maybe ActivityFailedEventDetails
   -> Maybe TaskFailedEventDetails
   -> Maybe LambdaFunctionFailedEventDetails
   -> Maybe ExecutionTimedOutEventDetails
   -> Maybe MapIterationEventDetails
   -> POSIX
   -> HistoryEventType
   -> Integer
   -> HistoryEvent)
-> Parser (Maybe TaskStartFailedEventDetails)
-> Parser
     (Maybe StateExitedEventDetails
      -> Maybe LambdaFunctionSucceededEventDetails
      -> Maybe TaskSucceededEventDetails
      -> Maybe ActivitySucceededEventDetails
      -> Maybe MapIterationEventDetails
      -> Maybe MapIterationEventDetails
      -> Maybe MapIterationEventDetails
      -> Maybe LambdaFunctionTimedOutEventDetails
      -> Maybe TaskTimedOutEventDetails
      -> Maybe ActivityTimedOutEventDetails
      -> Maybe ExecutionFailedEventDetails
      -> Maybe ExecutionAbortedEventDetails
      -> Maybe ExecutionSucceededEventDetails
      -> Maybe LambdaFunctionScheduledEventDetails
      -> Maybe TaskScheduledEventDetails
      -> Maybe ActivityScheduledEventDetails
      -> Maybe ExecutionStartedEventDetails
      -> Maybe ActivityScheduleFailedEventDetails
      -> Maybe LambdaFunctionScheduleFailedEventDetails
      -> Maybe StateEnteredEventDetails
      -> Maybe Integer
      -> Maybe ActivityFailedEventDetails
      -> Maybe TaskFailedEventDetails
      -> Maybe LambdaFunctionFailedEventDetails
      -> Maybe ExecutionTimedOutEventDetails
      -> Maybe MapIterationEventDetails
      -> POSIX
      -> HistoryEventType
      -> Integer
      -> HistoryEvent)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Parser (Maybe TaskStartFailedEventDetails)
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"taskStartFailedEventDetails")
            Parser
  (Maybe StateExitedEventDetails
   -> Maybe LambdaFunctionSucceededEventDetails
   -> Maybe TaskSucceededEventDetails
   -> Maybe ActivitySucceededEventDetails
   -> Maybe MapIterationEventDetails
   -> Maybe MapIterationEventDetails
   -> Maybe MapIterationEventDetails
   -> Maybe LambdaFunctionTimedOutEventDetails
   -> Maybe TaskTimedOutEventDetails
   -> Maybe ActivityTimedOutEventDetails
   -> Maybe ExecutionFailedEventDetails
   -> Maybe ExecutionAbortedEventDetails
   -> Maybe ExecutionSucceededEventDetails
   -> Maybe LambdaFunctionScheduledEventDetails
   -> Maybe TaskScheduledEventDetails
   -> Maybe ActivityScheduledEventDetails
   -> Maybe ExecutionStartedEventDetails
   -> Maybe ActivityScheduleFailedEventDetails
   -> Maybe LambdaFunctionScheduleFailedEventDetails
   -> Maybe StateEnteredEventDetails
   -> Maybe Integer
   -> Maybe ActivityFailedEventDetails
   -> Maybe TaskFailedEventDetails
   -> Maybe LambdaFunctionFailedEventDetails
   -> Maybe ExecutionTimedOutEventDetails
   -> Maybe MapIterationEventDetails
   -> POSIX
   -> HistoryEventType
   -> Integer
   -> HistoryEvent)
-> Parser (Maybe StateExitedEventDetails)
-> Parser
     (Maybe LambdaFunctionSucceededEventDetails
      -> Maybe TaskSucceededEventDetails
      -> Maybe ActivitySucceededEventDetails
      -> Maybe MapIterationEventDetails
      -> Maybe MapIterationEventDetails
      -> Maybe MapIterationEventDetails
      -> Maybe LambdaFunctionTimedOutEventDetails
      -> Maybe TaskTimedOutEventDetails
      -> Maybe ActivityTimedOutEventDetails
      -> Maybe ExecutionFailedEventDetails
      -> Maybe ExecutionAbortedEventDetails
      -> Maybe ExecutionSucceededEventDetails
      -> Maybe LambdaFunctionScheduledEventDetails
      -> Maybe TaskScheduledEventDetails
      -> Maybe ActivityScheduledEventDetails
      -> Maybe ExecutionStartedEventDetails
      -> Maybe ActivityScheduleFailedEventDetails
      -> Maybe LambdaFunctionScheduleFailedEventDetails
      -> Maybe StateEnteredEventDetails
      -> Maybe Integer
      -> Maybe ActivityFailedEventDetails
      -> Maybe TaskFailedEventDetails
      -> Maybe LambdaFunctionFailedEventDetails
      -> Maybe ExecutionTimedOutEventDetails
      -> Maybe MapIterationEventDetails
      -> POSIX
      -> HistoryEventType
      -> Integer
      -> HistoryEvent)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Parser (Maybe StateExitedEventDetails)
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"stateExitedEventDetails")
            Parser
  (Maybe LambdaFunctionSucceededEventDetails
   -> Maybe TaskSucceededEventDetails
   -> Maybe ActivitySucceededEventDetails
   -> Maybe MapIterationEventDetails
   -> Maybe MapIterationEventDetails
   -> Maybe MapIterationEventDetails
   -> Maybe LambdaFunctionTimedOutEventDetails
   -> Maybe TaskTimedOutEventDetails
   -> Maybe ActivityTimedOutEventDetails
   -> Maybe ExecutionFailedEventDetails
   -> Maybe ExecutionAbortedEventDetails
   -> Maybe ExecutionSucceededEventDetails
   -> Maybe LambdaFunctionScheduledEventDetails
   -> Maybe TaskScheduledEventDetails
   -> Maybe ActivityScheduledEventDetails
   -> Maybe ExecutionStartedEventDetails
   -> Maybe ActivityScheduleFailedEventDetails
   -> Maybe LambdaFunctionScheduleFailedEventDetails
   -> Maybe StateEnteredEventDetails
   -> Maybe Integer
   -> Maybe ActivityFailedEventDetails
   -> Maybe TaskFailedEventDetails
   -> Maybe LambdaFunctionFailedEventDetails
   -> Maybe ExecutionTimedOutEventDetails
   -> Maybe MapIterationEventDetails
   -> POSIX
   -> HistoryEventType
   -> Integer
   -> HistoryEvent)
-> Parser (Maybe LambdaFunctionSucceededEventDetails)
-> Parser
     (Maybe TaskSucceededEventDetails
      -> Maybe ActivitySucceededEventDetails
      -> Maybe MapIterationEventDetails
      -> Maybe MapIterationEventDetails
      -> Maybe MapIterationEventDetails
      -> Maybe LambdaFunctionTimedOutEventDetails
      -> Maybe TaskTimedOutEventDetails
      -> Maybe ActivityTimedOutEventDetails
      -> Maybe ExecutionFailedEventDetails
      -> Maybe ExecutionAbortedEventDetails
      -> Maybe ExecutionSucceededEventDetails
      -> Maybe LambdaFunctionScheduledEventDetails
      -> Maybe TaskScheduledEventDetails
      -> Maybe ActivityScheduledEventDetails
      -> Maybe ExecutionStartedEventDetails
      -> Maybe ActivityScheduleFailedEventDetails
      -> Maybe LambdaFunctionScheduleFailedEventDetails
      -> Maybe StateEnteredEventDetails
      -> Maybe Integer
      -> Maybe ActivityFailedEventDetails
      -> Maybe TaskFailedEventDetails
      -> Maybe LambdaFunctionFailedEventDetails
      -> Maybe ExecutionTimedOutEventDetails
      -> Maybe MapIterationEventDetails
      -> POSIX
      -> HistoryEventType
      -> Integer
      -> HistoryEvent)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object
-> Text -> Parser (Maybe LambdaFunctionSucceededEventDetails)
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"lambdaFunctionSucceededEventDetails")
            Parser
  (Maybe TaskSucceededEventDetails
   -> Maybe ActivitySucceededEventDetails
   -> Maybe MapIterationEventDetails
   -> Maybe MapIterationEventDetails
   -> Maybe MapIterationEventDetails
   -> Maybe LambdaFunctionTimedOutEventDetails
   -> Maybe TaskTimedOutEventDetails
   -> Maybe ActivityTimedOutEventDetails
   -> Maybe ExecutionFailedEventDetails
   -> Maybe ExecutionAbortedEventDetails
   -> Maybe ExecutionSucceededEventDetails
   -> Maybe LambdaFunctionScheduledEventDetails
   -> Maybe TaskScheduledEventDetails
   -> Maybe ActivityScheduledEventDetails
   -> Maybe ExecutionStartedEventDetails
   -> Maybe ActivityScheduleFailedEventDetails
   -> Maybe LambdaFunctionScheduleFailedEventDetails
   -> Maybe StateEnteredEventDetails
   -> Maybe Integer
   -> Maybe ActivityFailedEventDetails
   -> Maybe TaskFailedEventDetails
   -> Maybe LambdaFunctionFailedEventDetails
   -> Maybe ExecutionTimedOutEventDetails
   -> Maybe MapIterationEventDetails
   -> POSIX
   -> HistoryEventType
   -> Integer
   -> HistoryEvent)
-> Parser (Maybe TaskSucceededEventDetails)
-> Parser
     (Maybe ActivitySucceededEventDetails
      -> Maybe MapIterationEventDetails
      -> Maybe MapIterationEventDetails
      -> Maybe MapIterationEventDetails
      -> Maybe LambdaFunctionTimedOutEventDetails
      -> Maybe TaskTimedOutEventDetails
      -> Maybe ActivityTimedOutEventDetails
      -> Maybe ExecutionFailedEventDetails
      -> Maybe ExecutionAbortedEventDetails
      -> Maybe ExecutionSucceededEventDetails
      -> Maybe LambdaFunctionScheduledEventDetails
      -> Maybe TaskScheduledEventDetails
      -> Maybe ActivityScheduledEventDetails
      -> Maybe ExecutionStartedEventDetails
      -> Maybe ActivityScheduleFailedEventDetails
      -> Maybe LambdaFunctionScheduleFailedEventDetails
      -> Maybe StateEnteredEventDetails
      -> Maybe Integer
      -> Maybe ActivityFailedEventDetails
      -> Maybe TaskFailedEventDetails
      -> Maybe LambdaFunctionFailedEventDetails
      -> Maybe ExecutionTimedOutEventDetails
      -> Maybe MapIterationEventDetails
      -> POSIX
      -> HistoryEventType
      -> Integer
      -> HistoryEvent)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Parser (Maybe TaskSucceededEventDetails)
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"taskSucceededEventDetails")
            Parser
  (Maybe ActivitySucceededEventDetails
   -> Maybe MapIterationEventDetails
   -> Maybe MapIterationEventDetails
   -> Maybe MapIterationEventDetails
   -> Maybe LambdaFunctionTimedOutEventDetails
   -> Maybe TaskTimedOutEventDetails
   -> Maybe ActivityTimedOutEventDetails
   -> Maybe ExecutionFailedEventDetails
   -> Maybe ExecutionAbortedEventDetails
   -> Maybe ExecutionSucceededEventDetails
   -> Maybe LambdaFunctionScheduledEventDetails
   -> Maybe TaskScheduledEventDetails
   -> Maybe ActivityScheduledEventDetails
   -> Maybe ExecutionStartedEventDetails
   -> Maybe ActivityScheduleFailedEventDetails
   -> Maybe LambdaFunctionScheduleFailedEventDetails
   -> Maybe StateEnteredEventDetails
   -> Maybe Integer
   -> Maybe ActivityFailedEventDetails
   -> Maybe TaskFailedEventDetails
   -> Maybe LambdaFunctionFailedEventDetails
   -> Maybe ExecutionTimedOutEventDetails
   -> Maybe MapIterationEventDetails
   -> POSIX
   -> HistoryEventType
   -> Integer
   -> HistoryEvent)
-> Parser (Maybe ActivitySucceededEventDetails)
-> Parser
     (Maybe MapIterationEventDetails
      -> Maybe MapIterationEventDetails
      -> Maybe MapIterationEventDetails
      -> Maybe LambdaFunctionTimedOutEventDetails
      -> Maybe TaskTimedOutEventDetails
      -> Maybe ActivityTimedOutEventDetails
      -> Maybe ExecutionFailedEventDetails
      -> Maybe ExecutionAbortedEventDetails
      -> Maybe ExecutionSucceededEventDetails
      -> Maybe LambdaFunctionScheduledEventDetails
      -> Maybe TaskScheduledEventDetails
      -> Maybe ActivityScheduledEventDetails
      -> Maybe ExecutionStartedEventDetails
      -> Maybe ActivityScheduleFailedEventDetails
      -> Maybe LambdaFunctionScheduleFailedEventDetails
      -> Maybe StateEnteredEventDetails
      -> Maybe Integer
      -> Maybe ActivityFailedEventDetails
      -> Maybe TaskFailedEventDetails
      -> Maybe LambdaFunctionFailedEventDetails
      -> Maybe ExecutionTimedOutEventDetails
      -> Maybe MapIterationEventDetails
      -> POSIX
      -> HistoryEventType
      -> Integer
      -> HistoryEvent)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Parser (Maybe ActivitySucceededEventDetails)
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"activitySucceededEventDetails")
            Parser
  (Maybe MapIterationEventDetails
   -> Maybe MapIterationEventDetails
   -> Maybe MapIterationEventDetails
   -> Maybe LambdaFunctionTimedOutEventDetails
   -> Maybe TaskTimedOutEventDetails
   -> Maybe ActivityTimedOutEventDetails
   -> Maybe ExecutionFailedEventDetails
   -> Maybe ExecutionAbortedEventDetails
   -> Maybe ExecutionSucceededEventDetails
   -> Maybe LambdaFunctionScheduledEventDetails
   -> Maybe TaskScheduledEventDetails
   -> Maybe ActivityScheduledEventDetails
   -> Maybe ExecutionStartedEventDetails
   -> Maybe ActivityScheduleFailedEventDetails
   -> Maybe LambdaFunctionScheduleFailedEventDetails
   -> Maybe StateEnteredEventDetails
   -> Maybe Integer
   -> Maybe ActivityFailedEventDetails
   -> Maybe TaskFailedEventDetails
   -> Maybe LambdaFunctionFailedEventDetails
   -> Maybe ExecutionTimedOutEventDetails
   -> Maybe MapIterationEventDetails
   -> POSIX
   -> HistoryEventType
   -> Integer
   -> HistoryEvent)
-> Parser (Maybe MapIterationEventDetails)
-> Parser
     (Maybe MapIterationEventDetails
      -> Maybe MapIterationEventDetails
      -> Maybe LambdaFunctionTimedOutEventDetails
      -> Maybe TaskTimedOutEventDetails
      -> Maybe ActivityTimedOutEventDetails
      -> Maybe ExecutionFailedEventDetails
      -> Maybe ExecutionAbortedEventDetails
      -> Maybe ExecutionSucceededEventDetails
      -> Maybe LambdaFunctionScheduledEventDetails
      -> Maybe TaskScheduledEventDetails
      -> Maybe ActivityScheduledEventDetails
      -> Maybe ExecutionStartedEventDetails
      -> Maybe ActivityScheduleFailedEventDetails
      -> Maybe LambdaFunctionScheduleFailedEventDetails
      -> Maybe StateEnteredEventDetails
      -> Maybe Integer
      -> Maybe ActivityFailedEventDetails
      -> Maybe TaskFailedEventDetails
      -> Maybe LambdaFunctionFailedEventDetails
      -> Maybe ExecutionTimedOutEventDetails
      -> Maybe MapIterationEventDetails
      -> POSIX
      -> HistoryEventType
      -> Integer
      -> HistoryEvent)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Parser (Maybe MapIterationEventDetails)
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"mapIterationAbortedEventDetails")
            Parser
  (Maybe MapIterationEventDetails
   -> Maybe MapIterationEventDetails
   -> Maybe LambdaFunctionTimedOutEventDetails
   -> Maybe TaskTimedOutEventDetails
   -> Maybe ActivityTimedOutEventDetails
   -> Maybe ExecutionFailedEventDetails
   -> Maybe ExecutionAbortedEventDetails
   -> Maybe ExecutionSucceededEventDetails
   -> Maybe LambdaFunctionScheduledEventDetails
   -> Maybe TaskScheduledEventDetails
   -> Maybe ActivityScheduledEventDetails
   -> Maybe ExecutionStartedEventDetails
   -> Maybe ActivityScheduleFailedEventDetails
   -> Maybe LambdaFunctionScheduleFailedEventDetails
   -> Maybe StateEnteredEventDetails
   -> Maybe Integer
   -> Maybe ActivityFailedEventDetails
   -> Maybe TaskFailedEventDetails
   -> Maybe LambdaFunctionFailedEventDetails
   -> Maybe ExecutionTimedOutEventDetails
   -> Maybe MapIterationEventDetails
   -> POSIX
   -> HistoryEventType
   -> Integer
   -> HistoryEvent)
-> Parser (Maybe MapIterationEventDetails)
-> Parser
     (Maybe MapIterationEventDetails
      -> Maybe LambdaFunctionTimedOutEventDetails
      -> Maybe TaskTimedOutEventDetails
      -> Maybe ActivityTimedOutEventDetails
      -> Maybe ExecutionFailedEventDetails
      -> Maybe ExecutionAbortedEventDetails
      -> Maybe ExecutionSucceededEventDetails
      -> Maybe LambdaFunctionScheduledEventDetails
      -> Maybe TaskScheduledEventDetails
      -> Maybe ActivityScheduledEventDetails
      -> Maybe ExecutionStartedEventDetails
      -> Maybe ActivityScheduleFailedEventDetails
      -> Maybe LambdaFunctionScheduleFailedEventDetails
      -> Maybe StateEnteredEventDetails
      -> Maybe Integer
      -> Maybe ActivityFailedEventDetails
      -> Maybe TaskFailedEventDetails
      -> Maybe LambdaFunctionFailedEventDetails
      -> Maybe ExecutionTimedOutEventDetails
      -> Maybe MapIterationEventDetails
      -> POSIX
      -> HistoryEventType
      -> Integer
      -> HistoryEvent)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Parser (Maybe MapIterationEventDetails)
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"mapIterationSucceededEventDetails")
            Parser
  (Maybe MapIterationEventDetails
   -> Maybe LambdaFunctionTimedOutEventDetails
   -> Maybe TaskTimedOutEventDetails
   -> Maybe ActivityTimedOutEventDetails
   -> Maybe ExecutionFailedEventDetails
   -> Maybe ExecutionAbortedEventDetails
   -> Maybe ExecutionSucceededEventDetails
   -> Maybe LambdaFunctionScheduledEventDetails
   -> Maybe TaskScheduledEventDetails
   -> Maybe ActivityScheduledEventDetails
   -> Maybe ExecutionStartedEventDetails
   -> Maybe ActivityScheduleFailedEventDetails
   -> Maybe LambdaFunctionScheduleFailedEventDetails
   -> Maybe StateEnteredEventDetails
   -> Maybe Integer
   -> Maybe ActivityFailedEventDetails
   -> Maybe TaskFailedEventDetails
   -> Maybe LambdaFunctionFailedEventDetails
   -> Maybe ExecutionTimedOutEventDetails
   -> Maybe MapIterationEventDetails
   -> POSIX
   -> HistoryEventType
   -> Integer
   -> HistoryEvent)
-> Parser (Maybe MapIterationEventDetails)
-> Parser
     (Maybe LambdaFunctionTimedOutEventDetails
      -> Maybe TaskTimedOutEventDetails
      -> Maybe ActivityTimedOutEventDetails
      -> Maybe ExecutionFailedEventDetails
      -> Maybe ExecutionAbortedEventDetails
      -> Maybe ExecutionSucceededEventDetails
      -> Maybe LambdaFunctionScheduledEventDetails
      -> Maybe TaskScheduledEventDetails
      -> Maybe ActivityScheduledEventDetails
      -> Maybe ExecutionStartedEventDetails
      -> Maybe ActivityScheduleFailedEventDetails
      -> Maybe LambdaFunctionScheduleFailedEventDetails
      -> Maybe StateEnteredEventDetails
      -> Maybe Integer
      -> Maybe ActivityFailedEventDetails
      -> Maybe TaskFailedEventDetails
      -> Maybe LambdaFunctionFailedEventDetails
      -> Maybe ExecutionTimedOutEventDetails
      -> Maybe MapIterationEventDetails
      -> POSIX
      -> HistoryEventType
      -> Integer
      -> HistoryEvent)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Parser (Maybe MapIterationEventDetails)
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"mapIterationStartedEventDetails")
            Parser
  (Maybe LambdaFunctionTimedOutEventDetails
   -> Maybe TaskTimedOutEventDetails
   -> Maybe ActivityTimedOutEventDetails
   -> Maybe ExecutionFailedEventDetails
   -> Maybe ExecutionAbortedEventDetails
   -> Maybe ExecutionSucceededEventDetails
   -> Maybe LambdaFunctionScheduledEventDetails
   -> Maybe TaskScheduledEventDetails
   -> Maybe ActivityScheduledEventDetails
   -> Maybe ExecutionStartedEventDetails
   -> Maybe ActivityScheduleFailedEventDetails
   -> Maybe LambdaFunctionScheduleFailedEventDetails
   -> Maybe StateEnteredEventDetails
   -> Maybe Integer
   -> Maybe ActivityFailedEventDetails
   -> Maybe TaskFailedEventDetails
   -> Maybe LambdaFunctionFailedEventDetails
   -> Maybe ExecutionTimedOutEventDetails
   -> Maybe MapIterationEventDetails
   -> POSIX
   -> HistoryEventType
   -> Integer
   -> HistoryEvent)
-> Parser (Maybe LambdaFunctionTimedOutEventDetails)
-> Parser
     (Maybe TaskTimedOutEventDetails
      -> Maybe ActivityTimedOutEventDetails
      -> Maybe ExecutionFailedEventDetails
      -> Maybe ExecutionAbortedEventDetails
      -> Maybe ExecutionSucceededEventDetails
      -> Maybe LambdaFunctionScheduledEventDetails
      -> Maybe TaskScheduledEventDetails
      -> Maybe ActivityScheduledEventDetails
      -> Maybe ExecutionStartedEventDetails
      -> Maybe ActivityScheduleFailedEventDetails
      -> Maybe LambdaFunctionScheduleFailedEventDetails
      -> Maybe StateEnteredEventDetails
      -> Maybe Integer
      -> Maybe ActivityFailedEventDetails
      -> Maybe TaskFailedEventDetails
      -> Maybe LambdaFunctionFailedEventDetails
      -> Maybe ExecutionTimedOutEventDetails
      -> Maybe MapIterationEventDetails
      -> POSIX
      -> HistoryEventType
      -> Integer
      -> HistoryEvent)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Parser (Maybe LambdaFunctionTimedOutEventDetails)
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"lambdaFunctionTimedOutEventDetails")
            Parser
  (Maybe TaskTimedOutEventDetails
   -> Maybe ActivityTimedOutEventDetails
   -> Maybe ExecutionFailedEventDetails
   -> Maybe ExecutionAbortedEventDetails
   -> Maybe ExecutionSucceededEventDetails
   -> Maybe LambdaFunctionScheduledEventDetails
   -> Maybe TaskScheduledEventDetails
   -> Maybe ActivityScheduledEventDetails
   -> Maybe ExecutionStartedEventDetails
   -> Maybe ActivityScheduleFailedEventDetails
   -> Maybe LambdaFunctionScheduleFailedEventDetails
   -> Maybe StateEnteredEventDetails
   -> Maybe Integer
   -> Maybe ActivityFailedEventDetails
   -> Maybe TaskFailedEventDetails
   -> Maybe LambdaFunctionFailedEventDetails
   -> Maybe ExecutionTimedOutEventDetails
   -> Maybe MapIterationEventDetails
   -> POSIX
   -> HistoryEventType
   -> Integer
   -> HistoryEvent)
-> Parser (Maybe TaskTimedOutEventDetails)
-> Parser
     (Maybe ActivityTimedOutEventDetails
      -> Maybe ExecutionFailedEventDetails
      -> Maybe ExecutionAbortedEventDetails
      -> Maybe ExecutionSucceededEventDetails
      -> Maybe LambdaFunctionScheduledEventDetails
      -> Maybe TaskScheduledEventDetails
      -> Maybe ActivityScheduledEventDetails
      -> Maybe ExecutionStartedEventDetails
      -> Maybe ActivityScheduleFailedEventDetails
      -> Maybe LambdaFunctionScheduleFailedEventDetails
      -> Maybe StateEnteredEventDetails
      -> Maybe Integer
      -> Maybe ActivityFailedEventDetails
      -> Maybe TaskFailedEventDetails
      -> Maybe LambdaFunctionFailedEventDetails
      -> Maybe ExecutionTimedOutEventDetails
      -> Maybe MapIterationEventDetails
      -> POSIX
      -> HistoryEventType
      -> Integer
      -> HistoryEvent)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Parser (Maybe TaskTimedOutEventDetails)
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"taskTimedOutEventDetails")
            Parser
  (Maybe ActivityTimedOutEventDetails
   -> Maybe ExecutionFailedEventDetails
   -> Maybe ExecutionAbortedEventDetails
   -> Maybe ExecutionSucceededEventDetails
   -> Maybe LambdaFunctionScheduledEventDetails
   -> Maybe TaskScheduledEventDetails
   -> Maybe ActivityScheduledEventDetails
   -> Maybe ExecutionStartedEventDetails
   -> Maybe ActivityScheduleFailedEventDetails
   -> Maybe LambdaFunctionScheduleFailedEventDetails
   -> Maybe StateEnteredEventDetails
   -> Maybe Integer
   -> Maybe ActivityFailedEventDetails
   -> Maybe TaskFailedEventDetails
   -> Maybe LambdaFunctionFailedEventDetails
   -> Maybe ExecutionTimedOutEventDetails
   -> Maybe MapIterationEventDetails
   -> POSIX
   -> HistoryEventType
   -> Integer
   -> HistoryEvent)
-> Parser (Maybe ActivityTimedOutEventDetails)
-> Parser
     (Maybe ExecutionFailedEventDetails
      -> Maybe ExecutionAbortedEventDetails
      -> Maybe ExecutionSucceededEventDetails
      -> Maybe LambdaFunctionScheduledEventDetails
      -> Maybe TaskScheduledEventDetails
      -> Maybe ActivityScheduledEventDetails
      -> Maybe ExecutionStartedEventDetails
      -> Maybe ActivityScheduleFailedEventDetails
      -> Maybe LambdaFunctionScheduleFailedEventDetails
      -> Maybe StateEnteredEventDetails
      -> Maybe Integer
      -> Maybe ActivityFailedEventDetails
      -> Maybe TaskFailedEventDetails
      -> Maybe LambdaFunctionFailedEventDetails
      -> Maybe ExecutionTimedOutEventDetails
      -> Maybe MapIterationEventDetails
      -> POSIX
      -> HistoryEventType
      -> Integer
      -> HistoryEvent)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Parser (Maybe ActivityTimedOutEventDetails)
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"activityTimedOutEventDetails")
            Parser
  (Maybe ExecutionFailedEventDetails
   -> Maybe ExecutionAbortedEventDetails
   -> Maybe ExecutionSucceededEventDetails
   -> Maybe LambdaFunctionScheduledEventDetails
   -> Maybe TaskScheduledEventDetails
   -> Maybe ActivityScheduledEventDetails
   -> Maybe ExecutionStartedEventDetails
   -> Maybe ActivityScheduleFailedEventDetails
   -> Maybe LambdaFunctionScheduleFailedEventDetails
   -> Maybe StateEnteredEventDetails
   -> Maybe Integer
   -> Maybe ActivityFailedEventDetails
   -> Maybe TaskFailedEventDetails
   -> Maybe LambdaFunctionFailedEventDetails
   -> Maybe ExecutionTimedOutEventDetails
   -> Maybe MapIterationEventDetails
   -> POSIX
   -> HistoryEventType
   -> Integer
   -> HistoryEvent)
-> Parser (Maybe ExecutionFailedEventDetails)
-> Parser
     (Maybe ExecutionAbortedEventDetails
      -> Maybe ExecutionSucceededEventDetails
      -> Maybe LambdaFunctionScheduledEventDetails
      -> Maybe TaskScheduledEventDetails
      -> Maybe ActivityScheduledEventDetails
      -> Maybe ExecutionStartedEventDetails
      -> Maybe ActivityScheduleFailedEventDetails
      -> Maybe LambdaFunctionScheduleFailedEventDetails
      -> Maybe StateEnteredEventDetails
      -> Maybe Integer
      -> Maybe ActivityFailedEventDetails
      -> Maybe TaskFailedEventDetails
      -> Maybe LambdaFunctionFailedEventDetails
      -> Maybe ExecutionTimedOutEventDetails
      -> Maybe MapIterationEventDetails
      -> POSIX
      -> HistoryEventType
      -> Integer
      -> HistoryEvent)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Parser (Maybe ExecutionFailedEventDetails)
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"executionFailedEventDetails")
            Parser
  (Maybe ExecutionAbortedEventDetails
   -> Maybe ExecutionSucceededEventDetails
   -> Maybe LambdaFunctionScheduledEventDetails
   -> Maybe TaskScheduledEventDetails
   -> Maybe ActivityScheduledEventDetails
   -> Maybe ExecutionStartedEventDetails
   -> Maybe ActivityScheduleFailedEventDetails
   -> Maybe LambdaFunctionScheduleFailedEventDetails
   -> Maybe StateEnteredEventDetails
   -> Maybe Integer
   -> Maybe ActivityFailedEventDetails
   -> Maybe TaskFailedEventDetails
   -> Maybe LambdaFunctionFailedEventDetails
   -> Maybe ExecutionTimedOutEventDetails
   -> Maybe MapIterationEventDetails
   -> POSIX
   -> HistoryEventType
   -> Integer
   -> HistoryEvent)
-> Parser (Maybe ExecutionAbortedEventDetails)
-> Parser
     (Maybe ExecutionSucceededEventDetails
      -> Maybe LambdaFunctionScheduledEventDetails
      -> Maybe TaskScheduledEventDetails
      -> Maybe ActivityScheduledEventDetails
      -> Maybe ExecutionStartedEventDetails
      -> Maybe ActivityScheduleFailedEventDetails
      -> Maybe LambdaFunctionScheduleFailedEventDetails
      -> Maybe StateEnteredEventDetails
      -> Maybe Integer
      -> Maybe ActivityFailedEventDetails
      -> Maybe TaskFailedEventDetails
      -> Maybe LambdaFunctionFailedEventDetails
      -> Maybe ExecutionTimedOutEventDetails
      -> Maybe MapIterationEventDetails
      -> POSIX
      -> HistoryEventType
      -> Integer
      -> HistoryEvent)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Parser (Maybe ExecutionAbortedEventDetails)
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"executionAbortedEventDetails")
            Parser
  (Maybe ExecutionSucceededEventDetails
   -> Maybe LambdaFunctionScheduledEventDetails
   -> Maybe TaskScheduledEventDetails
   -> Maybe ActivityScheduledEventDetails
   -> Maybe ExecutionStartedEventDetails
   -> Maybe ActivityScheduleFailedEventDetails
   -> Maybe LambdaFunctionScheduleFailedEventDetails
   -> Maybe StateEnteredEventDetails
   -> Maybe Integer
   -> Maybe ActivityFailedEventDetails
   -> Maybe TaskFailedEventDetails
   -> Maybe LambdaFunctionFailedEventDetails
   -> Maybe ExecutionTimedOutEventDetails
   -> Maybe MapIterationEventDetails
   -> POSIX
   -> HistoryEventType
   -> Integer
   -> HistoryEvent)
-> Parser (Maybe ExecutionSucceededEventDetails)
-> Parser
     (Maybe LambdaFunctionScheduledEventDetails
      -> Maybe TaskScheduledEventDetails
      -> Maybe ActivityScheduledEventDetails
      -> Maybe ExecutionStartedEventDetails
      -> Maybe ActivityScheduleFailedEventDetails
      -> Maybe LambdaFunctionScheduleFailedEventDetails
      -> Maybe StateEnteredEventDetails
      -> Maybe Integer
      -> Maybe ActivityFailedEventDetails
      -> Maybe TaskFailedEventDetails
      -> Maybe LambdaFunctionFailedEventDetails
      -> Maybe ExecutionTimedOutEventDetails
      -> Maybe MapIterationEventDetails
      -> POSIX
      -> HistoryEventType
      -> Integer
      -> HistoryEvent)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Parser (Maybe ExecutionSucceededEventDetails)
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"executionSucceededEventDetails")
            Parser
  (Maybe LambdaFunctionScheduledEventDetails
   -> Maybe TaskScheduledEventDetails
   -> Maybe ActivityScheduledEventDetails
   -> Maybe ExecutionStartedEventDetails
   -> Maybe ActivityScheduleFailedEventDetails
   -> Maybe LambdaFunctionScheduleFailedEventDetails
   -> Maybe StateEnteredEventDetails
   -> Maybe Integer
   -> Maybe ActivityFailedEventDetails
   -> Maybe TaskFailedEventDetails
   -> Maybe LambdaFunctionFailedEventDetails
   -> Maybe ExecutionTimedOutEventDetails
   -> Maybe MapIterationEventDetails
   -> POSIX
   -> HistoryEventType
   -> Integer
   -> HistoryEvent)
-> Parser (Maybe LambdaFunctionScheduledEventDetails)
-> Parser
     (Maybe TaskScheduledEventDetails
      -> Maybe ActivityScheduledEventDetails
      -> Maybe ExecutionStartedEventDetails
      -> Maybe ActivityScheduleFailedEventDetails
      -> Maybe LambdaFunctionScheduleFailedEventDetails
      -> Maybe StateEnteredEventDetails
      -> Maybe Integer
      -> Maybe ActivityFailedEventDetails
      -> Maybe TaskFailedEventDetails
      -> Maybe LambdaFunctionFailedEventDetails
      -> Maybe ExecutionTimedOutEventDetails
      -> Maybe MapIterationEventDetails
      -> POSIX
      -> HistoryEventType
      -> Integer
      -> HistoryEvent)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object
-> Text -> Parser (Maybe LambdaFunctionScheduledEventDetails)
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"lambdaFunctionScheduledEventDetails")
            Parser
  (Maybe TaskScheduledEventDetails
   -> Maybe ActivityScheduledEventDetails
   -> Maybe ExecutionStartedEventDetails
   -> Maybe ActivityScheduleFailedEventDetails
   -> Maybe LambdaFunctionScheduleFailedEventDetails
   -> Maybe StateEnteredEventDetails
   -> Maybe Integer
   -> Maybe ActivityFailedEventDetails
   -> Maybe TaskFailedEventDetails
   -> Maybe LambdaFunctionFailedEventDetails
   -> Maybe ExecutionTimedOutEventDetails
   -> Maybe MapIterationEventDetails
   -> POSIX
   -> HistoryEventType
   -> Integer
   -> HistoryEvent)
-> Parser (Maybe TaskScheduledEventDetails)
-> Parser
     (Maybe ActivityScheduledEventDetails
      -> Maybe ExecutionStartedEventDetails
      -> Maybe ActivityScheduleFailedEventDetails
      -> Maybe LambdaFunctionScheduleFailedEventDetails
      -> Maybe StateEnteredEventDetails
      -> Maybe Integer
      -> Maybe ActivityFailedEventDetails
      -> Maybe TaskFailedEventDetails
      -> Maybe LambdaFunctionFailedEventDetails
      -> Maybe ExecutionTimedOutEventDetails
      -> Maybe MapIterationEventDetails
      -> POSIX
      -> HistoryEventType
      -> Integer
      -> HistoryEvent)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Parser (Maybe TaskScheduledEventDetails)
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"taskScheduledEventDetails")
            Parser
  (Maybe ActivityScheduledEventDetails
   -> Maybe ExecutionStartedEventDetails
   -> Maybe ActivityScheduleFailedEventDetails
   -> Maybe LambdaFunctionScheduleFailedEventDetails
   -> Maybe StateEnteredEventDetails
   -> Maybe Integer
   -> Maybe ActivityFailedEventDetails
   -> Maybe TaskFailedEventDetails
   -> Maybe LambdaFunctionFailedEventDetails
   -> Maybe ExecutionTimedOutEventDetails
   -> Maybe MapIterationEventDetails
   -> POSIX
   -> HistoryEventType
   -> Integer
   -> HistoryEvent)
-> Parser (Maybe ActivityScheduledEventDetails)
-> Parser
     (Maybe ExecutionStartedEventDetails
      -> Maybe ActivityScheduleFailedEventDetails
      -> Maybe LambdaFunctionScheduleFailedEventDetails
      -> Maybe StateEnteredEventDetails
      -> Maybe Integer
      -> Maybe ActivityFailedEventDetails
      -> Maybe TaskFailedEventDetails
      -> Maybe LambdaFunctionFailedEventDetails
      -> Maybe ExecutionTimedOutEventDetails
      -> Maybe MapIterationEventDetails
      -> POSIX
      -> HistoryEventType
      -> Integer
      -> HistoryEvent)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Parser (Maybe ActivityScheduledEventDetails)
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"activityScheduledEventDetails")
            Parser
  (Maybe ExecutionStartedEventDetails
   -> Maybe ActivityScheduleFailedEventDetails
   -> Maybe LambdaFunctionScheduleFailedEventDetails
   -> Maybe StateEnteredEventDetails
   -> Maybe Integer
   -> Maybe ActivityFailedEventDetails
   -> Maybe TaskFailedEventDetails
   -> Maybe LambdaFunctionFailedEventDetails
   -> Maybe ExecutionTimedOutEventDetails
   -> Maybe MapIterationEventDetails
   -> POSIX
   -> HistoryEventType
   -> Integer
   -> HistoryEvent)
-> Parser (Maybe ExecutionStartedEventDetails)
-> Parser
     (Maybe ActivityScheduleFailedEventDetails
      -> Maybe LambdaFunctionScheduleFailedEventDetails
      -> Maybe StateEnteredEventDetails
      -> Maybe Integer
      -> Maybe ActivityFailedEventDetails
      -> Maybe TaskFailedEventDetails
      -> Maybe LambdaFunctionFailedEventDetails
      -> Maybe ExecutionTimedOutEventDetails
      -> Maybe MapIterationEventDetails
      -> POSIX
      -> HistoryEventType
      -> Integer
      -> HistoryEvent)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Parser (Maybe ExecutionStartedEventDetails)
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"executionStartedEventDetails")
            Parser
  (Maybe ActivityScheduleFailedEventDetails
   -> Maybe LambdaFunctionScheduleFailedEventDetails
   -> Maybe StateEnteredEventDetails
   -> Maybe Integer
   -> Maybe ActivityFailedEventDetails
   -> Maybe TaskFailedEventDetails
   -> Maybe LambdaFunctionFailedEventDetails
   -> Maybe ExecutionTimedOutEventDetails
   -> Maybe MapIterationEventDetails
   -> POSIX
   -> HistoryEventType
   -> Integer
   -> HistoryEvent)
-> Parser (Maybe ActivityScheduleFailedEventDetails)
-> Parser
     (Maybe LambdaFunctionScheduleFailedEventDetails
      -> Maybe StateEnteredEventDetails
      -> Maybe Integer
      -> Maybe ActivityFailedEventDetails
      -> Maybe TaskFailedEventDetails
      -> Maybe LambdaFunctionFailedEventDetails
      -> Maybe ExecutionTimedOutEventDetails
      -> Maybe MapIterationEventDetails
      -> POSIX
      -> HistoryEventType
      -> Integer
      -> HistoryEvent)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Parser (Maybe ActivityScheduleFailedEventDetails)
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"activityScheduleFailedEventDetails")
            Parser
  (Maybe LambdaFunctionScheduleFailedEventDetails
   -> Maybe StateEnteredEventDetails
   -> Maybe Integer
   -> Maybe ActivityFailedEventDetails
   -> Maybe TaskFailedEventDetails
   -> Maybe LambdaFunctionFailedEventDetails
   -> Maybe ExecutionTimedOutEventDetails
   -> Maybe MapIterationEventDetails
   -> POSIX
   -> HistoryEventType
   -> Integer
   -> HistoryEvent)
-> Parser (Maybe LambdaFunctionScheduleFailedEventDetails)
-> Parser
     (Maybe StateEnteredEventDetails
      -> Maybe Integer
      -> Maybe ActivityFailedEventDetails
      -> Maybe TaskFailedEventDetails
      -> Maybe LambdaFunctionFailedEventDetails
      -> Maybe ExecutionTimedOutEventDetails
      -> Maybe MapIterationEventDetails
      -> POSIX
      -> HistoryEventType
      -> Integer
      -> HistoryEvent)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> ( Object
x
                            Object
-> Text -> Parser (Maybe LambdaFunctionScheduleFailedEventDetails)
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"lambdaFunctionScheduleFailedEventDetails"
                        )
            Parser
  (Maybe StateEnteredEventDetails
   -> Maybe Integer
   -> Maybe ActivityFailedEventDetails
   -> Maybe TaskFailedEventDetails
   -> Maybe LambdaFunctionFailedEventDetails
   -> Maybe ExecutionTimedOutEventDetails
   -> Maybe MapIterationEventDetails
   -> POSIX
   -> HistoryEventType
   -> Integer
   -> HistoryEvent)
-> Parser (Maybe StateEnteredEventDetails)
-> Parser
     (Maybe Integer
      -> Maybe ActivityFailedEventDetails
      -> Maybe TaskFailedEventDetails
      -> Maybe LambdaFunctionFailedEventDetails
      -> Maybe ExecutionTimedOutEventDetails
      -> Maybe MapIterationEventDetails
      -> POSIX
      -> HistoryEventType
      -> Integer
      -> HistoryEvent)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Parser (Maybe StateEnteredEventDetails)
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"stateEnteredEventDetails")
            Parser
  (Maybe Integer
   -> Maybe ActivityFailedEventDetails
   -> Maybe TaskFailedEventDetails
   -> Maybe LambdaFunctionFailedEventDetails
   -> Maybe ExecutionTimedOutEventDetails
   -> Maybe MapIterationEventDetails
   -> POSIX
   -> HistoryEventType
   -> Integer
   -> HistoryEvent)
-> Parser (Maybe Integer)
-> Parser
     (Maybe ActivityFailedEventDetails
      -> Maybe TaskFailedEventDetails
      -> Maybe LambdaFunctionFailedEventDetails
      -> Maybe ExecutionTimedOutEventDetails
      -> Maybe MapIterationEventDetails
      -> POSIX
      -> HistoryEventType
      -> Integer
      -> HistoryEvent)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Parser (Maybe Integer)
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"previousEventId")
            Parser
  (Maybe ActivityFailedEventDetails
   -> Maybe TaskFailedEventDetails
   -> Maybe LambdaFunctionFailedEventDetails
   -> Maybe ExecutionTimedOutEventDetails
   -> Maybe MapIterationEventDetails
   -> POSIX
   -> HistoryEventType
   -> Integer
   -> HistoryEvent)
-> Parser (Maybe ActivityFailedEventDetails)
-> Parser
     (Maybe TaskFailedEventDetails
      -> Maybe LambdaFunctionFailedEventDetails
      -> Maybe ExecutionTimedOutEventDetails
      -> Maybe MapIterationEventDetails
      -> POSIX
      -> HistoryEventType
      -> Integer
      -> HistoryEvent)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Parser (Maybe ActivityFailedEventDetails)
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"activityFailedEventDetails")
            Parser
  (Maybe TaskFailedEventDetails
   -> Maybe LambdaFunctionFailedEventDetails
   -> Maybe ExecutionTimedOutEventDetails
   -> Maybe MapIterationEventDetails
   -> POSIX
   -> HistoryEventType
   -> Integer
   -> HistoryEvent)
-> Parser (Maybe TaskFailedEventDetails)
-> Parser
     (Maybe LambdaFunctionFailedEventDetails
      -> Maybe ExecutionTimedOutEventDetails
      -> Maybe MapIterationEventDetails
      -> POSIX
      -> HistoryEventType
      -> Integer
      -> HistoryEvent)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Parser (Maybe TaskFailedEventDetails)
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"taskFailedEventDetails")
            Parser
  (Maybe LambdaFunctionFailedEventDetails
   -> Maybe ExecutionTimedOutEventDetails
   -> Maybe MapIterationEventDetails
   -> POSIX
   -> HistoryEventType
   -> Integer
   -> HistoryEvent)
-> Parser (Maybe LambdaFunctionFailedEventDetails)
-> Parser
     (Maybe ExecutionTimedOutEventDetails
      -> Maybe MapIterationEventDetails
      -> POSIX
      -> HistoryEventType
      -> Integer
      -> HistoryEvent)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Parser (Maybe LambdaFunctionFailedEventDetails)
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"lambdaFunctionFailedEventDetails")
            Parser
  (Maybe ExecutionTimedOutEventDetails
   -> Maybe MapIterationEventDetails
   -> POSIX
   -> HistoryEventType
   -> Integer
   -> HistoryEvent)
-> Parser (Maybe ExecutionTimedOutEventDetails)
-> Parser
     (Maybe MapIterationEventDetails
      -> POSIX -> HistoryEventType -> Integer -> HistoryEvent)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Parser (Maybe ExecutionTimedOutEventDetails)
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"executionTimedOutEventDetails")
            Parser
  (Maybe MapIterationEventDetails
   -> POSIX -> HistoryEventType -> Integer -> HistoryEvent)
-> Parser (Maybe MapIterationEventDetails)
-> Parser (POSIX -> HistoryEventType -> Integer -> HistoryEvent)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Parser (Maybe MapIterationEventDetails)
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"mapIterationFailedEventDetails")
            Parser (POSIX -> HistoryEventType -> Integer -> HistoryEvent)
-> Parser POSIX
-> Parser (HistoryEventType -> Integer -> HistoryEvent)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Parser POSIX
forall a. FromJSON a => Object -> Text -> Parser a
Core..: Text
"timestamp")
            Parser (HistoryEventType -> Integer -> HistoryEvent)
-> Parser HistoryEventType -> Parser (Integer -> HistoryEvent)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Parser HistoryEventType
forall a. FromJSON a => Object -> Text -> Parser a
Core..: Text
"type")
            Parser (Integer -> HistoryEvent)
-> Parser Integer -> Parser HistoryEvent
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Parser Integer
forall a. FromJSON a => Object -> Text -> Parser a
Core..: Text
"id")
      )

instance Prelude.Hashable HistoryEvent

instance Prelude.NFData HistoryEvent